configure revision da2777aa
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.72 for libfontenc 1.1.8.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libfontenc/-/issues>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
9# Inc.
10#
11#
12# This configure script is free software; the Free Software Foundation
13# gives unlimited permission to copy, distribute and modify it.
14## -------------------- ##
15## M4sh Initialization. ##
16## -------------------- ##
17
18# Be more Bourne compatible
19DUALCASE=1; export DUALCASE # for MKS sh
20if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21then :
22  emulate sh
23  NULLCMD=:
24  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27  setopt NO_GLOB_SUBST
28else case e in #(
29  e) case `(set -o) 2>/dev/null` in #(
30  *posix*) :
31    set -o posix ;; #(
32  *) :
33     ;;
34esac ;;
35esac
36fi
37
38
39
40# Reset variables that may have inherited troublesome values from
41# the environment.
42
43# IFS needs to be set, to space, tab, and newline, in precisely that order.
44# (If _AS_PATH_WALK were called with IFS unset, it would have the
45# side effect of setting IFS to empty, thus disabling word splitting.)
46# Quoting is to prevent editors from complaining about space-tab.
47as_nl='
48'
49export as_nl
50IFS=" ""	$as_nl"
51
52PS1='$ '
53PS2='> '
54PS4='+ '
55
56# Ensure predictable behavior from utilities with locale-dependent output.
57LC_ALL=C
58export LC_ALL
59LANGUAGE=C
60export LANGUAGE
61
62# We cannot yet rely on "unset" to work, but we need these variables
63# to be unset--not just set to an empty or harmless value--now, to
64# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
65# also avoids known problems related to "unset" and subshell syntax
66# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68do eval test \${$as_var+y} \
69  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70done
71
72# Ensure that fds 0, 1, and 2 are open.
73if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
76
77# The user is always right.
78if ${PATH_SEPARATOR+false} :; then
79  PATH_SEPARATOR=:
80  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82      PATH_SEPARATOR=';'
83  }
84fi
85
86
87# Find who we are.  Look in the path if we contain no directory separator.
88as_myself=
89case $0 in #((
90  *[\\/]* ) as_myself=$0 ;;
91  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92for as_dir in $PATH
93do
94  IFS=$as_save_IFS
95  case $as_dir in #(((
96    '') as_dir=./ ;;
97    */) ;;
98    *) as_dir=$as_dir/ ;;
99  esac
100    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as 'sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116
117# Use a proper internal environment variable to ensure we don't fall
118  # into an infinite loop, continuously re-executing ourselves.
119  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120    _as_can_reexec=no; export _as_can_reexec;
121    # We cannot yet assume a decent shell, so we have to provide a
122# neutralization value for shells without unset; and this also
123# works around shells that cannot unset nonexistent variables.
124# Preserve -v and -x to the replacement shell.
125BASH_ENV=/dev/null
126ENV=/dev/null
127(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128case $- in # ((((
129  *v*x* | *x*v* ) as_opts=-vx ;;
130  *v* ) as_opts=-v ;;
131  *x* ) as_opts=-x ;;
132  * ) as_opts= ;;
133esac
134exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135# Admittedly, this is quite paranoid, since all the known shells bail
136# out after a failed 'exec'.
137printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138exit 255
139  fi
140  # We don't want this to propagate to other subprocesses.
141          { _as_can_reexec=; unset _as_can_reexec;}
142if test "x$CONFIG_SHELL" = x; then
143  as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
144then :
145  emulate sh
146  NULLCMD=:
147  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
148  # is contrary to our usage.  Disable this feature.
149  alias -g '\${1+\"\$@\"}'='\"\$@\"'
150  setopt NO_GLOB_SUBST
151else case e in #(
152  e) case \`(set -o) 2>/dev/null\` in #(
153  *posix*) :
154    set -o posix ;; #(
155  *) :
156     ;;
157esac ;;
158esac
159fi
160"
161  as_required="as_fn_return () { (exit \$1); }
162as_fn_success () { as_fn_return 0; }
163as_fn_failure () { as_fn_return 1; }
164as_fn_ret_success () { return 0; }
165as_fn_ret_failure () { return 1; }
166
167exitcode=0
168as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173then :
174
175else case e in #(
176  e) exitcode=1; echo positional parameters were not saved. ;;
177esac
178fi
179test x\$exitcode = x0 || exit 1
180blah=\$(echo \$(echo blah))
181test x\"\$blah\" = xblah || exit 1
182test -x / || exit 1"
183  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
184  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
185  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
186  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
187
188  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
189    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
190    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
192    PATH=/empty FPATH=/empty; export PATH FPATH
193    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
194      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
195test \$(( 1 + 1 )) = 2 || exit 1"
196  if (eval "$as_required") 2>/dev/null
197then :
198  as_have_required=yes
199else case e in #(
200  e) as_have_required=no ;;
201esac
202fi
203  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
204then :
205
206else case e in #(
207  e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
208as_found=false
209for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
210do
211  IFS=$as_save_IFS
212  case $as_dir in #(((
213    '') as_dir=./ ;;
214    */) ;;
215    *) as_dir=$as_dir/ ;;
216  esac
217  as_found=:
218  case $as_dir in #(
219	 /*)
220	   for as_base in sh bash ksh sh5; do
221	     # Try only shells that exist, to save several forks.
222	     as_shell=$as_dir$as_base
223	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
224		    as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
225then :
226  CONFIG_SHELL=$as_shell as_have_required=yes
227		   if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
228then :
229  break 2
230fi
231fi
232	   done;;
233       esac
234  as_found=false
235done
236IFS=$as_save_IFS
237if $as_found
238then :
239
240else case e in #(
241  e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
243then :
244  CONFIG_SHELL=$SHELL as_have_required=yes
245fi ;;
246esac
247fi
248
249
250      if test "x$CONFIG_SHELL" != x
251then :
252  export CONFIG_SHELL
253             # We cannot yet assume a decent shell, so we have to provide a
254# neutralization value for shells without unset; and this also
255# works around shells that cannot unset nonexistent variables.
256# Preserve -v and -x to the replacement shell.
257BASH_ENV=/dev/null
258ENV=/dev/null
259(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
260case $- in # ((((
261  *v*x* | *x*v* ) as_opts=-vx ;;
262  *v* ) as_opts=-v ;;
263  *x* ) as_opts=-x ;;
264  * ) as_opts= ;;
265esac
266exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
267# Admittedly, this is quite paranoid, since all the known shells bail
268# out after a failed 'exec'.
269printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
270exit 255
271fi
272
273    if test x$as_have_required = xno
274then :
275  printf "%s\n" "$0: This script requires a shell more modern than all"
276  printf "%s\n" "$0: the shells that I found on your system."
277  if test ${ZSH_VERSION+y} ; then
278    printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
279    printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
280  else
281    printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
282$0: https://gitlab.freedesktop.org/xorg/lib/libfontenc/-/issues
283$0: about your system, including any error possibly output
284$0: before this message. Then install a modern shell, or
285$0: manually run the script under such a shell if you do
286$0: have one."
287  fi
288  exit 1
289fi ;;
290esac
291fi
292fi
293SHELL=${CONFIG_SHELL-/bin/sh}
294export SHELL
295# Unset more variables known to interfere with behavior of common tools.
296CLICOLOR_FORCE= GREP_OPTIONS=
297unset CLICOLOR_FORCE GREP_OPTIONS
298
299## --------------------- ##
300## M4sh Shell Functions. ##
301## --------------------- ##
302# as_fn_unset VAR
303# ---------------
304# Portably unset VAR.
305as_fn_unset ()
306{
307  { eval $1=; unset $1;}
308}
309as_unset=as_fn_unset
310
311
312# as_fn_set_status STATUS
313# -----------------------
314# Set $? to STATUS, without forking.
315as_fn_set_status ()
316{
317  return $1
318} # as_fn_set_status
319
320# as_fn_exit STATUS
321# -----------------
322# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
323as_fn_exit ()
324{
325  set +e
326  as_fn_set_status $1
327  exit $1
328} # as_fn_exit
329
330# as_fn_mkdir_p
331# -------------
332# Create "$as_dir" as a directory, including parents if necessary.
333as_fn_mkdir_p ()
334{
335
336  case $as_dir in #(
337  -*) as_dir=./$as_dir;;
338  esac
339  test -d "$as_dir" || eval $as_mkdir_p || {
340    as_dirs=
341    while :; do
342      case $as_dir in #(
343      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
344      *) as_qdir=$as_dir;;
345      esac
346      as_dirs="'$as_qdir' $as_dirs"
347      as_dir=`$as_dirname -- "$as_dir" ||
348$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
349	 X"$as_dir" : 'X\(//\)[^/]' \| \
350	 X"$as_dir" : 'X\(//\)$' \| \
351	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
352printf "%s\n" X"$as_dir" |
353    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
354	    s//\1/
355	    q
356	  }
357	  /^X\(\/\/\)[^/].*/{
358	    s//\1/
359	    q
360	  }
361	  /^X\(\/\/\)$/{
362	    s//\1/
363	    q
364	  }
365	  /^X\(\/\).*/{
366	    s//\1/
367	    q
368	  }
369	  s/.*/./; q'`
370      test -d "$as_dir" && break
371    done
372    test -z "$as_dirs" || eval "mkdir $as_dirs"
373  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
374
375
376} # as_fn_mkdir_p
377
378# as_fn_executable_p FILE
379# -----------------------
380# Test if FILE is an executable regular file.
381as_fn_executable_p ()
382{
383  test -f "$1" && test -x "$1"
384} # as_fn_executable_p
385# as_fn_append VAR VALUE
386# ----------------------
387# Append the text in VALUE to the end of the definition contained in VAR. Take
388# advantage of any shell optimizations that allow amortized linear growth over
389# repeated appends, instead of the typical quadratic growth present in naive
390# implementations.
391if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
392then :
393  eval 'as_fn_append ()
394  {
395    eval $1+=\$2
396  }'
397else case e in #(
398  e) as_fn_append ()
399  {
400    eval $1=\$$1\$2
401  } ;;
402esac
403fi # as_fn_append
404
405# as_fn_arith ARG...
406# ------------------
407# Perform arithmetic evaluation on the ARGs, and store the result in the
408# global $as_val. Take advantage of shells that can avoid forks. The arguments
409# must be portable across $(()) and expr.
410if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
411then :
412  eval 'as_fn_arith ()
413  {
414    as_val=$(( $* ))
415  }'
416else case e in #(
417  e) as_fn_arith ()
418  {
419    as_val=`expr "$@" || test $? -eq 1`
420  } ;;
421esac
422fi # as_fn_arith
423
424
425# as_fn_error STATUS ERROR [LINENO LOG_FD]
426# ----------------------------------------
427# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
428# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
429# script with STATUS, using 1 if that was 0.
430as_fn_error ()
431{
432  as_status=$1; test $as_status -eq 0 && as_status=1
433  if test "$4"; then
434    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
435    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
436  fi
437  printf "%s\n" "$as_me: error: $2" >&2
438  as_fn_exit $as_status
439} # as_fn_error
440
441if expr a : '\(a\)' >/dev/null 2>&1 &&
442   test "X`expr 00001 : '.*\(...\)'`" = X001; then
443  as_expr=expr
444else
445  as_expr=false
446fi
447
448if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
449  as_basename=basename
450else
451  as_basename=false
452fi
453
454if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
455  as_dirname=dirname
456else
457  as_dirname=false
458fi
459
460as_me=`$as_basename -- "$0" ||
461$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
462	 X"$0" : 'X\(//\)$' \| \
463	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
464printf "%s\n" X/"$0" |
465    sed '/^.*\/\([^/][^/]*\)\/*$/{
466	    s//\1/
467	    q
468	  }
469	  /^X\/\(\/\/\)$/{
470	    s//\1/
471	    q
472	  }
473	  /^X\/\(\/\).*/{
474	    s//\1/
475	    q
476	  }
477	  s/.*/./; q'`
478
479# Avoid depending upon Character Ranges.
480as_cr_letters='abcdefghijklmnopqrstuvwxyz'
481as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
482as_cr_Letters=$as_cr_letters$as_cr_LETTERS
483as_cr_digits='0123456789'
484as_cr_alnum=$as_cr_Letters$as_cr_digits
485
486
487  as_lineno_1=$LINENO as_lineno_1a=$LINENO
488  as_lineno_2=$LINENO as_lineno_2a=$LINENO
489  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
490  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
491  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
492  sed -n '
493    p
494    /[$]LINENO/=
495  ' <$as_myself |
496    sed '
497      t clear
498      :clear
499      s/[$]LINENO.*/&-/
500      t lineno
501      b
502      :lineno
503      N
504      :loop
505      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
506      t loop
507      s/-\n.*//
508    ' >$as_me.lineno &&
509  chmod +x "$as_me.lineno" ||
510    { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
511
512  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
513  # already done that, so ensure we don't try to do so again and fall
514  # in an infinite loop.  This has already happened in practice.
515  _as_can_reexec=no; export _as_can_reexec
516  # Don't try to exec as it changes $[0], causing all sort of problems
517  # (the dirname of $[0] is not the place where we might find the
518  # original and so on.  Autoconf is especially sensitive to this).
519  . "./$as_me.lineno"
520  # Exit status is that of the last command.
521  exit
522}
523
524
525# Determine whether it's possible to make 'echo' print without a newline.
526# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
527# for compatibility with existing Makefiles.
528ECHO_C= ECHO_N= ECHO_T=
529case `echo -n x` in #(((((
530-n*)
531  case `echo 'xy\c'` in
532  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
533  xy)  ECHO_C='\c';;
534  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
535       ECHO_T='	';;
536  esac;;
537*)
538  ECHO_N='-n';;
539esac
540
541# For backward compatibility with old third-party macros, we provide
542# the shell variables $as_echo and $as_echo_n.  New code should use
543# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
544as_echo='printf %s\n'
545as_echo_n='printf %s'
546
547rm -f conf$$ conf$$.exe conf$$.file
548if test -d conf$$.dir; then
549  rm -f conf$$.dir/conf$$.file
550else
551  rm -f conf$$.dir
552  mkdir conf$$.dir 2>/dev/null
553fi
554if (echo >conf$$.file) 2>/dev/null; then
555  if ln -s conf$$.file conf$$ 2>/dev/null; then
556    as_ln_s='ln -s'
557    # ... but there are two gotchas:
558    # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
559    # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
560    # In both cases, we have to default to 'cp -pR'.
561    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
562      as_ln_s='cp -pR'
563  elif ln conf$$.file conf$$ 2>/dev/null; then
564    as_ln_s=ln
565  else
566    as_ln_s='cp -pR'
567  fi
568else
569  as_ln_s='cp -pR'
570fi
571rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
572rmdir conf$$.dir 2>/dev/null
573
574if mkdir -p . 2>/dev/null; then
575  as_mkdir_p='mkdir -p "$as_dir"'
576else
577  test -d ./-p && rmdir ./-p
578  as_mkdir_p=false
579fi
580
581as_test_x='test -x'
582as_executable_p=as_fn_executable_p
583
584# Sed expression to map a string onto a valid CPP name.
585as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
586as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
587
588# Sed expression to map a string onto a valid variable name.
589as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
590as_tr_sh="eval sed '$as_sed_sh'" # deprecated
591
592SHELL=${CONFIG_SHELL-/bin/sh}
593
594
595test -n "$DJDIR" || exec 7<&0 </dev/null
596exec 6>&1
597
598# Name of the host.
599# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
600# so uname gets run too.
601ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
602
603#
604# Initializations.
605#
606ac_default_prefix=/usr/local
607ac_clean_files=
608ac_config_libobj_dir=.
609LIBOBJS=
610cross_compiling=no
611subdirs=
612MFLAGS=
613MAKEFLAGS=
614
615# Identity of this package.
616PACKAGE_NAME='libfontenc'
617PACKAGE_TARNAME='libfontenc'
618PACKAGE_VERSION='1.1.8'
619PACKAGE_STRING='libfontenc 1.1.8'
620PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libfontenc/-/issues'
621PACKAGE_URL=''
622
623ac_unique_file="Makefile.am"
624# Factoring default headers for most tests.
625ac_includes_default="\
626#include <stddef.h>
627#ifdef HAVE_STDIO_H
628# include <stdio.h>
629#endif
630#ifdef HAVE_STDLIB_H
631# include <stdlib.h>
632#endif
633#ifdef HAVE_STRING_H
634# include <string.h>
635#endif
636#ifdef HAVE_INTTYPES_H
637# include <inttypes.h>
638#endif
639#ifdef HAVE_STDINT_H
640# include <stdint.h>
641#endif
642#ifdef HAVE_STRINGS_H
643# include <strings.h>
644#endif
645#ifdef HAVE_SYS_TYPES_H
646# include <sys/types.h>
647#endif
648#ifdef HAVE_SYS_STAT_H
649# include <sys/stat.h>
650#endif
651#ifdef HAVE_UNISTD_H
652# include <unistd.h>
653#endif"
654
655ac_header_c_list=
656enable_year2038=no
657ac_subst_vars='am__EXEEXT_FALSE
658am__EXEEXT_TRUE
659LTLIBOBJS
660LINT_FALSE
661LINT_TRUE
662LINT_FLAGS
663LINT
664LIBOBJS
665FONTENC_LIBS
666FONTENC_CFLAGS
667ENCODINGSDIR
668FONTROOTDIR
669MAN_SUBSTS
670XORG_MAN_PAGE
671ADMIN_MAN_DIR
672DRIVER_MAN_DIR
673MISC_MAN_DIR
674FILE_MAN_DIR
675LIB_MAN_DIR
676APP_MAN_DIR
677ADMIN_MAN_SUFFIX
678DRIVER_MAN_SUFFIX
679MISC_MAN_SUFFIX
680FILE_MAN_SUFFIX
681LIB_MAN_SUFFIX
682APP_MAN_SUFFIX
683INSTALL_CMD
684PKG_CONFIG_LIBDIR
685PKG_CONFIG_PATH
686PKG_CONFIG
687CHANGELOG_CMD
688STRICT_CFLAGS
689CWARNFLAGS
690BASE_CFLAGS
691LT_SYS_LIBRARY_PATH
692OTOOL64
693OTOOL
694LIPO
695NMEDIT
696DSYMUTIL
697MANIFEST_TOOL
698RANLIB
699ac_ct_AR
700AR
701DLLTOOL
702OBJDUMP
703FILECMD
704LN_S
705NM
706ac_ct_DUMPBIN
707DUMPBIN
708LD
709FGREP
710EGREP
711GREP
712SED
713host_os
714host_vendor
715host_cpu
716host
717build_os
718build_vendor
719build_cpu
720build
721LIBTOOL
722AM_BACKSLASH
723AM_DEFAULT_VERBOSITY
724AM_DEFAULT_V
725AM_V
726CSCOPE
727ETAGS
728CTAGS
729am__fastdepCC_FALSE
730am__fastdepCC_TRUE
731CCDEPMODE
732am__nodep
733AMDEPBACKSLASH
734AMDEP_FALSE
735AMDEP_TRUE
736am__include
737DEPDIR
738am__untar
739am__tar
740AMTAR
741am__leading_dot
742SET_MAKE
743AWK
744mkdir_p
745MKDIR_P
746INSTALL_STRIP_PROGRAM
747STRIP
748install_sh
749MAKEINFO
750AUTOHEADER
751AUTOMAKE
752AUTOCONF
753ACLOCAL
754VERSION
755PACKAGE
756CYGPATH_W
757am__isrc
758INSTALL_DATA
759INSTALL_SCRIPT
760INSTALL_PROGRAM
761OBJEXT
762EXEEXT
763ac_ct_CC
764CPPFLAGS
765LDFLAGS
766CFLAGS
767CC
768target_alias
769host_alias
770build_alias
771LIBS
772ECHO_T
773ECHO_N
774ECHO_C
775DEFS
776mandir
777localedir
778libdir
779psdir
780pdfdir
781dvidir
782htmldir
783infodir
784docdir
785oldincludedir
786includedir
787runstatedir
788localstatedir
789sharedstatedir
790sysconfdir
791datadir
792datarootdir
793libexecdir
794sbindir
795bindir
796program_transform_name
797prefix
798exec_prefix
799PACKAGE_URL
800PACKAGE_BUGREPORT
801PACKAGE_STRING
802PACKAGE_VERSION
803PACKAGE_TARNAME
804PACKAGE_NAME
805PATH_SEPARATOR
806SHELL
807am__quote'
808ac_subst_files=''
809ac_user_opts='
810enable_option_checking
811enable_dependency_tracking
812enable_silent_rules
813enable_shared
814enable_static
815with_pic
816enable_fast_install
817with_aix_soname
818with_gnu_ld
819with_sysroot
820enable_libtool_lock
821enable_selective_werror
822enable_strict_compilation
823with_fontrootdir
824with_encodingsdir
825enable_largefile
826with_lint
827enable_year2038
828'
829      ac_precious_vars='build_alias
830host_alias
831target_alias
832CC
833CFLAGS
834LDFLAGS
835LIBS
836CPPFLAGS
837LT_SYS_LIBRARY_PATH
838PKG_CONFIG
839PKG_CONFIG_PATH
840PKG_CONFIG_LIBDIR
841FONTENC_CFLAGS
842FONTENC_LIBS
843LINT
844LINT_FLAGS'
845
846
847# Initialize some variables set by options.
848ac_init_help=
849ac_init_version=false
850ac_unrecognized_opts=
851ac_unrecognized_sep=
852# The variables have the same names as the options, with
853# dashes changed to underlines.
854cache_file=/dev/null
855exec_prefix=NONE
856no_create=
857no_recursion=
858prefix=NONE
859program_prefix=NONE
860program_suffix=NONE
861program_transform_name=s,x,x,
862silent=
863site=
864srcdir=
865verbose=
866x_includes=NONE
867x_libraries=NONE
868
869# Installation directory options.
870# These are left unexpanded so users can "make install exec_prefix=/foo"
871# and all the variables that are supposed to be based on exec_prefix
872# by default will actually change.
873# Use braces instead of parens because sh, perl, etc. also accept them.
874# (The list follows the same order as the GNU Coding Standards.)
875bindir='${exec_prefix}/bin'
876sbindir='${exec_prefix}/sbin'
877libexecdir='${exec_prefix}/libexec'
878datarootdir='${prefix}/share'
879datadir='${datarootdir}'
880sysconfdir='${prefix}/etc'
881sharedstatedir='${prefix}/com'
882localstatedir='${prefix}/var'
883runstatedir='${localstatedir}/run'
884includedir='${prefix}/include'
885oldincludedir='/usr/include'
886docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
887infodir='${datarootdir}/info'
888htmldir='${docdir}'
889dvidir='${docdir}'
890pdfdir='${docdir}'
891psdir='${docdir}'
892libdir='${exec_prefix}/lib'
893localedir='${datarootdir}/locale'
894mandir='${datarootdir}/man'
895
896ac_prev=
897ac_dashdash=
898for ac_option
899do
900  # If the previous option needs an argument, assign it.
901  if test -n "$ac_prev"; then
902    eval $ac_prev=\$ac_option
903    ac_prev=
904    continue
905  fi
906
907  case $ac_option in
908  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
909  *=)   ac_optarg= ;;
910  *)    ac_optarg=yes ;;
911  esac
912
913  case $ac_dashdash$ac_option in
914  --)
915    ac_dashdash=yes ;;
916
917  -bindir | --bindir | --bindi | --bind | --bin | --bi)
918    ac_prev=bindir ;;
919  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
920    bindir=$ac_optarg ;;
921
922  -build | --build | --buil | --bui | --bu)
923    ac_prev=build_alias ;;
924  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
925    build_alias=$ac_optarg ;;
926
927  -cache-file | --cache-file | --cache-fil | --cache-fi \
928  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
929    ac_prev=cache_file ;;
930  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
931  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
932    cache_file=$ac_optarg ;;
933
934  --config-cache | -C)
935    cache_file=config.cache ;;
936
937  -datadir | --datadir | --datadi | --datad)
938    ac_prev=datadir ;;
939  -datadir=* | --datadir=* | --datadi=* | --datad=*)
940    datadir=$ac_optarg ;;
941
942  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
943  | --dataroo | --dataro | --datar)
944    ac_prev=datarootdir ;;
945  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
946  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
947    datarootdir=$ac_optarg ;;
948
949  -disable-* | --disable-*)
950    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
951    # Reject names that are not valid shell variable names.
952    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
953      as_fn_error $? "invalid feature name: '$ac_useropt'"
954    ac_useropt_orig=$ac_useropt
955    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
956    case $ac_user_opts in
957      *"
958"enable_$ac_useropt"
959"*) ;;
960      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
961	 ac_unrecognized_sep=', ';;
962    esac
963    eval enable_$ac_useropt=no ;;
964
965  -docdir | --docdir | --docdi | --doc | --do)
966    ac_prev=docdir ;;
967  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
968    docdir=$ac_optarg ;;
969
970  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
971    ac_prev=dvidir ;;
972  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
973    dvidir=$ac_optarg ;;
974
975  -enable-* | --enable-*)
976    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
977    # Reject names that are not valid shell variable names.
978    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
979      as_fn_error $? "invalid feature name: '$ac_useropt'"
980    ac_useropt_orig=$ac_useropt
981    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
982    case $ac_user_opts in
983      *"
984"enable_$ac_useropt"
985"*) ;;
986      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
987	 ac_unrecognized_sep=', ';;
988    esac
989    eval enable_$ac_useropt=\$ac_optarg ;;
990
991  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
992  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
993  | --exec | --exe | --ex)
994    ac_prev=exec_prefix ;;
995  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
996  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
997  | --exec=* | --exe=* | --ex=*)
998    exec_prefix=$ac_optarg ;;
999
1000  -gas | --gas | --ga | --g)
1001    # Obsolete; use --with-gas.
1002    with_gas=yes ;;
1003
1004  -help | --help | --hel | --he | -h)
1005    ac_init_help=long ;;
1006  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1007    ac_init_help=recursive ;;
1008  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1009    ac_init_help=short ;;
1010
1011  -host | --host | --hos | --ho)
1012    ac_prev=host_alias ;;
1013  -host=* | --host=* | --hos=* | --ho=*)
1014    host_alias=$ac_optarg ;;
1015
1016  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1017    ac_prev=htmldir ;;
1018  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1019  | --ht=*)
1020    htmldir=$ac_optarg ;;
1021
1022  -includedir | --includedir | --includedi | --included | --include \
1023  | --includ | --inclu | --incl | --inc)
1024    ac_prev=includedir ;;
1025  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1026  | --includ=* | --inclu=* | --incl=* | --inc=*)
1027    includedir=$ac_optarg ;;
1028
1029  -infodir | --infodir | --infodi | --infod | --info | --inf)
1030    ac_prev=infodir ;;
1031  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1032    infodir=$ac_optarg ;;
1033
1034  -libdir | --libdir | --libdi | --libd)
1035    ac_prev=libdir ;;
1036  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1037    libdir=$ac_optarg ;;
1038
1039  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1040  | --libexe | --libex | --libe)
1041    ac_prev=libexecdir ;;
1042  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1043  | --libexe=* | --libex=* | --libe=*)
1044    libexecdir=$ac_optarg ;;
1045
1046  -localedir | --localedir | --localedi | --localed | --locale)
1047    ac_prev=localedir ;;
1048  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1049    localedir=$ac_optarg ;;
1050
1051  -localstatedir | --localstatedir | --localstatedi | --localstated \
1052  | --localstate | --localstat | --localsta | --localst | --locals)
1053    ac_prev=localstatedir ;;
1054  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1055  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1056    localstatedir=$ac_optarg ;;
1057
1058  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1059    ac_prev=mandir ;;
1060  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1061    mandir=$ac_optarg ;;
1062
1063  -nfp | --nfp | --nf)
1064    # Obsolete; use --without-fp.
1065    with_fp=no ;;
1066
1067  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1068  | --no-cr | --no-c | -n)
1069    no_create=yes ;;
1070
1071  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1072  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1073    no_recursion=yes ;;
1074
1075  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1076  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1077  | --oldin | --oldi | --old | --ol | --o)
1078    ac_prev=oldincludedir ;;
1079  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1080  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1081  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1082    oldincludedir=$ac_optarg ;;
1083
1084  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1085    ac_prev=prefix ;;
1086  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1087    prefix=$ac_optarg ;;
1088
1089  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1090  | --program-pre | --program-pr | --program-p)
1091    ac_prev=program_prefix ;;
1092  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1093  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1094    program_prefix=$ac_optarg ;;
1095
1096  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1097  | --program-suf | --program-su | --program-s)
1098    ac_prev=program_suffix ;;
1099  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1100  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1101    program_suffix=$ac_optarg ;;
1102
1103  -program-transform-name | --program-transform-name \
1104  | --program-transform-nam | --program-transform-na \
1105  | --program-transform-n | --program-transform- \
1106  | --program-transform | --program-transfor \
1107  | --program-transfo | --program-transf \
1108  | --program-trans | --program-tran \
1109  | --progr-tra | --program-tr | --program-t)
1110    ac_prev=program_transform_name ;;
1111  -program-transform-name=* | --program-transform-name=* \
1112  | --program-transform-nam=* | --program-transform-na=* \
1113  | --program-transform-n=* | --program-transform-=* \
1114  | --program-transform=* | --program-transfor=* \
1115  | --program-transfo=* | --program-transf=* \
1116  | --program-trans=* | --program-tran=* \
1117  | --progr-tra=* | --program-tr=* | --program-t=*)
1118    program_transform_name=$ac_optarg ;;
1119
1120  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1121    ac_prev=pdfdir ;;
1122  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1123    pdfdir=$ac_optarg ;;
1124
1125  -psdir | --psdir | --psdi | --psd | --ps)
1126    ac_prev=psdir ;;
1127  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1128    psdir=$ac_optarg ;;
1129
1130  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1131  | -silent | --silent | --silen | --sile | --sil)
1132    silent=yes ;;
1133
1134  -runstatedir | --runstatedir | --runstatedi | --runstated \
1135  | --runstate | --runstat | --runsta | --runst | --runs \
1136  | --run | --ru | --r)
1137    ac_prev=runstatedir ;;
1138  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1139  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1140  | --run=* | --ru=* | --r=*)
1141    runstatedir=$ac_optarg ;;
1142
1143  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1144    ac_prev=sbindir ;;
1145  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1146  | --sbi=* | --sb=*)
1147    sbindir=$ac_optarg ;;
1148
1149  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1150  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1151  | --sharedst | --shareds | --shared | --share | --shar \
1152  | --sha | --sh)
1153    ac_prev=sharedstatedir ;;
1154  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1155  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1156  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1157  | --sha=* | --sh=*)
1158    sharedstatedir=$ac_optarg ;;
1159
1160  -site | --site | --sit)
1161    ac_prev=site ;;
1162  -site=* | --site=* | --sit=*)
1163    site=$ac_optarg ;;
1164
1165  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1166    ac_prev=srcdir ;;
1167  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1168    srcdir=$ac_optarg ;;
1169
1170  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1171  | --syscon | --sysco | --sysc | --sys | --sy)
1172    ac_prev=sysconfdir ;;
1173  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1174  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1175    sysconfdir=$ac_optarg ;;
1176
1177  -target | --target | --targe | --targ | --tar | --ta | --t)
1178    ac_prev=target_alias ;;
1179  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1180    target_alias=$ac_optarg ;;
1181
1182  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1183    verbose=yes ;;
1184
1185  -version | --version | --versio | --versi | --vers | -V)
1186    ac_init_version=: ;;
1187
1188  -with-* | --with-*)
1189    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1190    # Reject names that are not valid shell variable names.
1191    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1192      as_fn_error $? "invalid package name: '$ac_useropt'"
1193    ac_useropt_orig=$ac_useropt
1194    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1195    case $ac_user_opts in
1196      *"
1197"with_$ac_useropt"
1198"*) ;;
1199      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1200	 ac_unrecognized_sep=', ';;
1201    esac
1202    eval with_$ac_useropt=\$ac_optarg ;;
1203
1204  -without-* | --without-*)
1205    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1206    # Reject names that are not valid shell variable names.
1207    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1208      as_fn_error $? "invalid package name: '$ac_useropt'"
1209    ac_useropt_orig=$ac_useropt
1210    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1211    case $ac_user_opts in
1212      *"
1213"with_$ac_useropt"
1214"*) ;;
1215      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1216	 ac_unrecognized_sep=', ';;
1217    esac
1218    eval with_$ac_useropt=no ;;
1219
1220  --x)
1221    # Obsolete; use --with-x.
1222    with_x=yes ;;
1223
1224  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1225  | --x-incl | --x-inc | --x-in | --x-i)
1226    ac_prev=x_includes ;;
1227  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1228  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1229    x_includes=$ac_optarg ;;
1230
1231  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1232  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1233    ac_prev=x_libraries ;;
1234  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1235  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1236    x_libraries=$ac_optarg ;;
1237
1238  -*) as_fn_error $? "unrecognized option: '$ac_option'
1239Try '$0 --help' for more information"
1240    ;;
1241
1242  *=*)
1243    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1244    # Reject names that are not valid shell variable names.
1245    case $ac_envvar in #(
1246      '' | [0-9]* | *[!_$as_cr_alnum]* )
1247      as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1248    esac
1249    eval $ac_envvar=\$ac_optarg
1250    export $ac_envvar ;;
1251
1252  *)
1253    # FIXME: should be removed in autoconf 3.0.
1254    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1255    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1256      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1257    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1258    ;;
1259
1260  esac
1261done
1262
1263if test -n "$ac_prev"; then
1264  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1265  as_fn_error $? "missing argument to $ac_option"
1266fi
1267
1268if test -n "$ac_unrecognized_opts"; then
1269  case $enable_option_checking in
1270    no) ;;
1271    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1272    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1273  esac
1274fi
1275
1276# Check all directory arguments for consistency.
1277for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1278		datadir sysconfdir sharedstatedir localstatedir includedir \
1279		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1280		libdir localedir mandir runstatedir
1281do
1282  eval ac_val=\$$ac_var
1283  # Remove trailing slashes.
1284  case $ac_val in
1285    */ )
1286      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1287      eval $ac_var=\$ac_val;;
1288  esac
1289  # Be sure to have absolute directory names.
1290  case $ac_val in
1291    [\\/$]* | ?:[\\/]* )  continue;;
1292    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1293  esac
1294  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1295done
1296
1297# There might be people who depend on the old broken behavior: '$host'
1298# used to hold the argument of --host etc.
1299# FIXME: To remove some day.
1300build=$build_alias
1301host=$host_alias
1302target=$target_alias
1303
1304# FIXME: To remove some day.
1305if test "x$host_alias" != x; then
1306  if test "x$build_alias" = x; then
1307    cross_compiling=maybe
1308  elif test "x$build_alias" != "x$host_alias"; then
1309    cross_compiling=yes
1310  fi
1311fi
1312
1313ac_tool_prefix=
1314test -n "$host_alias" && ac_tool_prefix=$host_alias-
1315
1316test "$silent" = yes && exec 6>/dev/null
1317
1318
1319ac_pwd=`pwd` && test -n "$ac_pwd" &&
1320ac_ls_di=`ls -di .` &&
1321ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1322  as_fn_error $? "working directory cannot be determined"
1323test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1324  as_fn_error $? "pwd does not report name of working directory"
1325
1326
1327# Find the source files, if location was not specified.
1328if test -z "$srcdir"; then
1329  ac_srcdir_defaulted=yes
1330  # Try the directory containing this script, then the parent directory.
1331  ac_confdir=`$as_dirname -- "$as_myself" ||
1332$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1333	 X"$as_myself" : 'X\(//\)[^/]' \| \
1334	 X"$as_myself" : 'X\(//\)$' \| \
1335	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1336printf "%s\n" X"$as_myself" |
1337    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1338	    s//\1/
1339	    q
1340	  }
1341	  /^X\(\/\/\)[^/].*/{
1342	    s//\1/
1343	    q
1344	  }
1345	  /^X\(\/\/\)$/{
1346	    s//\1/
1347	    q
1348	  }
1349	  /^X\(\/\).*/{
1350	    s//\1/
1351	    q
1352	  }
1353	  s/.*/./; q'`
1354  srcdir=$ac_confdir
1355  if test ! -r "$srcdir/$ac_unique_file"; then
1356    srcdir=..
1357  fi
1358else
1359  ac_srcdir_defaulted=no
1360fi
1361if test ! -r "$srcdir/$ac_unique_file"; then
1362  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1363  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1364fi
1365ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1366ac_abs_confdir=`(
1367	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1368	pwd)`
1369# When building in place, set srcdir=.
1370if test "$ac_abs_confdir" = "$ac_pwd"; then
1371  srcdir=.
1372fi
1373# Remove unnecessary trailing slashes from srcdir.
1374# Double slashes in file names in object file debugging info
1375# mess up M-x gdb in Emacs.
1376case $srcdir in
1377*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1378esac
1379for ac_var in $ac_precious_vars; do
1380  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1381  eval ac_env_${ac_var}_value=\$${ac_var}
1382  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1383  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1384done
1385
1386#
1387# Report the --help message.
1388#
1389if test "$ac_init_help" = "long"; then
1390  # Omit some internal or obsolete options to make the list less imposing.
1391  # This message is too long to be a string in the A/UX 3.1 sh.
1392  cat <<_ACEOF
1393'configure' configures libfontenc 1.1.8 to adapt to many kinds of systems.
1394
1395Usage: $0 [OPTION]... [VAR=VALUE]...
1396
1397To assign environment variables (e.g., CC, CFLAGS...), specify them as
1398VAR=VALUE.  See below for descriptions of some of the useful variables.
1399
1400Defaults for the options are specified in brackets.
1401
1402Configuration:
1403  -h, --help              display this help and exit
1404      --help=short        display options specific to this package
1405      --help=recursive    display the short help of all the included packages
1406  -V, --version           display version information and exit
1407  -q, --quiet, --silent   do not print 'checking ...' messages
1408      --cache-file=FILE   cache test results in FILE [disabled]
1409  -C, --config-cache      alias for '--cache-file=config.cache'
1410  -n, --no-create         do not create output files
1411      --srcdir=DIR        find the sources in DIR [configure dir or '..']
1412
1413Installation directories:
1414  --prefix=PREFIX         install architecture-independent files in PREFIX
1415                          [$ac_default_prefix]
1416  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1417                          [PREFIX]
1418
1419By default, 'make install' will install all the files in
1420'$ac_default_prefix/bin', '$ac_default_prefix/lib' etc.  You can specify
1421an installation prefix other than '$ac_default_prefix' using '--prefix',
1422for instance '--prefix=\$HOME'.
1423
1424For better control, use the options below.
1425
1426Fine tuning of the installation directories:
1427  --bindir=DIR            user executables [EPREFIX/bin]
1428  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1429  --libexecdir=DIR        program executables [EPREFIX/libexec]
1430  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1431  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1432  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1433  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1434  --libdir=DIR            object code libraries [EPREFIX/lib]
1435  --includedir=DIR        C header files [PREFIX/include]
1436  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1437  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1438  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1439  --infodir=DIR           info documentation [DATAROOTDIR/info]
1440  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1441  --mandir=DIR            man documentation [DATAROOTDIR/man]
1442  --docdir=DIR            documentation root [DATAROOTDIR/doc/libfontenc]
1443  --htmldir=DIR           html documentation [DOCDIR]
1444  --dvidir=DIR            dvi documentation [DOCDIR]
1445  --pdfdir=DIR            pdf documentation [DOCDIR]
1446  --psdir=DIR             ps documentation [DOCDIR]
1447_ACEOF
1448
1449  cat <<\_ACEOF
1450
1451Program names:
1452  --program-prefix=PREFIX            prepend PREFIX to installed program names
1453  --program-suffix=SUFFIX            append SUFFIX to installed program names
1454  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1455
1456System types:
1457  --build=BUILD     configure for building on BUILD [guessed]
1458  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1459_ACEOF
1460fi
1461
1462if test -n "$ac_init_help"; then
1463  case $ac_init_help in
1464     short | recursive ) echo "Configuration of libfontenc 1.1.8:";;
1465   esac
1466  cat <<\_ACEOF
1467
1468Optional Features:
1469  --disable-option-checking  ignore unrecognized --enable/--with options
1470  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1471  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1472  --enable-dependency-tracking
1473                          do not reject slow dependency extractors
1474  --disable-dependency-tracking
1475                          speeds up one-time build
1476  --enable-silent-rules   less verbose build output (undo: "make V=1")
1477  --disable-silent-rules  verbose build output (undo: "make V=0")
1478  --enable-shared[=PKGS]  build shared libraries [default=yes]
1479  --enable-static[=PKGS]  build static libraries [default=yes]
1480  --enable-fast-install[=PKGS]
1481                          optimize for fast installation [default=yes]
1482  --disable-libtool-lock  avoid locking (might break parallel builds)
1483  --disable-selective-werror
1484                          Turn off selective compiler errors. (default:
1485                          enabled)
1486  --enable-strict-compilation
1487                          Enable all warnings from compiler and make them
1488                          errors (default: disabled)
1489  --disable-largefile     omit support for large files
1490  --enable-year2038       support timestamps after 2038
1491
1492Optional Packages:
1493  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1494  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1495  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1496                          both]
1497  --with-aix-soname=aix|svr4|both
1498                          shared library versioning (aka "SONAME") variant to
1499                          provide on AIX, [default=aix].
1500  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1501  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1502                          compiler's sysroot if not specified).
1503  --with-fontrootdir=DIR  Path to root directory for font files
1504  --with-encodingsdir=DIR Path to encodings files [FONTROOTDIR/encodings]
1505  --with-lint             Use a lint-style source code checker (default:
1506                          disabled)
1507
1508Some influential environment variables:
1509  CC          C compiler command
1510  CFLAGS      C compiler flags
1511  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1512              nonstandard directory <lib dir>
1513  LIBS        libraries to pass to the linker, e.g. -l<library>
1514  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1515              you have headers in a nonstandard directory <include dir>
1516  LT_SYS_LIBRARY_PATH
1517              User-defined run-time library search path.
1518  PKG_CONFIG  path to pkg-config utility
1519  PKG_CONFIG_PATH
1520              directories to add to pkg-config's search path
1521  PKG_CONFIG_LIBDIR
1522              path overriding pkg-config's built-in search path
1523  FONTENC_CFLAGS
1524              C compiler flags for FONTENC, overriding pkg-config
1525  FONTENC_LIBS
1526              linker flags for FONTENC, overriding pkg-config
1527  LINT        Path to a lint-style command
1528  LINT_FLAGS  Flags for the lint-style command
1529
1530Use these variables to override the choices made by 'configure' or to help
1531it to find libraries and programs with nonstandard names/locations.
1532
1533Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libfontenc/-/issues>.
1534_ACEOF
1535ac_status=$?
1536fi
1537
1538if test "$ac_init_help" = "recursive"; then
1539  # If there are subdirs, report their specific --help.
1540  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1541    test -d "$ac_dir" ||
1542      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1543      continue
1544    ac_builddir=.
1545
1546case "$ac_dir" in
1547.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1548*)
1549  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1550  # A ".." for each directory in $ac_dir_suffix.
1551  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1552  case $ac_top_builddir_sub in
1553  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1554  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1555  esac ;;
1556esac
1557ac_abs_top_builddir=$ac_pwd
1558ac_abs_builddir=$ac_pwd$ac_dir_suffix
1559# for backward compatibility:
1560ac_top_builddir=$ac_top_build_prefix
1561
1562case $srcdir in
1563  .)  # We are building in place.
1564    ac_srcdir=.
1565    ac_top_srcdir=$ac_top_builddir_sub
1566    ac_abs_top_srcdir=$ac_pwd ;;
1567  [\\/]* | ?:[\\/]* )  # Absolute name.
1568    ac_srcdir=$srcdir$ac_dir_suffix;
1569    ac_top_srcdir=$srcdir
1570    ac_abs_top_srcdir=$srcdir ;;
1571  *) # Relative name.
1572    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1573    ac_top_srcdir=$ac_top_build_prefix$srcdir
1574    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1575esac
1576ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1577
1578    cd "$ac_dir" || { ac_status=$?; continue; }
1579    # Check for configure.gnu first; this name is used for a wrapper for
1580    # Metaconfig's "Configure" on case-insensitive file systems.
1581    if test -f "$ac_srcdir/configure.gnu"; then
1582      echo &&
1583      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1584    elif test -f "$ac_srcdir/configure"; then
1585      echo &&
1586      $SHELL "$ac_srcdir/configure" --help=recursive
1587    else
1588      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1589    fi || ac_status=$?
1590    cd "$ac_pwd" || { ac_status=$?; break; }
1591  done
1592fi
1593
1594test -n "$ac_init_help" && exit $ac_status
1595if $ac_init_version; then
1596  cat <<\_ACEOF
1597libfontenc configure 1.1.8
1598generated by GNU Autoconf 2.72
1599
1600Copyright (C) 2023 Free Software Foundation, Inc.
1601This configure script is free software; the Free Software Foundation
1602gives unlimited permission to copy, distribute and modify it.
1603_ACEOF
1604  exit
1605fi
1606
1607## ------------------------ ##
1608## Autoconf initialization. ##
1609## ------------------------ ##
1610
1611# ac_fn_c_try_compile LINENO
1612# --------------------------
1613# Try to compile conftest.$ac_ext, and return whether this succeeded.
1614ac_fn_c_try_compile ()
1615{
1616  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1617  rm -f conftest.$ac_objext conftest.beam
1618  if { { ac_try="$ac_compile"
1619case "(($ac_try" in
1620  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1621  *) ac_try_echo=$ac_try;;
1622esac
1623eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1624printf "%s\n" "$ac_try_echo"; } >&5
1625  (eval "$ac_compile") 2>conftest.err
1626  ac_status=$?
1627  if test -s conftest.err; then
1628    grep -v '^ *+' conftest.err >conftest.er1
1629    cat conftest.er1 >&5
1630    mv -f conftest.er1 conftest.err
1631  fi
1632  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1633  test $ac_status = 0; } && {
1634	 test -z "$ac_c_werror_flag" ||
1635	 test ! -s conftest.err
1636       } && test -s conftest.$ac_objext
1637then :
1638  ac_retval=0
1639else case e in #(
1640  e) printf "%s\n" "$as_me: failed program was:" >&5
1641sed 's/^/| /' conftest.$ac_ext >&5
1642
1643	ac_retval=1 ;;
1644esac
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_check_header_compile LINENO HEADER VAR INCLUDES
1652# -------------------------------------------------------
1653# Tests whether HEADER exists and can be compiled using the include files in
1654# INCLUDES, setting the cache variable VAR accordingly.
1655ac_fn_c_check_header_compile ()
1656{
1657  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1658  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1659printf %s "checking for $2... " >&6; }
1660if eval test \${$3+y}
1661then :
1662  printf %s "(cached) " >&6
1663else case e in #(
1664  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1665/* end confdefs.h.  */
1666$4
1667#include <$2>
1668_ACEOF
1669if ac_fn_c_try_compile "$LINENO"
1670then :
1671  eval "$3=yes"
1672else case e in #(
1673  e) eval "$3=no" ;;
1674esac
1675fi
1676rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1677esac
1678fi
1679eval ac_res=\$$3
1680	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1681printf "%s\n" "$ac_res" >&6; }
1682  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1683
1684} # ac_fn_c_check_header_compile
1685
1686# ac_fn_c_try_link LINENO
1687# -----------------------
1688# Try to link conftest.$ac_ext, and return whether this succeeded.
1689ac_fn_c_try_link ()
1690{
1691  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1692  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1693  if { { ac_try="$ac_link"
1694case "(($ac_try" in
1695  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1696  *) ac_try_echo=$ac_try;;
1697esac
1698eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1699printf "%s\n" "$ac_try_echo"; } >&5
1700  (eval "$ac_link") 2>conftest.err
1701  ac_status=$?
1702  if test -s conftest.err; then
1703    grep -v '^ *+' conftest.err >conftest.er1
1704    cat conftest.er1 >&5
1705    mv -f conftest.er1 conftest.err
1706  fi
1707  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1708  test $ac_status = 0; } && {
1709	 test -z "$ac_c_werror_flag" ||
1710	 test ! -s conftest.err
1711       } && test -s conftest$ac_exeext && {
1712	 test "$cross_compiling" = yes ||
1713	 test -x conftest$ac_exeext
1714       }
1715then :
1716  ac_retval=0
1717else case e in #(
1718  e) printf "%s\n" "$as_me: failed program was:" >&5
1719sed 's/^/| /' conftest.$ac_ext >&5
1720
1721	ac_retval=1 ;;
1722esac
1723fi
1724  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1725  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1726  # interfere with the next link command; also delete a directory that is
1727  # left behind by Apple's compiler.  We do this before executing the actions.
1728  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1729  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1730  as_fn_set_status $ac_retval
1731
1732} # ac_fn_c_try_link
1733
1734# ac_fn_c_check_func LINENO FUNC VAR
1735# ----------------------------------
1736# Tests whether FUNC exists, setting the cache variable VAR accordingly
1737ac_fn_c_check_func ()
1738{
1739  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1740  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1741printf %s "checking for $2... " >&6; }
1742if eval test \${$3+y}
1743then :
1744  printf %s "(cached) " >&6
1745else case e in #(
1746  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1747/* end confdefs.h.  */
1748/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1749   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1750#define $2 innocuous_$2
1751
1752/* System header to define __stub macros and hopefully few prototypes,
1753   which can conflict with char $2 (void); below.  */
1754
1755#include <limits.h>
1756#undef $2
1757
1758/* Override any GCC internal prototype to avoid an error.
1759   Use char because int might match the return type of a GCC
1760   builtin and then its argument prototype would still apply.  */
1761#ifdef __cplusplus
1762extern "C"
1763#endif
1764char $2 (void);
1765/* The GNU C library defines this for functions which it implements
1766    to always fail with ENOSYS.  Some functions are actually named
1767    something starting with __ and the normal name is an alias.  */
1768#if defined __stub_$2 || defined __stub___$2
1769choke me
1770#endif
1771
1772int
1773main (void)
1774{
1775return $2 ();
1776  ;
1777  return 0;
1778}
1779_ACEOF
1780if ac_fn_c_try_link "$LINENO"
1781then :
1782  eval "$3=yes"
1783else case e in #(
1784  e) eval "$3=no" ;;
1785esac
1786fi
1787rm -f core conftest.err conftest.$ac_objext conftest.beam \
1788    conftest$ac_exeext conftest.$ac_ext ;;
1789esac
1790fi
1791eval ac_res=\$$3
1792	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1793printf "%s\n" "$ac_res" >&6; }
1794  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1795
1796} # ac_fn_c_check_func
1797
1798# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1799# ------------------------------------------------------------------
1800# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1801# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1802ac_fn_check_decl ()
1803{
1804  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1805  as_decl_name=`echo $2|sed 's/ *(.*//'`
1806  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1807printf %s "checking whether $as_decl_name is declared... " >&6; }
1808if eval test \${$3+y}
1809then :
1810  printf %s "(cached) " >&6
1811else case e in #(
1812  e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1813  eval ac_save_FLAGS=\$$6
1814  as_fn_append $6 " $5"
1815  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1816/* end confdefs.h.  */
1817$4
1818int
1819main (void)
1820{
1821#ifndef $as_decl_name
1822#ifdef __cplusplus
1823  (void) $as_decl_use;
1824#else
1825  (void) $as_decl_name;
1826#endif
1827#endif
1828
1829  ;
1830  return 0;
1831}
1832_ACEOF
1833if ac_fn_c_try_compile "$LINENO"
1834then :
1835  eval "$3=yes"
1836else case e in #(
1837  e) eval "$3=no" ;;
1838esac
1839fi
1840rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1841  eval $6=\$ac_save_FLAGS
1842 ;;
1843esac
1844fi
1845eval ac_res=\$$3
1846	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1847printf "%s\n" "$ac_res" >&6; }
1848  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1849
1850} # ac_fn_check_decl
1851ac_configure_args_raw=
1852for ac_arg
1853do
1854  case $ac_arg in
1855  *\'*)
1856    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1857  esac
1858  as_fn_append ac_configure_args_raw " '$ac_arg'"
1859done
1860
1861case $ac_configure_args_raw in
1862  *$as_nl*)
1863    ac_safe_unquote= ;;
1864  *)
1865    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
1866    ac_unsafe_a="$ac_unsafe_z#~"
1867    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1868    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1869esac
1870
1871cat >config.log <<_ACEOF
1872This file contains any messages produced by compilers while
1873running configure, to aid debugging if configure makes a mistake.
1874
1875It was created by libfontenc $as_me 1.1.8, which was
1876generated by GNU Autoconf 2.72.  Invocation command line was
1877
1878  $ $0$ac_configure_args_raw
1879
1880_ACEOF
1881exec 5>>config.log
1882{
1883cat <<_ASUNAME
1884## --------- ##
1885## Platform. ##
1886## --------- ##
1887
1888hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1889uname -m = `(uname -m) 2>/dev/null || echo unknown`
1890uname -r = `(uname -r) 2>/dev/null || echo unknown`
1891uname -s = `(uname -s) 2>/dev/null || echo unknown`
1892uname -v = `(uname -v) 2>/dev/null || echo unknown`
1893
1894/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1895/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1896
1897/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1898/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1899/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1900/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1901/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1902/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1903/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1904
1905_ASUNAME
1906
1907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1908for as_dir in $PATH
1909do
1910  IFS=$as_save_IFS
1911  case $as_dir in #(((
1912    '') as_dir=./ ;;
1913    */) ;;
1914    *) as_dir=$as_dir/ ;;
1915  esac
1916    printf "%s\n" "PATH: $as_dir"
1917  done
1918IFS=$as_save_IFS
1919
1920} >&5
1921
1922cat >&5 <<_ACEOF
1923
1924
1925## ----------- ##
1926## Core tests. ##
1927## ----------- ##
1928
1929_ACEOF
1930
1931
1932# Keep a trace of the command line.
1933# Strip out --no-create and --no-recursion so they do not pile up.
1934# Strip out --silent because we don't want to record it for future runs.
1935# Also quote any args containing shell meta-characters.
1936# Make two passes to allow for proper duplicate-argument suppression.
1937ac_configure_args=
1938ac_configure_args0=
1939ac_configure_args1=
1940ac_must_keep_next=false
1941for ac_pass in 1 2
1942do
1943  for ac_arg
1944  do
1945    case $ac_arg in
1946    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1947    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1948    | -silent | --silent | --silen | --sile | --sil)
1949      continue ;;
1950    *\'*)
1951      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1952    esac
1953    case $ac_pass in
1954    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1955    2)
1956      as_fn_append ac_configure_args1 " '$ac_arg'"
1957      if test $ac_must_keep_next = true; then
1958	ac_must_keep_next=false # Got value, back to normal.
1959      else
1960	case $ac_arg in
1961	  *=* | --config-cache | -C | -disable-* | --disable-* \
1962	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1963	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1964	  | -with-* | --with-* | -without-* | --without-* | --x)
1965	    case "$ac_configure_args0 " in
1966	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1967	    esac
1968	    ;;
1969	  -* ) ac_must_keep_next=true ;;
1970	esac
1971      fi
1972      as_fn_append ac_configure_args " '$ac_arg'"
1973      ;;
1974    esac
1975  done
1976done
1977{ ac_configure_args0=; unset ac_configure_args0;}
1978{ ac_configure_args1=; unset ac_configure_args1;}
1979
1980# When interrupted or exit'd, cleanup temporary files, and complete
1981# config.log.  We remove comments because anyway the quotes in there
1982# would cause problems or look ugly.
1983# WARNING: Use '\'' to represent an apostrophe within the trap.
1984# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1985trap 'exit_status=$?
1986  # Sanitize IFS.
1987  IFS=" ""	$as_nl"
1988  # Save into config.log some information that might help in debugging.
1989  {
1990    echo
1991
1992    printf "%s\n" "## ---------------- ##
1993## Cache variables. ##
1994## ---------------- ##"
1995    echo
1996    # The following way of writing the cache mishandles newlines in values,
1997(
1998  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1999    eval ac_val=\$$ac_var
2000    case $ac_val in #(
2001    *${as_nl}*)
2002      case $ac_var in #(
2003      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2004printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2005      esac
2006      case $ac_var in #(
2007      _ | IFS | as_nl) ;; #(
2008      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2009      *) { eval $ac_var=; unset $ac_var;} ;;
2010      esac ;;
2011    esac
2012  done
2013  (set) 2>&1 |
2014    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2015    *${as_nl}ac_space=\ *)
2016      sed -n \
2017	"s/'\''/'\''\\\\'\'''\''/g;
2018	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2019      ;; #(
2020    *)
2021      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2022      ;;
2023    esac |
2024    sort
2025)
2026    echo
2027
2028    printf "%s\n" "## ----------------- ##
2029## Output variables. ##
2030## ----------------- ##"
2031    echo
2032    for ac_var in $ac_subst_vars
2033    do
2034      eval ac_val=\$$ac_var
2035      case $ac_val in
2036      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2037      esac
2038      printf "%s\n" "$ac_var='\''$ac_val'\''"
2039    done | sort
2040    echo
2041
2042    if test -n "$ac_subst_files"; then
2043      printf "%s\n" "## ------------------- ##
2044## File substitutions. ##
2045## ------------------- ##"
2046      echo
2047      for ac_var in $ac_subst_files
2048      do
2049	eval ac_val=\$$ac_var
2050	case $ac_val in
2051	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2052	esac
2053	printf "%s\n" "$ac_var='\''$ac_val'\''"
2054      done | sort
2055      echo
2056    fi
2057
2058    if test -s confdefs.h; then
2059      printf "%s\n" "## ----------- ##
2060## confdefs.h. ##
2061## ----------- ##"
2062      echo
2063      cat confdefs.h
2064      echo
2065    fi
2066    test "$ac_signal" != 0 &&
2067      printf "%s\n" "$as_me: caught signal $ac_signal"
2068    printf "%s\n" "$as_me: exit $exit_status"
2069  } >&5
2070  rm -f core *.core core.conftest.* &&
2071    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2072    exit $exit_status
2073' 0
2074for ac_signal in 1 2 13 15; do
2075  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2076done
2077ac_signal=0
2078
2079# confdefs.h avoids OS command line length limits that DEFS can exceed.
2080rm -f -r conftest* confdefs.h
2081
2082printf "%s\n" "/* confdefs.h */" > confdefs.h
2083
2084# Predefined preprocessor variables.
2085
2086printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2087
2088printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2089
2090printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2091
2092printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2093
2094printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2095
2096printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2097
2098
2099# Let the site file select an alternate cache file if it wants to.
2100# Prefer an explicitly selected file to automatically selected ones.
2101if test -n "$CONFIG_SITE"; then
2102  ac_site_files="$CONFIG_SITE"
2103elif test "x$prefix" != xNONE; then
2104  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2105else
2106  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2107fi
2108
2109for ac_site_file in $ac_site_files
2110do
2111  case $ac_site_file in #(
2112  */*) :
2113     ;; #(
2114  *) :
2115    ac_site_file=./$ac_site_file ;;
2116esac
2117  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2118    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2119printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2120    sed 's/^/| /' "$ac_site_file" >&5
2121    . "$ac_site_file" \
2122      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2123printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2124as_fn_error $? "failed to load site script $ac_site_file
2125See 'config.log' for more details" "$LINENO" 5; }
2126  fi
2127done
2128
2129if test -r "$cache_file"; then
2130  # Some versions of bash will fail to source /dev/null (special files
2131  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2132  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2133    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2134printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2135    case $cache_file in
2136      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2137      *)                      . "./$cache_file";;
2138    esac
2139  fi
2140else
2141  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2142printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2143  >$cache_file
2144fi
2145
2146as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2147# Test code for whether the C compiler supports C89 (global declarations)
2148ac_c_conftest_c89_globals='
2149/* Does the compiler advertise C89 conformance?
2150   Do not test the value of __STDC__, because some compilers set it to 0
2151   while being otherwise adequately conformant. */
2152#if !defined __STDC__
2153# error "Compiler does not advertise C89 conformance"
2154#endif
2155
2156#include <stddef.h>
2157#include <stdarg.h>
2158struct stat;
2159/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2160struct buf { int x; };
2161struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2162static char *e (char **p, int i)
2163{
2164  return p[i];
2165}
2166static char *f (char * (*g) (char **, int), char **p, ...)
2167{
2168  char *s;
2169  va_list v;
2170  va_start (v,p);
2171  s = g (p, va_arg (v,int));
2172  va_end (v);
2173  return s;
2174}
2175
2176/* C89 style stringification. */
2177#define noexpand_stringify(a) #a
2178const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2179
2180/* C89 style token pasting.  Exercises some of the corner cases that
2181   e.g. old MSVC gets wrong, but not very hard. */
2182#define noexpand_concat(a,b) a##b
2183#define expand_concat(a,b) noexpand_concat(a,b)
2184extern int vA;
2185extern int vbee;
2186#define aye A
2187#define bee B
2188int *pvA = &expand_concat(v,aye);
2189int *pvbee = &noexpand_concat(v,bee);
2190
2191/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2192   function prototypes and stuff, but not \xHH hex character constants.
2193   These do not provoke an error unfortunately, instead are silently treated
2194   as an "x".  The following induces an error, until -std is added to get
2195   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2196   array size at least.  It is necessary to write \x00 == 0 to get something
2197   that is true only with -std.  */
2198int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2199
2200/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2201   inside strings and character constants.  */
2202#define FOO(x) '\''x'\''
2203int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2204
2205int test (int i, double x);
2206struct s1 {int (*f) (int a);};
2207struct s2 {int (*f) (double a);};
2208int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2209               int, int);'
2210
2211# Test code for whether the C compiler supports C89 (body of main).
2212ac_c_conftest_c89_main='
2213ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2214'
2215
2216# Test code for whether the C compiler supports C99 (global declarations)
2217ac_c_conftest_c99_globals='
2218/* Does the compiler advertise C99 conformance? */
2219#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2220# error "Compiler does not advertise C99 conformance"
2221#endif
2222
2223// See if C++-style comments work.
2224
2225#include <stdbool.h>
2226extern int puts (const char *);
2227extern int printf (const char *, ...);
2228extern int dprintf (int, const char *, ...);
2229extern void *malloc (size_t);
2230extern void free (void *);
2231
2232// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2233// dprintf is used instead of fprintf to avoid needing to declare
2234// FILE and stderr.
2235#define debug(...) dprintf (2, __VA_ARGS__)
2236#define showlist(...) puts (#__VA_ARGS__)
2237#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2238static void
2239test_varargs_macros (void)
2240{
2241  int x = 1234;
2242  int y = 5678;
2243  debug ("Flag");
2244  debug ("X = %d\n", x);
2245  showlist (The first, second, and third items.);
2246  report (x>y, "x is %d but y is %d", x, y);
2247}
2248
2249// Check long long types.
2250#define BIG64 18446744073709551615ull
2251#define BIG32 4294967295ul
2252#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2253#if !BIG_OK
2254  #error "your preprocessor is broken"
2255#endif
2256#if BIG_OK
2257#else
2258  #error "your preprocessor is broken"
2259#endif
2260static long long int bignum = -9223372036854775807LL;
2261static unsigned long long int ubignum = BIG64;
2262
2263struct incomplete_array
2264{
2265  int datasize;
2266  double data[];
2267};
2268
2269struct named_init {
2270  int number;
2271  const wchar_t *name;
2272  double average;
2273};
2274
2275typedef const char *ccp;
2276
2277static inline int
2278test_restrict (ccp restrict text)
2279{
2280  // Iterate through items via the restricted pointer.
2281  // Also check for declarations in for loops.
2282  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2283    continue;
2284  return 0;
2285}
2286
2287// Check varargs and va_copy.
2288static bool
2289test_varargs (const char *format, ...)
2290{
2291  va_list args;
2292  va_start (args, format);
2293  va_list args_copy;
2294  va_copy (args_copy, args);
2295
2296  const char *str = "";
2297  int number = 0;
2298  float fnumber = 0;
2299
2300  while (*format)
2301    {
2302      switch (*format++)
2303	{
2304	case '\''s'\'': // string
2305	  str = va_arg (args_copy, const char *);
2306	  break;
2307	case '\''d'\'': // int
2308	  number = va_arg (args_copy, int);
2309	  break;
2310	case '\''f'\'': // float
2311	  fnumber = va_arg (args_copy, double);
2312	  break;
2313	default:
2314	  break;
2315	}
2316    }
2317  va_end (args_copy);
2318  va_end (args);
2319
2320  return *str && number && fnumber;
2321}
2322'
2323
2324# Test code for whether the C compiler supports C99 (body of main).
2325ac_c_conftest_c99_main='
2326  // Check bool.
2327  _Bool success = false;
2328  success |= (argc != 0);
2329
2330  // Check restrict.
2331  if (test_restrict ("String literal") == 0)
2332    success = true;
2333  char *restrict newvar = "Another string";
2334
2335  // Check varargs.
2336  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2337  test_varargs_macros ();
2338
2339  // Check flexible array members.
2340  struct incomplete_array *ia =
2341    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2342  ia->datasize = 10;
2343  for (int i = 0; i < ia->datasize; ++i)
2344    ia->data[i] = i * 1.234;
2345  // Work around memory leak warnings.
2346  free (ia);
2347
2348  // Check named initializers.
2349  struct named_init ni = {
2350    .number = 34,
2351    .name = L"Test wide string",
2352    .average = 543.34343,
2353  };
2354
2355  ni.number = 58;
2356
2357  int dynamic_array[ni.number];
2358  dynamic_array[0] = argv[0][0];
2359  dynamic_array[ni.number - 1] = 543;
2360
2361  // work around unused variable warnings
2362  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2363	 || dynamic_array[ni.number - 1] != 543);
2364'
2365
2366# Test code for whether the C compiler supports C11 (global declarations)
2367ac_c_conftest_c11_globals='
2368/* Does the compiler advertise C11 conformance? */
2369#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2370# error "Compiler does not advertise C11 conformance"
2371#endif
2372
2373// Check _Alignas.
2374char _Alignas (double) aligned_as_double;
2375char _Alignas (0) no_special_alignment;
2376extern char aligned_as_int;
2377char _Alignas (0) _Alignas (int) aligned_as_int;
2378
2379// Check _Alignof.
2380enum
2381{
2382  int_alignment = _Alignof (int),
2383  int_array_alignment = _Alignof (int[100]),
2384  char_alignment = _Alignof (char)
2385};
2386_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2387
2388// Check _Noreturn.
2389int _Noreturn does_not_return (void) { for (;;) continue; }
2390
2391// Check _Static_assert.
2392struct test_static_assert
2393{
2394  int x;
2395  _Static_assert (sizeof (int) <= sizeof (long int),
2396                  "_Static_assert does not work in struct");
2397  long int y;
2398};
2399
2400// Check UTF-8 literals.
2401#define u8 syntax error!
2402char const utf8_literal[] = u8"happens to be ASCII" "another string";
2403
2404// Check duplicate typedefs.
2405typedef long *long_ptr;
2406typedef long int *long_ptr;
2407typedef long_ptr long_ptr;
2408
2409// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2410struct anonymous
2411{
2412  union {
2413    struct { int i; int j; };
2414    struct { int k; long int l; } w;
2415  };
2416  int m;
2417} v1;
2418'
2419
2420# Test code for whether the C compiler supports C11 (body of main).
2421ac_c_conftest_c11_main='
2422  _Static_assert ((offsetof (struct anonymous, i)
2423		   == offsetof (struct anonymous, w.k)),
2424		  "Anonymous union alignment botch");
2425  v1.i = 2;
2426  v1.w.k = 5;
2427  ok |= v1.i != 5;
2428'
2429
2430# Test code for whether the C compiler supports C11 (complete).
2431ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2432${ac_c_conftest_c99_globals}
2433${ac_c_conftest_c11_globals}
2434
2435int
2436main (int argc, char **argv)
2437{
2438  int ok = 0;
2439  ${ac_c_conftest_c89_main}
2440  ${ac_c_conftest_c99_main}
2441  ${ac_c_conftest_c11_main}
2442  return ok;
2443}
2444"
2445
2446# Test code for whether the C compiler supports C99 (complete).
2447ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2448${ac_c_conftest_c99_globals}
2449
2450int
2451main (int argc, char **argv)
2452{
2453  int ok = 0;
2454  ${ac_c_conftest_c89_main}
2455  ${ac_c_conftest_c99_main}
2456  return ok;
2457}
2458"
2459
2460# Test code for whether the C compiler supports C89 (complete).
2461ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2462
2463int
2464main (int argc, char **argv)
2465{
2466  int ok = 0;
2467  ${ac_c_conftest_c89_main}
2468  return ok;
2469}
2470"
2471
2472as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2473as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2474as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2475as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2476as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2477as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2478as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2479as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2480as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2481as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2482
2483# Auxiliary files required by this configure script.
2484ac_aux_files="config.guess config.sub ltmain.sh missing install-sh compile"
2485
2486# Locations in which to look for auxiliary files.
2487ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2488
2489# Search for a directory containing all of the required auxiliary files,
2490# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2491# If we don't find one directory that contains all the files we need,
2492# we report the set of missing files from the *first* directory in
2493# $ac_aux_dir_candidates and give up.
2494ac_missing_aux_files=""
2495ac_first_candidate=:
2496printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2498as_found=false
2499for as_dir in $ac_aux_dir_candidates
2500do
2501  IFS=$as_save_IFS
2502  case $as_dir in #(((
2503    '') as_dir=./ ;;
2504    */) ;;
2505    *) as_dir=$as_dir/ ;;
2506  esac
2507  as_found=:
2508
2509  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2510  ac_aux_dir_found=yes
2511  ac_install_sh=
2512  for ac_aux in $ac_aux_files
2513  do
2514    # As a special case, if "install-sh" is required, that requirement
2515    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2516    # and $ac_install_sh is set appropriately for whichever one is found.
2517    if test x"$ac_aux" = x"install-sh"
2518    then
2519      if test -f "${as_dir}install-sh"; then
2520        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2521        ac_install_sh="${as_dir}install-sh -c"
2522      elif test -f "${as_dir}install.sh"; then
2523        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2524        ac_install_sh="${as_dir}install.sh -c"
2525      elif test -f "${as_dir}shtool"; then
2526        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2527        ac_install_sh="${as_dir}shtool install -c"
2528      else
2529        ac_aux_dir_found=no
2530        if $ac_first_candidate; then
2531          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2532        else
2533          break
2534        fi
2535      fi
2536    else
2537      if test -f "${as_dir}${ac_aux}"; then
2538        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2539      else
2540        ac_aux_dir_found=no
2541        if $ac_first_candidate; then
2542          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2543        else
2544          break
2545        fi
2546      fi
2547    fi
2548  done
2549  if test "$ac_aux_dir_found" = yes; then
2550    ac_aux_dir="$as_dir"
2551    break
2552  fi
2553  ac_first_candidate=false
2554
2555  as_found=false
2556done
2557IFS=$as_save_IFS
2558if $as_found
2559then :
2560
2561else case e in #(
2562  e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2563esac
2564fi
2565
2566
2567# These three variables are undocumented and unsupported,
2568# and are intended to be withdrawn in a future Autoconf release.
2569# They can cause serious problems if a builder's source tree is in a directory
2570# whose full name contains unusual characters.
2571if test -f "${ac_aux_dir}config.guess"; then
2572  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2573fi
2574if test -f "${ac_aux_dir}config.sub"; then
2575  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2576fi
2577if test -f "$ac_aux_dir/configure"; then
2578  ac_configure="$SHELL ${ac_aux_dir}configure"
2579fi
2580
2581# Check that the precious variables saved in the cache have kept the same
2582# value.
2583ac_cache_corrupted=false
2584for ac_var in $ac_precious_vars; do
2585  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2586  eval ac_new_set=\$ac_env_${ac_var}_set
2587  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2588  eval ac_new_val=\$ac_env_${ac_var}_value
2589  case $ac_old_set,$ac_new_set in
2590    set,)
2591      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2592printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2593      ac_cache_corrupted=: ;;
2594    ,set)
2595      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2596printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2597      ac_cache_corrupted=: ;;
2598    ,);;
2599    *)
2600      if test "x$ac_old_val" != "x$ac_new_val"; then
2601	# differences in whitespace do not lead to failure.
2602	ac_old_val_w=`echo x $ac_old_val`
2603	ac_new_val_w=`echo x $ac_new_val`
2604	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2605	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2606printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2607	  ac_cache_corrupted=:
2608	else
2609	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2610printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2611	  eval $ac_var=\$ac_old_val
2612	fi
2613	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  '$ac_old_val'" >&5
2614printf "%s\n" "$as_me:   former value:  '$ac_old_val'" >&2;}
2615	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: '$ac_new_val'" >&5
2616printf "%s\n" "$as_me:   current value: '$ac_new_val'" >&2;}
2617      fi;;
2618  esac
2619  # Pass precious variables to config.status.
2620  if test "$ac_new_set" = set; then
2621    case $ac_new_val in
2622    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2623    *) ac_arg=$ac_var=$ac_new_val ;;
2624    esac
2625    case " $ac_configure_args " in
2626      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2627      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2628    esac
2629  fi
2630done
2631if $ac_cache_corrupted; then
2632  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2633printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2634  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2635printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2636  as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2637	    and start over" "$LINENO" 5
2638fi
2639## -------------------- ##
2640## Main body of script. ##
2641## -------------------- ##
2642
2643ac_ext=c
2644ac_cpp='$CPP $CPPFLAGS'
2645ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2646ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2647ac_compiler_gnu=$ac_cv_c_compiler_gnu
2648
2649
2650
2651ac_config_headers="$ac_config_headers config.h"
2652
2653
2654
2655# Set common system defines for POSIX extensions, such as _GNU_SOURCE
2656# Must be called before any macros that run the compiler (like LT_INIT)
2657# to avoid autoconf errors.
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669# Expand $ac_aux_dir to an absolute path.
2670am_aux_dir=`cd "$ac_aux_dir" && pwd`
2671
2672ac_ext=c
2673ac_cpp='$CPP $CPPFLAGS'
2674ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2675ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2676ac_compiler_gnu=$ac_cv_c_compiler_gnu
2677if test -n "$ac_tool_prefix"; then
2678  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2679set dummy ${ac_tool_prefix}gcc; ac_word=$2
2680{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2681printf %s "checking for $ac_word... " >&6; }
2682if test ${ac_cv_prog_CC+y}
2683then :
2684  printf %s "(cached) " >&6
2685else case e in #(
2686  e) if test -n "$CC"; then
2687  ac_cv_prog_CC="$CC" # Let the user override the test.
2688else
2689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2690for as_dir in $PATH
2691do
2692  IFS=$as_save_IFS
2693  case $as_dir in #(((
2694    '') as_dir=./ ;;
2695    */) ;;
2696    *) as_dir=$as_dir/ ;;
2697  esac
2698    for ac_exec_ext in '' $ac_executable_extensions; do
2699  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2700    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2701    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2702    break 2
2703  fi
2704done
2705  done
2706IFS=$as_save_IFS
2707
2708fi ;;
2709esac
2710fi
2711CC=$ac_cv_prog_CC
2712if test -n "$CC"; then
2713  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2714printf "%s\n" "$CC" >&6; }
2715else
2716  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2717printf "%s\n" "no" >&6; }
2718fi
2719
2720
2721fi
2722if test -z "$ac_cv_prog_CC"; then
2723  ac_ct_CC=$CC
2724  # Extract the first word of "gcc", so it can be a program name with args.
2725set dummy gcc; ac_word=$2
2726{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2727printf %s "checking for $ac_word... " >&6; }
2728if test ${ac_cv_prog_ac_ct_CC+y}
2729then :
2730  printf %s "(cached) " >&6
2731else case e in #(
2732  e) if test -n "$ac_ct_CC"; then
2733  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2734else
2735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2736for as_dir in $PATH
2737do
2738  IFS=$as_save_IFS
2739  case $as_dir in #(((
2740    '') as_dir=./ ;;
2741    */) ;;
2742    *) as_dir=$as_dir/ ;;
2743  esac
2744    for ac_exec_ext in '' $ac_executable_extensions; do
2745  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2746    ac_cv_prog_ac_ct_CC="gcc"
2747    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2748    break 2
2749  fi
2750done
2751  done
2752IFS=$as_save_IFS
2753
2754fi ;;
2755esac
2756fi
2757ac_ct_CC=$ac_cv_prog_ac_ct_CC
2758if test -n "$ac_ct_CC"; then
2759  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2760printf "%s\n" "$ac_ct_CC" >&6; }
2761else
2762  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2763printf "%s\n" "no" >&6; }
2764fi
2765
2766  if test "x$ac_ct_CC" = x; then
2767    CC=""
2768  else
2769    case $cross_compiling:$ac_tool_warned in
2770yes:)
2771{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2772printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2773ac_tool_warned=yes ;;
2774esac
2775    CC=$ac_ct_CC
2776  fi
2777else
2778  CC="$ac_cv_prog_CC"
2779fi
2780
2781if test -z "$CC"; then
2782          if test -n "$ac_tool_prefix"; then
2783    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2784set dummy ${ac_tool_prefix}cc; ac_word=$2
2785{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2786printf %s "checking for $ac_word... " >&6; }
2787if test ${ac_cv_prog_CC+y}
2788then :
2789  printf %s "(cached) " >&6
2790else case e in #(
2791  e) if test -n "$CC"; then
2792  ac_cv_prog_CC="$CC" # Let the user override the test.
2793else
2794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2795for as_dir in $PATH
2796do
2797  IFS=$as_save_IFS
2798  case $as_dir in #(((
2799    '') as_dir=./ ;;
2800    */) ;;
2801    *) as_dir=$as_dir/ ;;
2802  esac
2803    for ac_exec_ext in '' $ac_executable_extensions; do
2804  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2805    ac_cv_prog_CC="${ac_tool_prefix}cc"
2806    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2807    break 2
2808  fi
2809done
2810  done
2811IFS=$as_save_IFS
2812
2813fi ;;
2814esac
2815fi
2816CC=$ac_cv_prog_CC
2817if test -n "$CC"; then
2818  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2819printf "%s\n" "$CC" >&6; }
2820else
2821  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2822printf "%s\n" "no" >&6; }
2823fi
2824
2825
2826  fi
2827fi
2828if test -z "$CC"; then
2829  # Extract the first word of "cc", so it can be a program name with args.
2830set dummy cc; ac_word=$2
2831{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2832printf %s "checking for $ac_word... " >&6; }
2833if test ${ac_cv_prog_CC+y}
2834then :
2835  printf %s "(cached) " >&6
2836else case e in #(
2837  e) if test -n "$CC"; then
2838  ac_cv_prog_CC="$CC" # Let the user override the test.
2839else
2840  ac_prog_rejected=no
2841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2842for as_dir in $PATH
2843do
2844  IFS=$as_save_IFS
2845  case $as_dir in #(((
2846    '') as_dir=./ ;;
2847    */) ;;
2848    *) as_dir=$as_dir/ ;;
2849  esac
2850    for ac_exec_ext in '' $ac_executable_extensions; do
2851  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2852    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2853       ac_prog_rejected=yes
2854       continue
2855     fi
2856    ac_cv_prog_CC="cc"
2857    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2858    break 2
2859  fi
2860done
2861  done
2862IFS=$as_save_IFS
2863
2864if test $ac_prog_rejected = yes; then
2865  # We found a bogon in the path, so make sure we never use it.
2866  set dummy $ac_cv_prog_CC
2867  shift
2868  if test $# != 0; then
2869    # We chose a different compiler from the bogus one.
2870    # However, it has the same basename, so the bogon will be chosen
2871    # first if we set CC to just the basename; use the full file name.
2872    shift
2873    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
2874  fi
2875fi
2876fi ;;
2877esac
2878fi
2879CC=$ac_cv_prog_CC
2880if test -n "$CC"; then
2881  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2882printf "%s\n" "$CC" >&6; }
2883else
2884  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2885printf "%s\n" "no" >&6; }
2886fi
2887
2888
2889fi
2890if test -z "$CC"; then
2891  if test -n "$ac_tool_prefix"; then
2892  for ac_prog in cl.exe
2893  do
2894    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2895set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2896{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2897printf %s "checking for $ac_word... " >&6; }
2898if test ${ac_cv_prog_CC+y}
2899then :
2900  printf %s "(cached) " >&6
2901else case e in #(
2902  e) if test -n "$CC"; then
2903  ac_cv_prog_CC="$CC" # Let the user override the test.
2904else
2905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2906for as_dir in $PATH
2907do
2908  IFS=$as_save_IFS
2909  case $as_dir in #(((
2910    '') as_dir=./ ;;
2911    */) ;;
2912    *) as_dir=$as_dir/ ;;
2913  esac
2914    for ac_exec_ext in '' $ac_executable_extensions; do
2915  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2916    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2917    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2918    break 2
2919  fi
2920done
2921  done
2922IFS=$as_save_IFS
2923
2924fi ;;
2925esac
2926fi
2927CC=$ac_cv_prog_CC
2928if test -n "$CC"; then
2929  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2930printf "%s\n" "$CC" >&6; }
2931else
2932  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2933printf "%s\n" "no" >&6; }
2934fi
2935
2936
2937    test -n "$CC" && break
2938  done
2939fi
2940if test -z "$CC"; then
2941  ac_ct_CC=$CC
2942  for ac_prog in cl.exe
2943do
2944  # Extract the first word of "$ac_prog", so it can be a program name with args.
2945set dummy $ac_prog; ac_word=$2
2946{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2947printf %s "checking for $ac_word... " >&6; }
2948if test ${ac_cv_prog_ac_ct_CC+y}
2949then :
2950  printf %s "(cached) " >&6
2951else case e in #(
2952  e) if test -n "$ac_ct_CC"; then
2953  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2954else
2955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2956for as_dir in $PATH
2957do
2958  IFS=$as_save_IFS
2959  case $as_dir in #(((
2960    '') as_dir=./ ;;
2961    */) ;;
2962    *) as_dir=$as_dir/ ;;
2963  esac
2964    for ac_exec_ext in '' $ac_executable_extensions; do
2965  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2966    ac_cv_prog_ac_ct_CC="$ac_prog"
2967    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2968    break 2
2969  fi
2970done
2971  done
2972IFS=$as_save_IFS
2973
2974fi ;;
2975esac
2976fi
2977ac_ct_CC=$ac_cv_prog_ac_ct_CC
2978if test -n "$ac_ct_CC"; then
2979  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2980printf "%s\n" "$ac_ct_CC" >&6; }
2981else
2982  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2983printf "%s\n" "no" >&6; }
2984fi
2985
2986
2987  test -n "$ac_ct_CC" && break
2988done
2989
2990  if test "x$ac_ct_CC" = x; then
2991    CC=""
2992  else
2993    case $cross_compiling:$ac_tool_warned in
2994yes:)
2995{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2996printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2997ac_tool_warned=yes ;;
2998esac
2999    CC=$ac_ct_CC
3000  fi
3001fi
3002
3003fi
3004if test -z "$CC"; then
3005  if test -n "$ac_tool_prefix"; then
3006  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3007set dummy ${ac_tool_prefix}clang; ac_word=$2
3008{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3009printf %s "checking for $ac_word... " >&6; }
3010if test ${ac_cv_prog_CC+y}
3011then :
3012  printf %s "(cached) " >&6
3013else case e in #(
3014  e) if test -n "$CC"; then
3015  ac_cv_prog_CC="$CC" # Let the user override the test.
3016else
3017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3018for as_dir in $PATH
3019do
3020  IFS=$as_save_IFS
3021  case $as_dir in #(((
3022    '') as_dir=./ ;;
3023    */) ;;
3024    *) as_dir=$as_dir/ ;;
3025  esac
3026    for ac_exec_ext in '' $ac_executable_extensions; do
3027  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3028    ac_cv_prog_CC="${ac_tool_prefix}clang"
3029    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3030    break 2
3031  fi
3032done
3033  done
3034IFS=$as_save_IFS
3035
3036fi ;;
3037esac
3038fi
3039CC=$ac_cv_prog_CC
3040if test -n "$CC"; then
3041  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3042printf "%s\n" "$CC" >&6; }
3043else
3044  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3045printf "%s\n" "no" >&6; }
3046fi
3047
3048
3049fi
3050if test -z "$ac_cv_prog_CC"; then
3051  ac_ct_CC=$CC
3052  # Extract the first word of "clang", so it can be a program name with args.
3053set dummy clang; ac_word=$2
3054{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3055printf %s "checking for $ac_word... " >&6; }
3056if test ${ac_cv_prog_ac_ct_CC+y}
3057then :
3058  printf %s "(cached) " >&6
3059else case e in #(
3060  e) if test -n "$ac_ct_CC"; then
3061  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3062else
3063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3064for as_dir in $PATH
3065do
3066  IFS=$as_save_IFS
3067  case $as_dir in #(((
3068    '') as_dir=./ ;;
3069    */) ;;
3070    *) as_dir=$as_dir/ ;;
3071  esac
3072    for ac_exec_ext in '' $ac_executable_extensions; do
3073  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3074    ac_cv_prog_ac_ct_CC="clang"
3075    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3076    break 2
3077  fi
3078done
3079  done
3080IFS=$as_save_IFS
3081
3082fi ;;
3083esac
3084fi
3085ac_ct_CC=$ac_cv_prog_ac_ct_CC
3086if test -n "$ac_ct_CC"; then
3087  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3088printf "%s\n" "$ac_ct_CC" >&6; }
3089else
3090  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3091printf "%s\n" "no" >&6; }
3092fi
3093
3094  if test "x$ac_ct_CC" = x; then
3095    CC=""
3096  else
3097    case $cross_compiling:$ac_tool_warned in
3098yes:)
3099{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3100printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3101ac_tool_warned=yes ;;
3102esac
3103    CC=$ac_ct_CC
3104  fi
3105else
3106  CC="$ac_cv_prog_CC"
3107fi
3108
3109fi
3110
3111
3112test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3113printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3114as_fn_error $? "no acceptable C compiler found in \$PATH
3115See 'config.log' for more details" "$LINENO" 5; }
3116
3117# Provide some information about the compiler.
3118printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3119set X $ac_compile
3120ac_compiler=$2
3121for ac_option in --version -v -V -qversion -version; do
3122  { { ac_try="$ac_compiler $ac_option >&5"
3123case "(($ac_try" in
3124  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3125  *) ac_try_echo=$ac_try;;
3126esac
3127eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3128printf "%s\n" "$ac_try_echo"; } >&5
3129  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3130  ac_status=$?
3131  if test -s conftest.err; then
3132    sed '10a\
3133... rest of stderr output deleted ...
3134         10q' conftest.err >conftest.er1
3135    cat conftest.er1 >&5
3136  fi
3137  rm -f conftest.er1 conftest.err
3138  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3139  test $ac_status = 0; }
3140done
3141
3142cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3143/* end confdefs.h.  */
3144
3145int
3146main (void)
3147{
3148
3149  ;
3150  return 0;
3151}
3152_ACEOF
3153ac_clean_files_save=$ac_clean_files
3154ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3155# Try to create an executable without -o first, disregard a.out.
3156# It will help us diagnose broken compilers, and finding out an intuition
3157# of exeext.
3158{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3159printf %s "checking whether the C compiler works... " >&6; }
3160ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3161
3162# The possible output files:
3163ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3164
3165ac_rmfiles=
3166for ac_file in $ac_files
3167do
3168  case $ac_file in
3169    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3170    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3171  esac
3172done
3173rm -f $ac_rmfiles
3174
3175if { { ac_try="$ac_link_default"
3176case "(($ac_try" in
3177  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3178  *) ac_try_echo=$ac_try;;
3179esac
3180eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3181printf "%s\n" "$ac_try_echo"; } >&5
3182  (eval "$ac_link_default") 2>&5
3183  ac_status=$?
3184  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3185  test $ac_status = 0; }
3186then :
3187  # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
3188# So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
3189# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3190# so that the user can short-circuit this test for compilers unknown to
3191# Autoconf.
3192for ac_file in $ac_files ''
3193do
3194  test -f "$ac_file" || continue
3195  case $ac_file in
3196    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3197	;;
3198    [ab].out )
3199	# We found the default executable, but exeext='' is most
3200	# certainly right.
3201	break;;
3202    *.* )
3203	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3204	then :; else
3205	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3206	fi
3207	# We set ac_cv_exeext here because the later test for it is not
3208	# safe: cross compilers may not add the suffix if given an '-o'
3209	# argument, so we may need to know it at that point already.
3210	# Even if this section looks crufty: it has the advantage of
3211	# actually working.
3212	break;;
3213    * )
3214	break;;
3215  esac
3216done
3217test "$ac_cv_exeext" = no && ac_cv_exeext=
3218
3219else case e in #(
3220  e) ac_file='' ;;
3221esac
3222fi
3223if test -z "$ac_file"
3224then :
3225  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3226printf "%s\n" "no" >&6; }
3227printf "%s\n" "$as_me: failed program was:" >&5
3228sed 's/^/| /' conftest.$ac_ext >&5
3229
3230{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3231printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3232as_fn_error 77 "C compiler cannot create executables
3233See 'config.log' for more details" "$LINENO" 5; }
3234else case e in #(
3235  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3236printf "%s\n" "yes" >&6; } ;;
3237esac
3238fi
3239{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3240printf %s "checking for C compiler default output file name... " >&6; }
3241{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3242printf "%s\n" "$ac_file" >&6; }
3243ac_exeext=$ac_cv_exeext
3244
3245rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3246ac_clean_files=$ac_clean_files_save
3247{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3248printf %s "checking for suffix of executables... " >&6; }
3249if { { ac_try="$ac_link"
3250case "(($ac_try" in
3251  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3252  *) ac_try_echo=$ac_try;;
3253esac
3254eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3255printf "%s\n" "$ac_try_echo"; } >&5
3256  (eval "$ac_link") 2>&5
3257  ac_status=$?
3258  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3259  test $ac_status = 0; }
3260then :
3261  # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
3262# catch 'conftest.exe'.  For instance with Cygwin, 'ls conftest' will
3263# work properly (i.e., refer to 'conftest.exe'), while it won't with
3264# 'rm'.
3265for ac_file in conftest.exe conftest conftest.*; do
3266  test -f "$ac_file" || continue
3267  case $ac_file in
3268    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3269    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3270	  break;;
3271    * ) break;;
3272  esac
3273done
3274else case e in #(
3275  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3276printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3277as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3278See 'config.log' for more details" "$LINENO" 5; } ;;
3279esac
3280fi
3281rm -f conftest conftest$ac_cv_exeext
3282{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3283printf "%s\n" "$ac_cv_exeext" >&6; }
3284
3285rm -f conftest.$ac_ext
3286EXEEXT=$ac_cv_exeext
3287ac_exeext=$EXEEXT
3288cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3289/* end confdefs.h.  */
3290#include <stdio.h>
3291int
3292main (void)
3293{
3294FILE *f = fopen ("conftest.out", "w");
3295 if (!f)
3296  return 1;
3297 return ferror (f) || fclose (f) != 0;
3298
3299  ;
3300  return 0;
3301}
3302_ACEOF
3303ac_clean_files="$ac_clean_files conftest.out"
3304# Check that the compiler produces executables we can run.  If not, either
3305# the compiler is broken, or we cross compile.
3306{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3307printf %s "checking whether we are cross compiling... " >&6; }
3308if test "$cross_compiling" != yes; then
3309  { { ac_try="$ac_link"
3310case "(($ac_try" in
3311  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3312  *) ac_try_echo=$ac_try;;
3313esac
3314eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3315printf "%s\n" "$ac_try_echo"; } >&5
3316  (eval "$ac_link") 2>&5
3317  ac_status=$?
3318  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3319  test $ac_status = 0; }
3320  if { ac_try='./conftest$ac_cv_exeext'
3321  { { case "(($ac_try" in
3322  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3323  *) ac_try_echo=$ac_try;;
3324esac
3325eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3326printf "%s\n" "$ac_try_echo"; } >&5
3327  (eval "$ac_try") 2>&5
3328  ac_status=$?
3329  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3330  test $ac_status = 0; }; }; then
3331    cross_compiling=no
3332  else
3333    if test "$cross_compiling" = maybe; then
3334	cross_compiling=yes
3335    else
3336	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3337printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3338as_fn_error 77 "cannot run C compiled programs.
3339If you meant to cross compile, use '--host'.
3340See 'config.log' for more details" "$LINENO" 5; }
3341    fi
3342  fi
3343fi
3344{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3345printf "%s\n" "$cross_compiling" >&6; }
3346
3347rm -f conftest.$ac_ext conftest$ac_cv_exeext \
3348  conftest.o conftest.obj conftest.out
3349ac_clean_files=$ac_clean_files_save
3350{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3351printf %s "checking for suffix of object files... " >&6; }
3352if test ${ac_cv_objext+y}
3353then :
3354  printf %s "(cached) " >&6
3355else case e in #(
3356  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3357/* end confdefs.h.  */
3358
3359int
3360main (void)
3361{
3362
3363  ;
3364  return 0;
3365}
3366_ACEOF
3367rm -f conftest.o conftest.obj
3368if { { ac_try="$ac_compile"
3369case "(($ac_try" in
3370  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3371  *) ac_try_echo=$ac_try;;
3372esac
3373eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3374printf "%s\n" "$ac_try_echo"; } >&5
3375  (eval "$ac_compile") 2>&5
3376  ac_status=$?
3377  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3378  test $ac_status = 0; }
3379then :
3380  for ac_file in conftest.o conftest.obj conftest.*; do
3381  test -f "$ac_file" || continue;
3382  case $ac_file in
3383    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3384    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3385       break;;
3386  esac
3387done
3388else case e in #(
3389  e) printf "%s\n" "$as_me: failed program was:" >&5
3390sed 's/^/| /' conftest.$ac_ext >&5
3391
3392{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3393printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3394as_fn_error $? "cannot compute suffix of object files: cannot compile
3395See 'config.log' for more details" "$LINENO" 5; } ;;
3396esac
3397fi
3398rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
3399esac
3400fi
3401{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3402printf "%s\n" "$ac_cv_objext" >&6; }
3403OBJEXT=$ac_cv_objext
3404ac_objext=$OBJEXT
3405{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3406printf %s "checking whether the compiler supports GNU C... " >&6; }
3407if test ${ac_cv_c_compiler_gnu+y}
3408then :
3409  printf %s "(cached) " >&6
3410else case e in #(
3411  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3412/* end confdefs.h.  */
3413
3414int
3415main (void)
3416{
3417#ifndef __GNUC__
3418       choke me
3419#endif
3420
3421  ;
3422  return 0;
3423}
3424_ACEOF
3425if ac_fn_c_try_compile "$LINENO"
3426then :
3427  ac_compiler_gnu=yes
3428else case e in #(
3429  e) ac_compiler_gnu=no ;;
3430esac
3431fi
3432rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3433ac_cv_c_compiler_gnu=$ac_compiler_gnu
3434 ;;
3435esac
3436fi
3437{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3438printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3439ac_compiler_gnu=$ac_cv_c_compiler_gnu
3440
3441if test $ac_compiler_gnu = yes; then
3442  GCC=yes
3443else
3444  GCC=
3445fi
3446ac_test_CFLAGS=${CFLAGS+y}
3447ac_save_CFLAGS=$CFLAGS
3448{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3449printf %s "checking whether $CC accepts -g... " >&6; }
3450if test ${ac_cv_prog_cc_g+y}
3451then :
3452  printf %s "(cached) " >&6
3453else case e in #(
3454  e) ac_save_c_werror_flag=$ac_c_werror_flag
3455   ac_c_werror_flag=yes
3456   ac_cv_prog_cc_g=no
3457   CFLAGS="-g"
3458   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3459/* end confdefs.h.  */
3460
3461int
3462main (void)
3463{
3464
3465  ;
3466  return 0;
3467}
3468_ACEOF
3469if ac_fn_c_try_compile "$LINENO"
3470then :
3471  ac_cv_prog_cc_g=yes
3472else case e in #(
3473  e) CFLAGS=""
3474      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3475/* end confdefs.h.  */
3476
3477int
3478main (void)
3479{
3480
3481  ;
3482  return 0;
3483}
3484_ACEOF
3485if ac_fn_c_try_compile "$LINENO"
3486then :
3487
3488else case e in #(
3489  e) ac_c_werror_flag=$ac_save_c_werror_flag
3490	 CFLAGS="-g"
3491	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3492/* end confdefs.h.  */
3493
3494int
3495main (void)
3496{
3497
3498  ;
3499  return 0;
3500}
3501_ACEOF
3502if ac_fn_c_try_compile "$LINENO"
3503then :
3504  ac_cv_prog_cc_g=yes
3505fi
3506rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3507esac
3508fi
3509rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3510esac
3511fi
3512rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3513   ac_c_werror_flag=$ac_save_c_werror_flag ;;
3514esac
3515fi
3516{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3517printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3518if test $ac_test_CFLAGS; then
3519  CFLAGS=$ac_save_CFLAGS
3520elif test $ac_cv_prog_cc_g = yes; then
3521  if test "$GCC" = yes; then
3522    CFLAGS="-g -O2"
3523  else
3524    CFLAGS="-g"
3525  fi
3526else
3527  if test "$GCC" = yes; then
3528    CFLAGS="-O2"
3529  else
3530    CFLAGS=
3531  fi
3532fi
3533ac_prog_cc_stdc=no
3534if test x$ac_prog_cc_stdc = xno
3535then :
3536  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3537printf %s "checking for $CC option to enable C11 features... " >&6; }
3538if test ${ac_cv_prog_cc_c11+y}
3539then :
3540  printf %s "(cached) " >&6
3541else case e in #(
3542  e) ac_cv_prog_cc_c11=no
3543ac_save_CC=$CC
3544cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3545/* end confdefs.h.  */
3546$ac_c_conftest_c11_program
3547_ACEOF
3548for ac_arg in '' -std=gnu11
3549do
3550  CC="$ac_save_CC $ac_arg"
3551  if ac_fn_c_try_compile "$LINENO"
3552then :
3553  ac_cv_prog_cc_c11=$ac_arg
3554fi
3555rm -f core conftest.err conftest.$ac_objext conftest.beam
3556  test "x$ac_cv_prog_cc_c11" != "xno" && break
3557done
3558rm -f conftest.$ac_ext
3559CC=$ac_save_CC ;;
3560esac
3561fi
3562
3563if test "x$ac_cv_prog_cc_c11" = xno
3564then :
3565  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3566printf "%s\n" "unsupported" >&6; }
3567else case e in #(
3568  e) if test "x$ac_cv_prog_cc_c11" = x
3569then :
3570  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3571printf "%s\n" "none needed" >&6; }
3572else case e in #(
3573  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3574printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3575     CC="$CC $ac_cv_prog_cc_c11" ;;
3576esac
3577fi
3578  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3579  ac_prog_cc_stdc=c11 ;;
3580esac
3581fi
3582fi
3583if test x$ac_prog_cc_stdc = xno
3584then :
3585  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3586printf %s "checking for $CC option to enable C99 features... " >&6; }
3587if test ${ac_cv_prog_cc_c99+y}
3588then :
3589  printf %s "(cached) " >&6
3590else case e in #(
3591  e) ac_cv_prog_cc_c99=no
3592ac_save_CC=$CC
3593cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3594/* end confdefs.h.  */
3595$ac_c_conftest_c99_program
3596_ACEOF
3597for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3598do
3599  CC="$ac_save_CC $ac_arg"
3600  if ac_fn_c_try_compile "$LINENO"
3601then :
3602  ac_cv_prog_cc_c99=$ac_arg
3603fi
3604rm -f core conftest.err conftest.$ac_objext conftest.beam
3605  test "x$ac_cv_prog_cc_c99" != "xno" && break
3606done
3607rm -f conftest.$ac_ext
3608CC=$ac_save_CC ;;
3609esac
3610fi
3611
3612if test "x$ac_cv_prog_cc_c99" = xno
3613then :
3614  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3615printf "%s\n" "unsupported" >&6; }
3616else case e in #(
3617  e) if test "x$ac_cv_prog_cc_c99" = x
3618then :
3619  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3620printf "%s\n" "none needed" >&6; }
3621else case e in #(
3622  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3623printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3624     CC="$CC $ac_cv_prog_cc_c99" ;;
3625esac
3626fi
3627  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3628  ac_prog_cc_stdc=c99 ;;
3629esac
3630fi
3631fi
3632if test x$ac_prog_cc_stdc = xno
3633then :
3634  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3635printf %s "checking for $CC option to enable C89 features... " >&6; }
3636if test ${ac_cv_prog_cc_c89+y}
3637then :
3638  printf %s "(cached) " >&6
3639else case e in #(
3640  e) ac_cv_prog_cc_c89=no
3641ac_save_CC=$CC
3642cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3643/* end confdefs.h.  */
3644$ac_c_conftest_c89_program
3645_ACEOF
3646for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3647do
3648  CC="$ac_save_CC $ac_arg"
3649  if ac_fn_c_try_compile "$LINENO"
3650then :
3651  ac_cv_prog_cc_c89=$ac_arg
3652fi
3653rm -f core conftest.err conftest.$ac_objext conftest.beam
3654  test "x$ac_cv_prog_cc_c89" != "xno" && break
3655done
3656rm -f conftest.$ac_ext
3657CC=$ac_save_CC ;;
3658esac
3659fi
3660
3661if test "x$ac_cv_prog_cc_c89" = xno
3662then :
3663  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3664printf "%s\n" "unsupported" >&6; }
3665else case e in #(
3666  e) if test "x$ac_cv_prog_cc_c89" = x
3667then :
3668  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3669printf "%s\n" "none needed" >&6; }
3670else case e in #(
3671  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3672printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3673     CC="$CC $ac_cv_prog_cc_c89" ;;
3674esac
3675fi
3676  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3677  ac_prog_cc_stdc=c89 ;;
3678esac
3679fi
3680fi
3681
3682ac_ext=c
3683ac_cpp='$CPP $CPPFLAGS'
3684ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3685ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3686ac_compiler_gnu=$ac_cv_c_compiler_gnu
3687
3688
3689  ac_ext=c
3690ac_cpp='$CPP $CPPFLAGS'
3691ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3692ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3693ac_compiler_gnu=$ac_cv_c_compiler_gnu
3694{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3695printf %s "checking whether $CC understands -c and -o together... " >&6; }
3696if test ${am_cv_prog_cc_c_o+y}
3697then :
3698  printf %s "(cached) " >&6
3699else case e in #(
3700  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3701/* end confdefs.h.  */
3702
3703int
3704main (void)
3705{
3706
3707  ;
3708  return 0;
3709}
3710_ACEOF
3711  # Make sure it works both with $CC and with simple cc.
3712  # Following AC_PROG_CC_C_O, we do the test twice because some
3713  # compilers refuse to overwrite an existing .o file with -o,
3714  # though they will create one.
3715  am_cv_prog_cc_c_o=yes
3716  for am_i in 1 2; do
3717    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3718   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3719   ac_status=$?
3720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3721   (exit $ac_status); } \
3722         && test -f conftest2.$ac_objext; then
3723      : OK
3724    else
3725      am_cv_prog_cc_c_o=no
3726      break
3727    fi
3728  done
3729  rm -f core conftest*
3730  unset am_i ;;
3731esac
3732fi
3733{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3734printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
3735if test "$am_cv_prog_cc_c_o" != yes; then
3736   # Losing compiler, so override with the script.
3737   # FIXME: It is wrong to rewrite CC.
3738   # But if we don't then we get into trouble of one sort or another.
3739   # A longer-term fix would be to have automake use am__CC in this case,
3740   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3741   CC="$am_aux_dir/compile $CC"
3742fi
3743ac_ext=c
3744ac_cpp='$CPP $CPPFLAGS'
3745ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3746ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3747ac_compiler_gnu=$ac_cv_c_compiler_gnu
3748
3749
3750
3751ac_header= ac_cache=
3752for ac_item in $ac_header_c_list
3753do
3754  if test $ac_cache; then
3755    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
3756    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
3757      printf "%s\n" "#define $ac_item 1" >> confdefs.h
3758    fi
3759    ac_header= ac_cache=
3760  elif test $ac_header; then
3761    ac_cache=$ac_item
3762  else
3763    ac_header=$ac_item
3764  fi
3765done
3766
3767
3768
3769
3770
3771
3772
3773
3774if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
3775then :
3776
3777printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
3778
3779fi
3780
3781
3782
3783
3784
3785
3786  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3787printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3788if test ${ac_cv_safe_to_define___extensions__+y}
3789then :
3790  printf %s "(cached) " >&6
3791else case e in #(
3792  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3793/* end confdefs.h.  */
3794
3795#         define __EXTENSIONS__ 1
3796          $ac_includes_default
3797int
3798main (void)
3799{
3800
3801  ;
3802  return 0;
3803}
3804_ACEOF
3805if ac_fn_c_try_compile "$LINENO"
3806then :
3807  ac_cv_safe_to_define___extensions__=yes
3808else case e in #(
3809  e) ac_cv_safe_to_define___extensions__=no ;;
3810esac
3811fi
3812rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3813esac
3814fi
3815{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3816printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
3817
3818  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
3819printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
3820if test ${ac_cv_should_define__xopen_source+y}
3821then :
3822  printf %s "(cached) " >&6
3823else case e in #(
3824  e) ac_cv_should_define__xopen_source=no
3825    if test $ac_cv_header_wchar_h = yes
3826then :
3827  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3828/* end confdefs.h.  */
3829
3830          #include <wchar.h>
3831          mbstate_t x;
3832int
3833main (void)
3834{
3835
3836  ;
3837  return 0;
3838}
3839_ACEOF
3840if ac_fn_c_try_compile "$LINENO"
3841then :
3842
3843else case e in #(
3844  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3845/* end confdefs.h.  */
3846
3847            #define _XOPEN_SOURCE 500
3848            #include <wchar.h>
3849            mbstate_t x;
3850int
3851main (void)
3852{
3853
3854  ;
3855  return 0;
3856}
3857_ACEOF
3858if ac_fn_c_try_compile "$LINENO"
3859then :
3860  ac_cv_should_define__xopen_source=yes
3861fi
3862rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3863esac
3864fi
3865rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3866fi ;;
3867esac
3868fi
3869{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
3870printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
3871
3872  printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
3873
3874  printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
3875
3876  printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
3877
3878  printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
3879
3880  printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
3881
3882  printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
3883
3884  printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3885
3886  printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
3887
3888  printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
3889
3890  printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
3891
3892  printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h
3893
3894  printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
3895
3896  printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
3897
3898  printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
3899
3900  printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
3901
3902  printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
3903
3904  if test $ac_cv_header_minix_config_h = yes
3905then :
3906  MINIX=yes
3907    printf "%s\n" "#define _MINIX 1" >>confdefs.h
3908
3909    printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
3910
3911    printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
3912
3913else case e in #(
3914  e) MINIX= ;;
3915esac
3916fi
3917  if test $ac_cv_safe_to_define___extensions__ = yes
3918then :
3919  printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
3920
3921fi
3922  if test $ac_cv_should_define__xopen_source = yes
3923then :
3924  printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
3925
3926fi
3927
3928
3929# Initialize Automake
3930am__api_version='1.16'
3931
3932
3933  # Find a good install program.  We prefer a C program (faster),
3934# so one script is as good as another.  But avoid the broken or
3935# incompatible versions:
3936# SysV /etc/install, /usr/sbin/install
3937# SunOS /usr/etc/install
3938# IRIX /sbin/install
3939# AIX /bin/install
3940# AmigaOS /C/install, which installs bootblocks on floppy discs
3941# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3942# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3943# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3944# OS/2's system install, which has a completely different semantic
3945# ./install, which can be erroneously created by make from ./install.sh.
3946# Reject install programs that cannot install multiple files.
3947{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3948printf %s "checking for a BSD-compatible install... " >&6; }
3949if test -z "$INSTALL"; then
3950if test ${ac_cv_path_install+y}
3951then :
3952  printf %s "(cached) " >&6
3953else case e in #(
3954  e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3955for as_dir in $PATH
3956do
3957  IFS=$as_save_IFS
3958  case $as_dir in #(((
3959    '') as_dir=./ ;;
3960    */) ;;
3961    *) as_dir=$as_dir/ ;;
3962  esac
3963    # Account for fact that we put trailing slashes in our PATH walk.
3964case $as_dir in #((
3965  ./ | /[cC]/* | \
3966  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3967  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3968  /usr/ucb/* ) ;;
3969  *)
3970    # OSF1 and SCO ODT 3.0 have their own names for install.
3971    # Don't use installbsd from OSF since it installs stuff as root
3972    # by default.
3973    for ac_prog in ginstall scoinst install; do
3974      for ac_exec_ext in '' $ac_executable_extensions; do
3975	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3976	  if test $ac_prog = install &&
3977	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3978	    # AIX install.  It has an incompatible calling convention.
3979	    :
3980	  elif test $ac_prog = install &&
3981	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3982	    # program-specific install script used by HP pwplus--don't use.
3983	    :
3984	  else
3985	    rm -rf conftest.one conftest.two conftest.dir
3986	    echo one > conftest.one
3987	    echo two > conftest.two
3988	    mkdir conftest.dir
3989	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3990	      test -s conftest.one && test -s conftest.two &&
3991	      test -s conftest.dir/conftest.one &&
3992	      test -s conftest.dir/conftest.two
3993	    then
3994	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3995	      break 3
3996	    fi
3997	  fi
3998	fi
3999      done
4000    done
4001    ;;
4002esac
4003
4004  done
4005IFS=$as_save_IFS
4006
4007rm -rf conftest.one conftest.two conftest.dir
4008 ;;
4009esac
4010fi
4011  if test ${ac_cv_path_install+y}; then
4012    INSTALL=$ac_cv_path_install
4013  else
4014    # As a last resort, use the slow shell script.  Don't cache a
4015    # value for INSTALL within a source directory, because that will
4016    # break other packages using the cache if that directory is
4017    # removed, or if the value is a relative name.
4018    INSTALL=$ac_install_sh
4019  fi
4020fi
4021{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4022printf "%s\n" "$INSTALL" >&6; }
4023
4024# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4025# It thinks the first close brace ends the variable substitution.
4026test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4027
4028test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4029
4030test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4031
4032{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4033printf %s "checking whether build environment is sane... " >&6; }
4034# Reject unsafe characters in $srcdir or the absolute working directory
4035# name.  Accept space and tab only in the latter.
4036am_lf='
4037'
4038case `pwd` in
4039  *[\\\"\#\$\&\'\`$am_lf]*)
4040    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4041esac
4042case $srcdir in
4043  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
4044    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4045esac
4046
4047# Do 'set' in a subshell so we don't clobber the current shell's
4048# arguments.  Must try -L first in case configure is actually a
4049# symlink; some systems play weird games with the mod time of symlinks
4050# (eg FreeBSD returns the mod time of the symlink's containing
4051# directory).
4052if (
4053   am_has_slept=no
4054   for am_try in 1 2; do
4055     echo "timestamp, slept: $am_has_slept" > conftest.file
4056     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4057     if test "$*" = "X"; then
4058	# -L didn't work.
4059	set X `ls -t "$srcdir/configure" conftest.file`
4060     fi
4061     if test "$*" != "X $srcdir/configure conftest.file" \
4062	&& test "$*" != "X conftest.file $srcdir/configure"; then
4063
4064	# If neither matched, then we have a broken ls.  This can happen
4065	# if, for instance, CONFIG_SHELL is bash and it inherits a
4066	# broken ls alias from the environment.  This has actually
4067	# happened.  Such a system could not be considered "sane".
4068	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
4069  alias in your environment" "$LINENO" 5
4070     fi
4071     if test "$2" = conftest.file || test $am_try -eq 2; then
4072       break
4073     fi
4074     # Just in case.
4075     sleep 1
4076     am_has_slept=yes
4077   done
4078   test "$2" = conftest.file
4079   )
4080then
4081   # Ok.
4082   :
4083else
4084   as_fn_error $? "newly created file is older than distributed files!
4085Check your system clock" "$LINENO" 5
4086fi
4087{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4088printf "%s\n" "yes" >&6; }
4089# If we didn't sleep, we still need to ensure time stamps of config.status and
4090# generated files are strictly newer.
4091am_sleep_pid=
4092if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4093  ( sleep 1 ) &
4094  am_sleep_pid=$!
4095fi
4096
4097rm -f conftest.file
4098
4099test "$program_prefix" != NONE &&
4100  program_transform_name="s&^&$program_prefix&;$program_transform_name"
4101# Use a double $ so make ignores it.
4102test "$program_suffix" != NONE &&
4103  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4104# Double any \ or $.
4105# By default was 's,x,x', remove it if useless.
4106ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4107program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
4108
4109
4110  if test x"${MISSING+set}" != xset; then
4111  MISSING="\${SHELL} '$am_aux_dir/missing'"
4112fi
4113# Use eval to expand $SHELL
4114if eval "$MISSING --is-lightweight"; then
4115  am_missing_run="$MISSING "
4116else
4117  am_missing_run=
4118  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4119printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4120fi
4121
4122if test x"${install_sh+set}" != xset; then
4123  case $am_aux_dir in
4124  *\ * | *\	*)
4125    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4126  *)
4127    install_sh="\${SHELL} $am_aux_dir/install-sh"
4128  esac
4129fi
4130
4131# Installed binaries are usually stripped using 'strip' when the user
4132# run "make install-strip".  However 'strip' might not be the right
4133# tool to use in cross-compilation environments, therefore Automake
4134# will honor the 'STRIP' environment variable to overrule this program.
4135if test "$cross_compiling" != no; then
4136  if test -n "$ac_tool_prefix"; then
4137  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4138set dummy ${ac_tool_prefix}strip; ac_word=$2
4139{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4140printf %s "checking for $ac_word... " >&6; }
4141if test ${ac_cv_prog_STRIP+y}
4142then :
4143  printf %s "(cached) " >&6
4144else case e in #(
4145  e) if test -n "$STRIP"; then
4146  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4147else
4148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4149for as_dir in $PATH
4150do
4151  IFS=$as_save_IFS
4152  case $as_dir in #(((
4153    '') as_dir=./ ;;
4154    */) ;;
4155    *) as_dir=$as_dir/ ;;
4156  esac
4157    for ac_exec_ext in '' $ac_executable_extensions; do
4158  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4159    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4160    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4161    break 2
4162  fi
4163done
4164  done
4165IFS=$as_save_IFS
4166
4167fi ;;
4168esac
4169fi
4170STRIP=$ac_cv_prog_STRIP
4171if test -n "$STRIP"; then
4172  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4173printf "%s\n" "$STRIP" >&6; }
4174else
4175  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4176printf "%s\n" "no" >&6; }
4177fi
4178
4179
4180fi
4181if test -z "$ac_cv_prog_STRIP"; then
4182  ac_ct_STRIP=$STRIP
4183  # Extract the first word of "strip", so it can be a program name with args.
4184set dummy strip; ac_word=$2
4185{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4186printf %s "checking for $ac_word... " >&6; }
4187if test ${ac_cv_prog_ac_ct_STRIP+y}
4188then :
4189  printf %s "(cached) " >&6
4190else case e in #(
4191  e) if test -n "$ac_ct_STRIP"; then
4192  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4193else
4194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4195for as_dir in $PATH
4196do
4197  IFS=$as_save_IFS
4198  case $as_dir in #(((
4199    '') as_dir=./ ;;
4200    */) ;;
4201    *) as_dir=$as_dir/ ;;
4202  esac
4203    for ac_exec_ext in '' $ac_executable_extensions; do
4204  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4205    ac_cv_prog_ac_ct_STRIP="strip"
4206    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4207    break 2
4208  fi
4209done
4210  done
4211IFS=$as_save_IFS
4212
4213fi ;;
4214esac
4215fi
4216ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4217if test -n "$ac_ct_STRIP"; then
4218  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4219printf "%s\n" "$ac_ct_STRIP" >&6; }
4220else
4221  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4222printf "%s\n" "no" >&6; }
4223fi
4224
4225  if test "x$ac_ct_STRIP" = x; then
4226    STRIP=":"
4227  else
4228    case $cross_compiling:$ac_tool_warned in
4229yes:)
4230{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4231printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4232ac_tool_warned=yes ;;
4233esac
4234    STRIP=$ac_ct_STRIP
4235  fi
4236else
4237  STRIP="$ac_cv_prog_STRIP"
4238fi
4239
4240fi
4241INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4242
4243
4244  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
4245printf %s "checking for a race-free mkdir -p... " >&6; }
4246if test -z "$MKDIR_P"; then
4247  if test ${ac_cv_path_mkdir+y}
4248then :
4249  printf %s "(cached) " >&6
4250else case e in #(
4251  e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4252for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4253do
4254  IFS=$as_save_IFS
4255  case $as_dir in #(((
4256    '') as_dir=./ ;;
4257    */) ;;
4258    *) as_dir=$as_dir/ ;;
4259  esac
4260    for ac_prog in mkdir gmkdir; do
4261	 for ac_exec_ext in '' $ac_executable_extensions; do
4262	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
4263	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
4264	     'mkdir ('*'coreutils) '* | \
4265	     *'BusyBox '* | \
4266	     'mkdir (fileutils) '4.1*)
4267	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
4268	       break 3;;
4269	   esac
4270	 done
4271       done
4272  done
4273IFS=$as_save_IFS
4274 ;;
4275esac
4276fi
4277
4278  test -d ./--version && rmdir ./--version
4279  if test ${ac_cv_path_mkdir+y}; then
4280    MKDIR_P="$ac_cv_path_mkdir -p"
4281  else
4282    # As a last resort, use plain mkdir -p,
4283    # in the hope it doesn't have the bugs of ancient mkdir.
4284    MKDIR_P='mkdir -p'
4285  fi
4286fi
4287{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4288printf "%s\n" "$MKDIR_P" >&6; }
4289
4290for ac_prog in gawk mawk nawk awk
4291do
4292  # Extract the first word of "$ac_prog", so it can be a program name with args.
4293set dummy $ac_prog; ac_word=$2
4294{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4295printf %s "checking for $ac_word... " >&6; }
4296if test ${ac_cv_prog_AWK+y}
4297then :
4298  printf %s "(cached) " >&6
4299else case e in #(
4300  e) if test -n "$AWK"; then
4301  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4302else
4303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4304for as_dir in $PATH
4305do
4306  IFS=$as_save_IFS
4307  case $as_dir in #(((
4308    '') as_dir=./ ;;
4309    */) ;;
4310    *) as_dir=$as_dir/ ;;
4311  esac
4312    for ac_exec_ext in '' $ac_executable_extensions; do
4313  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4314    ac_cv_prog_AWK="$ac_prog"
4315    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4316    break 2
4317  fi
4318done
4319  done
4320IFS=$as_save_IFS
4321
4322fi ;;
4323esac
4324fi
4325AWK=$ac_cv_prog_AWK
4326if test -n "$AWK"; then
4327  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4328printf "%s\n" "$AWK" >&6; }
4329else
4330  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4331printf "%s\n" "no" >&6; }
4332fi
4333
4334
4335  test -n "$AWK" && break
4336done
4337
4338{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4339printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4340set x ${MAKE-make}
4341ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4342if eval test \${ac_cv_prog_make_${ac_make}_set+y}
4343then :
4344  printf %s "(cached) " >&6
4345else case e in #(
4346  e) cat >conftest.make <<\_ACEOF
4347SHELL = /bin/sh
4348all:
4349	@echo '@@@%%%=$(MAKE)=@@@%%%'
4350_ACEOF
4351# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4352case `${MAKE-make} -f conftest.make 2>/dev/null` in
4353  *@@@%%%=?*=@@@%%%*)
4354    eval ac_cv_prog_make_${ac_make}_set=yes;;
4355  *)
4356    eval ac_cv_prog_make_${ac_make}_set=no;;
4357esac
4358rm -f conftest.make ;;
4359esac
4360fi
4361if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4362  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4363printf "%s\n" "yes" >&6; }
4364  SET_MAKE=
4365else
4366  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4367printf "%s\n" "no" >&6; }
4368  SET_MAKE="MAKE=${MAKE-make}"
4369fi
4370
4371rm -rf .tst 2>/dev/null
4372mkdir .tst 2>/dev/null
4373if test -d .tst; then
4374  am__leading_dot=.
4375else
4376  am__leading_dot=_
4377fi
4378rmdir .tst 2>/dev/null
4379
4380DEPDIR="${am__leading_dot}deps"
4381
4382ac_config_commands="$ac_config_commands depfiles"
4383
4384{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4385printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4386cat > confinc.mk << 'END'
4387am__doit:
4388	@echo this is the am__doit target >confinc.out
4389.PHONY: am__doit
4390END
4391am__include="#"
4392am__quote=
4393# BSD make does it like this.
4394echo '.include "confinc.mk" # ignored' > confmf.BSD
4395# Other make implementations (GNU, Solaris 10, AIX) do it like this.
4396echo 'include confinc.mk # ignored' > confmf.GNU
4397_am_result=no
4398for s in GNU BSD; do
4399  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4400   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4401   ac_status=$?
4402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4403   (exit $ac_status); }
4404  case $?:`cat confinc.out 2>/dev/null` in #(
4405  '0:this is the am__doit target') :
4406    case $s in #(
4407  BSD) :
4408    am__include='.include' am__quote='"' ;; #(
4409  *) :
4410    am__include='include' am__quote='' ;;
4411esac ;; #(
4412  *) :
4413     ;;
4414esac
4415  if test "$am__include" != "#"; then
4416    _am_result="yes ($s style)"
4417    break
4418  fi
4419done
4420rm -f confinc.* confmf.*
4421{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4422printf "%s\n" "${_am_result}" >&6; }
4423
4424# Check whether --enable-dependency-tracking was given.
4425if test ${enable_dependency_tracking+y}
4426then :
4427  enableval=$enable_dependency_tracking;
4428fi
4429
4430if test "x$enable_dependency_tracking" != xno; then
4431  am_depcomp="$ac_aux_dir/depcomp"
4432  AMDEPBACKSLASH='\'
4433  am__nodep='_no'
4434fi
4435 if test "x$enable_dependency_tracking" != xno; then
4436  AMDEP_TRUE=
4437  AMDEP_FALSE='#'
4438else
4439  AMDEP_TRUE='#'
4440  AMDEP_FALSE=
4441fi
4442
4443
4444# Check whether --enable-silent-rules was given.
4445if test ${enable_silent_rules+y}
4446then :
4447  enableval=$enable_silent_rules;
4448fi
4449
4450case $enable_silent_rules in # (((
4451  yes) AM_DEFAULT_VERBOSITY=0;;
4452   no) AM_DEFAULT_VERBOSITY=1;;
4453    *) AM_DEFAULT_VERBOSITY=1;;
4454esac
4455am_make=${MAKE-make}
4456{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4457printf %s "checking whether $am_make supports nested variables... " >&6; }
4458if test ${am_cv_make_support_nested_variables+y}
4459then :
4460  printf %s "(cached) " >&6
4461else case e in #(
4462  e) if printf "%s\n" 'TRUE=$(BAR$(V))
4463BAR0=false
4464BAR1=true
4465V=1
4466am__doit:
4467	@$(TRUE)
4468.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4469  am_cv_make_support_nested_variables=yes
4470else
4471  am_cv_make_support_nested_variables=no
4472fi ;;
4473esac
4474fi
4475{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4476printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4477if test $am_cv_make_support_nested_variables = yes; then
4478    AM_V='$(V)'
4479  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4480else
4481  AM_V=$AM_DEFAULT_VERBOSITY
4482  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4483fi
4484AM_BACKSLASH='\'
4485
4486if test "`cd $srcdir && pwd`" != "`pwd`"; then
4487  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4488  # is not polluted with repeated "-I."
4489  am__isrc=' -I$(srcdir)'
4490  # test to see if srcdir already configured
4491  if test -f $srcdir/config.status; then
4492    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4493  fi
4494fi
4495
4496# test whether we have cygpath
4497if test -z "$CYGPATH_W"; then
4498  if (cygpath --version) >/dev/null 2>/dev/null; then
4499    CYGPATH_W='cygpath -w'
4500  else
4501    CYGPATH_W=echo
4502  fi
4503fi
4504
4505
4506# Define the identity of the package.
4507 PACKAGE='libfontenc'
4508 VERSION='1.1.8'
4509
4510
4511printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
4512
4513
4514printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
4515
4516# Some tools Automake needs.
4517
4518ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4519
4520
4521AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4522
4523
4524AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4525
4526
4527AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4528
4529
4530MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4531
4532# For better backward compatibility.  To be removed once Automake 1.9.x
4533# dies out for good.  For more background, see:
4534# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4535# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4536mkdir_p='$(MKDIR_P)'
4537
4538# We need awk for the "check" target (and possibly the TAP driver).  The
4539# system "awk" is bad on some platforms.
4540# Always define AMTAR for backward compatibility.  Yes, it's still used
4541# in the wild :-(  We should find a proper way to deprecate it ...
4542AMTAR='$${TAR-tar}'
4543
4544
4545# We'll loop over all known methods to create a tar archive until one works.
4546_am_tools='gnutar  pax cpio none'
4547
4548am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4549
4550
4551
4552
4553
4554depcc="$CC"   am_compiler_list=
4555
4556{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4557printf %s "checking dependency style of $depcc... " >&6; }
4558if test ${am_cv_CC_dependencies_compiler_type+y}
4559then :
4560  printf %s "(cached) " >&6
4561else case e in #(
4562  e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4563  # We make a subdir and do the tests there.  Otherwise we can end up
4564  # making bogus files that we don't know about and never remove.  For
4565  # instance it was reported that on HP-UX the gcc test will end up
4566  # making a dummy file named 'D' -- because '-MD' means "put the output
4567  # in D".
4568  rm -rf conftest.dir
4569  mkdir conftest.dir
4570  # Copy depcomp to subdir because otherwise we won't find it if we're
4571  # using a relative directory.
4572  cp "$am_depcomp" conftest.dir
4573  cd conftest.dir
4574  # We will build objects and dependencies in a subdirectory because
4575  # it helps to detect inapplicable dependency modes.  For instance
4576  # both Tru64's cc and ICC support -MD to output dependencies as a
4577  # side effect of compilation, but ICC will put the dependencies in
4578  # the current directory while Tru64 will put them in the object
4579  # directory.
4580  mkdir sub
4581
4582  am_cv_CC_dependencies_compiler_type=none
4583  if test "$am_compiler_list" = ""; then
4584     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4585  fi
4586  am__universal=false
4587  case " $depcc " in #(
4588     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4589     esac
4590
4591  for depmode in $am_compiler_list; do
4592    # Setup a source with many dependencies, because some compilers
4593    # like to wrap large dependency lists on column 80 (with \), and
4594    # we should not choose a depcomp mode which is confused by this.
4595    #
4596    # We need to recreate these files for each test, as the compiler may
4597    # overwrite some of them when testing with obscure command lines.
4598    # This happens at least with the AIX C compiler.
4599    : > sub/conftest.c
4600    for i in 1 2 3 4 5 6; do
4601      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4602      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4603      # Solaris 10 /bin/sh.
4604      echo '/* dummy */' > sub/conftst$i.h
4605    done
4606    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4607
4608    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4609    # mode.  It turns out that the SunPro C++ compiler does not properly
4610    # handle '-M -o', and we need to detect this.  Also, some Intel
4611    # versions had trouble with output in subdirs.
4612    am__obj=sub/conftest.${OBJEXT-o}
4613    am__minus_obj="-o $am__obj"
4614    case $depmode in
4615    gcc)
4616      # This depmode causes a compiler race in universal mode.
4617      test "$am__universal" = false || continue
4618      ;;
4619    nosideeffect)
4620      # After this tag, mechanisms are not by side-effect, so they'll
4621      # only be used when explicitly requested.
4622      if test "x$enable_dependency_tracking" = xyes; then
4623	continue
4624      else
4625	break
4626      fi
4627      ;;
4628    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4629      # This compiler won't grok '-c -o', but also, the minuso test has
4630      # not run yet.  These depmodes are late enough in the game, and
4631      # so weak that their functioning should not be impacted.
4632      am__obj=conftest.${OBJEXT-o}
4633      am__minus_obj=
4634      ;;
4635    none) break ;;
4636    esac
4637    if depmode=$depmode \
4638       source=sub/conftest.c object=$am__obj \
4639       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4640       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4641         >/dev/null 2>conftest.err &&
4642       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4643       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4644       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4645       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4646      # icc doesn't choke on unknown options, it will just issue warnings
4647      # or remarks (even with -Werror).  So we grep stderr for any message
4648      # that says an option was ignored or not supported.
4649      # When given -MP, icc 7.0 and 7.1 complain thusly:
4650      #   icc: Command line warning: ignoring option '-M'; no argument required
4651      # The diagnosis changed in icc 8.0:
4652      #   icc: Command line remark: option '-MP' not supported
4653      if (grep 'ignoring option' conftest.err ||
4654          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4655        am_cv_CC_dependencies_compiler_type=$depmode
4656        break
4657      fi
4658    fi
4659  done
4660
4661  cd ..
4662  rm -rf conftest.dir
4663else
4664  am_cv_CC_dependencies_compiler_type=none
4665fi
4666 ;;
4667esac
4668fi
4669{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4670printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4671CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4672
4673 if
4674  test "x$enable_dependency_tracking" != xno \
4675  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4676  am__fastdepCC_TRUE=
4677  am__fastdepCC_FALSE='#'
4678else
4679  am__fastdepCC_TRUE='#'
4680  am__fastdepCC_FALSE=
4681fi
4682
4683
4684# Variables for tags utilities; see am/tags.am
4685if test -z "$CTAGS"; then
4686  CTAGS=ctags
4687fi
4688
4689if test -z "$ETAGS"; then
4690  ETAGS=etags
4691fi
4692
4693if test -z "$CSCOPE"; then
4694  CSCOPE=cscope
4695fi
4696
4697
4698
4699# POSIX will say in a future version that running "rm -f" with no argument
4700# is OK; and we want to be able to make that assumption in our Makefile
4701# recipes.  So use an aggressive probe to check that the usage we want is
4702# actually supported "in the wild" to an acceptable degree.
4703# See automake bug#10828.
4704# To make any issue more visible, cause the running configure to be aborted
4705# by default if the 'rm' program in use doesn't match our expectations; the
4706# user can still override this though.
4707if rm -f && rm -fr && rm -rf; then : OK; else
4708  cat >&2 <<'END'
4709Oops!
4710
4711Your 'rm' program seems unable to run without file operands specified
4712on the command line, even when the '-f' option is present.  This is contrary
4713to the behaviour of most rm programs out there, and not conforming with
4714the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4715
4716Please tell bug-automake@gnu.org about your system, including the value
4717of your $PATH and any error possibly output before this message.  This
4718can help us improve future automake versions.
4719
4720END
4721  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4722    echo 'Configuration will proceed anyway, since you have set the' >&2
4723    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4724    echo >&2
4725  else
4726    cat >&2 <<'END'
4727Aborting the configuration process, to ensure you take notice of the issue.
4728
4729You can download and install GNU coreutils to get an 'rm' implementation
4730that behaves properly: <https://www.gnu.org/software/coreutils/>.
4731
4732If you want to complete the configuration process using your problematic
4733'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4734to "yes", and re-run configure.
4735
4736END
4737    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4738  fi
4739fi
4740
4741
4742# Initialize libtool
4743case `pwd` in
4744  *\ * | *\	*)
4745    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4746printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4747esac
4748
4749
4750
4751macro_version='2.4.7'
4752macro_revision='2.4.7'
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767ltmain=$ac_aux_dir/ltmain.sh
4768
4769
4770
4771  # Make sure we can run config.sub.
4772$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4773  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4774
4775{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4776printf %s "checking build system type... " >&6; }
4777if test ${ac_cv_build+y}
4778then :
4779  printf %s "(cached) " >&6
4780else case e in #(
4781  e) ac_build_alias=$build_alias
4782test "x$ac_build_alias" = x &&
4783  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4784test "x$ac_build_alias" = x &&
4785  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4786ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4787  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4788 ;;
4789esac
4790fi
4791{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4792printf "%s\n" "$ac_cv_build" >&6; }
4793case $ac_cv_build in
4794*-*-*) ;;
4795*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4796esac
4797build=$ac_cv_build
4798ac_save_IFS=$IFS; IFS='-'
4799set x $ac_cv_build
4800shift
4801build_cpu=$1
4802build_vendor=$2
4803shift; shift
4804# Remember, the first character of IFS is used to create $*,
4805# except with old shells:
4806build_os=$*
4807IFS=$ac_save_IFS
4808case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4809
4810
4811{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4812printf %s "checking host system type... " >&6; }
4813if test ${ac_cv_host+y}
4814then :
4815  printf %s "(cached) " >&6
4816else case e in #(
4817  e) if test "x$host_alias" = x; then
4818  ac_cv_host=$ac_cv_build
4819else
4820  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4821    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4822fi
4823 ;;
4824esac
4825fi
4826{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4827printf "%s\n" "$ac_cv_host" >&6; }
4828case $ac_cv_host in
4829*-*-*) ;;
4830*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4831esac
4832host=$ac_cv_host
4833ac_save_IFS=$IFS; IFS='-'
4834set x $ac_cv_host
4835shift
4836host_cpu=$1
4837host_vendor=$2
4838shift; shift
4839# Remember, the first character of IFS is used to create $*,
4840# except with old shells:
4841host_os=$*
4842IFS=$ac_save_IFS
4843case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4844
4845
4846# Backslashify metacharacters that are still active within
4847# double-quoted strings.
4848sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4849
4850# Same as above, but do not quote variable references.
4851double_quote_subst='s/\(["`\\]\)/\\\1/g'
4852
4853# Sed substitution to delay expansion of an escaped shell variable in a
4854# double_quote_subst'ed string.
4855delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4856
4857# Sed substitution to delay expansion of an escaped single quote.
4858delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4859
4860# Sed substitution to avoid accidental globbing in evaled expressions
4861no_glob_subst='s/\*/\\\*/g'
4862
4863ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4864ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4865ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4866
4867{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4868printf %s "checking how to print strings... " >&6; }
4869# Test print first, because it will be a builtin if present.
4870if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4871   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4872  ECHO='print -r --'
4873elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4874  ECHO='printf %s\n'
4875else
4876  # Use this function as a fallback that always works.
4877  func_fallback_echo ()
4878  {
4879    eval 'cat <<_LTECHO_EOF
4880$1
4881_LTECHO_EOF'
4882  }
4883  ECHO='func_fallback_echo'
4884fi
4885
4886# func_echo_all arg...
4887# Invoke $ECHO with all args, space-separated.
4888func_echo_all ()
4889{
4890    $ECHO ""
4891}
4892
4893case $ECHO in
4894  printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4895printf "%s\n" "printf" >&6; } ;;
4896  print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4897printf "%s\n" "print -r" >&6; } ;;
4898  *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4899printf "%s\n" "cat" >&6; } ;;
4900esac
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4916printf %s "checking for a sed that does not truncate output... " >&6; }
4917if test ${ac_cv_path_SED+y}
4918then :
4919  printf %s "(cached) " >&6
4920else case e in #(
4921  e)           ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4922     for ac_i in 1 2 3 4 5 6 7; do
4923       ac_script="$ac_script$as_nl$ac_script"
4924     done
4925     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4926     { ac_script=; unset ac_script;}
4927     if test -z "$SED"; then
4928  ac_path_SED_found=false
4929  # Loop through the user's path and test for each of PROGNAME-LIST
4930  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4931for as_dir in $PATH
4932do
4933  IFS=$as_save_IFS
4934  case $as_dir in #(((
4935    '') as_dir=./ ;;
4936    */) ;;
4937    *) as_dir=$as_dir/ ;;
4938  esac
4939    for ac_prog in sed gsed
4940   do
4941    for ac_exec_ext in '' $ac_executable_extensions; do
4942      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4943      as_fn_executable_p "$ac_path_SED" || continue
4944# Check for GNU ac_path_SED and select it if it is found.
4945  # Check for GNU $ac_path_SED
4946case `"$ac_path_SED" --version 2>&1` in #(
4947*GNU*)
4948  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4949#(
4950*)
4951  ac_count=0
4952  printf %s 0123456789 >"conftest.in"
4953  while :
4954  do
4955    cat "conftest.in" "conftest.in" >"conftest.tmp"
4956    mv "conftest.tmp" "conftest.in"
4957    cp "conftest.in" "conftest.nl"
4958    printf "%s\n" '' >> "conftest.nl"
4959    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4960    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4961    as_fn_arith $ac_count + 1 && ac_count=$as_val
4962    if test $ac_count -gt ${ac_path_SED_max-0}; then
4963      # Best one so far, save it but keep looking for a better one
4964      ac_cv_path_SED="$ac_path_SED"
4965      ac_path_SED_max=$ac_count
4966    fi
4967    # 10*(2^10) chars as input seems more than enough
4968    test $ac_count -gt 10 && break
4969  done
4970  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4971esac
4972
4973      $ac_path_SED_found && break 3
4974    done
4975  done
4976  done
4977IFS=$as_save_IFS
4978  if test -z "$ac_cv_path_SED"; then
4979    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4980  fi
4981else
4982  ac_cv_path_SED=$SED
4983fi
4984 ;;
4985esac
4986fi
4987{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4988printf "%s\n" "$ac_cv_path_SED" >&6; }
4989 SED="$ac_cv_path_SED"
4990  rm -f conftest.sed
4991
4992test -z "$SED" && SED=sed
4993Xsed="$SED -e 1s/^X//"
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5006printf %s "checking for grep that handles long lines and -e... " >&6; }
5007if test ${ac_cv_path_GREP+y}
5008then :
5009  printf %s "(cached) " >&6
5010else case e in #(
5011  e) if test -z "$GREP"; then
5012  ac_path_GREP_found=false
5013  # Loop through the user's path and test for each of PROGNAME-LIST
5014  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5015for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5016do
5017  IFS=$as_save_IFS
5018  case $as_dir in #(((
5019    '') as_dir=./ ;;
5020    */) ;;
5021    *) as_dir=$as_dir/ ;;
5022  esac
5023    for ac_prog in grep ggrep
5024   do
5025    for ac_exec_ext in '' $ac_executable_extensions; do
5026      ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5027      as_fn_executable_p "$ac_path_GREP" || continue
5028# Check for GNU ac_path_GREP and select it if it is found.
5029  # Check for GNU $ac_path_GREP
5030case `"$ac_path_GREP" --version 2>&1` in #(
5031*GNU*)
5032  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5033#(
5034*)
5035  ac_count=0
5036  printf %s 0123456789 >"conftest.in"
5037  while :
5038  do
5039    cat "conftest.in" "conftest.in" >"conftest.tmp"
5040    mv "conftest.tmp" "conftest.in"
5041    cp "conftest.in" "conftest.nl"
5042    printf "%s\n" 'GREP' >> "conftest.nl"
5043    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5044    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5045    as_fn_arith $ac_count + 1 && ac_count=$as_val
5046    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5047      # Best one so far, save it but keep looking for a better one
5048      ac_cv_path_GREP="$ac_path_GREP"
5049      ac_path_GREP_max=$ac_count
5050    fi
5051    # 10*(2^10) chars as input seems more than enough
5052    test $ac_count -gt 10 && break
5053  done
5054  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5055esac
5056
5057      $ac_path_GREP_found && break 3
5058    done
5059  done
5060  done
5061IFS=$as_save_IFS
5062  if test -z "$ac_cv_path_GREP"; then
5063    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5064  fi
5065else
5066  ac_cv_path_GREP=$GREP
5067fi
5068 ;;
5069esac
5070fi
5071{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5072printf "%s\n" "$ac_cv_path_GREP" >&6; }
5073 GREP="$ac_cv_path_GREP"
5074
5075
5076{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5077printf %s "checking for egrep... " >&6; }
5078if test ${ac_cv_path_EGREP+y}
5079then :
5080  printf %s "(cached) " >&6
5081else case e in #(
5082  e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5083   then ac_cv_path_EGREP="$GREP -E"
5084   else
5085     if test -z "$EGREP"; then
5086  ac_path_EGREP_found=false
5087  # Loop through the user's path and test for each of PROGNAME-LIST
5088  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5089for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5090do
5091  IFS=$as_save_IFS
5092  case $as_dir in #(((
5093    '') as_dir=./ ;;
5094    */) ;;
5095    *) as_dir=$as_dir/ ;;
5096  esac
5097    for ac_prog in egrep
5098   do
5099    for ac_exec_ext in '' $ac_executable_extensions; do
5100      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5101      as_fn_executable_p "$ac_path_EGREP" || continue
5102# Check for GNU ac_path_EGREP and select it if it is found.
5103  # Check for GNU $ac_path_EGREP
5104case `"$ac_path_EGREP" --version 2>&1` in #(
5105*GNU*)
5106  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5107#(
5108*)
5109  ac_count=0
5110  printf %s 0123456789 >"conftest.in"
5111  while :
5112  do
5113    cat "conftest.in" "conftest.in" >"conftest.tmp"
5114    mv "conftest.tmp" "conftest.in"
5115    cp "conftest.in" "conftest.nl"
5116    printf "%s\n" 'EGREP' >> "conftest.nl"
5117    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5118    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5119    as_fn_arith $ac_count + 1 && ac_count=$as_val
5120    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5121      # Best one so far, save it but keep looking for a better one
5122      ac_cv_path_EGREP="$ac_path_EGREP"
5123      ac_path_EGREP_max=$ac_count
5124    fi
5125    # 10*(2^10) chars as input seems more than enough
5126    test $ac_count -gt 10 && break
5127  done
5128  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5129esac
5130
5131      $ac_path_EGREP_found && break 3
5132    done
5133  done
5134  done
5135IFS=$as_save_IFS
5136  if test -z "$ac_cv_path_EGREP"; then
5137    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5138  fi
5139else
5140  ac_cv_path_EGREP=$EGREP
5141fi
5142
5143   fi ;;
5144esac
5145fi
5146{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5147printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5148 EGREP="$ac_cv_path_EGREP"
5149
5150         EGREP_TRADITIONAL=$EGREP
5151 ac_cv_path_EGREP_TRADITIONAL=$EGREP
5152
5153{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5154printf %s "checking for fgrep... " >&6; }
5155if test ${ac_cv_path_FGREP+y}
5156then :
5157  printf %s "(cached) " >&6
5158else case e in #(
5159  e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5160   then ac_cv_path_FGREP="$GREP -F"
5161   else
5162     if test -z "$FGREP"; then
5163  ac_path_FGREP_found=false
5164  # Loop through the user's path and test for each of PROGNAME-LIST
5165  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5166for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5167do
5168  IFS=$as_save_IFS
5169  case $as_dir in #(((
5170    '') as_dir=./ ;;
5171    */) ;;
5172    *) as_dir=$as_dir/ ;;
5173  esac
5174    for ac_prog in fgrep
5175   do
5176    for ac_exec_ext in '' $ac_executable_extensions; do
5177      ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5178      as_fn_executable_p "$ac_path_FGREP" || continue
5179# Check for GNU ac_path_FGREP and select it if it is found.
5180  # Check for GNU $ac_path_FGREP
5181case `"$ac_path_FGREP" --version 2>&1` in #(
5182*GNU*)
5183  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5184#(
5185*)
5186  ac_count=0
5187  printf %s 0123456789 >"conftest.in"
5188  while :
5189  do
5190    cat "conftest.in" "conftest.in" >"conftest.tmp"
5191    mv "conftest.tmp" "conftest.in"
5192    cp "conftest.in" "conftest.nl"
5193    printf "%s\n" 'FGREP' >> "conftest.nl"
5194    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5195    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5196    as_fn_arith $ac_count + 1 && ac_count=$as_val
5197    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5198      # Best one so far, save it but keep looking for a better one
5199      ac_cv_path_FGREP="$ac_path_FGREP"
5200      ac_path_FGREP_max=$ac_count
5201    fi
5202    # 10*(2^10) chars as input seems more than enough
5203    test $ac_count -gt 10 && break
5204  done
5205  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5206esac
5207
5208      $ac_path_FGREP_found && break 3
5209    done
5210  done
5211  done
5212IFS=$as_save_IFS
5213  if test -z "$ac_cv_path_FGREP"; then
5214    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5215  fi
5216else
5217  ac_cv_path_FGREP=$FGREP
5218fi
5219
5220   fi ;;
5221esac
5222fi
5223{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5224printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5225 FGREP="$ac_cv_path_FGREP"
5226
5227
5228test -z "$GREP" && GREP=grep
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248# Check whether --with-gnu-ld was given.
5249if test ${with_gnu_ld+y}
5250then :
5251  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5252else case e in #(
5253  e) with_gnu_ld=no ;;
5254esac
5255fi
5256
5257ac_prog=ld
5258if test yes = "$GCC"; then
5259  # Check if gcc -print-prog-name=ld gives a path.
5260  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5261printf %s "checking for ld used by $CC... " >&6; }
5262  case $host in
5263  *-*-mingw*)
5264    # gcc leaves a trailing carriage return, which upsets mingw
5265    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5266  *)
5267    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5268  esac
5269  case $ac_prog in
5270    # Accept absolute paths.
5271    [\\/]* | ?:[\\/]*)
5272      re_direlt='/[^/][^/]*/\.\./'
5273      # Canonicalize the pathname of ld
5274      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5275      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5276	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5277      done
5278      test -z "$LD" && LD=$ac_prog
5279      ;;
5280  "")
5281    # If it fails, then pretend we aren't using GCC.
5282    ac_prog=ld
5283    ;;
5284  *)
5285    # If it is relative, then search for the first ld in PATH.
5286    with_gnu_ld=unknown
5287    ;;
5288  esac
5289elif test yes = "$with_gnu_ld"; then
5290  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5291printf %s "checking for GNU ld... " >&6; }
5292else
5293  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5294printf %s "checking for non-GNU ld... " >&6; }
5295fi
5296if test ${lt_cv_path_LD+y}
5297then :
5298  printf %s "(cached) " >&6
5299else case e in #(
5300  e) if test -z "$LD"; then
5301  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5302  for ac_dir in $PATH; do
5303    IFS=$lt_save_ifs
5304    test -z "$ac_dir" && ac_dir=.
5305    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5306      lt_cv_path_LD=$ac_dir/$ac_prog
5307      # Check to see if the program is GNU ld.  I'd rather use --version,
5308      # but apparently some variants of GNU ld only accept -v.
5309      # Break only if it was the GNU/non-GNU ld that we prefer.
5310      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5311      *GNU* | *'with BFD'*)
5312	test no != "$with_gnu_ld" && break
5313	;;
5314      *)
5315	test yes != "$with_gnu_ld" && break
5316	;;
5317      esac
5318    fi
5319  done
5320  IFS=$lt_save_ifs
5321else
5322  lt_cv_path_LD=$LD # Let the user override the test with a path.
5323fi ;;
5324esac
5325fi
5326
5327LD=$lt_cv_path_LD
5328if test -n "$LD"; then
5329  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5330printf "%s\n" "$LD" >&6; }
5331else
5332  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5333printf "%s\n" "no" >&6; }
5334fi
5335test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5336{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5337printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5338if test ${lt_cv_prog_gnu_ld+y}
5339then :
5340  printf %s "(cached) " >&6
5341else case e in #(
5342  e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
5343case `$LD -v 2>&1 </dev/null` in
5344*GNU* | *'with BFD'*)
5345  lt_cv_prog_gnu_ld=yes
5346  ;;
5347*)
5348  lt_cv_prog_gnu_ld=no
5349  ;;
5350esac ;;
5351esac
5352fi
5353{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5354printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5355with_gnu_ld=$lt_cv_prog_gnu_ld
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5366printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5367if test ${lt_cv_path_NM+y}
5368then :
5369  printf %s "(cached) " >&6
5370else case e in #(
5371  e) if test -n "$NM"; then
5372  # Let the user override the test.
5373  lt_cv_path_NM=$NM
5374else
5375  lt_nm_to_check=${ac_tool_prefix}nm
5376  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5377    lt_nm_to_check="$lt_nm_to_check nm"
5378  fi
5379  for lt_tmp_nm in $lt_nm_to_check; do
5380    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5381    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5382      IFS=$lt_save_ifs
5383      test -z "$ac_dir" && ac_dir=.
5384      tmp_nm=$ac_dir/$lt_tmp_nm
5385      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5386	# Check to see if the nm accepts a BSD-compat flag.
5387	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5388	#   nm: unknown option "B" ignored
5389	# Tru64's nm complains that /dev/null is an invalid object file
5390	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5391	case $build_os in
5392	mingw*) lt_bad_file=conftest.nm/nofile ;;
5393	*) lt_bad_file=/dev/null ;;
5394	esac
5395	case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5396	*$lt_bad_file* | *'Invalid file or object type'*)
5397	  lt_cv_path_NM="$tmp_nm -B"
5398	  break 2
5399	  ;;
5400	*)
5401	  case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5402	  */dev/null*)
5403	    lt_cv_path_NM="$tmp_nm -p"
5404	    break 2
5405	    ;;
5406	  *)
5407	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5408	    continue # so that we can try to find one that supports BSD flags
5409	    ;;
5410	  esac
5411	  ;;
5412	esac
5413      fi
5414    done
5415    IFS=$lt_save_ifs
5416  done
5417  : ${lt_cv_path_NM=no}
5418fi ;;
5419esac
5420fi
5421{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5422printf "%s\n" "$lt_cv_path_NM" >&6; }
5423if test no != "$lt_cv_path_NM"; then
5424  NM=$lt_cv_path_NM
5425else
5426  # Didn't find any BSD compatible name lister, look for dumpbin.
5427  if test -n "$DUMPBIN"; then :
5428    # Let the user override the test.
5429  else
5430    if test -n "$ac_tool_prefix"; then
5431  for ac_prog in dumpbin "link -dump"
5432  do
5433    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5434set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5435{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5436printf %s "checking for $ac_word... " >&6; }
5437if test ${ac_cv_prog_DUMPBIN+y}
5438then :
5439  printf %s "(cached) " >&6
5440else case e in #(
5441  e) if test -n "$DUMPBIN"; then
5442  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5443else
5444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5445for as_dir in $PATH
5446do
5447  IFS=$as_save_IFS
5448  case $as_dir in #(((
5449    '') as_dir=./ ;;
5450    */) ;;
5451    *) as_dir=$as_dir/ ;;
5452  esac
5453    for ac_exec_ext in '' $ac_executable_extensions; do
5454  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5455    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5456    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5457    break 2
5458  fi
5459done
5460  done
5461IFS=$as_save_IFS
5462
5463fi ;;
5464esac
5465fi
5466DUMPBIN=$ac_cv_prog_DUMPBIN
5467if test -n "$DUMPBIN"; then
5468  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5469printf "%s\n" "$DUMPBIN" >&6; }
5470else
5471  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5472printf "%s\n" "no" >&6; }
5473fi
5474
5475
5476    test -n "$DUMPBIN" && break
5477  done
5478fi
5479if test -z "$DUMPBIN"; then
5480  ac_ct_DUMPBIN=$DUMPBIN
5481  for ac_prog in dumpbin "link -dump"
5482do
5483  # Extract the first word of "$ac_prog", so it can be a program name with args.
5484set dummy $ac_prog; ac_word=$2
5485{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5486printf %s "checking for $ac_word... " >&6; }
5487if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5488then :
5489  printf %s "(cached) " >&6
5490else case e in #(
5491  e) if test -n "$ac_ct_DUMPBIN"; then
5492  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5493else
5494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5495for as_dir in $PATH
5496do
5497  IFS=$as_save_IFS
5498  case $as_dir in #(((
5499    '') as_dir=./ ;;
5500    */) ;;
5501    *) as_dir=$as_dir/ ;;
5502  esac
5503    for ac_exec_ext in '' $ac_executable_extensions; do
5504  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5505    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5506    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5507    break 2
5508  fi
5509done
5510  done
5511IFS=$as_save_IFS
5512
5513fi ;;
5514esac
5515fi
5516ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5517if test -n "$ac_ct_DUMPBIN"; then
5518  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5519printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5520else
5521  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5522printf "%s\n" "no" >&6; }
5523fi
5524
5525
5526  test -n "$ac_ct_DUMPBIN" && break
5527done
5528
5529  if test "x$ac_ct_DUMPBIN" = x; then
5530    DUMPBIN=":"
5531  else
5532    case $cross_compiling:$ac_tool_warned in
5533yes:)
5534{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5535printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5536ac_tool_warned=yes ;;
5537esac
5538    DUMPBIN=$ac_ct_DUMPBIN
5539  fi
5540fi
5541
5542    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5543    *COFF*)
5544      DUMPBIN="$DUMPBIN -symbols -headers"
5545      ;;
5546    *)
5547      DUMPBIN=:
5548      ;;
5549    esac
5550  fi
5551
5552  if test : != "$DUMPBIN"; then
5553    NM=$DUMPBIN
5554  fi
5555fi
5556test -z "$NM" && NM=nm
5557
5558
5559
5560
5561
5562
5563{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5564printf %s "checking the name lister ($NM) interface... " >&6; }
5565if test ${lt_cv_nm_interface+y}
5566then :
5567  printf %s "(cached) " >&6
5568else case e in #(
5569  e) lt_cv_nm_interface="BSD nm"
5570  echo "int some_variable = 0;" > conftest.$ac_ext
5571  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5572  (eval "$ac_compile" 2>conftest.err)
5573  cat conftest.err >&5
5574  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5575  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5576  cat conftest.err >&5
5577  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5578  cat conftest.out >&5
5579  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5580    lt_cv_nm_interface="MS dumpbin"
5581  fi
5582  rm -f conftest* ;;
5583esac
5584fi
5585{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5586printf "%s\n" "$lt_cv_nm_interface" >&6; }
5587
5588{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5589printf %s "checking whether ln -s works... " >&6; }
5590LN_S=$as_ln_s
5591if test "$LN_S" = "ln -s"; then
5592  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5593printf "%s\n" "yes" >&6; }
5594else
5595  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5596printf "%s\n" "no, using $LN_S" >&6; }
5597fi
5598
5599# find the maximum length of command line arguments
5600{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5601printf %s "checking the maximum length of command line arguments... " >&6; }
5602if test ${lt_cv_sys_max_cmd_len+y}
5603then :
5604  printf %s "(cached) " >&6
5605else case e in #(
5606  e)   i=0
5607  teststring=ABCD
5608
5609  case $build_os in
5610  msdosdjgpp*)
5611    # On DJGPP, this test can blow up pretty badly due to problems in libc
5612    # (any single argument exceeding 2000 bytes causes a buffer overrun
5613    # during glob expansion).  Even if it were fixed, the result of this
5614    # check would be larger than it should be.
5615    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5616    ;;
5617
5618  gnu*)
5619    # Under GNU Hurd, this test is not required because there is
5620    # no limit to the length of command line arguments.
5621    # Libtool will interpret -1 as no limit whatsoever
5622    lt_cv_sys_max_cmd_len=-1;
5623    ;;
5624
5625  cygwin* | mingw* | cegcc*)
5626    # On Win9x/ME, this test blows up -- it succeeds, but takes
5627    # about 5 minutes as the teststring grows exponentially.
5628    # Worse, since 9x/ME are not pre-emptively multitasking,
5629    # you end up with a "frozen" computer, even though with patience
5630    # the test eventually succeeds (with a max line length of 256k).
5631    # Instead, let's just punt: use the minimum linelength reported by
5632    # all of the supported platforms: 8192 (on NT/2K/XP).
5633    lt_cv_sys_max_cmd_len=8192;
5634    ;;
5635
5636  mint*)
5637    # On MiNT this can take a long time and run out of memory.
5638    lt_cv_sys_max_cmd_len=8192;
5639    ;;
5640
5641  amigaos*)
5642    # On AmigaOS with pdksh, this test takes hours, literally.
5643    # So we just punt and use a minimum line length of 8192.
5644    lt_cv_sys_max_cmd_len=8192;
5645    ;;
5646
5647  bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5648    # This has been around since 386BSD, at least.  Likely further.
5649    if test -x /sbin/sysctl; then
5650      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5651    elif test -x /usr/sbin/sysctl; then
5652      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5653    else
5654      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5655    fi
5656    # And add a safety zone
5657    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5658    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5659    ;;
5660
5661  interix*)
5662    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5663    lt_cv_sys_max_cmd_len=196608
5664    ;;
5665
5666  os2*)
5667    # The test takes a long time on OS/2.
5668    lt_cv_sys_max_cmd_len=8192
5669    ;;
5670
5671  osf*)
5672    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5673    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5674    # nice to cause kernel panics so lets avoid the loop below.
5675    # First set a reasonable default.
5676    lt_cv_sys_max_cmd_len=16384
5677    #
5678    if test -x /sbin/sysconfig; then
5679      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5680        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5681      esac
5682    fi
5683    ;;
5684  sco3.2v5*)
5685    lt_cv_sys_max_cmd_len=102400
5686    ;;
5687  sysv5* | sco5v6* | sysv4.2uw2*)
5688    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5689    if test -n "$kargmax"; then
5690      lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[	 ]//'`
5691    else
5692      lt_cv_sys_max_cmd_len=32768
5693    fi
5694    ;;
5695  *)
5696    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5697    if test -n "$lt_cv_sys_max_cmd_len" && \
5698       test undefined != "$lt_cv_sys_max_cmd_len"; then
5699      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5700      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5701    else
5702      # Make teststring a little bigger before we do anything with it.
5703      # a 1K string should be a reasonable start.
5704      for i in 1 2 3 4 5 6 7 8; do
5705        teststring=$teststring$teststring
5706      done
5707      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5708      # If test is not a shell built-in, we'll probably end up computing a
5709      # maximum length that is only half of the actual maximum length, but
5710      # we can't tell.
5711      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5712	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5713	      test 17 != "$i" # 1/2 MB should be enough
5714      do
5715        i=`expr $i + 1`
5716        teststring=$teststring$teststring
5717      done
5718      # Only check the string length outside the loop.
5719      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5720      teststring=
5721      # Add a significant safety factor because C++ compilers can tack on
5722      # massive amounts of additional arguments before passing them to the
5723      # linker.  It appears as though 1/2 is a usable value.
5724      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5725    fi
5726    ;;
5727  esac
5728 ;;
5729esac
5730fi
5731
5732if test -n "$lt_cv_sys_max_cmd_len"; then
5733  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5734printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
5735else
5736  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5737printf "%s\n" "none" >&6; }
5738fi
5739max_cmd_len=$lt_cv_sys_max_cmd_len
5740
5741
5742
5743
5744
5745
5746: ${CP="cp -f"}
5747: ${MV="mv -f"}
5748: ${RM="rm -f"}
5749
5750if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5751  lt_unset=unset
5752else
5753  lt_unset=false
5754fi
5755
5756
5757
5758
5759
5760# test EBCDIC or ASCII
5761case `echo X|tr X '\101'` in
5762 A) # ASCII based system
5763    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5764  lt_SP2NL='tr \040 \012'
5765  lt_NL2SP='tr \015\012 \040\040'
5766  ;;
5767 *) # EBCDIC based system
5768  lt_SP2NL='tr \100 \n'
5769  lt_NL2SP='tr \r\n \100\100'
5770  ;;
5771esac
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5782printf %s "checking how to convert $build file names to $host format... " >&6; }
5783if test ${lt_cv_to_host_file_cmd+y}
5784then :
5785  printf %s "(cached) " >&6
5786else case e in #(
5787  e) case $host in
5788  *-*-mingw* )
5789    case $build in
5790      *-*-mingw* ) # actually msys
5791        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5792        ;;
5793      *-*-cygwin* )
5794        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5795        ;;
5796      * ) # otherwise, assume *nix
5797        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5798        ;;
5799    esac
5800    ;;
5801  *-*-cygwin* )
5802    case $build in
5803      *-*-mingw* ) # actually msys
5804        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5805        ;;
5806      *-*-cygwin* )
5807        lt_cv_to_host_file_cmd=func_convert_file_noop
5808        ;;
5809      * ) # otherwise, assume *nix
5810        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5811        ;;
5812    esac
5813    ;;
5814  * ) # unhandled hosts (and "normal" native builds)
5815    lt_cv_to_host_file_cmd=func_convert_file_noop
5816    ;;
5817esac
5818 ;;
5819esac
5820fi
5821
5822to_host_file_cmd=$lt_cv_to_host_file_cmd
5823{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5824printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
5825
5826
5827
5828
5829
5830{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5831printf %s "checking how to convert $build file names to toolchain format... " >&6; }
5832if test ${lt_cv_to_tool_file_cmd+y}
5833then :
5834  printf %s "(cached) " >&6
5835else case e in #(
5836  e) #assume ordinary cross tools, or native build.
5837lt_cv_to_tool_file_cmd=func_convert_file_noop
5838case $host in
5839  *-*-mingw* )
5840    case $build in
5841      *-*-mingw* ) # actually msys
5842        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5843        ;;
5844    esac
5845    ;;
5846esac
5847 ;;
5848esac
5849fi
5850
5851to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5852{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5853printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
5854
5855
5856
5857
5858
5859{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5860printf %s "checking for $LD option to reload object files... " >&6; }
5861if test ${lt_cv_ld_reload_flag+y}
5862then :
5863  printf %s "(cached) " >&6
5864else case e in #(
5865  e) lt_cv_ld_reload_flag='-r' ;;
5866esac
5867fi
5868{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5869printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
5870reload_flag=$lt_cv_ld_reload_flag
5871case $reload_flag in
5872"" | " "*) ;;
5873*) reload_flag=" $reload_flag" ;;
5874esac
5875reload_cmds='$LD$reload_flag -o $output$reload_objs'
5876case $host_os in
5877  cygwin* | mingw* | pw32* | cegcc*)
5878    if test yes != "$GCC"; then
5879      reload_cmds=false
5880    fi
5881    ;;
5882  darwin*)
5883    if test yes = "$GCC"; then
5884      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5885    else
5886      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5887    fi
5888    ;;
5889esac
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899if test -n "$ac_tool_prefix"; then
5900  # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
5901set dummy ${ac_tool_prefix}file; ac_word=$2
5902{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5903printf %s "checking for $ac_word... " >&6; }
5904if test ${ac_cv_prog_FILECMD+y}
5905then :
5906  printf %s "(cached) " >&6
5907else case e in #(
5908  e) if test -n "$FILECMD"; then
5909  ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
5910else
5911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5912for as_dir in $PATH
5913do
5914  IFS=$as_save_IFS
5915  case $as_dir in #(((
5916    '') as_dir=./ ;;
5917    */) ;;
5918    *) as_dir=$as_dir/ ;;
5919  esac
5920    for ac_exec_ext in '' $ac_executable_extensions; do
5921  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5922    ac_cv_prog_FILECMD="${ac_tool_prefix}file"
5923    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5924    break 2
5925  fi
5926done
5927  done
5928IFS=$as_save_IFS
5929
5930fi ;;
5931esac
5932fi
5933FILECMD=$ac_cv_prog_FILECMD
5934if test -n "$FILECMD"; then
5935  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
5936printf "%s\n" "$FILECMD" >&6; }
5937else
5938  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5939printf "%s\n" "no" >&6; }
5940fi
5941
5942
5943fi
5944if test -z "$ac_cv_prog_FILECMD"; then
5945  ac_ct_FILECMD=$FILECMD
5946  # Extract the first word of "file", so it can be a program name with args.
5947set dummy file; ac_word=$2
5948{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5949printf %s "checking for $ac_word... " >&6; }
5950if test ${ac_cv_prog_ac_ct_FILECMD+y}
5951then :
5952  printf %s "(cached) " >&6
5953else case e in #(
5954  e) if test -n "$ac_ct_FILECMD"; then
5955  ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
5956else
5957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5958for as_dir in $PATH
5959do
5960  IFS=$as_save_IFS
5961  case $as_dir in #(((
5962    '') as_dir=./ ;;
5963    */) ;;
5964    *) as_dir=$as_dir/ ;;
5965  esac
5966    for ac_exec_ext in '' $ac_executable_extensions; do
5967  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5968    ac_cv_prog_ac_ct_FILECMD="file"
5969    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5970    break 2
5971  fi
5972done
5973  done
5974IFS=$as_save_IFS
5975
5976fi ;;
5977esac
5978fi
5979ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
5980if test -n "$ac_ct_FILECMD"; then
5981  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
5982printf "%s\n" "$ac_ct_FILECMD" >&6; }
5983else
5984  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5985printf "%s\n" "no" >&6; }
5986fi
5987
5988  if test "x$ac_ct_FILECMD" = x; then
5989    FILECMD=":"
5990  else
5991    case $cross_compiling:$ac_tool_warned in
5992yes:)
5993{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5994printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5995ac_tool_warned=yes ;;
5996esac
5997    FILECMD=$ac_ct_FILECMD
5998  fi
5999else
6000  FILECMD="$ac_cv_prog_FILECMD"
6001fi
6002
6003
6004
6005
6006
6007
6008
6009if test -n "$ac_tool_prefix"; then
6010  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6011set dummy ${ac_tool_prefix}objdump; ac_word=$2
6012{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6013printf %s "checking for $ac_word... " >&6; }
6014if test ${ac_cv_prog_OBJDUMP+y}
6015then :
6016  printf %s "(cached) " >&6
6017else case e in #(
6018  e) if test -n "$OBJDUMP"; then
6019  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6020else
6021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6022for as_dir in $PATH
6023do
6024  IFS=$as_save_IFS
6025  case $as_dir in #(((
6026    '') as_dir=./ ;;
6027    */) ;;
6028    *) as_dir=$as_dir/ ;;
6029  esac
6030    for ac_exec_ext in '' $ac_executable_extensions; do
6031  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6032    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6033    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6034    break 2
6035  fi
6036done
6037  done
6038IFS=$as_save_IFS
6039
6040fi ;;
6041esac
6042fi
6043OBJDUMP=$ac_cv_prog_OBJDUMP
6044if test -n "$OBJDUMP"; then
6045  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6046printf "%s\n" "$OBJDUMP" >&6; }
6047else
6048  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6049printf "%s\n" "no" >&6; }
6050fi
6051
6052
6053fi
6054if test -z "$ac_cv_prog_OBJDUMP"; then
6055  ac_ct_OBJDUMP=$OBJDUMP
6056  # Extract the first word of "objdump", so it can be a program name with args.
6057set dummy objdump; ac_word=$2
6058{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6059printf %s "checking for $ac_word... " >&6; }
6060if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6061then :
6062  printf %s "(cached) " >&6
6063else case e in #(
6064  e) if test -n "$ac_ct_OBJDUMP"; then
6065  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6066else
6067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6068for as_dir in $PATH
6069do
6070  IFS=$as_save_IFS
6071  case $as_dir in #(((
6072    '') as_dir=./ ;;
6073    */) ;;
6074    *) as_dir=$as_dir/ ;;
6075  esac
6076    for ac_exec_ext in '' $ac_executable_extensions; do
6077  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6078    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6079    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6080    break 2
6081  fi
6082done
6083  done
6084IFS=$as_save_IFS
6085
6086fi ;;
6087esac
6088fi
6089ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6090if test -n "$ac_ct_OBJDUMP"; then
6091  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6092printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6093else
6094  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6095printf "%s\n" "no" >&6; }
6096fi
6097
6098  if test "x$ac_ct_OBJDUMP" = x; then
6099    OBJDUMP="false"
6100  else
6101    case $cross_compiling:$ac_tool_warned in
6102yes:)
6103{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6104printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6105ac_tool_warned=yes ;;
6106esac
6107    OBJDUMP=$ac_ct_OBJDUMP
6108  fi
6109else
6110  OBJDUMP="$ac_cv_prog_OBJDUMP"
6111fi
6112
6113test -z "$OBJDUMP" && OBJDUMP=objdump
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6124printf %s "checking how to recognize dependent libraries... " >&6; }
6125if test ${lt_cv_deplibs_check_method+y}
6126then :
6127  printf %s "(cached) " >&6
6128else case e in #(
6129  e) lt_cv_file_magic_cmd='$MAGIC_CMD'
6130lt_cv_file_magic_test_file=
6131lt_cv_deplibs_check_method='unknown'
6132# Need to set the preceding variable on all platforms that support
6133# interlibrary dependencies.
6134# 'none' -- dependencies not supported.
6135# 'unknown' -- same as none, but documents that we really don't know.
6136# 'pass_all' -- all dependencies passed with no checks.
6137# 'test_compile' -- check by making test program.
6138# 'file_magic [[regex]]' -- check by looking for files in library path
6139# that responds to the $file_magic_cmd with a given extended regex.
6140# If you have 'file' or equivalent on your system and you're not sure
6141# whether 'pass_all' will *always* work, you probably want this one.
6142
6143case $host_os in
6144aix[4-9]*)
6145  lt_cv_deplibs_check_method=pass_all
6146  ;;
6147
6148beos*)
6149  lt_cv_deplibs_check_method=pass_all
6150  ;;
6151
6152bsdi[45]*)
6153  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6154  lt_cv_file_magic_cmd='$FILECMD -L'
6155  lt_cv_file_magic_test_file=/shlib/libc.so
6156  ;;
6157
6158cygwin*)
6159  # func_win32_libid is a shell function defined in ltmain.sh
6160  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6161  lt_cv_file_magic_cmd='func_win32_libid'
6162  ;;
6163
6164mingw* | pw32*)
6165  # Base MSYS/MinGW do not provide the 'file' command needed by
6166  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6167  # unless we find 'file', for example because we are cross-compiling.
6168  if ( file / ) >/dev/null 2>&1; then
6169    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6170    lt_cv_file_magic_cmd='func_win32_libid'
6171  else
6172    # Keep this pattern in sync with the one in func_win32_libid.
6173    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6174    lt_cv_file_magic_cmd='$OBJDUMP -f'
6175  fi
6176  ;;
6177
6178cegcc*)
6179  # use the weaker test based on 'objdump'. See mingw*.
6180  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6181  lt_cv_file_magic_cmd='$OBJDUMP -f'
6182  ;;
6183
6184darwin* | rhapsody*)
6185  lt_cv_deplibs_check_method=pass_all
6186  ;;
6187
6188freebsd* | dragonfly* | midnightbsd*)
6189  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6190    case $host_cpu in
6191    i*86 )
6192      # Not sure whether the presence of OpenBSD here was a mistake.
6193      # Let's accept both of them until this is cleared up.
6194      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6195      lt_cv_file_magic_cmd=$FILECMD
6196      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6197      ;;
6198    esac
6199  else
6200    lt_cv_deplibs_check_method=pass_all
6201  fi
6202  ;;
6203
6204haiku*)
6205  lt_cv_deplibs_check_method=pass_all
6206  ;;
6207
6208hpux10.20* | hpux11*)
6209  lt_cv_file_magic_cmd=$FILECMD
6210  case $host_cpu in
6211  ia64*)
6212    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6213    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6214    ;;
6215  hppa*64*)
6216    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]'
6217    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6218    ;;
6219  *)
6220    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6221    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6222    ;;
6223  esac
6224  ;;
6225
6226interix[3-9]*)
6227  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6228  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6229  ;;
6230
6231irix5* | irix6* | nonstopux*)
6232  case $LD in
6233  *-32|*"-32 ") libmagic=32-bit;;
6234  *-n32|*"-n32 ") libmagic=N32;;
6235  *-64|*"-64 ") libmagic=64-bit;;
6236  *) libmagic=never-match;;
6237  esac
6238  lt_cv_deplibs_check_method=pass_all
6239  ;;
6240
6241# This must be glibc/ELF.
6242linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6243  lt_cv_deplibs_check_method=pass_all
6244  ;;
6245
6246netbsd*)
6247  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6248    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6249  else
6250    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6251  fi
6252  ;;
6253
6254newos6*)
6255  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6256  lt_cv_file_magic_cmd=$FILECMD
6257  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6258  ;;
6259
6260*nto* | *qnx*)
6261  lt_cv_deplibs_check_method=pass_all
6262  ;;
6263
6264openbsd* | bitrig*)
6265  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6266    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6267  else
6268    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6269  fi
6270  ;;
6271
6272osf3* | osf4* | osf5*)
6273  lt_cv_deplibs_check_method=pass_all
6274  ;;
6275
6276rdos*)
6277  lt_cv_deplibs_check_method=pass_all
6278  ;;
6279
6280solaris*)
6281  lt_cv_deplibs_check_method=pass_all
6282  ;;
6283
6284sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6285  lt_cv_deplibs_check_method=pass_all
6286  ;;
6287
6288sysv4 | sysv4.3*)
6289  case $host_vendor in
6290  motorola)
6291    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]'
6292    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6293    ;;
6294  ncr)
6295    lt_cv_deplibs_check_method=pass_all
6296    ;;
6297  sequent)
6298    lt_cv_file_magic_cmd='/bin/file'
6299    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6300    ;;
6301  sni)
6302    lt_cv_file_magic_cmd='/bin/file'
6303    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6304    lt_cv_file_magic_test_file=/lib/libc.so
6305    ;;
6306  siemens)
6307    lt_cv_deplibs_check_method=pass_all
6308    ;;
6309  pc)
6310    lt_cv_deplibs_check_method=pass_all
6311    ;;
6312  esac
6313  ;;
6314
6315tpf*)
6316  lt_cv_deplibs_check_method=pass_all
6317  ;;
6318os2*)
6319  lt_cv_deplibs_check_method=pass_all
6320  ;;
6321esac
6322 ;;
6323esac
6324fi
6325{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6326printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6327
6328file_magic_glob=
6329want_nocaseglob=no
6330if test "$build" = "$host"; then
6331  case $host_os in
6332  mingw* | pw32*)
6333    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6334      want_nocaseglob=yes
6335    else
6336      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6337    fi
6338    ;;
6339  esac
6340fi
6341
6342file_magic_cmd=$lt_cv_file_magic_cmd
6343deplibs_check_method=$lt_cv_deplibs_check_method
6344test -z "$deplibs_check_method" && deplibs_check_method=unknown
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367if test -n "$ac_tool_prefix"; then
6368  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6369set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6370{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6371printf %s "checking for $ac_word... " >&6; }
6372if test ${ac_cv_prog_DLLTOOL+y}
6373then :
6374  printf %s "(cached) " >&6
6375else case e in #(
6376  e) if test -n "$DLLTOOL"; then
6377  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6378else
6379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6380for as_dir in $PATH
6381do
6382  IFS=$as_save_IFS
6383  case $as_dir in #(((
6384    '') as_dir=./ ;;
6385    */) ;;
6386    *) as_dir=$as_dir/ ;;
6387  esac
6388    for ac_exec_ext in '' $ac_executable_extensions; do
6389  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6390    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6391    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6392    break 2
6393  fi
6394done
6395  done
6396IFS=$as_save_IFS
6397
6398fi ;;
6399esac
6400fi
6401DLLTOOL=$ac_cv_prog_DLLTOOL
6402if test -n "$DLLTOOL"; then
6403  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6404printf "%s\n" "$DLLTOOL" >&6; }
6405else
6406  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6407printf "%s\n" "no" >&6; }
6408fi
6409
6410
6411fi
6412if test -z "$ac_cv_prog_DLLTOOL"; then
6413  ac_ct_DLLTOOL=$DLLTOOL
6414  # Extract the first word of "dlltool", so it can be a program name with args.
6415set dummy dlltool; ac_word=$2
6416{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6417printf %s "checking for $ac_word... " >&6; }
6418if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6419then :
6420  printf %s "(cached) " >&6
6421else case e in #(
6422  e) if test -n "$ac_ct_DLLTOOL"; then
6423  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6424else
6425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6426for as_dir in $PATH
6427do
6428  IFS=$as_save_IFS
6429  case $as_dir in #(((
6430    '') as_dir=./ ;;
6431    */) ;;
6432    *) as_dir=$as_dir/ ;;
6433  esac
6434    for ac_exec_ext in '' $ac_executable_extensions; do
6435  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6436    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6437    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6438    break 2
6439  fi
6440done
6441  done
6442IFS=$as_save_IFS
6443
6444fi ;;
6445esac
6446fi
6447ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6448if test -n "$ac_ct_DLLTOOL"; then
6449  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6450printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6451else
6452  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6453printf "%s\n" "no" >&6; }
6454fi
6455
6456  if test "x$ac_ct_DLLTOOL" = x; then
6457    DLLTOOL="false"
6458  else
6459    case $cross_compiling:$ac_tool_warned in
6460yes:)
6461{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6462printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6463ac_tool_warned=yes ;;
6464esac
6465    DLLTOOL=$ac_ct_DLLTOOL
6466  fi
6467else
6468  DLLTOOL="$ac_cv_prog_DLLTOOL"
6469fi
6470
6471test -z "$DLLTOOL" && DLLTOOL=dlltool
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6483printf %s "checking how to associate runtime and link libraries... " >&6; }
6484if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6485then :
6486  printf %s "(cached) " >&6
6487else case e in #(
6488  e) lt_cv_sharedlib_from_linklib_cmd='unknown'
6489
6490case $host_os in
6491cygwin* | mingw* | pw32* | cegcc*)
6492  # two different shell functions defined in ltmain.sh;
6493  # decide which one to use based on capabilities of $DLLTOOL
6494  case `$DLLTOOL --help 2>&1` in
6495  *--identify-strict*)
6496    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6497    ;;
6498  *)
6499    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6500    ;;
6501  esac
6502  ;;
6503*)
6504  # fallback: assume linklib IS sharedlib
6505  lt_cv_sharedlib_from_linklib_cmd=$ECHO
6506  ;;
6507esac
6508 ;;
6509esac
6510fi
6511{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6512printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6513sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6514test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6515
6516
6517
6518
6519
6520
6521
6522if test -n "$ac_tool_prefix"; then
6523  for ac_prog in ar
6524  do
6525    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6526set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6527{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6528printf %s "checking for $ac_word... " >&6; }
6529if test ${ac_cv_prog_AR+y}
6530then :
6531  printf %s "(cached) " >&6
6532else case e in #(
6533  e) if test -n "$AR"; then
6534  ac_cv_prog_AR="$AR" # Let the user override the test.
6535else
6536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6537for as_dir in $PATH
6538do
6539  IFS=$as_save_IFS
6540  case $as_dir in #(((
6541    '') as_dir=./ ;;
6542    */) ;;
6543    *) as_dir=$as_dir/ ;;
6544  esac
6545    for ac_exec_ext in '' $ac_executable_extensions; do
6546  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6547    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6548    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6549    break 2
6550  fi
6551done
6552  done
6553IFS=$as_save_IFS
6554
6555fi ;;
6556esac
6557fi
6558AR=$ac_cv_prog_AR
6559if test -n "$AR"; then
6560  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6561printf "%s\n" "$AR" >&6; }
6562else
6563  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6564printf "%s\n" "no" >&6; }
6565fi
6566
6567
6568    test -n "$AR" && break
6569  done
6570fi
6571if test -z "$AR"; then
6572  ac_ct_AR=$AR
6573  for ac_prog in ar
6574do
6575  # Extract the first word of "$ac_prog", so it can be a program name with args.
6576set dummy $ac_prog; ac_word=$2
6577{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6578printf %s "checking for $ac_word... " >&6; }
6579if test ${ac_cv_prog_ac_ct_AR+y}
6580then :
6581  printf %s "(cached) " >&6
6582else case e in #(
6583  e) if test -n "$ac_ct_AR"; then
6584  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6585else
6586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6587for as_dir in $PATH
6588do
6589  IFS=$as_save_IFS
6590  case $as_dir in #(((
6591    '') as_dir=./ ;;
6592    */) ;;
6593    *) as_dir=$as_dir/ ;;
6594  esac
6595    for ac_exec_ext in '' $ac_executable_extensions; do
6596  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6597    ac_cv_prog_ac_ct_AR="$ac_prog"
6598    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6599    break 2
6600  fi
6601done
6602  done
6603IFS=$as_save_IFS
6604
6605fi ;;
6606esac
6607fi
6608ac_ct_AR=$ac_cv_prog_ac_ct_AR
6609if test -n "$ac_ct_AR"; then
6610  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6611printf "%s\n" "$ac_ct_AR" >&6; }
6612else
6613  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6614printf "%s\n" "no" >&6; }
6615fi
6616
6617
6618  test -n "$ac_ct_AR" && break
6619done
6620
6621  if test "x$ac_ct_AR" = x; then
6622    AR="false"
6623  else
6624    case $cross_compiling:$ac_tool_warned in
6625yes:)
6626{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6627printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6628ac_tool_warned=yes ;;
6629esac
6630    AR=$ac_ct_AR
6631  fi
6632fi
6633
6634: ${AR=ar}
6635
6636
6637
6638
6639
6640
6641# Use ARFLAGS variable as AR's operation code to sync the variable naming with
6642# Automake.  If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6643# higher priority because thats what people were doing historically (setting
6644# ARFLAGS for automake and AR_FLAGS for libtool).  FIXME: Make the AR_FLAGS
6645# variable obsoleted/removed.
6646
6647test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6648lt_ar_flags=$AR_FLAGS
6649
6650
6651
6652
6653
6654
6655# Make AR_FLAGS overridable by 'make ARFLAGS='.  Don't try to run-time override
6656# by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6657
6658
6659
6660
6661
6662
6663{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6664printf %s "checking for archiver @FILE support... " >&6; }
6665if test ${lt_cv_ar_at_file+y}
6666then :
6667  printf %s "(cached) " >&6
6668else case e in #(
6669  e) lt_cv_ar_at_file=no
6670   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6671/* end confdefs.h.  */
6672
6673int
6674main (void)
6675{
6676
6677  ;
6678  return 0;
6679}
6680_ACEOF
6681if ac_fn_c_try_compile "$LINENO"
6682then :
6683  echo conftest.$ac_objext > conftest.lst
6684      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6685      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6686  (eval $lt_ar_try) 2>&5
6687  ac_status=$?
6688  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6689  test $ac_status = 0; }
6690      if test 0 -eq "$ac_status"; then
6691	# Ensure the archiver fails upon bogus file names.
6692	rm -f conftest.$ac_objext libconftest.a
6693	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6694  (eval $lt_ar_try) 2>&5
6695  ac_status=$?
6696  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6697  test $ac_status = 0; }
6698	if test 0 -ne "$ac_status"; then
6699          lt_cv_ar_at_file=@
6700        fi
6701      fi
6702      rm -f conftest.* libconftest.a
6703
6704fi
6705rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6706   ;;
6707esac
6708fi
6709{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6710printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6711
6712if test no = "$lt_cv_ar_at_file"; then
6713  archiver_list_spec=
6714else
6715  archiver_list_spec=$lt_cv_ar_at_file
6716fi
6717
6718
6719
6720
6721
6722
6723
6724if test -n "$ac_tool_prefix"; then
6725  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6726set dummy ${ac_tool_prefix}strip; ac_word=$2
6727{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6728printf %s "checking for $ac_word... " >&6; }
6729if test ${ac_cv_prog_STRIP+y}
6730then :
6731  printf %s "(cached) " >&6
6732else case e in #(
6733  e) if test -n "$STRIP"; then
6734  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6735else
6736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6737for as_dir in $PATH
6738do
6739  IFS=$as_save_IFS
6740  case $as_dir in #(((
6741    '') as_dir=./ ;;
6742    */) ;;
6743    *) as_dir=$as_dir/ ;;
6744  esac
6745    for ac_exec_ext in '' $ac_executable_extensions; do
6746  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6747    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6748    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6749    break 2
6750  fi
6751done
6752  done
6753IFS=$as_save_IFS
6754
6755fi ;;
6756esac
6757fi
6758STRIP=$ac_cv_prog_STRIP
6759if test -n "$STRIP"; then
6760  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6761printf "%s\n" "$STRIP" >&6; }
6762else
6763  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6764printf "%s\n" "no" >&6; }
6765fi
6766
6767
6768fi
6769if test -z "$ac_cv_prog_STRIP"; then
6770  ac_ct_STRIP=$STRIP
6771  # Extract the first word of "strip", so it can be a program name with args.
6772set dummy strip; ac_word=$2
6773{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6774printf %s "checking for $ac_word... " >&6; }
6775if test ${ac_cv_prog_ac_ct_STRIP+y}
6776then :
6777  printf %s "(cached) " >&6
6778else case e in #(
6779  e) if test -n "$ac_ct_STRIP"; then
6780  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6781else
6782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6783for as_dir in $PATH
6784do
6785  IFS=$as_save_IFS
6786  case $as_dir in #(((
6787    '') as_dir=./ ;;
6788    */) ;;
6789    *) as_dir=$as_dir/ ;;
6790  esac
6791    for ac_exec_ext in '' $ac_executable_extensions; do
6792  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6793    ac_cv_prog_ac_ct_STRIP="strip"
6794    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6795    break 2
6796  fi
6797done
6798  done
6799IFS=$as_save_IFS
6800
6801fi ;;
6802esac
6803fi
6804ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6805if test -n "$ac_ct_STRIP"; then
6806  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6807printf "%s\n" "$ac_ct_STRIP" >&6; }
6808else
6809  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6810printf "%s\n" "no" >&6; }
6811fi
6812
6813  if test "x$ac_ct_STRIP" = x; then
6814    STRIP=":"
6815  else
6816    case $cross_compiling:$ac_tool_warned in
6817yes:)
6818{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6819printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6820ac_tool_warned=yes ;;
6821esac
6822    STRIP=$ac_ct_STRIP
6823  fi
6824else
6825  STRIP="$ac_cv_prog_STRIP"
6826fi
6827
6828test -z "$STRIP" && STRIP=:
6829
6830
6831
6832
6833
6834
6835if test -n "$ac_tool_prefix"; then
6836  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6837set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6838{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6839printf %s "checking for $ac_word... " >&6; }
6840if test ${ac_cv_prog_RANLIB+y}
6841then :
6842  printf %s "(cached) " >&6
6843else case e in #(
6844  e) if test -n "$RANLIB"; then
6845  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6846else
6847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6848for as_dir in $PATH
6849do
6850  IFS=$as_save_IFS
6851  case $as_dir in #(((
6852    '') as_dir=./ ;;
6853    */) ;;
6854    *) as_dir=$as_dir/ ;;
6855  esac
6856    for ac_exec_ext in '' $ac_executable_extensions; do
6857  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6858    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6859    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6860    break 2
6861  fi
6862done
6863  done
6864IFS=$as_save_IFS
6865
6866fi ;;
6867esac
6868fi
6869RANLIB=$ac_cv_prog_RANLIB
6870if test -n "$RANLIB"; then
6871  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6872printf "%s\n" "$RANLIB" >&6; }
6873else
6874  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6875printf "%s\n" "no" >&6; }
6876fi
6877
6878
6879fi
6880if test -z "$ac_cv_prog_RANLIB"; then
6881  ac_ct_RANLIB=$RANLIB
6882  # Extract the first word of "ranlib", so it can be a program name with args.
6883set dummy ranlib; ac_word=$2
6884{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6885printf %s "checking for $ac_word... " >&6; }
6886if test ${ac_cv_prog_ac_ct_RANLIB+y}
6887then :
6888  printf %s "(cached) " >&6
6889else case e in #(
6890  e) if test -n "$ac_ct_RANLIB"; then
6891  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6892else
6893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6894for as_dir in $PATH
6895do
6896  IFS=$as_save_IFS
6897  case $as_dir in #(((
6898    '') as_dir=./ ;;
6899    */) ;;
6900    *) as_dir=$as_dir/ ;;
6901  esac
6902    for ac_exec_ext in '' $ac_executable_extensions; do
6903  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6904    ac_cv_prog_ac_ct_RANLIB="ranlib"
6905    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6906    break 2
6907  fi
6908done
6909  done
6910IFS=$as_save_IFS
6911
6912fi ;;
6913esac
6914fi
6915ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6916if test -n "$ac_ct_RANLIB"; then
6917  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6918printf "%s\n" "$ac_ct_RANLIB" >&6; }
6919else
6920  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6921printf "%s\n" "no" >&6; }
6922fi
6923
6924  if test "x$ac_ct_RANLIB" = x; then
6925    RANLIB=":"
6926  else
6927    case $cross_compiling:$ac_tool_warned in
6928yes:)
6929{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6930printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6931ac_tool_warned=yes ;;
6932esac
6933    RANLIB=$ac_ct_RANLIB
6934  fi
6935else
6936  RANLIB="$ac_cv_prog_RANLIB"
6937fi
6938
6939test -z "$RANLIB" && RANLIB=:
6940
6941
6942
6943
6944
6945
6946# Determine commands to create old-style static archives.
6947old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6948old_postinstall_cmds='chmod 644 $oldlib'
6949old_postuninstall_cmds=
6950
6951if test -n "$RANLIB"; then
6952  case $host_os in
6953  bitrig* | openbsd*)
6954    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6955    ;;
6956  *)
6957    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6958    ;;
6959  esac
6960  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6961fi
6962
6963case $host_os in
6964  darwin*)
6965    lock_old_archive_extraction=yes ;;
6966  *)
6967    lock_old_archive_extraction=no ;;
6968esac
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008# If no C compiler was specified, use CC.
7009LTCC=${LTCC-"$CC"}
7010
7011# If no C compiler flags were specified, use CFLAGS.
7012LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7013
7014# Allow CC to be a program name with arguments.
7015compiler=$CC
7016
7017
7018# Check for command to grab the raw symbol name followed by C symbol from nm.
7019{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7020printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7021if test ${lt_cv_sys_global_symbol_pipe+y}
7022then :
7023  printf %s "(cached) " >&6
7024else case e in #(
7025  e)
7026# These are sane defaults that work on at least a few old systems.
7027# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7028
7029# Character class describing NM global symbol codes.
7030symcode='[BCDEGRST]'
7031
7032# Regexp to match symbols that can be accessed directly from C.
7033sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7034
7035# Define system-specific variables.
7036case $host_os in
7037aix*)
7038  symcode='[BCDT]'
7039  ;;
7040cygwin* | mingw* | pw32* | cegcc*)
7041  symcode='[ABCDGISTW]'
7042  ;;
7043hpux*)
7044  if test ia64 = "$host_cpu"; then
7045    symcode='[ABCDEGRST]'
7046  fi
7047  ;;
7048irix* | nonstopux*)
7049  symcode='[BCDEGRST]'
7050  ;;
7051osf*)
7052  symcode='[BCDEGQRST]'
7053  ;;
7054solaris*)
7055  symcode='[BDRT]'
7056  ;;
7057sco3.2v5*)
7058  symcode='[DT]'
7059  ;;
7060sysv4.2uw2*)
7061  symcode='[DT]'
7062  ;;
7063sysv5* | sco5v6* | unixware* | OpenUNIX*)
7064  symcode='[ABDT]'
7065  ;;
7066sysv4)
7067  symcode='[DFNSTU]'
7068  ;;
7069esac
7070
7071# If we're using GNU nm, then use its standard symbol codes.
7072case `$NM -V 2>&1` in
7073*GNU* | *'with BFD'*)
7074  symcode='[ABCDGIRSTW]' ;;
7075esac
7076
7077if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7078  # Gets list of data symbols to import.
7079  lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7080  # Adjust the below global symbol transforms to fixup imported variables.
7081  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7082  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
7083  lt_c_name_lib_hook="\
7084  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
7085  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
7086else
7087  # Disable hooks by default.
7088  lt_cv_sys_global_symbol_to_import=
7089  lt_cdecl_hook=
7090  lt_c_name_hook=
7091  lt_c_name_lib_hook=
7092fi
7093
7094# Transform an extracted symbol line into a proper C declaration.
7095# Some systems (esp. on ia64) link data and code symbols differently,
7096# so use this general approach.
7097lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7098$lt_cdecl_hook\
7099" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7100" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7101
7102# Transform an extracted symbol line into symbol name and symbol address
7103lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7104$lt_c_name_hook\
7105" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7106" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
7107
7108# Transform an extracted symbol line into symbol name with lib prefix and
7109# symbol address.
7110lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7111$lt_c_name_lib_hook\
7112" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7113" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
7114" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
7115
7116# Handle CRLF in mingw tool chain
7117opt_cr=
7118case $build_os in
7119mingw*)
7120  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7121  ;;
7122esac
7123
7124# Try without a prefix underscore, then with it.
7125for ac_symprfx in "" "_"; do
7126
7127  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7128  symxfrm="\\1 $ac_symprfx\\2 \\2"
7129
7130  # Write the raw and C identifiers.
7131  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7132    # Fake it for dumpbin and say T for any non-static function,
7133    # D for any global variable and I for any imported variable.
7134    # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7135    # which start with @ or ?.
7136    lt_cv_sys_global_symbol_pipe="$AWK '"\
7137"     {last_section=section; section=\$ 3};"\
7138"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7139"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7140"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7141"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7142"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7143"     \$ 0!~/External *\|/{next};"\
7144"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7145"     {if(hide[section]) next};"\
7146"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7147"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7148"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7149"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7150"     ' prfx=^$ac_symprfx"
7151  else
7152    lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7153  fi
7154  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7155
7156  # Check to see that the pipe works correctly.
7157  pipe_works=no
7158
7159  rm -f conftest*
7160  cat > conftest.$ac_ext <<_LT_EOF
7161#ifdef __cplusplus
7162extern "C" {
7163#endif
7164char nm_test_var;
7165void nm_test_func(void);
7166void nm_test_func(void){}
7167#ifdef __cplusplus
7168}
7169#endif
7170int main(){nm_test_var='a';nm_test_func();return(0);}
7171_LT_EOF
7172
7173  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7174  (eval $ac_compile) 2>&5
7175  ac_status=$?
7176  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7177  test $ac_status = 0; }; then
7178    # Now try to grab the symbols.
7179    nlist=conftest.nm
7180    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7181  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7182  ac_status=$?
7183  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7184  test $ac_status = 0; } && test -s "$nlist"; then
7185      # Try sorting and uniquifying the output.
7186      if sort "$nlist" | uniq > "$nlist"T; then
7187	mv -f "$nlist"T "$nlist"
7188      else
7189	rm -f "$nlist"T
7190      fi
7191
7192      # Make sure that we snagged all the symbols we need.
7193      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7194	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7195	  cat <<_LT_EOF > conftest.$ac_ext
7196/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7197#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7198/* DATA imports from DLLs on WIN32 can't be const, because runtime
7199   relocations are performed -- see ld's documentation on pseudo-relocs.  */
7200# define LT_DLSYM_CONST
7201#elif defined __osf__
7202/* This system does not cope well with relocations in const data.  */
7203# define LT_DLSYM_CONST
7204#else
7205# define LT_DLSYM_CONST const
7206#endif
7207
7208#ifdef __cplusplus
7209extern "C" {
7210#endif
7211
7212_LT_EOF
7213	  # Now generate the symbol file.
7214	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7215
7216	  cat <<_LT_EOF >> conftest.$ac_ext
7217
7218/* The mapping between symbol names and symbols.  */
7219LT_DLSYM_CONST struct {
7220  const char *name;
7221  void       *address;
7222}
7223lt__PROGRAM__LTX_preloaded_symbols[] =
7224{
7225  { "@PROGRAM@", (void *) 0 },
7226_LT_EOF
7227	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7228	  cat <<\_LT_EOF >> conftest.$ac_ext
7229  {0, (void *) 0}
7230};
7231
7232/* This works around a problem in FreeBSD linker */
7233#ifdef FREEBSD_WORKAROUND
7234static const void *lt_preloaded_setup() {
7235  return lt__PROGRAM__LTX_preloaded_symbols;
7236}
7237#endif
7238
7239#ifdef __cplusplus
7240}
7241#endif
7242_LT_EOF
7243	  # Now try linking the two files.
7244	  mv conftest.$ac_objext conftstm.$ac_objext
7245	  lt_globsym_save_LIBS=$LIBS
7246	  lt_globsym_save_CFLAGS=$CFLAGS
7247	  LIBS=conftstm.$ac_objext
7248	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7249	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7250  (eval $ac_link) 2>&5
7251  ac_status=$?
7252  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7253  test $ac_status = 0; } && test -s conftest$ac_exeext; then
7254	    pipe_works=yes
7255	  fi
7256	  LIBS=$lt_globsym_save_LIBS
7257	  CFLAGS=$lt_globsym_save_CFLAGS
7258	else
7259	  echo "cannot find nm_test_func in $nlist" >&5
7260	fi
7261      else
7262	echo "cannot find nm_test_var in $nlist" >&5
7263      fi
7264    else
7265      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7266    fi
7267  else
7268    echo "$progname: failed program was:" >&5
7269    cat conftest.$ac_ext >&5
7270  fi
7271  rm -rf conftest* conftst*
7272
7273  # Do not use the global_symbol_pipe unless it works.
7274  if test yes = "$pipe_works"; then
7275    break
7276  else
7277    lt_cv_sys_global_symbol_pipe=
7278  fi
7279done
7280 ;;
7281esac
7282fi
7283
7284if test -z "$lt_cv_sys_global_symbol_pipe"; then
7285  lt_cv_sys_global_symbol_to_cdecl=
7286fi
7287if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7288  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7289printf "%s\n" "failed" >&6; }
7290else
7291  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7292printf "%s\n" "ok" >&6; }
7293fi
7294
7295# Response file support.
7296if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7297  nm_file_list_spec='@'
7298elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7299  nm_file_list_spec='@'
7300fi
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7339printf %s "checking for sysroot... " >&6; }
7340
7341# Check whether --with-sysroot was given.
7342if test ${with_sysroot+y}
7343then :
7344  withval=$with_sysroot;
7345else case e in #(
7346  e) with_sysroot=no ;;
7347esac
7348fi
7349
7350
7351lt_sysroot=
7352case $with_sysroot in #(
7353 yes)
7354   if test yes = "$GCC"; then
7355     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7356   fi
7357   ;; #(
7358 /*)
7359   lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7360   ;; #(
7361 no|'')
7362   ;; #(
7363 *)
7364   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7365printf "%s\n" "$with_sysroot" >&6; }
7366   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7367   ;;
7368esac
7369
7370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7371printf "%s\n" "${lt_sysroot:-no}" >&6; }
7372
7373
7374
7375
7376
7377{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7378printf %s "checking for a working dd... " >&6; }
7379if test ${ac_cv_path_lt_DD+y}
7380then :
7381  printf %s "(cached) " >&6
7382else case e in #(
7383  e) printf 0123456789abcdef0123456789abcdef >conftest.i
7384cat conftest.i conftest.i >conftest2.i
7385: ${lt_DD:=$DD}
7386if test -z "$lt_DD"; then
7387  ac_path_lt_DD_found=false
7388  # Loop through the user's path and test for each of PROGNAME-LIST
7389  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7390for as_dir in $PATH
7391do
7392  IFS=$as_save_IFS
7393  case $as_dir in #(((
7394    '') as_dir=./ ;;
7395    */) ;;
7396    *) as_dir=$as_dir/ ;;
7397  esac
7398    for ac_prog in dd
7399   do
7400    for ac_exec_ext in '' $ac_executable_extensions; do
7401      ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7402      as_fn_executable_p "$ac_path_lt_DD" || continue
7403if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7404  cmp -s conftest.i conftest.out \
7405  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7406fi
7407      $ac_path_lt_DD_found && break 3
7408    done
7409  done
7410  done
7411IFS=$as_save_IFS
7412  if test -z "$ac_cv_path_lt_DD"; then
7413    :
7414  fi
7415else
7416  ac_cv_path_lt_DD=$lt_DD
7417fi
7418
7419rm -f conftest.i conftest2.i conftest.out ;;
7420esac
7421fi
7422{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7423printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7424
7425
7426{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7427printf %s "checking how to truncate binary pipes... " >&6; }
7428if test ${lt_cv_truncate_bin+y}
7429then :
7430  printf %s "(cached) " >&6
7431else case e in #(
7432  e) printf 0123456789abcdef0123456789abcdef >conftest.i
7433cat conftest.i conftest.i >conftest2.i
7434lt_cv_truncate_bin=
7435if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7436  cmp -s conftest.i conftest.out \
7437  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7438fi
7439rm -f conftest.i conftest2.i conftest.out
7440test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
7441esac
7442fi
7443{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7444printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7445
7446
7447
7448
7449
7450
7451
7452# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7453func_cc_basename ()
7454{
7455    for cc_temp in $*""; do
7456      case $cc_temp in
7457        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7458        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7459        \-*) ;;
7460        *) break;;
7461      esac
7462    done
7463    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7464}
7465
7466# Check whether --enable-libtool-lock was given.
7467if test ${enable_libtool_lock+y}
7468then :
7469  enableval=$enable_libtool_lock;
7470fi
7471
7472test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7473
7474# Some flags need to be propagated to the compiler or linker for good
7475# libtool support.
7476case $host in
7477ia64-*-hpux*)
7478  # Find out what ABI is being produced by ac_compile, and set mode
7479  # options accordingly.
7480  echo 'int i;' > conftest.$ac_ext
7481  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7482  (eval $ac_compile) 2>&5
7483  ac_status=$?
7484  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7485  test $ac_status = 0; }; then
7486    case `$FILECMD conftest.$ac_objext` in
7487      *ELF-32*)
7488	HPUX_IA64_MODE=32
7489	;;
7490      *ELF-64*)
7491	HPUX_IA64_MODE=64
7492	;;
7493    esac
7494  fi
7495  rm -rf conftest*
7496  ;;
7497*-*-irix6*)
7498  # Find out what ABI is being produced by ac_compile, and set linker
7499  # options accordingly.
7500  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7501  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7502  (eval $ac_compile) 2>&5
7503  ac_status=$?
7504  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7505  test $ac_status = 0; }; then
7506    if test yes = "$lt_cv_prog_gnu_ld"; then
7507      case `$FILECMD conftest.$ac_objext` in
7508	*32-bit*)
7509	  LD="${LD-ld} -melf32bsmip"
7510	  ;;
7511	*N32*)
7512	  LD="${LD-ld} -melf32bmipn32"
7513	  ;;
7514	*64-bit*)
7515	  LD="${LD-ld} -melf64bmip"
7516	;;
7517      esac
7518    else
7519      case `$FILECMD conftest.$ac_objext` in
7520	*32-bit*)
7521	  LD="${LD-ld} -32"
7522	  ;;
7523	*N32*)
7524	  LD="${LD-ld} -n32"
7525	  ;;
7526	*64-bit*)
7527	  LD="${LD-ld} -64"
7528	  ;;
7529      esac
7530    fi
7531  fi
7532  rm -rf conftest*
7533  ;;
7534
7535mips64*-*linux*)
7536  # Find out what ABI is being produced by ac_compile, and set linker
7537  # options accordingly.
7538  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7539  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7540  (eval $ac_compile) 2>&5
7541  ac_status=$?
7542  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7543  test $ac_status = 0; }; then
7544    emul=elf
7545    case `$FILECMD conftest.$ac_objext` in
7546      *32-bit*)
7547	emul="${emul}32"
7548	;;
7549      *64-bit*)
7550	emul="${emul}64"
7551	;;
7552    esac
7553    case `$FILECMD conftest.$ac_objext` in
7554      *MSB*)
7555	emul="${emul}btsmip"
7556	;;
7557      *LSB*)
7558	emul="${emul}ltsmip"
7559	;;
7560    esac
7561    case `$FILECMD conftest.$ac_objext` in
7562      *N32*)
7563	emul="${emul}n32"
7564	;;
7565    esac
7566    LD="${LD-ld} -m $emul"
7567  fi
7568  rm -rf conftest*
7569  ;;
7570
7571x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7572s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7573  # Find out what ABI is being produced by ac_compile, and set linker
7574  # options accordingly.  Note that the listed cases only cover the
7575  # situations where additional linker options are needed (such as when
7576  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7577  # vice versa); the common cases where no linker options are needed do
7578  # not appear in the list.
7579  echo 'int i;' > conftest.$ac_ext
7580  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7581  (eval $ac_compile) 2>&5
7582  ac_status=$?
7583  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7584  test $ac_status = 0; }; then
7585    case `$FILECMD conftest.o` in
7586      *32-bit*)
7587	case $host in
7588	  x86_64-*kfreebsd*-gnu)
7589	    LD="${LD-ld} -m elf_i386_fbsd"
7590	    ;;
7591	  x86_64-*linux*)
7592	    case `$FILECMD conftest.o` in
7593	      *x86-64*)
7594		LD="${LD-ld} -m elf32_x86_64"
7595		;;
7596	      *)
7597		LD="${LD-ld} -m elf_i386"
7598		;;
7599	    esac
7600	    ;;
7601	  powerpc64le-*linux*)
7602	    LD="${LD-ld} -m elf32lppclinux"
7603	    ;;
7604	  powerpc64-*linux*)
7605	    LD="${LD-ld} -m elf32ppclinux"
7606	    ;;
7607	  s390x-*linux*)
7608	    LD="${LD-ld} -m elf_s390"
7609	    ;;
7610	  sparc64-*linux*)
7611	    LD="${LD-ld} -m elf32_sparc"
7612	    ;;
7613	esac
7614	;;
7615      *64-bit*)
7616	case $host in
7617	  x86_64-*kfreebsd*-gnu)
7618	    LD="${LD-ld} -m elf_x86_64_fbsd"
7619	    ;;
7620	  x86_64-*linux*)
7621	    LD="${LD-ld} -m elf_x86_64"
7622	    ;;
7623	  powerpcle-*linux*)
7624	    LD="${LD-ld} -m elf64lppc"
7625	    ;;
7626	  powerpc-*linux*)
7627	    LD="${LD-ld} -m elf64ppc"
7628	    ;;
7629	  s390*-*linux*|s390*-*tpf*)
7630	    LD="${LD-ld} -m elf64_s390"
7631	    ;;
7632	  sparc*-*linux*)
7633	    LD="${LD-ld} -m elf64_sparc"
7634	    ;;
7635	esac
7636	;;
7637    esac
7638  fi
7639  rm -rf conftest*
7640  ;;
7641
7642*-*-sco3.2v5*)
7643  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7644  SAVE_CFLAGS=$CFLAGS
7645  CFLAGS="$CFLAGS -belf"
7646  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7647printf %s "checking whether the C compiler needs -belf... " >&6; }
7648if test ${lt_cv_cc_needs_belf+y}
7649then :
7650  printf %s "(cached) " >&6
7651else case e in #(
7652  e) ac_ext=c
7653ac_cpp='$CPP $CPPFLAGS'
7654ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7655ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7656ac_compiler_gnu=$ac_cv_c_compiler_gnu
7657
7658     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7659/* end confdefs.h.  */
7660
7661int
7662main (void)
7663{
7664
7665  ;
7666  return 0;
7667}
7668_ACEOF
7669if ac_fn_c_try_link "$LINENO"
7670then :
7671  lt_cv_cc_needs_belf=yes
7672else case e in #(
7673  e) lt_cv_cc_needs_belf=no ;;
7674esac
7675fi
7676rm -f core conftest.err conftest.$ac_objext conftest.beam \
7677    conftest$ac_exeext conftest.$ac_ext
7678     ac_ext=c
7679ac_cpp='$CPP $CPPFLAGS'
7680ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7681ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7682ac_compiler_gnu=$ac_cv_c_compiler_gnu
7683 ;;
7684esac
7685fi
7686{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7687printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7688  if test yes != "$lt_cv_cc_needs_belf"; then
7689    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7690    CFLAGS=$SAVE_CFLAGS
7691  fi
7692  ;;
7693*-*solaris*)
7694  # Find out what ABI is being produced by ac_compile, and set linker
7695  # options accordingly.
7696  echo 'int i;' > conftest.$ac_ext
7697  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7698  (eval $ac_compile) 2>&5
7699  ac_status=$?
7700  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7701  test $ac_status = 0; }; then
7702    case `$FILECMD conftest.o` in
7703    *64-bit*)
7704      case $lt_cv_prog_gnu_ld in
7705      yes*)
7706        case $host in
7707        i?86-*-solaris*|x86_64-*-solaris*)
7708          LD="${LD-ld} -m elf_x86_64"
7709          ;;
7710        sparc*-*-solaris*)
7711          LD="${LD-ld} -m elf64_sparc"
7712          ;;
7713        esac
7714        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7715        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7716          LD=${LD-ld}_sol2
7717        fi
7718        ;;
7719      *)
7720	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7721	  LD="${LD-ld} -64"
7722	fi
7723	;;
7724      esac
7725      ;;
7726    esac
7727  fi
7728  rm -rf conftest*
7729  ;;
7730esac
7731
7732need_locks=$enable_libtool_lock
7733
7734if test -n "$ac_tool_prefix"; then
7735  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7736set dummy ${ac_tool_prefix}mt; ac_word=$2
7737{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7738printf %s "checking for $ac_word... " >&6; }
7739if test ${ac_cv_prog_MANIFEST_TOOL+y}
7740then :
7741  printf %s "(cached) " >&6
7742else case e in #(
7743  e) if test -n "$MANIFEST_TOOL"; then
7744  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7745else
7746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7747for as_dir in $PATH
7748do
7749  IFS=$as_save_IFS
7750  case $as_dir in #(((
7751    '') as_dir=./ ;;
7752    */) ;;
7753    *) as_dir=$as_dir/ ;;
7754  esac
7755    for ac_exec_ext in '' $ac_executable_extensions; do
7756  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7757    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7758    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7759    break 2
7760  fi
7761done
7762  done
7763IFS=$as_save_IFS
7764
7765fi ;;
7766esac
7767fi
7768MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7769if test -n "$MANIFEST_TOOL"; then
7770  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7771printf "%s\n" "$MANIFEST_TOOL" >&6; }
7772else
7773  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7774printf "%s\n" "no" >&6; }
7775fi
7776
7777
7778fi
7779if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7780  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7781  # Extract the first word of "mt", so it can be a program name with args.
7782set dummy mt; ac_word=$2
7783{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7784printf %s "checking for $ac_word... " >&6; }
7785if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7786then :
7787  printf %s "(cached) " >&6
7788else case e in #(
7789  e) if test -n "$ac_ct_MANIFEST_TOOL"; then
7790  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7791else
7792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7793for as_dir in $PATH
7794do
7795  IFS=$as_save_IFS
7796  case $as_dir in #(((
7797    '') as_dir=./ ;;
7798    */) ;;
7799    *) as_dir=$as_dir/ ;;
7800  esac
7801    for ac_exec_ext in '' $ac_executable_extensions; do
7802  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7803    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7804    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7805    break 2
7806  fi
7807done
7808  done
7809IFS=$as_save_IFS
7810
7811fi ;;
7812esac
7813fi
7814ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7815if test -n "$ac_ct_MANIFEST_TOOL"; then
7816  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7817printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7818else
7819  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7820printf "%s\n" "no" >&6; }
7821fi
7822
7823  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7824    MANIFEST_TOOL=":"
7825  else
7826    case $cross_compiling:$ac_tool_warned in
7827yes:)
7828{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7829printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7830ac_tool_warned=yes ;;
7831esac
7832    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7833  fi
7834else
7835  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7836fi
7837
7838test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7839{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7840printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7841if test ${lt_cv_path_mainfest_tool+y}
7842then :
7843  printf %s "(cached) " >&6
7844else case e in #(
7845  e) lt_cv_path_mainfest_tool=no
7846  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7847  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7848  cat conftest.err >&5
7849  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7850    lt_cv_path_mainfest_tool=yes
7851  fi
7852  rm -f conftest* ;;
7853esac
7854fi
7855{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7856printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
7857if test yes != "$lt_cv_path_mainfest_tool"; then
7858  MANIFEST_TOOL=:
7859fi
7860
7861
7862
7863
7864
7865
7866  case $host_os in
7867    rhapsody* | darwin*)
7868    if test -n "$ac_tool_prefix"; then
7869  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7870set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7871{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7872printf %s "checking for $ac_word... " >&6; }
7873if test ${ac_cv_prog_DSYMUTIL+y}
7874then :
7875  printf %s "(cached) " >&6
7876else case e in #(
7877  e) if test -n "$DSYMUTIL"; then
7878  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7879else
7880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7881for as_dir in $PATH
7882do
7883  IFS=$as_save_IFS
7884  case $as_dir in #(((
7885    '') as_dir=./ ;;
7886    */) ;;
7887    *) as_dir=$as_dir/ ;;
7888  esac
7889    for ac_exec_ext in '' $ac_executable_extensions; do
7890  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7891    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7892    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7893    break 2
7894  fi
7895done
7896  done
7897IFS=$as_save_IFS
7898
7899fi ;;
7900esac
7901fi
7902DSYMUTIL=$ac_cv_prog_DSYMUTIL
7903if test -n "$DSYMUTIL"; then
7904  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7905printf "%s\n" "$DSYMUTIL" >&6; }
7906else
7907  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7908printf "%s\n" "no" >&6; }
7909fi
7910
7911
7912fi
7913if test -z "$ac_cv_prog_DSYMUTIL"; then
7914  ac_ct_DSYMUTIL=$DSYMUTIL
7915  # Extract the first word of "dsymutil", so it can be a program name with args.
7916set dummy dsymutil; ac_word=$2
7917{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7918printf %s "checking for $ac_word... " >&6; }
7919if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
7920then :
7921  printf %s "(cached) " >&6
7922else case e in #(
7923  e) if test -n "$ac_ct_DSYMUTIL"; then
7924  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7925else
7926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7927for as_dir in $PATH
7928do
7929  IFS=$as_save_IFS
7930  case $as_dir in #(((
7931    '') as_dir=./ ;;
7932    */) ;;
7933    *) as_dir=$as_dir/ ;;
7934  esac
7935    for ac_exec_ext in '' $ac_executable_extensions; do
7936  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7937    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7938    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7939    break 2
7940  fi
7941done
7942  done
7943IFS=$as_save_IFS
7944
7945fi ;;
7946esac
7947fi
7948ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7949if test -n "$ac_ct_DSYMUTIL"; then
7950  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7951printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
7952else
7953  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7954printf "%s\n" "no" >&6; }
7955fi
7956
7957  if test "x$ac_ct_DSYMUTIL" = x; then
7958    DSYMUTIL=":"
7959  else
7960    case $cross_compiling:$ac_tool_warned in
7961yes:)
7962{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7963printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7964ac_tool_warned=yes ;;
7965esac
7966    DSYMUTIL=$ac_ct_DSYMUTIL
7967  fi
7968else
7969  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7970fi
7971
7972    if test -n "$ac_tool_prefix"; then
7973  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7974set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7975{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7976printf %s "checking for $ac_word... " >&6; }
7977if test ${ac_cv_prog_NMEDIT+y}
7978then :
7979  printf %s "(cached) " >&6
7980else case e in #(
7981  e) if test -n "$NMEDIT"; then
7982  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7983else
7984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7985for as_dir in $PATH
7986do
7987  IFS=$as_save_IFS
7988  case $as_dir in #(((
7989    '') as_dir=./ ;;
7990    */) ;;
7991    *) as_dir=$as_dir/ ;;
7992  esac
7993    for ac_exec_ext in '' $ac_executable_extensions; do
7994  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7995    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7996    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7997    break 2
7998  fi
7999done
8000  done
8001IFS=$as_save_IFS
8002
8003fi ;;
8004esac
8005fi
8006NMEDIT=$ac_cv_prog_NMEDIT
8007if test -n "$NMEDIT"; then
8008  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8009printf "%s\n" "$NMEDIT" >&6; }
8010else
8011  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8012printf "%s\n" "no" >&6; }
8013fi
8014
8015
8016fi
8017if test -z "$ac_cv_prog_NMEDIT"; then
8018  ac_ct_NMEDIT=$NMEDIT
8019  # Extract the first word of "nmedit", so it can be a program name with args.
8020set dummy nmedit; ac_word=$2
8021{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8022printf %s "checking for $ac_word... " >&6; }
8023if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8024then :
8025  printf %s "(cached) " >&6
8026else case e in #(
8027  e) if test -n "$ac_ct_NMEDIT"; then
8028  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8029else
8030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8031for as_dir in $PATH
8032do
8033  IFS=$as_save_IFS
8034  case $as_dir in #(((
8035    '') as_dir=./ ;;
8036    */) ;;
8037    *) as_dir=$as_dir/ ;;
8038  esac
8039    for ac_exec_ext in '' $ac_executable_extensions; do
8040  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8041    ac_cv_prog_ac_ct_NMEDIT="nmedit"
8042    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8043    break 2
8044  fi
8045done
8046  done
8047IFS=$as_save_IFS
8048
8049fi ;;
8050esac
8051fi
8052ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8053if test -n "$ac_ct_NMEDIT"; then
8054  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8055printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8056else
8057  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8058printf "%s\n" "no" >&6; }
8059fi
8060
8061  if test "x$ac_ct_NMEDIT" = x; then
8062    NMEDIT=":"
8063  else
8064    case $cross_compiling:$ac_tool_warned in
8065yes:)
8066{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8067printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8068ac_tool_warned=yes ;;
8069esac
8070    NMEDIT=$ac_ct_NMEDIT
8071  fi
8072else
8073  NMEDIT="$ac_cv_prog_NMEDIT"
8074fi
8075
8076    if test -n "$ac_tool_prefix"; then
8077  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8078set dummy ${ac_tool_prefix}lipo; ac_word=$2
8079{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8080printf %s "checking for $ac_word... " >&6; }
8081if test ${ac_cv_prog_LIPO+y}
8082then :
8083  printf %s "(cached) " >&6
8084else case e in #(
8085  e) if test -n "$LIPO"; then
8086  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8087else
8088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8089for as_dir in $PATH
8090do
8091  IFS=$as_save_IFS
8092  case $as_dir in #(((
8093    '') as_dir=./ ;;
8094    */) ;;
8095    *) as_dir=$as_dir/ ;;
8096  esac
8097    for ac_exec_ext in '' $ac_executable_extensions; do
8098  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8099    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8100    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8101    break 2
8102  fi
8103done
8104  done
8105IFS=$as_save_IFS
8106
8107fi ;;
8108esac
8109fi
8110LIPO=$ac_cv_prog_LIPO
8111if test -n "$LIPO"; then
8112  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8113printf "%s\n" "$LIPO" >&6; }
8114else
8115  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8116printf "%s\n" "no" >&6; }
8117fi
8118
8119
8120fi
8121if test -z "$ac_cv_prog_LIPO"; then
8122  ac_ct_LIPO=$LIPO
8123  # Extract the first word of "lipo", so it can be a program name with args.
8124set dummy lipo; ac_word=$2
8125{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8126printf %s "checking for $ac_word... " >&6; }
8127if test ${ac_cv_prog_ac_ct_LIPO+y}
8128then :
8129  printf %s "(cached) " >&6
8130else case e in #(
8131  e) if test -n "$ac_ct_LIPO"; then
8132  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8133else
8134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8135for as_dir in $PATH
8136do
8137  IFS=$as_save_IFS
8138  case $as_dir in #(((
8139    '') as_dir=./ ;;
8140    */) ;;
8141    *) as_dir=$as_dir/ ;;
8142  esac
8143    for ac_exec_ext in '' $ac_executable_extensions; do
8144  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8145    ac_cv_prog_ac_ct_LIPO="lipo"
8146    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8147    break 2
8148  fi
8149done
8150  done
8151IFS=$as_save_IFS
8152
8153fi ;;
8154esac
8155fi
8156ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8157if test -n "$ac_ct_LIPO"; then
8158  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8159printf "%s\n" "$ac_ct_LIPO" >&6; }
8160else
8161  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8162printf "%s\n" "no" >&6; }
8163fi
8164
8165  if test "x$ac_ct_LIPO" = x; then
8166    LIPO=":"
8167  else
8168    case $cross_compiling:$ac_tool_warned in
8169yes:)
8170{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8171printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8172ac_tool_warned=yes ;;
8173esac
8174    LIPO=$ac_ct_LIPO
8175  fi
8176else
8177  LIPO="$ac_cv_prog_LIPO"
8178fi
8179
8180    if test -n "$ac_tool_prefix"; then
8181  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8182set dummy ${ac_tool_prefix}otool; ac_word=$2
8183{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8184printf %s "checking for $ac_word... " >&6; }
8185if test ${ac_cv_prog_OTOOL+y}
8186then :
8187  printf %s "(cached) " >&6
8188else case e in #(
8189  e) if test -n "$OTOOL"; then
8190  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8191else
8192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8193for as_dir in $PATH
8194do
8195  IFS=$as_save_IFS
8196  case $as_dir in #(((
8197    '') as_dir=./ ;;
8198    */) ;;
8199    *) as_dir=$as_dir/ ;;
8200  esac
8201    for ac_exec_ext in '' $ac_executable_extensions; do
8202  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8203    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8204    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8205    break 2
8206  fi
8207done
8208  done
8209IFS=$as_save_IFS
8210
8211fi ;;
8212esac
8213fi
8214OTOOL=$ac_cv_prog_OTOOL
8215if test -n "$OTOOL"; then
8216  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8217printf "%s\n" "$OTOOL" >&6; }
8218else
8219  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8220printf "%s\n" "no" >&6; }
8221fi
8222
8223
8224fi
8225if test -z "$ac_cv_prog_OTOOL"; then
8226  ac_ct_OTOOL=$OTOOL
8227  # Extract the first word of "otool", so it can be a program name with args.
8228set dummy otool; ac_word=$2
8229{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8230printf %s "checking for $ac_word... " >&6; }
8231if test ${ac_cv_prog_ac_ct_OTOOL+y}
8232then :
8233  printf %s "(cached) " >&6
8234else case e in #(
8235  e) if test -n "$ac_ct_OTOOL"; then
8236  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8237else
8238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8239for as_dir in $PATH
8240do
8241  IFS=$as_save_IFS
8242  case $as_dir in #(((
8243    '') as_dir=./ ;;
8244    */) ;;
8245    *) as_dir=$as_dir/ ;;
8246  esac
8247    for ac_exec_ext in '' $ac_executable_extensions; do
8248  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8249    ac_cv_prog_ac_ct_OTOOL="otool"
8250    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8251    break 2
8252  fi
8253done
8254  done
8255IFS=$as_save_IFS
8256
8257fi ;;
8258esac
8259fi
8260ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8261if test -n "$ac_ct_OTOOL"; then
8262  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8263printf "%s\n" "$ac_ct_OTOOL" >&6; }
8264else
8265  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8266printf "%s\n" "no" >&6; }
8267fi
8268
8269  if test "x$ac_ct_OTOOL" = x; then
8270    OTOOL=":"
8271  else
8272    case $cross_compiling:$ac_tool_warned in
8273yes:)
8274{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8275printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8276ac_tool_warned=yes ;;
8277esac
8278    OTOOL=$ac_ct_OTOOL
8279  fi
8280else
8281  OTOOL="$ac_cv_prog_OTOOL"
8282fi
8283
8284    if test -n "$ac_tool_prefix"; then
8285  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8286set dummy ${ac_tool_prefix}otool64; ac_word=$2
8287{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8288printf %s "checking for $ac_word... " >&6; }
8289if test ${ac_cv_prog_OTOOL64+y}
8290then :
8291  printf %s "(cached) " >&6
8292else case e in #(
8293  e) if test -n "$OTOOL64"; then
8294  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8295else
8296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8297for as_dir in $PATH
8298do
8299  IFS=$as_save_IFS
8300  case $as_dir in #(((
8301    '') as_dir=./ ;;
8302    */) ;;
8303    *) as_dir=$as_dir/ ;;
8304  esac
8305    for ac_exec_ext in '' $ac_executable_extensions; do
8306  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8307    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8308    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8309    break 2
8310  fi
8311done
8312  done
8313IFS=$as_save_IFS
8314
8315fi ;;
8316esac
8317fi
8318OTOOL64=$ac_cv_prog_OTOOL64
8319if test -n "$OTOOL64"; then
8320  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8321printf "%s\n" "$OTOOL64" >&6; }
8322else
8323  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8324printf "%s\n" "no" >&6; }
8325fi
8326
8327
8328fi
8329if test -z "$ac_cv_prog_OTOOL64"; then
8330  ac_ct_OTOOL64=$OTOOL64
8331  # Extract the first word of "otool64", so it can be a program name with args.
8332set dummy otool64; ac_word=$2
8333{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8334printf %s "checking for $ac_word... " >&6; }
8335if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8336then :
8337  printf %s "(cached) " >&6
8338else case e in #(
8339  e) if test -n "$ac_ct_OTOOL64"; then
8340  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8341else
8342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8343for as_dir in $PATH
8344do
8345  IFS=$as_save_IFS
8346  case $as_dir in #(((
8347    '') as_dir=./ ;;
8348    */) ;;
8349    *) as_dir=$as_dir/ ;;
8350  esac
8351    for ac_exec_ext in '' $ac_executable_extensions; do
8352  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8353    ac_cv_prog_ac_ct_OTOOL64="otool64"
8354    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8355    break 2
8356  fi
8357done
8358  done
8359IFS=$as_save_IFS
8360
8361fi ;;
8362esac
8363fi
8364ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8365if test -n "$ac_ct_OTOOL64"; then
8366  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8367printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8368else
8369  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8370printf "%s\n" "no" >&6; }
8371fi
8372
8373  if test "x$ac_ct_OTOOL64" = x; then
8374    OTOOL64=":"
8375  else
8376    case $cross_compiling:$ac_tool_warned in
8377yes:)
8378{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8379printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8380ac_tool_warned=yes ;;
8381esac
8382    OTOOL64=$ac_ct_OTOOL64
8383  fi
8384else
8385  OTOOL64="$ac_cv_prog_OTOOL64"
8386fi
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8415printf %s "checking for -single_module linker flag... " >&6; }
8416if test ${lt_cv_apple_cc_single_mod+y}
8417then :
8418  printf %s "(cached) " >&6
8419else case e in #(
8420  e) lt_cv_apple_cc_single_mod=no
8421      if test -z "$LT_MULTI_MODULE"; then
8422	# By default we will add the -single_module flag. You can override
8423	# by either setting the environment variable LT_MULTI_MODULE
8424	# non-empty at configure time, or by adding -multi_module to the
8425	# link flags.
8426	rm -rf libconftest.dylib*
8427	echo "int foo(void){return 1;}" > conftest.c
8428	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8429-dynamiclib -Wl,-single_module conftest.c" >&5
8430	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8431	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8432        _lt_result=$?
8433	# If there is a non-empty error log, and "single_module"
8434	# appears in it, assume the flag caused a linker warning
8435        if test -s conftest.err && $GREP single_module conftest.err; then
8436	  cat conftest.err >&5
8437	# Otherwise, if the output was created with a 0 exit code from
8438	# the compiler, it worked.
8439	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8440	  lt_cv_apple_cc_single_mod=yes
8441	else
8442	  cat conftest.err >&5
8443	fi
8444	rm -rf libconftest.dylib*
8445	rm -f conftest.*
8446      fi ;;
8447esac
8448fi
8449{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8450printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8451
8452    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8453printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8454if test ${lt_cv_ld_exported_symbols_list+y}
8455then :
8456  printf %s "(cached) " >&6
8457else case e in #(
8458  e) lt_cv_ld_exported_symbols_list=no
8459      save_LDFLAGS=$LDFLAGS
8460      echo "_main" > conftest.sym
8461      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8462      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8463/* end confdefs.h.  */
8464
8465int
8466main (void)
8467{
8468
8469  ;
8470  return 0;
8471}
8472_ACEOF
8473if ac_fn_c_try_link "$LINENO"
8474then :
8475  lt_cv_ld_exported_symbols_list=yes
8476else case e in #(
8477  e) lt_cv_ld_exported_symbols_list=no ;;
8478esac
8479fi
8480rm -f core conftest.err conftest.$ac_objext conftest.beam \
8481    conftest$ac_exeext conftest.$ac_ext
8482	LDFLAGS=$save_LDFLAGS
8483     ;;
8484esac
8485fi
8486{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8487printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8488
8489    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8490printf %s "checking for -force_load linker flag... " >&6; }
8491if test ${lt_cv_ld_force_load+y}
8492then :
8493  printf %s "(cached) " >&6
8494else case e in #(
8495  e) lt_cv_ld_force_load=no
8496      cat > conftest.c << _LT_EOF
8497int forced_loaded() { return 2;}
8498_LT_EOF
8499      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8500      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8501      echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8502      $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8503      echo "$RANLIB libconftest.a" >&5
8504      $RANLIB libconftest.a 2>&5
8505      cat > conftest.c << _LT_EOF
8506int main() { return 0;}
8507_LT_EOF
8508      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8509      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8510      _lt_result=$?
8511      if test -s conftest.err && $GREP force_load conftest.err; then
8512	cat conftest.err >&5
8513      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8514	lt_cv_ld_force_load=yes
8515      else
8516	cat conftest.err >&5
8517      fi
8518        rm -f conftest.err libconftest.a conftest conftest.c
8519        rm -rf conftest.dSYM
8520     ;;
8521esac
8522fi
8523{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8524printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8525    case $host_os in
8526    rhapsody* | darwin1.[012])
8527      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8528    darwin1.*)
8529      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8530    darwin*)
8531      case $MACOSX_DEPLOYMENT_TARGET,$host in
8532        10.[012],*|,*powerpc*-darwin[5-8]*)
8533          _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8534        *)
8535          _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8536      esac
8537    ;;
8538  esac
8539    if test yes = "$lt_cv_apple_cc_single_mod"; then
8540      _lt_dar_single_mod='$single_module'
8541    fi
8542    if test yes = "$lt_cv_ld_exported_symbols_list"; then
8543      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8544    else
8545      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8546    fi
8547    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8548      _lt_dsymutil='~$DSYMUTIL $lib || :'
8549    else
8550      _lt_dsymutil=
8551    fi
8552    ;;
8553  esac
8554
8555# func_munge_path_list VARIABLE PATH
8556# -----------------------------------
8557# VARIABLE is name of variable containing _space_ separated list of
8558# directories to be munged by the contents of PATH, which is string
8559# having a format:
8560# "DIR[:DIR]:"
8561#       string "DIR[ DIR]" will be prepended to VARIABLE
8562# ":DIR[:DIR]"
8563#       string "DIR[ DIR]" will be appended to VARIABLE
8564# "DIRP[:DIRP]::[DIRA:]DIRA"
8565#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8566#       "DIRA[ DIRA]" will be appended to VARIABLE
8567# "DIR[:DIR]"
8568#       VARIABLE will be replaced by "DIR[ DIR]"
8569func_munge_path_list ()
8570{
8571    case x$2 in
8572    x)
8573        ;;
8574    *:)
8575        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8576        ;;
8577    x:*)
8578        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8579        ;;
8580    *::*)
8581        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8582        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8583        ;;
8584    *)
8585        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8586        ;;
8587    esac
8588}
8589
8590ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8591"
8592if test "x$ac_cv_header_dlfcn_h" = xyes
8593then :
8594  printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8595
8596fi
8597
8598
8599
8600
8601
8602# Set options
8603
8604
8605
8606        enable_dlopen=no
8607
8608
8609  enable_win32_dll=no
8610
8611
8612            # Check whether --enable-shared was given.
8613if test ${enable_shared+y}
8614then :
8615  enableval=$enable_shared; p=${PACKAGE-default}
8616    case $enableval in
8617    yes) enable_shared=yes ;;
8618    no) enable_shared=no ;;
8619    *)
8620      enable_shared=no
8621      # Look at the argument we got.  We use all the common list separators.
8622      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8623      for pkg in $enableval; do
8624	IFS=$lt_save_ifs
8625	if test "X$pkg" = "X$p"; then
8626	  enable_shared=yes
8627	fi
8628      done
8629      IFS=$lt_save_ifs
8630      ;;
8631    esac
8632else case e in #(
8633  e) enable_shared=yes ;;
8634esac
8635fi
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645  # Check whether --enable-static was given.
8646if test ${enable_static+y}
8647then :
8648  enableval=$enable_static; p=${PACKAGE-default}
8649    case $enableval in
8650    yes) enable_static=yes ;;
8651    no) enable_static=no ;;
8652    *)
8653     enable_static=no
8654      # Look at the argument we got.  We use all the common list separators.
8655      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8656      for pkg in $enableval; do
8657	IFS=$lt_save_ifs
8658	if test "X$pkg" = "X$p"; then
8659	  enable_static=yes
8660	fi
8661      done
8662      IFS=$lt_save_ifs
8663      ;;
8664    esac
8665else case e in #(
8666  e) enable_static=yes ;;
8667esac
8668fi
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679# Check whether --with-pic was given.
8680if test ${with_pic+y}
8681then :
8682  withval=$with_pic; lt_p=${PACKAGE-default}
8683    case $withval in
8684    yes|no) pic_mode=$withval ;;
8685    *)
8686      pic_mode=default
8687      # Look at the argument we got.  We use all the common list separators.
8688      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8689      for lt_pkg in $withval; do
8690	IFS=$lt_save_ifs
8691	if test "X$lt_pkg" = "X$lt_p"; then
8692	  pic_mode=yes
8693	fi
8694      done
8695      IFS=$lt_save_ifs
8696      ;;
8697    esac
8698else case e in #(
8699  e) pic_mode=default ;;
8700esac
8701fi
8702
8703
8704
8705
8706
8707
8708
8709
8710  # Check whether --enable-fast-install was given.
8711if test ${enable_fast_install+y}
8712then :
8713  enableval=$enable_fast_install; p=${PACKAGE-default}
8714    case $enableval in
8715    yes) enable_fast_install=yes ;;
8716    no) enable_fast_install=no ;;
8717    *)
8718      enable_fast_install=no
8719      # Look at the argument we got.  We use all the common list separators.
8720      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8721      for pkg in $enableval; do
8722	IFS=$lt_save_ifs
8723	if test "X$pkg" = "X$p"; then
8724	  enable_fast_install=yes
8725	fi
8726      done
8727      IFS=$lt_save_ifs
8728      ;;
8729    esac
8730else case e in #(
8731  e) enable_fast_install=yes ;;
8732esac
8733fi
8734
8735
8736
8737
8738
8739
8740
8741
8742  shared_archive_member_spec=
8743case $host,$enable_shared in
8744power*-*-aix[5-9]*,yes)
8745  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8746printf %s "checking which variant of shared library versioning to provide... " >&6; }
8747
8748# Check whether --with-aix-soname was given.
8749if test ${with_aix_soname+y}
8750then :
8751  withval=$with_aix_soname; case $withval in
8752    aix|svr4|both)
8753      ;;
8754    *)
8755      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8756      ;;
8757    esac
8758    lt_cv_with_aix_soname=$with_aix_soname
8759else case e in #(
8760  e) if test ${lt_cv_with_aix_soname+y}
8761then :
8762  printf %s "(cached) " >&6
8763else case e in #(
8764  e) lt_cv_with_aix_soname=aix ;;
8765esac
8766fi
8767
8768    with_aix_soname=$lt_cv_with_aix_soname ;;
8769esac
8770fi
8771
8772  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8773printf "%s\n" "$with_aix_soname" >&6; }
8774  if test aix != "$with_aix_soname"; then
8775    # For the AIX way of multilib, we name the shared archive member
8776    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8777    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8778    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8779    # the AIX toolchain works better with OBJECT_MODE set (default 32).
8780    if test 64 = "${OBJECT_MODE-32}"; then
8781      shared_archive_member_spec=shr_64
8782    else
8783      shared_archive_member_spec=shr
8784    fi
8785  fi
8786  ;;
8787*)
8788  with_aix_soname=aix
8789  ;;
8790esac
8791
8792
8793
8794
8795
8796
8797
8798
8799
8800
8801# This can be used to rebuild libtool when needed
8802LIBTOOL_DEPS=$ltmain
8803
8804# Always use our own libtool.
8805LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8806
8807
8808
8809
8810
8811
8812
8813
8814
8815
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836test -z "$LN_S" && LN_S="ln -s"
8837
8838
8839
8840
8841
8842
8843
8844
8845
8846
8847
8848
8849
8850
8851if test -n "${ZSH_VERSION+set}"; then
8852   setopt NO_GLOB_SUBST
8853fi
8854
8855{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8856printf %s "checking for objdir... " >&6; }
8857if test ${lt_cv_objdir+y}
8858then :
8859  printf %s "(cached) " >&6
8860else case e in #(
8861  e) rm -f .libs 2>/dev/null
8862mkdir .libs 2>/dev/null
8863if test -d .libs; then
8864  lt_cv_objdir=.libs
8865else
8866  # MS-DOS does not allow filenames that begin with a dot.
8867  lt_cv_objdir=_libs
8868fi
8869rmdir .libs 2>/dev/null ;;
8870esac
8871fi
8872{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8873printf "%s\n" "$lt_cv_objdir" >&6; }
8874objdir=$lt_cv_objdir
8875
8876
8877
8878
8879
8880printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
8881
8882
8883
8884
8885case $host_os in
8886aix3*)
8887  # AIX sometimes has problems with the GCC collect2 program.  For some
8888  # reason, if we set the COLLECT_NAMES environment variable, the problems
8889  # vanish in a puff of smoke.
8890  if test set != "${COLLECT_NAMES+set}"; then
8891    COLLECT_NAMES=
8892    export COLLECT_NAMES
8893  fi
8894  ;;
8895esac
8896
8897# Global variables:
8898ofile=libtool
8899can_build_shared=yes
8900
8901# All known linkers require a '.a' archive for static linking (except MSVC and
8902# ICC, which need '.lib').
8903libext=a
8904
8905with_gnu_ld=$lt_cv_prog_gnu_ld
8906
8907old_CC=$CC
8908old_CFLAGS=$CFLAGS
8909
8910# Set sane defaults for various variables
8911test -z "$CC" && CC=cc
8912test -z "$LTCC" && LTCC=$CC
8913test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8914test -z "$LD" && LD=ld
8915test -z "$ac_objext" && ac_objext=o
8916
8917func_cc_basename $compiler
8918cc_basename=$func_cc_basename_result
8919
8920
8921# Only perform the check for file, if the check method requires it
8922test -z "$MAGIC_CMD" && MAGIC_CMD=file
8923case $deplibs_check_method in
8924file_magic*)
8925  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8926    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8927printf %s "checking for ${ac_tool_prefix}file... " >&6; }
8928if test ${lt_cv_path_MAGIC_CMD+y}
8929then :
8930  printf %s "(cached) " >&6
8931else case e in #(
8932  e) case $MAGIC_CMD in
8933[\\/*] |  ?:[\\/]*)
8934  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8935  ;;
8936*)
8937  lt_save_MAGIC_CMD=$MAGIC_CMD
8938  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8939  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8940  for ac_dir in $ac_dummy; do
8941    IFS=$lt_save_ifs
8942    test -z "$ac_dir" && ac_dir=.
8943    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8944      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8945      if test -n "$file_magic_test_file"; then
8946	case $deplibs_check_method in
8947	"file_magic "*)
8948	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8949	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8950	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8951	    $EGREP "$file_magic_regex" > /dev/null; then
8952	    :
8953	  else
8954	    cat <<_LT_EOF 1>&2
8955
8956*** Warning: the command libtool uses to detect shared libraries,
8957*** $file_magic_cmd, produces output that libtool cannot recognize.
8958*** The result is that libtool may fail to recognize shared libraries
8959*** as such.  This will affect the creation of libtool libraries that
8960*** depend on shared libraries, but programs linked with such libtool
8961*** libraries will work regardless of this problem.  Nevertheless, you
8962*** may want to report the problem to your system manager and/or to
8963*** bug-libtool@gnu.org
8964
8965_LT_EOF
8966	  fi ;;
8967	esac
8968      fi
8969      break
8970    fi
8971  done
8972  IFS=$lt_save_ifs
8973  MAGIC_CMD=$lt_save_MAGIC_CMD
8974  ;;
8975esac ;;
8976esac
8977fi
8978
8979MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8980if test -n "$MAGIC_CMD"; then
8981  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8982printf "%s\n" "$MAGIC_CMD" >&6; }
8983else
8984  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8985printf "%s\n" "no" >&6; }
8986fi
8987
8988
8989
8990
8991
8992if test -z "$lt_cv_path_MAGIC_CMD"; then
8993  if test -n "$ac_tool_prefix"; then
8994    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8995printf %s "checking for file... " >&6; }
8996if test ${lt_cv_path_MAGIC_CMD+y}
8997then :
8998  printf %s "(cached) " >&6
8999else case e in #(
9000  e) case $MAGIC_CMD in
9001[\\/*] |  ?:[\\/]*)
9002  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9003  ;;
9004*)
9005  lt_save_MAGIC_CMD=$MAGIC_CMD
9006  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9007  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9008  for ac_dir in $ac_dummy; do
9009    IFS=$lt_save_ifs
9010    test -z "$ac_dir" && ac_dir=.
9011    if test -f "$ac_dir/file"; then
9012      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9013      if test -n "$file_magic_test_file"; then
9014	case $deplibs_check_method in
9015	"file_magic "*)
9016	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9017	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9018	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9019	    $EGREP "$file_magic_regex" > /dev/null; then
9020	    :
9021	  else
9022	    cat <<_LT_EOF 1>&2
9023
9024*** Warning: the command libtool uses to detect shared libraries,
9025*** $file_magic_cmd, produces output that libtool cannot recognize.
9026*** The result is that libtool may fail to recognize shared libraries
9027*** as such.  This will affect the creation of libtool libraries that
9028*** depend on shared libraries, but programs linked with such libtool
9029*** libraries will work regardless of this problem.  Nevertheless, you
9030*** may want to report the problem to your system manager and/or to
9031*** bug-libtool@gnu.org
9032
9033_LT_EOF
9034	  fi ;;
9035	esac
9036      fi
9037      break
9038    fi
9039  done
9040  IFS=$lt_save_ifs
9041  MAGIC_CMD=$lt_save_MAGIC_CMD
9042  ;;
9043esac ;;
9044esac
9045fi
9046
9047MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9048if test -n "$MAGIC_CMD"; then
9049  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9050printf "%s\n" "$MAGIC_CMD" >&6; }
9051else
9052  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9053printf "%s\n" "no" >&6; }
9054fi
9055
9056
9057  else
9058    MAGIC_CMD=:
9059  fi
9060fi
9061
9062  fi
9063  ;;
9064esac
9065
9066# Use C for the default configuration in the libtool script
9067
9068lt_save_CC=$CC
9069ac_ext=c
9070ac_cpp='$CPP $CPPFLAGS'
9071ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9072ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9073ac_compiler_gnu=$ac_cv_c_compiler_gnu
9074
9075
9076# Source file extension for C test sources.
9077ac_ext=c
9078
9079# Object file extension for compiled C test sources.
9080objext=o
9081objext=$objext
9082
9083# Code to be used in simple compile tests
9084lt_simple_compile_test_code="int some_variable = 0;"
9085
9086# Code to be used in simple link tests
9087lt_simple_link_test_code='int main(){return(0);}'
9088
9089
9090
9091
9092
9093
9094
9095# If no C compiler was specified, use CC.
9096LTCC=${LTCC-"$CC"}
9097
9098# If no C compiler flags were specified, use CFLAGS.
9099LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9100
9101# Allow CC to be a program name with arguments.
9102compiler=$CC
9103
9104# Save the default compiler, since it gets overwritten when the other
9105# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9106compiler_DEFAULT=$CC
9107
9108# save warnings/boilerplate of simple test code
9109ac_outfile=conftest.$ac_objext
9110echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9111eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9112_lt_compiler_boilerplate=`cat conftest.err`
9113$RM conftest*
9114
9115ac_outfile=conftest.$ac_objext
9116echo "$lt_simple_link_test_code" >conftest.$ac_ext
9117eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9118_lt_linker_boilerplate=`cat conftest.err`
9119$RM -r conftest*
9120
9121
9122## CAVEAT EMPTOR:
9123## There is no encapsulation within the following macros, do not change
9124## the running order or otherwise move them around unless you know exactly
9125## what you are doing...
9126if test -n "$compiler"; then
9127
9128lt_prog_compiler_no_builtin_flag=
9129
9130if test yes = "$GCC"; then
9131  case $cc_basename in
9132  nvcc*)
9133    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9134  *)
9135    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9136  esac
9137
9138  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9139printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9140if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9141then :
9142  printf %s "(cached) " >&6
9143else case e in #(
9144  e) lt_cv_prog_compiler_rtti_exceptions=no
9145   ac_outfile=conftest.$ac_objext
9146   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9147   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## 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_rtti_exceptions=yes
9169     fi
9170   fi
9171   $RM conftest*
9172 ;;
9173esac
9174fi
9175{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9176printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9177
9178if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9179    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9180else
9181    :
9182fi
9183
9184fi
9185
9186
9187
9188
9189
9190
9191  lt_prog_compiler_wl=
9192lt_prog_compiler_pic=
9193lt_prog_compiler_static=
9194
9195
9196  if test yes = "$GCC"; then
9197    lt_prog_compiler_wl='-Wl,'
9198    lt_prog_compiler_static='-static'
9199
9200    case $host_os in
9201      aix*)
9202      # All AIX code is PIC.
9203      if test ia64 = "$host_cpu"; then
9204	# AIX 5 now supports IA64 processor
9205	lt_prog_compiler_static='-Bstatic'
9206      fi
9207      lt_prog_compiler_pic='-fPIC'
9208      ;;
9209
9210    amigaos*)
9211      case $host_cpu in
9212      powerpc)
9213            # see comment about AmigaOS4 .so support
9214            lt_prog_compiler_pic='-fPIC'
9215        ;;
9216      m68k)
9217            # FIXME: we need at least 68020 code to build shared libraries, but
9218            # adding the '-m68020' flag to GCC prevents building anything better,
9219            # like '-m68040'.
9220            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9221        ;;
9222      esac
9223      ;;
9224
9225    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9226      # PIC is the default for these OSes.
9227      ;;
9228
9229    mingw* | cygwin* | pw32* | os2* | cegcc*)
9230      # This hack is so that the source file can tell whether it is being
9231      # built for inclusion in a dll (and should export symbols for example).
9232      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9233      # (--disable-auto-import) libraries
9234      lt_prog_compiler_pic='-DDLL_EXPORT'
9235      case $host_os in
9236      os2*)
9237	lt_prog_compiler_static='$wl-static'
9238	;;
9239      esac
9240      ;;
9241
9242    darwin* | rhapsody*)
9243      # PIC is the default on this platform
9244      # Common symbols not allowed in MH_DYLIB files
9245      lt_prog_compiler_pic='-fno-common'
9246      ;;
9247
9248    haiku*)
9249      # PIC is the default for Haiku.
9250      # The "-static" flag exists, but is broken.
9251      lt_prog_compiler_static=
9252      ;;
9253
9254    hpux*)
9255      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9256      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9257      # sets the default TLS model and affects inlining.
9258      case $host_cpu in
9259      hppa*64*)
9260	# +Z the default
9261	;;
9262      *)
9263	lt_prog_compiler_pic='-fPIC'
9264	;;
9265      esac
9266      ;;
9267
9268    interix[3-9]*)
9269      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9270      # Instead, we relocate shared libraries at runtime.
9271      ;;
9272
9273    msdosdjgpp*)
9274      # Just because we use GCC doesn't mean we suddenly get shared libraries
9275      # on systems that don't support them.
9276      lt_prog_compiler_can_build_shared=no
9277      enable_shared=no
9278      ;;
9279
9280    *nto* | *qnx*)
9281      # QNX uses GNU C++, but need to define -shared option too, otherwise
9282      # it will coredump.
9283      lt_prog_compiler_pic='-fPIC -shared'
9284      ;;
9285
9286    sysv4*MP*)
9287      if test -d /usr/nec; then
9288	lt_prog_compiler_pic=-Kconform_pic
9289      fi
9290      ;;
9291
9292    *)
9293      lt_prog_compiler_pic='-fPIC'
9294      ;;
9295    esac
9296
9297    case $cc_basename in
9298    nvcc*) # Cuda Compiler Driver 2.2
9299      lt_prog_compiler_wl='-Xlinker '
9300      if test -n "$lt_prog_compiler_pic"; then
9301        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9302      fi
9303      ;;
9304    esac
9305  else
9306    # PORTME Check for flag to pass linker flags through the system compiler.
9307    case $host_os in
9308    aix*)
9309      lt_prog_compiler_wl='-Wl,'
9310      if test ia64 = "$host_cpu"; then
9311	# AIX 5 now supports IA64 processor
9312	lt_prog_compiler_static='-Bstatic'
9313      else
9314	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9315      fi
9316      ;;
9317
9318    darwin* | rhapsody*)
9319      # PIC is the default on this platform
9320      # Common symbols not allowed in MH_DYLIB files
9321      lt_prog_compiler_pic='-fno-common'
9322      case $cc_basename in
9323      nagfor*)
9324        # NAG Fortran compiler
9325        lt_prog_compiler_wl='-Wl,-Wl,,'
9326        lt_prog_compiler_pic='-PIC'
9327        lt_prog_compiler_static='-Bstatic'
9328        ;;
9329      esac
9330      ;;
9331
9332    mingw* | cygwin* | pw32* | os2* | cegcc*)
9333      # This hack is so that the source file can tell whether it is being
9334      # built for inclusion in a dll (and should export symbols for example).
9335      lt_prog_compiler_pic='-DDLL_EXPORT'
9336      case $host_os in
9337      os2*)
9338	lt_prog_compiler_static='$wl-static'
9339	;;
9340      esac
9341      ;;
9342
9343    hpux9* | hpux10* | hpux11*)
9344      lt_prog_compiler_wl='-Wl,'
9345      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9346      # not for PA HP-UX.
9347      case $host_cpu in
9348      hppa*64*|ia64*)
9349	# +Z the default
9350	;;
9351      *)
9352	lt_prog_compiler_pic='+Z'
9353	;;
9354      esac
9355      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9356      lt_prog_compiler_static='$wl-a ${wl}archive'
9357      ;;
9358
9359    irix5* | irix6* | nonstopux*)
9360      lt_prog_compiler_wl='-Wl,'
9361      # PIC (with -KPIC) is the default.
9362      lt_prog_compiler_static='-non_shared'
9363      ;;
9364
9365    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9366      case $cc_basename in
9367      # old Intel for x86_64, which still supported -KPIC.
9368      ecc*)
9369	lt_prog_compiler_wl='-Wl,'
9370	lt_prog_compiler_pic='-KPIC'
9371	lt_prog_compiler_static='-static'
9372        ;;
9373      # icc used to be incompatible with GCC.
9374      # ICC 10 doesn't accept -KPIC any more.
9375      icc* | ifort*)
9376	lt_prog_compiler_wl='-Wl,'
9377	lt_prog_compiler_pic='-fPIC'
9378	lt_prog_compiler_static='-static'
9379        ;;
9380      # Lahey Fortran 8.1.
9381      lf95*)
9382	lt_prog_compiler_wl='-Wl,'
9383	lt_prog_compiler_pic='--shared'
9384	lt_prog_compiler_static='--static'
9385	;;
9386      nagfor*)
9387	# NAG Fortran compiler
9388	lt_prog_compiler_wl='-Wl,-Wl,,'
9389	lt_prog_compiler_pic='-PIC'
9390	lt_prog_compiler_static='-Bstatic'
9391	;;
9392      tcc*)
9393	# Fabrice Bellard et al's Tiny C Compiler
9394	lt_prog_compiler_wl='-Wl,'
9395	lt_prog_compiler_pic='-fPIC'
9396	lt_prog_compiler_static='-static'
9397	;;
9398      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9399        # Portland Group compilers (*not* the Pentium gcc compiler,
9400	# which looks to be a dead project)
9401	lt_prog_compiler_wl='-Wl,'
9402	lt_prog_compiler_pic='-fpic'
9403	lt_prog_compiler_static='-Bstatic'
9404        ;;
9405      ccc*)
9406        lt_prog_compiler_wl='-Wl,'
9407        # All Alpha code is PIC.
9408        lt_prog_compiler_static='-non_shared'
9409        ;;
9410      xl* | bgxl* | bgf* | mpixl*)
9411	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9412	lt_prog_compiler_wl='-Wl,'
9413	lt_prog_compiler_pic='-qpic'
9414	lt_prog_compiler_static='-qstaticlink'
9415	;;
9416      *)
9417	case `$CC -V 2>&1 | $SED 5q` in
9418	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9419	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9420	  lt_prog_compiler_pic='-KPIC'
9421	  lt_prog_compiler_static='-Bstatic'
9422	  lt_prog_compiler_wl=''
9423	  ;;
9424	*Sun\ F* | *Sun*Fortran*)
9425	  lt_prog_compiler_pic='-KPIC'
9426	  lt_prog_compiler_static='-Bstatic'
9427	  lt_prog_compiler_wl='-Qoption ld '
9428	  ;;
9429	*Sun\ C*)
9430	  # Sun C 5.9
9431	  lt_prog_compiler_pic='-KPIC'
9432	  lt_prog_compiler_static='-Bstatic'
9433	  lt_prog_compiler_wl='-Wl,'
9434	  ;;
9435        *Intel*\ [CF]*Compiler*)
9436	  lt_prog_compiler_wl='-Wl,'
9437	  lt_prog_compiler_pic='-fPIC'
9438	  lt_prog_compiler_static='-static'
9439	  ;;
9440	*Portland\ Group*)
9441	  lt_prog_compiler_wl='-Wl,'
9442	  lt_prog_compiler_pic='-fpic'
9443	  lt_prog_compiler_static='-Bstatic'
9444	  ;;
9445	esac
9446	;;
9447      esac
9448      ;;
9449
9450    newsos6)
9451      lt_prog_compiler_pic='-KPIC'
9452      lt_prog_compiler_static='-Bstatic'
9453      ;;
9454
9455    *nto* | *qnx*)
9456      # QNX uses GNU C++, but need to define -shared option too, otherwise
9457      # it will coredump.
9458      lt_prog_compiler_pic='-fPIC -shared'
9459      ;;
9460
9461    osf3* | osf4* | osf5*)
9462      lt_prog_compiler_wl='-Wl,'
9463      # All OSF/1 code is PIC.
9464      lt_prog_compiler_static='-non_shared'
9465      ;;
9466
9467    rdos*)
9468      lt_prog_compiler_static='-non_shared'
9469      ;;
9470
9471    solaris*)
9472      lt_prog_compiler_pic='-KPIC'
9473      lt_prog_compiler_static='-Bstatic'
9474      case $cc_basename in
9475      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9476	lt_prog_compiler_wl='-Qoption ld ';;
9477      *)
9478	lt_prog_compiler_wl='-Wl,';;
9479      esac
9480      ;;
9481
9482    sunos4*)
9483      lt_prog_compiler_wl='-Qoption ld '
9484      lt_prog_compiler_pic='-PIC'
9485      lt_prog_compiler_static='-Bstatic'
9486      ;;
9487
9488    sysv4 | sysv4.2uw2* | sysv4.3*)
9489      lt_prog_compiler_wl='-Wl,'
9490      lt_prog_compiler_pic='-KPIC'
9491      lt_prog_compiler_static='-Bstatic'
9492      ;;
9493
9494    sysv4*MP*)
9495      if test -d /usr/nec; then
9496	lt_prog_compiler_pic='-Kconform_pic'
9497	lt_prog_compiler_static='-Bstatic'
9498      fi
9499      ;;
9500
9501    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9502      lt_prog_compiler_wl='-Wl,'
9503      lt_prog_compiler_pic='-KPIC'
9504      lt_prog_compiler_static='-Bstatic'
9505      ;;
9506
9507    unicos*)
9508      lt_prog_compiler_wl='-Wl,'
9509      lt_prog_compiler_can_build_shared=no
9510      ;;
9511
9512    uts4*)
9513      lt_prog_compiler_pic='-pic'
9514      lt_prog_compiler_static='-Bstatic'
9515      ;;
9516
9517    *)
9518      lt_prog_compiler_can_build_shared=no
9519      ;;
9520    esac
9521  fi
9522
9523case $host_os in
9524  # For platforms that do not support PIC, -DPIC is meaningless:
9525  *djgpp*)
9526    lt_prog_compiler_pic=
9527    ;;
9528  *)
9529    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9530    ;;
9531esac
9532
9533{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9534printf %s "checking for $compiler option to produce PIC... " >&6; }
9535if test ${lt_cv_prog_compiler_pic+y}
9536then :
9537  printf %s "(cached) " >&6
9538else case e in #(
9539  e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
9540esac
9541fi
9542{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9543printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9544lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9545
9546#
9547# Check to make sure the PIC flag actually works.
9548#
9549if test -n "$lt_prog_compiler_pic"; then
9550  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9551printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9552if test ${lt_cv_prog_compiler_pic_works+y}
9553then :
9554  printf %s "(cached) " >&6
9555else case e in #(
9556  e) lt_cv_prog_compiler_pic_works=no
9557   ac_outfile=conftest.$ac_objext
9558   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9559   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9560   # Insert the option either (1) after the last *FLAGS variable, or
9561   # (2) before a word containing "conftest.", or (3) at the end.
9562   # Note that $ac_compile itself does not contain backslashes and begins
9563   # with a dollar sign (not a hyphen), so the echo should work correctly.
9564   # The option is referenced via a variable to avoid confusing sed.
9565   lt_compile=`echo "$ac_compile" | $SED \
9566   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9567   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9568   -e 's:$: $lt_compiler_flag:'`
9569   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9570   (eval "$lt_compile" 2>conftest.err)
9571   ac_status=$?
9572   cat conftest.err >&5
9573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9574   if (exit $ac_status) && test -s "$ac_outfile"; then
9575     # The compiler can only warn and ignore the option if not recognized
9576     # So say no if there are warnings other than the usual output.
9577     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9578     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9579     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9580       lt_cv_prog_compiler_pic_works=yes
9581     fi
9582   fi
9583   $RM conftest*
9584 ;;
9585esac
9586fi
9587{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9588printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9589
9590if test yes = "$lt_cv_prog_compiler_pic_works"; then
9591    case $lt_prog_compiler_pic in
9592     "" | " "*) ;;
9593     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9594     esac
9595else
9596    lt_prog_compiler_pic=
9597     lt_prog_compiler_can_build_shared=no
9598fi
9599
9600fi
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612#
9613# Check to make sure the static flag actually works.
9614#
9615wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9616{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9617printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9618if test ${lt_cv_prog_compiler_static_works+y}
9619then :
9620  printf %s "(cached) " >&6
9621else case e in #(
9622  e) lt_cv_prog_compiler_static_works=no
9623   save_LDFLAGS=$LDFLAGS
9624   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9625   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9626   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9627     # The linker can only warn and ignore the option if not recognized
9628     # So say no if there are warnings
9629     if test -s conftest.err; then
9630       # Append any errors to the config.log.
9631       cat conftest.err 1>&5
9632       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9633       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9634       if diff conftest.exp conftest.er2 >/dev/null; then
9635         lt_cv_prog_compiler_static_works=yes
9636       fi
9637     else
9638       lt_cv_prog_compiler_static_works=yes
9639     fi
9640   fi
9641   $RM -r conftest*
9642   LDFLAGS=$save_LDFLAGS
9643 ;;
9644esac
9645fi
9646{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9647printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9648
9649if test yes = "$lt_cv_prog_compiler_static_works"; then
9650    :
9651else
9652    lt_prog_compiler_static=
9653fi
9654
9655
9656
9657
9658
9659
9660
9661  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9662printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9663if test ${lt_cv_prog_compiler_c_o+y}
9664then :
9665  printf %s "(cached) " >&6
9666else case e in #(
9667  e) lt_cv_prog_compiler_c_o=no
9668   $RM -r conftest 2>/dev/null
9669   mkdir conftest
9670   cd conftest
9671   mkdir out
9672   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9673
9674   lt_compiler_flag="-o out/conftest2.$ac_objext"
9675   # Insert the option either (1) after the last *FLAGS variable, or
9676   # (2) before a word containing "conftest.", or (3) at the end.
9677   # Note that $ac_compile itself does not contain backslashes and begins
9678   # with a dollar sign (not a hyphen), so the echo should work correctly.
9679   lt_compile=`echo "$ac_compile" | $SED \
9680   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9681   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9682   -e 's:$: $lt_compiler_flag:'`
9683   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9684   (eval "$lt_compile" 2>out/conftest.err)
9685   ac_status=$?
9686   cat out/conftest.err >&5
9687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9688   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9689   then
9690     # The compiler can only warn and ignore the option if not recognized
9691     # So say no if there are warnings
9692     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9693     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9694     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9695       lt_cv_prog_compiler_c_o=yes
9696     fi
9697   fi
9698   chmod u+w . 2>&5
9699   $RM conftest*
9700   # SGI C++ compiler will create directory out/ii_files/ for
9701   # template instantiation
9702   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9703   $RM out/* && rmdir out
9704   cd ..
9705   $RM -r conftest
9706   $RM conftest*
9707 ;;
9708esac
9709fi
9710{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9711printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9712
9713
9714
9715
9716
9717
9718  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9719printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9720if test ${lt_cv_prog_compiler_c_o+y}
9721then :
9722  printf %s "(cached) " >&6
9723else case e in #(
9724  e) lt_cv_prog_compiler_c_o=no
9725   $RM -r conftest 2>/dev/null
9726   mkdir conftest
9727   cd conftest
9728   mkdir out
9729   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9730
9731   lt_compiler_flag="-o out/conftest2.$ac_objext"
9732   # Insert the option either (1) after the last *FLAGS variable, or
9733   # (2) before a word containing "conftest.", or (3) at the end.
9734   # Note that $ac_compile itself does not contain backslashes and begins
9735   # with a dollar sign (not a hyphen), so the echo should work correctly.
9736   lt_compile=`echo "$ac_compile" | $SED \
9737   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9738   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9739   -e 's:$: $lt_compiler_flag:'`
9740   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9741   (eval "$lt_compile" 2>out/conftest.err)
9742   ac_status=$?
9743   cat out/conftest.err >&5
9744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9745   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9746   then
9747     # The compiler can only warn and ignore the option if not recognized
9748     # So say no if there are warnings
9749     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9750     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9751     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9752       lt_cv_prog_compiler_c_o=yes
9753     fi
9754   fi
9755   chmod u+w . 2>&5
9756   $RM conftest*
9757   # SGI C++ compiler will create directory out/ii_files/ for
9758   # template instantiation
9759   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9760   $RM out/* && rmdir out
9761   cd ..
9762   $RM -r conftest
9763   $RM conftest*
9764 ;;
9765esac
9766fi
9767{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9768printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9769
9770
9771
9772
9773hard_links=nottested
9774if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9775  # do not overwrite the value of need_locks provided by the user
9776  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9777printf %s "checking if we can lock with hard links... " >&6; }
9778  hard_links=yes
9779  $RM conftest*
9780  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9781  touch conftest.a
9782  ln conftest.a conftest.b 2>&5 || hard_links=no
9783  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9784  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9785printf "%s\n" "$hard_links" >&6; }
9786  if test no = "$hard_links"; then
9787    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9788printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9789    need_locks=warn
9790  fi
9791else
9792  need_locks=no
9793fi
9794
9795
9796
9797
9798
9799
9800  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9801printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9802
9803  runpath_var=
9804  allow_undefined_flag=
9805  always_export_symbols=no
9806  archive_cmds=
9807  archive_expsym_cmds=
9808  compiler_needs_object=no
9809  enable_shared_with_static_runtimes=no
9810  export_dynamic_flag_spec=
9811  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9812  hardcode_automatic=no
9813  hardcode_direct=no
9814  hardcode_direct_absolute=no
9815  hardcode_libdir_flag_spec=
9816  hardcode_libdir_separator=
9817  hardcode_minus_L=no
9818  hardcode_shlibpath_var=unsupported
9819  inherit_rpath=no
9820  link_all_deplibs=unknown
9821  module_cmds=
9822  module_expsym_cmds=
9823  old_archive_from_new_cmds=
9824  old_archive_from_expsyms_cmds=
9825  thread_safe_flag_spec=
9826  whole_archive_flag_spec=
9827  # include_expsyms should be a list of space-separated symbols to be *always*
9828  # included in the symbol list
9829  include_expsyms=
9830  # exclude_expsyms can be an extended regexp of symbols to exclude
9831  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9832  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9833  # as well as any symbol that contains 'd'.
9834  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9835  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9836  # platforms (ab)use it in PIC code, but their linkers get confused if
9837  # the symbol is explicitly referenced.  Since portable code cannot
9838  # rely on this symbol name, it's probably fine to never include it in
9839  # preloaded symbol tables.
9840  # Exclude shared library initialization/finalization symbols.
9841  extract_expsyms_cmds=
9842
9843  case $host_os in
9844  cygwin* | mingw* | pw32* | cegcc*)
9845    # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
9846    # When not using gcc, we currently assume that we are using
9847    # Microsoft Visual C++ or Intel C++ Compiler.
9848    if test yes != "$GCC"; then
9849      with_gnu_ld=no
9850    fi
9851    ;;
9852  interix*)
9853    # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
9854    with_gnu_ld=yes
9855    ;;
9856  openbsd* | bitrig*)
9857    with_gnu_ld=no
9858    ;;
9859  esac
9860
9861  ld_shlibs=yes
9862
9863  # On some targets, GNU ld is compatible enough with the native linker
9864  # that we're better off using the native interface for both.
9865  lt_use_gnu_ld_interface=no
9866  if test yes = "$with_gnu_ld"; then
9867    case $host_os in
9868      aix*)
9869	# The AIX port of GNU ld has always aspired to compatibility
9870	# with the native linker.  However, as the warning in the GNU ld
9871	# block says, versions before 2.19.5* couldn't really create working
9872	# shared libraries, regardless of the interface used.
9873	case `$LD -v 2>&1` in
9874	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9875	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9876	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9877	  *)
9878	    lt_use_gnu_ld_interface=yes
9879	    ;;
9880	esac
9881	;;
9882      *)
9883	lt_use_gnu_ld_interface=yes
9884	;;
9885    esac
9886  fi
9887
9888  if test yes = "$lt_use_gnu_ld_interface"; then
9889    # If archive_cmds runs LD, not CC, wlarc should be empty
9890    wlarc='$wl'
9891
9892    # Set some defaults for GNU ld with shared library support. These
9893    # are reset later if shared libraries are not supported. Putting them
9894    # here allows them to be overridden if necessary.
9895    runpath_var=LD_RUN_PATH
9896    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9897    export_dynamic_flag_spec='$wl--export-dynamic'
9898    # ancient GNU ld didn't support --whole-archive et. al.
9899    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9900      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9901    else
9902      whole_archive_flag_spec=
9903    fi
9904    supports_anon_versioning=no
9905    case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
9906      *GNU\ gold*) supports_anon_versioning=yes ;;
9907      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9908      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9909      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9910      *\ 2.11.*) ;; # other 2.11 versions
9911      *) supports_anon_versioning=yes ;;
9912    esac
9913
9914    # See if GNU ld supports shared libraries.
9915    case $host_os in
9916    aix[3-9]*)
9917      # On AIX/PPC, the GNU linker is very broken
9918      if test ia64 != "$host_cpu"; then
9919	ld_shlibs=no
9920	cat <<_LT_EOF 1>&2
9921
9922*** Warning: the GNU linker, at least up to release 2.19, is reported
9923*** to be unable to reliably create shared libraries on AIX.
9924*** Therefore, libtool is disabling shared libraries support.  If you
9925*** really care for shared libraries, you may want to install binutils
9926*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9927*** You will then need to restart the configuration process.
9928
9929_LT_EOF
9930      fi
9931      ;;
9932
9933    amigaos*)
9934      case $host_cpu in
9935      powerpc)
9936            # see comment about AmigaOS4 .so support
9937            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9938            archive_expsym_cmds=''
9939        ;;
9940      m68k)
9941            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)'
9942            hardcode_libdir_flag_spec='-L$libdir'
9943            hardcode_minus_L=yes
9944        ;;
9945      esac
9946      ;;
9947
9948    beos*)
9949      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9950	allow_undefined_flag=unsupported
9951	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9952	# support --undefined.  This deserves some investigation.  FIXME
9953	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9954      else
9955	ld_shlibs=no
9956      fi
9957      ;;
9958
9959    cygwin* | mingw* | pw32* | cegcc*)
9960      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9961      # as there is no search path for DLLs.
9962      hardcode_libdir_flag_spec='-L$libdir'
9963      export_dynamic_flag_spec='$wl--export-all-symbols'
9964      allow_undefined_flag=unsupported
9965      always_export_symbols=no
9966      enable_shared_with_static_runtimes=yes
9967      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'
9968      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9969
9970      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9971        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9972	# If the export-symbols file already is a .def file, use it as
9973	# is; otherwise, prepend EXPORTS...
9974	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9975          cp $export_symbols $output_objdir/$soname.def;
9976        else
9977          echo EXPORTS > $output_objdir/$soname.def;
9978          cat $export_symbols >> $output_objdir/$soname.def;
9979        fi~
9980        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9981      else
9982	ld_shlibs=no
9983      fi
9984      ;;
9985
9986    haiku*)
9987      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9988      link_all_deplibs=yes
9989      ;;
9990
9991    os2*)
9992      hardcode_libdir_flag_spec='-L$libdir'
9993      hardcode_minus_L=yes
9994      allow_undefined_flag=unsupported
9995      shrext_cmds=.dll
9996      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9997	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9998	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9999	$ECHO EXPORTS >> $output_objdir/$libname.def~
10000	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10001	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10002	emximp -o $lib $output_objdir/$libname.def'
10003      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10004	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10005	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10006	$ECHO EXPORTS >> $output_objdir/$libname.def~
10007	prefix_cmds="$SED"~
10008	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10009	  prefix_cmds="$prefix_cmds -e 1d";
10010	fi~
10011	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10012	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10013	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10014	emximp -o $lib $output_objdir/$libname.def'
10015      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10016      enable_shared_with_static_runtimes=yes
10017      file_list_spec='@'
10018      ;;
10019
10020    interix[3-9]*)
10021      hardcode_direct=no
10022      hardcode_shlibpath_var=no
10023      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10024      export_dynamic_flag_spec='$wl-E'
10025      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10026      # Instead, shared libraries are loaded at an image base (0x10000000 by
10027      # default) and relocated if they conflict, which is a slow very memory
10028      # consuming and fragmenting process.  To avoid this, we pick a random,
10029      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10030      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10031      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10032      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'
10033      ;;
10034
10035    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10036      tmp_diet=no
10037      if test linux-dietlibc = "$host_os"; then
10038	case $cc_basename in
10039	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
10040	esac
10041      fi
10042      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10043	 && test no = "$tmp_diet"
10044      then
10045	tmp_addflag=' $pic_flag'
10046	tmp_sharedflag='-shared'
10047	case $cc_basename,$host_cpu in
10048        pgcc*)				# Portland Group C compiler
10049	  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'
10050	  tmp_addflag=' $pic_flag'
10051	  ;;
10052	pgf77* | pgf90* | pgf95* | pgfortran*)
10053					# Portland Group f77 and f90 compilers
10054	  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'
10055	  tmp_addflag=' $pic_flag -Mnomain' ;;
10056	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
10057	  tmp_addflag=' -i_dynamic' ;;
10058	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
10059	  tmp_addflag=' -i_dynamic -nofor_main' ;;
10060	ifc* | ifort*)			# Intel Fortran compiler
10061	  tmp_addflag=' -nofor_main' ;;
10062	lf95*)				# Lahey Fortran 8.1
10063	  whole_archive_flag_spec=
10064	  tmp_sharedflag='--shared' ;;
10065        nagfor*)                        # NAGFOR 5.3
10066          tmp_sharedflag='-Wl,-shared' ;;
10067	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10068	  tmp_sharedflag='-qmkshrobj'
10069	  tmp_addflag= ;;
10070	nvcc*)	# Cuda Compiler Driver 2.2
10071	  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'
10072	  compiler_needs_object=yes
10073	  ;;
10074	esac
10075	case `$CC -V 2>&1 | $SED 5q` in
10076	*Sun\ C*)			# Sun C 5.9
10077	  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'
10078	  compiler_needs_object=yes
10079	  tmp_sharedflag='-G' ;;
10080	*Sun\ F*)			# Sun Fortran 8.3
10081	  tmp_sharedflag='-G' ;;
10082	esac
10083	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10084
10085        if test yes = "$supports_anon_versioning"; then
10086          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10087            cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10088            echo "local: *; };" >> $output_objdir/$libname.ver~
10089            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10090        fi
10091
10092	case $cc_basename in
10093	tcc*)
10094	  export_dynamic_flag_spec='-rdynamic'
10095	  ;;
10096	xlf* | bgf* | bgxlf* | mpixlf*)
10097	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10098	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10099	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10100	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10101	  if test yes = "$supports_anon_versioning"; then
10102	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10103              cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10104              echo "local: *; };" >> $output_objdir/$libname.ver~
10105              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10106	  fi
10107	  ;;
10108	esac
10109      else
10110        ld_shlibs=no
10111      fi
10112      ;;
10113
10114    netbsd*)
10115      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10116	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10117	wlarc=
10118      else
10119	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10120	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10121      fi
10122      ;;
10123
10124    solaris*)
10125      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10126	ld_shlibs=no
10127	cat <<_LT_EOF 1>&2
10128
10129*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10130*** create shared libraries on Solaris systems.  Therefore, libtool
10131*** is disabling shared libraries support.  We urge you to upgrade GNU
10132*** binutils to release 2.9.1 or newer.  Another option is to modify
10133*** your PATH or compiler configuration so that the native linker is
10134*** used, and then restart.
10135
10136_LT_EOF
10137      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10138	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10139	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10140      else
10141	ld_shlibs=no
10142      fi
10143      ;;
10144
10145    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10146      case `$LD -v 2>&1` in
10147        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10148	ld_shlibs=no
10149	cat <<_LT_EOF 1>&2
10150
10151*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10152*** reliably create shared libraries on SCO systems.  Therefore, libtool
10153*** is disabling shared libraries support.  We urge you to upgrade GNU
10154*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10155*** your PATH or compiler configuration so that the native linker is
10156*** used, and then restart.
10157
10158_LT_EOF
10159	;;
10160	*)
10161	  # For security reasons, it is highly recommended that you always
10162	  # use absolute paths for naming shared libraries, and exclude the
10163	  # DT_RUNPATH tag from executables and libraries.  But doing so
10164	  # requires that you compile everything twice, which is a pain.
10165	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10166	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10167	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10168	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10169	  else
10170	    ld_shlibs=no
10171	  fi
10172	;;
10173      esac
10174      ;;
10175
10176    sunos4*)
10177      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10178      wlarc=
10179      hardcode_direct=yes
10180      hardcode_shlibpath_var=no
10181      ;;
10182
10183    *)
10184      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10185	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10186	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10187      else
10188	ld_shlibs=no
10189      fi
10190      ;;
10191    esac
10192
10193    if test no = "$ld_shlibs"; then
10194      runpath_var=
10195      hardcode_libdir_flag_spec=
10196      export_dynamic_flag_spec=
10197      whole_archive_flag_spec=
10198    fi
10199  else
10200    # PORTME fill in a description of your system's linker (not GNU ld)
10201    case $host_os in
10202    aix3*)
10203      allow_undefined_flag=unsupported
10204      always_export_symbols=yes
10205      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'
10206      # Note: this linker hardcodes the directories in LIBPATH if there
10207      # are no directories specified by -L.
10208      hardcode_minus_L=yes
10209      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10210	# Neither direct hardcoding nor static linking is supported with a
10211	# broken collect2.
10212	hardcode_direct=unsupported
10213      fi
10214      ;;
10215
10216    aix[4-9]*)
10217      if test ia64 = "$host_cpu"; then
10218	# On IA64, the linker does run time linking by default, so we don't
10219	# have to do anything special.
10220	aix_use_runtimelinking=no
10221	exp_sym_flag='-Bexport'
10222	no_entry_flag=
10223      else
10224	# If we're using GNU nm, then we don't want the "-C" option.
10225	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
10226	# Without the "-l" option, or with the "-B" option, AIX nm treats
10227	# weak defined symbols like other global defined symbols, whereas
10228	# GNU nm marks them as "W".
10229	# While the 'weak' keyword is ignored in the Export File, we need
10230	# it in the Import File for the 'aix-soname' feature, so we have
10231	# to replace the "-B" option with "-P" for AIX nm.
10232	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10233	  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'
10234	else
10235	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10236	fi
10237	aix_use_runtimelinking=no
10238
10239	# Test if we are trying to use run time linking or normal
10240	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10241	# have runtime linking enabled, and use it for executables.
10242	# For shared libraries, we enable/disable runtime linking
10243	# depending on the kind of the shared library created -
10244	# when "with_aix_soname,aix_use_runtimelinking" is:
10245	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
10246	# "aix,yes"  lib.so          shared, rtl:yes, for executables
10247	#            lib.a           static archive
10248	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
10249	#            lib.a(lib.so.V) shared, rtl:no,  for executables
10250	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10251	#            lib.a(lib.so.V) shared, rtl:no
10252	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
10253	#            lib.a           static archive
10254	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10255	  for ld_flag in $LDFLAGS; do
10256	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10257	    aix_use_runtimelinking=yes
10258	    break
10259	  fi
10260	  done
10261	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10262	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
10263	    # so we don't have lib.a shared libs to link our executables.
10264	    # We have to force runtime linking in this case.
10265	    aix_use_runtimelinking=yes
10266	    LDFLAGS="$LDFLAGS -Wl,-brtl"
10267	  fi
10268	  ;;
10269	esac
10270
10271	exp_sym_flag='-bexport'
10272	no_entry_flag='-bnoentry'
10273      fi
10274
10275      # When large executables or shared objects are built, AIX ld can
10276      # have problems creating the table of contents.  If linking a library
10277      # or program results in "error TOC overflow" add -mminimal-toc to
10278      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10279      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10280
10281      archive_cmds=''
10282      hardcode_direct=yes
10283      hardcode_direct_absolute=yes
10284      hardcode_libdir_separator=':'
10285      link_all_deplibs=yes
10286      file_list_spec='$wl-f,'
10287      case $with_aix_soname,$aix_use_runtimelinking in
10288      aix,*) ;; # traditional, no import file
10289      svr4,* | *,yes) # use import file
10290	# The Import File defines what to hardcode.
10291	hardcode_direct=no
10292	hardcode_direct_absolute=no
10293	;;
10294      esac
10295
10296      if test yes = "$GCC"; then
10297	case $host_os in aix4.[012]|aix4.[012].*)
10298	# We only want to do this on AIX 4.2 and lower, the check
10299	# below for broken collect2 doesn't work under 4.3+
10300	  collect2name=`$CC -print-prog-name=collect2`
10301	  if test -f "$collect2name" &&
10302	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10303	  then
10304	  # We have reworked collect2
10305	  :
10306	  else
10307	  # We have old collect2
10308	  hardcode_direct=unsupported
10309	  # It fails to find uninstalled libraries when the uninstalled
10310	  # path is not listed in the libpath.  Setting hardcode_minus_L
10311	  # to unsupported forces relinking
10312	  hardcode_minus_L=yes
10313	  hardcode_libdir_flag_spec='-L$libdir'
10314	  hardcode_libdir_separator=
10315	  fi
10316	  ;;
10317	esac
10318	shared_flag='-shared'
10319	if test yes = "$aix_use_runtimelinking"; then
10320	  shared_flag="$shared_flag "'$wl-G'
10321	fi
10322	# Need to ensure runtime linking is disabled for the traditional
10323	# shared library, or the linker may eventually find shared libraries
10324	# /with/ Import File - we do not want to mix them.
10325	shared_flag_aix='-shared'
10326	shared_flag_svr4='-shared $wl-G'
10327      else
10328	# not using gcc
10329	if test ia64 = "$host_cpu"; then
10330	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10331	# chokes on -Wl,-G. The following line is correct:
10332	  shared_flag='-G'
10333	else
10334	  if test yes = "$aix_use_runtimelinking"; then
10335	    shared_flag='$wl-G'
10336	  else
10337	    shared_flag='$wl-bM:SRE'
10338	  fi
10339	  shared_flag_aix='$wl-bM:SRE'
10340	  shared_flag_svr4='$wl-G'
10341	fi
10342      fi
10343
10344      export_dynamic_flag_spec='$wl-bexpall'
10345      # It seems that -bexpall does not export symbols beginning with
10346      # underscore (_), so it is better to generate a list of symbols to export.
10347      always_export_symbols=yes
10348      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10349	# Warning - without using the other runtime loading flags (-brtl),
10350	# -berok will link without error, but may produce a broken library.
10351	allow_undefined_flag='-berok'
10352        # Determine the default libpath from the value encoded in an
10353        # empty executable.
10354        if test set = "${lt_cv_aix_libpath+set}"; then
10355  aix_libpath=$lt_cv_aix_libpath
10356else
10357  if test ${lt_cv_aix_libpath_+y}
10358then :
10359  printf %s "(cached) " >&6
10360else case e in #(
10361  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10362/* end confdefs.h.  */
10363
10364int
10365main (void)
10366{
10367
10368  ;
10369  return 0;
10370}
10371_ACEOF
10372if ac_fn_c_try_link "$LINENO"
10373then :
10374
10375  lt_aix_libpath_sed='
10376      /Import File Strings/,/^$/ {
10377	  /^0/ {
10378	      s/^0  *\([^ ]*\) *$/\1/
10379	      p
10380	  }
10381      }'
10382  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10383  # Check for a 64-bit object if we didn't find anything.
10384  if test -z "$lt_cv_aix_libpath_"; then
10385    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10386  fi
10387fi
10388rm -f core conftest.err conftest.$ac_objext conftest.beam \
10389    conftest$ac_exeext conftest.$ac_ext
10390  if test -z "$lt_cv_aix_libpath_"; then
10391    lt_cv_aix_libpath_=/usr/lib:/lib
10392  fi
10393   ;;
10394esac
10395fi
10396
10397  aix_libpath=$lt_cv_aix_libpath_
10398fi
10399
10400        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10401        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
10402      else
10403	if test ia64 = "$host_cpu"; then
10404	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10405	  allow_undefined_flag="-z nodefs"
10406	  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"
10407	else
10408	 # Determine the default libpath from the value encoded in an
10409	 # empty executable.
10410	 if test set = "${lt_cv_aix_libpath+set}"; then
10411  aix_libpath=$lt_cv_aix_libpath
10412else
10413  if test ${lt_cv_aix_libpath_+y}
10414then :
10415  printf %s "(cached) " >&6
10416else case e in #(
10417  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10418/* end confdefs.h.  */
10419
10420int
10421main (void)
10422{
10423
10424  ;
10425  return 0;
10426}
10427_ACEOF
10428if ac_fn_c_try_link "$LINENO"
10429then :
10430
10431  lt_aix_libpath_sed='
10432      /Import File Strings/,/^$/ {
10433	  /^0/ {
10434	      s/^0  *\([^ ]*\) *$/\1/
10435	      p
10436	  }
10437      }'
10438  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10439  # Check for a 64-bit object if we didn't find anything.
10440  if test -z "$lt_cv_aix_libpath_"; then
10441    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10442  fi
10443fi
10444rm -f core conftest.err conftest.$ac_objext conftest.beam \
10445    conftest$ac_exeext conftest.$ac_ext
10446  if test -z "$lt_cv_aix_libpath_"; then
10447    lt_cv_aix_libpath_=/usr/lib:/lib
10448  fi
10449   ;;
10450esac
10451fi
10452
10453  aix_libpath=$lt_cv_aix_libpath_
10454fi
10455
10456	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10457	  # Warning - without using the other run time loading flags,
10458	  # -berok will link without error, but may produce a broken library.
10459	  no_undefined_flag=' $wl-bernotok'
10460	  allow_undefined_flag=' $wl-berok'
10461	  if test yes = "$with_gnu_ld"; then
10462	    # We only use this code for GNU lds that support --whole-archive.
10463	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10464	  else
10465	    # Exported symbols can be pulled into shared objects from archives
10466	    whole_archive_flag_spec='$convenience'
10467	  fi
10468	  archive_cmds_need_lc=yes
10469	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10470	  # -brtl affects multiple linker settings, -berok does not and is overridden later
10471	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10472	  if test svr4 != "$with_aix_soname"; then
10473	    # This is similar to how AIX traditionally builds its shared libraries.
10474	    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'
10475	  fi
10476	  if test aix != "$with_aix_soname"; then
10477	    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'
10478	  else
10479	    # used by -dlpreopen to get the symbols
10480	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10481	  fi
10482	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10483	fi
10484      fi
10485      ;;
10486
10487    amigaos*)
10488      case $host_cpu in
10489      powerpc)
10490            # see comment about AmigaOS4 .so support
10491            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10492            archive_expsym_cmds=''
10493        ;;
10494      m68k)
10495            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)'
10496            hardcode_libdir_flag_spec='-L$libdir'
10497            hardcode_minus_L=yes
10498        ;;
10499      esac
10500      ;;
10501
10502    bsdi[45]*)
10503      export_dynamic_flag_spec=-rdynamic
10504      ;;
10505
10506    cygwin* | mingw* | pw32* | cegcc*)
10507      # When not using gcc, we currently assume that we are using
10508      # Microsoft Visual C++ or Intel C++ Compiler.
10509      # hardcode_libdir_flag_spec is actually meaningless, as there is
10510      # no search path for DLLs.
10511      case $cc_basename in
10512      cl* | icl*)
10513	# Native MSVC or ICC
10514	hardcode_libdir_flag_spec=' '
10515	allow_undefined_flag=unsupported
10516	always_export_symbols=yes
10517	file_list_spec='@'
10518	# Tell ltmain to make .lib files, not .a files.
10519	libext=lib
10520	# Tell ltmain to make .dll files, not .so files.
10521	shrext_cmds=.dll
10522	# FIXME: Setting linknames here is a bad hack.
10523	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10524	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10525            cp "$export_symbols" "$output_objdir/$soname.def";
10526            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10527          else
10528            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10529          fi~
10530          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10531          linknames='
10532	# The linker will not automatically build a static lib if we build a DLL.
10533	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10534	enable_shared_with_static_runtimes=yes
10535	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10536	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10537	# Don't use ranlib
10538	old_postinstall_cmds='chmod 644 $oldlib'
10539	postlink_cmds='lt_outputfile="@OUTPUT@"~
10540          lt_tool_outputfile="@TOOL_OUTPUT@"~
10541          case $lt_outputfile in
10542            *.exe|*.EXE) ;;
10543            *)
10544              lt_outputfile=$lt_outputfile.exe
10545              lt_tool_outputfile=$lt_tool_outputfile.exe
10546              ;;
10547          esac~
10548          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10549            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10550            $RM "$lt_outputfile.manifest";
10551          fi'
10552	;;
10553      *)
10554	# Assume MSVC and ICC wrapper
10555	hardcode_libdir_flag_spec=' '
10556	allow_undefined_flag=unsupported
10557	# Tell ltmain to make .lib files, not .a files.
10558	libext=lib
10559	# Tell ltmain to make .dll files, not .so files.
10560	shrext_cmds=.dll
10561	# FIXME: Setting linknames here is a bad hack.
10562	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10563	# The linker will automatically build a .lib file if we build a DLL.
10564	old_archive_from_new_cmds='true'
10565	# FIXME: Should let the user specify the lib program.
10566	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10567	enable_shared_with_static_runtimes=yes
10568	;;
10569      esac
10570      ;;
10571
10572    darwin* | rhapsody*)
10573
10574
10575  archive_cmds_need_lc=no
10576  hardcode_direct=no
10577  hardcode_automatic=yes
10578  hardcode_shlibpath_var=unsupported
10579  if test yes = "$lt_cv_ld_force_load"; then
10580    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\"`'
10581
10582  else
10583    whole_archive_flag_spec=''
10584  fi
10585  link_all_deplibs=yes
10586  allow_undefined_flag=$_lt_dar_allow_undefined
10587  case $cc_basename in
10588     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10589     *) _lt_dar_can_shared=$GCC ;;
10590  esac
10591  if test yes = "$_lt_dar_can_shared"; then
10592    output_verbose_link_cmd=func_echo_all
10593    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10594    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10595    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"
10596    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"
10597
10598  else
10599  ld_shlibs=no
10600  fi
10601
10602      ;;
10603
10604    dgux*)
10605      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10606      hardcode_libdir_flag_spec='-L$libdir'
10607      hardcode_shlibpath_var=no
10608      ;;
10609
10610    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10611    # support.  Future versions do this automatically, but an explicit c++rt0.o
10612    # does not break anything, and helps significantly (at the cost of a little
10613    # extra space).
10614    freebsd2.2*)
10615      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10616      hardcode_libdir_flag_spec='-R$libdir'
10617      hardcode_direct=yes
10618      hardcode_shlibpath_var=no
10619      ;;
10620
10621    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10622    freebsd2.*)
10623      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10624      hardcode_direct=yes
10625      hardcode_minus_L=yes
10626      hardcode_shlibpath_var=no
10627      ;;
10628
10629    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10630    freebsd* | dragonfly* | midnightbsd*)
10631      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10632      hardcode_libdir_flag_spec='-R$libdir'
10633      hardcode_direct=yes
10634      hardcode_shlibpath_var=no
10635      ;;
10636
10637    hpux9*)
10638      if test yes = "$GCC"; then
10639	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'
10640      else
10641	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'
10642      fi
10643      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10644      hardcode_libdir_separator=:
10645      hardcode_direct=yes
10646
10647      # hardcode_minus_L: Not really in the search PATH,
10648      # but as the default location of the library.
10649      hardcode_minus_L=yes
10650      export_dynamic_flag_spec='$wl-E'
10651      ;;
10652
10653    hpux10*)
10654      if test yes,no = "$GCC,$with_gnu_ld"; then
10655	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10656      else
10657	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10658      fi
10659      if test no = "$with_gnu_ld"; then
10660	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10661	hardcode_libdir_separator=:
10662	hardcode_direct=yes
10663	hardcode_direct_absolute=yes
10664	export_dynamic_flag_spec='$wl-E'
10665	# hardcode_minus_L: Not really in the search PATH,
10666	# but as the default location of the library.
10667	hardcode_minus_L=yes
10668      fi
10669      ;;
10670
10671    hpux11*)
10672      if test yes,no = "$GCC,$with_gnu_ld"; then
10673	case $host_cpu in
10674	hppa*64*)
10675	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10676	  ;;
10677	ia64*)
10678	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10679	  ;;
10680	*)
10681	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10682	  ;;
10683	esac
10684      else
10685	case $host_cpu in
10686	hppa*64*)
10687	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10688	  ;;
10689	ia64*)
10690	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10691	  ;;
10692	*)
10693
10694	  # Older versions of the 11.00 compiler do not understand -b yet
10695	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10696	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10697printf %s "checking if $CC understands -b... " >&6; }
10698if test ${lt_cv_prog_compiler__b+y}
10699then :
10700  printf %s "(cached) " >&6
10701else case e in #(
10702  e) lt_cv_prog_compiler__b=no
10703   save_LDFLAGS=$LDFLAGS
10704   LDFLAGS="$LDFLAGS -b"
10705   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10706   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10707     # The linker can only warn and ignore the option if not recognized
10708     # So say no if there are warnings
10709     if test -s conftest.err; then
10710       # Append any errors to the config.log.
10711       cat conftest.err 1>&5
10712       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10713       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10714       if diff conftest.exp conftest.er2 >/dev/null; then
10715         lt_cv_prog_compiler__b=yes
10716       fi
10717     else
10718       lt_cv_prog_compiler__b=yes
10719     fi
10720   fi
10721   $RM -r conftest*
10722   LDFLAGS=$save_LDFLAGS
10723 ;;
10724esac
10725fi
10726{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10727printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10728
10729if test yes = "$lt_cv_prog_compiler__b"; then
10730    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10731else
10732    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10733fi
10734
10735	  ;;
10736	esac
10737      fi
10738      if test no = "$with_gnu_ld"; then
10739	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10740	hardcode_libdir_separator=:
10741
10742	case $host_cpu in
10743	hppa*64*|ia64*)
10744	  hardcode_direct=no
10745	  hardcode_shlibpath_var=no
10746	  ;;
10747	*)
10748	  hardcode_direct=yes
10749	  hardcode_direct_absolute=yes
10750	  export_dynamic_flag_spec='$wl-E'
10751
10752	  # hardcode_minus_L: Not really in the search PATH,
10753	  # but as the default location of the library.
10754	  hardcode_minus_L=yes
10755	  ;;
10756	esac
10757      fi
10758      ;;
10759
10760    irix5* | irix6* | nonstopux*)
10761      if test yes = "$GCC"; then
10762	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'
10763	# Try to use the -exported_symbol ld option, if it does not
10764	# work, assume that -exports_file does not work either and
10765	# implicitly export all symbols.
10766	# This should be the same for all languages, so no per-tag cache variable.
10767	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10768printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10769if test ${lt_cv_irix_exported_symbol+y}
10770then :
10771  printf %s "(cached) " >&6
10772else case e in #(
10773  e) save_LDFLAGS=$LDFLAGS
10774	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10775	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10776/* end confdefs.h.  */
10777int foo (void) { return 0; }
10778_ACEOF
10779if ac_fn_c_try_link "$LINENO"
10780then :
10781  lt_cv_irix_exported_symbol=yes
10782else case e in #(
10783  e) lt_cv_irix_exported_symbol=no ;;
10784esac
10785fi
10786rm -f core conftest.err conftest.$ac_objext conftest.beam \
10787    conftest$ac_exeext conftest.$ac_ext
10788           LDFLAGS=$save_LDFLAGS ;;
10789esac
10790fi
10791{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10792printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
10793	if test yes = "$lt_cv_irix_exported_symbol"; then
10794          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'
10795	fi
10796      else
10797	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'
10798	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'
10799      fi
10800      archive_cmds_need_lc='no'
10801      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10802      hardcode_libdir_separator=:
10803      inherit_rpath=yes
10804      link_all_deplibs=yes
10805      ;;
10806
10807    linux*)
10808      case $cc_basename in
10809      tcc*)
10810	# Fabrice Bellard et al's Tiny C Compiler
10811	ld_shlibs=yes
10812	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10813	;;
10814      esac
10815      ;;
10816
10817    netbsd*)
10818      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10819	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10820      else
10821	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10822      fi
10823      hardcode_libdir_flag_spec='-R$libdir'
10824      hardcode_direct=yes
10825      hardcode_shlibpath_var=no
10826      ;;
10827
10828    newsos6)
10829      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10830      hardcode_direct=yes
10831      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10832      hardcode_libdir_separator=:
10833      hardcode_shlibpath_var=no
10834      ;;
10835
10836    *nto* | *qnx*)
10837      ;;
10838
10839    openbsd* | bitrig*)
10840      if test -f /usr/libexec/ld.so; then
10841	hardcode_direct=yes
10842	hardcode_shlibpath_var=no
10843	hardcode_direct_absolute=yes
10844	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10845	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10846	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10847	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10848	  export_dynamic_flag_spec='$wl-E'
10849	else
10850	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10851	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10852	fi
10853      else
10854	ld_shlibs=no
10855      fi
10856      ;;
10857
10858    os2*)
10859      hardcode_libdir_flag_spec='-L$libdir'
10860      hardcode_minus_L=yes
10861      allow_undefined_flag=unsupported
10862      shrext_cmds=.dll
10863      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10864	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10865	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10866	$ECHO EXPORTS >> $output_objdir/$libname.def~
10867	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10868	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10869	emximp -o $lib $output_objdir/$libname.def'
10870      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10871	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10872	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10873	$ECHO EXPORTS >> $output_objdir/$libname.def~
10874	prefix_cmds="$SED"~
10875	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10876	  prefix_cmds="$prefix_cmds -e 1d";
10877	fi~
10878	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10879	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10880	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10881	emximp -o $lib $output_objdir/$libname.def'
10882      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10883      enable_shared_with_static_runtimes=yes
10884      file_list_spec='@'
10885      ;;
10886
10887    osf3*)
10888      if test yes = "$GCC"; then
10889	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10890	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'
10891      else
10892	allow_undefined_flag=' -expect_unresolved \*'
10893	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'
10894      fi
10895      archive_cmds_need_lc='no'
10896      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10897      hardcode_libdir_separator=:
10898      ;;
10899
10900    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10901      if test yes = "$GCC"; then
10902	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10903	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'
10904	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10905      else
10906	allow_undefined_flag=' -expect_unresolved \*'
10907	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'
10908	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~
10909          $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'
10910
10911	# Both c and cxx compiler support -rpath directly
10912	hardcode_libdir_flag_spec='-rpath $libdir'
10913      fi
10914      archive_cmds_need_lc='no'
10915      hardcode_libdir_separator=:
10916      ;;
10917
10918    solaris*)
10919      no_undefined_flag=' -z defs'
10920      if test yes = "$GCC"; then
10921	wlarc='$wl'
10922	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10923	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10924          $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'
10925      else
10926	case `$CC -V 2>&1` in
10927	*"Compilers 5.0"*)
10928	  wlarc=''
10929	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10930	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10931            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10932	  ;;
10933	*)
10934	  wlarc='$wl'
10935	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10936	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10937            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10938	  ;;
10939	esac
10940      fi
10941      hardcode_libdir_flag_spec='-R$libdir'
10942      hardcode_shlibpath_var=no
10943      case $host_os in
10944      solaris2.[0-5] | solaris2.[0-5].*) ;;
10945      *)
10946	# The compiler driver will combine and reorder linker options,
10947	# but understands '-z linker_flag'.  GCC discards it without '$wl',
10948	# but is careful enough not to reorder.
10949	# Supported since Solaris 2.6 (maybe 2.5.1?)
10950	if test yes = "$GCC"; then
10951	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10952	else
10953	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10954	fi
10955	;;
10956      esac
10957      link_all_deplibs=yes
10958      ;;
10959
10960    sunos4*)
10961      if test sequent = "$host_vendor"; then
10962	# Use $CC to link under sequent, because it throws in some extra .o
10963	# files that make .init and .fini sections work.
10964	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10965      else
10966	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10967      fi
10968      hardcode_libdir_flag_spec='-L$libdir'
10969      hardcode_direct=yes
10970      hardcode_minus_L=yes
10971      hardcode_shlibpath_var=no
10972      ;;
10973
10974    sysv4)
10975      case $host_vendor in
10976	sni)
10977	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10978	  hardcode_direct=yes # is this really true???
10979	;;
10980	siemens)
10981	  ## LD is ld it makes a PLAMLIB
10982	  ## CC just makes a GrossModule.
10983	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10984	  reload_cmds='$CC -r -o $output$reload_objs'
10985	  hardcode_direct=no
10986        ;;
10987	motorola)
10988	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10989	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10990	;;
10991      esac
10992      runpath_var='LD_RUN_PATH'
10993      hardcode_shlibpath_var=no
10994      ;;
10995
10996    sysv4.3*)
10997      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10998      hardcode_shlibpath_var=no
10999      export_dynamic_flag_spec='-Bexport'
11000      ;;
11001
11002    sysv4*MP*)
11003      if test -d /usr/nec; then
11004	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11005	hardcode_shlibpath_var=no
11006	runpath_var=LD_RUN_PATH
11007	hardcode_runpath_var=yes
11008	ld_shlibs=yes
11009      fi
11010      ;;
11011
11012    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11013      no_undefined_flag='$wl-z,text'
11014      archive_cmds_need_lc=no
11015      hardcode_shlibpath_var=no
11016      runpath_var='LD_RUN_PATH'
11017
11018      if test yes = "$GCC"; then
11019	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11020	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11021      else
11022	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11023	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11024      fi
11025      ;;
11026
11027    sysv5* | sco3.2v5* | sco5v6*)
11028      # Note: We CANNOT use -z defs as we might desire, because we do not
11029      # link with -lc, and that would cause any symbols used from libc to
11030      # always be unresolved, which means just about no library would
11031      # ever link correctly.  If we're not using GNU ld we use -z text
11032      # though, which does catch some bad symbols but isn't as heavy-handed
11033      # as -z defs.
11034      no_undefined_flag='$wl-z,text'
11035      allow_undefined_flag='$wl-z,nodefs'
11036      archive_cmds_need_lc=no
11037      hardcode_shlibpath_var=no
11038      hardcode_libdir_flag_spec='$wl-R,$libdir'
11039      hardcode_libdir_separator=':'
11040      link_all_deplibs=yes
11041      export_dynamic_flag_spec='$wl-Bexport'
11042      runpath_var='LD_RUN_PATH'
11043
11044      if test yes = "$GCC"; then
11045	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11046	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11047      else
11048	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11049	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11050      fi
11051      ;;
11052
11053    uts4*)
11054      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11055      hardcode_libdir_flag_spec='-L$libdir'
11056      hardcode_shlibpath_var=no
11057      ;;
11058
11059    *)
11060      ld_shlibs=no
11061      ;;
11062    esac
11063
11064    if test sni = "$host_vendor"; then
11065      case $host in
11066      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11067	export_dynamic_flag_spec='$wl-Blargedynsym'
11068	;;
11069      esac
11070    fi
11071  fi
11072
11073{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11074printf "%s\n" "$ld_shlibs" >&6; }
11075test no = "$ld_shlibs" && can_build_shared=no
11076
11077with_gnu_ld=$with_gnu_ld
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093#
11094# Do we need to explicitly link libc?
11095#
11096case "x$archive_cmds_need_lc" in
11097x|xyes)
11098  # Assume -lc should be added
11099  archive_cmds_need_lc=yes
11100
11101  if test yes,yes = "$GCC,$enable_shared"; then
11102    case $archive_cmds in
11103    *'~'*)
11104      # FIXME: we may have to deal with multi-command sequences.
11105      ;;
11106    '$CC '*)
11107      # Test whether the compiler implicitly links with -lc since on some
11108      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11109      # to ld, don't add -lc before -lgcc.
11110      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11111printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11112if test ${lt_cv_archive_cmds_need_lc+y}
11113then :
11114  printf %s "(cached) " >&6
11115else case e in #(
11116  e) $RM conftest*
11117	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11118
11119	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11120  (eval $ac_compile) 2>&5
11121  ac_status=$?
11122  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11123  test $ac_status = 0; } 2>conftest.err; then
11124	  soname=conftest
11125	  lib=conftest
11126	  libobjs=conftest.$ac_objext
11127	  deplibs=
11128	  wl=$lt_prog_compiler_wl
11129	  pic_flag=$lt_prog_compiler_pic
11130	  compiler_flags=-v
11131	  linker_flags=-v
11132	  verstring=
11133	  output_objdir=.
11134	  libname=conftest
11135	  lt_save_allow_undefined_flag=$allow_undefined_flag
11136	  allow_undefined_flag=
11137	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11138  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11139  ac_status=$?
11140  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11141  test $ac_status = 0; }
11142	  then
11143	    lt_cv_archive_cmds_need_lc=no
11144	  else
11145	    lt_cv_archive_cmds_need_lc=yes
11146	  fi
11147	  allow_undefined_flag=$lt_save_allow_undefined_flag
11148	else
11149	  cat conftest.err 1>&5
11150	fi
11151	$RM conftest*
11152	 ;;
11153esac
11154fi
11155{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11156printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11157      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11158      ;;
11159    esac
11160  fi
11161  ;;
11162esac
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11316printf %s "checking dynamic linker characteristics... " >&6; }
11317
11318if test yes = "$GCC"; then
11319  case $host_os in
11320    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11321    *) lt_awk_arg='/^libraries:/' ;;
11322  esac
11323  case $host_os in
11324    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11325    *) lt_sed_strip_eq='s|=/|/|g' ;;
11326  esac
11327  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11328  case $lt_search_path_spec in
11329  *\;*)
11330    # if the path contains ";" then we assume it to be the separator
11331    # otherwise default to the standard path separator (i.e. ":") - it is
11332    # assumed that no part of a normal pathname contains ";" but that should
11333    # okay in the real world where ";" in dirpaths is itself problematic.
11334    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11335    ;;
11336  *)
11337    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11338    ;;
11339  esac
11340  # Ok, now we have the path, separated by spaces, we can step through it
11341  # and add multilib dir if necessary...
11342  lt_tmp_lt_search_path_spec=
11343  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11344  # ...but if some path component already ends with the multilib dir we assume
11345  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11346  case "$lt_multi_os_dir; $lt_search_path_spec " in
11347  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11348    lt_multi_os_dir=
11349    ;;
11350  esac
11351  for lt_sys_path in $lt_search_path_spec; do
11352    if test -d "$lt_sys_path$lt_multi_os_dir"; then
11353      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11354    elif test -n "$lt_multi_os_dir"; then
11355      test -d "$lt_sys_path" && \
11356	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11357    fi
11358  done
11359  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11360BEGIN {RS = " "; FS = "/|\n";} {
11361  lt_foo = "";
11362  lt_count = 0;
11363  for (lt_i = NF; lt_i > 0; lt_i--) {
11364    if ($lt_i != "" && $lt_i != ".") {
11365      if ($lt_i == "..") {
11366        lt_count++;
11367      } else {
11368        if (lt_count == 0) {
11369          lt_foo = "/" $lt_i lt_foo;
11370        } else {
11371          lt_count--;
11372        }
11373      }
11374    }
11375  }
11376  if (lt_foo != "") { lt_freq[lt_foo]++; }
11377  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11378}'`
11379  # AWK program above erroneously prepends '/' to C:/dos/paths
11380  # for these hosts.
11381  case $host_os in
11382    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11383      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11384  esac
11385  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11386else
11387  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11388fi
11389library_names_spec=
11390libname_spec='lib$name'
11391soname_spec=
11392shrext_cmds=.so
11393postinstall_cmds=
11394postuninstall_cmds=
11395finish_cmds=
11396finish_eval=
11397shlibpath_var=
11398shlibpath_overrides_runpath=unknown
11399version_type=none
11400dynamic_linker="$host_os ld.so"
11401sys_lib_dlsearch_path_spec="/lib /usr/lib"
11402need_lib_prefix=unknown
11403hardcode_into_libs=no
11404
11405# when you set need_version to no, make sure it does not cause -set_version
11406# flags to be left without arguments
11407need_version=unknown
11408
11409
11410
11411case $host_os in
11412aix3*)
11413  version_type=linux # correct to gnu/linux during the next big refactor
11414  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11415  shlibpath_var=LIBPATH
11416
11417  # AIX 3 has no versioning support, so we append a major version to the name.
11418  soname_spec='$libname$release$shared_ext$major'
11419  ;;
11420
11421aix[4-9]*)
11422  version_type=linux # correct to gnu/linux during the next big refactor
11423  need_lib_prefix=no
11424  need_version=no
11425  hardcode_into_libs=yes
11426  if test ia64 = "$host_cpu"; then
11427    # AIX 5 supports IA64
11428    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11429    shlibpath_var=LD_LIBRARY_PATH
11430  else
11431    # With GCC up to 2.95.x, collect2 would create an import file
11432    # for dependence libraries.  The import file would start with
11433    # the line '#! .'.  This would cause the generated library to
11434    # depend on '.', always an invalid library.  This was fixed in
11435    # development snapshots of GCC prior to 3.0.
11436    case $host_os in
11437      aix4 | aix4.[01] | aix4.[01].*)
11438      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11439	   echo ' yes '
11440	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11441	:
11442      else
11443	can_build_shared=no
11444      fi
11445      ;;
11446    esac
11447    # Using Import Files as archive members, it is possible to support
11448    # filename-based versioning of shared library archives on AIX. While
11449    # this would work for both with and without runtime linking, it will
11450    # prevent static linking of such archives. So we do filename-based
11451    # shared library versioning with .so extension only, which is used
11452    # when both runtime linking and shared linking is enabled.
11453    # Unfortunately, runtime linking may impact performance, so we do
11454    # not want this to be the default eventually. Also, we use the
11455    # versioned .so libs for executables only if there is the -brtl
11456    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11457    # To allow for filename-based versioning support, we need to create
11458    # libNAME.so.V as an archive file, containing:
11459    # *) an Import File, referring to the versioned filename of the
11460    #    archive as well as the shared archive member, telling the
11461    #    bitwidth (32 or 64) of that shared object, and providing the
11462    #    list of exported symbols of that shared object, eventually
11463    #    decorated with the 'weak' keyword
11464    # *) the shared object with the F_LOADONLY flag set, to really avoid
11465    #    it being seen by the linker.
11466    # At run time we better use the real file rather than another symlink,
11467    # but for link time we create the symlink libNAME.so -> libNAME.so.V
11468
11469    case $with_aix_soname,$aix_use_runtimelinking in
11470    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11471    # soname into executable. Probably we can add versioning support to
11472    # collect2, so additional links can be useful in future.
11473    aix,yes) # traditional libtool
11474      dynamic_linker='AIX unversionable lib.so'
11475      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11476      # instead of lib<name>.a to let people know that these are not
11477      # typical AIX shared libraries.
11478      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11479      ;;
11480    aix,no) # traditional AIX only
11481      dynamic_linker='AIX lib.a(lib.so.V)'
11482      # We preserve .a as extension for shared libraries through AIX4.2
11483      # and later when we are not doing run time linking.
11484      library_names_spec='$libname$release.a $libname.a'
11485      soname_spec='$libname$release$shared_ext$major'
11486      ;;
11487    svr4,*) # full svr4 only
11488      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11489      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11490      # We do not specify a path in Import Files, so LIBPATH fires.
11491      shlibpath_overrides_runpath=yes
11492      ;;
11493    *,yes) # both, prefer svr4
11494      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11495      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11496      # unpreferred sharedlib libNAME.a needs extra handling
11497      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"'
11498      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"'
11499      # We do not specify a path in Import Files, so LIBPATH fires.
11500      shlibpath_overrides_runpath=yes
11501      ;;
11502    *,no) # both, prefer aix
11503      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11504      library_names_spec='$libname$release.a $libname.a'
11505      soname_spec='$libname$release$shared_ext$major'
11506      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11507      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)'
11508      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"'
11509      ;;
11510    esac
11511    shlibpath_var=LIBPATH
11512  fi
11513  ;;
11514
11515amigaos*)
11516  case $host_cpu in
11517  powerpc)
11518    # Since July 2007 AmigaOS4 officially supports .so libraries.
11519    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11520    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11521    ;;
11522  m68k)
11523    library_names_spec='$libname.ixlibrary $libname.a'
11524    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11525    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'
11526    ;;
11527  esac
11528  ;;
11529
11530beos*)
11531  library_names_spec='$libname$shared_ext'
11532  dynamic_linker="$host_os ld.so"
11533  shlibpath_var=LIBRARY_PATH
11534  ;;
11535
11536bsdi[45]*)
11537  version_type=linux # correct to gnu/linux during the next big refactor
11538  need_version=no
11539  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11540  soname_spec='$libname$release$shared_ext$major'
11541  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11542  shlibpath_var=LD_LIBRARY_PATH
11543  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11544  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11545  # the default ld.so.conf also contains /usr/contrib/lib and
11546  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11547  # libtool to hard-code these into programs
11548  ;;
11549
11550cygwin* | mingw* | pw32* | cegcc*)
11551  version_type=windows
11552  shrext_cmds=.dll
11553  need_version=no
11554  need_lib_prefix=no
11555
11556  case $GCC,$cc_basename in
11557  yes,*)
11558    # gcc
11559    library_names_spec='$libname.dll.a'
11560    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11561    postinstall_cmds='base_file=`basename \$file`~
11562      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11563      dldir=$destdir/`dirname \$dlpath`~
11564      test -d \$dldir || mkdir -p \$dldir~
11565      $install_prog $dir/$dlname \$dldir/$dlname~
11566      chmod a+x \$dldir/$dlname~
11567      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11568        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11569      fi'
11570    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11571      dlpath=$dir/\$dldll~
11572       $RM \$dlpath'
11573    shlibpath_overrides_runpath=yes
11574
11575    case $host_os in
11576    cygwin*)
11577      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11578      soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11579
11580      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11581      ;;
11582    mingw* | cegcc*)
11583      # MinGW DLLs use traditional 'lib' prefix
11584      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11585      ;;
11586    pw32*)
11587      # pw32 DLLs use 'pw' prefix rather than 'lib'
11588      library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11589      ;;
11590    esac
11591    dynamic_linker='Win32 ld.exe'
11592    ;;
11593
11594  *,cl* | *,icl*)
11595    # Native MSVC or ICC
11596    libname_spec='$name'
11597    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11598    library_names_spec='$libname.dll.lib'
11599
11600    case $build_os in
11601    mingw*)
11602      sys_lib_search_path_spec=
11603      lt_save_ifs=$IFS
11604      IFS=';'
11605      for lt_path in $LIB
11606      do
11607        IFS=$lt_save_ifs
11608        # Let DOS variable expansion print the short 8.3 style file name.
11609        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11610        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11611      done
11612      IFS=$lt_save_ifs
11613      # Convert to MSYS style.
11614      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11615      ;;
11616    cygwin*)
11617      # Convert to unix form, then to dos form, then back to unix form
11618      # but this time dos style (no spaces!) so that the unix form looks
11619      # like /cygdrive/c/PROGRA~1:/cygdr...
11620      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11621      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11622      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11623      ;;
11624    *)
11625      sys_lib_search_path_spec=$LIB
11626      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11627        # It is most probably a Windows format PATH.
11628        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11629      else
11630        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11631      fi
11632      # FIXME: find the short name or the path components, as spaces are
11633      # common. (e.g. "Program Files" -> "PROGRA~1")
11634      ;;
11635    esac
11636
11637    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11638    postinstall_cmds='base_file=`basename \$file`~
11639      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11640      dldir=$destdir/`dirname \$dlpath`~
11641      test -d \$dldir || mkdir -p \$dldir~
11642      $install_prog $dir/$dlname \$dldir/$dlname'
11643    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11644      dlpath=$dir/\$dldll~
11645       $RM \$dlpath'
11646    shlibpath_overrides_runpath=yes
11647    dynamic_linker='Win32 link.exe'
11648    ;;
11649
11650  *)
11651    # Assume MSVC and ICC wrapper
11652    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11653    dynamic_linker='Win32 ld.exe'
11654    ;;
11655  esac
11656  # FIXME: first we should search . and the directory the executable is in
11657  shlibpath_var=PATH
11658  ;;
11659
11660darwin* | rhapsody*)
11661  dynamic_linker="$host_os dyld"
11662  version_type=darwin
11663  need_lib_prefix=no
11664  need_version=no
11665  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11666  soname_spec='$libname$release$major$shared_ext'
11667  shlibpath_overrides_runpath=yes
11668  shlibpath_var=DYLD_LIBRARY_PATH
11669  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11670
11671  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11672  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11673  ;;
11674
11675dgux*)
11676  version_type=linux # correct to gnu/linux during the next big refactor
11677  need_lib_prefix=no
11678  need_version=no
11679  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11680  soname_spec='$libname$release$shared_ext$major'
11681  shlibpath_var=LD_LIBRARY_PATH
11682  ;;
11683
11684freebsd* | dragonfly* | midnightbsd*)
11685  # DragonFly does not have aout.  When/if they implement a new
11686  # versioning mechanism, adjust this.
11687  if test -x /usr/bin/objformat; then
11688    objformat=`/usr/bin/objformat`
11689  else
11690    case $host_os in
11691    freebsd[23].*) objformat=aout ;;
11692    *) objformat=elf ;;
11693    esac
11694  fi
11695  version_type=freebsd-$objformat
11696  case $version_type in
11697    freebsd-elf*)
11698      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11699      soname_spec='$libname$release$shared_ext$major'
11700      need_version=no
11701      need_lib_prefix=no
11702      ;;
11703    freebsd-*)
11704      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11705      need_version=yes
11706      ;;
11707  esac
11708  shlibpath_var=LD_LIBRARY_PATH
11709  case $host_os in
11710  freebsd2.*)
11711    shlibpath_overrides_runpath=yes
11712    ;;
11713  freebsd3.[01]* | freebsdelf3.[01]*)
11714    shlibpath_overrides_runpath=yes
11715    hardcode_into_libs=yes
11716    ;;
11717  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11718  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11719    shlibpath_overrides_runpath=no
11720    hardcode_into_libs=yes
11721    ;;
11722  *) # from 4.6 on, and DragonFly
11723    shlibpath_overrides_runpath=yes
11724    hardcode_into_libs=yes
11725    ;;
11726  esac
11727  ;;
11728
11729haiku*)
11730  version_type=linux # correct to gnu/linux during the next big refactor
11731  need_lib_prefix=no
11732  need_version=no
11733  dynamic_linker="$host_os runtime_loader"
11734  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11735  soname_spec='$libname$release$shared_ext$major'
11736  shlibpath_var=LIBRARY_PATH
11737  shlibpath_overrides_runpath=no
11738  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11739  hardcode_into_libs=yes
11740  ;;
11741
11742hpux9* | hpux10* | hpux11*)
11743  # Give a soname corresponding to the major version so that dld.sl refuses to
11744  # link against other versions.
11745  version_type=sunos
11746  need_lib_prefix=no
11747  need_version=no
11748  case $host_cpu in
11749  ia64*)
11750    shrext_cmds='.so'
11751    hardcode_into_libs=yes
11752    dynamic_linker="$host_os dld.so"
11753    shlibpath_var=LD_LIBRARY_PATH
11754    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11755    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11756    soname_spec='$libname$release$shared_ext$major'
11757    if test 32 = "$HPUX_IA64_MODE"; then
11758      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11759      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11760    else
11761      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11762      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11763    fi
11764    ;;
11765  hppa*64*)
11766    shrext_cmds='.sl'
11767    hardcode_into_libs=yes
11768    dynamic_linker="$host_os dld.sl"
11769    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11770    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11771    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11772    soname_spec='$libname$release$shared_ext$major'
11773    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11774    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11775    ;;
11776  *)
11777    shrext_cmds='.sl'
11778    dynamic_linker="$host_os dld.sl"
11779    shlibpath_var=SHLIB_PATH
11780    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11781    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11782    soname_spec='$libname$release$shared_ext$major'
11783    ;;
11784  esac
11785  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11786  postinstall_cmds='chmod 555 $lib'
11787  # or fails outright, so override atomically:
11788  install_override_mode=555
11789  ;;
11790
11791interix[3-9]*)
11792  version_type=linux # correct to gnu/linux during the next big refactor
11793  need_lib_prefix=no
11794  need_version=no
11795  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11796  soname_spec='$libname$release$shared_ext$major'
11797  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11798  shlibpath_var=LD_LIBRARY_PATH
11799  shlibpath_overrides_runpath=no
11800  hardcode_into_libs=yes
11801  ;;
11802
11803irix5* | irix6* | nonstopux*)
11804  case $host_os in
11805    nonstopux*) version_type=nonstopux ;;
11806    *)
11807	if test yes = "$lt_cv_prog_gnu_ld"; then
11808		version_type=linux # correct to gnu/linux during the next big refactor
11809	else
11810		version_type=irix
11811	fi ;;
11812  esac
11813  need_lib_prefix=no
11814  need_version=no
11815  soname_spec='$libname$release$shared_ext$major'
11816  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11817  case $host_os in
11818  irix5* | nonstopux*)
11819    libsuff= shlibsuff=
11820    ;;
11821  *)
11822    case $LD in # libtool.m4 will add one of these switches to LD
11823    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11824      libsuff= shlibsuff= libmagic=32-bit;;
11825    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11826      libsuff=32 shlibsuff=N32 libmagic=N32;;
11827    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11828      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11829    *) libsuff= shlibsuff= libmagic=never-match;;
11830    esac
11831    ;;
11832  esac
11833  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11834  shlibpath_overrides_runpath=no
11835  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11836  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11837  hardcode_into_libs=yes
11838  ;;
11839
11840# No shared lib support for Linux oldld, aout, or coff.
11841linux*oldld* | linux*aout* | linux*coff*)
11842  dynamic_linker=no
11843  ;;
11844
11845linux*android*)
11846  version_type=none # Android doesn't support versioned libraries.
11847  need_lib_prefix=no
11848  need_version=no
11849  library_names_spec='$libname$release$shared_ext'
11850  soname_spec='$libname$release$shared_ext'
11851  finish_cmds=
11852  shlibpath_var=LD_LIBRARY_PATH
11853  shlibpath_overrides_runpath=yes
11854
11855  # This implies no fast_install, which is unacceptable.
11856  # Some rework will be needed to allow for fast_install
11857  # before this can be enabled.
11858  hardcode_into_libs=yes
11859
11860  dynamic_linker='Android linker'
11861  # Don't embed -rpath directories since the linker doesn't support them.
11862  hardcode_libdir_flag_spec='-L$libdir'
11863  ;;
11864
11865# This must be glibc/ELF.
11866linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11867  version_type=linux # correct to gnu/linux during the next big refactor
11868  need_lib_prefix=no
11869  need_version=no
11870  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11871  soname_spec='$libname$release$shared_ext$major'
11872  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11873  shlibpath_var=LD_LIBRARY_PATH
11874  shlibpath_overrides_runpath=no
11875
11876  # Some binutils ld are patched to set DT_RUNPATH
11877  if test ${lt_cv_shlibpath_overrides_runpath+y}
11878then :
11879  printf %s "(cached) " >&6
11880else case e in #(
11881  e) lt_cv_shlibpath_overrides_runpath=no
11882    save_LDFLAGS=$LDFLAGS
11883    save_libdir=$libdir
11884    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11885	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11886    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11887/* end confdefs.h.  */
11888
11889int
11890main (void)
11891{
11892
11893  ;
11894  return 0;
11895}
11896_ACEOF
11897if ac_fn_c_try_link "$LINENO"
11898then :
11899  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
11900then :
11901  lt_cv_shlibpath_overrides_runpath=yes
11902fi
11903fi
11904rm -f core conftest.err conftest.$ac_objext conftest.beam \
11905    conftest$ac_exeext conftest.$ac_ext
11906    LDFLAGS=$save_LDFLAGS
11907    libdir=$save_libdir
11908     ;;
11909esac
11910fi
11911
11912  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11913
11914  # This implies no fast_install, which is unacceptable.
11915  # Some rework will be needed to allow for fast_install
11916  # before this can be enabled.
11917  hardcode_into_libs=yes
11918
11919  # Ideally, we could use ldconfig to report *all* directores which are
11920  # searched for libraries, however this is still not possible.  Aside from not
11921  # being certain /sbin/ldconfig is available, command
11922  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11923  # even though it is searched at run-time.  Try to do the best guess by
11924  # appending ld.so.conf contents (and includes) to the search path.
11925  if test -f /etc/ld.so.conf; then
11926    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' ' '`
11927    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11928  fi
11929
11930  # We used to test for /lib/ld.so.1 and disable shared libraries on
11931  # powerpc, because MkLinux only supported shared libraries with the
11932  # GNU dynamic linker.  Since this was broken with cross compilers,
11933  # most powerpc-linux boxes support dynamic linking these days and
11934  # people can always --disable-shared, the test was removed, and we
11935  # assume the GNU/Linux dynamic linker is in use.
11936  dynamic_linker='GNU/Linux ld.so'
11937  ;;
11938
11939netbsd*)
11940  version_type=sunos
11941  need_lib_prefix=no
11942  need_version=no
11943  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11944    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11945    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11946    dynamic_linker='NetBSD (a.out) ld.so'
11947  else
11948    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11949    soname_spec='$libname$release$shared_ext$major'
11950    dynamic_linker='NetBSD ld.elf_so'
11951  fi
11952  shlibpath_var=LD_LIBRARY_PATH
11953  shlibpath_overrides_runpath=yes
11954  hardcode_into_libs=yes
11955  ;;
11956
11957newsos6)
11958  version_type=linux # correct to gnu/linux during the next big refactor
11959  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11960  shlibpath_var=LD_LIBRARY_PATH
11961  shlibpath_overrides_runpath=yes
11962  ;;
11963
11964*nto* | *qnx*)
11965  version_type=qnx
11966  need_lib_prefix=no
11967  need_version=no
11968  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11969  soname_spec='$libname$release$shared_ext$major'
11970  shlibpath_var=LD_LIBRARY_PATH
11971  shlibpath_overrides_runpath=no
11972  hardcode_into_libs=yes
11973  dynamic_linker='ldqnx.so'
11974  ;;
11975
11976openbsd* | bitrig*)
11977  version_type=sunos
11978  sys_lib_dlsearch_path_spec=/usr/lib
11979  need_lib_prefix=no
11980  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11981    need_version=no
11982  else
11983    need_version=yes
11984  fi
11985  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11986  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11987  shlibpath_var=LD_LIBRARY_PATH
11988  shlibpath_overrides_runpath=yes
11989  ;;
11990
11991os2*)
11992  libname_spec='$name'
11993  version_type=windows
11994  shrext_cmds=.dll
11995  need_version=no
11996  need_lib_prefix=no
11997  # OS/2 can only load a DLL with a base name of 8 characters or less.
11998  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11999    v=$($ECHO $release$versuffix | tr -d .-);
12000    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12001    $ECHO $n$v`$shared_ext'
12002  library_names_spec='${libname}_dll.$libext'
12003  dynamic_linker='OS/2 ld.exe'
12004  shlibpath_var=BEGINLIBPATH
12005  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12006  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12007  postinstall_cmds='base_file=`basename \$file`~
12008    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12009    dldir=$destdir/`dirname \$dlpath`~
12010    test -d \$dldir || mkdir -p \$dldir~
12011    $install_prog $dir/$dlname \$dldir/$dlname~
12012    chmod a+x \$dldir/$dlname~
12013    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12014      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12015    fi'
12016  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12017    dlpath=$dir/\$dldll~
12018    $RM \$dlpath'
12019  ;;
12020
12021osf3* | osf4* | osf5*)
12022  version_type=osf
12023  need_lib_prefix=no
12024  need_version=no
12025  soname_spec='$libname$release$shared_ext$major'
12026  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12027  shlibpath_var=LD_LIBRARY_PATH
12028  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12029  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12030  ;;
12031
12032rdos*)
12033  dynamic_linker=no
12034  ;;
12035
12036solaris*)
12037  version_type=linux # correct to gnu/linux during the next big refactor
12038  need_lib_prefix=no
12039  need_version=no
12040  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12041  soname_spec='$libname$release$shared_ext$major'
12042  shlibpath_var=LD_LIBRARY_PATH
12043  shlibpath_overrides_runpath=yes
12044  hardcode_into_libs=yes
12045  # ldd complains unless libraries are executable
12046  postinstall_cmds='chmod +x $lib'
12047  ;;
12048
12049sunos4*)
12050  version_type=sunos
12051  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12052  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12053  shlibpath_var=LD_LIBRARY_PATH
12054  shlibpath_overrides_runpath=yes
12055  if test yes = "$with_gnu_ld"; then
12056    need_lib_prefix=no
12057  fi
12058  need_version=yes
12059  ;;
12060
12061sysv4 | sysv4.3*)
12062  version_type=linux # correct to gnu/linux during the next big refactor
12063  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12064  soname_spec='$libname$release$shared_ext$major'
12065  shlibpath_var=LD_LIBRARY_PATH
12066  case $host_vendor in
12067    sni)
12068      shlibpath_overrides_runpath=no
12069      need_lib_prefix=no
12070      runpath_var=LD_RUN_PATH
12071      ;;
12072    siemens)
12073      need_lib_prefix=no
12074      ;;
12075    motorola)
12076      need_lib_prefix=no
12077      need_version=no
12078      shlibpath_overrides_runpath=no
12079      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12080      ;;
12081  esac
12082  ;;
12083
12084sysv4*MP*)
12085  if test -d /usr/nec; then
12086    version_type=linux # correct to gnu/linux during the next big refactor
12087    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12088    soname_spec='$libname$shared_ext.$major'
12089    shlibpath_var=LD_LIBRARY_PATH
12090  fi
12091  ;;
12092
12093sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12094  version_type=sco
12095  need_lib_prefix=no
12096  need_version=no
12097  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12098  soname_spec='$libname$release$shared_ext$major'
12099  shlibpath_var=LD_LIBRARY_PATH
12100  shlibpath_overrides_runpath=yes
12101  hardcode_into_libs=yes
12102  if test yes = "$with_gnu_ld"; then
12103    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12104  else
12105    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12106    case $host_os in
12107      sco3.2v5*)
12108        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12109	;;
12110    esac
12111  fi
12112  sys_lib_dlsearch_path_spec='/usr/lib'
12113  ;;
12114
12115tpf*)
12116  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12117  version_type=linux # correct to gnu/linux during the next big refactor
12118  need_lib_prefix=no
12119  need_version=no
12120  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12121  shlibpath_var=LD_LIBRARY_PATH
12122  shlibpath_overrides_runpath=no
12123  hardcode_into_libs=yes
12124  ;;
12125
12126uts4*)
12127  version_type=linux # correct to gnu/linux during the next big refactor
12128  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12129  soname_spec='$libname$release$shared_ext$major'
12130  shlibpath_var=LD_LIBRARY_PATH
12131  ;;
12132
12133*)
12134  dynamic_linker=no
12135  ;;
12136esac
12137{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12138printf "%s\n" "$dynamic_linker" >&6; }
12139test no = "$dynamic_linker" && can_build_shared=no
12140
12141variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12142if test yes = "$GCC"; then
12143  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12144fi
12145
12146if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12147  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12148fi
12149
12150if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12151  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12152fi
12153
12154# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12155configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12156
12157# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12158func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12159
12160# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12161configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211
12212
12213
12214
12215
12216
12217
12218
12219
12220
12221
12222
12223
12224
12225
12226
12227
12228
12229
12230
12231
12232
12233
12234
12235
12236
12237
12238
12239
12240
12241
12242
12243
12244
12245
12246
12247
12248
12249
12250
12251
12252
12253
12254
12255
12256
12257
12258
12259  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12260printf %s "checking how to hardcode library paths into programs... " >&6; }
12261hardcode_action=
12262if test -n "$hardcode_libdir_flag_spec" ||
12263   test -n "$runpath_var" ||
12264   test yes = "$hardcode_automatic"; then
12265
12266  # We can hardcode non-existent directories.
12267  if test no != "$hardcode_direct" &&
12268     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12269     # have to relink, otherwise we might link with an installed library
12270     # when we should be linking with a yet-to-be-installed one
12271     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12272     test no != "$hardcode_minus_L"; then
12273    # Linking always hardcodes the temporary library directory.
12274    hardcode_action=relink
12275  else
12276    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12277    hardcode_action=immediate
12278  fi
12279else
12280  # We cannot hardcode anything, or else we can only hardcode existing
12281  # directories.
12282  hardcode_action=unsupported
12283fi
12284{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12285printf "%s\n" "$hardcode_action" >&6; }
12286
12287if test relink = "$hardcode_action" ||
12288   test yes = "$inherit_rpath"; then
12289  # Fast installation is not supported
12290  enable_fast_install=no
12291elif test yes = "$shlibpath_overrides_runpath" ||
12292     test no = "$enable_shared"; then
12293  # Fast installation is not necessary
12294  enable_fast_install=needless
12295fi
12296
12297
12298
12299
12300
12301
12302  if test yes != "$enable_dlopen"; then
12303  enable_dlopen=unknown
12304  enable_dlopen_self=unknown
12305  enable_dlopen_self_static=unknown
12306else
12307  lt_cv_dlopen=no
12308  lt_cv_dlopen_libs=
12309
12310  case $host_os in
12311  beos*)
12312    lt_cv_dlopen=load_add_on
12313    lt_cv_dlopen_libs=
12314    lt_cv_dlopen_self=yes
12315    ;;
12316
12317  mingw* | pw32* | cegcc*)
12318    lt_cv_dlopen=LoadLibrary
12319    lt_cv_dlopen_libs=
12320    ;;
12321
12322  cygwin*)
12323    lt_cv_dlopen=dlopen
12324    lt_cv_dlopen_libs=
12325    ;;
12326
12327  darwin*)
12328    # if libdl is installed we need to link against it
12329    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12330printf %s "checking for dlopen in -ldl... " >&6; }
12331if test ${ac_cv_lib_dl_dlopen+y}
12332then :
12333  printf %s "(cached) " >&6
12334else case e in #(
12335  e) ac_check_lib_save_LIBS=$LIBS
12336LIBS="-ldl  $LIBS"
12337cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12338/* end confdefs.h.  */
12339
12340/* Override any GCC internal prototype to avoid an error.
12341   Use char because int might match the return type of a GCC
12342   builtin and then its argument prototype would still apply.
12343   The 'extern "C"' is for builds by C++ compilers;
12344   although this is not generally supported in C code supporting it here
12345   has little cost and some practical benefit (sr 110532).  */
12346#ifdef __cplusplus
12347extern "C"
12348#endif
12349char dlopen (void);
12350int
12351main (void)
12352{
12353return dlopen ();
12354  ;
12355  return 0;
12356}
12357_ACEOF
12358if ac_fn_c_try_link "$LINENO"
12359then :
12360  ac_cv_lib_dl_dlopen=yes
12361else case e in #(
12362  e) ac_cv_lib_dl_dlopen=no ;;
12363esac
12364fi
12365rm -f core conftest.err conftest.$ac_objext conftest.beam \
12366    conftest$ac_exeext conftest.$ac_ext
12367LIBS=$ac_check_lib_save_LIBS ;;
12368esac
12369fi
12370{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12371printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12372if test "x$ac_cv_lib_dl_dlopen" = xyes
12373then :
12374  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12375else case e in #(
12376  e)
12377    lt_cv_dlopen=dyld
12378    lt_cv_dlopen_libs=
12379    lt_cv_dlopen_self=yes
12380     ;;
12381esac
12382fi
12383
12384    ;;
12385
12386  tpf*)
12387    # Don't try to run any link tests for TPF.  We know it's impossible
12388    # because TPF is a cross-compiler, and we know how we open DSOs.
12389    lt_cv_dlopen=dlopen
12390    lt_cv_dlopen_libs=
12391    lt_cv_dlopen_self=no
12392    ;;
12393
12394  *)
12395    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12396if test "x$ac_cv_func_shl_load" = xyes
12397then :
12398  lt_cv_dlopen=shl_load
12399else case e in #(
12400  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12401printf %s "checking for shl_load in -ldld... " >&6; }
12402if test ${ac_cv_lib_dld_shl_load+y}
12403then :
12404  printf %s "(cached) " >&6
12405else case e in #(
12406  e) ac_check_lib_save_LIBS=$LIBS
12407LIBS="-ldld  $LIBS"
12408cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12409/* end confdefs.h.  */
12410
12411/* Override any GCC internal prototype to avoid an error.
12412   Use char because int might match the return type of a GCC
12413   builtin and then its argument prototype would still apply.
12414   The 'extern "C"' is for builds by C++ compilers;
12415   although this is not generally supported in C code supporting it here
12416   has little cost and some practical benefit (sr 110532).  */
12417#ifdef __cplusplus
12418extern "C"
12419#endif
12420char shl_load (void);
12421int
12422main (void)
12423{
12424return shl_load ();
12425  ;
12426  return 0;
12427}
12428_ACEOF
12429if ac_fn_c_try_link "$LINENO"
12430then :
12431  ac_cv_lib_dld_shl_load=yes
12432else case e in #(
12433  e) ac_cv_lib_dld_shl_load=no ;;
12434esac
12435fi
12436rm -f core conftest.err conftest.$ac_objext conftest.beam \
12437    conftest$ac_exeext conftest.$ac_ext
12438LIBS=$ac_check_lib_save_LIBS ;;
12439esac
12440fi
12441{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12442printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12443if test "x$ac_cv_lib_dld_shl_load" = xyes
12444then :
12445  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12446else case e in #(
12447  e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12448if test "x$ac_cv_func_dlopen" = xyes
12449then :
12450  lt_cv_dlopen=dlopen
12451else case e in #(
12452  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12453printf %s "checking for dlopen in -ldl... " >&6; }
12454if test ${ac_cv_lib_dl_dlopen+y}
12455then :
12456  printf %s "(cached) " >&6
12457else case e in #(
12458  e) ac_check_lib_save_LIBS=$LIBS
12459LIBS="-ldl  $LIBS"
12460cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12461/* end confdefs.h.  */
12462
12463/* Override any GCC internal prototype to avoid an error.
12464   Use char because int might match the return type of a GCC
12465   builtin and then its argument prototype would still apply.
12466   The 'extern "C"' is for builds by C++ compilers;
12467   although this is not generally supported in C code supporting it here
12468   has little cost and some practical benefit (sr 110532).  */
12469#ifdef __cplusplus
12470extern "C"
12471#endif
12472char dlopen (void);
12473int
12474main (void)
12475{
12476return dlopen ();
12477  ;
12478  return 0;
12479}
12480_ACEOF
12481if ac_fn_c_try_link "$LINENO"
12482then :
12483  ac_cv_lib_dl_dlopen=yes
12484else case e in #(
12485  e) ac_cv_lib_dl_dlopen=no ;;
12486esac
12487fi
12488rm -f core conftest.err conftest.$ac_objext conftest.beam \
12489    conftest$ac_exeext conftest.$ac_ext
12490LIBS=$ac_check_lib_save_LIBS ;;
12491esac
12492fi
12493{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12494printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12495if test "x$ac_cv_lib_dl_dlopen" = xyes
12496then :
12497  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12498else case e in #(
12499  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12500printf %s "checking for dlopen in -lsvld... " >&6; }
12501if test ${ac_cv_lib_svld_dlopen+y}
12502then :
12503  printf %s "(cached) " >&6
12504else case e in #(
12505  e) ac_check_lib_save_LIBS=$LIBS
12506LIBS="-lsvld  $LIBS"
12507cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12508/* end confdefs.h.  */
12509
12510/* Override any GCC internal prototype to avoid an error.
12511   Use char because int might match the return type of a GCC
12512   builtin and then its argument prototype would still apply.
12513   The 'extern "C"' is for builds by C++ compilers;
12514   although this is not generally supported in C code supporting it here
12515   has little cost and some practical benefit (sr 110532).  */
12516#ifdef __cplusplus
12517extern "C"
12518#endif
12519char dlopen (void);
12520int
12521main (void)
12522{
12523return dlopen ();
12524  ;
12525  return 0;
12526}
12527_ACEOF
12528if ac_fn_c_try_link "$LINENO"
12529then :
12530  ac_cv_lib_svld_dlopen=yes
12531else case e in #(
12532  e) ac_cv_lib_svld_dlopen=no ;;
12533esac
12534fi
12535rm -f core conftest.err conftest.$ac_objext conftest.beam \
12536    conftest$ac_exeext conftest.$ac_ext
12537LIBS=$ac_check_lib_save_LIBS ;;
12538esac
12539fi
12540{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12541printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12542if test "x$ac_cv_lib_svld_dlopen" = xyes
12543then :
12544  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12545else case e in #(
12546  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12547printf %s "checking for dld_link in -ldld... " >&6; }
12548if test ${ac_cv_lib_dld_dld_link+y}
12549then :
12550  printf %s "(cached) " >&6
12551else case e in #(
12552  e) ac_check_lib_save_LIBS=$LIBS
12553LIBS="-ldld  $LIBS"
12554cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12555/* end confdefs.h.  */
12556
12557/* Override any GCC internal prototype to avoid an error.
12558   Use char because int might match the return type of a GCC
12559   builtin and then its argument prototype would still apply.
12560   The 'extern "C"' is for builds by C++ compilers;
12561   although this is not generally supported in C code supporting it here
12562   has little cost and some practical benefit (sr 110532).  */
12563#ifdef __cplusplus
12564extern "C"
12565#endif
12566char dld_link (void);
12567int
12568main (void)
12569{
12570return dld_link ();
12571  ;
12572  return 0;
12573}
12574_ACEOF
12575if ac_fn_c_try_link "$LINENO"
12576then :
12577  ac_cv_lib_dld_dld_link=yes
12578else case e in #(
12579  e) ac_cv_lib_dld_dld_link=no ;;
12580esac
12581fi
12582rm -f core conftest.err conftest.$ac_objext conftest.beam \
12583    conftest$ac_exeext conftest.$ac_ext
12584LIBS=$ac_check_lib_save_LIBS ;;
12585esac
12586fi
12587{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12588printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12589if test "x$ac_cv_lib_dld_dld_link" = xyes
12590then :
12591  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12592fi
12593
12594	       ;;
12595esac
12596fi
12597
12598	     ;;
12599esac
12600fi
12601
12602	   ;;
12603esac
12604fi
12605
12606	 ;;
12607esac
12608fi
12609
12610       ;;
12611esac
12612fi
12613
12614    ;;
12615  esac
12616
12617  if test no = "$lt_cv_dlopen"; then
12618    enable_dlopen=no
12619  else
12620    enable_dlopen=yes
12621  fi
12622
12623  case $lt_cv_dlopen in
12624  dlopen)
12625    save_CPPFLAGS=$CPPFLAGS
12626    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12627
12628    save_LDFLAGS=$LDFLAGS
12629    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12630
12631    save_LIBS=$LIBS
12632    LIBS="$lt_cv_dlopen_libs $LIBS"
12633
12634    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12635printf %s "checking whether a program can dlopen itself... " >&6; }
12636if test ${lt_cv_dlopen_self+y}
12637then :
12638  printf %s "(cached) " >&6
12639else case e in #(
12640  e) 	  if test yes = "$cross_compiling"; then :
12641  lt_cv_dlopen_self=cross
12642else
12643  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12644  lt_status=$lt_dlunknown
12645  cat > conftest.$ac_ext <<_LT_EOF
12646#line $LINENO "configure"
12647#include "confdefs.h"
12648
12649#if HAVE_DLFCN_H
12650#include <dlfcn.h>
12651#endif
12652
12653#include <stdio.h>
12654
12655#ifdef RTLD_GLOBAL
12656#  define LT_DLGLOBAL		RTLD_GLOBAL
12657#else
12658#  ifdef DL_GLOBAL
12659#    define LT_DLGLOBAL		DL_GLOBAL
12660#  else
12661#    define LT_DLGLOBAL		0
12662#  endif
12663#endif
12664
12665/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12666   find out it does not work in some platform. */
12667#ifndef LT_DLLAZY_OR_NOW
12668#  ifdef RTLD_LAZY
12669#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12670#  else
12671#    ifdef DL_LAZY
12672#      define LT_DLLAZY_OR_NOW		DL_LAZY
12673#    else
12674#      ifdef RTLD_NOW
12675#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12676#      else
12677#        ifdef DL_NOW
12678#          define LT_DLLAZY_OR_NOW	DL_NOW
12679#        else
12680#          define LT_DLLAZY_OR_NOW	0
12681#        endif
12682#      endif
12683#    endif
12684#  endif
12685#endif
12686
12687/* When -fvisibility=hidden is used, assume the code has been annotated
12688   correspondingly for the symbols needed.  */
12689#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12690int fnord () __attribute__((visibility("default")));
12691#endif
12692
12693int fnord () { return 42; }
12694int main ()
12695{
12696  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12697  int status = $lt_dlunknown;
12698
12699  if (self)
12700    {
12701      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12702      else
12703        {
12704	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12705          else puts (dlerror ());
12706	}
12707      /* dlclose (self); */
12708    }
12709  else
12710    puts (dlerror ());
12711
12712  return status;
12713}
12714_LT_EOF
12715  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12716  (eval $ac_link) 2>&5
12717  ac_status=$?
12718  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12719  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12720    (./conftest; exit; ) >&5 2>/dev/null
12721    lt_status=$?
12722    case x$lt_status in
12723      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12724      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12725      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12726    esac
12727  else :
12728    # compilation failed
12729    lt_cv_dlopen_self=no
12730  fi
12731fi
12732rm -fr conftest*
12733
12734     ;;
12735esac
12736fi
12737{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12738printf "%s\n" "$lt_cv_dlopen_self" >&6; }
12739
12740    if test yes = "$lt_cv_dlopen_self"; then
12741      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12742      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12743printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
12744if test ${lt_cv_dlopen_self_static+y}
12745then :
12746  printf %s "(cached) " >&6
12747else case e in #(
12748  e) 	  if test yes = "$cross_compiling"; then :
12749  lt_cv_dlopen_self_static=cross
12750else
12751  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12752  lt_status=$lt_dlunknown
12753  cat > conftest.$ac_ext <<_LT_EOF
12754#line $LINENO "configure"
12755#include "confdefs.h"
12756
12757#if HAVE_DLFCN_H
12758#include <dlfcn.h>
12759#endif
12760
12761#include <stdio.h>
12762
12763#ifdef RTLD_GLOBAL
12764#  define LT_DLGLOBAL		RTLD_GLOBAL
12765#else
12766#  ifdef DL_GLOBAL
12767#    define LT_DLGLOBAL		DL_GLOBAL
12768#  else
12769#    define LT_DLGLOBAL		0
12770#  endif
12771#endif
12772
12773/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12774   find out it does not work in some platform. */
12775#ifndef LT_DLLAZY_OR_NOW
12776#  ifdef RTLD_LAZY
12777#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12778#  else
12779#    ifdef DL_LAZY
12780#      define LT_DLLAZY_OR_NOW		DL_LAZY
12781#    else
12782#      ifdef RTLD_NOW
12783#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12784#      else
12785#        ifdef DL_NOW
12786#          define LT_DLLAZY_OR_NOW	DL_NOW
12787#        else
12788#          define LT_DLLAZY_OR_NOW	0
12789#        endif
12790#      endif
12791#    endif
12792#  endif
12793#endif
12794
12795/* When -fvisibility=hidden is used, assume the code has been annotated
12796   correspondingly for the symbols needed.  */
12797#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12798int fnord () __attribute__((visibility("default")));
12799#endif
12800
12801int fnord () { return 42; }
12802int main ()
12803{
12804  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12805  int status = $lt_dlunknown;
12806
12807  if (self)
12808    {
12809      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12810      else
12811        {
12812	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12813          else puts (dlerror ());
12814	}
12815      /* dlclose (self); */
12816    }
12817  else
12818    puts (dlerror ());
12819
12820  return status;
12821}
12822_LT_EOF
12823  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12824  (eval $ac_link) 2>&5
12825  ac_status=$?
12826  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12827  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12828    (./conftest; exit; ) >&5 2>/dev/null
12829    lt_status=$?
12830    case x$lt_status in
12831      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12832      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12833      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12834    esac
12835  else :
12836    # compilation failed
12837    lt_cv_dlopen_self_static=no
12838  fi
12839fi
12840rm -fr conftest*
12841
12842       ;;
12843esac
12844fi
12845{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12846printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
12847    fi
12848
12849    CPPFLAGS=$save_CPPFLAGS
12850    LDFLAGS=$save_LDFLAGS
12851    LIBS=$save_LIBS
12852    ;;
12853  esac
12854
12855  case $lt_cv_dlopen_self in
12856  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12857  *) enable_dlopen_self=unknown ;;
12858  esac
12859
12860  case $lt_cv_dlopen_self_static in
12861  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12862  *) enable_dlopen_self_static=unknown ;;
12863  esac
12864fi
12865
12866
12867
12868
12869
12870
12871
12872
12873
12874
12875
12876
12877
12878
12879
12880
12881
12882striplib=
12883old_striplib=
12884{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12885printf %s "checking whether stripping libraries is possible... " >&6; }
12886if test -z "$STRIP"; then
12887  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12888printf "%s\n" "no" >&6; }
12889else
12890  if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12891    old_striplib="$STRIP --strip-debug"
12892    striplib="$STRIP --strip-unneeded"
12893    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12894printf "%s\n" "yes" >&6; }
12895  else
12896    case $host_os in
12897    darwin*)
12898      # FIXME - insert some real tests, host_os isn't really good enough
12899      striplib="$STRIP -x"
12900      old_striplib="$STRIP -S"
12901      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12902printf "%s\n" "yes" >&6; }
12903      ;;
12904    freebsd*)
12905      if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
12906        old_striplib="$STRIP --strip-debug"
12907        striplib="$STRIP --strip-unneeded"
12908        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12909printf "%s\n" "yes" >&6; }
12910      else
12911        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12912printf "%s\n" "no" >&6; }
12913      fi
12914      ;;
12915    *)
12916      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12917printf "%s\n" "no" >&6; }
12918      ;;
12919    esac
12920  fi
12921fi
12922
12923
12924
12925
12926
12927
12928
12929
12930
12931
12932
12933
12934  # Report what library types will actually be built
12935  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12936printf %s "checking if libtool supports shared libraries... " >&6; }
12937  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12938printf "%s\n" "$can_build_shared" >&6; }
12939
12940  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12941printf %s "checking whether to build shared libraries... " >&6; }
12942  test no = "$can_build_shared" && enable_shared=no
12943
12944  # On AIX, shared libraries and static libraries use the same namespace, and
12945  # are all built from PIC.
12946  case $host_os in
12947  aix3*)
12948    test yes = "$enable_shared" && enable_static=no
12949    if test -n "$RANLIB"; then
12950      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12951      postinstall_cmds='$RANLIB $lib'
12952    fi
12953    ;;
12954
12955  aix[4-9]*)
12956    if test ia64 != "$host_cpu"; then
12957      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12958      yes,aix,yes) ;;			# shared object as lib.so file only
12959      yes,svr4,*) ;;			# shared object as lib.so archive member only
12960      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
12961      esac
12962    fi
12963    ;;
12964  esac
12965  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12966printf "%s\n" "$enable_shared" >&6; }
12967
12968  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12969printf %s "checking whether to build static libraries... " >&6; }
12970  # Make sure either enable_shared or enable_static is yes.
12971  test yes = "$enable_shared" || enable_static=yes
12972  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12973printf "%s\n" "$enable_static" >&6; }
12974
12975
12976
12977
12978fi
12979ac_ext=c
12980ac_cpp='$CPP $CPPFLAGS'
12981ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12982ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12983ac_compiler_gnu=$ac_cv_c_compiler_gnu
12984
12985CC=$lt_save_CC
12986
12987
12988
12989
12990
12991
12992
12993
12994
12995
12996
12997
12998
12999
13000
13001        ac_config_commands="$ac_config_commands libtool"
13002
13003
13004
13005
13006# Only expand once:
13007
13008
13009
13010# Require X.Org macros 1.8 or later
13011
13012
13013
13014
13015
13016
13017
13018
13019
13020
13021
13022{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
13023printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
13024if test ${ac_cv_c_undeclared_builtin_options+y}
13025then :
13026  printf %s "(cached) " >&6
13027else case e in #(
13028  e) ac_save_CFLAGS=$CFLAGS
13029   ac_cv_c_undeclared_builtin_options='cannot detect'
13030   for ac_arg in '' -fno-builtin; do
13031     CFLAGS="$ac_save_CFLAGS $ac_arg"
13032     # This test program should *not* compile successfully.
13033     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13034/* end confdefs.h.  */
13035
13036int
13037main (void)
13038{
13039(void) strchr;
13040  ;
13041  return 0;
13042}
13043_ACEOF
13044if ac_fn_c_try_compile "$LINENO"
13045then :
13046
13047else case e in #(
13048  e) # This test program should compile successfully.
13049        # No library function is consistently available on
13050        # freestanding implementations, so test against a dummy
13051        # declaration.  Include always-available headers on the
13052        # off chance that they somehow elicit warnings.
13053        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13054/* end confdefs.h.  */
13055#include <float.h>
13056#include <limits.h>
13057#include <stdarg.h>
13058#include <stddef.h>
13059extern void ac_decl (int, char *);
13060
13061int
13062main (void)
13063{
13064(void) ac_decl (0, (char *) 0);
13065  (void) ac_decl;
13066
13067  ;
13068  return 0;
13069}
13070_ACEOF
13071if ac_fn_c_try_compile "$LINENO"
13072then :
13073  if test x"$ac_arg" = x
13074then :
13075  ac_cv_c_undeclared_builtin_options='none needed'
13076else case e in #(
13077  e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
13078esac
13079fi
13080          break
13081fi
13082rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
13083esac
13084fi
13085rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13086    done
13087    CFLAGS=$ac_save_CFLAGS
13088   ;;
13089esac
13090fi
13091{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
13092printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
13093  case $ac_cv_c_undeclared_builtin_options in #(
13094  'cannot detect') :
13095    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
13096printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
13097as_fn_error $? "cannot make $CC report undeclared builtins
13098See 'config.log' for more details" "$LINENO" 5; } ;; #(
13099  'none needed') :
13100    ac_c_undeclared_builtin_options='' ;; #(
13101  *) :
13102    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
13103esac
13104
13105
13106
13107
13108
13109ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
13110if test "x$ac_cv_have_decl___clang__" = xyes
13111then :
13112  CLANGCC="yes"
13113else case e in #(
13114  e) CLANGCC="no" ;;
13115esac
13116fi
13117ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
13118if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
13119then :
13120  INTELCC="yes"
13121else case e in #(
13122  e) INTELCC="no" ;;
13123esac
13124fi
13125ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
13126if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
13127then :
13128  SUNCC="yes"
13129else case e in #(
13130  e) SUNCC="no" ;;
13131esac
13132fi
13133
13134
13135
13136
13137
13138
13139
13140
13141if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13142	if test -n "$ac_tool_prefix"; then
13143  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13144set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13145{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13146printf %s "checking for $ac_word... " >&6; }
13147if test ${ac_cv_path_PKG_CONFIG+y}
13148then :
13149  printf %s "(cached) " >&6
13150else case e in #(
13151  e) case $PKG_CONFIG in
13152  [\\/]* | ?:[\\/]*)
13153  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13154  ;;
13155  *)
13156  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13157for as_dir in $PATH
13158do
13159  IFS=$as_save_IFS
13160  case $as_dir in #(((
13161    '') as_dir=./ ;;
13162    */) ;;
13163    *) as_dir=$as_dir/ ;;
13164  esac
13165    for ac_exec_ext in '' $ac_executable_extensions; do
13166  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13167    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13168    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13169    break 2
13170  fi
13171done
13172  done
13173IFS=$as_save_IFS
13174
13175  ;;
13176esac ;;
13177esac
13178fi
13179PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13180if test -n "$PKG_CONFIG"; then
13181  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13182printf "%s\n" "$PKG_CONFIG" >&6; }
13183else
13184  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13185printf "%s\n" "no" >&6; }
13186fi
13187
13188
13189fi
13190if test -z "$ac_cv_path_PKG_CONFIG"; then
13191  ac_pt_PKG_CONFIG=$PKG_CONFIG
13192  # Extract the first word of "pkg-config", so it can be a program name with args.
13193set dummy pkg-config; ac_word=$2
13194{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13195printf %s "checking for $ac_word... " >&6; }
13196if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
13197then :
13198  printf %s "(cached) " >&6
13199else case e in #(
13200  e) case $ac_pt_PKG_CONFIG in
13201  [\\/]* | ?:[\\/]*)
13202  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13203  ;;
13204  *)
13205  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13206for as_dir in $PATH
13207do
13208  IFS=$as_save_IFS
13209  case $as_dir in #(((
13210    '') as_dir=./ ;;
13211    */) ;;
13212    *) as_dir=$as_dir/ ;;
13213  esac
13214    for ac_exec_ext in '' $ac_executable_extensions; do
13215  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13216    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13217    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13218    break 2
13219  fi
13220done
13221  done
13222IFS=$as_save_IFS
13223
13224  ;;
13225esac ;;
13226esac
13227fi
13228ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13229if test -n "$ac_pt_PKG_CONFIG"; then
13230  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13231printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
13232else
13233  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13234printf "%s\n" "no" >&6; }
13235fi
13236
13237  if test "x$ac_pt_PKG_CONFIG" = x; then
13238    PKG_CONFIG=""
13239  else
13240    case $cross_compiling:$ac_tool_warned in
13241yes:)
13242{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13243printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13244ac_tool_warned=yes ;;
13245esac
13246    PKG_CONFIG=$ac_pt_PKG_CONFIG
13247  fi
13248else
13249  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13250fi
13251
13252fi
13253if test -n "$PKG_CONFIG"; then
13254	_pkg_min_version=0.9.0
13255	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13256printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13257	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13258		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13259printf "%s\n" "yes" >&6; }
13260	else
13261		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13262printf "%s\n" "no" >&6; }
13263		PKG_CONFIG=""
13264	fi
13265fi
13266
13267
13268
13269
13270
13271# Check whether --enable-selective-werror was given.
13272if test ${enable_selective_werror+y}
13273then :
13274  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
13275else case e in #(
13276  e) SELECTIVE_WERROR=yes ;;
13277esac
13278fi
13279
13280
13281
13282
13283
13284# -v is too short to test reliably with XORG_TESTSET_CFLAG
13285if test "x$SUNCC" = "xyes"; then
13286    BASE_CFLAGS="-v"
13287else
13288    BASE_CFLAGS=""
13289fi
13290
13291# This chunk of warnings were those that existed in the legacy CWARNFLAGS
13292
13293
13294
13295
13296
13297
13298
13299
13300
13301
13302
13303
13304
13305xorg_testset_save_CFLAGS="$CFLAGS"
13306
13307if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13308	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13309	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13310printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13311if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13312then :
13313  printf %s "(cached) " >&6
13314else case e in #(
13315  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13316/* end confdefs.h.  */
13317int i;
13318_ACEOF
13319if ac_fn_c_try_compile "$LINENO"
13320then :
13321  xorg_cv_cc_flag_unknown_warning_option=yes
13322else case e in #(
13323  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
13324esac
13325fi
13326rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
13327esac
13328fi
13329{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13330printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13331	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13332	CFLAGS="$xorg_testset_save_CFLAGS"
13333fi
13334
13335if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13336	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13337		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13338	fi
13339	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13340	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13341printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13342if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13343then :
13344  printf %s "(cached) " >&6
13345else case e in #(
13346  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13347/* end confdefs.h.  */
13348int i;
13349_ACEOF
13350if ac_fn_c_try_compile "$LINENO"
13351then :
13352  xorg_cv_cc_flag_unused_command_line_argument=yes
13353else case e in #(
13354  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
13355esac
13356fi
13357rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
13358esac
13359fi
13360{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13361printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13362	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13363	CFLAGS="$xorg_testset_save_CFLAGS"
13364fi
13365
13366found="no"
13367
13368	if test $found = "no" ; then
13369		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13370			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13371		fi
13372
13373		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13374			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13375		fi
13376
13377		CFLAGS="$CFLAGS -Wall"
13378
13379		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
13380printf %s "checking if $CC supports -Wall... " >&6; }
13381		cacheid=xorg_cv_cc_flag__Wall
13382		if eval test \${$cacheid+y}
13383then :
13384  printf %s "(cached) " >&6
13385else case e in #(
13386  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13387/* end confdefs.h.  */
13388int i;
13389int
13390main (void)
13391{
13392
13393  ;
13394  return 0;
13395}
13396_ACEOF
13397if ac_fn_c_try_link "$LINENO"
13398then :
13399  eval $cacheid=yes
13400else case e in #(
13401  e) eval $cacheid=no ;;
13402esac
13403fi
13404rm -f core conftest.err conftest.$ac_objext conftest.beam \
13405    conftest$ac_exeext conftest.$ac_ext ;;
13406esac
13407fi
13408
13409
13410		CFLAGS="$xorg_testset_save_CFLAGS"
13411
13412		eval supported=\$$cacheid
13413		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13414printf "%s\n" "$supported" >&6; }
13415		if test "$supported" = "yes" ; then
13416			BASE_CFLAGS="$BASE_CFLAGS -Wall"
13417			found="yes"
13418		fi
13419	fi
13420
13421
13422
13423
13424
13425
13426
13427
13428
13429
13430
13431
13432
13433
13434
13435xorg_testset_save_CFLAGS="$CFLAGS"
13436
13437if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13438	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13439	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13440printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13441if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13442then :
13443  printf %s "(cached) " >&6
13444else case e in #(
13445  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13446/* end confdefs.h.  */
13447int i;
13448_ACEOF
13449if ac_fn_c_try_compile "$LINENO"
13450then :
13451  xorg_cv_cc_flag_unknown_warning_option=yes
13452else case e in #(
13453  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
13454esac
13455fi
13456rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
13457esac
13458fi
13459{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13460printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13461	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13462	CFLAGS="$xorg_testset_save_CFLAGS"
13463fi
13464
13465if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13466	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13467		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13468	fi
13469	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13470	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13471printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13472if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13473then :
13474  printf %s "(cached) " >&6
13475else case e in #(
13476  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13477/* end confdefs.h.  */
13478int i;
13479_ACEOF
13480if ac_fn_c_try_compile "$LINENO"
13481then :
13482  xorg_cv_cc_flag_unused_command_line_argument=yes
13483else case e in #(
13484  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
13485esac
13486fi
13487rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
13488esac
13489fi
13490{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13491printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13492	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13493	CFLAGS="$xorg_testset_save_CFLAGS"
13494fi
13495
13496found="no"
13497
13498	if test $found = "no" ; then
13499		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13500			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13501		fi
13502
13503		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13504			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13505		fi
13506
13507		CFLAGS="$CFLAGS -Wpointer-arith"
13508
13509		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
13510printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
13511		cacheid=xorg_cv_cc_flag__Wpointer_arith
13512		if eval test \${$cacheid+y}
13513then :
13514  printf %s "(cached) " >&6
13515else case e in #(
13516  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13517/* end confdefs.h.  */
13518int i;
13519int
13520main (void)
13521{
13522
13523  ;
13524  return 0;
13525}
13526_ACEOF
13527if ac_fn_c_try_link "$LINENO"
13528then :
13529  eval $cacheid=yes
13530else case e in #(
13531  e) eval $cacheid=no ;;
13532esac
13533fi
13534rm -f core conftest.err conftest.$ac_objext conftest.beam \
13535    conftest$ac_exeext conftest.$ac_ext ;;
13536esac
13537fi
13538
13539
13540		CFLAGS="$xorg_testset_save_CFLAGS"
13541
13542		eval supported=\$$cacheid
13543		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13544printf "%s\n" "$supported" >&6; }
13545		if test "$supported" = "yes" ; then
13546			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
13547			found="yes"
13548		fi
13549	fi
13550
13551
13552
13553
13554
13555
13556
13557
13558
13559
13560
13561
13562
13563
13564
13565xorg_testset_save_CFLAGS="$CFLAGS"
13566
13567if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13568	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13569	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13570printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13571if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13572then :
13573  printf %s "(cached) " >&6
13574else case e in #(
13575  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13576/* end confdefs.h.  */
13577int i;
13578_ACEOF
13579if ac_fn_c_try_compile "$LINENO"
13580then :
13581  xorg_cv_cc_flag_unknown_warning_option=yes
13582else case e in #(
13583  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
13584esac
13585fi
13586rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
13587esac
13588fi
13589{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13590printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13591	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13592	CFLAGS="$xorg_testset_save_CFLAGS"
13593fi
13594
13595if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13596	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13597		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13598	fi
13599	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13600	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13601printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13602if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13603then :
13604  printf %s "(cached) " >&6
13605else case e in #(
13606  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13607/* end confdefs.h.  */
13608int i;
13609_ACEOF
13610if ac_fn_c_try_compile "$LINENO"
13611then :
13612  xorg_cv_cc_flag_unused_command_line_argument=yes
13613else case e in #(
13614  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
13615esac
13616fi
13617rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
13618esac
13619fi
13620{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13621printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13622	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13623	CFLAGS="$xorg_testset_save_CFLAGS"
13624fi
13625
13626found="no"
13627
13628	if test $found = "no" ; then
13629		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13630			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13631		fi
13632
13633		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13634			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13635		fi
13636
13637		CFLAGS="$CFLAGS -Wmissing-declarations"
13638
13639		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
13640printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
13641		cacheid=xorg_cv_cc_flag__Wmissing_declarations
13642		if eval test \${$cacheid+y}
13643then :
13644  printf %s "(cached) " >&6
13645else case e in #(
13646  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13647/* end confdefs.h.  */
13648int i;
13649int
13650main (void)
13651{
13652
13653  ;
13654  return 0;
13655}
13656_ACEOF
13657if ac_fn_c_try_link "$LINENO"
13658then :
13659  eval $cacheid=yes
13660else case e in #(
13661  e) eval $cacheid=no ;;
13662esac
13663fi
13664rm -f core conftest.err conftest.$ac_objext conftest.beam \
13665    conftest$ac_exeext conftest.$ac_ext ;;
13666esac
13667fi
13668
13669
13670		CFLAGS="$xorg_testset_save_CFLAGS"
13671
13672		eval supported=\$$cacheid
13673		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13674printf "%s\n" "$supported" >&6; }
13675		if test "$supported" = "yes" ; then
13676			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
13677			found="yes"
13678		fi
13679	fi
13680
13681
13682
13683
13684
13685
13686
13687
13688
13689
13690
13691
13692
13693
13694
13695xorg_testset_save_CFLAGS="$CFLAGS"
13696
13697if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13698	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13699	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13700printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13701if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13702then :
13703  printf %s "(cached) " >&6
13704else case e in #(
13705  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13706/* end confdefs.h.  */
13707int i;
13708_ACEOF
13709if ac_fn_c_try_compile "$LINENO"
13710then :
13711  xorg_cv_cc_flag_unknown_warning_option=yes
13712else case e in #(
13713  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
13714esac
13715fi
13716rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
13717esac
13718fi
13719{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13720printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13721	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13722	CFLAGS="$xorg_testset_save_CFLAGS"
13723fi
13724
13725if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13726	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13727		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13728	fi
13729	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13730	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13731printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13732if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13733then :
13734  printf %s "(cached) " >&6
13735else case e in #(
13736  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13737/* end confdefs.h.  */
13738int i;
13739_ACEOF
13740if ac_fn_c_try_compile "$LINENO"
13741then :
13742  xorg_cv_cc_flag_unused_command_line_argument=yes
13743else case e in #(
13744  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
13745esac
13746fi
13747rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
13748esac
13749fi
13750{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13751printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13752	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13753	CFLAGS="$xorg_testset_save_CFLAGS"
13754fi
13755
13756found="no"
13757
13758	if test $found = "no" ; then
13759		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13760			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13761		fi
13762
13763		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13764			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13765		fi
13766
13767		CFLAGS="$CFLAGS -Wformat=2"
13768
13769		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
13770printf %s "checking if $CC supports -Wformat=2... " >&6; }
13771		cacheid=xorg_cv_cc_flag__Wformat_2
13772		if eval test \${$cacheid+y}
13773then :
13774  printf %s "(cached) " >&6
13775else case e in #(
13776  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13777/* end confdefs.h.  */
13778int i;
13779int
13780main (void)
13781{
13782
13783  ;
13784  return 0;
13785}
13786_ACEOF
13787if ac_fn_c_try_link "$LINENO"
13788then :
13789  eval $cacheid=yes
13790else case e in #(
13791  e) eval $cacheid=no ;;
13792esac
13793fi
13794rm -f core conftest.err conftest.$ac_objext conftest.beam \
13795    conftest$ac_exeext conftest.$ac_ext ;;
13796esac
13797fi
13798
13799
13800		CFLAGS="$xorg_testset_save_CFLAGS"
13801
13802		eval supported=\$$cacheid
13803		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13804printf "%s\n" "$supported" >&6; }
13805		if test "$supported" = "yes" ; then
13806			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
13807			found="yes"
13808		fi
13809	fi
13810
13811	if test $found = "no" ; then
13812		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13813			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13814		fi
13815
13816		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13817			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13818		fi
13819
13820		CFLAGS="$CFLAGS -Wformat"
13821
13822		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
13823printf %s "checking if $CC supports -Wformat... " >&6; }
13824		cacheid=xorg_cv_cc_flag__Wformat
13825		if eval test \${$cacheid+y}
13826then :
13827  printf %s "(cached) " >&6
13828else case e in #(
13829  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13830/* end confdefs.h.  */
13831int i;
13832int
13833main (void)
13834{
13835
13836  ;
13837  return 0;
13838}
13839_ACEOF
13840if ac_fn_c_try_link "$LINENO"
13841then :
13842  eval $cacheid=yes
13843else case e in #(
13844  e) eval $cacheid=no ;;
13845esac
13846fi
13847rm -f core conftest.err conftest.$ac_objext conftest.beam \
13848    conftest$ac_exeext conftest.$ac_ext ;;
13849esac
13850fi
13851
13852
13853		CFLAGS="$xorg_testset_save_CFLAGS"
13854
13855		eval supported=\$$cacheid
13856		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13857printf "%s\n" "$supported" >&6; }
13858		if test "$supported" = "yes" ; then
13859			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
13860			found="yes"
13861		fi
13862	fi
13863
13864
13865
13866
13867
13868
13869
13870
13871
13872
13873
13874
13875
13876
13877
13878
13879
13880xorg_testset_save_CFLAGS="$CFLAGS"
13881
13882if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13883	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13884	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13885printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13886if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13887then :
13888  printf %s "(cached) " >&6
13889else case e in #(
13890  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13891/* end confdefs.h.  */
13892int i;
13893_ACEOF
13894if ac_fn_c_try_compile "$LINENO"
13895then :
13896  xorg_cv_cc_flag_unknown_warning_option=yes
13897else case e in #(
13898  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
13899esac
13900fi
13901rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
13902esac
13903fi
13904{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13905printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13906	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13907	CFLAGS="$xorg_testset_save_CFLAGS"
13908fi
13909
13910if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13911	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13912		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13913	fi
13914	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13915	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13916printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13917if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13918then :
13919  printf %s "(cached) " >&6
13920else case e in #(
13921  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13922/* end confdefs.h.  */
13923int i;
13924_ACEOF
13925if ac_fn_c_try_compile "$LINENO"
13926then :
13927  xorg_cv_cc_flag_unused_command_line_argument=yes
13928else case e in #(
13929  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
13930esac
13931fi
13932rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
13933esac
13934fi
13935{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13936printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13937	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13938	CFLAGS="$xorg_testset_save_CFLAGS"
13939fi
13940
13941found="no"
13942
13943	if test $found = "no" ; then
13944		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13945			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13946		fi
13947
13948		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13949			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13950		fi
13951
13952		CFLAGS="$CFLAGS -Wstrict-prototypes"
13953
13954		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
13955printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
13956		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
13957		if eval test \${$cacheid+y}
13958then :
13959  printf %s "(cached) " >&6
13960else case e in #(
13961  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13962/* end confdefs.h.  */
13963int i;
13964int
13965main (void)
13966{
13967
13968  ;
13969  return 0;
13970}
13971_ACEOF
13972if ac_fn_c_try_link "$LINENO"
13973then :
13974  eval $cacheid=yes
13975else case e in #(
13976  e) eval $cacheid=no ;;
13977esac
13978fi
13979rm -f core conftest.err conftest.$ac_objext conftest.beam \
13980    conftest$ac_exeext conftest.$ac_ext ;;
13981esac
13982fi
13983
13984
13985		CFLAGS="$xorg_testset_save_CFLAGS"
13986
13987		eval supported=\$$cacheid
13988		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13989printf "%s\n" "$supported" >&6; }
13990		if test "$supported" = "yes" ; then
13991			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
13992			found="yes"
13993		fi
13994	fi
13995
13996
13997
13998
13999
14000
14001
14002
14003
14004
14005
14006
14007
14008
14009
14010xorg_testset_save_CFLAGS="$CFLAGS"
14011
14012if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14013	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14014	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14015printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14016if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14017then :
14018  printf %s "(cached) " >&6
14019else case e in #(
14020  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14021/* end confdefs.h.  */
14022int i;
14023_ACEOF
14024if ac_fn_c_try_compile "$LINENO"
14025then :
14026  xorg_cv_cc_flag_unknown_warning_option=yes
14027else case e in #(
14028  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14029esac
14030fi
14031rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14032esac
14033fi
14034{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14035printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14036	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14037	CFLAGS="$xorg_testset_save_CFLAGS"
14038fi
14039
14040if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14041	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14042		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14043	fi
14044	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14045	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14046printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14047if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14048then :
14049  printf %s "(cached) " >&6
14050else case e in #(
14051  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14052/* end confdefs.h.  */
14053int i;
14054_ACEOF
14055if ac_fn_c_try_compile "$LINENO"
14056then :
14057  xorg_cv_cc_flag_unused_command_line_argument=yes
14058else case e in #(
14059  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14060esac
14061fi
14062rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14063esac
14064fi
14065{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14066printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14067	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14068	CFLAGS="$xorg_testset_save_CFLAGS"
14069fi
14070
14071found="no"
14072
14073	if test $found = "no" ; then
14074		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14075			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14076		fi
14077
14078		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14079			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14080		fi
14081
14082		CFLAGS="$CFLAGS -Wmissing-prototypes"
14083
14084		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
14085printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
14086		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
14087		if eval test \${$cacheid+y}
14088then :
14089  printf %s "(cached) " >&6
14090else case e in #(
14091  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14092/* end confdefs.h.  */
14093int i;
14094int
14095main (void)
14096{
14097
14098  ;
14099  return 0;
14100}
14101_ACEOF
14102if ac_fn_c_try_link "$LINENO"
14103then :
14104  eval $cacheid=yes
14105else case e in #(
14106  e) eval $cacheid=no ;;
14107esac
14108fi
14109rm -f core conftest.err conftest.$ac_objext conftest.beam \
14110    conftest$ac_exeext conftest.$ac_ext ;;
14111esac
14112fi
14113
14114
14115		CFLAGS="$xorg_testset_save_CFLAGS"
14116
14117		eval supported=\$$cacheid
14118		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14119printf "%s\n" "$supported" >&6; }
14120		if test "$supported" = "yes" ; then
14121			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
14122			found="yes"
14123		fi
14124	fi
14125
14126
14127
14128
14129
14130
14131
14132
14133
14134
14135
14136
14137
14138
14139
14140xorg_testset_save_CFLAGS="$CFLAGS"
14141
14142if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14143	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14144	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14145printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14146if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14147then :
14148  printf %s "(cached) " >&6
14149else case e in #(
14150  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14151/* end confdefs.h.  */
14152int i;
14153_ACEOF
14154if ac_fn_c_try_compile "$LINENO"
14155then :
14156  xorg_cv_cc_flag_unknown_warning_option=yes
14157else case e in #(
14158  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14159esac
14160fi
14161rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14162esac
14163fi
14164{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14165printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14166	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14167	CFLAGS="$xorg_testset_save_CFLAGS"
14168fi
14169
14170if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14171	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14172		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14173	fi
14174	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14175	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14176printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14177if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14178then :
14179  printf %s "(cached) " >&6
14180else case e in #(
14181  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14182/* end confdefs.h.  */
14183int i;
14184_ACEOF
14185if ac_fn_c_try_compile "$LINENO"
14186then :
14187  xorg_cv_cc_flag_unused_command_line_argument=yes
14188else case e in #(
14189  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14190esac
14191fi
14192rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14193esac
14194fi
14195{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14196printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14197	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14198	CFLAGS="$xorg_testset_save_CFLAGS"
14199fi
14200
14201found="no"
14202
14203	if test $found = "no" ; then
14204		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14205			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14206		fi
14207
14208		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14209			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14210		fi
14211
14212		CFLAGS="$CFLAGS -Wnested-externs"
14213
14214		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
14215printf %s "checking if $CC supports -Wnested-externs... " >&6; }
14216		cacheid=xorg_cv_cc_flag__Wnested_externs
14217		if eval test \${$cacheid+y}
14218then :
14219  printf %s "(cached) " >&6
14220else case e in #(
14221  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14222/* end confdefs.h.  */
14223int i;
14224int
14225main (void)
14226{
14227
14228  ;
14229  return 0;
14230}
14231_ACEOF
14232if ac_fn_c_try_link "$LINENO"
14233then :
14234  eval $cacheid=yes
14235else case e in #(
14236  e) eval $cacheid=no ;;
14237esac
14238fi
14239rm -f core conftest.err conftest.$ac_objext conftest.beam \
14240    conftest$ac_exeext conftest.$ac_ext ;;
14241esac
14242fi
14243
14244
14245		CFLAGS="$xorg_testset_save_CFLAGS"
14246
14247		eval supported=\$$cacheid
14248		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14249printf "%s\n" "$supported" >&6; }
14250		if test "$supported" = "yes" ; then
14251			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
14252			found="yes"
14253		fi
14254	fi
14255
14256
14257
14258
14259
14260
14261
14262
14263
14264
14265
14266
14267
14268
14269
14270xorg_testset_save_CFLAGS="$CFLAGS"
14271
14272if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14273	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14274	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14275printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14276if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14277then :
14278  printf %s "(cached) " >&6
14279else case e in #(
14280  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14281/* end confdefs.h.  */
14282int i;
14283_ACEOF
14284if ac_fn_c_try_compile "$LINENO"
14285then :
14286  xorg_cv_cc_flag_unknown_warning_option=yes
14287else case e in #(
14288  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14289esac
14290fi
14291rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14292esac
14293fi
14294{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14295printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14296	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14297	CFLAGS="$xorg_testset_save_CFLAGS"
14298fi
14299
14300if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14301	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14302		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14303	fi
14304	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14305	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14306printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14307if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14308then :
14309  printf %s "(cached) " >&6
14310else case e in #(
14311  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14312/* end confdefs.h.  */
14313int i;
14314_ACEOF
14315if ac_fn_c_try_compile "$LINENO"
14316then :
14317  xorg_cv_cc_flag_unused_command_line_argument=yes
14318else case e in #(
14319  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14320esac
14321fi
14322rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14323esac
14324fi
14325{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14326printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14327	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14328	CFLAGS="$xorg_testset_save_CFLAGS"
14329fi
14330
14331found="no"
14332
14333	if test $found = "no" ; then
14334		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14335			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14336		fi
14337
14338		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14339			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14340		fi
14341
14342		CFLAGS="$CFLAGS -Wbad-function-cast"
14343
14344		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
14345printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
14346		cacheid=xorg_cv_cc_flag__Wbad_function_cast
14347		if eval test \${$cacheid+y}
14348then :
14349  printf %s "(cached) " >&6
14350else case e in #(
14351  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14352/* end confdefs.h.  */
14353int i;
14354int
14355main (void)
14356{
14357
14358  ;
14359  return 0;
14360}
14361_ACEOF
14362if ac_fn_c_try_link "$LINENO"
14363then :
14364  eval $cacheid=yes
14365else case e in #(
14366  e) eval $cacheid=no ;;
14367esac
14368fi
14369rm -f core conftest.err conftest.$ac_objext conftest.beam \
14370    conftest$ac_exeext conftest.$ac_ext ;;
14371esac
14372fi
14373
14374
14375		CFLAGS="$xorg_testset_save_CFLAGS"
14376
14377		eval supported=\$$cacheid
14378		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14379printf "%s\n" "$supported" >&6; }
14380		if test "$supported" = "yes" ; then
14381			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
14382			found="yes"
14383		fi
14384	fi
14385
14386
14387
14388
14389
14390
14391
14392
14393
14394
14395
14396
14397
14398
14399
14400xorg_testset_save_CFLAGS="$CFLAGS"
14401
14402if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14403	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14404	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14405printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14406if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14407then :
14408  printf %s "(cached) " >&6
14409else case e in #(
14410  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14411/* end confdefs.h.  */
14412int i;
14413_ACEOF
14414if ac_fn_c_try_compile "$LINENO"
14415then :
14416  xorg_cv_cc_flag_unknown_warning_option=yes
14417else case e in #(
14418  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14419esac
14420fi
14421rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14422esac
14423fi
14424{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14425printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14426	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14427	CFLAGS="$xorg_testset_save_CFLAGS"
14428fi
14429
14430if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14431	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14432		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14433	fi
14434	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14435	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14436printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14437if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14438then :
14439  printf %s "(cached) " >&6
14440else case e in #(
14441  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14442/* end confdefs.h.  */
14443int i;
14444_ACEOF
14445if ac_fn_c_try_compile "$LINENO"
14446then :
14447  xorg_cv_cc_flag_unused_command_line_argument=yes
14448else case e in #(
14449  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14450esac
14451fi
14452rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14453esac
14454fi
14455{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14456printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14457	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14458	CFLAGS="$xorg_testset_save_CFLAGS"
14459fi
14460
14461found="no"
14462
14463	if test $found = "no" ; then
14464		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14465			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14466		fi
14467
14468		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14469			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14470		fi
14471
14472		CFLAGS="$CFLAGS -Wold-style-definition"
14473
14474		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
14475printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
14476		cacheid=xorg_cv_cc_flag__Wold_style_definition
14477		if eval test \${$cacheid+y}
14478then :
14479  printf %s "(cached) " >&6
14480else case e in #(
14481  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14482/* end confdefs.h.  */
14483int i;
14484int
14485main (void)
14486{
14487
14488  ;
14489  return 0;
14490}
14491_ACEOF
14492if ac_fn_c_try_link "$LINENO"
14493then :
14494  eval $cacheid=yes
14495else case e in #(
14496  e) eval $cacheid=no ;;
14497esac
14498fi
14499rm -f core conftest.err conftest.$ac_objext conftest.beam \
14500    conftest$ac_exeext conftest.$ac_ext ;;
14501esac
14502fi
14503
14504
14505		CFLAGS="$xorg_testset_save_CFLAGS"
14506
14507		eval supported=\$$cacheid
14508		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14509printf "%s\n" "$supported" >&6; }
14510		if test "$supported" = "yes" ; then
14511			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
14512			found="yes"
14513		fi
14514	fi
14515
14516	if test $found = "no" ; then
14517		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14518			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14519		fi
14520
14521		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14522			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14523		fi
14524
14525		CFLAGS="$CFLAGS -fd"
14526
14527		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
14528printf %s "checking if $CC supports -fd... " >&6; }
14529		cacheid=xorg_cv_cc_flag__fd
14530		if eval test \${$cacheid+y}
14531then :
14532  printf %s "(cached) " >&6
14533else case e in #(
14534  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14535/* end confdefs.h.  */
14536int i;
14537int
14538main (void)
14539{
14540
14541  ;
14542  return 0;
14543}
14544_ACEOF
14545if ac_fn_c_try_link "$LINENO"
14546then :
14547  eval $cacheid=yes
14548else case e in #(
14549  e) eval $cacheid=no ;;
14550esac
14551fi
14552rm -f core conftest.err conftest.$ac_objext conftest.beam \
14553    conftest$ac_exeext conftest.$ac_ext ;;
14554esac
14555fi
14556
14557
14558		CFLAGS="$xorg_testset_save_CFLAGS"
14559
14560		eval supported=\$$cacheid
14561		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14562printf "%s\n" "$supported" >&6; }
14563		if test "$supported" = "yes" ; then
14564			BASE_CFLAGS="$BASE_CFLAGS -fd"
14565			found="yes"
14566		fi
14567	fi
14568
14569
14570
14571
14572
14573
14574
14575
14576
14577
14578
14579
14580
14581
14582
14583xorg_testset_save_CFLAGS="$CFLAGS"
14584
14585if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14586	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14587	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14588printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14589if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14590then :
14591  printf %s "(cached) " >&6
14592else case e in #(
14593  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14594/* end confdefs.h.  */
14595int i;
14596_ACEOF
14597if ac_fn_c_try_compile "$LINENO"
14598then :
14599  xorg_cv_cc_flag_unknown_warning_option=yes
14600else case e in #(
14601  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14602esac
14603fi
14604rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14605esac
14606fi
14607{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14608printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14609	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14610	CFLAGS="$xorg_testset_save_CFLAGS"
14611fi
14612
14613if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14614	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14615		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14616	fi
14617	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14618	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14619printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14620if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14621then :
14622  printf %s "(cached) " >&6
14623else case e in #(
14624  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14625/* end confdefs.h.  */
14626int i;
14627_ACEOF
14628if ac_fn_c_try_compile "$LINENO"
14629then :
14630  xorg_cv_cc_flag_unused_command_line_argument=yes
14631else case e in #(
14632  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14633esac
14634fi
14635rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14636esac
14637fi
14638{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14639printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14640	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14641	CFLAGS="$xorg_testset_save_CFLAGS"
14642fi
14643
14644found="no"
14645
14646	if test $found = "no" ; then
14647		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14648			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14649		fi
14650
14651		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14652			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14653		fi
14654
14655		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
14656
14657		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
14658printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
14659		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
14660		if eval test \${$cacheid+y}
14661then :
14662  printf %s "(cached) " >&6
14663else case e in #(
14664  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14665/* end confdefs.h.  */
14666int i;
14667int
14668main (void)
14669{
14670
14671  ;
14672  return 0;
14673}
14674_ACEOF
14675if ac_fn_c_try_link "$LINENO"
14676then :
14677  eval $cacheid=yes
14678else case e in #(
14679  e) eval $cacheid=no ;;
14680esac
14681fi
14682rm -f core conftest.err conftest.$ac_objext conftest.beam \
14683    conftest$ac_exeext conftest.$ac_ext ;;
14684esac
14685fi
14686
14687
14688		CFLAGS="$xorg_testset_save_CFLAGS"
14689
14690		eval supported=\$$cacheid
14691		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14692printf "%s\n" "$supported" >&6; }
14693		if test "$supported" = "yes" ; then
14694			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
14695			found="yes"
14696		fi
14697	fi
14698
14699
14700
14701
14702
14703# This chunk adds additional warnings that could catch undesired effects.
14704
14705
14706
14707
14708
14709
14710
14711
14712
14713
14714
14715
14716
14717xorg_testset_save_CFLAGS="$CFLAGS"
14718
14719if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14720	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14721	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14722printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14723if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14724then :
14725  printf %s "(cached) " >&6
14726else case e in #(
14727  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14728/* end confdefs.h.  */
14729int i;
14730_ACEOF
14731if ac_fn_c_try_compile "$LINENO"
14732then :
14733  xorg_cv_cc_flag_unknown_warning_option=yes
14734else case e in #(
14735  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14736esac
14737fi
14738rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14739esac
14740fi
14741{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14742printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14743	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14744	CFLAGS="$xorg_testset_save_CFLAGS"
14745fi
14746
14747if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14748	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14749		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14750	fi
14751	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14752	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14753printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14754if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14755then :
14756  printf %s "(cached) " >&6
14757else case e in #(
14758  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14759/* end confdefs.h.  */
14760int i;
14761_ACEOF
14762if ac_fn_c_try_compile "$LINENO"
14763then :
14764  xorg_cv_cc_flag_unused_command_line_argument=yes
14765else case e in #(
14766  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14767esac
14768fi
14769rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14770esac
14771fi
14772{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14773printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14774	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14775	CFLAGS="$xorg_testset_save_CFLAGS"
14776fi
14777
14778found="no"
14779
14780	if test $found = "no" ; then
14781		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14782			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14783		fi
14784
14785		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14786			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14787		fi
14788
14789		CFLAGS="$CFLAGS -Wunused"
14790
14791		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
14792printf %s "checking if $CC supports -Wunused... " >&6; }
14793		cacheid=xorg_cv_cc_flag__Wunused
14794		if eval test \${$cacheid+y}
14795then :
14796  printf %s "(cached) " >&6
14797else case e in #(
14798  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14799/* end confdefs.h.  */
14800int i;
14801int
14802main (void)
14803{
14804
14805  ;
14806  return 0;
14807}
14808_ACEOF
14809if ac_fn_c_try_link "$LINENO"
14810then :
14811  eval $cacheid=yes
14812else case e in #(
14813  e) eval $cacheid=no ;;
14814esac
14815fi
14816rm -f core conftest.err conftest.$ac_objext conftest.beam \
14817    conftest$ac_exeext conftest.$ac_ext ;;
14818esac
14819fi
14820
14821
14822		CFLAGS="$xorg_testset_save_CFLAGS"
14823
14824		eval supported=\$$cacheid
14825		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14826printf "%s\n" "$supported" >&6; }
14827		if test "$supported" = "yes" ; then
14828			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
14829			found="yes"
14830		fi
14831	fi
14832
14833
14834
14835
14836
14837
14838
14839
14840
14841
14842
14843
14844
14845
14846
14847xorg_testset_save_CFLAGS="$CFLAGS"
14848
14849if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14850	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14851	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14852printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14853if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14854then :
14855  printf %s "(cached) " >&6
14856else case e in #(
14857  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14858/* end confdefs.h.  */
14859int i;
14860_ACEOF
14861if ac_fn_c_try_compile "$LINENO"
14862then :
14863  xorg_cv_cc_flag_unknown_warning_option=yes
14864else case e in #(
14865  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14866esac
14867fi
14868rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14869esac
14870fi
14871{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14872printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14873	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14874	CFLAGS="$xorg_testset_save_CFLAGS"
14875fi
14876
14877if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14878	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14879		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14880	fi
14881	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14882	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14883printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14884if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14885then :
14886  printf %s "(cached) " >&6
14887else case e in #(
14888  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14889/* end confdefs.h.  */
14890int i;
14891_ACEOF
14892if ac_fn_c_try_compile "$LINENO"
14893then :
14894  xorg_cv_cc_flag_unused_command_line_argument=yes
14895else case e in #(
14896  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14897esac
14898fi
14899rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14900esac
14901fi
14902{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14903printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14904	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14905	CFLAGS="$xorg_testset_save_CFLAGS"
14906fi
14907
14908found="no"
14909
14910	if test $found = "no" ; then
14911		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14912			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14913		fi
14914
14915		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14916			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14917		fi
14918
14919		CFLAGS="$CFLAGS -Wuninitialized"
14920
14921		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
14922printf %s "checking if $CC supports -Wuninitialized... " >&6; }
14923		cacheid=xorg_cv_cc_flag__Wuninitialized
14924		if eval test \${$cacheid+y}
14925then :
14926  printf %s "(cached) " >&6
14927else case e in #(
14928  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14929/* end confdefs.h.  */
14930int i;
14931int
14932main (void)
14933{
14934
14935  ;
14936  return 0;
14937}
14938_ACEOF
14939if ac_fn_c_try_link "$LINENO"
14940then :
14941  eval $cacheid=yes
14942else case e in #(
14943  e) eval $cacheid=no ;;
14944esac
14945fi
14946rm -f core conftest.err conftest.$ac_objext conftest.beam \
14947    conftest$ac_exeext conftest.$ac_ext ;;
14948esac
14949fi
14950
14951
14952		CFLAGS="$xorg_testset_save_CFLAGS"
14953
14954		eval supported=\$$cacheid
14955		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14956printf "%s\n" "$supported" >&6; }
14957		if test "$supported" = "yes" ; then
14958			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
14959			found="yes"
14960		fi
14961	fi
14962
14963
14964
14965
14966
14967
14968
14969
14970
14971
14972
14973
14974
14975
14976
14977xorg_testset_save_CFLAGS="$CFLAGS"
14978
14979if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14980	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14981	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14982printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14983if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14984then :
14985  printf %s "(cached) " >&6
14986else case e in #(
14987  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14988/* end confdefs.h.  */
14989int i;
14990_ACEOF
14991if ac_fn_c_try_compile "$LINENO"
14992then :
14993  xorg_cv_cc_flag_unknown_warning_option=yes
14994else case e in #(
14995  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14996esac
14997fi
14998rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14999esac
15000fi
15001{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15002printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15003	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15004	CFLAGS="$xorg_testset_save_CFLAGS"
15005fi
15006
15007if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15008	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15009		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15010	fi
15011	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15012	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15013printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15014if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15015then :
15016  printf %s "(cached) " >&6
15017else case e in #(
15018  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15019/* end confdefs.h.  */
15020int i;
15021_ACEOF
15022if ac_fn_c_try_compile "$LINENO"
15023then :
15024  xorg_cv_cc_flag_unused_command_line_argument=yes
15025else case e in #(
15026  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15027esac
15028fi
15029rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15030esac
15031fi
15032{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15033printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15034	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15035	CFLAGS="$xorg_testset_save_CFLAGS"
15036fi
15037
15038found="no"
15039
15040	if test $found = "no" ; then
15041		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15042			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15043		fi
15044
15045		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15046			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15047		fi
15048
15049		CFLAGS="$CFLAGS -Wshadow"
15050
15051		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
15052printf %s "checking if $CC supports -Wshadow... " >&6; }
15053		cacheid=xorg_cv_cc_flag__Wshadow
15054		if eval test \${$cacheid+y}
15055then :
15056  printf %s "(cached) " >&6
15057else case e in #(
15058  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15059/* end confdefs.h.  */
15060int i;
15061int
15062main (void)
15063{
15064
15065  ;
15066  return 0;
15067}
15068_ACEOF
15069if ac_fn_c_try_link "$LINENO"
15070then :
15071  eval $cacheid=yes
15072else case e in #(
15073  e) eval $cacheid=no ;;
15074esac
15075fi
15076rm -f core conftest.err conftest.$ac_objext conftest.beam \
15077    conftest$ac_exeext conftest.$ac_ext ;;
15078esac
15079fi
15080
15081
15082		CFLAGS="$xorg_testset_save_CFLAGS"
15083
15084		eval supported=\$$cacheid
15085		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15086printf "%s\n" "$supported" >&6; }
15087		if test "$supported" = "yes" ; then
15088			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
15089			found="yes"
15090		fi
15091	fi
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107xorg_testset_save_CFLAGS="$CFLAGS"
15108
15109if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15110	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15111	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15112printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15113if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15114then :
15115  printf %s "(cached) " >&6
15116else case e in #(
15117  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15118/* end confdefs.h.  */
15119int i;
15120_ACEOF
15121if ac_fn_c_try_compile "$LINENO"
15122then :
15123  xorg_cv_cc_flag_unknown_warning_option=yes
15124else case e in #(
15125  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15126esac
15127fi
15128rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15129esac
15130fi
15131{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15132printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15133	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15134	CFLAGS="$xorg_testset_save_CFLAGS"
15135fi
15136
15137if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15138	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15139		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15140	fi
15141	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15142	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15143printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15144if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15145then :
15146  printf %s "(cached) " >&6
15147else case e in #(
15148  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15149/* end confdefs.h.  */
15150int i;
15151_ACEOF
15152if ac_fn_c_try_compile "$LINENO"
15153then :
15154  xorg_cv_cc_flag_unused_command_line_argument=yes
15155else case e in #(
15156  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15157esac
15158fi
15159rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15160esac
15161fi
15162{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15163printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15164	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15165	CFLAGS="$xorg_testset_save_CFLAGS"
15166fi
15167
15168found="no"
15169
15170	if test $found = "no" ; then
15171		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15172			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15173		fi
15174
15175		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15176			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15177		fi
15178
15179		CFLAGS="$CFLAGS -Wmissing-noreturn"
15180
15181		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
15182printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
15183		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
15184		if eval test \${$cacheid+y}
15185then :
15186  printf %s "(cached) " >&6
15187else case e in #(
15188  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15189/* end confdefs.h.  */
15190int i;
15191int
15192main (void)
15193{
15194
15195  ;
15196  return 0;
15197}
15198_ACEOF
15199if ac_fn_c_try_link "$LINENO"
15200then :
15201  eval $cacheid=yes
15202else case e in #(
15203  e) eval $cacheid=no ;;
15204esac
15205fi
15206rm -f core conftest.err conftest.$ac_objext conftest.beam \
15207    conftest$ac_exeext conftest.$ac_ext ;;
15208esac
15209fi
15210
15211
15212		CFLAGS="$xorg_testset_save_CFLAGS"
15213
15214		eval supported=\$$cacheid
15215		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15216printf "%s\n" "$supported" >&6; }
15217		if test "$supported" = "yes" ; then
15218			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
15219			found="yes"
15220		fi
15221	fi
15222
15223
15224
15225
15226
15227
15228
15229
15230
15231
15232
15233
15234
15235
15236
15237xorg_testset_save_CFLAGS="$CFLAGS"
15238
15239if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15240	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15241	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15242printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15243if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15244then :
15245  printf %s "(cached) " >&6
15246else case e in #(
15247  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15248/* end confdefs.h.  */
15249int i;
15250_ACEOF
15251if ac_fn_c_try_compile "$LINENO"
15252then :
15253  xorg_cv_cc_flag_unknown_warning_option=yes
15254else case e in #(
15255  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15256esac
15257fi
15258rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15259esac
15260fi
15261{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15262printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15263	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15264	CFLAGS="$xorg_testset_save_CFLAGS"
15265fi
15266
15267if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15268	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15269		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15270	fi
15271	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15272	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15273printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15274if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15275then :
15276  printf %s "(cached) " >&6
15277else case e in #(
15278  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15279/* end confdefs.h.  */
15280int i;
15281_ACEOF
15282if ac_fn_c_try_compile "$LINENO"
15283then :
15284  xorg_cv_cc_flag_unused_command_line_argument=yes
15285else case e in #(
15286  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15287esac
15288fi
15289rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15290esac
15291fi
15292{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15293printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15294	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15295	CFLAGS="$xorg_testset_save_CFLAGS"
15296fi
15297
15298found="no"
15299
15300	if test $found = "no" ; then
15301		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15302			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15303		fi
15304
15305		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15306			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15307		fi
15308
15309		CFLAGS="$CFLAGS -Wmissing-format-attribute"
15310
15311		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
15312printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
15313		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
15314		if eval test \${$cacheid+y}
15315then :
15316  printf %s "(cached) " >&6
15317else case e in #(
15318  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15319/* end confdefs.h.  */
15320int i;
15321int
15322main (void)
15323{
15324
15325  ;
15326  return 0;
15327}
15328_ACEOF
15329if ac_fn_c_try_link "$LINENO"
15330then :
15331  eval $cacheid=yes
15332else case e in #(
15333  e) eval $cacheid=no ;;
15334esac
15335fi
15336rm -f core conftest.err conftest.$ac_objext conftest.beam \
15337    conftest$ac_exeext conftest.$ac_ext ;;
15338esac
15339fi
15340
15341
15342		CFLAGS="$xorg_testset_save_CFLAGS"
15343
15344		eval supported=\$$cacheid
15345		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15346printf "%s\n" "$supported" >&6; }
15347		if test "$supported" = "yes" ; then
15348			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
15349			found="yes"
15350		fi
15351	fi
15352
15353
15354
15355
15356
15357
15358
15359
15360
15361
15362
15363
15364
15365
15366
15367xorg_testset_save_CFLAGS="$CFLAGS"
15368
15369if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15370	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15371	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15372printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15373if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15374then :
15375  printf %s "(cached) " >&6
15376else case e in #(
15377  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15378/* end confdefs.h.  */
15379int i;
15380_ACEOF
15381if ac_fn_c_try_compile "$LINENO"
15382then :
15383  xorg_cv_cc_flag_unknown_warning_option=yes
15384else case e in #(
15385  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15386esac
15387fi
15388rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15389esac
15390fi
15391{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15392printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15393	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15394	CFLAGS="$xorg_testset_save_CFLAGS"
15395fi
15396
15397if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15398	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15399		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15400	fi
15401	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15402	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15403printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15404if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15405then :
15406  printf %s "(cached) " >&6
15407else case e in #(
15408  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15409/* end confdefs.h.  */
15410int i;
15411_ACEOF
15412if ac_fn_c_try_compile "$LINENO"
15413then :
15414  xorg_cv_cc_flag_unused_command_line_argument=yes
15415else case e in #(
15416  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15417esac
15418fi
15419rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15420esac
15421fi
15422{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15423printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15424	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15425	CFLAGS="$xorg_testset_save_CFLAGS"
15426fi
15427
15428found="no"
15429
15430	if test $found = "no" ; then
15431		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15432			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15433		fi
15434
15435		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15436			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15437		fi
15438
15439		CFLAGS="$CFLAGS -Wredundant-decls"
15440
15441		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
15442printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
15443		cacheid=xorg_cv_cc_flag__Wredundant_decls
15444		if eval test \${$cacheid+y}
15445then :
15446  printf %s "(cached) " >&6
15447else case e in #(
15448  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15449/* end confdefs.h.  */
15450int i;
15451int
15452main (void)
15453{
15454
15455  ;
15456  return 0;
15457}
15458_ACEOF
15459if ac_fn_c_try_link "$LINENO"
15460then :
15461  eval $cacheid=yes
15462else case e in #(
15463  e) eval $cacheid=no ;;
15464esac
15465fi
15466rm -f core conftest.err conftest.$ac_objext conftest.beam \
15467    conftest$ac_exeext conftest.$ac_ext ;;
15468esac
15469fi
15470
15471
15472		CFLAGS="$xorg_testset_save_CFLAGS"
15473
15474		eval supported=\$$cacheid
15475		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15476printf "%s\n" "$supported" >&6; }
15477		if test "$supported" = "yes" ; then
15478			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
15479			found="yes"
15480		fi
15481	fi
15482
15483
15484
15485
15486
15487
15488
15489
15490
15491
15492
15493
15494
15495
15496
15497xorg_testset_save_CFLAGS="$CFLAGS"
15498
15499if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15500	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15501	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15502printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15503if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15504then :
15505  printf %s "(cached) " >&6
15506else case e in #(
15507  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15508/* end confdefs.h.  */
15509int i;
15510_ACEOF
15511if ac_fn_c_try_compile "$LINENO"
15512then :
15513  xorg_cv_cc_flag_unknown_warning_option=yes
15514else case e in #(
15515  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15516esac
15517fi
15518rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15519esac
15520fi
15521{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15522printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15523	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15524	CFLAGS="$xorg_testset_save_CFLAGS"
15525fi
15526
15527if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15528	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15529		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15530	fi
15531	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15532	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15533printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15534if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15535then :
15536  printf %s "(cached) " >&6
15537else case e in #(
15538  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15539/* end confdefs.h.  */
15540int i;
15541_ACEOF
15542if ac_fn_c_try_compile "$LINENO"
15543then :
15544  xorg_cv_cc_flag_unused_command_line_argument=yes
15545else case e in #(
15546  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15547esac
15548fi
15549rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15550esac
15551fi
15552{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15553printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15554	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15555	CFLAGS="$xorg_testset_save_CFLAGS"
15556fi
15557
15558found="no"
15559
15560	if test $found = "no" ; then
15561		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15562			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15563		fi
15564
15565		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15566			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15567		fi
15568
15569		CFLAGS="$CFLAGS -Wlogical-op"
15570
15571		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
15572printf %s "checking if $CC supports -Wlogical-op... " >&6; }
15573		cacheid=xorg_cv_cc_flag__Wlogical_op
15574		if eval test \${$cacheid+y}
15575then :
15576  printf %s "(cached) " >&6
15577else case e in #(
15578  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15579/* end confdefs.h.  */
15580int i;
15581int
15582main (void)
15583{
15584
15585  ;
15586  return 0;
15587}
15588_ACEOF
15589if ac_fn_c_try_link "$LINENO"
15590then :
15591  eval $cacheid=yes
15592else case e in #(
15593  e) eval $cacheid=no ;;
15594esac
15595fi
15596rm -f core conftest.err conftest.$ac_objext conftest.beam \
15597    conftest$ac_exeext conftest.$ac_ext ;;
15598esac
15599fi
15600
15601
15602		CFLAGS="$xorg_testset_save_CFLAGS"
15603
15604		eval supported=\$$cacheid
15605		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15606printf "%s\n" "$supported" >&6; }
15607		if test "$supported" = "yes" ; then
15608			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
15609			found="yes"
15610		fi
15611	fi
15612
15613
15614
15615# These are currently disabled because they are noisy.  They will be enabled
15616# in the future once the codebase is sufficiently modernized to silence
15617# them.  For now, I don't want them to drown out the other warnings.
15618# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
15619# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
15620# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
15621
15622# Turn some warnings into errors, so we don't accidentally get successful builds
15623# when there are problems that should be fixed.
15624
15625if test "x$SELECTIVE_WERROR" = "xyes" ; then
15626
15627
15628
15629
15630
15631
15632
15633
15634
15635
15636
15637
15638
15639xorg_testset_save_CFLAGS="$CFLAGS"
15640
15641if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15642	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15643	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15644printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15645if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15646then :
15647  printf %s "(cached) " >&6
15648else case e in #(
15649  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15650/* end confdefs.h.  */
15651int i;
15652_ACEOF
15653if ac_fn_c_try_compile "$LINENO"
15654then :
15655  xorg_cv_cc_flag_unknown_warning_option=yes
15656else case e in #(
15657  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15658esac
15659fi
15660rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15661esac
15662fi
15663{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15664printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15665	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15666	CFLAGS="$xorg_testset_save_CFLAGS"
15667fi
15668
15669if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15670	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15671		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15672	fi
15673	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15674	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15675printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15676if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15677then :
15678  printf %s "(cached) " >&6
15679else case e in #(
15680  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15681/* end confdefs.h.  */
15682int i;
15683_ACEOF
15684if ac_fn_c_try_compile "$LINENO"
15685then :
15686  xorg_cv_cc_flag_unused_command_line_argument=yes
15687else case e in #(
15688  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15689esac
15690fi
15691rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15692esac
15693fi
15694{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15695printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15696	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15697	CFLAGS="$xorg_testset_save_CFLAGS"
15698fi
15699
15700found="no"
15701
15702	if test $found = "no" ; then
15703		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15704			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15705		fi
15706
15707		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15708			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15709		fi
15710
15711		CFLAGS="$CFLAGS -Werror=implicit"
15712
15713		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
15714printf %s "checking if $CC supports -Werror=implicit... " >&6; }
15715		cacheid=xorg_cv_cc_flag__Werror_implicit
15716		if eval test \${$cacheid+y}
15717then :
15718  printf %s "(cached) " >&6
15719else case e in #(
15720  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15721/* end confdefs.h.  */
15722int i;
15723int
15724main (void)
15725{
15726
15727  ;
15728  return 0;
15729}
15730_ACEOF
15731if ac_fn_c_try_link "$LINENO"
15732then :
15733  eval $cacheid=yes
15734else case e in #(
15735  e) eval $cacheid=no ;;
15736esac
15737fi
15738rm -f core conftest.err conftest.$ac_objext conftest.beam \
15739    conftest$ac_exeext conftest.$ac_ext ;;
15740esac
15741fi
15742
15743
15744		CFLAGS="$xorg_testset_save_CFLAGS"
15745
15746		eval supported=\$$cacheid
15747		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15748printf "%s\n" "$supported" >&6; }
15749		if test "$supported" = "yes" ; then
15750			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
15751			found="yes"
15752		fi
15753	fi
15754
15755	if test $found = "no" ; then
15756		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15757			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15758		fi
15759
15760		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15761			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15762		fi
15763
15764		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15765
15766		{ 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
15767printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
15768		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
15769		if eval test \${$cacheid+y}
15770then :
15771  printf %s "(cached) " >&6
15772else case e in #(
15773  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15774/* end confdefs.h.  */
15775int i;
15776int
15777main (void)
15778{
15779
15780  ;
15781  return 0;
15782}
15783_ACEOF
15784if ac_fn_c_try_link "$LINENO"
15785then :
15786  eval $cacheid=yes
15787else case e in #(
15788  e) eval $cacheid=no ;;
15789esac
15790fi
15791rm -f core conftest.err conftest.$ac_objext conftest.beam \
15792    conftest$ac_exeext conftest.$ac_ext ;;
15793esac
15794fi
15795
15796
15797		CFLAGS="$xorg_testset_save_CFLAGS"
15798
15799		eval supported=\$$cacheid
15800		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15801printf "%s\n" "$supported" >&6; }
15802		if test "$supported" = "yes" ; then
15803			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15804			found="yes"
15805		fi
15806	fi
15807
15808
15809
15810
15811
15812
15813
15814
15815
15816
15817
15818
15819
15820
15821
15822xorg_testset_save_CFLAGS="$CFLAGS"
15823
15824if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15825	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15826	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15827printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15828if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15829then :
15830  printf %s "(cached) " >&6
15831else case e in #(
15832  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15833/* end confdefs.h.  */
15834int i;
15835_ACEOF
15836if ac_fn_c_try_compile "$LINENO"
15837then :
15838  xorg_cv_cc_flag_unknown_warning_option=yes
15839else case e in #(
15840  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15841esac
15842fi
15843rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15844esac
15845fi
15846{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15847printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15848	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15849	CFLAGS="$xorg_testset_save_CFLAGS"
15850fi
15851
15852if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15853	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15854		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15855	fi
15856	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15857	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15858printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15859if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15860then :
15861  printf %s "(cached) " >&6
15862else case e in #(
15863  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15864/* end confdefs.h.  */
15865int i;
15866_ACEOF
15867if ac_fn_c_try_compile "$LINENO"
15868then :
15869  xorg_cv_cc_flag_unused_command_line_argument=yes
15870else case e in #(
15871  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15872esac
15873fi
15874rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15875esac
15876fi
15877{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15878printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15879	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15880	CFLAGS="$xorg_testset_save_CFLAGS"
15881fi
15882
15883found="no"
15884
15885	if test $found = "no" ; then
15886		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15887			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15888		fi
15889
15890		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15891			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15892		fi
15893
15894		CFLAGS="$CFLAGS -Werror=nonnull"
15895
15896		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
15897printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
15898		cacheid=xorg_cv_cc_flag__Werror_nonnull
15899		if eval test \${$cacheid+y}
15900then :
15901  printf %s "(cached) " >&6
15902else case e in #(
15903  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15904/* end confdefs.h.  */
15905int i;
15906int
15907main (void)
15908{
15909
15910  ;
15911  return 0;
15912}
15913_ACEOF
15914if ac_fn_c_try_link "$LINENO"
15915then :
15916  eval $cacheid=yes
15917else case e in #(
15918  e) eval $cacheid=no ;;
15919esac
15920fi
15921rm -f core conftest.err conftest.$ac_objext conftest.beam \
15922    conftest$ac_exeext conftest.$ac_ext ;;
15923esac
15924fi
15925
15926
15927		CFLAGS="$xorg_testset_save_CFLAGS"
15928
15929		eval supported=\$$cacheid
15930		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15931printf "%s\n" "$supported" >&6; }
15932		if test "$supported" = "yes" ; then
15933			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
15934			found="yes"
15935		fi
15936	fi
15937
15938
15939
15940
15941
15942
15943
15944
15945
15946
15947
15948
15949
15950
15951
15952xorg_testset_save_CFLAGS="$CFLAGS"
15953
15954if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15955	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15956	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15957printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15958if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15959then :
15960  printf %s "(cached) " >&6
15961else case e in #(
15962  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15963/* end confdefs.h.  */
15964int i;
15965_ACEOF
15966if ac_fn_c_try_compile "$LINENO"
15967then :
15968  xorg_cv_cc_flag_unknown_warning_option=yes
15969else case e in #(
15970  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15971esac
15972fi
15973rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15974esac
15975fi
15976{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15977printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15978	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15979	CFLAGS="$xorg_testset_save_CFLAGS"
15980fi
15981
15982if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15983	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15984		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15985	fi
15986	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15987	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15988printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15989if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15990then :
15991  printf %s "(cached) " >&6
15992else case e in #(
15993  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15994/* end confdefs.h.  */
15995int i;
15996_ACEOF
15997if ac_fn_c_try_compile "$LINENO"
15998then :
15999  xorg_cv_cc_flag_unused_command_line_argument=yes
16000else case e in #(
16001  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16002esac
16003fi
16004rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16005esac
16006fi
16007{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16008printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16009	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16010	CFLAGS="$xorg_testset_save_CFLAGS"
16011fi
16012
16013found="no"
16014
16015	if test $found = "no" ; then
16016		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16017			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16018		fi
16019
16020		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16021			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16022		fi
16023
16024		CFLAGS="$CFLAGS -Werror=init-self"
16025
16026		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
16027printf %s "checking if $CC supports -Werror=init-self... " >&6; }
16028		cacheid=xorg_cv_cc_flag__Werror_init_self
16029		if eval test \${$cacheid+y}
16030then :
16031  printf %s "(cached) " >&6
16032else case e in #(
16033  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16034/* end confdefs.h.  */
16035int i;
16036int
16037main (void)
16038{
16039
16040  ;
16041  return 0;
16042}
16043_ACEOF
16044if ac_fn_c_try_link "$LINENO"
16045then :
16046  eval $cacheid=yes
16047else case e in #(
16048  e) eval $cacheid=no ;;
16049esac
16050fi
16051rm -f core conftest.err conftest.$ac_objext conftest.beam \
16052    conftest$ac_exeext conftest.$ac_ext ;;
16053esac
16054fi
16055
16056
16057		CFLAGS="$xorg_testset_save_CFLAGS"
16058
16059		eval supported=\$$cacheid
16060		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16061printf "%s\n" "$supported" >&6; }
16062		if test "$supported" = "yes" ; then
16063			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
16064			found="yes"
16065		fi
16066	fi
16067
16068
16069
16070
16071
16072
16073
16074
16075
16076
16077
16078
16079
16080
16081
16082xorg_testset_save_CFLAGS="$CFLAGS"
16083
16084if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16085	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16086	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16087printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16088if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16089then :
16090  printf %s "(cached) " >&6
16091else case e in #(
16092  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16093/* end confdefs.h.  */
16094int i;
16095_ACEOF
16096if ac_fn_c_try_compile "$LINENO"
16097then :
16098  xorg_cv_cc_flag_unknown_warning_option=yes
16099else case e in #(
16100  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16101esac
16102fi
16103rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16104esac
16105fi
16106{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16107printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16108	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16109	CFLAGS="$xorg_testset_save_CFLAGS"
16110fi
16111
16112if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16113	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16114		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16115	fi
16116	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16117	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16118printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16119if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16120then :
16121  printf %s "(cached) " >&6
16122else case e in #(
16123  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16124/* end confdefs.h.  */
16125int i;
16126_ACEOF
16127if ac_fn_c_try_compile "$LINENO"
16128then :
16129  xorg_cv_cc_flag_unused_command_line_argument=yes
16130else case e in #(
16131  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16132esac
16133fi
16134rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16135esac
16136fi
16137{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16138printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16139	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16140	CFLAGS="$xorg_testset_save_CFLAGS"
16141fi
16142
16143found="no"
16144
16145	if test $found = "no" ; then
16146		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16147			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16148		fi
16149
16150		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16151			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16152		fi
16153
16154		CFLAGS="$CFLAGS -Werror=main"
16155
16156		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
16157printf %s "checking if $CC supports -Werror=main... " >&6; }
16158		cacheid=xorg_cv_cc_flag__Werror_main
16159		if eval test \${$cacheid+y}
16160then :
16161  printf %s "(cached) " >&6
16162else case e in #(
16163  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16164/* end confdefs.h.  */
16165int i;
16166int
16167main (void)
16168{
16169
16170  ;
16171  return 0;
16172}
16173_ACEOF
16174if ac_fn_c_try_link "$LINENO"
16175then :
16176  eval $cacheid=yes
16177else case e in #(
16178  e) eval $cacheid=no ;;
16179esac
16180fi
16181rm -f core conftest.err conftest.$ac_objext conftest.beam \
16182    conftest$ac_exeext conftest.$ac_ext ;;
16183esac
16184fi
16185
16186
16187		CFLAGS="$xorg_testset_save_CFLAGS"
16188
16189		eval supported=\$$cacheid
16190		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16191printf "%s\n" "$supported" >&6; }
16192		if test "$supported" = "yes" ; then
16193			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
16194			found="yes"
16195		fi
16196	fi
16197
16198
16199
16200
16201
16202
16203
16204
16205
16206
16207
16208
16209
16210
16211
16212xorg_testset_save_CFLAGS="$CFLAGS"
16213
16214if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16215	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16216	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16217printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16218if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16219then :
16220  printf %s "(cached) " >&6
16221else case e in #(
16222  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16223/* end confdefs.h.  */
16224int i;
16225_ACEOF
16226if ac_fn_c_try_compile "$LINENO"
16227then :
16228  xorg_cv_cc_flag_unknown_warning_option=yes
16229else case e in #(
16230  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16231esac
16232fi
16233rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16234esac
16235fi
16236{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16237printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16238	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16239	CFLAGS="$xorg_testset_save_CFLAGS"
16240fi
16241
16242if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16243	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16244		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16245	fi
16246	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16247	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16248printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16249if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16250then :
16251  printf %s "(cached) " >&6
16252else case e in #(
16253  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16254/* end confdefs.h.  */
16255int i;
16256_ACEOF
16257if ac_fn_c_try_compile "$LINENO"
16258then :
16259  xorg_cv_cc_flag_unused_command_line_argument=yes
16260else case e in #(
16261  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16262esac
16263fi
16264rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16265esac
16266fi
16267{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16268printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16269	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16270	CFLAGS="$xorg_testset_save_CFLAGS"
16271fi
16272
16273found="no"
16274
16275	if test $found = "no" ; then
16276		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16277			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16278		fi
16279
16280		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16281			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16282		fi
16283
16284		CFLAGS="$CFLAGS -Werror=missing-braces"
16285
16286		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
16287printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
16288		cacheid=xorg_cv_cc_flag__Werror_missing_braces
16289		if eval test \${$cacheid+y}
16290then :
16291  printf %s "(cached) " >&6
16292else case e in #(
16293  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16294/* end confdefs.h.  */
16295int i;
16296int
16297main (void)
16298{
16299
16300  ;
16301  return 0;
16302}
16303_ACEOF
16304if ac_fn_c_try_link "$LINENO"
16305then :
16306  eval $cacheid=yes
16307else case e in #(
16308  e) eval $cacheid=no ;;
16309esac
16310fi
16311rm -f core conftest.err conftest.$ac_objext conftest.beam \
16312    conftest$ac_exeext conftest.$ac_ext ;;
16313esac
16314fi
16315
16316
16317		CFLAGS="$xorg_testset_save_CFLAGS"
16318
16319		eval supported=\$$cacheid
16320		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16321printf "%s\n" "$supported" >&6; }
16322		if test "$supported" = "yes" ; then
16323			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
16324			found="yes"
16325		fi
16326	fi
16327
16328
16329
16330
16331
16332
16333
16334
16335
16336
16337
16338
16339
16340
16341
16342xorg_testset_save_CFLAGS="$CFLAGS"
16343
16344if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16345	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16346	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16347printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16348if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16349then :
16350  printf %s "(cached) " >&6
16351else case e in #(
16352  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16353/* end confdefs.h.  */
16354int i;
16355_ACEOF
16356if ac_fn_c_try_compile "$LINENO"
16357then :
16358  xorg_cv_cc_flag_unknown_warning_option=yes
16359else case e in #(
16360  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16361esac
16362fi
16363rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16364esac
16365fi
16366{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16367printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16368	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16369	CFLAGS="$xorg_testset_save_CFLAGS"
16370fi
16371
16372if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16373	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16374		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16375	fi
16376	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16377	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16378printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16379if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16380then :
16381  printf %s "(cached) " >&6
16382else case e in #(
16383  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16384/* end confdefs.h.  */
16385int i;
16386_ACEOF
16387if ac_fn_c_try_compile "$LINENO"
16388then :
16389  xorg_cv_cc_flag_unused_command_line_argument=yes
16390else case e in #(
16391  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16392esac
16393fi
16394rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16395esac
16396fi
16397{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16398printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16399	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16400	CFLAGS="$xorg_testset_save_CFLAGS"
16401fi
16402
16403found="no"
16404
16405	if test $found = "no" ; then
16406		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16407			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16408		fi
16409
16410		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16411			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16412		fi
16413
16414		CFLAGS="$CFLAGS -Werror=sequence-point"
16415
16416		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
16417printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
16418		cacheid=xorg_cv_cc_flag__Werror_sequence_point
16419		if eval test \${$cacheid+y}
16420then :
16421  printf %s "(cached) " >&6
16422else case e in #(
16423  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16424/* end confdefs.h.  */
16425int i;
16426int
16427main (void)
16428{
16429
16430  ;
16431  return 0;
16432}
16433_ACEOF
16434if ac_fn_c_try_link "$LINENO"
16435then :
16436  eval $cacheid=yes
16437else case e in #(
16438  e) eval $cacheid=no ;;
16439esac
16440fi
16441rm -f core conftest.err conftest.$ac_objext conftest.beam \
16442    conftest$ac_exeext conftest.$ac_ext ;;
16443esac
16444fi
16445
16446
16447		CFLAGS="$xorg_testset_save_CFLAGS"
16448
16449		eval supported=\$$cacheid
16450		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16451printf "%s\n" "$supported" >&6; }
16452		if test "$supported" = "yes" ; then
16453			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
16454			found="yes"
16455		fi
16456	fi
16457
16458
16459
16460
16461
16462
16463
16464
16465
16466
16467
16468
16469
16470
16471
16472xorg_testset_save_CFLAGS="$CFLAGS"
16473
16474if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16475	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16476	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16477printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16478if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16479then :
16480  printf %s "(cached) " >&6
16481else case e in #(
16482  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16483/* end confdefs.h.  */
16484int i;
16485_ACEOF
16486if ac_fn_c_try_compile "$LINENO"
16487then :
16488  xorg_cv_cc_flag_unknown_warning_option=yes
16489else case e in #(
16490  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16491esac
16492fi
16493rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16494esac
16495fi
16496{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16497printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16498	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16499	CFLAGS="$xorg_testset_save_CFLAGS"
16500fi
16501
16502if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16503	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16504		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16505	fi
16506	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16507	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16508printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16509if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16510then :
16511  printf %s "(cached) " >&6
16512else case e in #(
16513  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16514/* end confdefs.h.  */
16515int i;
16516_ACEOF
16517if ac_fn_c_try_compile "$LINENO"
16518then :
16519  xorg_cv_cc_flag_unused_command_line_argument=yes
16520else case e in #(
16521  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16522esac
16523fi
16524rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16525esac
16526fi
16527{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16528printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16529	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16530	CFLAGS="$xorg_testset_save_CFLAGS"
16531fi
16532
16533found="no"
16534
16535	if test $found = "no" ; then
16536		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16537			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16538		fi
16539
16540		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16541			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16542		fi
16543
16544		CFLAGS="$CFLAGS -Werror=return-type"
16545
16546		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
16547printf %s "checking if $CC supports -Werror=return-type... " >&6; }
16548		cacheid=xorg_cv_cc_flag__Werror_return_type
16549		if eval test \${$cacheid+y}
16550then :
16551  printf %s "(cached) " >&6
16552else case e in #(
16553  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16554/* end confdefs.h.  */
16555int i;
16556int
16557main (void)
16558{
16559
16560  ;
16561  return 0;
16562}
16563_ACEOF
16564if ac_fn_c_try_link "$LINENO"
16565then :
16566  eval $cacheid=yes
16567else case e in #(
16568  e) eval $cacheid=no ;;
16569esac
16570fi
16571rm -f core conftest.err conftest.$ac_objext conftest.beam \
16572    conftest$ac_exeext conftest.$ac_ext ;;
16573esac
16574fi
16575
16576
16577		CFLAGS="$xorg_testset_save_CFLAGS"
16578
16579		eval supported=\$$cacheid
16580		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16581printf "%s\n" "$supported" >&6; }
16582		if test "$supported" = "yes" ; then
16583			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
16584			found="yes"
16585		fi
16586	fi
16587
16588	if test $found = "no" ; then
16589		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16590			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16591		fi
16592
16593		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16594			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16595		fi
16596
16597		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16598
16599		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
16600printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
16601		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
16602		if eval test \${$cacheid+y}
16603then :
16604  printf %s "(cached) " >&6
16605else case e in #(
16606  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16607/* end confdefs.h.  */
16608int i;
16609int
16610main (void)
16611{
16612
16613  ;
16614  return 0;
16615}
16616_ACEOF
16617if ac_fn_c_try_link "$LINENO"
16618then :
16619  eval $cacheid=yes
16620else case e in #(
16621  e) eval $cacheid=no ;;
16622esac
16623fi
16624rm -f core conftest.err conftest.$ac_objext conftest.beam \
16625    conftest$ac_exeext conftest.$ac_ext ;;
16626esac
16627fi
16628
16629
16630		CFLAGS="$xorg_testset_save_CFLAGS"
16631
16632		eval supported=\$$cacheid
16633		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16634printf "%s\n" "$supported" >&6; }
16635		if test "$supported" = "yes" ; then
16636			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16637			found="yes"
16638		fi
16639	fi
16640
16641
16642
16643
16644
16645
16646
16647
16648
16649
16650
16651
16652
16653
16654
16655xorg_testset_save_CFLAGS="$CFLAGS"
16656
16657if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16658	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16659	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16660printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16661if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16662then :
16663  printf %s "(cached) " >&6
16664else case e in #(
16665  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16666/* end confdefs.h.  */
16667int i;
16668_ACEOF
16669if ac_fn_c_try_compile "$LINENO"
16670then :
16671  xorg_cv_cc_flag_unknown_warning_option=yes
16672else case e in #(
16673  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16674esac
16675fi
16676rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16677esac
16678fi
16679{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16680printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16681	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16682	CFLAGS="$xorg_testset_save_CFLAGS"
16683fi
16684
16685if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16686	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16687		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16688	fi
16689	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16690	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16691printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16692if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16693then :
16694  printf %s "(cached) " >&6
16695else case e in #(
16696  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16697/* end confdefs.h.  */
16698int i;
16699_ACEOF
16700if ac_fn_c_try_compile "$LINENO"
16701then :
16702  xorg_cv_cc_flag_unused_command_line_argument=yes
16703else case e in #(
16704  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16705esac
16706fi
16707rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16708esac
16709fi
16710{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16711printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16712	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16713	CFLAGS="$xorg_testset_save_CFLAGS"
16714fi
16715
16716found="no"
16717
16718	if test $found = "no" ; then
16719		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16720			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16721		fi
16722
16723		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16724			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16725		fi
16726
16727		CFLAGS="$CFLAGS -Werror=trigraphs"
16728
16729		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
16730printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
16731		cacheid=xorg_cv_cc_flag__Werror_trigraphs
16732		if eval test \${$cacheid+y}
16733then :
16734  printf %s "(cached) " >&6
16735else case e in #(
16736  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16737/* end confdefs.h.  */
16738int i;
16739int
16740main (void)
16741{
16742
16743  ;
16744  return 0;
16745}
16746_ACEOF
16747if ac_fn_c_try_link "$LINENO"
16748then :
16749  eval $cacheid=yes
16750else case e in #(
16751  e) eval $cacheid=no ;;
16752esac
16753fi
16754rm -f core conftest.err conftest.$ac_objext conftest.beam \
16755    conftest$ac_exeext conftest.$ac_ext ;;
16756esac
16757fi
16758
16759
16760		CFLAGS="$xorg_testset_save_CFLAGS"
16761
16762		eval supported=\$$cacheid
16763		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16764printf "%s\n" "$supported" >&6; }
16765		if test "$supported" = "yes" ; then
16766			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
16767			found="yes"
16768		fi
16769	fi
16770
16771
16772
16773
16774
16775
16776
16777
16778
16779
16780
16781
16782
16783
16784
16785xorg_testset_save_CFLAGS="$CFLAGS"
16786
16787if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16788	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16789	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16790printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16791if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16792then :
16793  printf %s "(cached) " >&6
16794else case e in #(
16795  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16796/* end confdefs.h.  */
16797int i;
16798_ACEOF
16799if ac_fn_c_try_compile "$LINENO"
16800then :
16801  xorg_cv_cc_flag_unknown_warning_option=yes
16802else case e in #(
16803  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16804esac
16805fi
16806rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16807esac
16808fi
16809{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16810printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16811	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16812	CFLAGS="$xorg_testset_save_CFLAGS"
16813fi
16814
16815if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16816	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16817		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16818	fi
16819	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16820	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16821printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16822if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16823then :
16824  printf %s "(cached) " >&6
16825else case e in #(
16826  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16827/* end confdefs.h.  */
16828int i;
16829_ACEOF
16830if ac_fn_c_try_compile "$LINENO"
16831then :
16832  xorg_cv_cc_flag_unused_command_line_argument=yes
16833else case e in #(
16834  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16835esac
16836fi
16837rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16838esac
16839fi
16840{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16841printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16842	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16843	CFLAGS="$xorg_testset_save_CFLAGS"
16844fi
16845
16846found="no"
16847
16848	if test $found = "no" ; then
16849		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16850			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16851		fi
16852
16853		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16854			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16855		fi
16856
16857		CFLAGS="$CFLAGS -Werror=array-bounds"
16858
16859		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
16860printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
16861		cacheid=xorg_cv_cc_flag__Werror_array_bounds
16862		if eval test \${$cacheid+y}
16863then :
16864  printf %s "(cached) " >&6
16865else case e in #(
16866  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16867/* end confdefs.h.  */
16868int i;
16869int
16870main (void)
16871{
16872
16873  ;
16874  return 0;
16875}
16876_ACEOF
16877if ac_fn_c_try_link "$LINENO"
16878then :
16879  eval $cacheid=yes
16880else case e in #(
16881  e) eval $cacheid=no ;;
16882esac
16883fi
16884rm -f core conftest.err conftest.$ac_objext conftest.beam \
16885    conftest$ac_exeext conftest.$ac_ext ;;
16886esac
16887fi
16888
16889
16890		CFLAGS="$xorg_testset_save_CFLAGS"
16891
16892		eval supported=\$$cacheid
16893		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16894printf "%s\n" "$supported" >&6; }
16895		if test "$supported" = "yes" ; then
16896			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
16897			found="yes"
16898		fi
16899	fi
16900
16901
16902
16903
16904
16905
16906
16907
16908
16909
16910
16911
16912
16913
16914
16915xorg_testset_save_CFLAGS="$CFLAGS"
16916
16917if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16918	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16919	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16920printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16921if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16922then :
16923  printf %s "(cached) " >&6
16924else case e in #(
16925  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16926/* end confdefs.h.  */
16927int i;
16928_ACEOF
16929if ac_fn_c_try_compile "$LINENO"
16930then :
16931  xorg_cv_cc_flag_unknown_warning_option=yes
16932else case e in #(
16933  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16934esac
16935fi
16936rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16937esac
16938fi
16939{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16940printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16941	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16942	CFLAGS="$xorg_testset_save_CFLAGS"
16943fi
16944
16945if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16946	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16947		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16948	fi
16949	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16950	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16951printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16952if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16953then :
16954  printf %s "(cached) " >&6
16955else case e in #(
16956  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16957/* end confdefs.h.  */
16958int i;
16959_ACEOF
16960if ac_fn_c_try_compile "$LINENO"
16961then :
16962  xorg_cv_cc_flag_unused_command_line_argument=yes
16963else case e in #(
16964  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16965esac
16966fi
16967rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16968esac
16969fi
16970{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16971printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16972	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16973	CFLAGS="$xorg_testset_save_CFLAGS"
16974fi
16975
16976found="no"
16977
16978	if test $found = "no" ; then
16979		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16980			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16981		fi
16982
16983		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16984			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16985		fi
16986
16987		CFLAGS="$CFLAGS -Werror=write-strings"
16988
16989		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
16990printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
16991		cacheid=xorg_cv_cc_flag__Werror_write_strings
16992		if eval test \${$cacheid+y}
16993then :
16994  printf %s "(cached) " >&6
16995else case e in #(
16996  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16997/* end confdefs.h.  */
16998int i;
16999int
17000main (void)
17001{
17002
17003  ;
17004  return 0;
17005}
17006_ACEOF
17007if ac_fn_c_try_link "$LINENO"
17008then :
17009  eval $cacheid=yes
17010else case e in #(
17011  e) eval $cacheid=no ;;
17012esac
17013fi
17014rm -f core conftest.err conftest.$ac_objext conftest.beam \
17015    conftest$ac_exeext conftest.$ac_ext ;;
17016esac
17017fi
17018
17019
17020		CFLAGS="$xorg_testset_save_CFLAGS"
17021
17022		eval supported=\$$cacheid
17023		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17024printf "%s\n" "$supported" >&6; }
17025		if test "$supported" = "yes" ; then
17026			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
17027			found="yes"
17028		fi
17029	fi
17030
17031
17032
17033
17034
17035
17036
17037
17038
17039
17040
17041
17042
17043
17044
17045xorg_testset_save_CFLAGS="$CFLAGS"
17046
17047if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17048	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17049	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17050printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17051if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17052then :
17053  printf %s "(cached) " >&6
17054else case e in #(
17055  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17056/* end confdefs.h.  */
17057int i;
17058_ACEOF
17059if ac_fn_c_try_compile "$LINENO"
17060then :
17061  xorg_cv_cc_flag_unknown_warning_option=yes
17062else case e in #(
17063  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17064esac
17065fi
17066rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17067esac
17068fi
17069{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17070printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17071	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17072	CFLAGS="$xorg_testset_save_CFLAGS"
17073fi
17074
17075if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17076	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17077		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17078	fi
17079	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17080	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17081printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17082if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17083then :
17084  printf %s "(cached) " >&6
17085else case e in #(
17086  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17087/* end confdefs.h.  */
17088int i;
17089_ACEOF
17090if ac_fn_c_try_compile "$LINENO"
17091then :
17092  xorg_cv_cc_flag_unused_command_line_argument=yes
17093else case e in #(
17094  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17095esac
17096fi
17097rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17098esac
17099fi
17100{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17101printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17102	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17103	CFLAGS="$xorg_testset_save_CFLAGS"
17104fi
17105
17106found="no"
17107
17108	if test $found = "no" ; then
17109		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17110			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17111		fi
17112
17113		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17114			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17115		fi
17116
17117		CFLAGS="$CFLAGS -Werror=address"
17118
17119		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
17120printf %s "checking if $CC supports -Werror=address... " >&6; }
17121		cacheid=xorg_cv_cc_flag__Werror_address
17122		if eval test \${$cacheid+y}
17123then :
17124  printf %s "(cached) " >&6
17125else case e in #(
17126  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17127/* end confdefs.h.  */
17128int i;
17129int
17130main (void)
17131{
17132
17133  ;
17134  return 0;
17135}
17136_ACEOF
17137if ac_fn_c_try_link "$LINENO"
17138then :
17139  eval $cacheid=yes
17140else case e in #(
17141  e) eval $cacheid=no ;;
17142esac
17143fi
17144rm -f core conftest.err conftest.$ac_objext conftest.beam \
17145    conftest$ac_exeext conftest.$ac_ext ;;
17146esac
17147fi
17148
17149
17150		CFLAGS="$xorg_testset_save_CFLAGS"
17151
17152		eval supported=\$$cacheid
17153		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17154printf "%s\n" "$supported" >&6; }
17155		if test "$supported" = "yes" ; then
17156			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
17157			found="yes"
17158		fi
17159	fi
17160
17161
17162
17163
17164
17165
17166
17167
17168
17169
17170
17171
17172
17173
17174
17175xorg_testset_save_CFLAGS="$CFLAGS"
17176
17177if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17178	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17179	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17180printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17181if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17182then :
17183  printf %s "(cached) " >&6
17184else case e in #(
17185  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17186/* end confdefs.h.  */
17187int i;
17188_ACEOF
17189if ac_fn_c_try_compile "$LINENO"
17190then :
17191  xorg_cv_cc_flag_unknown_warning_option=yes
17192else case e in #(
17193  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17194esac
17195fi
17196rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17197esac
17198fi
17199{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17200printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17201	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17202	CFLAGS="$xorg_testset_save_CFLAGS"
17203fi
17204
17205if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17206	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17207		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17208	fi
17209	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17210	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17211printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17212if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17213then :
17214  printf %s "(cached) " >&6
17215else case e in #(
17216  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17217/* end confdefs.h.  */
17218int i;
17219_ACEOF
17220if ac_fn_c_try_compile "$LINENO"
17221then :
17222  xorg_cv_cc_flag_unused_command_line_argument=yes
17223else case e in #(
17224  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17225esac
17226fi
17227rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17228esac
17229fi
17230{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17231printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17232	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17233	CFLAGS="$xorg_testset_save_CFLAGS"
17234fi
17235
17236found="no"
17237
17238	if test $found = "no" ; then
17239		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17240			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17241		fi
17242
17243		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17244			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17245		fi
17246
17247		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
17248
17249		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
17250printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
17251		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
17252		if eval test \${$cacheid+y}
17253then :
17254  printf %s "(cached) " >&6
17255else case e in #(
17256  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17257/* end confdefs.h.  */
17258int i;
17259int
17260main (void)
17261{
17262
17263  ;
17264  return 0;
17265}
17266_ACEOF
17267if ac_fn_c_try_link "$LINENO"
17268then :
17269  eval $cacheid=yes
17270else case e in #(
17271  e) eval $cacheid=no ;;
17272esac
17273fi
17274rm -f core conftest.err conftest.$ac_objext conftest.beam \
17275    conftest$ac_exeext conftest.$ac_ext ;;
17276esac
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 -Werror=int-to-pointer-cast"
17287			found="yes"
17288		fi
17289	fi
17290
17291	if test $found = "no" ; then
17292		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17293			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17294		fi
17295
17296		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17297			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17298		fi
17299
17300		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
17301
17302		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
17303printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
17304		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
17305		if eval test \${$cacheid+y}
17306then :
17307  printf %s "(cached) " >&6
17308else case e in #(
17309  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17310/* end confdefs.h.  */
17311int i;
17312int
17313main (void)
17314{
17315
17316  ;
17317  return 0;
17318}
17319_ACEOF
17320if ac_fn_c_try_link "$LINENO"
17321then :
17322  eval $cacheid=yes
17323else case e in #(
17324  e) eval $cacheid=no ;;
17325esac
17326fi
17327rm -f core conftest.err conftest.$ac_objext conftest.beam \
17328    conftest$ac_exeext conftest.$ac_ext ;;
17329esac
17330fi
17331
17332
17333		CFLAGS="$xorg_testset_save_CFLAGS"
17334
17335		eval supported=\$$cacheid
17336		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17337printf "%s\n" "$supported" >&6; }
17338		if test "$supported" = "yes" ; then
17339			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
17340			found="yes"
17341		fi
17342	fi
17343
17344
17345
17346
17347
17348
17349
17350
17351
17352
17353
17354
17355
17356
17357
17358xorg_testset_save_CFLAGS="$CFLAGS"
17359
17360if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17361	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17362	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17363printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17364if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17365then :
17366  printf %s "(cached) " >&6
17367else case e in #(
17368  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17369/* end confdefs.h.  */
17370int i;
17371_ACEOF
17372if ac_fn_c_try_compile "$LINENO"
17373then :
17374  xorg_cv_cc_flag_unknown_warning_option=yes
17375else case e in #(
17376  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17377esac
17378fi
17379rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17380esac
17381fi
17382{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17383printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17384	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17385	CFLAGS="$xorg_testset_save_CFLAGS"
17386fi
17387
17388if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17389	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17390		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17391	fi
17392	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17393	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17394printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17395if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17396then :
17397  printf %s "(cached) " >&6
17398else case e in #(
17399  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17400/* end confdefs.h.  */
17401int i;
17402_ACEOF
17403if ac_fn_c_try_compile "$LINENO"
17404then :
17405  xorg_cv_cc_flag_unused_command_line_argument=yes
17406else case e in #(
17407  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17408esac
17409fi
17410rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17411esac
17412fi
17413{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17414printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17415	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17416	CFLAGS="$xorg_testset_save_CFLAGS"
17417fi
17418
17419found="no"
17420
17421	if test $found = "no" ; then
17422		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17423			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17424		fi
17425
17426		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17427			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17428		fi
17429
17430		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
17431
17432		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
17433printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
17434		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
17435		if eval test \${$cacheid+y}
17436then :
17437  printf %s "(cached) " >&6
17438else case e in #(
17439  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17440/* end confdefs.h.  */
17441int i;
17442int
17443main (void)
17444{
17445
17446  ;
17447  return 0;
17448}
17449_ACEOF
17450if ac_fn_c_try_link "$LINENO"
17451then :
17452  eval $cacheid=yes
17453else case e in #(
17454  e) eval $cacheid=no ;;
17455esac
17456fi
17457rm -f core conftest.err conftest.$ac_objext conftest.beam \
17458    conftest$ac_exeext conftest.$ac_ext ;;
17459esac
17460fi
17461
17462
17463		CFLAGS="$xorg_testset_save_CFLAGS"
17464
17465		eval supported=\$$cacheid
17466		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17467printf "%s\n" "$supported" >&6; }
17468		if test "$supported" = "yes" ; then
17469			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
17470			found="yes"
17471		fi
17472	fi
17473
17474 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
17475else
17476{ 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
17477printf "%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;}
17478
17479
17480
17481
17482
17483
17484
17485
17486
17487
17488
17489
17490
17491xorg_testset_save_CFLAGS="$CFLAGS"
17492
17493if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17494	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17495	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17496printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17497if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17498then :
17499  printf %s "(cached) " >&6
17500else case e in #(
17501  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17502/* end confdefs.h.  */
17503int i;
17504_ACEOF
17505if ac_fn_c_try_compile "$LINENO"
17506then :
17507  xorg_cv_cc_flag_unknown_warning_option=yes
17508else case e in #(
17509  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17510esac
17511fi
17512rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17513esac
17514fi
17515{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17516printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17517	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17518	CFLAGS="$xorg_testset_save_CFLAGS"
17519fi
17520
17521if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17522	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17523		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17524	fi
17525	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17526	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17527printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17528if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17529then :
17530  printf %s "(cached) " >&6
17531else case e in #(
17532  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17533/* end confdefs.h.  */
17534int i;
17535_ACEOF
17536if ac_fn_c_try_compile "$LINENO"
17537then :
17538  xorg_cv_cc_flag_unused_command_line_argument=yes
17539else case e in #(
17540  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17541esac
17542fi
17543rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17544esac
17545fi
17546{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17547printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17548	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17549	CFLAGS="$xorg_testset_save_CFLAGS"
17550fi
17551
17552found="no"
17553
17554	if test $found = "no" ; then
17555		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17556			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17557		fi
17558
17559		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17560			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17561		fi
17562
17563		CFLAGS="$CFLAGS -Wimplicit"
17564
17565		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
17566printf %s "checking if $CC supports -Wimplicit... " >&6; }
17567		cacheid=xorg_cv_cc_flag__Wimplicit
17568		if eval test \${$cacheid+y}
17569then :
17570  printf %s "(cached) " >&6
17571else case e in #(
17572  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17573/* end confdefs.h.  */
17574int i;
17575int
17576main (void)
17577{
17578
17579  ;
17580  return 0;
17581}
17582_ACEOF
17583if ac_fn_c_try_link "$LINENO"
17584then :
17585  eval $cacheid=yes
17586else case e in #(
17587  e) eval $cacheid=no ;;
17588esac
17589fi
17590rm -f core conftest.err conftest.$ac_objext conftest.beam \
17591    conftest$ac_exeext conftest.$ac_ext ;;
17592esac
17593fi
17594
17595
17596		CFLAGS="$xorg_testset_save_CFLAGS"
17597
17598		eval supported=\$$cacheid
17599		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17600printf "%s\n" "$supported" >&6; }
17601		if test "$supported" = "yes" ; then
17602			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
17603			found="yes"
17604		fi
17605	fi
17606
17607
17608
17609
17610
17611
17612
17613
17614
17615
17616
17617
17618
17619
17620
17621xorg_testset_save_CFLAGS="$CFLAGS"
17622
17623if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17624	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17625	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17626printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17627if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17628then :
17629  printf %s "(cached) " >&6
17630else case e in #(
17631  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17632/* end confdefs.h.  */
17633int i;
17634_ACEOF
17635if ac_fn_c_try_compile "$LINENO"
17636then :
17637  xorg_cv_cc_flag_unknown_warning_option=yes
17638else case e in #(
17639  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17640esac
17641fi
17642rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17643esac
17644fi
17645{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17646printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17647	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17648	CFLAGS="$xorg_testset_save_CFLAGS"
17649fi
17650
17651if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17652	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17653		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17654	fi
17655	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17656	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17657printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17658if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17659then :
17660  printf %s "(cached) " >&6
17661else case e in #(
17662  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17663/* end confdefs.h.  */
17664int i;
17665_ACEOF
17666if ac_fn_c_try_compile "$LINENO"
17667then :
17668  xorg_cv_cc_flag_unused_command_line_argument=yes
17669else case e in #(
17670  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17671esac
17672fi
17673rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17674esac
17675fi
17676{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17677printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17678	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17679	CFLAGS="$xorg_testset_save_CFLAGS"
17680fi
17681
17682found="no"
17683
17684	if test $found = "no" ; then
17685		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17686			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17687		fi
17688
17689		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17690			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17691		fi
17692
17693		CFLAGS="$CFLAGS -Wnonnull"
17694
17695		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
17696printf %s "checking if $CC supports -Wnonnull... " >&6; }
17697		cacheid=xorg_cv_cc_flag__Wnonnull
17698		if eval test \${$cacheid+y}
17699then :
17700  printf %s "(cached) " >&6
17701else case e in #(
17702  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17703/* end confdefs.h.  */
17704int i;
17705int
17706main (void)
17707{
17708
17709  ;
17710  return 0;
17711}
17712_ACEOF
17713if ac_fn_c_try_link "$LINENO"
17714then :
17715  eval $cacheid=yes
17716else case e in #(
17717  e) eval $cacheid=no ;;
17718esac
17719fi
17720rm -f core conftest.err conftest.$ac_objext conftest.beam \
17721    conftest$ac_exeext conftest.$ac_ext ;;
17722esac
17723fi
17724
17725
17726		CFLAGS="$xorg_testset_save_CFLAGS"
17727
17728		eval supported=\$$cacheid
17729		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17730printf "%s\n" "$supported" >&6; }
17731		if test "$supported" = "yes" ; then
17732			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
17733			found="yes"
17734		fi
17735	fi
17736
17737
17738
17739
17740
17741
17742
17743
17744
17745
17746
17747
17748
17749
17750
17751xorg_testset_save_CFLAGS="$CFLAGS"
17752
17753if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17754	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17755	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17756printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17757if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17758then :
17759  printf %s "(cached) " >&6
17760else case e in #(
17761  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17762/* end confdefs.h.  */
17763int i;
17764_ACEOF
17765if ac_fn_c_try_compile "$LINENO"
17766then :
17767  xorg_cv_cc_flag_unknown_warning_option=yes
17768else case e in #(
17769  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17770esac
17771fi
17772rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17773esac
17774fi
17775{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17776printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17777	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17778	CFLAGS="$xorg_testset_save_CFLAGS"
17779fi
17780
17781if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17782	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17783		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17784	fi
17785	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17786	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17787printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17788if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17789then :
17790  printf %s "(cached) " >&6
17791else case e in #(
17792  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17793/* end confdefs.h.  */
17794int i;
17795_ACEOF
17796if ac_fn_c_try_compile "$LINENO"
17797then :
17798  xorg_cv_cc_flag_unused_command_line_argument=yes
17799else case e in #(
17800  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17801esac
17802fi
17803rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17804esac
17805fi
17806{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17807printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17808	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17809	CFLAGS="$xorg_testset_save_CFLAGS"
17810fi
17811
17812found="no"
17813
17814	if test $found = "no" ; then
17815		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17816			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17817		fi
17818
17819		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17820			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17821		fi
17822
17823		CFLAGS="$CFLAGS -Winit-self"
17824
17825		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
17826printf %s "checking if $CC supports -Winit-self... " >&6; }
17827		cacheid=xorg_cv_cc_flag__Winit_self
17828		if eval test \${$cacheid+y}
17829then :
17830  printf %s "(cached) " >&6
17831else case e in #(
17832  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17833/* end confdefs.h.  */
17834int i;
17835int
17836main (void)
17837{
17838
17839  ;
17840  return 0;
17841}
17842_ACEOF
17843if ac_fn_c_try_link "$LINENO"
17844then :
17845  eval $cacheid=yes
17846else case e in #(
17847  e) eval $cacheid=no ;;
17848esac
17849fi
17850rm -f core conftest.err conftest.$ac_objext conftest.beam \
17851    conftest$ac_exeext conftest.$ac_ext ;;
17852esac
17853fi
17854
17855
17856		CFLAGS="$xorg_testset_save_CFLAGS"
17857
17858		eval supported=\$$cacheid
17859		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17860printf "%s\n" "$supported" >&6; }
17861		if test "$supported" = "yes" ; then
17862			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
17863			found="yes"
17864		fi
17865	fi
17866
17867
17868
17869
17870
17871
17872
17873
17874
17875
17876
17877
17878
17879
17880
17881xorg_testset_save_CFLAGS="$CFLAGS"
17882
17883if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17884	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17885	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17886printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17887if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17888then :
17889  printf %s "(cached) " >&6
17890else case e in #(
17891  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17892/* end confdefs.h.  */
17893int i;
17894_ACEOF
17895if ac_fn_c_try_compile "$LINENO"
17896then :
17897  xorg_cv_cc_flag_unknown_warning_option=yes
17898else case e in #(
17899  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17900esac
17901fi
17902rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17903esac
17904fi
17905{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17906printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17907	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17908	CFLAGS="$xorg_testset_save_CFLAGS"
17909fi
17910
17911if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17912	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17913		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17914	fi
17915	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17916	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17917printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17918if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17919then :
17920  printf %s "(cached) " >&6
17921else case e in #(
17922  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17923/* end confdefs.h.  */
17924int i;
17925_ACEOF
17926if ac_fn_c_try_compile "$LINENO"
17927then :
17928  xorg_cv_cc_flag_unused_command_line_argument=yes
17929else case e in #(
17930  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17931esac
17932fi
17933rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17934esac
17935fi
17936{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17937printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17938	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17939	CFLAGS="$xorg_testset_save_CFLAGS"
17940fi
17941
17942found="no"
17943
17944	if test $found = "no" ; then
17945		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17946			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17947		fi
17948
17949		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17950			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17951		fi
17952
17953		CFLAGS="$CFLAGS -Wmain"
17954
17955		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
17956printf %s "checking if $CC supports -Wmain... " >&6; }
17957		cacheid=xorg_cv_cc_flag__Wmain
17958		if eval test \${$cacheid+y}
17959then :
17960  printf %s "(cached) " >&6
17961else case e in #(
17962  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17963/* end confdefs.h.  */
17964int i;
17965int
17966main (void)
17967{
17968
17969  ;
17970  return 0;
17971}
17972_ACEOF
17973if ac_fn_c_try_link "$LINENO"
17974then :
17975  eval $cacheid=yes
17976else case e in #(
17977  e) eval $cacheid=no ;;
17978esac
17979fi
17980rm -f core conftest.err conftest.$ac_objext conftest.beam \
17981    conftest$ac_exeext conftest.$ac_ext ;;
17982esac
17983fi
17984
17985
17986		CFLAGS="$xorg_testset_save_CFLAGS"
17987
17988		eval supported=\$$cacheid
17989		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17990printf "%s\n" "$supported" >&6; }
17991		if test "$supported" = "yes" ; then
17992			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
17993			found="yes"
17994		fi
17995	fi
17996
17997
17998
17999
18000
18001
18002
18003
18004
18005
18006
18007
18008
18009
18010
18011xorg_testset_save_CFLAGS="$CFLAGS"
18012
18013if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18014	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18015	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18016printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18017if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18018then :
18019  printf %s "(cached) " >&6
18020else case e in #(
18021  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18022/* end confdefs.h.  */
18023int i;
18024_ACEOF
18025if ac_fn_c_try_compile "$LINENO"
18026then :
18027  xorg_cv_cc_flag_unknown_warning_option=yes
18028else case e in #(
18029  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18030esac
18031fi
18032rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18033esac
18034fi
18035{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18036printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18037	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18038	CFLAGS="$xorg_testset_save_CFLAGS"
18039fi
18040
18041if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18042	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18043		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18044	fi
18045	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18046	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18047printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18048if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18049then :
18050  printf %s "(cached) " >&6
18051else case e in #(
18052  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18053/* end confdefs.h.  */
18054int i;
18055_ACEOF
18056if ac_fn_c_try_compile "$LINENO"
18057then :
18058  xorg_cv_cc_flag_unused_command_line_argument=yes
18059else case e in #(
18060  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18061esac
18062fi
18063rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18064esac
18065fi
18066{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18067printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18068	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18069	CFLAGS="$xorg_testset_save_CFLAGS"
18070fi
18071
18072found="no"
18073
18074	if test $found = "no" ; then
18075		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18076			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18077		fi
18078
18079		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18080			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18081		fi
18082
18083		CFLAGS="$CFLAGS -Wmissing-braces"
18084
18085		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
18086printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
18087		cacheid=xorg_cv_cc_flag__Wmissing_braces
18088		if eval test \${$cacheid+y}
18089then :
18090  printf %s "(cached) " >&6
18091else case e in #(
18092  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18093/* end confdefs.h.  */
18094int i;
18095int
18096main (void)
18097{
18098
18099  ;
18100  return 0;
18101}
18102_ACEOF
18103if ac_fn_c_try_link "$LINENO"
18104then :
18105  eval $cacheid=yes
18106else case e in #(
18107  e) eval $cacheid=no ;;
18108esac
18109fi
18110rm -f core conftest.err conftest.$ac_objext conftest.beam \
18111    conftest$ac_exeext conftest.$ac_ext ;;
18112esac
18113fi
18114
18115
18116		CFLAGS="$xorg_testset_save_CFLAGS"
18117
18118		eval supported=\$$cacheid
18119		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18120printf "%s\n" "$supported" >&6; }
18121		if test "$supported" = "yes" ; then
18122			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
18123			found="yes"
18124		fi
18125	fi
18126
18127
18128
18129
18130
18131
18132
18133
18134
18135
18136
18137
18138
18139
18140
18141xorg_testset_save_CFLAGS="$CFLAGS"
18142
18143if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18144	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18145	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18146printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18147if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18148then :
18149  printf %s "(cached) " >&6
18150else case e in #(
18151  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18152/* end confdefs.h.  */
18153int i;
18154_ACEOF
18155if ac_fn_c_try_compile "$LINENO"
18156then :
18157  xorg_cv_cc_flag_unknown_warning_option=yes
18158else case e in #(
18159  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18160esac
18161fi
18162rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18163esac
18164fi
18165{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18166printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18167	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18168	CFLAGS="$xorg_testset_save_CFLAGS"
18169fi
18170
18171if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18172	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18173		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18174	fi
18175	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18176	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18177printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18178if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18179then :
18180  printf %s "(cached) " >&6
18181else case e in #(
18182  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18183/* end confdefs.h.  */
18184int i;
18185_ACEOF
18186if ac_fn_c_try_compile "$LINENO"
18187then :
18188  xorg_cv_cc_flag_unused_command_line_argument=yes
18189else case e in #(
18190  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18191esac
18192fi
18193rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18194esac
18195fi
18196{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18197printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18198	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18199	CFLAGS="$xorg_testset_save_CFLAGS"
18200fi
18201
18202found="no"
18203
18204	if test $found = "no" ; then
18205		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18206			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18207		fi
18208
18209		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18210			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18211		fi
18212
18213		CFLAGS="$CFLAGS -Wsequence-point"
18214
18215		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
18216printf %s "checking if $CC supports -Wsequence-point... " >&6; }
18217		cacheid=xorg_cv_cc_flag__Wsequence_point
18218		if eval test \${$cacheid+y}
18219then :
18220  printf %s "(cached) " >&6
18221else case e in #(
18222  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18223/* end confdefs.h.  */
18224int i;
18225int
18226main (void)
18227{
18228
18229  ;
18230  return 0;
18231}
18232_ACEOF
18233if ac_fn_c_try_link "$LINENO"
18234then :
18235  eval $cacheid=yes
18236else case e in #(
18237  e) eval $cacheid=no ;;
18238esac
18239fi
18240rm -f core conftest.err conftest.$ac_objext conftest.beam \
18241    conftest$ac_exeext conftest.$ac_ext ;;
18242esac
18243fi
18244
18245
18246		CFLAGS="$xorg_testset_save_CFLAGS"
18247
18248		eval supported=\$$cacheid
18249		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18250printf "%s\n" "$supported" >&6; }
18251		if test "$supported" = "yes" ; then
18252			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
18253			found="yes"
18254		fi
18255	fi
18256
18257
18258
18259
18260
18261
18262
18263
18264
18265
18266
18267
18268
18269
18270
18271xorg_testset_save_CFLAGS="$CFLAGS"
18272
18273if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18274	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18275	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18276printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18277if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18278then :
18279  printf %s "(cached) " >&6
18280else case e in #(
18281  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18282/* end confdefs.h.  */
18283int i;
18284_ACEOF
18285if ac_fn_c_try_compile "$LINENO"
18286then :
18287  xorg_cv_cc_flag_unknown_warning_option=yes
18288else case e in #(
18289  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18290esac
18291fi
18292rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18293esac
18294fi
18295{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18296printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18297	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18298	CFLAGS="$xorg_testset_save_CFLAGS"
18299fi
18300
18301if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18302	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18303		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18304	fi
18305	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18306	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18307printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18308if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18309then :
18310  printf %s "(cached) " >&6
18311else case e in #(
18312  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18313/* end confdefs.h.  */
18314int i;
18315_ACEOF
18316if ac_fn_c_try_compile "$LINENO"
18317then :
18318  xorg_cv_cc_flag_unused_command_line_argument=yes
18319else case e in #(
18320  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18321esac
18322fi
18323rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18324esac
18325fi
18326{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18327printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18328	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18329	CFLAGS="$xorg_testset_save_CFLAGS"
18330fi
18331
18332found="no"
18333
18334	if test $found = "no" ; then
18335		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18336			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18337		fi
18338
18339		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18340			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18341		fi
18342
18343		CFLAGS="$CFLAGS -Wreturn-type"
18344
18345		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
18346printf %s "checking if $CC supports -Wreturn-type... " >&6; }
18347		cacheid=xorg_cv_cc_flag__Wreturn_type
18348		if eval test \${$cacheid+y}
18349then :
18350  printf %s "(cached) " >&6
18351else case e in #(
18352  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18353/* end confdefs.h.  */
18354int i;
18355int
18356main (void)
18357{
18358
18359  ;
18360  return 0;
18361}
18362_ACEOF
18363if ac_fn_c_try_link "$LINENO"
18364then :
18365  eval $cacheid=yes
18366else case e in #(
18367  e) eval $cacheid=no ;;
18368esac
18369fi
18370rm -f core conftest.err conftest.$ac_objext conftest.beam \
18371    conftest$ac_exeext conftest.$ac_ext ;;
18372esac
18373fi
18374
18375
18376		CFLAGS="$xorg_testset_save_CFLAGS"
18377
18378		eval supported=\$$cacheid
18379		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18380printf "%s\n" "$supported" >&6; }
18381		if test "$supported" = "yes" ; then
18382			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
18383			found="yes"
18384		fi
18385	fi
18386
18387
18388
18389
18390
18391
18392
18393
18394
18395
18396
18397
18398
18399
18400
18401xorg_testset_save_CFLAGS="$CFLAGS"
18402
18403if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18404	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18405	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18406printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18407if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18408then :
18409  printf %s "(cached) " >&6
18410else case e in #(
18411  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18412/* end confdefs.h.  */
18413int i;
18414_ACEOF
18415if ac_fn_c_try_compile "$LINENO"
18416then :
18417  xorg_cv_cc_flag_unknown_warning_option=yes
18418else case e in #(
18419  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18420esac
18421fi
18422rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18423esac
18424fi
18425{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18426printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18427	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18428	CFLAGS="$xorg_testset_save_CFLAGS"
18429fi
18430
18431if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18432	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18433		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18434	fi
18435	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18436	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18437printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18438if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18439then :
18440  printf %s "(cached) " >&6
18441else case e in #(
18442  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18443/* end confdefs.h.  */
18444int i;
18445_ACEOF
18446if ac_fn_c_try_compile "$LINENO"
18447then :
18448  xorg_cv_cc_flag_unused_command_line_argument=yes
18449else case e in #(
18450  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18451esac
18452fi
18453rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18454esac
18455fi
18456{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18457printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18458	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18459	CFLAGS="$xorg_testset_save_CFLAGS"
18460fi
18461
18462found="no"
18463
18464	if test $found = "no" ; then
18465		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18466			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18467		fi
18468
18469		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18470			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18471		fi
18472
18473		CFLAGS="$CFLAGS -Wtrigraphs"
18474
18475		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
18476printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
18477		cacheid=xorg_cv_cc_flag__Wtrigraphs
18478		if eval test \${$cacheid+y}
18479then :
18480  printf %s "(cached) " >&6
18481else case e in #(
18482  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18483/* end confdefs.h.  */
18484int i;
18485int
18486main (void)
18487{
18488
18489  ;
18490  return 0;
18491}
18492_ACEOF
18493if ac_fn_c_try_link "$LINENO"
18494then :
18495  eval $cacheid=yes
18496else case e in #(
18497  e) eval $cacheid=no ;;
18498esac
18499fi
18500rm -f core conftest.err conftest.$ac_objext conftest.beam \
18501    conftest$ac_exeext conftest.$ac_ext ;;
18502esac
18503fi
18504
18505
18506		CFLAGS="$xorg_testset_save_CFLAGS"
18507
18508		eval supported=\$$cacheid
18509		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18510printf "%s\n" "$supported" >&6; }
18511		if test "$supported" = "yes" ; then
18512			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
18513			found="yes"
18514		fi
18515	fi
18516
18517
18518
18519
18520
18521
18522
18523
18524
18525
18526
18527
18528
18529
18530
18531xorg_testset_save_CFLAGS="$CFLAGS"
18532
18533if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18534	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18535	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18536printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18537if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18538then :
18539  printf %s "(cached) " >&6
18540else case e in #(
18541  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18542/* end confdefs.h.  */
18543int i;
18544_ACEOF
18545if ac_fn_c_try_compile "$LINENO"
18546then :
18547  xorg_cv_cc_flag_unknown_warning_option=yes
18548else case e in #(
18549  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18550esac
18551fi
18552rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18553esac
18554fi
18555{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18556printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18557	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18558	CFLAGS="$xorg_testset_save_CFLAGS"
18559fi
18560
18561if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18562	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18563		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18564	fi
18565	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18566	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18567printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18568if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18569then :
18570  printf %s "(cached) " >&6
18571else case e in #(
18572  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18573/* end confdefs.h.  */
18574int i;
18575_ACEOF
18576if ac_fn_c_try_compile "$LINENO"
18577then :
18578  xorg_cv_cc_flag_unused_command_line_argument=yes
18579else case e in #(
18580  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18581esac
18582fi
18583rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18584esac
18585fi
18586{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18587printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18588	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18589	CFLAGS="$xorg_testset_save_CFLAGS"
18590fi
18591
18592found="no"
18593
18594	if test $found = "no" ; then
18595		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18596			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18597		fi
18598
18599		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18600			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18601		fi
18602
18603		CFLAGS="$CFLAGS -Warray-bounds"
18604
18605		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
18606printf %s "checking if $CC supports -Warray-bounds... " >&6; }
18607		cacheid=xorg_cv_cc_flag__Warray_bounds
18608		if eval test \${$cacheid+y}
18609then :
18610  printf %s "(cached) " >&6
18611else case e in #(
18612  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18613/* end confdefs.h.  */
18614int i;
18615int
18616main (void)
18617{
18618
18619  ;
18620  return 0;
18621}
18622_ACEOF
18623if ac_fn_c_try_link "$LINENO"
18624then :
18625  eval $cacheid=yes
18626else case e in #(
18627  e) eval $cacheid=no ;;
18628esac
18629fi
18630rm -f core conftest.err conftest.$ac_objext conftest.beam \
18631    conftest$ac_exeext conftest.$ac_ext ;;
18632esac
18633fi
18634
18635
18636		CFLAGS="$xorg_testset_save_CFLAGS"
18637
18638		eval supported=\$$cacheid
18639		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18640printf "%s\n" "$supported" >&6; }
18641		if test "$supported" = "yes" ; then
18642			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
18643			found="yes"
18644		fi
18645	fi
18646
18647
18648
18649
18650
18651
18652
18653
18654
18655
18656
18657
18658
18659
18660
18661xorg_testset_save_CFLAGS="$CFLAGS"
18662
18663if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18664	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18665	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18666printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18667if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18668then :
18669  printf %s "(cached) " >&6
18670else case e in #(
18671  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18672/* end confdefs.h.  */
18673int i;
18674_ACEOF
18675if ac_fn_c_try_compile "$LINENO"
18676then :
18677  xorg_cv_cc_flag_unknown_warning_option=yes
18678else case e in #(
18679  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18680esac
18681fi
18682rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18683esac
18684fi
18685{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18686printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18687	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18688	CFLAGS="$xorg_testset_save_CFLAGS"
18689fi
18690
18691if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18692	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18693		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18694	fi
18695	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18696	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18697printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18698if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18699then :
18700  printf %s "(cached) " >&6
18701else case e in #(
18702  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18703/* end confdefs.h.  */
18704int i;
18705_ACEOF
18706if ac_fn_c_try_compile "$LINENO"
18707then :
18708  xorg_cv_cc_flag_unused_command_line_argument=yes
18709else case e in #(
18710  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18711esac
18712fi
18713rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18714esac
18715fi
18716{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18717printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18718	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18719	CFLAGS="$xorg_testset_save_CFLAGS"
18720fi
18721
18722found="no"
18723
18724	if test $found = "no" ; then
18725		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18726			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18727		fi
18728
18729		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18730			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18731		fi
18732
18733		CFLAGS="$CFLAGS -Wwrite-strings"
18734
18735		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
18736printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
18737		cacheid=xorg_cv_cc_flag__Wwrite_strings
18738		if eval test \${$cacheid+y}
18739then :
18740  printf %s "(cached) " >&6
18741else case e in #(
18742  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18743/* end confdefs.h.  */
18744int i;
18745int
18746main (void)
18747{
18748
18749  ;
18750  return 0;
18751}
18752_ACEOF
18753if ac_fn_c_try_link "$LINENO"
18754then :
18755  eval $cacheid=yes
18756else case e in #(
18757  e) eval $cacheid=no ;;
18758esac
18759fi
18760rm -f core conftest.err conftest.$ac_objext conftest.beam \
18761    conftest$ac_exeext conftest.$ac_ext ;;
18762esac
18763fi
18764
18765
18766		CFLAGS="$xorg_testset_save_CFLAGS"
18767
18768		eval supported=\$$cacheid
18769		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18770printf "%s\n" "$supported" >&6; }
18771		if test "$supported" = "yes" ; then
18772			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
18773			found="yes"
18774		fi
18775	fi
18776
18777
18778
18779
18780
18781
18782
18783
18784
18785
18786
18787
18788
18789
18790
18791xorg_testset_save_CFLAGS="$CFLAGS"
18792
18793if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18794	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18795	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18796printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18797if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18798then :
18799  printf %s "(cached) " >&6
18800else case e in #(
18801  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18802/* end confdefs.h.  */
18803int i;
18804_ACEOF
18805if ac_fn_c_try_compile "$LINENO"
18806then :
18807  xorg_cv_cc_flag_unknown_warning_option=yes
18808else case e in #(
18809  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18810esac
18811fi
18812rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18813esac
18814fi
18815{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18816printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18817	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18818	CFLAGS="$xorg_testset_save_CFLAGS"
18819fi
18820
18821if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18822	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18823		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18824	fi
18825	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18826	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18827printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18828if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18829then :
18830  printf %s "(cached) " >&6
18831else case e in #(
18832  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18833/* end confdefs.h.  */
18834int i;
18835_ACEOF
18836if ac_fn_c_try_compile "$LINENO"
18837then :
18838  xorg_cv_cc_flag_unused_command_line_argument=yes
18839else case e in #(
18840  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18841esac
18842fi
18843rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18844esac
18845fi
18846{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18847printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18848	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18849	CFLAGS="$xorg_testset_save_CFLAGS"
18850fi
18851
18852found="no"
18853
18854	if test $found = "no" ; then
18855		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18856			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18857		fi
18858
18859		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18860			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18861		fi
18862
18863		CFLAGS="$CFLAGS -Waddress"
18864
18865		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
18866printf %s "checking if $CC supports -Waddress... " >&6; }
18867		cacheid=xorg_cv_cc_flag__Waddress
18868		if eval test \${$cacheid+y}
18869then :
18870  printf %s "(cached) " >&6
18871else case e in #(
18872  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18873/* end confdefs.h.  */
18874int i;
18875int
18876main (void)
18877{
18878
18879  ;
18880  return 0;
18881}
18882_ACEOF
18883if ac_fn_c_try_link "$LINENO"
18884then :
18885  eval $cacheid=yes
18886else case e in #(
18887  e) eval $cacheid=no ;;
18888esac
18889fi
18890rm -f core conftest.err conftest.$ac_objext conftest.beam \
18891    conftest$ac_exeext conftest.$ac_ext ;;
18892esac
18893fi
18894
18895
18896		CFLAGS="$xorg_testset_save_CFLAGS"
18897
18898		eval supported=\$$cacheid
18899		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18900printf "%s\n" "$supported" >&6; }
18901		if test "$supported" = "yes" ; then
18902			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
18903			found="yes"
18904		fi
18905	fi
18906
18907
18908
18909
18910
18911
18912
18913
18914
18915
18916
18917
18918
18919
18920
18921xorg_testset_save_CFLAGS="$CFLAGS"
18922
18923if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18924	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18925	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18926printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18927if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18928then :
18929  printf %s "(cached) " >&6
18930else case e in #(
18931  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18932/* end confdefs.h.  */
18933int i;
18934_ACEOF
18935if ac_fn_c_try_compile "$LINENO"
18936then :
18937  xorg_cv_cc_flag_unknown_warning_option=yes
18938else case e in #(
18939  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18940esac
18941fi
18942rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18943esac
18944fi
18945{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18946printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18947	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18948	CFLAGS="$xorg_testset_save_CFLAGS"
18949fi
18950
18951if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18952	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18953		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18954	fi
18955	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18956	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18957printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18958if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18959then :
18960  printf %s "(cached) " >&6
18961else case e in #(
18962  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18963/* end confdefs.h.  */
18964int i;
18965_ACEOF
18966if ac_fn_c_try_compile "$LINENO"
18967then :
18968  xorg_cv_cc_flag_unused_command_line_argument=yes
18969else case e in #(
18970  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18971esac
18972fi
18973rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18974esac
18975fi
18976{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18977printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18978	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18979	CFLAGS="$xorg_testset_save_CFLAGS"
18980fi
18981
18982found="no"
18983
18984	if test $found = "no" ; then
18985		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18986			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18987		fi
18988
18989		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18990			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18991		fi
18992
18993		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
18994
18995		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
18996printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
18997		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
18998		if eval test \${$cacheid+y}
18999then :
19000  printf %s "(cached) " >&6
19001else case e in #(
19002  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19003/* end confdefs.h.  */
19004int i;
19005int
19006main (void)
19007{
19008
19009  ;
19010  return 0;
19011}
19012_ACEOF
19013if ac_fn_c_try_link "$LINENO"
19014then :
19015  eval $cacheid=yes
19016else case e in #(
19017  e) eval $cacheid=no ;;
19018esac
19019fi
19020rm -f core conftest.err conftest.$ac_objext conftest.beam \
19021    conftest$ac_exeext conftest.$ac_ext ;;
19022esac
19023fi
19024
19025
19026		CFLAGS="$xorg_testset_save_CFLAGS"
19027
19028		eval supported=\$$cacheid
19029		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19030printf "%s\n" "$supported" >&6; }
19031		if test "$supported" = "yes" ; then
19032			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
19033			found="yes"
19034		fi
19035	fi
19036
19037
19038
19039
19040
19041
19042
19043
19044
19045
19046
19047
19048
19049
19050
19051xorg_testset_save_CFLAGS="$CFLAGS"
19052
19053if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19054	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19055	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19056printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19057if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19058then :
19059  printf %s "(cached) " >&6
19060else case e in #(
19061  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19062/* end confdefs.h.  */
19063int i;
19064_ACEOF
19065if ac_fn_c_try_compile "$LINENO"
19066then :
19067  xorg_cv_cc_flag_unknown_warning_option=yes
19068else case e in #(
19069  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19070esac
19071fi
19072rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19073esac
19074fi
19075{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19076printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19077	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19078	CFLAGS="$xorg_testset_save_CFLAGS"
19079fi
19080
19081if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19082	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19083		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19084	fi
19085	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19086	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19087printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19088if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19089then :
19090  printf %s "(cached) " >&6
19091else case e in #(
19092  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19093/* end confdefs.h.  */
19094int i;
19095_ACEOF
19096if ac_fn_c_try_compile "$LINENO"
19097then :
19098  xorg_cv_cc_flag_unused_command_line_argument=yes
19099else case e in #(
19100  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19101esac
19102fi
19103rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19104esac
19105fi
19106{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19107printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19108	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19109	CFLAGS="$xorg_testset_save_CFLAGS"
19110fi
19111
19112found="no"
19113
19114	if test $found = "no" ; then
19115		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19116			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19117		fi
19118
19119		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19120			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19121		fi
19122
19123		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
19124
19125		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
19126printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
19127		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
19128		if eval test \${$cacheid+y}
19129then :
19130  printf %s "(cached) " >&6
19131else case e in #(
19132  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19133/* end confdefs.h.  */
19134int i;
19135int
19136main (void)
19137{
19138
19139  ;
19140  return 0;
19141}
19142_ACEOF
19143if ac_fn_c_try_link "$LINENO"
19144then :
19145  eval $cacheid=yes
19146else case e in #(
19147  e) eval $cacheid=no ;;
19148esac
19149fi
19150rm -f core conftest.err conftest.$ac_objext conftest.beam \
19151    conftest$ac_exeext conftest.$ac_ext ;;
19152esac
19153fi
19154
19155
19156		CFLAGS="$xorg_testset_save_CFLAGS"
19157
19158		eval supported=\$$cacheid
19159		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19160printf "%s\n" "$supported" >&6; }
19161		if test "$supported" = "yes" ; then
19162			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
19163			found="yes"
19164		fi
19165	fi
19166
19167
19168fi
19169
19170
19171
19172
19173
19174
19175
19176		CWARNFLAGS="$BASE_CFLAGS"
19177		if  test "x$GCC" = xyes ; then
19178		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
19179		fi
19180
19181
19182
19183
19184
19185
19186
19187
19188# Check whether --enable-strict-compilation was given.
19189if test ${enable_strict_compilation+y}
19190then :
19191  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
19192else case e in #(
19193  e) STRICT_COMPILE=no ;;
19194esac
19195fi
19196
19197
19198
19199
19200
19201
19202STRICT_CFLAGS=""
19203
19204
19205
19206
19207
19208
19209
19210
19211
19212
19213
19214
19215
19216xorg_testset_save_CFLAGS="$CFLAGS"
19217
19218if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19219	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19220	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19221printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19222if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19223then :
19224  printf %s "(cached) " >&6
19225else case e in #(
19226  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19227/* end confdefs.h.  */
19228int i;
19229_ACEOF
19230if ac_fn_c_try_compile "$LINENO"
19231then :
19232  xorg_cv_cc_flag_unknown_warning_option=yes
19233else case e in #(
19234  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19235esac
19236fi
19237rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19238esac
19239fi
19240{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19241printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19242	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19243	CFLAGS="$xorg_testset_save_CFLAGS"
19244fi
19245
19246if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19247	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19248		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19249	fi
19250	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19251	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19252printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19253if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19254then :
19255  printf %s "(cached) " >&6
19256else case e in #(
19257  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19258/* end confdefs.h.  */
19259int i;
19260_ACEOF
19261if ac_fn_c_try_compile "$LINENO"
19262then :
19263  xorg_cv_cc_flag_unused_command_line_argument=yes
19264else case e in #(
19265  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19266esac
19267fi
19268rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19269esac
19270fi
19271{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19272printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19273	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19274	CFLAGS="$xorg_testset_save_CFLAGS"
19275fi
19276
19277found="no"
19278
19279	if test $found = "no" ; then
19280		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19281			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19282		fi
19283
19284		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19285			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19286		fi
19287
19288		CFLAGS="$CFLAGS -pedantic"
19289
19290		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
19291printf %s "checking if $CC supports -pedantic... " >&6; }
19292		cacheid=xorg_cv_cc_flag__pedantic
19293		if eval test \${$cacheid+y}
19294then :
19295  printf %s "(cached) " >&6
19296else case e in #(
19297  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19298/* end confdefs.h.  */
19299int i;
19300int
19301main (void)
19302{
19303
19304  ;
19305  return 0;
19306}
19307_ACEOF
19308if ac_fn_c_try_link "$LINENO"
19309then :
19310  eval $cacheid=yes
19311else case e in #(
19312  e) eval $cacheid=no ;;
19313esac
19314fi
19315rm -f core conftest.err conftest.$ac_objext conftest.beam \
19316    conftest$ac_exeext conftest.$ac_ext ;;
19317esac
19318fi
19319
19320
19321		CFLAGS="$xorg_testset_save_CFLAGS"
19322
19323		eval supported=\$$cacheid
19324		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19325printf "%s\n" "$supported" >&6; }
19326		if test "$supported" = "yes" ; then
19327			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
19328			found="yes"
19329		fi
19330	fi
19331
19332
19333
19334
19335
19336
19337
19338
19339
19340
19341
19342
19343
19344
19345
19346xorg_testset_save_CFLAGS="$CFLAGS"
19347
19348if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19349	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19350	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19351printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19352if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19353then :
19354  printf %s "(cached) " >&6
19355else case e in #(
19356  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19357/* end confdefs.h.  */
19358int i;
19359_ACEOF
19360if ac_fn_c_try_compile "$LINENO"
19361then :
19362  xorg_cv_cc_flag_unknown_warning_option=yes
19363else case e in #(
19364  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19365esac
19366fi
19367rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19368esac
19369fi
19370{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19371printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19372	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19373	CFLAGS="$xorg_testset_save_CFLAGS"
19374fi
19375
19376if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19377	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19378		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19379	fi
19380	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19381	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19382printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19383if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19384then :
19385  printf %s "(cached) " >&6
19386else case e in #(
19387  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19388/* end confdefs.h.  */
19389int i;
19390_ACEOF
19391if ac_fn_c_try_compile "$LINENO"
19392then :
19393  xorg_cv_cc_flag_unused_command_line_argument=yes
19394else case e in #(
19395  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19396esac
19397fi
19398rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19399esac
19400fi
19401{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19402printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19403	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19404	CFLAGS="$xorg_testset_save_CFLAGS"
19405fi
19406
19407found="no"
19408
19409	if test $found = "no" ; then
19410		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19411			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19412		fi
19413
19414		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19415			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19416		fi
19417
19418		CFLAGS="$CFLAGS -Werror"
19419
19420		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
19421printf %s "checking if $CC supports -Werror... " >&6; }
19422		cacheid=xorg_cv_cc_flag__Werror
19423		if eval test \${$cacheid+y}
19424then :
19425  printf %s "(cached) " >&6
19426else case e in #(
19427  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19428/* end confdefs.h.  */
19429int i;
19430int
19431main (void)
19432{
19433
19434  ;
19435  return 0;
19436}
19437_ACEOF
19438if ac_fn_c_try_link "$LINENO"
19439then :
19440  eval $cacheid=yes
19441else case e in #(
19442  e) eval $cacheid=no ;;
19443esac
19444fi
19445rm -f core conftest.err conftest.$ac_objext conftest.beam \
19446    conftest$ac_exeext conftest.$ac_ext ;;
19447esac
19448fi
19449
19450
19451		CFLAGS="$xorg_testset_save_CFLAGS"
19452
19453		eval supported=\$$cacheid
19454		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19455printf "%s\n" "$supported" >&6; }
19456		if test "$supported" = "yes" ; then
19457			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
19458			found="yes"
19459		fi
19460	fi
19461
19462	if test $found = "no" ; then
19463		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19464			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19465		fi
19466
19467		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19468			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19469		fi
19470
19471		CFLAGS="$CFLAGS -errwarn"
19472
19473		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
19474printf %s "checking if $CC supports -errwarn... " >&6; }
19475		cacheid=xorg_cv_cc_flag__errwarn
19476		if eval test \${$cacheid+y}
19477then :
19478  printf %s "(cached) " >&6
19479else case e in #(
19480  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19481/* end confdefs.h.  */
19482int i;
19483int
19484main (void)
19485{
19486
19487  ;
19488  return 0;
19489}
19490_ACEOF
19491if ac_fn_c_try_link "$LINENO"
19492then :
19493  eval $cacheid=yes
19494else case e in #(
19495  e) eval $cacheid=no ;;
19496esac
19497fi
19498rm -f core conftest.err conftest.$ac_objext conftest.beam \
19499    conftest$ac_exeext conftest.$ac_ext ;;
19500esac
19501fi
19502
19503
19504		CFLAGS="$xorg_testset_save_CFLAGS"
19505
19506		eval supported=\$$cacheid
19507		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19508printf "%s\n" "$supported" >&6; }
19509		if test "$supported" = "yes" ; then
19510			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
19511			found="yes"
19512		fi
19513	fi
19514
19515
19516
19517# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
19518# activate it with -Werror, so we add it here explicitly.
19519
19520
19521
19522
19523
19524
19525
19526
19527
19528
19529
19530
19531
19532xorg_testset_save_CFLAGS="$CFLAGS"
19533
19534if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19535	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19536	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19537printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19538if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19539then :
19540  printf %s "(cached) " >&6
19541else case e in #(
19542  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19543/* end confdefs.h.  */
19544int i;
19545_ACEOF
19546if ac_fn_c_try_compile "$LINENO"
19547then :
19548  xorg_cv_cc_flag_unknown_warning_option=yes
19549else case e in #(
19550  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19551esac
19552fi
19553rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19554esac
19555fi
19556{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19557printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19558	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19559	CFLAGS="$xorg_testset_save_CFLAGS"
19560fi
19561
19562if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19563	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19564		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19565	fi
19566	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19567	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19568printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19569if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19570then :
19571  printf %s "(cached) " >&6
19572else case e in #(
19573  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19574/* end confdefs.h.  */
19575int i;
19576_ACEOF
19577if ac_fn_c_try_compile "$LINENO"
19578then :
19579  xorg_cv_cc_flag_unused_command_line_argument=yes
19580else case e in #(
19581  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19582esac
19583fi
19584rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19585esac
19586fi
19587{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19588printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19589	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19590	CFLAGS="$xorg_testset_save_CFLAGS"
19591fi
19592
19593found="no"
19594
19595	if test $found = "no" ; then
19596		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19597			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19598		fi
19599
19600		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19601			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19602		fi
19603
19604		CFLAGS="$CFLAGS -Werror=attributes"
19605
19606		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
19607printf %s "checking if $CC supports -Werror=attributes... " >&6; }
19608		cacheid=xorg_cv_cc_flag__Werror_attributes
19609		if eval test \${$cacheid+y}
19610then :
19611  printf %s "(cached) " >&6
19612else case e in #(
19613  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19614/* end confdefs.h.  */
19615int i;
19616int
19617main (void)
19618{
19619
19620  ;
19621  return 0;
19622}
19623_ACEOF
19624if ac_fn_c_try_link "$LINENO"
19625then :
19626  eval $cacheid=yes
19627else case e in #(
19628  e) eval $cacheid=no ;;
19629esac
19630fi
19631rm -f core conftest.err conftest.$ac_objext conftest.beam \
19632    conftest$ac_exeext conftest.$ac_ext ;;
19633esac
19634fi
19635
19636
19637		CFLAGS="$xorg_testset_save_CFLAGS"
19638
19639		eval supported=\$$cacheid
19640		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19641printf "%s\n" "$supported" >&6; }
19642		if test "$supported" = "yes" ; then
19643			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
19644			found="yes"
19645		fi
19646	fi
19647
19648
19649
19650if test "x$STRICT_COMPILE" = "xyes"; then
19651    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
19652    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
19653fi
19654
19655
19656
19657
19658
19659
19660
19661
19662cat >>confdefs.h <<_ACEOF
19663#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
19664_ACEOF
19665
19666	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
19667	if test "x$PVM" = "x"; then
19668		PVM="0"
19669	fi
19670
19671printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
19672
19673	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
19674	if test "x$PVP" = "x"; then
19675		PVP="0"
19676	fi
19677
19678printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
19679
19680
19681
19682CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
19683mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
19684|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
19685touch \$(top_srcdir)/ChangeLog; \
19686echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
19687
19688
19689
19690
19691macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
19692INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
19693mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
19694|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
19695touch \$(top_srcdir)/INSTALL; \
19696echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
19697
19698
19699
19700
19701
19702
19703case $host_os in
19704    solaris*)
19705        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
19706        # check for a man page file found in later versions that use
19707        # traditional section numbers instead
19708        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
19709printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
19710if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
19711then :
19712  printf %s "(cached) " >&6
19713else case e in #(
19714  e) test "$cross_compiling" = yes &&
19715  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
19716if test -r "/usr/share/man/man7/attributes.7"; then
19717  ac_cv_file__usr_share_man_man7_attributes_7=yes
19718else
19719  ac_cv_file__usr_share_man_man7_attributes_7=no
19720fi ;;
19721esac
19722fi
19723{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
19724printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
19725if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
19726then :
19727  SYSV_MAN_SECTIONS=false
19728else case e in #(
19729  e) SYSV_MAN_SECTIONS=true ;;
19730esac
19731fi
19732
19733        ;;
19734    *) SYSV_MAN_SECTIONS=false ;;
19735esac
19736
19737if test x$APP_MAN_SUFFIX = x    ; then
19738    APP_MAN_SUFFIX=1
19739fi
19740if test x$APP_MAN_DIR = x    ; then
19741    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
19742fi
19743
19744if test x$LIB_MAN_SUFFIX = x    ; then
19745    LIB_MAN_SUFFIX=3
19746fi
19747if test x$LIB_MAN_DIR = x    ; then
19748    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
19749fi
19750
19751if test x$FILE_MAN_SUFFIX = x    ; then
19752    case $SYSV_MAN_SECTIONS in
19753	true)				FILE_MAN_SUFFIX=4  ;;
19754	*)				FILE_MAN_SUFFIX=5  ;;
19755    esac
19756fi
19757if test x$FILE_MAN_DIR = x    ; then
19758    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
19759fi
19760
19761if test x$MISC_MAN_SUFFIX = x    ; then
19762    case $SYSV_MAN_SECTIONS in
19763	true)				MISC_MAN_SUFFIX=5  ;;
19764	*)				MISC_MAN_SUFFIX=7  ;;
19765    esac
19766fi
19767if test x$MISC_MAN_DIR = x    ; then
19768    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
19769fi
19770
19771if test x$DRIVER_MAN_SUFFIX = x    ; then
19772    case $SYSV_MAN_SECTIONS in
19773	true)				DRIVER_MAN_SUFFIX=7  ;;
19774	*)				DRIVER_MAN_SUFFIX=4  ;;
19775    esac
19776fi
19777if test x$DRIVER_MAN_DIR = x    ; then
19778    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
19779fi
19780
19781if test x$ADMIN_MAN_SUFFIX = x    ; then
19782    case $SYSV_MAN_SECTIONS in
19783	true)				ADMIN_MAN_SUFFIX=1m ;;
19784	*)				ADMIN_MAN_SUFFIX=8  ;;
19785    esac
19786fi
19787if test x$ADMIN_MAN_DIR = x    ; then
19788    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
19789fi
19790
19791
19792
19793
19794
19795
19796
19797
19798
19799
19800
19801
19802
19803
19804
19805XORG_MAN_PAGE="X Version 11"
19806
19807MAN_SUBSTS="\
19808	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19809	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19810	-e 's|__xservername__|Xorg|g' \
19811	-e 's|__xconfigfile__|xorg.conf|g' \
19812	-e 's|__projectroot__|\$(prefix)|g' \
19813	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
19814	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
19815	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
19816	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
19817	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
19818	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
19819	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
19820
19821
19822
19823# Check whether --enable-silent-rules was given.
19824if test ${enable_silent_rules+y}
19825then :
19826  enableval=$enable_silent_rules;
19827fi
19828
19829case $enable_silent_rules in # (((
19830  yes) AM_DEFAULT_VERBOSITY=0;;
19831   no) AM_DEFAULT_VERBOSITY=1;;
19832    *) AM_DEFAULT_VERBOSITY=0;;
19833esac
19834am_make=${MAKE-make}
19835{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
19836printf %s "checking whether $am_make supports nested variables... " >&6; }
19837if test ${am_cv_make_support_nested_variables+y}
19838then :
19839  printf %s "(cached) " >&6
19840else case e in #(
19841  e) if printf "%s\n" 'TRUE=$(BAR$(V))
19842BAR0=false
19843BAR1=true
19844V=1
19845am__doit:
19846	@$(TRUE)
19847.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
19848  am_cv_make_support_nested_variables=yes
19849else
19850  am_cv_make_support_nested_variables=no
19851fi ;;
19852esac
19853fi
19854{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
19855printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
19856if test $am_cv_make_support_nested_variables = yes; then
19857    AM_V='$(V)'
19858  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
19859else
19860  AM_V=$AM_DEFAULT_VERBOSITY
19861  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
19862fi
19863AM_BACKSLASH='\'
19864
19865
19866
19867
19868# Require X.Org's font util macros 1.1 or later for XORG_FONTROOTDIR
19869
19870
19871
19872
19873
19874
19875
19876
19877
19878
19879
19880
19881
19882
19883	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for root directory for font files" >&5
19884printf %s "checking for root directory for font files... " >&6; }
19885
19886# Check whether --with-fontrootdir was given.
19887if test ${with_fontrootdir+y}
19888then :
19889  withval=$with_fontrootdir; FONTROOTDIR="$withval"
19890fi
19891
19892	# if --with-fontrootdir not specified...
19893	if test "x${FONTROOTDIR}" = "x"; then
19894		FONTROOTDIR=`$PKG_CONFIG --variable=fontrootdir fontutil`
19895	fi
19896	# ...and if pkg-config didn't find fontdir in fontutil.pc...
19897	if test "x${FONTROOTDIR}" = "x"; then
19898		FONTROOTDIR="${datadir}/fonts/X11"
19899	fi
19900
19901	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${FONTROOTDIR}" >&5
19902printf "%s\n" "${FONTROOTDIR}" >&6; }
19903
19904
19905
19906
19907	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for directory for encodings files" >&5
19908printf %s "checking for directory for encodings files... " >&6; }
19909
19910# Check whether --with-encodingsdir was given.
19911if test ${with_encodingsdir+y}
19912then :
19913  withval=$with_encodingsdir; ENCODINGSDIR="${withval}"
19914else case e in #(
19915  e) ENCODINGSDIR='${FONTROOTDIR}/encodings' ;;
19916esac
19917fi
19918
19919
19920	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${ENCODINGSDIR}" >&5
19921printf "%s\n" "${ENCODINGSDIR}" >&6; }
19922
19923
19924# zlib
19925ac_fn_c_check_header_compile "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
19926if test "x$ac_cv_header_zlib_h" = xyes
19927then :
19928
19929else case e in #(
19930  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
19931printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
19932as_fn_error $? "zlib.h is required to compile libfontenc
19933See 'config.log' for more details" "$LINENO" 5; } ;;
19934esac
19935fi
19936
19937{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gzclose in -lz" >&5
19938printf %s "checking for gzclose in -lz... " >&6; }
19939if test ${ac_cv_lib_z_gzclose+y}
19940then :
19941  printf %s "(cached) " >&6
19942else case e in #(
19943  e) ac_check_lib_save_LIBS=$LIBS
19944LIBS="-lz  $LIBS"
19945cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19946/* end confdefs.h.  */
19947
19948/* Override any GCC internal prototype to avoid an error.
19949   Use char because int might match the return type of a GCC
19950   builtin and then its argument prototype would still apply.
19951   The 'extern "C"' is for builds by C++ compilers;
19952   although this is not generally supported in C code supporting it here
19953   has little cost and some practical benefit (sr 110532).  */
19954#ifdef __cplusplus
19955extern "C"
19956#endif
19957char gzclose (void);
19958int
19959main (void)
19960{
19961return gzclose ();
19962  ;
19963  return 0;
19964}
19965_ACEOF
19966if ac_fn_c_try_link "$LINENO"
19967then :
19968  ac_cv_lib_z_gzclose=yes
19969else case e in #(
19970  e) ac_cv_lib_z_gzclose=no ;;
19971esac
19972fi
19973rm -f core conftest.err conftest.$ac_objext conftest.beam \
19974    conftest$ac_exeext conftest.$ac_ext
19975LIBS=$ac_check_lib_save_LIBS ;;
19976esac
19977fi
19978{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzclose" >&5
19979printf "%s\n" "$ac_cv_lib_z_gzclose" >&6; }
19980if test "x$ac_cv_lib_z_gzclose" = xyes
19981then :
19982  printf "%s\n" "#define HAVE_LIBZ 1" >>confdefs.h
19983
19984  LIBS="-lz $LIBS"
19985
19986else case e in #(
19987  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
19988printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
19989as_fn_error $? "zlib is required to compile libfontenc
19990See 'config.log' for more details" "$LINENO" 5; } ;;
19991esac
19992fi
19993
19994
19995# Obtain compiler/linker options for dependencies
19996
19997pkg_failed=no
19998{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FONTENC" >&5
19999printf %s "checking for FONTENC... " >&6; }
20000
20001if test -n "$FONTENC_CFLAGS"; then
20002    pkg_cv_FONTENC_CFLAGS="$FONTENC_CFLAGS"
20003 elif test -n "$PKG_CONFIG"; then
20004    if test -n "$PKG_CONFIG" && \
20005    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5
20006  ($PKG_CONFIG --exists --print-errors "xproto") 2>&5
20007  ac_status=$?
20008  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20009  test $ac_status = 0; }; then
20010  pkg_cv_FONTENC_CFLAGS=`$PKG_CONFIG --cflags "xproto" 2>/dev/null`
20011		      test "x$?" != "x0" && pkg_failed=yes
20012else
20013  pkg_failed=yes
20014fi
20015 else
20016    pkg_failed=untried
20017fi
20018if test -n "$FONTENC_LIBS"; then
20019    pkg_cv_FONTENC_LIBS="$FONTENC_LIBS"
20020 elif test -n "$PKG_CONFIG"; then
20021    if test -n "$PKG_CONFIG" && \
20022    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5
20023  ($PKG_CONFIG --exists --print-errors "xproto") 2>&5
20024  ac_status=$?
20025  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20026  test $ac_status = 0; }; then
20027  pkg_cv_FONTENC_LIBS=`$PKG_CONFIG --libs "xproto" 2>/dev/null`
20028		      test "x$?" != "x0" && pkg_failed=yes
20029else
20030  pkg_failed=yes
20031fi
20032 else
20033    pkg_failed=untried
20034fi
20035
20036
20037
20038if test $pkg_failed = yes; then
20039   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20040printf "%s\n" "no" >&6; }
20041
20042if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20043        _pkg_short_errors_supported=yes
20044else
20045        _pkg_short_errors_supported=no
20046fi
20047        if test $_pkg_short_errors_supported = yes; then
20048	        FONTENC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto" 2>&1`
20049        else
20050	        FONTENC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto" 2>&1`
20051        fi
20052	# Put the nasty error message in config.log where it belongs
20053	echo "$FONTENC_PKG_ERRORS" >&5
20054
20055	as_fn_error $? "Package requirements (xproto) were not met:
20056
20057$FONTENC_PKG_ERRORS
20058
20059Consider adjusting the PKG_CONFIG_PATH environment variable if you
20060installed software in a non-standard prefix.
20061
20062Alternatively, you may set the environment variables FONTENC_CFLAGS
20063and FONTENC_LIBS to avoid the need to call pkg-config.
20064See the pkg-config man page for more details." "$LINENO" 5
20065elif test $pkg_failed = untried; then
20066     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20067printf "%s\n" "no" >&6; }
20068	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
20069printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
20070as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
20071is in your PATH or set the PKG_CONFIG environment variable to the full
20072path to pkg-config.
20073
20074Alternatively, you may set the environment variables FONTENC_CFLAGS
20075and FONTENC_LIBS to avoid the need to call pkg-config.
20076See the pkg-config man page for more details.
20077
20078To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20079See 'config.log' for more details" "$LINENO" 5; }
20080else
20081	FONTENC_CFLAGS=$pkg_cv_FONTENC_CFLAGS
20082	FONTENC_LIBS=$pkg_cv_FONTENC_LIBS
20083        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20084printf "%s\n" "yes" >&6; }
20085
20086fi
20087
20088# Checks for typedefs, structures, and compiler characteristics.
20089# Check whether --enable-largefile was given.
20090if test ${enable_largefile+y}
20091then :
20092  enableval=$enable_largefile;
20093fi
20094if test "$enable_largefile,$enable_year2038" != no,no
20095then :
20096  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable large file support" >&5
20097printf %s "checking for $CC option to enable large file support... " >&6; }
20098if test ${ac_cv_sys_largefile_opts+y}
20099then :
20100  printf %s "(cached) " >&6
20101else case e in #(
20102  e) ac_save_CC="$CC"
20103  ac_opt_found=no
20104  for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1" "-n32"; do
20105    if test x"$ac_opt" != x"none needed"
20106then :
20107  CC="$ac_save_CC $ac_opt"
20108fi
20109    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20110/* end confdefs.h.  */
20111#include <sys/types.h>
20112#ifndef FTYPE
20113# define FTYPE off_t
20114#endif
20115 /* Check that FTYPE can represent 2**63 - 1 correctly.
20116    We can't simply define LARGE_FTYPE to be 9223372036854775807,
20117    since some C++ compilers masquerading as C compilers
20118    incorrectly reject 9223372036854775807.  */
20119#define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31))
20120  int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721
20121		       && LARGE_FTYPE % 2147483647 == 1)
20122		      ? 1 : -1];
20123int
20124main (void)
20125{
20126
20127  ;
20128  return 0;
20129}
20130_ACEOF
20131if ac_fn_c_try_compile "$LINENO"
20132then :
20133  if test x"$ac_opt" = x"none needed"
20134then :
20135  # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t.
20136	 CC="$CC -DFTYPE=ino_t"
20137	 if ac_fn_c_try_compile "$LINENO"
20138then :
20139
20140else case e in #(
20141  e) CC="$CC -D_FILE_OFFSET_BITS=64"
20142	    if ac_fn_c_try_compile "$LINENO"
20143then :
20144  ac_opt='-D_FILE_OFFSET_BITS=64'
20145fi
20146rm -f core conftest.err conftest.$ac_objext conftest.beam ;;
20147esac
20148fi
20149rm -f core conftest.err conftest.$ac_objext conftest.beam
20150fi
20151      ac_cv_sys_largefile_opts=$ac_opt
20152      ac_opt_found=yes
20153fi
20154rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20155    test $ac_opt_found = no || break
20156  done
20157  CC="$ac_save_CC"
20158
20159  test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;;
20160esac
20161fi
20162{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5
20163printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; }
20164
20165ac_have_largefile=yes
20166case $ac_cv_sys_largefile_opts in #(
20167  "none needed") :
20168     ;; #(
20169  "supported through gnulib") :
20170     ;; #(
20171  "support not detected") :
20172    ac_have_largefile=no ;; #(
20173  "-D_FILE_OFFSET_BITS=64") :
20174
20175printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h
20176 ;; #(
20177  "-D_LARGE_FILES=1") :
20178
20179printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h
20180 ;; #(
20181  "-n32") :
20182    CC="$CC -n32" ;; #(
20183  *) :
20184    as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;;
20185esac
20186
20187if test "$enable_year2038" != no
20188then :
20189  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option for timestamps after 2038" >&5
20190printf %s "checking for $CC option for timestamps after 2038... " >&6; }
20191if test ${ac_cv_sys_year2038_opts+y}
20192then :
20193  printf %s "(cached) " >&6
20194else case e in #(
20195  e) ac_save_CPPFLAGS="$CPPFLAGS"
20196  ac_opt_found=no
20197  for ac_opt in "none needed" "-D_TIME_BITS=64" "-D__MINGW_USE_VC2005_COMPAT" "-U_USE_32_BIT_TIME_T -D__MINGW_USE_VC2005_COMPAT"; do
20198    if test x"$ac_opt" != x"none needed"
20199then :
20200  CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"
20201fi
20202    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20203/* end confdefs.h.  */
20204
20205  #include <time.h>
20206  /* Check that time_t can represent 2**32 - 1 correctly.  */
20207  #define LARGE_TIME_T \\
20208    ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))
20209  int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535
20210                           && LARGE_TIME_T % 65537 == 0)
20211                          ? 1 : -1];
20212
20213int
20214main (void)
20215{
20216
20217  ;
20218  return 0;
20219}
20220_ACEOF
20221if ac_fn_c_try_compile "$LINENO"
20222then :
20223  ac_cv_sys_year2038_opts="$ac_opt"
20224      ac_opt_found=yes
20225fi
20226rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20227    test $ac_opt_found = no || break
20228  done
20229  CPPFLAGS="$ac_save_CPPFLAGS"
20230  test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;;
20231esac
20232fi
20233{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5
20234printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; }
20235
20236ac_have_year2038=yes
20237case $ac_cv_sys_year2038_opts in #(
20238  "none needed") :
20239     ;; #(
20240  "support not detected") :
20241    ac_have_year2038=no ;; #(
20242  "-D_TIME_BITS=64") :
20243
20244printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h
20245 ;; #(
20246  "-D__MINGW_USE_VC2005_COMPAT") :
20247
20248printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h
20249 ;; #(
20250  "-U_USE_32_BIT_TIME_T"*) :
20251    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
20252printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
20253as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It
20254will stop working after mid-January 2038. Remove
20255_USE_32BIT_TIME_T from the compiler flags.
20256See 'config.log' for more details" "$LINENO" 5; } ;; #(
20257  *) :
20258    as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;;
20259esac
20260
20261fi
20262
20263fi
20264
20265# Checks for library functions.
20266ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray"
20267if test "x$ac_cv_func_reallocarray" = xyes
20268then :
20269  printf "%s\n" "#define HAVE_REALLOCARRAY 1" >>confdefs.h
20270
20271else case e in #(
20272  e) case " $LIBOBJS " in
20273  *" reallocarray.$ac_objext "* ) ;;
20274  *) LIBOBJS="$LIBOBJS reallocarray.$ac_objext"
20275 ;;
20276esac
20277 ;;
20278esac
20279fi
20280
20281
20282# Allow checking code with lint, sparse, etc.
20283
20284
20285
20286
20287
20288# Check whether --with-lint was given.
20289if test ${with_lint+y}
20290then :
20291  withval=$with_lint; use_lint=$withval
20292else case e in #(
20293  e) use_lint=no ;;
20294esac
20295fi
20296
20297
20298# Obtain platform specific info like program name and options
20299# The lint program on FreeBSD and NetBSD is different from the one on Solaris
20300case $host_os in
20301  *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
20302	lint_name=splint
20303	lint_options="-badflag"
20304	;;
20305  *freebsd* | *netbsd*)
20306	lint_name=lint
20307	lint_options="-u -b"
20308	;;
20309  *solaris*)
20310	lint_name=lint
20311	lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
20312	;;
20313esac
20314
20315# Test for the presence of the program (either guessed by the code or spelled out by the user)
20316if test "x$use_lint" = x"yes" ; then
20317   # Extract the first word of "$lint_name", so it can be a program name with args.
20318set dummy $lint_name; ac_word=$2
20319{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20320printf %s "checking for $ac_word... " >&6; }
20321if test ${ac_cv_path_LINT+y}
20322then :
20323  printf %s "(cached) " >&6
20324else case e in #(
20325  e) case $LINT in
20326  [\\/]* | ?:[\\/]*)
20327  ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
20328  ;;
20329  *)
20330  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20331for as_dir in $PATH
20332do
20333  IFS=$as_save_IFS
20334  case $as_dir in #(((
20335    '') as_dir=./ ;;
20336    */) ;;
20337    *) as_dir=$as_dir/ ;;
20338  esac
20339    for ac_exec_ext in '' $ac_executable_extensions; do
20340  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20341    ac_cv_path_LINT="$as_dir$ac_word$ac_exec_ext"
20342    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20343    break 2
20344  fi
20345done
20346  done
20347IFS=$as_save_IFS
20348
20349  ;;
20350esac ;;
20351esac
20352fi
20353LINT=$ac_cv_path_LINT
20354if test -n "$LINT"; then
20355  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
20356printf "%s\n" "$LINT" >&6; }
20357else
20358  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20359printf "%s\n" "no" >&6; }
20360fi
20361
20362
20363   if test "x$LINT" = "x"; then
20364        as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
20365   fi
20366elif test "x$use_lint" = x"no" ; then
20367   if test "x$LINT" != "x"; then
20368      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
20369printf "%s\n" "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
20370   fi
20371else
20372   as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
20373fi
20374
20375# User supplied flags override default flags
20376if test "x$LINT_FLAGS" != "x"; then
20377   lint_options=$LINT_FLAGS
20378fi
20379
20380LINT_FLAGS=$lint_options
20381
20382 if test "x$LINT" != x; then
20383  LINT_TRUE=
20384  LINT_FALSE='#'
20385else
20386  LINT_TRUE='#'
20387  LINT_FALSE=
20388fi
20389
20390
20391
20392LINT_FLAGS="${LINT_FLAGS} ${FONTENC_CFLAGS}"
20393
20394ac_config_files="$ac_config_files Makefile src/Makefile fontenc.pc"
20395
20396cat >confcache <<\_ACEOF
20397# This file is a shell script that caches the results of configure
20398# tests run on this system so they can be shared between configure
20399# scripts and configure runs, see configure's option --config-cache.
20400# It is not useful on other systems.  If it contains results you don't
20401# want to keep, you may remove or edit it.
20402#
20403# config.status only pays attention to the cache file if you give it
20404# the --recheck option to rerun configure.
20405#
20406# 'ac_cv_env_foo' variables (set or unset) will be overridden when
20407# loading this file, other *unset* 'ac_cv_foo' will be assigned the
20408# following values.
20409
20410_ACEOF
20411
20412# The following way of writing the cache mishandles newlines in values,
20413# but we know of no workaround that is simple, portable, and efficient.
20414# So, we kill variables containing newlines.
20415# Ultrix sh set writes to stderr and can't be redirected directly,
20416# and sets the high bit in the cache file unless we assign to the vars.
20417(
20418  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20419    eval ac_val=\$$ac_var
20420    case $ac_val in #(
20421    *${as_nl}*)
20422      case $ac_var in #(
20423      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20424printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20425      esac
20426      case $ac_var in #(
20427      _ | IFS | as_nl) ;; #(
20428      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20429      *) { eval $ac_var=; unset $ac_var;} ;;
20430      esac ;;
20431    esac
20432  done
20433
20434  (set) 2>&1 |
20435    case $as_nl`(ac_space=' '; set) 2>&1` in #(
20436    *${as_nl}ac_space=\ *)
20437      # 'set' does not quote correctly, so add quotes: double-quote
20438      # substitution turns \\\\ into \\, and sed turns \\ into \.
20439      sed -n \
20440	"s/'/'\\\\''/g;
20441	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20442      ;; #(
20443    *)
20444      # 'set' quotes correctly as required by POSIX, so do not add quotes.
20445      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20446      ;;
20447    esac |
20448    sort
20449) |
20450  sed '
20451     /^ac_cv_env_/b end
20452     t clear
20453     :clear
20454     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
20455     t end
20456     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20457     :end' >>confcache
20458if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20459  if test -w "$cache_file"; then
20460    if test "x$cache_file" != "x/dev/null"; then
20461      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20462printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
20463      if test ! -f "$cache_file" || test -h "$cache_file"; then
20464	cat confcache >"$cache_file"
20465      else
20466        case $cache_file in #(
20467        */* | ?:*)
20468	  mv -f confcache "$cache_file"$$ &&
20469	  mv -f "$cache_file"$$ "$cache_file" ;; #(
20470        *)
20471	  mv -f confcache "$cache_file" ;;
20472	esac
20473      fi
20474    fi
20475  else
20476    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20477printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
20478  fi
20479fi
20480rm -f confcache
20481
20482test "x$prefix" = xNONE && prefix=$ac_default_prefix
20483# Let make expand exec_prefix.
20484test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20485
20486DEFS=-DHAVE_CONFIG_H
20487
20488ac_libobjs=
20489ac_ltlibobjs=
20490U=
20491for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20492  # 1. Remove the extension, and $U if already installed.
20493  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20494  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
20495  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20496  #    will be set to the directory where LIBOBJS objects are built.
20497  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20498  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20499done
20500LIBOBJS=$ac_libobjs
20501
20502LTLIBOBJS=$ac_ltlibobjs
20503
20504
20505{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20506printf %s "checking that generated files are newer than configure... " >&6; }
20507   if test -n "$am_sleep_pid"; then
20508     # Hide warnings about reused PIDs.
20509     wait $am_sleep_pid 2>/dev/null
20510   fi
20511   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
20512printf "%s\n" "done" >&6; }
20513if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20514  as_fn_error $? "conditional \"AMDEP\" was never defined.
20515Usually this means the macro was only invoked conditionally." "$LINENO" 5
20516fi
20517if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20518  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20519Usually this means the macro was only invoked conditionally." "$LINENO" 5
20520fi
20521 if test -n "$EXEEXT"; then
20522  am__EXEEXT_TRUE=
20523  am__EXEEXT_FALSE='#'
20524else
20525  am__EXEEXT_TRUE='#'
20526  am__EXEEXT_FALSE=
20527fi
20528
20529# Check whether --enable-year2038 was given.
20530if test ${enable_year2038+y}
20531then :
20532  enableval=$enable_year2038;
20533fi
20534
20535if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
20536  as_fn_error $? "conditional \"LINT\" was never defined.
20537Usually this means the macro was only invoked conditionally." "$LINENO" 5
20538fi
20539
20540: "${CONFIG_STATUS=./config.status}"
20541ac_write_fail=0
20542ac_clean_files_save=$ac_clean_files
20543ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20544{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20545printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
20546as_write_fail=0
20547cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20548#! $SHELL
20549# Generated by $as_me.
20550# Run this file to recreate the current configuration.
20551# Compiler output produced by configure, useful for debugging
20552# configure, is in config.log if it exists.
20553
20554debug=false
20555ac_cs_recheck=false
20556ac_cs_silent=false
20557
20558SHELL=\${CONFIG_SHELL-$SHELL}
20559export SHELL
20560_ASEOF
20561cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20562## -------------------- ##
20563## M4sh Initialization. ##
20564## -------------------- ##
20565
20566# Be more Bourne compatible
20567DUALCASE=1; export DUALCASE # for MKS sh
20568if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
20569then :
20570  emulate sh
20571  NULLCMD=:
20572  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20573  # is contrary to our usage.  Disable this feature.
20574  alias -g '${1+"$@"}'='"$@"'
20575  setopt NO_GLOB_SUBST
20576else case e in #(
20577  e) case `(set -o) 2>/dev/null` in #(
20578  *posix*) :
20579    set -o posix ;; #(
20580  *) :
20581     ;;
20582esac ;;
20583esac
20584fi
20585
20586
20587
20588# Reset variables that may have inherited troublesome values from
20589# the environment.
20590
20591# IFS needs to be set, to space, tab, and newline, in precisely that order.
20592# (If _AS_PATH_WALK were called with IFS unset, it would have the
20593# side effect of setting IFS to empty, thus disabling word splitting.)
20594# Quoting is to prevent editors from complaining about space-tab.
20595as_nl='
20596'
20597export as_nl
20598IFS=" ""	$as_nl"
20599
20600PS1='$ '
20601PS2='> '
20602PS4='+ '
20603
20604# Ensure predictable behavior from utilities with locale-dependent output.
20605LC_ALL=C
20606export LC_ALL
20607LANGUAGE=C
20608export LANGUAGE
20609
20610# We cannot yet rely on "unset" to work, but we need these variables
20611# to be unset--not just set to an empty or harmless value--now, to
20612# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
20613# also avoids known problems related to "unset" and subshell syntax
20614# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
20615for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
20616do eval test \${$as_var+y} \
20617  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20618done
20619
20620# Ensure that fds 0, 1, and 2 are open.
20621if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
20622if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
20623if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
20624
20625# The user is always right.
20626if ${PATH_SEPARATOR+false} :; then
20627  PATH_SEPARATOR=:
20628  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20629    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20630      PATH_SEPARATOR=';'
20631  }
20632fi
20633
20634
20635# Find who we are.  Look in the path if we contain no directory separator.
20636as_myself=
20637case $0 in #((
20638  *[\\/]* ) as_myself=$0 ;;
20639  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20640for as_dir in $PATH
20641do
20642  IFS=$as_save_IFS
20643  case $as_dir in #(((
20644    '') as_dir=./ ;;
20645    */) ;;
20646    *) as_dir=$as_dir/ ;;
20647  esac
20648    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
20649  done
20650IFS=$as_save_IFS
20651
20652     ;;
20653esac
20654# We did not find ourselves, most probably we were run as 'sh COMMAND'
20655# in which case we are not to be found in the path.
20656if test "x$as_myself" = x; then
20657  as_myself=$0
20658fi
20659if test ! -f "$as_myself"; then
20660  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20661  exit 1
20662fi
20663
20664
20665
20666# as_fn_error STATUS ERROR [LINENO LOG_FD]
20667# ----------------------------------------
20668# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20669# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20670# script with STATUS, using 1 if that was 0.
20671as_fn_error ()
20672{
20673  as_status=$1; test $as_status -eq 0 && as_status=1
20674  if test "$4"; then
20675    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20676    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20677  fi
20678  printf "%s\n" "$as_me: error: $2" >&2
20679  as_fn_exit $as_status
20680} # as_fn_error
20681
20682
20683# as_fn_set_status STATUS
20684# -----------------------
20685# Set $? to STATUS, without forking.
20686as_fn_set_status ()
20687{
20688  return $1
20689} # as_fn_set_status
20690
20691# as_fn_exit STATUS
20692# -----------------
20693# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20694as_fn_exit ()
20695{
20696  set +e
20697  as_fn_set_status $1
20698  exit $1
20699} # as_fn_exit
20700
20701# as_fn_unset VAR
20702# ---------------
20703# Portably unset VAR.
20704as_fn_unset ()
20705{
20706  { eval $1=; unset $1;}
20707}
20708as_unset=as_fn_unset
20709
20710# as_fn_append VAR VALUE
20711# ----------------------
20712# Append the text in VALUE to the end of the definition contained in VAR. Take
20713# advantage of any shell optimizations that allow amortized linear growth over
20714# repeated appends, instead of the typical quadratic growth present in naive
20715# implementations.
20716if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
20717then :
20718  eval 'as_fn_append ()
20719  {
20720    eval $1+=\$2
20721  }'
20722else case e in #(
20723  e) as_fn_append ()
20724  {
20725    eval $1=\$$1\$2
20726  } ;;
20727esac
20728fi # as_fn_append
20729
20730# as_fn_arith ARG...
20731# ------------------
20732# Perform arithmetic evaluation on the ARGs, and store the result in the
20733# global $as_val. Take advantage of shells that can avoid forks. The arguments
20734# must be portable across $(()) and expr.
20735if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
20736then :
20737  eval 'as_fn_arith ()
20738  {
20739    as_val=$(( $* ))
20740  }'
20741else case e in #(
20742  e) as_fn_arith ()
20743  {
20744    as_val=`expr "$@" || test $? -eq 1`
20745  } ;;
20746esac
20747fi # as_fn_arith
20748
20749
20750if expr a : '\(a\)' >/dev/null 2>&1 &&
20751   test "X`expr 00001 : '.*\(...\)'`" = X001; then
20752  as_expr=expr
20753else
20754  as_expr=false
20755fi
20756
20757if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20758  as_basename=basename
20759else
20760  as_basename=false
20761fi
20762
20763if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20764  as_dirname=dirname
20765else
20766  as_dirname=false
20767fi
20768
20769as_me=`$as_basename -- "$0" ||
20770$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20771	 X"$0" : 'X\(//\)$' \| \
20772	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20773printf "%s\n" X/"$0" |
20774    sed '/^.*\/\([^/][^/]*\)\/*$/{
20775	    s//\1/
20776	    q
20777	  }
20778	  /^X\/\(\/\/\)$/{
20779	    s//\1/
20780	    q
20781	  }
20782	  /^X\/\(\/\).*/{
20783	    s//\1/
20784	    q
20785	  }
20786	  s/.*/./; q'`
20787
20788# Avoid depending upon Character Ranges.
20789as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20790as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20791as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20792as_cr_digits='0123456789'
20793as_cr_alnum=$as_cr_Letters$as_cr_digits
20794
20795
20796# Determine whether it's possible to make 'echo' print without a newline.
20797# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
20798# for compatibility with existing Makefiles.
20799ECHO_C= ECHO_N= ECHO_T=
20800case `echo -n x` in #(((((
20801-n*)
20802  case `echo 'xy\c'` in
20803  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
20804  xy)  ECHO_C='\c';;
20805  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
20806       ECHO_T='	';;
20807  esac;;
20808*)
20809  ECHO_N='-n';;
20810esac
20811
20812# For backward compatibility with old third-party macros, we provide
20813# the shell variables $as_echo and $as_echo_n.  New code should use
20814# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
20815as_echo='printf %s\n'
20816as_echo_n='printf %s'
20817
20818rm -f conf$$ conf$$.exe conf$$.file
20819if test -d conf$$.dir; then
20820  rm -f conf$$.dir/conf$$.file
20821else
20822  rm -f conf$$.dir
20823  mkdir conf$$.dir 2>/dev/null
20824fi
20825if (echo >conf$$.file) 2>/dev/null; then
20826  if ln -s conf$$.file conf$$ 2>/dev/null; then
20827    as_ln_s='ln -s'
20828    # ... but there are two gotchas:
20829    # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
20830    # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
20831    # In both cases, we have to default to 'cp -pR'.
20832    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20833      as_ln_s='cp -pR'
20834  elif ln conf$$.file conf$$ 2>/dev/null; then
20835    as_ln_s=ln
20836  else
20837    as_ln_s='cp -pR'
20838  fi
20839else
20840  as_ln_s='cp -pR'
20841fi
20842rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20843rmdir conf$$.dir 2>/dev/null
20844
20845
20846# as_fn_mkdir_p
20847# -------------
20848# Create "$as_dir" as a directory, including parents if necessary.
20849as_fn_mkdir_p ()
20850{
20851
20852  case $as_dir in #(
20853  -*) as_dir=./$as_dir;;
20854  esac
20855  test -d "$as_dir" || eval $as_mkdir_p || {
20856    as_dirs=
20857    while :; do
20858      case $as_dir in #(
20859      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20860      *) as_qdir=$as_dir;;
20861      esac
20862      as_dirs="'$as_qdir' $as_dirs"
20863      as_dir=`$as_dirname -- "$as_dir" ||
20864$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20865	 X"$as_dir" : 'X\(//\)[^/]' \| \
20866	 X"$as_dir" : 'X\(//\)$' \| \
20867	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20868printf "%s\n" X"$as_dir" |
20869    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20870	    s//\1/
20871	    q
20872	  }
20873	  /^X\(\/\/\)[^/].*/{
20874	    s//\1/
20875	    q
20876	  }
20877	  /^X\(\/\/\)$/{
20878	    s//\1/
20879	    q
20880	  }
20881	  /^X\(\/\).*/{
20882	    s//\1/
20883	    q
20884	  }
20885	  s/.*/./; q'`
20886      test -d "$as_dir" && break
20887    done
20888    test -z "$as_dirs" || eval "mkdir $as_dirs"
20889  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20890
20891
20892} # as_fn_mkdir_p
20893if mkdir -p . 2>/dev/null; then
20894  as_mkdir_p='mkdir -p "$as_dir"'
20895else
20896  test -d ./-p && rmdir ./-p
20897  as_mkdir_p=false
20898fi
20899
20900
20901# as_fn_executable_p FILE
20902# -----------------------
20903# Test if FILE is an executable regular file.
20904as_fn_executable_p ()
20905{
20906  test -f "$1" && test -x "$1"
20907} # as_fn_executable_p
20908as_test_x='test -x'
20909as_executable_p=as_fn_executable_p
20910
20911# Sed expression to map a string onto a valid CPP name.
20912as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
20913as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
20914
20915# Sed expression to map a string onto a valid variable name.
20916as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
20917as_tr_sh="eval sed '$as_sed_sh'" # deprecated
20918
20919
20920exec 6>&1
20921## ----------------------------------- ##
20922## Main body of $CONFIG_STATUS script. ##
20923## ----------------------------------- ##
20924_ASEOF
20925test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20926
20927cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20928# Save the log message, to keep $0 and so on meaningful, and to
20929# report actual input values of CONFIG_FILES etc. instead of their
20930# values after options handling.
20931ac_log="
20932This file was extended by libfontenc $as_me 1.1.8, which was
20933generated by GNU Autoconf 2.72.  Invocation command line was
20934
20935  CONFIG_FILES    = $CONFIG_FILES
20936  CONFIG_HEADERS  = $CONFIG_HEADERS
20937  CONFIG_LINKS    = $CONFIG_LINKS
20938  CONFIG_COMMANDS = $CONFIG_COMMANDS
20939  $ $0 $@
20940
20941on `(hostname || uname -n) 2>/dev/null | sed 1q`
20942"
20943
20944_ACEOF
20945
20946case $ac_config_files in *"
20947"*) set x $ac_config_files; shift; ac_config_files=$*;;
20948esac
20949
20950case $ac_config_headers in *"
20951"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20952esac
20953
20954
20955cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20956# Files that config.status was made for.
20957config_files="$ac_config_files"
20958config_headers="$ac_config_headers"
20959config_commands="$ac_config_commands"
20960
20961_ACEOF
20962
20963cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20964ac_cs_usage="\
20965'$as_me' instantiates files and other configuration actions
20966from templates according to the current configuration.  Unless the files
20967and actions are specified as TAGs, all are instantiated by default.
20968
20969Usage: $0 [OPTION]... [TAG]...
20970
20971  -h, --help       print this help, then exit
20972  -V, --version    print version number and configuration settings, then exit
20973      --config     print configuration, then exit
20974  -q, --quiet, --silent
20975                   do not print progress messages
20976  -d, --debug      don't remove temporary files
20977      --recheck    update $as_me by reconfiguring in the same conditions
20978      --file=FILE[:TEMPLATE]
20979                   instantiate the configuration file FILE
20980      --header=FILE[:TEMPLATE]
20981                   instantiate the configuration header FILE
20982
20983Configuration files:
20984$config_files
20985
20986Configuration headers:
20987$config_headers
20988
20989Configuration commands:
20990$config_commands
20991
20992Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libfontenc/-/issues>."
20993
20994_ACEOF
20995ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
20996ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
20997cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20998ac_cs_config='$ac_cs_config_escaped'
20999ac_cs_version="\\
21000libfontenc config.status 1.1.8
21001configured by $0, generated by GNU Autoconf 2.72,
21002  with options \\"\$ac_cs_config\\"
21003
21004Copyright (C) 2023 Free Software Foundation, Inc.
21005This config.status script is free software; the Free Software Foundation
21006gives unlimited permission to copy, distribute and modify it."
21007
21008ac_pwd='$ac_pwd'
21009srcdir='$srcdir'
21010INSTALL='$INSTALL'
21011MKDIR_P='$MKDIR_P'
21012AWK='$AWK'
21013test -n "\$AWK" || AWK=awk
21014_ACEOF
21015
21016cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21017# The default lists apply if the user does not specify any file.
21018ac_need_defaults=:
21019while test $# != 0
21020do
21021  case $1 in
21022  --*=?*)
21023    ac_option=`expr "X$1" : 'X\([^=]*\)='`
21024    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21025    ac_shift=:
21026    ;;
21027  --*=)
21028    ac_option=`expr "X$1" : 'X\([^=]*\)='`
21029    ac_optarg=
21030    ac_shift=:
21031    ;;
21032  *)
21033    ac_option=$1
21034    ac_optarg=$2
21035    ac_shift=shift
21036    ;;
21037  esac
21038
21039  case $ac_option in
21040  # Handling of the options.
21041  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21042    ac_cs_recheck=: ;;
21043  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21044    printf "%s\n" "$ac_cs_version"; exit ;;
21045  --config | --confi | --conf | --con | --co | --c )
21046    printf "%s\n" "$ac_cs_config"; exit ;;
21047  --debug | --debu | --deb | --de | --d | -d )
21048    debug=: ;;
21049  --file | --fil | --fi | --f )
21050    $ac_shift
21051    case $ac_optarg in
21052    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21053    '') as_fn_error $? "missing file argument" ;;
21054    esac
21055    as_fn_append CONFIG_FILES " '$ac_optarg'"
21056    ac_need_defaults=false;;
21057  --header | --heade | --head | --hea )
21058    $ac_shift
21059    case $ac_optarg in
21060    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21061    esac
21062    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21063    ac_need_defaults=false;;
21064  --he | --h)
21065    # Conflict between --help and --header
21066    as_fn_error $? "ambiguous option: '$1'
21067Try '$0 --help' for more information.";;
21068  --help | --hel | -h )
21069    printf "%s\n" "$ac_cs_usage"; exit ;;
21070  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21071  | -silent | --silent | --silen | --sile | --sil | --si | --s)
21072    ac_cs_silent=: ;;
21073
21074  # This is an error.
21075  -*) as_fn_error $? "unrecognized option: '$1'
21076Try '$0 --help' for more information." ;;
21077
21078  *) as_fn_append ac_config_targets " $1"
21079     ac_need_defaults=false ;;
21080
21081  esac
21082  shift
21083done
21084
21085ac_configure_extra_args=
21086
21087if $ac_cs_silent; then
21088  exec 6>/dev/null
21089  ac_configure_extra_args="$ac_configure_extra_args --silent"
21090fi
21091
21092_ACEOF
21093cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21094if \$ac_cs_recheck; then
21095  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21096  shift
21097  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
21098  CONFIG_SHELL='$SHELL'
21099  export CONFIG_SHELL
21100  exec "\$@"
21101fi
21102
21103_ACEOF
21104cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21105exec 5>>config.log
21106{
21107  echo
21108  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21109## Running $as_me. ##
21110_ASBOX
21111  printf "%s\n" "$ac_log"
21112} >&5
21113
21114_ACEOF
21115cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21116#
21117# INIT-COMMANDS
21118#
21119AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
21120
21121
21122# The HP-UX ksh and POSIX shell print the target directory to stdout
21123# if CDPATH is set.
21124(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21125
21126sed_quote_subst='$sed_quote_subst'
21127double_quote_subst='$double_quote_subst'
21128delay_variable_subst='$delay_variable_subst'
21129macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21130macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21131enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21132enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21133pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21134enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21135shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
21136SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21137ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
21138PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
21139host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21140host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21141host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21142build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21143build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21144build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21145SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21146Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21147GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21148EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21149FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21150LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21151NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21152LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21153max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21154ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21155exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21156lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21157lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21158lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21159lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21160lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21161reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21162reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21163FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
21164OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21165deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21166file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21167file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21168want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21169DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21170sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21171AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21172lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
21173AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21174archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
21175STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21176RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21177old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21178old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21179old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21180lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21181CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21182CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21183compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21184GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21185lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
21186lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
21187lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
21188lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
21189lt_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"`'
21190lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
21191nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
21192lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
21193lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
21194objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
21195MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
21196lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
21197lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
21198lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
21199lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
21200lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
21201need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
21202MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
21203DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21204NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21205LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21206OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21207OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21208libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21209shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21210extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21211archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21212enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21213export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21214whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21215compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21216old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21217old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21218archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21219archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21220module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21221module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21222with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21223allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21224no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21225hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
21226hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21227hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21228hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21229hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21230hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21231hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21232inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21233link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21234always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21235export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21236exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21237include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21238prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21239postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
21240file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21241variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21242need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21243need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21244version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21245runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21246shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21247shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21248libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21249library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21250soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21251install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21252postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21253postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21254finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21255finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21256hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21257sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21258configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
21259configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
21260hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21261enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21262enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21263enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21264old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21265striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21266
21267LTCC='$LTCC'
21268LTCFLAGS='$LTCFLAGS'
21269compiler='$compiler_DEFAULT'
21270
21271# A function that is used when there is no print builtin or printf.
21272func_fallback_echo ()
21273{
21274  eval 'cat <<_LTECHO_EOF
21275\$1
21276_LTECHO_EOF'
21277}
21278
21279# Quote evaled strings.
21280for var in SHELL \
21281ECHO \
21282PATH_SEPARATOR \
21283SED \
21284GREP \
21285EGREP \
21286FGREP \
21287LD \
21288NM \
21289LN_S \
21290lt_SP2NL \
21291lt_NL2SP \
21292reload_flag \
21293FILECMD \
21294OBJDUMP \
21295deplibs_check_method \
21296file_magic_cmd \
21297file_magic_glob \
21298want_nocaseglob \
21299DLLTOOL \
21300sharedlib_from_linklib_cmd \
21301AR \
21302archiver_list_spec \
21303STRIP \
21304RANLIB \
21305CC \
21306CFLAGS \
21307compiler \
21308lt_cv_sys_global_symbol_pipe \
21309lt_cv_sys_global_symbol_to_cdecl \
21310lt_cv_sys_global_symbol_to_import \
21311lt_cv_sys_global_symbol_to_c_name_address \
21312lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21313lt_cv_nm_interface \
21314nm_file_list_spec \
21315lt_cv_truncate_bin \
21316lt_prog_compiler_no_builtin_flag \
21317lt_prog_compiler_pic \
21318lt_prog_compiler_wl \
21319lt_prog_compiler_static \
21320lt_cv_prog_compiler_c_o \
21321need_locks \
21322MANIFEST_TOOL \
21323DSYMUTIL \
21324NMEDIT \
21325LIPO \
21326OTOOL \
21327OTOOL64 \
21328shrext_cmds \
21329export_dynamic_flag_spec \
21330whole_archive_flag_spec \
21331compiler_needs_object \
21332with_gnu_ld \
21333allow_undefined_flag \
21334no_undefined_flag \
21335hardcode_libdir_flag_spec \
21336hardcode_libdir_separator \
21337exclude_expsyms \
21338include_expsyms \
21339file_list_spec \
21340variables_saved_for_relink \
21341libname_spec \
21342library_names_spec \
21343soname_spec \
21344install_override_mode \
21345finish_eval \
21346old_striplib \
21347striplib; do
21348    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21349    *[\\\\\\\`\\"\\\$]*)
21350      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21351      ;;
21352    *)
21353      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21354      ;;
21355    esac
21356done
21357
21358# Double-quote double-evaled strings.
21359for var in reload_cmds \
21360old_postinstall_cmds \
21361old_postuninstall_cmds \
21362old_archive_cmds \
21363extract_expsyms_cmds \
21364old_archive_from_new_cmds \
21365old_archive_from_expsyms_cmds \
21366archive_cmds \
21367archive_expsym_cmds \
21368module_cmds \
21369module_expsym_cmds \
21370export_symbols_cmds \
21371prelink_cmds \
21372postlink_cmds \
21373postinstall_cmds \
21374postuninstall_cmds \
21375finish_cmds \
21376sys_lib_search_path_spec \
21377configure_time_dlsearch_path \
21378configure_time_lt_sys_library_path; do
21379    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21380    *[\\\\\\\`\\"\\\$]*)
21381      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21382      ;;
21383    *)
21384      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21385      ;;
21386    esac
21387done
21388
21389ac_aux_dir='$ac_aux_dir'
21390
21391# See if we are running on zsh, and set the options that allow our
21392# commands through without removal of \ escapes INIT.
21393if test -n "\${ZSH_VERSION+set}"; then
21394   setopt NO_GLOB_SUBST
21395fi
21396
21397
21398    PACKAGE='$PACKAGE'
21399    VERSION='$VERSION'
21400    RM='$RM'
21401    ofile='$ofile'
21402
21403
21404
21405
21406_ACEOF
21407
21408cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21409
21410# Handling of arguments.
21411for ac_config_target in $ac_config_targets
21412do
21413  case $ac_config_target in
21414    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21415    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21416    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21417    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21418    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21419    "fontenc.pc") CONFIG_FILES="$CONFIG_FILES fontenc.pc" ;;
21420
21421  *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
21422  esac
21423done
21424
21425
21426# If the user did not use the arguments to specify the items to instantiate,
21427# then the envvar interface is used.  Set only those that are not.
21428# We use the long form for the default assignment because of an extremely
21429# bizarre bug on SunOS 4.1.3.
21430if $ac_need_defaults; then
21431  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
21432  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
21433  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
21434fi
21435
21436# Have a temporary directory for convenience.  Make it in the build tree
21437# simply because there is no reason against having it here, and in addition,
21438# creating and moving files from /tmp can sometimes cause problems.
21439# Hook for its removal unless debugging.
21440# Note that there is a small window in which the directory will not be cleaned:
21441# after its creation but before its name has been assigned to '$tmp'.
21442$debug ||
21443{
21444  tmp= ac_tmp=
21445  trap 'exit_status=$?
21446  : "${ac_tmp:=$tmp}"
21447  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21448' 0
21449  trap 'as_fn_exit 1' 1 2 13 15
21450}
21451# Create a (secure) tmp directory for tmp files.
21452
21453{
21454  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21455  test -d "$tmp"
21456}  ||
21457{
21458  tmp=./conf$$-$RANDOM
21459  (umask 077 && mkdir "$tmp")
21460} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21461ac_tmp=$tmp
21462
21463# Set up the scripts for CONFIG_FILES section.
21464# No need to generate them if there are no CONFIG_FILES.
21465# This happens for instance with './config.status config.h'.
21466if test -n "$CONFIG_FILES"; then
21467
21468
21469ac_cr=`echo X | tr X '\015'`
21470# On cygwin, bash can eat \r inside `` if the user requested igncr.
21471# But we know of no other shell where ac_cr would be empty at this
21472# point, so we can use a bashism as a fallback.
21473if test "x$ac_cr" = x; then
21474  eval ac_cr=\$\'\\r\'
21475fi
21476ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21477if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21478  ac_cs_awk_cr='\\r'
21479else
21480  ac_cs_awk_cr=$ac_cr
21481fi
21482
21483echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21484_ACEOF
21485
21486
21487{
21488  echo "cat >conf$$subs.awk <<_ACEOF" &&
21489  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21490  echo "_ACEOF"
21491} >conf$$subs.sh ||
21492  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21493ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21494ac_delim='%!_!# '
21495for ac_last_try in false false false false false :; do
21496  . ./conf$$subs.sh ||
21497    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21498
21499  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21500  if test $ac_delim_n = $ac_delim_num; then
21501    break
21502  elif $ac_last_try; then
21503    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21504  else
21505    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21506  fi
21507done
21508rm -f conf$$subs.sh
21509
21510cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21511cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21512_ACEOF
21513sed -n '
21514h
21515s/^/S["/; s/!.*/"]=/
21516p
21517g
21518s/^[^!]*!//
21519:repl
21520t repl
21521s/'"$ac_delim"'$//
21522t delim
21523:nl
21524h
21525s/\(.\{148\}\)..*/\1/
21526t more1
21527s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21528p
21529n
21530b repl
21531:more1
21532s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21533p
21534g
21535s/.\{148\}//
21536t nl
21537:delim
21538h
21539s/\(.\{148\}\)..*/\1/
21540t more2
21541s/["\\]/\\&/g; s/^/"/; s/$/"/
21542p
21543b
21544:more2
21545s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21546p
21547g
21548s/.\{148\}//
21549t delim
21550' <conf$$subs.awk | sed '
21551/^[^""]/{
21552  N
21553  s/\n//
21554}
21555' >>$CONFIG_STATUS || ac_write_fail=1
21556rm -f conf$$subs.awk
21557cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21558_ACAWK
21559cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21560  for (key in S) S_is_set[key] = 1
21561  FS = ""
21562
21563}
21564{
21565  line = $ 0
21566  nfields = split(line, field, "@")
21567  substed = 0
21568  len = length(field[1])
21569  for (i = 2; i < nfields; i++) {
21570    key = field[i]
21571    keylen = length(key)
21572    if (S_is_set[key]) {
21573      value = S[key]
21574      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21575      len += length(value) + length(field[++i])
21576      substed = 1
21577    } else
21578      len += 1 + keylen
21579  }
21580
21581  print line
21582}
21583
21584_ACAWK
21585_ACEOF
21586cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21587if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21588  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21589else
21590  cat
21591fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21592  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21593_ACEOF
21594
21595# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21596# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21597# trailing colons and then remove the whole line if VPATH becomes empty
21598# (actually we leave an empty line to preserve line numbers).
21599if test "x$srcdir" = x.; then
21600  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
21601h
21602s///
21603s/^/:/
21604s/[	 ]*$/:/
21605s/:\$(srcdir):/:/g
21606s/:\${srcdir}:/:/g
21607s/:@srcdir@:/:/g
21608s/^:*//
21609s/:*$//
21610x
21611s/\(=[	 ]*\).*/\1/
21612G
21613s/\n//
21614s/^[^=]*=[	 ]*$//
21615}'
21616fi
21617
21618cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21619fi # test -n "$CONFIG_FILES"
21620
21621# Set up the scripts for CONFIG_HEADERS section.
21622# No need to generate them if there are no CONFIG_HEADERS.
21623# This happens for instance with './config.status Makefile'.
21624if test -n "$CONFIG_HEADERS"; then
21625cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21626BEGIN {
21627_ACEOF
21628
21629# Transform confdefs.h into an awk script 'defines.awk', embedded as
21630# here-document in config.status, that substitutes the proper values into
21631# config.h.in to produce config.h.
21632
21633# Create a delimiter string that does not exist in confdefs.h, to ease
21634# handling of long lines.
21635ac_delim='%!_!# '
21636for ac_last_try in false false :; do
21637  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21638  if test -z "$ac_tt"; then
21639    break
21640  elif $ac_last_try; then
21641    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21642  else
21643    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21644  fi
21645done
21646
21647# For the awk script, D is an array of macro values keyed by name,
21648# likewise P contains macro parameters if any.  Preserve backslash
21649# newline sequences.
21650
21651ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21652sed -n '
21653s/.\{148\}/&'"$ac_delim"'/g
21654t rset
21655:rset
21656s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
21657t def
21658d
21659:def
21660s/\\$//
21661t bsnl
21662s/["\\]/\\&/g
21663s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
21664D["\1"]=" \3"/p
21665s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
21666d
21667:bsnl
21668s/["\\]/\\&/g
21669s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
21670D["\1"]=" \3\\\\\\n"\\/p
21671t cont
21672s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21673t cont
21674d
21675:cont
21676n
21677s/.\{148\}/&'"$ac_delim"'/g
21678t clear
21679:clear
21680s/\\$//
21681t bsnlc
21682s/["\\]/\\&/g; s/^/"/; s/$/"/p
21683d
21684:bsnlc
21685s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21686b cont
21687' <confdefs.h | sed '
21688s/'"$ac_delim"'/"\\\
21689"/g' >>$CONFIG_STATUS || ac_write_fail=1
21690
21691cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21692  for (key in D) D_is_set[key] = 1
21693  FS = ""
21694}
21695/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21696  line = \$ 0
21697  split(line, arg, " ")
21698  if (arg[1] == "#") {
21699    defundef = arg[2]
21700    mac1 = arg[3]
21701  } else {
21702    defundef = substr(arg[1], 2)
21703    mac1 = arg[2]
21704  }
21705  split(mac1, mac2, "(") #)
21706  macro = mac2[1]
21707  prefix = substr(line, 1, index(line, defundef) - 1)
21708  if (D_is_set[macro]) {
21709    # Preserve the white space surrounding the "#".
21710    print prefix "define", macro P[macro] D[macro]
21711    next
21712  } else {
21713    # Replace #undef with comments.  This is necessary, for example,
21714    # in the case of _POSIX_SOURCE, which is predefined and required
21715    # on some systems where configure will not decide to define it.
21716    if (defundef == "undef") {
21717      print "/*", prefix defundef, macro, "*/"
21718      next
21719    }
21720  }
21721}
21722{ print }
21723_ACAWK
21724_ACEOF
21725cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21726  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21727fi # test -n "$CONFIG_HEADERS"
21728
21729
21730eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
21731shift
21732for ac_tag
21733do
21734  case $ac_tag in
21735  :[FHLC]) ac_mode=$ac_tag; continue;;
21736  esac
21737  case $ac_mode$ac_tag in
21738  :[FHL]*:*);;
21739  :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
21740  :[FH]-) ac_tag=-:-;;
21741  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21742  esac
21743  ac_save_IFS=$IFS
21744  IFS=:
21745  set x $ac_tag
21746  IFS=$ac_save_IFS
21747  shift
21748  ac_file=$1
21749  shift
21750
21751  case $ac_mode in
21752  :L) ac_source=$1;;
21753  :[FH])
21754    ac_file_inputs=
21755    for ac_f
21756    do
21757      case $ac_f in
21758      -) ac_f="$ac_tmp/stdin";;
21759      *) # Look for the file first in the build tree, then in the source tree
21760	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
21761	 # because $ac_f cannot contain ':'.
21762	 test -f "$ac_f" ||
21763	   case $ac_f in
21764	   [\\/$]*) false;;
21765	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21766	   esac ||
21767	   as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
21768      esac
21769      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21770      as_fn_append ac_file_inputs " '$ac_f'"
21771    done
21772
21773    # Let's still pretend it is 'configure' which instantiates (i.e., don't
21774    # use $as_me), people would be surprised to read:
21775    #    /* config.h.  Generated by config.status.  */
21776    configure_input='Generated from '`
21777	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21778	`' by configure.'
21779    if test x"$ac_file" != x-; then
21780      configure_input="$ac_file.  $configure_input"
21781      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21782printf "%s\n" "$as_me: creating $ac_file" >&6;}
21783    fi
21784    # Neutralize special characters interpreted by sed in replacement strings.
21785    case $configure_input in #(
21786    *\&* | *\|* | *\\* )
21787       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
21788       sed 's/[\\\\&|]/\\\\&/g'`;; #(
21789    *) ac_sed_conf_input=$configure_input;;
21790    esac
21791
21792    case $ac_tag in
21793    *:-:* | *:-) cat >"$ac_tmp/stdin" \
21794      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21795    esac
21796    ;;
21797  esac
21798
21799  ac_dir=`$as_dirname -- "$ac_file" ||
21800$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21801	 X"$ac_file" : 'X\(//\)[^/]' \| \
21802	 X"$ac_file" : 'X\(//\)$' \| \
21803	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21804printf "%s\n" X"$ac_file" |
21805    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21806	    s//\1/
21807	    q
21808	  }
21809	  /^X\(\/\/\)[^/].*/{
21810	    s//\1/
21811	    q
21812	  }
21813	  /^X\(\/\/\)$/{
21814	    s//\1/
21815	    q
21816	  }
21817	  /^X\(\/\).*/{
21818	    s//\1/
21819	    q
21820	  }
21821	  s/.*/./; q'`
21822  as_dir="$ac_dir"; as_fn_mkdir_p
21823  ac_builddir=.
21824
21825case "$ac_dir" in
21826.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21827*)
21828  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
21829  # A ".." for each directory in $ac_dir_suffix.
21830  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21831  case $ac_top_builddir_sub in
21832  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21833  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21834  esac ;;
21835esac
21836ac_abs_top_builddir=$ac_pwd
21837ac_abs_builddir=$ac_pwd$ac_dir_suffix
21838# for backward compatibility:
21839ac_top_builddir=$ac_top_build_prefix
21840
21841case $srcdir in
21842  .)  # We are building in place.
21843    ac_srcdir=.
21844    ac_top_srcdir=$ac_top_builddir_sub
21845    ac_abs_top_srcdir=$ac_pwd ;;
21846  [\\/]* | ?:[\\/]* )  # Absolute name.
21847    ac_srcdir=$srcdir$ac_dir_suffix;
21848    ac_top_srcdir=$srcdir
21849    ac_abs_top_srcdir=$srcdir ;;
21850  *) # Relative name.
21851    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21852    ac_top_srcdir=$ac_top_build_prefix$srcdir
21853    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21854esac
21855ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21856
21857
21858  case $ac_mode in
21859  :F)
21860  #
21861  # CONFIG_FILE
21862  #
21863
21864  case $INSTALL in
21865  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21866  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21867  esac
21868  ac_MKDIR_P=$MKDIR_P
21869  case $MKDIR_P in
21870  [\\/$]* | ?:[\\/]* ) ;;
21871  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21872  esac
21873_ACEOF
21874
21875cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21876# If the template does not know about datarootdir, expand it.
21877# FIXME: This hack should be removed a few years after 2.60.
21878ac_datarootdir_hack=; ac_datarootdir_seen=
21879ac_sed_dataroot='
21880/datarootdir/ {
21881  p
21882  q
21883}
21884/@datadir@/p
21885/@docdir@/p
21886/@infodir@/p
21887/@localedir@/p
21888/@mandir@/p'
21889case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21890*datarootdir*) ac_datarootdir_seen=yes;;
21891*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21892  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21893printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21894_ACEOF
21895cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21896  ac_datarootdir_hack='
21897  s&@datadir@&$datadir&g
21898  s&@docdir@&$docdir&g
21899  s&@infodir@&$infodir&g
21900  s&@localedir@&$localedir&g
21901  s&@mandir@&$mandir&g
21902  s&\\\${datarootdir}&$datarootdir&g' ;;
21903esac
21904_ACEOF
21905
21906# Neutralize VPATH when '$srcdir' = '.'.
21907# Shell code in configure.ac might set extrasub.
21908# FIXME: do we really want to maintain this feature?
21909cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21910ac_sed_extra="$ac_vpsub
21911$extrasub
21912_ACEOF
21913cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21914:t
21915/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21916s|@configure_input@|$ac_sed_conf_input|;t t
21917s&@top_builddir@&$ac_top_builddir_sub&;t t
21918s&@top_build_prefix@&$ac_top_build_prefix&;t t
21919s&@srcdir@&$ac_srcdir&;t t
21920s&@abs_srcdir@&$ac_abs_srcdir&;t t
21921s&@top_srcdir@&$ac_top_srcdir&;t t
21922s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21923s&@builddir@&$ac_builddir&;t t
21924s&@abs_builddir@&$ac_abs_builddir&;t t
21925s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21926s&@INSTALL@&$ac_INSTALL&;t t
21927s&@MKDIR_P@&$ac_MKDIR_P&;t t
21928$ac_datarootdir_hack
21929"
21930eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21931  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21932
21933test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21934  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21935  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
21936      "$ac_tmp/out"`; test -z "$ac_out"; } &&
21937  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
21938which seems to be undefined.  Please make sure it is defined" >&5
21939printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
21940which seems to be undefined.  Please make sure it is defined" >&2;}
21941
21942  rm -f "$ac_tmp/stdin"
21943  case $ac_file in
21944  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21945  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21946  esac \
21947  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21948 ;;
21949  :H)
21950  #
21951  # CONFIG_HEADER
21952  #
21953  if test x"$ac_file" != x-; then
21954    {
21955      printf "%s\n" "/* $configure_input  */" >&1 \
21956      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21957    } >"$ac_tmp/config.h" \
21958      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21959    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21960      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21961printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
21962    else
21963      rm -f "$ac_file"
21964      mv "$ac_tmp/config.h" "$ac_file" \
21965	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
21966    fi
21967  else
21968    printf "%s\n" "/* $configure_input  */" >&1 \
21969      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21970      || as_fn_error $? "could not create -" "$LINENO" 5
21971  fi
21972# Compute "$ac_file"'s index in $config_headers.
21973_am_arg="$ac_file"
21974_am_stamp_count=1
21975for _am_header in $config_headers :; do
21976  case $_am_header in
21977    $_am_arg | $_am_arg:* )
21978      break ;;
21979    * )
21980      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21981  esac
21982done
21983echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21984$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21985	 X"$_am_arg" : 'X\(//\)[^/]' \| \
21986	 X"$_am_arg" : 'X\(//\)$' \| \
21987	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21988printf "%s\n" X"$_am_arg" |
21989    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21990	    s//\1/
21991	    q
21992	  }
21993	  /^X\(\/\/\)[^/].*/{
21994	    s//\1/
21995	    q
21996	  }
21997	  /^X\(\/\/\)$/{
21998	    s//\1/
21999	    q
22000	  }
22001	  /^X\(\/\).*/{
22002	    s//\1/
22003	    q
22004	  }
22005	  s/.*/./; q'`/stamp-h$_am_stamp_count
22006 ;;
22007
22008  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22009printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
22010 ;;
22011  esac
22012
22013
22014  case $ac_file$ac_mode in
22015    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22016  # Older Autoconf quotes --file arguments for eval, but not when files
22017  # are listed without --file.  Let's play safe and only enable the eval
22018  # if we detect the quoting.
22019  # TODO: see whether this extra hack can be removed once we start
22020  # requiring Autoconf 2.70 or later.
22021  case $CONFIG_FILES in #(
22022  *\'*) :
22023    eval set x "$CONFIG_FILES" ;; #(
22024  *) :
22025    set x $CONFIG_FILES ;; #(
22026  *) :
22027     ;;
22028esac
22029  shift
22030  # Used to flag and report bootstrapping failures.
22031  am_rc=0
22032  for am_mf
22033  do
22034    # Strip MF so we end up with the name of the file.
22035    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
22036    # Check whether this is an Automake generated Makefile which includes
22037    # dependency-tracking related rules and includes.
22038    # Grep'ing the whole file directly is not great: AIX grep has a line
22039    # limit of 2048, but all sed's we know have understand at least 4000.
22040    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
22041      || continue
22042    am_dirpart=`$as_dirname -- "$am_mf" ||
22043$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22044	 X"$am_mf" : 'X\(//\)[^/]' \| \
22045	 X"$am_mf" : 'X\(//\)$' \| \
22046	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22047printf "%s\n" X"$am_mf" |
22048    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22049	    s//\1/
22050	    q
22051	  }
22052	  /^X\(\/\/\)[^/].*/{
22053	    s//\1/
22054	    q
22055	  }
22056	  /^X\(\/\/\)$/{
22057	    s//\1/
22058	    q
22059	  }
22060	  /^X\(\/\).*/{
22061	    s//\1/
22062	    q
22063	  }
22064	  s/.*/./; q'`
22065    am_filepart=`$as_basename -- "$am_mf" ||
22066$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
22067	 X"$am_mf" : 'X\(//\)$' \| \
22068	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22069printf "%s\n" X/"$am_mf" |
22070    sed '/^.*\/\([^/][^/]*\)\/*$/{
22071	    s//\1/
22072	    q
22073	  }
22074	  /^X\/\(\/\/\)$/{
22075	    s//\1/
22076	    q
22077	  }
22078	  /^X\/\(\/\).*/{
22079	    s//\1/
22080	    q
22081	  }
22082	  s/.*/./; q'`
22083    { echo "$as_me:$LINENO: cd "$am_dirpart" \
22084      && sed -e '/# am--include-marker/d' "$am_filepart" \
22085        | $MAKE -f - am--depfiles" >&5
22086   (cd "$am_dirpart" \
22087      && sed -e '/# am--include-marker/d' "$am_filepart" \
22088        | $MAKE -f - am--depfiles) >&5 2>&5
22089   ac_status=$?
22090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22091   (exit $ac_status); } || am_rc=$?
22092  done
22093  if test $am_rc -ne 0; then
22094    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
22095printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
22096as_fn_error $? "Something went wrong bootstrapping makefile fragments
22097    for automatic dependency tracking.  If GNU make was not used, consider
22098    re-running the configure script with MAKE=\"gmake\" (or whatever is
22099    necessary).  You can also try re-running configure with the
22100    '--disable-dependency-tracking' option to at least be able to build
22101    the package (albeit without support for automatic dependency tracking).
22102See 'config.log' for more details" "$LINENO" 5; }
22103  fi
22104  { am_dirpart=; unset am_dirpart;}
22105  { am_filepart=; unset am_filepart;}
22106  { am_mf=; unset am_mf;}
22107  { am_rc=; unset am_rc;}
22108  rm -f conftest-deps.mk
22109}
22110 ;;
22111    "libtool":C)
22112
22113    # See if we are running on zsh, and set the options that allow our
22114    # commands through without removal of \ escapes.
22115    if test -n "${ZSH_VERSION+set}"; then
22116      setopt NO_GLOB_SUBST
22117    fi
22118
22119    cfgfile=${ofile}T
22120    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22121    $RM "$cfgfile"
22122
22123    cat <<_LT_EOF >> "$cfgfile"
22124#! $SHELL
22125# Generated automatically by $as_me ($PACKAGE) $VERSION
22126# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22127# NOTE: Changes made to this file will be lost: look at ltmain.sh.
22128
22129# Provide generalized library-building support services.
22130# Written by Gordon Matzigkeit, 1996
22131
22132# Copyright (C) 2014 Free Software Foundation, Inc.
22133# This is free software; see the source for copying conditions.  There is NO
22134# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
22135
22136# GNU Libtool is free software; you can redistribute it and/or modify
22137# it under the terms of the GNU General Public License as published by
22138# the Free Software Foundation; either version 2 of of the License, or
22139# (at your option) any later version.
22140#
22141# As a special exception to the GNU General Public License, if you
22142# distribute this file as part of a program or library that is built
22143# using GNU Libtool, you may include this file under the  same
22144# distribution terms that you use for the rest of that program.
22145#
22146# GNU Libtool is distributed in the hope that it will be useful, but
22147# WITHOUT ANY WARRANTY; without even the implied warranty of
22148# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22149# GNU General Public License for more details.
22150#
22151# You should have received a copy of the GNU General Public License
22152# along with this program.  If not, see <http://www.gnu.org/licenses/>.
22153
22154
22155# The names of the tagged configurations supported by this script.
22156available_tags=''
22157
22158# Configured defaults for sys_lib_dlsearch_path munging.
22159: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
22160
22161# ### BEGIN LIBTOOL CONFIG
22162
22163# Which release of libtool.m4 was used?
22164macro_version=$macro_version
22165macro_revision=$macro_revision
22166
22167# Whether or not to build shared libraries.
22168build_libtool_libs=$enable_shared
22169
22170# Whether or not to build static libraries.
22171build_old_libs=$enable_static
22172
22173# What type of objects to build.
22174pic_mode=$pic_mode
22175
22176# Whether or not to optimize for fast installation.
22177fast_install=$enable_fast_install
22178
22179# Shared archive member basename,for filename based shared library versioning on AIX.
22180shared_archive_member_spec=$shared_archive_member_spec
22181
22182# Shell to use when invoking shell scripts.
22183SHELL=$lt_SHELL
22184
22185# An echo program that protects backslashes.
22186ECHO=$lt_ECHO
22187
22188# The PATH separator for the build system.
22189PATH_SEPARATOR=$lt_PATH_SEPARATOR
22190
22191# The host system.
22192host_alias=$host_alias
22193host=$host
22194host_os=$host_os
22195
22196# The build system.
22197build_alias=$build_alias
22198build=$build
22199build_os=$build_os
22200
22201# A sed program that does not truncate output.
22202SED=$lt_SED
22203
22204# Sed that helps us avoid accidentally triggering echo(1) options like -n.
22205Xsed="\$SED -e 1s/^X//"
22206
22207# A grep program that handles long lines.
22208GREP=$lt_GREP
22209
22210# An ERE matcher.
22211EGREP=$lt_EGREP
22212
22213# A literal string matcher.
22214FGREP=$lt_FGREP
22215
22216# A BSD- or MS-compatible name lister.
22217NM=$lt_NM
22218
22219# Whether we need soft or hard links.
22220LN_S=$lt_LN_S
22221
22222# What is the maximum length of a command?
22223max_cmd_len=$max_cmd_len
22224
22225# Object file suffix (normally "o").
22226objext=$ac_objext
22227
22228# Executable file suffix (normally "").
22229exeext=$exeext
22230
22231# whether the shell understands "unset".
22232lt_unset=$lt_unset
22233
22234# turn spaces into newlines.
22235SP2NL=$lt_lt_SP2NL
22236
22237# turn newlines into spaces.
22238NL2SP=$lt_lt_NL2SP
22239
22240# convert \$build file names to \$host format.
22241to_host_file_cmd=$lt_cv_to_host_file_cmd
22242
22243# convert \$build files to toolchain format.
22244to_tool_file_cmd=$lt_cv_to_tool_file_cmd
22245
22246# A file(cmd) program that detects file types.
22247FILECMD=$lt_FILECMD
22248
22249# An object symbol dumper.
22250OBJDUMP=$lt_OBJDUMP
22251
22252# Method to check whether dependent libraries are shared objects.
22253deplibs_check_method=$lt_deplibs_check_method
22254
22255# Command to use when deplibs_check_method = "file_magic".
22256file_magic_cmd=$lt_file_magic_cmd
22257
22258# How to find potential files when deplibs_check_method = "file_magic".
22259file_magic_glob=$lt_file_magic_glob
22260
22261# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
22262want_nocaseglob=$lt_want_nocaseglob
22263
22264# DLL creation program.
22265DLLTOOL=$lt_DLLTOOL
22266
22267# Command to associate shared and link libraries.
22268sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
22269
22270# The archiver.
22271AR=$lt_AR
22272
22273# Flags to create an archive (by configure).
22274lt_ar_flags=$lt_ar_flags
22275
22276# Flags to create an archive.
22277AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
22278
22279# How to feed a file listing to the archiver.
22280archiver_list_spec=$lt_archiver_list_spec
22281
22282# A symbol stripping program.
22283STRIP=$lt_STRIP
22284
22285# Commands used to install an old-style archive.
22286RANLIB=$lt_RANLIB
22287old_postinstall_cmds=$lt_old_postinstall_cmds
22288old_postuninstall_cmds=$lt_old_postuninstall_cmds
22289
22290# Whether to use a lock for old archive extraction.
22291lock_old_archive_extraction=$lock_old_archive_extraction
22292
22293# A C compiler.
22294LTCC=$lt_CC
22295
22296# LTCC compiler flags.
22297LTCFLAGS=$lt_CFLAGS
22298
22299# Take the output of nm and produce a listing of raw symbols and C names.
22300global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22301
22302# Transform the output of nm in a proper C declaration.
22303global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22304
22305# Transform the output of nm into a list of symbols to manually relocate.
22306global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
22307
22308# Transform the output of nm in a C name address pair.
22309global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22310
22311# Transform the output of nm in a C name address pair when lib prefix is needed.
22312global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22313
22314# The name lister interface.
22315nm_interface=$lt_lt_cv_nm_interface
22316
22317# Specify filename containing input files for \$NM.
22318nm_file_list_spec=$lt_nm_file_list_spec
22319
22320# The root where to search for dependent libraries,and where our libraries should be installed.
22321lt_sysroot=$lt_sysroot
22322
22323# Command to truncate a binary pipe.
22324lt_truncate_bin=$lt_lt_cv_truncate_bin
22325
22326# The name of the directory that contains temporary libtool files.
22327objdir=$objdir
22328
22329# Used to examine libraries when file_magic_cmd begins with "file".
22330MAGIC_CMD=$MAGIC_CMD
22331
22332# Must we lock files when doing compilation?
22333need_locks=$lt_need_locks
22334
22335# Manifest tool.
22336MANIFEST_TOOL=$lt_MANIFEST_TOOL
22337
22338# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22339DSYMUTIL=$lt_DSYMUTIL
22340
22341# Tool to change global to local symbols on Mac OS X.
22342NMEDIT=$lt_NMEDIT
22343
22344# Tool to manipulate fat objects and archives on Mac OS X.
22345LIPO=$lt_LIPO
22346
22347# ldd/readelf like tool for Mach-O binaries on Mac OS X.
22348OTOOL=$lt_OTOOL
22349
22350# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22351OTOOL64=$lt_OTOOL64
22352
22353# Old archive suffix (normally "a").
22354libext=$libext
22355
22356# Shared library suffix (normally ".so").
22357shrext_cmds=$lt_shrext_cmds
22358
22359# The commands to extract the exported symbol list from a shared archive.
22360extract_expsyms_cmds=$lt_extract_expsyms_cmds
22361
22362# Variables whose values should be saved in libtool wrapper scripts and
22363# restored at link time.
22364variables_saved_for_relink=$lt_variables_saved_for_relink
22365
22366# Do we need the "lib" prefix for modules?
22367need_lib_prefix=$need_lib_prefix
22368
22369# Do we need a version for libraries?
22370need_version=$need_version
22371
22372# Library versioning type.
22373version_type=$version_type
22374
22375# Shared library runtime path variable.
22376runpath_var=$runpath_var
22377
22378# Shared library path variable.
22379shlibpath_var=$shlibpath_var
22380
22381# Is shlibpath searched before the hard-coded library search path?
22382shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22383
22384# Format of library name prefix.
22385libname_spec=$lt_libname_spec
22386
22387# List of archive names.  First name is the real one, the rest are links.
22388# The last name is the one that the linker finds with -lNAME
22389library_names_spec=$lt_library_names_spec
22390
22391# The coded name of the library, if different from the real name.
22392soname_spec=$lt_soname_spec
22393
22394# Permission mode override for installation of shared libraries.
22395install_override_mode=$lt_install_override_mode
22396
22397# Command to use after installation of a shared archive.
22398postinstall_cmds=$lt_postinstall_cmds
22399
22400# Command to use after uninstallation of a shared archive.
22401postuninstall_cmds=$lt_postuninstall_cmds
22402
22403# Commands used to finish a libtool library installation in a directory.
22404finish_cmds=$lt_finish_cmds
22405
22406# As "finish_cmds", except a single script fragment to be evaled but
22407# not shown.
22408finish_eval=$lt_finish_eval
22409
22410# Whether we should hardcode library paths into libraries.
22411hardcode_into_libs=$hardcode_into_libs
22412
22413# Compile-time system search path for libraries.
22414sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22415
22416# Detected run-time system search path for libraries.
22417sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
22418
22419# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
22420configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
22421
22422# Whether dlopen is supported.
22423dlopen_support=$enable_dlopen
22424
22425# Whether dlopen of programs is supported.
22426dlopen_self=$enable_dlopen_self
22427
22428# Whether dlopen of statically linked programs is supported.
22429dlopen_self_static=$enable_dlopen_self_static
22430
22431# Commands to strip libraries.
22432old_striplib=$lt_old_striplib
22433striplib=$lt_striplib
22434
22435
22436# The linker used to build libraries.
22437LD=$lt_LD
22438
22439# How to create reloadable object files.
22440reload_flag=$lt_reload_flag
22441reload_cmds=$lt_reload_cmds
22442
22443# Commands used to build an old-style archive.
22444old_archive_cmds=$lt_old_archive_cmds
22445
22446# A language specific compiler.
22447CC=$lt_compiler
22448
22449# Is the compiler the GNU compiler?
22450with_gcc=$GCC
22451
22452# Compiler flag to turn off builtin functions.
22453no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22454
22455# Additional compiler flags for building library objects.
22456pic_flag=$lt_lt_prog_compiler_pic
22457
22458# How to pass a linker flag through the compiler.
22459wl=$lt_lt_prog_compiler_wl
22460
22461# Compiler flag to prevent dynamic linking.
22462link_static_flag=$lt_lt_prog_compiler_static
22463
22464# Does compiler simultaneously support -c and -o options?
22465compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22466
22467# Whether or not to add -lc for building shared libraries.
22468build_libtool_need_lc=$archive_cmds_need_lc
22469
22470# Whether or not to disallow shared libs when runtime libs are static.
22471allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22472
22473# Compiler flag to allow reflexive dlopens.
22474export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22475
22476# Compiler flag to generate shared objects directly from archives.
22477whole_archive_flag_spec=$lt_whole_archive_flag_spec
22478
22479# Whether the compiler copes with passing no objects directly.
22480compiler_needs_object=$lt_compiler_needs_object
22481
22482# Create an old-style archive from a shared archive.
22483old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22484
22485# Create a temporary old-style archive to link instead of a shared archive.
22486old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22487
22488# Commands used to build a shared archive.
22489archive_cmds=$lt_archive_cmds
22490archive_expsym_cmds=$lt_archive_expsym_cmds
22491
22492# Commands used to build a loadable module if different from building
22493# a shared archive.
22494module_cmds=$lt_module_cmds
22495module_expsym_cmds=$lt_module_expsym_cmds
22496
22497# Whether we are building with GNU ld or not.
22498with_gnu_ld=$lt_with_gnu_ld
22499
22500# Flag that allows shared libraries with undefined symbols to be built.
22501allow_undefined_flag=$lt_allow_undefined_flag
22502
22503# Flag that enforces no undefined symbols.
22504no_undefined_flag=$lt_no_undefined_flag
22505
22506# Flag to hardcode \$libdir into a binary during linking.
22507# This must work even if \$libdir does not exist
22508hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22509
22510# Whether we need a single "-rpath" flag with a separated argument.
22511hardcode_libdir_separator=$lt_hardcode_libdir_separator
22512
22513# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22514# DIR into the resulting binary.
22515hardcode_direct=$hardcode_direct
22516
22517# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22518# DIR into the resulting binary and the resulting library dependency is
22519# "absolute",i.e impossible to change by setting \$shlibpath_var if the
22520# library is relocated.
22521hardcode_direct_absolute=$hardcode_direct_absolute
22522
22523# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22524# into the resulting binary.
22525hardcode_minus_L=$hardcode_minus_L
22526
22527# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22528# into the resulting binary.
22529hardcode_shlibpath_var=$hardcode_shlibpath_var
22530
22531# Set to "yes" if building a shared library automatically hardcodes DIR
22532# into the library and all subsequent libraries and executables linked
22533# against it.
22534hardcode_automatic=$hardcode_automatic
22535
22536# Set to yes if linker adds runtime paths of dependent libraries
22537# to runtime path list.
22538inherit_rpath=$inherit_rpath
22539
22540# Whether libtool must link a program against all its dependency libraries.
22541link_all_deplibs=$link_all_deplibs
22542
22543# Set to "yes" if exported symbols are required.
22544always_export_symbols=$always_export_symbols
22545
22546# The commands to list exported symbols.
22547export_symbols_cmds=$lt_export_symbols_cmds
22548
22549# Symbols that should not be listed in the preloaded symbols.
22550exclude_expsyms=$lt_exclude_expsyms
22551
22552# Symbols that must always be exported.
22553include_expsyms=$lt_include_expsyms
22554
22555# Commands necessary for linking programs (against libraries) with templates.
22556prelink_cmds=$lt_prelink_cmds
22557
22558# Commands necessary for finishing linking programs.
22559postlink_cmds=$lt_postlink_cmds
22560
22561# Specify filename containing input files.
22562file_list_spec=$lt_file_list_spec
22563
22564# How to hardcode a shared library path into an executable.
22565hardcode_action=$hardcode_action
22566
22567# ### END LIBTOOL CONFIG
22568
22569_LT_EOF
22570
22571    cat <<'_LT_EOF' >> "$cfgfile"
22572
22573# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
22574
22575# func_munge_path_list VARIABLE PATH
22576# -----------------------------------
22577# VARIABLE is name of variable containing _space_ separated list of
22578# directories to be munged by the contents of PATH, which is string
22579# having a format:
22580# "DIR[:DIR]:"
22581#       string "DIR[ DIR]" will be prepended to VARIABLE
22582# ":DIR[:DIR]"
22583#       string "DIR[ DIR]" will be appended to VARIABLE
22584# "DIRP[:DIRP]::[DIRA:]DIRA"
22585#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
22586#       "DIRA[ DIRA]" will be appended to VARIABLE
22587# "DIR[:DIR]"
22588#       VARIABLE will be replaced by "DIR[ DIR]"
22589func_munge_path_list ()
22590{
22591    case x$2 in
22592    x)
22593        ;;
22594    *:)
22595        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
22596        ;;
22597    x:*)
22598        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
22599        ;;
22600    *::*)
22601        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
22602        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
22603        ;;
22604    *)
22605        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
22606        ;;
22607    esac
22608}
22609
22610
22611# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
22612func_cc_basename ()
22613{
22614    for cc_temp in $*""; do
22615      case $cc_temp in
22616        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22617        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22618        \-*) ;;
22619        *) break;;
22620      esac
22621    done
22622    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
22623}
22624
22625
22626# ### END FUNCTIONS SHARED WITH CONFIGURE
22627
22628_LT_EOF
22629
22630  case $host_os in
22631  aix3*)
22632    cat <<\_LT_EOF >> "$cfgfile"
22633# AIX sometimes has problems with the GCC collect2 program.  For some
22634# reason, if we set the COLLECT_NAMES environment variable, the problems
22635# vanish in a puff of smoke.
22636if test set != "${COLLECT_NAMES+set}"; then
22637  COLLECT_NAMES=
22638  export COLLECT_NAMES
22639fi
22640_LT_EOF
22641    ;;
22642  esac
22643
22644
22645
22646ltmain=$ac_aux_dir/ltmain.sh
22647
22648
22649  # We use sed instead of cat because bash on DJGPP gets confused if
22650  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
22651  # text mode, it properly converts lines to CR/LF.  This bash problem
22652  # is reportedly fixed, but why not run on old versions too?
22653  $SED '$q' "$ltmain" >> "$cfgfile" \
22654     || (rm -f "$cfgfile"; exit 1)
22655
22656   mv -f "$cfgfile" "$ofile" ||
22657    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22658  chmod +x "$ofile"
22659
22660 ;;
22661
22662  esac
22663done # for ac_tag
22664
22665
22666as_fn_exit 0
22667_ACEOF
22668ac_clean_files=$ac_clean_files_save
22669
22670test $ac_write_fail = 0 ||
22671  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22672
22673
22674# configure is writing to config.log, and then calls config.status.
22675# config.status does its own redirection, appending to config.log.
22676# Unfortunately, on DOS this fails, as config.log is still kept open
22677# by configure, so config.status won't be able to write to it; its
22678# output is simply discarded.  So we exec the FD to /dev/null,
22679# effectively closing config.log, so it can be properly (re)opened and
22680# appended to by config.status.  When coming back to configure, we
22681# need to make the FD available again.
22682if test "$no_create" != yes; then
22683  ac_cs_success=:
22684  ac_config_status_args=
22685  test "$silent" = yes &&
22686    ac_config_status_args="$ac_config_status_args --quiet"
22687  exec 5>/dev/null
22688  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22689  exec 5>>config.log
22690  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22691  # would make configure fail if this is the last instruction.
22692  $ac_cs_success || as_fn_exit 1
22693fi
22694if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22695  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22696printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22697fi
22698
22699
22700