1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.71 for libXpm 3.5.17.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxpm/-/issues/>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9# Inc.
10#
11#
12# This configure script is free software; the Free Software Foundation
13# gives unlimited permission to copy, distribute and modify it.
14## -------------------- ##
15## M4sh Initialization. ##
16## -------------------- ##
17
18# Be more Bourne compatible
19DUALCASE=1; export DUALCASE # for MKS sh
20as_nop=:
21if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22then :
23  emulate sh
24  NULLCMD=:
25  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26  # is contrary to our usage.  Disable this feature.
27  alias -g '${1+"$@"}'='"$@"'
28  setopt NO_GLOB_SUBST
29else $as_nop
30  case `(set -o) 2>/dev/null` in #(
31  *posix*) :
32    set -o posix ;; #(
33  *) :
34     ;;
35esac
36fi
37
38
39
40# Reset variables that may have inherited troublesome values from
41# the environment.
42
43# IFS needs to be set, to space, tab, and newline, in precisely that order.
44# (If _AS_PATH_WALK were called with IFS unset, it would have the
45# side effect of setting IFS to empty, thus disabling word splitting.)
46# Quoting is to prevent editors from complaining about space-tab.
47as_nl='
48'
49export as_nl
50IFS=" ""	$as_nl"
51
52PS1='$ '
53PS2='> '
54PS4='+ '
55
56# Ensure predictable behavior from utilities with locale-dependent output.
57LC_ALL=C
58export LC_ALL
59LANGUAGE=C
60export LANGUAGE
61
62# We cannot yet rely on "unset" to work, but we need these variables
63# to be unset--not just set to an empty or harmless value--now, to
64# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
65# also avoids known problems related to "unset" and subshell syntax
66# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68do eval test \${$as_var+y} \
69  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70done
71
72# Ensure that fds 0, 1, and 2 are open.
73if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
76
77# The user is always right.
78if ${PATH_SEPARATOR+false} :; then
79  PATH_SEPARATOR=:
80  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82      PATH_SEPARATOR=';'
83  }
84fi
85
86
87# Find who we are.  Look in the path if we contain no directory separator.
88as_myself=
89case $0 in #((
90  *[\\/]* ) as_myself=$0 ;;
91  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92for as_dir in $PATH
93do
94  IFS=$as_save_IFS
95  case $as_dir in #(((
96    '') as_dir=./ ;;
97    */) ;;
98    *) as_dir=$as_dir/ ;;
99  esac
100    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116
117# Use a proper internal environment variable to ensure we don't fall
118  # into an infinite loop, continuously re-executing ourselves.
119  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120    _as_can_reexec=no; export _as_can_reexec;
121    # We cannot yet assume a decent shell, so we have to provide a
122# neutralization value for shells without unset; and this also
123# works around shells that cannot unset nonexistent variables.
124# Preserve -v and -x to the replacement shell.
125BASH_ENV=/dev/null
126ENV=/dev/null
127(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128case $- in # ((((
129  *v*x* | *x*v* ) as_opts=-vx ;;
130  *v* ) as_opts=-v ;;
131  *x* ) as_opts=-x ;;
132  * ) as_opts= ;;
133esac
134exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135# Admittedly, this is quite paranoid, since all the known shells bail
136# out after a failed `exec'.
137printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138exit 255
139  fi
140  # We don't want this to propagate to other subprocesses.
141          { _as_can_reexec=; unset _as_can_reexec;}
142if test "x$CONFIG_SHELL" = x; then
143  as_bourne_compatible="as_nop=:
144if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145then :
146  emulate sh
147  NULLCMD=:
148  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149  # is contrary to our usage.  Disable this feature.
150  alias -g '\${1+\"\$@\"}'='\"\$@\"'
151  setopt NO_GLOB_SUBST
152else \$as_nop
153  case \`(set -o) 2>/dev/null\` in #(
154  *posix*) :
155    set -o posix ;; #(
156  *) :
157     ;;
158esac
159fi
160"
161  as_required="as_fn_return () { (exit \$1); }
162as_fn_success () { as_fn_return 0; }
163as_fn_failure () { as_fn_return 1; }
164as_fn_ret_success () { return 0; }
165as_fn_ret_failure () { return 1; }
166
167exitcode=0
168as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173then :
174
175else \$as_nop
176  exitcode=1; echo positional parameters were not saved.
177fi
178test x\$exitcode = x0 || exit 1
179blah=\$(echo \$(echo blah))
180test x\"\$blah\" = xblah || exit 1
181test -x / || exit 1"
182  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186
187  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
188    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
189    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
190    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191    PATH=/empty FPATH=/empty; export PATH FPATH
192    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
193      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
194test \$(( 1 + 1 )) = 2 || exit 1"
195  if (eval "$as_required") 2>/dev/null
196then :
197  as_have_required=yes
198else $as_nop
199  as_have_required=no
200fi
201  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
202then :
203
204else $as_nop
205  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
206as_found=false
207for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
208do
209  IFS=$as_save_IFS
210  case $as_dir in #(((
211    '') as_dir=./ ;;
212    */) ;;
213    *) as_dir=$as_dir/ ;;
214  esac
215  as_found=:
216  case $as_dir in #(
217	 /*)
218	   for as_base in sh bash ksh sh5; do
219	     # Try only shells that exist, to save several forks.
220	     as_shell=$as_dir$as_base
221	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222		    as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
223then :
224  CONFIG_SHELL=$as_shell as_have_required=yes
225		   if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
226then :
227  break 2
228fi
229fi
230	   done;;
231       esac
232  as_found=false
233done
234IFS=$as_save_IFS
235if $as_found
236then :
237
238else $as_nop
239  if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240	      as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
241then :
242  CONFIG_SHELL=$SHELL as_have_required=yes
243fi
244fi
245
246
247      if test "x$CONFIG_SHELL" != x
248then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno
271then :
272  printf "%s\n" "$0: This script requires a shell more modern than all"
273  printf "%s\n" "$0: the shells that I found on your system."
274  if test ${ZSH_VERSION+y} ; then
275    printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276    printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
277  else
278    printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
279$0: https://gitlab.freedesktop.org/xorg/lib/libxpm/-/issues/
280$0: about your system, including any error possibly output
281$0: before this message. Then install a modern shell, or
282$0: manually run the script under such a shell if you do
283$0: have one."
284  fi
285  exit 1
286fi
287fi
288fi
289SHELL=${CONFIG_SHELL-/bin/sh}
290export SHELL
291# Unset more variables known to interfere with behavior of common tools.
292CLICOLOR_FORCE= GREP_OPTIONS=
293unset CLICOLOR_FORCE GREP_OPTIONS
294
295## --------------------- ##
296## M4sh Shell Functions. ##
297## --------------------- ##
298# as_fn_unset VAR
299# ---------------
300# Portably unset VAR.
301as_fn_unset ()
302{
303  { eval $1=; unset $1;}
304}
305as_unset=as_fn_unset
306
307
308# as_fn_set_status STATUS
309# -----------------------
310# Set $? to STATUS, without forking.
311as_fn_set_status ()
312{
313  return $1
314} # as_fn_set_status
315
316# as_fn_exit STATUS
317# -----------------
318# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
319as_fn_exit ()
320{
321  set +e
322  as_fn_set_status $1
323  exit $1
324} # as_fn_exit
325# as_fn_nop
326# ---------
327# Do nothing but, unlike ":", preserve the value of $?.
328as_fn_nop ()
329{
330  return $?
331}
332as_nop=as_fn_nop
333
334# as_fn_mkdir_p
335# -------------
336# Create "$as_dir" as a directory, including parents if necessary.
337as_fn_mkdir_p ()
338{
339
340  case $as_dir in #(
341  -*) as_dir=./$as_dir;;
342  esac
343  test -d "$as_dir" || eval $as_mkdir_p || {
344    as_dirs=
345    while :; do
346      case $as_dir in #(
347      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
348      *) as_qdir=$as_dir;;
349      esac
350      as_dirs="'$as_qdir' $as_dirs"
351      as_dir=`$as_dirname -- "$as_dir" ||
352$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
353	 X"$as_dir" : 'X\(//\)[^/]' \| \
354	 X"$as_dir" : 'X\(//\)$' \| \
355	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
356printf "%s\n" X"$as_dir" |
357    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
358	    s//\1/
359	    q
360	  }
361	  /^X\(\/\/\)[^/].*/{
362	    s//\1/
363	    q
364	  }
365	  /^X\(\/\/\)$/{
366	    s//\1/
367	    q
368	  }
369	  /^X\(\/\).*/{
370	    s//\1/
371	    q
372	  }
373	  s/.*/./; q'`
374      test -d "$as_dir" && break
375    done
376    test -z "$as_dirs" || eval "mkdir $as_dirs"
377  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
378
379
380} # as_fn_mkdir_p
381
382# as_fn_executable_p FILE
383# -----------------------
384# Test if FILE is an executable regular file.
385as_fn_executable_p ()
386{
387  test -f "$1" && test -x "$1"
388} # as_fn_executable_p
389# as_fn_append VAR VALUE
390# ----------------------
391# Append the text in VALUE to the end of the definition contained in VAR. Take
392# advantage of any shell optimizations that allow amortized linear growth over
393# repeated appends, instead of the typical quadratic growth present in naive
394# implementations.
395if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
396then :
397  eval 'as_fn_append ()
398  {
399    eval $1+=\$2
400  }'
401else $as_nop
402  as_fn_append ()
403  {
404    eval $1=\$$1\$2
405  }
406fi # as_fn_append
407
408# as_fn_arith ARG...
409# ------------------
410# Perform arithmetic evaluation on the ARGs, and store the result in the
411# global $as_val. Take advantage of shells that can avoid forks. The arguments
412# must be portable across $(()) and expr.
413if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
414then :
415  eval 'as_fn_arith ()
416  {
417    as_val=$(( $* ))
418  }'
419else $as_nop
420  as_fn_arith ()
421  {
422    as_val=`expr "$@" || test $? -eq 1`
423  }
424fi # as_fn_arith
425
426# as_fn_nop
427# ---------
428# Do nothing but, unlike ":", preserve the value of $?.
429as_fn_nop ()
430{
431  return $?
432}
433as_nop=as_fn_nop
434
435# as_fn_error STATUS ERROR [LINENO LOG_FD]
436# ----------------------------------------
437# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
438# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
439# script with STATUS, using 1 if that was 0.
440as_fn_error ()
441{
442  as_status=$1; test $as_status -eq 0 && as_status=1
443  if test "$4"; then
444    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
445    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
446  fi
447  printf "%s\n" "$as_me: error: $2" >&2
448  as_fn_exit $as_status
449} # as_fn_error
450
451if expr a : '\(a\)' >/dev/null 2>&1 &&
452   test "X`expr 00001 : '.*\(...\)'`" = X001; then
453  as_expr=expr
454else
455  as_expr=false
456fi
457
458if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
459  as_basename=basename
460else
461  as_basename=false
462fi
463
464if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465  as_dirname=dirname
466else
467  as_dirname=false
468fi
469
470as_me=`$as_basename -- "$0" ||
471$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
472	 X"$0" : 'X\(//\)$' \| \
473	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
474printf "%s\n" X/"$0" |
475    sed '/^.*\/\([^/][^/]*\)\/*$/{
476	    s//\1/
477	    q
478	  }
479	  /^X\/\(\/\/\)$/{
480	    s//\1/
481	    q
482	  }
483	  /^X\/\(\/\).*/{
484	    s//\1/
485	    q
486	  }
487	  s/.*/./; q'`
488
489# Avoid depending upon Character Ranges.
490as_cr_letters='abcdefghijklmnopqrstuvwxyz'
491as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
492as_cr_Letters=$as_cr_letters$as_cr_LETTERS
493as_cr_digits='0123456789'
494as_cr_alnum=$as_cr_Letters$as_cr_digits
495
496
497  as_lineno_1=$LINENO as_lineno_1a=$LINENO
498  as_lineno_2=$LINENO as_lineno_2a=$LINENO
499  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
500  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
501  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
502  sed -n '
503    p
504    /[$]LINENO/=
505  ' <$as_myself |
506    sed '
507      s/[$]LINENO.*/&-/
508      t lineno
509      b
510      :lineno
511      N
512      :loop
513      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
514      t loop
515      s/-\n.*//
516    ' >$as_me.lineno &&
517  chmod +x "$as_me.lineno" ||
518    { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
519
520  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
521  # already done that, so ensure we don't try to do so again and fall
522  # in an infinite loop.  This has already happened in practice.
523  _as_can_reexec=no; export _as_can_reexec
524  # Don't try to exec as it changes $[0], causing all sort of problems
525  # (the dirname of $[0] is not the place where we might find the
526  # original and so on.  Autoconf is especially sensitive to this).
527  . "./$as_me.lineno"
528  # Exit status is that of the last command.
529  exit
530}
531
532
533# Determine whether it's possible to make 'echo' print without a newline.
534# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
535# for compatibility with existing Makefiles.
536ECHO_C= ECHO_N= ECHO_T=
537case `echo -n x` in #(((((
538-n*)
539  case `echo 'xy\c'` in
540  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
541  xy)  ECHO_C='\c';;
542  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
543       ECHO_T='	';;
544  esac;;
545*)
546  ECHO_N='-n';;
547esac
548
549# For backward compatibility with old third-party macros, we provide
550# the shell variables $as_echo and $as_echo_n.  New code should use
551# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
552as_echo='printf %s\n'
553as_echo_n='printf %s'
554
555
556rm -f conf$$ conf$$.exe conf$$.file
557if test -d conf$$.dir; then
558  rm -f conf$$.dir/conf$$.file
559else
560  rm -f conf$$.dir
561  mkdir conf$$.dir 2>/dev/null
562fi
563if (echo >conf$$.file) 2>/dev/null; then
564  if ln -s conf$$.file conf$$ 2>/dev/null; then
565    as_ln_s='ln -s'
566    # ... but there are two gotchas:
567    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
568    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
569    # In both cases, we have to default to `cp -pR'.
570    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
571      as_ln_s='cp -pR'
572  elif ln conf$$.file conf$$ 2>/dev/null; then
573    as_ln_s=ln
574  else
575    as_ln_s='cp -pR'
576  fi
577else
578  as_ln_s='cp -pR'
579fi
580rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
581rmdir conf$$.dir 2>/dev/null
582
583if mkdir -p . 2>/dev/null; then
584  as_mkdir_p='mkdir -p "$as_dir"'
585else
586  test -d ./-p && rmdir ./-p
587  as_mkdir_p=false
588fi
589
590as_test_x='test -x'
591as_executable_p=as_fn_executable_p
592
593# Sed expression to map a string onto a valid CPP name.
594as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
595
596# Sed expression to map a string onto a valid variable name.
597as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
598
599SHELL=${CONFIG_SHELL-/bin/sh}
600
601
602test -n "$DJDIR" || exec 7<&0 </dev/null
603exec 6>&1
604
605# Name of the host.
606# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
607# so uname gets run too.
608ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
609
610#
611# Initializations.
612#
613ac_default_prefix=/usr/local
614ac_clean_files=
615ac_config_libobj_dir=.
616LIBOBJS=
617cross_compiling=no
618subdirs=
619MFLAGS=
620MAKEFLAGS=
621
622# Identity of this package.
623PACKAGE_NAME='libXpm'
624PACKAGE_TARNAME='libXpm'
625PACKAGE_VERSION='3.5.17'
626PACKAGE_STRING='libXpm 3.5.17'
627PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libxpm/-/issues/'
628PACKAGE_URL=''
629
630ac_unique_file="Makefile.am"
631# Factoring default headers for most tests.
632ac_includes_default="\
633#include <stddef.h>
634#ifdef HAVE_STDIO_H
635# include <stdio.h>
636#endif
637#ifdef HAVE_STDLIB_H
638# include <stdlib.h>
639#endif
640#ifdef HAVE_STRING_H
641# include <string.h>
642#endif
643#ifdef HAVE_INTTYPES_H
644# include <inttypes.h>
645#endif
646#ifdef HAVE_STDINT_H
647# include <stdint.h>
648#endif
649#ifdef HAVE_STRINGS_H
650# include <strings.h>
651#endif
652#ifdef HAVE_SYS_TYPES_H
653# include <sys/types.h>
654#endif
655#ifdef HAVE_SYS_STAT_H
656# include <sys/stat.h>
657#endif
658#ifdef HAVE_UNISTD_H
659# include <unistd.h>
660#endif"
661
662ac_header_c_list=
663ac_subst_vars='am__EXEEXT_FALSE
664am__EXEEXT_TRUE
665LTLIBOBJS
666LIBOBJS
667HAVE_GLIB_FALSE
668HAVE_GLIB_TRUE
669GLIB_LIBS
670GLIB_CFLAGS
671ENABLE_UNIT_TESTS_FALSE
672ENABLE_UNIT_TESTS_TRUE
673XORG_MALLOC_DEBUG_ENV
674XPM_PATH_UNCOMPRESS
675XPM_PATH_COMPRESS
676XPM_PATH_GZIP
677COMPRESSED_PIXMAPS_FALSE
678COMPRESSED_PIXMAPS_TRUE
679USE_GETTEXT_FALSE
680USE_GETTEXT_TRUE
681LOCALEDIR
682BUILD_SXPM_FALSE
683BUILD_SXPM_TRUE
684SXPM_LIBS
685SXPM_CFLAGS
686XPM_LIBS
687XPM_CFLAGS
688MAN_SUBSTS
689XORG_MAN_PAGE
690ADMIN_MAN_DIR
691DRIVER_MAN_DIR
692MISC_MAN_DIR
693FILE_MAN_DIR
694LIB_MAN_DIR
695APP_MAN_DIR
696ADMIN_MAN_SUFFIX
697DRIVER_MAN_SUFFIX
698MISC_MAN_SUFFIX
699FILE_MAN_SUFFIX
700LIB_MAN_SUFFIX
701APP_MAN_SUFFIX
702INSTALL_CMD
703PKG_CONFIG_LIBDIR
704PKG_CONFIG_PATH
705PKG_CONFIG
706CHANGELOG_CMD
707STRICT_CFLAGS
708CWARNFLAGS
709BASE_CFLAGS
710LT_SYS_LIBRARY_PATH
711OTOOL64
712OTOOL
713LIPO
714NMEDIT
715DSYMUTIL
716MANIFEST_TOOL
717RANLIB
718ac_ct_AR
719AR
720DLLTOOL
721OBJDUMP
722FILECMD
723LN_S
724NM
725ac_ct_DUMPBIN
726DUMPBIN
727LD
728FGREP
729EGREP
730GREP
731SED
732am__fastdepCC_FALSE
733am__fastdepCC_TRUE
734CCDEPMODE
735am__nodep
736AMDEPBACKSLASH
737AMDEP_FALSE
738AMDEP_TRUE
739am__include
740DEPDIR
741OBJEXT
742EXEEXT
743ac_ct_CC
744CPPFLAGS
745LDFLAGS
746CFLAGS
747CC
748host_os
749host_vendor
750host_cpu
751host
752build_os
753build_vendor
754build_cpu
755build
756LIBTOOL
757AM_BACKSLASH
758AM_DEFAULT_VERBOSITY
759AM_DEFAULT_V
760AM_V
761CSCOPE
762ETAGS
763CTAGS
764am__untar
765am__tar
766AMTAR
767am__leading_dot
768SET_MAKE
769AWK
770mkdir_p
771MKDIR_P
772INSTALL_STRIP_PROGRAM
773STRIP
774install_sh
775MAKEINFO
776AUTOHEADER
777AUTOMAKE
778AUTOCONF
779ACLOCAL
780VERSION
781PACKAGE
782CYGPATH_W
783am__isrc
784INSTALL_DATA
785INSTALL_SCRIPT
786INSTALL_PROGRAM
787target_alias
788host_alias
789build_alias
790LIBS
791ECHO_T
792ECHO_N
793ECHO_C
794DEFS
795mandir
796localedir
797libdir
798psdir
799pdfdir
800dvidir
801htmldir
802infodir
803docdir
804oldincludedir
805includedir
806runstatedir
807localstatedir
808sharedstatedir
809sysconfdir
810datadir
811datarootdir
812libexecdir
813sbindir
814bindir
815program_transform_name
816prefix
817exec_prefix
818PACKAGE_URL
819PACKAGE_BUGREPORT
820PACKAGE_STRING
821PACKAGE_VERSION
822PACKAGE_TARNAME
823PACKAGE_NAME
824PATH_SEPARATOR
825SHELL
826am__quote'
827ac_subst_files=''
828ac_user_opts='
829enable_option_checking
830enable_silent_rules
831enable_shared
832enable_static
833with_pic
834enable_fast_install
835with_aix_soname
836enable_dependency_tracking
837with_gnu_ld
838with_sysroot
839enable_libtool_lock
840enable_selective_werror
841enable_strict_compilation
842with_localedir
843enable_open_zfile
844enable_stat_zfile
845enable_unit_tests
846with_glib
847'
848      ac_precious_vars='build_alias
849host_alias
850target_alias
851CC
852CFLAGS
853LDFLAGS
854LIBS
855CPPFLAGS
856LT_SYS_LIBRARY_PATH
857PKG_CONFIG
858PKG_CONFIG_PATH
859PKG_CONFIG_LIBDIR
860XPM_CFLAGS
861XPM_LIBS
862SXPM_CFLAGS
863SXPM_LIBS
864XORG_MALLOC_DEBUG_ENV
865GLIB_CFLAGS
866GLIB_LIBS'
867
868
869# Initialize some variables set by options.
870ac_init_help=
871ac_init_version=false
872ac_unrecognized_opts=
873ac_unrecognized_sep=
874# The variables have the same names as the options, with
875# dashes changed to underlines.
876cache_file=/dev/null
877exec_prefix=NONE
878no_create=
879no_recursion=
880prefix=NONE
881program_prefix=NONE
882program_suffix=NONE
883program_transform_name=s,x,x,
884silent=
885site=
886srcdir=
887verbose=
888x_includes=NONE
889x_libraries=NONE
890
891# Installation directory options.
892# These are left unexpanded so users can "make install exec_prefix=/foo"
893# and all the variables that are supposed to be based on exec_prefix
894# by default will actually change.
895# Use braces instead of parens because sh, perl, etc. also accept them.
896# (The list follows the same order as the GNU Coding Standards.)
897bindir='${exec_prefix}/bin'
898sbindir='${exec_prefix}/sbin'
899libexecdir='${exec_prefix}/libexec'
900datarootdir='${prefix}/share'
901datadir='${datarootdir}'
902sysconfdir='${prefix}/etc'
903sharedstatedir='${prefix}/com'
904localstatedir='${prefix}/var'
905runstatedir='${localstatedir}/run'
906includedir='${prefix}/include'
907oldincludedir='/usr/include'
908docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
909infodir='${datarootdir}/info'
910htmldir='${docdir}'
911dvidir='${docdir}'
912pdfdir='${docdir}'
913psdir='${docdir}'
914libdir='${exec_prefix}/lib'
915localedir='${datarootdir}/locale'
916mandir='${datarootdir}/man'
917
918ac_prev=
919ac_dashdash=
920for ac_option
921do
922  # If the previous option needs an argument, assign it.
923  if test -n "$ac_prev"; then
924    eval $ac_prev=\$ac_option
925    ac_prev=
926    continue
927  fi
928
929  case $ac_option in
930  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
931  *=)   ac_optarg= ;;
932  *)    ac_optarg=yes ;;
933  esac
934
935  case $ac_dashdash$ac_option in
936  --)
937    ac_dashdash=yes ;;
938
939  -bindir | --bindir | --bindi | --bind | --bin | --bi)
940    ac_prev=bindir ;;
941  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
942    bindir=$ac_optarg ;;
943
944  -build | --build | --buil | --bui | --bu)
945    ac_prev=build_alias ;;
946  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
947    build_alias=$ac_optarg ;;
948
949  -cache-file | --cache-file | --cache-fil | --cache-fi \
950  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
951    ac_prev=cache_file ;;
952  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
953  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
954    cache_file=$ac_optarg ;;
955
956  --config-cache | -C)
957    cache_file=config.cache ;;
958
959  -datadir | --datadir | --datadi | --datad)
960    ac_prev=datadir ;;
961  -datadir=* | --datadir=* | --datadi=* | --datad=*)
962    datadir=$ac_optarg ;;
963
964  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
965  | --dataroo | --dataro | --datar)
966    ac_prev=datarootdir ;;
967  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
968  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
969    datarootdir=$ac_optarg ;;
970
971  -disable-* | --disable-*)
972    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
973    # Reject names that are not valid shell variable names.
974    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
975      as_fn_error $? "invalid feature name: \`$ac_useropt'"
976    ac_useropt_orig=$ac_useropt
977    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
978    case $ac_user_opts in
979      *"
980"enable_$ac_useropt"
981"*) ;;
982      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
983	 ac_unrecognized_sep=', ';;
984    esac
985    eval enable_$ac_useropt=no ;;
986
987  -docdir | --docdir | --docdi | --doc | --do)
988    ac_prev=docdir ;;
989  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
990    docdir=$ac_optarg ;;
991
992  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
993    ac_prev=dvidir ;;
994  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
995    dvidir=$ac_optarg ;;
996
997  -enable-* | --enable-*)
998    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
999    # Reject names that are not valid shell variable names.
1000    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1001      as_fn_error $? "invalid feature name: \`$ac_useropt'"
1002    ac_useropt_orig=$ac_useropt
1003    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1004    case $ac_user_opts in
1005      *"
1006"enable_$ac_useropt"
1007"*) ;;
1008      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1009	 ac_unrecognized_sep=', ';;
1010    esac
1011    eval enable_$ac_useropt=\$ac_optarg ;;
1012
1013  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1014  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1015  | --exec | --exe | --ex)
1016    ac_prev=exec_prefix ;;
1017  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1018  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1019  | --exec=* | --exe=* | --ex=*)
1020    exec_prefix=$ac_optarg ;;
1021
1022  -gas | --gas | --ga | --g)
1023    # Obsolete; use --with-gas.
1024    with_gas=yes ;;
1025
1026  -help | --help | --hel | --he | -h)
1027    ac_init_help=long ;;
1028  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1029    ac_init_help=recursive ;;
1030  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1031    ac_init_help=short ;;
1032
1033  -host | --host | --hos | --ho)
1034    ac_prev=host_alias ;;
1035  -host=* | --host=* | --hos=* | --ho=*)
1036    host_alias=$ac_optarg ;;
1037
1038  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1039    ac_prev=htmldir ;;
1040  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1041  | --ht=*)
1042    htmldir=$ac_optarg ;;
1043
1044  -includedir | --includedir | --includedi | --included | --include \
1045  | --includ | --inclu | --incl | --inc)
1046    ac_prev=includedir ;;
1047  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1048  | --includ=* | --inclu=* | --incl=* | --inc=*)
1049    includedir=$ac_optarg ;;
1050
1051  -infodir | --infodir | --infodi | --infod | --info | --inf)
1052    ac_prev=infodir ;;
1053  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1054    infodir=$ac_optarg ;;
1055
1056  -libdir | --libdir | --libdi | --libd)
1057    ac_prev=libdir ;;
1058  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1059    libdir=$ac_optarg ;;
1060
1061  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1062  | --libexe | --libex | --libe)
1063    ac_prev=libexecdir ;;
1064  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1065  | --libexe=* | --libex=* | --libe=*)
1066    libexecdir=$ac_optarg ;;
1067
1068  -localedir | --localedir | --localedi | --localed | --locale)
1069    ac_prev=localedir ;;
1070  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1071    localedir=$ac_optarg ;;
1072
1073  -localstatedir | --localstatedir | --localstatedi | --localstated \
1074  | --localstate | --localstat | --localsta | --localst | --locals)
1075    ac_prev=localstatedir ;;
1076  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1077  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1078    localstatedir=$ac_optarg ;;
1079
1080  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1081    ac_prev=mandir ;;
1082  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1083    mandir=$ac_optarg ;;
1084
1085  -nfp | --nfp | --nf)
1086    # Obsolete; use --without-fp.
1087    with_fp=no ;;
1088
1089  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1090  | --no-cr | --no-c | -n)
1091    no_create=yes ;;
1092
1093  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1094  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1095    no_recursion=yes ;;
1096
1097  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1098  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1099  | --oldin | --oldi | --old | --ol | --o)
1100    ac_prev=oldincludedir ;;
1101  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1102  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1103  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1104    oldincludedir=$ac_optarg ;;
1105
1106  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1107    ac_prev=prefix ;;
1108  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1109    prefix=$ac_optarg ;;
1110
1111  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1112  | --program-pre | --program-pr | --program-p)
1113    ac_prev=program_prefix ;;
1114  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1115  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1116    program_prefix=$ac_optarg ;;
1117
1118  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1119  | --program-suf | --program-su | --program-s)
1120    ac_prev=program_suffix ;;
1121  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1122  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1123    program_suffix=$ac_optarg ;;
1124
1125  -program-transform-name | --program-transform-name \
1126  | --program-transform-nam | --program-transform-na \
1127  | --program-transform-n | --program-transform- \
1128  | --program-transform | --program-transfor \
1129  | --program-transfo | --program-transf \
1130  | --program-trans | --program-tran \
1131  | --progr-tra | --program-tr | --program-t)
1132    ac_prev=program_transform_name ;;
1133  -program-transform-name=* | --program-transform-name=* \
1134  | --program-transform-nam=* | --program-transform-na=* \
1135  | --program-transform-n=* | --program-transform-=* \
1136  | --program-transform=* | --program-transfor=* \
1137  | --program-transfo=* | --program-transf=* \
1138  | --program-trans=* | --program-tran=* \
1139  | --progr-tra=* | --program-tr=* | --program-t=*)
1140    program_transform_name=$ac_optarg ;;
1141
1142  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1143    ac_prev=pdfdir ;;
1144  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1145    pdfdir=$ac_optarg ;;
1146
1147  -psdir | --psdir | --psdi | --psd | --ps)
1148    ac_prev=psdir ;;
1149  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1150    psdir=$ac_optarg ;;
1151
1152  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1153  | -silent | --silent | --silen | --sile | --sil)
1154    silent=yes ;;
1155
1156  -runstatedir | --runstatedir | --runstatedi | --runstated \
1157  | --runstate | --runstat | --runsta | --runst | --runs \
1158  | --run | --ru | --r)
1159    ac_prev=runstatedir ;;
1160  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1161  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1162  | --run=* | --ru=* | --r=*)
1163    runstatedir=$ac_optarg ;;
1164
1165  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1166    ac_prev=sbindir ;;
1167  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1168  | --sbi=* | --sb=*)
1169    sbindir=$ac_optarg ;;
1170
1171  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1172  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1173  | --sharedst | --shareds | --shared | --share | --shar \
1174  | --sha | --sh)
1175    ac_prev=sharedstatedir ;;
1176  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1177  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1178  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1179  | --sha=* | --sh=*)
1180    sharedstatedir=$ac_optarg ;;
1181
1182  -site | --site | --sit)
1183    ac_prev=site ;;
1184  -site=* | --site=* | --sit=*)
1185    site=$ac_optarg ;;
1186
1187  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1188    ac_prev=srcdir ;;
1189  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1190    srcdir=$ac_optarg ;;
1191
1192  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1193  | --syscon | --sysco | --sysc | --sys | --sy)
1194    ac_prev=sysconfdir ;;
1195  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1196  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1197    sysconfdir=$ac_optarg ;;
1198
1199  -target | --target | --targe | --targ | --tar | --ta | --t)
1200    ac_prev=target_alias ;;
1201  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1202    target_alias=$ac_optarg ;;
1203
1204  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1205    verbose=yes ;;
1206
1207  -version | --version | --versio | --versi | --vers | -V)
1208    ac_init_version=: ;;
1209
1210  -with-* | --with-*)
1211    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1212    # Reject names that are not valid shell variable names.
1213    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1214      as_fn_error $? "invalid package name: \`$ac_useropt'"
1215    ac_useropt_orig=$ac_useropt
1216    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1217    case $ac_user_opts in
1218      *"
1219"with_$ac_useropt"
1220"*) ;;
1221      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1222	 ac_unrecognized_sep=', ';;
1223    esac
1224    eval with_$ac_useropt=\$ac_optarg ;;
1225
1226  -without-* | --without-*)
1227    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1228    # Reject names that are not valid shell variable names.
1229    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1230      as_fn_error $? "invalid package name: \`$ac_useropt'"
1231    ac_useropt_orig=$ac_useropt
1232    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1233    case $ac_user_opts in
1234      *"
1235"with_$ac_useropt"
1236"*) ;;
1237      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1238	 ac_unrecognized_sep=', ';;
1239    esac
1240    eval with_$ac_useropt=no ;;
1241
1242  --x)
1243    # Obsolete; use --with-x.
1244    with_x=yes ;;
1245
1246  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1247  | --x-incl | --x-inc | --x-in | --x-i)
1248    ac_prev=x_includes ;;
1249  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1250  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1251    x_includes=$ac_optarg ;;
1252
1253  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1254  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1255    ac_prev=x_libraries ;;
1256  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1257  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1258    x_libraries=$ac_optarg ;;
1259
1260  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1261Try \`$0 --help' for more information"
1262    ;;
1263
1264  *=*)
1265    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1266    # Reject names that are not valid shell variable names.
1267    case $ac_envvar in #(
1268      '' | [0-9]* | *[!_$as_cr_alnum]* )
1269      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1270    esac
1271    eval $ac_envvar=\$ac_optarg
1272    export $ac_envvar ;;
1273
1274  *)
1275    # FIXME: should be removed in autoconf 3.0.
1276    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1277    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1278      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1279    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1280    ;;
1281
1282  esac
1283done
1284
1285if test -n "$ac_prev"; then
1286  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1287  as_fn_error $? "missing argument to $ac_option"
1288fi
1289
1290if test -n "$ac_unrecognized_opts"; then
1291  case $enable_option_checking in
1292    no) ;;
1293    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1294    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1295  esac
1296fi
1297
1298# Check all directory arguments for consistency.
1299for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1300		datadir sysconfdir sharedstatedir localstatedir includedir \
1301		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1302		libdir localedir mandir runstatedir
1303do
1304  eval ac_val=\$$ac_var
1305  # Remove trailing slashes.
1306  case $ac_val in
1307    */ )
1308      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1309      eval $ac_var=\$ac_val;;
1310  esac
1311  # Be sure to have absolute directory names.
1312  case $ac_val in
1313    [\\/$]* | ?:[\\/]* )  continue;;
1314    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1315  esac
1316  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1317done
1318
1319# There might be people who depend on the old broken behavior: `$host'
1320# used to hold the argument of --host etc.
1321# FIXME: To remove some day.
1322build=$build_alias
1323host=$host_alias
1324target=$target_alias
1325
1326# FIXME: To remove some day.
1327if test "x$host_alias" != x; then
1328  if test "x$build_alias" = x; then
1329    cross_compiling=maybe
1330  elif test "x$build_alias" != "x$host_alias"; then
1331    cross_compiling=yes
1332  fi
1333fi
1334
1335ac_tool_prefix=
1336test -n "$host_alias" && ac_tool_prefix=$host_alias-
1337
1338test "$silent" = yes && exec 6>/dev/null
1339
1340
1341ac_pwd=`pwd` && test -n "$ac_pwd" &&
1342ac_ls_di=`ls -di .` &&
1343ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1344  as_fn_error $? "working directory cannot be determined"
1345test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1346  as_fn_error $? "pwd does not report name of working directory"
1347
1348
1349# Find the source files, if location was not specified.
1350if test -z "$srcdir"; then
1351  ac_srcdir_defaulted=yes
1352  # Try the directory containing this script, then the parent directory.
1353  ac_confdir=`$as_dirname -- "$as_myself" ||
1354$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1355	 X"$as_myself" : 'X\(//\)[^/]' \| \
1356	 X"$as_myself" : 'X\(//\)$' \| \
1357	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1358printf "%s\n" X"$as_myself" |
1359    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1360	    s//\1/
1361	    q
1362	  }
1363	  /^X\(\/\/\)[^/].*/{
1364	    s//\1/
1365	    q
1366	  }
1367	  /^X\(\/\/\)$/{
1368	    s//\1/
1369	    q
1370	  }
1371	  /^X\(\/\).*/{
1372	    s//\1/
1373	    q
1374	  }
1375	  s/.*/./; q'`
1376  srcdir=$ac_confdir
1377  if test ! -r "$srcdir/$ac_unique_file"; then
1378    srcdir=..
1379  fi
1380else
1381  ac_srcdir_defaulted=no
1382fi
1383if test ! -r "$srcdir/$ac_unique_file"; then
1384  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1385  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1386fi
1387ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1388ac_abs_confdir=`(
1389	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1390	pwd)`
1391# When building in place, set srcdir=.
1392if test "$ac_abs_confdir" = "$ac_pwd"; then
1393  srcdir=.
1394fi
1395# Remove unnecessary trailing slashes from srcdir.
1396# Double slashes in file names in object file debugging info
1397# mess up M-x gdb in Emacs.
1398case $srcdir in
1399*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1400esac
1401for ac_var in $ac_precious_vars; do
1402  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1403  eval ac_env_${ac_var}_value=\$${ac_var}
1404  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1405  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1406done
1407
1408#
1409# Report the --help message.
1410#
1411if test "$ac_init_help" = "long"; then
1412  # Omit some internal or obsolete options to make the list less imposing.
1413  # This message is too long to be a string in the A/UX 3.1 sh.
1414  cat <<_ACEOF
1415\`configure' configures libXpm 3.5.17 to adapt to many kinds of systems.
1416
1417Usage: $0 [OPTION]... [VAR=VALUE]...
1418
1419To assign environment variables (e.g., CC, CFLAGS...), specify them as
1420VAR=VALUE.  See below for descriptions of some of the useful variables.
1421
1422Defaults for the options are specified in brackets.
1423
1424Configuration:
1425  -h, --help              display this help and exit
1426      --help=short        display options specific to this package
1427      --help=recursive    display the short help of all the included packages
1428  -V, --version           display version information and exit
1429  -q, --quiet, --silent   do not print \`checking ...' messages
1430      --cache-file=FILE   cache test results in FILE [disabled]
1431  -C, --config-cache      alias for \`--cache-file=config.cache'
1432  -n, --no-create         do not create output files
1433      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1434
1435Installation directories:
1436  --prefix=PREFIX         install architecture-independent files in PREFIX
1437                          [$ac_default_prefix]
1438  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1439                          [PREFIX]
1440
1441By default, \`make install' will install all the files in
1442\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1443an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1444for instance \`--prefix=\$HOME'.
1445
1446For better control, use the options below.
1447
1448Fine tuning of the installation directories:
1449  --bindir=DIR            user executables [EPREFIX/bin]
1450  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1451  --libexecdir=DIR        program executables [EPREFIX/libexec]
1452  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1453  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1454  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1455  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1456  --libdir=DIR            object code libraries [EPREFIX/lib]
1457  --includedir=DIR        C header files [PREFIX/include]
1458  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1459  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1460  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1461  --infodir=DIR           info documentation [DATAROOTDIR/info]
1462  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1463  --mandir=DIR            man documentation [DATAROOTDIR/man]
1464  --docdir=DIR            documentation root [DATAROOTDIR/doc/libXpm]
1465  --htmldir=DIR           html documentation [DOCDIR]
1466  --dvidir=DIR            dvi documentation [DOCDIR]
1467  --pdfdir=DIR            pdf documentation [DOCDIR]
1468  --psdir=DIR             ps documentation [DOCDIR]
1469_ACEOF
1470
1471  cat <<\_ACEOF
1472
1473Program names:
1474  --program-prefix=PREFIX            prepend PREFIX to installed program names
1475  --program-suffix=SUFFIX            append SUFFIX to installed program names
1476  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1477
1478System types:
1479  --build=BUILD     configure for building on BUILD [guessed]
1480  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1481_ACEOF
1482fi
1483
1484if test -n "$ac_init_help"; then
1485  case $ac_init_help in
1486     short | recursive ) echo "Configuration of libXpm 3.5.17:";;
1487   esac
1488  cat <<\_ACEOF
1489
1490Optional Features:
1491  --disable-option-checking  ignore unrecognized --enable/--with options
1492  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1493  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1494  --enable-silent-rules   less verbose build output (undo: "make V=1")
1495  --disable-silent-rules  verbose build output (undo: "make V=0")
1496  --enable-shared[=PKGS]  build shared libraries [default=yes]
1497  --enable-static[=PKGS]  build static libraries [default=yes]
1498  --enable-fast-install[=PKGS]
1499                          optimize for fast installation [default=yes]
1500  --enable-dependency-tracking
1501                          do not reject slow dependency extractors
1502  --disable-dependency-tracking
1503                          speeds up one-time build
1504  --disable-libtool-lock  avoid locking (might break parallel builds)
1505  --disable-selective-werror
1506                          Turn off selective compiler errors. (default:
1507                          enabled)
1508  --enable-strict-compilation
1509                          Enable all warnings from compiler and make them
1510                          errors (default: disabled)
1511  --enable-open-zfile     Search for files with .Z & .gz extensions
1512                          automatically [default=auto]
1513  --enable-stat-zfile     Search for files with .Z & .gz extensions
1514                          automatically [default=auto]
1515  --enable-unit-tests     Enable building unit test cases (default: auto)
1516
1517Optional Packages:
1518  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1519  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1520  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1521                          both]
1522  --with-aix-soname=aix|svr4|both
1523                          shared library versioning (aka "SONAME") variant to
1524                          provide on AIX, [default=aix].
1525  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1526  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1527                          compiler's sysroot if not specified).
1528  --with-localedir=<path> Path to install message files in (default:
1529                          datadir/locale)
1530  --with-glib             Use GLib library for unit testing (default: auto)
1531
1532Some influential environment variables:
1533  CC          C compiler command
1534  CFLAGS      C compiler flags
1535  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1536              nonstandard directory <lib dir>
1537  LIBS        libraries to pass to the linker, e.g. -l<library>
1538  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1539              you have headers in a nonstandard directory <include dir>
1540  LT_SYS_LIBRARY_PATH
1541              User-defined run-time library search path.
1542  PKG_CONFIG  path to pkg-config utility
1543  PKG_CONFIG_PATH
1544              directories to add to pkg-config's search path
1545  PKG_CONFIG_LIBDIR
1546              path overriding pkg-config's built-in search path
1547  XPM_CFLAGS  C compiler flags for XPM, overriding pkg-config
1548  XPM_LIBS    linker flags for XPM, overriding pkg-config
1549  SXPM_CFLAGS C compiler flags for SXPM, overriding pkg-config
1550  SXPM_LIBS   linker flags for SXPM, overriding pkg-config
1551  XORG_MALLOC_DEBUG_ENV
1552              Environment variables to enable memory checking in tests
1553  GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1554  GLIB_LIBS   linker flags for GLIB, overriding pkg-config
1555
1556Use these variables to override the choices made by `configure' or to help
1557it to find libraries and programs with nonstandard names/locations.
1558
1559Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxpm/-/issues/>.
1560_ACEOF
1561ac_status=$?
1562fi
1563
1564if test "$ac_init_help" = "recursive"; then
1565  # If there are subdirs, report their specific --help.
1566  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1567    test -d "$ac_dir" ||
1568      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1569      continue
1570    ac_builddir=.
1571
1572case "$ac_dir" in
1573.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1574*)
1575  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1576  # A ".." for each directory in $ac_dir_suffix.
1577  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1578  case $ac_top_builddir_sub in
1579  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1580  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1581  esac ;;
1582esac
1583ac_abs_top_builddir=$ac_pwd
1584ac_abs_builddir=$ac_pwd$ac_dir_suffix
1585# for backward compatibility:
1586ac_top_builddir=$ac_top_build_prefix
1587
1588case $srcdir in
1589  .)  # We are building in place.
1590    ac_srcdir=.
1591    ac_top_srcdir=$ac_top_builddir_sub
1592    ac_abs_top_srcdir=$ac_pwd ;;
1593  [\\/]* | ?:[\\/]* )  # Absolute name.
1594    ac_srcdir=$srcdir$ac_dir_suffix;
1595    ac_top_srcdir=$srcdir
1596    ac_abs_top_srcdir=$srcdir ;;
1597  *) # Relative name.
1598    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1599    ac_top_srcdir=$ac_top_build_prefix$srcdir
1600    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1601esac
1602ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1603
1604    cd "$ac_dir" || { ac_status=$?; continue; }
1605    # Check for configure.gnu first; this name is used for a wrapper for
1606    # Metaconfig's "Configure" on case-insensitive file systems.
1607    if test -f "$ac_srcdir/configure.gnu"; then
1608      echo &&
1609      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1610    elif test -f "$ac_srcdir/configure"; then
1611      echo &&
1612      $SHELL "$ac_srcdir/configure" --help=recursive
1613    else
1614      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1615    fi || ac_status=$?
1616    cd "$ac_pwd" || { ac_status=$?; break; }
1617  done
1618fi
1619
1620test -n "$ac_init_help" && exit $ac_status
1621if $ac_init_version; then
1622  cat <<\_ACEOF
1623libXpm configure 3.5.17
1624generated by GNU Autoconf 2.71
1625
1626Copyright (C) 2021 Free Software Foundation, Inc.
1627This configure script is free software; the Free Software Foundation
1628gives unlimited permission to copy, distribute and modify it.
1629_ACEOF
1630  exit
1631fi
1632
1633## ------------------------ ##
1634## Autoconf initialization. ##
1635## ------------------------ ##
1636
1637# ac_fn_c_try_compile LINENO
1638# --------------------------
1639# Try to compile conftest.$ac_ext, and return whether this succeeded.
1640ac_fn_c_try_compile ()
1641{
1642  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1643  rm -f conftest.$ac_objext conftest.beam
1644  if { { ac_try="$ac_compile"
1645case "(($ac_try" in
1646  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1647  *) ac_try_echo=$ac_try;;
1648esac
1649eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1650printf "%s\n" "$ac_try_echo"; } >&5
1651  (eval "$ac_compile") 2>conftest.err
1652  ac_status=$?
1653  if test -s conftest.err; then
1654    grep -v '^ *+' conftest.err >conftest.er1
1655    cat conftest.er1 >&5
1656    mv -f conftest.er1 conftest.err
1657  fi
1658  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1659  test $ac_status = 0; } && {
1660	 test -z "$ac_c_werror_flag" ||
1661	 test ! -s conftest.err
1662       } && test -s conftest.$ac_objext
1663then :
1664  ac_retval=0
1665else $as_nop
1666  printf "%s\n" "$as_me: failed program was:" >&5
1667sed 's/^/| /' conftest.$ac_ext >&5
1668
1669	ac_retval=1
1670fi
1671  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1672  as_fn_set_status $ac_retval
1673
1674} # ac_fn_c_try_compile
1675
1676# ac_fn_c_try_link LINENO
1677# -----------------------
1678# Try to link conftest.$ac_ext, and return whether this succeeded.
1679ac_fn_c_try_link ()
1680{
1681  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1682  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1683  if { { ac_try="$ac_link"
1684case "(($ac_try" in
1685  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1686  *) ac_try_echo=$ac_try;;
1687esac
1688eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1689printf "%s\n" "$ac_try_echo"; } >&5
1690  (eval "$ac_link") 2>conftest.err
1691  ac_status=$?
1692  if test -s conftest.err; then
1693    grep -v '^ *+' conftest.err >conftest.er1
1694    cat conftest.er1 >&5
1695    mv -f conftest.er1 conftest.err
1696  fi
1697  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1698  test $ac_status = 0; } && {
1699	 test -z "$ac_c_werror_flag" ||
1700	 test ! -s conftest.err
1701       } && test -s conftest$ac_exeext && {
1702	 test "$cross_compiling" = yes ||
1703	 test -x conftest$ac_exeext
1704       }
1705then :
1706  ac_retval=0
1707else $as_nop
1708  printf "%s\n" "$as_me: failed program was:" >&5
1709sed 's/^/| /' conftest.$ac_ext >&5
1710
1711	ac_retval=1
1712fi
1713  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1714  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1715  # interfere with the next link command; also delete a directory that is
1716  # left behind by Apple's compiler.  We do this before executing the actions.
1717  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1718  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1719  as_fn_set_status $ac_retval
1720
1721} # ac_fn_c_try_link
1722
1723# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1724# -------------------------------------------------------
1725# Tests whether HEADER exists and can be compiled using the include files in
1726# INCLUDES, setting the cache variable VAR accordingly.
1727ac_fn_c_check_header_compile ()
1728{
1729  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1730  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1731printf %s "checking for $2... " >&6; }
1732if eval test \${$3+y}
1733then :
1734  printf %s "(cached) " >&6
1735else $as_nop
1736  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1737/* end confdefs.h.  */
1738$4
1739#include <$2>
1740_ACEOF
1741if ac_fn_c_try_compile "$LINENO"
1742then :
1743  eval "$3=yes"
1744else $as_nop
1745  eval "$3=no"
1746fi
1747rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1748fi
1749eval ac_res=\$$3
1750	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1751printf "%s\n" "$ac_res" >&6; }
1752  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1753
1754} # ac_fn_c_check_header_compile
1755
1756# ac_fn_c_check_func LINENO FUNC VAR
1757# ----------------------------------
1758# Tests whether FUNC exists, setting the cache variable VAR accordingly
1759ac_fn_c_check_func ()
1760{
1761  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1762  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1763printf %s "checking for $2... " >&6; }
1764if eval test \${$3+y}
1765then :
1766  printf %s "(cached) " >&6
1767else $as_nop
1768  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1769/* end confdefs.h.  */
1770/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1771   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1772#define $2 innocuous_$2
1773
1774/* System header to define __stub macros and hopefully few prototypes,
1775   which can conflict with char $2 (); below.  */
1776
1777#include <limits.h>
1778#undef $2
1779
1780/* Override any GCC internal prototype to avoid an error.
1781   Use char because int might match the return type of a GCC
1782   builtin and then its argument prototype would still apply.  */
1783#ifdef __cplusplus
1784extern "C"
1785#endif
1786char $2 ();
1787/* The GNU C library defines this for functions which it implements
1788    to always fail with ENOSYS.  Some functions are actually named
1789    something starting with __ and the normal name is an alias.  */
1790#if defined __stub_$2 || defined __stub___$2
1791choke me
1792#endif
1793
1794int
1795main (void)
1796{
1797return $2 ();
1798  ;
1799  return 0;
1800}
1801_ACEOF
1802if ac_fn_c_try_link "$LINENO"
1803then :
1804  eval "$3=yes"
1805else $as_nop
1806  eval "$3=no"
1807fi
1808rm -f core conftest.err conftest.$ac_objext conftest.beam \
1809    conftest$ac_exeext conftest.$ac_ext
1810fi
1811eval ac_res=\$$3
1812	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1813printf "%s\n" "$ac_res" >&6; }
1814  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1815
1816} # ac_fn_c_check_func
1817
1818# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1819# ------------------------------------------------------------------
1820# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1821# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1822ac_fn_check_decl ()
1823{
1824  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1825  as_decl_name=`echo $2|sed 's/ *(.*//'`
1826  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1827printf %s "checking whether $as_decl_name is declared... " >&6; }
1828if eval test \${$3+y}
1829then :
1830  printf %s "(cached) " >&6
1831else $as_nop
1832  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1833  eval ac_save_FLAGS=\$$6
1834  as_fn_append $6 " $5"
1835  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1836/* end confdefs.h.  */
1837$4
1838int
1839main (void)
1840{
1841#ifndef $as_decl_name
1842#ifdef __cplusplus
1843  (void) $as_decl_use;
1844#else
1845  (void) $as_decl_name;
1846#endif
1847#endif
1848
1849  ;
1850  return 0;
1851}
1852_ACEOF
1853if ac_fn_c_try_compile "$LINENO"
1854then :
1855  eval "$3=yes"
1856else $as_nop
1857  eval "$3=no"
1858fi
1859rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1860  eval $6=\$ac_save_FLAGS
1861
1862fi
1863eval ac_res=\$$3
1864	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1865printf "%s\n" "$ac_res" >&6; }
1866  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1867
1868} # ac_fn_check_decl
1869ac_configure_args_raw=
1870for ac_arg
1871do
1872  case $ac_arg in
1873  *\'*)
1874    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1875  esac
1876  as_fn_append ac_configure_args_raw " '$ac_arg'"
1877done
1878
1879case $ac_configure_args_raw in
1880  *$as_nl*)
1881    ac_safe_unquote= ;;
1882  *)
1883    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
1884    ac_unsafe_a="$ac_unsafe_z#~"
1885    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1886    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1887esac
1888
1889cat >config.log <<_ACEOF
1890This file contains any messages produced by compilers while
1891running configure, to aid debugging if configure makes a mistake.
1892
1893It was created by libXpm $as_me 3.5.17, which was
1894generated by GNU Autoconf 2.71.  Invocation command line was
1895
1896  $ $0$ac_configure_args_raw
1897
1898_ACEOF
1899exec 5>>config.log
1900{
1901cat <<_ASUNAME
1902## --------- ##
1903## Platform. ##
1904## --------- ##
1905
1906hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1907uname -m = `(uname -m) 2>/dev/null || echo unknown`
1908uname -r = `(uname -r) 2>/dev/null || echo unknown`
1909uname -s = `(uname -s) 2>/dev/null || echo unknown`
1910uname -v = `(uname -v) 2>/dev/null || echo unknown`
1911
1912/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1913/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1914
1915/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1916/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1917/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1918/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1919/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1920/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1921/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1922
1923_ASUNAME
1924
1925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1926for as_dir in $PATH
1927do
1928  IFS=$as_save_IFS
1929  case $as_dir in #(((
1930    '') as_dir=./ ;;
1931    */) ;;
1932    *) as_dir=$as_dir/ ;;
1933  esac
1934    printf "%s\n" "PATH: $as_dir"
1935  done
1936IFS=$as_save_IFS
1937
1938} >&5
1939
1940cat >&5 <<_ACEOF
1941
1942
1943## ----------- ##
1944## Core tests. ##
1945## ----------- ##
1946
1947_ACEOF
1948
1949
1950# Keep a trace of the command line.
1951# Strip out --no-create and --no-recursion so they do not pile up.
1952# Strip out --silent because we don't want to record it for future runs.
1953# Also quote any args containing shell meta-characters.
1954# Make two passes to allow for proper duplicate-argument suppression.
1955ac_configure_args=
1956ac_configure_args0=
1957ac_configure_args1=
1958ac_must_keep_next=false
1959for ac_pass in 1 2
1960do
1961  for ac_arg
1962  do
1963    case $ac_arg in
1964    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1965    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1966    | -silent | --silent | --silen | --sile | --sil)
1967      continue ;;
1968    *\'*)
1969      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1970    esac
1971    case $ac_pass in
1972    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1973    2)
1974      as_fn_append ac_configure_args1 " '$ac_arg'"
1975      if test $ac_must_keep_next = true; then
1976	ac_must_keep_next=false # Got value, back to normal.
1977      else
1978	case $ac_arg in
1979	  *=* | --config-cache | -C | -disable-* | --disable-* \
1980	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1981	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1982	  | -with-* | --with-* | -without-* | --without-* | --x)
1983	    case "$ac_configure_args0 " in
1984	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1985	    esac
1986	    ;;
1987	  -* ) ac_must_keep_next=true ;;
1988	esac
1989      fi
1990      as_fn_append ac_configure_args " '$ac_arg'"
1991      ;;
1992    esac
1993  done
1994done
1995{ ac_configure_args0=; unset ac_configure_args0;}
1996{ ac_configure_args1=; unset ac_configure_args1;}
1997
1998# When interrupted or exit'd, cleanup temporary files, and complete
1999# config.log.  We remove comments because anyway the quotes in there
2000# would cause problems or look ugly.
2001# WARNING: Use '\'' to represent an apostrophe within the trap.
2002# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2003trap 'exit_status=$?
2004  # Sanitize IFS.
2005  IFS=" ""	$as_nl"
2006  # Save into config.log some information that might help in debugging.
2007  {
2008    echo
2009
2010    printf "%s\n" "## ---------------- ##
2011## Cache variables. ##
2012## ---------------- ##"
2013    echo
2014    # The following way of writing the cache mishandles newlines in values,
2015(
2016  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2017    eval ac_val=\$$ac_var
2018    case $ac_val in #(
2019    *${as_nl}*)
2020      case $ac_var in #(
2021      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2022printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2023      esac
2024      case $ac_var in #(
2025      _ | IFS | as_nl) ;; #(
2026      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2027      *) { eval $ac_var=; unset $ac_var;} ;;
2028      esac ;;
2029    esac
2030  done
2031  (set) 2>&1 |
2032    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2033    *${as_nl}ac_space=\ *)
2034      sed -n \
2035	"s/'\''/'\''\\\\'\'''\''/g;
2036	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2037      ;; #(
2038    *)
2039      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2040      ;;
2041    esac |
2042    sort
2043)
2044    echo
2045
2046    printf "%s\n" "## ----------------- ##
2047## Output variables. ##
2048## ----------------- ##"
2049    echo
2050    for ac_var in $ac_subst_vars
2051    do
2052      eval ac_val=\$$ac_var
2053      case $ac_val in
2054      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2055      esac
2056      printf "%s\n" "$ac_var='\''$ac_val'\''"
2057    done | sort
2058    echo
2059
2060    if test -n "$ac_subst_files"; then
2061      printf "%s\n" "## ------------------- ##
2062## File substitutions. ##
2063## ------------------- ##"
2064      echo
2065      for ac_var in $ac_subst_files
2066      do
2067	eval ac_val=\$$ac_var
2068	case $ac_val in
2069	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2070	esac
2071	printf "%s\n" "$ac_var='\''$ac_val'\''"
2072      done | sort
2073      echo
2074    fi
2075
2076    if test -s confdefs.h; then
2077      printf "%s\n" "## ----------- ##
2078## confdefs.h. ##
2079## ----------- ##"
2080      echo
2081      cat confdefs.h
2082      echo
2083    fi
2084    test "$ac_signal" != 0 &&
2085      printf "%s\n" "$as_me: caught signal $ac_signal"
2086    printf "%s\n" "$as_me: exit $exit_status"
2087  } >&5
2088  rm -f core *.core core.conftest.* &&
2089    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2090    exit $exit_status
2091' 0
2092for ac_signal in 1 2 13 15; do
2093  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2094done
2095ac_signal=0
2096
2097# confdefs.h avoids OS command line length limits that DEFS can exceed.
2098rm -f -r conftest* confdefs.h
2099
2100printf "%s\n" "/* confdefs.h */" > confdefs.h
2101
2102# Predefined preprocessor variables.
2103
2104printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2105
2106printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2107
2108printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2109
2110printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2111
2112printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2113
2114printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2115
2116
2117# Let the site file select an alternate cache file if it wants to.
2118# Prefer an explicitly selected file to automatically selected ones.
2119if test -n "$CONFIG_SITE"; then
2120  ac_site_files="$CONFIG_SITE"
2121elif test "x$prefix" != xNONE; then
2122  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2123else
2124  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2125fi
2126
2127for ac_site_file in $ac_site_files
2128do
2129  case $ac_site_file in #(
2130  */*) :
2131     ;; #(
2132  *) :
2133    ac_site_file=./$ac_site_file ;;
2134esac
2135  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2136    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2137printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2138    sed 's/^/| /' "$ac_site_file" >&5
2139    . "$ac_site_file" \
2140      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2141printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2142as_fn_error $? "failed to load site script $ac_site_file
2143See \`config.log' for more details" "$LINENO" 5; }
2144  fi
2145done
2146
2147if test -r "$cache_file"; then
2148  # Some versions of bash will fail to source /dev/null (special files
2149  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2150  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2151    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2152printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2153    case $cache_file in
2154      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2155      *)                      . "./$cache_file";;
2156    esac
2157  fi
2158else
2159  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2160printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2161  >$cache_file
2162fi
2163
2164# Test code for whether the C compiler supports C89 (global declarations)
2165ac_c_conftest_c89_globals='
2166/* Does the compiler advertise C89 conformance?
2167   Do not test the value of __STDC__, because some compilers set it to 0
2168   while being otherwise adequately conformant. */
2169#if !defined __STDC__
2170# error "Compiler does not advertise C89 conformance"
2171#endif
2172
2173#include <stddef.h>
2174#include <stdarg.h>
2175struct stat;
2176/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2177struct buf { int x; };
2178struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2179static char *e (p, i)
2180     char **p;
2181     int i;
2182{
2183  return p[i];
2184}
2185static char *f (char * (*g) (char **, int), char **p, ...)
2186{
2187  char *s;
2188  va_list v;
2189  va_start (v,p);
2190  s = g (p, va_arg (v,int));
2191  va_end (v);
2192  return s;
2193}
2194
2195/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2196   function prototypes and stuff, but not \xHH hex character constants.
2197   These do not provoke an error unfortunately, instead are silently treated
2198   as an "x".  The following induces an error, until -std is added to get
2199   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2200   array size at least.  It is necessary to write \x00 == 0 to get something
2201   that is true only with -std.  */
2202int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2203
2204/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2205   inside strings and character constants.  */
2206#define FOO(x) '\''x'\''
2207int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2208
2209int test (int i, double x);
2210struct s1 {int (*f) (int a);};
2211struct s2 {int (*f) (double a);};
2212int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2213               int, int);'
2214
2215# Test code for whether the C compiler supports C89 (body of main).
2216ac_c_conftest_c89_main='
2217ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2218'
2219
2220# Test code for whether the C compiler supports C99 (global declarations)
2221ac_c_conftest_c99_globals='
2222// Does the compiler advertise C99 conformance?
2223#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2224# error "Compiler does not advertise C99 conformance"
2225#endif
2226
2227#include <stdbool.h>
2228extern int puts (const char *);
2229extern int printf (const char *, ...);
2230extern int dprintf (int, const char *, ...);
2231extern void *malloc (size_t);
2232
2233// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2234// dprintf is used instead of fprintf to avoid needing to declare
2235// FILE and stderr.
2236#define debug(...) dprintf (2, __VA_ARGS__)
2237#define showlist(...) puts (#__VA_ARGS__)
2238#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2239static void
2240test_varargs_macros (void)
2241{
2242  int x = 1234;
2243  int y = 5678;
2244  debug ("Flag");
2245  debug ("X = %d\n", x);
2246  showlist (The first, second, and third items.);
2247  report (x>y, "x is %d but y is %d", x, y);
2248}
2249
2250// Check long long types.
2251#define BIG64 18446744073709551615ull
2252#define BIG32 4294967295ul
2253#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2254#if !BIG_OK
2255  #error "your preprocessor is broken"
2256#endif
2257#if BIG_OK
2258#else
2259  #error "your preprocessor is broken"
2260#endif
2261static long long int bignum = -9223372036854775807LL;
2262static unsigned long long int ubignum = BIG64;
2263
2264struct incomplete_array
2265{
2266  int datasize;
2267  double data[];
2268};
2269
2270struct named_init {
2271  int number;
2272  const wchar_t *name;
2273  double average;
2274};
2275
2276typedef const char *ccp;
2277
2278static inline int
2279test_restrict (ccp restrict text)
2280{
2281  // See if C++-style comments work.
2282  // Iterate through items via the restricted pointer.
2283  // Also check for declarations in for loops.
2284  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2285    continue;
2286  return 0;
2287}
2288
2289// Check varargs and va_copy.
2290static bool
2291test_varargs (const char *format, ...)
2292{
2293  va_list args;
2294  va_start (args, format);
2295  va_list args_copy;
2296  va_copy (args_copy, args);
2297
2298  const char *str = "";
2299  int number = 0;
2300  float fnumber = 0;
2301
2302  while (*format)
2303    {
2304      switch (*format++)
2305	{
2306	case '\''s'\'': // string
2307	  str = va_arg (args_copy, const char *);
2308	  break;
2309	case '\''d'\'': // int
2310	  number = va_arg (args_copy, int);
2311	  break;
2312	case '\''f'\'': // float
2313	  fnumber = va_arg (args_copy, double);
2314	  break;
2315	default:
2316	  break;
2317	}
2318    }
2319  va_end (args_copy);
2320  va_end (args);
2321
2322  return *str && number && fnumber;
2323}
2324'
2325
2326# Test code for whether the C compiler supports C99 (body of main).
2327ac_c_conftest_c99_main='
2328  // Check bool.
2329  _Bool success = false;
2330  success |= (argc != 0);
2331
2332  // Check restrict.
2333  if (test_restrict ("String literal") == 0)
2334    success = true;
2335  char *restrict newvar = "Another string";
2336
2337  // Check varargs.
2338  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2339  test_varargs_macros ();
2340
2341  // Check flexible array members.
2342  struct incomplete_array *ia =
2343    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2344  ia->datasize = 10;
2345  for (int i = 0; i < ia->datasize; ++i)
2346    ia->data[i] = i * 1.234;
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 " stdio.h stdio_h HAVE_STDIO_H"
2473as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2474as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2475as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2476as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2477as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2478as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2479as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2480as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2481
2482# Auxiliary files required by this configure script.
2483ac_aux_files="tap-driver.sh compile config.guess config.sub ltmain.sh missing install-sh"
2484
2485# Locations in which to look for auxiliary files.
2486ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2487
2488# Search for a directory containing all of the required auxiliary files,
2489# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2490# If we don't find one directory that contains all the files we need,
2491# we report the set of missing files from the *first* directory in
2492# $ac_aux_dir_candidates and give up.
2493ac_missing_aux_files=""
2494ac_first_candidate=:
2495printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2497as_found=false
2498for as_dir in $ac_aux_dir_candidates
2499do
2500  IFS=$as_save_IFS
2501  case $as_dir in #(((
2502    '') as_dir=./ ;;
2503    */) ;;
2504    *) as_dir=$as_dir/ ;;
2505  esac
2506  as_found=:
2507
2508  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2509  ac_aux_dir_found=yes
2510  ac_install_sh=
2511  for ac_aux in $ac_aux_files
2512  do
2513    # As a special case, if "install-sh" is required, that requirement
2514    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2515    # and $ac_install_sh is set appropriately for whichever one is found.
2516    if test x"$ac_aux" = x"install-sh"
2517    then
2518      if test -f "${as_dir}install-sh"; then
2519        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2520        ac_install_sh="${as_dir}install-sh -c"
2521      elif test -f "${as_dir}install.sh"; then
2522        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2523        ac_install_sh="${as_dir}install.sh -c"
2524      elif test -f "${as_dir}shtool"; then
2525        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2526        ac_install_sh="${as_dir}shtool install -c"
2527      else
2528        ac_aux_dir_found=no
2529        if $ac_first_candidate; then
2530          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2531        else
2532          break
2533        fi
2534      fi
2535    else
2536      if test -f "${as_dir}${ac_aux}"; then
2537        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2538      else
2539        ac_aux_dir_found=no
2540        if $ac_first_candidate; then
2541          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2542        else
2543          break
2544        fi
2545      fi
2546    fi
2547  done
2548  if test "$ac_aux_dir_found" = yes; then
2549    ac_aux_dir="$as_dir"
2550    break
2551  fi
2552  ac_first_candidate=false
2553
2554  as_found=false
2555done
2556IFS=$as_save_IFS
2557if $as_found
2558then :
2559
2560else $as_nop
2561  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2562fi
2563
2564
2565# These three variables are undocumented and unsupported,
2566# and are intended to be withdrawn in a future Autoconf release.
2567# They can cause serious problems if a builder's source tree is in a directory
2568# whose full name contains unusual characters.
2569if test -f "${ac_aux_dir}config.guess"; then
2570  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2571fi
2572if test -f "${ac_aux_dir}config.sub"; then
2573  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2574fi
2575if test -f "$ac_aux_dir/configure"; then
2576  ac_configure="$SHELL ${ac_aux_dir}configure"
2577fi
2578
2579# Check that the precious variables saved in the cache have kept the same
2580# value.
2581ac_cache_corrupted=false
2582for ac_var in $ac_precious_vars; do
2583  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2584  eval ac_new_set=\$ac_env_${ac_var}_set
2585  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2586  eval ac_new_val=\$ac_env_${ac_var}_value
2587  case $ac_old_set,$ac_new_set in
2588    set,)
2589      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2590printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2591      ac_cache_corrupted=: ;;
2592    ,set)
2593      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2594printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2595      ac_cache_corrupted=: ;;
2596    ,);;
2597    *)
2598      if test "x$ac_old_val" != "x$ac_new_val"; then
2599	# differences in whitespace do not lead to failure.
2600	ac_old_val_w=`echo x $ac_old_val`
2601	ac_new_val_w=`echo x $ac_new_val`
2602	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2603	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2604printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2605	  ac_cache_corrupted=:
2606	else
2607	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2608printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2609	  eval $ac_var=\$ac_old_val
2610	fi
2611	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2612printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
2613	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2614printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
2615      fi;;
2616  esac
2617  # Pass precious variables to config.status.
2618  if test "$ac_new_set" = set; then
2619    case $ac_new_val in
2620    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2621    *) ac_arg=$ac_var=$ac_new_val ;;
2622    esac
2623    case " $ac_configure_args " in
2624      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2625      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2626    esac
2627  fi
2628done
2629if $ac_cache_corrupted; then
2630  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2631printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2632  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2633printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2634  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2635	    and start over" "$LINENO" 5
2636fi
2637## -------------------- ##
2638## Main body of script. ##
2639## -------------------- ##
2640
2641ac_ext=c
2642ac_cpp='$CPP $CPPFLAGS'
2643ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2644ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2645ac_compiler_gnu=$ac_cv_c_compiler_gnu
2646
2647
2648
2649ac_config_headers="$ac_config_headers config.h"
2650
2651
2652
2653# Initialize Automake
2654am__api_version='1.16'
2655
2656
2657
2658  # Find a good install program.  We prefer a C program (faster),
2659# so one script is as good as another.  But avoid the broken or
2660# incompatible versions:
2661# SysV /etc/install, /usr/sbin/install
2662# SunOS /usr/etc/install
2663# IRIX /sbin/install
2664# AIX /bin/install
2665# AmigaOS /C/install, which installs bootblocks on floppy discs
2666# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2667# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2668# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2669# OS/2's system install, which has a completely different semantic
2670# ./install, which can be erroneously created by make from ./install.sh.
2671# Reject install programs that cannot install multiple files.
2672{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2673printf %s "checking for a BSD-compatible install... " >&6; }
2674if test -z "$INSTALL"; then
2675if test ${ac_cv_path_install+y}
2676then :
2677  printf %s "(cached) " >&6
2678else $as_nop
2679  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2680for as_dir in $PATH
2681do
2682  IFS=$as_save_IFS
2683  case $as_dir in #(((
2684    '') as_dir=./ ;;
2685    */) ;;
2686    *) as_dir=$as_dir/ ;;
2687  esac
2688    # Account for fact that we put trailing slashes in our PATH walk.
2689case $as_dir in #((
2690  ./ | /[cC]/* | \
2691  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2692  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2693  /usr/ucb/* ) ;;
2694  *)
2695    # OSF1 and SCO ODT 3.0 have their own names for install.
2696    # Don't use installbsd from OSF since it installs stuff as root
2697    # by default.
2698    for ac_prog in ginstall scoinst install; do
2699      for ac_exec_ext in '' $ac_executable_extensions; do
2700	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2701	  if test $ac_prog = install &&
2702	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2703	    # AIX install.  It has an incompatible calling convention.
2704	    :
2705	  elif test $ac_prog = install &&
2706	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2707	    # program-specific install script used by HP pwplus--don't use.
2708	    :
2709	  else
2710	    rm -rf conftest.one conftest.two conftest.dir
2711	    echo one > conftest.one
2712	    echo two > conftest.two
2713	    mkdir conftest.dir
2714	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2715	      test -s conftest.one && test -s conftest.two &&
2716	      test -s conftest.dir/conftest.one &&
2717	      test -s conftest.dir/conftest.two
2718	    then
2719	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2720	      break 3
2721	    fi
2722	  fi
2723	fi
2724      done
2725    done
2726    ;;
2727esac
2728
2729  done
2730IFS=$as_save_IFS
2731
2732rm -rf conftest.one conftest.two conftest.dir
2733
2734fi
2735  if test ${ac_cv_path_install+y}; then
2736    INSTALL=$ac_cv_path_install
2737  else
2738    # As a last resort, use the slow shell script.  Don't cache a
2739    # value for INSTALL within a source directory, because that will
2740    # break other packages using the cache if that directory is
2741    # removed, or if the value is a relative name.
2742    INSTALL=$ac_install_sh
2743  fi
2744fi
2745{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2746printf "%s\n" "$INSTALL" >&6; }
2747
2748# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2749# It thinks the first close brace ends the variable substitution.
2750test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2751
2752test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2753
2754test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2755
2756{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2757printf %s "checking whether build environment is sane... " >&6; }
2758# Reject unsafe characters in $srcdir or the absolute working directory
2759# name.  Accept space and tab only in the latter.
2760am_lf='
2761'
2762case `pwd` in
2763  *[\\\"\#\$\&\'\`$am_lf]*)
2764    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2765esac
2766case $srcdir in
2767  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2768    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2769esac
2770
2771# Do 'set' in a subshell so we don't clobber the current shell's
2772# arguments.  Must try -L first in case configure is actually a
2773# symlink; some systems play weird games with the mod time of symlinks
2774# (eg FreeBSD returns the mod time of the symlink's containing
2775# directory).
2776if (
2777   am_has_slept=no
2778   for am_try in 1 2; do
2779     echo "timestamp, slept: $am_has_slept" > conftest.file
2780     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2781     if test "$*" = "X"; then
2782	# -L didn't work.
2783	set X `ls -t "$srcdir/configure" conftest.file`
2784     fi
2785     if test "$*" != "X $srcdir/configure conftest.file" \
2786	&& test "$*" != "X conftest.file $srcdir/configure"; then
2787
2788	# If neither matched, then we have a broken ls.  This can happen
2789	# if, for instance, CONFIG_SHELL is bash and it inherits a
2790	# broken ls alias from the environment.  This has actually
2791	# happened.  Such a system could not be considered "sane".
2792	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2793  alias in your environment" "$LINENO" 5
2794     fi
2795     if test "$2" = conftest.file || test $am_try -eq 2; then
2796       break
2797     fi
2798     # Just in case.
2799     sleep 1
2800     am_has_slept=yes
2801   done
2802   test "$2" = conftest.file
2803   )
2804then
2805   # Ok.
2806   :
2807else
2808   as_fn_error $? "newly created file is older than distributed files!
2809Check your system clock" "$LINENO" 5
2810fi
2811{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2812printf "%s\n" "yes" >&6; }
2813# If we didn't sleep, we still need to ensure time stamps of config.status and
2814# generated files are strictly newer.
2815am_sleep_pid=
2816if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2817  ( sleep 1 ) &
2818  am_sleep_pid=$!
2819fi
2820
2821rm -f conftest.file
2822
2823test "$program_prefix" != NONE &&
2824  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2825# Use a double $ so make ignores it.
2826test "$program_suffix" != NONE &&
2827  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2828# Double any \ or $.
2829# By default was `s,x,x', remove it if useless.
2830ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2831program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2832
2833
2834# Expand $ac_aux_dir to an absolute path.
2835am_aux_dir=`cd "$ac_aux_dir" && pwd`
2836
2837
2838  if test x"${MISSING+set}" != xset; then
2839  MISSING="\${SHELL} '$am_aux_dir/missing'"
2840fi
2841# Use eval to expand $SHELL
2842if eval "$MISSING --is-lightweight"; then
2843  am_missing_run="$MISSING "
2844else
2845  am_missing_run=
2846  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2847printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2848fi
2849
2850if test x"${install_sh+set}" != xset; then
2851  case $am_aux_dir in
2852  *\ * | *\	*)
2853    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2854  *)
2855    install_sh="\${SHELL} $am_aux_dir/install-sh"
2856  esac
2857fi
2858
2859# Installed binaries are usually stripped using 'strip' when the user
2860# run "make install-strip".  However 'strip' might not be the right
2861# tool to use in cross-compilation environments, therefore Automake
2862# will honor the 'STRIP' environment variable to overrule this program.
2863if test "$cross_compiling" != no; then
2864  if test -n "$ac_tool_prefix"; then
2865  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2866set dummy ${ac_tool_prefix}strip; ac_word=$2
2867{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2868printf %s "checking for $ac_word... " >&6; }
2869if test ${ac_cv_prog_STRIP+y}
2870then :
2871  printf %s "(cached) " >&6
2872else $as_nop
2873  if test -n "$STRIP"; then
2874  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2875else
2876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2877for as_dir in $PATH
2878do
2879  IFS=$as_save_IFS
2880  case $as_dir in #(((
2881    '') as_dir=./ ;;
2882    */) ;;
2883    *) as_dir=$as_dir/ ;;
2884  esac
2885    for ac_exec_ext in '' $ac_executable_extensions; do
2886  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2887    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2888    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2889    break 2
2890  fi
2891done
2892  done
2893IFS=$as_save_IFS
2894
2895fi
2896fi
2897STRIP=$ac_cv_prog_STRIP
2898if test -n "$STRIP"; then
2899  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2900printf "%s\n" "$STRIP" >&6; }
2901else
2902  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2903printf "%s\n" "no" >&6; }
2904fi
2905
2906
2907fi
2908if test -z "$ac_cv_prog_STRIP"; then
2909  ac_ct_STRIP=$STRIP
2910  # Extract the first word of "strip", so it can be a program name with args.
2911set dummy strip; ac_word=$2
2912{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2913printf %s "checking for $ac_word... " >&6; }
2914if test ${ac_cv_prog_ac_ct_STRIP+y}
2915then :
2916  printf %s "(cached) " >&6
2917else $as_nop
2918  if test -n "$ac_ct_STRIP"; then
2919  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2920else
2921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2922for as_dir in $PATH
2923do
2924  IFS=$as_save_IFS
2925  case $as_dir in #(((
2926    '') as_dir=./ ;;
2927    */) ;;
2928    *) as_dir=$as_dir/ ;;
2929  esac
2930    for ac_exec_ext in '' $ac_executable_extensions; do
2931  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2932    ac_cv_prog_ac_ct_STRIP="strip"
2933    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2934    break 2
2935  fi
2936done
2937  done
2938IFS=$as_save_IFS
2939
2940fi
2941fi
2942ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2943if test -n "$ac_ct_STRIP"; then
2944  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2945printf "%s\n" "$ac_ct_STRIP" >&6; }
2946else
2947  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2948printf "%s\n" "no" >&6; }
2949fi
2950
2951  if test "x$ac_ct_STRIP" = x; then
2952    STRIP=":"
2953  else
2954    case $cross_compiling:$ac_tool_warned in
2955yes:)
2956{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2957printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2958ac_tool_warned=yes ;;
2959esac
2960    STRIP=$ac_ct_STRIP
2961  fi
2962else
2963  STRIP="$ac_cv_prog_STRIP"
2964fi
2965
2966fi
2967INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2968
2969
2970  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2971printf %s "checking for a race-free mkdir -p... " >&6; }
2972if test -z "$MKDIR_P"; then
2973  if test ${ac_cv_path_mkdir+y}
2974then :
2975  printf %s "(cached) " >&6
2976else $as_nop
2977  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2978for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2979do
2980  IFS=$as_save_IFS
2981  case $as_dir in #(((
2982    '') as_dir=./ ;;
2983    */) ;;
2984    *) as_dir=$as_dir/ ;;
2985  esac
2986    for ac_prog in mkdir gmkdir; do
2987	 for ac_exec_ext in '' $ac_executable_extensions; do
2988	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2989	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2990	     'mkdir ('*'coreutils) '* | \
2991	     'BusyBox '* | \
2992	     'mkdir (fileutils) '4.1*)
2993	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
2994	       break 3;;
2995	   esac
2996	 done
2997       done
2998  done
2999IFS=$as_save_IFS
3000
3001fi
3002
3003  test -d ./--version && rmdir ./--version
3004  if test ${ac_cv_path_mkdir+y}; then
3005    MKDIR_P="$ac_cv_path_mkdir -p"
3006  else
3007    # As a last resort, use the slow shell script.  Don't cache a
3008    # value for MKDIR_P within a source directory, because that will
3009    # break other packages using the cache if that directory is
3010    # removed, or if the value is a relative name.
3011    MKDIR_P="$ac_install_sh -d"
3012  fi
3013fi
3014{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3015printf "%s\n" "$MKDIR_P" >&6; }
3016
3017for ac_prog in gawk mawk nawk awk
3018do
3019  # Extract the first word of "$ac_prog", so it can be a program name with args.
3020set dummy $ac_prog; ac_word=$2
3021{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3022printf %s "checking for $ac_word... " >&6; }
3023if test ${ac_cv_prog_AWK+y}
3024then :
3025  printf %s "(cached) " >&6
3026else $as_nop
3027  if test -n "$AWK"; then
3028  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3029else
3030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3031for as_dir in $PATH
3032do
3033  IFS=$as_save_IFS
3034  case $as_dir in #(((
3035    '') as_dir=./ ;;
3036    */) ;;
3037    *) as_dir=$as_dir/ ;;
3038  esac
3039    for ac_exec_ext in '' $ac_executable_extensions; do
3040  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3041    ac_cv_prog_AWK="$ac_prog"
3042    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3043    break 2
3044  fi
3045done
3046  done
3047IFS=$as_save_IFS
3048
3049fi
3050fi
3051AWK=$ac_cv_prog_AWK
3052if test -n "$AWK"; then
3053  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3054printf "%s\n" "$AWK" >&6; }
3055else
3056  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3057printf "%s\n" "no" >&6; }
3058fi
3059
3060
3061  test -n "$AWK" && break
3062done
3063
3064{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3065printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3066set x ${MAKE-make}
3067ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3068if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3069then :
3070  printf %s "(cached) " >&6
3071else $as_nop
3072  cat >conftest.make <<\_ACEOF
3073SHELL = /bin/sh
3074all:
3075	@echo '@@@%%%=$(MAKE)=@@@%%%'
3076_ACEOF
3077# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3078case `${MAKE-make} -f conftest.make 2>/dev/null` in
3079  *@@@%%%=?*=@@@%%%*)
3080    eval ac_cv_prog_make_${ac_make}_set=yes;;
3081  *)
3082    eval ac_cv_prog_make_${ac_make}_set=no;;
3083esac
3084rm -f conftest.make
3085fi
3086if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3087  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3088printf "%s\n" "yes" >&6; }
3089  SET_MAKE=
3090else
3091  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3092printf "%s\n" "no" >&6; }
3093  SET_MAKE="MAKE=${MAKE-make}"
3094fi
3095
3096rm -rf .tst 2>/dev/null
3097mkdir .tst 2>/dev/null
3098if test -d .tst; then
3099  am__leading_dot=.
3100else
3101  am__leading_dot=_
3102fi
3103rmdir .tst 2>/dev/null
3104
3105# Check whether --enable-silent-rules was given.
3106if test ${enable_silent_rules+y}
3107then :
3108  enableval=$enable_silent_rules;
3109fi
3110
3111case $enable_silent_rules in # (((
3112  yes) AM_DEFAULT_VERBOSITY=0;;
3113   no) AM_DEFAULT_VERBOSITY=1;;
3114    *) AM_DEFAULT_VERBOSITY=1;;
3115esac
3116am_make=${MAKE-make}
3117{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3118printf %s "checking whether $am_make supports nested variables... " >&6; }
3119if test ${am_cv_make_support_nested_variables+y}
3120then :
3121  printf %s "(cached) " >&6
3122else $as_nop
3123  if printf "%s\n" 'TRUE=$(BAR$(V))
3124BAR0=false
3125BAR1=true
3126V=1
3127am__doit:
3128	@$(TRUE)
3129.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3130  am_cv_make_support_nested_variables=yes
3131else
3132  am_cv_make_support_nested_variables=no
3133fi
3134fi
3135{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3136printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3137if test $am_cv_make_support_nested_variables = yes; then
3138    AM_V='$(V)'
3139  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3140else
3141  AM_V=$AM_DEFAULT_VERBOSITY
3142  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3143fi
3144AM_BACKSLASH='\'
3145
3146if test "`cd $srcdir && pwd`" != "`pwd`"; then
3147  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3148  # is not polluted with repeated "-I."
3149  am__isrc=' -I$(srcdir)'
3150  # test to see if srcdir already configured
3151  if test -f $srcdir/config.status; then
3152    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3153  fi
3154fi
3155
3156# test whether we have cygpath
3157if test -z "$CYGPATH_W"; then
3158  if (cygpath --version) >/dev/null 2>/dev/null; then
3159    CYGPATH_W='cygpath -w'
3160  else
3161    CYGPATH_W=echo
3162  fi
3163fi
3164
3165
3166# Define the identity of the package.
3167 PACKAGE='libXpm'
3168 VERSION='3.5.17'
3169
3170
3171printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3172
3173
3174printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3175
3176# Some tools Automake needs.
3177
3178ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3179
3180
3181AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3182
3183
3184AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3185
3186
3187AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3188
3189
3190MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3191
3192# For better backward compatibility.  To be removed once Automake 1.9.x
3193# dies out for good.  For more background, see:
3194# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3195# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3196mkdir_p='$(MKDIR_P)'
3197
3198# We need awk for the "check" target (and possibly the TAP driver).  The
3199# system "awk" is bad on some platforms.
3200# Always define AMTAR for backward compatibility.  Yes, it's still used
3201# in the wild :-(  We should find a proper way to deprecate it ...
3202AMTAR='$${TAR-tar}'
3203
3204
3205# We'll loop over all known methods to create a tar archive until one works.
3206_am_tools='gnutar  pax cpio none'
3207
3208am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3209
3210
3211
3212
3213
3214# Variables for tags utilities; see am/tags.am
3215if test -z "$CTAGS"; then
3216  CTAGS=ctags
3217fi
3218
3219if test -z "$ETAGS"; then
3220  ETAGS=etags
3221fi
3222
3223if test -z "$CSCOPE"; then
3224  CSCOPE=cscope
3225fi
3226
3227
3228
3229# POSIX will say in a future version that running "rm -f" with no argument
3230# is OK; and we want to be able to make that assumption in our Makefile
3231# recipes.  So use an aggressive probe to check that the usage we want is
3232# actually supported "in the wild" to an acceptable degree.
3233# See automake bug#10828.
3234# To make any issue more visible, cause the running configure to be aborted
3235# by default if the 'rm' program in use doesn't match our expectations; the
3236# user can still override this though.
3237if rm -f && rm -fr && rm -rf; then : OK; else
3238  cat >&2 <<'END'
3239Oops!
3240
3241Your 'rm' program seems unable to run without file operands specified
3242on the command line, even when the '-f' option is present.  This is contrary
3243to the behaviour of most rm programs out there, and not conforming with
3244the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3245
3246Please tell bug-automake@gnu.org about your system, including the value
3247of your $PATH and any error possibly output before this message.  This
3248can help us improve future automake versions.
3249
3250END
3251  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3252    echo 'Configuration will proceed anyway, since you have set the' >&2
3253    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3254    echo >&2
3255  else
3256    cat >&2 <<'END'
3257Aborting the configuration process, to ensure you take notice of the issue.
3258
3259You can download and install GNU coreutils to get an 'rm' implementation
3260that behaves properly: <https://www.gnu.org/software/coreutils/>.
3261
3262If you want to complete the configuration process using your problematic
3263'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3264to "yes", and re-run configure.
3265
3266END
3267    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3268  fi
3269fi
3270
3271
3272# Initialize libtool
3273case `pwd` in
3274  *\ * | *\	*)
3275    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3276printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3277esac
3278
3279
3280
3281macro_version='2.4.7'
3282macro_revision='2.4.7'
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297ltmain=$ac_aux_dir/ltmain.sh
3298
3299
3300
3301  # Make sure we can run config.sub.
3302$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3303  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3304
3305{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3306printf %s "checking build system type... " >&6; }
3307if test ${ac_cv_build+y}
3308then :
3309  printf %s "(cached) " >&6
3310else $as_nop
3311  ac_build_alias=$build_alias
3312test "x$ac_build_alias" = x &&
3313  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3314test "x$ac_build_alias" = x &&
3315  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3316ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3317  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3318
3319fi
3320{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3321printf "%s\n" "$ac_cv_build" >&6; }
3322case $ac_cv_build in
3323*-*-*) ;;
3324*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3325esac
3326build=$ac_cv_build
3327ac_save_IFS=$IFS; IFS='-'
3328set x $ac_cv_build
3329shift
3330build_cpu=$1
3331build_vendor=$2
3332shift; shift
3333# Remember, the first character of IFS is used to create $*,
3334# except with old shells:
3335build_os=$*
3336IFS=$ac_save_IFS
3337case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3338
3339
3340{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3341printf %s "checking host system type... " >&6; }
3342if test ${ac_cv_host+y}
3343then :
3344  printf %s "(cached) " >&6
3345else $as_nop
3346  if test "x$host_alias" = x; then
3347  ac_cv_host=$ac_cv_build
3348else
3349  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3350    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3351fi
3352
3353fi
3354{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3355printf "%s\n" "$ac_cv_host" >&6; }
3356case $ac_cv_host in
3357*-*-*) ;;
3358*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3359esac
3360host=$ac_cv_host
3361ac_save_IFS=$IFS; IFS='-'
3362set x $ac_cv_host
3363shift
3364host_cpu=$1
3365host_vendor=$2
3366shift; shift
3367# Remember, the first character of IFS is used to create $*,
3368# except with old shells:
3369host_os=$*
3370IFS=$ac_save_IFS
3371case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3372
3373
3374# Backslashify metacharacters that are still active within
3375# double-quoted strings.
3376sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3377
3378# Same as above, but do not quote variable references.
3379double_quote_subst='s/\(["`\\]\)/\\\1/g'
3380
3381# Sed substitution to delay expansion of an escaped shell variable in a
3382# double_quote_subst'ed string.
3383delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3384
3385# Sed substitution to delay expansion of an escaped single quote.
3386delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3387
3388# Sed substitution to avoid accidental globbing in evaled expressions
3389no_glob_subst='s/\*/\\\*/g'
3390
3391ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3392ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3393ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3394
3395{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3396printf %s "checking how to print strings... " >&6; }
3397# Test print first, because it will be a builtin if present.
3398if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3399   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3400  ECHO='print -r --'
3401elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3402  ECHO='printf %s\n'
3403else
3404  # Use this function as a fallback that always works.
3405  func_fallback_echo ()
3406  {
3407    eval 'cat <<_LTECHO_EOF
3408$1
3409_LTECHO_EOF'
3410  }
3411  ECHO='func_fallback_echo'
3412fi
3413
3414# func_echo_all arg...
3415# Invoke $ECHO with all args, space-separated.
3416func_echo_all ()
3417{
3418    $ECHO ""
3419}
3420
3421case $ECHO in
3422  printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3423printf "%s\n" "printf" >&6; } ;;
3424  print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3425printf "%s\n" "print -r" >&6; } ;;
3426  *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3427printf "%s\n" "cat" >&6; } ;;
3428esac
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452DEPDIR="${am__leading_dot}deps"
3453
3454ac_config_commands="$ac_config_commands depfiles"
3455
3456{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3457printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3458cat > confinc.mk << 'END'
3459am__doit:
3460	@echo this is the am__doit target >confinc.out
3461.PHONY: am__doit
3462END
3463am__include="#"
3464am__quote=
3465# BSD make does it like this.
3466echo '.include "confinc.mk" # ignored' > confmf.BSD
3467# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3468echo 'include confinc.mk # ignored' > confmf.GNU
3469_am_result=no
3470for s in GNU BSD; do
3471  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3472   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3473   ac_status=$?
3474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3475   (exit $ac_status); }
3476  case $?:`cat confinc.out 2>/dev/null` in #(
3477  '0:this is the am__doit target') :
3478    case $s in #(
3479  BSD) :
3480    am__include='.include' am__quote='"' ;; #(
3481  *) :
3482    am__include='include' am__quote='' ;;
3483esac ;; #(
3484  *) :
3485     ;;
3486esac
3487  if test "$am__include" != "#"; then
3488    _am_result="yes ($s style)"
3489    break
3490  fi
3491done
3492rm -f confinc.* confmf.*
3493{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3494printf "%s\n" "${_am_result}" >&6; }
3495
3496# Check whether --enable-dependency-tracking was given.
3497if test ${enable_dependency_tracking+y}
3498then :
3499  enableval=$enable_dependency_tracking;
3500fi
3501
3502if test "x$enable_dependency_tracking" != xno; then
3503  am_depcomp="$ac_aux_dir/depcomp"
3504  AMDEPBACKSLASH='\'
3505  am__nodep='_no'
3506fi
3507 if test "x$enable_dependency_tracking" != xno; then
3508  AMDEP_TRUE=
3509  AMDEP_FALSE='#'
3510else
3511  AMDEP_TRUE='#'
3512  AMDEP_FALSE=
3513fi
3514
3515
3516ac_ext=c
3517ac_cpp='$CPP $CPPFLAGS'
3518ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3519ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3520ac_compiler_gnu=$ac_cv_c_compiler_gnu
3521if test -n "$ac_tool_prefix"; then
3522  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3523set dummy ${ac_tool_prefix}gcc; ac_word=$2
3524{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3525printf %s "checking for $ac_word... " >&6; }
3526if test ${ac_cv_prog_CC+y}
3527then :
3528  printf %s "(cached) " >&6
3529else $as_nop
3530  if test -n "$CC"; then
3531  ac_cv_prog_CC="$CC" # Let the user override the test.
3532else
3533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3534for as_dir in $PATH
3535do
3536  IFS=$as_save_IFS
3537  case $as_dir in #(((
3538    '') as_dir=./ ;;
3539    */) ;;
3540    *) as_dir=$as_dir/ ;;
3541  esac
3542    for ac_exec_ext in '' $ac_executable_extensions; do
3543  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3544    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3545    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3546    break 2
3547  fi
3548done
3549  done
3550IFS=$as_save_IFS
3551
3552fi
3553fi
3554CC=$ac_cv_prog_CC
3555if test -n "$CC"; then
3556  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3557printf "%s\n" "$CC" >&6; }
3558else
3559  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3560printf "%s\n" "no" >&6; }
3561fi
3562
3563
3564fi
3565if test -z "$ac_cv_prog_CC"; then
3566  ac_ct_CC=$CC
3567  # Extract the first word of "gcc", so it can be a program name with args.
3568set dummy gcc; ac_word=$2
3569{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3570printf %s "checking for $ac_word... " >&6; }
3571if test ${ac_cv_prog_ac_ct_CC+y}
3572then :
3573  printf %s "(cached) " >&6
3574else $as_nop
3575  if test -n "$ac_ct_CC"; then
3576  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3577else
3578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3579for as_dir in $PATH
3580do
3581  IFS=$as_save_IFS
3582  case $as_dir in #(((
3583    '') as_dir=./ ;;
3584    */) ;;
3585    *) as_dir=$as_dir/ ;;
3586  esac
3587    for ac_exec_ext in '' $ac_executable_extensions; do
3588  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3589    ac_cv_prog_ac_ct_CC="gcc"
3590    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3591    break 2
3592  fi
3593done
3594  done
3595IFS=$as_save_IFS
3596
3597fi
3598fi
3599ac_ct_CC=$ac_cv_prog_ac_ct_CC
3600if test -n "$ac_ct_CC"; then
3601  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3602printf "%s\n" "$ac_ct_CC" >&6; }
3603else
3604  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3605printf "%s\n" "no" >&6; }
3606fi
3607
3608  if test "x$ac_ct_CC" = x; then
3609    CC=""
3610  else
3611    case $cross_compiling:$ac_tool_warned in
3612yes:)
3613{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3614printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3615ac_tool_warned=yes ;;
3616esac
3617    CC=$ac_ct_CC
3618  fi
3619else
3620  CC="$ac_cv_prog_CC"
3621fi
3622
3623if test -z "$CC"; then
3624          if test -n "$ac_tool_prefix"; then
3625    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3626set dummy ${ac_tool_prefix}cc; ac_word=$2
3627{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3628printf %s "checking for $ac_word... " >&6; }
3629if test ${ac_cv_prog_CC+y}
3630then :
3631  printf %s "(cached) " >&6
3632else $as_nop
3633  if test -n "$CC"; then
3634  ac_cv_prog_CC="$CC" # Let the user override the test.
3635else
3636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3637for as_dir in $PATH
3638do
3639  IFS=$as_save_IFS
3640  case $as_dir in #(((
3641    '') as_dir=./ ;;
3642    */) ;;
3643    *) as_dir=$as_dir/ ;;
3644  esac
3645    for ac_exec_ext in '' $ac_executable_extensions; do
3646  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3647    ac_cv_prog_CC="${ac_tool_prefix}cc"
3648    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3649    break 2
3650  fi
3651done
3652  done
3653IFS=$as_save_IFS
3654
3655fi
3656fi
3657CC=$ac_cv_prog_CC
3658if test -n "$CC"; then
3659  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3660printf "%s\n" "$CC" >&6; }
3661else
3662  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3663printf "%s\n" "no" >&6; }
3664fi
3665
3666
3667  fi
3668fi
3669if test -z "$CC"; then
3670  # Extract the first word of "cc", so it can be a program name with args.
3671set dummy cc; ac_word=$2
3672{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3673printf %s "checking for $ac_word... " >&6; }
3674if test ${ac_cv_prog_CC+y}
3675then :
3676  printf %s "(cached) " >&6
3677else $as_nop
3678  if test -n "$CC"; then
3679  ac_cv_prog_CC="$CC" # Let the user override the test.
3680else
3681  ac_prog_rejected=no
3682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3683for as_dir in $PATH
3684do
3685  IFS=$as_save_IFS
3686  case $as_dir in #(((
3687    '') as_dir=./ ;;
3688    */) ;;
3689    *) as_dir=$as_dir/ ;;
3690  esac
3691    for ac_exec_ext in '' $ac_executable_extensions; do
3692  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3693    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3694       ac_prog_rejected=yes
3695       continue
3696     fi
3697    ac_cv_prog_CC="cc"
3698    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3699    break 2
3700  fi
3701done
3702  done
3703IFS=$as_save_IFS
3704
3705if test $ac_prog_rejected = yes; then
3706  # We found a bogon in the path, so make sure we never use it.
3707  set dummy $ac_cv_prog_CC
3708  shift
3709  if test $# != 0; then
3710    # We chose a different compiler from the bogus one.
3711    # However, it has the same basename, so the bogon will be chosen
3712    # first if we set CC to just the basename; use the full file name.
3713    shift
3714    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3715  fi
3716fi
3717fi
3718fi
3719CC=$ac_cv_prog_CC
3720if test -n "$CC"; then
3721  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3722printf "%s\n" "$CC" >&6; }
3723else
3724  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3725printf "%s\n" "no" >&6; }
3726fi
3727
3728
3729fi
3730if test -z "$CC"; then
3731  if test -n "$ac_tool_prefix"; then
3732  for ac_prog in cl.exe
3733  do
3734    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3735set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3736{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3737printf %s "checking for $ac_word... " >&6; }
3738if test ${ac_cv_prog_CC+y}
3739then :
3740  printf %s "(cached) " >&6
3741else $as_nop
3742  if test -n "$CC"; then
3743  ac_cv_prog_CC="$CC" # Let the user override the test.
3744else
3745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3746for as_dir in $PATH
3747do
3748  IFS=$as_save_IFS
3749  case $as_dir in #(((
3750    '') as_dir=./ ;;
3751    */) ;;
3752    *) as_dir=$as_dir/ ;;
3753  esac
3754    for ac_exec_ext in '' $ac_executable_extensions; do
3755  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3756    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3757    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3758    break 2
3759  fi
3760done
3761  done
3762IFS=$as_save_IFS
3763
3764fi
3765fi
3766CC=$ac_cv_prog_CC
3767if test -n "$CC"; then
3768  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3769printf "%s\n" "$CC" >&6; }
3770else
3771  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3772printf "%s\n" "no" >&6; }
3773fi
3774
3775
3776    test -n "$CC" && break
3777  done
3778fi
3779if test -z "$CC"; then
3780  ac_ct_CC=$CC
3781  for ac_prog in cl.exe
3782do
3783  # Extract the first word of "$ac_prog", so it can be a program name with args.
3784set dummy $ac_prog; ac_word=$2
3785{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3786printf %s "checking for $ac_word... " >&6; }
3787if test ${ac_cv_prog_ac_ct_CC+y}
3788then :
3789  printf %s "(cached) " >&6
3790else $as_nop
3791  if test -n "$ac_ct_CC"; then
3792  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3793else
3794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3795for as_dir in $PATH
3796do
3797  IFS=$as_save_IFS
3798  case $as_dir in #(((
3799    '') as_dir=./ ;;
3800    */) ;;
3801    *) as_dir=$as_dir/ ;;
3802  esac
3803    for ac_exec_ext in '' $ac_executable_extensions; do
3804  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3805    ac_cv_prog_ac_ct_CC="$ac_prog"
3806    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3807    break 2
3808  fi
3809done
3810  done
3811IFS=$as_save_IFS
3812
3813fi
3814fi
3815ac_ct_CC=$ac_cv_prog_ac_ct_CC
3816if test -n "$ac_ct_CC"; then
3817  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3818printf "%s\n" "$ac_ct_CC" >&6; }
3819else
3820  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3821printf "%s\n" "no" >&6; }
3822fi
3823
3824
3825  test -n "$ac_ct_CC" && break
3826done
3827
3828  if test "x$ac_ct_CC" = x; then
3829    CC=""
3830  else
3831    case $cross_compiling:$ac_tool_warned in
3832yes:)
3833{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3834printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3835ac_tool_warned=yes ;;
3836esac
3837    CC=$ac_ct_CC
3838  fi
3839fi
3840
3841fi
3842if test -z "$CC"; then
3843  if test -n "$ac_tool_prefix"; then
3844  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3845set dummy ${ac_tool_prefix}clang; ac_word=$2
3846{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3847printf %s "checking for $ac_word... " >&6; }
3848if test ${ac_cv_prog_CC+y}
3849then :
3850  printf %s "(cached) " >&6
3851else $as_nop
3852  if test -n "$CC"; then
3853  ac_cv_prog_CC="$CC" # Let the user override the test.
3854else
3855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3856for as_dir in $PATH
3857do
3858  IFS=$as_save_IFS
3859  case $as_dir in #(((
3860    '') as_dir=./ ;;
3861    */) ;;
3862    *) as_dir=$as_dir/ ;;
3863  esac
3864    for ac_exec_ext in '' $ac_executable_extensions; do
3865  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3866    ac_cv_prog_CC="${ac_tool_prefix}clang"
3867    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3868    break 2
3869  fi
3870done
3871  done
3872IFS=$as_save_IFS
3873
3874fi
3875fi
3876CC=$ac_cv_prog_CC
3877if test -n "$CC"; then
3878  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3879printf "%s\n" "$CC" >&6; }
3880else
3881  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3882printf "%s\n" "no" >&6; }
3883fi
3884
3885
3886fi
3887if test -z "$ac_cv_prog_CC"; then
3888  ac_ct_CC=$CC
3889  # Extract the first word of "clang", so it can be a program name with args.
3890set dummy clang; ac_word=$2
3891{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3892printf %s "checking for $ac_word... " >&6; }
3893if test ${ac_cv_prog_ac_ct_CC+y}
3894then :
3895  printf %s "(cached) " >&6
3896else $as_nop
3897  if test -n "$ac_ct_CC"; then
3898  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3899else
3900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3901for as_dir in $PATH
3902do
3903  IFS=$as_save_IFS
3904  case $as_dir in #(((
3905    '') as_dir=./ ;;
3906    */) ;;
3907    *) as_dir=$as_dir/ ;;
3908  esac
3909    for ac_exec_ext in '' $ac_executable_extensions; do
3910  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3911    ac_cv_prog_ac_ct_CC="clang"
3912    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3913    break 2
3914  fi
3915done
3916  done
3917IFS=$as_save_IFS
3918
3919fi
3920fi
3921ac_ct_CC=$ac_cv_prog_ac_ct_CC
3922if test -n "$ac_ct_CC"; then
3923  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3924printf "%s\n" "$ac_ct_CC" >&6; }
3925else
3926  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3927printf "%s\n" "no" >&6; }
3928fi
3929
3930  if test "x$ac_ct_CC" = x; then
3931    CC=""
3932  else
3933    case $cross_compiling:$ac_tool_warned in
3934yes:)
3935{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3936printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3937ac_tool_warned=yes ;;
3938esac
3939    CC=$ac_ct_CC
3940  fi
3941else
3942  CC="$ac_cv_prog_CC"
3943fi
3944
3945fi
3946
3947
3948test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3949printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3950as_fn_error $? "no acceptable C compiler found in \$PATH
3951See \`config.log' for more details" "$LINENO" 5; }
3952
3953# Provide some information about the compiler.
3954printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3955set X $ac_compile
3956ac_compiler=$2
3957for ac_option in --version -v -V -qversion -version; do
3958  { { ac_try="$ac_compiler $ac_option >&5"
3959case "(($ac_try" in
3960  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3961  *) ac_try_echo=$ac_try;;
3962esac
3963eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3964printf "%s\n" "$ac_try_echo"; } >&5
3965  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3966  ac_status=$?
3967  if test -s conftest.err; then
3968    sed '10a\
3969... rest of stderr output deleted ...
3970         10q' conftest.err >conftest.er1
3971    cat conftest.er1 >&5
3972  fi
3973  rm -f conftest.er1 conftest.err
3974  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3975  test $ac_status = 0; }
3976done
3977
3978cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3979/* end confdefs.h.  */
3980
3981int
3982main (void)
3983{
3984
3985  ;
3986  return 0;
3987}
3988_ACEOF
3989ac_clean_files_save=$ac_clean_files
3990ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3991# Try to create an executable without -o first, disregard a.out.
3992# It will help us diagnose broken compilers, and finding out an intuition
3993# of exeext.
3994{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3995printf %s "checking whether the C compiler works... " >&6; }
3996ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3997
3998# The possible output files:
3999ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4000
4001ac_rmfiles=
4002for ac_file in $ac_files
4003do
4004  case $ac_file in
4005    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4006    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4007  esac
4008done
4009rm -f $ac_rmfiles
4010
4011if { { ac_try="$ac_link_default"
4012case "(($ac_try" in
4013  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4014  *) ac_try_echo=$ac_try;;
4015esac
4016eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4017printf "%s\n" "$ac_try_echo"; } >&5
4018  (eval "$ac_link_default") 2>&5
4019  ac_status=$?
4020  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4021  test $ac_status = 0; }
4022then :
4023  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4024# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4025# in a Makefile.  We should not override ac_cv_exeext if it was cached,
4026# so that the user can short-circuit this test for compilers unknown to
4027# Autoconf.
4028for ac_file in $ac_files ''
4029do
4030  test -f "$ac_file" || continue
4031  case $ac_file in
4032    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4033	;;
4034    [ab].out )
4035	# We found the default executable, but exeext='' is most
4036	# certainly right.
4037	break;;
4038    *.* )
4039	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4040	then :; else
4041	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4042	fi
4043	# We set ac_cv_exeext here because the later test for it is not
4044	# safe: cross compilers may not add the suffix if given an `-o'
4045	# argument, so we may need to know it at that point already.
4046	# Even if this section looks crufty: it has the advantage of
4047	# actually working.
4048	break;;
4049    * )
4050	break;;
4051  esac
4052done
4053test "$ac_cv_exeext" = no && ac_cv_exeext=
4054
4055else $as_nop
4056  ac_file=''
4057fi
4058if test -z "$ac_file"
4059then :
4060  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4061printf "%s\n" "no" >&6; }
4062printf "%s\n" "$as_me: failed program was:" >&5
4063sed 's/^/| /' conftest.$ac_ext >&5
4064
4065{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4066printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4067as_fn_error 77 "C compiler cannot create executables
4068See \`config.log' for more details" "$LINENO" 5; }
4069else $as_nop
4070  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4071printf "%s\n" "yes" >&6; }
4072fi
4073{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4074printf %s "checking for C compiler default output file name... " >&6; }
4075{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4076printf "%s\n" "$ac_file" >&6; }
4077ac_exeext=$ac_cv_exeext
4078
4079rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4080ac_clean_files=$ac_clean_files_save
4081{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4082printf %s "checking for suffix of executables... " >&6; }
4083if { { ac_try="$ac_link"
4084case "(($ac_try" in
4085  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4086  *) ac_try_echo=$ac_try;;
4087esac
4088eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4089printf "%s\n" "$ac_try_echo"; } >&5
4090  (eval "$ac_link") 2>&5
4091  ac_status=$?
4092  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4093  test $ac_status = 0; }
4094then :
4095  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4096# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4097# work properly (i.e., refer to `conftest.exe'), while it won't with
4098# `rm'.
4099for ac_file in conftest.exe conftest conftest.*; do
4100  test -f "$ac_file" || continue
4101  case $ac_file in
4102    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4103    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4104	  break;;
4105    * ) break;;
4106  esac
4107done
4108else $as_nop
4109  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4110printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4111as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4112See \`config.log' for more details" "$LINENO" 5; }
4113fi
4114rm -f conftest conftest$ac_cv_exeext
4115{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4116printf "%s\n" "$ac_cv_exeext" >&6; }
4117
4118rm -f conftest.$ac_ext
4119EXEEXT=$ac_cv_exeext
4120ac_exeext=$EXEEXT
4121cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4122/* end confdefs.h.  */
4123#include <stdio.h>
4124int
4125main (void)
4126{
4127FILE *f = fopen ("conftest.out", "w");
4128 return ferror (f) || fclose (f) != 0;
4129
4130  ;
4131  return 0;
4132}
4133_ACEOF
4134ac_clean_files="$ac_clean_files conftest.out"
4135# Check that the compiler produces executables we can run.  If not, either
4136# the compiler is broken, or we cross compile.
4137{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4138printf %s "checking whether we are cross compiling... " >&6; }
4139if test "$cross_compiling" != yes; then
4140  { { ac_try="$ac_link"
4141case "(($ac_try" in
4142  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4143  *) ac_try_echo=$ac_try;;
4144esac
4145eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4146printf "%s\n" "$ac_try_echo"; } >&5
4147  (eval "$ac_link") 2>&5
4148  ac_status=$?
4149  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4150  test $ac_status = 0; }
4151  if { ac_try='./conftest$ac_cv_exeext'
4152  { { case "(($ac_try" in
4153  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4154  *) ac_try_echo=$ac_try;;
4155esac
4156eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4157printf "%s\n" "$ac_try_echo"; } >&5
4158  (eval "$ac_try") 2>&5
4159  ac_status=$?
4160  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4161  test $ac_status = 0; }; }; then
4162    cross_compiling=no
4163  else
4164    if test "$cross_compiling" = maybe; then
4165	cross_compiling=yes
4166    else
4167	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4168printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4169as_fn_error 77 "cannot run C compiled programs.
4170If you meant to cross compile, use \`--host'.
4171See \`config.log' for more details" "$LINENO" 5; }
4172    fi
4173  fi
4174fi
4175{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4176printf "%s\n" "$cross_compiling" >&6; }
4177
4178rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4179ac_clean_files=$ac_clean_files_save
4180{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4181printf %s "checking for suffix of object files... " >&6; }
4182if test ${ac_cv_objext+y}
4183then :
4184  printf %s "(cached) " >&6
4185else $as_nop
4186  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4187/* end confdefs.h.  */
4188
4189int
4190main (void)
4191{
4192
4193  ;
4194  return 0;
4195}
4196_ACEOF
4197rm -f conftest.o conftest.obj
4198if { { ac_try="$ac_compile"
4199case "(($ac_try" in
4200  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4201  *) ac_try_echo=$ac_try;;
4202esac
4203eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4204printf "%s\n" "$ac_try_echo"; } >&5
4205  (eval "$ac_compile") 2>&5
4206  ac_status=$?
4207  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4208  test $ac_status = 0; }
4209then :
4210  for ac_file in conftest.o conftest.obj conftest.*; do
4211  test -f "$ac_file" || continue;
4212  case $ac_file in
4213    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4214    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4215       break;;
4216  esac
4217done
4218else $as_nop
4219  printf "%s\n" "$as_me: failed program was:" >&5
4220sed 's/^/| /' conftest.$ac_ext >&5
4221
4222{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4223printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4224as_fn_error $? "cannot compute suffix of object files: cannot compile
4225See \`config.log' for more details" "$LINENO" 5; }
4226fi
4227rm -f conftest.$ac_cv_objext conftest.$ac_ext
4228fi
4229{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4230printf "%s\n" "$ac_cv_objext" >&6; }
4231OBJEXT=$ac_cv_objext
4232ac_objext=$OBJEXT
4233{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4234printf %s "checking whether the compiler supports GNU C... " >&6; }
4235if test ${ac_cv_c_compiler_gnu+y}
4236then :
4237  printf %s "(cached) " >&6
4238else $as_nop
4239  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4240/* end confdefs.h.  */
4241
4242int
4243main (void)
4244{
4245#ifndef __GNUC__
4246       choke me
4247#endif
4248
4249  ;
4250  return 0;
4251}
4252_ACEOF
4253if ac_fn_c_try_compile "$LINENO"
4254then :
4255  ac_compiler_gnu=yes
4256else $as_nop
4257  ac_compiler_gnu=no
4258fi
4259rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4260ac_cv_c_compiler_gnu=$ac_compiler_gnu
4261
4262fi
4263{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4264printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4265ac_compiler_gnu=$ac_cv_c_compiler_gnu
4266
4267if test $ac_compiler_gnu = yes; then
4268  GCC=yes
4269else
4270  GCC=
4271fi
4272ac_test_CFLAGS=${CFLAGS+y}
4273ac_save_CFLAGS=$CFLAGS
4274{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4275printf %s "checking whether $CC accepts -g... " >&6; }
4276if test ${ac_cv_prog_cc_g+y}
4277then :
4278  printf %s "(cached) " >&6
4279else $as_nop
4280  ac_save_c_werror_flag=$ac_c_werror_flag
4281   ac_c_werror_flag=yes
4282   ac_cv_prog_cc_g=no
4283   CFLAGS="-g"
4284   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4285/* end confdefs.h.  */
4286
4287int
4288main (void)
4289{
4290
4291  ;
4292  return 0;
4293}
4294_ACEOF
4295if ac_fn_c_try_compile "$LINENO"
4296then :
4297  ac_cv_prog_cc_g=yes
4298else $as_nop
4299  CFLAGS=""
4300      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4301/* end confdefs.h.  */
4302
4303int
4304main (void)
4305{
4306
4307  ;
4308  return 0;
4309}
4310_ACEOF
4311if ac_fn_c_try_compile "$LINENO"
4312then :
4313
4314else $as_nop
4315  ac_c_werror_flag=$ac_save_c_werror_flag
4316	 CFLAGS="-g"
4317	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4318/* end confdefs.h.  */
4319
4320int
4321main (void)
4322{
4323
4324  ;
4325  return 0;
4326}
4327_ACEOF
4328if ac_fn_c_try_compile "$LINENO"
4329then :
4330  ac_cv_prog_cc_g=yes
4331fi
4332rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4333fi
4334rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4335fi
4336rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4337   ac_c_werror_flag=$ac_save_c_werror_flag
4338fi
4339{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4340printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4341if test $ac_test_CFLAGS; then
4342  CFLAGS=$ac_save_CFLAGS
4343elif test $ac_cv_prog_cc_g = yes; then
4344  if test "$GCC" = yes; then
4345    CFLAGS="-g -O2"
4346  else
4347    CFLAGS="-g"
4348  fi
4349else
4350  if test "$GCC" = yes; then
4351    CFLAGS="-O2"
4352  else
4353    CFLAGS=
4354  fi
4355fi
4356ac_prog_cc_stdc=no
4357if test x$ac_prog_cc_stdc = xno
4358then :
4359  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4360printf %s "checking for $CC option to enable C11 features... " >&6; }
4361if test ${ac_cv_prog_cc_c11+y}
4362then :
4363  printf %s "(cached) " >&6
4364else $as_nop
4365  ac_cv_prog_cc_c11=no
4366ac_save_CC=$CC
4367cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4368/* end confdefs.h.  */
4369$ac_c_conftest_c11_program
4370_ACEOF
4371for ac_arg in '' -std=gnu11
4372do
4373  CC="$ac_save_CC $ac_arg"
4374  if ac_fn_c_try_compile "$LINENO"
4375then :
4376  ac_cv_prog_cc_c11=$ac_arg
4377fi
4378rm -f core conftest.err conftest.$ac_objext conftest.beam
4379  test "x$ac_cv_prog_cc_c11" != "xno" && break
4380done
4381rm -f conftest.$ac_ext
4382CC=$ac_save_CC
4383fi
4384
4385if test "x$ac_cv_prog_cc_c11" = xno
4386then :
4387  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4388printf "%s\n" "unsupported" >&6; }
4389else $as_nop
4390  if test "x$ac_cv_prog_cc_c11" = x
4391then :
4392  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4393printf "%s\n" "none needed" >&6; }
4394else $as_nop
4395  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4396printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4397     CC="$CC $ac_cv_prog_cc_c11"
4398fi
4399  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4400  ac_prog_cc_stdc=c11
4401fi
4402fi
4403if test x$ac_prog_cc_stdc = xno
4404then :
4405  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4406printf %s "checking for $CC option to enable C99 features... " >&6; }
4407if test ${ac_cv_prog_cc_c99+y}
4408then :
4409  printf %s "(cached) " >&6
4410else $as_nop
4411  ac_cv_prog_cc_c99=no
4412ac_save_CC=$CC
4413cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4414/* end confdefs.h.  */
4415$ac_c_conftest_c99_program
4416_ACEOF
4417for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4418do
4419  CC="$ac_save_CC $ac_arg"
4420  if ac_fn_c_try_compile "$LINENO"
4421then :
4422  ac_cv_prog_cc_c99=$ac_arg
4423fi
4424rm -f core conftest.err conftest.$ac_objext conftest.beam
4425  test "x$ac_cv_prog_cc_c99" != "xno" && break
4426done
4427rm -f conftest.$ac_ext
4428CC=$ac_save_CC
4429fi
4430
4431if test "x$ac_cv_prog_cc_c99" = xno
4432then :
4433  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4434printf "%s\n" "unsupported" >&6; }
4435else $as_nop
4436  if test "x$ac_cv_prog_cc_c99" = x
4437then :
4438  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4439printf "%s\n" "none needed" >&6; }
4440else $as_nop
4441  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4442printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4443     CC="$CC $ac_cv_prog_cc_c99"
4444fi
4445  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4446  ac_prog_cc_stdc=c99
4447fi
4448fi
4449if test x$ac_prog_cc_stdc = xno
4450then :
4451  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4452printf %s "checking for $CC option to enable C89 features... " >&6; }
4453if test ${ac_cv_prog_cc_c89+y}
4454then :
4455  printf %s "(cached) " >&6
4456else $as_nop
4457  ac_cv_prog_cc_c89=no
4458ac_save_CC=$CC
4459cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4460/* end confdefs.h.  */
4461$ac_c_conftest_c89_program
4462_ACEOF
4463for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4464do
4465  CC="$ac_save_CC $ac_arg"
4466  if ac_fn_c_try_compile "$LINENO"
4467then :
4468  ac_cv_prog_cc_c89=$ac_arg
4469fi
4470rm -f core conftest.err conftest.$ac_objext conftest.beam
4471  test "x$ac_cv_prog_cc_c89" != "xno" && break
4472done
4473rm -f conftest.$ac_ext
4474CC=$ac_save_CC
4475fi
4476
4477if test "x$ac_cv_prog_cc_c89" = xno
4478then :
4479  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4480printf "%s\n" "unsupported" >&6; }
4481else $as_nop
4482  if test "x$ac_cv_prog_cc_c89" = x
4483then :
4484  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4485printf "%s\n" "none needed" >&6; }
4486else $as_nop
4487  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4488printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4489     CC="$CC $ac_cv_prog_cc_c89"
4490fi
4491  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4492  ac_prog_cc_stdc=c89
4493fi
4494fi
4495
4496ac_ext=c
4497ac_cpp='$CPP $CPPFLAGS'
4498ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4499ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4500ac_compiler_gnu=$ac_cv_c_compiler_gnu
4501
4502
4503  ac_ext=c
4504ac_cpp='$CPP $CPPFLAGS'
4505ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4506ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4507ac_compiler_gnu=$ac_cv_c_compiler_gnu
4508{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4509printf %s "checking whether $CC understands -c and -o together... " >&6; }
4510if test ${am_cv_prog_cc_c_o+y}
4511then :
4512  printf %s "(cached) " >&6
4513else $as_nop
4514  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4515/* end confdefs.h.  */
4516
4517int
4518main (void)
4519{
4520
4521  ;
4522  return 0;
4523}
4524_ACEOF
4525  # Make sure it works both with $CC and with simple cc.
4526  # Following AC_PROG_CC_C_O, we do the test twice because some
4527  # compilers refuse to overwrite an existing .o file with -o,
4528  # though they will create one.
4529  am_cv_prog_cc_c_o=yes
4530  for am_i in 1 2; do
4531    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4532   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4533   ac_status=$?
4534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4535   (exit $ac_status); } \
4536         && test -f conftest2.$ac_objext; then
4537      : OK
4538    else
4539      am_cv_prog_cc_c_o=no
4540      break
4541    fi
4542  done
4543  rm -f core conftest*
4544  unset am_i
4545fi
4546{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4547printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4548if test "$am_cv_prog_cc_c_o" != yes; then
4549   # Losing compiler, so override with the script.
4550   # FIXME: It is wrong to rewrite CC.
4551   # But if we don't then we get into trouble of one sort or another.
4552   # A longer-term fix would be to have automake use am__CC in this case,
4553   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4554   CC="$am_aux_dir/compile $CC"
4555fi
4556ac_ext=c
4557ac_cpp='$CPP $CPPFLAGS'
4558ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4559ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4560ac_compiler_gnu=$ac_cv_c_compiler_gnu
4561
4562
4563depcc="$CC"   am_compiler_list=
4564
4565{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4566printf %s "checking dependency style of $depcc... " >&6; }
4567if test ${am_cv_CC_dependencies_compiler_type+y}
4568then :
4569  printf %s "(cached) " >&6
4570else $as_nop
4571  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4572  # We make a subdir and do the tests there.  Otherwise we can end up
4573  # making bogus files that we don't know about and never remove.  For
4574  # instance it was reported that on HP-UX the gcc test will end up
4575  # making a dummy file named 'D' -- because '-MD' means "put the output
4576  # in D".
4577  rm -rf conftest.dir
4578  mkdir conftest.dir
4579  # Copy depcomp to subdir because otherwise we won't find it if we're
4580  # using a relative directory.
4581  cp "$am_depcomp" conftest.dir
4582  cd conftest.dir
4583  # We will build objects and dependencies in a subdirectory because
4584  # it helps to detect inapplicable dependency modes.  For instance
4585  # both Tru64's cc and ICC support -MD to output dependencies as a
4586  # side effect of compilation, but ICC will put the dependencies in
4587  # the current directory while Tru64 will put them in the object
4588  # directory.
4589  mkdir sub
4590
4591  am_cv_CC_dependencies_compiler_type=none
4592  if test "$am_compiler_list" = ""; then
4593     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4594  fi
4595  am__universal=false
4596  case " $depcc " in #(
4597     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4598     esac
4599
4600  for depmode in $am_compiler_list; do
4601    # Setup a source with many dependencies, because some compilers
4602    # like to wrap large dependency lists on column 80 (with \), and
4603    # we should not choose a depcomp mode which is confused by this.
4604    #
4605    # We need to recreate these files for each test, as the compiler may
4606    # overwrite some of them when testing with obscure command lines.
4607    # This happens at least with the AIX C compiler.
4608    : > sub/conftest.c
4609    for i in 1 2 3 4 5 6; do
4610      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4611      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4612      # Solaris 10 /bin/sh.
4613      echo '/* dummy */' > sub/conftst$i.h
4614    done
4615    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4616
4617    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4618    # mode.  It turns out that the SunPro C++ compiler does not properly
4619    # handle '-M -o', and we need to detect this.  Also, some Intel
4620    # versions had trouble with output in subdirs.
4621    am__obj=sub/conftest.${OBJEXT-o}
4622    am__minus_obj="-o $am__obj"
4623    case $depmode in
4624    gcc)
4625      # This depmode causes a compiler race in universal mode.
4626      test "$am__universal" = false || continue
4627      ;;
4628    nosideeffect)
4629      # After this tag, mechanisms are not by side-effect, so they'll
4630      # only be used when explicitly requested.
4631      if test "x$enable_dependency_tracking" = xyes; then
4632	continue
4633      else
4634	break
4635      fi
4636      ;;
4637    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4638      # This compiler won't grok '-c -o', but also, the minuso test has
4639      # not run yet.  These depmodes are late enough in the game, and
4640      # so weak that their functioning should not be impacted.
4641      am__obj=conftest.${OBJEXT-o}
4642      am__minus_obj=
4643      ;;
4644    none) break ;;
4645    esac
4646    if depmode=$depmode \
4647       source=sub/conftest.c object=$am__obj \
4648       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4649       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4650         >/dev/null 2>conftest.err &&
4651       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4652       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4653       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4654       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4655      # icc doesn't choke on unknown options, it will just issue warnings
4656      # or remarks (even with -Werror).  So we grep stderr for any message
4657      # that says an option was ignored or not supported.
4658      # When given -MP, icc 7.0 and 7.1 complain thusly:
4659      #   icc: Command line warning: ignoring option '-M'; no argument required
4660      # The diagnosis changed in icc 8.0:
4661      #   icc: Command line remark: option '-MP' not supported
4662      if (grep 'ignoring option' conftest.err ||
4663          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4664        am_cv_CC_dependencies_compiler_type=$depmode
4665        break
4666      fi
4667    fi
4668  done
4669
4670  cd ..
4671  rm -rf conftest.dir
4672else
4673  am_cv_CC_dependencies_compiler_type=none
4674fi
4675
4676fi
4677{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4678printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4679CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4680
4681 if
4682  test "x$enable_dependency_tracking" != xno \
4683  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4684  am__fastdepCC_TRUE=
4685  am__fastdepCC_FALSE='#'
4686else
4687  am__fastdepCC_TRUE='#'
4688  am__fastdepCC_FALSE=
4689fi
4690
4691
4692{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4693printf %s "checking for a sed that does not truncate output... " >&6; }
4694if test ${ac_cv_path_SED+y}
4695then :
4696  printf %s "(cached) " >&6
4697else $as_nop
4698            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4699     for ac_i in 1 2 3 4 5 6 7; do
4700       ac_script="$ac_script$as_nl$ac_script"
4701     done
4702     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4703     { ac_script=; unset ac_script;}
4704     if test -z "$SED"; then
4705  ac_path_SED_found=false
4706  # Loop through the user's path and test for each of PROGNAME-LIST
4707  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4708for as_dir in $PATH
4709do
4710  IFS=$as_save_IFS
4711  case $as_dir in #(((
4712    '') as_dir=./ ;;
4713    */) ;;
4714    *) as_dir=$as_dir/ ;;
4715  esac
4716    for ac_prog in sed gsed
4717   do
4718    for ac_exec_ext in '' $ac_executable_extensions; do
4719      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4720      as_fn_executable_p "$ac_path_SED" || continue
4721# Check for GNU ac_path_SED and select it if it is found.
4722  # Check for GNU $ac_path_SED
4723case `"$ac_path_SED" --version 2>&1` in
4724*GNU*)
4725  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4726*)
4727  ac_count=0
4728  printf %s 0123456789 >"conftest.in"
4729  while :
4730  do
4731    cat "conftest.in" "conftest.in" >"conftest.tmp"
4732    mv "conftest.tmp" "conftest.in"
4733    cp "conftest.in" "conftest.nl"
4734    printf "%s\n" '' >> "conftest.nl"
4735    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4736    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4737    as_fn_arith $ac_count + 1 && ac_count=$as_val
4738    if test $ac_count -gt ${ac_path_SED_max-0}; then
4739      # Best one so far, save it but keep looking for a better one
4740      ac_cv_path_SED="$ac_path_SED"
4741      ac_path_SED_max=$ac_count
4742    fi
4743    # 10*(2^10) chars as input seems more than enough
4744    test $ac_count -gt 10 && break
4745  done
4746  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4747esac
4748
4749      $ac_path_SED_found && break 3
4750    done
4751  done
4752  done
4753IFS=$as_save_IFS
4754  if test -z "$ac_cv_path_SED"; then
4755    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4756  fi
4757else
4758  ac_cv_path_SED=$SED
4759fi
4760
4761fi
4762{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4763printf "%s\n" "$ac_cv_path_SED" >&6; }
4764 SED="$ac_cv_path_SED"
4765  rm -f conftest.sed
4766
4767test -z "$SED" && SED=sed
4768Xsed="$SED -e 1s/^X//"
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4781printf %s "checking for grep that handles long lines and -e... " >&6; }
4782if test ${ac_cv_path_GREP+y}
4783then :
4784  printf %s "(cached) " >&6
4785else $as_nop
4786  if test -z "$GREP"; then
4787  ac_path_GREP_found=false
4788  # Loop through the user's path and test for each of PROGNAME-LIST
4789  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4790for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4791do
4792  IFS=$as_save_IFS
4793  case $as_dir in #(((
4794    '') as_dir=./ ;;
4795    */) ;;
4796    *) as_dir=$as_dir/ ;;
4797  esac
4798    for ac_prog in grep ggrep
4799   do
4800    for ac_exec_ext in '' $ac_executable_extensions; do
4801      ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
4802      as_fn_executable_p "$ac_path_GREP" || continue
4803# Check for GNU ac_path_GREP and select it if it is found.
4804  # Check for GNU $ac_path_GREP
4805case `"$ac_path_GREP" --version 2>&1` in
4806*GNU*)
4807  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4808*)
4809  ac_count=0
4810  printf %s 0123456789 >"conftest.in"
4811  while :
4812  do
4813    cat "conftest.in" "conftest.in" >"conftest.tmp"
4814    mv "conftest.tmp" "conftest.in"
4815    cp "conftest.in" "conftest.nl"
4816    printf "%s\n" 'GREP' >> "conftest.nl"
4817    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4818    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4819    as_fn_arith $ac_count + 1 && ac_count=$as_val
4820    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4821      # Best one so far, save it but keep looking for a better one
4822      ac_cv_path_GREP="$ac_path_GREP"
4823      ac_path_GREP_max=$ac_count
4824    fi
4825    # 10*(2^10) chars as input seems more than enough
4826    test $ac_count -gt 10 && break
4827  done
4828  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4829esac
4830
4831      $ac_path_GREP_found && break 3
4832    done
4833  done
4834  done
4835IFS=$as_save_IFS
4836  if test -z "$ac_cv_path_GREP"; then
4837    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4838  fi
4839else
4840  ac_cv_path_GREP=$GREP
4841fi
4842
4843fi
4844{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4845printf "%s\n" "$ac_cv_path_GREP" >&6; }
4846 GREP="$ac_cv_path_GREP"
4847
4848
4849{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4850printf %s "checking for egrep... " >&6; }
4851if test ${ac_cv_path_EGREP+y}
4852then :
4853  printf %s "(cached) " >&6
4854else $as_nop
4855  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4856   then ac_cv_path_EGREP="$GREP -E"
4857   else
4858     if test -z "$EGREP"; then
4859  ac_path_EGREP_found=false
4860  # Loop through the user's path and test for each of PROGNAME-LIST
4861  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4862for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4863do
4864  IFS=$as_save_IFS
4865  case $as_dir in #(((
4866    '') as_dir=./ ;;
4867    */) ;;
4868    *) as_dir=$as_dir/ ;;
4869  esac
4870    for ac_prog in egrep
4871   do
4872    for ac_exec_ext in '' $ac_executable_extensions; do
4873      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
4874      as_fn_executable_p "$ac_path_EGREP" || continue
4875# Check for GNU ac_path_EGREP and select it if it is found.
4876  # Check for GNU $ac_path_EGREP
4877case `"$ac_path_EGREP" --version 2>&1` in
4878*GNU*)
4879  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4880*)
4881  ac_count=0
4882  printf %s 0123456789 >"conftest.in"
4883  while :
4884  do
4885    cat "conftest.in" "conftest.in" >"conftest.tmp"
4886    mv "conftest.tmp" "conftest.in"
4887    cp "conftest.in" "conftest.nl"
4888    printf "%s\n" 'EGREP' >> "conftest.nl"
4889    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4890    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4891    as_fn_arith $ac_count + 1 && ac_count=$as_val
4892    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4893      # Best one so far, save it but keep looking for a better one
4894      ac_cv_path_EGREP="$ac_path_EGREP"
4895      ac_path_EGREP_max=$ac_count
4896    fi
4897    # 10*(2^10) chars as input seems more than enough
4898    test $ac_count -gt 10 && break
4899  done
4900  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4901esac
4902
4903      $ac_path_EGREP_found && break 3
4904    done
4905  done
4906  done
4907IFS=$as_save_IFS
4908  if test -z "$ac_cv_path_EGREP"; then
4909    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4910  fi
4911else
4912  ac_cv_path_EGREP=$EGREP
4913fi
4914
4915   fi
4916fi
4917{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4918printf "%s\n" "$ac_cv_path_EGREP" >&6; }
4919 EGREP="$ac_cv_path_EGREP"
4920
4921
4922{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4923printf %s "checking for fgrep... " >&6; }
4924if test ${ac_cv_path_FGREP+y}
4925then :
4926  printf %s "(cached) " >&6
4927else $as_nop
4928  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4929   then ac_cv_path_FGREP="$GREP -F"
4930   else
4931     if test -z "$FGREP"; then
4932  ac_path_FGREP_found=false
4933  # Loop through the user's path and test for each of PROGNAME-LIST
4934  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4935for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4936do
4937  IFS=$as_save_IFS
4938  case $as_dir in #(((
4939    '') as_dir=./ ;;
4940    */) ;;
4941    *) as_dir=$as_dir/ ;;
4942  esac
4943    for ac_prog in fgrep
4944   do
4945    for ac_exec_ext in '' $ac_executable_extensions; do
4946      ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
4947      as_fn_executable_p "$ac_path_FGREP" || continue
4948# Check for GNU ac_path_FGREP and select it if it is found.
4949  # Check for GNU $ac_path_FGREP
4950case `"$ac_path_FGREP" --version 2>&1` in
4951*GNU*)
4952  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4953*)
4954  ac_count=0
4955  printf %s 0123456789 >"conftest.in"
4956  while :
4957  do
4958    cat "conftest.in" "conftest.in" >"conftest.tmp"
4959    mv "conftest.tmp" "conftest.in"
4960    cp "conftest.in" "conftest.nl"
4961    printf "%s\n" 'FGREP' >> "conftest.nl"
4962    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4963    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4964    as_fn_arith $ac_count + 1 && ac_count=$as_val
4965    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4966      # Best one so far, save it but keep looking for a better one
4967      ac_cv_path_FGREP="$ac_path_FGREP"
4968      ac_path_FGREP_max=$ac_count
4969    fi
4970    # 10*(2^10) chars as input seems more than enough
4971    test $ac_count -gt 10 && break
4972  done
4973  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4974esac
4975
4976      $ac_path_FGREP_found && break 3
4977    done
4978  done
4979  done
4980IFS=$as_save_IFS
4981  if test -z "$ac_cv_path_FGREP"; then
4982    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4983  fi
4984else
4985  ac_cv_path_FGREP=$FGREP
4986fi
4987
4988   fi
4989fi
4990{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4991printf "%s\n" "$ac_cv_path_FGREP" >&6; }
4992 FGREP="$ac_cv_path_FGREP"
4993
4994
4995test -z "$GREP" && GREP=grep
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015# Check whether --with-gnu-ld was given.
5016if test ${with_gnu_ld+y}
5017then :
5018  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5019else $as_nop
5020  with_gnu_ld=no
5021fi
5022
5023ac_prog=ld
5024if test yes = "$GCC"; then
5025  # Check if gcc -print-prog-name=ld gives a path.
5026  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5027printf %s "checking for ld used by $CC... " >&6; }
5028  case $host in
5029  *-*-mingw*)
5030    # gcc leaves a trailing carriage return, which upsets mingw
5031    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5032  *)
5033    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5034  esac
5035  case $ac_prog in
5036    # Accept absolute paths.
5037    [\\/]* | ?:[\\/]*)
5038      re_direlt='/[^/][^/]*/\.\./'
5039      # Canonicalize the pathname of ld
5040      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5041      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5042	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5043      done
5044      test -z "$LD" && LD=$ac_prog
5045      ;;
5046  "")
5047    # If it fails, then pretend we aren't using GCC.
5048    ac_prog=ld
5049    ;;
5050  *)
5051    # If it is relative, then search for the first ld in PATH.
5052    with_gnu_ld=unknown
5053    ;;
5054  esac
5055elif test yes = "$with_gnu_ld"; then
5056  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5057printf %s "checking for GNU ld... " >&6; }
5058else
5059  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5060printf %s "checking for non-GNU ld... " >&6; }
5061fi
5062if test ${lt_cv_path_LD+y}
5063then :
5064  printf %s "(cached) " >&6
5065else $as_nop
5066  if test -z "$LD"; then
5067  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5068  for ac_dir in $PATH; do
5069    IFS=$lt_save_ifs
5070    test -z "$ac_dir" && ac_dir=.
5071    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5072      lt_cv_path_LD=$ac_dir/$ac_prog
5073      # Check to see if the program is GNU ld.  I'd rather use --version,
5074      # but apparently some variants of GNU ld only accept -v.
5075      # Break only if it was the GNU/non-GNU ld that we prefer.
5076      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5077      *GNU* | *'with BFD'*)
5078	test no != "$with_gnu_ld" && break
5079	;;
5080      *)
5081	test yes != "$with_gnu_ld" && break
5082	;;
5083      esac
5084    fi
5085  done
5086  IFS=$lt_save_ifs
5087else
5088  lt_cv_path_LD=$LD # Let the user override the test with a path.
5089fi
5090fi
5091
5092LD=$lt_cv_path_LD
5093if test -n "$LD"; then
5094  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5095printf "%s\n" "$LD" >&6; }
5096else
5097  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5098printf "%s\n" "no" >&6; }
5099fi
5100test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5101{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5102printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5103if test ${lt_cv_prog_gnu_ld+y}
5104then :
5105  printf %s "(cached) " >&6
5106else $as_nop
5107  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5108case `$LD -v 2>&1 </dev/null` in
5109*GNU* | *'with BFD'*)
5110  lt_cv_prog_gnu_ld=yes
5111  ;;
5112*)
5113  lt_cv_prog_gnu_ld=no
5114  ;;
5115esac
5116fi
5117{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5118printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5119with_gnu_ld=$lt_cv_prog_gnu_ld
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5130printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5131if test ${lt_cv_path_NM+y}
5132then :
5133  printf %s "(cached) " >&6
5134else $as_nop
5135  if test -n "$NM"; then
5136  # Let the user override the test.
5137  lt_cv_path_NM=$NM
5138else
5139  lt_nm_to_check=${ac_tool_prefix}nm
5140  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5141    lt_nm_to_check="$lt_nm_to_check nm"
5142  fi
5143  for lt_tmp_nm in $lt_nm_to_check; do
5144    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5145    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5146      IFS=$lt_save_ifs
5147      test -z "$ac_dir" && ac_dir=.
5148      tmp_nm=$ac_dir/$lt_tmp_nm
5149      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5150	# Check to see if the nm accepts a BSD-compat flag.
5151	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5152	#   nm: unknown option "B" ignored
5153	# Tru64's nm complains that /dev/null is an invalid object file
5154	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5155	case $build_os in
5156	mingw*) lt_bad_file=conftest.nm/nofile ;;
5157	*) lt_bad_file=/dev/null ;;
5158	esac
5159	case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5160	*$lt_bad_file* | *'Invalid file or object type'*)
5161	  lt_cv_path_NM="$tmp_nm -B"
5162	  break 2
5163	  ;;
5164	*)
5165	  case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5166	  */dev/null*)
5167	    lt_cv_path_NM="$tmp_nm -p"
5168	    break 2
5169	    ;;
5170	  *)
5171	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5172	    continue # so that we can try to find one that supports BSD flags
5173	    ;;
5174	  esac
5175	  ;;
5176	esac
5177      fi
5178    done
5179    IFS=$lt_save_ifs
5180  done
5181  : ${lt_cv_path_NM=no}
5182fi
5183fi
5184{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5185printf "%s\n" "$lt_cv_path_NM" >&6; }
5186if test no != "$lt_cv_path_NM"; then
5187  NM=$lt_cv_path_NM
5188else
5189  # Didn't find any BSD compatible name lister, look for dumpbin.
5190  if test -n "$DUMPBIN"; then :
5191    # Let the user override the test.
5192  else
5193    if test -n "$ac_tool_prefix"; then
5194  for ac_prog in dumpbin "link -dump"
5195  do
5196    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5197set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5198{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5199printf %s "checking for $ac_word... " >&6; }
5200if test ${ac_cv_prog_DUMPBIN+y}
5201then :
5202  printf %s "(cached) " >&6
5203else $as_nop
5204  if test -n "$DUMPBIN"; then
5205  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5206else
5207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5208for as_dir in $PATH
5209do
5210  IFS=$as_save_IFS
5211  case $as_dir in #(((
5212    '') as_dir=./ ;;
5213    */) ;;
5214    *) as_dir=$as_dir/ ;;
5215  esac
5216    for ac_exec_ext in '' $ac_executable_extensions; do
5217  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5218    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5219    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5220    break 2
5221  fi
5222done
5223  done
5224IFS=$as_save_IFS
5225
5226fi
5227fi
5228DUMPBIN=$ac_cv_prog_DUMPBIN
5229if test -n "$DUMPBIN"; then
5230  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5231printf "%s\n" "$DUMPBIN" >&6; }
5232else
5233  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5234printf "%s\n" "no" >&6; }
5235fi
5236
5237
5238    test -n "$DUMPBIN" && break
5239  done
5240fi
5241if test -z "$DUMPBIN"; then
5242  ac_ct_DUMPBIN=$DUMPBIN
5243  for ac_prog in dumpbin "link -dump"
5244do
5245  # Extract the first word of "$ac_prog", so it can be a program name with args.
5246set dummy $ac_prog; ac_word=$2
5247{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5248printf %s "checking for $ac_word... " >&6; }
5249if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5250then :
5251  printf %s "(cached) " >&6
5252else $as_nop
5253  if test -n "$ac_ct_DUMPBIN"; then
5254  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5255else
5256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5257for as_dir in $PATH
5258do
5259  IFS=$as_save_IFS
5260  case $as_dir in #(((
5261    '') as_dir=./ ;;
5262    */) ;;
5263    *) as_dir=$as_dir/ ;;
5264  esac
5265    for ac_exec_ext in '' $ac_executable_extensions; do
5266  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5267    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5268    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5269    break 2
5270  fi
5271done
5272  done
5273IFS=$as_save_IFS
5274
5275fi
5276fi
5277ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5278if test -n "$ac_ct_DUMPBIN"; then
5279  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5280printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5281else
5282  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5283printf "%s\n" "no" >&6; }
5284fi
5285
5286
5287  test -n "$ac_ct_DUMPBIN" && break
5288done
5289
5290  if test "x$ac_ct_DUMPBIN" = x; then
5291    DUMPBIN=":"
5292  else
5293    case $cross_compiling:$ac_tool_warned in
5294yes:)
5295{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5296printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5297ac_tool_warned=yes ;;
5298esac
5299    DUMPBIN=$ac_ct_DUMPBIN
5300  fi
5301fi
5302
5303    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5304    *COFF*)
5305      DUMPBIN="$DUMPBIN -symbols -headers"
5306      ;;
5307    *)
5308      DUMPBIN=:
5309      ;;
5310    esac
5311  fi
5312
5313  if test : != "$DUMPBIN"; then
5314    NM=$DUMPBIN
5315  fi
5316fi
5317test -z "$NM" && NM=nm
5318
5319
5320
5321
5322
5323
5324{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5325printf %s "checking the name lister ($NM) interface... " >&6; }
5326if test ${lt_cv_nm_interface+y}
5327then :
5328  printf %s "(cached) " >&6
5329else $as_nop
5330  lt_cv_nm_interface="BSD nm"
5331  echo "int some_variable = 0;" > conftest.$ac_ext
5332  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5333  (eval "$ac_compile" 2>conftest.err)
5334  cat conftest.err >&5
5335  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5336  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5337  cat conftest.err >&5
5338  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5339  cat conftest.out >&5
5340  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5341    lt_cv_nm_interface="MS dumpbin"
5342  fi
5343  rm -f conftest*
5344fi
5345{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5346printf "%s\n" "$lt_cv_nm_interface" >&6; }
5347
5348{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5349printf %s "checking whether ln -s works... " >&6; }
5350LN_S=$as_ln_s
5351if test "$LN_S" = "ln -s"; then
5352  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5353printf "%s\n" "yes" >&6; }
5354else
5355  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5356printf "%s\n" "no, using $LN_S" >&6; }
5357fi
5358
5359# find the maximum length of command line arguments
5360{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5361printf %s "checking the maximum length of command line arguments... " >&6; }
5362if test ${lt_cv_sys_max_cmd_len+y}
5363then :
5364  printf %s "(cached) " >&6
5365else $as_nop
5366    i=0
5367  teststring=ABCD
5368
5369  case $build_os in
5370  msdosdjgpp*)
5371    # On DJGPP, this test can blow up pretty badly due to problems in libc
5372    # (any single argument exceeding 2000 bytes causes a buffer overrun
5373    # during glob expansion).  Even if it were fixed, the result of this
5374    # check would be larger than it should be.
5375    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5376    ;;
5377
5378  gnu*)
5379    # Under GNU Hurd, this test is not required because there is
5380    # no limit to the length of command line arguments.
5381    # Libtool will interpret -1 as no limit whatsoever
5382    lt_cv_sys_max_cmd_len=-1;
5383    ;;
5384
5385  cygwin* | mingw* | cegcc*)
5386    # On Win9x/ME, this test blows up -- it succeeds, but takes
5387    # about 5 minutes as the teststring grows exponentially.
5388    # Worse, since 9x/ME are not pre-emptively multitasking,
5389    # you end up with a "frozen" computer, even though with patience
5390    # the test eventually succeeds (with a max line length of 256k).
5391    # Instead, let's just punt: use the minimum linelength reported by
5392    # all of the supported platforms: 8192 (on NT/2K/XP).
5393    lt_cv_sys_max_cmd_len=8192;
5394    ;;
5395
5396  mint*)
5397    # On MiNT this can take a long time and run out of memory.
5398    lt_cv_sys_max_cmd_len=8192;
5399    ;;
5400
5401  amigaos*)
5402    # On AmigaOS with pdksh, this test takes hours, literally.
5403    # So we just punt and use a minimum line length of 8192.
5404    lt_cv_sys_max_cmd_len=8192;
5405    ;;
5406
5407  bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5408    # This has been around since 386BSD, at least.  Likely further.
5409    if test -x /sbin/sysctl; then
5410      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5411    elif test -x /usr/sbin/sysctl; then
5412      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5413    else
5414      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5415    fi
5416    # And add a safety zone
5417    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5418    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5419    ;;
5420
5421  interix*)
5422    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5423    lt_cv_sys_max_cmd_len=196608
5424    ;;
5425
5426  os2*)
5427    # The test takes a long time on OS/2.
5428    lt_cv_sys_max_cmd_len=8192
5429    ;;
5430
5431  osf*)
5432    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5433    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5434    # nice to cause kernel panics so lets avoid the loop below.
5435    # First set a reasonable default.
5436    lt_cv_sys_max_cmd_len=16384
5437    #
5438    if test -x /sbin/sysconfig; then
5439      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5440        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5441      esac
5442    fi
5443    ;;
5444  sco3.2v5*)
5445    lt_cv_sys_max_cmd_len=102400
5446    ;;
5447  sysv5* | sco5v6* | sysv4.2uw2*)
5448    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5449    if test -n "$kargmax"; then
5450      lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[	 ]//'`
5451    else
5452      lt_cv_sys_max_cmd_len=32768
5453    fi
5454    ;;
5455  *)
5456    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5457    if test -n "$lt_cv_sys_max_cmd_len" && \
5458       test undefined != "$lt_cv_sys_max_cmd_len"; then
5459      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5460      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5461    else
5462      # Make teststring a little bigger before we do anything with it.
5463      # a 1K string should be a reasonable start.
5464      for i in 1 2 3 4 5 6 7 8; do
5465        teststring=$teststring$teststring
5466      done
5467      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5468      # If test is not a shell built-in, we'll probably end up computing a
5469      # maximum length that is only half of the actual maximum length, but
5470      # we can't tell.
5471      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5472	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5473	      test 17 != "$i" # 1/2 MB should be enough
5474      do
5475        i=`expr $i + 1`
5476        teststring=$teststring$teststring
5477      done
5478      # Only check the string length outside the loop.
5479      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5480      teststring=
5481      # Add a significant safety factor because C++ compilers can tack on
5482      # massive amounts of additional arguments before passing them to the
5483      # linker.  It appears as though 1/2 is a usable value.
5484      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5485    fi
5486    ;;
5487  esac
5488
5489fi
5490
5491if test -n "$lt_cv_sys_max_cmd_len"; then
5492  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5493printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
5494else
5495  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5496printf "%s\n" "none" >&6; }
5497fi
5498max_cmd_len=$lt_cv_sys_max_cmd_len
5499
5500
5501
5502
5503
5504
5505: ${CP="cp -f"}
5506: ${MV="mv -f"}
5507: ${RM="rm -f"}
5508
5509if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5510  lt_unset=unset
5511else
5512  lt_unset=false
5513fi
5514
5515
5516
5517
5518
5519# test EBCDIC or ASCII
5520case `echo X|tr X '\101'` in
5521 A) # ASCII based system
5522    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5523  lt_SP2NL='tr \040 \012'
5524  lt_NL2SP='tr \015\012 \040\040'
5525  ;;
5526 *) # EBCDIC based system
5527  lt_SP2NL='tr \100 \n'
5528  lt_NL2SP='tr \r\n \100\100'
5529  ;;
5530esac
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5541printf %s "checking how to convert $build file names to $host format... " >&6; }
5542if test ${lt_cv_to_host_file_cmd+y}
5543then :
5544  printf %s "(cached) " >&6
5545else $as_nop
5546  case $host in
5547  *-*-mingw* )
5548    case $build in
5549      *-*-mingw* ) # actually msys
5550        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5551        ;;
5552      *-*-cygwin* )
5553        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5554        ;;
5555      * ) # otherwise, assume *nix
5556        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5557        ;;
5558    esac
5559    ;;
5560  *-*-cygwin* )
5561    case $build in
5562      *-*-mingw* ) # actually msys
5563        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5564        ;;
5565      *-*-cygwin* )
5566        lt_cv_to_host_file_cmd=func_convert_file_noop
5567        ;;
5568      * ) # otherwise, assume *nix
5569        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5570        ;;
5571    esac
5572    ;;
5573  * ) # unhandled hosts (and "normal" native builds)
5574    lt_cv_to_host_file_cmd=func_convert_file_noop
5575    ;;
5576esac
5577
5578fi
5579
5580to_host_file_cmd=$lt_cv_to_host_file_cmd
5581{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5582printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
5583
5584
5585
5586
5587
5588{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5589printf %s "checking how to convert $build file names to toolchain format... " >&6; }
5590if test ${lt_cv_to_tool_file_cmd+y}
5591then :
5592  printf %s "(cached) " >&6
5593else $as_nop
5594  #assume ordinary cross tools, or native build.
5595lt_cv_to_tool_file_cmd=func_convert_file_noop
5596case $host in
5597  *-*-mingw* )
5598    case $build in
5599      *-*-mingw* ) # actually msys
5600        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5601        ;;
5602    esac
5603    ;;
5604esac
5605
5606fi
5607
5608to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5609{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5610printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
5611
5612
5613
5614
5615
5616{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5617printf %s "checking for $LD option to reload object files... " >&6; }
5618if test ${lt_cv_ld_reload_flag+y}
5619then :
5620  printf %s "(cached) " >&6
5621else $as_nop
5622  lt_cv_ld_reload_flag='-r'
5623fi
5624{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5625printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
5626reload_flag=$lt_cv_ld_reload_flag
5627case $reload_flag in
5628"" | " "*) ;;
5629*) reload_flag=" $reload_flag" ;;
5630esac
5631reload_cmds='$LD$reload_flag -o $output$reload_objs'
5632case $host_os in
5633  cygwin* | mingw* | pw32* | cegcc*)
5634    if test yes != "$GCC"; then
5635      reload_cmds=false
5636    fi
5637    ;;
5638  darwin*)
5639    if test yes = "$GCC"; then
5640      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5641    else
5642      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5643    fi
5644    ;;
5645esac
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655if test -n "$ac_tool_prefix"; then
5656  # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
5657set dummy ${ac_tool_prefix}file; ac_word=$2
5658{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5659printf %s "checking for $ac_word... " >&6; }
5660if test ${ac_cv_prog_FILECMD+y}
5661then :
5662  printf %s "(cached) " >&6
5663else $as_nop
5664  if test -n "$FILECMD"; then
5665  ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
5666else
5667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5668for as_dir in $PATH
5669do
5670  IFS=$as_save_IFS
5671  case $as_dir in #(((
5672    '') as_dir=./ ;;
5673    */) ;;
5674    *) as_dir=$as_dir/ ;;
5675  esac
5676    for ac_exec_ext in '' $ac_executable_extensions; do
5677  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5678    ac_cv_prog_FILECMD="${ac_tool_prefix}file"
5679    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5680    break 2
5681  fi
5682done
5683  done
5684IFS=$as_save_IFS
5685
5686fi
5687fi
5688FILECMD=$ac_cv_prog_FILECMD
5689if test -n "$FILECMD"; then
5690  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
5691printf "%s\n" "$FILECMD" >&6; }
5692else
5693  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5694printf "%s\n" "no" >&6; }
5695fi
5696
5697
5698fi
5699if test -z "$ac_cv_prog_FILECMD"; then
5700  ac_ct_FILECMD=$FILECMD
5701  # Extract the first word of "file", so it can be a program name with args.
5702set dummy file; ac_word=$2
5703{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5704printf %s "checking for $ac_word... " >&6; }
5705if test ${ac_cv_prog_ac_ct_FILECMD+y}
5706then :
5707  printf %s "(cached) " >&6
5708else $as_nop
5709  if test -n "$ac_ct_FILECMD"; then
5710  ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
5711else
5712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5713for as_dir in $PATH
5714do
5715  IFS=$as_save_IFS
5716  case $as_dir in #(((
5717    '') as_dir=./ ;;
5718    */) ;;
5719    *) as_dir=$as_dir/ ;;
5720  esac
5721    for ac_exec_ext in '' $ac_executable_extensions; do
5722  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5723    ac_cv_prog_ac_ct_FILECMD="file"
5724    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5725    break 2
5726  fi
5727done
5728  done
5729IFS=$as_save_IFS
5730
5731fi
5732fi
5733ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
5734if test -n "$ac_ct_FILECMD"; then
5735  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
5736printf "%s\n" "$ac_ct_FILECMD" >&6; }
5737else
5738  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5739printf "%s\n" "no" >&6; }
5740fi
5741
5742  if test "x$ac_ct_FILECMD" = x; then
5743    FILECMD=":"
5744  else
5745    case $cross_compiling:$ac_tool_warned in
5746yes:)
5747{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5748printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5749ac_tool_warned=yes ;;
5750esac
5751    FILECMD=$ac_ct_FILECMD
5752  fi
5753else
5754  FILECMD="$ac_cv_prog_FILECMD"
5755fi
5756
5757
5758
5759
5760
5761
5762
5763if test -n "$ac_tool_prefix"; then
5764  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5765set dummy ${ac_tool_prefix}objdump; ac_word=$2
5766{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5767printf %s "checking for $ac_word... " >&6; }
5768if test ${ac_cv_prog_OBJDUMP+y}
5769then :
5770  printf %s "(cached) " >&6
5771else $as_nop
5772  if test -n "$OBJDUMP"; then
5773  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5774else
5775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5776for as_dir in $PATH
5777do
5778  IFS=$as_save_IFS
5779  case $as_dir in #(((
5780    '') as_dir=./ ;;
5781    */) ;;
5782    *) as_dir=$as_dir/ ;;
5783  esac
5784    for ac_exec_ext in '' $ac_executable_extensions; do
5785  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5786    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5787    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5788    break 2
5789  fi
5790done
5791  done
5792IFS=$as_save_IFS
5793
5794fi
5795fi
5796OBJDUMP=$ac_cv_prog_OBJDUMP
5797if test -n "$OBJDUMP"; then
5798  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5799printf "%s\n" "$OBJDUMP" >&6; }
5800else
5801  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5802printf "%s\n" "no" >&6; }
5803fi
5804
5805
5806fi
5807if test -z "$ac_cv_prog_OBJDUMP"; then
5808  ac_ct_OBJDUMP=$OBJDUMP
5809  # Extract the first word of "objdump", so it can be a program name with args.
5810set dummy objdump; ac_word=$2
5811{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5812printf %s "checking for $ac_word... " >&6; }
5813if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
5814then :
5815  printf %s "(cached) " >&6
5816else $as_nop
5817  if test -n "$ac_ct_OBJDUMP"; then
5818  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5819else
5820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5821for as_dir in $PATH
5822do
5823  IFS=$as_save_IFS
5824  case $as_dir in #(((
5825    '') as_dir=./ ;;
5826    */) ;;
5827    *) as_dir=$as_dir/ ;;
5828  esac
5829    for ac_exec_ext in '' $ac_executable_extensions; do
5830  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5831    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5832    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5833    break 2
5834  fi
5835done
5836  done
5837IFS=$as_save_IFS
5838
5839fi
5840fi
5841ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5842if test -n "$ac_ct_OBJDUMP"; then
5843  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5844printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
5845else
5846  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5847printf "%s\n" "no" >&6; }
5848fi
5849
5850  if test "x$ac_ct_OBJDUMP" = x; then
5851    OBJDUMP="false"
5852  else
5853    case $cross_compiling:$ac_tool_warned in
5854yes:)
5855{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5856printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5857ac_tool_warned=yes ;;
5858esac
5859    OBJDUMP=$ac_ct_OBJDUMP
5860  fi
5861else
5862  OBJDUMP="$ac_cv_prog_OBJDUMP"
5863fi
5864
5865test -z "$OBJDUMP" && OBJDUMP=objdump
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5876printf %s "checking how to recognize dependent libraries... " >&6; }
5877if test ${lt_cv_deplibs_check_method+y}
5878then :
5879  printf %s "(cached) " >&6
5880else $as_nop
5881  lt_cv_file_magic_cmd='$MAGIC_CMD'
5882lt_cv_file_magic_test_file=
5883lt_cv_deplibs_check_method='unknown'
5884# Need to set the preceding variable on all platforms that support
5885# interlibrary dependencies.
5886# 'none' -- dependencies not supported.
5887# 'unknown' -- same as none, but documents that we really don't know.
5888# 'pass_all' -- all dependencies passed with no checks.
5889# 'test_compile' -- check by making test program.
5890# 'file_magic [[regex]]' -- check by looking for files in library path
5891# that responds to the $file_magic_cmd with a given extended regex.
5892# If you have 'file' or equivalent on your system and you're not sure
5893# whether 'pass_all' will *always* work, you probably want this one.
5894
5895case $host_os in
5896aix[4-9]*)
5897  lt_cv_deplibs_check_method=pass_all
5898  ;;
5899
5900beos*)
5901  lt_cv_deplibs_check_method=pass_all
5902  ;;
5903
5904bsdi[45]*)
5905  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5906  lt_cv_file_magic_cmd='$FILECMD -L'
5907  lt_cv_file_magic_test_file=/shlib/libc.so
5908  ;;
5909
5910cygwin*)
5911  # func_win32_libid is a shell function defined in ltmain.sh
5912  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5913  lt_cv_file_magic_cmd='func_win32_libid'
5914  ;;
5915
5916mingw* | pw32*)
5917  # Base MSYS/MinGW do not provide the 'file' command needed by
5918  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5919  # unless we find 'file', for example because we are cross-compiling.
5920  if ( file / ) >/dev/null 2>&1; then
5921    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5922    lt_cv_file_magic_cmd='func_win32_libid'
5923  else
5924    # Keep this pattern in sync with the one in func_win32_libid.
5925    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5926    lt_cv_file_magic_cmd='$OBJDUMP -f'
5927  fi
5928  ;;
5929
5930cegcc*)
5931  # use the weaker test based on 'objdump'. See mingw*.
5932  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5933  lt_cv_file_magic_cmd='$OBJDUMP -f'
5934  ;;
5935
5936darwin* | rhapsody*)
5937  lt_cv_deplibs_check_method=pass_all
5938  ;;
5939
5940freebsd* | dragonfly* | midnightbsd*)
5941  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5942    case $host_cpu in
5943    i*86 )
5944      # Not sure whether the presence of OpenBSD here was a mistake.
5945      # Let's accept both of them until this is cleared up.
5946      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5947      lt_cv_file_magic_cmd=$FILECMD
5948      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5949      ;;
5950    esac
5951  else
5952    lt_cv_deplibs_check_method=pass_all
5953  fi
5954  ;;
5955
5956haiku*)
5957  lt_cv_deplibs_check_method=pass_all
5958  ;;
5959
5960hpux10.20* | hpux11*)
5961  lt_cv_file_magic_cmd=$FILECMD
5962  case $host_cpu in
5963  ia64*)
5964    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5965    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5966    ;;
5967  hppa*64*)
5968    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]'
5969    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5970    ;;
5971  *)
5972    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5973    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5974    ;;
5975  esac
5976  ;;
5977
5978interix[3-9]*)
5979  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5980  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5981  ;;
5982
5983irix5* | irix6* | nonstopux*)
5984  case $LD in
5985  *-32|*"-32 ") libmagic=32-bit;;
5986  *-n32|*"-n32 ") libmagic=N32;;
5987  *-64|*"-64 ") libmagic=64-bit;;
5988  *) libmagic=never-match;;
5989  esac
5990  lt_cv_deplibs_check_method=pass_all
5991  ;;
5992
5993# This must be glibc/ELF.
5994linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5995  lt_cv_deplibs_check_method=pass_all
5996  ;;
5997
5998netbsd*)
5999  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6000    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6001  else
6002    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6003  fi
6004  ;;
6005
6006newos6*)
6007  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6008  lt_cv_file_magic_cmd=$FILECMD
6009  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6010  ;;
6011
6012*nto* | *qnx*)
6013  lt_cv_deplibs_check_method=pass_all
6014  ;;
6015
6016openbsd* | bitrig*)
6017  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6018    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6019  else
6020    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6021  fi
6022  ;;
6023
6024osf3* | osf4* | osf5*)
6025  lt_cv_deplibs_check_method=pass_all
6026  ;;
6027
6028rdos*)
6029  lt_cv_deplibs_check_method=pass_all
6030  ;;
6031
6032solaris*)
6033  lt_cv_deplibs_check_method=pass_all
6034  ;;
6035
6036sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6037  lt_cv_deplibs_check_method=pass_all
6038  ;;
6039
6040sysv4 | sysv4.3*)
6041  case $host_vendor in
6042  motorola)
6043    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]'
6044    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6045    ;;
6046  ncr)
6047    lt_cv_deplibs_check_method=pass_all
6048    ;;
6049  sequent)
6050    lt_cv_file_magic_cmd='/bin/file'
6051    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6052    ;;
6053  sni)
6054    lt_cv_file_magic_cmd='/bin/file'
6055    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6056    lt_cv_file_magic_test_file=/lib/libc.so
6057    ;;
6058  siemens)
6059    lt_cv_deplibs_check_method=pass_all
6060    ;;
6061  pc)
6062    lt_cv_deplibs_check_method=pass_all
6063    ;;
6064  esac
6065  ;;
6066
6067tpf*)
6068  lt_cv_deplibs_check_method=pass_all
6069  ;;
6070os2*)
6071  lt_cv_deplibs_check_method=pass_all
6072  ;;
6073esac
6074
6075fi
6076{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6077printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6078
6079file_magic_glob=
6080want_nocaseglob=no
6081if test "$build" = "$host"; then
6082  case $host_os in
6083  mingw* | pw32*)
6084    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6085      want_nocaseglob=yes
6086    else
6087      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6088    fi
6089    ;;
6090  esac
6091fi
6092
6093file_magic_cmd=$lt_cv_file_magic_cmd
6094deplibs_check_method=$lt_cv_deplibs_check_method
6095test -z "$deplibs_check_method" && deplibs_check_method=unknown
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118if test -n "$ac_tool_prefix"; then
6119  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6120set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6121{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6122printf %s "checking for $ac_word... " >&6; }
6123if test ${ac_cv_prog_DLLTOOL+y}
6124then :
6125  printf %s "(cached) " >&6
6126else $as_nop
6127  if test -n "$DLLTOOL"; then
6128  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6129else
6130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6131for as_dir in $PATH
6132do
6133  IFS=$as_save_IFS
6134  case $as_dir in #(((
6135    '') as_dir=./ ;;
6136    */) ;;
6137    *) as_dir=$as_dir/ ;;
6138  esac
6139    for ac_exec_ext in '' $ac_executable_extensions; do
6140  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6141    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6142    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6143    break 2
6144  fi
6145done
6146  done
6147IFS=$as_save_IFS
6148
6149fi
6150fi
6151DLLTOOL=$ac_cv_prog_DLLTOOL
6152if test -n "$DLLTOOL"; then
6153  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6154printf "%s\n" "$DLLTOOL" >&6; }
6155else
6156  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6157printf "%s\n" "no" >&6; }
6158fi
6159
6160
6161fi
6162if test -z "$ac_cv_prog_DLLTOOL"; then
6163  ac_ct_DLLTOOL=$DLLTOOL
6164  # Extract the first word of "dlltool", so it can be a program name with args.
6165set dummy dlltool; ac_word=$2
6166{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6167printf %s "checking for $ac_word... " >&6; }
6168if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6169then :
6170  printf %s "(cached) " >&6
6171else $as_nop
6172  if test -n "$ac_ct_DLLTOOL"; then
6173  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6174else
6175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6176for as_dir in $PATH
6177do
6178  IFS=$as_save_IFS
6179  case $as_dir in #(((
6180    '') as_dir=./ ;;
6181    */) ;;
6182    *) as_dir=$as_dir/ ;;
6183  esac
6184    for ac_exec_ext in '' $ac_executable_extensions; do
6185  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6186    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6187    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6188    break 2
6189  fi
6190done
6191  done
6192IFS=$as_save_IFS
6193
6194fi
6195fi
6196ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6197if test -n "$ac_ct_DLLTOOL"; then
6198  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6199printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6200else
6201  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6202printf "%s\n" "no" >&6; }
6203fi
6204
6205  if test "x$ac_ct_DLLTOOL" = x; then
6206    DLLTOOL="false"
6207  else
6208    case $cross_compiling:$ac_tool_warned in
6209yes:)
6210{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6211printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6212ac_tool_warned=yes ;;
6213esac
6214    DLLTOOL=$ac_ct_DLLTOOL
6215  fi
6216else
6217  DLLTOOL="$ac_cv_prog_DLLTOOL"
6218fi
6219
6220test -z "$DLLTOOL" && DLLTOOL=dlltool
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6232printf %s "checking how to associate runtime and link libraries... " >&6; }
6233if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6234then :
6235  printf %s "(cached) " >&6
6236else $as_nop
6237  lt_cv_sharedlib_from_linklib_cmd='unknown'
6238
6239case $host_os in
6240cygwin* | mingw* | pw32* | cegcc*)
6241  # two different shell functions defined in ltmain.sh;
6242  # decide which one to use based on capabilities of $DLLTOOL
6243  case `$DLLTOOL --help 2>&1` in
6244  *--identify-strict*)
6245    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6246    ;;
6247  *)
6248    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6249    ;;
6250  esac
6251  ;;
6252*)
6253  # fallback: assume linklib IS sharedlib
6254  lt_cv_sharedlib_from_linklib_cmd=$ECHO
6255  ;;
6256esac
6257
6258fi
6259{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6260printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6261sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6262test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6263
6264
6265
6266
6267
6268
6269
6270
6271if test -n "$ac_tool_prefix"; then
6272  for ac_prog in ar
6273  do
6274    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6275set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6276{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6277printf %s "checking for $ac_word... " >&6; }
6278if test ${ac_cv_prog_AR+y}
6279then :
6280  printf %s "(cached) " >&6
6281else $as_nop
6282  if test -n "$AR"; then
6283  ac_cv_prog_AR="$AR" # Let the user override the test.
6284else
6285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6286for as_dir in $PATH
6287do
6288  IFS=$as_save_IFS
6289  case $as_dir in #(((
6290    '') as_dir=./ ;;
6291    */) ;;
6292    *) as_dir=$as_dir/ ;;
6293  esac
6294    for ac_exec_ext in '' $ac_executable_extensions; do
6295  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6296    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6297    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6298    break 2
6299  fi
6300done
6301  done
6302IFS=$as_save_IFS
6303
6304fi
6305fi
6306AR=$ac_cv_prog_AR
6307if test -n "$AR"; then
6308  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6309printf "%s\n" "$AR" >&6; }
6310else
6311  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6312printf "%s\n" "no" >&6; }
6313fi
6314
6315
6316    test -n "$AR" && break
6317  done
6318fi
6319if test -z "$AR"; then
6320  ac_ct_AR=$AR
6321  for ac_prog in ar
6322do
6323  # Extract the first word of "$ac_prog", so it can be a program name with args.
6324set dummy $ac_prog; ac_word=$2
6325{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6326printf %s "checking for $ac_word... " >&6; }
6327if test ${ac_cv_prog_ac_ct_AR+y}
6328then :
6329  printf %s "(cached) " >&6
6330else $as_nop
6331  if test -n "$ac_ct_AR"; then
6332  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6333else
6334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6335for as_dir in $PATH
6336do
6337  IFS=$as_save_IFS
6338  case $as_dir in #(((
6339    '') as_dir=./ ;;
6340    */) ;;
6341    *) as_dir=$as_dir/ ;;
6342  esac
6343    for ac_exec_ext in '' $ac_executable_extensions; do
6344  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6345    ac_cv_prog_ac_ct_AR="$ac_prog"
6346    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6347    break 2
6348  fi
6349done
6350  done
6351IFS=$as_save_IFS
6352
6353fi
6354fi
6355ac_ct_AR=$ac_cv_prog_ac_ct_AR
6356if test -n "$ac_ct_AR"; then
6357  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6358printf "%s\n" "$ac_ct_AR" >&6; }
6359else
6360  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6361printf "%s\n" "no" >&6; }
6362fi
6363
6364
6365  test -n "$ac_ct_AR" && break
6366done
6367
6368  if test "x$ac_ct_AR" = x; then
6369    AR="false"
6370  else
6371    case $cross_compiling:$ac_tool_warned in
6372yes:)
6373{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6374printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6375ac_tool_warned=yes ;;
6376esac
6377    AR=$ac_ct_AR
6378  fi
6379fi
6380
6381: ${AR=ar}
6382
6383
6384
6385
6386
6387
6388# Use ARFLAGS variable as AR's operation code to sync the variable naming with
6389# Automake.  If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6390# higher priority because thats what people were doing historically (setting
6391# ARFLAGS for automake and AR_FLAGS for libtool).  FIXME: Make the AR_FLAGS
6392# variable obsoleted/removed.
6393
6394test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6395lt_ar_flags=$AR_FLAGS
6396
6397
6398
6399
6400
6401
6402# Make AR_FLAGS overridable by 'make ARFLAGS='.  Don't try to run-time override
6403# by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6404
6405
6406
6407
6408
6409
6410{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6411printf %s "checking for archiver @FILE support... " >&6; }
6412if test ${lt_cv_ar_at_file+y}
6413then :
6414  printf %s "(cached) " >&6
6415else $as_nop
6416  lt_cv_ar_at_file=no
6417   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6418/* end confdefs.h.  */
6419
6420int
6421main (void)
6422{
6423
6424  ;
6425  return 0;
6426}
6427_ACEOF
6428if ac_fn_c_try_compile "$LINENO"
6429then :
6430  echo conftest.$ac_objext > conftest.lst
6431      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6432      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6433  (eval $lt_ar_try) 2>&5
6434  ac_status=$?
6435  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6436  test $ac_status = 0; }
6437      if test 0 -eq "$ac_status"; then
6438	# Ensure the archiver fails upon bogus file names.
6439	rm -f conftest.$ac_objext libconftest.a
6440	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6441  (eval $lt_ar_try) 2>&5
6442  ac_status=$?
6443  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6444  test $ac_status = 0; }
6445	if test 0 -ne "$ac_status"; then
6446          lt_cv_ar_at_file=@
6447        fi
6448      fi
6449      rm -f conftest.* libconftest.a
6450
6451fi
6452rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6453
6454fi
6455{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6456printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6457
6458if test no = "$lt_cv_ar_at_file"; then
6459  archiver_list_spec=
6460else
6461  archiver_list_spec=$lt_cv_ar_at_file
6462fi
6463
6464
6465
6466
6467
6468
6469
6470if test -n "$ac_tool_prefix"; then
6471  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6472set dummy ${ac_tool_prefix}strip; ac_word=$2
6473{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6474printf %s "checking for $ac_word... " >&6; }
6475if test ${ac_cv_prog_STRIP+y}
6476then :
6477  printf %s "(cached) " >&6
6478else $as_nop
6479  if test -n "$STRIP"; then
6480  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6481else
6482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6483for as_dir in $PATH
6484do
6485  IFS=$as_save_IFS
6486  case $as_dir in #(((
6487    '') as_dir=./ ;;
6488    */) ;;
6489    *) as_dir=$as_dir/ ;;
6490  esac
6491    for ac_exec_ext in '' $ac_executable_extensions; do
6492  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6493    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6494    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6495    break 2
6496  fi
6497done
6498  done
6499IFS=$as_save_IFS
6500
6501fi
6502fi
6503STRIP=$ac_cv_prog_STRIP
6504if test -n "$STRIP"; then
6505  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6506printf "%s\n" "$STRIP" >&6; }
6507else
6508  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6509printf "%s\n" "no" >&6; }
6510fi
6511
6512
6513fi
6514if test -z "$ac_cv_prog_STRIP"; then
6515  ac_ct_STRIP=$STRIP
6516  # Extract the first word of "strip", so it can be a program name with args.
6517set dummy strip; ac_word=$2
6518{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6519printf %s "checking for $ac_word... " >&6; }
6520if test ${ac_cv_prog_ac_ct_STRIP+y}
6521then :
6522  printf %s "(cached) " >&6
6523else $as_nop
6524  if test -n "$ac_ct_STRIP"; then
6525  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6526else
6527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6528for as_dir in $PATH
6529do
6530  IFS=$as_save_IFS
6531  case $as_dir in #(((
6532    '') as_dir=./ ;;
6533    */) ;;
6534    *) as_dir=$as_dir/ ;;
6535  esac
6536    for ac_exec_ext in '' $ac_executable_extensions; do
6537  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6538    ac_cv_prog_ac_ct_STRIP="strip"
6539    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6540    break 2
6541  fi
6542done
6543  done
6544IFS=$as_save_IFS
6545
6546fi
6547fi
6548ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6549if test -n "$ac_ct_STRIP"; then
6550  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6551printf "%s\n" "$ac_ct_STRIP" >&6; }
6552else
6553  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6554printf "%s\n" "no" >&6; }
6555fi
6556
6557  if test "x$ac_ct_STRIP" = x; then
6558    STRIP=":"
6559  else
6560    case $cross_compiling:$ac_tool_warned in
6561yes:)
6562{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6563printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6564ac_tool_warned=yes ;;
6565esac
6566    STRIP=$ac_ct_STRIP
6567  fi
6568else
6569  STRIP="$ac_cv_prog_STRIP"
6570fi
6571
6572test -z "$STRIP" && STRIP=:
6573
6574
6575
6576
6577
6578
6579if test -n "$ac_tool_prefix"; then
6580  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6581set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6582{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6583printf %s "checking for $ac_word... " >&6; }
6584if test ${ac_cv_prog_RANLIB+y}
6585then :
6586  printf %s "(cached) " >&6
6587else $as_nop
6588  if test -n "$RANLIB"; then
6589  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6590else
6591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6592for as_dir in $PATH
6593do
6594  IFS=$as_save_IFS
6595  case $as_dir in #(((
6596    '') as_dir=./ ;;
6597    */) ;;
6598    *) as_dir=$as_dir/ ;;
6599  esac
6600    for ac_exec_ext in '' $ac_executable_extensions; do
6601  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6602    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6603    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6604    break 2
6605  fi
6606done
6607  done
6608IFS=$as_save_IFS
6609
6610fi
6611fi
6612RANLIB=$ac_cv_prog_RANLIB
6613if test -n "$RANLIB"; then
6614  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6615printf "%s\n" "$RANLIB" >&6; }
6616else
6617  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6618printf "%s\n" "no" >&6; }
6619fi
6620
6621
6622fi
6623if test -z "$ac_cv_prog_RANLIB"; then
6624  ac_ct_RANLIB=$RANLIB
6625  # Extract the first word of "ranlib", so it can be a program name with args.
6626set dummy ranlib; ac_word=$2
6627{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6628printf %s "checking for $ac_word... " >&6; }
6629if test ${ac_cv_prog_ac_ct_RANLIB+y}
6630then :
6631  printf %s "(cached) " >&6
6632else $as_nop
6633  if test -n "$ac_ct_RANLIB"; then
6634  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6635else
6636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6637for as_dir in $PATH
6638do
6639  IFS=$as_save_IFS
6640  case $as_dir in #(((
6641    '') as_dir=./ ;;
6642    */) ;;
6643    *) as_dir=$as_dir/ ;;
6644  esac
6645    for ac_exec_ext in '' $ac_executable_extensions; do
6646  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6647    ac_cv_prog_ac_ct_RANLIB="ranlib"
6648    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6649    break 2
6650  fi
6651done
6652  done
6653IFS=$as_save_IFS
6654
6655fi
6656fi
6657ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6658if test -n "$ac_ct_RANLIB"; then
6659  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6660printf "%s\n" "$ac_ct_RANLIB" >&6; }
6661else
6662  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6663printf "%s\n" "no" >&6; }
6664fi
6665
6666  if test "x$ac_ct_RANLIB" = x; then
6667    RANLIB=":"
6668  else
6669    case $cross_compiling:$ac_tool_warned in
6670yes:)
6671{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6672printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6673ac_tool_warned=yes ;;
6674esac
6675    RANLIB=$ac_ct_RANLIB
6676  fi
6677else
6678  RANLIB="$ac_cv_prog_RANLIB"
6679fi
6680
6681test -z "$RANLIB" && RANLIB=:
6682
6683
6684
6685
6686
6687
6688# Determine commands to create old-style static archives.
6689old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6690old_postinstall_cmds='chmod 644 $oldlib'
6691old_postuninstall_cmds=
6692
6693if test -n "$RANLIB"; then
6694  case $host_os in
6695  bitrig* | openbsd*)
6696    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6697    ;;
6698  *)
6699    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6700    ;;
6701  esac
6702  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6703fi
6704
6705case $host_os in
6706  darwin*)
6707    lock_old_archive_extraction=yes ;;
6708  *)
6709    lock_old_archive_extraction=no ;;
6710esac
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750# If no C compiler was specified, use CC.
6751LTCC=${LTCC-"$CC"}
6752
6753# If no C compiler flags were specified, use CFLAGS.
6754LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6755
6756# Allow CC to be a program name with arguments.
6757compiler=$CC
6758
6759
6760# Check for command to grab the raw symbol name followed by C symbol from nm.
6761{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6762printf %s "checking command to parse $NM output from $compiler object... " >&6; }
6763if test ${lt_cv_sys_global_symbol_pipe+y}
6764then :
6765  printf %s "(cached) " >&6
6766else $as_nop
6767
6768# These are sane defaults that work on at least a few old systems.
6769# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6770
6771# Character class describing NM global symbol codes.
6772symcode='[BCDEGRST]'
6773
6774# Regexp to match symbols that can be accessed directly from C.
6775sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6776
6777# Define system-specific variables.
6778case $host_os in
6779aix*)
6780  symcode='[BCDT]'
6781  ;;
6782cygwin* | mingw* | pw32* | cegcc*)
6783  symcode='[ABCDGISTW]'
6784  ;;
6785hpux*)
6786  if test ia64 = "$host_cpu"; then
6787    symcode='[ABCDEGRST]'
6788  fi
6789  ;;
6790irix* | nonstopux*)
6791  symcode='[BCDEGRST]'
6792  ;;
6793osf*)
6794  symcode='[BCDEGQRST]'
6795  ;;
6796solaris*)
6797  symcode='[BDRT]'
6798  ;;
6799sco3.2v5*)
6800  symcode='[DT]'
6801  ;;
6802sysv4.2uw2*)
6803  symcode='[DT]'
6804  ;;
6805sysv5* | sco5v6* | unixware* | OpenUNIX*)
6806  symcode='[ABDT]'
6807  ;;
6808sysv4)
6809  symcode='[DFNSTU]'
6810  ;;
6811esac
6812
6813# If we're using GNU nm, then use its standard symbol codes.
6814case `$NM -V 2>&1` in
6815*GNU* | *'with BFD'*)
6816  symcode='[ABCDGIRSTW]' ;;
6817esac
6818
6819if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6820  # Gets list of data symbols to import.
6821  lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
6822  # Adjust the below global symbol transforms to fixup imported variables.
6823  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6824  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6825  lt_c_name_lib_hook="\
6826  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6827  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6828else
6829  # Disable hooks by default.
6830  lt_cv_sys_global_symbol_to_import=
6831  lt_cdecl_hook=
6832  lt_c_name_hook=
6833  lt_c_name_lib_hook=
6834fi
6835
6836# Transform an extracted symbol line into a proper C declaration.
6837# Some systems (esp. on ia64) link data and code symbols differently,
6838# so use this general approach.
6839lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
6840$lt_cdecl_hook\
6841" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6842" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6843
6844# Transform an extracted symbol line into symbol name and symbol address
6845lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
6846$lt_c_name_hook\
6847" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6848" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6849
6850# Transform an extracted symbol line into symbol name with lib prefix and
6851# symbol address.
6852lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
6853$lt_c_name_lib_hook\
6854" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6855" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6856" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6857
6858# Handle CRLF in mingw tool chain
6859opt_cr=
6860case $build_os in
6861mingw*)
6862  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6863  ;;
6864esac
6865
6866# Try without a prefix underscore, then with it.
6867for ac_symprfx in "" "_"; do
6868
6869  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6870  symxfrm="\\1 $ac_symprfx\\2 \\2"
6871
6872  # Write the raw and C identifiers.
6873  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6874    # Fake it for dumpbin and say T for any non-static function,
6875    # D for any global variable and I for any imported variable.
6876    # Also find C++ and __fastcall symbols from MSVC++ or ICC,
6877    # which start with @ or ?.
6878    lt_cv_sys_global_symbol_pipe="$AWK '"\
6879"     {last_section=section; section=\$ 3};"\
6880"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6881"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6882"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6883"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6884"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6885"     \$ 0!~/External *\|/{next};"\
6886"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6887"     {if(hide[section]) next};"\
6888"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6889"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6890"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6891"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6892"     ' prfx=^$ac_symprfx"
6893  else
6894    lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6895  fi
6896  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
6897
6898  # Check to see that the pipe works correctly.
6899  pipe_works=no
6900
6901  rm -f conftest*
6902  cat > conftest.$ac_ext <<_LT_EOF
6903#ifdef __cplusplus
6904extern "C" {
6905#endif
6906char nm_test_var;
6907void nm_test_func(void);
6908void nm_test_func(void){}
6909#ifdef __cplusplus
6910}
6911#endif
6912int main(){nm_test_var='a';nm_test_func();return(0);}
6913_LT_EOF
6914
6915  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6916  (eval $ac_compile) 2>&5
6917  ac_status=$?
6918  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6919  test $ac_status = 0; }; then
6920    # Now try to grab the symbols.
6921    nlist=conftest.nm
6922    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6923  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6924  ac_status=$?
6925  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6926  test $ac_status = 0; } && test -s "$nlist"; then
6927      # Try sorting and uniquifying the output.
6928      if sort "$nlist" | uniq > "$nlist"T; then
6929	mv -f "$nlist"T "$nlist"
6930      else
6931	rm -f "$nlist"T
6932      fi
6933
6934      # Make sure that we snagged all the symbols we need.
6935      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6936	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6937	  cat <<_LT_EOF > conftest.$ac_ext
6938/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6939#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6940/* DATA imports from DLLs on WIN32 can't be const, because runtime
6941   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6942# define LT_DLSYM_CONST
6943#elif defined __osf__
6944/* This system does not cope well with relocations in const data.  */
6945# define LT_DLSYM_CONST
6946#else
6947# define LT_DLSYM_CONST const
6948#endif
6949
6950#ifdef __cplusplus
6951extern "C" {
6952#endif
6953
6954_LT_EOF
6955	  # Now generate the symbol file.
6956	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6957
6958	  cat <<_LT_EOF >> conftest.$ac_ext
6959
6960/* The mapping between symbol names and symbols.  */
6961LT_DLSYM_CONST struct {
6962  const char *name;
6963  void       *address;
6964}
6965lt__PROGRAM__LTX_preloaded_symbols[] =
6966{
6967  { "@PROGRAM@", (void *) 0 },
6968_LT_EOF
6969	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6970	  cat <<\_LT_EOF >> conftest.$ac_ext
6971  {0, (void *) 0}
6972};
6973
6974/* This works around a problem in FreeBSD linker */
6975#ifdef FREEBSD_WORKAROUND
6976static const void *lt_preloaded_setup() {
6977  return lt__PROGRAM__LTX_preloaded_symbols;
6978}
6979#endif
6980
6981#ifdef __cplusplus
6982}
6983#endif
6984_LT_EOF
6985	  # Now try linking the two files.
6986	  mv conftest.$ac_objext conftstm.$ac_objext
6987	  lt_globsym_save_LIBS=$LIBS
6988	  lt_globsym_save_CFLAGS=$CFLAGS
6989	  LIBS=conftstm.$ac_objext
6990	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6991	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6992  (eval $ac_link) 2>&5
6993  ac_status=$?
6994  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6995  test $ac_status = 0; } && test -s conftest$ac_exeext; then
6996	    pipe_works=yes
6997	  fi
6998	  LIBS=$lt_globsym_save_LIBS
6999	  CFLAGS=$lt_globsym_save_CFLAGS
7000	else
7001	  echo "cannot find nm_test_func in $nlist" >&5
7002	fi
7003      else
7004	echo "cannot find nm_test_var in $nlist" >&5
7005      fi
7006    else
7007      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7008    fi
7009  else
7010    echo "$progname: failed program was:" >&5
7011    cat conftest.$ac_ext >&5
7012  fi
7013  rm -rf conftest* conftst*
7014
7015  # Do not use the global_symbol_pipe unless it works.
7016  if test yes = "$pipe_works"; then
7017    break
7018  else
7019    lt_cv_sys_global_symbol_pipe=
7020  fi
7021done
7022
7023fi
7024
7025if test -z "$lt_cv_sys_global_symbol_pipe"; then
7026  lt_cv_sys_global_symbol_to_cdecl=
7027fi
7028if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7029  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7030printf "%s\n" "failed" >&6; }
7031else
7032  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7033printf "%s\n" "ok" >&6; }
7034fi
7035
7036# Response file support.
7037if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7038  nm_file_list_spec='@'
7039elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7040  nm_file_list_spec='@'
7041fi
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7080printf %s "checking for sysroot... " >&6; }
7081
7082# Check whether --with-sysroot was given.
7083if test ${with_sysroot+y}
7084then :
7085  withval=$with_sysroot;
7086else $as_nop
7087  with_sysroot=no
7088fi
7089
7090
7091lt_sysroot=
7092case $with_sysroot in #(
7093 yes)
7094   if test yes = "$GCC"; then
7095     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7096   fi
7097   ;; #(
7098 /*)
7099   lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7100   ;; #(
7101 no|'')
7102   ;; #(
7103 *)
7104   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7105printf "%s\n" "$with_sysroot" >&6; }
7106   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7107   ;;
7108esac
7109
7110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7111printf "%s\n" "${lt_sysroot:-no}" >&6; }
7112
7113
7114
7115
7116
7117{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7118printf %s "checking for a working dd... " >&6; }
7119if test ${ac_cv_path_lt_DD+y}
7120then :
7121  printf %s "(cached) " >&6
7122else $as_nop
7123  printf 0123456789abcdef0123456789abcdef >conftest.i
7124cat conftest.i conftest.i >conftest2.i
7125: ${lt_DD:=$DD}
7126if test -z "$lt_DD"; then
7127  ac_path_lt_DD_found=false
7128  # Loop through the user's path and test for each of PROGNAME-LIST
7129  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7130for as_dir in $PATH
7131do
7132  IFS=$as_save_IFS
7133  case $as_dir in #(((
7134    '') as_dir=./ ;;
7135    */) ;;
7136    *) as_dir=$as_dir/ ;;
7137  esac
7138    for ac_prog in dd
7139   do
7140    for ac_exec_ext in '' $ac_executable_extensions; do
7141      ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7142      as_fn_executable_p "$ac_path_lt_DD" || continue
7143if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7144  cmp -s conftest.i conftest.out \
7145  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7146fi
7147      $ac_path_lt_DD_found && break 3
7148    done
7149  done
7150  done
7151IFS=$as_save_IFS
7152  if test -z "$ac_cv_path_lt_DD"; then
7153    :
7154  fi
7155else
7156  ac_cv_path_lt_DD=$lt_DD
7157fi
7158
7159rm -f conftest.i conftest2.i conftest.out
7160fi
7161{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7162printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7163
7164
7165{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7166printf %s "checking how to truncate binary pipes... " >&6; }
7167if test ${lt_cv_truncate_bin+y}
7168then :
7169  printf %s "(cached) " >&6
7170else $as_nop
7171  printf 0123456789abcdef0123456789abcdef >conftest.i
7172cat conftest.i conftest.i >conftest2.i
7173lt_cv_truncate_bin=
7174if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7175  cmp -s conftest.i conftest.out \
7176  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7177fi
7178rm -f conftest.i conftest2.i conftest.out
7179test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7180fi
7181{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7182printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7183
7184
7185
7186
7187
7188
7189
7190# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7191func_cc_basename ()
7192{
7193    for cc_temp in $*""; do
7194      case $cc_temp in
7195        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7196        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7197        \-*) ;;
7198        *) break;;
7199      esac
7200    done
7201    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7202}
7203
7204# Check whether --enable-libtool-lock was given.
7205if test ${enable_libtool_lock+y}
7206then :
7207  enableval=$enable_libtool_lock;
7208fi
7209
7210test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7211
7212# Some flags need to be propagated to the compiler or linker for good
7213# libtool support.
7214case $host in
7215ia64-*-hpux*)
7216  # Find out what ABI is being produced by ac_compile, and set mode
7217  # options accordingly.
7218  echo 'int i;' > conftest.$ac_ext
7219  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7220  (eval $ac_compile) 2>&5
7221  ac_status=$?
7222  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7223  test $ac_status = 0; }; then
7224    case `$FILECMD conftest.$ac_objext` in
7225      *ELF-32*)
7226	HPUX_IA64_MODE=32
7227	;;
7228      *ELF-64*)
7229	HPUX_IA64_MODE=64
7230	;;
7231    esac
7232  fi
7233  rm -rf conftest*
7234  ;;
7235*-*-irix6*)
7236  # Find out what ABI is being produced by ac_compile, and set linker
7237  # options accordingly.
7238  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7239  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7240  (eval $ac_compile) 2>&5
7241  ac_status=$?
7242  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7243  test $ac_status = 0; }; then
7244    if test yes = "$lt_cv_prog_gnu_ld"; then
7245      case `$FILECMD conftest.$ac_objext` in
7246	*32-bit*)
7247	  LD="${LD-ld} -melf32bsmip"
7248	  ;;
7249	*N32*)
7250	  LD="${LD-ld} -melf32bmipn32"
7251	  ;;
7252	*64-bit*)
7253	  LD="${LD-ld} -melf64bmip"
7254	;;
7255      esac
7256    else
7257      case `$FILECMD conftest.$ac_objext` in
7258	*32-bit*)
7259	  LD="${LD-ld} -32"
7260	  ;;
7261	*N32*)
7262	  LD="${LD-ld} -n32"
7263	  ;;
7264	*64-bit*)
7265	  LD="${LD-ld} -64"
7266	  ;;
7267      esac
7268    fi
7269  fi
7270  rm -rf conftest*
7271  ;;
7272
7273mips64*-*linux*)
7274  # Find out what ABI is being produced by ac_compile, and set linker
7275  # options accordingly.
7276  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7277  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7278  (eval $ac_compile) 2>&5
7279  ac_status=$?
7280  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7281  test $ac_status = 0; }; then
7282    emul=elf
7283    case `$FILECMD conftest.$ac_objext` in
7284      *32-bit*)
7285	emul="${emul}32"
7286	;;
7287      *64-bit*)
7288	emul="${emul}64"
7289	;;
7290    esac
7291    case `$FILECMD conftest.$ac_objext` in
7292      *MSB*)
7293	emul="${emul}btsmip"
7294	;;
7295      *LSB*)
7296	emul="${emul}ltsmip"
7297	;;
7298    esac
7299    case `$FILECMD conftest.$ac_objext` in
7300      *N32*)
7301	emul="${emul}n32"
7302	;;
7303    esac
7304    LD="${LD-ld} -m $emul"
7305  fi
7306  rm -rf conftest*
7307  ;;
7308
7309x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7310s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7311  # Find out what ABI is being produced by ac_compile, and set linker
7312  # options accordingly.  Note that the listed cases only cover the
7313  # situations where additional linker options are needed (such as when
7314  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7315  # vice versa); the common cases where no linker options are needed do
7316  # not appear in the list.
7317  echo 'int i;' > conftest.$ac_ext
7318  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7319  (eval $ac_compile) 2>&5
7320  ac_status=$?
7321  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7322  test $ac_status = 0; }; then
7323    case `$FILECMD conftest.o` in
7324      *32-bit*)
7325	case $host in
7326	  x86_64-*kfreebsd*-gnu)
7327	    LD="${LD-ld} -m elf_i386_fbsd"
7328	    ;;
7329	  x86_64-*linux*)
7330	    case `$FILECMD conftest.o` in
7331	      *x86-64*)
7332		LD="${LD-ld} -m elf32_x86_64"
7333		;;
7334	      *)
7335		LD="${LD-ld} -m elf_i386"
7336		;;
7337	    esac
7338	    ;;
7339	  powerpc64le-*linux*)
7340	    LD="${LD-ld} -m elf32lppclinux"
7341	    ;;
7342	  powerpc64-*linux*)
7343	    LD="${LD-ld} -m elf32ppclinux"
7344	    ;;
7345	  s390x-*linux*)
7346	    LD="${LD-ld} -m elf_s390"
7347	    ;;
7348	  sparc64-*linux*)
7349	    LD="${LD-ld} -m elf32_sparc"
7350	    ;;
7351	esac
7352	;;
7353      *64-bit*)
7354	case $host in
7355	  x86_64-*kfreebsd*-gnu)
7356	    LD="${LD-ld} -m elf_x86_64_fbsd"
7357	    ;;
7358	  x86_64-*linux*)
7359	    LD="${LD-ld} -m elf_x86_64"
7360	    ;;
7361	  powerpcle-*linux*)
7362	    LD="${LD-ld} -m elf64lppc"
7363	    ;;
7364	  powerpc-*linux*)
7365	    LD="${LD-ld} -m elf64ppc"
7366	    ;;
7367	  s390*-*linux*|s390*-*tpf*)
7368	    LD="${LD-ld} -m elf64_s390"
7369	    ;;
7370	  sparc*-*linux*)
7371	    LD="${LD-ld} -m elf64_sparc"
7372	    ;;
7373	esac
7374	;;
7375    esac
7376  fi
7377  rm -rf conftest*
7378  ;;
7379
7380*-*-sco3.2v5*)
7381  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7382  SAVE_CFLAGS=$CFLAGS
7383  CFLAGS="$CFLAGS -belf"
7384  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7385printf %s "checking whether the C compiler needs -belf... " >&6; }
7386if test ${lt_cv_cc_needs_belf+y}
7387then :
7388  printf %s "(cached) " >&6
7389else $as_nop
7390  ac_ext=c
7391ac_cpp='$CPP $CPPFLAGS'
7392ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7393ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7394ac_compiler_gnu=$ac_cv_c_compiler_gnu
7395
7396     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7397/* end confdefs.h.  */
7398
7399int
7400main (void)
7401{
7402
7403  ;
7404  return 0;
7405}
7406_ACEOF
7407if ac_fn_c_try_link "$LINENO"
7408then :
7409  lt_cv_cc_needs_belf=yes
7410else $as_nop
7411  lt_cv_cc_needs_belf=no
7412fi
7413rm -f core conftest.err conftest.$ac_objext conftest.beam \
7414    conftest$ac_exeext conftest.$ac_ext
7415     ac_ext=c
7416ac_cpp='$CPP $CPPFLAGS'
7417ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7418ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7419ac_compiler_gnu=$ac_cv_c_compiler_gnu
7420
7421fi
7422{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7423printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7424  if test yes != "$lt_cv_cc_needs_belf"; then
7425    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7426    CFLAGS=$SAVE_CFLAGS
7427  fi
7428  ;;
7429*-*solaris*)
7430  # Find out what ABI is being produced by ac_compile, and set linker
7431  # options accordingly.
7432  echo 'int i;' > conftest.$ac_ext
7433  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7434  (eval $ac_compile) 2>&5
7435  ac_status=$?
7436  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7437  test $ac_status = 0; }; then
7438    case `$FILECMD conftest.o` in
7439    *64-bit*)
7440      case $lt_cv_prog_gnu_ld in
7441      yes*)
7442        case $host in
7443        i?86-*-solaris*|x86_64-*-solaris*)
7444          LD="${LD-ld} -m elf_x86_64"
7445          ;;
7446        sparc*-*-solaris*)
7447          LD="${LD-ld} -m elf64_sparc"
7448          ;;
7449        esac
7450        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7451        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7452          LD=${LD-ld}_sol2
7453        fi
7454        ;;
7455      *)
7456	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7457	  LD="${LD-ld} -64"
7458	fi
7459	;;
7460      esac
7461      ;;
7462    esac
7463  fi
7464  rm -rf conftest*
7465  ;;
7466esac
7467
7468need_locks=$enable_libtool_lock
7469
7470if test -n "$ac_tool_prefix"; then
7471  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7472set dummy ${ac_tool_prefix}mt; ac_word=$2
7473{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7474printf %s "checking for $ac_word... " >&6; }
7475if test ${ac_cv_prog_MANIFEST_TOOL+y}
7476then :
7477  printf %s "(cached) " >&6
7478else $as_nop
7479  if test -n "$MANIFEST_TOOL"; then
7480  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7481else
7482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7483for as_dir in $PATH
7484do
7485  IFS=$as_save_IFS
7486  case $as_dir in #(((
7487    '') as_dir=./ ;;
7488    */) ;;
7489    *) as_dir=$as_dir/ ;;
7490  esac
7491    for ac_exec_ext in '' $ac_executable_extensions; do
7492  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7493    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7494    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7495    break 2
7496  fi
7497done
7498  done
7499IFS=$as_save_IFS
7500
7501fi
7502fi
7503MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7504if test -n "$MANIFEST_TOOL"; then
7505  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7506printf "%s\n" "$MANIFEST_TOOL" >&6; }
7507else
7508  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7509printf "%s\n" "no" >&6; }
7510fi
7511
7512
7513fi
7514if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7515  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7516  # Extract the first word of "mt", so it can be a program name with args.
7517set dummy mt; ac_word=$2
7518{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7519printf %s "checking for $ac_word... " >&6; }
7520if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7521then :
7522  printf %s "(cached) " >&6
7523else $as_nop
7524  if test -n "$ac_ct_MANIFEST_TOOL"; then
7525  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7526else
7527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7528for as_dir in $PATH
7529do
7530  IFS=$as_save_IFS
7531  case $as_dir in #(((
7532    '') as_dir=./ ;;
7533    */) ;;
7534    *) as_dir=$as_dir/ ;;
7535  esac
7536    for ac_exec_ext in '' $ac_executable_extensions; do
7537  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7538    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7539    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7540    break 2
7541  fi
7542done
7543  done
7544IFS=$as_save_IFS
7545
7546fi
7547fi
7548ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7549if test -n "$ac_ct_MANIFEST_TOOL"; then
7550  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7551printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7552else
7553  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7554printf "%s\n" "no" >&6; }
7555fi
7556
7557  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7558    MANIFEST_TOOL=":"
7559  else
7560    case $cross_compiling:$ac_tool_warned in
7561yes:)
7562{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7563printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7564ac_tool_warned=yes ;;
7565esac
7566    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7567  fi
7568else
7569  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7570fi
7571
7572test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7573{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7574printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7575if test ${lt_cv_path_mainfest_tool+y}
7576then :
7577  printf %s "(cached) " >&6
7578else $as_nop
7579  lt_cv_path_mainfest_tool=no
7580  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7581  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7582  cat conftest.err >&5
7583  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7584    lt_cv_path_mainfest_tool=yes
7585  fi
7586  rm -f conftest*
7587fi
7588{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7589printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
7590if test yes != "$lt_cv_path_mainfest_tool"; then
7591  MANIFEST_TOOL=:
7592fi
7593
7594
7595
7596
7597
7598
7599  case $host_os in
7600    rhapsody* | darwin*)
7601    if test -n "$ac_tool_prefix"; then
7602  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7603set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7604{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7605printf %s "checking for $ac_word... " >&6; }
7606if test ${ac_cv_prog_DSYMUTIL+y}
7607then :
7608  printf %s "(cached) " >&6
7609else $as_nop
7610  if test -n "$DSYMUTIL"; then
7611  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7612else
7613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7614for as_dir in $PATH
7615do
7616  IFS=$as_save_IFS
7617  case $as_dir in #(((
7618    '') as_dir=./ ;;
7619    */) ;;
7620    *) as_dir=$as_dir/ ;;
7621  esac
7622    for ac_exec_ext in '' $ac_executable_extensions; do
7623  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7624    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7625    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7626    break 2
7627  fi
7628done
7629  done
7630IFS=$as_save_IFS
7631
7632fi
7633fi
7634DSYMUTIL=$ac_cv_prog_DSYMUTIL
7635if test -n "$DSYMUTIL"; then
7636  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7637printf "%s\n" "$DSYMUTIL" >&6; }
7638else
7639  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7640printf "%s\n" "no" >&6; }
7641fi
7642
7643
7644fi
7645if test -z "$ac_cv_prog_DSYMUTIL"; then
7646  ac_ct_DSYMUTIL=$DSYMUTIL
7647  # Extract the first word of "dsymutil", so it can be a program name with args.
7648set dummy dsymutil; ac_word=$2
7649{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7650printf %s "checking for $ac_word... " >&6; }
7651if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
7652then :
7653  printf %s "(cached) " >&6
7654else $as_nop
7655  if test -n "$ac_ct_DSYMUTIL"; then
7656  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7657else
7658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7659for as_dir in $PATH
7660do
7661  IFS=$as_save_IFS
7662  case $as_dir in #(((
7663    '') as_dir=./ ;;
7664    */) ;;
7665    *) as_dir=$as_dir/ ;;
7666  esac
7667    for ac_exec_ext in '' $ac_executable_extensions; do
7668  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7669    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7670    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7671    break 2
7672  fi
7673done
7674  done
7675IFS=$as_save_IFS
7676
7677fi
7678fi
7679ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7680if test -n "$ac_ct_DSYMUTIL"; then
7681  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7682printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
7683else
7684  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7685printf "%s\n" "no" >&6; }
7686fi
7687
7688  if test "x$ac_ct_DSYMUTIL" = x; then
7689    DSYMUTIL=":"
7690  else
7691    case $cross_compiling:$ac_tool_warned in
7692yes:)
7693{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7694printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7695ac_tool_warned=yes ;;
7696esac
7697    DSYMUTIL=$ac_ct_DSYMUTIL
7698  fi
7699else
7700  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7701fi
7702
7703    if test -n "$ac_tool_prefix"; then
7704  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7705set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7706{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7707printf %s "checking for $ac_word... " >&6; }
7708if test ${ac_cv_prog_NMEDIT+y}
7709then :
7710  printf %s "(cached) " >&6
7711else $as_nop
7712  if test -n "$NMEDIT"; then
7713  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7714else
7715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7716for as_dir in $PATH
7717do
7718  IFS=$as_save_IFS
7719  case $as_dir in #(((
7720    '') as_dir=./ ;;
7721    */) ;;
7722    *) as_dir=$as_dir/ ;;
7723  esac
7724    for ac_exec_ext in '' $ac_executable_extensions; do
7725  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7726    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7727    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7728    break 2
7729  fi
7730done
7731  done
7732IFS=$as_save_IFS
7733
7734fi
7735fi
7736NMEDIT=$ac_cv_prog_NMEDIT
7737if test -n "$NMEDIT"; then
7738  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7739printf "%s\n" "$NMEDIT" >&6; }
7740else
7741  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7742printf "%s\n" "no" >&6; }
7743fi
7744
7745
7746fi
7747if test -z "$ac_cv_prog_NMEDIT"; then
7748  ac_ct_NMEDIT=$NMEDIT
7749  # Extract the first word of "nmedit", so it can be a program name with args.
7750set dummy nmedit; ac_word=$2
7751{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7752printf %s "checking for $ac_word... " >&6; }
7753if test ${ac_cv_prog_ac_ct_NMEDIT+y}
7754then :
7755  printf %s "(cached) " >&6
7756else $as_nop
7757  if test -n "$ac_ct_NMEDIT"; then
7758  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7759else
7760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7761for as_dir in $PATH
7762do
7763  IFS=$as_save_IFS
7764  case $as_dir in #(((
7765    '') as_dir=./ ;;
7766    */) ;;
7767    *) as_dir=$as_dir/ ;;
7768  esac
7769    for ac_exec_ext in '' $ac_executable_extensions; do
7770  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7771    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7772    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7773    break 2
7774  fi
7775done
7776  done
7777IFS=$as_save_IFS
7778
7779fi
7780fi
7781ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7782if test -n "$ac_ct_NMEDIT"; then
7783  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7784printf "%s\n" "$ac_ct_NMEDIT" >&6; }
7785else
7786  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7787printf "%s\n" "no" >&6; }
7788fi
7789
7790  if test "x$ac_ct_NMEDIT" = x; then
7791    NMEDIT=":"
7792  else
7793    case $cross_compiling:$ac_tool_warned in
7794yes:)
7795{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7796printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7797ac_tool_warned=yes ;;
7798esac
7799    NMEDIT=$ac_ct_NMEDIT
7800  fi
7801else
7802  NMEDIT="$ac_cv_prog_NMEDIT"
7803fi
7804
7805    if test -n "$ac_tool_prefix"; then
7806  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7807set dummy ${ac_tool_prefix}lipo; ac_word=$2
7808{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7809printf %s "checking for $ac_word... " >&6; }
7810if test ${ac_cv_prog_LIPO+y}
7811then :
7812  printf %s "(cached) " >&6
7813else $as_nop
7814  if test -n "$LIPO"; then
7815  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7816else
7817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7818for as_dir in $PATH
7819do
7820  IFS=$as_save_IFS
7821  case $as_dir in #(((
7822    '') as_dir=./ ;;
7823    */) ;;
7824    *) as_dir=$as_dir/ ;;
7825  esac
7826    for ac_exec_ext in '' $ac_executable_extensions; do
7827  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7828    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7829    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7830    break 2
7831  fi
7832done
7833  done
7834IFS=$as_save_IFS
7835
7836fi
7837fi
7838LIPO=$ac_cv_prog_LIPO
7839if test -n "$LIPO"; then
7840  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7841printf "%s\n" "$LIPO" >&6; }
7842else
7843  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7844printf "%s\n" "no" >&6; }
7845fi
7846
7847
7848fi
7849if test -z "$ac_cv_prog_LIPO"; then
7850  ac_ct_LIPO=$LIPO
7851  # Extract the first word of "lipo", so it can be a program name with args.
7852set dummy lipo; ac_word=$2
7853{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7854printf %s "checking for $ac_word... " >&6; }
7855if test ${ac_cv_prog_ac_ct_LIPO+y}
7856then :
7857  printf %s "(cached) " >&6
7858else $as_nop
7859  if test -n "$ac_ct_LIPO"; then
7860  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7861else
7862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7863for as_dir in $PATH
7864do
7865  IFS=$as_save_IFS
7866  case $as_dir in #(((
7867    '') as_dir=./ ;;
7868    */) ;;
7869    *) as_dir=$as_dir/ ;;
7870  esac
7871    for ac_exec_ext in '' $ac_executable_extensions; do
7872  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7873    ac_cv_prog_ac_ct_LIPO="lipo"
7874    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7875    break 2
7876  fi
7877done
7878  done
7879IFS=$as_save_IFS
7880
7881fi
7882fi
7883ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7884if test -n "$ac_ct_LIPO"; then
7885  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7886printf "%s\n" "$ac_ct_LIPO" >&6; }
7887else
7888  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7889printf "%s\n" "no" >&6; }
7890fi
7891
7892  if test "x$ac_ct_LIPO" = x; then
7893    LIPO=":"
7894  else
7895    case $cross_compiling:$ac_tool_warned in
7896yes:)
7897{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7898printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7899ac_tool_warned=yes ;;
7900esac
7901    LIPO=$ac_ct_LIPO
7902  fi
7903else
7904  LIPO="$ac_cv_prog_LIPO"
7905fi
7906
7907    if test -n "$ac_tool_prefix"; then
7908  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7909set dummy ${ac_tool_prefix}otool; ac_word=$2
7910{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7911printf %s "checking for $ac_word... " >&6; }
7912if test ${ac_cv_prog_OTOOL+y}
7913then :
7914  printf %s "(cached) " >&6
7915else $as_nop
7916  if test -n "$OTOOL"; then
7917  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7918else
7919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7920for as_dir in $PATH
7921do
7922  IFS=$as_save_IFS
7923  case $as_dir in #(((
7924    '') as_dir=./ ;;
7925    */) ;;
7926    *) as_dir=$as_dir/ ;;
7927  esac
7928    for ac_exec_ext in '' $ac_executable_extensions; do
7929  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7930    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7931    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7932    break 2
7933  fi
7934done
7935  done
7936IFS=$as_save_IFS
7937
7938fi
7939fi
7940OTOOL=$ac_cv_prog_OTOOL
7941if test -n "$OTOOL"; then
7942  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7943printf "%s\n" "$OTOOL" >&6; }
7944else
7945  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7946printf "%s\n" "no" >&6; }
7947fi
7948
7949
7950fi
7951if test -z "$ac_cv_prog_OTOOL"; then
7952  ac_ct_OTOOL=$OTOOL
7953  # Extract the first word of "otool", so it can be a program name with args.
7954set dummy otool; ac_word=$2
7955{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7956printf %s "checking for $ac_word... " >&6; }
7957if test ${ac_cv_prog_ac_ct_OTOOL+y}
7958then :
7959  printf %s "(cached) " >&6
7960else $as_nop
7961  if test -n "$ac_ct_OTOOL"; then
7962  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7963else
7964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7965for as_dir in $PATH
7966do
7967  IFS=$as_save_IFS
7968  case $as_dir in #(((
7969    '') as_dir=./ ;;
7970    */) ;;
7971    *) as_dir=$as_dir/ ;;
7972  esac
7973    for ac_exec_ext in '' $ac_executable_extensions; do
7974  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7975    ac_cv_prog_ac_ct_OTOOL="otool"
7976    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7977    break 2
7978  fi
7979done
7980  done
7981IFS=$as_save_IFS
7982
7983fi
7984fi
7985ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7986if test -n "$ac_ct_OTOOL"; then
7987  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7988printf "%s\n" "$ac_ct_OTOOL" >&6; }
7989else
7990  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7991printf "%s\n" "no" >&6; }
7992fi
7993
7994  if test "x$ac_ct_OTOOL" = x; then
7995    OTOOL=":"
7996  else
7997    case $cross_compiling:$ac_tool_warned in
7998yes:)
7999{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8000printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8001ac_tool_warned=yes ;;
8002esac
8003    OTOOL=$ac_ct_OTOOL
8004  fi
8005else
8006  OTOOL="$ac_cv_prog_OTOOL"
8007fi
8008
8009    if test -n "$ac_tool_prefix"; then
8010  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8011set dummy ${ac_tool_prefix}otool64; ac_word=$2
8012{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8013printf %s "checking for $ac_word... " >&6; }
8014if test ${ac_cv_prog_OTOOL64+y}
8015then :
8016  printf %s "(cached) " >&6
8017else $as_nop
8018  if test -n "$OTOOL64"; then
8019  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8020else
8021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8022for as_dir in $PATH
8023do
8024  IFS=$as_save_IFS
8025  case $as_dir in #(((
8026    '') as_dir=./ ;;
8027    */) ;;
8028    *) as_dir=$as_dir/ ;;
8029  esac
8030    for ac_exec_ext in '' $ac_executable_extensions; do
8031  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8032    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8033    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8034    break 2
8035  fi
8036done
8037  done
8038IFS=$as_save_IFS
8039
8040fi
8041fi
8042OTOOL64=$ac_cv_prog_OTOOL64
8043if test -n "$OTOOL64"; then
8044  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8045printf "%s\n" "$OTOOL64" >&6; }
8046else
8047  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8048printf "%s\n" "no" >&6; }
8049fi
8050
8051
8052fi
8053if test -z "$ac_cv_prog_OTOOL64"; then
8054  ac_ct_OTOOL64=$OTOOL64
8055  # Extract the first word of "otool64", so it can be a program name with args.
8056set dummy otool64; ac_word=$2
8057{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8058printf %s "checking for $ac_word... " >&6; }
8059if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8060then :
8061  printf %s "(cached) " >&6
8062else $as_nop
8063  if test -n "$ac_ct_OTOOL64"; then
8064  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8065else
8066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8067for as_dir in $PATH
8068do
8069  IFS=$as_save_IFS
8070  case $as_dir in #(((
8071    '') as_dir=./ ;;
8072    */) ;;
8073    *) as_dir=$as_dir/ ;;
8074  esac
8075    for ac_exec_ext in '' $ac_executable_extensions; do
8076  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8077    ac_cv_prog_ac_ct_OTOOL64="otool64"
8078    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8079    break 2
8080  fi
8081done
8082  done
8083IFS=$as_save_IFS
8084
8085fi
8086fi
8087ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8088if test -n "$ac_ct_OTOOL64"; then
8089  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8090printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8091else
8092  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8093printf "%s\n" "no" >&6; }
8094fi
8095
8096  if test "x$ac_ct_OTOOL64" = x; then
8097    OTOOL64=":"
8098  else
8099    case $cross_compiling:$ac_tool_warned in
8100yes:)
8101{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8102printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8103ac_tool_warned=yes ;;
8104esac
8105    OTOOL64=$ac_ct_OTOOL64
8106  fi
8107else
8108  OTOOL64="$ac_cv_prog_OTOOL64"
8109fi
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8138printf %s "checking for -single_module linker flag... " >&6; }
8139if test ${lt_cv_apple_cc_single_mod+y}
8140then :
8141  printf %s "(cached) " >&6
8142else $as_nop
8143  lt_cv_apple_cc_single_mod=no
8144      if test -z "$LT_MULTI_MODULE"; then
8145	# By default we will add the -single_module flag. You can override
8146	# by either setting the environment variable LT_MULTI_MODULE
8147	# non-empty at configure time, or by adding -multi_module to the
8148	# link flags.
8149	rm -rf libconftest.dylib*
8150	echo "int foo(void){return 1;}" > conftest.c
8151	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8152-dynamiclib -Wl,-single_module conftest.c" >&5
8153	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8154	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8155        _lt_result=$?
8156	# If there is a non-empty error log, and "single_module"
8157	# appears in it, assume the flag caused a linker warning
8158        if test -s conftest.err && $GREP single_module conftest.err; then
8159	  cat conftest.err >&5
8160	# Otherwise, if the output was created with a 0 exit code from
8161	# the compiler, it worked.
8162	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8163	  lt_cv_apple_cc_single_mod=yes
8164	else
8165	  cat conftest.err >&5
8166	fi
8167	rm -rf libconftest.dylib*
8168	rm -f conftest.*
8169      fi
8170fi
8171{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8172printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8173
8174    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8175printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8176if test ${lt_cv_ld_exported_symbols_list+y}
8177then :
8178  printf %s "(cached) " >&6
8179else $as_nop
8180  lt_cv_ld_exported_symbols_list=no
8181      save_LDFLAGS=$LDFLAGS
8182      echo "_main" > conftest.sym
8183      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8184      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8185/* end confdefs.h.  */
8186
8187int
8188main (void)
8189{
8190
8191  ;
8192  return 0;
8193}
8194_ACEOF
8195if ac_fn_c_try_link "$LINENO"
8196then :
8197  lt_cv_ld_exported_symbols_list=yes
8198else $as_nop
8199  lt_cv_ld_exported_symbols_list=no
8200fi
8201rm -f core conftest.err conftest.$ac_objext conftest.beam \
8202    conftest$ac_exeext conftest.$ac_ext
8203	LDFLAGS=$save_LDFLAGS
8204
8205fi
8206{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8207printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8208
8209    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8210printf %s "checking for -force_load linker flag... " >&6; }
8211if test ${lt_cv_ld_force_load+y}
8212then :
8213  printf %s "(cached) " >&6
8214else $as_nop
8215  lt_cv_ld_force_load=no
8216      cat > conftest.c << _LT_EOF
8217int forced_loaded() { return 2;}
8218_LT_EOF
8219      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8220      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8221      echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8222      $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8223      echo "$RANLIB libconftest.a" >&5
8224      $RANLIB libconftest.a 2>&5
8225      cat > conftest.c << _LT_EOF
8226int main() { return 0;}
8227_LT_EOF
8228      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8229      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8230      _lt_result=$?
8231      if test -s conftest.err && $GREP force_load conftest.err; then
8232	cat conftest.err >&5
8233      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8234	lt_cv_ld_force_load=yes
8235      else
8236	cat conftest.err >&5
8237      fi
8238        rm -f conftest.err libconftest.a conftest conftest.c
8239        rm -rf conftest.dSYM
8240
8241fi
8242{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8243printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8244    case $host_os in
8245    rhapsody* | darwin1.[012])
8246      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8247    darwin1.*)
8248      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8249    darwin*)
8250      case $MACOSX_DEPLOYMENT_TARGET,$host in
8251        10.[012],*|,*powerpc*-darwin[5-8]*)
8252          _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8253        *)
8254          _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8255      esac
8256    ;;
8257  esac
8258    if test yes = "$lt_cv_apple_cc_single_mod"; then
8259      _lt_dar_single_mod='$single_module'
8260    fi
8261    if test yes = "$lt_cv_ld_exported_symbols_list"; then
8262      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8263    else
8264      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8265    fi
8266    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8267      _lt_dsymutil='~$DSYMUTIL $lib || :'
8268    else
8269      _lt_dsymutil=
8270    fi
8271    ;;
8272  esac
8273
8274# func_munge_path_list VARIABLE PATH
8275# -----------------------------------
8276# VARIABLE is name of variable containing _space_ separated list of
8277# directories to be munged by the contents of PATH, which is string
8278# having a format:
8279# "DIR[:DIR]:"
8280#       string "DIR[ DIR]" will be prepended to VARIABLE
8281# ":DIR[:DIR]"
8282#       string "DIR[ DIR]" will be appended to VARIABLE
8283# "DIRP[:DIRP]::[DIRA:]DIRA"
8284#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8285#       "DIRA[ DIRA]" will be appended to VARIABLE
8286# "DIR[:DIR]"
8287#       VARIABLE will be replaced by "DIR[ DIR]"
8288func_munge_path_list ()
8289{
8290    case x$2 in
8291    x)
8292        ;;
8293    *:)
8294        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8295        ;;
8296    x:*)
8297        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8298        ;;
8299    *::*)
8300        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8301        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8302        ;;
8303    *)
8304        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8305        ;;
8306    esac
8307}
8308
8309ac_header= ac_cache=
8310for ac_item in $ac_header_c_list
8311do
8312  if test $ac_cache; then
8313    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
8314    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
8315      printf "%s\n" "#define $ac_item 1" >> confdefs.h
8316    fi
8317    ac_header= ac_cache=
8318  elif test $ac_header; then
8319    ac_cache=$ac_item
8320  else
8321    ac_header=$ac_item
8322  fi
8323done
8324
8325
8326
8327
8328
8329
8330
8331
8332if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
8333then :
8334
8335printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
8336
8337fi
8338ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8339"
8340if test "x$ac_cv_header_dlfcn_h" = xyes
8341then :
8342  printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8343
8344fi
8345
8346
8347
8348
8349
8350# Set options
8351
8352
8353
8354        enable_dlopen=no
8355
8356
8357  enable_win32_dll=no
8358
8359
8360            # Check whether --enable-shared was given.
8361if test ${enable_shared+y}
8362then :
8363  enableval=$enable_shared; p=${PACKAGE-default}
8364    case $enableval in
8365    yes) enable_shared=yes ;;
8366    no) enable_shared=no ;;
8367    *)
8368      enable_shared=no
8369      # Look at the argument we got.  We use all the common list separators.
8370      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8371      for pkg in $enableval; do
8372	IFS=$lt_save_ifs
8373	if test "X$pkg" = "X$p"; then
8374	  enable_shared=yes
8375	fi
8376      done
8377      IFS=$lt_save_ifs
8378      ;;
8379    esac
8380else $as_nop
8381  enable_shared=yes
8382fi
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392  # Check whether --enable-static was given.
8393if test ${enable_static+y}
8394then :
8395  enableval=$enable_static; p=${PACKAGE-default}
8396    case $enableval in
8397    yes) enable_static=yes ;;
8398    no) enable_static=no ;;
8399    *)
8400     enable_static=no
8401      # Look at the argument we got.  We use all the common list separators.
8402      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8403      for pkg in $enableval; do
8404	IFS=$lt_save_ifs
8405	if test "X$pkg" = "X$p"; then
8406	  enable_static=yes
8407	fi
8408      done
8409      IFS=$lt_save_ifs
8410      ;;
8411    esac
8412else $as_nop
8413  enable_static=yes
8414fi
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425# Check whether --with-pic was given.
8426if test ${with_pic+y}
8427then :
8428  withval=$with_pic; lt_p=${PACKAGE-default}
8429    case $withval in
8430    yes|no) pic_mode=$withval ;;
8431    *)
8432      pic_mode=default
8433      # Look at the argument we got.  We use all the common list separators.
8434      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8435      for lt_pkg in $withval; do
8436	IFS=$lt_save_ifs
8437	if test "X$lt_pkg" = "X$lt_p"; then
8438	  pic_mode=yes
8439	fi
8440      done
8441      IFS=$lt_save_ifs
8442      ;;
8443    esac
8444else $as_nop
8445  pic_mode=default
8446fi
8447
8448
8449
8450
8451
8452
8453
8454
8455  # Check whether --enable-fast-install was given.
8456if test ${enable_fast_install+y}
8457then :
8458  enableval=$enable_fast_install; p=${PACKAGE-default}
8459    case $enableval in
8460    yes) enable_fast_install=yes ;;
8461    no) enable_fast_install=no ;;
8462    *)
8463      enable_fast_install=no
8464      # Look at the argument we got.  We use all the common list separators.
8465      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8466      for pkg in $enableval; do
8467	IFS=$lt_save_ifs
8468	if test "X$pkg" = "X$p"; then
8469	  enable_fast_install=yes
8470	fi
8471      done
8472      IFS=$lt_save_ifs
8473      ;;
8474    esac
8475else $as_nop
8476  enable_fast_install=yes
8477fi
8478
8479
8480
8481
8482
8483
8484
8485
8486  shared_archive_member_spec=
8487case $host,$enable_shared in
8488power*-*-aix[5-9]*,yes)
8489  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8490printf %s "checking which variant of shared library versioning to provide... " >&6; }
8491
8492# Check whether --with-aix-soname was given.
8493if test ${with_aix_soname+y}
8494then :
8495  withval=$with_aix_soname; case $withval in
8496    aix|svr4|both)
8497      ;;
8498    *)
8499      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8500      ;;
8501    esac
8502    lt_cv_with_aix_soname=$with_aix_soname
8503else $as_nop
8504  if test ${lt_cv_with_aix_soname+y}
8505then :
8506  printf %s "(cached) " >&6
8507else $as_nop
8508  lt_cv_with_aix_soname=aix
8509fi
8510
8511    with_aix_soname=$lt_cv_with_aix_soname
8512fi
8513
8514  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8515printf "%s\n" "$with_aix_soname" >&6; }
8516  if test aix != "$with_aix_soname"; then
8517    # For the AIX way of multilib, we name the shared archive member
8518    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8519    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8520    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8521    # the AIX toolchain works better with OBJECT_MODE set (default 32).
8522    if test 64 = "${OBJECT_MODE-32}"; then
8523      shared_archive_member_spec=shr_64
8524    else
8525      shared_archive_member_spec=shr
8526    fi
8527  fi
8528  ;;
8529*)
8530  with_aix_soname=aix
8531  ;;
8532esac
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543# This can be used to rebuild libtool when needed
8544LIBTOOL_DEPS=$ltmain
8545
8546# Always use our own libtool.
8547LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578test -z "$LN_S" && LN_S="ln -s"
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593if test -n "${ZSH_VERSION+set}"; then
8594   setopt NO_GLOB_SUBST
8595fi
8596
8597{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8598printf %s "checking for objdir... " >&6; }
8599if test ${lt_cv_objdir+y}
8600then :
8601  printf %s "(cached) " >&6
8602else $as_nop
8603  rm -f .libs 2>/dev/null
8604mkdir .libs 2>/dev/null
8605if test -d .libs; then
8606  lt_cv_objdir=.libs
8607else
8608  # MS-DOS does not allow filenames that begin with a dot.
8609  lt_cv_objdir=_libs
8610fi
8611rmdir .libs 2>/dev/null
8612fi
8613{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8614printf "%s\n" "$lt_cv_objdir" >&6; }
8615objdir=$lt_cv_objdir
8616
8617
8618
8619
8620
8621printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
8622
8623
8624
8625
8626case $host_os in
8627aix3*)
8628  # AIX sometimes has problems with the GCC collect2 program.  For some
8629  # reason, if we set the COLLECT_NAMES environment variable, the problems
8630  # vanish in a puff of smoke.
8631  if test set != "${COLLECT_NAMES+set}"; then
8632    COLLECT_NAMES=
8633    export COLLECT_NAMES
8634  fi
8635  ;;
8636esac
8637
8638# Global variables:
8639ofile=libtool
8640can_build_shared=yes
8641
8642# All known linkers require a '.a' archive for static linking (except MSVC and
8643# ICC, which need '.lib').
8644libext=a
8645
8646with_gnu_ld=$lt_cv_prog_gnu_ld
8647
8648old_CC=$CC
8649old_CFLAGS=$CFLAGS
8650
8651# Set sane defaults for various variables
8652test -z "$CC" && CC=cc
8653test -z "$LTCC" && LTCC=$CC
8654test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8655test -z "$LD" && LD=ld
8656test -z "$ac_objext" && ac_objext=o
8657
8658func_cc_basename $compiler
8659cc_basename=$func_cc_basename_result
8660
8661
8662# Only perform the check for file, if the check method requires it
8663test -z "$MAGIC_CMD" && MAGIC_CMD=file
8664case $deplibs_check_method in
8665file_magic*)
8666  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8667    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8668printf %s "checking for ${ac_tool_prefix}file... " >&6; }
8669if test ${lt_cv_path_MAGIC_CMD+y}
8670then :
8671  printf %s "(cached) " >&6
8672else $as_nop
8673  case $MAGIC_CMD in
8674[\\/*] |  ?:[\\/]*)
8675  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8676  ;;
8677*)
8678  lt_save_MAGIC_CMD=$MAGIC_CMD
8679  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8680  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8681  for ac_dir in $ac_dummy; do
8682    IFS=$lt_save_ifs
8683    test -z "$ac_dir" && ac_dir=.
8684    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8685      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8686      if test -n "$file_magic_test_file"; then
8687	case $deplibs_check_method in
8688	"file_magic "*)
8689	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8690	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8691	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8692	    $EGREP "$file_magic_regex" > /dev/null; then
8693	    :
8694	  else
8695	    cat <<_LT_EOF 1>&2
8696
8697*** Warning: the command libtool uses to detect shared libraries,
8698*** $file_magic_cmd, produces output that libtool cannot recognize.
8699*** The result is that libtool may fail to recognize shared libraries
8700*** as such.  This will affect the creation of libtool libraries that
8701*** depend on shared libraries, but programs linked with such libtool
8702*** libraries will work regardless of this problem.  Nevertheless, you
8703*** may want to report the problem to your system manager and/or to
8704*** bug-libtool@gnu.org
8705
8706_LT_EOF
8707	  fi ;;
8708	esac
8709      fi
8710      break
8711    fi
8712  done
8713  IFS=$lt_save_ifs
8714  MAGIC_CMD=$lt_save_MAGIC_CMD
8715  ;;
8716esac
8717fi
8718
8719MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8720if test -n "$MAGIC_CMD"; then
8721  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8722printf "%s\n" "$MAGIC_CMD" >&6; }
8723else
8724  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8725printf "%s\n" "no" >&6; }
8726fi
8727
8728
8729
8730
8731
8732if test -z "$lt_cv_path_MAGIC_CMD"; then
8733  if test -n "$ac_tool_prefix"; then
8734    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8735printf %s "checking for file... " >&6; }
8736if test ${lt_cv_path_MAGIC_CMD+y}
8737then :
8738  printf %s "(cached) " >&6
8739else $as_nop
8740  case $MAGIC_CMD in
8741[\\/*] |  ?:[\\/]*)
8742  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8743  ;;
8744*)
8745  lt_save_MAGIC_CMD=$MAGIC_CMD
8746  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8747  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8748  for ac_dir in $ac_dummy; do
8749    IFS=$lt_save_ifs
8750    test -z "$ac_dir" && ac_dir=.
8751    if test -f "$ac_dir/file"; then
8752      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8753      if test -n "$file_magic_test_file"; then
8754	case $deplibs_check_method in
8755	"file_magic "*)
8756	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8757	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8758	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8759	    $EGREP "$file_magic_regex" > /dev/null; then
8760	    :
8761	  else
8762	    cat <<_LT_EOF 1>&2
8763
8764*** Warning: the command libtool uses to detect shared libraries,
8765*** $file_magic_cmd, produces output that libtool cannot recognize.
8766*** The result is that libtool may fail to recognize shared libraries
8767*** as such.  This will affect the creation of libtool libraries that
8768*** depend on shared libraries, but programs linked with such libtool
8769*** libraries will work regardless of this problem.  Nevertheless, you
8770*** may want to report the problem to your system manager and/or to
8771*** bug-libtool@gnu.org
8772
8773_LT_EOF
8774	  fi ;;
8775	esac
8776      fi
8777      break
8778    fi
8779  done
8780  IFS=$lt_save_ifs
8781  MAGIC_CMD=$lt_save_MAGIC_CMD
8782  ;;
8783esac
8784fi
8785
8786MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8787if test -n "$MAGIC_CMD"; then
8788  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8789printf "%s\n" "$MAGIC_CMD" >&6; }
8790else
8791  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8792printf "%s\n" "no" >&6; }
8793fi
8794
8795
8796  else
8797    MAGIC_CMD=:
8798  fi
8799fi
8800
8801  fi
8802  ;;
8803esac
8804
8805# Use C for the default configuration in the libtool script
8806
8807lt_save_CC=$CC
8808ac_ext=c
8809ac_cpp='$CPP $CPPFLAGS'
8810ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8811ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8812ac_compiler_gnu=$ac_cv_c_compiler_gnu
8813
8814
8815# Source file extension for C test sources.
8816ac_ext=c
8817
8818# Object file extension for compiled C test sources.
8819objext=o
8820objext=$objext
8821
8822# Code to be used in simple compile tests
8823lt_simple_compile_test_code="int some_variable = 0;"
8824
8825# Code to be used in simple link tests
8826lt_simple_link_test_code='int main(){return(0);}'
8827
8828
8829
8830
8831
8832
8833
8834# If no C compiler was specified, use CC.
8835LTCC=${LTCC-"$CC"}
8836
8837# If no C compiler flags were specified, use CFLAGS.
8838LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8839
8840# Allow CC to be a program name with arguments.
8841compiler=$CC
8842
8843# Save the default compiler, since it gets overwritten when the other
8844# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8845compiler_DEFAULT=$CC
8846
8847# save warnings/boilerplate of simple test code
8848ac_outfile=conftest.$ac_objext
8849echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8850eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8851_lt_compiler_boilerplate=`cat conftest.err`
8852$RM conftest*
8853
8854ac_outfile=conftest.$ac_objext
8855echo "$lt_simple_link_test_code" >conftest.$ac_ext
8856eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8857_lt_linker_boilerplate=`cat conftest.err`
8858$RM -r conftest*
8859
8860
8861## CAVEAT EMPTOR:
8862## There is no encapsulation within the following macros, do not change
8863## the running order or otherwise move them around unless you know exactly
8864## what you are doing...
8865if test -n "$compiler"; then
8866
8867lt_prog_compiler_no_builtin_flag=
8868
8869if test yes = "$GCC"; then
8870  case $cc_basename in
8871  nvcc*)
8872    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8873  *)
8874    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8875  esac
8876
8877  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8878printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8879if test ${lt_cv_prog_compiler_rtti_exceptions+y}
8880then :
8881  printf %s "(cached) " >&6
8882else $as_nop
8883  lt_cv_prog_compiler_rtti_exceptions=no
8884   ac_outfile=conftest.$ac_objext
8885   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8886   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8887   # Insert the option either (1) after the last *FLAGS variable, or
8888   # (2) before a word containing "conftest.", or (3) at the end.
8889   # Note that $ac_compile itself does not contain backslashes and begins
8890   # with a dollar sign (not a hyphen), so the echo should work correctly.
8891   # The option is referenced via a variable to avoid confusing sed.
8892   lt_compile=`echo "$ac_compile" | $SED \
8893   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8894   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8895   -e 's:$: $lt_compiler_flag:'`
8896   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8897   (eval "$lt_compile" 2>conftest.err)
8898   ac_status=$?
8899   cat conftest.err >&5
8900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8901   if (exit $ac_status) && test -s "$ac_outfile"; then
8902     # The compiler can only warn and ignore the option if not recognized
8903     # So say no if there are warnings other than the usual output.
8904     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8905     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8906     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8907       lt_cv_prog_compiler_rtti_exceptions=yes
8908     fi
8909   fi
8910   $RM conftest*
8911
8912fi
8913{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8914printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8915
8916if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8917    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8918else
8919    :
8920fi
8921
8922fi
8923
8924
8925
8926
8927
8928
8929  lt_prog_compiler_wl=
8930lt_prog_compiler_pic=
8931lt_prog_compiler_static=
8932
8933
8934  if test yes = "$GCC"; then
8935    lt_prog_compiler_wl='-Wl,'
8936    lt_prog_compiler_static='-static'
8937
8938    case $host_os in
8939      aix*)
8940      # All AIX code is PIC.
8941      if test ia64 = "$host_cpu"; then
8942	# AIX 5 now supports IA64 processor
8943	lt_prog_compiler_static='-Bstatic'
8944      fi
8945      lt_prog_compiler_pic='-fPIC'
8946      ;;
8947
8948    amigaos*)
8949      case $host_cpu in
8950      powerpc)
8951            # see comment about AmigaOS4 .so support
8952            lt_prog_compiler_pic='-fPIC'
8953        ;;
8954      m68k)
8955            # FIXME: we need at least 68020 code to build shared libraries, but
8956            # adding the '-m68020' flag to GCC prevents building anything better,
8957            # like '-m68040'.
8958            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8959        ;;
8960      esac
8961      ;;
8962
8963    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8964      # PIC is the default for these OSes.
8965      ;;
8966
8967    mingw* | cygwin* | pw32* | os2* | cegcc*)
8968      # This hack is so that the source file can tell whether it is being
8969      # built for inclusion in a dll (and should export symbols for example).
8970      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8971      # (--disable-auto-import) libraries
8972      lt_prog_compiler_pic='-DDLL_EXPORT'
8973      case $host_os in
8974      os2*)
8975	lt_prog_compiler_static='$wl-static'
8976	;;
8977      esac
8978      ;;
8979
8980    darwin* | rhapsody*)
8981      # PIC is the default on this platform
8982      # Common symbols not allowed in MH_DYLIB files
8983      lt_prog_compiler_pic='-fno-common'
8984      ;;
8985
8986    haiku*)
8987      # PIC is the default for Haiku.
8988      # The "-static" flag exists, but is broken.
8989      lt_prog_compiler_static=
8990      ;;
8991
8992    hpux*)
8993      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8994      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8995      # sets the default TLS model and affects inlining.
8996      case $host_cpu in
8997      hppa*64*)
8998	# +Z the default
8999	;;
9000      *)
9001	lt_prog_compiler_pic='-fPIC'
9002	;;
9003      esac
9004      ;;
9005
9006    interix[3-9]*)
9007      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9008      # Instead, we relocate shared libraries at runtime.
9009      ;;
9010
9011    msdosdjgpp*)
9012      # Just because we use GCC doesn't mean we suddenly get shared libraries
9013      # on systems that don't support them.
9014      lt_prog_compiler_can_build_shared=no
9015      enable_shared=no
9016      ;;
9017
9018    *nto* | *qnx*)
9019      # QNX uses GNU C++, but need to define -shared option too, otherwise
9020      # it will coredump.
9021      lt_prog_compiler_pic='-fPIC -shared'
9022      ;;
9023
9024    sysv4*MP*)
9025      if test -d /usr/nec; then
9026	lt_prog_compiler_pic=-Kconform_pic
9027      fi
9028      ;;
9029
9030    *)
9031      lt_prog_compiler_pic='-fPIC'
9032      ;;
9033    esac
9034
9035    case $cc_basename in
9036    nvcc*) # Cuda Compiler Driver 2.2
9037      lt_prog_compiler_wl='-Xlinker '
9038      if test -n "$lt_prog_compiler_pic"; then
9039        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9040      fi
9041      ;;
9042    esac
9043  else
9044    # PORTME Check for flag to pass linker flags through the system compiler.
9045    case $host_os in
9046    aix*)
9047      lt_prog_compiler_wl='-Wl,'
9048      if test ia64 = "$host_cpu"; then
9049	# AIX 5 now supports IA64 processor
9050	lt_prog_compiler_static='-Bstatic'
9051      else
9052	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9053      fi
9054      ;;
9055
9056    darwin* | rhapsody*)
9057      # PIC is the default on this platform
9058      # Common symbols not allowed in MH_DYLIB files
9059      lt_prog_compiler_pic='-fno-common'
9060      case $cc_basename in
9061      nagfor*)
9062        # NAG Fortran compiler
9063        lt_prog_compiler_wl='-Wl,-Wl,,'
9064        lt_prog_compiler_pic='-PIC'
9065        lt_prog_compiler_static='-Bstatic'
9066        ;;
9067      esac
9068      ;;
9069
9070    mingw* | cygwin* | pw32* | os2* | cegcc*)
9071      # This hack is so that the source file can tell whether it is being
9072      # built for inclusion in a dll (and should export symbols for example).
9073      lt_prog_compiler_pic='-DDLL_EXPORT'
9074      case $host_os in
9075      os2*)
9076	lt_prog_compiler_static='$wl-static'
9077	;;
9078      esac
9079      ;;
9080
9081    hpux9* | hpux10* | hpux11*)
9082      lt_prog_compiler_wl='-Wl,'
9083      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9084      # not for PA HP-UX.
9085      case $host_cpu in
9086      hppa*64*|ia64*)
9087	# +Z the default
9088	;;
9089      *)
9090	lt_prog_compiler_pic='+Z'
9091	;;
9092      esac
9093      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9094      lt_prog_compiler_static='$wl-a ${wl}archive'
9095      ;;
9096
9097    irix5* | irix6* | nonstopux*)
9098      lt_prog_compiler_wl='-Wl,'
9099      # PIC (with -KPIC) is the default.
9100      lt_prog_compiler_static='-non_shared'
9101      ;;
9102
9103    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9104      case $cc_basename in
9105      # old Intel for x86_64, which still supported -KPIC.
9106      ecc*)
9107	lt_prog_compiler_wl='-Wl,'
9108	lt_prog_compiler_pic='-KPIC'
9109	lt_prog_compiler_static='-static'
9110        ;;
9111      # icc used to be incompatible with GCC.
9112      # ICC 10 doesn't accept -KPIC any more.
9113      icc* | ifort*)
9114	lt_prog_compiler_wl='-Wl,'
9115	lt_prog_compiler_pic='-fPIC'
9116	lt_prog_compiler_static='-static'
9117        ;;
9118      # Lahey Fortran 8.1.
9119      lf95*)
9120	lt_prog_compiler_wl='-Wl,'
9121	lt_prog_compiler_pic='--shared'
9122	lt_prog_compiler_static='--static'
9123	;;
9124      nagfor*)
9125	# NAG Fortran compiler
9126	lt_prog_compiler_wl='-Wl,-Wl,,'
9127	lt_prog_compiler_pic='-PIC'
9128	lt_prog_compiler_static='-Bstatic'
9129	;;
9130      tcc*)
9131	# Fabrice Bellard et al's Tiny C Compiler
9132	lt_prog_compiler_wl='-Wl,'
9133	lt_prog_compiler_pic='-fPIC'
9134	lt_prog_compiler_static='-static'
9135	;;
9136      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9137        # Portland Group compilers (*not* the Pentium gcc compiler,
9138	# which looks to be a dead project)
9139	lt_prog_compiler_wl='-Wl,'
9140	lt_prog_compiler_pic='-fpic'
9141	lt_prog_compiler_static='-Bstatic'
9142        ;;
9143      ccc*)
9144        lt_prog_compiler_wl='-Wl,'
9145        # All Alpha code is PIC.
9146        lt_prog_compiler_static='-non_shared'
9147        ;;
9148      xl* | bgxl* | bgf* | mpixl*)
9149	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9150	lt_prog_compiler_wl='-Wl,'
9151	lt_prog_compiler_pic='-qpic'
9152	lt_prog_compiler_static='-qstaticlink'
9153	;;
9154      *)
9155	case `$CC -V 2>&1 | $SED 5q` in
9156	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9157	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9158	  lt_prog_compiler_pic='-KPIC'
9159	  lt_prog_compiler_static='-Bstatic'
9160	  lt_prog_compiler_wl=''
9161	  ;;
9162	*Sun\ F* | *Sun*Fortran*)
9163	  lt_prog_compiler_pic='-KPIC'
9164	  lt_prog_compiler_static='-Bstatic'
9165	  lt_prog_compiler_wl='-Qoption ld '
9166	  ;;
9167	*Sun\ C*)
9168	  # Sun C 5.9
9169	  lt_prog_compiler_pic='-KPIC'
9170	  lt_prog_compiler_static='-Bstatic'
9171	  lt_prog_compiler_wl='-Wl,'
9172	  ;;
9173        *Intel*\ [CF]*Compiler*)
9174	  lt_prog_compiler_wl='-Wl,'
9175	  lt_prog_compiler_pic='-fPIC'
9176	  lt_prog_compiler_static='-static'
9177	  ;;
9178	*Portland\ Group*)
9179	  lt_prog_compiler_wl='-Wl,'
9180	  lt_prog_compiler_pic='-fpic'
9181	  lt_prog_compiler_static='-Bstatic'
9182	  ;;
9183	esac
9184	;;
9185      esac
9186      ;;
9187
9188    newsos6)
9189      lt_prog_compiler_pic='-KPIC'
9190      lt_prog_compiler_static='-Bstatic'
9191      ;;
9192
9193    *nto* | *qnx*)
9194      # QNX uses GNU C++, but need to define -shared option too, otherwise
9195      # it will coredump.
9196      lt_prog_compiler_pic='-fPIC -shared'
9197      ;;
9198
9199    osf3* | osf4* | osf5*)
9200      lt_prog_compiler_wl='-Wl,'
9201      # All OSF/1 code is PIC.
9202      lt_prog_compiler_static='-non_shared'
9203      ;;
9204
9205    rdos*)
9206      lt_prog_compiler_static='-non_shared'
9207      ;;
9208
9209    solaris*)
9210      lt_prog_compiler_pic='-KPIC'
9211      lt_prog_compiler_static='-Bstatic'
9212      case $cc_basename in
9213      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9214	lt_prog_compiler_wl='-Qoption ld ';;
9215      *)
9216	lt_prog_compiler_wl='-Wl,';;
9217      esac
9218      ;;
9219
9220    sunos4*)
9221      lt_prog_compiler_wl='-Qoption ld '
9222      lt_prog_compiler_pic='-PIC'
9223      lt_prog_compiler_static='-Bstatic'
9224      ;;
9225
9226    sysv4 | sysv4.2uw2* | sysv4.3*)
9227      lt_prog_compiler_wl='-Wl,'
9228      lt_prog_compiler_pic='-KPIC'
9229      lt_prog_compiler_static='-Bstatic'
9230      ;;
9231
9232    sysv4*MP*)
9233      if test -d /usr/nec; then
9234	lt_prog_compiler_pic='-Kconform_pic'
9235	lt_prog_compiler_static='-Bstatic'
9236      fi
9237      ;;
9238
9239    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9240      lt_prog_compiler_wl='-Wl,'
9241      lt_prog_compiler_pic='-KPIC'
9242      lt_prog_compiler_static='-Bstatic'
9243      ;;
9244
9245    unicos*)
9246      lt_prog_compiler_wl='-Wl,'
9247      lt_prog_compiler_can_build_shared=no
9248      ;;
9249
9250    uts4*)
9251      lt_prog_compiler_pic='-pic'
9252      lt_prog_compiler_static='-Bstatic'
9253      ;;
9254
9255    *)
9256      lt_prog_compiler_can_build_shared=no
9257      ;;
9258    esac
9259  fi
9260
9261case $host_os in
9262  # For platforms that do not support PIC, -DPIC is meaningless:
9263  *djgpp*)
9264    lt_prog_compiler_pic=
9265    ;;
9266  *)
9267    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9268    ;;
9269esac
9270
9271{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9272printf %s "checking for $compiler option to produce PIC... " >&6; }
9273if test ${lt_cv_prog_compiler_pic+y}
9274then :
9275  printf %s "(cached) " >&6
9276else $as_nop
9277  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9278fi
9279{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9280printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9281lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9282
9283#
9284# Check to make sure the PIC flag actually works.
9285#
9286if test -n "$lt_prog_compiler_pic"; then
9287  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9288printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9289if test ${lt_cv_prog_compiler_pic_works+y}
9290then :
9291  printf %s "(cached) " >&6
9292else $as_nop
9293  lt_cv_prog_compiler_pic_works=no
9294   ac_outfile=conftest.$ac_objext
9295   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9296   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9297   # Insert the option either (1) after the last *FLAGS variable, or
9298   # (2) before a word containing "conftest.", or (3) at the end.
9299   # Note that $ac_compile itself does not contain backslashes and begins
9300   # with a dollar sign (not a hyphen), so the echo should work correctly.
9301   # The option is referenced via a variable to avoid confusing sed.
9302   lt_compile=`echo "$ac_compile" | $SED \
9303   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9304   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9305   -e 's:$: $lt_compiler_flag:'`
9306   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9307   (eval "$lt_compile" 2>conftest.err)
9308   ac_status=$?
9309   cat conftest.err >&5
9310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9311   if (exit $ac_status) && test -s "$ac_outfile"; then
9312     # The compiler can only warn and ignore the option if not recognized
9313     # So say no if there are warnings other than the usual output.
9314     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9315     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9316     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9317       lt_cv_prog_compiler_pic_works=yes
9318     fi
9319   fi
9320   $RM conftest*
9321
9322fi
9323{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9324printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9325
9326if test yes = "$lt_cv_prog_compiler_pic_works"; then
9327    case $lt_prog_compiler_pic in
9328     "" | " "*) ;;
9329     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9330     esac
9331else
9332    lt_prog_compiler_pic=
9333     lt_prog_compiler_can_build_shared=no
9334fi
9335
9336fi
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348#
9349# Check to make sure the static flag actually works.
9350#
9351wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9352{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9353printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9354if test ${lt_cv_prog_compiler_static_works+y}
9355then :
9356  printf %s "(cached) " >&6
9357else $as_nop
9358  lt_cv_prog_compiler_static_works=no
9359   save_LDFLAGS=$LDFLAGS
9360   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9361   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9362   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9363     # The linker can only warn and ignore the option if not recognized
9364     # So say no if there are warnings
9365     if test -s conftest.err; then
9366       # Append any errors to the config.log.
9367       cat conftest.err 1>&5
9368       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9369       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9370       if diff conftest.exp conftest.er2 >/dev/null; then
9371         lt_cv_prog_compiler_static_works=yes
9372       fi
9373     else
9374       lt_cv_prog_compiler_static_works=yes
9375     fi
9376   fi
9377   $RM -r conftest*
9378   LDFLAGS=$save_LDFLAGS
9379
9380fi
9381{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9382printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9383
9384if test yes = "$lt_cv_prog_compiler_static_works"; then
9385    :
9386else
9387    lt_prog_compiler_static=
9388fi
9389
9390
9391
9392
9393
9394
9395
9396  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9397printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9398if test ${lt_cv_prog_compiler_c_o+y}
9399then :
9400  printf %s "(cached) " >&6
9401else $as_nop
9402  lt_cv_prog_compiler_c_o=no
9403   $RM -r conftest 2>/dev/null
9404   mkdir conftest
9405   cd conftest
9406   mkdir out
9407   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9408
9409   lt_compiler_flag="-o out/conftest2.$ac_objext"
9410   # Insert the option either (1) after the last *FLAGS variable, or
9411   # (2) before a word containing "conftest.", or (3) at the end.
9412   # Note that $ac_compile itself does not contain backslashes and begins
9413   # with a dollar sign (not a hyphen), so the echo should work correctly.
9414   lt_compile=`echo "$ac_compile" | $SED \
9415   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9416   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9417   -e 's:$: $lt_compiler_flag:'`
9418   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9419   (eval "$lt_compile" 2>out/conftest.err)
9420   ac_status=$?
9421   cat out/conftest.err >&5
9422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9423   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9424   then
9425     # The compiler can only warn and ignore the option if not recognized
9426     # So say no if there are warnings
9427     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9428     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9429     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9430       lt_cv_prog_compiler_c_o=yes
9431     fi
9432   fi
9433   chmod u+w . 2>&5
9434   $RM conftest*
9435   # SGI C++ compiler will create directory out/ii_files/ for
9436   # template instantiation
9437   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9438   $RM out/* && rmdir out
9439   cd ..
9440   $RM -r conftest
9441   $RM conftest*
9442
9443fi
9444{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9445printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9446
9447
9448
9449
9450
9451
9452  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9453printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9454if test ${lt_cv_prog_compiler_c_o+y}
9455then :
9456  printf %s "(cached) " >&6
9457else $as_nop
9458  lt_cv_prog_compiler_c_o=no
9459   $RM -r conftest 2>/dev/null
9460   mkdir conftest
9461   cd conftest
9462   mkdir out
9463   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9464
9465   lt_compiler_flag="-o out/conftest2.$ac_objext"
9466   # Insert the option either (1) after the last *FLAGS variable, or
9467   # (2) before a word containing "conftest.", or (3) at the end.
9468   # Note that $ac_compile itself does not contain backslashes and begins
9469   # with a dollar sign (not a hyphen), so the echo should work correctly.
9470   lt_compile=`echo "$ac_compile" | $SED \
9471   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9472   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9473   -e 's:$: $lt_compiler_flag:'`
9474   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9475   (eval "$lt_compile" 2>out/conftest.err)
9476   ac_status=$?
9477   cat out/conftest.err >&5
9478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9479   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9480   then
9481     # The compiler can only warn and ignore the option if not recognized
9482     # So say no if there are warnings
9483     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9484     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9485     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9486       lt_cv_prog_compiler_c_o=yes
9487     fi
9488   fi
9489   chmod u+w . 2>&5
9490   $RM conftest*
9491   # SGI C++ compiler will create directory out/ii_files/ for
9492   # template instantiation
9493   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9494   $RM out/* && rmdir out
9495   cd ..
9496   $RM -r conftest
9497   $RM conftest*
9498
9499fi
9500{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9501printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9502
9503
9504
9505
9506hard_links=nottested
9507if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9508  # do not overwrite the value of need_locks provided by the user
9509  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9510printf %s "checking if we can lock with hard links... " >&6; }
9511  hard_links=yes
9512  $RM conftest*
9513  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9514  touch conftest.a
9515  ln conftest.a conftest.b 2>&5 || hard_links=no
9516  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9517  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9518printf "%s\n" "$hard_links" >&6; }
9519  if test no = "$hard_links"; then
9520    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9521printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9522    need_locks=warn
9523  fi
9524else
9525  need_locks=no
9526fi
9527
9528
9529
9530
9531
9532
9533  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9534printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9535
9536  runpath_var=
9537  allow_undefined_flag=
9538  always_export_symbols=no
9539  archive_cmds=
9540  archive_expsym_cmds=
9541  compiler_needs_object=no
9542  enable_shared_with_static_runtimes=no
9543  export_dynamic_flag_spec=
9544  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9545  hardcode_automatic=no
9546  hardcode_direct=no
9547  hardcode_direct_absolute=no
9548  hardcode_libdir_flag_spec=
9549  hardcode_libdir_separator=
9550  hardcode_minus_L=no
9551  hardcode_shlibpath_var=unsupported
9552  inherit_rpath=no
9553  link_all_deplibs=unknown
9554  module_cmds=
9555  module_expsym_cmds=
9556  old_archive_from_new_cmds=
9557  old_archive_from_expsyms_cmds=
9558  thread_safe_flag_spec=
9559  whole_archive_flag_spec=
9560  # include_expsyms should be a list of space-separated symbols to be *always*
9561  # included in the symbol list
9562  include_expsyms=
9563  # exclude_expsyms can be an extended regexp of symbols to exclude
9564  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9565  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9566  # as well as any symbol that contains 'd'.
9567  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9568  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9569  # platforms (ab)use it in PIC code, but their linkers get confused if
9570  # the symbol is explicitly referenced.  Since portable code cannot
9571  # rely on this symbol name, it's probably fine to never include it in
9572  # preloaded symbol tables.
9573  # Exclude shared library initialization/finalization symbols.
9574  extract_expsyms_cmds=
9575
9576  case $host_os in
9577  cygwin* | mingw* | pw32* | cegcc*)
9578    # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
9579    # When not using gcc, we currently assume that we are using
9580    # Microsoft Visual C++ or Intel C++ Compiler.
9581    if test yes != "$GCC"; then
9582      with_gnu_ld=no
9583    fi
9584    ;;
9585  interix*)
9586    # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
9587    with_gnu_ld=yes
9588    ;;
9589  openbsd* | bitrig*)
9590    with_gnu_ld=no
9591    ;;
9592  esac
9593
9594  ld_shlibs=yes
9595
9596  # On some targets, GNU ld is compatible enough with the native linker
9597  # that we're better off using the native interface for both.
9598  lt_use_gnu_ld_interface=no
9599  if test yes = "$with_gnu_ld"; then
9600    case $host_os in
9601      aix*)
9602	# The AIX port of GNU ld has always aspired to compatibility
9603	# with the native linker.  However, as the warning in the GNU ld
9604	# block says, versions before 2.19.5* couldn't really create working
9605	# shared libraries, regardless of the interface used.
9606	case `$LD -v 2>&1` in
9607	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9608	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9609	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9610	  *)
9611	    lt_use_gnu_ld_interface=yes
9612	    ;;
9613	esac
9614	;;
9615      *)
9616	lt_use_gnu_ld_interface=yes
9617	;;
9618    esac
9619  fi
9620
9621  if test yes = "$lt_use_gnu_ld_interface"; then
9622    # If archive_cmds runs LD, not CC, wlarc should be empty
9623    wlarc='$wl'
9624
9625    # Set some defaults for GNU ld with shared library support. These
9626    # are reset later if shared libraries are not supported. Putting them
9627    # here allows them to be overridden if necessary.
9628    runpath_var=LD_RUN_PATH
9629    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9630    export_dynamic_flag_spec='$wl--export-dynamic'
9631    # ancient GNU ld didn't support --whole-archive et. al.
9632    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9633      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9634    else
9635      whole_archive_flag_spec=
9636    fi
9637    supports_anon_versioning=no
9638    case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
9639      *GNU\ gold*) supports_anon_versioning=yes ;;
9640      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9641      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9642      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9643      *\ 2.11.*) ;; # other 2.11 versions
9644      *) supports_anon_versioning=yes ;;
9645    esac
9646
9647    # See if GNU ld supports shared libraries.
9648    case $host_os in
9649    aix[3-9]*)
9650      # On AIX/PPC, the GNU linker is very broken
9651      if test ia64 != "$host_cpu"; then
9652	ld_shlibs=no
9653	cat <<_LT_EOF 1>&2
9654
9655*** Warning: the GNU linker, at least up to release 2.19, is reported
9656*** to be unable to reliably create shared libraries on AIX.
9657*** Therefore, libtool is disabling shared libraries support.  If you
9658*** really care for shared libraries, you may want to install binutils
9659*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9660*** You will then need to restart the configuration process.
9661
9662_LT_EOF
9663      fi
9664      ;;
9665
9666    amigaos*)
9667      case $host_cpu in
9668      powerpc)
9669            # see comment about AmigaOS4 .so support
9670            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9671            archive_expsym_cmds=''
9672        ;;
9673      m68k)
9674            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)'
9675            hardcode_libdir_flag_spec='-L$libdir'
9676            hardcode_minus_L=yes
9677        ;;
9678      esac
9679      ;;
9680
9681    beos*)
9682      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9683	allow_undefined_flag=unsupported
9684	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9685	# support --undefined.  This deserves some investigation.  FIXME
9686	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9687      else
9688	ld_shlibs=no
9689      fi
9690      ;;
9691
9692    cygwin* | mingw* | pw32* | cegcc*)
9693      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9694      # as there is no search path for DLLs.
9695      hardcode_libdir_flag_spec='-L$libdir'
9696      export_dynamic_flag_spec='$wl--export-all-symbols'
9697      allow_undefined_flag=unsupported
9698      always_export_symbols=no
9699      enable_shared_with_static_runtimes=yes
9700      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'
9701      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9702
9703      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9704        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9705	# If the export-symbols file already is a .def file, use it as
9706	# is; otherwise, prepend EXPORTS...
9707	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9708          cp $export_symbols $output_objdir/$soname.def;
9709        else
9710          echo EXPORTS > $output_objdir/$soname.def;
9711          cat $export_symbols >> $output_objdir/$soname.def;
9712        fi~
9713        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9714      else
9715	ld_shlibs=no
9716      fi
9717      ;;
9718
9719    haiku*)
9720      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9721      link_all_deplibs=yes
9722      ;;
9723
9724    os2*)
9725      hardcode_libdir_flag_spec='-L$libdir'
9726      hardcode_minus_L=yes
9727      allow_undefined_flag=unsupported
9728      shrext_cmds=.dll
9729      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9730	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9731	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9732	$ECHO EXPORTS >> $output_objdir/$libname.def~
9733	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9734	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9735	emximp -o $lib $output_objdir/$libname.def'
9736      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9737	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9738	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9739	$ECHO EXPORTS >> $output_objdir/$libname.def~
9740	prefix_cmds="$SED"~
9741	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9742	  prefix_cmds="$prefix_cmds -e 1d";
9743	fi~
9744	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9745	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9746	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9747	emximp -o $lib $output_objdir/$libname.def'
9748      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9749      enable_shared_with_static_runtimes=yes
9750      file_list_spec='@'
9751      ;;
9752
9753    interix[3-9]*)
9754      hardcode_direct=no
9755      hardcode_shlibpath_var=no
9756      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9757      export_dynamic_flag_spec='$wl-E'
9758      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9759      # Instead, shared libraries are loaded at an image base (0x10000000 by
9760      # default) and relocated if they conflict, which is a slow very memory
9761      # consuming and fragmenting process.  To avoid this, we pick a random,
9762      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9763      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9764      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9765      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'
9766      ;;
9767
9768    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9769      tmp_diet=no
9770      if test linux-dietlibc = "$host_os"; then
9771	case $cc_basename in
9772	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9773	esac
9774      fi
9775      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9776	 && test no = "$tmp_diet"
9777      then
9778	tmp_addflag=' $pic_flag'
9779	tmp_sharedflag='-shared'
9780	case $cc_basename,$host_cpu in
9781        pgcc*)				# Portland Group C compiler
9782	  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'
9783	  tmp_addflag=' $pic_flag'
9784	  ;;
9785	pgf77* | pgf90* | pgf95* | pgfortran*)
9786					# Portland Group f77 and f90 compilers
9787	  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'
9788	  tmp_addflag=' $pic_flag -Mnomain' ;;
9789	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9790	  tmp_addflag=' -i_dynamic' ;;
9791	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9792	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9793	ifc* | ifort*)			# Intel Fortran compiler
9794	  tmp_addflag=' -nofor_main' ;;
9795	lf95*)				# Lahey Fortran 8.1
9796	  whole_archive_flag_spec=
9797	  tmp_sharedflag='--shared' ;;
9798        nagfor*)                        # NAGFOR 5.3
9799          tmp_sharedflag='-Wl,-shared' ;;
9800	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9801	  tmp_sharedflag='-qmkshrobj'
9802	  tmp_addflag= ;;
9803	nvcc*)	# Cuda Compiler Driver 2.2
9804	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9805	  compiler_needs_object=yes
9806	  ;;
9807	esac
9808	case `$CC -V 2>&1 | $SED 5q` in
9809	*Sun\ C*)			# Sun C 5.9
9810	  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'
9811	  compiler_needs_object=yes
9812	  tmp_sharedflag='-G' ;;
9813	*Sun\ F*)			# Sun Fortran 8.3
9814	  tmp_sharedflag='-G' ;;
9815	esac
9816	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9817
9818        if test yes = "$supports_anon_versioning"; then
9819          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9820            cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9821            echo "local: *; };" >> $output_objdir/$libname.ver~
9822            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9823        fi
9824
9825	case $cc_basename in
9826	tcc*)
9827	  export_dynamic_flag_spec='-rdynamic'
9828	  ;;
9829	xlf* | bgf* | bgxlf* | mpixlf*)
9830	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9831	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9832	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9833	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9834	  if test yes = "$supports_anon_versioning"; then
9835	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9836              cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9837              echo "local: *; };" >> $output_objdir/$libname.ver~
9838              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9839	  fi
9840	  ;;
9841	esac
9842      else
9843        ld_shlibs=no
9844      fi
9845      ;;
9846
9847    netbsd*)
9848      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9849	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9850	wlarc=
9851      else
9852	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9853	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9854      fi
9855      ;;
9856
9857    solaris*)
9858      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9859	ld_shlibs=no
9860	cat <<_LT_EOF 1>&2
9861
9862*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9863*** create shared libraries on Solaris systems.  Therefore, libtool
9864*** is disabling shared libraries support.  We urge you to upgrade GNU
9865*** binutils to release 2.9.1 or newer.  Another option is to modify
9866*** your PATH or compiler configuration so that the native linker is
9867*** used, and then restart.
9868
9869_LT_EOF
9870      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9871	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9872	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9873      else
9874	ld_shlibs=no
9875      fi
9876      ;;
9877
9878    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9879      case `$LD -v 2>&1` in
9880        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9881	ld_shlibs=no
9882	cat <<_LT_EOF 1>&2
9883
9884*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9885*** reliably create shared libraries on SCO systems.  Therefore, libtool
9886*** is disabling shared libraries support.  We urge you to upgrade GNU
9887*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9888*** your PATH or compiler configuration so that the native linker is
9889*** used, and then restart.
9890
9891_LT_EOF
9892	;;
9893	*)
9894	  # For security reasons, it is highly recommended that you always
9895	  # use absolute paths for naming shared libraries, and exclude the
9896	  # DT_RUNPATH tag from executables and libraries.  But doing so
9897	  # requires that you compile everything twice, which is a pain.
9898	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9899	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9900	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9901	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9902	  else
9903	    ld_shlibs=no
9904	  fi
9905	;;
9906      esac
9907      ;;
9908
9909    sunos4*)
9910      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9911      wlarc=
9912      hardcode_direct=yes
9913      hardcode_shlibpath_var=no
9914      ;;
9915
9916    *)
9917      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9918	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9919	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9920      else
9921	ld_shlibs=no
9922      fi
9923      ;;
9924    esac
9925
9926    if test no = "$ld_shlibs"; then
9927      runpath_var=
9928      hardcode_libdir_flag_spec=
9929      export_dynamic_flag_spec=
9930      whole_archive_flag_spec=
9931    fi
9932  else
9933    # PORTME fill in a description of your system's linker (not GNU ld)
9934    case $host_os in
9935    aix3*)
9936      allow_undefined_flag=unsupported
9937      always_export_symbols=yes
9938      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'
9939      # Note: this linker hardcodes the directories in LIBPATH if there
9940      # are no directories specified by -L.
9941      hardcode_minus_L=yes
9942      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9943	# Neither direct hardcoding nor static linking is supported with a
9944	# broken collect2.
9945	hardcode_direct=unsupported
9946      fi
9947      ;;
9948
9949    aix[4-9]*)
9950      if test ia64 = "$host_cpu"; then
9951	# On IA64, the linker does run time linking by default, so we don't
9952	# have to do anything special.
9953	aix_use_runtimelinking=no
9954	exp_sym_flag='-Bexport'
9955	no_entry_flag=
9956      else
9957	# If we're using GNU nm, then we don't want the "-C" option.
9958	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
9959	# Without the "-l" option, or with the "-B" option, AIX nm treats
9960	# weak defined symbols like other global defined symbols, whereas
9961	# GNU nm marks them as "W".
9962	# While the 'weak' keyword is ignored in the Export File, we need
9963	# it in the Import File for the 'aix-soname' feature, so we have
9964	# to replace the "-B" option with "-P" for AIX nm.
9965	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9966	  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'
9967	else
9968	  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'
9969	fi
9970	aix_use_runtimelinking=no
9971
9972	# Test if we are trying to use run time linking or normal
9973	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9974	# have runtime linking enabled, and use it for executables.
9975	# For shared libraries, we enable/disable runtime linking
9976	# depending on the kind of the shared library created -
9977	# when "with_aix_soname,aix_use_runtimelinking" is:
9978	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9979	# "aix,yes"  lib.so          shared, rtl:yes, for executables
9980	#            lib.a           static archive
9981	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
9982	#            lib.a(lib.so.V) shared, rtl:no,  for executables
9983	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9984	#            lib.a(lib.so.V) shared, rtl:no
9985	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
9986	#            lib.a           static archive
9987	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9988	  for ld_flag in $LDFLAGS; do
9989	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9990	    aix_use_runtimelinking=yes
9991	    break
9992	  fi
9993	  done
9994	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9995	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
9996	    # so we don't have lib.a shared libs to link our executables.
9997	    # We have to force runtime linking in this case.
9998	    aix_use_runtimelinking=yes
9999	    LDFLAGS="$LDFLAGS -Wl,-brtl"
10000	  fi
10001	  ;;
10002	esac
10003
10004	exp_sym_flag='-bexport'
10005	no_entry_flag='-bnoentry'
10006      fi
10007
10008      # When large executables or shared objects are built, AIX ld can
10009      # have problems creating the table of contents.  If linking a library
10010      # or program results in "error TOC overflow" add -mminimal-toc to
10011      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10012      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10013
10014      archive_cmds=''
10015      hardcode_direct=yes
10016      hardcode_direct_absolute=yes
10017      hardcode_libdir_separator=':'
10018      link_all_deplibs=yes
10019      file_list_spec='$wl-f,'
10020      case $with_aix_soname,$aix_use_runtimelinking in
10021      aix,*) ;; # traditional, no import file
10022      svr4,* | *,yes) # use import file
10023	# The Import File defines what to hardcode.
10024	hardcode_direct=no
10025	hardcode_direct_absolute=no
10026	;;
10027      esac
10028
10029      if test yes = "$GCC"; then
10030	case $host_os in aix4.[012]|aix4.[012].*)
10031	# We only want to do this on AIX 4.2 and lower, the check
10032	# below for broken collect2 doesn't work under 4.3+
10033	  collect2name=`$CC -print-prog-name=collect2`
10034	  if test -f "$collect2name" &&
10035	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10036	  then
10037	  # We have reworked collect2
10038	  :
10039	  else
10040	  # We have old collect2
10041	  hardcode_direct=unsupported
10042	  # It fails to find uninstalled libraries when the uninstalled
10043	  # path is not listed in the libpath.  Setting hardcode_minus_L
10044	  # to unsupported forces relinking
10045	  hardcode_minus_L=yes
10046	  hardcode_libdir_flag_spec='-L$libdir'
10047	  hardcode_libdir_separator=
10048	  fi
10049	  ;;
10050	esac
10051	shared_flag='-shared'
10052	if test yes = "$aix_use_runtimelinking"; then
10053	  shared_flag="$shared_flag "'$wl-G'
10054	fi
10055	# Need to ensure runtime linking is disabled for the traditional
10056	# shared library, or the linker may eventually find shared libraries
10057	# /with/ Import File - we do not want to mix them.
10058	shared_flag_aix='-shared'
10059	shared_flag_svr4='-shared $wl-G'
10060      else
10061	# not using gcc
10062	if test ia64 = "$host_cpu"; then
10063	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10064	# chokes on -Wl,-G. The following line is correct:
10065	  shared_flag='-G'
10066	else
10067	  if test yes = "$aix_use_runtimelinking"; then
10068	    shared_flag='$wl-G'
10069	  else
10070	    shared_flag='$wl-bM:SRE'
10071	  fi
10072	  shared_flag_aix='$wl-bM:SRE'
10073	  shared_flag_svr4='$wl-G'
10074	fi
10075      fi
10076
10077      export_dynamic_flag_spec='$wl-bexpall'
10078      # It seems that -bexpall does not export symbols beginning with
10079      # underscore (_), so it is better to generate a list of symbols to export.
10080      always_export_symbols=yes
10081      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10082	# Warning - without using the other runtime loading flags (-brtl),
10083	# -berok will link without error, but may produce a broken library.
10084	allow_undefined_flag='-berok'
10085        # Determine the default libpath from the value encoded in an
10086        # empty executable.
10087        if test set = "${lt_cv_aix_libpath+set}"; then
10088  aix_libpath=$lt_cv_aix_libpath
10089else
10090  if test ${lt_cv_aix_libpath_+y}
10091then :
10092  printf %s "(cached) " >&6
10093else $as_nop
10094  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10095/* end confdefs.h.  */
10096
10097int
10098main (void)
10099{
10100
10101  ;
10102  return 0;
10103}
10104_ACEOF
10105if ac_fn_c_try_link "$LINENO"
10106then :
10107
10108  lt_aix_libpath_sed='
10109      /Import File Strings/,/^$/ {
10110	  /^0/ {
10111	      s/^0  *\([^ ]*\) *$/\1/
10112	      p
10113	  }
10114      }'
10115  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10116  # Check for a 64-bit object if we didn't find anything.
10117  if test -z "$lt_cv_aix_libpath_"; then
10118    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10119  fi
10120fi
10121rm -f core conftest.err conftest.$ac_objext conftest.beam \
10122    conftest$ac_exeext conftest.$ac_ext
10123  if test -z "$lt_cv_aix_libpath_"; then
10124    lt_cv_aix_libpath_=/usr/lib:/lib
10125  fi
10126
10127fi
10128
10129  aix_libpath=$lt_cv_aix_libpath_
10130fi
10131
10132        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10133        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
10134      else
10135	if test ia64 = "$host_cpu"; then
10136	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10137	  allow_undefined_flag="-z nodefs"
10138	  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"
10139	else
10140	 # Determine the default libpath from the value encoded in an
10141	 # empty executable.
10142	 if test set = "${lt_cv_aix_libpath+set}"; then
10143  aix_libpath=$lt_cv_aix_libpath
10144else
10145  if test ${lt_cv_aix_libpath_+y}
10146then :
10147  printf %s "(cached) " >&6
10148else $as_nop
10149  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10150/* end confdefs.h.  */
10151
10152int
10153main (void)
10154{
10155
10156  ;
10157  return 0;
10158}
10159_ACEOF
10160if ac_fn_c_try_link "$LINENO"
10161then :
10162
10163  lt_aix_libpath_sed='
10164      /Import File Strings/,/^$/ {
10165	  /^0/ {
10166	      s/^0  *\([^ ]*\) *$/\1/
10167	      p
10168	  }
10169      }'
10170  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10171  # Check for a 64-bit object if we didn't find anything.
10172  if test -z "$lt_cv_aix_libpath_"; then
10173    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10174  fi
10175fi
10176rm -f core conftest.err conftest.$ac_objext conftest.beam \
10177    conftest$ac_exeext conftest.$ac_ext
10178  if test -z "$lt_cv_aix_libpath_"; then
10179    lt_cv_aix_libpath_=/usr/lib:/lib
10180  fi
10181
10182fi
10183
10184  aix_libpath=$lt_cv_aix_libpath_
10185fi
10186
10187	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10188	  # Warning - without using the other run time loading flags,
10189	  # -berok will link without error, but may produce a broken library.
10190	  no_undefined_flag=' $wl-bernotok'
10191	  allow_undefined_flag=' $wl-berok'
10192	  if test yes = "$with_gnu_ld"; then
10193	    # We only use this code for GNU lds that support --whole-archive.
10194	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10195	  else
10196	    # Exported symbols can be pulled into shared objects from archives
10197	    whole_archive_flag_spec='$convenience'
10198	  fi
10199	  archive_cmds_need_lc=yes
10200	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10201	  # -brtl affects multiple linker settings, -berok does not and is overridden later
10202	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10203	  if test svr4 != "$with_aix_soname"; then
10204	    # This is similar to how AIX traditionally builds its shared libraries.
10205	    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'
10206	  fi
10207	  if test aix != "$with_aix_soname"; then
10208	    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'
10209	  else
10210	    # used by -dlpreopen to get the symbols
10211	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10212	  fi
10213	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10214	fi
10215      fi
10216      ;;
10217
10218    amigaos*)
10219      case $host_cpu in
10220      powerpc)
10221            # see comment about AmigaOS4 .so support
10222            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10223            archive_expsym_cmds=''
10224        ;;
10225      m68k)
10226            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)'
10227            hardcode_libdir_flag_spec='-L$libdir'
10228            hardcode_minus_L=yes
10229        ;;
10230      esac
10231      ;;
10232
10233    bsdi[45]*)
10234      export_dynamic_flag_spec=-rdynamic
10235      ;;
10236
10237    cygwin* | mingw* | pw32* | cegcc*)
10238      # When not using gcc, we currently assume that we are using
10239      # Microsoft Visual C++ or Intel C++ Compiler.
10240      # hardcode_libdir_flag_spec is actually meaningless, as there is
10241      # no search path for DLLs.
10242      case $cc_basename in
10243      cl* | icl*)
10244	# Native MSVC or ICC
10245	hardcode_libdir_flag_spec=' '
10246	allow_undefined_flag=unsupported
10247	always_export_symbols=yes
10248	file_list_spec='@'
10249	# Tell ltmain to make .lib files, not .a files.
10250	libext=lib
10251	# Tell ltmain to make .dll files, not .so files.
10252	shrext_cmds=.dll
10253	# FIXME: Setting linknames here is a bad hack.
10254	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10255	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10256            cp "$export_symbols" "$output_objdir/$soname.def";
10257            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10258          else
10259            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10260          fi~
10261          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10262          linknames='
10263	# The linker will not automatically build a static lib if we build a DLL.
10264	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10265	enable_shared_with_static_runtimes=yes
10266	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10267	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10268	# Don't use ranlib
10269	old_postinstall_cmds='chmod 644 $oldlib'
10270	postlink_cmds='lt_outputfile="@OUTPUT@"~
10271          lt_tool_outputfile="@TOOL_OUTPUT@"~
10272          case $lt_outputfile in
10273            *.exe|*.EXE) ;;
10274            *)
10275              lt_outputfile=$lt_outputfile.exe
10276              lt_tool_outputfile=$lt_tool_outputfile.exe
10277              ;;
10278          esac~
10279          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10280            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10281            $RM "$lt_outputfile.manifest";
10282          fi'
10283	;;
10284      *)
10285	# Assume MSVC and ICC wrapper
10286	hardcode_libdir_flag_spec=' '
10287	allow_undefined_flag=unsupported
10288	# Tell ltmain to make .lib files, not .a files.
10289	libext=lib
10290	# Tell ltmain to make .dll files, not .so files.
10291	shrext_cmds=.dll
10292	# FIXME: Setting linknames here is a bad hack.
10293	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10294	# The linker will automatically build a .lib file if we build a DLL.
10295	old_archive_from_new_cmds='true'
10296	# FIXME: Should let the user specify the lib program.
10297	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10298	enable_shared_with_static_runtimes=yes
10299	;;
10300      esac
10301      ;;
10302
10303    darwin* | rhapsody*)
10304
10305
10306  archive_cmds_need_lc=no
10307  hardcode_direct=no
10308  hardcode_automatic=yes
10309  hardcode_shlibpath_var=unsupported
10310  if test yes = "$lt_cv_ld_force_load"; then
10311    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\"`'
10312
10313  else
10314    whole_archive_flag_spec=''
10315  fi
10316  link_all_deplibs=yes
10317  allow_undefined_flag=$_lt_dar_allow_undefined
10318  case $cc_basename in
10319     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10320     *) _lt_dar_can_shared=$GCC ;;
10321  esac
10322  if test yes = "$_lt_dar_can_shared"; then
10323    output_verbose_link_cmd=func_echo_all
10324    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10325    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10326    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"
10327    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"
10328
10329  else
10330  ld_shlibs=no
10331  fi
10332
10333      ;;
10334
10335    dgux*)
10336      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10337      hardcode_libdir_flag_spec='-L$libdir'
10338      hardcode_shlibpath_var=no
10339      ;;
10340
10341    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10342    # support.  Future versions do this automatically, but an explicit c++rt0.o
10343    # does not break anything, and helps significantly (at the cost of a little
10344    # extra space).
10345    freebsd2.2*)
10346      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10347      hardcode_libdir_flag_spec='-R$libdir'
10348      hardcode_direct=yes
10349      hardcode_shlibpath_var=no
10350      ;;
10351
10352    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10353    freebsd2.*)
10354      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10355      hardcode_direct=yes
10356      hardcode_minus_L=yes
10357      hardcode_shlibpath_var=no
10358      ;;
10359
10360    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10361    freebsd* | dragonfly* | midnightbsd*)
10362      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10363      hardcode_libdir_flag_spec='-R$libdir'
10364      hardcode_direct=yes
10365      hardcode_shlibpath_var=no
10366      ;;
10367
10368    hpux9*)
10369      if test yes = "$GCC"; then
10370	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'
10371      else
10372	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'
10373      fi
10374      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10375      hardcode_libdir_separator=:
10376      hardcode_direct=yes
10377
10378      # hardcode_minus_L: Not really in the search PATH,
10379      # but as the default location of the library.
10380      hardcode_minus_L=yes
10381      export_dynamic_flag_spec='$wl-E'
10382      ;;
10383
10384    hpux10*)
10385      if test yes,no = "$GCC,$with_gnu_ld"; then
10386	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10387      else
10388	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10389      fi
10390      if test no = "$with_gnu_ld"; then
10391	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10392	hardcode_libdir_separator=:
10393	hardcode_direct=yes
10394	hardcode_direct_absolute=yes
10395	export_dynamic_flag_spec='$wl-E'
10396	# hardcode_minus_L: Not really in the search PATH,
10397	# but as the default location of the library.
10398	hardcode_minus_L=yes
10399      fi
10400      ;;
10401
10402    hpux11*)
10403      if test yes,no = "$GCC,$with_gnu_ld"; then
10404	case $host_cpu in
10405	hppa*64*)
10406	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10407	  ;;
10408	ia64*)
10409	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10410	  ;;
10411	*)
10412	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10413	  ;;
10414	esac
10415      else
10416	case $host_cpu in
10417	hppa*64*)
10418	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10419	  ;;
10420	ia64*)
10421	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10422	  ;;
10423	*)
10424
10425	  # Older versions of the 11.00 compiler do not understand -b yet
10426	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10427	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10428printf %s "checking if $CC understands -b... " >&6; }
10429if test ${lt_cv_prog_compiler__b+y}
10430then :
10431  printf %s "(cached) " >&6
10432else $as_nop
10433  lt_cv_prog_compiler__b=no
10434   save_LDFLAGS=$LDFLAGS
10435   LDFLAGS="$LDFLAGS -b"
10436   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10437   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10438     # The linker can only warn and ignore the option if not recognized
10439     # So say no if there are warnings
10440     if test -s conftest.err; then
10441       # Append any errors to the config.log.
10442       cat conftest.err 1>&5
10443       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10444       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10445       if diff conftest.exp conftest.er2 >/dev/null; then
10446         lt_cv_prog_compiler__b=yes
10447       fi
10448     else
10449       lt_cv_prog_compiler__b=yes
10450     fi
10451   fi
10452   $RM -r conftest*
10453   LDFLAGS=$save_LDFLAGS
10454
10455fi
10456{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10457printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10458
10459if test yes = "$lt_cv_prog_compiler__b"; then
10460    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10461else
10462    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10463fi
10464
10465	  ;;
10466	esac
10467      fi
10468      if test no = "$with_gnu_ld"; then
10469	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10470	hardcode_libdir_separator=:
10471
10472	case $host_cpu in
10473	hppa*64*|ia64*)
10474	  hardcode_direct=no
10475	  hardcode_shlibpath_var=no
10476	  ;;
10477	*)
10478	  hardcode_direct=yes
10479	  hardcode_direct_absolute=yes
10480	  export_dynamic_flag_spec='$wl-E'
10481
10482	  # hardcode_minus_L: Not really in the search PATH,
10483	  # but as the default location of the library.
10484	  hardcode_minus_L=yes
10485	  ;;
10486	esac
10487      fi
10488      ;;
10489
10490    irix5* | irix6* | nonstopux*)
10491      if test yes = "$GCC"; then
10492	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'
10493	# Try to use the -exported_symbol ld option, if it does not
10494	# work, assume that -exports_file does not work either and
10495	# implicitly export all symbols.
10496	# This should be the same for all languages, so no per-tag cache variable.
10497	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10498printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10499if test ${lt_cv_irix_exported_symbol+y}
10500then :
10501  printf %s "(cached) " >&6
10502else $as_nop
10503  save_LDFLAGS=$LDFLAGS
10504	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10505	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10506/* end confdefs.h.  */
10507int foo (void) { return 0; }
10508_ACEOF
10509if ac_fn_c_try_link "$LINENO"
10510then :
10511  lt_cv_irix_exported_symbol=yes
10512else $as_nop
10513  lt_cv_irix_exported_symbol=no
10514fi
10515rm -f core conftest.err conftest.$ac_objext conftest.beam \
10516    conftest$ac_exeext conftest.$ac_ext
10517           LDFLAGS=$save_LDFLAGS
10518fi
10519{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10520printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
10521	if test yes = "$lt_cv_irix_exported_symbol"; then
10522          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'
10523	fi
10524      else
10525	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'
10526	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'
10527      fi
10528      archive_cmds_need_lc='no'
10529      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10530      hardcode_libdir_separator=:
10531      inherit_rpath=yes
10532      link_all_deplibs=yes
10533      ;;
10534
10535    linux*)
10536      case $cc_basename in
10537      tcc*)
10538	# Fabrice Bellard et al's Tiny C Compiler
10539	ld_shlibs=yes
10540	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10541	;;
10542      esac
10543      ;;
10544
10545    netbsd*)
10546      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10547	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10548      else
10549	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10550      fi
10551      hardcode_libdir_flag_spec='-R$libdir'
10552      hardcode_direct=yes
10553      hardcode_shlibpath_var=no
10554      ;;
10555
10556    newsos6)
10557      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10558      hardcode_direct=yes
10559      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10560      hardcode_libdir_separator=:
10561      hardcode_shlibpath_var=no
10562      ;;
10563
10564    *nto* | *qnx*)
10565      ;;
10566
10567    openbsd* | bitrig*)
10568      if test -f /usr/libexec/ld.so; then
10569	hardcode_direct=yes
10570	hardcode_shlibpath_var=no
10571	hardcode_direct_absolute=yes
10572	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10573	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10574	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10575	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10576	  export_dynamic_flag_spec='$wl-E'
10577	else
10578	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10579	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10580	fi
10581      else
10582	ld_shlibs=no
10583      fi
10584      ;;
10585
10586    os2*)
10587      hardcode_libdir_flag_spec='-L$libdir'
10588      hardcode_minus_L=yes
10589      allow_undefined_flag=unsupported
10590      shrext_cmds=.dll
10591      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10592	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10593	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10594	$ECHO EXPORTS >> $output_objdir/$libname.def~
10595	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10596	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10597	emximp -o $lib $output_objdir/$libname.def'
10598      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10599	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10600	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10601	$ECHO EXPORTS >> $output_objdir/$libname.def~
10602	prefix_cmds="$SED"~
10603	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10604	  prefix_cmds="$prefix_cmds -e 1d";
10605	fi~
10606	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10607	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10608	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10609	emximp -o $lib $output_objdir/$libname.def'
10610      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10611      enable_shared_with_static_runtimes=yes
10612      file_list_spec='@'
10613      ;;
10614
10615    osf3*)
10616      if test yes = "$GCC"; then
10617	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10618	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'
10619      else
10620	allow_undefined_flag=' -expect_unresolved \*'
10621	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'
10622      fi
10623      archive_cmds_need_lc='no'
10624      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10625      hardcode_libdir_separator=:
10626      ;;
10627
10628    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10629      if test yes = "$GCC"; then
10630	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10631	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'
10632	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10633      else
10634	allow_undefined_flag=' -expect_unresolved \*'
10635	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'
10636	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~
10637          $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'
10638
10639	# Both c and cxx compiler support -rpath directly
10640	hardcode_libdir_flag_spec='-rpath $libdir'
10641      fi
10642      archive_cmds_need_lc='no'
10643      hardcode_libdir_separator=:
10644      ;;
10645
10646    solaris*)
10647      no_undefined_flag=' -z defs'
10648      if test yes = "$GCC"; then
10649	wlarc='$wl'
10650	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10651	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10652          $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'
10653      else
10654	case `$CC -V 2>&1` in
10655	*"Compilers 5.0"*)
10656	  wlarc=''
10657	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10658	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10659            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10660	  ;;
10661	*)
10662	  wlarc='$wl'
10663	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10664	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10665            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10666	  ;;
10667	esac
10668      fi
10669      hardcode_libdir_flag_spec='-R$libdir'
10670      hardcode_shlibpath_var=no
10671      case $host_os in
10672      solaris2.[0-5] | solaris2.[0-5].*) ;;
10673      *)
10674	# The compiler driver will combine and reorder linker options,
10675	# but understands '-z linker_flag'.  GCC discards it without '$wl',
10676	# but is careful enough not to reorder.
10677	# Supported since Solaris 2.6 (maybe 2.5.1?)
10678	if test yes = "$GCC"; then
10679	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10680	else
10681	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10682	fi
10683	;;
10684      esac
10685      link_all_deplibs=yes
10686      ;;
10687
10688    sunos4*)
10689      if test sequent = "$host_vendor"; then
10690	# Use $CC to link under sequent, because it throws in some extra .o
10691	# files that make .init and .fini sections work.
10692	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10693      else
10694	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10695      fi
10696      hardcode_libdir_flag_spec='-L$libdir'
10697      hardcode_direct=yes
10698      hardcode_minus_L=yes
10699      hardcode_shlibpath_var=no
10700      ;;
10701
10702    sysv4)
10703      case $host_vendor in
10704	sni)
10705	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10706	  hardcode_direct=yes # is this really true???
10707	;;
10708	siemens)
10709	  ## LD is ld it makes a PLAMLIB
10710	  ## CC just makes a GrossModule.
10711	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10712	  reload_cmds='$CC -r -o $output$reload_objs'
10713	  hardcode_direct=no
10714        ;;
10715	motorola)
10716	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10717	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10718	;;
10719      esac
10720      runpath_var='LD_RUN_PATH'
10721      hardcode_shlibpath_var=no
10722      ;;
10723
10724    sysv4.3*)
10725      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10726      hardcode_shlibpath_var=no
10727      export_dynamic_flag_spec='-Bexport'
10728      ;;
10729
10730    sysv4*MP*)
10731      if test -d /usr/nec; then
10732	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10733	hardcode_shlibpath_var=no
10734	runpath_var=LD_RUN_PATH
10735	hardcode_runpath_var=yes
10736	ld_shlibs=yes
10737      fi
10738      ;;
10739
10740    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10741      no_undefined_flag='$wl-z,text'
10742      archive_cmds_need_lc=no
10743      hardcode_shlibpath_var=no
10744      runpath_var='LD_RUN_PATH'
10745
10746      if test yes = "$GCC"; then
10747	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10748	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10749      else
10750	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10751	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10752      fi
10753      ;;
10754
10755    sysv5* | sco3.2v5* | sco5v6*)
10756      # Note: We CANNOT use -z defs as we might desire, because we do not
10757      # link with -lc, and that would cause any symbols used from libc to
10758      # always be unresolved, which means just about no library would
10759      # ever link correctly.  If we're not using GNU ld we use -z text
10760      # though, which does catch some bad symbols but isn't as heavy-handed
10761      # as -z defs.
10762      no_undefined_flag='$wl-z,text'
10763      allow_undefined_flag='$wl-z,nodefs'
10764      archive_cmds_need_lc=no
10765      hardcode_shlibpath_var=no
10766      hardcode_libdir_flag_spec='$wl-R,$libdir'
10767      hardcode_libdir_separator=':'
10768      link_all_deplibs=yes
10769      export_dynamic_flag_spec='$wl-Bexport'
10770      runpath_var='LD_RUN_PATH'
10771
10772      if test yes = "$GCC"; then
10773	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10774	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10775      else
10776	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10777	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10778      fi
10779      ;;
10780
10781    uts4*)
10782      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10783      hardcode_libdir_flag_spec='-L$libdir'
10784      hardcode_shlibpath_var=no
10785      ;;
10786
10787    *)
10788      ld_shlibs=no
10789      ;;
10790    esac
10791
10792    if test sni = "$host_vendor"; then
10793      case $host in
10794      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10795	export_dynamic_flag_spec='$wl-Blargedynsym'
10796	;;
10797      esac
10798    fi
10799  fi
10800
10801{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10802printf "%s\n" "$ld_shlibs" >&6; }
10803test no = "$ld_shlibs" && can_build_shared=no
10804
10805with_gnu_ld=$with_gnu_ld
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821#
10822# Do we need to explicitly link libc?
10823#
10824case "x$archive_cmds_need_lc" in
10825x|xyes)
10826  # Assume -lc should be added
10827  archive_cmds_need_lc=yes
10828
10829  if test yes,yes = "$GCC,$enable_shared"; then
10830    case $archive_cmds in
10831    *'~'*)
10832      # FIXME: we may have to deal with multi-command sequences.
10833      ;;
10834    '$CC '*)
10835      # Test whether the compiler implicitly links with -lc since on some
10836      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10837      # to ld, don't add -lc before -lgcc.
10838      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10839printf %s "checking whether -lc should be explicitly linked in... " >&6; }
10840if test ${lt_cv_archive_cmds_need_lc+y}
10841then :
10842  printf %s "(cached) " >&6
10843else $as_nop
10844  $RM conftest*
10845	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10846
10847	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10848  (eval $ac_compile) 2>&5
10849  ac_status=$?
10850  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10851  test $ac_status = 0; } 2>conftest.err; then
10852	  soname=conftest
10853	  lib=conftest
10854	  libobjs=conftest.$ac_objext
10855	  deplibs=
10856	  wl=$lt_prog_compiler_wl
10857	  pic_flag=$lt_prog_compiler_pic
10858	  compiler_flags=-v
10859	  linker_flags=-v
10860	  verstring=
10861	  output_objdir=.
10862	  libname=conftest
10863	  lt_save_allow_undefined_flag=$allow_undefined_flag
10864	  allow_undefined_flag=
10865	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10866  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10867  ac_status=$?
10868  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10869  test $ac_status = 0; }
10870	  then
10871	    lt_cv_archive_cmds_need_lc=no
10872	  else
10873	    lt_cv_archive_cmds_need_lc=yes
10874	  fi
10875	  allow_undefined_flag=$lt_save_allow_undefined_flag
10876	else
10877	  cat conftest.err 1>&5
10878	fi
10879	$RM conftest*
10880
10881fi
10882{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10883printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
10884      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10885      ;;
10886    esac
10887  fi
10888  ;;
10889esac
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11043printf %s "checking dynamic linker characteristics... " >&6; }
11044
11045if test yes = "$GCC"; then
11046  case $host_os in
11047    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11048    *) lt_awk_arg='/^libraries:/' ;;
11049  esac
11050  case $host_os in
11051    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11052    *) lt_sed_strip_eq='s|=/|/|g' ;;
11053  esac
11054  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11055  case $lt_search_path_spec in
11056  *\;*)
11057    # if the path contains ";" then we assume it to be the separator
11058    # otherwise default to the standard path separator (i.e. ":") - it is
11059    # assumed that no part of a normal pathname contains ";" but that should
11060    # okay in the real world where ";" in dirpaths is itself problematic.
11061    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11062    ;;
11063  *)
11064    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11065    ;;
11066  esac
11067  # Ok, now we have the path, separated by spaces, we can step through it
11068  # and add multilib dir if necessary...
11069  lt_tmp_lt_search_path_spec=
11070  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11071  # ...but if some path component already ends with the multilib dir we assume
11072  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11073  case "$lt_multi_os_dir; $lt_search_path_spec " in
11074  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11075    lt_multi_os_dir=
11076    ;;
11077  esac
11078  for lt_sys_path in $lt_search_path_spec; do
11079    if test -d "$lt_sys_path$lt_multi_os_dir"; then
11080      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11081    elif test -n "$lt_multi_os_dir"; then
11082      test -d "$lt_sys_path" && \
11083	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11084    fi
11085  done
11086  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11087BEGIN {RS = " "; FS = "/|\n";} {
11088  lt_foo = "";
11089  lt_count = 0;
11090  for (lt_i = NF; lt_i > 0; lt_i--) {
11091    if ($lt_i != "" && $lt_i != ".") {
11092      if ($lt_i == "..") {
11093        lt_count++;
11094      } else {
11095        if (lt_count == 0) {
11096          lt_foo = "/" $lt_i lt_foo;
11097        } else {
11098          lt_count--;
11099        }
11100      }
11101    }
11102  }
11103  if (lt_foo != "") { lt_freq[lt_foo]++; }
11104  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11105}'`
11106  # AWK program above erroneously prepends '/' to C:/dos/paths
11107  # for these hosts.
11108  case $host_os in
11109    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11110      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11111  esac
11112  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11113else
11114  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11115fi
11116library_names_spec=
11117libname_spec='lib$name'
11118soname_spec=
11119shrext_cmds=.so
11120postinstall_cmds=
11121postuninstall_cmds=
11122finish_cmds=
11123finish_eval=
11124shlibpath_var=
11125shlibpath_overrides_runpath=unknown
11126version_type=none
11127dynamic_linker="$host_os ld.so"
11128sys_lib_dlsearch_path_spec="/lib /usr/lib"
11129need_lib_prefix=unknown
11130hardcode_into_libs=no
11131
11132# when you set need_version to no, make sure it does not cause -set_version
11133# flags to be left without arguments
11134need_version=unknown
11135
11136
11137
11138case $host_os in
11139aix3*)
11140  version_type=linux # correct to gnu/linux during the next big refactor
11141  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11142  shlibpath_var=LIBPATH
11143
11144  # AIX 3 has no versioning support, so we append a major version to the name.
11145  soname_spec='$libname$release$shared_ext$major'
11146  ;;
11147
11148aix[4-9]*)
11149  version_type=linux # correct to gnu/linux during the next big refactor
11150  need_lib_prefix=no
11151  need_version=no
11152  hardcode_into_libs=yes
11153  if test ia64 = "$host_cpu"; then
11154    # AIX 5 supports IA64
11155    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11156    shlibpath_var=LD_LIBRARY_PATH
11157  else
11158    # With GCC up to 2.95.x, collect2 would create an import file
11159    # for dependence libraries.  The import file would start with
11160    # the line '#! .'.  This would cause the generated library to
11161    # depend on '.', always an invalid library.  This was fixed in
11162    # development snapshots of GCC prior to 3.0.
11163    case $host_os in
11164      aix4 | aix4.[01] | aix4.[01].*)
11165      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11166	   echo ' yes '
11167	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11168	:
11169      else
11170	can_build_shared=no
11171      fi
11172      ;;
11173    esac
11174    # Using Import Files as archive members, it is possible to support
11175    # filename-based versioning of shared library archives on AIX. While
11176    # this would work for both with and without runtime linking, it will
11177    # prevent static linking of such archives. So we do filename-based
11178    # shared library versioning with .so extension only, which is used
11179    # when both runtime linking and shared linking is enabled.
11180    # Unfortunately, runtime linking may impact performance, so we do
11181    # not want this to be the default eventually. Also, we use the
11182    # versioned .so libs for executables only if there is the -brtl
11183    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11184    # To allow for filename-based versioning support, we need to create
11185    # libNAME.so.V as an archive file, containing:
11186    # *) an Import File, referring to the versioned filename of the
11187    #    archive as well as the shared archive member, telling the
11188    #    bitwidth (32 or 64) of that shared object, and providing the
11189    #    list of exported symbols of that shared object, eventually
11190    #    decorated with the 'weak' keyword
11191    # *) the shared object with the F_LOADONLY flag set, to really avoid
11192    #    it being seen by the linker.
11193    # At run time we better use the real file rather than another symlink,
11194    # but for link time we create the symlink libNAME.so -> libNAME.so.V
11195
11196    case $with_aix_soname,$aix_use_runtimelinking in
11197    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11198    # soname into executable. Probably we can add versioning support to
11199    # collect2, so additional links can be useful in future.
11200    aix,yes) # traditional libtool
11201      dynamic_linker='AIX unversionable lib.so'
11202      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11203      # instead of lib<name>.a to let people know that these are not
11204      # typical AIX shared libraries.
11205      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11206      ;;
11207    aix,no) # traditional AIX only
11208      dynamic_linker='AIX lib.a(lib.so.V)'
11209      # We preserve .a as extension for shared libraries through AIX4.2
11210      # and later when we are not doing run time linking.
11211      library_names_spec='$libname$release.a $libname.a'
11212      soname_spec='$libname$release$shared_ext$major'
11213      ;;
11214    svr4,*) # full svr4 only
11215      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11216      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11217      # We do not specify a path in Import Files, so LIBPATH fires.
11218      shlibpath_overrides_runpath=yes
11219      ;;
11220    *,yes) # both, prefer svr4
11221      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11222      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11223      # unpreferred sharedlib libNAME.a needs extra handling
11224      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"'
11225      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"'
11226      # We do not specify a path in Import Files, so LIBPATH fires.
11227      shlibpath_overrides_runpath=yes
11228      ;;
11229    *,no) # both, prefer aix
11230      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11231      library_names_spec='$libname$release.a $libname.a'
11232      soname_spec='$libname$release$shared_ext$major'
11233      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11234      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)'
11235      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"'
11236      ;;
11237    esac
11238    shlibpath_var=LIBPATH
11239  fi
11240  ;;
11241
11242amigaos*)
11243  case $host_cpu in
11244  powerpc)
11245    # Since July 2007 AmigaOS4 officially supports .so libraries.
11246    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11247    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11248    ;;
11249  m68k)
11250    library_names_spec='$libname.ixlibrary $libname.a'
11251    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11252    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'
11253    ;;
11254  esac
11255  ;;
11256
11257beos*)
11258  library_names_spec='$libname$shared_ext'
11259  dynamic_linker="$host_os ld.so"
11260  shlibpath_var=LIBRARY_PATH
11261  ;;
11262
11263bsdi[45]*)
11264  version_type=linux # correct to gnu/linux during the next big refactor
11265  need_version=no
11266  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11267  soname_spec='$libname$release$shared_ext$major'
11268  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11269  shlibpath_var=LD_LIBRARY_PATH
11270  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11271  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11272  # the default ld.so.conf also contains /usr/contrib/lib and
11273  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11274  # libtool to hard-code these into programs
11275  ;;
11276
11277cygwin* | mingw* | pw32* | cegcc*)
11278  version_type=windows
11279  shrext_cmds=.dll
11280  need_version=no
11281  need_lib_prefix=no
11282
11283  case $GCC,$cc_basename in
11284  yes,*)
11285    # gcc
11286    library_names_spec='$libname.dll.a'
11287    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11288    postinstall_cmds='base_file=`basename \$file`~
11289      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11290      dldir=$destdir/`dirname \$dlpath`~
11291      test -d \$dldir || mkdir -p \$dldir~
11292      $install_prog $dir/$dlname \$dldir/$dlname~
11293      chmod a+x \$dldir/$dlname~
11294      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11295        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11296      fi'
11297    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11298      dlpath=$dir/\$dldll~
11299       $RM \$dlpath'
11300    shlibpath_overrides_runpath=yes
11301
11302    case $host_os in
11303    cygwin*)
11304      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11305      soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11306
11307      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11308      ;;
11309    mingw* | cegcc*)
11310      # MinGW DLLs use traditional 'lib' prefix
11311      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11312      ;;
11313    pw32*)
11314      # pw32 DLLs use 'pw' prefix rather than 'lib'
11315      library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11316      ;;
11317    esac
11318    dynamic_linker='Win32 ld.exe'
11319    ;;
11320
11321  *,cl* | *,icl*)
11322    # Native MSVC or ICC
11323    libname_spec='$name'
11324    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11325    library_names_spec='$libname.dll.lib'
11326
11327    case $build_os in
11328    mingw*)
11329      sys_lib_search_path_spec=
11330      lt_save_ifs=$IFS
11331      IFS=';'
11332      for lt_path in $LIB
11333      do
11334        IFS=$lt_save_ifs
11335        # Let DOS variable expansion print the short 8.3 style file name.
11336        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11337        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11338      done
11339      IFS=$lt_save_ifs
11340      # Convert to MSYS style.
11341      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11342      ;;
11343    cygwin*)
11344      # Convert to unix form, then to dos form, then back to unix form
11345      # but this time dos style (no spaces!) so that the unix form looks
11346      # like /cygdrive/c/PROGRA~1:/cygdr...
11347      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11348      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11349      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11350      ;;
11351    *)
11352      sys_lib_search_path_spec=$LIB
11353      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11354        # It is most probably a Windows format PATH.
11355        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11356      else
11357        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11358      fi
11359      # FIXME: find the short name or the path components, as spaces are
11360      # common. (e.g. "Program Files" -> "PROGRA~1")
11361      ;;
11362    esac
11363
11364    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11365    postinstall_cmds='base_file=`basename \$file`~
11366      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11367      dldir=$destdir/`dirname \$dlpath`~
11368      test -d \$dldir || mkdir -p \$dldir~
11369      $install_prog $dir/$dlname \$dldir/$dlname'
11370    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11371      dlpath=$dir/\$dldll~
11372       $RM \$dlpath'
11373    shlibpath_overrides_runpath=yes
11374    dynamic_linker='Win32 link.exe'
11375    ;;
11376
11377  *)
11378    # Assume MSVC and ICC wrapper
11379    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11380    dynamic_linker='Win32 ld.exe'
11381    ;;
11382  esac
11383  # FIXME: first we should search . and the directory the executable is in
11384  shlibpath_var=PATH
11385  ;;
11386
11387darwin* | rhapsody*)
11388  dynamic_linker="$host_os dyld"
11389  version_type=darwin
11390  need_lib_prefix=no
11391  need_version=no
11392  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11393  soname_spec='$libname$release$major$shared_ext'
11394  shlibpath_overrides_runpath=yes
11395  shlibpath_var=DYLD_LIBRARY_PATH
11396  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11397
11398  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11399  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11400  ;;
11401
11402dgux*)
11403  version_type=linux # correct to gnu/linux during the next big refactor
11404  need_lib_prefix=no
11405  need_version=no
11406  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11407  soname_spec='$libname$release$shared_ext$major'
11408  shlibpath_var=LD_LIBRARY_PATH
11409  ;;
11410
11411freebsd* | dragonfly* | midnightbsd*)
11412  # DragonFly does not have aout.  When/if they implement a new
11413  # versioning mechanism, adjust this.
11414  if test -x /usr/bin/objformat; then
11415    objformat=`/usr/bin/objformat`
11416  else
11417    case $host_os in
11418    freebsd[23].*) objformat=aout ;;
11419    *) objformat=elf ;;
11420    esac
11421  fi
11422  version_type=freebsd-$objformat
11423  case $version_type in
11424    freebsd-elf*)
11425      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11426      soname_spec='$libname$release$shared_ext$major'
11427      need_version=no
11428      need_lib_prefix=no
11429      ;;
11430    freebsd-*)
11431      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11432      need_version=yes
11433      ;;
11434  esac
11435  shlibpath_var=LD_LIBRARY_PATH
11436  case $host_os in
11437  freebsd2.*)
11438    shlibpath_overrides_runpath=yes
11439    ;;
11440  freebsd3.[01]* | freebsdelf3.[01]*)
11441    shlibpath_overrides_runpath=yes
11442    hardcode_into_libs=yes
11443    ;;
11444  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11445  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11446    shlibpath_overrides_runpath=no
11447    hardcode_into_libs=yes
11448    ;;
11449  *) # from 4.6 on, and DragonFly
11450    shlibpath_overrides_runpath=yes
11451    hardcode_into_libs=yes
11452    ;;
11453  esac
11454  ;;
11455
11456haiku*)
11457  version_type=linux # correct to gnu/linux during the next big refactor
11458  need_lib_prefix=no
11459  need_version=no
11460  dynamic_linker="$host_os runtime_loader"
11461  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11462  soname_spec='$libname$release$shared_ext$major'
11463  shlibpath_var=LIBRARY_PATH
11464  shlibpath_overrides_runpath=no
11465  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11466  hardcode_into_libs=yes
11467  ;;
11468
11469hpux9* | hpux10* | hpux11*)
11470  # Give a soname corresponding to the major version so that dld.sl refuses to
11471  # link against other versions.
11472  version_type=sunos
11473  need_lib_prefix=no
11474  need_version=no
11475  case $host_cpu in
11476  ia64*)
11477    shrext_cmds='.so'
11478    hardcode_into_libs=yes
11479    dynamic_linker="$host_os dld.so"
11480    shlibpath_var=LD_LIBRARY_PATH
11481    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11482    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11483    soname_spec='$libname$release$shared_ext$major'
11484    if test 32 = "$HPUX_IA64_MODE"; then
11485      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11486      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11487    else
11488      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11489      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11490    fi
11491    ;;
11492  hppa*64*)
11493    shrext_cmds='.sl'
11494    hardcode_into_libs=yes
11495    dynamic_linker="$host_os dld.sl"
11496    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11497    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11498    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11499    soname_spec='$libname$release$shared_ext$major'
11500    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11501    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11502    ;;
11503  *)
11504    shrext_cmds='.sl'
11505    dynamic_linker="$host_os dld.sl"
11506    shlibpath_var=SHLIB_PATH
11507    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11508    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11509    soname_spec='$libname$release$shared_ext$major'
11510    ;;
11511  esac
11512  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11513  postinstall_cmds='chmod 555 $lib'
11514  # or fails outright, so override atomically:
11515  install_override_mode=555
11516  ;;
11517
11518interix[3-9]*)
11519  version_type=linux # correct to gnu/linux during the next big refactor
11520  need_lib_prefix=no
11521  need_version=no
11522  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11523  soname_spec='$libname$release$shared_ext$major'
11524  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11525  shlibpath_var=LD_LIBRARY_PATH
11526  shlibpath_overrides_runpath=no
11527  hardcode_into_libs=yes
11528  ;;
11529
11530irix5* | irix6* | nonstopux*)
11531  case $host_os in
11532    nonstopux*) version_type=nonstopux ;;
11533    *)
11534	if test yes = "$lt_cv_prog_gnu_ld"; then
11535		version_type=linux # correct to gnu/linux during the next big refactor
11536	else
11537		version_type=irix
11538	fi ;;
11539  esac
11540  need_lib_prefix=no
11541  need_version=no
11542  soname_spec='$libname$release$shared_ext$major'
11543  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11544  case $host_os in
11545  irix5* | nonstopux*)
11546    libsuff= shlibsuff=
11547    ;;
11548  *)
11549    case $LD in # libtool.m4 will add one of these switches to LD
11550    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11551      libsuff= shlibsuff= libmagic=32-bit;;
11552    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11553      libsuff=32 shlibsuff=N32 libmagic=N32;;
11554    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11555      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11556    *) libsuff= shlibsuff= libmagic=never-match;;
11557    esac
11558    ;;
11559  esac
11560  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11561  shlibpath_overrides_runpath=no
11562  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11563  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11564  hardcode_into_libs=yes
11565  ;;
11566
11567# No shared lib support for Linux oldld, aout, or coff.
11568linux*oldld* | linux*aout* | linux*coff*)
11569  dynamic_linker=no
11570  ;;
11571
11572linux*android*)
11573  version_type=none # Android doesn't support versioned libraries.
11574  need_lib_prefix=no
11575  need_version=no
11576  library_names_spec='$libname$release$shared_ext'
11577  soname_spec='$libname$release$shared_ext'
11578  finish_cmds=
11579  shlibpath_var=LD_LIBRARY_PATH
11580  shlibpath_overrides_runpath=yes
11581
11582  # This implies no fast_install, which is unacceptable.
11583  # Some rework will be needed to allow for fast_install
11584  # before this can be enabled.
11585  hardcode_into_libs=yes
11586
11587  dynamic_linker='Android linker'
11588  # Don't embed -rpath directories since the linker doesn't support them.
11589  hardcode_libdir_flag_spec='-L$libdir'
11590  ;;
11591
11592# This must be glibc/ELF.
11593linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11594  version_type=linux # correct to gnu/linux during the next big refactor
11595  need_lib_prefix=no
11596  need_version=no
11597  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11598  soname_spec='$libname$release$shared_ext$major'
11599  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11600  shlibpath_var=LD_LIBRARY_PATH
11601  shlibpath_overrides_runpath=no
11602
11603  # Some binutils ld are patched to set DT_RUNPATH
11604  if test ${lt_cv_shlibpath_overrides_runpath+y}
11605then :
11606  printf %s "(cached) " >&6
11607else $as_nop
11608  lt_cv_shlibpath_overrides_runpath=no
11609    save_LDFLAGS=$LDFLAGS
11610    save_libdir=$libdir
11611    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11612	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11613    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11614/* end confdefs.h.  */
11615
11616int
11617main (void)
11618{
11619
11620  ;
11621  return 0;
11622}
11623_ACEOF
11624if ac_fn_c_try_link "$LINENO"
11625then :
11626  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
11627then :
11628  lt_cv_shlibpath_overrides_runpath=yes
11629fi
11630fi
11631rm -f core conftest.err conftest.$ac_objext conftest.beam \
11632    conftest$ac_exeext conftest.$ac_ext
11633    LDFLAGS=$save_LDFLAGS
11634    libdir=$save_libdir
11635
11636fi
11637
11638  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11639
11640  # This implies no fast_install, which is unacceptable.
11641  # Some rework will be needed to allow for fast_install
11642  # before this can be enabled.
11643  hardcode_into_libs=yes
11644
11645  # Ideally, we could use ldconfig to report *all* directores which are
11646  # searched for libraries, however this is still not possible.  Aside from not
11647  # being certain /sbin/ldconfig is available, command
11648  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11649  # even though it is searched at run-time.  Try to do the best guess by
11650  # appending ld.so.conf contents (and includes) to the search path.
11651  if test -f /etc/ld.so.conf; then
11652    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' ' '`
11653    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11654  fi
11655
11656  # We used to test for /lib/ld.so.1 and disable shared libraries on
11657  # powerpc, because MkLinux only supported shared libraries with the
11658  # GNU dynamic linker.  Since this was broken with cross compilers,
11659  # most powerpc-linux boxes support dynamic linking these days and
11660  # people can always --disable-shared, the test was removed, and we
11661  # assume the GNU/Linux dynamic linker is in use.
11662  dynamic_linker='GNU/Linux ld.so'
11663  ;;
11664
11665netbsd*)
11666  version_type=sunos
11667  need_lib_prefix=no
11668  need_version=no
11669  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11670    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11671    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11672    dynamic_linker='NetBSD (a.out) ld.so'
11673  else
11674    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11675    soname_spec='$libname$release$shared_ext$major'
11676    dynamic_linker='NetBSD ld.elf_so'
11677  fi
11678  shlibpath_var=LD_LIBRARY_PATH
11679  shlibpath_overrides_runpath=yes
11680  hardcode_into_libs=yes
11681  ;;
11682
11683newsos6)
11684  version_type=linux # correct to gnu/linux during the next big refactor
11685  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11686  shlibpath_var=LD_LIBRARY_PATH
11687  shlibpath_overrides_runpath=yes
11688  ;;
11689
11690*nto* | *qnx*)
11691  version_type=qnx
11692  need_lib_prefix=no
11693  need_version=no
11694  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11695  soname_spec='$libname$release$shared_ext$major'
11696  shlibpath_var=LD_LIBRARY_PATH
11697  shlibpath_overrides_runpath=no
11698  hardcode_into_libs=yes
11699  dynamic_linker='ldqnx.so'
11700  ;;
11701
11702openbsd* | bitrig*)
11703  version_type=sunos
11704  sys_lib_dlsearch_path_spec=/usr/lib
11705  need_lib_prefix=no
11706  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11707    need_version=no
11708  else
11709    need_version=yes
11710  fi
11711  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11712  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11713  shlibpath_var=LD_LIBRARY_PATH
11714  shlibpath_overrides_runpath=yes
11715  ;;
11716
11717os2*)
11718  libname_spec='$name'
11719  version_type=windows
11720  shrext_cmds=.dll
11721  need_version=no
11722  need_lib_prefix=no
11723  # OS/2 can only load a DLL with a base name of 8 characters or less.
11724  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11725    v=$($ECHO $release$versuffix | tr -d .-);
11726    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11727    $ECHO $n$v`$shared_ext'
11728  library_names_spec='${libname}_dll.$libext'
11729  dynamic_linker='OS/2 ld.exe'
11730  shlibpath_var=BEGINLIBPATH
11731  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11732  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11733  postinstall_cmds='base_file=`basename \$file`~
11734    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11735    dldir=$destdir/`dirname \$dlpath`~
11736    test -d \$dldir || mkdir -p \$dldir~
11737    $install_prog $dir/$dlname \$dldir/$dlname~
11738    chmod a+x \$dldir/$dlname~
11739    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11740      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11741    fi'
11742  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11743    dlpath=$dir/\$dldll~
11744    $RM \$dlpath'
11745  ;;
11746
11747osf3* | osf4* | osf5*)
11748  version_type=osf
11749  need_lib_prefix=no
11750  need_version=no
11751  soname_spec='$libname$release$shared_ext$major'
11752  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11753  shlibpath_var=LD_LIBRARY_PATH
11754  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11755  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11756  ;;
11757
11758rdos*)
11759  dynamic_linker=no
11760  ;;
11761
11762solaris*)
11763  version_type=linux # correct to gnu/linux during the next big refactor
11764  need_lib_prefix=no
11765  need_version=no
11766  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11767  soname_spec='$libname$release$shared_ext$major'
11768  shlibpath_var=LD_LIBRARY_PATH
11769  shlibpath_overrides_runpath=yes
11770  hardcode_into_libs=yes
11771  # ldd complains unless libraries are executable
11772  postinstall_cmds='chmod +x $lib'
11773  ;;
11774
11775sunos4*)
11776  version_type=sunos
11777  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11778  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11779  shlibpath_var=LD_LIBRARY_PATH
11780  shlibpath_overrides_runpath=yes
11781  if test yes = "$with_gnu_ld"; then
11782    need_lib_prefix=no
11783  fi
11784  need_version=yes
11785  ;;
11786
11787sysv4 | sysv4.3*)
11788  version_type=linux # correct to gnu/linux during the next big refactor
11789  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11790  soname_spec='$libname$release$shared_ext$major'
11791  shlibpath_var=LD_LIBRARY_PATH
11792  case $host_vendor in
11793    sni)
11794      shlibpath_overrides_runpath=no
11795      need_lib_prefix=no
11796      runpath_var=LD_RUN_PATH
11797      ;;
11798    siemens)
11799      need_lib_prefix=no
11800      ;;
11801    motorola)
11802      need_lib_prefix=no
11803      need_version=no
11804      shlibpath_overrides_runpath=no
11805      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11806      ;;
11807  esac
11808  ;;
11809
11810sysv4*MP*)
11811  if test -d /usr/nec; then
11812    version_type=linux # correct to gnu/linux during the next big refactor
11813    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11814    soname_spec='$libname$shared_ext.$major'
11815    shlibpath_var=LD_LIBRARY_PATH
11816  fi
11817  ;;
11818
11819sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11820  version_type=sco
11821  need_lib_prefix=no
11822  need_version=no
11823  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11824  soname_spec='$libname$release$shared_ext$major'
11825  shlibpath_var=LD_LIBRARY_PATH
11826  shlibpath_overrides_runpath=yes
11827  hardcode_into_libs=yes
11828  if test yes = "$with_gnu_ld"; then
11829    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11830  else
11831    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11832    case $host_os in
11833      sco3.2v5*)
11834        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11835	;;
11836    esac
11837  fi
11838  sys_lib_dlsearch_path_spec='/usr/lib'
11839  ;;
11840
11841tpf*)
11842  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11843  version_type=linux # correct to gnu/linux during the next big refactor
11844  need_lib_prefix=no
11845  need_version=no
11846  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11847  shlibpath_var=LD_LIBRARY_PATH
11848  shlibpath_overrides_runpath=no
11849  hardcode_into_libs=yes
11850  ;;
11851
11852uts4*)
11853  version_type=linux # correct to gnu/linux during the next big refactor
11854  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11855  soname_spec='$libname$release$shared_ext$major'
11856  shlibpath_var=LD_LIBRARY_PATH
11857  ;;
11858
11859*)
11860  dynamic_linker=no
11861  ;;
11862esac
11863{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11864printf "%s\n" "$dynamic_linker" >&6; }
11865test no = "$dynamic_linker" && can_build_shared=no
11866
11867variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11868if test yes = "$GCC"; then
11869  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11870fi
11871
11872if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11873  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11874fi
11875
11876if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11877  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11878fi
11879
11880# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11881configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11882
11883# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11884func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11885
11886# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11887configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11986printf %s "checking how to hardcode library paths into programs... " >&6; }
11987hardcode_action=
11988if test -n "$hardcode_libdir_flag_spec" ||
11989   test -n "$runpath_var" ||
11990   test yes = "$hardcode_automatic"; then
11991
11992  # We can hardcode non-existent directories.
11993  if test no != "$hardcode_direct" &&
11994     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11995     # have to relink, otherwise we might link with an installed library
11996     # when we should be linking with a yet-to-be-installed one
11997     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11998     test no != "$hardcode_minus_L"; then
11999    # Linking always hardcodes the temporary library directory.
12000    hardcode_action=relink
12001  else
12002    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12003    hardcode_action=immediate
12004  fi
12005else
12006  # We cannot hardcode anything, or else we can only hardcode existing
12007  # directories.
12008  hardcode_action=unsupported
12009fi
12010{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12011printf "%s\n" "$hardcode_action" >&6; }
12012
12013if test relink = "$hardcode_action" ||
12014   test yes = "$inherit_rpath"; then
12015  # Fast installation is not supported
12016  enable_fast_install=no
12017elif test yes = "$shlibpath_overrides_runpath" ||
12018     test no = "$enable_shared"; then
12019  # Fast installation is not necessary
12020  enable_fast_install=needless
12021fi
12022
12023
12024
12025
12026
12027
12028  if test yes != "$enable_dlopen"; then
12029  enable_dlopen=unknown
12030  enable_dlopen_self=unknown
12031  enable_dlopen_self_static=unknown
12032else
12033  lt_cv_dlopen=no
12034  lt_cv_dlopen_libs=
12035
12036  case $host_os in
12037  beos*)
12038    lt_cv_dlopen=load_add_on
12039    lt_cv_dlopen_libs=
12040    lt_cv_dlopen_self=yes
12041    ;;
12042
12043  mingw* | pw32* | cegcc*)
12044    lt_cv_dlopen=LoadLibrary
12045    lt_cv_dlopen_libs=
12046    ;;
12047
12048  cygwin*)
12049    lt_cv_dlopen=dlopen
12050    lt_cv_dlopen_libs=
12051    ;;
12052
12053  darwin*)
12054    # if libdl is installed we need to link against it
12055    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12056printf %s "checking for dlopen in -ldl... " >&6; }
12057if test ${ac_cv_lib_dl_dlopen+y}
12058then :
12059  printf %s "(cached) " >&6
12060else $as_nop
12061  ac_check_lib_save_LIBS=$LIBS
12062LIBS="-ldl  $LIBS"
12063cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12064/* end confdefs.h.  */
12065
12066/* Override any GCC internal prototype to avoid an error.
12067   Use char because int might match the return type of a GCC
12068   builtin and then its argument prototype would still apply.  */
12069char dlopen ();
12070int
12071main (void)
12072{
12073return dlopen ();
12074  ;
12075  return 0;
12076}
12077_ACEOF
12078if ac_fn_c_try_link "$LINENO"
12079then :
12080  ac_cv_lib_dl_dlopen=yes
12081else $as_nop
12082  ac_cv_lib_dl_dlopen=no
12083fi
12084rm -f core conftest.err conftest.$ac_objext conftest.beam \
12085    conftest$ac_exeext conftest.$ac_ext
12086LIBS=$ac_check_lib_save_LIBS
12087fi
12088{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12089printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12090if test "x$ac_cv_lib_dl_dlopen" = xyes
12091then :
12092  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12093else $as_nop
12094
12095    lt_cv_dlopen=dyld
12096    lt_cv_dlopen_libs=
12097    lt_cv_dlopen_self=yes
12098
12099fi
12100
12101    ;;
12102
12103  tpf*)
12104    # Don't try to run any link tests for TPF.  We know it's impossible
12105    # because TPF is a cross-compiler, and we know how we open DSOs.
12106    lt_cv_dlopen=dlopen
12107    lt_cv_dlopen_libs=
12108    lt_cv_dlopen_self=no
12109    ;;
12110
12111  *)
12112    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12113if test "x$ac_cv_func_shl_load" = xyes
12114then :
12115  lt_cv_dlopen=shl_load
12116else $as_nop
12117  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12118printf %s "checking for shl_load in -ldld... " >&6; }
12119if test ${ac_cv_lib_dld_shl_load+y}
12120then :
12121  printf %s "(cached) " >&6
12122else $as_nop
12123  ac_check_lib_save_LIBS=$LIBS
12124LIBS="-ldld  $LIBS"
12125cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12126/* end confdefs.h.  */
12127
12128/* Override any GCC internal prototype to avoid an error.
12129   Use char because int might match the return type of a GCC
12130   builtin and then its argument prototype would still apply.  */
12131char shl_load ();
12132int
12133main (void)
12134{
12135return shl_load ();
12136  ;
12137  return 0;
12138}
12139_ACEOF
12140if ac_fn_c_try_link "$LINENO"
12141then :
12142  ac_cv_lib_dld_shl_load=yes
12143else $as_nop
12144  ac_cv_lib_dld_shl_load=no
12145fi
12146rm -f core conftest.err conftest.$ac_objext conftest.beam \
12147    conftest$ac_exeext conftest.$ac_ext
12148LIBS=$ac_check_lib_save_LIBS
12149fi
12150{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12151printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12152if test "x$ac_cv_lib_dld_shl_load" = xyes
12153then :
12154  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12155else $as_nop
12156  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12157if test "x$ac_cv_func_dlopen" = xyes
12158then :
12159  lt_cv_dlopen=dlopen
12160else $as_nop
12161  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12162printf %s "checking for dlopen in -ldl... " >&6; }
12163if test ${ac_cv_lib_dl_dlopen+y}
12164then :
12165  printf %s "(cached) " >&6
12166else $as_nop
12167  ac_check_lib_save_LIBS=$LIBS
12168LIBS="-ldl  $LIBS"
12169cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12170/* end confdefs.h.  */
12171
12172/* Override any GCC internal prototype to avoid an error.
12173   Use char because int might match the return type of a GCC
12174   builtin and then its argument prototype would still apply.  */
12175char dlopen ();
12176int
12177main (void)
12178{
12179return dlopen ();
12180  ;
12181  return 0;
12182}
12183_ACEOF
12184if ac_fn_c_try_link "$LINENO"
12185then :
12186  ac_cv_lib_dl_dlopen=yes
12187else $as_nop
12188  ac_cv_lib_dl_dlopen=no
12189fi
12190rm -f core conftest.err conftest.$ac_objext conftest.beam \
12191    conftest$ac_exeext conftest.$ac_ext
12192LIBS=$ac_check_lib_save_LIBS
12193fi
12194{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12195printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12196if test "x$ac_cv_lib_dl_dlopen" = xyes
12197then :
12198  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12199else $as_nop
12200  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12201printf %s "checking for dlopen in -lsvld... " >&6; }
12202if test ${ac_cv_lib_svld_dlopen+y}
12203then :
12204  printf %s "(cached) " >&6
12205else $as_nop
12206  ac_check_lib_save_LIBS=$LIBS
12207LIBS="-lsvld  $LIBS"
12208cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12209/* end confdefs.h.  */
12210
12211/* Override any GCC internal prototype to avoid an error.
12212   Use char because int might match the return type of a GCC
12213   builtin and then its argument prototype would still apply.  */
12214char dlopen ();
12215int
12216main (void)
12217{
12218return dlopen ();
12219  ;
12220  return 0;
12221}
12222_ACEOF
12223if ac_fn_c_try_link "$LINENO"
12224then :
12225  ac_cv_lib_svld_dlopen=yes
12226else $as_nop
12227  ac_cv_lib_svld_dlopen=no
12228fi
12229rm -f core conftest.err conftest.$ac_objext conftest.beam \
12230    conftest$ac_exeext conftest.$ac_ext
12231LIBS=$ac_check_lib_save_LIBS
12232fi
12233{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12234printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12235if test "x$ac_cv_lib_svld_dlopen" = xyes
12236then :
12237  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12238else $as_nop
12239  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12240printf %s "checking for dld_link in -ldld... " >&6; }
12241if test ${ac_cv_lib_dld_dld_link+y}
12242then :
12243  printf %s "(cached) " >&6
12244else $as_nop
12245  ac_check_lib_save_LIBS=$LIBS
12246LIBS="-ldld  $LIBS"
12247cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12248/* end confdefs.h.  */
12249
12250/* Override any GCC internal prototype to avoid an error.
12251   Use char because int might match the return type of a GCC
12252   builtin and then its argument prototype would still apply.  */
12253char dld_link ();
12254int
12255main (void)
12256{
12257return dld_link ();
12258  ;
12259  return 0;
12260}
12261_ACEOF
12262if ac_fn_c_try_link "$LINENO"
12263then :
12264  ac_cv_lib_dld_dld_link=yes
12265else $as_nop
12266  ac_cv_lib_dld_dld_link=no
12267fi
12268rm -f core conftest.err conftest.$ac_objext conftest.beam \
12269    conftest$ac_exeext conftest.$ac_ext
12270LIBS=$ac_check_lib_save_LIBS
12271fi
12272{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12273printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12274if test "x$ac_cv_lib_dld_dld_link" = xyes
12275then :
12276  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12277fi
12278
12279
12280fi
12281
12282
12283fi
12284
12285
12286fi
12287
12288
12289fi
12290
12291
12292fi
12293
12294    ;;
12295  esac
12296
12297  if test no = "$lt_cv_dlopen"; then
12298    enable_dlopen=no
12299  else
12300    enable_dlopen=yes
12301  fi
12302
12303  case $lt_cv_dlopen in
12304  dlopen)
12305    save_CPPFLAGS=$CPPFLAGS
12306    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12307
12308    save_LDFLAGS=$LDFLAGS
12309    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12310
12311    save_LIBS=$LIBS
12312    LIBS="$lt_cv_dlopen_libs $LIBS"
12313
12314    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12315printf %s "checking whether a program can dlopen itself... " >&6; }
12316if test ${lt_cv_dlopen_self+y}
12317then :
12318  printf %s "(cached) " >&6
12319else $as_nop
12320  	  if test yes = "$cross_compiling"; then :
12321  lt_cv_dlopen_self=cross
12322else
12323  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12324  lt_status=$lt_dlunknown
12325  cat > conftest.$ac_ext <<_LT_EOF
12326#line $LINENO "configure"
12327#include "confdefs.h"
12328
12329#if HAVE_DLFCN_H
12330#include <dlfcn.h>
12331#endif
12332
12333#include <stdio.h>
12334
12335#ifdef RTLD_GLOBAL
12336#  define LT_DLGLOBAL		RTLD_GLOBAL
12337#else
12338#  ifdef DL_GLOBAL
12339#    define LT_DLGLOBAL		DL_GLOBAL
12340#  else
12341#    define LT_DLGLOBAL		0
12342#  endif
12343#endif
12344
12345/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12346   find out it does not work in some platform. */
12347#ifndef LT_DLLAZY_OR_NOW
12348#  ifdef RTLD_LAZY
12349#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12350#  else
12351#    ifdef DL_LAZY
12352#      define LT_DLLAZY_OR_NOW		DL_LAZY
12353#    else
12354#      ifdef RTLD_NOW
12355#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12356#      else
12357#        ifdef DL_NOW
12358#          define LT_DLLAZY_OR_NOW	DL_NOW
12359#        else
12360#          define LT_DLLAZY_OR_NOW	0
12361#        endif
12362#      endif
12363#    endif
12364#  endif
12365#endif
12366
12367/* When -fvisibility=hidden is used, assume the code has been annotated
12368   correspondingly for the symbols needed.  */
12369#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12370int fnord () __attribute__((visibility("default")));
12371#endif
12372
12373int fnord () { return 42; }
12374int main ()
12375{
12376  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12377  int status = $lt_dlunknown;
12378
12379  if (self)
12380    {
12381      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12382      else
12383        {
12384	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12385          else puts (dlerror ());
12386	}
12387      /* dlclose (self); */
12388    }
12389  else
12390    puts (dlerror ());
12391
12392  return status;
12393}
12394_LT_EOF
12395  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12396  (eval $ac_link) 2>&5
12397  ac_status=$?
12398  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12399  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12400    (./conftest; exit; ) >&5 2>/dev/null
12401    lt_status=$?
12402    case x$lt_status in
12403      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12404      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12405      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12406    esac
12407  else :
12408    # compilation failed
12409    lt_cv_dlopen_self=no
12410  fi
12411fi
12412rm -fr conftest*
12413
12414
12415fi
12416{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12417printf "%s\n" "$lt_cv_dlopen_self" >&6; }
12418
12419    if test yes = "$lt_cv_dlopen_self"; then
12420      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12421      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12422printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
12423if test ${lt_cv_dlopen_self_static+y}
12424then :
12425  printf %s "(cached) " >&6
12426else $as_nop
12427  	  if test yes = "$cross_compiling"; then :
12428  lt_cv_dlopen_self_static=cross
12429else
12430  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12431  lt_status=$lt_dlunknown
12432  cat > conftest.$ac_ext <<_LT_EOF
12433#line $LINENO "configure"
12434#include "confdefs.h"
12435
12436#if HAVE_DLFCN_H
12437#include <dlfcn.h>
12438#endif
12439
12440#include <stdio.h>
12441
12442#ifdef RTLD_GLOBAL
12443#  define LT_DLGLOBAL		RTLD_GLOBAL
12444#else
12445#  ifdef DL_GLOBAL
12446#    define LT_DLGLOBAL		DL_GLOBAL
12447#  else
12448#    define LT_DLGLOBAL		0
12449#  endif
12450#endif
12451
12452/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12453   find out it does not work in some platform. */
12454#ifndef LT_DLLAZY_OR_NOW
12455#  ifdef RTLD_LAZY
12456#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12457#  else
12458#    ifdef DL_LAZY
12459#      define LT_DLLAZY_OR_NOW		DL_LAZY
12460#    else
12461#      ifdef RTLD_NOW
12462#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12463#      else
12464#        ifdef DL_NOW
12465#          define LT_DLLAZY_OR_NOW	DL_NOW
12466#        else
12467#          define LT_DLLAZY_OR_NOW	0
12468#        endif
12469#      endif
12470#    endif
12471#  endif
12472#endif
12473
12474/* When -fvisibility=hidden is used, assume the code has been annotated
12475   correspondingly for the symbols needed.  */
12476#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12477int fnord () __attribute__((visibility("default")));
12478#endif
12479
12480int fnord () { return 42; }
12481int main ()
12482{
12483  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12484  int status = $lt_dlunknown;
12485
12486  if (self)
12487    {
12488      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12489      else
12490        {
12491	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12492          else puts (dlerror ());
12493	}
12494      /* dlclose (self); */
12495    }
12496  else
12497    puts (dlerror ());
12498
12499  return status;
12500}
12501_LT_EOF
12502  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12503  (eval $ac_link) 2>&5
12504  ac_status=$?
12505  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12506  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12507    (./conftest; exit; ) >&5 2>/dev/null
12508    lt_status=$?
12509    case x$lt_status in
12510      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12511      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12512      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12513    esac
12514  else :
12515    # compilation failed
12516    lt_cv_dlopen_self_static=no
12517  fi
12518fi
12519rm -fr conftest*
12520
12521
12522fi
12523{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12524printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
12525    fi
12526
12527    CPPFLAGS=$save_CPPFLAGS
12528    LDFLAGS=$save_LDFLAGS
12529    LIBS=$save_LIBS
12530    ;;
12531  esac
12532
12533  case $lt_cv_dlopen_self in
12534  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12535  *) enable_dlopen_self=unknown ;;
12536  esac
12537
12538  case $lt_cv_dlopen_self_static in
12539  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12540  *) enable_dlopen_self_static=unknown ;;
12541  esac
12542fi
12543
12544
12545
12546
12547
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559
12560striplib=
12561old_striplib=
12562{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12563printf %s "checking whether stripping libraries is possible... " >&6; }
12564if test -z "$STRIP"; then
12565  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12566printf "%s\n" "no" >&6; }
12567else
12568  if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12569    old_striplib="$STRIP --strip-debug"
12570    striplib="$STRIP --strip-unneeded"
12571    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12572printf "%s\n" "yes" >&6; }
12573  else
12574    case $host_os in
12575    darwin*)
12576      # FIXME - insert some real tests, host_os isn't really good enough
12577      striplib="$STRIP -x"
12578      old_striplib="$STRIP -S"
12579      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12580printf "%s\n" "yes" >&6; }
12581      ;;
12582    freebsd*)
12583      if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
12584        old_striplib="$STRIP --strip-debug"
12585        striplib="$STRIP --strip-unneeded"
12586        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12587printf "%s\n" "yes" >&6; }
12588      else
12589        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12590printf "%s\n" "no" >&6; }
12591      fi
12592      ;;
12593    *)
12594      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12595printf "%s\n" "no" >&6; }
12596      ;;
12597    esac
12598  fi
12599fi
12600
12601
12602
12603
12604
12605
12606
12607
12608
12609
12610
12611
12612  # Report what library types will actually be built
12613  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12614printf %s "checking if libtool supports shared libraries... " >&6; }
12615  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12616printf "%s\n" "$can_build_shared" >&6; }
12617
12618  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12619printf %s "checking whether to build shared libraries... " >&6; }
12620  test no = "$can_build_shared" && enable_shared=no
12621
12622  # On AIX, shared libraries and static libraries use the same namespace, and
12623  # are all built from PIC.
12624  case $host_os in
12625  aix3*)
12626    test yes = "$enable_shared" && enable_static=no
12627    if test -n "$RANLIB"; then
12628      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12629      postinstall_cmds='$RANLIB $lib'
12630    fi
12631    ;;
12632
12633  aix[4-9]*)
12634    if test ia64 != "$host_cpu"; then
12635      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12636      yes,aix,yes) ;;			# shared object as lib.so file only
12637      yes,svr4,*) ;;			# shared object as lib.so archive member only
12638      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
12639      esac
12640    fi
12641    ;;
12642  esac
12643  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12644printf "%s\n" "$enable_shared" >&6; }
12645
12646  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12647printf %s "checking whether to build static libraries... " >&6; }
12648  # Make sure either enable_shared or enable_static is yes.
12649  test yes = "$enable_shared" || enable_static=yes
12650  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12651printf "%s\n" "$enable_static" >&6; }
12652
12653
12654
12655
12656fi
12657ac_ext=c
12658ac_cpp='$CPP $CPPFLAGS'
12659ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12660ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12661ac_compiler_gnu=$ac_cv_c_compiler_gnu
12662
12663CC=$lt_save_CC
12664
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678
12679        ac_config_commands="$ac_config_commands libtool"
12680
12681
12682
12683
12684# Only expand once:
12685
12686
12687
12688# Require X.Org macros 1.16 or later for XORG_MEMORY_CHECK_FLAGS
12689
12690
12691
12692
12693
12694
12695
12696
12697
12698
12699
12700{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
12701printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
12702if test ${ac_cv_c_undeclared_builtin_options+y}
12703then :
12704  printf %s "(cached) " >&6
12705else $as_nop
12706  ac_save_CFLAGS=$CFLAGS
12707   ac_cv_c_undeclared_builtin_options='cannot detect'
12708   for ac_arg in '' -fno-builtin; do
12709     CFLAGS="$ac_save_CFLAGS $ac_arg"
12710     # This test program should *not* compile successfully.
12711     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12712/* end confdefs.h.  */
12713
12714int
12715main (void)
12716{
12717(void) strchr;
12718  ;
12719  return 0;
12720}
12721_ACEOF
12722if ac_fn_c_try_compile "$LINENO"
12723then :
12724
12725else $as_nop
12726  # This test program should compile successfully.
12727        # No library function is consistently available on
12728        # freestanding implementations, so test against a dummy
12729        # declaration.  Include always-available headers on the
12730        # off chance that they somehow elicit warnings.
12731        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12732/* end confdefs.h.  */
12733#include <float.h>
12734#include <limits.h>
12735#include <stdarg.h>
12736#include <stddef.h>
12737extern void ac_decl (int, char *);
12738
12739int
12740main (void)
12741{
12742(void) ac_decl (0, (char *) 0);
12743  (void) ac_decl;
12744
12745  ;
12746  return 0;
12747}
12748_ACEOF
12749if ac_fn_c_try_compile "$LINENO"
12750then :
12751  if test x"$ac_arg" = x
12752then :
12753  ac_cv_c_undeclared_builtin_options='none needed'
12754else $as_nop
12755  ac_cv_c_undeclared_builtin_options=$ac_arg
12756fi
12757          break
12758fi
12759rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12760fi
12761rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12762    done
12763    CFLAGS=$ac_save_CFLAGS
12764
12765fi
12766{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
12767printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
12768  case $ac_cv_c_undeclared_builtin_options in #(
12769  'cannot detect') :
12770    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12771printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12772as_fn_error $? "cannot make $CC report undeclared builtins
12773See \`config.log' for more details" "$LINENO" 5; } ;; #(
12774  'none needed') :
12775    ac_c_undeclared_builtin_options='' ;; #(
12776  *) :
12777    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
12778esac
12779
12780
12781
12782
12783
12784ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
12785if test "x$ac_cv_have_decl___clang__" = xyes
12786then :
12787  CLANGCC="yes"
12788else $as_nop
12789  CLANGCC="no"
12790fi
12791ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
12792if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
12793then :
12794  INTELCC="yes"
12795else $as_nop
12796  INTELCC="no"
12797fi
12798ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
12799if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
12800then :
12801  SUNCC="yes"
12802else $as_nop
12803  SUNCC="no"
12804fi
12805
12806
12807
12808
12809
12810
12811
12812
12813if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12814	if test -n "$ac_tool_prefix"; then
12815  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12816set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12817{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12818printf %s "checking for $ac_word... " >&6; }
12819if test ${ac_cv_path_PKG_CONFIG+y}
12820then :
12821  printf %s "(cached) " >&6
12822else $as_nop
12823  case $PKG_CONFIG in
12824  [\\/]* | ?:[\\/]*)
12825  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12826  ;;
12827  *)
12828  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12829for as_dir in $PATH
12830do
12831  IFS=$as_save_IFS
12832  case $as_dir in #(((
12833    '') as_dir=./ ;;
12834    */) ;;
12835    *) as_dir=$as_dir/ ;;
12836  esac
12837    for ac_exec_ext in '' $ac_executable_extensions; do
12838  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12839    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
12840    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12841    break 2
12842  fi
12843done
12844  done
12845IFS=$as_save_IFS
12846
12847  ;;
12848esac
12849fi
12850PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12851if test -n "$PKG_CONFIG"; then
12852  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12853printf "%s\n" "$PKG_CONFIG" >&6; }
12854else
12855  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12856printf "%s\n" "no" >&6; }
12857fi
12858
12859
12860fi
12861if test -z "$ac_cv_path_PKG_CONFIG"; then
12862  ac_pt_PKG_CONFIG=$PKG_CONFIG
12863  # Extract the first word of "pkg-config", so it can be a program name with args.
12864set dummy pkg-config; ac_word=$2
12865{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12866printf %s "checking for $ac_word... " >&6; }
12867if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
12868then :
12869  printf %s "(cached) " >&6
12870else $as_nop
12871  case $ac_pt_PKG_CONFIG in
12872  [\\/]* | ?:[\\/]*)
12873  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12874  ;;
12875  *)
12876  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12877for as_dir in $PATH
12878do
12879  IFS=$as_save_IFS
12880  case $as_dir in #(((
12881    '') as_dir=./ ;;
12882    */) ;;
12883    *) as_dir=$as_dir/ ;;
12884  esac
12885    for ac_exec_ext in '' $ac_executable_extensions; do
12886  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12887    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
12888    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12889    break 2
12890  fi
12891done
12892  done
12893IFS=$as_save_IFS
12894
12895  ;;
12896esac
12897fi
12898ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12899if test -n "$ac_pt_PKG_CONFIG"; then
12900  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12901printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
12902else
12903  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12904printf "%s\n" "no" >&6; }
12905fi
12906
12907  if test "x$ac_pt_PKG_CONFIG" = x; then
12908    PKG_CONFIG=""
12909  else
12910    case $cross_compiling:$ac_tool_warned in
12911yes:)
12912{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12913printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12914ac_tool_warned=yes ;;
12915esac
12916    PKG_CONFIG=$ac_pt_PKG_CONFIG
12917  fi
12918else
12919  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12920fi
12921
12922fi
12923if test -n "$PKG_CONFIG"; then
12924	_pkg_min_version=0.9.0
12925	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12926printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12927	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12928		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12929printf "%s\n" "yes" >&6; }
12930	else
12931		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12932printf "%s\n" "no" >&6; }
12933		PKG_CONFIG=""
12934	fi
12935fi
12936
12937
12938
12939
12940
12941# Check whether --enable-selective-werror was given.
12942if test ${enable_selective_werror+y}
12943then :
12944  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
12945else $as_nop
12946  SELECTIVE_WERROR=yes
12947fi
12948
12949
12950
12951
12952
12953# -v is too short to test reliably with XORG_TESTSET_CFLAG
12954if test "x$SUNCC" = "xyes"; then
12955    BASE_CFLAGS="-v"
12956else
12957    BASE_CFLAGS=""
12958fi
12959
12960# This chunk of warnings were those that existed in the legacy CWARNFLAGS
12961
12962
12963
12964
12965
12966
12967
12968
12969
12970
12971
12972
12973
12974xorg_testset_save_CFLAGS="$CFLAGS"
12975
12976if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12977	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12978	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12979printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12980if test ${xorg_cv_cc_flag_unknown_warning_option+y}
12981then :
12982  printf %s "(cached) " >&6
12983else $as_nop
12984  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12985/* end confdefs.h.  */
12986int i;
12987_ACEOF
12988if ac_fn_c_try_compile "$LINENO"
12989then :
12990  xorg_cv_cc_flag_unknown_warning_option=yes
12991else $as_nop
12992  xorg_cv_cc_flag_unknown_warning_option=no
12993fi
12994rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12995fi
12996{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12997printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12998	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12999	CFLAGS="$xorg_testset_save_CFLAGS"
13000fi
13001
13002if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13003	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13004		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13005	fi
13006	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13007	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13008printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13009if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13010then :
13011  printf %s "(cached) " >&6
13012else $as_nop
13013  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13014/* end confdefs.h.  */
13015int i;
13016_ACEOF
13017if ac_fn_c_try_compile "$LINENO"
13018then :
13019  xorg_cv_cc_flag_unused_command_line_argument=yes
13020else $as_nop
13021  xorg_cv_cc_flag_unused_command_line_argument=no
13022fi
13023rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13024fi
13025{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13026printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13027	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13028	CFLAGS="$xorg_testset_save_CFLAGS"
13029fi
13030
13031found="no"
13032
13033	if test $found = "no" ; then
13034		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13035			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13036		fi
13037
13038		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13039			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13040		fi
13041
13042		CFLAGS="$CFLAGS -Wall"
13043
13044		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
13045printf %s "checking if $CC supports -Wall... " >&6; }
13046		cacheid=xorg_cv_cc_flag__Wall
13047		if eval test \${$cacheid+y}
13048then :
13049  printf %s "(cached) " >&6
13050else $as_nop
13051  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13052/* end confdefs.h.  */
13053int i;
13054int
13055main (void)
13056{
13057
13058  ;
13059  return 0;
13060}
13061_ACEOF
13062if ac_fn_c_try_link "$LINENO"
13063then :
13064  eval $cacheid=yes
13065else $as_nop
13066  eval $cacheid=no
13067fi
13068rm -f core conftest.err conftest.$ac_objext conftest.beam \
13069    conftest$ac_exeext conftest.$ac_ext
13070fi
13071
13072
13073		CFLAGS="$xorg_testset_save_CFLAGS"
13074
13075		eval supported=\$$cacheid
13076		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13077printf "%s\n" "$supported" >&6; }
13078		if test "$supported" = "yes" ; then
13079			BASE_CFLAGS="$BASE_CFLAGS -Wall"
13080			found="yes"
13081		fi
13082	fi
13083
13084
13085
13086
13087
13088
13089
13090
13091
13092
13093
13094
13095
13096
13097
13098xorg_testset_save_CFLAGS="$CFLAGS"
13099
13100if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13101	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13102	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13103printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13104if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13105then :
13106  printf %s "(cached) " >&6
13107else $as_nop
13108  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13109/* end confdefs.h.  */
13110int i;
13111_ACEOF
13112if ac_fn_c_try_compile "$LINENO"
13113then :
13114  xorg_cv_cc_flag_unknown_warning_option=yes
13115else $as_nop
13116  xorg_cv_cc_flag_unknown_warning_option=no
13117fi
13118rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13119fi
13120{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13121printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13122	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13123	CFLAGS="$xorg_testset_save_CFLAGS"
13124fi
13125
13126if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13127	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13128		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13129	fi
13130	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13131	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13132printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13133if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13134then :
13135  printf %s "(cached) " >&6
13136else $as_nop
13137  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13138/* end confdefs.h.  */
13139int i;
13140_ACEOF
13141if ac_fn_c_try_compile "$LINENO"
13142then :
13143  xorg_cv_cc_flag_unused_command_line_argument=yes
13144else $as_nop
13145  xorg_cv_cc_flag_unused_command_line_argument=no
13146fi
13147rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13148fi
13149{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13150printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13151	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13152	CFLAGS="$xorg_testset_save_CFLAGS"
13153fi
13154
13155found="no"
13156
13157	if test $found = "no" ; then
13158		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13159			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13160		fi
13161
13162		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13163			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13164		fi
13165
13166		CFLAGS="$CFLAGS -Wpointer-arith"
13167
13168		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
13169printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
13170		cacheid=xorg_cv_cc_flag__Wpointer_arith
13171		if eval test \${$cacheid+y}
13172then :
13173  printf %s "(cached) " >&6
13174else $as_nop
13175  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13176/* end confdefs.h.  */
13177int i;
13178int
13179main (void)
13180{
13181
13182  ;
13183  return 0;
13184}
13185_ACEOF
13186if ac_fn_c_try_link "$LINENO"
13187then :
13188  eval $cacheid=yes
13189else $as_nop
13190  eval $cacheid=no
13191fi
13192rm -f core conftest.err conftest.$ac_objext conftest.beam \
13193    conftest$ac_exeext conftest.$ac_ext
13194fi
13195
13196
13197		CFLAGS="$xorg_testset_save_CFLAGS"
13198
13199		eval supported=\$$cacheid
13200		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13201printf "%s\n" "$supported" >&6; }
13202		if test "$supported" = "yes" ; then
13203			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
13204			found="yes"
13205		fi
13206	fi
13207
13208
13209
13210
13211
13212
13213
13214
13215
13216
13217
13218
13219
13220
13221
13222xorg_testset_save_CFLAGS="$CFLAGS"
13223
13224if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13225	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13226	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13227printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13228if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13229then :
13230  printf %s "(cached) " >&6
13231else $as_nop
13232  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13233/* end confdefs.h.  */
13234int i;
13235_ACEOF
13236if ac_fn_c_try_compile "$LINENO"
13237then :
13238  xorg_cv_cc_flag_unknown_warning_option=yes
13239else $as_nop
13240  xorg_cv_cc_flag_unknown_warning_option=no
13241fi
13242rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13243fi
13244{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13245printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13246	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13247	CFLAGS="$xorg_testset_save_CFLAGS"
13248fi
13249
13250if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13251	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13252		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13253	fi
13254	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13255	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13256printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13257if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13258then :
13259  printf %s "(cached) " >&6
13260else $as_nop
13261  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13262/* end confdefs.h.  */
13263int i;
13264_ACEOF
13265if ac_fn_c_try_compile "$LINENO"
13266then :
13267  xorg_cv_cc_flag_unused_command_line_argument=yes
13268else $as_nop
13269  xorg_cv_cc_flag_unused_command_line_argument=no
13270fi
13271rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13272fi
13273{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13274printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13275	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13276	CFLAGS="$xorg_testset_save_CFLAGS"
13277fi
13278
13279found="no"
13280
13281	if test $found = "no" ; then
13282		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13283			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13284		fi
13285
13286		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13287			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13288		fi
13289
13290		CFLAGS="$CFLAGS -Wmissing-declarations"
13291
13292		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
13293printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
13294		cacheid=xorg_cv_cc_flag__Wmissing_declarations
13295		if eval test \${$cacheid+y}
13296then :
13297  printf %s "(cached) " >&6
13298else $as_nop
13299  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13300/* end confdefs.h.  */
13301int i;
13302int
13303main (void)
13304{
13305
13306  ;
13307  return 0;
13308}
13309_ACEOF
13310if ac_fn_c_try_link "$LINENO"
13311then :
13312  eval $cacheid=yes
13313else $as_nop
13314  eval $cacheid=no
13315fi
13316rm -f core conftest.err conftest.$ac_objext conftest.beam \
13317    conftest$ac_exeext conftest.$ac_ext
13318fi
13319
13320
13321		CFLAGS="$xorg_testset_save_CFLAGS"
13322
13323		eval supported=\$$cacheid
13324		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13325printf "%s\n" "$supported" >&6; }
13326		if test "$supported" = "yes" ; then
13327			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
13328			found="yes"
13329		fi
13330	fi
13331
13332
13333
13334
13335
13336
13337
13338
13339
13340
13341
13342
13343
13344
13345
13346xorg_testset_save_CFLAGS="$CFLAGS"
13347
13348if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13349	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13350	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13351printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13352if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13353then :
13354  printf %s "(cached) " >&6
13355else $as_nop
13356  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13357/* end confdefs.h.  */
13358int i;
13359_ACEOF
13360if ac_fn_c_try_compile "$LINENO"
13361then :
13362  xorg_cv_cc_flag_unknown_warning_option=yes
13363else $as_nop
13364  xorg_cv_cc_flag_unknown_warning_option=no
13365fi
13366rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13367fi
13368{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13369printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13370	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13371	CFLAGS="$xorg_testset_save_CFLAGS"
13372fi
13373
13374if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13375	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13376		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13377	fi
13378	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13379	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13380printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13381if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13382then :
13383  printf %s "(cached) " >&6
13384else $as_nop
13385  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13386/* end confdefs.h.  */
13387int i;
13388_ACEOF
13389if ac_fn_c_try_compile "$LINENO"
13390then :
13391  xorg_cv_cc_flag_unused_command_line_argument=yes
13392else $as_nop
13393  xorg_cv_cc_flag_unused_command_line_argument=no
13394fi
13395rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13396fi
13397{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13398printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13399	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13400	CFLAGS="$xorg_testset_save_CFLAGS"
13401fi
13402
13403found="no"
13404
13405	if test $found = "no" ; then
13406		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13407			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13408		fi
13409
13410		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13411			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13412		fi
13413
13414		CFLAGS="$CFLAGS -Wformat=2"
13415
13416		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
13417printf %s "checking if $CC supports -Wformat=2... " >&6; }
13418		cacheid=xorg_cv_cc_flag__Wformat_2
13419		if eval test \${$cacheid+y}
13420then :
13421  printf %s "(cached) " >&6
13422else $as_nop
13423  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13424/* end confdefs.h.  */
13425int i;
13426int
13427main (void)
13428{
13429
13430  ;
13431  return 0;
13432}
13433_ACEOF
13434if ac_fn_c_try_link "$LINENO"
13435then :
13436  eval $cacheid=yes
13437else $as_nop
13438  eval $cacheid=no
13439fi
13440rm -f core conftest.err conftest.$ac_objext conftest.beam \
13441    conftest$ac_exeext conftest.$ac_ext
13442fi
13443
13444
13445		CFLAGS="$xorg_testset_save_CFLAGS"
13446
13447		eval supported=\$$cacheid
13448		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13449printf "%s\n" "$supported" >&6; }
13450		if test "$supported" = "yes" ; then
13451			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
13452			found="yes"
13453		fi
13454	fi
13455
13456	if test $found = "no" ; then
13457		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13458			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13459		fi
13460
13461		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13462			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13463		fi
13464
13465		CFLAGS="$CFLAGS -Wformat"
13466
13467		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
13468printf %s "checking if $CC supports -Wformat... " >&6; }
13469		cacheid=xorg_cv_cc_flag__Wformat
13470		if eval test \${$cacheid+y}
13471then :
13472  printf %s "(cached) " >&6
13473else $as_nop
13474  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13475/* end confdefs.h.  */
13476int i;
13477int
13478main (void)
13479{
13480
13481  ;
13482  return 0;
13483}
13484_ACEOF
13485if ac_fn_c_try_link "$LINENO"
13486then :
13487  eval $cacheid=yes
13488else $as_nop
13489  eval $cacheid=no
13490fi
13491rm -f core conftest.err conftest.$ac_objext conftest.beam \
13492    conftest$ac_exeext conftest.$ac_ext
13493fi
13494
13495
13496		CFLAGS="$xorg_testset_save_CFLAGS"
13497
13498		eval supported=\$$cacheid
13499		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13500printf "%s\n" "$supported" >&6; }
13501		if test "$supported" = "yes" ; then
13502			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
13503			found="yes"
13504		fi
13505	fi
13506
13507
13508
13509
13510
13511
13512
13513
13514
13515
13516
13517
13518
13519
13520
13521
13522
13523xorg_testset_save_CFLAGS="$CFLAGS"
13524
13525if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13526	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13527	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13528printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13529if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13530then :
13531  printf %s "(cached) " >&6
13532else $as_nop
13533  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13534/* end confdefs.h.  */
13535int i;
13536_ACEOF
13537if ac_fn_c_try_compile "$LINENO"
13538then :
13539  xorg_cv_cc_flag_unknown_warning_option=yes
13540else $as_nop
13541  xorg_cv_cc_flag_unknown_warning_option=no
13542fi
13543rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13544fi
13545{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13546printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13547	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13548	CFLAGS="$xorg_testset_save_CFLAGS"
13549fi
13550
13551if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13552	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13553		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13554	fi
13555	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13556	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13557printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13558if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13559then :
13560  printf %s "(cached) " >&6
13561else $as_nop
13562  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13563/* end confdefs.h.  */
13564int i;
13565_ACEOF
13566if ac_fn_c_try_compile "$LINENO"
13567then :
13568  xorg_cv_cc_flag_unused_command_line_argument=yes
13569else $as_nop
13570  xorg_cv_cc_flag_unused_command_line_argument=no
13571fi
13572rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13573fi
13574{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13575printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13576	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13577	CFLAGS="$xorg_testset_save_CFLAGS"
13578fi
13579
13580found="no"
13581
13582	if test $found = "no" ; then
13583		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13584			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13585		fi
13586
13587		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13588			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13589		fi
13590
13591		CFLAGS="$CFLAGS -Wstrict-prototypes"
13592
13593		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
13594printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
13595		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
13596		if eval test \${$cacheid+y}
13597then :
13598  printf %s "(cached) " >&6
13599else $as_nop
13600  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13601/* end confdefs.h.  */
13602int i;
13603int
13604main (void)
13605{
13606
13607  ;
13608  return 0;
13609}
13610_ACEOF
13611if ac_fn_c_try_link "$LINENO"
13612then :
13613  eval $cacheid=yes
13614else $as_nop
13615  eval $cacheid=no
13616fi
13617rm -f core conftest.err conftest.$ac_objext conftest.beam \
13618    conftest$ac_exeext conftest.$ac_ext
13619fi
13620
13621
13622		CFLAGS="$xorg_testset_save_CFLAGS"
13623
13624		eval supported=\$$cacheid
13625		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13626printf "%s\n" "$supported" >&6; }
13627		if test "$supported" = "yes" ; then
13628			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
13629			found="yes"
13630		fi
13631	fi
13632
13633
13634
13635
13636
13637
13638
13639
13640
13641
13642
13643
13644
13645
13646
13647xorg_testset_save_CFLAGS="$CFLAGS"
13648
13649if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13650	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13651	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13652printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13653if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13654then :
13655  printf %s "(cached) " >&6
13656else $as_nop
13657  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13658/* end confdefs.h.  */
13659int i;
13660_ACEOF
13661if ac_fn_c_try_compile "$LINENO"
13662then :
13663  xorg_cv_cc_flag_unknown_warning_option=yes
13664else $as_nop
13665  xorg_cv_cc_flag_unknown_warning_option=no
13666fi
13667rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13668fi
13669{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13670printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13671	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13672	CFLAGS="$xorg_testset_save_CFLAGS"
13673fi
13674
13675if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13676	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13677		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13678	fi
13679	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13680	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13681printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13682if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13683then :
13684  printf %s "(cached) " >&6
13685else $as_nop
13686  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13687/* end confdefs.h.  */
13688int i;
13689_ACEOF
13690if ac_fn_c_try_compile "$LINENO"
13691then :
13692  xorg_cv_cc_flag_unused_command_line_argument=yes
13693else $as_nop
13694  xorg_cv_cc_flag_unused_command_line_argument=no
13695fi
13696rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13697fi
13698{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13699printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13700	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13701	CFLAGS="$xorg_testset_save_CFLAGS"
13702fi
13703
13704found="no"
13705
13706	if test $found = "no" ; then
13707		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13708			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13709		fi
13710
13711		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13712			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13713		fi
13714
13715		CFLAGS="$CFLAGS -Wmissing-prototypes"
13716
13717		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
13718printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
13719		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
13720		if eval test \${$cacheid+y}
13721then :
13722  printf %s "(cached) " >&6
13723else $as_nop
13724  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13725/* end confdefs.h.  */
13726int i;
13727int
13728main (void)
13729{
13730
13731  ;
13732  return 0;
13733}
13734_ACEOF
13735if ac_fn_c_try_link "$LINENO"
13736then :
13737  eval $cacheid=yes
13738else $as_nop
13739  eval $cacheid=no
13740fi
13741rm -f core conftest.err conftest.$ac_objext conftest.beam \
13742    conftest$ac_exeext conftest.$ac_ext
13743fi
13744
13745
13746		CFLAGS="$xorg_testset_save_CFLAGS"
13747
13748		eval supported=\$$cacheid
13749		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13750printf "%s\n" "$supported" >&6; }
13751		if test "$supported" = "yes" ; then
13752			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
13753			found="yes"
13754		fi
13755	fi
13756
13757
13758
13759
13760
13761
13762
13763
13764
13765
13766
13767
13768
13769
13770
13771xorg_testset_save_CFLAGS="$CFLAGS"
13772
13773if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13774	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13775	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13776printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13777if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13778then :
13779  printf %s "(cached) " >&6
13780else $as_nop
13781  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13782/* end confdefs.h.  */
13783int i;
13784_ACEOF
13785if ac_fn_c_try_compile "$LINENO"
13786then :
13787  xorg_cv_cc_flag_unknown_warning_option=yes
13788else $as_nop
13789  xorg_cv_cc_flag_unknown_warning_option=no
13790fi
13791rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13792fi
13793{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13794printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13795	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13796	CFLAGS="$xorg_testset_save_CFLAGS"
13797fi
13798
13799if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13800	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13801		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13802	fi
13803	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13804	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13805printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13806if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13807then :
13808  printf %s "(cached) " >&6
13809else $as_nop
13810  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13811/* end confdefs.h.  */
13812int i;
13813_ACEOF
13814if ac_fn_c_try_compile "$LINENO"
13815then :
13816  xorg_cv_cc_flag_unused_command_line_argument=yes
13817else $as_nop
13818  xorg_cv_cc_flag_unused_command_line_argument=no
13819fi
13820rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13821fi
13822{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13823printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13824	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13825	CFLAGS="$xorg_testset_save_CFLAGS"
13826fi
13827
13828found="no"
13829
13830	if test $found = "no" ; then
13831		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13832			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13833		fi
13834
13835		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13836			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13837		fi
13838
13839		CFLAGS="$CFLAGS -Wnested-externs"
13840
13841		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
13842printf %s "checking if $CC supports -Wnested-externs... " >&6; }
13843		cacheid=xorg_cv_cc_flag__Wnested_externs
13844		if eval test \${$cacheid+y}
13845then :
13846  printf %s "(cached) " >&6
13847else $as_nop
13848  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13849/* end confdefs.h.  */
13850int i;
13851int
13852main (void)
13853{
13854
13855  ;
13856  return 0;
13857}
13858_ACEOF
13859if ac_fn_c_try_link "$LINENO"
13860then :
13861  eval $cacheid=yes
13862else $as_nop
13863  eval $cacheid=no
13864fi
13865rm -f core conftest.err conftest.$ac_objext conftest.beam \
13866    conftest$ac_exeext conftest.$ac_ext
13867fi
13868
13869
13870		CFLAGS="$xorg_testset_save_CFLAGS"
13871
13872		eval supported=\$$cacheid
13873		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13874printf "%s\n" "$supported" >&6; }
13875		if test "$supported" = "yes" ; then
13876			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
13877			found="yes"
13878		fi
13879	fi
13880
13881
13882
13883
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894
13895xorg_testset_save_CFLAGS="$CFLAGS"
13896
13897if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13898	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13899	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13900printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13901if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13902then :
13903  printf %s "(cached) " >&6
13904else $as_nop
13905  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13906/* end confdefs.h.  */
13907int i;
13908_ACEOF
13909if ac_fn_c_try_compile "$LINENO"
13910then :
13911  xorg_cv_cc_flag_unknown_warning_option=yes
13912else $as_nop
13913  xorg_cv_cc_flag_unknown_warning_option=no
13914fi
13915rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13916fi
13917{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13918printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13919	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13920	CFLAGS="$xorg_testset_save_CFLAGS"
13921fi
13922
13923if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13924	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13925		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13926	fi
13927	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13928	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13929printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13930if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13931then :
13932  printf %s "(cached) " >&6
13933else $as_nop
13934  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13935/* end confdefs.h.  */
13936int i;
13937_ACEOF
13938if ac_fn_c_try_compile "$LINENO"
13939then :
13940  xorg_cv_cc_flag_unused_command_line_argument=yes
13941else $as_nop
13942  xorg_cv_cc_flag_unused_command_line_argument=no
13943fi
13944rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13945fi
13946{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13947printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13948	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13949	CFLAGS="$xorg_testset_save_CFLAGS"
13950fi
13951
13952found="no"
13953
13954	if test $found = "no" ; then
13955		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13956			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13957		fi
13958
13959		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13960			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13961		fi
13962
13963		CFLAGS="$CFLAGS -Wbad-function-cast"
13964
13965		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
13966printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
13967		cacheid=xorg_cv_cc_flag__Wbad_function_cast
13968		if eval test \${$cacheid+y}
13969then :
13970  printf %s "(cached) " >&6
13971else $as_nop
13972  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13973/* end confdefs.h.  */
13974int i;
13975int
13976main (void)
13977{
13978
13979  ;
13980  return 0;
13981}
13982_ACEOF
13983if ac_fn_c_try_link "$LINENO"
13984then :
13985  eval $cacheid=yes
13986else $as_nop
13987  eval $cacheid=no
13988fi
13989rm -f core conftest.err conftest.$ac_objext conftest.beam \
13990    conftest$ac_exeext conftest.$ac_ext
13991fi
13992
13993
13994		CFLAGS="$xorg_testset_save_CFLAGS"
13995
13996		eval supported=\$$cacheid
13997		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13998printf "%s\n" "$supported" >&6; }
13999		if test "$supported" = "yes" ; then
14000			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
14001			found="yes"
14002		fi
14003	fi
14004
14005
14006
14007
14008
14009
14010
14011
14012
14013
14014
14015
14016
14017
14018
14019xorg_testset_save_CFLAGS="$CFLAGS"
14020
14021if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14022	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14023	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14024printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14025if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14026then :
14027  printf %s "(cached) " >&6
14028else $as_nop
14029  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14030/* end confdefs.h.  */
14031int i;
14032_ACEOF
14033if ac_fn_c_try_compile "$LINENO"
14034then :
14035  xorg_cv_cc_flag_unknown_warning_option=yes
14036else $as_nop
14037  xorg_cv_cc_flag_unknown_warning_option=no
14038fi
14039rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14040fi
14041{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14042printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14043	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14044	CFLAGS="$xorg_testset_save_CFLAGS"
14045fi
14046
14047if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14048	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14049		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14050	fi
14051	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14052	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14053printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14054if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14055then :
14056  printf %s "(cached) " >&6
14057else $as_nop
14058  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14059/* end confdefs.h.  */
14060int i;
14061_ACEOF
14062if ac_fn_c_try_compile "$LINENO"
14063then :
14064  xorg_cv_cc_flag_unused_command_line_argument=yes
14065else $as_nop
14066  xorg_cv_cc_flag_unused_command_line_argument=no
14067fi
14068rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14069fi
14070{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14071printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14072	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14073	CFLAGS="$xorg_testset_save_CFLAGS"
14074fi
14075
14076found="no"
14077
14078	if test $found = "no" ; then
14079		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14080			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14081		fi
14082
14083		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14084			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14085		fi
14086
14087		CFLAGS="$CFLAGS -Wold-style-definition"
14088
14089		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
14090printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
14091		cacheid=xorg_cv_cc_flag__Wold_style_definition
14092		if eval test \${$cacheid+y}
14093then :
14094  printf %s "(cached) " >&6
14095else $as_nop
14096  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14097/* end confdefs.h.  */
14098int i;
14099int
14100main (void)
14101{
14102
14103  ;
14104  return 0;
14105}
14106_ACEOF
14107if ac_fn_c_try_link "$LINENO"
14108then :
14109  eval $cacheid=yes
14110else $as_nop
14111  eval $cacheid=no
14112fi
14113rm -f core conftest.err conftest.$ac_objext conftest.beam \
14114    conftest$ac_exeext conftest.$ac_ext
14115fi
14116
14117
14118		CFLAGS="$xorg_testset_save_CFLAGS"
14119
14120		eval supported=\$$cacheid
14121		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14122printf "%s\n" "$supported" >&6; }
14123		if test "$supported" = "yes" ; then
14124			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
14125			found="yes"
14126		fi
14127	fi
14128
14129	if test $found = "no" ; then
14130		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14131			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14132		fi
14133
14134		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14135			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14136		fi
14137
14138		CFLAGS="$CFLAGS -fd"
14139
14140		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
14141printf %s "checking if $CC supports -fd... " >&6; }
14142		cacheid=xorg_cv_cc_flag__fd
14143		if eval test \${$cacheid+y}
14144then :
14145  printf %s "(cached) " >&6
14146else $as_nop
14147  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14148/* end confdefs.h.  */
14149int i;
14150int
14151main (void)
14152{
14153
14154  ;
14155  return 0;
14156}
14157_ACEOF
14158if ac_fn_c_try_link "$LINENO"
14159then :
14160  eval $cacheid=yes
14161else $as_nop
14162  eval $cacheid=no
14163fi
14164rm -f core conftest.err conftest.$ac_objext conftest.beam \
14165    conftest$ac_exeext conftest.$ac_ext
14166fi
14167
14168
14169		CFLAGS="$xorg_testset_save_CFLAGS"
14170
14171		eval supported=\$$cacheid
14172		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14173printf "%s\n" "$supported" >&6; }
14174		if test "$supported" = "yes" ; then
14175			BASE_CFLAGS="$BASE_CFLAGS -fd"
14176			found="yes"
14177		fi
14178	fi
14179
14180
14181
14182
14183
14184
14185
14186
14187
14188
14189
14190
14191
14192
14193
14194xorg_testset_save_CFLAGS="$CFLAGS"
14195
14196if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14197	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14198	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14199printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14200if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14201then :
14202  printf %s "(cached) " >&6
14203else $as_nop
14204  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14205/* end confdefs.h.  */
14206int i;
14207_ACEOF
14208if ac_fn_c_try_compile "$LINENO"
14209then :
14210  xorg_cv_cc_flag_unknown_warning_option=yes
14211else $as_nop
14212  xorg_cv_cc_flag_unknown_warning_option=no
14213fi
14214rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14215fi
14216{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14217printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14218	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14219	CFLAGS="$xorg_testset_save_CFLAGS"
14220fi
14221
14222if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14223	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14224		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14225	fi
14226	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14227	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14228printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14229if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14230then :
14231  printf %s "(cached) " >&6
14232else $as_nop
14233  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14234/* end confdefs.h.  */
14235int i;
14236_ACEOF
14237if ac_fn_c_try_compile "$LINENO"
14238then :
14239  xorg_cv_cc_flag_unused_command_line_argument=yes
14240else $as_nop
14241  xorg_cv_cc_flag_unused_command_line_argument=no
14242fi
14243rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14244fi
14245{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14246printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14247	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14248	CFLAGS="$xorg_testset_save_CFLAGS"
14249fi
14250
14251found="no"
14252
14253	if test $found = "no" ; then
14254		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14255			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14256		fi
14257
14258		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14259			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14260		fi
14261
14262		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
14263
14264		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
14265printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
14266		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
14267		if eval test \${$cacheid+y}
14268then :
14269  printf %s "(cached) " >&6
14270else $as_nop
14271  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14272/* end confdefs.h.  */
14273int i;
14274int
14275main (void)
14276{
14277
14278  ;
14279  return 0;
14280}
14281_ACEOF
14282if ac_fn_c_try_link "$LINENO"
14283then :
14284  eval $cacheid=yes
14285else $as_nop
14286  eval $cacheid=no
14287fi
14288rm -f core conftest.err conftest.$ac_objext conftest.beam \
14289    conftest$ac_exeext conftest.$ac_ext
14290fi
14291
14292
14293		CFLAGS="$xorg_testset_save_CFLAGS"
14294
14295		eval supported=\$$cacheid
14296		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14297printf "%s\n" "$supported" >&6; }
14298		if test "$supported" = "yes" ; then
14299			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
14300			found="yes"
14301		fi
14302	fi
14303
14304
14305
14306
14307
14308# This chunk adds additional warnings that could catch undesired effects.
14309
14310
14311
14312
14313
14314
14315
14316
14317
14318
14319
14320
14321
14322xorg_testset_save_CFLAGS="$CFLAGS"
14323
14324if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14325	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14326	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14327printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14328if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14329then :
14330  printf %s "(cached) " >&6
14331else $as_nop
14332  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14333/* end confdefs.h.  */
14334int i;
14335_ACEOF
14336if ac_fn_c_try_compile "$LINENO"
14337then :
14338  xorg_cv_cc_flag_unknown_warning_option=yes
14339else $as_nop
14340  xorg_cv_cc_flag_unknown_warning_option=no
14341fi
14342rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14343fi
14344{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14345printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14346	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14347	CFLAGS="$xorg_testset_save_CFLAGS"
14348fi
14349
14350if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14351	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14352		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14353	fi
14354	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14355	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14356printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14357if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14358then :
14359  printf %s "(cached) " >&6
14360else $as_nop
14361  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14362/* end confdefs.h.  */
14363int i;
14364_ACEOF
14365if ac_fn_c_try_compile "$LINENO"
14366then :
14367  xorg_cv_cc_flag_unused_command_line_argument=yes
14368else $as_nop
14369  xorg_cv_cc_flag_unused_command_line_argument=no
14370fi
14371rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14372fi
14373{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14374printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14375	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14376	CFLAGS="$xorg_testset_save_CFLAGS"
14377fi
14378
14379found="no"
14380
14381	if test $found = "no" ; then
14382		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14383			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14384		fi
14385
14386		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14387			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14388		fi
14389
14390		CFLAGS="$CFLAGS -Wunused"
14391
14392		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
14393printf %s "checking if $CC supports -Wunused... " >&6; }
14394		cacheid=xorg_cv_cc_flag__Wunused
14395		if eval test \${$cacheid+y}
14396then :
14397  printf %s "(cached) " >&6
14398else $as_nop
14399  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14400/* end confdefs.h.  */
14401int i;
14402int
14403main (void)
14404{
14405
14406  ;
14407  return 0;
14408}
14409_ACEOF
14410if ac_fn_c_try_link "$LINENO"
14411then :
14412  eval $cacheid=yes
14413else $as_nop
14414  eval $cacheid=no
14415fi
14416rm -f core conftest.err conftest.$ac_objext conftest.beam \
14417    conftest$ac_exeext conftest.$ac_ext
14418fi
14419
14420
14421		CFLAGS="$xorg_testset_save_CFLAGS"
14422
14423		eval supported=\$$cacheid
14424		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14425printf "%s\n" "$supported" >&6; }
14426		if test "$supported" = "yes" ; then
14427			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
14428			found="yes"
14429		fi
14430	fi
14431
14432
14433
14434
14435
14436
14437
14438
14439
14440
14441
14442
14443
14444
14445
14446xorg_testset_save_CFLAGS="$CFLAGS"
14447
14448if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14449	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14450	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14451printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14452if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14453then :
14454  printf %s "(cached) " >&6
14455else $as_nop
14456  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14457/* end confdefs.h.  */
14458int i;
14459_ACEOF
14460if ac_fn_c_try_compile "$LINENO"
14461then :
14462  xorg_cv_cc_flag_unknown_warning_option=yes
14463else $as_nop
14464  xorg_cv_cc_flag_unknown_warning_option=no
14465fi
14466rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14467fi
14468{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14469printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14470	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14471	CFLAGS="$xorg_testset_save_CFLAGS"
14472fi
14473
14474if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14475	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14476		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14477	fi
14478	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14479	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14480printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14481if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14482then :
14483  printf %s "(cached) " >&6
14484else $as_nop
14485  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14486/* end confdefs.h.  */
14487int i;
14488_ACEOF
14489if ac_fn_c_try_compile "$LINENO"
14490then :
14491  xorg_cv_cc_flag_unused_command_line_argument=yes
14492else $as_nop
14493  xorg_cv_cc_flag_unused_command_line_argument=no
14494fi
14495rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14496fi
14497{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14498printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14499	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14500	CFLAGS="$xorg_testset_save_CFLAGS"
14501fi
14502
14503found="no"
14504
14505	if test $found = "no" ; then
14506		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14507			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14508		fi
14509
14510		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14511			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14512		fi
14513
14514		CFLAGS="$CFLAGS -Wuninitialized"
14515
14516		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
14517printf %s "checking if $CC supports -Wuninitialized... " >&6; }
14518		cacheid=xorg_cv_cc_flag__Wuninitialized
14519		if eval test \${$cacheid+y}
14520then :
14521  printf %s "(cached) " >&6
14522else $as_nop
14523  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14524/* end confdefs.h.  */
14525int i;
14526int
14527main (void)
14528{
14529
14530  ;
14531  return 0;
14532}
14533_ACEOF
14534if ac_fn_c_try_link "$LINENO"
14535then :
14536  eval $cacheid=yes
14537else $as_nop
14538  eval $cacheid=no
14539fi
14540rm -f core conftest.err conftest.$ac_objext conftest.beam \
14541    conftest$ac_exeext conftest.$ac_ext
14542fi
14543
14544
14545		CFLAGS="$xorg_testset_save_CFLAGS"
14546
14547		eval supported=\$$cacheid
14548		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14549printf "%s\n" "$supported" >&6; }
14550		if test "$supported" = "yes" ; then
14551			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
14552			found="yes"
14553		fi
14554	fi
14555
14556
14557
14558
14559
14560
14561
14562
14563
14564
14565
14566
14567
14568
14569
14570xorg_testset_save_CFLAGS="$CFLAGS"
14571
14572if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14573	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14574	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14575printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14576if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14577then :
14578  printf %s "(cached) " >&6
14579else $as_nop
14580  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14581/* end confdefs.h.  */
14582int i;
14583_ACEOF
14584if ac_fn_c_try_compile "$LINENO"
14585then :
14586  xorg_cv_cc_flag_unknown_warning_option=yes
14587else $as_nop
14588  xorg_cv_cc_flag_unknown_warning_option=no
14589fi
14590rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14591fi
14592{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14593printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14594	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14595	CFLAGS="$xorg_testset_save_CFLAGS"
14596fi
14597
14598if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14599	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14600		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14601	fi
14602	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14603	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14604printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14605if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14606then :
14607  printf %s "(cached) " >&6
14608else $as_nop
14609  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14610/* end confdefs.h.  */
14611int i;
14612_ACEOF
14613if ac_fn_c_try_compile "$LINENO"
14614then :
14615  xorg_cv_cc_flag_unused_command_line_argument=yes
14616else $as_nop
14617  xorg_cv_cc_flag_unused_command_line_argument=no
14618fi
14619rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14620fi
14621{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14622printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14623	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14624	CFLAGS="$xorg_testset_save_CFLAGS"
14625fi
14626
14627found="no"
14628
14629	if test $found = "no" ; then
14630		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14631			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14632		fi
14633
14634		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14635			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14636		fi
14637
14638		CFLAGS="$CFLAGS -Wshadow"
14639
14640		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
14641printf %s "checking if $CC supports -Wshadow... " >&6; }
14642		cacheid=xorg_cv_cc_flag__Wshadow
14643		if eval test \${$cacheid+y}
14644then :
14645  printf %s "(cached) " >&6
14646else $as_nop
14647  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14648/* end confdefs.h.  */
14649int i;
14650int
14651main (void)
14652{
14653
14654  ;
14655  return 0;
14656}
14657_ACEOF
14658if ac_fn_c_try_link "$LINENO"
14659then :
14660  eval $cacheid=yes
14661else $as_nop
14662  eval $cacheid=no
14663fi
14664rm -f core conftest.err conftest.$ac_objext conftest.beam \
14665    conftest$ac_exeext conftest.$ac_ext
14666fi
14667
14668
14669		CFLAGS="$xorg_testset_save_CFLAGS"
14670
14671		eval supported=\$$cacheid
14672		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14673printf "%s\n" "$supported" >&6; }
14674		if test "$supported" = "yes" ; then
14675			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
14676			found="yes"
14677		fi
14678	fi
14679
14680
14681
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691
14692
14693
14694xorg_testset_save_CFLAGS="$CFLAGS"
14695
14696if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14697	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14698	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14699printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14700if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14701then :
14702  printf %s "(cached) " >&6
14703else $as_nop
14704  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14705/* end confdefs.h.  */
14706int i;
14707_ACEOF
14708if ac_fn_c_try_compile "$LINENO"
14709then :
14710  xorg_cv_cc_flag_unknown_warning_option=yes
14711else $as_nop
14712  xorg_cv_cc_flag_unknown_warning_option=no
14713fi
14714rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14715fi
14716{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14717printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14718	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14719	CFLAGS="$xorg_testset_save_CFLAGS"
14720fi
14721
14722if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14723	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14724		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14725	fi
14726	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14727	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14728printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14729if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14730then :
14731  printf %s "(cached) " >&6
14732else $as_nop
14733  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14734/* end confdefs.h.  */
14735int i;
14736_ACEOF
14737if ac_fn_c_try_compile "$LINENO"
14738then :
14739  xorg_cv_cc_flag_unused_command_line_argument=yes
14740else $as_nop
14741  xorg_cv_cc_flag_unused_command_line_argument=no
14742fi
14743rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14744fi
14745{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14746printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14747	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14748	CFLAGS="$xorg_testset_save_CFLAGS"
14749fi
14750
14751found="no"
14752
14753	if test $found = "no" ; then
14754		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14755			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14756		fi
14757
14758		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14759			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14760		fi
14761
14762		CFLAGS="$CFLAGS -Wmissing-noreturn"
14763
14764		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
14765printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
14766		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
14767		if eval test \${$cacheid+y}
14768then :
14769  printf %s "(cached) " >&6
14770else $as_nop
14771  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14772/* end confdefs.h.  */
14773int i;
14774int
14775main (void)
14776{
14777
14778  ;
14779  return 0;
14780}
14781_ACEOF
14782if ac_fn_c_try_link "$LINENO"
14783then :
14784  eval $cacheid=yes
14785else $as_nop
14786  eval $cacheid=no
14787fi
14788rm -f core conftest.err conftest.$ac_objext conftest.beam \
14789    conftest$ac_exeext conftest.$ac_ext
14790fi
14791
14792
14793		CFLAGS="$xorg_testset_save_CFLAGS"
14794
14795		eval supported=\$$cacheid
14796		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14797printf "%s\n" "$supported" >&6; }
14798		if test "$supported" = "yes" ; then
14799			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
14800			found="yes"
14801		fi
14802	fi
14803
14804
14805
14806
14807
14808
14809
14810
14811
14812
14813
14814
14815
14816
14817
14818xorg_testset_save_CFLAGS="$CFLAGS"
14819
14820if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14821	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14822	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14823printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14824if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14825then :
14826  printf %s "(cached) " >&6
14827else $as_nop
14828  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14829/* end confdefs.h.  */
14830int i;
14831_ACEOF
14832if ac_fn_c_try_compile "$LINENO"
14833then :
14834  xorg_cv_cc_flag_unknown_warning_option=yes
14835else $as_nop
14836  xorg_cv_cc_flag_unknown_warning_option=no
14837fi
14838rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14839fi
14840{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14841printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14842	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14843	CFLAGS="$xorg_testset_save_CFLAGS"
14844fi
14845
14846if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14847	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14848		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14849	fi
14850	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14851	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14852printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14853if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14854then :
14855  printf %s "(cached) " >&6
14856else $as_nop
14857  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_unused_command_line_argument=yes
14864else $as_nop
14865  xorg_cv_cc_flag_unused_command_line_argument=no
14866fi
14867rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14868fi
14869{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14870printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14871	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14872	CFLAGS="$xorg_testset_save_CFLAGS"
14873fi
14874
14875found="no"
14876
14877	if test $found = "no" ; then
14878		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14879			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14880		fi
14881
14882		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14883			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14884		fi
14885
14886		CFLAGS="$CFLAGS -Wmissing-format-attribute"
14887
14888		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
14889printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
14890		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
14891		if eval test \${$cacheid+y}
14892then :
14893  printf %s "(cached) " >&6
14894else $as_nop
14895  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14896/* end confdefs.h.  */
14897int i;
14898int
14899main (void)
14900{
14901
14902  ;
14903  return 0;
14904}
14905_ACEOF
14906if ac_fn_c_try_link "$LINENO"
14907then :
14908  eval $cacheid=yes
14909else $as_nop
14910  eval $cacheid=no
14911fi
14912rm -f core conftest.err conftest.$ac_objext conftest.beam \
14913    conftest$ac_exeext conftest.$ac_ext
14914fi
14915
14916
14917		CFLAGS="$xorg_testset_save_CFLAGS"
14918
14919		eval supported=\$$cacheid
14920		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14921printf "%s\n" "$supported" >&6; }
14922		if test "$supported" = "yes" ; then
14923			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
14924			found="yes"
14925		fi
14926	fi
14927
14928
14929
14930
14931
14932
14933
14934
14935
14936
14937
14938
14939
14940
14941
14942xorg_testset_save_CFLAGS="$CFLAGS"
14943
14944if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14945	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14946	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14947printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14948if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14949then :
14950  printf %s "(cached) " >&6
14951else $as_nop
14952  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14953/* end confdefs.h.  */
14954int i;
14955_ACEOF
14956if ac_fn_c_try_compile "$LINENO"
14957then :
14958  xorg_cv_cc_flag_unknown_warning_option=yes
14959else $as_nop
14960  xorg_cv_cc_flag_unknown_warning_option=no
14961fi
14962rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14963fi
14964{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14965printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14966	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14967	CFLAGS="$xorg_testset_save_CFLAGS"
14968fi
14969
14970if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14971	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14972		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14973	fi
14974	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14975	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14976printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14977if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14978then :
14979  printf %s "(cached) " >&6
14980else $as_nop
14981  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14982/* end confdefs.h.  */
14983int i;
14984_ACEOF
14985if ac_fn_c_try_compile "$LINENO"
14986then :
14987  xorg_cv_cc_flag_unused_command_line_argument=yes
14988else $as_nop
14989  xorg_cv_cc_flag_unused_command_line_argument=no
14990fi
14991rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14992fi
14993{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14994printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14995	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14996	CFLAGS="$xorg_testset_save_CFLAGS"
14997fi
14998
14999found="no"
15000
15001	if test $found = "no" ; then
15002		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15003			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15004		fi
15005
15006		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15007			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15008		fi
15009
15010		CFLAGS="$CFLAGS -Wredundant-decls"
15011
15012		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
15013printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
15014		cacheid=xorg_cv_cc_flag__Wredundant_decls
15015		if eval test \${$cacheid+y}
15016then :
15017  printf %s "(cached) " >&6
15018else $as_nop
15019  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15020/* end confdefs.h.  */
15021int i;
15022int
15023main (void)
15024{
15025
15026  ;
15027  return 0;
15028}
15029_ACEOF
15030if ac_fn_c_try_link "$LINENO"
15031then :
15032  eval $cacheid=yes
15033else $as_nop
15034  eval $cacheid=no
15035fi
15036rm -f core conftest.err conftest.$ac_objext conftest.beam \
15037    conftest$ac_exeext conftest.$ac_ext
15038fi
15039
15040
15041		CFLAGS="$xorg_testset_save_CFLAGS"
15042
15043		eval supported=\$$cacheid
15044		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15045printf "%s\n" "$supported" >&6; }
15046		if test "$supported" = "yes" ; then
15047			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
15048			found="yes"
15049		fi
15050	fi
15051
15052
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066xorg_testset_save_CFLAGS="$CFLAGS"
15067
15068if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15069	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15070	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15071printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15072if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15073then :
15074  printf %s "(cached) " >&6
15075else $as_nop
15076  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15077/* end confdefs.h.  */
15078int i;
15079_ACEOF
15080if ac_fn_c_try_compile "$LINENO"
15081then :
15082  xorg_cv_cc_flag_unknown_warning_option=yes
15083else $as_nop
15084  xorg_cv_cc_flag_unknown_warning_option=no
15085fi
15086rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15087fi
15088{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15089printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15090	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15091	CFLAGS="$xorg_testset_save_CFLAGS"
15092fi
15093
15094if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15095	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15096		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15097	fi
15098	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15099	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15100printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15101if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15102then :
15103  printf %s "(cached) " >&6
15104else $as_nop
15105  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15106/* end confdefs.h.  */
15107int i;
15108_ACEOF
15109if ac_fn_c_try_compile "$LINENO"
15110then :
15111  xorg_cv_cc_flag_unused_command_line_argument=yes
15112else $as_nop
15113  xorg_cv_cc_flag_unused_command_line_argument=no
15114fi
15115rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15116fi
15117{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15118printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15119	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15120	CFLAGS="$xorg_testset_save_CFLAGS"
15121fi
15122
15123found="no"
15124
15125	if test $found = "no" ; then
15126		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15127			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15128		fi
15129
15130		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15131			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15132		fi
15133
15134		CFLAGS="$CFLAGS -Wlogical-op"
15135
15136		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
15137printf %s "checking if $CC supports -Wlogical-op... " >&6; }
15138		cacheid=xorg_cv_cc_flag__Wlogical_op
15139		if eval test \${$cacheid+y}
15140then :
15141  printf %s "(cached) " >&6
15142else $as_nop
15143  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15144/* end confdefs.h.  */
15145int i;
15146int
15147main (void)
15148{
15149
15150  ;
15151  return 0;
15152}
15153_ACEOF
15154if ac_fn_c_try_link "$LINENO"
15155then :
15156  eval $cacheid=yes
15157else $as_nop
15158  eval $cacheid=no
15159fi
15160rm -f core conftest.err conftest.$ac_objext conftest.beam \
15161    conftest$ac_exeext conftest.$ac_ext
15162fi
15163
15164
15165		CFLAGS="$xorg_testset_save_CFLAGS"
15166
15167		eval supported=\$$cacheid
15168		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15169printf "%s\n" "$supported" >&6; }
15170		if test "$supported" = "yes" ; then
15171			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
15172			found="yes"
15173		fi
15174	fi
15175
15176
15177
15178# These are currently disabled because they are noisy.  They will be enabled
15179# in the future once the codebase is sufficiently modernized to silence
15180# them.  For now, I don't want them to drown out the other warnings.
15181# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
15182# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
15183# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
15184
15185# Turn some warnings into errors, so we don't accidentally get successful builds
15186# when there are problems that should be fixed.
15187
15188if test "x$SELECTIVE_WERROR" = "xyes" ; then
15189
15190
15191
15192
15193
15194
15195
15196
15197
15198
15199
15200
15201
15202xorg_testset_save_CFLAGS="$CFLAGS"
15203
15204if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15205	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15206	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15207printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15208if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15209then :
15210  printf %s "(cached) " >&6
15211else $as_nop
15212  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15213/* end confdefs.h.  */
15214int i;
15215_ACEOF
15216if ac_fn_c_try_compile "$LINENO"
15217then :
15218  xorg_cv_cc_flag_unknown_warning_option=yes
15219else $as_nop
15220  xorg_cv_cc_flag_unknown_warning_option=no
15221fi
15222rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15223fi
15224{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15225printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15226	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15227	CFLAGS="$xorg_testset_save_CFLAGS"
15228fi
15229
15230if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15231	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15232		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15233	fi
15234	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15235	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15236printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15237if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15238then :
15239  printf %s "(cached) " >&6
15240else $as_nop
15241  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15242/* end confdefs.h.  */
15243int i;
15244_ACEOF
15245if ac_fn_c_try_compile "$LINENO"
15246then :
15247  xorg_cv_cc_flag_unused_command_line_argument=yes
15248else $as_nop
15249  xorg_cv_cc_flag_unused_command_line_argument=no
15250fi
15251rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15252fi
15253{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15254printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15255	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15256	CFLAGS="$xorg_testset_save_CFLAGS"
15257fi
15258
15259found="no"
15260
15261	if test $found = "no" ; then
15262		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15263			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15264		fi
15265
15266		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15267			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15268		fi
15269
15270		CFLAGS="$CFLAGS -Werror=implicit"
15271
15272		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
15273printf %s "checking if $CC supports -Werror=implicit... " >&6; }
15274		cacheid=xorg_cv_cc_flag__Werror_implicit
15275		if eval test \${$cacheid+y}
15276then :
15277  printf %s "(cached) " >&6
15278else $as_nop
15279  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15280/* end confdefs.h.  */
15281int i;
15282int
15283main (void)
15284{
15285
15286  ;
15287  return 0;
15288}
15289_ACEOF
15290if ac_fn_c_try_link "$LINENO"
15291then :
15292  eval $cacheid=yes
15293else $as_nop
15294  eval $cacheid=no
15295fi
15296rm -f core conftest.err conftest.$ac_objext conftest.beam \
15297    conftest$ac_exeext conftest.$ac_ext
15298fi
15299
15300
15301		CFLAGS="$xorg_testset_save_CFLAGS"
15302
15303		eval supported=\$$cacheid
15304		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15305printf "%s\n" "$supported" >&6; }
15306		if test "$supported" = "yes" ; then
15307			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
15308			found="yes"
15309		fi
15310	fi
15311
15312	if test $found = "no" ; then
15313		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15314			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15315		fi
15316
15317		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15318			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15319		fi
15320
15321		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15322
15323		{ 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
15324printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
15325		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
15326		if eval test \${$cacheid+y}
15327then :
15328  printf %s "(cached) " >&6
15329else $as_nop
15330  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15331/* end confdefs.h.  */
15332int i;
15333int
15334main (void)
15335{
15336
15337  ;
15338  return 0;
15339}
15340_ACEOF
15341if ac_fn_c_try_link "$LINENO"
15342then :
15343  eval $cacheid=yes
15344else $as_nop
15345  eval $cacheid=no
15346fi
15347rm -f core conftest.err conftest.$ac_objext conftest.beam \
15348    conftest$ac_exeext conftest.$ac_ext
15349fi
15350
15351
15352		CFLAGS="$xorg_testset_save_CFLAGS"
15353
15354		eval supported=\$$cacheid
15355		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15356printf "%s\n" "$supported" >&6; }
15357		if test "$supported" = "yes" ; then
15358			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15359			found="yes"
15360		fi
15361	fi
15362
15363
15364
15365
15366
15367
15368
15369
15370
15371
15372
15373
15374
15375
15376
15377xorg_testset_save_CFLAGS="$CFLAGS"
15378
15379if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15380	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15381	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15382printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15383if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15384then :
15385  printf %s "(cached) " >&6
15386else $as_nop
15387  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15388/* end confdefs.h.  */
15389int i;
15390_ACEOF
15391if ac_fn_c_try_compile "$LINENO"
15392then :
15393  xorg_cv_cc_flag_unknown_warning_option=yes
15394else $as_nop
15395  xorg_cv_cc_flag_unknown_warning_option=no
15396fi
15397rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15398fi
15399{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15400printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15401	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15402	CFLAGS="$xorg_testset_save_CFLAGS"
15403fi
15404
15405if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15406	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15407		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15408	fi
15409	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15410	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15411printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15412if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15413then :
15414  printf %s "(cached) " >&6
15415else $as_nop
15416  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15417/* end confdefs.h.  */
15418int i;
15419_ACEOF
15420if ac_fn_c_try_compile "$LINENO"
15421then :
15422  xorg_cv_cc_flag_unused_command_line_argument=yes
15423else $as_nop
15424  xorg_cv_cc_flag_unused_command_line_argument=no
15425fi
15426rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15427fi
15428{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15429printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15430	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15431	CFLAGS="$xorg_testset_save_CFLAGS"
15432fi
15433
15434found="no"
15435
15436	if test $found = "no" ; then
15437		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15438			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15439		fi
15440
15441		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15442			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15443		fi
15444
15445		CFLAGS="$CFLAGS -Werror=nonnull"
15446
15447		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
15448printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
15449		cacheid=xorg_cv_cc_flag__Werror_nonnull
15450		if eval test \${$cacheid+y}
15451then :
15452  printf %s "(cached) " >&6
15453else $as_nop
15454  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15455/* end confdefs.h.  */
15456int i;
15457int
15458main (void)
15459{
15460
15461  ;
15462  return 0;
15463}
15464_ACEOF
15465if ac_fn_c_try_link "$LINENO"
15466then :
15467  eval $cacheid=yes
15468else $as_nop
15469  eval $cacheid=no
15470fi
15471rm -f core conftest.err conftest.$ac_objext conftest.beam \
15472    conftest$ac_exeext conftest.$ac_ext
15473fi
15474
15475
15476		CFLAGS="$xorg_testset_save_CFLAGS"
15477
15478		eval supported=\$$cacheid
15479		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15480printf "%s\n" "$supported" >&6; }
15481		if test "$supported" = "yes" ; then
15482			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
15483			found="yes"
15484		fi
15485	fi
15486
15487
15488
15489
15490
15491
15492
15493
15494
15495
15496
15497
15498
15499
15500
15501xorg_testset_save_CFLAGS="$CFLAGS"
15502
15503if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15504	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15505	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15506printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15507if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15508then :
15509  printf %s "(cached) " >&6
15510else $as_nop
15511  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15512/* end confdefs.h.  */
15513int i;
15514_ACEOF
15515if ac_fn_c_try_compile "$LINENO"
15516then :
15517  xorg_cv_cc_flag_unknown_warning_option=yes
15518else $as_nop
15519  xorg_cv_cc_flag_unknown_warning_option=no
15520fi
15521rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15522fi
15523{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15524printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15525	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15526	CFLAGS="$xorg_testset_save_CFLAGS"
15527fi
15528
15529if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15530	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15531		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15532	fi
15533	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15534	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15535printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15536if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15537then :
15538  printf %s "(cached) " >&6
15539else $as_nop
15540  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15541/* end confdefs.h.  */
15542int i;
15543_ACEOF
15544if ac_fn_c_try_compile "$LINENO"
15545then :
15546  xorg_cv_cc_flag_unused_command_line_argument=yes
15547else $as_nop
15548  xorg_cv_cc_flag_unused_command_line_argument=no
15549fi
15550rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
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 -Werror=init-self"
15570
15571		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
15572printf %s "checking if $CC supports -Werror=init-self... " >&6; }
15573		cacheid=xorg_cv_cc_flag__Werror_init_self
15574		if eval test \${$cacheid+y}
15575then :
15576  printf %s "(cached) " >&6
15577else $as_nop
15578  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 $as_nop
15593  eval $cacheid=no
15594fi
15595rm -f core conftest.err conftest.$ac_objext conftest.beam \
15596    conftest$ac_exeext conftest.$ac_ext
15597fi
15598
15599
15600		CFLAGS="$xorg_testset_save_CFLAGS"
15601
15602		eval supported=\$$cacheid
15603		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15604printf "%s\n" "$supported" >&6; }
15605		if test "$supported" = "yes" ; then
15606			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
15607			found="yes"
15608		fi
15609	fi
15610
15611
15612
15613
15614
15615
15616
15617
15618
15619
15620
15621
15622
15623
15624
15625xorg_testset_save_CFLAGS="$CFLAGS"
15626
15627if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15628	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15629	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15630printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15631if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15632then :
15633  printf %s "(cached) " >&6
15634else $as_nop
15635  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15636/* end confdefs.h.  */
15637int i;
15638_ACEOF
15639if ac_fn_c_try_compile "$LINENO"
15640then :
15641  xorg_cv_cc_flag_unknown_warning_option=yes
15642else $as_nop
15643  xorg_cv_cc_flag_unknown_warning_option=no
15644fi
15645rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15646fi
15647{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15648printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15649	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15650	CFLAGS="$xorg_testset_save_CFLAGS"
15651fi
15652
15653if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15654	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15655		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15656	fi
15657	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15658	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15659printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15660if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15661then :
15662  printf %s "(cached) " >&6
15663else $as_nop
15664  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15665/* end confdefs.h.  */
15666int i;
15667_ACEOF
15668if ac_fn_c_try_compile "$LINENO"
15669then :
15670  xorg_cv_cc_flag_unused_command_line_argument=yes
15671else $as_nop
15672  xorg_cv_cc_flag_unused_command_line_argument=no
15673fi
15674rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15675fi
15676{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15677printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15678	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15679	CFLAGS="$xorg_testset_save_CFLAGS"
15680fi
15681
15682found="no"
15683
15684	if test $found = "no" ; then
15685		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15686			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15687		fi
15688
15689		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15690			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15691		fi
15692
15693		CFLAGS="$CFLAGS -Werror=main"
15694
15695		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
15696printf %s "checking if $CC supports -Werror=main... " >&6; }
15697		cacheid=xorg_cv_cc_flag__Werror_main
15698		if eval test \${$cacheid+y}
15699then :
15700  printf %s "(cached) " >&6
15701else $as_nop
15702  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15703/* end confdefs.h.  */
15704int i;
15705int
15706main (void)
15707{
15708
15709  ;
15710  return 0;
15711}
15712_ACEOF
15713if ac_fn_c_try_link "$LINENO"
15714then :
15715  eval $cacheid=yes
15716else $as_nop
15717  eval $cacheid=no
15718fi
15719rm -f core conftest.err conftest.$ac_objext conftest.beam \
15720    conftest$ac_exeext conftest.$ac_ext
15721fi
15722
15723
15724		CFLAGS="$xorg_testset_save_CFLAGS"
15725
15726		eval supported=\$$cacheid
15727		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15728printf "%s\n" "$supported" >&6; }
15729		if test "$supported" = "yes" ; then
15730			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
15731			found="yes"
15732		fi
15733	fi
15734
15735
15736
15737
15738
15739
15740
15741
15742
15743
15744
15745
15746
15747
15748
15749xorg_testset_save_CFLAGS="$CFLAGS"
15750
15751if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15752	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15753	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15754printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15755if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15756then :
15757  printf %s "(cached) " >&6
15758else $as_nop
15759  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15760/* end confdefs.h.  */
15761int i;
15762_ACEOF
15763if ac_fn_c_try_compile "$LINENO"
15764then :
15765  xorg_cv_cc_flag_unknown_warning_option=yes
15766else $as_nop
15767  xorg_cv_cc_flag_unknown_warning_option=no
15768fi
15769rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15770fi
15771{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15772printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15773	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15774	CFLAGS="$xorg_testset_save_CFLAGS"
15775fi
15776
15777if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15778	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15779		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15780	fi
15781	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15782	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15783printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15784if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15785then :
15786  printf %s "(cached) " >&6
15787else $as_nop
15788  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15789/* end confdefs.h.  */
15790int i;
15791_ACEOF
15792if ac_fn_c_try_compile "$LINENO"
15793then :
15794  xorg_cv_cc_flag_unused_command_line_argument=yes
15795else $as_nop
15796  xorg_cv_cc_flag_unused_command_line_argument=no
15797fi
15798rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15799fi
15800{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15801printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15802	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15803	CFLAGS="$xorg_testset_save_CFLAGS"
15804fi
15805
15806found="no"
15807
15808	if test $found = "no" ; then
15809		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15810			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15811		fi
15812
15813		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15814			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15815		fi
15816
15817		CFLAGS="$CFLAGS -Werror=missing-braces"
15818
15819		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
15820printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
15821		cacheid=xorg_cv_cc_flag__Werror_missing_braces
15822		if eval test \${$cacheid+y}
15823then :
15824  printf %s "(cached) " >&6
15825else $as_nop
15826  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15827/* end confdefs.h.  */
15828int i;
15829int
15830main (void)
15831{
15832
15833  ;
15834  return 0;
15835}
15836_ACEOF
15837if ac_fn_c_try_link "$LINENO"
15838then :
15839  eval $cacheid=yes
15840else $as_nop
15841  eval $cacheid=no
15842fi
15843rm -f core conftest.err conftest.$ac_objext conftest.beam \
15844    conftest$ac_exeext conftest.$ac_ext
15845fi
15846
15847
15848		CFLAGS="$xorg_testset_save_CFLAGS"
15849
15850		eval supported=\$$cacheid
15851		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15852printf "%s\n" "$supported" >&6; }
15853		if test "$supported" = "yes" ; then
15854			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
15855			found="yes"
15856		fi
15857	fi
15858
15859
15860
15861
15862
15863
15864
15865
15866
15867
15868
15869
15870
15871
15872
15873xorg_testset_save_CFLAGS="$CFLAGS"
15874
15875if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15876	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15877	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15878printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15879if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15880then :
15881  printf %s "(cached) " >&6
15882else $as_nop
15883  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15884/* end confdefs.h.  */
15885int i;
15886_ACEOF
15887if ac_fn_c_try_compile "$LINENO"
15888then :
15889  xorg_cv_cc_flag_unknown_warning_option=yes
15890else $as_nop
15891  xorg_cv_cc_flag_unknown_warning_option=no
15892fi
15893rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15894fi
15895{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15896printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15897	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15898	CFLAGS="$xorg_testset_save_CFLAGS"
15899fi
15900
15901if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15902	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15903		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15904	fi
15905	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15906	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15907printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15908if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15909then :
15910  printf %s "(cached) " >&6
15911else $as_nop
15912  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15913/* end confdefs.h.  */
15914int i;
15915_ACEOF
15916if ac_fn_c_try_compile "$LINENO"
15917then :
15918  xorg_cv_cc_flag_unused_command_line_argument=yes
15919else $as_nop
15920  xorg_cv_cc_flag_unused_command_line_argument=no
15921fi
15922rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15923fi
15924{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15925printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15926	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15927	CFLAGS="$xorg_testset_save_CFLAGS"
15928fi
15929
15930found="no"
15931
15932	if test $found = "no" ; then
15933		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15934			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15935		fi
15936
15937		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15938			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15939		fi
15940
15941		CFLAGS="$CFLAGS -Werror=sequence-point"
15942
15943		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
15944printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
15945		cacheid=xorg_cv_cc_flag__Werror_sequence_point
15946		if eval test \${$cacheid+y}
15947then :
15948  printf %s "(cached) " >&6
15949else $as_nop
15950  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15951/* end confdefs.h.  */
15952int i;
15953int
15954main (void)
15955{
15956
15957  ;
15958  return 0;
15959}
15960_ACEOF
15961if ac_fn_c_try_link "$LINENO"
15962then :
15963  eval $cacheid=yes
15964else $as_nop
15965  eval $cacheid=no
15966fi
15967rm -f core conftest.err conftest.$ac_objext conftest.beam \
15968    conftest$ac_exeext conftest.$ac_ext
15969fi
15970
15971
15972		CFLAGS="$xorg_testset_save_CFLAGS"
15973
15974		eval supported=\$$cacheid
15975		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15976printf "%s\n" "$supported" >&6; }
15977		if test "$supported" = "yes" ; then
15978			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
15979			found="yes"
15980		fi
15981	fi
15982
15983
15984
15985
15986
15987
15988
15989
15990
15991
15992
15993
15994
15995
15996
15997xorg_testset_save_CFLAGS="$CFLAGS"
15998
15999if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16000	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16001	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16002printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16003if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16004then :
16005  printf %s "(cached) " >&6
16006else $as_nop
16007  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16008/* end confdefs.h.  */
16009int i;
16010_ACEOF
16011if ac_fn_c_try_compile "$LINENO"
16012then :
16013  xorg_cv_cc_flag_unknown_warning_option=yes
16014else $as_nop
16015  xorg_cv_cc_flag_unknown_warning_option=no
16016fi
16017rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16018fi
16019{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16020printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16021	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16022	CFLAGS="$xorg_testset_save_CFLAGS"
16023fi
16024
16025if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16026	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16027		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16028	fi
16029	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16030	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16031printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16032if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16033then :
16034  printf %s "(cached) " >&6
16035else $as_nop
16036  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16037/* end confdefs.h.  */
16038int i;
16039_ACEOF
16040if ac_fn_c_try_compile "$LINENO"
16041then :
16042  xorg_cv_cc_flag_unused_command_line_argument=yes
16043else $as_nop
16044  xorg_cv_cc_flag_unused_command_line_argument=no
16045fi
16046rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16047fi
16048{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16049printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16050	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16051	CFLAGS="$xorg_testset_save_CFLAGS"
16052fi
16053
16054found="no"
16055
16056	if test $found = "no" ; then
16057		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16058			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16059		fi
16060
16061		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16062			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16063		fi
16064
16065		CFLAGS="$CFLAGS -Werror=return-type"
16066
16067		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
16068printf %s "checking if $CC supports -Werror=return-type... " >&6; }
16069		cacheid=xorg_cv_cc_flag__Werror_return_type
16070		if eval test \${$cacheid+y}
16071then :
16072  printf %s "(cached) " >&6
16073else $as_nop
16074  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16075/* end confdefs.h.  */
16076int i;
16077int
16078main (void)
16079{
16080
16081  ;
16082  return 0;
16083}
16084_ACEOF
16085if ac_fn_c_try_link "$LINENO"
16086then :
16087  eval $cacheid=yes
16088else $as_nop
16089  eval $cacheid=no
16090fi
16091rm -f core conftest.err conftest.$ac_objext conftest.beam \
16092    conftest$ac_exeext conftest.$ac_ext
16093fi
16094
16095
16096		CFLAGS="$xorg_testset_save_CFLAGS"
16097
16098		eval supported=\$$cacheid
16099		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16100printf "%s\n" "$supported" >&6; }
16101		if test "$supported" = "yes" ; then
16102			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
16103			found="yes"
16104		fi
16105	fi
16106
16107	if test $found = "no" ; then
16108		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16109			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16110		fi
16111
16112		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16113			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16114		fi
16115
16116		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16117
16118		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
16119printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
16120		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
16121		if eval test \${$cacheid+y}
16122then :
16123  printf %s "(cached) " >&6
16124else $as_nop
16125  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16126/* end confdefs.h.  */
16127int i;
16128int
16129main (void)
16130{
16131
16132  ;
16133  return 0;
16134}
16135_ACEOF
16136if ac_fn_c_try_link "$LINENO"
16137then :
16138  eval $cacheid=yes
16139else $as_nop
16140  eval $cacheid=no
16141fi
16142rm -f core conftest.err conftest.$ac_objext conftest.beam \
16143    conftest$ac_exeext conftest.$ac_ext
16144fi
16145
16146
16147		CFLAGS="$xorg_testset_save_CFLAGS"
16148
16149		eval supported=\$$cacheid
16150		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16151printf "%s\n" "$supported" >&6; }
16152		if test "$supported" = "yes" ; then
16153			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16154			found="yes"
16155		fi
16156	fi
16157
16158
16159
16160
16161
16162
16163
16164
16165
16166
16167
16168
16169
16170
16171
16172xorg_testset_save_CFLAGS="$CFLAGS"
16173
16174if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16175	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16176	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16177printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16178if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16179then :
16180  printf %s "(cached) " >&6
16181else $as_nop
16182  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16183/* end confdefs.h.  */
16184int i;
16185_ACEOF
16186if ac_fn_c_try_compile "$LINENO"
16187then :
16188  xorg_cv_cc_flag_unknown_warning_option=yes
16189else $as_nop
16190  xorg_cv_cc_flag_unknown_warning_option=no
16191fi
16192rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16193fi
16194{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16195printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16196	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16197	CFLAGS="$xorg_testset_save_CFLAGS"
16198fi
16199
16200if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16201	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16202		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16203	fi
16204	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16205	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16206printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16207if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16208then :
16209  printf %s "(cached) " >&6
16210else $as_nop
16211  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16212/* end confdefs.h.  */
16213int i;
16214_ACEOF
16215if ac_fn_c_try_compile "$LINENO"
16216then :
16217  xorg_cv_cc_flag_unused_command_line_argument=yes
16218else $as_nop
16219  xorg_cv_cc_flag_unused_command_line_argument=no
16220fi
16221rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16222fi
16223{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16224printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16225	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16226	CFLAGS="$xorg_testset_save_CFLAGS"
16227fi
16228
16229found="no"
16230
16231	if test $found = "no" ; then
16232		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16233			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16234		fi
16235
16236		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16237			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16238		fi
16239
16240		CFLAGS="$CFLAGS -Werror=trigraphs"
16241
16242		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
16243printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
16244		cacheid=xorg_cv_cc_flag__Werror_trigraphs
16245		if eval test \${$cacheid+y}
16246then :
16247  printf %s "(cached) " >&6
16248else $as_nop
16249  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16250/* end confdefs.h.  */
16251int i;
16252int
16253main (void)
16254{
16255
16256  ;
16257  return 0;
16258}
16259_ACEOF
16260if ac_fn_c_try_link "$LINENO"
16261then :
16262  eval $cacheid=yes
16263else $as_nop
16264  eval $cacheid=no
16265fi
16266rm -f core conftest.err conftest.$ac_objext conftest.beam \
16267    conftest$ac_exeext conftest.$ac_ext
16268fi
16269
16270
16271		CFLAGS="$xorg_testset_save_CFLAGS"
16272
16273		eval supported=\$$cacheid
16274		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16275printf "%s\n" "$supported" >&6; }
16276		if test "$supported" = "yes" ; then
16277			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
16278			found="yes"
16279		fi
16280	fi
16281
16282
16283
16284
16285
16286
16287
16288
16289
16290
16291
16292
16293
16294
16295
16296xorg_testset_save_CFLAGS="$CFLAGS"
16297
16298if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16299	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16300	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16301printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16302if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16303then :
16304  printf %s "(cached) " >&6
16305else $as_nop
16306  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16307/* end confdefs.h.  */
16308int i;
16309_ACEOF
16310if ac_fn_c_try_compile "$LINENO"
16311then :
16312  xorg_cv_cc_flag_unknown_warning_option=yes
16313else $as_nop
16314  xorg_cv_cc_flag_unknown_warning_option=no
16315fi
16316rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16317fi
16318{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16319printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16320	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16321	CFLAGS="$xorg_testset_save_CFLAGS"
16322fi
16323
16324if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16325	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16326		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16327	fi
16328	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16329	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16330printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16331if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16332then :
16333  printf %s "(cached) " >&6
16334else $as_nop
16335  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16336/* end confdefs.h.  */
16337int i;
16338_ACEOF
16339if ac_fn_c_try_compile "$LINENO"
16340then :
16341  xorg_cv_cc_flag_unused_command_line_argument=yes
16342else $as_nop
16343  xorg_cv_cc_flag_unused_command_line_argument=no
16344fi
16345rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16346fi
16347{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16348printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16349	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16350	CFLAGS="$xorg_testset_save_CFLAGS"
16351fi
16352
16353found="no"
16354
16355	if test $found = "no" ; then
16356		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16357			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16358		fi
16359
16360		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16361			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16362		fi
16363
16364		CFLAGS="$CFLAGS -Werror=array-bounds"
16365
16366		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
16367printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
16368		cacheid=xorg_cv_cc_flag__Werror_array_bounds
16369		if eval test \${$cacheid+y}
16370then :
16371  printf %s "(cached) " >&6
16372else $as_nop
16373  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16374/* end confdefs.h.  */
16375int i;
16376int
16377main (void)
16378{
16379
16380  ;
16381  return 0;
16382}
16383_ACEOF
16384if ac_fn_c_try_link "$LINENO"
16385then :
16386  eval $cacheid=yes
16387else $as_nop
16388  eval $cacheid=no
16389fi
16390rm -f core conftest.err conftest.$ac_objext conftest.beam \
16391    conftest$ac_exeext conftest.$ac_ext
16392fi
16393
16394
16395		CFLAGS="$xorg_testset_save_CFLAGS"
16396
16397		eval supported=\$$cacheid
16398		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16399printf "%s\n" "$supported" >&6; }
16400		if test "$supported" = "yes" ; then
16401			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
16402			found="yes"
16403		fi
16404	fi
16405
16406
16407
16408
16409
16410
16411
16412
16413
16414
16415
16416
16417
16418
16419
16420xorg_testset_save_CFLAGS="$CFLAGS"
16421
16422if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16423	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16424	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16425printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16426if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16427then :
16428  printf %s "(cached) " >&6
16429else $as_nop
16430  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16431/* end confdefs.h.  */
16432int i;
16433_ACEOF
16434if ac_fn_c_try_compile "$LINENO"
16435then :
16436  xorg_cv_cc_flag_unknown_warning_option=yes
16437else $as_nop
16438  xorg_cv_cc_flag_unknown_warning_option=no
16439fi
16440rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16441fi
16442{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16443printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16444	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16445	CFLAGS="$xorg_testset_save_CFLAGS"
16446fi
16447
16448if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16449	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16450		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16451	fi
16452	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16453	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16454printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16455if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16456then :
16457  printf %s "(cached) " >&6
16458else $as_nop
16459  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16460/* end confdefs.h.  */
16461int i;
16462_ACEOF
16463if ac_fn_c_try_compile "$LINENO"
16464then :
16465  xorg_cv_cc_flag_unused_command_line_argument=yes
16466else $as_nop
16467  xorg_cv_cc_flag_unused_command_line_argument=no
16468fi
16469rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16470fi
16471{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16472printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16473	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16474	CFLAGS="$xorg_testset_save_CFLAGS"
16475fi
16476
16477found="no"
16478
16479	if test $found = "no" ; then
16480		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16481			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16482		fi
16483
16484		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16485			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16486		fi
16487
16488		CFLAGS="$CFLAGS -Werror=write-strings"
16489
16490		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
16491printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
16492		cacheid=xorg_cv_cc_flag__Werror_write_strings
16493		if eval test \${$cacheid+y}
16494then :
16495  printf %s "(cached) " >&6
16496else $as_nop
16497  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16498/* end confdefs.h.  */
16499int i;
16500int
16501main (void)
16502{
16503
16504  ;
16505  return 0;
16506}
16507_ACEOF
16508if ac_fn_c_try_link "$LINENO"
16509then :
16510  eval $cacheid=yes
16511else $as_nop
16512  eval $cacheid=no
16513fi
16514rm -f core conftest.err conftest.$ac_objext conftest.beam \
16515    conftest$ac_exeext conftest.$ac_ext
16516fi
16517
16518
16519		CFLAGS="$xorg_testset_save_CFLAGS"
16520
16521		eval supported=\$$cacheid
16522		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16523printf "%s\n" "$supported" >&6; }
16524		if test "$supported" = "yes" ; then
16525			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
16526			found="yes"
16527		fi
16528	fi
16529
16530
16531
16532
16533
16534
16535
16536
16537
16538
16539
16540
16541
16542
16543
16544xorg_testset_save_CFLAGS="$CFLAGS"
16545
16546if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16547	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16548	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16549printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16550if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16551then :
16552  printf %s "(cached) " >&6
16553else $as_nop
16554  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16555/* end confdefs.h.  */
16556int i;
16557_ACEOF
16558if ac_fn_c_try_compile "$LINENO"
16559then :
16560  xorg_cv_cc_flag_unknown_warning_option=yes
16561else $as_nop
16562  xorg_cv_cc_flag_unknown_warning_option=no
16563fi
16564rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16565fi
16566{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16567printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16568	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16569	CFLAGS="$xorg_testset_save_CFLAGS"
16570fi
16571
16572if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16573	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16574		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16575	fi
16576	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16577	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16578printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16579if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16580then :
16581  printf %s "(cached) " >&6
16582else $as_nop
16583  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16584/* end confdefs.h.  */
16585int i;
16586_ACEOF
16587if ac_fn_c_try_compile "$LINENO"
16588then :
16589  xorg_cv_cc_flag_unused_command_line_argument=yes
16590else $as_nop
16591  xorg_cv_cc_flag_unused_command_line_argument=no
16592fi
16593rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16594fi
16595{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16596printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16597	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16598	CFLAGS="$xorg_testset_save_CFLAGS"
16599fi
16600
16601found="no"
16602
16603	if test $found = "no" ; then
16604		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16605			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16606		fi
16607
16608		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16609			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16610		fi
16611
16612		CFLAGS="$CFLAGS -Werror=address"
16613
16614		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
16615printf %s "checking if $CC supports -Werror=address... " >&6; }
16616		cacheid=xorg_cv_cc_flag__Werror_address
16617		if eval test \${$cacheid+y}
16618then :
16619  printf %s "(cached) " >&6
16620else $as_nop
16621  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16622/* end confdefs.h.  */
16623int i;
16624int
16625main (void)
16626{
16627
16628  ;
16629  return 0;
16630}
16631_ACEOF
16632if ac_fn_c_try_link "$LINENO"
16633then :
16634  eval $cacheid=yes
16635else $as_nop
16636  eval $cacheid=no
16637fi
16638rm -f core conftest.err conftest.$ac_objext conftest.beam \
16639    conftest$ac_exeext conftest.$ac_ext
16640fi
16641
16642
16643		CFLAGS="$xorg_testset_save_CFLAGS"
16644
16645		eval supported=\$$cacheid
16646		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16647printf "%s\n" "$supported" >&6; }
16648		if test "$supported" = "yes" ; then
16649			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
16650			found="yes"
16651		fi
16652	fi
16653
16654
16655
16656
16657
16658
16659
16660
16661
16662
16663
16664
16665
16666
16667
16668xorg_testset_save_CFLAGS="$CFLAGS"
16669
16670if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16671	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16672	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16673printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16674if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16675then :
16676  printf %s "(cached) " >&6
16677else $as_nop
16678  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16679/* end confdefs.h.  */
16680int i;
16681_ACEOF
16682if ac_fn_c_try_compile "$LINENO"
16683then :
16684  xorg_cv_cc_flag_unknown_warning_option=yes
16685else $as_nop
16686  xorg_cv_cc_flag_unknown_warning_option=no
16687fi
16688rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16689fi
16690{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16691printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16692	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16693	CFLAGS="$xorg_testset_save_CFLAGS"
16694fi
16695
16696if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16697	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16698		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16699	fi
16700	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16701	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16702printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16703if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16704then :
16705  printf %s "(cached) " >&6
16706else $as_nop
16707  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16708/* end confdefs.h.  */
16709int i;
16710_ACEOF
16711if ac_fn_c_try_compile "$LINENO"
16712then :
16713  xorg_cv_cc_flag_unused_command_line_argument=yes
16714else $as_nop
16715  xorg_cv_cc_flag_unused_command_line_argument=no
16716fi
16717rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16718fi
16719{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16720printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16721	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16722	CFLAGS="$xorg_testset_save_CFLAGS"
16723fi
16724
16725found="no"
16726
16727	if test $found = "no" ; then
16728		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16729			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16730		fi
16731
16732		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16733			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16734		fi
16735
16736		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
16737
16738		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
16739printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
16740		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
16741		if eval test \${$cacheid+y}
16742then :
16743  printf %s "(cached) " >&6
16744else $as_nop
16745  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16746/* end confdefs.h.  */
16747int i;
16748int
16749main (void)
16750{
16751
16752  ;
16753  return 0;
16754}
16755_ACEOF
16756if ac_fn_c_try_link "$LINENO"
16757then :
16758  eval $cacheid=yes
16759else $as_nop
16760  eval $cacheid=no
16761fi
16762rm -f core conftest.err conftest.$ac_objext conftest.beam \
16763    conftest$ac_exeext conftest.$ac_ext
16764fi
16765
16766
16767		CFLAGS="$xorg_testset_save_CFLAGS"
16768
16769		eval supported=\$$cacheid
16770		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16771printf "%s\n" "$supported" >&6; }
16772		if test "$supported" = "yes" ; then
16773			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
16774			found="yes"
16775		fi
16776	fi
16777
16778	if test $found = "no" ; then
16779		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16780			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16781		fi
16782
16783		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16784			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16785		fi
16786
16787		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16788
16789		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
16790printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
16791		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
16792		if eval test \${$cacheid+y}
16793then :
16794  printf %s "(cached) " >&6
16795else $as_nop
16796  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16797/* end confdefs.h.  */
16798int i;
16799int
16800main (void)
16801{
16802
16803  ;
16804  return 0;
16805}
16806_ACEOF
16807if ac_fn_c_try_link "$LINENO"
16808then :
16809  eval $cacheid=yes
16810else $as_nop
16811  eval $cacheid=no
16812fi
16813rm -f core conftest.err conftest.$ac_objext conftest.beam \
16814    conftest$ac_exeext conftest.$ac_ext
16815fi
16816
16817
16818		CFLAGS="$xorg_testset_save_CFLAGS"
16819
16820		eval supported=\$$cacheid
16821		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16822printf "%s\n" "$supported" >&6; }
16823		if test "$supported" = "yes" ; then
16824			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16825			found="yes"
16826		fi
16827	fi
16828
16829
16830
16831
16832
16833
16834
16835
16836
16837
16838
16839
16840
16841
16842
16843xorg_testset_save_CFLAGS="$CFLAGS"
16844
16845if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16846	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16847	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16848printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16849if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16850then :
16851  printf %s "(cached) " >&6
16852else $as_nop
16853  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16854/* end confdefs.h.  */
16855int i;
16856_ACEOF
16857if ac_fn_c_try_compile "$LINENO"
16858then :
16859  xorg_cv_cc_flag_unknown_warning_option=yes
16860else $as_nop
16861  xorg_cv_cc_flag_unknown_warning_option=no
16862fi
16863rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16864fi
16865{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16866printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16867	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16868	CFLAGS="$xorg_testset_save_CFLAGS"
16869fi
16870
16871if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16872	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16873		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16874	fi
16875	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16876	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16877printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16878if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16879then :
16880  printf %s "(cached) " >&6
16881else $as_nop
16882  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16883/* end confdefs.h.  */
16884int i;
16885_ACEOF
16886if ac_fn_c_try_compile "$LINENO"
16887then :
16888  xorg_cv_cc_flag_unused_command_line_argument=yes
16889else $as_nop
16890  xorg_cv_cc_flag_unused_command_line_argument=no
16891fi
16892rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16893fi
16894{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16895printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16896	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16897	CFLAGS="$xorg_testset_save_CFLAGS"
16898fi
16899
16900found="no"
16901
16902	if test $found = "no" ; then
16903		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16904			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16905		fi
16906
16907		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16908			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16909		fi
16910
16911		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
16912
16913		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
16914printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
16915		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
16916		if eval test \${$cacheid+y}
16917then :
16918  printf %s "(cached) " >&6
16919else $as_nop
16920  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16921/* end confdefs.h.  */
16922int i;
16923int
16924main (void)
16925{
16926
16927  ;
16928  return 0;
16929}
16930_ACEOF
16931if ac_fn_c_try_link "$LINENO"
16932then :
16933  eval $cacheid=yes
16934else $as_nop
16935  eval $cacheid=no
16936fi
16937rm -f core conftest.err conftest.$ac_objext conftest.beam \
16938    conftest$ac_exeext conftest.$ac_ext
16939fi
16940
16941
16942		CFLAGS="$xorg_testset_save_CFLAGS"
16943
16944		eval supported=\$$cacheid
16945		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16946printf "%s\n" "$supported" >&6; }
16947		if test "$supported" = "yes" ; then
16948			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
16949			found="yes"
16950		fi
16951	fi
16952
16953 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
16954else
16955{ 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
16956printf "%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;}
16957
16958
16959
16960
16961
16962
16963
16964
16965
16966
16967
16968
16969
16970xorg_testset_save_CFLAGS="$CFLAGS"
16971
16972if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16973	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16974	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16975printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16976if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16977then :
16978  printf %s "(cached) " >&6
16979else $as_nop
16980  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16981/* end confdefs.h.  */
16982int i;
16983_ACEOF
16984if ac_fn_c_try_compile "$LINENO"
16985then :
16986  xorg_cv_cc_flag_unknown_warning_option=yes
16987else $as_nop
16988  xorg_cv_cc_flag_unknown_warning_option=no
16989fi
16990rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16991fi
16992{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16993printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16994	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16995	CFLAGS="$xorg_testset_save_CFLAGS"
16996fi
16997
16998if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16999	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17000		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17001	fi
17002	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17003	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17004printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17005if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17006then :
17007  printf %s "(cached) " >&6
17008else $as_nop
17009  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17010/* end confdefs.h.  */
17011int i;
17012_ACEOF
17013if ac_fn_c_try_compile "$LINENO"
17014then :
17015  xorg_cv_cc_flag_unused_command_line_argument=yes
17016else $as_nop
17017  xorg_cv_cc_flag_unused_command_line_argument=no
17018fi
17019rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17020fi
17021{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17022printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17023	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17024	CFLAGS="$xorg_testset_save_CFLAGS"
17025fi
17026
17027found="no"
17028
17029	if test $found = "no" ; then
17030		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17031			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17032		fi
17033
17034		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17035			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17036		fi
17037
17038		CFLAGS="$CFLAGS -Wimplicit"
17039
17040		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
17041printf %s "checking if $CC supports -Wimplicit... " >&6; }
17042		cacheid=xorg_cv_cc_flag__Wimplicit
17043		if eval test \${$cacheid+y}
17044then :
17045  printf %s "(cached) " >&6
17046else $as_nop
17047  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17048/* end confdefs.h.  */
17049int i;
17050int
17051main (void)
17052{
17053
17054  ;
17055  return 0;
17056}
17057_ACEOF
17058if ac_fn_c_try_link "$LINENO"
17059then :
17060  eval $cacheid=yes
17061else $as_nop
17062  eval $cacheid=no
17063fi
17064rm -f core conftest.err conftest.$ac_objext conftest.beam \
17065    conftest$ac_exeext conftest.$ac_ext
17066fi
17067
17068
17069		CFLAGS="$xorg_testset_save_CFLAGS"
17070
17071		eval supported=\$$cacheid
17072		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17073printf "%s\n" "$supported" >&6; }
17074		if test "$supported" = "yes" ; then
17075			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
17076			found="yes"
17077		fi
17078	fi
17079
17080
17081
17082
17083
17084
17085
17086
17087
17088
17089
17090
17091
17092
17093
17094xorg_testset_save_CFLAGS="$CFLAGS"
17095
17096if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17097	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17098	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17099printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17100if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17101then :
17102  printf %s "(cached) " >&6
17103else $as_nop
17104  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17105/* end confdefs.h.  */
17106int i;
17107_ACEOF
17108if ac_fn_c_try_compile "$LINENO"
17109then :
17110  xorg_cv_cc_flag_unknown_warning_option=yes
17111else $as_nop
17112  xorg_cv_cc_flag_unknown_warning_option=no
17113fi
17114rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17115fi
17116{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17117printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17118	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17119	CFLAGS="$xorg_testset_save_CFLAGS"
17120fi
17121
17122if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17123	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17124		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17125	fi
17126	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17127	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17128printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17129if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17130then :
17131  printf %s "(cached) " >&6
17132else $as_nop
17133  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17134/* end confdefs.h.  */
17135int i;
17136_ACEOF
17137if ac_fn_c_try_compile "$LINENO"
17138then :
17139  xorg_cv_cc_flag_unused_command_line_argument=yes
17140else $as_nop
17141  xorg_cv_cc_flag_unused_command_line_argument=no
17142fi
17143rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17144fi
17145{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17146printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17147	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17148	CFLAGS="$xorg_testset_save_CFLAGS"
17149fi
17150
17151found="no"
17152
17153	if test $found = "no" ; then
17154		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17155			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17156		fi
17157
17158		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17159			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17160		fi
17161
17162		CFLAGS="$CFLAGS -Wnonnull"
17163
17164		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
17165printf %s "checking if $CC supports -Wnonnull... " >&6; }
17166		cacheid=xorg_cv_cc_flag__Wnonnull
17167		if eval test \${$cacheid+y}
17168then :
17169  printf %s "(cached) " >&6
17170else $as_nop
17171  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17172/* end confdefs.h.  */
17173int i;
17174int
17175main (void)
17176{
17177
17178  ;
17179  return 0;
17180}
17181_ACEOF
17182if ac_fn_c_try_link "$LINENO"
17183then :
17184  eval $cacheid=yes
17185else $as_nop
17186  eval $cacheid=no
17187fi
17188rm -f core conftest.err conftest.$ac_objext conftest.beam \
17189    conftest$ac_exeext conftest.$ac_ext
17190fi
17191
17192
17193		CFLAGS="$xorg_testset_save_CFLAGS"
17194
17195		eval supported=\$$cacheid
17196		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17197printf "%s\n" "$supported" >&6; }
17198		if test "$supported" = "yes" ; then
17199			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
17200			found="yes"
17201		fi
17202	fi
17203
17204
17205
17206
17207
17208
17209
17210
17211
17212
17213
17214
17215
17216
17217
17218xorg_testset_save_CFLAGS="$CFLAGS"
17219
17220if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17221	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17222	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17223printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17224if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17225then :
17226  printf %s "(cached) " >&6
17227else $as_nop
17228  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17229/* end confdefs.h.  */
17230int i;
17231_ACEOF
17232if ac_fn_c_try_compile "$LINENO"
17233then :
17234  xorg_cv_cc_flag_unknown_warning_option=yes
17235else $as_nop
17236  xorg_cv_cc_flag_unknown_warning_option=no
17237fi
17238rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17239fi
17240{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17241printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17242	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17243	CFLAGS="$xorg_testset_save_CFLAGS"
17244fi
17245
17246if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17247	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17248		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17249	fi
17250	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17251	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17252printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17253if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17254then :
17255  printf %s "(cached) " >&6
17256else $as_nop
17257  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17258/* end confdefs.h.  */
17259int i;
17260_ACEOF
17261if ac_fn_c_try_compile "$LINENO"
17262then :
17263  xorg_cv_cc_flag_unused_command_line_argument=yes
17264else $as_nop
17265  xorg_cv_cc_flag_unused_command_line_argument=no
17266fi
17267rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17268fi
17269{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17270printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17271	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17272	CFLAGS="$xorg_testset_save_CFLAGS"
17273fi
17274
17275found="no"
17276
17277	if test $found = "no" ; then
17278		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17279			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17280		fi
17281
17282		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17283			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17284		fi
17285
17286		CFLAGS="$CFLAGS -Winit-self"
17287
17288		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
17289printf %s "checking if $CC supports -Winit-self... " >&6; }
17290		cacheid=xorg_cv_cc_flag__Winit_self
17291		if eval test \${$cacheid+y}
17292then :
17293  printf %s "(cached) " >&6
17294else $as_nop
17295  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17296/* end confdefs.h.  */
17297int i;
17298int
17299main (void)
17300{
17301
17302  ;
17303  return 0;
17304}
17305_ACEOF
17306if ac_fn_c_try_link "$LINENO"
17307then :
17308  eval $cacheid=yes
17309else $as_nop
17310  eval $cacheid=no
17311fi
17312rm -f core conftest.err conftest.$ac_objext conftest.beam \
17313    conftest$ac_exeext conftest.$ac_ext
17314fi
17315
17316
17317		CFLAGS="$xorg_testset_save_CFLAGS"
17318
17319		eval supported=\$$cacheid
17320		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17321printf "%s\n" "$supported" >&6; }
17322		if test "$supported" = "yes" ; then
17323			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
17324			found="yes"
17325		fi
17326	fi
17327
17328
17329
17330
17331
17332
17333
17334
17335
17336
17337
17338
17339
17340
17341
17342xorg_testset_save_CFLAGS="$CFLAGS"
17343
17344if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17345	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17346	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17347printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17348if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17349then :
17350  printf %s "(cached) " >&6
17351else $as_nop
17352  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17353/* end confdefs.h.  */
17354int i;
17355_ACEOF
17356if ac_fn_c_try_compile "$LINENO"
17357then :
17358  xorg_cv_cc_flag_unknown_warning_option=yes
17359else $as_nop
17360  xorg_cv_cc_flag_unknown_warning_option=no
17361fi
17362rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17363fi
17364{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17365printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17366	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17367	CFLAGS="$xorg_testset_save_CFLAGS"
17368fi
17369
17370if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17371	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17372		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17373	fi
17374	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17375	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17376printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17377if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17378then :
17379  printf %s "(cached) " >&6
17380else $as_nop
17381  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17382/* end confdefs.h.  */
17383int i;
17384_ACEOF
17385if ac_fn_c_try_compile "$LINENO"
17386then :
17387  xorg_cv_cc_flag_unused_command_line_argument=yes
17388else $as_nop
17389  xorg_cv_cc_flag_unused_command_line_argument=no
17390fi
17391rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17392fi
17393{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17394printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17395	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17396	CFLAGS="$xorg_testset_save_CFLAGS"
17397fi
17398
17399found="no"
17400
17401	if test $found = "no" ; then
17402		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17403			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17404		fi
17405
17406		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17407			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17408		fi
17409
17410		CFLAGS="$CFLAGS -Wmain"
17411
17412		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
17413printf %s "checking if $CC supports -Wmain... " >&6; }
17414		cacheid=xorg_cv_cc_flag__Wmain
17415		if eval test \${$cacheid+y}
17416then :
17417  printf %s "(cached) " >&6
17418else $as_nop
17419  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17420/* end confdefs.h.  */
17421int i;
17422int
17423main (void)
17424{
17425
17426  ;
17427  return 0;
17428}
17429_ACEOF
17430if ac_fn_c_try_link "$LINENO"
17431then :
17432  eval $cacheid=yes
17433else $as_nop
17434  eval $cacheid=no
17435fi
17436rm -f core conftest.err conftest.$ac_objext conftest.beam \
17437    conftest$ac_exeext conftest.$ac_ext
17438fi
17439
17440
17441		CFLAGS="$xorg_testset_save_CFLAGS"
17442
17443		eval supported=\$$cacheid
17444		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17445printf "%s\n" "$supported" >&6; }
17446		if test "$supported" = "yes" ; then
17447			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
17448			found="yes"
17449		fi
17450	fi
17451
17452
17453
17454
17455
17456
17457
17458
17459
17460
17461
17462
17463
17464
17465
17466xorg_testset_save_CFLAGS="$CFLAGS"
17467
17468if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17469	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17470	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17471printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17472if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17473then :
17474  printf %s "(cached) " >&6
17475else $as_nop
17476  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17477/* end confdefs.h.  */
17478int i;
17479_ACEOF
17480if ac_fn_c_try_compile "$LINENO"
17481then :
17482  xorg_cv_cc_flag_unknown_warning_option=yes
17483else $as_nop
17484  xorg_cv_cc_flag_unknown_warning_option=no
17485fi
17486rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17487fi
17488{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17489printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17490	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17491	CFLAGS="$xorg_testset_save_CFLAGS"
17492fi
17493
17494if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17495	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17496		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17497	fi
17498	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17499	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17500printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17501if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17502then :
17503  printf %s "(cached) " >&6
17504else $as_nop
17505  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17506/* end confdefs.h.  */
17507int i;
17508_ACEOF
17509if ac_fn_c_try_compile "$LINENO"
17510then :
17511  xorg_cv_cc_flag_unused_command_line_argument=yes
17512else $as_nop
17513  xorg_cv_cc_flag_unused_command_line_argument=no
17514fi
17515rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17516fi
17517{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17518printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17519	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17520	CFLAGS="$xorg_testset_save_CFLAGS"
17521fi
17522
17523found="no"
17524
17525	if test $found = "no" ; then
17526		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17527			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17528		fi
17529
17530		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17531			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17532		fi
17533
17534		CFLAGS="$CFLAGS -Wmissing-braces"
17535
17536		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
17537printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
17538		cacheid=xorg_cv_cc_flag__Wmissing_braces
17539		if eval test \${$cacheid+y}
17540then :
17541  printf %s "(cached) " >&6
17542else $as_nop
17543  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17544/* end confdefs.h.  */
17545int i;
17546int
17547main (void)
17548{
17549
17550  ;
17551  return 0;
17552}
17553_ACEOF
17554if ac_fn_c_try_link "$LINENO"
17555then :
17556  eval $cacheid=yes
17557else $as_nop
17558  eval $cacheid=no
17559fi
17560rm -f core conftest.err conftest.$ac_objext conftest.beam \
17561    conftest$ac_exeext conftest.$ac_ext
17562fi
17563
17564
17565		CFLAGS="$xorg_testset_save_CFLAGS"
17566
17567		eval supported=\$$cacheid
17568		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17569printf "%s\n" "$supported" >&6; }
17570		if test "$supported" = "yes" ; then
17571			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
17572			found="yes"
17573		fi
17574	fi
17575
17576
17577
17578
17579
17580
17581
17582
17583
17584
17585
17586
17587
17588
17589
17590xorg_testset_save_CFLAGS="$CFLAGS"
17591
17592if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17593	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17594	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17595printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17596if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17597then :
17598  printf %s "(cached) " >&6
17599else $as_nop
17600  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17601/* end confdefs.h.  */
17602int i;
17603_ACEOF
17604if ac_fn_c_try_compile "$LINENO"
17605then :
17606  xorg_cv_cc_flag_unknown_warning_option=yes
17607else $as_nop
17608  xorg_cv_cc_flag_unknown_warning_option=no
17609fi
17610rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17611fi
17612{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17613printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17614	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17615	CFLAGS="$xorg_testset_save_CFLAGS"
17616fi
17617
17618if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17619	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17620		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17621	fi
17622	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17623	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17624printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17625if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17626then :
17627  printf %s "(cached) " >&6
17628else $as_nop
17629  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17630/* end confdefs.h.  */
17631int i;
17632_ACEOF
17633if ac_fn_c_try_compile "$LINENO"
17634then :
17635  xorg_cv_cc_flag_unused_command_line_argument=yes
17636else $as_nop
17637  xorg_cv_cc_flag_unused_command_line_argument=no
17638fi
17639rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17640fi
17641{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17642printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17643	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17644	CFLAGS="$xorg_testset_save_CFLAGS"
17645fi
17646
17647found="no"
17648
17649	if test $found = "no" ; then
17650		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17651			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17652		fi
17653
17654		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17655			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17656		fi
17657
17658		CFLAGS="$CFLAGS -Wsequence-point"
17659
17660		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
17661printf %s "checking if $CC supports -Wsequence-point... " >&6; }
17662		cacheid=xorg_cv_cc_flag__Wsequence_point
17663		if eval test \${$cacheid+y}
17664then :
17665  printf %s "(cached) " >&6
17666else $as_nop
17667  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17668/* end confdefs.h.  */
17669int i;
17670int
17671main (void)
17672{
17673
17674  ;
17675  return 0;
17676}
17677_ACEOF
17678if ac_fn_c_try_link "$LINENO"
17679then :
17680  eval $cacheid=yes
17681else $as_nop
17682  eval $cacheid=no
17683fi
17684rm -f core conftest.err conftest.$ac_objext conftest.beam \
17685    conftest$ac_exeext conftest.$ac_ext
17686fi
17687
17688
17689		CFLAGS="$xorg_testset_save_CFLAGS"
17690
17691		eval supported=\$$cacheid
17692		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17693printf "%s\n" "$supported" >&6; }
17694		if test "$supported" = "yes" ; then
17695			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
17696			found="yes"
17697		fi
17698	fi
17699
17700
17701
17702
17703
17704
17705
17706
17707
17708
17709
17710
17711
17712
17713
17714xorg_testset_save_CFLAGS="$CFLAGS"
17715
17716if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17717	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17718	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17719printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17720if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17721then :
17722  printf %s "(cached) " >&6
17723else $as_nop
17724  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17725/* end confdefs.h.  */
17726int i;
17727_ACEOF
17728if ac_fn_c_try_compile "$LINENO"
17729then :
17730  xorg_cv_cc_flag_unknown_warning_option=yes
17731else $as_nop
17732  xorg_cv_cc_flag_unknown_warning_option=no
17733fi
17734rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17735fi
17736{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17737printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17738	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17739	CFLAGS="$xorg_testset_save_CFLAGS"
17740fi
17741
17742if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17743	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17744		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17745	fi
17746	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17747	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17748printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17749if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17750then :
17751  printf %s "(cached) " >&6
17752else $as_nop
17753  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17754/* end confdefs.h.  */
17755int i;
17756_ACEOF
17757if ac_fn_c_try_compile "$LINENO"
17758then :
17759  xorg_cv_cc_flag_unused_command_line_argument=yes
17760else $as_nop
17761  xorg_cv_cc_flag_unused_command_line_argument=no
17762fi
17763rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17764fi
17765{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17766printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17767	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17768	CFLAGS="$xorg_testset_save_CFLAGS"
17769fi
17770
17771found="no"
17772
17773	if test $found = "no" ; then
17774		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17775			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17776		fi
17777
17778		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17779			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17780		fi
17781
17782		CFLAGS="$CFLAGS -Wreturn-type"
17783
17784		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
17785printf %s "checking if $CC supports -Wreturn-type... " >&6; }
17786		cacheid=xorg_cv_cc_flag__Wreturn_type
17787		if eval test \${$cacheid+y}
17788then :
17789  printf %s "(cached) " >&6
17790else $as_nop
17791  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17792/* end confdefs.h.  */
17793int i;
17794int
17795main (void)
17796{
17797
17798  ;
17799  return 0;
17800}
17801_ACEOF
17802if ac_fn_c_try_link "$LINENO"
17803then :
17804  eval $cacheid=yes
17805else $as_nop
17806  eval $cacheid=no
17807fi
17808rm -f core conftest.err conftest.$ac_objext conftest.beam \
17809    conftest$ac_exeext conftest.$ac_ext
17810fi
17811
17812
17813		CFLAGS="$xorg_testset_save_CFLAGS"
17814
17815		eval supported=\$$cacheid
17816		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17817printf "%s\n" "$supported" >&6; }
17818		if test "$supported" = "yes" ; then
17819			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
17820			found="yes"
17821		fi
17822	fi
17823
17824
17825
17826
17827
17828
17829
17830
17831
17832
17833
17834
17835
17836
17837
17838xorg_testset_save_CFLAGS="$CFLAGS"
17839
17840if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17841	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17842	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17843printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17844if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17845then :
17846  printf %s "(cached) " >&6
17847else $as_nop
17848  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17849/* end confdefs.h.  */
17850int i;
17851_ACEOF
17852if ac_fn_c_try_compile "$LINENO"
17853then :
17854  xorg_cv_cc_flag_unknown_warning_option=yes
17855else $as_nop
17856  xorg_cv_cc_flag_unknown_warning_option=no
17857fi
17858rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17859fi
17860{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17861printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17862	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17863	CFLAGS="$xorg_testset_save_CFLAGS"
17864fi
17865
17866if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17867	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17868		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17869	fi
17870	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17871	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17872printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17873if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17874then :
17875  printf %s "(cached) " >&6
17876else $as_nop
17877  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17878/* end confdefs.h.  */
17879int i;
17880_ACEOF
17881if ac_fn_c_try_compile "$LINENO"
17882then :
17883  xorg_cv_cc_flag_unused_command_line_argument=yes
17884else $as_nop
17885  xorg_cv_cc_flag_unused_command_line_argument=no
17886fi
17887rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17888fi
17889{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17890printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17891	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17892	CFLAGS="$xorg_testset_save_CFLAGS"
17893fi
17894
17895found="no"
17896
17897	if test $found = "no" ; then
17898		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17899			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17900		fi
17901
17902		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17903			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17904		fi
17905
17906		CFLAGS="$CFLAGS -Wtrigraphs"
17907
17908		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
17909printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
17910		cacheid=xorg_cv_cc_flag__Wtrigraphs
17911		if eval test \${$cacheid+y}
17912then :
17913  printf %s "(cached) " >&6
17914else $as_nop
17915  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17916/* end confdefs.h.  */
17917int i;
17918int
17919main (void)
17920{
17921
17922  ;
17923  return 0;
17924}
17925_ACEOF
17926if ac_fn_c_try_link "$LINENO"
17927then :
17928  eval $cacheid=yes
17929else $as_nop
17930  eval $cacheid=no
17931fi
17932rm -f core conftest.err conftest.$ac_objext conftest.beam \
17933    conftest$ac_exeext conftest.$ac_ext
17934fi
17935
17936
17937		CFLAGS="$xorg_testset_save_CFLAGS"
17938
17939		eval supported=\$$cacheid
17940		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17941printf "%s\n" "$supported" >&6; }
17942		if test "$supported" = "yes" ; then
17943			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
17944			found="yes"
17945		fi
17946	fi
17947
17948
17949
17950
17951
17952
17953
17954
17955
17956
17957
17958
17959
17960
17961
17962xorg_testset_save_CFLAGS="$CFLAGS"
17963
17964if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17965	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17966	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17967printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17968if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17969then :
17970  printf %s "(cached) " >&6
17971else $as_nop
17972  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17973/* end confdefs.h.  */
17974int i;
17975_ACEOF
17976if ac_fn_c_try_compile "$LINENO"
17977then :
17978  xorg_cv_cc_flag_unknown_warning_option=yes
17979else $as_nop
17980  xorg_cv_cc_flag_unknown_warning_option=no
17981fi
17982rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17983fi
17984{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17985printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17986	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17987	CFLAGS="$xorg_testset_save_CFLAGS"
17988fi
17989
17990if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17991	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17992		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17993	fi
17994	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17995	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17996printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17997if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17998then :
17999  printf %s "(cached) " >&6
18000else $as_nop
18001  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18002/* end confdefs.h.  */
18003int i;
18004_ACEOF
18005if ac_fn_c_try_compile "$LINENO"
18006then :
18007  xorg_cv_cc_flag_unused_command_line_argument=yes
18008else $as_nop
18009  xorg_cv_cc_flag_unused_command_line_argument=no
18010fi
18011rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18012fi
18013{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18014printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18015	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18016	CFLAGS="$xorg_testset_save_CFLAGS"
18017fi
18018
18019found="no"
18020
18021	if test $found = "no" ; then
18022		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18023			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18024		fi
18025
18026		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18027			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18028		fi
18029
18030		CFLAGS="$CFLAGS -Warray-bounds"
18031
18032		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
18033printf %s "checking if $CC supports -Warray-bounds... " >&6; }
18034		cacheid=xorg_cv_cc_flag__Warray_bounds
18035		if eval test \${$cacheid+y}
18036then :
18037  printf %s "(cached) " >&6
18038else $as_nop
18039  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18040/* end confdefs.h.  */
18041int i;
18042int
18043main (void)
18044{
18045
18046  ;
18047  return 0;
18048}
18049_ACEOF
18050if ac_fn_c_try_link "$LINENO"
18051then :
18052  eval $cacheid=yes
18053else $as_nop
18054  eval $cacheid=no
18055fi
18056rm -f core conftest.err conftest.$ac_objext conftest.beam \
18057    conftest$ac_exeext conftest.$ac_ext
18058fi
18059
18060
18061		CFLAGS="$xorg_testset_save_CFLAGS"
18062
18063		eval supported=\$$cacheid
18064		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18065printf "%s\n" "$supported" >&6; }
18066		if test "$supported" = "yes" ; then
18067			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
18068			found="yes"
18069		fi
18070	fi
18071
18072
18073
18074
18075
18076
18077
18078
18079
18080
18081
18082
18083
18084
18085
18086xorg_testset_save_CFLAGS="$CFLAGS"
18087
18088if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18089	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18090	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18091printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18092if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18093then :
18094  printf %s "(cached) " >&6
18095else $as_nop
18096  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18097/* end confdefs.h.  */
18098int i;
18099_ACEOF
18100if ac_fn_c_try_compile "$LINENO"
18101then :
18102  xorg_cv_cc_flag_unknown_warning_option=yes
18103else $as_nop
18104  xorg_cv_cc_flag_unknown_warning_option=no
18105fi
18106rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18107fi
18108{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18109printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18110	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18111	CFLAGS="$xorg_testset_save_CFLAGS"
18112fi
18113
18114if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18115	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18116		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18117	fi
18118	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18119	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18120printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18121if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18122then :
18123  printf %s "(cached) " >&6
18124else $as_nop
18125  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18126/* end confdefs.h.  */
18127int i;
18128_ACEOF
18129if ac_fn_c_try_compile "$LINENO"
18130then :
18131  xorg_cv_cc_flag_unused_command_line_argument=yes
18132else $as_nop
18133  xorg_cv_cc_flag_unused_command_line_argument=no
18134fi
18135rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18136fi
18137{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18138printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18139	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18140	CFLAGS="$xorg_testset_save_CFLAGS"
18141fi
18142
18143found="no"
18144
18145	if test $found = "no" ; then
18146		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18147			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18148		fi
18149
18150		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18151			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18152		fi
18153
18154		CFLAGS="$CFLAGS -Wwrite-strings"
18155
18156		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
18157printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
18158		cacheid=xorg_cv_cc_flag__Wwrite_strings
18159		if eval test \${$cacheid+y}
18160then :
18161  printf %s "(cached) " >&6
18162else $as_nop
18163  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18164/* end confdefs.h.  */
18165int i;
18166int
18167main (void)
18168{
18169
18170  ;
18171  return 0;
18172}
18173_ACEOF
18174if ac_fn_c_try_link "$LINENO"
18175then :
18176  eval $cacheid=yes
18177else $as_nop
18178  eval $cacheid=no
18179fi
18180rm -f core conftest.err conftest.$ac_objext conftest.beam \
18181    conftest$ac_exeext conftest.$ac_ext
18182fi
18183
18184
18185		CFLAGS="$xorg_testset_save_CFLAGS"
18186
18187		eval supported=\$$cacheid
18188		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18189printf "%s\n" "$supported" >&6; }
18190		if test "$supported" = "yes" ; then
18191			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
18192			found="yes"
18193		fi
18194	fi
18195
18196
18197
18198
18199
18200
18201
18202
18203
18204
18205
18206
18207
18208
18209
18210xorg_testset_save_CFLAGS="$CFLAGS"
18211
18212if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18213	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18214	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18215printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18216if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18217then :
18218  printf %s "(cached) " >&6
18219else $as_nop
18220  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18221/* end confdefs.h.  */
18222int i;
18223_ACEOF
18224if ac_fn_c_try_compile "$LINENO"
18225then :
18226  xorg_cv_cc_flag_unknown_warning_option=yes
18227else $as_nop
18228  xorg_cv_cc_flag_unknown_warning_option=no
18229fi
18230rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18231fi
18232{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18233printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18234	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18235	CFLAGS="$xorg_testset_save_CFLAGS"
18236fi
18237
18238if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18239	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18240		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18241	fi
18242	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18243	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18244printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18245if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18246then :
18247  printf %s "(cached) " >&6
18248else $as_nop
18249  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18250/* end confdefs.h.  */
18251int i;
18252_ACEOF
18253if ac_fn_c_try_compile "$LINENO"
18254then :
18255  xorg_cv_cc_flag_unused_command_line_argument=yes
18256else $as_nop
18257  xorg_cv_cc_flag_unused_command_line_argument=no
18258fi
18259rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18260fi
18261{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18262printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18263	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18264	CFLAGS="$xorg_testset_save_CFLAGS"
18265fi
18266
18267found="no"
18268
18269	if test $found = "no" ; then
18270		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18271			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18272		fi
18273
18274		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18275			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18276		fi
18277
18278		CFLAGS="$CFLAGS -Waddress"
18279
18280		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
18281printf %s "checking if $CC supports -Waddress... " >&6; }
18282		cacheid=xorg_cv_cc_flag__Waddress
18283		if eval test \${$cacheid+y}
18284then :
18285  printf %s "(cached) " >&6
18286else $as_nop
18287  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18288/* end confdefs.h.  */
18289int i;
18290int
18291main (void)
18292{
18293
18294  ;
18295  return 0;
18296}
18297_ACEOF
18298if ac_fn_c_try_link "$LINENO"
18299then :
18300  eval $cacheid=yes
18301else $as_nop
18302  eval $cacheid=no
18303fi
18304rm -f core conftest.err conftest.$ac_objext conftest.beam \
18305    conftest$ac_exeext conftest.$ac_ext
18306fi
18307
18308
18309		CFLAGS="$xorg_testset_save_CFLAGS"
18310
18311		eval supported=\$$cacheid
18312		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18313printf "%s\n" "$supported" >&6; }
18314		if test "$supported" = "yes" ; then
18315			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
18316			found="yes"
18317		fi
18318	fi
18319
18320
18321
18322
18323
18324
18325
18326
18327
18328
18329
18330
18331
18332
18333
18334xorg_testset_save_CFLAGS="$CFLAGS"
18335
18336if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18337	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18338	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18339printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18340if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18341then :
18342  printf %s "(cached) " >&6
18343else $as_nop
18344  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18345/* end confdefs.h.  */
18346int i;
18347_ACEOF
18348if ac_fn_c_try_compile "$LINENO"
18349then :
18350  xorg_cv_cc_flag_unknown_warning_option=yes
18351else $as_nop
18352  xorg_cv_cc_flag_unknown_warning_option=no
18353fi
18354rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18355fi
18356{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18357printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18358	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18359	CFLAGS="$xorg_testset_save_CFLAGS"
18360fi
18361
18362if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18363	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18364		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18365	fi
18366	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18367	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18368printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18369if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18370then :
18371  printf %s "(cached) " >&6
18372else $as_nop
18373  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18374/* end confdefs.h.  */
18375int i;
18376_ACEOF
18377if ac_fn_c_try_compile "$LINENO"
18378then :
18379  xorg_cv_cc_flag_unused_command_line_argument=yes
18380else $as_nop
18381  xorg_cv_cc_flag_unused_command_line_argument=no
18382fi
18383rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18384fi
18385{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18386printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18387	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18388	CFLAGS="$xorg_testset_save_CFLAGS"
18389fi
18390
18391found="no"
18392
18393	if test $found = "no" ; then
18394		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18395			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18396		fi
18397
18398		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18399			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18400		fi
18401
18402		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
18403
18404		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
18405printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
18406		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
18407		if eval test \${$cacheid+y}
18408then :
18409  printf %s "(cached) " >&6
18410else $as_nop
18411  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18412/* end confdefs.h.  */
18413int i;
18414int
18415main (void)
18416{
18417
18418  ;
18419  return 0;
18420}
18421_ACEOF
18422if ac_fn_c_try_link "$LINENO"
18423then :
18424  eval $cacheid=yes
18425else $as_nop
18426  eval $cacheid=no
18427fi
18428rm -f core conftest.err conftest.$ac_objext conftest.beam \
18429    conftest$ac_exeext conftest.$ac_ext
18430fi
18431
18432
18433		CFLAGS="$xorg_testset_save_CFLAGS"
18434
18435		eval supported=\$$cacheid
18436		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18437printf "%s\n" "$supported" >&6; }
18438		if test "$supported" = "yes" ; then
18439			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
18440			found="yes"
18441		fi
18442	fi
18443
18444
18445
18446
18447
18448
18449
18450
18451
18452
18453
18454
18455
18456
18457
18458xorg_testset_save_CFLAGS="$CFLAGS"
18459
18460if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18461	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18462	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18463printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18464if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18465then :
18466  printf %s "(cached) " >&6
18467else $as_nop
18468  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18469/* end confdefs.h.  */
18470int i;
18471_ACEOF
18472if ac_fn_c_try_compile "$LINENO"
18473then :
18474  xorg_cv_cc_flag_unknown_warning_option=yes
18475else $as_nop
18476  xorg_cv_cc_flag_unknown_warning_option=no
18477fi
18478rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18479fi
18480{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18481printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18482	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18483	CFLAGS="$xorg_testset_save_CFLAGS"
18484fi
18485
18486if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18487	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18488		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18489	fi
18490	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18491	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18492printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18493if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18494then :
18495  printf %s "(cached) " >&6
18496else $as_nop
18497  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18498/* end confdefs.h.  */
18499int i;
18500_ACEOF
18501if ac_fn_c_try_compile "$LINENO"
18502then :
18503  xorg_cv_cc_flag_unused_command_line_argument=yes
18504else $as_nop
18505  xorg_cv_cc_flag_unused_command_line_argument=no
18506fi
18507rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18508fi
18509{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18510printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18511	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18512	CFLAGS="$xorg_testset_save_CFLAGS"
18513fi
18514
18515found="no"
18516
18517	if test $found = "no" ; then
18518		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18519			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18520		fi
18521
18522		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18523			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18524		fi
18525
18526		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
18527
18528		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
18529printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
18530		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
18531		if eval test \${$cacheid+y}
18532then :
18533  printf %s "(cached) " >&6
18534else $as_nop
18535  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18536/* end confdefs.h.  */
18537int i;
18538int
18539main (void)
18540{
18541
18542  ;
18543  return 0;
18544}
18545_ACEOF
18546if ac_fn_c_try_link "$LINENO"
18547then :
18548  eval $cacheid=yes
18549else $as_nop
18550  eval $cacheid=no
18551fi
18552rm -f core conftest.err conftest.$ac_objext conftest.beam \
18553    conftest$ac_exeext conftest.$ac_ext
18554fi
18555
18556
18557		CFLAGS="$xorg_testset_save_CFLAGS"
18558
18559		eval supported=\$$cacheid
18560		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18561printf "%s\n" "$supported" >&6; }
18562		if test "$supported" = "yes" ; then
18563			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
18564			found="yes"
18565		fi
18566	fi
18567
18568
18569fi
18570
18571
18572
18573
18574
18575
18576
18577		CWARNFLAGS="$BASE_CFLAGS"
18578		if  test "x$GCC" = xyes ; then
18579		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
18580		fi
18581
18582
18583
18584
18585
18586
18587
18588
18589# Check whether --enable-strict-compilation was given.
18590if test ${enable_strict_compilation+y}
18591then :
18592  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
18593else $as_nop
18594  STRICT_COMPILE=no
18595fi
18596
18597
18598
18599
18600
18601
18602STRICT_CFLAGS=""
18603
18604
18605
18606
18607
18608
18609
18610
18611
18612
18613
18614
18615
18616xorg_testset_save_CFLAGS="$CFLAGS"
18617
18618if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18619	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18620	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18621printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18622if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18623then :
18624  printf %s "(cached) " >&6
18625else $as_nop
18626  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18627/* end confdefs.h.  */
18628int i;
18629_ACEOF
18630if ac_fn_c_try_compile "$LINENO"
18631then :
18632  xorg_cv_cc_flag_unknown_warning_option=yes
18633else $as_nop
18634  xorg_cv_cc_flag_unknown_warning_option=no
18635fi
18636rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18637fi
18638{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18639printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18640	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18641	CFLAGS="$xorg_testset_save_CFLAGS"
18642fi
18643
18644if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18645	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18646		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18647	fi
18648	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18649	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18650printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18651if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18652then :
18653  printf %s "(cached) " >&6
18654else $as_nop
18655  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18656/* end confdefs.h.  */
18657int i;
18658_ACEOF
18659if ac_fn_c_try_compile "$LINENO"
18660then :
18661  xorg_cv_cc_flag_unused_command_line_argument=yes
18662else $as_nop
18663  xorg_cv_cc_flag_unused_command_line_argument=no
18664fi
18665rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18666fi
18667{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18668printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18669	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18670	CFLAGS="$xorg_testset_save_CFLAGS"
18671fi
18672
18673found="no"
18674
18675	if test $found = "no" ; then
18676		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18677			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18678		fi
18679
18680		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18681			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18682		fi
18683
18684		CFLAGS="$CFLAGS -pedantic"
18685
18686		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
18687printf %s "checking if $CC supports -pedantic... " >&6; }
18688		cacheid=xorg_cv_cc_flag__pedantic
18689		if eval test \${$cacheid+y}
18690then :
18691  printf %s "(cached) " >&6
18692else $as_nop
18693  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18694/* end confdefs.h.  */
18695int i;
18696int
18697main (void)
18698{
18699
18700  ;
18701  return 0;
18702}
18703_ACEOF
18704if ac_fn_c_try_link "$LINENO"
18705then :
18706  eval $cacheid=yes
18707else $as_nop
18708  eval $cacheid=no
18709fi
18710rm -f core conftest.err conftest.$ac_objext conftest.beam \
18711    conftest$ac_exeext conftest.$ac_ext
18712fi
18713
18714
18715		CFLAGS="$xorg_testset_save_CFLAGS"
18716
18717		eval supported=\$$cacheid
18718		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18719printf "%s\n" "$supported" >&6; }
18720		if test "$supported" = "yes" ; then
18721			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
18722			found="yes"
18723		fi
18724	fi
18725
18726
18727
18728
18729
18730
18731
18732
18733
18734
18735
18736
18737
18738
18739
18740xorg_testset_save_CFLAGS="$CFLAGS"
18741
18742if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18743	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18744	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18745printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18746if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18747then :
18748  printf %s "(cached) " >&6
18749else $as_nop
18750  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18751/* end confdefs.h.  */
18752int i;
18753_ACEOF
18754if ac_fn_c_try_compile "$LINENO"
18755then :
18756  xorg_cv_cc_flag_unknown_warning_option=yes
18757else $as_nop
18758  xorg_cv_cc_flag_unknown_warning_option=no
18759fi
18760rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18761fi
18762{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18763printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18764	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18765	CFLAGS="$xorg_testset_save_CFLAGS"
18766fi
18767
18768if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18769	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18770		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18771	fi
18772	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18773	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18774printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18775if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18776then :
18777  printf %s "(cached) " >&6
18778else $as_nop
18779  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18780/* end confdefs.h.  */
18781int i;
18782_ACEOF
18783if ac_fn_c_try_compile "$LINENO"
18784then :
18785  xorg_cv_cc_flag_unused_command_line_argument=yes
18786else $as_nop
18787  xorg_cv_cc_flag_unused_command_line_argument=no
18788fi
18789rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18790fi
18791{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18792printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18793	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18794	CFLAGS="$xorg_testset_save_CFLAGS"
18795fi
18796
18797found="no"
18798
18799	if test $found = "no" ; then
18800		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18801			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18802		fi
18803
18804		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18805			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18806		fi
18807
18808		CFLAGS="$CFLAGS -Werror"
18809
18810		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
18811printf %s "checking if $CC supports -Werror... " >&6; }
18812		cacheid=xorg_cv_cc_flag__Werror
18813		if eval test \${$cacheid+y}
18814then :
18815  printf %s "(cached) " >&6
18816else $as_nop
18817  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18818/* end confdefs.h.  */
18819int i;
18820int
18821main (void)
18822{
18823
18824  ;
18825  return 0;
18826}
18827_ACEOF
18828if ac_fn_c_try_link "$LINENO"
18829then :
18830  eval $cacheid=yes
18831else $as_nop
18832  eval $cacheid=no
18833fi
18834rm -f core conftest.err conftest.$ac_objext conftest.beam \
18835    conftest$ac_exeext conftest.$ac_ext
18836fi
18837
18838
18839		CFLAGS="$xorg_testset_save_CFLAGS"
18840
18841		eval supported=\$$cacheid
18842		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18843printf "%s\n" "$supported" >&6; }
18844		if test "$supported" = "yes" ; then
18845			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
18846			found="yes"
18847		fi
18848	fi
18849
18850	if test $found = "no" ; then
18851		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18852			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18853		fi
18854
18855		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18856			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18857		fi
18858
18859		CFLAGS="$CFLAGS -errwarn"
18860
18861		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
18862printf %s "checking if $CC supports -errwarn... " >&6; }
18863		cacheid=xorg_cv_cc_flag__errwarn
18864		if eval test \${$cacheid+y}
18865then :
18866  printf %s "(cached) " >&6
18867else $as_nop
18868  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18869/* end confdefs.h.  */
18870int i;
18871int
18872main (void)
18873{
18874
18875  ;
18876  return 0;
18877}
18878_ACEOF
18879if ac_fn_c_try_link "$LINENO"
18880then :
18881  eval $cacheid=yes
18882else $as_nop
18883  eval $cacheid=no
18884fi
18885rm -f core conftest.err conftest.$ac_objext conftest.beam \
18886    conftest$ac_exeext conftest.$ac_ext
18887fi
18888
18889
18890		CFLAGS="$xorg_testset_save_CFLAGS"
18891
18892		eval supported=\$$cacheid
18893		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18894printf "%s\n" "$supported" >&6; }
18895		if test "$supported" = "yes" ; then
18896			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
18897			found="yes"
18898		fi
18899	fi
18900
18901
18902
18903# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
18904# activate it with -Werror, so we add it here explicitly.
18905
18906
18907
18908
18909
18910
18911
18912
18913
18914
18915
18916
18917
18918xorg_testset_save_CFLAGS="$CFLAGS"
18919
18920if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18921	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18922	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18923printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18924if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18925then :
18926  printf %s "(cached) " >&6
18927else $as_nop
18928  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18929/* end confdefs.h.  */
18930int i;
18931_ACEOF
18932if ac_fn_c_try_compile "$LINENO"
18933then :
18934  xorg_cv_cc_flag_unknown_warning_option=yes
18935else $as_nop
18936  xorg_cv_cc_flag_unknown_warning_option=no
18937fi
18938rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18939fi
18940{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18941printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18942	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18943	CFLAGS="$xorg_testset_save_CFLAGS"
18944fi
18945
18946if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18947	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18948		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18949	fi
18950	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18951	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18952printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18953if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18954then :
18955  printf %s "(cached) " >&6
18956else $as_nop
18957  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18958/* end confdefs.h.  */
18959int i;
18960_ACEOF
18961if ac_fn_c_try_compile "$LINENO"
18962then :
18963  xorg_cv_cc_flag_unused_command_line_argument=yes
18964else $as_nop
18965  xorg_cv_cc_flag_unused_command_line_argument=no
18966fi
18967rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18968fi
18969{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18970printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18971	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18972	CFLAGS="$xorg_testset_save_CFLAGS"
18973fi
18974
18975found="no"
18976
18977	if test $found = "no" ; then
18978		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18979			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18980		fi
18981
18982		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18983			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18984		fi
18985
18986		CFLAGS="$CFLAGS -Werror=attributes"
18987
18988		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
18989printf %s "checking if $CC supports -Werror=attributes... " >&6; }
18990		cacheid=xorg_cv_cc_flag__Werror_attributes
18991		if eval test \${$cacheid+y}
18992then :
18993  printf %s "(cached) " >&6
18994else $as_nop
18995  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18996/* end confdefs.h.  */
18997int i;
18998int
18999main (void)
19000{
19001
19002  ;
19003  return 0;
19004}
19005_ACEOF
19006if ac_fn_c_try_link "$LINENO"
19007then :
19008  eval $cacheid=yes
19009else $as_nop
19010  eval $cacheid=no
19011fi
19012rm -f core conftest.err conftest.$ac_objext conftest.beam \
19013    conftest$ac_exeext conftest.$ac_ext
19014fi
19015
19016
19017		CFLAGS="$xorg_testset_save_CFLAGS"
19018
19019		eval supported=\$$cacheid
19020		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19021printf "%s\n" "$supported" >&6; }
19022		if test "$supported" = "yes" ; then
19023			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
19024			found="yes"
19025		fi
19026	fi
19027
19028
19029
19030if test "x$STRICT_COMPILE" = "xyes"; then
19031    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
19032    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
19033fi
19034
19035
19036
19037
19038
19039
19040
19041
19042cat >>confdefs.h <<_ACEOF
19043#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
19044_ACEOF
19045
19046	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
19047	if test "x$PVM" = "x"; then
19048		PVM="0"
19049	fi
19050
19051printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
19052
19053	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
19054	if test "x$PVP" = "x"; then
19055		PVP="0"
19056	fi
19057
19058printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
19059
19060
19061
19062CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
19063mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
19064|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
19065touch \$(top_srcdir)/ChangeLog; \
19066echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
19067
19068
19069
19070
19071macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
19072INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
19073mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
19074|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
19075touch \$(top_srcdir)/INSTALL; \
19076echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
19077
19078
19079
19080
19081
19082
19083case $host_os in
19084    solaris*)
19085        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
19086        # check for a man page file found in later versions that use
19087        # traditional section numbers instead
19088        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
19089printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
19090if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
19091then :
19092  printf %s "(cached) " >&6
19093else $as_nop
19094  test "$cross_compiling" = yes &&
19095  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
19096if test -r "/usr/share/man/man7/attributes.7"; then
19097  ac_cv_file__usr_share_man_man7_attributes_7=yes
19098else
19099  ac_cv_file__usr_share_man_man7_attributes_7=no
19100fi
19101fi
19102{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
19103printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
19104if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
19105then :
19106  SYSV_MAN_SECTIONS=false
19107else $as_nop
19108  SYSV_MAN_SECTIONS=true
19109fi
19110
19111        ;;
19112    *) SYSV_MAN_SECTIONS=false ;;
19113esac
19114
19115if test x$APP_MAN_SUFFIX = x    ; then
19116    APP_MAN_SUFFIX=1
19117fi
19118if test x$APP_MAN_DIR = x    ; then
19119    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
19120fi
19121
19122if test x$LIB_MAN_SUFFIX = x    ; then
19123    LIB_MAN_SUFFIX=3
19124fi
19125if test x$LIB_MAN_DIR = x    ; then
19126    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
19127fi
19128
19129if test x$FILE_MAN_SUFFIX = x    ; then
19130    case $SYSV_MAN_SECTIONS in
19131	true)				FILE_MAN_SUFFIX=4  ;;
19132	*)				FILE_MAN_SUFFIX=5  ;;
19133    esac
19134fi
19135if test x$FILE_MAN_DIR = x    ; then
19136    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
19137fi
19138
19139if test x$MISC_MAN_SUFFIX = x    ; then
19140    case $SYSV_MAN_SECTIONS in
19141	true)				MISC_MAN_SUFFIX=5  ;;
19142	*)				MISC_MAN_SUFFIX=7  ;;
19143    esac
19144fi
19145if test x$MISC_MAN_DIR = x    ; then
19146    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
19147fi
19148
19149if test x$DRIVER_MAN_SUFFIX = x    ; then
19150    case $SYSV_MAN_SECTIONS in
19151	true)				DRIVER_MAN_SUFFIX=7  ;;
19152	*)				DRIVER_MAN_SUFFIX=4  ;;
19153    esac
19154fi
19155if test x$DRIVER_MAN_DIR = x    ; then
19156    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
19157fi
19158
19159if test x$ADMIN_MAN_SUFFIX = x    ; then
19160    case $SYSV_MAN_SECTIONS in
19161	true)				ADMIN_MAN_SUFFIX=1m ;;
19162	*)				ADMIN_MAN_SUFFIX=8  ;;
19163    esac
19164fi
19165if test x$ADMIN_MAN_DIR = x    ; then
19166    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
19167fi
19168
19169
19170
19171
19172
19173
19174
19175
19176
19177
19178
19179
19180
19181
19182
19183XORG_MAN_PAGE="X Version 11"
19184
19185MAN_SUBSTS="\
19186	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19187	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19188	-e 's|__xservername__|Xorg|g' \
19189	-e 's|__xconfigfile__|xorg.conf|g' \
19190	-e 's|__projectroot__|\$(prefix)|g' \
19191	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
19192	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
19193	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
19194	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
19195	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
19196	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
19197	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
19198
19199
19200
19201# Check whether --enable-silent-rules was given.
19202if test ${enable_silent_rules+y}
19203then :
19204  enableval=$enable_silent_rules;
19205fi
19206
19207case $enable_silent_rules in # (((
19208  yes) AM_DEFAULT_VERBOSITY=0;;
19209   no) AM_DEFAULT_VERBOSITY=1;;
19210    *) AM_DEFAULT_VERBOSITY=0;;
19211esac
19212am_make=${MAKE-make}
19213{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
19214printf %s "checking whether $am_make supports nested variables... " >&6; }
19215if test ${am_cv_make_support_nested_variables+y}
19216then :
19217  printf %s "(cached) " >&6
19218else $as_nop
19219  if printf "%s\n" 'TRUE=$(BAR$(V))
19220BAR0=false
19221BAR1=true
19222V=1
19223am__doit:
19224	@$(TRUE)
19225.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
19226  am_cv_make_support_nested_variables=yes
19227else
19228  am_cv_make_support_nested_variables=no
19229fi
19230fi
19231{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
19232printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
19233if test $am_cv_make_support_nested_variables = yes; then
19234    AM_V='$(V)'
19235  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
19236else
19237  AM_V=$AM_DEFAULT_VERBOSITY
19238  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
19239fi
19240AM_BACKSLASH='\'
19241
19242
19243
19244
19245# Checks for library functions
19246ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
19247if test "x$ac_cv_func_strlcat" = xyes
19248then :
19249  printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h
19250
19251fi
19252
19253ac_fn_c_check_func "$LINENO" "fork" "ac_cv_func_fork"
19254if test "x$ac_cv_func_fork" = xyes
19255then :
19256
19257else $as_nop
19258  printf "%s\n" "#define NO_ZPIPE 1" >>confdefs.h
19259
19260fi
19261
19262
19263# Obtain compiler/linker options for dependencies
19264
19265pkg_failed=no
19266{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XPM" >&5
19267printf %s "checking for XPM... " >&6; }
19268
19269if test -n "$XPM_CFLAGS"; then
19270    pkg_cv_XPM_CFLAGS="$XPM_CFLAGS"
19271 elif test -n "$PKG_CONFIG"; then
19272    if test -n "$PKG_CONFIG" && \
19273    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto x11\""; } >&5
19274  ($PKG_CONFIG --exists --print-errors "xproto x11") 2>&5
19275  ac_status=$?
19276  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19277  test $ac_status = 0; }; then
19278  pkg_cv_XPM_CFLAGS=`$PKG_CONFIG --cflags "xproto x11" 2>/dev/null`
19279		      test "x$?" != "x0" && pkg_failed=yes
19280else
19281  pkg_failed=yes
19282fi
19283 else
19284    pkg_failed=untried
19285fi
19286if test -n "$XPM_LIBS"; then
19287    pkg_cv_XPM_LIBS="$XPM_LIBS"
19288 elif test -n "$PKG_CONFIG"; then
19289    if test -n "$PKG_CONFIG" && \
19290    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto x11\""; } >&5
19291  ($PKG_CONFIG --exists --print-errors "xproto x11") 2>&5
19292  ac_status=$?
19293  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19294  test $ac_status = 0; }; then
19295  pkg_cv_XPM_LIBS=`$PKG_CONFIG --libs "xproto x11" 2>/dev/null`
19296		      test "x$?" != "x0" && pkg_failed=yes
19297else
19298  pkg_failed=yes
19299fi
19300 else
19301    pkg_failed=untried
19302fi
19303
19304
19305
19306if test $pkg_failed = yes; then
19307   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19308printf "%s\n" "no" >&6; }
19309
19310if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19311        _pkg_short_errors_supported=yes
19312else
19313        _pkg_short_errors_supported=no
19314fi
19315        if test $_pkg_short_errors_supported = yes; then
19316	        XPM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto x11" 2>&1`
19317        else
19318	        XPM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto x11" 2>&1`
19319        fi
19320	# Put the nasty error message in config.log where it belongs
19321	echo "$XPM_PKG_ERRORS" >&5
19322
19323	as_fn_error $? "Package requirements (xproto x11) were not met:
19324
19325$XPM_PKG_ERRORS
19326
19327Consider adjusting the PKG_CONFIG_PATH environment variable if you
19328installed software in a non-standard prefix.
19329
19330Alternatively, you may set the environment variables XPM_CFLAGS
19331and XPM_LIBS to avoid the need to call pkg-config.
19332See the pkg-config man page for more details." "$LINENO" 5
19333elif test $pkg_failed = untried; then
19334     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19335printf "%s\n" "no" >&6; }
19336	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19337printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19338as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19339is in your PATH or set the PKG_CONFIG environment variable to the full
19340path to pkg-config.
19341
19342Alternatively, you may set the environment variables XPM_CFLAGS
19343and XPM_LIBS to avoid the need to call pkg-config.
19344See the pkg-config man page for more details.
19345
19346To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19347See \`config.log' for more details" "$LINENO" 5; }
19348else
19349	XPM_CFLAGS=$pkg_cv_XPM_CFLAGS
19350	XPM_LIBS=$pkg_cv_XPM_LIBS
19351        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19352printf "%s\n" "yes" >&6; }
19353
19354fi
19355
19356pkg_failed=no
19357{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SXPM" >&5
19358printf %s "checking for SXPM... " >&6; }
19359
19360if test -n "$SXPM_CFLAGS"; then
19361    pkg_cv_SXPM_CFLAGS="$SXPM_CFLAGS"
19362 elif test -n "$PKG_CONFIG"; then
19363    if test -n "$PKG_CONFIG" && \
19364    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xt xext xextproto xproto >= 7.0.17\""; } >&5
19365  ($PKG_CONFIG --exists --print-errors "x11 xt xext xextproto xproto >= 7.0.17") 2>&5
19366  ac_status=$?
19367  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19368  test $ac_status = 0; }; then
19369  pkg_cv_SXPM_CFLAGS=`$PKG_CONFIG --cflags "x11 xt xext xextproto xproto >= 7.0.17" 2>/dev/null`
19370		      test "x$?" != "x0" && pkg_failed=yes
19371else
19372  pkg_failed=yes
19373fi
19374 else
19375    pkg_failed=untried
19376fi
19377if test -n "$SXPM_LIBS"; then
19378    pkg_cv_SXPM_LIBS="$SXPM_LIBS"
19379 elif test -n "$PKG_CONFIG"; then
19380    if test -n "$PKG_CONFIG" && \
19381    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xt xext xextproto xproto >= 7.0.17\""; } >&5
19382  ($PKG_CONFIG --exists --print-errors "x11 xt xext xextproto xproto >= 7.0.17") 2>&5
19383  ac_status=$?
19384  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19385  test $ac_status = 0; }; then
19386  pkg_cv_SXPM_LIBS=`$PKG_CONFIG --libs "x11 xt xext xextproto xproto >= 7.0.17" 2>/dev/null`
19387		      test "x$?" != "x0" && pkg_failed=yes
19388else
19389  pkg_failed=yes
19390fi
19391 else
19392    pkg_failed=untried
19393fi
19394
19395
19396
19397if test $pkg_failed = yes; then
19398   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19399printf "%s\n" "no" >&6; }
19400
19401if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19402        _pkg_short_errors_supported=yes
19403else
19404        _pkg_short_errors_supported=no
19405fi
19406        if test $_pkg_short_errors_supported = yes; then
19407	        SXPM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xt xext xextproto xproto >= 7.0.17" 2>&1`
19408        else
19409	        SXPM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xt xext xextproto xproto >= 7.0.17" 2>&1`
19410        fi
19411	# Put the nasty error message in config.log where it belongs
19412	echo "$SXPM_PKG_ERRORS" >&5
19413
19414	build_sxpm=false
19415elif test $pkg_failed = untried; then
19416     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19417printf "%s\n" "no" >&6; }
19418	build_sxpm=false
19419else
19420	SXPM_CFLAGS=$pkg_cv_SXPM_CFLAGS
19421	SXPM_LIBS=$pkg_cv_SXPM_LIBS
19422        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19423printf "%s\n" "yes" >&6; }
19424	build_sxpm=true
19425fi
19426 if test x$build_sxpm = xtrue; then
19427  BUILD_SXPM_TRUE=
19428  BUILD_SXPM_FALSE='#'
19429else
19430  BUILD_SXPM_TRUE='#'
19431  BUILD_SXPM_FALSE=
19432fi
19433
19434
19435# Internationalization & localization support
19436{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gettext" >&5
19437printf %s "checking for library containing gettext... " >&6; }
19438if test ${ac_cv_search_gettext+y}
19439then :
19440  printf %s "(cached) " >&6
19441else $as_nop
19442  ac_func_search_save_LIBS=$LIBS
19443cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19444/* end confdefs.h.  */
19445
19446/* Override any GCC internal prototype to avoid an error.
19447   Use char because int might match the return type of a GCC
19448   builtin and then its argument prototype would still apply.  */
19449char gettext ();
19450int
19451main (void)
19452{
19453return gettext ();
19454  ;
19455  return 0;
19456}
19457_ACEOF
19458for ac_lib in '' intl
19459do
19460  if test -z "$ac_lib"; then
19461    ac_res="none required"
19462  else
19463    ac_res=-l$ac_lib
19464    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19465  fi
19466  if ac_fn_c_try_link "$LINENO"
19467then :
19468  ac_cv_search_gettext=$ac_res
19469fi
19470rm -f core conftest.err conftest.$ac_objext conftest.beam \
19471    conftest$ac_exeext
19472  if test ${ac_cv_search_gettext+y}
19473then :
19474  break
19475fi
19476done
19477if test ${ac_cv_search_gettext+y}
19478then :
19479
19480else $as_nop
19481  ac_cv_search_gettext=no
19482fi
19483rm conftest.$ac_ext
19484LIBS=$ac_func_search_save_LIBS
19485fi
19486{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gettext" >&5
19487printf "%s\n" "$ac_cv_search_gettext" >&6; }
19488ac_res=$ac_cv_search_gettext
19489if test "$ac_res" != no
19490then :
19491  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19492  USE_GETTEXT="yes"
19493else $as_nop
19494  USE_GETTEXT="no"
19495fi
19496
19497{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where to install localized messages" >&5
19498printf %s "checking where to install localized messages... " >&6; }
19499
19500# Check whether --with-localedir was given.
19501if test ${with_localedir+y}
19502then :
19503  withval=$with_localedir; LOCALEDIR=${withval}
19504else $as_nop
19505  LOCALEDIR=${datadir}/locale
19506fi
19507
19508
19509  prefix_NONE=
19510  exec_prefix_NONE=
19511  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
19512  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
19513  eval ax_define_dir="\"$LOCALEDIR\""
19514  eval ax_define_dir="\"$ax_define_dir\""
19515  LOCALEDIR="$ax_define_dir"
19516
19517
19518printf "%s\n" "#define LOCALEDIR \"$ax_define_dir\"" >>confdefs.h
19519
19520  test "$prefix_NONE" && prefix=NONE
19521  test "$exec_prefix_NONE" && exec_prefix=NONE
19522
19523if test "x$LOCALEDIR" = "xno" -o "x$USE_GETTEXT" = "xno" ; then
19524	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: nowhere" >&5
19525printf "%s\n" "nowhere" >&6; }
19526	USE_GETTEXT="no"
19527else
19528	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LOCALEDIR" >&5
19529printf "%s\n" "$LOCALEDIR" >&6; }
19530fi
19531
19532if test "x$USE_GETTEXT" = "xyes" ; then
19533
19534printf "%s\n" "#define USE_GETTEXT 1" >>confdefs.h
19535
19536fi
19537 if test "x$USE_GETTEXT" = "xyes"; then
19538  USE_GETTEXT_TRUE=
19539  USE_GETTEXT_FALSE='#'
19540else
19541  USE_GETTEXT_TRUE='#'
19542  USE_GETTEXT_FALSE=
19543fi
19544
19545
19546
19547# Optional feature: When a filename ending in .Z or .gz is requested,
19548# open a pipe to a newly forked compress/uncompress/gzip command to
19549# handle it.
19550{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to handle compressed pixmaps" >&5
19551printf %s "checking whether to handle compressed pixmaps... " >&6; }
19552case $host_os in
19553        *mingw*)        zpipe_default="no" ;;
19554        *)              zpipe_default="yes" ;;
19555esac
19556# Check whether --enable-open-zfile was given.
19557if test ${enable_open_zfile+y}
19558then :
19559  enableval=$enable_open_zfile; OPEN_ZFILE=$enableval
19560else $as_nop
19561  OPEN_ZFILE=yes
19562fi
19563
19564{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OPEN_ZFILE" >&5
19565printf "%s\n" "$OPEN_ZFILE" >&6; }
19566 if test "x$OPEN_ZFILE" = "xyes"; then
19567  COMPRESSED_PIXMAPS_TRUE=
19568  COMPRESSED_PIXMAPS_FALSE='#'
19569else
19570  COMPRESSED_PIXMAPS_TRUE='#'
19571  COMPRESSED_PIXMAPS_FALSE=
19572fi
19573
19574if test x$OPEN_ZFILE = xno ; then
19575
19576printf "%s\n" "#define NO_ZPIPE 1" >>confdefs.h
19577
19578else
19579        # gzip is absolutely required for the compressed file handling code
19580
19581# Extract the first word of "gzip", so it can be a program name with args.
19582set dummy gzip; ac_word=$2
19583{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19584printf %s "checking for $ac_word... " >&6; }
19585if test ${ac_cv_path_XPM_PATH_GZIP+y}
19586then :
19587  printf %s "(cached) " >&6
19588else $as_nop
19589  case $XPM_PATH_GZIP in
19590  [\\/]* | ?:[\\/]*)
19591  ac_cv_path_XPM_PATH_GZIP="$XPM_PATH_GZIP" # Let the user override the test with a path.
19592  ;;
19593  *)
19594  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19595for as_dir in $PATH
19596do
19597  IFS=$as_save_IFS
19598  case $as_dir in #(((
19599    '') as_dir=./ ;;
19600    */) ;;
19601    *) as_dir=$as_dir/ ;;
19602  esac
19603    for ac_exec_ext in '' $ac_executable_extensions; do
19604  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19605    ac_cv_path_XPM_PATH_GZIP="$as_dir$ac_word$ac_exec_ext"
19606    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19607    break 2
19608  fi
19609done
19610  done
19611IFS=$as_save_IFS
19612
19613  ;;
19614esac
19615fi
19616XPM_PATH_GZIP=$ac_cv_path_XPM_PATH_GZIP
19617if test -n "$XPM_PATH_GZIP"; then
19618  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XPM_PATH_GZIP" >&5
19619printf "%s\n" "$XPM_PATH_GZIP" >&6; }
19620else
19621  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19622printf "%s\n" "no" >&6; }
19623fi
19624
19625
19626if test "x$XPM_PATH_GZIP" = "x"
19627then :
19628  as_fn_error $? "gzip not found, set XPM_PATH_GZIP or use --disable-open-zfile" "$LINENO" 5
19629else $as_nop
19630
19631printf "%s\n" "#define XPM_PATH_GZIP \"$XPM_PATH_GZIP\"" >>confdefs.h
19632
19633fi
19634
19635
19636        # if compress is not found, we disable writing to .Z files,
19637        # but leave the rest of the compression code active
19638
19639# Extract the first word of "compress", so it can be a program name with args.
19640set dummy compress; ac_word=$2
19641{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19642printf %s "checking for $ac_word... " >&6; }
19643if test ${ac_cv_path_XPM_PATH_COMPRESS+y}
19644then :
19645  printf %s "(cached) " >&6
19646else $as_nop
19647  case $XPM_PATH_COMPRESS in
19648  [\\/]* | ?:[\\/]*)
19649  ac_cv_path_XPM_PATH_COMPRESS="$XPM_PATH_COMPRESS" # Let the user override the test with a path.
19650  ;;
19651  *)
19652  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19653for as_dir in $PATH
19654do
19655  IFS=$as_save_IFS
19656  case $as_dir in #(((
19657    '') as_dir=./ ;;
19658    */) ;;
19659    *) as_dir=$as_dir/ ;;
19660  esac
19661    for ac_exec_ext in '' $ac_executable_extensions; do
19662  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19663    ac_cv_path_XPM_PATH_COMPRESS="$as_dir$ac_word$ac_exec_ext"
19664    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19665    break 2
19666  fi
19667done
19668  done
19669IFS=$as_save_IFS
19670
19671  ;;
19672esac
19673fi
19674XPM_PATH_COMPRESS=$ac_cv_path_XPM_PATH_COMPRESS
19675if test -n "$XPM_PATH_COMPRESS"; then
19676  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XPM_PATH_COMPRESS" >&5
19677printf "%s\n" "$XPM_PATH_COMPRESS" >&6; }
19678else
19679  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19680printf "%s\n" "no" >&6; }
19681fi
19682
19683
19684if test "x$XPM_PATH_COMPRESS" = "x"
19685then :
19686  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: compress not found, disabling writing of .Z files" >&5
19687printf "%s\n" "$as_me: WARNING: compress not found, disabling writing of .Z files" >&2;}
19688else $as_nop
19689
19690printf "%s\n" "#define XPM_PATH_COMPRESS \"$XPM_PATH_COMPRESS\"" >>confdefs.h
19691
19692fi
19693
19694        # if uncompress is not found, we use gzip to read .Z files
19695
19696# Extract the first word of "uncompress", so it can be a program name with args.
19697set dummy uncompress; ac_word=$2
19698{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19699printf %s "checking for $ac_word... " >&6; }
19700if test ${ac_cv_path_XPM_PATH_UNCOMPRESS+y}
19701then :
19702  printf %s "(cached) " >&6
19703else $as_nop
19704  case $XPM_PATH_UNCOMPRESS in
19705  [\\/]* | ?:[\\/]*)
19706  ac_cv_path_XPM_PATH_UNCOMPRESS="$XPM_PATH_UNCOMPRESS" # Let the user override the test with a path.
19707  ;;
19708  *)
19709  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19710for as_dir in $PATH
19711do
19712  IFS=$as_save_IFS
19713  case $as_dir in #(((
19714    '') as_dir=./ ;;
19715    */) ;;
19716    *) as_dir=$as_dir/ ;;
19717  esac
19718    for ac_exec_ext in '' $ac_executable_extensions; do
19719  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19720    ac_cv_path_XPM_PATH_UNCOMPRESS="$as_dir$ac_word$ac_exec_ext"
19721    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19722    break 2
19723  fi
19724done
19725  done
19726IFS=$as_save_IFS
19727
19728  ;;
19729esac
19730fi
19731XPM_PATH_UNCOMPRESS=$ac_cv_path_XPM_PATH_UNCOMPRESS
19732if test -n "$XPM_PATH_UNCOMPRESS"; then
19733  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XPM_PATH_UNCOMPRESS" >&5
19734printf "%s\n" "$XPM_PATH_UNCOMPRESS" >&6; }
19735else
19736  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19737printf "%s\n" "no" >&6; }
19738fi
19739
19740
19741if test "x$XPM_PATH_UNCOMPRESS" = "x"
19742then :
19743
19744else $as_nop
19745
19746printf "%s\n" "#define XPM_PATH_UNCOMPRESS \"$XPM_PATH_UNCOMPRESS\"" >>confdefs.h
19747
19748fi
19749
19750
19751
19752  for ac_func in closefrom close_range
19753do :
19754  as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | $as_tr_sh`
19755ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19756if eval test \"x\$"$as_ac_var"\" = x"yes"
19757then :
19758  cat >>confdefs.h <<_ACEOF
19759#define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1
19760_ACEOF
19761 break
19762fi
19763
19764done
19765fi
19766
19767# Optional feature: When ___.xpm is requested, also look for ___.xpm.Z & .gz
19768# Replaces ZFILEDEF = -DSTAT_ZFILE in old Imakefile
19769{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to search for compressed pixmaps" >&5
19770printf %s "checking whether to search for compressed pixmaps... " >&6; }
19771# Check whether --enable-stat-zfile was given.
19772if test ${enable_stat_zfile+y}
19773then :
19774  enableval=$enable_stat_zfile; STAT_ZFILE=$enableval
19775else $as_nop
19776  STAT_ZFILE=$OPEN_ZFILE
19777fi
19778
19779{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STAT_ZFILE" >&5
19780printf "%s\n" "$STAT_ZFILE" >&6; }
19781if test x$STAT_ZFILE = xyes ; then
19782
19783printf "%s\n" "#define STAT_ZFILE 1" >>confdefs.h
19784
19785fi
19786
19787# --enable-unit-tests
19788
19789
19790
19791
19792
19793
19794
19795# Check for different types of support on different platforms
19796case $host_os in
19797    solaris*)
19798        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
19799printf %s "checking for umem_alloc in -lumem... " >&6; }
19800if test ${ac_cv_lib_umem_umem_alloc+y}
19801then :
19802  printf %s "(cached) " >&6
19803else $as_nop
19804  ac_check_lib_save_LIBS=$LIBS
19805LIBS="-lumem  $LIBS"
19806cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19807/* end confdefs.h.  */
19808
19809/* Override any GCC internal prototype to avoid an error.
19810   Use char because int might match the return type of a GCC
19811   builtin and then its argument prototype would still apply.  */
19812char umem_alloc ();
19813int
19814main (void)
19815{
19816return umem_alloc ();
19817  ;
19818  return 0;
19819}
19820_ACEOF
19821if ac_fn_c_try_link "$LINENO"
19822then :
19823  ac_cv_lib_umem_umem_alloc=yes
19824else $as_nop
19825  ac_cv_lib_umem_umem_alloc=no
19826fi
19827rm -f core conftest.err conftest.$ac_objext conftest.beam \
19828    conftest$ac_exeext conftest.$ac_ext
19829LIBS=$ac_check_lib_save_LIBS
19830fi
19831{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
19832printf "%s\n" "$ac_cv_lib_umem_umem_alloc" >&6; }
19833if test "x$ac_cv_lib_umem_umem_alloc" = xyes
19834then :
19835  malloc_debug_env='LD_PRELOAD=libumem.so UMEM_DEBUG=default'
19836fi
19837
19838        ;;
19839    *-gnu*) # GNU libc - Value is used as a single byte bit pattern,
19840        # both directly and inverted, so should not be 0 or 255.
19841        malloc_debug_env='MALLOC_PERTURB_=15'
19842        ;;
19843    darwin*)
19844        malloc_debug_env='MallocPreScribble=1 MallocScribble=1 DYLD_INSERT_LIBRARIES=/usr/lib/libgmalloc.dylib'
19845        ;;
19846    *bsd*)
19847        malloc_debug_env='MallocPreScribble=1 MallocScribble=1'
19848        ;;
19849esac
19850
19851# User supplied flags override default flags
19852if test "x$XORG_MALLOC_DEBUG_ENV" != "x"; then
19853    malloc_debug_env="$XORG_MALLOC_DEBUG_ENV"
19854fi
19855
19856XORG_MALLOC_DEBUG_ENV=$malloc_debug_env
19857
19858
19859
19860
19861
19862
19863
19864# Check whether --enable-unit-tests was given.
19865if test ${enable_unit_tests+y}
19866then :
19867  enableval=$enable_unit_tests; enable_unit_tests=$enableval
19868else $as_nop
19869  enable_unit_tests=auto
19870fi
19871
19872
19873 if test "x$enable_unit_tests" != xno; then
19874  ENABLE_UNIT_TESTS_TRUE=
19875  ENABLE_UNIT_TESTS_FALSE='#'
19876else
19877  ENABLE_UNIT_TESTS_TRUE='#'
19878  ENABLE_UNIT_TESTS_FALSE=
19879fi
19880
19881{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build unit test cases" >&5
19882printf %s "checking whether to build unit test cases... " >&6; }
19883{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_unit_tests" >&5
19884printf "%s\n" "$enable_unit_tests" >&6; }
19885
19886
19887
19888
19889
19890# Check whether --with-glib was given.
19891if test ${with_glib+y}
19892then :
19893  withval=$with_glib; with_glib=$withval
19894else $as_nop
19895  with_glib=auto
19896fi
19897
19898
19899
19900have_glib=no
19901# Do not probe GLib if user explicitly disabled unit testing
19902if test "x$enable_unit_tests" != x"no"; then
19903  # Do not probe GLib if user explicitly disabled it
19904  if test "x$with_glib" != x"no"; then
19905
19906pkg_failed=no
19907{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5
19908printf %s "checking for GLIB... " >&6; }
19909
19910if test -n "$GLIB_CFLAGS"; then
19911    pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
19912 elif test -n "$PKG_CONFIG"; then
19913    if test -n "$PKG_CONFIG" && \
19914    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.46\""; } >&5
19915  ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.46") 2>&5
19916  ac_status=$?
19917  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19918  test $ac_status = 0; }; then
19919  pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.46" 2>/dev/null`
19920		      test "x$?" != "x0" && pkg_failed=yes
19921else
19922  pkg_failed=yes
19923fi
19924 else
19925    pkg_failed=untried
19926fi
19927if test -n "$GLIB_LIBS"; then
19928    pkg_cv_GLIB_LIBS="$GLIB_LIBS"
19929 elif test -n "$PKG_CONFIG"; then
19930    if test -n "$PKG_CONFIG" && \
19931    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.46\""; } >&5
19932  ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.46") 2>&5
19933  ac_status=$?
19934  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19935  test $ac_status = 0; }; then
19936  pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.46" 2>/dev/null`
19937		      test "x$?" != "x0" && pkg_failed=yes
19938else
19939  pkg_failed=yes
19940fi
19941 else
19942    pkg_failed=untried
19943fi
19944
19945
19946
19947if test $pkg_failed = yes; then
19948   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19949printf "%s\n" "no" >&6; }
19950
19951if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19952        _pkg_short_errors_supported=yes
19953else
19954        _pkg_short_errors_supported=no
19955fi
19956        if test $_pkg_short_errors_supported = yes; then
19957	        GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.46" 2>&1`
19958        else
19959	        GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.46" 2>&1`
19960        fi
19961	# Put the nasty error message in config.log where it belongs
19962	echo "$GLIB_PKG_ERRORS" >&5
19963
19964	have_glib=no
19965elif test $pkg_failed = untried; then
19966     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19967printf "%s\n" "no" >&6; }
19968	have_glib=no
19969else
19970	GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
19971	GLIB_LIBS=$pkg_cv_GLIB_LIBS
19972        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19973printf "%s\n" "yes" >&6; }
19974	have_glib=yes
19975fi
19976  fi
19977fi
19978
19979# Not having GLib when unit testing has been explicitly requested is an error
19980if test "x$enable_unit_tests" = x"yes"; then
19981  if test "x$have_glib" = x"no"; then
19982    as_fn_error $? "--enable-unit-tests=yes specified but glib-2.0 not found" "$LINENO" 5
19983  fi
19984fi
19985
19986# Having unit testing disabled when GLib has been explicitly requested is an error
19987if test "x$enable_unit_tests" = x"no"; then
19988  if test "x$with_glib" = x"yes"; then
19989    as_fn_error $? "--enable-unit-tests=yes specified but glib-2.0 not found" "$LINENO" 5
19990  fi
19991fi
19992
19993# Not having GLib when it has been explicitly requested is an error
19994if test "x$with_glib" = x"yes"; then
19995  if test "x$have_glib" = x"no"; then
19996    as_fn_error $? "--with-glib=yes specified but glib-2.0 not found" "$LINENO" 5
19997  fi
19998fi
19999
20000 if test "$have_glib" = yes; then
20001  HAVE_GLIB_TRUE=
20002  HAVE_GLIB_FALSE='#'
20003else
20004  HAVE_GLIB_TRUE='#'
20005  HAVE_GLIB_FALSE=
20006fi
20007
20008
20009if test "x$have_glib" = x"yes"; then
20010       ac_fn_c_check_func "$LINENO" "g_pattern_spec_match_string" "ac_cv_func_g_pattern_spec_match_string"
20011if test "x$ac_cv_func_g_pattern_spec_match_string" = xyes
20012then :
20013  printf "%s\n" "#define HAVE_G_PATTERN_SPEC_MATCH_STRING 1" >>confdefs.h
20014
20015fi
20016
20017fi
20018
20019
20020
20021
20022
20023# Check for different types of support on different platforms
20024case $host_os in
20025    solaris*)
20026        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
20027printf %s "checking for umem_alloc in -lumem... " >&6; }
20028if test ${ac_cv_lib_umem_umem_alloc+y}
20029then :
20030  printf %s "(cached) " >&6
20031else $as_nop
20032  ac_check_lib_save_LIBS=$LIBS
20033LIBS="-lumem  $LIBS"
20034cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20035/* end confdefs.h.  */
20036
20037/* Override any GCC internal prototype to avoid an error.
20038   Use char because int might match the return type of a GCC
20039   builtin and then its argument prototype would still apply.  */
20040char umem_alloc ();
20041int
20042main (void)
20043{
20044return umem_alloc ();
20045  ;
20046  return 0;
20047}
20048_ACEOF
20049if ac_fn_c_try_link "$LINENO"
20050then :
20051  ac_cv_lib_umem_umem_alloc=yes
20052else $as_nop
20053  ac_cv_lib_umem_umem_alloc=no
20054fi
20055rm -f core conftest.err conftest.$ac_objext conftest.beam \
20056    conftest$ac_exeext conftest.$ac_ext
20057LIBS=$ac_check_lib_save_LIBS
20058fi
20059{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
20060printf "%s\n" "$ac_cv_lib_umem_umem_alloc" >&6; }
20061if test "x$ac_cv_lib_umem_umem_alloc" = xyes
20062then :
20063  malloc_debug_env='LD_PRELOAD=libumem.so UMEM_DEBUG=default'
20064fi
20065
20066        ;;
20067    *-gnu*) # GNU libc - Value is used as a single byte bit pattern,
20068        # both directly and inverted, so should not be 0 or 255.
20069        malloc_debug_env='MALLOC_PERTURB_=15'
20070        ;;
20071    darwin*)
20072        malloc_debug_env='MallocPreScribble=1 MallocScribble=1 DYLD_INSERT_LIBRARIES=/usr/lib/libgmalloc.dylib'
20073        ;;
20074    *bsd*)
20075        malloc_debug_env='MallocPreScribble=1 MallocScribble=1'
20076        ;;
20077esac
20078
20079# User supplied flags override default flags
20080if test "x$XORG_MALLOC_DEBUG_ENV" != "x"; then
20081    malloc_debug_env="$XORG_MALLOC_DEBUG_ENV"
20082fi
20083
20084XORG_MALLOC_DEBUG_ENV=$malloc_debug_env
20085
20086
20087
20088ac_config_files="$ac_config_files Makefile doc/Makefile include/Makefile man/Makefile src/Makefile sxpm/Makefile cxpm/Makefile test/Makefile xpm.pc"
20089
20090cat >confcache <<\_ACEOF
20091# This file is a shell script that caches the results of configure
20092# tests run on this system so they can be shared between configure
20093# scripts and configure runs, see configure's option --config-cache.
20094# It is not useful on other systems.  If it contains results you don't
20095# want to keep, you may remove or edit it.
20096#
20097# config.status only pays attention to the cache file if you give it
20098# the --recheck option to rerun configure.
20099#
20100# `ac_cv_env_foo' variables (set or unset) will be overridden when
20101# loading this file, other *unset* `ac_cv_foo' will be assigned the
20102# following values.
20103
20104_ACEOF
20105
20106# The following way of writing the cache mishandles newlines in values,
20107# but we know of no workaround that is simple, portable, and efficient.
20108# So, we kill variables containing newlines.
20109# Ultrix sh set writes to stderr and can't be redirected directly,
20110# and sets the high bit in the cache file unless we assign to the vars.
20111(
20112  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20113    eval ac_val=\$$ac_var
20114    case $ac_val in #(
20115    *${as_nl}*)
20116      case $ac_var in #(
20117      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20118printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20119      esac
20120      case $ac_var in #(
20121      _ | IFS | as_nl) ;; #(
20122      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20123      *) { eval $ac_var=; unset $ac_var;} ;;
20124      esac ;;
20125    esac
20126  done
20127
20128  (set) 2>&1 |
20129    case $as_nl`(ac_space=' '; set) 2>&1` in #(
20130    *${as_nl}ac_space=\ *)
20131      # `set' does not quote correctly, so add quotes: double-quote
20132      # substitution turns \\\\ into \\, and sed turns \\ into \.
20133      sed -n \
20134	"s/'/'\\\\''/g;
20135	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20136      ;; #(
20137    *)
20138      # `set' quotes correctly as required by POSIX, so do not add quotes.
20139      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20140      ;;
20141    esac |
20142    sort
20143) |
20144  sed '
20145     /^ac_cv_env_/b end
20146     t clear
20147     :clear
20148     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
20149     t end
20150     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20151     :end' >>confcache
20152if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20153  if test -w "$cache_file"; then
20154    if test "x$cache_file" != "x/dev/null"; then
20155      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20156printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
20157      if test ! -f "$cache_file" || test -h "$cache_file"; then
20158	cat confcache >"$cache_file"
20159      else
20160        case $cache_file in #(
20161        */* | ?:*)
20162	  mv -f confcache "$cache_file"$$ &&
20163	  mv -f "$cache_file"$$ "$cache_file" ;; #(
20164        *)
20165	  mv -f confcache "$cache_file" ;;
20166	esac
20167      fi
20168    fi
20169  else
20170    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20171printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
20172  fi
20173fi
20174rm -f confcache
20175
20176test "x$prefix" = xNONE && prefix=$ac_default_prefix
20177# Let make expand exec_prefix.
20178test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20179
20180DEFS=-DHAVE_CONFIG_H
20181
20182ac_libobjs=
20183ac_ltlibobjs=
20184U=
20185for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20186  # 1. Remove the extension, and $U if already installed.
20187  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20188  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
20189  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20190  #    will be set to the directory where LIBOBJS objects are built.
20191  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20192  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20193done
20194LIBOBJS=$ac_libobjs
20195
20196LTLIBOBJS=$ac_ltlibobjs
20197
20198
20199{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20200printf %s "checking that generated files are newer than configure... " >&6; }
20201   if test -n "$am_sleep_pid"; then
20202     # Hide warnings about reused PIDs.
20203     wait $am_sleep_pid 2>/dev/null
20204   fi
20205   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
20206printf "%s\n" "done" >&6; }
20207 if test -n "$EXEEXT"; then
20208  am__EXEEXT_TRUE=
20209  am__EXEEXT_FALSE='#'
20210else
20211  am__EXEEXT_TRUE='#'
20212  am__EXEEXT_FALSE=
20213fi
20214
20215if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20216  as_fn_error $? "conditional \"AMDEP\" was never defined.
20217Usually this means the macro was only invoked conditionally." "$LINENO" 5
20218fi
20219if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20220  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20221Usually this means the macro was only invoked conditionally." "$LINENO" 5
20222fi
20223if test -z "${BUILD_SXPM_TRUE}" && test -z "${BUILD_SXPM_FALSE}"; then
20224  as_fn_error $? "conditional \"BUILD_SXPM\" was never defined.
20225Usually this means the macro was only invoked conditionally." "$LINENO" 5
20226fi
20227if test -z "${USE_GETTEXT_TRUE}" && test -z "${USE_GETTEXT_FALSE}"; then
20228  as_fn_error $? "conditional \"USE_GETTEXT\" was never defined.
20229Usually this means the macro was only invoked conditionally." "$LINENO" 5
20230fi
20231if test -z "${COMPRESSED_PIXMAPS_TRUE}" && test -z "${COMPRESSED_PIXMAPS_FALSE}"; then
20232  as_fn_error $? "conditional \"COMPRESSED_PIXMAPS\" was never defined.
20233Usually this means the macro was only invoked conditionally." "$LINENO" 5
20234fi
20235if test -z "${ENABLE_UNIT_TESTS_TRUE}" && test -z "${ENABLE_UNIT_TESTS_FALSE}"; then
20236  as_fn_error $? "conditional \"ENABLE_UNIT_TESTS\" was never defined.
20237Usually this means the macro was only invoked conditionally." "$LINENO" 5
20238fi
20239if test -z "${HAVE_GLIB_TRUE}" && test -z "${HAVE_GLIB_FALSE}"; then
20240  as_fn_error $? "conditional \"HAVE_GLIB\" was never defined.
20241Usually this means the macro was only invoked conditionally." "$LINENO" 5
20242fi
20243
20244: "${CONFIG_STATUS=./config.status}"
20245ac_write_fail=0
20246ac_clean_files_save=$ac_clean_files
20247ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20248{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20249printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
20250as_write_fail=0
20251cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20252#! $SHELL
20253# Generated by $as_me.
20254# Run this file to recreate the current configuration.
20255# Compiler output produced by configure, useful for debugging
20256# configure, is in config.log if it exists.
20257
20258debug=false
20259ac_cs_recheck=false
20260ac_cs_silent=false
20261
20262SHELL=\${CONFIG_SHELL-$SHELL}
20263export SHELL
20264_ASEOF
20265cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20266## -------------------- ##
20267## M4sh Initialization. ##
20268## -------------------- ##
20269
20270# Be more Bourne compatible
20271DUALCASE=1; export DUALCASE # for MKS sh
20272as_nop=:
20273if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
20274then :
20275  emulate sh
20276  NULLCMD=:
20277  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20278  # is contrary to our usage.  Disable this feature.
20279  alias -g '${1+"$@"}'='"$@"'
20280  setopt NO_GLOB_SUBST
20281else $as_nop
20282  case `(set -o) 2>/dev/null` in #(
20283  *posix*) :
20284    set -o posix ;; #(
20285  *) :
20286     ;;
20287esac
20288fi
20289
20290
20291
20292# Reset variables that may have inherited troublesome values from
20293# the environment.
20294
20295# IFS needs to be set, to space, tab, and newline, in precisely that order.
20296# (If _AS_PATH_WALK were called with IFS unset, it would have the
20297# side effect of setting IFS to empty, thus disabling word splitting.)
20298# Quoting is to prevent editors from complaining about space-tab.
20299as_nl='
20300'
20301export as_nl
20302IFS=" ""	$as_nl"
20303
20304PS1='$ '
20305PS2='> '
20306PS4='+ '
20307
20308# Ensure predictable behavior from utilities with locale-dependent output.
20309LC_ALL=C
20310export LC_ALL
20311LANGUAGE=C
20312export LANGUAGE
20313
20314# We cannot yet rely on "unset" to work, but we need these variables
20315# to be unset--not just set to an empty or harmless value--now, to
20316# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
20317# also avoids known problems related to "unset" and subshell syntax
20318# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
20319for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
20320do eval test \${$as_var+y} \
20321  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20322done
20323
20324# Ensure that fds 0, 1, and 2 are open.
20325if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
20326if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
20327if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
20328
20329# The user is always right.
20330if ${PATH_SEPARATOR+false} :; then
20331  PATH_SEPARATOR=:
20332  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20333    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20334      PATH_SEPARATOR=';'
20335  }
20336fi
20337
20338
20339# Find who we are.  Look in the path if we contain no directory separator.
20340as_myself=
20341case $0 in #((
20342  *[\\/]* ) as_myself=$0 ;;
20343  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20344for as_dir in $PATH
20345do
20346  IFS=$as_save_IFS
20347  case $as_dir in #(((
20348    '') as_dir=./ ;;
20349    */) ;;
20350    *) as_dir=$as_dir/ ;;
20351  esac
20352    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
20353  done
20354IFS=$as_save_IFS
20355
20356     ;;
20357esac
20358# We did not find ourselves, most probably we were run as `sh COMMAND'
20359# in which case we are not to be found in the path.
20360if test "x$as_myself" = x; then
20361  as_myself=$0
20362fi
20363if test ! -f "$as_myself"; then
20364  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20365  exit 1
20366fi
20367
20368
20369
20370# as_fn_error STATUS ERROR [LINENO LOG_FD]
20371# ----------------------------------------
20372# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20373# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20374# script with STATUS, using 1 if that was 0.
20375as_fn_error ()
20376{
20377  as_status=$1; test $as_status -eq 0 && as_status=1
20378  if test "$4"; then
20379    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20380    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20381  fi
20382  printf "%s\n" "$as_me: error: $2" >&2
20383  as_fn_exit $as_status
20384} # as_fn_error
20385
20386
20387
20388# as_fn_set_status STATUS
20389# -----------------------
20390# Set $? to STATUS, without forking.
20391as_fn_set_status ()
20392{
20393  return $1
20394} # as_fn_set_status
20395
20396# as_fn_exit STATUS
20397# -----------------
20398# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20399as_fn_exit ()
20400{
20401  set +e
20402  as_fn_set_status $1
20403  exit $1
20404} # as_fn_exit
20405
20406# as_fn_unset VAR
20407# ---------------
20408# Portably unset VAR.
20409as_fn_unset ()
20410{
20411  { eval $1=; unset $1;}
20412}
20413as_unset=as_fn_unset
20414
20415# as_fn_append VAR VALUE
20416# ----------------------
20417# Append the text in VALUE to the end of the definition contained in VAR. Take
20418# advantage of any shell optimizations that allow amortized linear growth over
20419# repeated appends, instead of the typical quadratic growth present in naive
20420# implementations.
20421if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
20422then :
20423  eval 'as_fn_append ()
20424  {
20425    eval $1+=\$2
20426  }'
20427else $as_nop
20428  as_fn_append ()
20429  {
20430    eval $1=\$$1\$2
20431  }
20432fi # as_fn_append
20433
20434# as_fn_arith ARG...
20435# ------------------
20436# Perform arithmetic evaluation on the ARGs, and store the result in the
20437# global $as_val. Take advantage of shells that can avoid forks. The arguments
20438# must be portable across $(()) and expr.
20439if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
20440then :
20441  eval 'as_fn_arith ()
20442  {
20443    as_val=$(( $* ))
20444  }'
20445else $as_nop
20446  as_fn_arith ()
20447  {
20448    as_val=`expr "$@" || test $? -eq 1`
20449  }
20450fi # as_fn_arith
20451
20452
20453if expr a : '\(a\)' >/dev/null 2>&1 &&
20454   test "X`expr 00001 : '.*\(...\)'`" = X001; then
20455  as_expr=expr
20456else
20457  as_expr=false
20458fi
20459
20460if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20461  as_basename=basename
20462else
20463  as_basename=false
20464fi
20465
20466if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20467  as_dirname=dirname
20468else
20469  as_dirname=false
20470fi
20471
20472as_me=`$as_basename -- "$0" ||
20473$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20474	 X"$0" : 'X\(//\)$' \| \
20475	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20476printf "%s\n" X/"$0" |
20477    sed '/^.*\/\([^/][^/]*\)\/*$/{
20478	    s//\1/
20479	    q
20480	  }
20481	  /^X\/\(\/\/\)$/{
20482	    s//\1/
20483	    q
20484	  }
20485	  /^X\/\(\/\).*/{
20486	    s//\1/
20487	    q
20488	  }
20489	  s/.*/./; q'`
20490
20491# Avoid depending upon Character Ranges.
20492as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20493as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20494as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20495as_cr_digits='0123456789'
20496as_cr_alnum=$as_cr_Letters$as_cr_digits
20497
20498
20499# Determine whether it's possible to make 'echo' print without a newline.
20500# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
20501# for compatibility with existing Makefiles.
20502ECHO_C= ECHO_N= ECHO_T=
20503case `echo -n x` in #(((((
20504-n*)
20505  case `echo 'xy\c'` in
20506  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
20507  xy)  ECHO_C='\c';;
20508  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
20509       ECHO_T='	';;
20510  esac;;
20511*)
20512  ECHO_N='-n';;
20513esac
20514
20515# For backward compatibility with old third-party macros, we provide
20516# the shell variables $as_echo and $as_echo_n.  New code should use
20517# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
20518as_echo='printf %s\n'
20519as_echo_n='printf %s'
20520
20521rm -f conf$$ conf$$.exe conf$$.file
20522if test -d conf$$.dir; then
20523  rm -f conf$$.dir/conf$$.file
20524else
20525  rm -f conf$$.dir
20526  mkdir conf$$.dir 2>/dev/null
20527fi
20528if (echo >conf$$.file) 2>/dev/null; then
20529  if ln -s conf$$.file conf$$ 2>/dev/null; then
20530    as_ln_s='ln -s'
20531    # ... but there are two gotchas:
20532    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20533    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20534    # In both cases, we have to default to `cp -pR'.
20535    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20536      as_ln_s='cp -pR'
20537  elif ln conf$$.file conf$$ 2>/dev/null; then
20538    as_ln_s=ln
20539  else
20540    as_ln_s='cp -pR'
20541  fi
20542else
20543  as_ln_s='cp -pR'
20544fi
20545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20546rmdir conf$$.dir 2>/dev/null
20547
20548
20549# as_fn_mkdir_p
20550# -------------
20551# Create "$as_dir" as a directory, including parents if necessary.
20552as_fn_mkdir_p ()
20553{
20554
20555  case $as_dir in #(
20556  -*) as_dir=./$as_dir;;
20557  esac
20558  test -d "$as_dir" || eval $as_mkdir_p || {
20559    as_dirs=
20560    while :; do
20561      case $as_dir in #(
20562      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20563      *) as_qdir=$as_dir;;
20564      esac
20565      as_dirs="'$as_qdir' $as_dirs"
20566      as_dir=`$as_dirname -- "$as_dir" ||
20567$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20568	 X"$as_dir" : 'X\(//\)[^/]' \| \
20569	 X"$as_dir" : 'X\(//\)$' \| \
20570	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20571printf "%s\n" X"$as_dir" |
20572    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20573	    s//\1/
20574	    q
20575	  }
20576	  /^X\(\/\/\)[^/].*/{
20577	    s//\1/
20578	    q
20579	  }
20580	  /^X\(\/\/\)$/{
20581	    s//\1/
20582	    q
20583	  }
20584	  /^X\(\/\).*/{
20585	    s//\1/
20586	    q
20587	  }
20588	  s/.*/./; q'`
20589      test -d "$as_dir" && break
20590    done
20591    test -z "$as_dirs" || eval "mkdir $as_dirs"
20592  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20593
20594
20595} # as_fn_mkdir_p
20596if mkdir -p . 2>/dev/null; then
20597  as_mkdir_p='mkdir -p "$as_dir"'
20598else
20599  test -d ./-p && rmdir ./-p
20600  as_mkdir_p=false
20601fi
20602
20603
20604# as_fn_executable_p FILE
20605# -----------------------
20606# Test if FILE is an executable regular file.
20607as_fn_executable_p ()
20608{
20609  test -f "$1" && test -x "$1"
20610} # as_fn_executable_p
20611as_test_x='test -x'
20612as_executable_p=as_fn_executable_p
20613
20614# Sed expression to map a string onto a valid CPP name.
20615as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20616
20617# Sed expression to map a string onto a valid variable name.
20618as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20619
20620
20621exec 6>&1
20622## ----------------------------------- ##
20623## Main body of $CONFIG_STATUS script. ##
20624## ----------------------------------- ##
20625_ASEOF
20626test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20627
20628cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20629# Save the log message, to keep $0 and so on meaningful, and to
20630# report actual input values of CONFIG_FILES etc. instead of their
20631# values after options handling.
20632ac_log="
20633This file was extended by libXpm $as_me 3.5.17, which was
20634generated by GNU Autoconf 2.71.  Invocation command line was
20635
20636  CONFIG_FILES    = $CONFIG_FILES
20637  CONFIG_HEADERS  = $CONFIG_HEADERS
20638  CONFIG_LINKS    = $CONFIG_LINKS
20639  CONFIG_COMMANDS = $CONFIG_COMMANDS
20640  $ $0 $@
20641
20642on `(hostname || uname -n) 2>/dev/null | sed 1q`
20643"
20644
20645_ACEOF
20646
20647case $ac_config_files in *"
20648"*) set x $ac_config_files; shift; ac_config_files=$*;;
20649esac
20650
20651case $ac_config_headers in *"
20652"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20653esac
20654
20655
20656cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20657# Files that config.status was made for.
20658config_files="$ac_config_files"
20659config_headers="$ac_config_headers"
20660config_commands="$ac_config_commands"
20661
20662_ACEOF
20663
20664cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20665ac_cs_usage="\
20666\`$as_me' instantiates files and other configuration actions
20667from templates according to the current configuration.  Unless the files
20668and actions are specified as TAGs, all are instantiated by default.
20669
20670Usage: $0 [OPTION]... [TAG]...
20671
20672  -h, --help       print this help, then exit
20673  -V, --version    print version number and configuration settings, then exit
20674      --config     print configuration, then exit
20675  -q, --quiet, --silent
20676                   do not print progress messages
20677  -d, --debug      don't remove temporary files
20678      --recheck    update $as_me by reconfiguring in the same conditions
20679      --file=FILE[:TEMPLATE]
20680                   instantiate the configuration file FILE
20681      --header=FILE[:TEMPLATE]
20682                   instantiate the configuration header FILE
20683
20684Configuration files:
20685$config_files
20686
20687Configuration headers:
20688$config_headers
20689
20690Configuration commands:
20691$config_commands
20692
20693Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxpm/-/issues/>."
20694
20695_ACEOF
20696ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
20697ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
20698cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20699ac_cs_config='$ac_cs_config_escaped'
20700ac_cs_version="\\
20701libXpm config.status 3.5.17
20702configured by $0, generated by GNU Autoconf 2.71,
20703  with options \\"\$ac_cs_config\\"
20704
20705Copyright (C) 2021 Free Software Foundation, Inc.
20706This config.status script is free software; the Free Software Foundation
20707gives unlimited permission to copy, distribute and modify it."
20708
20709ac_pwd='$ac_pwd'
20710srcdir='$srcdir'
20711INSTALL='$INSTALL'
20712MKDIR_P='$MKDIR_P'
20713AWK='$AWK'
20714test -n "\$AWK" || AWK=awk
20715_ACEOF
20716
20717cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20718# The default lists apply if the user does not specify any file.
20719ac_need_defaults=:
20720while test $# != 0
20721do
20722  case $1 in
20723  --*=?*)
20724    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20725    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20726    ac_shift=:
20727    ;;
20728  --*=)
20729    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20730    ac_optarg=
20731    ac_shift=:
20732    ;;
20733  *)
20734    ac_option=$1
20735    ac_optarg=$2
20736    ac_shift=shift
20737    ;;
20738  esac
20739
20740  case $ac_option in
20741  # Handling of the options.
20742  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20743    ac_cs_recheck=: ;;
20744  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20745    printf "%s\n" "$ac_cs_version"; exit ;;
20746  --config | --confi | --conf | --con | --co | --c )
20747    printf "%s\n" "$ac_cs_config"; exit ;;
20748  --debug | --debu | --deb | --de | --d | -d )
20749    debug=: ;;
20750  --file | --fil | --fi | --f )
20751    $ac_shift
20752    case $ac_optarg in
20753    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20754    '') as_fn_error $? "missing file argument" ;;
20755    esac
20756    as_fn_append CONFIG_FILES " '$ac_optarg'"
20757    ac_need_defaults=false;;
20758  --header | --heade | --head | --hea )
20759    $ac_shift
20760    case $ac_optarg in
20761    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20762    esac
20763    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20764    ac_need_defaults=false;;
20765  --he | --h)
20766    # Conflict between --help and --header
20767    as_fn_error $? "ambiguous option: \`$1'
20768Try \`$0 --help' for more information.";;
20769  --help | --hel | -h )
20770    printf "%s\n" "$ac_cs_usage"; exit ;;
20771  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20772  | -silent | --silent | --silen | --sile | --sil | --si | --s)
20773    ac_cs_silent=: ;;
20774
20775  # This is an error.
20776  -*) as_fn_error $? "unrecognized option: \`$1'
20777Try \`$0 --help' for more information." ;;
20778
20779  *) as_fn_append ac_config_targets " $1"
20780     ac_need_defaults=false ;;
20781
20782  esac
20783  shift
20784done
20785
20786ac_configure_extra_args=
20787
20788if $ac_cs_silent; then
20789  exec 6>/dev/null
20790  ac_configure_extra_args="$ac_configure_extra_args --silent"
20791fi
20792
20793_ACEOF
20794cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20795if \$ac_cs_recheck; then
20796  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20797  shift
20798  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
20799  CONFIG_SHELL='$SHELL'
20800  export CONFIG_SHELL
20801  exec "\$@"
20802fi
20803
20804_ACEOF
20805cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20806exec 5>>config.log
20807{
20808  echo
20809  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20810## Running $as_me. ##
20811_ASBOX
20812  printf "%s\n" "$ac_log"
20813} >&5
20814
20815_ACEOF
20816cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20817#
20818# INIT-COMMANDS
20819#
20820AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
20821
20822
20823# The HP-UX ksh and POSIX shell print the target directory to stdout
20824# if CDPATH is set.
20825(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20826
20827sed_quote_subst='$sed_quote_subst'
20828double_quote_subst='$double_quote_subst'
20829delay_variable_subst='$delay_variable_subst'
20830macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20831macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20832enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20833enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20834pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20835enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20836shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
20837SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20838ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20839PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20840host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20841host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20842host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20843build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20844build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20845build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20846SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20847Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20848GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20849EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20850FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20851LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20852NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20853LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20854max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20855ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20856exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20857lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20858lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20859lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20860lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20861lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20862reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20863reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20864FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
20865OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20866deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20867file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20868file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20869want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20870DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20871sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20872AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20873lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
20874AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20875archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20876STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20877RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20878old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20879old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20880old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20881lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20882CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20883CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20884compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20885GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20886lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20887lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20888lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
20889lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20890lt_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"`'
20891lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
20892nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20893lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20894lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
20895objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20896MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20897lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20898lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20899lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20900lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20901lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20902need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20903MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20904DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20905NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20906LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20907OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20908OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20909libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20910shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20911extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20912archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20913enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20914export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20915whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20916compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20917old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20918old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20919archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20920archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20921module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20922module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20923with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20924allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20925no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20926hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20927hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20928hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20929hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20930hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20931hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20932hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20933inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20934link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20935always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20936export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20937exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20938include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20939prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20940postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20941file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20942variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20943need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20944need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20945version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20946runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20947shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20948shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20949libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20950library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20951soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20952install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20953postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20954postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20955finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20956finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20957hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20958sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20959configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
20960configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
20961hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20962enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20963enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20964enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20965old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20966striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20967
20968LTCC='$LTCC'
20969LTCFLAGS='$LTCFLAGS'
20970compiler='$compiler_DEFAULT'
20971
20972# A function that is used when there is no print builtin or printf.
20973func_fallback_echo ()
20974{
20975  eval 'cat <<_LTECHO_EOF
20976\$1
20977_LTECHO_EOF'
20978}
20979
20980# Quote evaled strings.
20981for var in SHELL \
20982ECHO \
20983PATH_SEPARATOR \
20984SED \
20985GREP \
20986EGREP \
20987FGREP \
20988LD \
20989NM \
20990LN_S \
20991lt_SP2NL \
20992lt_NL2SP \
20993reload_flag \
20994FILECMD \
20995OBJDUMP \
20996deplibs_check_method \
20997file_magic_cmd \
20998file_magic_glob \
20999want_nocaseglob \
21000DLLTOOL \
21001sharedlib_from_linklib_cmd \
21002AR \
21003archiver_list_spec \
21004STRIP \
21005RANLIB \
21006CC \
21007CFLAGS \
21008compiler \
21009lt_cv_sys_global_symbol_pipe \
21010lt_cv_sys_global_symbol_to_cdecl \
21011lt_cv_sys_global_symbol_to_import \
21012lt_cv_sys_global_symbol_to_c_name_address \
21013lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21014lt_cv_nm_interface \
21015nm_file_list_spec \
21016lt_cv_truncate_bin \
21017lt_prog_compiler_no_builtin_flag \
21018lt_prog_compiler_pic \
21019lt_prog_compiler_wl \
21020lt_prog_compiler_static \
21021lt_cv_prog_compiler_c_o \
21022need_locks \
21023MANIFEST_TOOL \
21024DSYMUTIL \
21025NMEDIT \
21026LIPO \
21027OTOOL \
21028OTOOL64 \
21029shrext_cmds \
21030export_dynamic_flag_spec \
21031whole_archive_flag_spec \
21032compiler_needs_object \
21033with_gnu_ld \
21034allow_undefined_flag \
21035no_undefined_flag \
21036hardcode_libdir_flag_spec \
21037hardcode_libdir_separator \
21038exclude_expsyms \
21039include_expsyms \
21040file_list_spec \
21041variables_saved_for_relink \
21042libname_spec \
21043library_names_spec \
21044soname_spec \
21045install_override_mode \
21046finish_eval \
21047old_striplib \
21048striplib; do
21049    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21050    *[\\\\\\\`\\"\\\$]*)
21051      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21052      ;;
21053    *)
21054      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21055      ;;
21056    esac
21057done
21058
21059# Double-quote double-evaled strings.
21060for var in reload_cmds \
21061old_postinstall_cmds \
21062old_postuninstall_cmds \
21063old_archive_cmds \
21064extract_expsyms_cmds \
21065old_archive_from_new_cmds \
21066old_archive_from_expsyms_cmds \
21067archive_cmds \
21068archive_expsym_cmds \
21069module_cmds \
21070module_expsym_cmds \
21071export_symbols_cmds \
21072prelink_cmds \
21073postlink_cmds \
21074postinstall_cmds \
21075postuninstall_cmds \
21076finish_cmds \
21077sys_lib_search_path_spec \
21078configure_time_dlsearch_path \
21079configure_time_lt_sys_library_path; do
21080    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21081    *[\\\\\\\`\\"\\\$]*)
21082      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21083      ;;
21084    *)
21085      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21086      ;;
21087    esac
21088done
21089
21090ac_aux_dir='$ac_aux_dir'
21091
21092# See if we are running on zsh, and set the options that allow our
21093# commands through without removal of \ escapes INIT.
21094if test -n "\${ZSH_VERSION+set}"; then
21095   setopt NO_GLOB_SUBST
21096fi
21097
21098
21099    PACKAGE='$PACKAGE'
21100    VERSION='$VERSION'
21101    RM='$RM'
21102    ofile='$ofile'
21103
21104
21105
21106
21107_ACEOF
21108
21109cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21110
21111# Handling of arguments.
21112for ac_config_target in $ac_config_targets
21113do
21114  case $ac_config_target in
21115    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21116    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21117    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21118    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21119    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
21120    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
21121    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
21122    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21123    "sxpm/Makefile") CONFIG_FILES="$CONFIG_FILES sxpm/Makefile" ;;
21124    "cxpm/Makefile") CONFIG_FILES="$CONFIG_FILES cxpm/Makefile" ;;
21125    "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
21126    "xpm.pc") CONFIG_FILES="$CONFIG_FILES xpm.pc" ;;
21127
21128  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21129  esac
21130done
21131
21132
21133# If the user did not use the arguments to specify the items to instantiate,
21134# then the envvar interface is used.  Set only those that are not.
21135# We use the long form for the default assignment because of an extremely
21136# bizarre bug on SunOS 4.1.3.
21137if $ac_need_defaults; then
21138  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
21139  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
21140  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
21141fi
21142
21143# Have a temporary directory for convenience.  Make it in the build tree
21144# simply because there is no reason against having it here, and in addition,
21145# creating and moving files from /tmp can sometimes cause problems.
21146# Hook for its removal unless debugging.
21147# Note that there is a small window in which the directory will not be cleaned:
21148# after its creation but before its name has been assigned to `$tmp'.
21149$debug ||
21150{
21151  tmp= ac_tmp=
21152  trap 'exit_status=$?
21153  : "${ac_tmp:=$tmp}"
21154  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21155' 0
21156  trap 'as_fn_exit 1' 1 2 13 15
21157}
21158# Create a (secure) tmp directory for tmp files.
21159
21160{
21161  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21162  test -d "$tmp"
21163}  ||
21164{
21165  tmp=./conf$$-$RANDOM
21166  (umask 077 && mkdir "$tmp")
21167} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21168ac_tmp=$tmp
21169
21170# Set up the scripts for CONFIG_FILES section.
21171# No need to generate them if there are no CONFIG_FILES.
21172# This happens for instance with `./config.status config.h'.
21173if test -n "$CONFIG_FILES"; then
21174
21175
21176ac_cr=`echo X | tr X '\015'`
21177# On cygwin, bash can eat \r inside `` if the user requested igncr.
21178# But we know of no other shell where ac_cr would be empty at this
21179# point, so we can use a bashism as a fallback.
21180if test "x$ac_cr" = x; then
21181  eval ac_cr=\$\'\\r\'
21182fi
21183ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21184if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21185  ac_cs_awk_cr='\\r'
21186else
21187  ac_cs_awk_cr=$ac_cr
21188fi
21189
21190echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21191_ACEOF
21192
21193
21194{
21195  echo "cat >conf$$subs.awk <<_ACEOF" &&
21196  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21197  echo "_ACEOF"
21198} >conf$$subs.sh ||
21199  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21200ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21201ac_delim='%!_!# '
21202for ac_last_try in false false false false false :; do
21203  . ./conf$$subs.sh ||
21204    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21205
21206  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21207  if test $ac_delim_n = $ac_delim_num; then
21208    break
21209  elif $ac_last_try; then
21210    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21211  else
21212    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21213  fi
21214done
21215rm -f conf$$subs.sh
21216
21217cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21218cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21219_ACEOF
21220sed -n '
21221h
21222s/^/S["/; s/!.*/"]=/
21223p
21224g
21225s/^[^!]*!//
21226:repl
21227t repl
21228s/'"$ac_delim"'$//
21229t delim
21230:nl
21231h
21232s/\(.\{148\}\)..*/\1/
21233t more1
21234s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21235p
21236n
21237b repl
21238:more1
21239s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21240p
21241g
21242s/.\{148\}//
21243t nl
21244:delim
21245h
21246s/\(.\{148\}\)..*/\1/
21247t more2
21248s/["\\]/\\&/g; s/^/"/; s/$/"/
21249p
21250b
21251:more2
21252s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21253p
21254g
21255s/.\{148\}//
21256t delim
21257' <conf$$subs.awk | sed '
21258/^[^""]/{
21259  N
21260  s/\n//
21261}
21262' >>$CONFIG_STATUS || ac_write_fail=1
21263rm -f conf$$subs.awk
21264cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21265_ACAWK
21266cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21267  for (key in S) S_is_set[key] = 1
21268  FS = ""
21269
21270}
21271{
21272  line = $ 0
21273  nfields = split(line, field, "@")
21274  substed = 0
21275  len = length(field[1])
21276  for (i = 2; i < nfields; i++) {
21277    key = field[i]
21278    keylen = length(key)
21279    if (S_is_set[key]) {
21280      value = S[key]
21281      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21282      len += length(value) + length(field[++i])
21283      substed = 1
21284    } else
21285      len += 1 + keylen
21286  }
21287
21288  print line
21289}
21290
21291_ACAWK
21292_ACEOF
21293cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21294if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21295  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21296else
21297  cat
21298fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21299  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21300_ACEOF
21301
21302# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21303# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21304# trailing colons and then remove the whole line if VPATH becomes empty
21305# (actually we leave an empty line to preserve line numbers).
21306if test "x$srcdir" = x.; then
21307  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
21308h
21309s///
21310s/^/:/
21311s/[	 ]*$/:/
21312s/:\$(srcdir):/:/g
21313s/:\${srcdir}:/:/g
21314s/:@srcdir@:/:/g
21315s/^:*//
21316s/:*$//
21317x
21318s/\(=[	 ]*\).*/\1/
21319G
21320s/\n//
21321s/^[^=]*=[	 ]*$//
21322}'
21323fi
21324
21325cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21326fi # test -n "$CONFIG_FILES"
21327
21328# Set up the scripts for CONFIG_HEADERS section.
21329# No need to generate them if there are no CONFIG_HEADERS.
21330# This happens for instance with `./config.status Makefile'.
21331if test -n "$CONFIG_HEADERS"; then
21332cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21333BEGIN {
21334_ACEOF
21335
21336# Transform confdefs.h into an awk script `defines.awk', embedded as
21337# here-document in config.status, that substitutes the proper values into
21338# config.h.in to produce config.h.
21339
21340# Create a delimiter string that does not exist in confdefs.h, to ease
21341# handling of long lines.
21342ac_delim='%!_!# '
21343for ac_last_try in false false :; do
21344  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21345  if test -z "$ac_tt"; then
21346    break
21347  elif $ac_last_try; then
21348    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21349  else
21350    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21351  fi
21352done
21353
21354# For the awk script, D is an array of macro values keyed by name,
21355# likewise P contains macro parameters if any.  Preserve backslash
21356# newline sequences.
21357
21358ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21359sed -n '
21360s/.\{148\}/&'"$ac_delim"'/g
21361t rset
21362:rset
21363s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
21364t def
21365d
21366:def
21367s/\\$//
21368t bsnl
21369s/["\\]/\\&/g
21370s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
21371D["\1"]=" \3"/p
21372s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
21373d
21374:bsnl
21375s/["\\]/\\&/g
21376s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
21377D["\1"]=" \3\\\\\\n"\\/p
21378t cont
21379s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21380t cont
21381d
21382:cont
21383n
21384s/.\{148\}/&'"$ac_delim"'/g
21385t clear
21386:clear
21387s/\\$//
21388t bsnlc
21389s/["\\]/\\&/g; s/^/"/; s/$/"/p
21390d
21391:bsnlc
21392s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21393b cont
21394' <confdefs.h | sed '
21395s/'"$ac_delim"'/"\\\
21396"/g' >>$CONFIG_STATUS || ac_write_fail=1
21397
21398cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21399  for (key in D) D_is_set[key] = 1
21400  FS = ""
21401}
21402/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21403  line = \$ 0
21404  split(line, arg, " ")
21405  if (arg[1] == "#") {
21406    defundef = arg[2]
21407    mac1 = arg[3]
21408  } else {
21409    defundef = substr(arg[1], 2)
21410    mac1 = arg[2]
21411  }
21412  split(mac1, mac2, "(") #)
21413  macro = mac2[1]
21414  prefix = substr(line, 1, index(line, defundef) - 1)
21415  if (D_is_set[macro]) {
21416    # Preserve the white space surrounding the "#".
21417    print prefix "define", macro P[macro] D[macro]
21418    next
21419  } else {
21420    # Replace #undef with comments.  This is necessary, for example,
21421    # in the case of _POSIX_SOURCE, which is predefined and required
21422    # on some systems where configure will not decide to define it.
21423    if (defundef == "undef") {
21424      print "/*", prefix defundef, macro, "*/"
21425      next
21426    }
21427  }
21428}
21429{ print }
21430_ACAWK
21431_ACEOF
21432cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21433  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21434fi # test -n "$CONFIG_HEADERS"
21435
21436
21437eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
21438shift
21439for ac_tag
21440do
21441  case $ac_tag in
21442  :[FHLC]) ac_mode=$ac_tag; continue;;
21443  esac
21444  case $ac_mode$ac_tag in
21445  :[FHL]*:*);;
21446  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21447  :[FH]-) ac_tag=-:-;;
21448  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21449  esac
21450  ac_save_IFS=$IFS
21451  IFS=:
21452  set x $ac_tag
21453  IFS=$ac_save_IFS
21454  shift
21455  ac_file=$1
21456  shift
21457
21458  case $ac_mode in
21459  :L) ac_source=$1;;
21460  :[FH])
21461    ac_file_inputs=
21462    for ac_f
21463    do
21464      case $ac_f in
21465      -) ac_f="$ac_tmp/stdin";;
21466      *) # Look for the file first in the build tree, then in the source tree
21467	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
21468	 # because $ac_f cannot contain `:'.
21469	 test -f "$ac_f" ||
21470	   case $ac_f in
21471	   [\\/$]*) false;;
21472	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21473	   esac ||
21474	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21475      esac
21476      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21477      as_fn_append ac_file_inputs " '$ac_f'"
21478    done
21479
21480    # Let's still pretend it is `configure' which instantiates (i.e., don't
21481    # use $as_me), people would be surprised to read:
21482    #    /* config.h.  Generated by config.status.  */
21483    configure_input='Generated from '`
21484	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21485	`' by configure.'
21486    if test x"$ac_file" != x-; then
21487      configure_input="$ac_file.  $configure_input"
21488      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21489printf "%s\n" "$as_me: creating $ac_file" >&6;}
21490    fi
21491    # Neutralize special characters interpreted by sed in replacement strings.
21492    case $configure_input in #(
21493    *\&* | *\|* | *\\* )
21494       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
21495       sed 's/[\\\\&|]/\\\\&/g'`;; #(
21496    *) ac_sed_conf_input=$configure_input;;
21497    esac
21498
21499    case $ac_tag in
21500    *:-:* | *:-) cat >"$ac_tmp/stdin" \
21501      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21502    esac
21503    ;;
21504  esac
21505
21506  ac_dir=`$as_dirname -- "$ac_file" ||
21507$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21508	 X"$ac_file" : 'X\(//\)[^/]' \| \
21509	 X"$ac_file" : 'X\(//\)$' \| \
21510	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21511printf "%s\n" X"$ac_file" |
21512    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21513	    s//\1/
21514	    q
21515	  }
21516	  /^X\(\/\/\)[^/].*/{
21517	    s//\1/
21518	    q
21519	  }
21520	  /^X\(\/\/\)$/{
21521	    s//\1/
21522	    q
21523	  }
21524	  /^X\(\/\).*/{
21525	    s//\1/
21526	    q
21527	  }
21528	  s/.*/./; q'`
21529  as_dir="$ac_dir"; as_fn_mkdir_p
21530  ac_builddir=.
21531
21532case "$ac_dir" in
21533.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21534*)
21535  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
21536  # A ".." for each directory in $ac_dir_suffix.
21537  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21538  case $ac_top_builddir_sub in
21539  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21540  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21541  esac ;;
21542esac
21543ac_abs_top_builddir=$ac_pwd
21544ac_abs_builddir=$ac_pwd$ac_dir_suffix
21545# for backward compatibility:
21546ac_top_builddir=$ac_top_build_prefix
21547
21548case $srcdir in
21549  .)  # We are building in place.
21550    ac_srcdir=.
21551    ac_top_srcdir=$ac_top_builddir_sub
21552    ac_abs_top_srcdir=$ac_pwd ;;
21553  [\\/]* | ?:[\\/]* )  # Absolute name.
21554    ac_srcdir=$srcdir$ac_dir_suffix;
21555    ac_top_srcdir=$srcdir
21556    ac_abs_top_srcdir=$srcdir ;;
21557  *) # Relative name.
21558    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21559    ac_top_srcdir=$ac_top_build_prefix$srcdir
21560    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21561esac
21562ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21563
21564
21565  case $ac_mode in
21566  :F)
21567  #
21568  # CONFIG_FILE
21569  #
21570
21571  case $INSTALL in
21572  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21573  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21574  esac
21575  ac_MKDIR_P=$MKDIR_P
21576  case $MKDIR_P in
21577  [\\/$]* | ?:[\\/]* ) ;;
21578  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21579  esac
21580_ACEOF
21581
21582cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21583# If the template does not know about datarootdir, expand it.
21584# FIXME: This hack should be removed a few years after 2.60.
21585ac_datarootdir_hack=; ac_datarootdir_seen=
21586ac_sed_dataroot='
21587/datarootdir/ {
21588  p
21589  q
21590}
21591/@datadir@/p
21592/@docdir@/p
21593/@infodir@/p
21594/@localedir@/p
21595/@mandir@/p'
21596case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21597*datarootdir*) ac_datarootdir_seen=yes;;
21598*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21599  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21600printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21601_ACEOF
21602cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21603  ac_datarootdir_hack='
21604  s&@datadir@&$datadir&g
21605  s&@docdir@&$docdir&g
21606  s&@infodir@&$infodir&g
21607  s&@localedir@&$localedir&g
21608  s&@mandir@&$mandir&g
21609  s&\\\${datarootdir}&$datarootdir&g' ;;
21610esac
21611_ACEOF
21612
21613# Neutralize VPATH when `$srcdir' = `.'.
21614# Shell code in configure.ac might set extrasub.
21615# FIXME: do we really want to maintain this feature?
21616cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21617ac_sed_extra="$ac_vpsub
21618$extrasub
21619_ACEOF
21620cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21621:t
21622/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21623s|@configure_input@|$ac_sed_conf_input|;t t
21624s&@top_builddir@&$ac_top_builddir_sub&;t t
21625s&@top_build_prefix@&$ac_top_build_prefix&;t t
21626s&@srcdir@&$ac_srcdir&;t t
21627s&@abs_srcdir@&$ac_abs_srcdir&;t t
21628s&@top_srcdir@&$ac_top_srcdir&;t t
21629s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21630s&@builddir@&$ac_builddir&;t t
21631s&@abs_builddir@&$ac_abs_builddir&;t t
21632s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21633s&@INSTALL@&$ac_INSTALL&;t t
21634s&@MKDIR_P@&$ac_MKDIR_P&;t t
21635$ac_datarootdir_hack
21636"
21637eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21638  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21639
21640test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21641  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21642  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
21643      "$ac_tmp/out"`; test -z "$ac_out"; } &&
21644  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21645which seems to be undefined.  Please make sure it is defined" >&5
21646printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21647which seems to be undefined.  Please make sure it is defined" >&2;}
21648
21649  rm -f "$ac_tmp/stdin"
21650  case $ac_file in
21651  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21652  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21653  esac \
21654  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21655 ;;
21656  :H)
21657  #
21658  # CONFIG_HEADER
21659  #
21660  if test x"$ac_file" != x-; then
21661    {
21662      printf "%s\n" "/* $configure_input  */" >&1 \
21663      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21664    } >"$ac_tmp/config.h" \
21665      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21666    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21667      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21668printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
21669    else
21670      rm -f "$ac_file"
21671      mv "$ac_tmp/config.h" "$ac_file" \
21672	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
21673    fi
21674  else
21675    printf "%s\n" "/* $configure_input  */" >&1 \
21676      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21677      || as_fn_error $? "could not create -" "$LINENO" 5
21678  fi
21679# Compute "$ac_file"'s index in $config_headers.
21680_am_arg="$ac_file"
21681_am_stamp_count=1
21682for _am_header in $config_headers :; do
21683  case $_am_header in
21684    $_am_arg | $_am_arg:* )
21685      break ;;
21686    * )
21687      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21688  esac
21689done
21690echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21691$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21692	 X"$_am_arg" : 'X\(//\)[^/]' \| \
21693	 X"$_am_arg" : 'X\(//\)$' \| \
21694	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21695printf "%s\n" X"$_am_arg" |
21696    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21697	    s//\1/
21698	    q
21699	  }
21700	  /^X\(\/\/\)[^/].*/{
21701	    s//\1/
21702	    q
21703	  }
21704	  /^X\(\/\/\)$/{
21705	    s//\1/
21706	    q
21707	  }
21708	  /^X\(\/\).*/{
21709	    s//\1/
21710	    q
21711	  }
21712	  s/.*/./; q'`/stamp-h$_am_stamp_count
21713 ;;
21714
21715  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21716printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
21717 ;;
21718  esac
21719
21720
21721  case $ac_file$ac_mode in
21722    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21723  # Older Autoconf quotes --file arguments for eval, but not when files
21724  # are listed without --file.  Let's play safe and only enable the eval
21725  # if we detect the quoting.
21726  # TODO: see whether this extra hack can be removed once we start
21727  # requiring Autoconf 2.70 or later.
21728  case $CONFIG_FILES in #(
21729  *\'*) :
21730    eval set x "$CONFIG_FILES" ;; #(
21731  *) :
21732    set x $CONFIG_FILES ;; #(
21733  *) :
21734     ;;
21735esac
21736  shift
21737  # Used to flag and report bootstrapping failures.
21738  am_rc=0
21739  for am_mf
21740  do
21741    # Strip MF so we end up with the name of the file.
21742    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
21743    # Check whether this is an Automake generated Makefile which includes
21744    # dependency-tracking related rules and includes.
21745    # Grep'ing the whole file directly is not great: AIX grep has a line
21746    # limit of 2048, but all sed's we know have understand at least 4000.
21747    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
21748      || continue
21749    am_dirpart=`$as_dirname -- "$am_mf" ||
21750$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21751	 X"$am_mf" : 'X\(//\)[^/]' \| \
21752	 X"$am_mf" : 'X\(//\)$' \| \
21753	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21754printf "%s\n" X"$am_mf" |
21755    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21756	    s//\1/
21757	    q
21758	  }
21759	  /^X\(\/\/\)[^/].*/{
21760	    s//\1/
21761	    q
21762	  }
21763	  /^X\(\/\/\)$/{
21764	    s//\1/
21765	    q
21766	  }
21767	  /^X\(\/\).*/{
21768	    s//\1/
21769	    q
21770	  }
21771	  s/.*/./; q'`
21772    am_filepart=`$as_basename -- "$am_mf" ||
21773$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
21774	 X"$am_mf" : 'X\(//\)$' \| \
21775	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21776printf "%s\n" X/"$am_mf" |
21777    sed '/^.*\/\([^/][^/]*\)\/*$/{
21778	    s//\1/
21779	    q
21780	  }
21781	  /^X\/\(\/\/\)$/{
21782	    s//\1/
21783	    q
21784	  }
21785	  /^X\/\(\/\).*/{
21786	    s//\1/
21787	    q
21788	  }
21789	  s/.*/./; q'`
21790    { echo "$as_me:$LINENO: cd "$am_dirpart" \
21791      && sed -e '/# am--include-marker/d' "$am_filepart" \
21792        | $MAKE -f - am--depfiles" >&5
21793   (cd "$am_dirpart" \
21794      && sed -e '/# am--include-marker/d' "$am_filepart" \
21795        | $MAKE -f - am--depfiles) >&5 2>&5
21796   ac_status=$?
21797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21798   (exit $ac_status); } || am_rc=$?
21799  done
21800  if test $am_rc -ne 0; then
21801    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21802printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
21803as_fn_error $? "Something went wrong bootstrapping makefile fragments
21804    for automatic dependency tracking.  If GNU make was not used, consider
21805    re-running the configure script with MAKE=\"gmake\" (or whatever is
21806    necessary).  You can also try re-running configure with the
21807    '--disable-dependency-tracking' option to at least be able to build
21808    the package (albeit without support for automatic dependency tracking).
21809See \`config.log' for more details" "$LINENO" 5; }
21810  fi
21811  { am_dirpart=; unset am_dirpart;}
21812  { am_filepart=; unset am_filepart;}
21813  { am_mf=; unset am_mf;}
21814  { am_rc=; unset am_rc;}
21815  rm -f conftest-deps.mk
21816}
21817 ;;
21818    "libtool":C)
21819
21820    # See if we are running on zsh, and set the options that allow our
21821    # commands through without removal of \ escapes.
21822    if test -n "${ZSH_VERSION+set}"; then
21823      setopt NO_GLOB_SUBST
21824    fi
21825
21826    cfgfile=${ofile}T
21827    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21828    $RM "$cfgfile"
21829
21830    cat <<_LT_EOF >> "$cfgfile"
21831#! $SHELL
21832# Generated automatically by $as_me ($PACKAGE) $VERSION
21833# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21834# NOTE: Changes made to this file will be lost: look at ltmain.sh.
21835
21836# Provide generalized library-building support services.
21837# Written by Gordon Matzigkeit, 1996
21838
21839# Copyright (C) 2014 Free Software Foundation, Inc.
21840# This is free software; see the source for copying conditions.  There is NO
21841# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21842
21843# GNU Libtool is free software; you can redistribute it and/or modify
21844# it under the terms of the GNU General Public License as published by
21845# the Free Software Foundation; either version 2 of of the License, or
21846# (at your option) any later version.
21847#
21848# As a special exception to the GNU General Public License, if you
21849# distribute this file as part of a program or library that is built
21850# using GNU Libtool, you may include this file under the  same
21851# distribution terms that you use for the rest of that program.
21852#
21853# GNU Libtool is distributed in the hope that it will be useful, but
21854# WITHOUT ANY WARRANTY; without even the implied warranty of
21855# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21856# GNU General Public License for more details.
21857#
21858# You should have received a copy of the GNU General Public License
21859# along with this program.  If not, see <http://www.gnu.org/licenses/>.
21860
21861
21862# The names of the tagged configurations supported by this script.
21863available_tags=''
21864
21865# Configured defaults for sys_lib_dlsearch_path munging.
21866: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
21867
21868# ### BEGIN LIBTOOL CONFIG
21869
21870# Which release of libtool.m4 was used?
21871macro_version=$macro_version
21872macro_revision=$macro_revision
21873
21874# Whether or not to build shared libraries.
21875build_libtool_libs=$enable_shared
21876
21877# Whether or not to build static libraries.
21878build_old_libs=$enable_static
21879
21880# What type of objects to build.
21881pic_mode=$pic_mode
21882
21883# Whether or not to optimize for fast installation.
21884fast_install=$enable_fast_install
21885
21886# Shared archive member basename,for filename based shared library versioning on AIX.
21887shared_archive_member_spec=$shared_archive_member_spec
21888
21889# Shell to use when invoking shell scripts.
21890SHELL=$lt_SHELL
21891
21892# An echo program that protects backslashes.
21893ECHO=$lt_ECHO
21894
21895# The PATH separator for the build system.
21896PATH_SEPARATOR=$lt_PATH_SEPARATOR
21897
21898# The host system.
21899host_alias=$host_alias
21900host=$host
21901host_os=$host_os
21902
21903# The build system.
21904build_alias=$build_alias
21905build=$build
21906build_os=$build_os
21907
21908# A sed program that does not truncate output.
21909SED=$lt_SED
21910
21911# Sed that helps us avoid accidentally triggering echo(1) options like -n.
21912Xsed="\$SED -e 1s/^X//"
21913
21914# A grep program that handles long lines.
21915GREP=$lt_GREP
21916
21917# An ERE matcher.
21918EGREP=$lt_EGREP
21919
21920# A literal string matcher.
21921FGREP=$lt_FGREP
21922
21923# A BSD- or MS-compatible name lister.
21924NM=$lt_NM
21925
21926# Whether we need soft or hard links.
21927LN_S=$lt_LN_S
21928
21929# What is the maximum length of a command?
21930max_cmd_len=$max_cmd_len
21931
21932# Object file suffix (normally "o").
21933objext=$ac_objext
21934
21935# Executable file suffix (normally "").
21936exeext=$exeext
21937
21938# whether the shell understands "unset".
21939lt_unset=$lt_unset
21940
21941# turn spaces into newlines.
21942SP2NL=$lt_lt_SP2NL
21943
21944# turn newlines into spaces.
21945NL2SP=$lt_lt_NL2SP
21946
21947# convert \$build file names to \$host format.
21948to_host_file_cmd=$lt_cv_to_host_file_cmd
21949
21950# convert \$build files to toolchain format.
21951to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21952
21953# A file(cmd) program that detects file types.
21954FILECMD=$lt_FILECMD
21955
21956# An object symbol dumper.
21957OBJDUMP=$lt_OBJDUMP
21958
21959# Method to check whether dependent libraries are shared objects.
21960deplibs_check_method=$lt_deplibs_check_method
21961
21962# Command to use when deplibs_check_method = "file_magic".
21963file_magic_cmd=$lt_file_magic_cmd
21964
21965# How to find potential files when deplibs_check_method = "file_magic".
21966file_magic_glob=$lt_file_magic_glob
21967
21968# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21969want_nocaseglob=$lt_want_nocaseglob
21970
21971# DLL creation program.
21972DLLTOOL=$lt_DLLTOOL
21973
21974# Command to associate shared and link libraries.
21975sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21976
21977# The archiver.
21978AR=$lt_AR
21979
21980# Flags to create an archive (by configure).
21981lt_ar_flags=$lt_ar_flags
21982
21983# Flags to create an archive.
21984AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
21985
21986# How to feed a file listing to the archiver.
21987archiver_list_spec=$lt_archiver_list_spec
21988
21989# A symbol stripping program.
21990STRIP=$lt_STRIP
21991
21992# Commands used to install an old-style archive.
21993RANLIB=$lt_RANLIB
21994old_postinstall_cmds=$lt_old_postinstall_cmds
21995old_postuninstall_cmds=$lt_old_postuninstall_cmds
21996
21997# Whether to use a lock for old archive extraction.
21998lock_old_archive_extraction=$lock_old_archive_extraction
21999
22000# A C compiler.
22001LTCC=$lt_CC
22002
22003# LTCC compiler flags.
22004LTCFLAGS=$lt_CFLAGS
22005
22006# Take the output of nm and produce a listing of raw symbols and C names.
22007global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22008
22009# Transform the output of nm in a proper C declaration.
22010global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22011
22012# Transform the output of nm into a list of symbols to manually relocate.
22013global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
22014
22015# Transform the output of nm in a C name address pair.
22016global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22017
22018# Transform the output of nm in a C name address pair when lib prefix is needed.
22019global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22020
22021# The name lister interface.
22022nm_interface=$lt_lt_cv_nm_interface
22023
22024# Specify filename containing input files for \$NM.
22025nm_file_list_spec=$lt_nm_file_list_spec
22026
22027# The root where to search for dependent libraries,and where our libraries should be installed.
22028lt_sysroot=$lt_sysroot
22029
22030# Command to truncate a binary pipe.
22031lt_truncate_bin=$lt_lt_cv_truncate_bin
22032
22033# The name of the directory that contains temporary libtool files.
22034objdir=$objdir
22035
22036# Used to examine libraries when file_magic_cmd begins with "file".
22037MAGIC_CMD=$MAGIC_CMD
22038
22039# Must we lock files when doing compilation?
22040need_locks=$lt_need_locks
22041
22042# Manifest tool.
22043MANIFEST_TOOL=$lt_MANIFEST_TOOL
22044
22045# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22046DSYMUTIL=$lt_DSYMUTIL
22047
22048# Tool to change global to local symbols on Mac OS X.
22049NMEDIT=$lt_NMEDIT
22050
22051# Tool to manipulate fat objects and archives on Mac OS X.
22052LIPO=$lt_LIPO
22053
22054# ldd/readelf like tool for Mach-O binaries on Mac OS X.
22055OTOOL=$lt_OTOOL
22056
22057# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22058OTOOL64=$lt_OTOOL64
22059
22060# Old archive suffix (normally "a").
22061libext=$libext
22062
22063# Shared library suffix (normally ".so").
22064shrext_cmds=$lt_shrext_cmds
22065
22066# The commands to extract the exported symbol list from a shared archive.
22067extract_expsyms_cmds=$lt_extract_expsyms_cmds
22068
22069# Variables whose values should be saved in libtool wrapper scripts and
22070# restored at link time.
22071variables_saved_for_relink=$lt_variables_saved_for_relink
22072
22073# Do we need the "lib" prefix for modules?
22074need_lib_prefix=$need_lib_prefix
22075
22076# Do we need a version for libraries?
22077need_version=$need_version
22078
22079# Library versioning type.
22080version_type=$version_type
22081
22082# Shared library runtime path variable.
22083runpath_var=$runpath_var
22084
22085# Shared library path variable.
22086shlibpath_var=$shlibpath_var
22087
22088# Is shlibpath searched before the hard-coded library search path?
22089shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22090
22091# Format of library name prefix.
22092libname_spec=$lt_libname_spec
22093
22094# List of archive names.  First name is the real one, the rest are links.
22095# The last name is the one that the linker finds with -lNAME
22096library_names_spec=$lt_library_names_spec
22097
22098# The coded name of the library, if different from the real name.
22099soname_spec=$lt_soname_spec
22100
22101# Permission mode override for installation of shared libraries.
22102install_override_mode=$lt_install_override_mode
22103
22104# Command to use after installation of a shared archive.
22105postinstall_cmds=$lt_postinstall_cmds
22106
22107# Command to use after uninstallation of a shared archive.
22108postuninstall_cmds=$lt_postuninstall_cmds
22109
22110# Commands used to finish a libtool library installation in a directory.
22111finish_cmds=$lt_finish_cmds
22112
22113# As "finish_cmds", except a single script fragment to be evaled but
22114# not shown.
22115finish_eval=$lt_finish_eval
22116
22117# Whether we should hardcode library paths into libraries.
22118hardcode_into_libs=$hardcode_into_libs
22119
22120# Compile-time system search path for libraries.
22121sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22122
22123# Detected run-time system search path for libraries.
22124sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
22125
22126# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
22127configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
22128
22129# Whether dlopen is supported.
22130dlopen_support=$enable_dlopen
22131
22132# Whether dlopen of programs is supported.
22133dlopen_self=$enable_dlopen_self
22134
22135# Whether dlopen of statically linked programs is supported.
22136dlopen_self_static=$enable_dlopen_self_static
22137
22138# Commands to strip libraries.
22139old_striplib=$lt_old_striplib
22140striplib=$lt_striplib
22141
22142
22143# The linker used to build libraries.
22144LD=$lt_LD
22145
22146# How to create reloadable object files.
22147reload_flag=$lt_reload_flag
22148reload_cmds=$lt_reload_cmds
22149
22150# Commands used to build an old-style archive.
22151old_archive_cmds=$lt_old_archive_cmds
22152
22153# A language specific compiler.
22154CC=$lt_compiler
22155
22156# Is the compiler the GNU compiler?
22157with_gcc=$GCC
22158
22159# Compiler flag to turn off builtin functions.
22160no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22161
22162# Additional compiler flags for building library objects.
22163pic_flag=$lt_lt_prog_compiler_pic
22164
22165# How to pass a linker flag through the compiler.
22166wl=$lt_lt_prog_compiler_wl
22167
22168# Compiler flag to prevent dynamic linking.
22169link_static_flag=$lt_lt_prog_compiler_static
22170
22171# Does compiler simultaneously support -c and -o options?
22172compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22173
22174# Whether or not to add -lc for building shared libraries.
22175build_libtool_need_lc=$archive_cmds_need_lc
22176
22177# Whether or not to disallow shared libs when runtime libs are static.
22178allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22179
22180# Compiler flag to allow reflexive dlopens.
22181export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22182
22183# Compiler flag to generate shared objects directly from archives.
22184whole_archive_flag_spec=$lt_whole_archive_flag_spec
22185
22186# Whether the compiler copes with passing no objects directly.
22187compiler_needs_object=$lt_compiler_needs_object
22188
22189# Create an old-style archive from a shared archive.
22190old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22191
22192# Create a temporary old-style archive to link instead of a shared archive.
22193old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22194
22195# Commands used to build a shared archive.
22196archive_cmds=$lt_archive_cmds
22197archive_expsym_cmds=$lt_archive_expsym_cmds
22198
22199# Commands used to build a loadable module if different from building
22200# a shared archive.
22201module_cmds=$lt_module_cmds
22202module_expsym_cmds=$lt_module_expsym_cmds
22203
22204# Whether we are building with GNU ld or not.
22205with_gnu_ld=$lt_with_gnu_ld
22206
22207# Flag that allows shared libraries with undefined symbols to be built.
22208allow_undefined_flag=$lt_allow_undefined_flag
22209
22210# Flag that enforces no undefined symbols.
22211no_undefined_flag=$lt_no_undefined_flag
22212
22213# Flag to hardcode \$libdir into a binary during linking.
22214# This must work even if \$libdir does not exist
22215hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22216
22217# Whether we need a single "-rpath" flag with a separated argument.
22218hardcode_libdir_separator=$lt_hardcode_libdir_separator
22219
22220# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22221# DIR into the resulting binary.
22222hardcode_direct=$hardcode_direct
22223
22224# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22225# DIR into the resulting binary and the resulting library dependency is
22226# "absolute",i.e impossible to change by setting \$shlibpath_var if the
22227# library is relocated.
22228hardcode_direct_absolute=$hardcode_direct_absolute
22229
22230# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22231# into the resulting binary.
22232hardcode_minus_L=$hardcode_minus_L
22233
22234# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22235# into the resulting binary.
22236hardcode_shlibpath_var=$hardcode_shlibpath_var
22237
22238# Set to "yes" if building a shared library automatically hardcodes DIR
22239# into the library and all subsequent libraries and executables linked
22240# against it.
22241hardcode_automatic=$hardcode_automatic
22242
22243# Set to yes if linker adds runtime paths of dependent libraries
22244# to runtime path list.
22245inherit_rpath=$inherit_rpath
22246
22247# Whether libtool must link a program against all its dependency libraries.
22248link_all_deplibs=$link_all_deplibs
22249
22250# Set to "yes" if exported symbols are required.
22251always_export_symbols=$always_export_symbols
22252
22253# The commands to list exported symbols.
22254export_symbols_cmds=$lt_export_symbols_cmds
22255
22256# Symbols that should not be listed in the preloaded symbols.
22257exclude_expsyms=$lt_exclude_expsyms
22258
22259# Symbols that must always be exported.
22260include_expsyms=$lt_include_expsyms
22261
22262# Commands necessary for linking programs (against libraries) with templates.
22263prelink_cmds=$lt_prelink_cmds
22264
22265# Commands necessary for finishing linking programs.
22266postlink_cmds=$lt_postlink_cmds
22267
22268# Specify filename containing input files.
22269file_list_spec=$lt_file_list_spec
22270
22271# How to hardcode a shared library path into an executable.
22272hardcode_action=$hardcode_action
22273
22274# ### END LIBTOOL CONFIG
22275
22276_LT_EOF
22277
22278    cat <<'_LT_EOF' >> "$cfgfile"
22279
22280# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
22281
22282# func_munge_path_list VARIABLE PATH
22283# -----------------------------------
22284# VARIABLE is name of variable containing _space_ separated list of
22285# directories to be munged by the contents of PATH, which is string
22286# having a format:
22287# "DIR[:DIR]:"
22288#       string "DIR[ DIR]" will be prepended to VARIABLE
22289# ":DIR[:DIR]"
22290#       string "DIR[ DIR]" will be appended to VARIABLE
22291# "DIRP[:DIRP]::[DIRA:]DIRA"
22292#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
22293#       "DIRA[ DIRA]" will be appended to VARIABLE
22294# "DIR[:DIR]"
22295#       VARIABLE will be replaced by "DIR[ DIR]"
22296func_munge_path_list ()
22297{
22298    case x$2 in
22299    x)
22300        ;;
22301    *:)
22302        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
22303        ;;
22304    x:*)
22305        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
22306        ;;
22307    *::*)
22308        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
22309        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
22310        ;;
22311    *)
22312        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
22313        ;;
22314    esac
22315}
22316
22317
22318# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
22319func_cc_basename ()
22320{
22321    for cc_temp in $*""; do
22322      case $cc_temp in
22323        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22324        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22325        \-*) ;;
22326        *) break;;
22327      esac
22328    done
22329    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
22330}
22331
22332
22333# ### END FUNCTIONS SHARED WITH CONFIGURE
22334
22335_LT_EOF
22336
22337  case $host_os in
22338  aix3*)
22339    cat <<\_LT_EOF >> "$cfgfile"
22340# AIX sometimes has problems with the GCC collect2 program.  For some
22341# reason, if we set the COLLECT_NAMES environment variable, the problems
22342# vanish in a puff of smoke.
22343if test set != "${COLLECT_NAMES+set}"; then
22344  COLLECT_NAMES=
22345  export COLLECT_NAMES
22346fi
22347_LT_EOF
22348    ;;
22349  esac
22350
22351
22352
22353ltmain=$ac_aux_dir/ltmain.sh
22354
22355
22356  # We use sed instead of cat because bash on DJGPP gets confused if
22357  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
22358  # text mode, it properly converts lines to CR/LF.  This bash problem
22359  # is reportedly fixed, but why not run on old versions too?
22360  $SED '$q' "$ltmain" >> "$cfgfile" \
22361     || (rm -f "$cfgfile"; exit 1)
22362
22363   mv -f "$cfgfile" "$ofile" ||
22364    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22365  chmod +x "$ofile"
22366
22367 ;;
22368
22369  esac
22370done # for ac_tag
22371
22372
22373as_fn_exit 0
22374_ACEOF
22375ac_clean_files=$ac_clean_files_save
22376
22377test $ac_write_fail = 0 ||
22378  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22379
22380
22381# configure is writing to config.log, and then calls config.status.
22382# config.status does its own redirection, appending to config.log.
22383# Unfortunately, on DOS this fails, as config.log is still kept open
22384# by configure, so config.status won't be able to write to it; its
22385# output is simply discarded.  So we exec the FD to /dev/null,
22386# effectively closing config.log, so it can be properly (re)opened and
22387# appended to by config.status.  When coming back to configure, we
22388# need to make the FD available again.
22389if test "$no_create" != yes; then
22390  ac_cs_success=:
22391  ac_config_status_args=
22392  test "$silent" = yes &&
22393    ac_config_status_args="$ac_config_status_args --quiet"
22394  exec 5>/dev/null
22395  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22396  exec 5>>config.log
22397  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22398  # would make configure fail if this is the last instruction.
22399  $ac_cs_success || as_fn_exit 1
22400fi
22401if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22402  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22403printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22404fi
22405
22406
22407