1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.71 for libXaw 1.0.16.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxaw/-/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/libxaw/-/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
601as_awk_strverscmp='
602  # Use only awk features that work with 7th edition Unix awk (1978).
603  # My, what an old awk you have, Mr. Solaris!
604  END {
605    while (length(v1) && length(v2)) {
606      # Set d1 to be the next thing to compare from v1, and likewise for d2.
607      # Normally this is a single character, but if v1 and v2 contain digits,
608      # compare them as integers and fractions as strverscmp does.
609      if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) {
610	# Split v1 and v2 into their leading digit string components d1 and d2,
611	# and advance v1 and v2 past the leading digit strings.
612	for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue
613	for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue
614	d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
615	d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
616	if (d1 ~ /^0/) {
617	  if (d2 ~ /^0/) {
618	    # Compare two fractions.
619	    while (d1 ~ /^0/ && d2 ~ /^0/) {
620	      d1 = substr(d1, 2); len1--
621	      d2 = substr(d2, 2); len2--
622	    }
623	    if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
624	      # The two components differ in length, and the common prefix
625	      # contains only leading zeros.  Consider the longer to be less.
626	      d1 = -len1
627	      d2 = -len2
628	    } else {
629	      # Otherwise, compare as strings.
630	      d1 = "x" d1
631	      d2 = "x" d2
632	    }
633	  } else {
634	    # A fraction is less than an integer.
635	    exit 1
636	  }
637	} else {
638	  if (d2 ~ /^0/) {
639	    # An integer is greater than a fraction.
640	    exit 2
641	  } else {
642	    # Compare two integers.
643	    d1 += 0
644	    d2 += 0
645	  }
646	}
647      } else {
648	# The normal case, without worrying about digits.
649	d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
650	d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
651      }
652      if (d1 < d2) exit 1
653      if (d1 > d2) exit 2
654    }
655    # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
656    # which mishandles some comparisons of empty strings to integers.
657    if (length(v2)) exit 1
658    if (length(v1)) exit 2
659  }
660'
661
662test -n "$DJDIR" || exec 7<&0 </dev/null
663exec 6>&1
664
665# Name of the host.
666# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
667# so uname gets run too.
668ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
669
670#
671# Initializations.
672#
673ac_default_prefix=/usr/local
674ac_clean_files=
675ac_config_libobj_dir=.
676LIBOBJS=
677cross_compiling=no
678subdirs=
679MFLAGS=
680MAKEFLAGS=
681
682# Identity of this package.
683PACKAGE_NAME='libXaw'
684PACKAGE_TARNAME='libXaw'
685PACKAGE_VERSION='1.0.16'
686PACKAGE_STRING='libXaw 1.0.16'
687PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libxaw/-/issues'
688PACKAGE_URL=''
689
690ac_unique_file="Makefile.am"
691# Factoring default headers for most tests.
692ac_includes_default="\
693#include <stddef.h>
694#ifdef HAVE_STDIO_H
695# include <stdio.h>
696#endif
697#ifdef HAVE_STDLIB_H
698# include <stdlib.h>
699#endif
700#ifdef HAVE_STRING_H
701# include <string.h>
702#endif
703#ifdef HAVE_INTTYPES_H
704# include <inttypes.h>
705#endif
706#ifdef HAVE_STDINT_H
707# include <stdint.h>
708#endif
709#ifdef HAVE_STRINGS_H
710# include <strings.h>
711#endif
712#ifdef HAVE_SYS_TYPES_H
713# include <sys/types.h>
714#endif
715#ifdef HAVE_SYS_STAT_H
716# include <sys/stat.h>
717#endif
718#ifdef HAVE_UNISTD_H
719# include <unistd.h>
720#endif"
721
722ac_header_c_list=
723ac_subst_vars='am__EXEEXT_FALSE
724am__EXEEXT_TRUE
725LTLIBOBJS
726LIBOBJS
727ENABLE_UNIT_TESTS_FALSE
728ENABLE_UNIT_TESTS_TRUE
729XORG_MALLOC_DEBUG_ENV
730BUILD_XAW7_FALSE
731BUILD_XAW7_TRUE
732BUILD_XAW6_FALSE
733BUILD_XAW6_TRUE
734XAW7_LIBS
735XAW7_CFLAGS
736XAW6_LIBS
737XAW6_CFLAGS
738PLATFORM_DARWIN_FALSE
739PLATFORM_DARWIN_TRUE
740PLATFORM_WIN32_FALSE
741PLATFORM_WIN32_TRUE
742LIBEXT
743HAVE_STYLESHEETS_FALSE
744HAVE_STYLESHEETS_TRUE
745XSL_STYLESHEET
746STYLESHEET_SRCDIR
747XORG_SGML_PATH
748HAVE_XSLTPROC_FALSE
749HAVE_XSLTPROC_TRUE
750XSLTPROC
751HAVE_FOP_FALSE
752HAVE_FOP_TRUE
753FOP
754HAVE_XMLTO_FALSE
755HAVE_XMLTO_TRUE
756HAVE_XMLTO_TEXT_FALSE
757HAVE_XMLTO_TEXT_TRUE
758XMLTO
759ENABLE_SPECS_FALSE
760ENABLE_SPECS_TRUE
761MAN_SUBSTS
762XORG_MAN_PAGE
763ADMIN_MAN_DIR
764DRIVER_MAN_DIR
765MISC_MAN_DIR
766FILE_MAN_DIR
767LIB_MAN_DIR
768APP_MAN_DIR
769ADMIN_MAN_SUFFIX
770DRIVER_MAN_SUFFIX
771MISC_MAN_SUFFIX
772FILE_MAN_SUFFIX
773LIB_MAN_SUFFIX
774APP_MAN_SUFFIX
775INSTALL_CMD
776PKG_CONFIG_LIBDIR
777PKG_CONFIG_PATH
778PKG_CONFIG
779CHANGELOG_CMD
780STRICT_CFLAGS
781CWARNFLAGS
782BASE_CFLAGS
783LT_SYS_LIBRARY_PATH
784OTOOL64
785OTOOL
786LIPO
787NMEDIT
788DSYMUTIL
789MANIFEST_TOOL
790RANLIB
791ac_ct_AR
792AR
793DLLTOOL
794OBJDUMP
795FILECMD
796LN_S
797NM
798ac_ct_DUMPBIN
799DUMPBIN
800LD
801FGREP
802EGREP
803GREP
804SED
805am__fastdepCC_FALSE
806am__fastdepCC_TRUE
807CCDEPMODE
808am__nodep
809AMDEPBACKSLASH
810AMDEP_FALSE
811AMDEP_TRUE
812am__include
813DEPDIR
814OBJEXT
815EXEEXT
816ac_ct_CC
817CPPFLAGS
818LDFLAGS
819CFLAGS
820CC
821host_os
822host_vendor
823host_cpu
824host
825build_os
826build_vendor
827build_cpu
828build
829LIBTOOL
830AM_BACKSLASH
831AM_DEFAULT_VERBOSITY
832AM_DEFAULT_V
833AM_V
834CSCOPE
835ETAGS
836CTAGS
837am__untar
838am__tar
839AMTAR
840am__leading_dot
841SET_MAKE
842AWK
843mkdir_p
844MKDIR_P
845INSTALL_STRIP_PROGRAM
846STRIP
847install_sh
848MAKEINFO
849AUTOHEADER
850AUTOMAKE
851AUTOCONF
852ACLOCAL
853VERSION
854PACKAGE
855CYGPATH_W
856am__isrc
857INSTALL_DATA
858INSTALL_SCRIPT
859INSTALL_PROGRAM
860target_alias
861host_alias
862build_alias
863LIBS
864ECHO_T
865ECHO_N
866ECHO_C
867DEFS
868mandir
869localedir
870libdir
871psdir
872pdfdir
873dvidir
874htmldir
875infodir
876docdir
877oldincludedir
878includedir
879runstatedir
880localstatedir
881sharedstatedir
882sysconfdir
883datadir
884datarootdir
885libexecdir
886sbindir
887bindir
888program_transform_name
889prefix
890exec_prefix
891PACKAGE_URL
892PACKAGE_BUGREPORT
893PACKAGE_STRING
894PACKAGE_VERSION
895PACKAGE_TARNAME
896PACKAGE_NAME
897PATH_SEPARATOR
898SHELL
899am__quote'
900ac_subst_files=''
901ac_user_opts='
902enable_option_checking
903enable_silent_rules
904enable_shared
905enable_static
906with_pic
907enable_fast_install
908with_aix_soname
909enable_dependency_tracking
910with_gnu_ld
911with_sysroot
912enable_libtool_lock
913enable_selective_werror
914enable_strict_compilation
915enable_specs
916with_xmlto
917with_fop
918with_xsltproc
919enable_xaw6
920enable_xaw7
921enable_const
922enable_unit_tests
923'
924      ac_precious_vars='build_alias
925host_alias
926target_alias
927CC
928CFLAGS
929LDFLAGS
930LIBS
931CPPFLAGS
932LT_SYS_LIBRARY_PATH
933PKG_CONFIG
934PKG_CONFIG_PATH
935PKG_CONFIG_LIBDIR
936XMLTO
937FOP
938XSLTPROC
939XAW6_CFLAGS
940XAW6_LIBS
941XAW7_CFLAGS
942XAW7_LIBS
943XORG_MALLOC_DEBUG_ENV'
944
945
946# Initialize some variables set by options.
947ac_init_help=
948ac_init_version=false
949ac_unrecognized_opts=
950ac_unrecognized_sep=
951# The variables have the same names as the options, with
952# dashes changed to underlines.
953cache_file=/dev/null
954exec_prefix=NONE
955no_create=
956no_recursion=
957prefix=NONE
958program_prefix=NONE
959program_suffix=NONE
960program_transform_name=s,x,x,
961silent=
962site=
963srcdir=
964verbose=
965x_includes=NONE
966x_libraries=NONE
967
968# Installation directory options.
969# These are left unexpanded so users can "make install exec_prefix=/foo"
970# and all the variables that are supposed to be based on exec_prefix
971# by default will actually change.
972# Use braces instead of parens because sh, perl, etc. also accept them.
973# (The list follows the same order as the GNU Coding Standards.)
974bindir='${exec_prefix}/bin'
975sbindir='${exec_prefix}/sbin'
976libexecdir='${exec_prefix}/libexec'
977datarootdir='${prefix}/share'
978datadir='${datarootdir}'
979sysconfdir='${prefix}/etc'
980sharedstatedir='${prefix}/com'
981localstatedir='${prefix}/var'
982runstatedir='${localstatedir}/run'
983includedir='${prefix}/include'
984oldincludedir='/usr/include'
985docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
986infodir='${datarootdir}/info'
987htmldir='${docdir}'
988dvidir='${docdir}'
989pdfdir='${docdir}'
990psdir='${docdir}'
991libdir='${exec_prefix}/lib'
992localedir='${datarootdir}/locale'
993mandir='${datarootdir}/man'
994
995ac_prev=
996ac_dashdash=
997for ac_option
998do
999  # If the previous option needs an argument, assign it.
1000  if test -n "$ac_prev"; then
1001    eval $ac_prev=\$ac_option
1002    ac_prev=
1003    continue
1004  fi
1005
1006  case $ac_option in
1007  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1008  *=)   ac_optarg= ;;
1009  *)    ac_optarg=yes ;;
1010  esac
1011
1012  case $ac_dashdash$ac_option in
1013  --)
1014    ac_dashdash=yes ;;
1015
1016  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1017    ac_prev=bindir ;;
1018  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1019    bindir=$ac_optarg ;;
1020
1021  -build | --build | --buil | --bui | --bu)
1022    ac_prev=build_alias ;;
1023  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1024    build_alias=$ac_optarg ;;
1025
1026  -cache-file | --cache-file | --cache-fil | --cache-fi \
1027  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1028    ac_prev=cache_file ;;
1029  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1030  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1031    cache_file=$ac_optarg ;;
1032
1033  --config-cache | -C)
1034    cache_file=config.cache ;;
1035
1036  -datadir | --datadir | --datadi | --datad)
1037    ac_prev=datadir ;;
1038  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1039    datadir=$ac_optarg ;;
1040
1041  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1042  | --dataroo | --dataro | --datar)
1043    ac_prev=datarootdir ;;
1044  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1045  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1046    datarootdir=$ac_optarg ;;
1047
1048  -disable-* | --disable-*)
1049    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1050    # Reject names that are not valid shell variable names.
1051    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1052      as_fn_error $? "invalid feature name: \`$ac_useropt'"
1053    ac_useropt_orig=$ac_useropt
1054    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1055    case $ac_user_opts in
1056      *"
1057"enable_$ac_useropt"
1058"*) ;;
1059      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1060	 ac_unrecognized_sep=', ';;
1061    esac
1062    eval enable_$ac_useropt=no ;;
1063
1064  -docdir | --docdir | --docdi | --doc | --do)
1065    ac_prev=docdir ;;
1066  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1067    docdir=$ac_optarg ;;
1068
1069  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1070    ac_prev=dvidir ;;
1071  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1072    dvidir=$ac_optarg ;;
1073
1074  -enable-* | --enable-*)
1075    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1076    # Reject names that are not valid shell variable names.
1077    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1078      as_fn_error $? "invalid feature name: \`$ac_useropt'"
1079    ac_useropt_orig=$ac_useropt
1080    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1081    case $ac_user_opts in
1082      *"
1083"enable_$ac_useropt"
1084"*) ;;
1085      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1086	 ac_unrecognized_sep=', ';;
1087    esac
1088    eval enable_$ac_useropt=\$ac_optarg ;;
1089
1090  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1091  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1092  | --exec | --exe | --ex)
1093    ac_prev=exec_prefix ;;
1094  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1095  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1096  | --exec=* | --exe=* | --ex=*)
1097    exec_prefix=$ac_optarg ;;
1098
1099  -gas | --gas | --ga | --g)
1100    # Obsolete; use --with-gas.
1101    with_gas=yes ;;
1102
1103  -help | --help | --hel | --he | -h)
1104    ac_init_help=long ;;
1105  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1106    ac_init_help=recursive ;;
1107  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1108    ac_init_help=short ;;
1109
1110  -host | --host | --hos | --ho)
1111    ac_prev=host_alias ;;
1112  -host=* | --host=* | --hos=* | --ho=*)
1113    host_alias=$ac_optarg ;;
1114
1115  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1116    ac_prev=htmldir ;;
1117  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1118  | --ht=*)
1119    htmldir=$ac_optarg ;;
1120
1121  -includedir | --includedir | --includedi | --included | --include \
1122  | --includ | --inclu | --incl | --inc)
1123    ac_prev=includedir ;;
1124  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1125  | --includ=* | --inclu=* | --incl=* | --inc=*)
1126    includedir=$ac_optarg ;;
1127
1128  -infodir | --infodir | --infodi | --infod | --info | --inf)
1129    ac_prev=infodir ;;
1130  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1131    infodir=$ac_optarg ;;
1132
1133  -libdir | --libdir | --libdi | --libd)
1134    ac_prev=libdir ;;
1135  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1136    libdir=$ac_optarg ;;
1137
1138  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1139  | --libexe | --libex | --libe)
1140    ac_prev=libexecdir ;;
1141  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1142  | --libexe=* | --libex=* | --libe=*)
1143    libexecdir=$ac_optarg ;;
1144
1145  -localedir | --localedir | --localedi | --localed | --locale)
1146    ac_prev=localedir ;;
1147  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1148    localedir=$ac_optarg ;;
1149
1150  -localstatedir | --localstatedir | --localstatedi | --localstated \
1151  | --localstate | --localstat | --localsta | --localst | --locals)
1152    ac_prev=localstatedir ;;
1153  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1154  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1155    localstatedir=$ac_optarg ;;
1156
1157  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1158    ac_prev=mandir ;;
1159  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1160    mandir=$ac_optarg ;;
1161
1162  -nfp | --nfp | --nf)
1163    # Obsolete; use --without-fp.
1164    with_fp=no ;;
1165
1166  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1167  | --no-cr | --no-c | -n)
1168    no_create=yes ;;
1169
1170  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1171  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1172    no_recursion=yes ;;
1173
1174  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1175  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1176  | --oldin | --oldi | --old | --ol | --o)
1177    ac_prev=oldincludedir ;;
1178  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1179  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1180  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1181    oldincludedir=$ac_optarg ;;
1182
1183  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1184    ac_prev=prefix ;;
1185  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1186    prefix=$ac_optarg ;;
1187
1188  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1189  | --program-pre | --program-pr | --program-p)
1190    ac_prev=program_prefix ;;
1191  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1192  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1193    program_prefix=$ac_optarg ;;
1194
1195  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1196  | --program-suf | --program-su | --program-s)
1197    ac_prev=program_suffix ;;
1198  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1199  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1200    program_suffix=$ac_optarg ;;
1201
1202  -program-transform-name | --program-transform-name \
1203  | --program-transform-nam | --program-transform-na \
1204  | --program-transform-n | --program-transform- \
1205  | --program-transform | --program-transfor \
1206  | --program-transfo | --program-transf \
1207  | --program-trans | --program-tran \
1208  | --progr-tra | --program-tr | --program-t)
1209    ac_prev=program_transform_name ;;
1210  -program-transform-name=* | --program-transform-name=* \
1211  | --program-transform-nam=* | --program-transform-na=* \
1212  | --program-transform-n=* | --program-transform-=* \
1213  | --program-transform=* | --program-transfor=* \
1214  | --program-transfo=* | --program-transf=* \
1215  | --program-trans=* | --program-tran=* \
1216  | --progr-tra=* | --program-tr=* | --program-t=*)
1217    program_transform_name=$ac_optarg ;;
1218
1219  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1220    ac_prev=pdfdir ;;
1221  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1222    pdfdir=$ac_optarg ;;
1223
1224  -psdir | --psdir | --psdi | --psd | --ps)
1225    ac_prev=psdir ;;
1226  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1227    psdir=$ac_optarg ;;
1228
1229  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1230  | -silent | --silent | --silen | --sile | --sil)
1231    silent=yes ;;
1232
1233  -runstatedir | --runstatedir | --runstatedi | --runstated \
1234  | --runstate | --runstat | --runsta | --runst | --runs \
1235  | --run | --ru | --r)
1236    ac_prev=runstatedir ;;
1237  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1238  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1239  | --run=* | --ru=* | --r=*)
1240    runstatedir=$ac_optarg ;;
1241
1242  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1243    ac_prev=sbindir ;;
1244  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1245  | --sbi=* | --sb=*)
1246    sbindir=$ac_optarg ;;
1247
1248  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1249  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1250  | --sharedst | --shareds | --shared | --share | --shar \
1251  | --sha | --sh)
1252    ac_prev=sharedstatedir ;;
1253  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1254  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1255  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1256  | --sha=* | --sh=*)
1257    sharedstatedir=$ac_optarg ;;
1258
1259  -site | --site | --sit)
1260    ac_prev=site ;;
1261  -site=* | --site=* | --sit=*)
1262    site=$ac_optarg ;;
1263
1264  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1265    ac_prev=srcdir ;;
1266  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1267    srcdir=$ac_optarg ;;
1268
1269  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1270  | --syscon | --sysco | --sysc | --sys | --sy)
1271    ac_prev=sysconfdir ;;
1272  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1273  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1274    sysconfdir=$ac_optarg ;;
1275
1276  -target | --target | --targe | --targ | --tar | --ta | --t)
1277    ac_prev=target_alias ;;
1278  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1279    target_alias=$ac_optarg ;;
1280
1281  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1282    verbose=yes ;;
1283
1284  -version | --version | --versio | --versi | --vers | -V)
1285    ac_init_version=: ;;
1286
1287  -with-* | --with-*)
1288    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1289    # Reject names that are not valid shell variable names.
1290    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1291      as_fn_error $? "invalid package name: \`$ac_useropt'"
1292    ac_useropt_orig=$ac_useropt
1293    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1294    case $ac_user_opts in
1295      *"
1296"with_$ac_useropt"
1297"*) ;;
1298      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1299	 ac_unrecognized_sep=', ';;
1300    esac
1301    eval with_$ac_useropt=\$ac_optarg ;;
1302
1303  -without-* | --without-*)
1304    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1305    # Reject names that are not valid shell variable names.
1306    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1307      as_fn_error $? "invalid package name: \`$ac_useropt'"
1308    ac_useropt_orig=$ac_useropt
1309    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1310    case $ac_user_opts in
1311      *"
1312"with_$ac_useropt"
1313"*) ;;
1314      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1315	 ac_unrecognized_sep=', ';;
1316    esac
1317    eval with_$ac_useropt=no ;;
1318
1319  --x)
1320    # Obsolete; use --with-x.
1321    with_x=yes ;;
1322
1323  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1324  | --x-incl | --x-inc | --x-in | --x-i)
1325    ac_prev=x_includes ;;
1326  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1327  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1328    x_includes=$ac_optarg ;;
1329
1330  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1331  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1332    ac_prev=x_libraries ;;
1333  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1334  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1335    x_libraries=$ac_optarg ;;
1336
1337  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1338Try \`$0 --help' for more information"
1339    ;;
1340
1341  *=*)
1342    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1343    # Reject names that are not valid shell variable names.
1344    case $ac_envvar in #(
1345      '' | [0-9]* | *[!_$as_cr_alnum]* )
1346      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1347    esac
1348    eval $ac_envvar=\$ac_optarg
1349    export $ac_envvar ;;
1350
1351  *)
1352    # FIXME: should be removed in autoconf 3.0.
1353    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1354    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1355      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1356    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1357    ;;
1358
1359  esac
1360done
1361
1362if test -n "$ac_prev"; then
1363  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1364  as_fn_error $? "missing argument to $ac_option"
1365fi
1366
1367if test -n "$ac_unrecognized_opts"; then
1368  case $enable_option_checking in
1369    no) ;;
1370    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1371    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1372  esac
1373fi
1374
1375# Check all directory arguments for consistency.
1376for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1377		datadir sysconfdir sharedstatedir localstatedir includedir \
1378		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1379		libdir localedir mandir runstatedir
1380do
1381  eval ac_val=\$$ac_var
1382  # Remove trailing slashes.
1383  case $ac_val in
1384    */ )
1385      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1386      eval $ac_var=\$ac_val;;
1387  esac
1388  # Be sure to have absolute directory names.
1389  case $ac_val in
1390    [\\/$]* | ?:[\\/]* )  continue;;
1391    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1392  esac
1393  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1394done
1395
1396# There might be people who depend on the old broken behavior: `$host'
1397# used to hold the argument of --host etc.
1398# FIXME: To remove some day.
1399build=$build_alias
1400host=$host_alias
1401target=$target_alias
1402
1403# FIXME: To remove some day.
1404if test "x$host_alias" != x; then
1405  if test "x$build_alias" = x; then
1406    cross_compiling=maybe
1407  elif test "x$build_alias" != "x$host_alias"; then
1408    cross_compiling=yes
1409  fi
1410fi
1411
1412ac_tool_prefix=
1413test -n "$host_alias" && ac_tool_prefix=$host_alias-
1414
1415test "$silent" = yes && exec 6>/dev/null
1416
1417
1418ac_pwd=`pwd` && test -n "$ac_pwd" &&
1419ac_ls_di=`ls -di .` &&
1420ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1421  as_fn_error $? "working directory cannot be determined"
1422test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1423  as_fn_error $? "pwd does not report name of working directory"
1424
1425
1426# Find the source files, if location was not specified.
1427if test -z "$srcdir"; then
1428  ac_srcdir_defaulted=yes
1429  # Try the directory containing this script, then the parent directory.
1430  ac_confdir=`$as_dirname -- "$as_myself" ||
1431$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1432	 X"$as_myself" : 'X\(//\)[^/]' \| \
1433	 X"$as_myself" : 'X\(//\)$' \| \
1434	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1435printf "%s\n" X"$as_myself" |
1436    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1437	    s//\1/
1438	    q
1439	  }
1440	  /^X\(\/\/\)[^/].*/{
1441	    s//\1/
1442	    q
1443	  }
1444	  /^X\(\/\/\)$/{
1445	    s//\1/
1446	    q
1447	  }
1448	  /^X\(\/\).*/{
1449	    s//\1/
1450	    q
1451	  }
1452	  s/.*/./; q'`
1453  srcdir=$ac_confdir
1454  if test ! -r "$srcdir/$ac_unique_file"; then
1455    srcdir=..
1456  fi
1457else
1458  ac_srcdir_defaulted=no
1459fi
1460if test ! -r "$srcdir/$ac_unique_file"; then
1461  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1462  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1463fi
1464ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1465ac_abs_confdir=`(
1466	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1467	pwd)`
1468# When building in place, set srcdir=.
1469if test "$ac_abs_confdir" = "$ac_pwd"; then
1470  srcdir=.
1471fi
1472# Remove unnecessary trailing slashes from srcdir.
1473# Double slashes in file names in object file debugging info
1474# mess up M-x gdb in Emacs.
1475case $srcdir in
1476*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1477esac
1478for ac_var in $ac_precious_vars; do
1479  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1480  eval ac_env_${ac_var}_value=\$${ac_var}
1481  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1482  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1483done
1484
1485#
1486# Report the --help message.
1487#
1488if test "$ac_init_help" = "long"; then
1489  # Omit some internal or obsolete options to make the list less imposing.
1490  # This message is too long to be a string in the A/UX 3.1 sh.
1491  cat <<_ACEOF
1492\`configure' configures libXaw 1.0.16 to adapt to many kinds of systems.
1493
1494Usage: $0 [OPTION]... [VAR=VALUE]...
1495
1496To assign environment variables (e.g., CC, CFLAGS...), specify them as
1497VAR=VALUE.  See below for descriptions of some of the useful variables.
1498
1499Defaults for the options are specified in brackets.
1500
1501Configuration:
1502  -h, --help              display this help and exit
1503      --help=short        display options specific to this package
1504      --help=recursive    display the short help of all the included packages
1505  -V, --version           display version information and exit
1506  -q, --quiet, --silent   do not print \`checking ...' messages
1507      --cache-file=FILE   cache test results in FILE [disabled]
1508  -C, --config-cache      alias for \`--cache-file=config.cache'
1509  -n, --no-create         do not create output files
1510      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1511
1512Installation directories:
1513  --prefix=PREFIX         install architecture-independent files in PREFIX
1514                          [$ac_default_prefix]
1515  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1516                          [PREFIX]
1517
1518By default, \`make install' will install all the files in
1519\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1520an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1521for instance \`--prefix=\$HOME'.
1522
1523For better control, use the options below.
1524
1525Fine tuning of the installation directories:
1526  --bindir=DIR            user executables [EPREFIX/bin]
1527  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1528  --libexecdir=DIR        program executables [EPREFIX/libexec]
1529  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1530  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1531  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1532  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1533  --libdir=DIR            object code libraries [EPREFIX/lib]
1534  --includedir=DIR        C header files [PREFIX/include]
1535  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1536  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1537  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1538  --infodir=DIR           info documentation [DATAROOTDIR/info]
1539  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1540  --mandir=DIR            man documentation [DATAROOTDIR/man]
1541  --docdir=DIR            documentation root [DATAROOTDIR/doc/libXaw]
1542  --htmldir=DIR           html documentation [DOCDIR]
1543  --dvidir=DIR            dvi documentation [DOCDIR]
1544  --pdfdir=DIR            pdf documentation [DOCDIR]
1545  --psdir=DIR             ps documentation [DOCDIR]
1546_ACEOF
1547
1548  cat <<\_ACEOF
1549
1550Program names:
1551  --program-prefix=PREFIX            prepend PREFIX to installed program names
1552  --program-suffix=SUFFIX            append SUFFIX to installed program names
1553  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1554
1555System types:
1556  --build=BUILD     configure for building on BUILD [guessed]
1557  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1558_ACEOF
1559fi
1560
1561if test -n "$ac_init_help"; then
1562  case $ac_init_help in
1563     short | recursive ) echo "Configuration of libXaw 1.0.16:";;
1564   esac
1565  cat <<\_ACEOF
1566
1567Optional Features:
1568  --disable-option-checking  ignore unrecognized --enable/--with options
1569  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1570  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1571  --enable-silent-rules   less verbose build output (undo: "make V=1")
1572  --disable-silent-rules  verbose build output (undo: "make V=0")
1573  --enable-shared[=PKGS]  build shared libraries [default=yes]
1574  --enable-static[=PKGS]  build static libraries [default=yes]
1575  --enable-fast-install[=PKGS]
1576                          optimize for fast installation [default=yes]
1577  --enable-dependency-tracking
1578                          do not reject slow dependency extractors
1579  --disable-dependency-tracking
1580                          speeds up one-time build
1581  --disable-libtool-lock  avoid locking (might break parallel builds)
1582  --disable-selective-werror
1583                          Turn off selective compiler errors. (default:
1584                          enabled)
1585  --enable-strict-compilation
1586                          Enable all warnings from compiler and make them
1587                          errors (default: disabled)
1588  --enable-specs          Enable building the specs (default: yes)
1589  --disable-xaw6          Disable building of libXaw.so.6
1590  --disable-xaw7          Disable building of libXaw.so.7
1591  --disable-const         Disable const-support
1592  --enable-unit-tests     Enable building unit test cases (default: no)
1593
1594Optional Packages:
1595  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1596  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1597  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1598                          both]
1599  --with-aix-soname=aix|svr4|both
1600                          shared library versioning (aka "SONAME") variant to
1601                          provide on AIX, [default=aix].
1602  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1603  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1604                          compiler's sysroot if not specified).
1605  --with-xmlto            Use xmlto to regenerate documentation (default:
1606                          auto)
1607  --with-fop              Use fop to regenerate documentation (default: auto)
1608  --with-xsltproc         Use xsltproc for the transformation of XML documents
1609                          (default: auto)
1610
1611Some influential environment variables:
1612  CC          C compiler command
1613  CFLAGS      C compiler flags
1614  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1615              nonstandard directory <lib dir>
1616  LIBS        libraries to pass to the linker, e.g. -l<library>
1617  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1618              you have headers in a nonstandard directory <include dir>
1619  LT_SYS_LIBRARY_PATH
1620              User-defined run-time library search path.
1621  PKG_CONFIG  path to pkg-config utility
1622  PKG_CONFIG_PATH
1623              directories to add to pkg-config's search path
1624  PKG_CONFIG_LIBDIR
1625              path overriding pkg-config's built-in search path
1626  XMLTO       Path to xmlto command
1627  FOP         Path to fop command
1628  XSLTPROC    Path to xsltproc command
1629  XAW6_CFLAGS C compiler flags for XAW6, overriding pkg-config
1630  XAW6_LIBS   linker flags for XAW6, overriding pkg-config
1631  XAW7_CFLAGS C compiler flags for XAW7, overriding pkg-config
1632  XAW7_LIBS   linker flags for XAW7, overriding pkg-config
1633  XORG_MALLOC_DEBUG_ENV
1634              Environment variables to enable memory checking in tests
1635
1636Use these variables to override the choices made by `configure' or to help
1637it to find libraries and programs with nonstandard names/locations.
1638
1639Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxaw/-/issues>.
1640_ACEOF
1641ac_status=$?
1642fi
1643
1644if test "$ac_init_help" = "recursive"; then
1645  # If there are subdirs, report their specific --help.
1646  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1647    test -d "$ac_dir" ||
1648      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1649      continue
1650    ac_builddir=.
1651
1652case "$ac_dir" in
1653.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1654*)
1655  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1656  # A ".." for each directory in $ac_dir_suffix.
1657  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1658  case $ac_top_builddir_sub in
1659  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1660  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1661  esac ;;
1662esac
1663ac_abs_top_builddir=$ac_pwd
1664ac_abs_builddir=$ac_pwd$ac_dir_suffix
1665# for backward compatibility:
1666ac_top_builddir=$ac_top_build_prefix
1667
1668case $srcdir in
1669  .)  # We are building in place.
1670    ac_srcdir=.
1671    ac_top_srcdir=$ac_top_builddir_sub
1672    ac_abs_top_srcdir=$ac_pwd ;;
1673  [\\/]* | ?:[\\/]* )  # Absolute name.
1674    ac_srcdir=$srcdir$ac_dir_suffix;
1675    ac_top_srcdir=$srcdir
1676    ac_abs_top_srcdir=$srcdir ;;
1677  *) # Relative name.
1678    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1679    ac_top_srcdir=$ac_top_build_prefix$srcdir
1680    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1681esac
1682ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1683
1684    cd "$ac_dir" || { ac_status=$?; continue; }
1685    # Check for configure.gnu first; this name is used for a wrapper for
1686    # Metaconfig's "Configure" on case-insensitive file systems.
1687    if test -f "$ac_srcdir/configure.gnu"; then
1688      echo &&
1689      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1690    elif test -f "$ac_srcdir/configure"; then
1691      echo &&
1692      $SHELL "$ac_srcdir/configure" --help=recursive
1693    else
1694      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1695    fi || ac_status=$?
1696    cd "$ac_pwd" || { ac_status=$?; break; }
1697  done
1698fi
1699
1700test -n "$ac_init_help" && exit $ac_status
1701if $ac_init_version; then
1702  cat <<\_ACEOF
1703libXaw configure 1.0.16
1704generated by GNU Autoconf 2.71
1705
1706Copyright (C) 2021 Free Software Foundation, Inc.
1707This configure script is free software; the Free Software Foundation
1708gives unlimited permission to copy, distribute and modify it.
1709_ACEOF
1710  exit
1711fi
1712
1713## ------------------------ ##
1714## Autoconf initialization. ##
1715## ------------------------ ##
1716
1717# ac_fn_c_try_compile LINENO
1718# --------------------------
1719# Try to compile conftest.$ac_ext, and return whether this succeeded.
1720ac_fn_c_try_compile ()
1721{
1722  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1723  rm -f conftest.$ac_objext conftest.beam
1724  if { { ac_try="$ac_compile"
1725case "(($ac_try" in
1726  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1727  *) ac_try_echo=$ac_try;;
1728esac
1729eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1730printf "%s\n" "$ac_try_echo"; } >&5
1731  (eval "$ac_compile") 2>conftest.err
1732  ac_status=$?
1733  if test -s conftest.err; then
1734    grep -v '^ *+' conftest.err >conftest.er1
1735    cat conftest.er1 >&5
1736    mv -f conftest.er1 conftest.err
1737  fi
1738  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1739  test $ac_status = 0; } && {
1740	 test -z "$ac_c_werror_flag" ||
1741	 test ! -s conftest.err
1742       } && test -s conftest.$ac_objext
1743then :
1744  ac_retval=0
1745else $as_nop
1746  printf "%s\n" "$as_me: failed program was:" >&5
1747sed 's/^/| /' conftest.$ac_ext >&5
1748
1749	ac_retval=1
1750fi
1751  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1752  as_fn_set_status $ac_retval
1753
1754} # ac_fn_c_try_compile
1755
1756# ac_fn_c_try_link LINENO
1757# -----------------------
1758# Try to link conftest.$ac_ext, and return whether this succeeded.
1759ac_fn_c_try_link ()
1760{
1761  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1762  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1763  if { { ac_try="$ac_link"
1764case "(($ac_try" in
1765  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1766  *) ac_try_echo=$ac_try;;
1767esac
1768eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1769printf "%s\n" "$ac_try_echo"; } >&5
1770  (eval "$ac_link") 2>conftest.err
1771  ac_status=$?
1772  if test -s conftest.err; then
1773    grep -v '^ *+' conftest.err >conftest.er1
1774    cat conftest.er1 >&5
1775    mv -f conftest.er1 conftest.err
1776  fi
1777  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1778  test $ac_status = 0; } && {
1779	 test -z "$ac_c_werror_flag" ||
1780	 test ! -s conftest.err
1781       } && test -s conftest$ac_exeext && {
1782	 test "$cross_compiling" = yes ||
1783	 test -x conftest$ac_exeext
1784       }
1785then :
1786  ac_retval=0
1787else $as_nop
1788  printf "%s\n" "$as_me: failed program was:" >&5
1789sed 's/^/| /' conftest.$ac_ext >&5
1790
1791	ac_retval=1
1792fi
1793  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1794  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1795  # interfere with the next link command; also delete a directory that is
1796  # left behind by Apple's compiler.  We do this before executing the actions.
1797  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1798  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1799  as_fn_set_status $ac_retval
1800
1801} # ac_fn_c_try_link
1802
1803# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1804# -------------------------------------------------------
1805# Tests whether HEADER exists and can be compiled using the include files in
1806# INCLUDES, setting the cache variable VAR accordingly.
1807ac_fn_c_check_header_compile ()
1808{
1809  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1810  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1811printf %s "checking for $2... " >&6; }
1812if eval test \${$3+y}
1813then :
1814  printf %s "(cached) " >&6
1815else $as_nop
1816  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1817/* end confdefs.h.  */
1818$4
1819#include <$2>
1820_ACEOF
1821if ac_fn_c_try_compile "$LINENO"
1822then :
1823  eval "$3=yes"
1824else $as_nop
1825  eval "$3=no"
1826fi
1827rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1828fi
1829eval ac_res=\$$3
1830	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1831printf "%s\n" "$ac_res" >&6; }
1832  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1833
1834} # ac_fn_c_check_header_compile
1835
1836# ac_fn_c_check_func LINENO FUNC VAR
1837# ----------------------------------
1838# Tests whether FUNC exists, setting the cache variable VAR accordingly
1839ac_fn_c_check_func ()
1840{
1841  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1842  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1843printf %s "checking for $2... " >&6; }
1844if eval test \${$3+y}
1845then :
1846  printf %s "(cached) " >&6
1847else $as_nop
1848  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1849/* end confdefs.h.  */
1850/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1851   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1852#define $2 innocuous_$2
1853
1854/* System header to define __stub macros and hopefully few prototypes,
1855   which can conflict with char $2 (); below.  */
1856
1857#include <limits.h>
1858#undef $2
1859
1860/* Override any GCC internal prototype to avoid an error.
1861   Use char because int might match the return type of a GCC
1862   builtin and then its argument prototype would still apply.  */
1863#ifdef __cplusplus
1864extern "C"
1865#endif
1866char $2 ();
1867/* The GNU C library defines this for functions which it implements
1868    to always fail with ENOSYS.  Some functions are actually named
1869    something starting with __ and the normal name is an alias.  */
1870#if defined __stub_$2 || defined __stub___$2
1871choke me
1872#endif
1873
1874int
1875main (void)
1876{
1877return $2 ();
1878  ;
1879  return 0;
1880}
1881_ACEOF
1882if ac_fn_c_try_link "$LINENO"
1883then :
1884  eval "$3=yes"
1885else $as_nop
1886  eval "$3=no"
1887fi
1888rm -f core conftest.err conftest.$ac_objext conftest.beam \
1889    conftest$ac_exeext conftest.$ac_ext
1890fi
1891eval ac_res=\$$3
1892	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1893printf "%s\n" "$ac_res" >&6; }
1894  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1895
1896} # ac_fn_c_check_func
1897
1898# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1899# ------------------------------------------------------------------
1900# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1901# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1902ac_fn_check_decl ()
1903{
1904  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1905  as_decl_name=`echo $2|sed 's/ *(.*//'`
1906  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1907printf %s "checking whether $as_decl_name is declared... " >&6; }
1908if eval test \${$3+y}
1909then :
1910  printf %s "(cached) " >&6
1911else $as_nop
1912  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1913  eval ac_save_FLAGS=\$$6
1914  as_fn_append $6 " $5"
1915  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1916/* end confdefs.h.  */
1917$4
1918int
1919main (void)
1920{
1921#ifndef $as_decl_name
1922#ifdef __cplusplus
1923  (void) $as_decl_use;
1924#else
1925  (void) $as_decl_name;
1926#endif
1927#endif
1928
1929  ;
1930  return 0;
1931}
1932_ACEOF
1933if ac_fn_c_try_compile "$LINENO"
1934then :
1935  eval "$3=yes"
1936else $as_nop
1937  eval "$3=no"
1938fi
1939rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1940  eval $6=\$ac_save_FLAGS
1941
1942fi
1943eval ac_res=\$$3
1944	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1945printf "%s\n" "$ac_res" >&6; }
1946  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1947
1948} # ac_fn_check_decl
1949ac_configure_args_raw=
1950for ac_arg
1951do
1952  case $ac_arg in
1953  *\'*)
1954    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1955  esac
1956  as_fn_append ac_configure_args_raw " '$ac_arg'"
1957done
1958
1959case $ac_configure_args_raw in
1960  *$as_nl*)
1961    ac_safe_unquote= ;;
1962  *)
1963    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
1964    ac_unsafe_a="$ac_unsafe_z#~"
1965    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1966    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1967esac
1968
1969cat >config.log <<_ACEOF
1970This file contains any messages produced by compilers while
1971running configure, to aid debugging if configure makes a mistake.
1972
1973It was created by libXaw $as_me 1.0.16, which was
1974generated by GNU Autoconf 2.71.  Invocation command line was
1975
1976  $ $0$ac_configure_args_raw
1977
1978_ACEOF
1979exec 5>>config.log
1980{
1981cat <<_ASUNAME
1982## --------- ##
1983## Platform. ##
1984## --------- ##
1985
1986hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1987uname -m = `(uname -m) 2>/dev/null || echo unknown`
1988uname -r = `(uname -r) 2>/dev/null || echo unknown`
1989uname -s = `(uname -s) 2>/dev/null || echo unknown`
1990uname -v = `(uname -v) 2>/dev/null || echo unknown`
1991
1992/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1993/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1994
1995/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1996/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1997/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1998/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1999/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2000/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2001/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2002
2003_ASUNAME
2004
2005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2006for as_dir in $PATH
2007do
2008  IFS=$as_save_IFS
2009  case $as_dir in #(((
2010    '') as_dir=./ ;;
2011    */) ;;
2012    *) as_dir=$as_dir/ ;;
2013  esac
2014    printf "%s\n" "PATH: $as_dir"
2015  done
2016IFS=$as_save_IFS
2017
2018} >&5
2019
2020cat >&5 <<_ACEOF
2021
2022
2023## ----------- ##
2024## Core tests. ##
2025## ----------- ##
2026
2027_ACEOF
2028
2029
2030# Keep a trace of the command line.
2031# Strip out --no-create and --no-recursion so they do not pile up.
2032# Strip out --silent because we don't want to record it for future runs.
2033# Also quote any args containing shell meta-characters.
2034# Make two passes to allow for proper duplicate-argument suppression.
2035ac_configure_args=
2036ac_configure_args0=
2037ac_configure_args1=
2038ac_must_keep_next=false
2039for ac_pass in 1 2
2040do
2041  for ac_arg
2042  do
2043    case $ac_arg in
2044    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2045    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2046    | -silent | --silent | --silen | --sile | --sil)
2047      continue ;;
2048    *\'*)
2049      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2050    esac
2051    case $ac_pass in
2052    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2053    2)
2054      as_fn_append ac_configure_args1 " '$ac_arg'"
2055      if test $ac_must_keep_next = true; then
2056	ac_must_keep_next=false # Got value, back to normal.
2057      else
2058	case $ac_arg in
2059	  *=* | --config-cache | -C | -disable-* | --disable-* \
2060	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2061	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2062	  | -with-* | --with-* | -without-* | --without-* | --x)
2063	    case "$ac_configure_args0 " in
2064	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2065	    esac
2066	    ;;
2067	  -* ) ac_must_keep_next=true ;;
2068	esac
2069      fi
2070      as_fn_append ac_configure_args " '$ac_arg'"
2071      ;;
2072    esac
2073  done
2074done
2075{ ac_configure_args0=; unset ac_configure_args0;}
2076{ ac_configure_args1=; unset ac_configure_args1;}
2077
2078# When interrupted or exit'd, cleanup temporary files, and complete
2079# config.log.  We remove comments because anyway the quotes in there
2080# would cause problems or look ugly.
2081# WARNING: Use '\'' to represent an apostrophe within the trap.
2082# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2083trap 'exit_status=$?
2084  # Sanitize IFS.
2085  IFS=" ""	$as_nl"
2086  # Save into config.log some information that might help in debugging.
2087  {
2088    echo
2089
2090    printf "%s\n" "## ---------------- ##
2091## Cache variables. ##
2092## ---------------- ##"
2093    echo
2094    # The following way of writing the cache mishandles newlines in values,
2095(
2096  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2097    eval ac_val=\$$ac_var
2098    case $ac_val in #(
2099    *${as_nl}*)
2100      case $ac_var in #(
2101      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2102printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2103      esac
2104      case $ac_var in #(
2105      _ | IFS | as_nl) ;; #(
2106      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2107      *) { eval $ac_var=; unset $ac_var;} ;;
2108      esac ;;
2109    esac
2110  done
2111  (set) 2>&1 |
2112    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2113    *${as_nl}ac_space=\ *)
2114      sed -n \
2115	"s/'\''/'\''\\\\'\'''\''/g;
2116	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2117      ;; #(
2118    *)
2119      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2120      ;;
2121    esac |
2122    sort
2123)
2124    echo
2125
2126    printf "%s\n" "## ----------------- ##
2127## Output variables. ##
2128## ----------------- ##"
2129    echo
2130    for ac_var in $ac_subst_vars
2131    do
2132      eval ac_val=\$$ac_var
2133      case $ac_val in
2134      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2135      esac
2136      printf "%s\n" "$ac_var='\''$ac_val'\''"
2137    done | sort
2138    echo
2139
2140    if test -n "$ac_subst_files"; then
2141      printf "%s\n" "## ------------------- ##
2142## File substitutions. ##
2143## ------------------- ##"
2144      echo
2145      for ac_var in $ac_subst_files
2146      do
2147	eval ac_val=\$$ac_var
2148	case $ac_val in
2149	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2150	esac
2151	printf "%s\n" "$ac_var='\''$ac_val'\''"
2152      done | sort
2153      echo
2154    fi
2155
2156    if test -s confdefs.h; then
2157      printf "%s\n" "## ----------- ##
2158## confdefs.h. ##
2159## ----------- ##"
2160      echo
2161      cat confdefs.h
2162      echo
2163    fi
2164    test "$ac_signal" != 0 &&
2165      printf "%s\n" "$as_me: caught signal $ac_signal"
2166    printf "%s\n" "$as_me: exit $exit_status"
2167  } >&5
2168  rm -f core *.core core.conftest.* &&
2169    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2170    exit $exit_status
2171' 0
2172for ac_signal in 1 2 13 15; do
2173  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2174done
2175ac_signal=0
2176
2177# confdefs.h avoids OS command line length limits that DEFS can exceed.
2178rm -f -r conftest* confdefs.h
2179
2180printf "%s\n" "/* confdefs.h */" > confdefs.h
2181
2182# Predefined preprocessor variables.
2183
2184printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2185
2186printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2187
2188printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2189
2190printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2191
2192printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2193
2194printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2195
2196
2197# Let the site file select an alternate cache file if it wants to.
2198# Prefer an explicitly selected file to automatically selected ones.
2199if test -n "$CONFIG_SITE"; then
2200  ac_site_files="$CONFIG_SITE"
2201elif test "x$prefix" != xNONE; then
2202  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2203else
2204  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2205fi
2206
2207for ac_site_file in $ac_site_files
2208do
2209  case $ac_site_file in #(
2210  */*) :
2211     ;; #(
2212  *) :
2213    ac_site_file=./$ac_site_file ;;
2214esac
2215  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2216    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2217printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2218    sed 's/^/| /' "$ac_site_file" >&5
2219    . "$ac_site_file" \
2220      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2221printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2222as_fn_error $? "failed to load site script $ac_site_file
2223See \`config.log' for more details" "$LINENO" 5; }
2224  fi
2225done
2226
2227if test -r "$cache_file"; then
2228  # Some versions of bash will fail to source /dev/null (special files
2229  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2230  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2231    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2232printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2233    case $cache_file in
2234      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2235      *)                      . "./$cache_file";;
2236    esac
2237  fi
2238else
2239  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2240printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2241  >$cache_file
2242fi
2243
2244# Test code for whether the C compiler supports C89 (global declarations)
2245ac_c_conftest_c89_globals='
2246/* Does the compiler advertise C89 conformance?
2247   Do not test the value of __STDC__, because some compilers set it to 0
2248   while being otherwise adequately conformant. */
2249#if !defined __STDC__
2250# error "Compiler does not advertise C89 conformance"
2251#endif
2252
2253#include <stddef.h>
2254#include <stdarg.h>
2255struct stat;
2256/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2257struct buf { int x; };
2258struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2259static char *e (p, i)
2260     char **p;
2261     int i;
2262{
2263  return p[i];
2264}
2265static char *f (char * (*g) (char **, int), char **p, ...)
2266{
2267  char *s;
2268  va_list v;
2269  va_start (v,p);
2270  s = g (p, va_arg (v,int));
2271  va_end (v);
2272  return s;
2273}
2274
2275/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2276   function prototypes and stuff, but not \xHH hex character constants.
2277   These do not provoke an error unfortunately, instead are silently treated
2278   as an "x".  The following induces an error, until -std is added to get
2279   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2280   array size at least.  It is necessary to write \x00 == 0 to get something
2281   that is true only with -std.  */
2282int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2283
2284/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2285   inside strings and character constants.  */
2286#define FOO(x) '\''x'\''
2287int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2288
2289int test (int i, double x);
2290struct s1 {int (*f) (int a);};
2291struct s2 {int (*f) (double a);};
2292int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2293               int, int);'
2294
2295# Test code for whether the C compiler supports C89 (body of main).
2296ac_c_conftest_c89_main='
2297ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2298'
2299
2300# Test code for whether the C compiler supports C99 (global declarations)
2301ac_c_conftest_c99_globals='
2302// Does the compiler advertise C99 conformance?
2303#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2304# error "Compiler does not advertise C99 conformance"
2305#endif
2306
2307#include <stdbool.h>
2308extern int puts (const char *);
2309extern int printf (const char *, ...);
2310extern int dprintf (int, const char *, ...);
2311extern void *malloc (size_t);
2312
2313// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2314// dprintf is used instead of fprintf to avoid needing to declare
2315// FILE and stderr.
2316#define debug(...) dprintf (2, __VA_ARGS__)
2317#define showlist(...) puts (#__VA_ARGS__)
2318#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2319static void
2320test_varargs_macros (void)
2321{
2322  int x = 1234;
2323  int y = 5678;
2324  debug ("Flag");
2325  debug ("X = %d\n", x);
2326  showlist (The first, second, and third items.);
2327  report (x>y, "x is %d but y is %d", x, y);
2328}
2329
2330// Check long long types.
2331#define BIG64 18446744073709551615ull
2332#define BIG32 4294967295ul
2333#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2334#if !BIG_OK
2335  #error "your preprocessor is broken"
2336#endif
2337#if BIG_OK
2338#else
2339  #error "your preprocessor is broken"
2340#endif
2341static long long int bignum = -9223372036854775807LL;
2342static unsigned long long int ubignum = BIG64;
2343
2344struct incomplete_array
2345{
2346  int datasize;
2347  double data[];
2348};
2349
2350struct named_init {
2351  int number;
2352  const wchar_t *name;
2353  double average;
2354};
2355
2356typedef const char *ccp;
2357
2358static inline int
2359test_restrict (ccp restrict text)
2360{
2361  // See if C++-style comments work.
2362  // Iterate through items via the restricted pointer.
2363  // Also check for declarations in for loops.
2364  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2365    continue;
2366  return 0;
2367}
2368
2369// Check varargs and va_copy.
2370static bool
2371test_varargs (const char *format, ...)
2372{
2373  va_list args;
2374  va_start (args, format);
2375  va_list args_copy;
2376  va_copy (args_copy, args);
2377
2378  const char *str = "";
2379  int number = 0;
2380  float fnumber = 0;
2381
2382  while (*format)
2383    {
2384      switch (*format++)
2385	{
2386	case '\''s'\'': // string
2387	  str = va_arg (args_copy, const char *);
2388	  break;
2389	case '\''d'\'': // int
2390	  number = va_arg (args_copy, int);
2391	  break;
2392	case '\''f'\'': // float
2393	  fnumber = va_arg (args_copy, double);
2394	  break;
2395	default:
2396	  break;
2397	}
2398    }
2399  va_end (args_copy);
2400  va_end (args);
2401
2402  return *str && number && fnumber;
2403}
2404'
2405
2406# Test code for whether the C compiler supports C99 (body of main).
2407ac_c_conftest_c99_main='
2408  // Check bool.
2409  _Bool success = false;
2410  success |= (argc != 0);
2411
2412  // Check restrict.
2413  if (test_restrict ("String literal") == 0)
2414    success = true;
2415  char *restrict newvar = "Another string";
2416
2417  // Check varargs.
2418  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2419  test_varargs_macros ();
2420
2421  // Check flexible array members.
2422  struct incomplete_array *ia =
2423    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2424  ia->datasize = 10;
2425  for (int i = 0; i < ia->datasize; ++i)
2426    ia->data[i] = i * 1.234;
2427
2428  // Check named initializers.
2429  struct named_init ni = {
2430    .number = 34,
2431    .name = L"Test wide string",
2432    .average = 543.34343,
2433  };
2434
2435  ni.number = 58;
2436
2437  int dynamic_array[ni.number];
2438  dynamic_array[0] = argv[0][0];
2439  dynamic_array[ni.number - 1] = 543;
2440
2441  // work around unused variable warnings
2442  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2443	 || dynamic_array[ni.number - 1] != 543);
2444'
2445
2446# Test code for whether the C compiler supports C11 (global declarations)
2447ac_c_conftest_c11_globals='
2448// Does the compiler advertise C11 conformance?
2449#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2450# error "Compiler does not advertise C11 conformance"
2451#endif
2452
2453// Check _Alignas.
2454char _Alignas (double) aligned_as_double;
2455char _Alignas (0) no_special_alignment;
2456extern char aligned_as_int;
2457char _Alignas (0) _Alignas (int) aligned_as_int;
2458
2459// Check _Alignof.
2460enum
2461{
2462  int_alignment = _Alignof (int),
2463  int_array_alignment = _Alignof (int[100]),
2464  char_alignment = _Alignof (char)
2465};
2466_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2467
2468// Check _Noreturn.
2469int _Noreturn does_not_return (void) { for (;;) continue; }
2470
2471// Check _Static_assert.
2472struct test_static_assert
2473{
2474  int x;
2475  _Static_assert (sizeof (int) <= sizeof (long int),
2476                  "_Static_assert does not work in struct");
2477  long int y;
2478};
2479
2480// Check UTF-8 literals.
2481#define u8 syntax error!
2482char const utf8_literal[] = u8"happens to be ASCII" "another string";
2483
2484// Check duplicate typedefs.
2485typedef long *long_ptr;
2486typedef long int *long_ptr;
2487typedef long_ptr long_ptr;
2488
2489// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2490struct anonymous
2491{
2492  union {
2493    struct { int i; int j; };
2494    struct { int k; long int l; } w;
2495  };
2496  int m;
2497} v1;
2498'
2499
2500# Test code for whether the C compiler supports C11 (body of main).
2501ac_c_conftest_c11_main='
2502  _Static_assert ((offsetof (struct anonymous, i)
2503		   == offsetof (struct anonymous, w.k)),
2504		  "Anonymous union alignment botch");
2505  v1.i = 2;
2506  v1.w.k = 5;
2507  ok |= v1.i != 5;
2508'
2509
2510# Test code for whether the C compiler supports C11 (complete).
2511ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2512${ac_c_conftest_c99_globals}
2513${ac_c_conftest_c11_globals}
2514
2515int
2516main (int argc, char **argv)
2517{
2518  int ok = 0;
2519  ${ac_c_conftest_c89_main}
2520  ${ac_c_conftest_c99_main}
2521  ${ac_c_conftest_c11_main}
2522  return ok;
2523}
2524"
2525
2526# Test code for whether the C compiler supports C99 (complete).
2527ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2528${ac_c_conftest_c99_globals}
2529
2530int
2531main (int argc, char **argv)
2532{
2533  int ok = 0;
2534  ${ac_c_conftest_c89_main}
2535  ${ac_c_conftest_c99_main}
2536  return ok;
2537}
2538"
2539
2540# Test code for whether the C compiler supports C89 (complete).
2541ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2542
2543int
2544main (int argc, char **argv)
2545{
2546  int ok = 0;
2547  ${ac_c_conftest_c89_main}
2548  return ok;
2549}
2550"
2551
2552as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2553as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2554as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2555as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2556as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2557as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2558as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2559as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2560as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2561
2562# Auxiliary files required by this configure script.
2563ac_aux_files="compile config.guess config.sub ltmain.sh missing install-sh"
2564
2565# Locations in which to look for auxiliary files.
2566ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2567
2568# Search for a directory containing all of the required auxiliary files,
2569# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2570# If we don't find one directory that contains all the files we need,
2571# we report the set of missing files from the *first* directory in
2572# $ac_aux_dir_candidates and give up.
2573ac_missing_aux_files=""
2574ac_first_candidate=:
2575printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2577as_found=false
2578for as_dir in $ac_aux_dir_candidates
2579do
2580  IFS=$as_save_IFS
2581  case $as_dir in #(((
2582    '') as_dir=./ ;;
2583    */) ;;
2584    *) as_dir=$as_dir/ ;;
2585  esac
2586  as_found=:
2587
2588  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2589  ac_aux_dir_found=yes
2590  ac_install_sh=
2591  for ac_aux in $ac_aux_files
2592  do
2593    # As a special case, if "install-sh" is required, that requirement
2594    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2595    # and $ac_install_sh is set appropriately for whichever one is found.
2596    if test x"$ac_aux" = x"install-sh"
2597    then
2598      if test -f "${as_dir}install-sh"; then
2599        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2600        ac_install_sh="${as_dir}install-sh -c"
2601      elif test -f "${as_dir}install.sh"; then
2602        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2603        ac_install_sh="${as_dir}install.sh -c"
2604      elif test -f "${as_dir}shtool"; then
2605        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2606        ac_install_sh="${as_dir}shtool install -c"
2607      else
2608        ac_aux_dir_found=no
2609        if $ac_first_candidate; then
2610          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2611        else
2612          break
2613        fi
2614      fi
2615    else
2616      if test -f "${as_dir}${ac_aux}"; then
2617        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2618      else
2619        ac_aux_dir_found=no
2620        if $ac_first_candidate; then
2621          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2622        else
2623          break
2624        fi
2625      fi
2626    fi
2627  done
2628  if test "$ac_aux_dir_found" = yes; then
2629    ac_aux_dir="$as_dir"
2630    break
2631  fi
2632  ac_first_candidate=false
2633
2634  as_found=false
2635done
2636IFS=$as_save_IFS
2637if $as_found
2638then :
2639
2640else $as_nop
2641  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2642fi
2643
2644
2645# These three variables are undocumented and unsupported,
2646# and are intended to be withdrawn in a future Autoconf release.
2647# They can cause serious problems if a builder's source tree is in a directory
2648# whose full name contains unusual characters.
2649if test -f "${ac_aux_dir}config.guess"; then
2650  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2651fi
2652if test -f "${ac_aux_dir}config.sub"; then
2653  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2654fi
2655if test -f "$ac_aux_dir/configure"; then
2656  ac_configure="$SHELL ${ac_aux_dir}configure"
2657fi
2658
2659# Check that the precious variables saved in the cache have kept the same
2660# value.
2661ac_cache_corrupted=false
2662for ac_var in $ac_precious_vars; do
2663  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2664  eval ac_new_set=\$ac_env_${ac_var}_set
2665  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2666  eval ac_new_val=\$ac_env_${ac_var}_value
2667  case $ac_old_set,$ac_new_set in
2668    set,)
2669      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2670printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2671      ac_cache_corrupted=: ;;
2672    ,set)
2673      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2674printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2675      ac_cache_corrupted=: ;;
2676    ,);;
2677    *)
2678      if test "x$ac_old_val" != "x$ac_new_val"; then
2679	# differences in whitespace do not lead to failure.
2680	ac_old_val_w=`echo x $ac_old_val`
2681	ac_new_val_w=`echo x $ac_new_val`
2682	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2683	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2684printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2685	  ac_cache_corrupted=:
2686	else
2687	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2688printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2689	  eval $ac_var=\$ac_old_val
2690	fi
2691	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2692printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
2693	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2694printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
2695      fi;;
2696  esac
2697  # Pass precious variables to config.status.
2698  if test "$ac_new_set" = set; then
2699    case $ac_new_val in
2700    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2701    *) ac_arg=$ac_var=$ac_new_val ;;
2702    esac
2703    case " $ac_configure_args " in
2704      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2705      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2706    esac
2707  fi
2708done
2709if $ac_cache_corrupted; then
2710  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2711printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2712  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2713printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2714  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2715	    and start over" "$LINENO" 5
2716fi
2717## -------------------- ##
2718## Main body of script. ##
2719## -------------------- ##
2720
2721ac_ext=c
2722ac_cpp='$CPP $CPPFLAGS'
2723ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2724ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2725ac_compiler_gnu=$ac_cv_c_compiler_gnu
2726
2727
2728
2729ac_config_headers="$ac_config_headers config.h"
2730
2731
2732
2733# Initialize Automake
2734am__api_version='1.16'
2735
2736
2737
2738  # Find a good install program.  We prefer a C program (faster),
2739# so one script is as good as another.  But avoid the broken or
2740# incompatible versions:
2741# SysV /etc/install, /usr/sbin/install
2742# SunOS /usr/etc/install
2743# IRIX /sbin/install
2744# AIX /bin/install
2745# AmigaOS /C/install, which installs bootblocks on floppy discs
2746# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2747# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2748# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2749# OS/2's system install, which has a completely different semantic
2750# ./install, which can be erroneously created by make from ./install.sh.
2751# Reject install programs that cannot install multiple files.
2752{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2753printf %s "checking for a BSD-compatible install... " >&6; }
2754if test -z "$INSTALL"; then
2755if test ${ac_cv_path_install+y}
2756then :
2757  printf %s "(cached) " >&6
2758else $as_nop
2759  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2760for as_dir in $PATH
2761do
2762  IFS=$as_save_IFS
2763  case $as_dir in #(((
2764    '') as_dir=./ ;;
2765    */) ;;
2766    *) as_dir=$as_dir/ ;;
2767  esac
2768    # Account for fact that we put trailing slashes in our PATH walk.
2769case $as_dir in #((
2770  ./ | /[cC]/* | \
2771  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2772  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2773  /usr/ucb/* ) ;;
2774  *)
2775    # OSF1 and SCO ODT 3.0 have their own names for install.
2776    # Don't use installbsd from OSF since it installs stuff as root
2777    # by default.
2778    for ac_prog in ginstall scoinst install; do
2779      for ac_exec_ext in '' $ac_executable_extensions; do
2780	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2781	  if test $ac_prog = install &&
2782	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2783	    # AIX install.  It has an incompatible calling convention.
2784	    :
2785	  elif test $ac_prog = install &&
2786	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2787	    # program-specific install script used by HP pwplus--don't use.
2788	    :
2789	  else
2790	    rm -rf conftest.one conftest.two conftest.dir
2791	    echo one > conftest.one
2792	    echo two > conftest.two
2793	    mkdir conftest.dir
2794	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2795	      test -s conftest.one && test -s conftest.two &&
2796	      test -s conftest.dir/conftest.one &&
2797	      test -s conftest.dir/conftest.two
2798	    then
2799	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2800	      break 3
2801	    fi
2802	  fi
2803	fi
2804      done
2805    done
2806    ;;
2807esac
2808
2809  done
2810IFS=$as_save_IFS
2811
2812rm -rf conftest.one conftest.two conftest.dir
2813
2814fi
2815  if test ${ac_cv_path_install+y}; then
2816    INSTALL=$ac_cv_path_install
2817  else
2818    # As a last resort, use the slow shell script.  Don't cache a
2819    # value for INSTALL within a source directory, because that will
2820    # break other packages using the cache if that directory is
2821    # removed, or if the value is a relative name.
2822    INSTALL=$ac_install_sh
2823  fi
2824fi
2825{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2826printf "%s\n" "$INSTALL" >&6; }
2827
2828# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2829# It thinks the first close brace ends the variable substitution.
2830test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2831
2832test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2833
2834test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2835
2836{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2837printf %s "checking whether build environment is sane... " >&6; }
2838# Reject unsafe characters in $srcdir or the absolute working directory
2839# name.  Accept space and tab only in the latter.
2840am_lf='
2841'
2842case `pwd` in
2843  *[\\\"\#\$\&\'\`$am_lf]*)
2844    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2845esac
2846case $srcdir in
2847  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2848    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2849esac
2850
2851# Do 'set' in a subshell so we don't clobber the current shell's
2852# arguments.  Must try -L first in case configure is actually a
2853# symlink; some systems play weird games with the mod time of symlinks
2854# (eg FreeBSD returns the mod time of the symlink's containing
2855# directory).
2856if (
2857   am_has_slept=no
2858   for am_try in 1 2; do
2859     echo "timestamp, slept: $am_has_slept" > conftest.file
2860     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2861     if test "$*" = "X"; then
2862	# -L didn't work.
2863	set X `ls -t "$srcdir/configure" conftest.file`
2864     fi
2865     if test "$*" != "X $srcdir/configure conftest.file" \
2866	&& test "$*" != "X conftest.file $srcdir/configure"; then
2867
2868	# If neither matched, then we have a broken ls.  This can happen
2869	# if, for instance, CONFIG_SHELL is bash and it inherits a
2870	# broken ls alias from the environment.  This has actually
2871	# happened.  Such a system could not be considered "sane".
2872	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2873  alias in your environment" "$LINENO" 5
2874     fi
2875     if test "$2" = conftest.file || test $am_try -eq 2; then
2876       break
2877     fi
2878     # Just in case.
2879     sleep 1
2880     am_has_slept=yes
2881   done
2882   test "$2" = conftest.file
2883   )
2884then
2885   # Ok.
2886   :
2887else
2888   as_fn_error $? "newly created file is older than distributed files!
2889Check your system clock" "$LINENO" 5
2890fi
2891{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2892printf "%s\n" "yes" >&6; }
2893# If we didn't sleep, we still need to ensure time stamps of config.status and
2894# generated files are strictly newer.
2895am_sleep_pid=
2896if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2897  ( sleep 1 ) &
2898  am_sleep_pid=$!
2899fi
2900
2901rm -f conftest.file
2902
2903test "$program_prefix" != NONE &&
2904  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2905# Use a double $ so make ignores it.
2906test "$program_suffix" != NONE &&
2907  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2908# Double any \ or $.
2909# By default was `s,x,x', remove it if useless.
2910ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2911program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2912
2913
2914# Expand $ac_aux_dir to an absolute path.
2915am_aux_dir=`cd "$ac_aux_dir" && pwd`
2916
2917
2918  if test x"${MISSING+set}" != xset; then
2919  MISSING="\${SHELL} '$am_aux_dir/missing'"
2920fi
2921# Use eval to expand $SHELL
2922if eval "$MISSING --is-lightweight"; then
2923  am_missing_run="$MISSING "
2924else
2925  am_missing_run=
2926  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2927printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2928fi
2929
2930if test x"${install_sh+set}" != xset; then
2931  case $am_aux_dir in
2932  *\ * | *\	*)
2933    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2934  *)
2935    install_sh="\${SHELL} $am_aux_dir/install-sh"
2936  esac
2937fi
2938
2939# Installed binaries are usually stripped using 'strip' when the user
2940# run "make install-strip".  However 'strip' might not be the right
2941# tool to use in cross-compilation environments, therefore Automake
2942# will honor the 'STRIP' environment variable to overrule this program.
2943if test "$cross_compiling" != no; then
2944  if test -n "$ac_tool_prefix"; then
2945  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2946set dummy ${ac_tool_prefix}strip; ac_word=$2
2947{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2948printf %s "checking for $ac_word... " >&6; }
2949if test ${ac_cv_prog_STRIP+y}
2950then :
2951  printf %s "(cached) " >&6
2952else $as_nop
2953  if test -n "$STRIP"; then
2954  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2955else
2956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2957for as_dir in $PATH
2958do
2959  IFS=$as_save_IFS
2960  case $as_dir in #(((
2961    '') as_dir=./ ;;
2962    */) ;;
2963    *) as_dir=$as_dir/ ;;
2964  esac
2965    for ac_exec_ext in '' $ac_executable_extensions; do
2966  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2967    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2968    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2969    break 2
2970  fi
2971done
2972  done
2973IFS=$as_save_IFS
2974
2975fi
2976fi
2977STRIP=$ac_cv_prog_STRIP
2978if test -n "$STRIP"; then
2979  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2980printf "%s\n" "$STRIP" >&6; }
2981else
2982  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2983printf "%s\n" "no" >&6; }
2984fi
2985
2986
2987fi
2988if test -z "$ac_cv_prog_STRIP"; then
2989  ac_ct_STRIP=$STRIP
2990  # Extract the first word of "strip", so it can be a program name with args.
2991set dummy strip; ac_word=$2
2992{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2993printf %s "checking for $ac_word... " >&6; }
2994if test ${ac_cv_prog_ac_ct_STRIP+y}
2995then :
2996  printf %s "(cached) " >&6
2997else $as_nop
2998  if test -n "$ac_ct_STRIP"; then
2999  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3000else
3001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3002for as_dir in $PATH
3003do
3004  IFS=$as_save_IFS
3005  case $as_dir in #(((
3006    '') as_dir=./ ;;
3007    */) ;;
3008    *) as_dir=$as_dir/ ;;
3009  esac
3010    for ac_exec_ext in '' $ac_executable_extensions; do
3011  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3012    ac_cv_prog_ac_ct_STRIP="strip"
3013    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3014    break 2
3015  fi
3016done
3017  done
3018IFS=$as_save_IFS
3019
3020fi
3021fi
3022ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3023if test -n "$ac_ct_STRIP"; then
3024  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3025printf "%s\n" "$ac_ct_STRIP" >&6; }
3026else
3027  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3028printf "%s\n" "no" >&6; }
3029fi
3030
3031  if test "x$ac_ct_STRIP" = x; then
3032    STRIP=":"
3033  else
3034    case $cross_compiling:$ac_tool_warned in
3035yes:)
3036{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3037printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3038ac_tool_warned=yes ;;
3039esac
3040    STRIP=$ac_ct_STRIP
3041  fi
3042else
3043  STRIP="$ac_cv_prog_STRIP"
3044fi
3045
3046fi
3047INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3048
3049
3050  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3051printf %s "checking for a race-free mkdir -p... " >&6; }
3052if test -z "$MKDIR_P"; then
3053  if test ${ac_cv_path_mkdir+y}
3054then :
3055  printf %s "(cached) " >&6
3056else $as_nop
3057  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3058for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3059do
3060  IFS=$as_save_IFS
3061  case $as_dir in #(((
3062    '') as_dir=./ ;;
3063    */) ;;
3064    *) as_dir=$as_dir/ ;;
3065  esac
3066    for ac_prog in mkdir gmkdir; do
3067	 for ac_exec_ext in '' $ac_executable_extensions; do
3068	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3069	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3070	     'mkdir ('*'coreutils) '* | \
3071	     'BusyBox '* | \
3072	     'mkdir (fileutils) '4.1*)
3073	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3074	       break 3;;
3075	   esac
3076	 done
3077       done
3078  done
3079IFS=$as_save_IFS
3080
3081fi
3082
3083  test -d ./--version && rmdir ./--version
3084  if test ${ac_cv_path_mkdir+y}; then
3085    MKDIR_P="$ac_cv_path_mkdir -p"
3086  else
3087    # As a last resort, use the slow shell script.  Don't cache a
3088    # value for MKDIR_P within a source directory, because that will
3089    # break other packages using the cache if that directory is
3090    # removed, or if the value is a relative name.
3091    MKDIR_P="$ac_install_sh -d"
3092  fi
3093fi
3094{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3095printf "%s\n" "$MKDIR_P" >&6; }
3096
3097for ac_prog in gawk mawk nawk awk
3098do
3099  # Extract the first word of "$ac_prog", so it can be a program name with args.
3100set dummy $ac_prog; ac_word=$2
3101{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3102printf %s "checking for $ac_word... " >&6; }
3103if test ${ac_cv_prog_AWK+y}
3104then :
3105  printf %s "(cached) " >&6
3106else $as_nop
3107  if test -n "$AWK"; then
3108  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3109else
3110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3111for as_dir in $PATH
3112do
3113  IFS=$as_save_IFS
3114  case $as_dir in #(((
3115    '') as_dir=./ ;;
3116    */) ;;
3117    *) as_dir=$as_dir/ ;;
3118  esac
3119    for ac_exec_ext in '' $ac_executable_extensions; do
3120  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3121    ac_cv_prog_AWK="$ac_prog"
3122    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3123    break 2
3124  fi
3125done
3126  done
3127IFS=$as_save_IFS
3128
3129fi
3130fi
3131AWK=$ac_cv_prog_AWK
3132if test -n "$AWK"; then
3133  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3134printf "%s\n" "$AWK" >&6; }
3135else
3136  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3137printf "%s\n" "no" >&6; }
3138fi
3139
3140
3141  test -n "$AWK" && break
3142done
3143
3144{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3145printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3146set x ${MAKE-make}
3147ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3148if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3149then :
3150  printf %s "(cached) " >&6
3151else $as_nop
3152  cat >conftest.make <<\_ACEOF
3153SHELL = /bin/sh
3154all:
3155	@echo '@@@%%%=$(MAKE)=@@@%%%'
3156_ACEOF
3157# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3158case `${MAKE-make} -f conftest.make 2>/dev/null` in
3159  *@@@%%%=?*=@@@%%%*)
3160    eval ac_cv_prog_make_${ac_make}_set=yes;;
3161  *)
3162    eval ac_cv_prog_make_${ac_make}_set=no;;
3163esac
3164rm -f conftest.make
3165fi
3166if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3167  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3168printf "%s\n" "yes" >&6; }
3169  SET_MAKE=
3170else
3171  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3172printf "%s\n" "no" >&6; }
3173  SET_MAKE="MAKE=${MAKE-make}"
3174fi
3175
3176rm -rf .tst 2>/dev/null
3177mkdir .tst 2>/dev/null
3178if test -d .tst; then
3179  am__leading_dot=.
3180else
3181  am__leading_dot=_
3182fi
3183rmdir .tst 2>/dev/null
3184
3185# Check whether --enable-silent-rules was given.
3186if test ${enable_silent_rules+y}
3187then :
3188  enableval=$enable_silent_rules;
3189fi
3190
3191case $enable_silent_rules in # (((
3192  yes) AM_DEFAULT_VERBOSITY=0;;
3193   no) AM_DEFAULT_VERBOSITY=1;;
3194    *) AM_DEFAULT_VERBOSITY=1;;
3195esac
3196am_make=${MAKE-make}
3197{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3198printf %s "checking whether $am_make supports nested variables... " >&6; }
3199if test ${am_cv_make_support_nested_variables+y}
3200then :
3201  printf %s "(cached) " >&6
3202else $as_nop
3203  if printf "%s\n" 'TRUE=$(BAR$(V))
3204BAR0=false
3205BAR1=true
3206V=1
3207am__doit:
3208	@$(TRUE)
3209.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3210  am_cv_make_support_nested_variables=yes
3211else
3212  am_cv_make_support_nested_variables=no
3213fi
3214fi
3215{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3216printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3217if test $am_cv_make_support_nested_variables = yes; then
3218    AM_V='$(V)'
3219  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3220else
3221  AM_V=$AM_DEFAULT_VERBOSITY
3222  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3223fi
3224AM_BACKSLASH='\'
3225
3226if test "`cd $srcdir && pwd`" != "`pwd`"; then
3227  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3228  # is not polluted with repeated "-I."
3229  am__isrc=' -I$(srcdir)'
3230  # test to see if srcdir already configured
3231  if test -f $srcdir/config.status; then
3232    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3233  fi
3234fi
3235
3236# test whether we have cygpath
3237if test -z "$CYGPATH_W"; then
3238  if (cygpath --version) >/dev/null 2>/dev/null; then
3239    CYGPATH_W='cygpath -w'
3240  else
3241    CYGPATH_W=echo
3242  fi
3243fi
3244
3245
3246# Define the identity of the package.
3247 PACKAGE='libXaw'
3248 VERSION='1.0.16'
3249
3250
3251printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3252
3253
3254printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3255
3256# Some tools Automake needs.
3257
3258ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3259
3260
3261AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3262
3263
3264AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3265
3266
3267AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3268
3269
3270MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3271
3272# For better backward compatibility.  To be removed once Automake 1.9.x
3273# dies out for good.  For more background, see:
3274# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3275# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3276mkdir_p='$(MKDIR_P)'
3277
3278# We need awk for the "check" target (and possibly the TAP driver).  The
3279# system "awk" is bad on some platforms.
3280# Always define AMTAR for backward compatibility.  Yes, it's still used
3281# in the wild :-(  We should find a proper way to deprecate it ...
3282AMTAR='$${TAR-tar}'
3283
3284
3285# We'll loop over all known methods to create a tar archive until one works.
3286_am_tools='gnutar  pax cpio none'
3287
3288am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3289
3290
3291
3292
3293
3294# Variables for tags utilities; see am/tags.am
3295if test -z "$CTAGS"; then
3296  CTAGS=ctags
3297fi
3298
3299if test -z "$ETAGS"; then
3300  ETAGS=etags
3301fi
3302
3303if test -z "$CSCOPE"; then
3304  CSCOPE=cscope
3305fi
3306
3307
3308
3309# POSIX will say in a future version that running "rm -f" with no argument
3310# is OK; and we want to be able to make that assumption in our Makefile
3311# recipes.  So use an aggressive probe to check that the usage we want is
3312# actually supported "in the wild" to an acceptable degree.
3313# See automake bug#10828.
3314# To make any issue more visible, cause the running configure to be aborted
3315# by default if the 'rm' program in use doesn't match our expectations; the
3316# user can still override this though.
3317if rm -f && rm -fr && rm -rf; then : OK; else
3318  cat >&2 <<'END'
3319Oops!
3320
3321Your 'rm' program seems unable to run without file operands specified
3322on the command line, even when the '-f' option is present.  This is contrary
3323to the behaviour of most rm programs out there, and not conforming with
3324the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3325
3326Please tell bug-automake@gnu.org about your system, including the value
3327of your $PATH and any error possibly output before this message.  This
3328can help us improve future automake versions.
3329
3330END
3331  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3332    echo 'Configuration will proceed anyway, since you have set the' >&2
3333    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3334    echo >&2
3335  else
3336    cat >&2 <<'END'
3337Aborting the configuration process, to ensure you take notice of the issue.
3338
3339You can download and install GNU coreutils to get an 'rm' implementation
3340that behaves properly: <https://www.gnu.org/software/coreutils/>.
3341
3342If you want to complete the configuration process using your problematic
3343'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3344to "yes", and re-run configure.
3345
3346END
3347    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3348  fi
3349fi
3350
3351
3352# Initialize libtool
3353case `pwd` in
3354  *\ * | *\	*)
3355    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3356printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3357esac
3358
3359
3360
3361macro_version='2.4.7'
3362macro_revision='2.4.7'
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377ltmain=$ac_aux_dir/ltmain.sh
3378
3379
3380
3381  # Make sure we can run config.sub.
3382$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3383  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3384
3385{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3386printf %s "checking build system type... " >&6; }
3387if test ${ac_cv_build+y}
3388then :
3389  printf %s "(cached) " >&6
3390else $as_nop
3391  ac_build_alias=$build_alias
3392test "x$ac_build_alias" = x &&
3393  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3394test "x$ac_build_alias" = x &&
3395  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3396ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3397  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3398
3399fi
3400{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3401printf "%s\n" "$ac_cv_build" >&6; }
3402case $ac_cv_build in
3403*-*-*) ;;
3404*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3405esac
3406build=$ac_cv_build
3407ac_save_IFS=$IFS; IFS='-'
3408set x $ac_cv_build
3409shift
3410build_cpu=$1
3411build_vendor=$2
3412shift; shift
3413# Remember, the first character of IFS is used to create $*,
3414# except with old shells:
3415build_os=$*
3416IFS=$ac_save_IFS
3417case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3418
3419
3420{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3421printf %s "checking host system type... " >&6; }
3422if test ${ac_cv_host+y}
3423then :
3424  printf %s "(cached) " >&6
3425else $as_nop
3426  if test "x$host_alias" = x; then
3427  ac_cv_host=$ac_cv_build
3428else
3429  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3430    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3431fi
3432
3433fi
3434{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3435printf "%s\n" "$ac_cv_host" >&6; }
3436case $ac_cv_host in
3437*-*-*) ;;
3438*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3439esac
3440host=$ac_cv_host
3441ac_save_IFS=$IFS; IFS='-'
3442set x $ac_cv_host
3443shift
3444host_cpu=$1
3445host_vendor=$2
3446shift; shift
3447# Remember, the first character of IFS is used to create $*,
3448# except with old shells:
3449host_os=$*
3450IFS=$ac_save_IFS
3451case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3452
3453
3454# Backslashify metacharacters that are still active within
3455# double-quoted strings.
3456sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3457
3458# Same as above, but do not quote variable references.
3459double_quote_subst='s/\(["`\\]\)/\\\1/g'
3460
3461# Sed substitution to delay expansion of an escaped shell variable in a
3462# double_quote_subst'ed string.
3463delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3464
3465# Sed substitution to delay expansion of an escaped single quote.
3466delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3467
3468# Sed substitution to avoid accidental globbing in evaled expressions
3469no_glob_subst='s/\*/\\\*/g'
3470
3471ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3472ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3473ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3474
3475{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3476printf %s "checking how to print strings... " >&6; }
3477# Test print first, because it will be a builtin if present.
3478if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3479   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3480  ECHO='print -r --'
3481elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3482  ECHO='printf %s\n'
3483else
3484  # Use this function as a fallback that always works.
3485  func_fallback_echo ()
3486  {
3487    eval 'cat <<_LTECHO_EOF
3488$1
3489_LTECHO_EOF'
3490  }
3491  ECHO='func_fallback_echo'
3492fi
3493
3494# func_echo_all arg...
3495# Invoke $ECHO with all args, space-separated.
3496func_echo_all ()
3497{
3498    $ECHO ""
3499}
3500
3501case $ECHO in
3502  printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3503printf "%s\n" "printf" >&6; } ;;
3504  print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3505printf "%s\n" "print -r" >&6; } ;;
3506  *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3507printf "%s\n" "cat" >&6; } ;;
3508esac
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532DEPDIR="${am__leading_dot}deps"
3533
3534ac_config_commands="$ac_config_commands depfiles"
3535
3536{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3537printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3538cat > confinc.mk << 'END'
3539am__doit:
3540	@echo this is the am__doit target >confinc.out
3541.PHONY: am__doit
3542END
3543am__include="#"
3544am__quote=
3545# BSD make does it like this.
3546echo '.include "confinc.mk" # ignored' > confmf.BSD
3547# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3548echo 'include confinc.mk # ignored' > confmf.GNU
3549_am_result=no
3550for s in GNU BSD; do
3551  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3552   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3553   ac_status=$?
3554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3555   (exit $ac_status); }
3556  case $?:`cat confinc.out 2>/dev/null` in #(
3557  '0:this is the am__doit target') :
3558    case $s in #(
3559  BSD) :
3560    am__include='.include' am__quote='"' ;; #(
3561  *) :
3562    am__include='include' am__quote='' ;;
3563esac ;; #(
3564  *) :
3565     ;;
3566esac
3567  if test "$am__include" != "#"; then
3568    _am_result="yes ($s style)"
3569    break
3570  fi
3571done
3572rm -f confinc.* confmf.*
3573{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3574printf "%s\n" "${_am_result}" >&6; }
3575
3576# Check whether --enable-dependency-tracking was given.
3577if test ${enable_dependency_tracking+y}
3578then :
3579  enableval=$enable_dependency_tracking;
3580fi
3581
3582if test "x$enable_dependency_tracking" != xno; then
3583  am_depcomp="$ac_aux_dir/depcomp"
3584  AMDEPBACKSLASH='\'
3585  am__nodep='_no'
3586fi
3587 if test "x$enable_dependency_tracking" != xno; then
3588  AMDEP_TRUE=
3589  AMDEP_FALSE='#'
3590else
3591  AMDEP_TRUE='#'
3592  AMDEP_FALSE=
3593fi
3594
3595
3596ac_ext=c
3597ac_cpp='$CPP $CPPFLAGS'
3598ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3599ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3600ac_compiler_gnu=$ac_cv_c_compiler_gnu
3601if test -n "$ac_tool_prefix"; then
3602  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3603set dummy ${ac_tool_prefix}gcc; ac_word=$2
3604{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3605printf %s "checking for $ac_word... " >&6; }
3606if test ${ac_cv_prog_CC+y}
3607then :
3608  printf %s "(cached) " >&6
3609else $as_nop
3610  if test -n "$CC"; then
3611  ac_cv_prog_CC="$CC" # Let the user override the test.
3612else
3613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3614for as_dir in $PATH
3615do
3616  IFS=$as_save_IFS
3617  case $as_dir in #(((
3618    '') as_dir=./ ;;
3619    */) ;;
3620    *) as_dir=$as_dir/ ;;
3621  esac
3622    for ac_exec_ext in '' $ac_executable_extensions; do
3623  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3624    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3625    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3626    break 2
3627  fi
3628done
3629  done
3630IFS=$as_save_IFS
3631
3632fi
3633fi
3634CC=$ac_cv_prog_CC
3635if test -n "$CC"; then
3636  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3637printf "%s\n" "$CC" >&6; }
3638else
3639  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3640printf "%s\n" "no" >&6; }
3641fi
3642
3643
3644fi
3645if test -z "$ac_cv_prog_CC"; then
3646  ac_ct_CC=$CC
3647  # Extract the first word of "gcc", so it can be a program name with args.
3648set dummy gcc; ac_word=$2
3649{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3650printf %s "checking for $ac_word... " >&6; }
3651if test ${ac_cv_prog_ac_ct_CC+y}
3652then :
3653  printf %s "(cached) " >&6
3654else $as_nop
3655  if test -n "$ac_ct_CC"; then
3656  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3657else
3658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3659for as_dir in $PATH
3660do
3661  IFS=$as_save_IFS
3662  case $as_dir in #(((
3663    '') as_dir=./ ;;
3664    */) ;;
3665    *) as_dir=$as_dir/ ;;
3666  esac
3667    for ac_exec_ext in '' $ac_executable_extensions; do
3668  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3669    ac_cv_prog_ac_ct_CC="gcc"
3670    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3671    break 2
3672  fi
3673done
3674  done
3675IFS=$as_save_IFS
3676
3677fi
3678fi
3679ac_ct_CC=$ac_cv_prog_ac_ct_CC
3680if test -n "$ac_ct_CC"; then
3681  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3682printf "%s\n" "$ac_ct_CC" >&6; }
3683else
3684  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3685printf "%s\n" "no" >&6; }
3686fi
3687
3688  if test "x$ac_ct_CC" = x; then
3689    CC=""
3690  else
3691    case $cross_compiling:$ac_tool_warned in
3692yes:)
3693{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3694printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3695ac_tool_warned=yes ;;
3696esac
3697    CC=$ac_ct_CC
3698  fi
3699else
3700  CC="$ac_cv_prog_CC"
3701fi
3702
3703if test -z "$CC"; then
3704          if test -n "$ac_tool_prefix"; then
3705    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3706set dummy ${ac_tool_prefix}cc; ac_word=$2
3707{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3708printf %s "checking for $ac_word... " >&6; }
3709if test ${ac_cv_prog_CC+y}
3710then :
3711  printf %s "(cached) " >&6
3712else $as_nop
3713  if test -n "$CC"; then
3714  ac_cv_prog_CC="$CC" # Let the user override the test.
3715else
3716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3717for as_dir in $PATH
3718do
3719  IFS=$as_save_IFS
3720  case $as_dir in #(((
3721    '') as_dir=./ ;;
3722    */) ;;
3723    *) as_dir=$as_dir/ ;;
3724  esac
3725    for ac_exec_ext in '' $ac_executable_extensions; do
3726  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3727    ac_cv_prog_CC="${ac_tool_prefix}cc"
3728    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3729    break 2
3730  fi
3731done
3732  done
3733IFS=$as_save_IFS
3734
3735fi
3736fi
3737CC=$ac_cv_prog_CC
3738if test -n "$CC"; then
3739  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3740printf "%s\n" "$CC" >&6; }
3741else
3742  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3743printf "%s\n" "no" >&6; }
3744fi
3745
3746
3747  fi
3748fi
3749if test -z "$CC"; then
3750  # Extract the first word of "cc", so it can be a program name with args.
3751set dummy cc; ac_word=$2
3752{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3753printf %s "checking for $ac_word... " >&6; }
3754if test ${ac_cv_prog_CC+y}
3755then :
3756  printf %s "(cached) " >&6
3757else $as_nop
3758  if test -n "$CC"; then
3759  ac_cv_prog_CC="$CC" # Let the user override the test.
3760else
3761  ac_prog_rejected=no
3762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3763for as_dir in $PATH
3764do
3765  IFS=$as_save_IFS
3766  case $as_dir in #(((
3767    '') as_dir=./ ;;
3768    */) ;;
3769    *) as_dir=$as_dir/ ;;
3770  esac
3771    for ac_exec_ext in '' $ac_executable_extensions; do
3772  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3773    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3774       ac_prog_rejected=yes
3775       continue
3776     fi
3777    ac_cv_prog_CC="cc"
3778    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3779    break 2
3780  fi
3781done
3782  done
3783IFS=$as_save_IFS
3784
3785if test $ac_prog_rejected = yes; then
3786  # We found a bogon in the path, so make sure we never use it.
3787  set dummy $ac_cv_prog_CC
3788  shift
3789  if test $# != 0; then
3790    # We chose a different compiler from the bogus one.
3791    # However, it has the same basename, so the bogon will be chosen
3792    # first if we set CC to just the basename; use the full file name.
3793    shift
3794    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3795  fi
3796fi
3797fi
3798fi
3799CC=$ac_cv_prog_CC
3800if test -n "$CC"; then
3801  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3802printf "%s\n" "$CC" >&6; }
3803else
3804  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3805printf "%s\n" "no" >&6; }
3806fi
3807
3808
3809fi
3810if test -z "$CC"; then
3811  if test -n "$ac_tool_prefix"; then
3812  for ac_prog in cl.exe
3813  do
3814    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3815set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3816{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3817printf %s "checking for $ac_word... " >&6; }
3818if test ${ac_cv_prog_CC+y}
3819then :
3820  printf %s "(cached) " >&6
3821else $as_nop
3822  if test -n "$CC"; then
3823  ac_cv_prog_CC="$CC" # Let the user override the test.
3824else
3825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3826for as_dir in $PATH
3827do
3828  IFS=$as_save_IFS
3829  case $as_dir in #(((
3830    '') as_dir=./ ;;
3831    */) ;;
3832    *) as_dir=$as_dir/ ;;
3833  esac
3834    for ac_exec_ext in '' $ac_executable_extensions; do
3835  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3836    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3837    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3838    break 2
3839  fi
3840done
3841  done
3842IFS=$as_save_IFS
3843
3844fi
3845fi
3846CC=$ac_cv_prog_CC
3847if test -n "$CC"; then
3848  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3849printf "%s\n" "$CC" >&6; }
3850else
3851  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3852printf "%s\n" "no" >&6; }
3853fi
3854
3855
3856    test -n "$CC" && break
3857  done
3858fi
3859if test -z "$CC"; then
3860  ac_ct_CC=$CC
3861  for ac_prog in cl.exe
3862do
3863  # Extract the first word of "$ac_prog", so it can be a program name with args.
3864set dummy $ac_prog; ac_word=$2
3865{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3866printf %s "checking for $ac_word... " >&6; }
3867if test ${ac_cv_prog_ac_ct_CC+y}
3868then :
3869  printf %s "(cached) " >&6
3870else $as_nop
3871  if test -n "$ac_ct_CC"; then
3872  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3873else
3874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3875for as_dir in $PATH
3876do
3877  IFS=$as_save_IFS
3878  case $as_dir in #(((
3879    '') as_dir=./ ;;
3880    */) ;;
3881    *) as_dir=$as_dir/ ;;
3882  esac
3883    for ac_exec_ext in '' $ac_executable_extensions; do
3884  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3885    ac_cv_prog_ac_ct_CC="$ac_prog"
3886    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3887    break 2
3888  fi
3889done
3890  done
3891IFS=$as_save_IFS
3892
3893fi
3894fi
3895ac_ct_CC=$ac_cv_prog_ac_ct_CC
3896if test -n "$ac_ct_CC"; then
3897  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3898printf "%s\n" "$ac_ct_CC" >&6; }
3899else
3900  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3901printf "%s\n" "no" >&6; }
3902fi
3903
3904
3905  test -n "$ac_ct_CC" && break
3906done
3907
3908  if test "x$ac_ct_CC" = x; then
3909    CC=""
3910  else
3911    case $cross_compiling:$ac_tool_warned in
3912yes:)
3913{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3914printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3915ac_tool_warned=yes ;;
3916esac
3917    CC=$ac_ct_CC
3918  fi
3919fi
3920
3921fi
3922if test -z "$CC"; then
3923  if test -n "$ac_tool_prefix"; then
3924  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3925set dummy ${ac_tool_prefix}clang; ac_word=$2
3926{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3927printf %s "checking for $ac_word... " >&6; }
3928if test ${ac_cv_prog_CC+y}
3929then :
3930  printf %s "(cached) " >&6
3931else $as_nop
3932  if test -n "$CC"; then
3933  ac_cv_prog_CC="$CC" # Let the user override the test.
3934else
3935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3936for as_dir in $PATH
3937do
3938  IFS=$as_save_IFS
3939  case $as_dir in #(((
3940    '') as_dir=./ ;;
3941    */) ;;
3942    *) as_dir=$as_dir/ ;;
3943  esac
3944    for ac_exec_ext in '' $ac_executable_extensions; do
3945  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3946    ac_cv_prog_CC="${ac_tool_prefix}clang"
3947    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3948    break 2
3949  fi
3950done
3951  done
3952IFS=$as_save_IFS
3953
3954fi
3955fi
3956CC=$ac_cv_prog_CC
3957if test -n "$CC"; then
3958  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3959printf "%s\n" "$CC" >&6; }
3960else
3961  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3962printf "%s\n" "no" >&6; }
3963fi
3964
3965
3966fi
3967if test -z "$ac_cv_prog_CC"; then
3968  ac_ct_CC=$CC
3969  # Extract the first word of "clang", so it can be a program name with args.
3970set dummy clang; ac_word=$2
3971{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3972printf %s "checking for $ac_word... " >&6; }
3973if test ${ac_cv_prog_ac_ct_CC+y}
3974then :
3975  printf %s "(cached) " >&6
3976else $as_nop
3977  if test -n "$ac_ct_CC"; then
3978  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3979else
3980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3981for as_dir in $PATH
3982do
3983  IFS=$as_save_IFS
3984  case $as_dir in #(((
3985    '') as_dir=./ ;;
3986    */) ;;
3987    *) as_dir=$as_dir/ ;;
3988  esac
3989    for ac_exec_ext in '' $ac_executable_extensions; do
3990  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3991    ac_cv_prog_ac_ct_CC="clang"
3992    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3993    break 2
3994  fi
3995done
3996  done
3997IFS=$as_save_IFS
3998
3999fi
4000fi
4001ac_ct_CC=$ac_cv_prog_ac_ct_CC
4002if test -n "$ac_ct_CC"; then
4003  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4004printf "%s\n" "$ac_ct_CC" >&6; }
4005else
4006  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4007printf "%s\n" "no" >&6; }
4008fi
4009
4010  if test "x$ac_ct_CC" = x; then
4011    CC=""
4012  else
4013    case $cross_compiling:$ac_tool_warned in
4014yes:)
4015{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4016printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4017ac_tool_warned=yes ;;
4018esac
4019    CC=$ac_ct_CC
4020  fi
4021else
4022  CC="$ac_cv_prog_CC"
4023fi
4024
4025fi
4026
4027
4028test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4029printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4030as_fn_error $? "no acceptable C compiler found in \$PATH
4031See \`config.log' for more details" "$LINENO" 5; }
4032
4033# Provide some information about the compiler.
4034printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4035set X $ac_compile
4036ac_compiler=$2
4037for ac_option in --version -v -V -qversion -version; do
4038  { { ac_try="$ac_compiler $ac_option >&5"
4039case "(($ac_try" in
4040  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4041  *) ac_try_echo=$ac_try;;
4042esac
4043eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4044printf "%s\n" "$ac_try_echo"; } >&5
4045  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4046  ac_status=$?
4047  if test -s conftest.err; then
4048    sed '10a\
4049... rest of stderr output deleted ...
4050         10q' conftest.err >conftest.er1
4051    cat conftest.er1 >&5
4052  fi
4053  rm -f conftest.er1 conftest.err
4054  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4055  test $ac_status = 0; }
4056done
4057
4058cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4059/* end confdefs.h.  */
4060
4061int
4062main (void)
4063{
4064
4065  ;
4066  return 0;
4067}
4068_ACEOF
4069ac_clean_files_save=$ac_clean_files
4070ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4071# Try to create an executable without -o first, disregard a.out.
4072# It will help us diagnose broken compilers, and finding out an intuition
4073# of exeext.
4074{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4075printf %s "checking whether the C compiler works... " >&6; }
4076ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4077
4078# The possible output files:
4079ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4080
4081ac_rmfiles=
4082for ac_file in $ac_files
4083do
4084  case $ac_file in
4085    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4086    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4087  esac
4088done
4089rm -f $ac_rmfiles
4090
4091if { { ac_try="$ac_link_default"
4092case "(($ac_try" in
4093  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4094  *) ac_try_echo=$ac_try;;
4095esac
4096eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4097printf "%s\n" "$ac_try_echo"; } >&5
4098  (eval "$ac_link_default") 2>&5
4099  ac_status=$?
4100  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4101  test $ac_status = 0; }
4102then :
4103  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4104# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4105# in a Makefile.  We should not override ac_cv_exeext if it was cached,
4106# so that the user can short-circuit this test for compilers unknown to
4107# Autoconf.
4108for ac_file in $ac_files ''
4109do
4110  test -f "$ac_file" || continue
4111  case $ac_file in
4112    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4113	;;
4114    [ab].out )
4115	# We found the default executable, but exeext='' is most
4116	# certainly right.
4117	break;;
4118    *.* )
4119	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4120	then :; else
4121	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4122	fi
4123	# We set ac_cv_exeext here because the later test for it is not
4124	# safe: cross compilers may not add the suffix if given an `-o'
4125	# argument, so we may need to know it at that point already.
4126	# Even if this section looks crufty: it has the advantage of
4127	# actually working.
4128	break;;
4129    * )
4130	break;;
4131  esac
4132done
4133test "$ac_cv_exeext" = no && ac_cv_exeext=
4134
4135else $as_nop
4136  ac_file=''
4137fi
4138if test -z "$ac_file"
4139then :
4140  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4141printf "%s\n" "no" >&6; }
4142printf "%s\n" "$as_me: failed program was:" >&5
4143sed 's/^/| /' conftest.$ac_ext >&5
4144
4145{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4146printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4147as_fn_error 77 "C compiler cannot create executables
4148See \`config.log' for more details" "$LINENO" 5; }
4149else $as_nop
4150  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4151printf "%s\n" "yes" >&6; }
4152fi
4153{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4154printf %s "checking for C compiler default output file name... " >&6; }
4155{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4156printf "%s\n" "$ac_file" >&6; }
4157ac_exeext=$ac_cv_exeext
4158
4159rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4160ac_clean_files=$ac_clean_files_save
4161{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4162printf %s "checking for suffix of executables... " >&6; }
4163if { { ac_try="$ac_link"
4164case "(($ac_try" in
4165  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4166  *) ac_try_echo=$ac_try;;
4167esac
4168eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4169printf "%s\n" "$ac_try_echo"; } >&5
4170  (eval "$ac_link") 2>&5
4171  ac_status=$?
4172  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4173  test $ac_status = 0; }
4174then :
4175  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4176# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4177# work properly (i.e., refer to `conftest.exe'), while it won't with
4178# `rm'.
4179for ac_file in conftest.exe conftest conftest.*; do
4180  test -f "$ac_file" || continue
4181  case $ac_file in
4182    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4183    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4184	  break;;
4185    * ) break;;
4186  esac
4187done
4188else $as_nop
4189  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4190printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4191as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4192See \`config.log' for more details" "$LINENO" 5; }
4193fi
4194rm -f conftest conftest$ac_cv_exeext
4195{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4196printf "%s\n" "$ac_cv_exeext" >&6; }
4197
4198rm -f conftest.$ac_ext
4199EXEEXT=$ac_cv_exeext
4200ac_exeext=$EXEEXT
4201cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4202/* end confdefs.h.  */
4203#include <stdio.h>
4204int
4205main (void)
4206{
4207FILE *f = fopen ("conftest.out", "w");
4208 return ferror (f) || fclose (f) != 0;
4209
4210  ;
4211  return 0;
4212}
4213_ACEOF
4214ac_clean_files="$ac_clean_files conftest.out"
4215# Check that the compiler produces executables we can run.  If not, either
4216# the compiler is broken, or we cross compile.
4217{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4218printf %s "checking whether we are cross compiling... " >&6; }
4219if test "$cross_compiling" != yes; then
4220  { { ac_try="$ac_link"
4221case "(($ac_try" in
4222  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4223  *) ac_try_echo=$ac_try;;
4224esac
4225eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4226printf "%s\n" "$ac_try_echo"; } >&5
4227  (eval "$ac_link") 2>&5
4228  ac_status=$?
4229  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4230  test $ac_status = 0; }
4231  if { ac_try='./conftest$ac_cv_exeext'
4232  { { case "(($ac_try" in
4233  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4234  *) ac_try_echo=$ac_try;;
4235esac
4236eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4237printf "%s\n" "$ac_try_echo"; } >&5
4238  (eval "$ac_try") 2>&5
4239  ac_status=$?
4240  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4241  test $ac_status = 0; }; }; then
4242    cross_compiling=no
4243  else
4244    if test "$cross_compiling" = maybe; then
4245	cross_compiling=yes
4246    else
4247	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4248printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4249as_fn_error 77 "cannot run C compiled programs.
4250If you meant to cross compile, use \`--host'.
4251See \`config.log' for more details" "$LINENO" 5; }
4252    fi
4253  fi
4254fi
4255{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4256printf "%s\n" "$cross_compiling" >&6; }
4257
4258rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4259ac_clean_files=$ac_clean_files_save
4260{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4261printf %s "checking for suffix of object files... " >&6; }
4262if test ${ac_cv_objext+y}
4263then :
4264  printf %s "(cached) " >&6
4265else $as_nop
4266  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4267/* end confdefs.h.  */
4268
4269int
4270main (void)
4271{
4272
4273  ;
4274  return 0;
4275}
4276_ACEOF
4277rm -f conftest.o conftest.obj
4278if { { ac_try="$ac_compile"
4279case "(($ac_try" in
4280  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4281  *) ac_try_echo=$ac_try;;
4282esac
4283eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4284printf "%s\n" "$ac_try_echo"; } >&5
4285  (eval "$ac_compile") 2>&5
4286  ac_status=$?
4287  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4288  test $ac_status = 0; }
4289then :
4290  for ac_file in conftest.o conftest.obj conftest.*; do
4291  test -f "$ac_file" || continue;
4292  case $ac_file in
4293    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4294    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4295       break;;
4296  esac
4297done
4298else $as_nop
4299  printf "%s\n" "$as_me: failed program was:" >&5
4300sed 's/^/| /' conftest.$ac_ext >&5
4301
4302{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4303printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4304as_fn_error $? "cannot compute suffix of object files: cannot compile
4305See \`config.log' for more details" "$LINENO" 5; }
4306fi
4307rm -f conftest.$ac_cv_objext conftest.$ac_ext
4308fi
4309{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4310printf "%s\n" "$ac_cv_objext" >&6; }
4311OBJEXT=$ac_cv_objext
4312ac_objext=$OBJEXT
4313{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4314printf %s "checking whether the compiler supports GNU C... " >&6; }
4315if test ${ac_cv_c_compiler_gnu+y}
4316then :
4317  printf %s "(cached) " >&6
4318else $as_nop
4319  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4320/* end confdefs.h.  */
4321
4322int
4323main (void)
4324{
4325#ifndef __GNUC__
4326       choke me
4327#endif
4328
4329  ;
4330  return 0;
4331}
4332_ACEOF
4333if ac_fn_c_try_compile "$LINENO"
4334then :
4335  ac_compiler_gnu=yes
4336else $as_nop
4337  ac_compiler_gnu=no
4338fi
4339rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4340ac_cv_c_compiler_gnu=$ac_compiler_gnu
4341
4342fi
4343{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4344printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4345ac_compiler_gnu=$ac_cv_c_compiler_gnu
4346
4347if test $ac_compiler_gnu = yes; then
4348  GCC=yes
4349else
4350  GCC=
4351fi
4352ac_test_CFLAGS=${CFLAGS+y}
4353ac_save_CFLAGS=$CFLAGS
4354{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4355printf %s "checking whether $CC accepts -g... " >&6; }
4356if test ${ac_cv_prog_cc_g+y}
4357then :
4358  printf %s "(cached) " >&6
4359else $as_nop
4360  ac_save_c_werror_flag=$ac_c_werror_flag
4361   ac_c_werror_flag=yes
4362   ac_cv_prog_cc_g=no
4363   CFLAGS="-g"
4364   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4365/* end confdefs.h.  */
4366
4367int
4368main (void)
4369{
4370
4371  ;
4372  return 0;
4373}
4374_ACEOF
4375if ac_fn_c_try_compile "$LINENO"
4376then :
4377  ac_cv_prog_cc_g=yes
4378else $as_nop
4379  CFLAGS=""
4380      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4381/* end confdefs.h.  */
4382
4383int
4384main (void)
4385{
4386
4387  ;
4388  return 0;
4389}
4390_ACEOF
4391if ac_fn_c_try_compile "$LINENO"
4392then :
4393
4394else $as_nop
4395  ac_c_werror_flag=$ac_save_c_werror_flag
4396	 CFLAGS="-g"
4397	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4398/* end confdefs.h.  */
4399
4400int
4401main (void)
4402{
4403
4404  ;
4405  return 0;
4406}
4407_ACEOF
4408if ac_fn_c_try_compile "$LINENO"
4409then :
4410  ac_cv_prog_cc_g=yes
4411fi
4412rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4413fi
4414rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4415fi
4416rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4417   ac_c_werror_flag=$ac_save_c_werror_flag
4418fi
4419{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4420printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4421if test $ac_test_CFLAGS; then
4422  CFLAGS=$ac_save_CFLAGS
4423elif test $ac_cv_prog_cc_g = yes; then
4424  if test "$GCC" = yes; then
4425    CFLAGS="-g -O2"
4426  else
4427    CFLAGS="-g"
4428  fi
4429else
4430  if test "$GCC" = yes; then
4431    CFLAGS="-O2"
4432  else
4433    CFLAGS=
4434  fi
4435fi
4436ac_prog_cc_stdc=no
4437if test x$ac_prog_cc_stdc = xno
4438then :
4439  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4440printf %s "checking for $CC option to enable C11 features... " >&6; }
4441if test ${ac_cv_prog_cc_c11+y}
4442then :
4443  printf %s "(cached) " >&6
4444else $as_nop
4445  ac_cv_prog_cc_c11=no
4446ac_save_CC=$CC
4447cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4448/* end confdefs.h.  */
4449$ac_c_conftest_c11_program
4450_ACEOF
4451for ac_arg in '' -std=gnu11
4452do
4453  CC="$ac_save_CC $ac_arg"
4454  if ac_fn_c_try_compile "$LINENO"
4455then :
4456  ac_cv_prog_cc_c11=$ac_arg
4457fi
4458rm -f core conftest.err conftest.$ac_objext conftest.beam
4459  test "x$ac_cv_prog_cc_c11" != "xno" && break
4460done
4461rm -f conftest.$ac_ext
4462CC=$ac_save_CC
4463fi
4464
4465if test "x$ac_cv_prog_cc_c11" = xno
4466then :
4467  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4468printf "%s\n" "unsupported" >&6; }
4469else $as_nop
4470  if test "x$ac_cv_prog_cc_c11" = x
4471then :
4472  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4473printf "%s\n" "none needed" >&6; }
4474else $as_nop
4475  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4476printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4477     CC="$CC $ac_cv_prog_cc_c11"
4478fi
4479  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4480  ac_prog_cc_stdc=c11
4481fi
4482fi
4483if test x$ac_prog_cc_stdc = xno
4484then :
4485  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4486printf %s "checking for $CC option to enable C99 features... " >&6; }
4487if test ${ac_cv_prog_cc_c99+y}
4488then :
4489  printf %s "(cached) " >&6
4490else $as_nop
4491  ac_cv_prog_cc_c99=no
4492ac_save_CC=$CC
4493cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4494/* end confdefs.h.  */
4495$ac_c_conftest_c99_program
4496_ACEOF
4497for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4498do
4499  CC="$ac_save_CC $ac_arg"
4500  if ac_fn_c_try_compile "$LINENO"
4501then :
4502  ac_cv_prog_cc_c99=$ac_arg
4503fi
4504rm -f core conftest.err conftest.$ac_objext conftest.beam
4505  test "x$ac_cv_prog_cc_c99" != "xno" && break
4506done
4507rm -f conftest.$ac_ext
4508CC=$ac_save_CC
4509fi
4510
4511if test "x$ac_cv_prog_cc_c99" = xno
4512then :
4513  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4514printf "%s\n" "unsupported" >&6; }
4515else $as_nop
4516  if test "x$ac_cv_prog_cc_c99" = x
4517then :
4518  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4519printf "%s\n" "none needed" >&6; }
4520else $as_nop
4521  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4522printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4523     CC="$CC $ac_cv_prog_cc_c99"
4524fi
4525  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4526  ac_prog_cc_stdc=c99
4527fi
4528fi
4529if test x$ac_prog_cc_stdc = xno
4530then :
4531  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4532printf %s "checking for $CC option to enable C89 features... " >&6; }
4533if test ${ac_cv_prog_cc_c89+y}
4534then :
4535  printf %s "(cached) " >&6
4536else $as_nop
4537  ac_cv_prog_cc_c89=no
4538ac_save_CC=$CC
4539cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4540/* end confdefs.h.  */
4541$ac_c_conftest_c89_program
4542_ACEOF
4543for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4544do
4545  CC="$ac_save_CC $ac_arg"
4546  if ac_fn_c_try_compile "$LINENO"
4547then :
4548  ac_cv_prog_cc_c89=$ac_arg
4549fi
4550rm -f core conftest.err conftest.$ac_objext conftest.beam
4551  test "x$ac_cv_prog_cc_c89" != "xno" && break
4552done
4553rm -f conftest.$ac_ext
4554CC=$ac_save_CC
4555fi
4556
4557if test "x$ac_cv_prog_cc_c89" = xno
4558then :
4559  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4560printf "%s\n" "unsupported" >&6; }
4561else $as_nop
4562  if test "x$ac_cv_prog_cc_c89" = x
4563then :
4564  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4565printf "%s\n" "none needed" >&6; }
4566else $as_nop
4567  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4568printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4569     CC="$CC $ac_cv_prog_cc_c89"
4570fi
4571  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4572  ac_prog_cc_stdc=c89
4573fi
4574fi
4575
4576ac_ext=c
4577ac_cpp='$CPP $CPPFLAGS'
4578ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4579ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4580ac_compiler_gnu=$ac_cv_c_compiler_gnu
4581
4582
4583  ac_ext=c
4584ac_cpp='$CPP $CPPFLAGS'
4585ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4586ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4587ac_compiler_gnu=$ac_cv_c_compiler_gnu
4588{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4589printf %s "checking whether $CC understands -c and -o together... " >&6; }
4590if test ${am_cv_prog_cc_c_o+y}
4591then :
4592  printf %s "(cached) " >&6
4593else $as_nop
4594  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4595/* end confdefs.h.  */
4596
4597int
4598main (void)
4599{
4600
4601  ;
4602  return 0;
4603}
4604_ACEOF
4605  # Make sure it works both with $CC and with simple cc.
4606  # Following AC_PROG_CC_C_O, we do the test twice because some
4607  # compilers refuse to overwrite an existing .o file with -o,
4608  # though they will create one.
4609  am_cv_prog_cc_c_o=yes
4610  for am_i in 1 2; do
4611    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4612   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4613   ac_status=$?
4614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4615   (exit $ac_status); } \
4616         && test -f conftest2.$ac_objext; then
4617      : OK
4618    else
4619      am_cv_prog_cc_c_o=no
4620      break
4621    fi
4622  done
4623  rm -f core conftest*
4624  unset am_i
4625fi
4626{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4627printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4628if test "$am_cv_prog_cc_c_o" != yes; then
4629   # Losing compiler, so override with the script.
4630   # FIXME: It is wrong to rewrite CC.
4631   # But if we don't then we get into trouble of one sort or another.
4632   # A longer-term fix would be to have automake use am__CC in this case,
4633   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4634   CC="$am_aux_dir/compile $CC"
4635fi
4636ac_ext=c
4637ac_cpp='$CPP $CPPFLAGS'
4638ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4639ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4640ac_compiler_gnu=$ac_cv_c_compiler_gnu
4641
4642
4643depcc="$CC"   am_compiler_list=
4644
4645{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4646printf %s "checking dependency style of $depcc... " >&6; }
4647if test ${am_cv_CC_dependencies_compiler_type+y}
4648then :
4649  printf %s "(cached) " >&6
4650else $as_nop
4651  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4652  # We make a subdir and do the tests there.  Otherwise we can end up
4653  # making bogus files that we don't know about and never remove.  For
4654  # instance it was reported that on HP-UX the gcc test will end up
4655  # making a dummy file named 'D' -- because '-MD' means "put the output
4656  # in D".
4657  rm -rf conftest.dir
4658  mkdir conftest.dir
4659  # Copy depcomp to subdir because otherwise we won't find it if we're
4660  # using a relative directory.
4661  cp "$am_depcomp" conftest.dir
4662  cd conftest.dir
4663  # We will build objects and dependencies in a subdirectory because
4664  # it helps to detect inapplicable dependency modes.  For instance
4665  # both Tru64's cc and ICC support -MD to output dependencies as a
4666  # side effect of compilation, but ICC will put the dependencies in
4667  # the current directory while Tru64 will put them in the object
4668  # directory.
4669  mkdir sub
4670
4671  am_cv_CC_dependencies_compiler_type=none
4672  if test "$am_compiler_list" = ""; then
4673     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4674  fi
4675  am__universal=false
4676  case " $depcc " in #(
4677     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4678     esac
4679
4680  for depmode in $am_compiler_list; do
4681    # Setup a source with many dependencies, because some compilers
4682    # like to wrap large dependency lists on column 80 (with \), and
4683    # we should not choose a depcomp mode which is confused by this.
4684    #
4685    # We need to recreate these files for each test, as the compiler may
4686    # overwrite some of them when testing with obscure command lines.
4687    # This happens at least with the AIX C compiler.
4688    : > sub/conftest.c
4689    for i in 1 2 3 4 5 6; do
4690      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4691      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4692      # Solaris 10 /bin/sh.
4693      echo '/* dummy */' > sub/conftst$i.h
4694    done
4695    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4696
4697    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4698    # mode.  It turns out that the SunPro C++ compiler does not properly
4699    # handle '-M -o', and we need to detect this.  Also, some Intel
4700    # versions had trouble with output in subdirs.
4701    am__obj=sub/conftest.${OBJEXT-o}
4702    am__minus_obj="-o $am__obj"
4703    case $depmode in
4704    gcc)
4705      # This depmode causes a compiler race in universal mode.
4706      test "$am__universal" = false || continue
4707      ;;
4708    nosideeffect)
4709      # After this tag, mechanisms are not by side-effect, so they'll
4710      # only be used when explicitly requested.
4711      if test "x$enable_dependency_tracking" = xyes; then
4712	continue
4713      else
4714	break
4715      fi
4716      ;;
4717    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4718      # This compiler won't grok '-c -o', but also, the minuso test has
4719      # not run yet.  These depmodes are late enough in the game, and
4720      # so weak that their functioning should not be impacted.
4721      am__obj=conftest.${OBJEXT-o}
4722      am__minus_obj=
4723      ;;
4724    none) break ;;
4725    esac
4726    if depmode=$depmode \
4727       source=sub/conftest.c object=$am__obj \
4728       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4729       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4730         >/dev/null 2>conftest.err &&
4731       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4732       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4733       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4734       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4735      # icc doesn't choke on unknown options, it will just issue warnings
4736      # or remarks (even with -Werror).  So we grep stderr for any message
4737      # that says an option was ignored or not supported.
4738      # When given -MP, icc 7.0 and 7.1 complain thusly:
4739      #   icc: Command line warning: ignoring option '-M'; no argument required
4740      # The diagnosis changed in icc 8.0:
4741      #   icc: Command line remark: option '-MP' not supported
4742      if (grep 'ignoring option' conftest.err ||
4743          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4744        am_cv_CC_dependencies_compiler_type=$depmode
4745        break
4746      fi
4747    fi
4748  done
4749
4750  cd ..
4751  rm -rf conftest.dir
4752else
4753  am_cv_CC_dependencies_compiler_type=none
4754fi
4755
4756fi
4757{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4758printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4759CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4760
4761 if
4762  test "x$enable_dependency_tracking" != xno \
4763  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4764  am__fastdepCC_TRUE=
4765  am__fastdepCC_FALSE='#'
4766else
4767  am__fastdepCC_TRUE='#'
4768  am__fastdepCC_FALSE=
4769fi
4770
4771
4772{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4773printf %s "checking for a sed that does not truncate output... " >&6; }
4774if test ${ac_cv_path_SED+y}
4775then :
4776  printf %s "(cached) " >&6
4777else $as_nop
4778            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4779     for ac_i in 1 2 3 4 5 6 7; do
4780       ac_script="$ac_script$as_nl$ac_script"
4781     done
4782     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4783     { ac_script=; unset ac_script;}
4784     if test -z "$SED"; then
4785  ac_path_SED_found=false
4786  # Loop through the user's path and test for each of PROGNAME-LIST
4787  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4788for as_dir in $PATH
4789do
4790  IFS=$as_save_IFS
4791  case $as_dir in #(((
4792    '') as_dir=./ ;;
4793    */) ;;
4794    *) as_dir=$as_dir/ ;;
4795  esac
4796    for ac_prog in sed gsed
4797   do
4798    for ac_exec_ext in '' $ac_executable_extensions; do
4799      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4800      as_fn_executable_p "$ac_path_SED" || continue
4801# Check for GNU ac_path_SED and select it if it is found.
4802  # Check for GNU $ac_path_SED
4803case `"$ac_path_SED" --version 2>&1` in
4804*GNU*)
4805  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4806*)
4807  ac_count=0
4808  printf %s 0123456789 >"conftest.in"
4809  while :
4810  do
4811    cat "conftest.in" "conftest.in" >"conftest.tmp"
4812    mv "conftest.tmp" "conftest.in"
4813    cp "conftest.in" "conftest.nl"
4814    printf "%s\n" '' >> "conftest.nl"
4815    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4816    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4817    as_fn_arith $ac_count + 1 && ac_count=$as_val
4818    if test $ac_count -gt ${ac_path_SED_max-0}; then
4819      # Best one so far, save it but keep looking for a better one
4820      ac_cv_path_SED="$ac_path_SED"
4821      ac_path_SED_max=$ac_count
4822    fi
4823    # 10*(2^10) chars as input seems more than enough
4824    test $ac_count -gt 10 && break
4825  done
4826  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4827esac
4828
4829      $ac_path_SED_found && break 3
4830    done
4831  done
4832  done
4833IFS=$as_save_IFS
4834  if test -z "$ac_cv_path_SED"; then
4835    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4836  fi
4837else
4838  ac_cv_path_SED=$SED
4839fi
4840
4841fi
4842{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4843printf "%s\n" "$ac_cv_path_SED" >&6; }
4844 SED="$ac_cv_path_SED"
4845  rm -f conftest.sed
4846
4847test -z "$SED" && SED=sed
4848Xsed="$SED -e 1s/^X//"
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4861printf %s "checking for grep that handles long lines and -e... " >&6; }
4862if test ${ac_cv_path_GREP+y}
4863then :
4864  printf %s "(cached) " >&6
4865else $as_nop
4866  if test -z "$GREP"; then
4867  ac_path_GREP_found=false
4868  # Loop through the user's path and test for each of PROGNAME-LIST
4869  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4870for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4871do
4872  IFS=$as_save_IFS
4873  case $as_dir in #(((
4874    '') as_dir=./ ;;
4875    */) ;;
4876    *) as_dir=$as_dir/ ;;
4877  esac
4878    for ac_prog in grep ggrep
4879   do
4880    for ac_exec_ext in '' $ac_executable_extensions; do
4881      ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
4882      as_fn_executable_p "$ac_path_GREP" || continue
4883# Check for GNU ac_path_GREP and select it if it is found.
4884  # Check for GNU $ac_path_GREP
4885case `"$ac_path_GREP" --version 2>&1` in
4886*GNU*)
4887  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4888*)
4889  ac_count=0
4890  printf %s 0123456789 >"conftest.in"
4891  while :
4892  do
4893    cat "conftest.in" "conftest.in" >"conftest.tmp"
4894    mv "conftest.tmp" "conftest.in"
4895    cp "conftest.in" "conftest.nl"
4896    printf "%s\n" 'GREP' >> "conftest.nl"
4897    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4898    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4899    as_fn_arith $ac_count + 1 && ac_count=$as_val
4900    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4901      # Best one so far, save it but keep looking for a better one
4902      ac_cv_path_GREP="$ac_path_GREP"
4903      ac_path_GREP_max=$ac_count
4904    fi
4905    # 10*(2^10) chars as input seems more than enough
4906    test $ac_count -gt 10 && break
4907  done
4908  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4909esac
4910
4911      $ac_path_GREP_found && break 3
4912    done
4913  done
4914  done
4915IFS=$as_save_IFS
4916  if test -z "$ac_cv_path_GREP"; then
4917    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4918  fi
4919else
4920  ac_cv_path_GREP=$GREP
4921fi
4922
4923fi
4924{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4925printf "%s\n" "$ac_cv_path_GREP" >&6; }
4926 GREP="$ac_cv_path_GREP"
4927
4928
4929{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4930printf %s "checking for egrep... " >&6; }
4931if test ${ac_cv_path_EGREP+y}
4932then :
4933  printf %s "(cached) " >&6
4934else $as_nop
4935  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4936   then ac_cv_path_EGREP="$GREP -E"
4937   else
4938     if test -z "$EGREP"; then
4939  ac_path_EGREP_found=false
4940  # Loop through the user's path and test for each of PROGNAME-LIST
4941  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4942for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4943do
4944  IFS=$as_save_IFS
4945  case $as_dir in #(((
4946    '') as_dir=./ ;;
4947    */) ;;
4948    *) as_dir=$as_dir/ ;;
4949  esac
4950    for ac_prog in egrep
4951   do
4952    for ac_exec_ext in '' $ac_executable_extensions; do
4953      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
4954      as_fn_executable_p "$ac_path_EGREP" || continue
4955# Check for GNU ac_path_EGREP and select it if it is found.
4956  # Check for GNU $ac_path_EGREP
4957case `"$ac_path_EGREP" --version 2>&1` in
4958*GNU*)
4959  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4960*)
4961  ac_count=0
4962  printf %s 0123456789 >"conftest.in"
4963  while :
4964  do
4965    cat "conftest.in" "conftest.in" >"conftest.tmp"
4966    mv "conftest.tmp" "conftest.in"
4967    cp "conftest.in" "conftest.nl"
4968    printf "%s\n" 'EGREP' >> "conftest.nl"
4969    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4970    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4971    as_fn_arith $ac_count + 1 && ac_count=$as_val
4972    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4973      # Best one so far, save it but keep looking for a better one
4974      ac_cv_path_EGREP="$ac_path_EGREP"
4975      ac_path_EGREP_max=$ac_count
4976    fi
4977    # 10*(2^10) chars as input seems more than enough
4978    test $ac_count -gt 10 && break
4979  done
4980  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4981esac
4982
4983      $ac_path_EGREP_found && break 3
4984    done
4985  done
4986  done
4987IFS=$as_save_IFS
4988  if test -z "$ac_cv_path_EGREP"; then
4989    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4990  fi
4991else
4992  ac_cv_path_EGREP=$EGREP
4993fi
4994
4995   fi
4996fi
4997{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4998printf "%s\n" "$ac_cv_path_EGREP" >&6; }
4999 EGREP="$ac_cv_path_EGREP"
5000
5001
5002{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5003printf %s "checking for fgrep... " >&6; }
5004if test ${ac_cv_path_FGREP+y}
5005then :
5006  printf %s "(cached) " >&6
5007else $as_nop
5008  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5009   then ac_cv_path_FGREP="$GREP -F"
5010   else
5011     if test -z "$FGREP"; then
5012  ac_path_FGREP_found=false
5013  # Loop through the user's path and test for each of PROGNAME-LIST
5014  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5015for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5016do
5017  IFS=$as_save_IFS
5018  case $as_dir in #(((
5019    '') as_dir=./ ;;
5020    */) ;;
5021    *) as_dir=$as_dir/ ;;
5022  esac
5023    for ac_prog in fgrep
5024   do
5025    for ac_exec_ext in '' $ac_executable_extensions; do
5026      ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5027      as_fn_executable_p "$ac_path_FGREP" || continue
5028# Check for GNU ac_path_FGREP and select it if it is found.
5029  # Check for GNU $ac_path_FGREP
5030case `"$ac_path_FGREP" --version 2>&1` in
5031*GNU*)
5032  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5033*)
5034  ac_count=0
5035  printf %s 0123456789 >"conftest.in"
5036  while :
5037  do
5038    cat "conftest.in" "conftest.in" >"conftest.tmp"
5039    mv "conftest.tmp" "conftest.in"
5040    cp "conftest.in" "conftest.nl"
5041    printf "%s\n" 'FGREP' >> "conftest.nl"
5042    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5043    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5044    as_fn_arith $ac_count + 1 && ac_count=$as_val
5045    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5046      # Best one so far, save it but keep looking for a better one
5047      ac_cv_path_FGREP="$ac_path_FGREP"
5048      ac_path_FGREP_max=$ac_count
5049    fi
5050    # 10*(2^10) chars as input seems more than enough
5051    test $ac_count -gt 10 && break
5052  done
5053  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5054esac
5055
5056      $ac_path_FGREP_found && break 3
5057    done
5058  done
5059  done
5060IFS=$as_save_IFS
5061  if test -z "$ac_cv_path_FGREP"; then
5062    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5063  fi
5064else
5065  ac_cv_path_FGREP=$FGREP
5066fi
5067
5068   fi
5069fi
5070{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5071printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5072 FGREP="$ac_cv_path_FGREP"
5073
5074
5075test -z "$GREP" && GREP=grep
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095# Check whether --with-gnu-ld was given.
5096if test ${with_gnu_ld+y}
5097then :
5098  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5099else $as_nop
5100  with_gnu_ld=no
5101fi
5102
5103ac_prog=ld
5104if test yes = "$GCC"; then
5105  # Check if gcc -print-prog-name=ld gives a path.
5106  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5107printf %s "checking for ld used by $CC... " >&6; }
5108  case $host in
5109  *-*-mingw*)
5110    # gcc leaves a trailing carriage return, which upsets mingw
5111    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5112  *)
5113    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5114  esac
5115  case $ac_prog in
5116    # Accept absolute paths.
5117    [\\/]* | ?:[\\/]*)
5118      re_direlt='/[^/][^/]*/\.\./'
5119      # Canonicalize the pathname of ld
5120      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5121      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5122	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5123      done
5124      test -z "$LD" && LD=$ac_prog
5125      ;;
5126  "")
5127    # If it fails, then pretend we aren't using GCC.
5128    ac_prog=ld
5129    ;;
5130  *)
5131    # If it is relative, then search for the first ld in PATH.
5132    with_gnu_ld=unknown
5133    ;;
5134  esac
5135elif test yes = "$with_gnu_ld"; then
5136  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5137printf %s "checking for GNU ld... " >&6; }
5138else
5139  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5140printf %s "checking for non-GNU ld... " >&6; }
5141fi
5142if test ${lt_cv_path_LD+y}
5143then :
5144  printf %s "(cached) " >&6
5145else $as_nop
5146  if test -z "$LD"; then
5147  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5148  for ac_dir in $PATH; do
5149    IFS=$lt_save_ifs
5150    test -z "$ac_dir" && ac_dir=.
5151    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5152      lt_cv_path_LD=$ac_dir/$ac_prog
5153      # Check to see if the program is GNU ld.  I'd rather use --version,
5154      # but apparently some variants of GNU ld only accept -v.
5155      # Break only if it was the GNU/non-GNU ld that we prefer.
5156      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5157      *GNU* | *'with BFD'*)
5158	test no != "$with_gnu_ld" && break
5159	;;
5160      *)
5161	test yes != "$with_gnu_ld" && break
5162	;;
5163      esac
5164    fi
5165  done
5166  IFS=$lt_save_ifs
5167else
5168  lt_cv_path_LD=$LD # Let the user override the test with a path.
5169fi
5170fi
5171
5172LD=$lt_cv_path_LD
5173if test -n "$LD"; then
5174  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5175printf "%s\n" "$LD" >&6; }
5176else
5177  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5178printf "%s\n" "no" >&6; }
5179fi
5180test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5181{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5182printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5183if test ${lt_cv_prog_gnu_ld+y}
5184then :
5185  printf %s "(cached) " >&6
5186else $as_nop
5187  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5188case `$LD -v 2>&1 </dev/null` in
5189*GNU* | *'with BFD'*)
5190  lt_cv_prog_gnu_ld=yes
5191  ;;
5192*)
5193  lt_cv_prog_gnu_ld=no
5194  ;;
5195esac
5196fi
5197{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5198printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5199with_gnu_ld=$lt_cv_prog_gnu_ld
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5210printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5211if test ${lt_cv_path_NM+y}
5212then :
5213  printf %s "(cached) " >&6
5214else $as_nop
5215  if test -n "$NM"; then
5216  # Let the user override the test.
5217  lt_cv_path_NM=$NM
5218else
5219  lt_nm_to_check=${ac_tool_prefix}nm
5220  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5221    lt_nm_to_check="$lt_nm_to_check nm"
5222  fi
5223  for lt_tmp_nm in $lt_nm_to_check; do
5224    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5225    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5226      IFS=$lt_save_ifs
5227      test -z "$ac_dir" && ac_dir=.
5228      tmp_nm=$ac_dir/$lt_tmp_nm
5229      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5230	# Check to see if the nm accepts a BSD-compat flag.
5231	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5232	#   nm: unknown option "B" ignored
5233	# Tru64's nm complains that /dev/null is an invalid object file
5234	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5235	case $build_os in
5236	mingw*) lt_bad_file=conftest.nm/nofile ;;
5237	*) lt_bad_file=/dev/null ;;
5238	esac
5239	case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5240	*$lt_bad_file* | *'Invalid file or object type'*)
5241	  lt_cv_path_NM="$tmp_nm -B"
5242	  break 2
5243	  ;;
5244	*)
5245	  case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5246	  */dev/null*)
5247	    lt_cv_path_NM="$tmp_nm -p"
5248	    break 2
5249	    ;;
5250	  *)
5251	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5252	    continue # so that we can try to find one that supports BSD flags
5253	    ;;
5254	  esac
5255	  ;;
5256	esac
5257      fi
5258    done
5259    IFS=$lt_save_ifs
5260  done
5261  : ${lt_cv_path_NM=no}
5262fi
5263fi
5264{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5265printf "%s\n" "$lt_cv_path_NM" >&6; }
5266if test no != "$lt_cv_path_NM"; then
5267  NM=$lt_cv_path_NM
5268else
5269  # Didn't find any BSD compatible name lister, look for dumpbin.
5270  if test -n "$DUMPBIN"; then :
5271    # Let the user override the test.
5272  else
5273    if test -n "$ac_tool_prefix"; then
5274  for ac_prog in dumpbin "link -dump"
5275  do
5276    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5277set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5278{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5279printf %s "checking for $ac_word... " >&6; }
5280if test ${ac_cv_prog_DUMPBIN+y}
5281then :
5282  printf %s "(cached) " >&6
5283else $as_nop
5284  if test -n "$DUMPBIN"; then
5285  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5286else
5287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5288for as_dir in $PATH
5289do
5290  IFS=$as_save_IFS
5291  case $as_dir in #(((
5292    '') as_dir=./ ;;
5293    */) ;;
5294    *) as_dir=$as_dir/ ;;
5295  esac
5296    for ac_exec_ext in '' $ac_executable_extensions; do
5297  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5298    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5299    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5300    break 2
5301  fi
5302done
5303  done
5304IFS=$as_save_IFS
5305
5306fi
5307fi
5308DUMPBIN=$ac_cv_prog_DUMPBIN
5309if test -n "$DUMPBIN"; then
5310  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5311printf "%s\n" "$DUMPBIN" >&6; }
5312else
5313  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5314printf "%s\n" "no" >&6; }
5315fi
5316
5317
5318    test -n "$DUMPBIN" && break
5319  done
5320fi
5321if test -z "$DUMPBIN"; then
5322  ac_ct_DUMPBIN=$DUMPBIN
5323  for ac_prog in dumpbin "link -dump"
5324do
5325  # Extract the first word of "$ac_prog", so it can be a program name with args.
5326set dummy $ac_prog; ac_word=$2
5327{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5328printf %s "checking for $ac_word... " >&6; }
5329if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5330then :
5331  printf %s "(cached) " >&6
5332else $as_nop
5333  if test -n "$ac_ct_DUMPBIN"; then
5334  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5335else
5336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5337for as_dir in $PATH
5338do
5339  IFS=$as_save_IFS
5340  case $as_dir in #(((
5341    '') as_dir=./ ;;
5342    */) ;;
5343    *) as_dir=$as_dir/ ;;
5344  esac
5345    for ac_exec_ext in '' $ac_executable_extensions; do
5346  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5347    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5348    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5349    break 2
5350  fi
5351done
5352  done
5353IFS=$as_save_IFS
5354
5355fi
5356fi
5357ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5358if test -n "$ac_ct_DUMPBIN"; then
5359  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5360printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5361else
5362  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5363printf "%s\n" "no" >&6; }
5364fi
5365
5366
5367  test -n "$ac_ct_DUMPBIN" && break
5368done
5369
5370  if test "x$ac_ct_DUMPBIN" = x; then
5371    DUMPBIN=":"
5372  else
5373    case $cross_compiling:$ac_tool_warned in
5374yes:)
5375{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5376printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5377ac_tool_warned=yes ;;
5378esac
5379    DUMPBIN=$ac_ct_DUMPBIN
5380  fi
5381fi
5382
5383    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5384    *COFF*)
5385      DUMPBIN="$DUMPBIN -symbols -headers"
5386      ;;
5387    *)
5388      DUMPBIN=:
5389      ;;
5390    esac
5391  fi
5392
5393  if test : != "$DUMPBIN"; then
5394    NM=$DUMPBIN
5395  fi
5396fi
5397test -z "$NM" && NM=nm
5398
5399
5400
5401
5402
5403
5404{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5405printf %s "checking the name lister ($NM) interface... " >&6; }
5406if test ${lt_cv_nm_interface+y}
5407then :
5408  printf %s "(cached) " >&6
5409else $as_nop
5410  lt_cv_nm_interface="BSD nm"
5411  echo "int some_variable = 0;" > conftest.$ac_ext
5412  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5413  (eval "$ac_compile" 2>conftest.err)
5414  cat conftest.err >&5
5415  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5416  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5417  cat conftest.err >&5
5418  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5419  cat conftest.out >&5
5420  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5421    lt_cv_nm_interface="MS dumpbin"
5422  fi
5423  rm -f conftest*
5424fi
5425{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5426printf "%s\n" "$lt_cv_nm_interface" >&6; }
5427
5428{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5429printf %s "checking whether ln -s works... " >&6; }
5430LN_S=$as_ln_s
5431if test "$LN_S" = "ln -s"; then
5432  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5433printf "%s\n" "yes" >&6; }
5434else
5435  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5436printf "%s\n" "no, using $LN_S" >&6; }
5437fi
5438
5439# find the maximum length of command line arguments
5440{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5441printf %s "checking the maximum length of command line arguments... " >&6; }
5442if test ${lt_cv_sys_max_cmd_len+y}
5443then :
5444  printf %s "(cached) " >&6
5445else $as_nop
5446    i=0
5447  teststring=ABCD
5448
5449  case $build_os in
5450  msdosdjgpp*)
5451    # On DJGPP, this test can blow up pretty badly due to problems in libc
5452    # (any single argument exceeding 2000 bytes causes a buffer overrun
5453    # during glob expansion).  Even if it were fixed, the result of this
5454    # check would be larger than it should be.
5455    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5456    ;;
5457
5458  gnu*)
5459    # Under GNU Hurd, this test is not required because there is
5460    # no limit to the length of command line arguments.
5461    # Libtool will interpret -1 as no limit whatsoever
5462    lt_cv_sys_max_cmd_len=-1;
5463    ;;
5464
5465  cygwin* | mingw* | cegcc*)
5466    # On Win9x/ME, this test blows up -- it succeeds, but takes
5467    # about 5 minutes as the teststring grows exponentially.
5468    # Worse, since 9x/ME are not pre-emptively multitasking,
5469    # you end up with a "frozen" computer, even though with patience
5470    # the test eventually succeeds (with a max line length of 256k).
5471    # Instead, let's just punt: use the minimum linelength reported by
5472    # all of the supported platforms: 8192 (on NT/2K/XP).
5473    lt_cv_sys_max_cmd_len=8192;
5474    ;;
5475
5476  mint*)
5477    # On MiNT this can take a long time and run out of memory.
5478    lt_cv_sys_max_cmd_len=8192;
5479    ;;
5480
5481  amigaos*)
5482    # On AmigaOS with pdksh, this test takes hours, literally.
5483    # So we just punt and use a minimum line length of 8192.
5484    lt_cv_sys_max_cmd_len=8192;
5485    ;;
5486
5487  bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5488    # This has been around since 386BSD, at least.  Likely further.
5489    if test -x /sbin/sysctl; then
5490      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5491    elif test -x /usr/sbin/sysctl; then
5492      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5493    else
5494      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5495    fi
5496    # And add a safety zone
5497    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5498    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5499    ;;
5500
5501  interix*)
5502    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5503    lt_cv_sys_max_cmd_len=196608
5504    ;;
5505
5506  os2*)
5507    # The test takes a long time on OS/2.
5508    lt_cv_sys_max_cmd_len=8192
5509    ;;
5510
5511  osf*)
5512    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5513    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5514    # nice to cause kernel panics so lets avoid the loop below.
5515    # First set a reasonable default.
5516    lt_cv_sys_max_cmd_len=16384
5517    #
5518    if test -x /sbin/sysconfig; then
5519      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5520        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5521      esac
5522    fi
5523    ;;
5524  sco3.2v5*)
5525    lt_cv_sys_max_cmd_len=102400
5526    ;;
5527  sysv5* | sco5v6* | sysv4.2uw2*)
5528    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5529    if test -n "$kargmax"; then
5530      lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[	 ]//'`
5531    else
5532      lt_cv_sys_max_cmd_len=32768
5533    fi
5534    ;;
5535  *)
5536    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5537    if test -n "$lt_cv_sys_max_cmd_len" && \
5538       test undefined != "$lt_cv_sys_max_cmd_len"; then
5539      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5540      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5541    else
5542      # Make teststring a little bigger before we do anything with it.
5543      # a 1K string should be a reasonable start.
5544      for i in 1 2 3 4 5 6 7 8; do
5545        teststring=$teststring$teststring
5546      done
5547      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5548      # If test is not a shell built-in, we'll probably end up computing a
5549      # maximum length that is only half of the actual maximum length, but
5550      # we can't tell.
5551      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5552	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5553	      test 17 != "$i" # 1/2 MB should be enough
5554      do
5555        i=`expr $i + 1`
5556        teststring=$teststring$teststring
5557      done
5558      # Only check the string length outside the loop.
5559      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5560      teststring=
5561      # Add a significant safety factor because C++ compilers can tack on
5562      # massive amounts of additional arguments before passing them to the
5563      # linker.  It appears as though 1/2 is a usable value.
5564      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5565    fi
5566    ;;
5567  esac
5568
5569fi
5570
5571if test -n "$lt_cv_sys_max_cmd_len"; then
5572  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5573printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
5574else
5575  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5576printf "%s\n" "none" >&6; }
5577fi
5578max_cmd_len=$lt_cv_sys_max_cmd_len
5579
5580
5581
5582
5583
5584
5585: ${CP="cp -f"}
5586: ${MV="mv -f"}
5587: ${RM="rm -f"}
5588
5589if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5590  lt_unset=unset
5591else
5592  lt_unset=false
5593fi
5594
5595
5596
5597
5598
5599# test EBCDIC or ASCII
5600case `echo X|tr X '\101'` in
5601 A) # ASCII based system
5602    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5603  lt_SP2NL='tr \040 \012'
5604  lt_NL2SP='tr \015\012 \040\040'
5605  ;;
5606 *) # EBCDIC based system
5607  lt_SP2NL='tr \100 \n'
5608  lt_NL2SP='tr \r\n \100\100'
5609  ;;
5610esac
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5621printf %s "checking how to convert $build file names to $host format... " >&6; }
5622if test ${lt_cv_to_host_file_cmd+y}
5623then :
5624  printf %s "(cached) " >&6
5625else $as_nop
5626  case $host in
5627  *-*-mingw* )
5628    case $build in
5629      *-*-mingw* ) # actually msys
5630        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5631        ;;
5632      *-*-cygwin* )
5633        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5634        ;;
5635      * ) # otherwise, assume *nix
5636        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5637        ;;
5638    esac
5639    ;;
5640  *-*-cygwin* )
5641    case $build in
5642      *-*-mingw* ) # actually msys
5643        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5644        ;;
5645      *-*-cygwin* )
5646        lt_cv_to_host_file_cmd=func_convert_file_noop
5647        ;;
5648      * ) # otherwise, assume *nix
5649        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5650        ;;
5651    esac
5652    ;;
5653  * ) # unhandled hosts (and "normal" native builds)
5654    lt_cv_to_host_file_cmd=func_convert_file_noop
5655    ;;
5656esac
5657
5658fi
5659
5660to_host_file_cmd=$lt_cv_to_host_file_cmd
5661{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5662printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
5663
5664
5665
5666
5667
5668{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5669printf %s "checking how to convert $build file names to toolchain format... " >&6; }
5670if test ${lt_cv_to_tool_file_cmd+y}
5671then :
5672  printf %s "(cached) " >&6
5673else $as_nop
5674  #assume ordinary cross tools, or native build.
5675lt_cv_to_tool_file_cmd=func_convert_file_noop
5676case $host in
5677  *-*-mingw* )
5678    case $build in
5679      *-*-mingw* ) # actually msys
5680        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5681        ;;
5682    esac
5683    ;;
5684esac
5685
5686fi
5687
5688to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5689{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5690printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
5691
5692
5693
5694
5695
5696{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5697printf %s "checking for $LD option to reload object files... " >&6; }
5698if test ${lt_cv_ld_reload_flag+y}
5699then :
5700  printf %s "(cached) " >&6
5701else $as_nop
5702  lt_cv_ld_reload_flag='-r'
5703fi
5704{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5705printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
5706reload_flag=$lt_cv_ld_reload_flag
5707case $reload_flag in
5708"" | " "*) ;;
5709*) reload_flag=" $reload_flag" ;;
5710esac
5711reload_cmds='$LD$reload_flag -o $output$reload_objs'
5712case $host_os in
5713  cygwin* | mingw* | pw32* | cegcc*)
5714    if test yes != "$GCC"; then
5715      reload_cmds=false
5716    fi
5717    ;;
5718  darwin*)
5719    if test yes = "$GCC"; then
5720      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5721    else
5722      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5723    fi
5724    ;;
5725esac
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735if test -n "$ac_tool_prefix"; then
5736  # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
5737set dummy ${ac_tool_prefix}file; ac_word=$2
5738{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5739printf %s "checking for $ac_word... " >&6; }
5740if test ${ac_cv_prog_FILECMD+y}
5741then :
5742  printf %s "(cached) " >&6
5743else $as_nop
5744  if test -n "$FILECMD"; then
5745  ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
5746else
5747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5748for as_dir in $PATH
5749do
5750  IFS=$as_save_IFS
5751  case $as_dir in #(((
5752    '') as_dir=./ ;;
5753    */) ;;
5754    *) as_dir=$as_dir/ ;;
5755  esac
5756    for ac_exec_ext in '' $ac_executable_extensions; do
5757  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5758    ac_cv_prog_FILECMD="${ac_tool_prefix}file"
5759    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5760    break 2
5761  fi
5762done
5763  done
5764IFS=$as_save_IFS
5765
5766fi
5767fi
5768FILECMD=$ac_cv_prog_FILECMD
5769if test -n "$FILECMD"; then
5770  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
5771printf "%s\n" "$FILECMD" >&6; }
5772else
5773  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5774printf "%s\n" "no" >&6; }
5775fi
5776
5777
5778fi
5779if test -z "$ac_cv_prog_FILECMD"; then
5780  ac_ct_FILECMD=$FILECMD
5781  # Extract the first word of "file", so it can be a program name with args.
5782set dummy file; ac_word=$2
5783{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5784printf %s "checking for $ac_word... " >&6; }
5785if test ${ac_cv_prog_ac_ct_FILECMD+y}
5786then :
5787  printf %s "(cached) " >&6
5788else $as_nop
5789  if test -n "$ac_ct_FILECMD"; then
5790  ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
5791else
5792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5793for as_dir in $PATH
5794do
5795  IFS=$as_save_IFS
5796  case $as_dir in #(((
5797    '') as_dir=./ ;;
5798    */) ;;
5799    *) as_dir=$as_dir/ ;;
5800  esac
5801    for ac_exec_ext in '' $ac_executable_extensions; do
5802  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5803    ac_cv_prog_ac_ct_FILECMD="file"
5804    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5805    break 2
5806  fi
5807done
5808  done
5809IFS=$as_save_IFS
5810
5811fi
5812fi
5813ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
5814if test -n "$ac_ct_FILECMD"; then
5815  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
5816printf "%s\n" "$ac_ct_FILECMD" >&6; }
5817else
5818  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5819printf "%s\n" "no" >&6; }
5820fi
5821
5822  if test "x$ac_ct_FILECMD" = x; then
5823    FILECMD=":"
5824  else
5825    case $cross_compiling:$ac_tool_warned in
5826yes:)
5827{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5828printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5829ac_tool_warned=yes ;;
5830esac
5831    FILECMD=$ac_ct_FILECMD
5832  fi
5833else
5834  FILECMD="$ac_cv_prog_FILECMD"
5835fi
5836
5837
5838
5839
5840
5841
5842
5843if test -n "$ac_tool_prefix"; then
5844  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5845set dummy ${ac_tool_prefix}objdump; ac_word=$2
5846{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5847printf %s "checking for $ac_word... " >&6; }
5848if test ${ac_cv_prog_OBJDUMP+y}
5849then :
5850  printf %s "(cached) " >&6
5851else $as_nop
5852  if test -n "$OBJDUMP"; then
5853  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5854else
5855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5856for as_dir in $PATH
5857do
5858  IFS=$as_save_IFS
5859  case $as_dir in #(((
5860    '') as_dir=./ ;;
5861    */) ;;
5862    *) as_dir=$as_dir/ ;;
5863  esac
5864    for ac_exec_ext in '' $ac_executable_extensions; do
5865  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5866    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5867    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5868    break 2
5869  fi
5870done
5871  done
5872IFS=$as_save_IFS
5873
5874fi
5875fi
5876OBJDUMP=$ac_cv_prog_OBJDUMP
5877if test -n "$OBJDUMP"; then
5878  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5879printf "%s\n" "$OBJDUMP" >&6; }
5880else
5881  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5882printf "%s\n" "no" >&6; }
5883fi
5884
5885
5886fi
5887if test -z "$ac_cv_prog_OBJDUMP"; then
5888  ac_ct_OBJDUMP=$OBJDUMP
5889  # Extract the first word of "objdump", so it can be a program name with args.
5890set dummy objdump; ac_word=$2
5891{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5892printf %s "checking for $ac_word... " >&6; }
5893if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
5894then :
5895  printf %s "(cached) " >&6
5896else $as_nop
5897  if test -n "$ac_ct_OBJDUMP"; then
5898  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5899else
5900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5901for as_dir in $PATH
5902do
5903  IFS=$as_save_IFS
5904  case $as_dir in #(((
5905    '') as_dir=./ ;;
5906    */) ;;
5907    *) as_dir=$as_dir/ ;;
5908  esac
5909    for ac_exec_ext in '' $ac_executable_extensions; do
5910  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5911    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5912    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5913    break 2
5914  fi
5915done
5916  done
5917IFS=$as_save_IFS
5918
5919fi
5920fi
5921ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5922if test -n "$ac_ct_OBJDUMP"; then
5923  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5924printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
5925else
5926  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5927printf "%s\n" "no" >&6; }
5928fi
5929
5930  if test "x$ac_ct_OBJDUMP" = x; then
5931    OBJDUMP="false"
5932  else
5933    case $cross_compiling:$ac_tool_warned in
5934yes:)
5935{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5936printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5937ac_tool_warned=yes ;;
5938esac
5939    OBJDUMP=$ac_ct_OBJDUMP
5940  fi
5941else
5942  OBJDUMP="$ac_cv_prog_OBJDUMP"
5943fi
5944
5945test -z "$OBJDUMP" && OBJDUMP=objdump
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5956printf %s "checking how to recognize dependent libraries... " >&6; }
5957if test ${lt_cv_deplibs_check_method+y}
5958then :
5959  printf %s "(cached) " >&6
5960else $as_nop
5961  lt_cv_file_magic_cmd='$MAGIC_CMD'
5962lt_cv_file_magic_test_file=
5963lt_cv_deplibs_check_method='unknown'
5964# Need to set the preceding variable on all platforms that support
5965# interlibrary dependencies.
5966# 'none' -- dependencies not supported.
5967# 'unknown' -- same as none, but documents that we really don't know.
5968# 'pass_all' -- all dependencies passed with no checks.
5969# 'test_compile' -- check by making test program.
5970# 'file_magic [[regex]]' -- check by looking for files in library path
5971# that responds to the $file_magic_cmd with a given extended regex.
5972# If you have 'file' or equivalent on your system and you're not sure
5973# whether 'pass_all' will *always* work, you probably want this one.
5974
5975case $host_os in
5976aix[4-9]*)
5977  lt_cv_deplibs_check_method=pass_all
5978  ;;
5979
5980beos*)
5981  lt_cv_deplibs_check_method=pass_all
5982  ;;
5983
5984bsdi[45]*)
5985  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5986  lt_cv_file_magic_cmd='$FILECMD -L'
5987  lt_cv_file_magic_test_file=/shlib/libc.so
5988  ;;
5989
5990cygwin*)
5991  # func_win32_libid is a shell function defined in ltmain.sh
5992  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5993  lt_cv_file_magic_cmd='func_win32_libid'
5994  ;;
5995
5996mingw* | pw32*)
5997  # Base MSYS/MinGW do not provide the 'file' command needed by
5998  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5999  # unless we find 'file', for example because we are cross-compiling.
6000  if ( file / ) >/dev/null 2>&1; then
6001    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6002    lt_cv_file_magic_cmd='func_win32_libid'
6003  else
6004    # Keep this pattern in sync with the one in func_win32_libid.
6005    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6006    lt_cv_file_magic_cmd='$OBJDUMP -f'
6007  fi
6008  ;;
6009
6010cegcc*)
6011  # use the weaker test based on 'objdump'. See mingw*.
6012  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6013  lt_cv_file_magic_cmd='$OBJDUMP -f'
6014  ;;
6015
6016darwin* | rhapsody*)
6017  lt_cv_deplibs_check_method=pass_all
6018  ;;
6019
6020freebsd* | dragonfly* | midnightbsd*)
6021  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6022    case $host_cpu in
6023    i*86 )
6024      # Not sure whether the presence of OpenBSD here was a mistake.
6025      # Let's accept both of them until this is cleared up.
6026      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6027      lt_cv_file_magic_cmd=$FILECMD
6028      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6029      ;;
6030    esac
6031  else
6032    lt_cv_deplibs_check_method=pass_all
6033  fi
6034  ;;
6035
6036haiku*)
6037  lt_cv_deplibs_check_method=pass_all
6038  ;;
6039
6040hpux10.20* | hpux11*)
6041  lt_cv_file_magic_cmd=$FILECMD
6042  case $host_cpu in
6043  ia64*)
6044    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6045    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6046    ;;
6047  hppa*64*)
6048    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]'
6049    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6050    ;;
6051  *)
6052    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6053    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6054    ;;
6055  esac
6056  ;;
6057
6058interix[3-9]*)
6059  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6060  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6061  ;;
6062
6063irix5* | irix6* | nonstopux*)
6064  case $LD in
6065  *-32|*"-32 ") libmagic=32-bit;;
6066  *-n32|*"-n32 ") libmagic=N32;;
6067  *-64|*"-64 ") libmagic=64-bit;;
6068  *) libmagic=never-match;;
6069  esac
6070  lt_cv_deplibs_check_method=pass_all
6071  ;;
6072
6073# This must be glibc/ELF.
6074linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6075  lt_cv_deplibs_check_method=pass_all
6076  ;;
6077
6078netbsd* | netbsdelf*-gnu)
6079  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6080    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6081  else
6082    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6083  fi
6084  ;;
6085
6086newos6*)
6087  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6088  lt_cv_file_magic_cmd=$FILECMD
6089  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6090  ;;
6091
6092*nto* | *qnx*)
6093  lt_cv_deplibs_check_method=pass_all
6094  ;;
6095
6096openbsd* | bitrig*)
6097  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6098    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6099  else
6100    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6101  fi
6102  ;;
6103
6104osf3* | osf4* | osf5*)
6105  lt_cv_deplibs_check_method=pass_all
6106  ;;
6107
6108rdos*)
6109  lt_cv_deplibs_check_method=pass_all
6110  ;;
6111
6112solaris*)
6113  lt_cv_deplibs_check_method=pass_all
6114  ;;
6115
6116sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6117  lt_cv_deplibs_check_method=pass_all
6118  ;;
6119
6120sysv4 | sysv4.3*)
6121  case $host_vendor in
6122  motorola)
6123    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]'
6124    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6125    ;;
6126  ncr)
6127    lt_cv_deplibs_check_method=pass_all
6128    ;;
6129  sequent)
6130    lt_cv_file_magic_cmd='/bin/file'
6131    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6132    ;;
6133  sni)
6134    lt_cv_file_magic_cmd='/bin/file'
6135    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6136    lt_cv_file_magic_test_file=/lib/libc.so
6137    ;;
6138  siemens)
6139    lt_cv_deplibs_check_method=pass_all
6140    ;;
6141  pc)
6142    lt_cv_deplibs_check_method=pass_all
6143    ;;
6144  esac
6145  ;;
6146
6147tpf*)
6148  lt_cv_deplibs_check_method=pass_all
6149  ;;
6150os2*)
6151  lt_cv_deplibs_check_method=pass_all
6152  ;;
6153esac
6154
6155fi
6156{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6157printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6158
6159file_magic_glob=
6160want_nocaseglob=no
6161if test "$build" = "$host"; then
6162  case $host_os in
6163  mingw* | pw32*)
6164    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6165      want_nocaseglob=yes
6166    else
6167      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6168    fi
6169    ;;
6170  esac
6171fi
6172
6173file_magic_cmd=$lt_cv_file_magic_cmd
6174deplibs_check_method=$lt_cv_deplibs_check_method
6175test -z "$deplibs_check_method" && deplibs_check_method=unknown
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198if test -n "$ac_tool_prefix"; then
6199  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6200set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6201{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6202printf %s "checking for $ac_word... " >&6; }
6203if test ${ac_cv_prog_DLLTOOL+y}
6204then :
6205  printf %s "(cached) " >&6
6206else $as_nop
6207  if test -n "$DLLTOOL"; then
6208  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6209else
6210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6211for as_dir in $PATH
6212do
6213  IFS=$as_save_IFS
6214  case $as_dir in #(((
6215    '') as_dir=./ ;;
6216    */) ;;
6217    *) as_dir=$as_dir/ ;;
6218  esac
6219    for ac_exec_ext in '' $ac_executable_extensions; do
6220  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6221    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6222    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6223    break 2
6224  fi
6225done
6226  done
6227IFS=$as_save_IFS
6228
6229fi
6230fi
6231DLLTOOL=$ac_cv_prog_DLLTOOL
6232if test -n "$DLLTOOL"; then
6233  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6234printf "%s\n" "$DLLTOOL" >&6; }
6235else
6236  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6237printf "%s\n" "no" >&6; }
6238fi
6239
6240
6241fi
6242if test -z "$ac_cv_prog_DLLTOOL"; then
6243  ac_ct_DLLTOOL=$DLLTOOL
6244  # Extract the first word of "dlltool", so it can be a program name with args.
6245set dummy dlltool; ac_word=$2
6246{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6247printf %s "checking for $ac_word... " >&6; }
6248if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6249then :
6250  printf %s "(cached) " >&6
6251else $as_nop
6252  if test -n "$ac_ct_DLLTOOL"; then
6253  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6254else
6255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6256for as_dir in $PATH
6257do
6258  IFS=$as_save_IFS
6259  case $as_dir in #(((
6260    '') as_dir=./ ;;
6261    */) ;;
6262    *) as_dir=$as_dir/ ;;
6263  esac
6264    for ac_exec_ext in '' $ac_executable_extensions; do
6265  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6266    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6267    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6268    break 2
6269  fi
6270done
6271  done
6272IFS=$as_save_IFS
6273
6274fi
6275fi
6276ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6277if test -n "$ac_ct_DLLTOOL"; then
6278  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6279printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6280else
6281  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6282printf "%s\n" "no" >&6; }
6283fi
6284
6285  if test "x$ac_ct_DLLTOOL" = x; then
6286    DLLTOOL="false"
6287  else
6288    case $cross_compiling:$ac_tool_warned in
6289yes:)
6290{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6291printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6292ac_tool_warned=yes ;;
6293esac
6294    DLLTOOL=$ac_ct_DLLTOOL
6295  fi
6296else
6297  DLLTOOL="$ac_cv_prog_DLLTOOL"
6298fi
6299
6300test -z "$DLLTOOL" && DLLTOOL=dlltool
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6312printf %s "checking how to associate runtime and link libraries... " >&6; }
6313if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6314then :
6315  printf %s "(cached) " >&6
6316else $as_nop
6317  lt_cv_sharedlib_from_linklib_cmd='unknown'
6318
6319case $host_os in
6320cygwin* | mingw* | pw32* | cegcc*)
6321  # two different shell functions defined in ltmain.sh;
6322  # decide which one to use based on capabilities of $DLLTOOL
6323  case `$DLLTOOL --help 2>&1` in
6324  *--identify-strict*)
6325    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6326    ;;
6327  *)
6328    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6329    ;;
6330  esac
6331  ;;
6332*)
6333  # fallback: assume linklib IS sharedlib
6334  lt_cv_sharedlib_from_linklib_cmd=$ECHO
6335  ;;
6336esac
6337
6338fi
6339{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6340printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6341sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6342test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6343
6344
6345
6346
6347
6348
6349
6350
6351if test -n "$ac_tool_prefix"; then
6352  for ac_prog in ar
6353  do
6354    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6355set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6356{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6357printf %s "checking for $ac_word... " >&6; }
6358if test ${ac_cv_prog_AR+y}
6359then :
6360  printf %s "(cached) " >&6
6361else $as_nop
6362  if test -n "$AR"; then
6363  ac_cv_prog_AR="$AR" # Let the user override the test.
6364else
6365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6366for as_dir in $PATH
6367do
6368  IFS=$as_save_IFS
6369  case $as_dir in #(((
6370    '') as_dir=./ ;;
6371    */) ;;
6372    *) as_dir=$as_dir/ ;;
6373  esac
6374    for ac_exec_ext in '' $ac_executable_extensions; do
6375  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6376    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6377    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6378    break 2
6379  fi
6380done
6381  done
6382IFS=$as_save_IFS
6383
6384fi
6385fi
6386AR=$ac_cv_prog_AR
6387if test -n "$AR"; then
6388  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6389printf "%s\n" "$AR" >&6; }
6390else
6391  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6392printf "%s\n" "no" >&6; }
6393fi
6394
6395
6396    test -n "$AR" && break
6397  done
6398fi
6399if test -z "$AR"; then
6400  ac_ct_AR=$AR
6401  for ac_prog in ar
6402do
6403  # Extract the first word of "$ac_prog", so it can be a program name with args.
6404set dummy $ac_prog; ac_word=$2
6405{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6406printf %s "checking for $ac_word... " >&6; }
6407if test ${ac_cv_prog_ac_ct_AR+y}
6408then :
6409  printf %s "(cached) " >&6
6410else $as_nop
6411  if test -n "$ac_ct_AR"; then
6412  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6413else
6414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6415for as_dir in $PATH
6416do
6417  IFS=$as_save_IFS
6418  case $as_dir in #(((
6419    '') as_dir=./ ;;
6420    */) ;;
6421    *) as_dir=$as_dir/ ;;
6422  esac
6423    for ac_exec_ext in '' $ac_executable_extensions; do
6424  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6425    ac_cv_prog_ac_ct_AR="$ac_prog"
6426    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6427    break 2
6428  fi
6429done
6430  done
6431IFS=$as_save_IFS
6432
6433fi
6434fi
6435ac_ct_AR=$ac_cv_prog_ac_ct_AR
6436if test -n "$ac_ct_AR"; then
6437  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6438printf "%s\n" "$ac_ct_AR" >&6; }
6439else
6440  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6441printf "%s\n" "no" >&6; }
6442fi
6443
6444
6445  test -n "$ac_ct_AR" && break
6446done
6447
6448  if test "x$ac_ct_AR" = x; then
6449    AR="false"
6450  else
6451    case $cross_compiling:$ac_tool_warned in
6452yes:)
6453{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6454printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6455ac_tool_warned=yes ;;
6456esac
6457    AR=$ac_ct_AR
6458  fi
6459fi
6460
6461: ${AR=ar}
6462
6463
6464
6465
6466
6467
6468# Use ARFLAGS variable as AR's operation code to sync the variable naming with
6469# Automake.  If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6470# higher priority because thats what people were doing historically (setting
6471# ARFLAGS for automake and AR_FLAGS for libtool).  FIXME: Make the AR_FLAGS
6472# variable obsoleted/removed.
6473
6474test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6475lt_ar_flags=$AR_FLAGS
6476
6477
6478
6479
6480
6481
6482# Make AR_FLAGS overridable by 'make ARFLAGS='.  Don't try to run-time override
6483# by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6484
6485
6486
6487
6488
6489
6490{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6491printf %s "checking for archiver @FILE support... " >&6; }
6492if test ${lt_cv_ar_at_file+y}
6493then :
6494  printf %s "(cached) " >&6
6495else $as_nop
6496  lt_cv_ar_at_file=no
6497   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6498/* end confdefs.h.  */
6499
6500int
6501main (void)
6502{
6503
6504  ;
6505  return 0;
6506}
6507_ACEOF
6508if ac_fn_c_try_compile "$LINENO"
6509then :
6510  echo conftest.$ac_objext > conftest.lst
6511      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6512      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6513  (eval $lt_ar_try) 2>&5
6514  ac_status=$?
6515  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6516  test $ac_status = 0; }
6517      if test 0 -eq "$ac_status"; then
6518	# Ensure the archiver fails upon bogus file names.
6519	rm -f conftest.$ac_objext libconftest.a
6520	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6521  (eval $lt_ar_try) 2>&5
6522  ac_status=$?
6523  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6524  test $ac_status = 0; }
6525	if test 0 -ne "$ac_status"; then
6526          lt_cv_ar_at_file=@
6527        fi
6528      fi
6529      rm -f conftest.* libconftest.a
6530
6531fi
6532rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6533
6534fi
6535{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6536printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6537
6538if test no = "$lt_cv_ar_at_file"; then
6539  archiver_list_spec=
6540else
6541  archiver_list_spec=$lt_cv_ar_at_file
6542fi
6543
6544
6545
6546
6547
6548
6549
6550if test -n "$ac_tool_prefix"; then
6551  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6552set dummy ${ac_tool_prefix}strip; ac_word=$2
6553{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6554printf %s "checking for $ac_word... " >&6; }
6555if test ${ac_cv_prog_STRIP+y}
6556then :
6557  printf %s "(cached) " >&6
6558else $as_nop
6559  if test -n "$STRIP"; then
6560  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6561else
6562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6563for as_dir in $PATH
6564do
6565  IFS=$as_save_IFS
6566  case $as_dir in #(((
6567    '') as_dir=./ ;;
6568    */) ;;
6569    *) as_dir=$as_dir/ ;;
6570  esac
6571    for ac_exec_ext in '' $ac_executable_extensions; do
6572  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6573    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6574    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6575    break 2
6576  fi
6577done
6578  done
6579IFS=$as_save_IFS
6580
6581fi
6582fi
6583STRIP=$ac_cv_prog_STRIP
6584if test -n "$STRIP"; then
6585  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6586printf "%s\n" "$STRIP" >&6; }
6587else
6588  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6589printf "%s\n" "no" >&6; }
6590fi
6591
6592
6593fi
6594if test -z "$ac_cv_prog_STRIP"; then
6595  ac_ct_STRIP=$STRIP
6596  # Extract the first word of "strip", so it can be a program name with args.
6597set dummy strip; ac_word=$2
6598{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6599printf %s "checking for $ac_word... " >&6; }
6600if test ${ac_cv_prog_ac_ct_STRIP+y}
6601then :
6602  printf %s "(cached) " >&6
6603else $as_nop
6604  if test -n "$ac_ct_STRIP"; then
6605  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6606else
6607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6608for as_dir in $PATH
6609do
6610  IFS=$as_save_IFS
6611  case $as_dir in #(((
6612    '') as_dir=./ ;;
6613    */) ;;
6614    *) as_dir=$as_dir/ ;;
6615  esac
6616    for ac_exec_ext in '' $ac_executable_extensions; do
6617  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6618    ac_cv_prog_ac_ct_STRIP="strip"
6619    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6620    break 2
6621  fi
6622done
6623  done
6624IFS=$as_save_IFS
6625
6626fi
6627fi
6628ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6629if test -n "$ac_ct_STRIP"; then
6630  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6631printf "%s\n" "$ac_ct_STRIP" >&6; }
6632else
6633  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6634printf "%s\n" "no" >&6; }
6635fi
6636
6637  if test "x$ac_ct_STRIP" = x; then
6638    STRIP=":"
6639  else
6640    case $cross_compiling:$ac_tool_warned in
6641yes:)
6642{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6643printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6644ac_tool_warned=yes ;;
6645esac
6646    STRIP=$ac_ct_STRIP
6647  fi
6648else
6649  STRIP="$ac_cv_prog_STRIP"
6650fi
6651
6652test -z "$STRIP" && STRIP=:
6653
6654
6655
6656
6657
6658
6659if test -n "$ac_tool_prefix"; then
6660  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6661set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6662{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6663printf %s "checking for $ac_word... " >&6; }
6664if test ${ac_cv_prog_RANLIB+y}
6665then :
6666  printf %s "(cached) " >&6
6667else $as_nop
6668  if test -n "$RANLIB"; then
6669  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6670else
6671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6672for as_dir in $PATH
6673do
6674  IFS=$as_save_IFS
6675  case $as_dir in #(((
6676    '') as_dir=./ ;;
6677    */) ;;
6678    *) as_dir=$as_dir/ ;;
6679  esac
6680    for ac_exec_ext in '' $ac_executable_extensions; do
6681  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6682    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6683    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6684    break 2
6685  fi
6686done
6687  done
6688IFS=$as_save_IFS
6689
6690fi
6691fi
6692RANLIB=$ac_cv_prog_RANLIB
6693if test -n "$RANLIB"; then
6694  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6695printf "%s\n" "$RANLIB" >&6; }
6696else
6697  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6698printf "%s\n" "no" >&6; }
6699fi
6700
6701
6702fi
6703if test -z "$ac_cv_prog_RANLIB"; then
6704  ac_ct_RANLIB=$RANLIB
6705  # Extract the first word of "ranlib", so it can be a program name with args.
6706set dummy ranlib; ac_word=$2
6707{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6708printf %s "checking for $ac_word... " >&6; }
6709if test ${ac_cv_prog_ac_ct_RANLIB+y}
6710then :
6711  printf %s "(cached) " >&6
6712else $as_nop
6713  if test -n "$ac_ct_RANLIB"; then
6714  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6715else
6716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6717for as_dir in $PATH
6718do
6719  IFS=$as_save_IFS
6720  case $as_dir in #(((
6721    '') as_dir=./ ;;
6722    */) ;;
6723    *) as_dir=$as_dir/ ;;
6724  esac
6725    for ac_exec_ext in '' $ac_executable_extensions; do
6726  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6727    ac_cv_prog_ac_ct_RANLIB="ranlib"
6728    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6729    break 2
6730  fi
6731done
6732  done
6733IFS=$as_save_IFS
6734
6735fi
6736fi
6737ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6738if test -n "$ac_ct_RANLIB"; then
6739  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6740printf "%s\n" "$ac_ct_RANLIB" >&6; }
6741else
6742  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6743printf "%s\n" "no" >&6; }
6744fi
6745
6746  if test "x$ac_ct_RANLIB" = x; then
6747    RANLIB=":"
6748  else
6749    case $cross_compiling:$ac_tool_warned in
6750yes:)
6751{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6752printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6753ac_tool_warned=yes ;;
6754esac
6755    RANLIB=$ac_ct_RANLIB
6756  fi
6757else
6758  RANLIB="$ac_cv_prog_RANLIB"
6759fi
6760
6761test -z "$RANLIB" && RANLIB=:
6762
6763
6764
6765
6766
6767
6768# Determine commands to create old-style static archives.
6769old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6770old_postinstall_cmds='chmod 644 $oldlib'
6771old_postuninstall_cmds=
6772
6773if test -n "$RANLIB"; then
6774  case $host_os in
6775  bitrig* | openbsd*)
6776    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6777    ;;
6778  *)
6779    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6780    ;;
6781  esac
6782  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6783fi
6784
6785case $host_os in
6786  darwin*)
6787    lock_old_archive_extraction=yes ;;
6788  *)
6789    lock_old_archive_extraction=no ;;
6790esac
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830# If no C compiler was specified, use CC.
6831LTCC=${LTCC-"$CC"}
6832
6833# If no C compiler flags were specified, use CFLAGS.
6834LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6835
6836# Allow CC to be a program name with arguments.
6837compiler=$CC
6838
6839
6840# Check for command to grab the raw symbol name followed by C symbol from nm.
6841{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6842printf %s "checking command to parse $NM output from $compiler object... " >&6; }
6843if test ${lt_cv_sys_global_symbol_pipe+y}
6844then :
6845  printf %s "(cached) " >&6
6846else $as_nop
6847
6848# These are sane defaults that work on at least a few old systems.
6849# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6850
6851# Character class describing NM global symbol codes.
6852symcode='[BCDEGRST]'
6853
6854# Regexp to match symbols that can be accessed directly from C.
6855sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6856
6857# Define system-specific variables.
6858case $host_os in
6859aix*)
6860  symcode='[BCDT]'
6861  ;;
6862cygwin* | mingw* | pw32* | cegcc*)
6863  symcode='[ABCDGISTW]'
6864  ;;
6865hpux*)
6866  if test ia64 = "$host_cpu"; then
6867    symcode='[ABCDEGRST]'
6868  fi
6869  ;;
6870irix* | nonstopux*)
6871  symcode='[BCDEGRST]'
6872  ;;
6873osf*)
6874  symcode='[BCDEGQRST]'
6875  ;;
6876solaris*)
6877  symcode='[BDRT]'
6878  ;;
6879sco3.2v5*)
6880  symcode='[DT]'
6881  ;;
6882sysv4.2uw2*)
6883  symcode='[DT]'
6884  ;;
6885sysv5* | sco5v6* | unixware* | OpenUNIX*)
6886  symcode='[ABDT]'
6887  ;;
6888sysv4)
6889  symcode='[DFNSTU]'
6890  ;;
6891esac
6892
6893# If we're using GNU nm, then use its standard symbol codes.
6894case `$NM -V 2>&1` in
6895*GNU* | *'with BFD'*)
6896  symcode='[ABCDGIRSTW]' ;;
6897esac
6898
6899if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6900  # Gets list of data symbols to import.
6901  lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
6902  # Adjust the below global symbol transforms to fixup imported variables.
6903  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6904  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6905  lt_c_name_lib_hook="\
6906  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6907  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6908else
6909  # Disable hooks by default.
6910  lt_cv_sys_global_symbol_to_import=
6911  lt_cdecl_hook=
6912  lt_c_name_hook=
6913  lt_c_name_lib_hook=
6914fi
6915
6916# Transform an extracted symbol line into a proper C declaration.
6917# Some systems (esp. on ia64) link data and code symbols differently,
6918# so use this general approach.
6919lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
6920$lt_cdecl_hook\
6921" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6922" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6923
6924# Transform an extracted symbol line into symbol name and symbol address
6925lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
6926$lt_c_name_hook\
6927" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6928" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6929
6930# Transform an extracted symbol line into symbol name with lib prefix and
6931# symbol address.
6932lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
6933$lt_c_name_lib_hook\
6934" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6935" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6936" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6937
6938# Handle CRLF in mingw tool chain
6939opt_cr=
6940case $build_os in
6941mingw*)
6942  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6943  ;;
6944esac
6945
6946# Try without a prefix underscore, then with it.
6947for ac_symprfx in "" "_"; do
6948
6949  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6950  symxfrm="\\1 $ac_symprfx\\2 \\2"
6951
6952  # Write the raw and C identifiers.
6953  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6954    # Fake it for dumpbin and say T for any non-static function,
6955    # D for any global variable and I for any imported variable.
6956    # Also find C++ and __fastcall symbols from MSVC++ or ICC,
6957    # which start with @ or ?.
6958    lt_cv_sys_global_symbol_pipe="$AWK '"\
6959"     {last_section=section; section=\$ 3};"\
6960"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6961"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6962"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6963"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6964"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6965"     \$ 0!~/External *\|/{next};"\
6966"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6967"     {if(hide[section]) next};"\
6968"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6969"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6970"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6971"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6972"     ' prfx=^$ac_symprfx"
6973  else
6974    lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6975  fi
6976  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
6977
6978  # Check to see that the pipe works correctly.
6979  pipe_works=no
6980
6981  rm -f conftest*
6982  cat > conftest.$ac_ext <<_LT_EOF
6983#ifdef __cplusplus
6984extern "C" {
6985#endif
6986char nm_test_var;
6987void nm_test_func(void);
6988void nm_test_func(void){}
6989#ifdef __cplusplus
6990}
6991#endif
6992int main(){nm_test_var='a';nm_test_func();return(0);}
6993_LT_EOF
6994
6995  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6996  (eval $ac_compile) 2>&5
6997  ac_status=$?
6998  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6999  test $ac_status = 0; }; then
7000    # Now try to grab the symbols.
7001    nlist=conftest.nm
7002    $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
7003    if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
7004      # Try sorting and uniquifying the output.
7005      if sort "$nlist" | uniq > "$nlist"T; then
7006	mv -f "$nlist"T "$nlist"
7007      else
7008	rm -f "$nlist"T
7009      fi
7010
7011      # Make sure that we snagged all the symbols we need.
7012      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7013	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7014	  cat <<_LT_EOF > conftest.$ac_ext
7015/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7016#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7017/* DATA imports from DLLs on WIN32 can't be const, because runtime
7018   relocations are performed -- see ld's documentation on pseudo-relocs.  */
7019# define LT_DLSYM_CONST
7020#elif defined __osf__
7021/* This system does not cope well with relocations in const data.  */
7022# define LT_DLSYM_CONST
7023#else
7024# define LT_DLSYM_CONST const
7025#endif
7026
7027#ifdef __cplusplus
7028extern "C" {
7029#endif
7030
7031_LT_EOF
7032	  # Now generate the symbol file.
7033	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7034
7035	  cat <<_LT_EOF >> conftest.$ac_ext
7036
7037/* The mapping between symbol names and symbols.  */
7038LT_DLSYM_CONST struct {
7039  const char *name;
7040  void       *address;
7041}
7042lt__PROGRAM__LTX_preloaded_symbols[] =
7043{
7044  { "@PROGRAM@", (void *) 0 },
7045_LT_EOF
7046	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7047	  cat <<\_LT_EOF >> conftest.$ac_ext
7048  {0, (void *) 0}
7049};
7050
7051/* This works around a problem in FreeBSD linker */
7052#ifdef FREEBSD_WORKAROUND
7053static const void *lt_preloaded_setup() {
7054  return lt__PROGRAM__LTX_preloaded_symbols;
7055}
7056#endif
7057
7058#ifdef __cplusplus
7059}
7060#endif
7061_LT_EOF
7062	  # Now try linking the two files.
7063	  mv conftest.$ac_objext conftstm.$ac_objext
7064	  lt_globsym_save_LIBS=$LIBS
7065	  lt_globsym_save_CFLAGS=$CFLAGS
7066	  LIBS=conftstm.$ac_objext
7067	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7068	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7069  (eval $ac_link) 2>&5
7070  ac_status=$?
7071  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7072  test $ac_status = 0; } && test -s conftest$ac_exeext; then
7073	    pipe_works=yes
7074	  fi
7075	  LIBS=$lt_globsym_save_LIBS
7076	  CFLAGS=$lt_globsym_save_CFLAGS
7077	else
7078	  echo "cannot find nm_test_func in $nlist" >&5
7079	fi
7080      else
7081	echo "cannot find nm_test_var in $nlist" >&5
7082      fi
7083    else
7084      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7085    fi
7086  else
7087    echo "$progname: failed program was:" >&5
7088    cat conftest.$ac_ext >&5
7089  fi
7090  rm -rf conftest* conftst*
7091
7092  # Do not use the global_symbol_pipe unless it works.
7093  if test yes = "$pipe_works"; then
7094    break
7095  else
7096    lt_cv_sys_global_symbol_pipe=
7097  fi
7098done
7099
7100fi
7101
7102if test -z "$lt_cv_sys_global_symbol_pipe"; then
7103  lt_cv_sys_global_symbol_to_cdecl=
7104fi
7105if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7106  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7107printf "%s\n" "failed" >&6; }
7108else
7109  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7110printf "%s\n" "ok" >&6; }
7111fi
7112
7113# Response file support.
7114if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7115  nm_file_list_spec='@'
7116elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7117  nm_file_list_spec='@'
7118fi
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7157printf %s "checking for sysroot... " >&6; }
7158
7159# Check whether --with-sysroot was given.
7160if test ${with_sysroot+y}
7161then :
7162  withval=$with_sysroot;
7163else $as_nop
7164  with_sysroot=no
7165fi
7166
7167
7168lt_sysroot=
7169case $with_sysroot in #(
7170 yes)
7171   if test yes = "$GCC"; then
7172     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7173   fi
7174   ;; #(
7175 /*)
7176   lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7177   ;; #(
7178 no|'')
7179   ;; #(
7180 *)
7181   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7182printf "%s\n" "$with_sysroot" >&6; }
7183   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7184   ;;
7185esac
7186
7187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7188printf "%s\n" "${lt_sysroot:-no}" >&6; }
7189
7190
7191
7192
7193
7194{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7195printf %s "checking for a working dd... " >&6; }
7196if test ${ac_cv_path_lt_DD+y}
7197then :
7198  printf %s "(cached) " >&6
7199else $as_nop
7200  printf 0123456789abcdef0123456789abcdef >conftest.i
7201cat conftest.i conftest.i >conftest2.i
7202: ${lt_DD:=$DD}
7203if test -z "$lt_DD"; then
7204  ac_path_lt_DD_found=false
7205  # Loop through the user's path and test for each of PROGNAME-LIST
7206  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7207for as_dir in $PATH
7208do
7209  IFS=$as_save_IFS
7210  case $as_dir in #(((
7211    '') as_dir=./ ;;
7212    */) ;;
7213    *) as_dir=$as_dir/ ;;
7214  esac
7215    for ac_prog in dd
7216   do
7217    for ac_exec_ext in '' $ac_executable_extensions; do
7218      ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7219      as_fn_executable_p "$ac_path_lt_DD" || continue
7220if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7221  cmp -s conftest.i conftest.out \
7222  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7223fi
7224      $ac_path_lt_DD_found && break 3
7225    done
7226  done
7227  done
7228IFS=$as_save_IFS
7229  if test -z "$ac_cv_path_lt_DD"; then
7230    :
7231  fi
7232else
7233  ac_cv_path_lt_DD=$lt_DD
7234fi
7235
7236rm -f conftest.i conftest2.i conftest.out
7237fi
7238{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7239printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7240
7241
7242{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7243printf %s "checking how to truncate binary pipes... " >&6; }
7244if test ${lt_cv_truncate_bin+y}
7245then :
7246  printf %s "(cached) " >&6
7247else $as_nop
7248  printf 0123456789abcdef0123456789abcdef >conftest.i
7249cat conftest.i conftest.i >conftest2.i
7250lt_cv_truncate_bin=
7251if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7252  cmp -s conftest.i conftest.out \
7253  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7254fi
7255rm -f conftest.i conftest2.i conftest.out
7256test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7257fi
7258{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7259printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7260
7261
7262
7263
7264
7265
7266
7267# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7268func_cc_basename ()
7269{
7270    for cc_temp in $*""; do
7271      case $cc_temp in
7272        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7273        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7274        \-*) ;;
7275        *) break;;
7276      esac
7277    done
7278    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7279}
7280
7281# Check whether --enable-libtool-lock was given.
7282if test ${enable_libtool_lock+y}
7283then :
7284  enableval=$enable_libtool_lock;
7285fi
7286
7287test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7288
7289# Some flags need to be propagated to the compiler or linker for good
7290# libtool support.
7291case $host in
7292ia64-*-hpux*)
7293  # Find out what ABI is being produced by ac_compile, and set mode
7294  # options accordingly.
7295  echo 'int i;' > conftest.$ac_ext
7296  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7297  (eval $ac_compile) 2>&5
7298  ac_status=$?
7299  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7300  test $ac_status = 0; }; then
7301    case `$FILECMD conftest.$ac_objext` in
7302      *ELF-32*)
7303	HPUX_IA64_MODE=32
7304	;;
7305      *ELF-64*)
7306	HPUX_IA64_MODE=64
7307	;;
7308    esac
7309  fi
7310  rm -rf conftest*
7311  ;;
7312*-*-irix6*)
7313  # Find out what ABI is being produced by ac_compile, and set linker
7314  # options accordingly.
7315  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7316  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7317  (eval $ac_compile) 2>&5
7318  ac_status=$?
7319  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7320  test $ac_status = 0; }; then
7321    if test yes = "$lt_cv_prog_gnu_ld"; then
7322      case `$FILECMD conftest.$ac_objext` in
7323	*32-bit*)
7324	  LD="${LD-ld} -melf32bsmip"
7325	  ;;
7326	*N32*)
7327	  LD="${LD-ld} -melf32bmipn32"
7328	  ;;
7329	*64-bit*)
7330	  LD="${LD-ld} -melf64bmip"
7331	;;
7332      esac
7333    else
7334      case `$FILECMD conftest.$ac_objext` in
7335	*32-bit*)
7336	  LD="${LD-ld} -32"
7337	  ;;
7338	*N32*)
7339	  LD="${LD-ld} -n32"
7340	  ;;
7341	*64-bit*)
7342	  LD="${LD-ld} -64"
7343	  ;;
7344      esac
7345    fi
7346  fi
7347  rm -rf conftest*
7348  ;;
7349
7350mips64*-*linux*)
7351  # Find out what ABI is being produced by ac_compile, and set linker
7352  # options accordingly.
7353  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7354  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7355  (eval $ac_compile) 2>&5
7356  ac_status=$?
7357  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7358  test $ac_status = 0; }; then
7359    emul=elf
7360    case `$FILECMD conftest.$ac_objext` in
7361      *32-bit*)
7362	emul="${emul}32"
7363	;;
7364      *64-bit*)
7365	emul="${emul}64"
7366	;;
7367    esac
7368    case `$FILECMD conftest.$ac_objext` in
7369      *MSB*)
7370	emul="${emul}btsmip"
7371	;;
7372      *LSB*)
7373	emul="${emul}ltsmip"
7374	;;
7375    esac
7376    case `$FILECMD conftest.$ac_objext` in
7377      *N32*)
7378	emul="${emul}n32"
7379	;;
7380    esac
7381    LD="${LD-ld} -m $emul"
7382  fi
7383  rm -rf conftest*
7384  ;;
7385
7386x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7387s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7388  # Find out what ABI is being produced by ac_compile, and set linker
7389  # options accordingly.  Note that the listed cases only cover the
7390  # situations where additional linker options are needed (such as when
7391  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7392  # vice versa); the common cases where no linker options are needed do
7393  # not appear in the list.
7394  echo 'int i;' > conftest.$ac_ext
7395  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7396  (eval $ac_compile) 2>&5
7397  ac_status=$?
7398  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7399  test $ac_status = 0; }; then
7400    case `$FILECMD conftest.o` in
7401      *32-bit*)
7402	case $host in
7403	  x86_64-*kfreebsd*-gnu)
7404	    LD="${LD-ld} -m elf_i386_fbsd"
7405	    ;;
7406	  x86_64-*linux*)
7407	    case `$FILECMD conftest.o` in
7408	      *x86-64*)
7409		LD="${LD-ld} -m elf32_x86_64"
7410		;;
7411	      *)
7412		LD="${LD-ld} -m elf_i386"
7413		;;
7414	    esac
7415	    ;;
7416	  powerpc64le-*linux*)
7417	    LD="${LD-ld} -m elf32lppclinux"
7418	    ;;
7419	  powerpc64-*linux*)
7420	    LD="${LD-ld} -m elf32ppclinux"
7421	    ;;
7422	  s390x-*linux*)
7423	    LD="${LD-ld} -m elf_s390"
7424	    ;;
7425	  sparc64-*linux*)
7426	    LD="${LD-ld} -m elf32_sparc"
7427	    ;;
7428	esac
7429	;;
7430      *64-bit*)
7431	case $host in
7432	  x86_64-*kfreebsd*-gnu)
7433	    LD="${LD-ld} -m elf_x86_64_fbsd"
7434	    ;;
7435	  x86_64-*linux*)
7436	    LD="${LD-ld} -m elf_x86_64"
7437	    ;;
7438	  powerpcle-*linux*)
7439	    LD="${LD-ld} -m elf64lppc"
7440	    ;;
7441	  powerpc-*linux*)
7442	    LD="${LD-ld} -m elf64ppc"
7443	    ;;
7444	  s390*-*linux*|s390*-*tpf*)
7445	    LD="${LD-ld} -m elf64_s390"
7446	    ;;
7447	  sparc*-*linux*)
7448	    LD="${LD-ld} -m elf64_sparc"
7449	    ;;
7450	esac
7451	;;
7452    esac
7453  fi
7454  rm -rf conftest*
7455  ;;
7456
7457*-*-sco3.2v5*)
7458  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7459  SAVE_CFLAGS=$CFLAGS
7460  CFLAGS="$CFLAGS -belf"
7461  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7462printf %s "checking whether the C compiler needs -belf... " >&6; }
7463if test ${lt_cv_cc_needs_belf+y}
7464then :
7465  printf %s "(cached) " >&6
7466else $as_nop
7467  ac_ext=c
7468ac_cpp='$CPP $CPPFLAGS'
7469ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7470ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7471ac_compiler_gnu=$ac_cv_c_compiler_gnu
7472
7473     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7474/* end confdefs.h.  */
7475
7476int
7477main (void)
7478{
7479
7480  ;
7481  return 0;
7482}
7483_ACEOF
7484if ac_fn_c_try_link "$LINENO"
7485then :
7486  lt_cv_cc_needs_belf=yes
7487else $as_nop
7488  lt_cv_cc_needs_belf=no
7489fi
7490rm -f core conftest.err conftest.$ac_objext conftest.beam \
7491    conftest$ac_exeext conftest.$ac_ext
7492     ac_ext=c
7493ac_cpp='$CPP $CPPFLAGS'
7494ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7495ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7496ac_compiler_gnu=$ac_cv_c_compiler_gnu
7497
7498fi
7499{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7500printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7501  if test yes != "$lt_cv_cc_needs_belf"; then
7502    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7503    CFLAGS=$SAVE_CFLAGS
7504  fi
7505  ;;
7506*-*solaris*)
7507  # Find out what ABI is being produced by ac_compile, and set linker
7508  # options accordingly.
7509  echo 'int i;' > conftest.$ac_ext
7510  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7511  (eval $ac_compile) 2>&5
7512  ac_status=$?
7513  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7514  test $ac_status = 0; }; then
7515    case `$FILECMD conftest.o` in
7516    *64-bit*)
7517      case $lt_cv_prog_gnu_ld in
7518      yes*)
7519        case $host in
7520        i?86-*-solaris*|x86_64-*-solaris*)
7521          LD="${LD-ld} -m elf_x86_64"
7522          ;;
7523        sparc*-*-solaris*)
7524          LD="${LD-ld} -m elf64_sparc"
7525          ;;
7526        esac
7527        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7528        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7529          LD=${LD-ld}_sol2
7530        fi
7531        ;;
7532      *)
7533	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7534	  LD="${LD-ld} -64"
7535	fi
7536	;;
7537      esac
7538      ;;
7539    esac
7540  fi
7541  rm -rf conftest*
7542  ;;
7543esac
7544
7545need_locks=$enable_libtool_lock
7546
7547if test -n "$ac_tool_prefix"; then
7548  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7549set dummy ${ac_tool_prefix}mt; ac_word=$2
7550{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7551printf %s "checking for $ac_word... " >&6; }
7552if test ${ac_cv_prog_MANIFEST_TOOL+y}
7553then :
7554  printf %s "(cached) " >&6
7555else $as_nop
7556  if test -n "$MANIFEST_TOOL"; then
7557  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7558else
7559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7560for as_dir in $PATH
7561do
7562  IFS=$as_save_IFS
7563  case $as_dir in #(((
7564    '') as_dir=./ ;;
7565    */) ;;
7566    *) as_dir=$as_dir/ ;;
7567  esac
7568    for ac_exec_ext in '' $ac_executable_extensions; do
7569  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7570    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7571    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7572    break 2
7573  fi
7574done
7575  done
7576IFS=$as_save_IFS
7577
7578fi
7579fi
7580MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7581if test -n "$MANIFEST_TOOL"; then
7582  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7583printf "%s\n" "$MANIFEST_TOOL" >&6; }
7584else
7585  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7586printf "%s\n" "no" >&6; }
7587fi
7588
7589
7590fi
7591if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7592  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7593  # Extract the first word of "mt", so it can be a program name with args.
7594set dummy mt; ac_word=$2
7595{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7596printf %s "checking for $ac_word... " >&6; }
7597if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7598then :
7599  printf %s "(cached) " >&6
7600else $as_nop
7601  if test -n "$ac_ct_MANIFEST_TOOL"; then
7602  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7603else
7604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7605for as_dir in $PATH
7606do
7607  IFS=$as_save_IFS
7608  case $as_dir in #(((
7609    '') as_dir=./ ;;
7610    */) ;;
7611    *) as_dir=$as_dir/ ;;
7612  esac
7613    for ac_exec_ext in '' $ac_executable_extensions; do
7614  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7615    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7616    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7617    break 2
7618  fi
7619done
7620  done
7621IFS=$as_save_IFS
7622
7623fi
7624fi
7625ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7626if test -n "$ac_ct_MANIFEST_TOOL"; then
7627  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7628printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7629else
7630  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7631printf "%s\n" "no" >&6; }
7632fi
7633
7634  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7635    MANIFEST_TOOL=":"
7636  else
7637    case $cross_compiling:$ac_tool_warned in
7638yes:)
7639{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7640printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7641ac_tool_warned=yes ;;
7642esac
7643    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7644  fi
7645else
7646  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7647fi
7648
7649test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7650{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7651printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7652if test ${lt_cv_path_mainfest_tool+y}
7653then :
7654  printf %s "(cached) " >&6
7655else $as_nop
7656  lt_cv_path_mainfest_tool=no
7657  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7658  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7659  cat conftest.err >&5
7660  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7661    lt_cv_path_mainfest_tool=yes
7662  fi
7663  rm -f conftest*
7664fi
7665{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7666printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
7667if test yes != "$lt_cv_path_mainfest_tool"; then
7668  MANIFEST_TOOL=:
7669fi
7670
7671
7672
7673
7674
7675
7676  case $host_os in
7677    rhapsody* | darwin*)
7678    if test -n "$ac_tool_prefix"; then
7679  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7680set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7681{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7682printf %s "checking for $ac_word... " >&6; }
7683if test ${ac_cv_prog_DSYMUTIL+y}
7684then :
7685  printf %s "(cached) " >&6
7686else $as_nop
7687  if test -n "$DSYMUTIL"; then
7688  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7689else
7690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7691for as_dir in $PATH
7692do
7693  IFS=$as_save_IFS
7694  case $as_dir in #(((
7695    '') as_dir=./ ;;
7696    */) ;;
7697    *) as_dir=$as_dir/ ;;
7698  esac
7699    for ac_exec_ext in '' $ac_executable_extensions; do
7700  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7701    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7702    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7703    break 2
7704  fi
7705done
7706  done
7707IFS=$as_save_IFS
7708
7709fi
7710fi
7711DSYMUTIL=$ac_cv_prog_DSYMUTIL
7712if test -n "$DSYMUTIL"; then
7713  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7714printf "%s\n" "$DSYMUTIL" >&6; }
7715else
7716  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7717printf "%s\n" "no" >&6; }
7718fi
7719
7720
7721fi
7722if test -z "$ac_cv_prog_DSYMUTIL"; then
7723  ac_ct_DSYMUTIL=$DSYMUTIL
7724  # Extract the first word of "dsymutil", so it can be a program name with args.
7725set dummy dsymutil; ac_word=$2
7726{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7727printf %s "checking for $ac_word... " >&6; }
7728if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
7729then :
7730  printf %s "(cached) " >&6
7731else $as_nop
7732  if test -n "$ac_ct_DSYMUTIL"; then
7733  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7734else
7735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7736for as_dir in $PATH
7737do
7738  IFS=$as_save_IFS
7739  case $as_dir in #(((
7740    '') as_dir=./ ;;
7741    */) ;;
7742    *) as_dir=$as_dir/ ;;
7743  esac
7744    for ac_exec_ext in '' $ac_executable_extensions; do
7745  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7746    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7747    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7748    break 2
7749  fi
7750done
7751  done
7752IFS=$as_save_IFS
7753
7754fi
7755fi
7756ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7757if test -n "$ac_ct_DSYMUTIL"; then
7758  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7759printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
7760else
7761  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7762printf "%s\n" "no" >&6; }
7763fi
7764
7765  if test "x$ac_ct_DSYMUTIL" = x; then
7766    DSYMUTIL=":"
7767  else
7768    case $cross_compiling:$ac_tool_warned in
7769yes:)
7770{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7771printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7772ac_tool_warned=yes ;;
7773esac
7774    DSYMUTIL=$ac_ct_DSYMUTIL
7775  fi
7776else
7777  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7778fi
7779
7780    if test -n "$ac_tool_prefix"; then
7781  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7782set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7783{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7784printf %s "checking for $ac_word... " >&6; }
7785if test ${ac_cv_prog_NMEDIT+y}
7786then :
7787  printf %s "(cached) " >&6
7788else $as_nop
7789  if test -n "$NMEDIT"; then
7790  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7791else
7792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7793for as_dir in $PATH
7794do
7795  IFS=$as_save_IFS
7796  case $as_dir in #(((
7797    '') as_dir=./ ;;
7798    */) ;;
7799    *) as_dir=$as_dir/ ;;
7800  esac
7801    for ac_exec_ext in '' $ac_executable_extensions; do
7802  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7803    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7804    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7805    break 2
7806  fi
7807done
7808  done
7809IFS=$as_save_IFS
7810
7811fi
7812fi
7813NMEDIT=$ac_cv_prog_NMEDIT
7814if test -n "$NMEDIT"; then
7815  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7816printf "%s\n" "$NMEDIT" >&6; }
7817else
7818  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7819printf "%s\n" "no" >&6; }
7820fi
7821
7822
7823fi
7824if test -z "$ac_cv_prog_NMEDIT"; then
7825  ac_ct_NMEDIT=$NMEDIT
7826  # Extract the first word of "nmedit", so it can be a program name with args.
7827set dummy nmedit; ac_word=$2
7828{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7829printf %s "checking for $ac_word... " >&6; }
7830if test ${ac_cv_prog_ac_ct_NMEDIT+y}
7831then :
7832  printf %s "(cached) " >&6
7833else $as_nop
7834  if test -n "$ac_ct_NMEDIT"; then
7835  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7836else
7837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7838for as_dir in $PATH
7839do
7840  IFS=$as_save_IFS
7841  case $as_dir in #(((
7842    '') as_dir=./ ;;
7843    */) ;;
7844    *) as_dir=$as_dir/ ;;
7845  esac
7846    for ac_exec_ext in '' $ac_executable_extensions; do
7847  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7848    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7849    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7850    break 2
7851  fi
7852done
7853  done
7854IFS=$as_save_IFS
7855
7856fi
7857fi
7858ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7859if test -n "$ac_ct_NMEDIT"; then
7860  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7861printf "%s\n" "$ac_ct_NMEDIT" >&6; }
7862else
7863  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7864printf "%s\n" "no" >&6; }
7865fi
7866
7867  if test "x$ac_ct_NMEDIT" = x; then
7868    NMEDIT=":"
7869  else
7870    case $cross_compiling:$ac_tool_warned in
7871yes:)
7872{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7873printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7874ac_tool_warned=yes ;;
7875esac
7876    NMEDIT=$ac_ct_NMEDIT
7877  fi
7878else
7879  NMEDIT="$ac_cv_prog_NMEDIT"
7880fi
7881
7882    if test -n "$ac_tool_prefix"; then
7883  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7884set dummy ${ac_tool_prefix}lipo; ac_word=$2
7885{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7886printf %s "checking for $ac_word... " >&6; }
7887if test ${ac_cv_prog_LIPO+y}
7888then :
7889  printf %s "(cached) " >&6
7890else $as_nop
7891  if test -n "$LIPO"; then
7892  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7893else
7894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7895for as_dir in $PATH
7896do
7897  IFS=$as_save_IFS
7898  case $as_dir in #(((
7899    '') as_dir=./ ;;
7900    */) ;;
7901    *) as_dir=$as_dir/ ;;
7902  esac
7903    for ac_exec_ext in '' $ac_executable_extensions; do
7904  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7905    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7906    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7907    break 2
7908  fi
7909done
7910  done
7911IFS=$as_save_IFS
7912
7913fi
7914fi
7915LIPO=$ac_cv_prog_LIPO
7916if test -n "$LIPO"; then
7917  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7918printf "%s\n" "$LIPO" >&6; }
7919else
7920  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7921printf "%s\n" "no" >&6; }
7922fi
7923
7924
7925fi
7926if test -z "$ac_cv_prog_LIPO"; then
7927  ac_ct_LIPO=$LIPO
7928  # Extract the first word of "lipo", so it can be a program name with args.
7929set dummy lipo; ac_word=$2
7930{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7931printf %s "checking for $ac_word... " >&6; }
7932if test ${ac_cv_prog_ac_ct_LIPO+y}
7933then :
7934  printf %s "(cached) " >&6
7935else $as_nop
7936  if test -n "$ac_ct_LIPO"; then
7937  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7938else
7939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7940for as_dir in $PATH
7941do
7942  IFS=$as_save_IFS
7943  case $as_dir in #(((
7944    '') as_dir=./ ;;
7945    */) ;;
7946    *) as_dir=$as_dir/ ;;
7947  esac
7948    for ac_exec_ext in '' $ac_executable_extensions; do
7949  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7950    ac_cv_prog_ac_ct_LIPO="lipo"
7951    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7952    break 2
7953  fi
7954done
7955  done
7956IFS=$as_save_IFS
7957
7958fi
7959fi
7960ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7961if test -n "$ac_ct_LIPO"; then
7962  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7963printf "%s\n" "$ac_ct_LIPO" >&6; }
7964else
7965  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7966printf "%s\n" "no" >&6; }
7967fi
7968
7969  if test "x$ac_ct_LIPO" = x; then
7970    LIPO=":"
7971  else
7972    case $cross_compiling:$ac_tool_warned in
7973yes:)
7974{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7975printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7976ac_tool_warned=yes ;;
7977esac
7978    LIPO=$ac_ct_LIPO
7979  fi
7980else
7981  LIPO="$ac_cv_prog_LIPO"
7982fi
7983
7984    if test -n "$ac_tool_prefix"; then
7985  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7986set dummy ${ac_tool_prefix}otool; ac_word=$2
7987{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7988printf %s "checking for $ac_word... " >&6; }
7989if test ${ac_cv_prog_OTOOL+y}
7990then :
7991  printf %s "(cached) " >&6
7992else $as_nop
7993  if test -n "$OTOOL"; then
7994  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7995else
7996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7997for as_dir in $PATH
7998do
7999  IFS=$as_save_IFS
8000  case $as_dir in #(((
8001    '') as_dir=./ ;;
8002    */) ;;
8003    *) as_dir=$as_dir/ ;;
8004  esac
8005    for ac_exec_ext in '' $ac_executable_extensions; do
8006  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8007    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8008    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8009    break 2
8010  fi
8011done
8012  done
8013IFS=$as_save_IFS
8014
8015fi
8016fi
8017OTOOL=$ac_cv_prog_OTOOL
8018if test -n "$OTOOL"; then
8019  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8020printf "%s\n" "$OTOOL" >&6; }
8021else
8022  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8023printf "%s\n" "no" >&6; }
8024fi
8025
8026
8027fi
8028if test -z "$ac_cv_prog_OTOOL"; then
8029  ac_ct_OTOOL=$OTOOL
8030  # Extract the first word of "otool", so it can be a program name with args.
8031set dummy otool; ac_word=$2
8032{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8033printf %s "checking for $ac_word... " >&6; }
8034if test ${ac_cv_prog_ac_ct_OTOOL+y}
8035then :
8036  printf %s "(cached) " >&6
8037else $as_nop
8038  if test -n "$ac_ct_OTOOL"; then
8039  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8040else
8041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8042for as_dir in $PATH
8043do
8044  IFS=$as_save_IFS
8045  case $as_dir in #(((
8046    '') as_dir=./ ;;
8047    */) ;;
8048    *) as_dir=$as_dir/ ;;
8049  esac
8050    for ac_exec_ext in '' $ac_executable_extensions; do
8051  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8052    ac_cv_prog_ac_ct_OTOOL="otool"
8053    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8054    break 2
8055  fi
8056done
8057  done
8058IFS=$as_save_IFS
8059
8060fi
8061fi
8062ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8063if test -n "$ac_ct_OTOOL"; then
8064  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8065printf "%s\n" "$ac_ct_OTOOL" >&6; }
8066else
8067  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8068printf "%s\n" "no" >&6; }
8069fi
8070
8071  if test "x$ac_ct_OTOOL" = x; then
8072    OTOOL=":"
8073  else
8074    case $cross_compiling:$ac_tool_warned in
8075yes:)
8076{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8077printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8078ac_tool_warned=yes ;;
8079esac
8080    OTOOL=$ac_ct_OTOOL
8081  fi
8082else
8083  OTOOL="$ac_cv_prog_OTOOL"
8084fi
8085
8086    if test -n "$ac_tool_prefix"; then
8087  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8088set dummy ${ac_tool_prefix}otool64; ac_word=$2
8089{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8090printf %s "checking for $ac_word... " >&6; }
8091if test ${ac_cv_prog_OTOOL64+y}
8092then :
8093  printf %s "(cached) " >&6
8094else $as_nop
8095  if test -n "$OTOOL64"; then
8096  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8097else
8098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8099for as_dir in $PATH
8100do
8101  IFS=$as_save_IFS
8102  case $as_dir in #(((
8103    '') as_dir=./ ;;
8104    */) ;;
8105    *) as_dir=$as_dir/ ;;
8106  esac
8107    for ac_exec_ext in '' $ac_executable_extensions; do
8108  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8109    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8110    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8111    break 2
8112  fi
8113done
8114  done
8115IFS=$as_save_IFS
8116
8117fi
8118fi
8119OTOOL64=$ac_cv_prog_OTOOL64
8120if test -n "$OTOOL64"; then
8121  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8122printf "%s\n" "$OTOOL64" >&6; }
8123else
8124  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8125printf "%s\n" "no" >&6; }
8126fi
8127
8128
8129fi
8130if test -z "$ac_cv_prog_OTOOL64"; then
8131  ac_ct_OTOOL64=$OTOOL64
8132  # Extract the first word of "otool64", so it can be a program name with args.
8133set dummy otool64; ac_word=$2
8134{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8135printf %s "checking for $ac_word... " >&6; }
8136if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8137then :
8138  printf %s "(cached) " >&6
8139else $as_nop
8140  if test -n "$ac_ct_OTOOL64"; then
8141  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8142else
8143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8144for as_dir in $PATH
8145do
8146  IFS=$as_save_IFS
8147  case $as_dir in #(((
8148    '') as_dir=./ ;;
8149    */) ;;
8150    *) as_dir=$as_dir/ ;;
8151  esac
8152    for ac_exec_ext in '' $ac_executable_extensions; do
8153  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8154    ac_cv_prog_ac_ct_OTOOL64="otool64"
8155    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8156    break 2
8157  fi
8158done
8159  done
8160IFS=$as_save_IFS
8161
8162fi
8163fi
8164ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8165if test -n "$ac_ct_OTOOL64"; then
8166  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8167printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8168else
8169  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8170printf "%s\n" "no" >&6; }
8171fi
8172
8173  if test "x$ac_ct_OTOOL64" = x; then
8174    OTOOL64=":"
8175  else
8176    case $cross_compiling:$ac_tool_warned in
8177yes:)
8178{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8179printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8180ac_tool_warned=yes ;;
8181esac
8182    OTOOL64=$ac_ct_OTOOL64
8183  fi
8184else
8185  OTOOL64="$ac_cv_prog_OTOOL64"
8186fi
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8215printf %s "checking for -single_module linker flag... " >&6; }
8216if test ${lt_cv_apple_cc_single_mod+y}
8217then :
8218  printf %s "(cached) " >&6
8219else $as_nop
8220  lt_cv_apple_cc_single_mod=no
8221      if test -z "$LT_MULTI_MODULE"; then
8222	# By default we will add the -single_module flag. You can override
8223	# by either setting the environment variable LT_MULTI_MODULE
8224	# non-empty at configure time, or by adding -multi_module to the
8225	# link flags.
8226	rm -rf libconftest.dylib*
8227	echo "int foo(void){return 1;}" > conftest.c
8228	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8229-dynamiclib -Wl,-single_module conftest.c" >&5
8230	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8231	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8232        _lt_result=$?
8233	# If there is a non-empty error log, and "single_module"
8234	# appears in it, assume the flag caused a linker warning
8235        if test -s conftest.err && $GREP single_module conftest.err; then
8236	  cat conftest.err >&5
8237	# Otherwise, if the output was created with a 0 exit code from
8238	# the compiler, it worked.
8239	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8240	  lt_cv_apple_cc_single_mod=yes
8241	else
8242	  cat conftest.err >&5
8243	fi
8244	rm -rf libconftest.dylib*
8245	rm -f conftest.*
8246      fi
8247fi
8248{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8249printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8250
8251    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8252printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8253if test ${lt_cv_ld_exported_symbols_list+y}
8254then :
8255  printf %s "(cached) " >&6
8256else $as_nop
8257  lt_cv_ld_exported_symbols_list=no
8258      save_LDFLAGS=$LDFLAGS
8259      echo "_main" > conftest.sym
8260      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8261      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8262/* end confdefs.h.  */
8263
8264int
8265main (void)
8266{
8267
8268  ;
8269  return 0;
8270}
8271_ACEOF
8272if ac_fn_c_try_link "$LINENO"
8273then :
8274  lt_cv_ld_exported_symbols_list=yes
8275else $as_nop
8276  lt_cv_ld_exported_symbols_list=no
8277fi
8278rm -f core conftest.err conftest.$ac_objext conftest.beam \
8279    conftest$ac_exeext conftest.$ac_ext
8280	LDFLAGS=$save_LDFLAGS
8281
8282fi
8283{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8284printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8285
8286    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8287printf %s "checking for -force_load linker flag... " >&6; }
8288if test ${lt_cv_ld_force_load+y}
8289then :
8290  printf %s "(cached) " >&6
8291else $as_nop
8292  lt_cv_ld_force_load=no
8293      cat > conftest.c << _LT_EOF
8294int forced_loaded() { return 2;}
8295_LT_EOF
8296      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8297      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8298      echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8299      $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8300      echo "$RANLIB libconftest.a" >&5
8301      $RANLIB libconftest.a 2>&5
8302      cat > conftest.c << _LT_EOF
8303int main() { return 0;}
8304_LT_EOF
8305      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8306      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8307      _lt_result=$?
8308      if test -s conftest.err && $GREP force_load conftest.err; then
8309	cat conftest.err >&5
8310      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8311	lt_cv_ld_force_load=yes
8312      else
8313	cat conftest.err >&5
8314      fi
8315        rm -f conftest.err libconftest.a conftest conftest.c
8316        rm -rf conftest.dSYM
8317
8318fi
8319{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8320printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8321    case $host_os in
8322    rhapsody* | darwin1.[012])
8323      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8324    darwin1.*)
8325      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8326    darwin*)
8327      case $MACOSX_DEPLOYMENT_TARGET,$host in
8328        10.[012],*|,*powerpc*-darwin[5-8]*)
8329          _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8330        *)
8331          _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8332      esac
8333    ;;
8334  esac
8335    if test yes = "$lt_cv_apple_cc_single_mod"; then
8336      _lt_dar_single_mod='$single_module'
8337    fi
8338    if test yes = "$lt_cv_ld_exported_symbols_list"; then
8339      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8340    else
8341      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8342    fi
8343    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8344      _lt_dsymutil='~$DSYMUTIL $lib || :'
8345    else
8346      _lt_dsymutil=
8347    fi
8348    ;;
8349  esac
8350
8351# func_munge_path_list VARIABLE PATH
8352# -----------------------------------
8353# VARIABLE is name of variable containing _space_ separated list of
8354# directories to be munged by the contents of PATH, which is string
8355# having a format:
8356# "DIR[:DIR]:"
8357#       string "DIR[ DIR]" will be prepended to VARIABLE
8358# ":DIR[:DIR]"
8359#       string "DIR[ DIR]" will be appended to VARIABLE
8360# "DIRP[:DIRP]::[DIRA:]DIRA"
8361#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8362#       "DIRA[ DIRA]" will be appended to VARIABLE
8363# "DIR[:DIR]"
8364#       VARIABLE will be replaced by "DIR[ DIR]"
8365func_munge_path_list ()
8366{
8367    case x$2 in
8368    x)
8369        ;;
8370    *:)
8371        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8372        ;;
8373    x:*)
8374        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8375        ;;
8376    *::*)
8377        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8378        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8379        ;;
8380    *)
8381        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8382        ;;
8383    esac
8384}
8385
8386ac_header= ac_cache=
8387for ac_item in $ac_header_c_list
8388do
8389  if test $ac_cache; then
8390    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
8391    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
8392      printf "%s\n" "#define $ac_item 1" >> confdefs.h
8393    fi
8394    ac_header= ac_cache=
8395  elif test $ac_header; then
8396    ac_cache=$ac_item
8397  else
8398    ac_header=$ac_item
8399  fi
8400done
8401
8402
8403
8404
8405
8406
8407
8408
8409if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
8410then :
8411
8412printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
8413
8414fi
8415ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8416"
8417if test "x$ac_cv_header_dlfcn_h" = xyes
8418then :
8419  printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8420
8421fi
8422
8423
8424
8425
8426
8427# Set options
8428
8429
8430
8431        enable_dlopen=no
8432
8433
8434  enable_win32_dll=no
8435
8436
8437            # Check whether --enable-shared was given.
8438if test ${enable_shared+y}
8439then :
8440  enableval=$enable_shared; p=${PACKAGE-default}
8441    case $enableval in
8442    yes) enable_shared=yes ;;
8443    no) enable_shared=no ;;
8444    *)
8445      enable_shared=no
8446      # Look at the argument we got.  We use all the common list separators.
8447      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8448      for pkg in $enableval; do
8449	IFS=$lt_save_ifs
8450	if test "X$pkg" = "X$p"; then
8451	  enable_shared=yes
8452	fi
8453      done
8454      IFS=$lt_save_ifs
8455      ;;
8456    esac
8457else $as_nop
8458  enable_shared=yes
8459fi
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469  # Check whether --enable-static was given.
8470if test ${enable_static+y}
8471then :
8472  enableval=$enable_static; p=${PACKAGE-default}
8473    case $enableval in
8474    yes) enable_static=yes ;;
8475    no) enable_static=no ;;
8476    *)
8477     enable_static=no
8478      # Look at the argument we got.  We use all the common list separators.
8479      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8480      for pkg in $enableval; do
8481	IFS=$lt_save_ifs
8482	if test "X$pkg" = "X$p"; then
8483	  enable_static=yes
8484	fi
8485      done
8486      IFS=$lt_save_ifs
8487      ;;
8488    esac
8489else $as_nop
8490  enable_static=yes
8491fi
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502# Check whether --with-pic was given.
8503if test ${with_pic+y}
8504then :
8505  withval=$with_pic; lt_p=${PACKAGE-default}
8506    case $withval in
8507    yes|no) pic_mode=$withval ;;
8508    *)
8509      pic_mode=default
8510      # Look at the argument we got.  We use all the common list separators.
8511      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8512      for lt_pkg in $withval; do
8513	IFS=$lt_save_ifs
8514	if test "X$lt_pkg" = "X$lt_p"; then
8515	  pic_mode=yes
8516	fi
8517      done
8518      IFS=$lt_save_ifs
8519      ;;
8520    esac
8521else $as_nop
8522  pic_mode=default
8523fi
8524
8525
8526
8527
8528
8529
8530
8531
8532  # Check whether --enable-fast-install was given.
8533if test ${enable_fast_install+y}
8534then :
8535  enableval=$enable_fast_install; p=${PACKAGE-default}
8536    case $enableval in
8537    yes) enable_fast_install=yes ;;
8538    no) enable_fast_install=no ;;
8539    *)
8540      enable_fast_install=no
8541      # Look at the argument we got.  We use all the common list separators.
8542      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8543      for pkg in $enableval; do
8544	IFS=$lt_save_ifs
8545	if test "X$pkg" = "X$p"; then
8546	  enable_fast_install=yes
8547	fi
8548      done
8549      IFS=$lt_save_ifs
8550      ;;
8551    esac
8552else $as_nop
8553  enable_fast_install=yes
8554fi
8555
8556
8557
8558
8559
8560
8561
8562
8563  shared_archive_member_spec=
8564case $host,$enable_shared in
8565power*-*-aix[5-9]*,yes)
8566  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8567printf %s "checking which variant of shared library versioning to provide... " >&6; }
8568
8569# Check whether --with-aix-soname was given.
8570if test ${with_aix_soname+y}
8571then :
8572  withval=$with_aix_soname; case $withval in
8573    aix|svr4|both)
8574      ;;
8575    *)
8576      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8577      ;;
8578    esac
8579    lt_cv_with_aix_soname=$with_aix_soname
8580else $as_nop
8581  if test ${lt_cv_with_aix_soname+y}
8582then :
8583  printf %s "(cached) " >&6
8584else $as_nop
8585  lt_cv_with_aix_soname=aix
8586fi
8587
8588    with_aix_soname=$lt_cv_with_aix_soname
8589fi
8590
8591  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8592printf "%s\n" "$with_aix_soname" >&6; }
8593  if test aix != "$with_aix_soname"; then
8594    # For the AIX way of multilib, we name the shared archive member
8595    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8596    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8597    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8598    # the AIX toolchain works better with OBJECT_MODE set (default 32).
8599    if test 64 = "${OBJECT_MODE-32}"; then
8600      shared_archive_member_spec=shr_64
8601    else
8602      shared_archive_member_spec=shr
8603    fi
8604  fi
8605  ;;
8606*)
8607  with_aix_soname=aix
8608  ;;
8609esac
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620# This can be used to rebuild libtool when needed
8621LIBTOOL_DEPS=$ltmain
8622
8623# Always use our own libtool.
8624LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655test -z "$LN_S" && LN_S="ln -s"
8656
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669
8670if test -n "${ZSH_VERSION+set}"; then
8671   setopt NO_GLOB_SUBST
8672fi
8673
8674{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8675printf %s "checking for objdir... " >&6; }
8676if test ${lt_cv_objdir+y}
8677then :
8678  printf %s "(cached) " >&6
8679else $as_nop
8680  rm -f .libs 2>/dev/null
8681mkdir .libs 2>/dev/null
8682if test -d .libs; then
8683  lt_cv_objdir=.libs
8684else
8685  # MS-DOS does not allow filenames that begin with a dot.
8686  lt_cv_objdir=_libs
8687fi
8688rmdir .libs 2>/dev/null
8689fi
8690{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8691printf "%s\n" "$lt_cv_objdir" >&6; }
8692objdir=$lt_cv_objdir
8693
8694
8695
8696
8697
8698printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
8699
8700
8701
8702
8703case $host_os in
8704aix3*)
8705  # AIX sometimes has problems with the GCC collect2 program.  For some
8706  # reason, if we set the COLLECT_NAMES environment variable, the problems
8707  # vanish in a puff of smoke.
8708  if test set != "${COLLECT_NAMES+set}"; then
8709    COLLECT_NAMES=
8710    export COLLECT_NAMES
8711  fi
8712  ;;
8713esac
8714
8715# Global variables:
8716ofile=libtool
8717can_build_shared=yes
8718
8719# All known linkers require a '.a' archive for static linking (except MSVC and
8720# ICC, which need '.lib').
8721libext=a
8722
8723with_gnu_ld=$lt_cv_prog_gnu_ld
8724
8725old_CC=$CC
8726old_CFLAGS=$CFLAGS
8727
8728# Set sane defaults for various variables
8729test -z "$CC" && CC=cc
8730test -z "$LTCC" && LTCC=$CC
8731test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8732test -z "$LD" && LD=ld
8733test -z "$ac_objext" && ac_objext=o
8734
8735func_cc_basename $compiler
8736cc_basename=$func_cc_basename_result
8737
8738
8739# Only perform the check for file, if the check method requires it
8740test -z "$MAGIC_CMD" && MAGIC_CMD=file
8741case $deplibs_check_method in
8742file_magic*)
8743  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8744    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8745printf %s "checking for ${ac_tool_prefix}file... " >&6; }
8746if test ${lt_cv_path_MAGIC_CMD+y}
8747then :
8748  printf %s "(cached) " >&6
8749else $as_nop
8750  case $MAGIC_CMD in
8751[\\/*] |  ?:[\\/]*)
8752  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8753  ;;
8754*)
8755  lt_save_MAGIC_CMD=$MAGIC_CMD
8756  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8757  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8758  for ac_dir in $ac_dummy; do
8759    IFS=$lt_save_ifs
8760    test -z "$ac_dir" && ac_dir=.
8761    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8762      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8763      if test -n "$file_magic_test_file"; then
8764	case $deplibs_check_method in
8765	"file_magic "*)
8766	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8767	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8768	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8769	    $EGREP "$file_magic_regex" > /dev/null; then
8770	    :
8771	  else
8772	    cat <<_LT_EOF 1>&2
8773
8774*** Warning: the command libtool uses to detect shared libraries,
8775*** $file_magic_cmd, produces output that libtool cannot recognize.
8776*** The result is that libtool may fail to recognize shared libraries
8777*** as such.  This will affect the creation of libtool libraries that
8778*** depend on shared libraries, but programs linked with such libtool
8779*** libraries will work regardless of this problem.  Nevertheless, you
8780*** may want to report the problem to your system manager and/or to
8781*** bug-libtool@gnu.org
8782
8783_LT_EOF
8784	  fi ;;
8785	esac
8786      fi
8787      break
8788    fi
8789  done
8790  IFS=$lt_save_ifs
8791  MAGIC_CMD=$lt_save_MAGIC_CMD
8792  ;;
8793esac
8794fi
8795
8796MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8797if test -n "$MAGIC_CMD"; then
8798  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8799printf "%s\n" "$MAGIC_CMD" >&6; }
8800else
8801  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8802printf "%s\n" "no" >&6; }
8803fi
8804
8805
8806
8807
8808
8809if test -z "$lt_cv_path_MAGIC_CMD"; then
8810  if test -n "$ac_tool_prefix"; then
8811    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8812printf %s "checking for file... " >&6; }
8813if test ${lt_cv_path_MAGIC_CMD+y}
8814then :
8815  printf %s "(cached) " >&6
8816else $as_nop
8817  case $MAGIC_CMD in
8818[\\/*] |  ?:[\\/]*)
8819  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8820  ;;
8821*)
8822  lt_save_MAGIC_CMD=$MAGIC_CMD
8823  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8824  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8825  for ac_dir in $ac_dummy; do
8826    IFS=$lt_save_ifs
8827    test -z "$ac_dir" && ac_dir=.
8828    if test -f "$ac_dir/file"; then
8829      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8830      if test -n "$file_magic_test_file"; then
8831	case $deplibs_check_method in
8832	"file_magic "*)
8833	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8834	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8835	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8836	    $EGREP "$file_magic_regex" > /dev/null; then
8837	    :
8838	  else
8839	    cat <<_LT_EOF 1>&2
8840
8841*** Warning: the command libtool uses to detect shared libraries,
8842*** $file_magic_cmd, produces output that libtool cannot recognize.
8843*** The result is that libtool may fail to recognize shared libraries
8844*** as such.  This will affect the creation of libtool libraries that
8845*** depend on shared libraries, but programs linked with such libtool
8846*** libraries will work regardless of this problem.  Nevertheless, you
8847*** may want to report the problem to your system manager and/or to
8848*** bug-libtool@gnu.org
8849
8850_LT_EOF
8851	  fi ;;
8852	esac
8853      fi
8854      break
8855    fi
8856  done
8857  IFS=$lt_save_ifs
8858  MAGIC_CMD=$lt_save_MAGIC_CMD
8859  ;;
8860esac
8861fi
8862
8863MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8864if test -n "$MAGIC_CMD"; then
8865  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8866printf "%s\n" "$MAGIC_CMD" >&6; }
8867else
8868  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8869printf "%s\n" "no" >&6; }
8870fi
8871
8872
8873  else
8874    MAGIC_CMD=:
8875  fi
8876fi
8877
8878  fi
8879  ;;
8880esac
8881
8882# Use C for the default configuration in the libtool script
8883
8884lt_save_CC=$CC
8885ac_ext=c
8886ac_cpp='$CPP $CPPFLAGS'
8887ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8888ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8889ac_compiler_gnu=$ac_cv_c_compiler_gnu
8890
8891
8892# Source file extension for C test sources.
8893ac_ext=c
8894
8895# Object file extension for compiled C test sources.
8896objext=o
8897objext=$objext
8898
8899# Code to be used in simple compile tests
8900lt_simple_compile_test_code="int some_variable = 0;"
8901
8902# Code to be used in simple link tests
8903lt_simple_link_test_code='int main(){return(0);}'
8904
8905
8906
8907
8908
8909
8910
8911# If no C compiler was specified, use CC.
8912LTCC=${LTCC-"$CC"}
8913
8914# If no C compiler flags were specified, use CFLAGS.
8915LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8916
8917# Allow CC to be a program name with arguments.
8918compiler=$CC
8919
8920# Save the default compiler, since it gets overwritten when the other
8921# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8922compiler_DEFAULT=$CC
8923
8924# save warnings/boilerplate of simple test code
8925ac_outfile=conftest.$ac_objext
8926echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8927eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8928_lt_compiler_boilerplate=`cat conftest.err`
8929$RM conftest*
8930
8931ac_outfile=conftest.$ac_objext
8932echo "$lt_simple_link_test_code" >conftest.$ac_ext
8933eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8934_lt_linker_boilerplate=`cat conftest.err`
8935$RM -r conftest*
8936
8937
8938## CAVEAT EMPTOR:
8939## There is no encapsulation within the following macros, do not change
8940## the running order or otherwise move them around unless you know exactly
8941## what you are doing...
8942if test -n "$compiler"; then
8943
8944lt_prog_compiler_no_builtin_flag=
8945
8946if test yes = "$GCC"; then
8947  case $cc_basename in
8948  nvcc*)
8949    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8950  *)
8951    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8952  esac
8953
8954  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8955printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8956if test ${lt_cv_prog_compiler_rtti_exceptions+y}
8957then :
8958  printf %s "(cached) " >&6
8959else $as_nop
8960  lt_cv_prog_compiler_rtti_exceptions=no
8961   ac_outfile=conftest.$ac_objext
8962   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8963   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8964   # Insert the option either (1) after the last *FLAGS variable, or
8965   # (2) before a word containing "conftest.", or (3) at the end.
8966   # Note that $ac_compile itself does not contain backslashes and begins
8967   # with a dollar sign (not a hyphen), so the echo should work correctly.
8968   # The option is referenced via a variable to avoid confusing sed.
8969   lt_compile=`echo "$ac_compile" | $SED \
8970   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8971   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8972   -e 's:$: $lt_compiler_flag:'`
8973   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8974   (eval "$lt_compile" 2>conftest.err)
8975   ac_status=$?
8976   cat conftest.err >&5
8977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8978   if (exit $ac_status) && test -s "$ac_outfile"; then
8979     # The compiler can only warn and ignore the option if not recognized
8980     # So say no if there are warnings other than the usual output.
8981     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8982     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8983     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8984       lt_cv_prog_compiler_rtti_exceptions=yes
8985     fi
8986   fi
8987   $RM conftest*
8988
8989fi
8990{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8991printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8992
8993if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8994    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8995else
8996    :
8997fi
8998
8999fi
9000
9001
9002
9003
9004
9005
9006  lt_prog_compiler_wl=
9007lt_prog_compiler_pic=
9008lt_prog_compiler_static=
9009
9010
9011  if test yes = "$GCC"; then
9012    lt_prog_compiler_wl='-Wl,'
9013    lt_prog_compiler_static='-static'
9014
9015    case $host_os in
9016      aix*)
9017      # All AIX code is PIC.
9018      if test ia64 = "$host_cpu"; then
9019	# AIX 5 now supports IA64 processor
9020	lt_prog_compiler_static='-Bstatic'
9021      fi
9022      lt_prog_compiler_pic='-fPIC'
9023      ;;
9024
9025    amigaos*)
9026      case $host_cpu in
9027      powerpc)
9028            # see comment about AmigaOS4 .so support
9029            lt_prog_compiler_pic='-fPIC'
9030        ;;
9031      m68k)
9032            # FIXME: we need at least 68020 code to build shared libraries, but
9033            # adding the '-m68020' flag to GCC prevents building anything better,
9034            # like '-m68040'.
9035            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9036        ;;
9037      esac
9038      ;;
9039
9040    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9041      # PIC is the default for these OSes.
9042      ;;
9043
9044    mingw* | cygwin* | pw32* | os2* | cegcc*)
9045      # This hack is so that the source file can tell whether it is being
9046      # built for inclusion in a dll (and should export symbols for example).
9047      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9048      # (--disable-auto-import) libraries
9049      lt_prog_compiler_pic='-DDLL_EXPORT'
9050      case $host_os in
9051      os2*)
9052	lt_prog_compiler_static='$wl-static'
9053	;;
9054      esac
9055      ;;
9056
9057    darwin* | rhapsody*)
9058      # PIC is the default on this platform
9059      # Common symbols not allowed in MH_DYLIB files
9060      lt_prog_compiler_pic='-fno-common'
9061      ;;
9062
9063    haiku*)
9064      # PIC is the default for Haiku.
9065      # The "-static" flag exists, but is broken.
9066      lt_prog_compiler_static=
9067      ;;
9068
9069    hpux*)
9070      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9071      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9072      # sets the default TLS model and affects inlining.
9073      case $host_cpu in
9074      hppa*64*)
9075	# +Z the default
9076	;;
9077      *)
9078	lt_prog_compiler_pic='-fPIC'
9079	;;
9080      esac
9081      ;;
9082
9083    interix[3-9]*)
9084      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9085      # Instead, we relocate shared libraries at runtime.
9086      ;;
9087
9088    msdosdjgpp*)
9089      # Just because we use GCC doesn't mean we suddenly get shared libraries
9090      # on systems that don't support them.
9091      lt_prog_compiler_can_build_shared=no
9092      enable_shared=no
9093      ;;
9094
9095    *nto* | *qnx*)
9096      # QNX uses GNU C++, but need to define -shared option too, otherwise
9097      # it will coredump.
9098      lt_prog_compiler_pic='-fPIC -shared'
9099      ;;
9100
9101    sysv4*MP*)
9102      if test -d /usr/nec; then
9103	lt_prog_compiler_pic=-Kconform_pic
9104      fi
9105      ;;
9106
9107    *)
9108      lt_prog_compiler_pic='-fPIC'
9109      ;;
9110    esac
9111
9112    case $cc_basename in
9113    nvcc*) # Cuda Compiler Driver 2.2
9114      lt_prog_compiler_wl='-Xlinker '
9115      if test -n "$lt_prog_compiler_pic"; then
9116        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9117      fi
9118      ;;
9119    esac
9120  else
9121    # PORTME Check for flag to pass linker flags through the system compiler.
9122    case $host_os in
9123    aix*)
9124      lt_prog_compiler_wl='-Wl,'
9125      if test ia64 = "$host_cpu"; then
9126	# AIX 5 now supports IA64 processor
9127	lt_prog_compiler_static='-Bstatic'
9128      else
9129	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9130      fi
9131      ;;
9132
9133    darwin* | rhapsody*)
9134      # PIC is the default on this platform
9135      # Common symbols not allowed in MH_DYLIB files
9136      lt_prog_compiler_pic='-fno-common'
9137      case $cc_basename in
9138      nagfor*)
9139        # NAG Fortran compiler
9140        lt_prog_compiler_wl='-Wl,-Wl,,'
9141        lt_prog_compiler_pic='-PIC'
9142        lt_prog_compiler_static='-Bstatic'
9143        ;;
9144      esac
9145      ;;
9146
9147    mingw* | cygwin* | pw32* | os2* | cegcc*)
9148      # This hack is so that the source file can tell whether it is being
9149      # built for inclusion in a dll (and should export symbols for example).
9150      lt_prog_compiler_pic='-DDLL_EXPORT'
9151      case $host_os in
9152      os2*)
9153	lt_prog_compiler_static='$wl-static'
9154	;;
9155      esac
9156      ;;
9157
9158    hpux9* | hpux10* | hpux11*)
9159      lt_prog_compiler_wl='-Wl,'
9160      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9161      # not for PA HP-UX.
9162      case $host_cpu in
9163      hppa*64*|ia64*)
9164	# +Z the default
9165	;;
9166      *)
9167	lt_prog_compiler_pic='+Z'
9168	;;
9169      esac
9170      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9171      lt_prog_compiler_static='$wl-a ${wl}archive'
9172      ;;
9173
9174    irix5* | irix6* | nonstopux*)
9175      lt_prog_compiler_wl='-Wl,'
9176      # PIC (with -KPIC) is the default.
9177      lt_prog_compiler_static='-non_shared'
9178      ;;
9179
9180    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9181      case $cc_basename in
9182      # old Intel for x86_64, which still supported -KPIC.
9183      ecc*)
9184	lt_prog_compiler_wl='-Wl,'
9185	lt_prog_compiler_pic='-KPIC'
9186	lt_prog_compiler_static='-static'
9187        ;;
9188      # flang / f18. f95 an alias for gfortran or flang on Debian
9189      flang* | f18* | f95*)
9190	lt_prog_compiler_wl='-Wl,'
9191	lt_prog_compiler_pic='-fPIC'
9192	lt_prog_compiler_static='-static'
9193        ;;
9194      # icc used to be incompatible with GCC.
9195      # ICC 10 doesn't accept -KPIC any more.
9196      icc* | ifort*)
9197	lt_prog_compiler_wl='-Wl,'
9198	lt_prog_compiler_pic='-fPIC'
9199	lt_prog_compiler_static='-static'
9200        ;;
9201      # Lahey Fortran 8.1.
9202      lf95*)
9203	lt_prog_compiler_wl='-Wl,'
9204	lt_prog_compiler_pic='--shared'
9205	lt_prog_compiler_static='--static'
9206	;;
9207      nagfor*)
9208	# NAG Fortran compiler
9209	lt_prog_compiler_wl='-Wl,-Wl,,'
9210	lt_prog_compiler_pic='-PIC'
9211	lt_prog_compiler_static='-Bstatic'
9212	;;
9213      tcc*)
9214	# Fabrice Bellard et al's Tiny C Compiler
9215	lt_prog_compiler_wl='-Wl,'
9216	lt_prog_compiler_pic='-fPIC'
9217	lt_prog_compiler_static='-static'
9218	;;
9219      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9220        # Portland Group compilers (*not* the Pentium gcc compiler,
9221	# which looks to be a dead project)
9222	lt_prog_compiler_wl='-Wl,'
9223	lt_prog_compiler_pic='-fpic'
9224	lt_prog_compiler_static='-Bstatic'
9225        ;;
9226      ccc*)
9227        lt_prog_compiler_wl='-Wl,'
9228        # All Alpha code is PIC.
9229        lt_prog_compiler_static='-non_shared'
9230        ;;
9231      xl* | bgxl* | bgf* | mpixl*)
9232	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9233	lt_prog_compiler_wl='-Wl,'
9234	lt_prog_compiler_pic='-qpic'
9235	lt_prog_compiler_static='-qstaticlink'
9236	;;
9237      *)
9238	case `$CC -V 2>&1 | $SED 5q` in
9239	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9240	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9241	  lt_prog_compiler_pic='-KPIC'
9242	  lt_prog_compiler_static='-Bstatic'
9243	  lt_prog_compiler_wl=''
9244	  ;;
9245	*Sun\ F* | *Sun*Fortran*)
9246	  lt_prog_compiler_pic='-KPIC'
9247	  lt_prog_compiler_static='-Bstatic'
9248	  lt_prog_compiler_wl='-Qoption ld '
9249	  ;;
9250	*Sun\ C*)
9251	  # Sun C 5.9
9252	  lt_prog_compiler_pic='-KPIC'
9253	  lt_prog_compiler_static='-Bstatic'
9254	  lt_prog_compiler_wl='-Wl,'
9255	  ;;
9256        *Intel*\ [CF]*Compiler*)
9257	  lt_prog_compiler_wl='-Wl,'
9258	  lt_prog_compiler_pic='-fPIC'
9259	  lt_prog_compiler_static='-static'
9260	  ;;
9261	*Portland\ Group*)
9262	  lt_prog_compiler_wl='-Wl,'
9263	  lt_prog_compiler_pic='-fpic'
9264	  lt_prog_compiler_static='-Bstatic'
9265	  ;;
9266	esac
9267	;;
9268      esac
9269      ;;
9270
9271    newsos6)
9272      lt_prog_compiler_pic='-KPIC'
9273      lt_prog_compiler_static='-Bstatic'
9274      ;;
9275
9276    *nto* | *qnx*)
9277      # QNX uses GNU C++, but need to define -shared option too, otherwise
9278      # it will coredump.
9279      lt_prog_compiler_pic='-fPIC -shared'
9280      ;;
9281
9282    osf3* | osf4* | osf5*)
9283      lt_prog_compiler_wl='-Wl,'
9284      # All OSF/1 code is PIC.
9285      lt_prog_compiler_static='-non_shared'
9286      ;;
9287
9288    rdos*)
9289      lt_prog_compiler_static='-non_shared'
9290      ;;
9291
9292    solaris*)
9293      lt_prog_compiler_pic='-KPIC'
9294      lt_prog_compiler_static='-Bstatic'
9295      case $cc_basename in
9296      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9297	lt_prog_compiler_wl='-Qoption ld ';;
9298      *)
9299	lt_prog_compiler_wl='-Wl,';;
9300      esac
9301      ;;
9302
9303    sunos4*)
9304      lt_prog_compiler_wl='-Qoption ld '
9305      lt_prog_compiler_pic='-PIC'
9306      lt_prog_compiler_static='-Bstatic'
9307      ;;
9308
9309    sysv4 | sysv4.2uw2* | sysv4.3*)
9310      lt_prog_compiler_wl='-Wl,'
9311      lt_prog_compiler_pic='-KPIC'
9312      lt_prog_compiler_static='-Bstatic'
9313      ;;
9314
9315    sysv4*MP*)
9316      if test -d /usr/nec; then
9317	lt_prog_compiler_pic='-Kconform_pic'
9318	lt_prog_compiler_static='-Bstatic'
9319      fi
9320      ;;
9321
9322    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9323      lt_prog_compiler_wl='-Wl,'
9324      lt_prog_compiler_pic='-KPIC'
9325      lt_prog_compiler_static='-Bstatic'
9326      ;;
9327
9328    unicos*)
9329      lt_prog_compiler_wl='-Wl,'
9330      lt_prog_compiler_can_build_shared=no
9331      ;;
9332
9333    uts4*)
9334      lt_prog_compiler_pic='-pic'
9335      lt_prog_compiler_static='-Bstatic'
9336      ;;
9337
9338    *)
9339      lt_prog_compiler_can_build_shared=no
9340      ;;
9341    esac
9342  fi
9343
9344case $host_os in
9345  # For platforms that do not support PIC, -DPIC is meaningless:
9346  *djgpp*)
9347    lt_prog_compiler_pic=
9348    ;;
9349  *)
9350    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9351    ;;
9352esac
9353
9354{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9355printf %s "checking for $compiler option to produce PIC... " >&6; }
9356if test ${lt_cv_prog_compiler_pic+y}
9357then :
9358  printf %s "(cached) " >&6
9359else $as_nop
9360  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9361fi
9362{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9363printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9364lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9365
9366#
9367# Check to make sure the PIC flag actually works.
9368#
9369if test -n "$lt_prog_compiler_pic"; then
9370  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9371printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9372if test ${lt_cv_prog_compiler_pic_works+y}
9373then :
9374  printf %s "(cached) " >&6
9375else $as_nop
9376  lt_cv_prog_compiler_pic_works=no
9377   ac_outfile=conftest.$ac_objext
9378   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9379   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9380   # Insert the option either (1) after the last *FLAGS variable, or
9381   # (2) before a word containing "conftest.", or (3) at the end.
9382   # Note that $ac_compile itself does not contain backslashes and begins
9383   # with a dollar sign (not a hyphen), so the echo should work correctly.
9384   # The option is referenced via a variable to avoid confusing sed.
9385   lt_compile=`echo "$ac_compile" | $SED \
9386   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9387   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9388   -e 's:$: $lt_compiler_flag:'`
9389   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9390   (eval "$lt_compile" 2>conftest.err)
9391   ac_status=$?
9392   cat conftest.err >&5
9393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9394   if (exit $ac_status) && test -s "$ac_outfile"; then
9395     # The compiler can only warn and ignore the option if not recognized
9396     # So say no if there are warnings other than the usual output.
9397     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9398     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9399     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9400       lt_cv_prog_compiler_pic_works=yes
9401     fi
9402   fi
9403   $RM conftest*
9404
9405fi
9406{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9407printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9408
9409if test yes = "$lt_cv_prog_compiler_pic_works"; then
9410    case $lt_prog_compiler_pic in
9411     "" | " "*) ;;
9412     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9413     esac
9414else
9415    lt_prog_compiler_pic=
9416     lt_prog_compiler_can_build_shared=no
9417fi
9418
9419fi
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431#
9432# Check to make sure the static flag actually works.
9433#
9434wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9435{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9436printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9437if test ${lt_cv_prog_compiler_static_works+y}
9438then :
9439  printf %s "(cached) " >&6
9440else $as_nop
9441  lt_cv_prog_compiler_static_works=no
9442   save_LDFLAGS=$LDFLAGS
9443   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9444   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9445   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9446     # The linker can only warn and ignore the option if not recognized
9447     # So say no if there are warnings
9448     if test -s conftest.err; then
9449       # Append any errors to the config.log.
9450       cat conftest.err 1>&5
9451       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9452       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9453       if diff conftest.exp conftest.er2 >/dev/null; then
9454         lt_cv_prog_compiler_static_works=yes
9455       fi
9456     else
9457       lt_cv_prog_compiler_static_works=yes
9458     fi
9459   fi
9460   $RM -r conftest*
9461   LDFLAGS=$save_LDFLAGS
9462
9463fi
9464{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9465printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9466
9467if test yes = "$lt_cv_prog_compiler_static_works"; then
9468    :
9469else
9470    lt_prog_compiler_static=
9471fi
9472
9473
9474
9475
9476
9477
9478
9479  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9480printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9481if test ${lt_cv_prog_compiler_c_o+y}
9482then :
9483  printf %s "(cached) " >&6
9484else $as_nop
9485  lt_cv_prog_compiler_c_o=no
9486   $RM -r conftest 2>/dev/null
9487   mkdir conftest
9488   cd conftest
9489   mkdir out
9490   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9491
9492   lt_compiler_flag="-o out/conftest2.$ac_objext"
9493   # Insert the option either (1) after the last *FLAGS variable, or
9494   # (2) before a word containing "conftest.", or (3) at the end.
9495   # Note that $ac_compile itself does not contain backslashes and begins
9496   # with a dollar sign (not a hyphen), so the echo should work correctly.
9497   lt_compile=`echo "$ac_compile" | $SED \
9498   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9499   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9500   -e 's:$: $lt_compiler_flag:'`
9501   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9502   (eval "$lt_compile" 2>out/conftest.err)
9503   ac_status=$?
9504   cat out/conftest.err >&5
9505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9506   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9507   then
9508     # The compiler can only warn and ignore the option if not recognized
9509     # So say no if there are warnings
9510     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9511     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9512     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9513       lt_cv_prog_compiler_c_o=yes
9514     fi
9515   fi
9516   chmod u+w . 2>&5
9517   $RM conftest*
9518   # SGI C++ compiler will create directory out/ii_files/ for
9519   # template instantiation
9520   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9521   $RM out/* && rmdir out
9522   cd ..
9523   $RM -r conftest
9524   $RM conftest*
9525
9526fi
9527{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9528printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9529
9530
9531
9532
9533
9534
9535  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9536printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9537if test ${lt_cv_prog_compiler_c_o+y}
9538then :
9539  printf %s "(cached) " >&6
9540else $as_nop
9541  lt_cv_prog_compiler_c_o=no
9542   $RM -r conftest 2>/dev/null
9543   mkdir conftest
9544   cd conftest
9545   mkdir out
9546   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9547
9548   lt_compiler_flag="-o out/conftest2.$ac_objext"
9549   # Insert the option either (1) after the last *FLAGS variable, or
9550   # (2) before a word containing "conftest.", or (3) at the end.
9551   # Note that $ac_compile itself does not contain backslashes and begins
9552   # with a dollar sign (not a hyphen), so the echo should work correctly.
9553   lt_compile=`echo "$ac_compile" | $SED \
9554   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9555   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9556   -e 's:$: $lt_compiler_flag:'`
9557   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9558   (eval "$lt_compile" 2>out/conftest.err)
9559   ac_status=$?
9560   cat out/conftest.err >&5
9561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9562   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9563   then
9564     # The compiler can only warn and ignore the option if not recognized
9565     # So say no if there are warnings
9566     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9567     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9568     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9569       lt_cv_prog_compiler_c_o=yes
9570     fi
9571   fi
9572   chmod u+w . 2>&5
9573   $RM conftest*
9574   # SGI C++ compiler will create directory out/ii_files/ for
9575   # template instantiation
9576   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9577   $RM out/* && rmdir out
9578   cd ..
9579   $RM -r conftest
9580   $RM conftest*
9581
9582fi
9583{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9584printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9585
9586
9587
9588
9589hard_links=nottested
9590if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9591  # do not overwrite the value of need_locks provided by the user
9592  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9593printf %s "checking if we can lock with hard links... " >&6; }
9594  hard_links=yes
9595  $RM conftest*
9596  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9597  touch conftest.a
9598  ln conftest.a conftest.b 2>&5 || hard_links=no
9599  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9600  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9601printf "%s\n" "$hard_links" >&6; }
9602  if test no = "$hard_links"; then
9603    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9604printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9605    need_locks=warn
9606  fi
9607else
9608  need_locks=no
9609fi
9610
9611
9612
9613
9614
9615
9616  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9617printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9618
9619  runpath_var=
9620  allow_undefined_flag=
9621  always_export_symbols=no
9622  archive_cmds=
9623  archive_expsym_cmds=
9624  compiler_needs_object=no
9625  enable_shared_with_static_runtimes=no
9626  export_dynamic_flag_spec=
9627  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9628  hardcode_automatic=no
9629  hardcode_direct=no
9630  hardcode_direct_absolute=no
9631  hardcode_libdir_flag_spec=
9632  hardcode_libdir_separator=
9633  hardcode_minus_L=no
9634  hardcode_shlibpath_var=unsupported
9635  inherit_rpath=no
9636  link_all_deplibs=unknown
9637  module_cmds=
9638  module_expsym_cmds=
9639  old_archive_from_new_cmds=
9640  old_archive_from_expsyms_cmds=
9641  thread_safe_flag_spec=
9642  whole_archive_flag_spec=
9643  # include_expsyms should be a list of space-separated symbols to be *always*
9644  # included in the symbol list
9645  include_expsyms=
9646  # exclude_expsyms can be an extended regexp of symbols to exclude
9647  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9648  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9649  # as well as any symbol that contains 'd'.
9650  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9651  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9652  # platforms (ab)use it in PIC code, but their linkers get confused if
9653  # the symbol is explicitly referenced.  Since portable code cannot
9654  # rely on this symbol name, it's probably fine to never include it in
9655  # preloaded symbol tables.
9656  # Exclude shared library initialization/finalization symbols.
9657  extract_expsyms_cmds=
9658
9659  case $host_os in
9660  cygwin* | mingw* | pw32* | cegcc*)
9661    # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
9662    # When not using gcc, we currently assume that we are using
9663    # Microsoft Visual C++ or Intel C++ Compiler.
9664    if test yes != "$GCC"; then
9665      with_gnu_ld=no
9666    fi
9667    ;;
9668  interix*)
9669    # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
9670    with_gnu_ld=yes
9671    ;;
9672  openbsd* | bitrig*)
9673    with_gnu_ld=no
9674    ;;
9675  linux* | k*bsd*-gnu | gnu*)
9676    link_all_deplibs=no
9677    ;;
9678  esac
9679
9680  ld_shlibs=yes
9681
9682  # On some targets, GNU ld is compatible enough with the native linker
9683  # that we're better off using the native interface for both.
9684  lt_use_gnu_ld_interface=no
9685  if test yes = "$with_gnu_ld"; then
9686    case $host_os in
9687      aix*)
9688	# The AIX port of GNU ld has always aspired to compatibility
9689	# with the native linker.  However, as the warning in the GNU ld
9690	# block says, versions before 2.19.5* couldn't really create working
9691	# shared libraries, regardless of the interface used.
9692	case `$LD -v 2>&1` in
9693	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9694	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9695	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9696	  *)
9697	    lt_use_gnu_ld_interface=yes
9698	    ;;
9699	esac
9700	;;
9701      *)
9702	lt_use_gnu_ld_interface=yes
9703	;;
9704    esac
9705  fi
9706
9707  if test yes = "$lt_use_gnu_ld_interface"; then
9708    # If archive_cmds runs LD, not CC, wlarc should be empty
9709    wlarc='$wl'
9710
9711    # Set some defaults for GNU ld with shared library support. These
9712    # are reset later if shared libraries are not supported. Putting them
9713    # here allows them to be overridden if necessary.
9714    runpath_var=LD_RUN_PATH
9715    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9716    export_dynamic_flag_spec='$wl--export-dynamic'
9717    # ancient GNU ld didn't support --whole-archive et. al.
9718    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9719      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9720    else
9721      whole_archive_flag_spec=
9722    fi
9723    supports_anon_versioning=no
9724    case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
9725      *GNU\ gold*) supports_anon_versioning=yes ;;
9726      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9727      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9728      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9729      *\ 2.11.*) ;; # other 2.11 versions
9730      *) supports_anon_versioning=yes ;;
9731    esac
9732
9733    # See if GNU ld supports shared libraries.
9734    case $host_os in
9735    aix[3-9]*)
9736      # On AIX/PPC, the GNU linker is very broken
9737      if test ia64 != "$host_cpu"; then
9738	ld_shlibs=no
9739	cat <<_LT_EOF 1>&2
9740
9741*** Warning: the GNU linker, at least up to release 2.19, is reported
9742*** to be unable to reliably create shared libraries on AIX.
9743*** Therefore, libtool is disabling shared libraries support.  If you
9744*** really care for shared libraries, you may want to install binutils
9745*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9746*** You will then need to restart the configuration process.
9747
9748_LT_EOF
9749      fi
9750      ;;
9751
9752    amigaos*)
9753      case $host_cpu in
9754      powerpc)
9755            # see comment about AmigaOS4 .so support
9756            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9757            archive_expsym_cmds=''
9758        ;;
9759      m68k)
9760            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)'
9761            hardcode_libdir_flag_spec='-L$libdir'
9762            hardcode_minus_L=yes
9763        ;;
9764      esac
9765      ;;
9766
9767    beos*)
9768      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9769	allow_undefined_flag=unsupported
9770	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9771	# support --undefined.  This deserves some investigation.  FIXME
9772	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9773      else
9774	ld_shlibs=no
9775      fi
9776      ;;
9777
9778    cygwin* | mingw* | pw32* | cegcc*)
9779      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9780      # as there is no search path for DLLs.
9781      hardcode_libdir_flag_spec='-L$libdir'
9782      export_dynamic_flag_spec='$wl--export-all-symbols'
9783      allow_undefined_flag=unsupported
9784      always_export_symbols=no
9785      enable_shared_with_static_runtimes=yes
9786      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'
9787      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9788
9789      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9790        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9791	# If the export-symbols file already is a .def file, use it as
9792	# is; otherwise, prepend EXPORTS...
9793	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9794          cp $export_symbols $output_objdir/$soname.def;
9795        else
9796          echo EXPORTS > $output_objdir/$soname.def;
9797          cat $export_symbols >> $output_objdir/$soname.def;
9798        fi~
9799        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9800      else
9801	ld_shlibs=no
9802      fi
9803      ;;
9804
9805    haiku*)
9806      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9807      link_all_deplibs=yes
9808      ;;
9809
9810    os2*)
9811      hardcode_libdir_flag_spec='-L$libdir'
9812      hardcode_minus_L=yes
9813      allow_undefined_flag=unsupported
9814      shrext_cmds=.dll
9815      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9816	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9817	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9818	$ECHO EXPORTS >> $output_objdir/$libname.def~
9819	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9820	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9821	emximp -o $lib $output_objdir/$libname.def'
9822      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9823	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9824	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9825	$ECHO EXPORTS >> $output_objdir/$libname.def~
9826	prefix_cmds="$SED"~
9827	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9828	  prefix_cmds="$prefix_cmds -e 1d";
9829	fi~
9830	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9831	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9832	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9833	emximp -o $lib $output_objdir/$libname.def'
9834      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9835      enable_shared_with_static_runtimes=yes
9836      file_list_spec='@'
9837      ;;
9838
9839    interix[3-9]*)
9840      hardcode_direct=no
9841      hardcode_shlibpath_var=no
9842      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9843      export_dynamic_flag_spec='$wl-E'
9844      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9845      # Instead, shared libraries are loaded at an image base (0x10000000 by
9846      # default) and relocated if they conflict, which is a slow very memory
9847      # consuming and fragmenting process.  To avoid this, we pick a random,
9848      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9849      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9850      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9851      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'
9852      ;;
9853
9854    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9855      tmp_diet=no
9856      if test linux-dietlibc = "$host_os"; then
9857	case $cc_basename in
9858	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9859	esac
9860      fi
9861      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9862	 && test no = "$tmp_diet"
9863      then
9864	tmp_addflag=' $pic_flag'
9865	tmp_sharedflag='-shared'
9866	case $cc_basename,$host_cpu in
9867        pgcc*)				# Portland Group C compiler
9868	  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'
9869	  tmp_addflag=' $pic_flag'
9870	  ;;
9871	pgf77* | pgf90* | pgf95* | pgfortran*)
9872					# Portland Group f77 and f90 compilers
9873	  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'
9874	  tmp_addflag=' $pic_flag -Mnomain' ;;
9875	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9876	  tmp_addflag=' -i_dynamic' ;;
9877	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9878	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9879	ifc* | ifort*)			# Intel Fortran compiler
9880	  tmp_addflag=' -nofor_main' ;;
9881	lf95*)				# Lahey Fortran 8.1
9882	  whole_archive_flag_spec=
9883	  tmp_sharedflag='--shared' ;;
9884        nagfor*)                        # NAGFOR 5.3
9885          tmp_sharedflag='-Wl,-shared' ;;
9886	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9887	  tmp_sharedflag='-qmkshrobj'
9888	  tmp_addflag= ;;
9889	nvcc*)	# Cuda Compiler Driver 2.2
9890	  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'
9891	  compiler_needs_object=yes
9892	  ;;
9893	esac
9894	case `$CC -V 2>&1 | $SED 5q` in
9895	*Sun\ C*)			# Sun C 5.9
9896	  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'
9897	  compiler_needs_object=yes
9898	  tmp_sharedflag='-G' ;;
9899	*Sun\ F*)			# Sun Fortran 8.3
9900	  tmp_sharedflag='-G' ;;
9901	esac
9902	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9903
9904        if test yes = "$supports_anon_versioning"; then
9905          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9906            cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9907            echo "local: *; };" >> $output_objdir/$libname.ver~
9908            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9909        fi
9910
9911	case $cc_basename in
9912	tcc*)
9913	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9914	  export_dynamic_flag_spec='-rdynamic'
9915	  ;;
9916	xlf* | bgf* | bgxlf* | mpixlf*)
9917	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9918	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9919	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9920	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9921	  if test yes = "$supports_anon_versioning"; then
9922	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9923              cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9924              echo "local: *; };" >> $output_objdir/$libname.ver~
9925              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9926	  fi
9927	  ;;
9928	esac
9929      else
9930        ld_shlibs=no
9931      fi
9932      ;;
9933
9934    netbsd* | netbsdelf*-gnu)
9935      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9936	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9937	wlarc=
9938      else
9939	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9940	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9941      fi
9942      ;;
9943
9944    solaris*)
9945      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9946	ld_shlibs=no
9947	cat <<_LT_EOF 1>&2
9948
9949*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9950*** create shared libraries on Solaris systems.  Therefore, libtool
9951*** is disabling shared libraries support.  We urge you to upgrade GNU
9952*** binutils to release 2.9.1 or newer.  Another option is to modify
9953*** your PATH or compiler configuration so that the native linker is
9954*** used, and then restart.
9955
9956_LT_EOF
9957      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9958	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9959	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9960      else
9961	ld_shlibs=no
9962      fi
9963      ;;
9964
9965    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9966      case `$LD -v 2>&1` in
9967        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9968	ld_shlibs=no
9969	cat <<_LT_EOF 1>&2
9970
9971*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9972*** reliably create shared libraries on SCO systems.  Therefore, libtool
9973*** is disabling shared libraries support.  We urge you to upgrade GNU
9974*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9975*** your PATH or compiler configuration so that the native linker is
9976*** used, and then restart.
9977
9978_LT_EOF
9979	;;
9980	*)
9981	  # For security reasons, it is highly recommended that you always
9982	  # use absolute paths for naming shared libraries, and exclude the
9983	  # DT_RUNPATH tag from executables and libraries.  But doing so
9984	  # requires that you compile everything twice, which is a pain.
9985	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9986	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9987	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9988	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9989	  else
9990	    ld_shlibs=no
9991	  fi
9992	;;
9993      esac
9994      ;;
9995
9996    sunos4*)
9997      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9998      wlarc=
9999      hardcode_direct=yes
10000      hardcode_shlibpath_var=no
10001      ;;
10002
10003    *)
10004      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10005	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10006	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10007      else
10008	ld_shlibs=no
10009      fi
10010      ;;
10011    esac
10012
10013    if test no = "$ld_shlibs"; then
10014      runpath_var=
10015      hardcode_libdir_flag_spec=
10016      export_dynamic_flag_spec=
10017      whole_archive_flag_spec=
10018    fi
10019  else
10020    # PORTME fill in a description of your system's linker (not GNU ld)
10021    case $host_os in
10022    aix3*)
10023      allow_undefined_flag=unsupported
10024      always_export_symbols=yes
10025      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'
10026      # Note: this linker hardcodes the directories in LIBPATH if there
10027      # are no directories specified by -L.
10028      hardcode_minus_L=yes
10029      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10030	# Neither direct hardcoding nor static linking is supported with a
10031	# broken collect2.
10032	hardcode_direct=unsupported
10033      fi
10034      ;;
10035
10036    aix[4-9]*)
10037      if test ia64 = "$host_cpu"; then
10038	# On IA64, the linker does run time linking by default, so we don't
10039	# have to do anything special.
10040	aix_use_runtimelinking=no
10041	exp_sym_flag='-Bexport'
10042	no_entry_flag=
10043      else
10044	# If we're using GNU nm, then we don't want the "-C" option.
10045	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
10046	# Without the "-l" option, or with the "-B" option, AIX nm treats
10047	# weak defined symbols like other global defined symbols, whereas
10048	# GNU nm marks them as "W".
10049	# While the 'weak' keyword is ignored in the Export File, we need
10050	# it in the Import File for the 'aix-soname' feature, so we have
10051	# to replace the "-B" option with "-P" for AIX nm.
10052	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10053	  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'
10054	else
10055	  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'
10056	fi
10057	aix_use_runtimelinking=no
10058
10059	# Test if we are trying to use run time linking or normal
10060	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10061	# have runtime linking enabled, and use it for executables.
10062	# For shared libraries, we enable/disable runtime linking
10063	# depending on the kind of the shared library created -
10064	# when "with_aix_soname,aix_use_runtimelinking" is:
10065	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
10066	# "aix,yes"  lib.so          shared, rtl:yes, for executables
10067	#            lib.a           static archive
10068	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
10069	#            lib.a(lib.so.V) shared, rtl:no,  for executables
10070	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10071	#            lib.a(lib.so.V) shared, rtl:no
10072	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
10073	#            lib.a           static archive
10074	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10075	  for ld_flag in $LDFLAGS; do
10076	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10077	    aix_use_runtimelinking=yes
10078	    break
10079	  fi
10080	  done
10081	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10082	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
10083	    # so we don't have lib.a shared libs to link our executables.
10084	    # We have to force runtime linking in this case.
10085	    aix_use_runtimelinking=yes
10086	    LDFLAGS="$LDFLAGS -Wl,-brtl"
10087	  fi
10088	  ;;
10089	esac
10090
10091	exp_sym_flag='-bexport'
10092	no_entry_flag='-bnoentry'
10093      fi
10094
10095      # When large executables or shared objects are built, AIX ld can
10096      # have problems creating the table of contents.  If linking a library
10097      # or program results in "error TOC overflow" add -mminimal-toc to
10098      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10099      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10100
10101      archive_cmds=''
10102      hardcode_direct=yes
10103      hardcode_direct_absolute=yes
10104      hardcode_libdir_separator=':'
10105      link_all_deplibs=yes
10106      file_list_spec='$wl-f,'
10107      case $with_aix_soname,$aix_use_runtimelinking in
10108      aix,*) ;; # traditional, no import file
10109      svr4,* | *,yes) # use import file
10110	# The Import File defines what to hardcode.
10111	hardcode_direct=no
10112	hardcode_direct_absolute=no
10113	;;
10114      esac
10115
10116      if test yes = "$GCC"; then
10117	case $host_os in aix4.[012]|aix4.[012].*)
10118	# We only want to do this on AIX 4.2 and lower, the check
10119	# below for broken collect2 doesn't work under 4.3+
10120	  collect2name=`$CC -print-prog-name=collect2`
10121	  if test -f "$collect2name" &&
10122	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10123	  then
10124	  # We have reworked collect2
10125	  :
10126	  else
10127	  # We have old collect2
10128	  hardcode_direct=unsupported
10129	  # It fails to find uninstalled libraries when the uninstalled
10130	  # path is not listed in the libpath.  Setting hardcode_minus_L
10131	  # to unsupported forces relinking
10132	  hardcode_minus_L=yes
10133	  hardcode_libdir_flag_spec='-L$libdir'
10134	  hardcode_libdir_separator=
10135	  fi
10136	  ;;
10137	esac
10138	shared_flag='-shared'
10139	if test yes = "$aix_use_runtimelinking"; then
10140	  shared_flag="$shared_flag "'$wl-G'
10141	fi
10142	# Need to ensure runtime linking is disabled for the traditional
10143	# shared library, or the linker may eventually find shared libraries
10144	# /with/ Import File - we do not want to mix them.
10145	shared_flag_aix='-shared'
10146	shared_flag_svr4='-shared $wl-G'
10147      else
10148	# not using gcc
10149	if test ia64 = "$host_cpu"; then
10150	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10151	# chokes on -Wl,-G. The following line is correct:
10152	  shared_flag='-G'
10153	else
10154	  if test yes = "$aix_use_runtimelinking"; then
10155	    shared_flag='$wl-G'
10156	  else
10157	    shared_flag='$wl-bM:SRE'
10158	  fi
10159	  shared_flag_aix='$wl-bM:SRE'
10160	  shared_flag_svr4='$wl-G'
10161	fi
10162      fi
10163
10164      export_dynamic_flag_spec='$wl-bexpall'
10165      # It seems that -bexpall does not export symbols beginning with
10166      # underscore (_), so it is better to generate a list of symbols to export.
10167      always_export_symbols=yes
10168      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10169	# Warning - without using the other runtime loading flags (-brtl),
10170	# -berok will link without error, but may produce a broken library.
10171	allow_undefined_flag='-berok'
10172        # Determine the default libpath from the value encoded in an
10173        # empty executable.
10174        if test set = "${lt_cv_aix_libpath+set}"; then
10175  aix_libpath=$lt_cv_aix_libpath
10176else
10177  if test ${lt_cv_aix_libpath_+y}
10178then :
10179  printf %s "(cached) " >&6
10180else $as_nop
10181  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10182/* end confdefs.h.  */
10183
10184int
10185main (void)
10186{
10187
10188  ;
10189  return 0;
10190}
10191_ACEOF
10192if ac_fn_c_try_link "$LINENO"
10193then :
10194
10195  lt_aix_libpath_sed='
10196      /Import File Strings/,/^$/ {
10197	  /^0/ {
10198	      s/^0  *\([^ ]*\) *$/\1/
10199	      p
10200	  }
10201      }'
10202  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10203  # Check for a 64-bit object if we didn't find anything.
10204  if test -z "$lt_cv_aix_libpath_"; then
10205    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10206  fi
10207fi
10208rm -f core conftest.err conftest.$ac_objext conftest.beam \
10209    conftest$ac_exeext conftest.$ac_ext
10210  if test -z "$lt_cv_aix_libpath_"; then
10211    lt_cv_aix_libpath_=/usr/lib:/lib
10212  fi
10213
10214fi
10215
10216  aix_libpath=$lt_cv_aix_libpath_
10217fi
10218
10219        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10220        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
10221      else
10222	if test ia64 = "$host_cpu"; then
10223	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10224	  allow_undefined_flag="-z nodefs"
10225	  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"
10226	else
10227	 # Determine the default libpath from the value encoded in an
10228	 # empty executable.
10229	 if test set = "${lt_cv_aix_libpath+set}"; then
10230  aix_libpath=$lt_cv_aix_libpath
10231else
10232  if test ${lt_cv_aix_libpath_+y}
10233then :
10234  printf %s "(cached) " >&6
10235else $as_nop
10236  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10237/* end confdefs.h.  */
10238
10239int
10240main (void)
10241{
10242
10243  ;
10244  return 0;
10245}
10246_ACEOF
10247if ac_fn_c_try_link "$LINENO"
10248then :
10249
10250  lt_aix_libpath_sed='
10251      /Import File Strings/,/^$/ {
10252	  /^0/ {
10253	      s/^0  *\([^ ]*\) *$/\1/
10254	      p
10255	  }
10256      }'
10257  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10258  # Check for a 64-bit object if we didn't find anything.
10259  if test -z "$lt_cv_aix_libpath_"; then
10260    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10261  fi
10262fi
10263rm -f core conftest.err conftest.$ac_objext conftest.beam \
10264    conftest$ac_exeext conftest.$ac_ext
10265  if test -z "$lt_cv_aix_libpath_"; then
10266    lt_cv_aix_libpath_=/usr/lib:/lib
10267  fi
10268
10269fi
10270
10271  aix_libpath=$lt_cv_aix_libpath_
10272fi
10273
10274	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10275	  # Warning - without using the other run time loading flags,
10276	  # -berok will link without error, but may produce a broken library.
10277	  no_undefined_flag=' $wl-bernotok'
10278	  allow_undefined_flag=' $wl-berok'
10279	  if test yes = "$with_gnu_ld"; then
10280	    # We only use this code for GNU lds that support --whole-archive.
10281	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10282	  else
10283	    # Exported symbols can be pulled into shared objects from archives
10284	    whole_archive_flag_spec='$convenience'
10285	  fi
10286	  archive_cmds_need_lc=yes
10287	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10288	  # -brtl affects multiple linker settings, -berok does not and is overridden later
10289	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10290	  if test svr4 != "$with_aix_soname"; then
10291	    # This is similar to how AIX traditionally builds its shared libraries.
10292	    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'
10293	  fi
10294	  if test aix != "$with_aix_soname"; then
10295	    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'
10296	  else
10297	    # used by -dlpreopen to get the symbols
10298	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10299	  fi
10300	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10301	fi
10302      fi
10303      ;;
10304
10305    amigaos*)
10306      case $host_cpu in
10307      powerpc)
10308            # see comment about AmigaOS4 .so support
10309            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10310            archive_expsym_cmds=''
10311        ;;
10312      m68k)
10313            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)'
10314            hardcode_libdir_flag_spec='-L$libdir'
10315            hardcode_minus_L=yes
10316        ;;
10317      esac
10318      ;;
10319
10320    bsdi[45]*)
10321      export_dynamic_flag_spec=-rdynamic
10322      ;;
10323
10324    cygwin* | mingw* | pw32* | cegcc*)
10325      # When not using gcc, we currently assume that we are using
10326      # Microsoft Visual C++ or Intel C++ Compiler.
10327      # hardcode_libdir_flag_spec is actually meaningless, as there is
10328      # no search path for DLLs.
10329      case $cc_basename in
10330      cl* | icl*)
10331	# Native MSVC or ICC
10332	hardcode_libdir_flag_spec=' '
10333	allow_undefined_flag=unsupported
10334	always_export_symbols=yes
10335	file_list_spec='@'
10336	# Tell ltmain to make .lib files, not .a files.
10337	libext=lib
10338	# Tell ltmain to make .dll files, not .so files.
10339	shrext_cmds=.dll
10340	# FIXME: Setting linknames here is a bad hack.
10341	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10342	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10343            cp "$export_symbols" "$output_objdir/$soname.def";
10344            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10345          else
10346            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10347          fi~
10348          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10349          linknames='
10350	# The linker will not automatically build a static lib if we build a DLL.
10351	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10352	enable_shared_with_static_runtimes=yes
10353	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10354	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10355	# Don't use ranlib
10356	old_postinstall_cmds='chmod 644 $oldlib'
10357	postlink_cmds='lt_outputfile="@OUTPUT@"~
10358          lt_tool_outputfile="@TOOL_OUTPUT@"~
10359          case $lt_outputfile in
10360            *.exe|*.EXE) ;;
10361            *)
10362              lt_outputfile=$lt_outputfile.exe
10363              lt_tool_outputfile=$lt_tool_outputfile.exe
10364              ;;
10365          esac~
10366          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10367            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10368            $RM "$lt_outputfile.manifest";
10369          fi'
10370	;;
10371      *)
10372	# Assume MSVC and ICC wrapper
10373	hardcode_libdir_flag_spec=' '
10374	allow_undefined_flag=unsupported
10375	# Tell ltmain to make .lib files, not .a files.
10376	libext=lib
10377	# Tell ltmain to make .dll files, not .so files.
10378	shrext_cmds=.dll
10379	# FIXME: Setting linknames here is a bad hack.
10380	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10381	# The linker will automatically build a .lib file if we build a DLL.
10382	old_archive_from_new_cmds='true'
10383	# FIXME: Should let the user specify the lib program.
10384	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10385	enable_shared_with_static_runtimes=yes
10386	;;
10387      esac
10388      ;;
10389
10390    darwin* | rhapsody*)
10391
10392
10393  archive_cmds_need_lc=no
10394  hardcode_direct=no
10395  hardcode_automatic=yes
10396  hardcode_shlibpath_var=unsupported
10397  if test yes = "$lt_cv_ld_force_load"; then
10398    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\"`'
10399
10400  else
10401    whole_archive_flag_spec=''
10402  fi
10403  link_all_deplibs=yes
10404  allow_undefined_flag=$_lt_dar_allow_undefined
10405  case $cc_basename in
10406     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10407     *) _lt_dar_can_shared=$GCC ;;
10408  esac
10409  if test yes = "$_lt_dar_can_shared"; then
10410    output_verbose_link_cmd=func_echo_all
10411    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10412    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10413    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"
10414    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"
10415
10416  else
10417  ld_shlibs=no
10418  fi
10419
10420      ;;
10421
10422    dgux*)
10423      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10424      hardcode_libdir_flag_spec='-L$libdir'
10425      hardcode_shlibpath_var=no
10426      ;;
10427
10428    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10429    # support.  Future versions do this automatically, but an explicit c++rt0.o
10430    # does not break anything, and helps significantly (at the cost of a little
10431    # extra space).
10432    freebsd2.2*)
10433      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10434      hardcode_libdir_flag_spec='-R$libdir'
10435      hardcode_direct=yes
10436      hardcode_shlibpath_var=no
10437      ;;
10438
10439    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10440    freebsd2.*)
10441      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10442      hardcode_direct=yes
10443      hardcode_minus_L=yes
10444      hardcode_shlibpath_var=no
10445      ;;
10446
10447    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10448    freebsd* | dragonfly* | midnightbsd*)
10449      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10450      hardcode_libdir_flag_spec='-R$libdir'
10451      hardcode_direct=yes
10452      hardcode_shlibpath_var=no
10453      ;;
10454
10455    hpux9*)
10456      if test yes = "$GCC"; then
10457	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'
10458      else
10459	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'
10460      fi
10461      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10462      hardcode_libdir_separator=:
10463      hardcode_direct=yes
10464
10465      # hardcode_minus_L: Not really in the search PATH,
10466      # but as the default location of the library.
10467      hardcode_minus_L=yes
10468      export_dynamic_flag_spec='$wl-E'
10469      ;;
10470
10471    hpux10*)
10472      if test yes,no = "$GCC,$with_gnu_ld"; then
10473	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10474      else
10475	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10476      fi
10477      if test no = "$with_gnu_ld"; then
10478	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10479	hardcode_libdir_separator=:
10480	hardcode_direct=yes
10481	hardcode_direct_absolute=yes
10482	export_dynamic_flag_spec='$wl-E'
10483	# hardcode_minus_L: Not really in the search PATH,
10484	# but as the default location of the library.
10485	hardcode_minus_L=yes
10486      fi
10487      ;;
10488
10489    hpux11*)
10490      if test yes,no = "$GCC,$with_gnu_ld"; then
10491	case $host_cpu in
10492	hppa*64*)
10493	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10494	  ;;
10495	ia64*)
10496	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10497	  ;;
10498	*)
10499	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10500	  ;;
10501	esac
10502      else
10503	case $host_cpu in
10504	hppa*64*)
10505	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10506	  ;;
10507	ia64*)
10508	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10509	  ;;
10510	*)
10511
10512	  # Older versions of the 11.00 compiler do not understand -b yet
10513	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10514	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10515printf %s "checking if $CC understands -b... " >&6; }
10516if test ${lt_cv_prog_compiler__b+y}
10517then :
10518  printf %s "(cached) " >&6
10519else $as_nop
10520  lt_cv_prog_compiler__b=no
10521   save_LDFLAGS=$LDFLAGS
10522   LDFLAGS="$LDFLAGS -b"
10523   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10524   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10525     # The linker can only warn and ignore the option if not recognized
10526     # So say no if there are warnings
10527     if test -s conftest.err; then
10528       # Append any errors to the config.log.
10529       cat conftest.err 1>&5
10530       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10531       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10532       if diff conftest.exp conftest.er2 >/dev/null; then
10533         lt_cv_prog_compiler__b=yes
10534       fi
10535     else
10536       lt_cv_prog_compiler__b=yes
10537     fi
10538   fi
10539   $RM -r conftest*
10540   LDFLAGS=$save_LDFLAGS
10541
10542fi
10543{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10544printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10545
10546if test yes = "$lt_cv_prog_compiler__b"; then
10547    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10548else
10549    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10550fi
10551
10552	  ;;
10553	esac
10554      fi
10555      if test no = "$with_gnu_ld"; then
10556	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10557	hardcode_libdir_separator=:
10558
10559	case $host_cpu in
10560	hppa*64*|ia64*)
10561	  hardcode_direct=no
10562	  hardcode_shlibpath_var=no
10563	  ;;
10564	*)
10565	  hardcode_direct=yes
10566	  hardcode_direct_absolute=yes
10567	  export_dynamic_flag_spec='$wl-E'
10568
10569	  # hardcode_minus_L: Not really in the search PATH,
10570	  # but as the default location of the library.
10571	  hardcode_minus_L=yes
10572	  ;;
10573	esac
10574      fi
10575      ;;
10576
10577    irix5* | irix6* | nonstopux*)
10578      if test yes = "$GCC"; then
10579	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'
10580	# Try to use the -exported_symbol ld option, if it does not
10581	# work, assume that -exports_file does not work either and
10582	# implicitly export all symbols.
10583	# This should be the same for all languages, so no per-tag cache variable.
10584	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10585printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10586if test ${lt_cv_irix_exported_symbol+y}
10587then :
10588  printf %s "(cached) " >&6
10589else $as_nop
10590  save_LDFLAGS=$LDFLAGS
10591	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10592	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10593/* end confdefs.h.  */
10594int foo (void) { return 0; }
10595_ACEOF
10596if ac_fn_c_try_link "$LINENO"
10597then :
10598  lt_cv_irix_exported_symbol=yes
10599else $as_nop
10600  lt_cv_irix_exported_symbol=no
10601fi
10602rm -f core conftest.err conftest.$ac_objext conftest.beam \
10603    conftest$ac_exeext conftest.$ac_ext
10604           LDFLAGS=$save_LDFLAGS
10605fi
10606{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10607printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
10608	if test yes = "$lt_cv_irix_exported_symbol"; then
10609          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'
10610	fi
10611	link_all_deplibs=no
10612      else
10613	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'
10614	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'
10615      fi
10616      archive_cmds_need_lc='no'
10617      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10618      hardcode_libdir_separator=:
10619      inherit_rpath=yes
10620      link_all_deplibs=yes
10621      ;;
10622
10623    linux*)
10624      case $cc_basename in
10625      tcc*)
10626	# Fabrice Bellard et al's Tiny C Compiler
10627	ld_shlibs=yes
10628	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10629	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10630	;;
10631      esac
10632      ;;
10633
10634    netbsd* | netbsdelf*-gnu)
10635      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10636	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10637      else
10638	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10639      fi
10640      hardcode_libdir_flag_spec='-R$libdir'
10641      hardcode_direct=yes
10642      hardcode_shlibpath_var=no
10643      ;;
10644
10645    newsos6)
10646      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10647      hardcode_direct=yes
10648      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10649      hardcode_libdir_separator=:
10650      hardcode_shlibpath_var=no
10651      ;;
10652
10653    *nto* | *qnx*)
10654      ;;
10655
10656    openbsd* | bitrig*)
10657      if test -f /usr/libexec/ld.so; then
10658	hardcode_direct=yes
10659	hardcode_shlibpath_var=no
10660	hardcode_direct_absolute=yes
10661	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10662	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10663	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10664	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10665	  export_dynamic_flag_spec='$wl-E'
10666	else
10667	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10668	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10669	fi
10670      else
10671	ld_shlibs=no
10672      fi
10673      ;;
10674
10675    os2*)
10676      hardcode_libdir_flag_spec='-L$libdir'
10677      hardcode_minus_L=yes
10678      allow_undefined_flag=unsupported
10679      shrext_cmds=.dll
10680      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10681	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10682	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10683	$ECHO EXPORTS >> $output_objdir/$libname.def~
10684	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10685	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10686	emximp -o $lib $output_objdir/$libname.def'
10687      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10688	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10689	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10690	$ECHO EXPORTS >> $output_objdir/$libname.def~
10691	prefix_cmds="$SED"~
10692	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10693	  prefix_cmds="$prefix_cmds -e 1d";
10694	fi~
10695	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10696	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10697	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10698	emximp -o $lib $output_objdir/$libname.def'
10699      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10700      enable_shared_with_static_runtimes=yes
10701      file_list_spec='@'
10702      ;;
10703
10704    osf3*)
10705      if test yes = "$GCC"; then
10706	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10707	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'
10708      else
10709	allow_undefined_flag=' -expect_unresolved \*'
10710	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'
10711      fi
10712      archive_cmds_need_lc='no'
10713      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10714      hardcode_libdir_separator=:
10715      ;;
10716
10717    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10718      if test yes = "$GCC"; then
10719	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10720	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'
10721	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10722      else
10723	allow_undefined_flag=' -expect_unresolved \*'
10724	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'
10725	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~
10726          $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'
10727
10728	# Both c and cxx compiler support -rpath directly
10729	hardcode_libdir_flag_spec='-rpath $libdir'
10730      fi
10731      archive_cmds_need_lc='no'
10732      hardcode_libdir_separator=:
10733      ;;
10734
10735    solaris*)
10736      no_undefined_flag=' -z defs'
10737      if test yes = "$GCC"; then
10738	wlarc='$wl'
10739	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10740	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10741          $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'
10742      else
10743	case `$CC -V 2>&1` in
10744	*"Compilers 5.0"*)
10745	  wlarc=''
10746	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10747	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10748            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10749	  ;;
10750	*)
10751	  wlarc='$wl'
10752	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10753	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10754            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10755	  ;;
10756	esac
10757      fi
10758      hardcode_libdir_flag_spec='-R$libdir'
10759      hardcode_shlibpath_var=no
10760      case $host_os in
10761      solaris2.[0-5] | solaris2.[0-5].*) ;;
10762      *)
10763	# The compiler driver will combine and reorder linker options,
10764	# but understands '-z linker_flag'.  GCC discards it without '$wl',
10765	# but is careful enough not to reorder.
10766	# Supported since Solaris 2.6 (maybe 2.5.1?)
10767	if test yes = "$GCC"; then
10768	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10769	else
10770	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10771	fi
10772	;;
10773      esac
10774      link_all_deplibs=yes
10775      ;;
10776
10777    sunos4*)
10778      if test sequent = "$host_vendor"; then
10779	# Use $CC to link under sequent, because it throws in some extra .o
10780	# files that make .init and .fini sections work.
10781	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10782      else
10783	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10784      fi
10785      hardcode_libdir_flag_spec='-L$libdir'
10786      hardcode_direct=yes
10787      hardcode_minus_L=yes
10788      hardcode_shlibpath_var=no
10789      ;;
10790
10791    sysv4)
10792      case $host_vendor in
10793	sni)
10794	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10795	  hardcode_direct=yes # is this really true???
10796	;;
10797	siemens)
10798	  ## LD is ld it makes a PLAMLIB
10799	  ## CC just makes a GrossModule.
10800	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10801	  reload_cmds='$CC -r -o $output$reload_objs'
10802	  hardcode_direct=no
10803        ;;
10804	motorola)
10805	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10806	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10807	;;
10808      esac
10809      runpath_var='LD_RUN_PATH'
10810      hardcode_shlibpath_var=no
10811      ;;
10812
10813    sysv4.3*)
10814      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10815      hardcode_shlibpath_var=no
10816      export_dynamic_flag_spec='-Bexport'
10817      ;;
10818
10819    sysv4*MP*)
10820      if test -d /usr/nec; then
10821	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10822	hardcode_shlibpath_var=no
10823	runpath_var=LD_RUN_PATH
10824	hardcode_runpath_var=yes
10825	ld_shlibs=yes
10826      fi
10827      ;;
10828
10829    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10830      no_undefined_flag='$wl-z,text'
10831      archive_cmds_need_lc=no
10832      hardcode_shlibpath_var=no
10833      runpath_var='LD_RUN_PATH'
10834
10835      if test yes = "$GCC"; then
10836	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10837	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10838      else
10839	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10840	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10841      fi
10842      ;;
10843
10844    sysv5* | sco3.2v5* | sco5v6*)
10845      # Note: We CANNOT use -z defs as we might desire, because we do not
10846      # link with -lc, and that would cause any symbols used from libc to
10847      # always be unresolved, which means just about no library would
10848      # ever link correctly.  If we're not using GNU ld we use -z text
10849      # though, which does catch some bad symbols but isn't as heavy-handed
10850      # as -z defs.
10851      no_undefined_flag='$wl-z,text'
10852      allow_undefined_flag='$wl-z,nodefs'
10853      archive_cmds_need_lc=no
10854      hardcode_shlibpath_var=no
10855      hardcode_libdir_flag_spec='$wl-R,$libdir'
10856      hardcode_libdir_separator=':'
10857      link_all_deplibs=yes
10858      export_dynamic_flag_spec='$wl-Bexport'
10859      runpath_var='LD_RUN_PATH'
10860
10861      if test yes = "$GCC"; then
10862	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10863	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10864      else
10865	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10866	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10867      fi
10868      ;;
10869
10870    uts4*)
10871      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10872      hardcode_libdir_flag_spec='-L$libdir'
10873      hardcode_shlibpath_var=no
10874      ;;
10875
10876    *)
10877      ld_shlibs=no
10878      ;;
10879    esac
10880
10881    if test sni = "$host_vendor"; then
10882      case $host in
10883      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10884	export_dynamic_flag_spec='$wl-Blargedynsym'
10885	;;
10886      esac
10887    fi
10888  fi
10889
10890{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10891printf "%s\n" "$ld_shlibs" >&6; }
10892test no = "$ld_shlibs" && can_build_shared=no
10893
10894with_gnu_ld=$with_gnu_ld
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910#
10911# Do we need to explicitly link libc?
10912#
10913case "x$archive_cmds_need_lc" in
10914x|xyes)
10915  # Assume -lc should be added
10916  archive_cmds_need_lc=yes
10917
10918  if test yes,yes = "$GCC,$enable_shared"; then
10919    case $archive_cmds in
10920    *'~'*)
10921      # FIXME: we may have to deal with multi-command sequences.
10922      ;;
10923    '$CC '*)
10924      # Test whether the compiler implicitly links with -lc since on some
10925      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10926      # to ld, don't add -lc before -lgcc.
10927      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10928printf %s "checking whether -lc should be explicitly linked in... " >&6; }
10929if test ${lt_cv_archive_cmds_need_lc+y}
10930then :
10931  printf %s "(cached) " >&6
10932else $as_nop
10933  $RM conftest*
10934	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10935
10936	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10937  (eval $ac_compile) 2>&5
10938  ac_status=$?
10939  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10940  test $ac_status = 0; } 2>conftest.err; then
10941	  soname=conftest
10942	  lib=conftest
10943	  libobjs=conftest.$ac_objext
10944	  deplibs=
10945	  wl=$lt_prog_compiler_wl
10946	  pic_flag=$lt_prog_compiler_pic
10947	  compiler_flags=-v
10948	  linker_flags=-v
10949	  verstring=
10950	  output_objdir=.
10951	  libname=conftest
10952	  lt_save_allow_undefined_flag=$allow_undefined_flag
10953	  allow_undefined_flag=
10954	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10955  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10956  ac_status=$?
10957  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10958  test $ac_status = 0; }
10959	  then
10960	    lt_cv_archive_cmds_need_lc=no
10961	  else
10962	    lt_cv_archive_cmds_need_lc=yes
10963	  fi
10964	  allow_undefined_flag=$lt_save_allow_undefined_flag
10965	else
10966	  cat conftest.err 1>&5
10967	fi
10968	$RM conftest*
10969
10970fi
10971{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10972printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
10973      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10974      ;;
10975    esac
10976  fi
10977  ;;
10978esac
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
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11132printf %s "checking dynamic linker characteristics... " >&6; }
11133
11134if test yes = "$GCC"; then
11135  case $host_os in
11136    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11137    *) lt_awk_arg='/^libraries:/' ;;
11138  esac
11139  case $host_os in
11140    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11141    *) lt_sed_strip_eq='s|=/|/|g' ;;
11142  esac
11143  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11144  case $lt_search_path_spec in
11145  *\;*)
11146    # if the path contains ";" then we assume it to be the separator
11147    # otherwise default to the standard path separator (i.e. ":") - it is
11148    # assumed that no part of a normal pathname contains ";" but that should
11149    # okay in the real world where ";" in dirpaths is itself problematic.
11150    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11151    ;;
11152  *)
11153    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11154    ;;
11155  esac
11156  # Ok, now we have the path, separated by spaces, we can step through it
11157  # and add multilib dir if necessary...
11158  lt_tmp_lt_search_path_spec=
11159  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11160  # ...but if some path component already ends with the multilib dir we assume
11161  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11162  case "$lt_multi_os_dir; $lt_search_path_spec " in
11163  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11164    lt_multi_os_dir=
11165    ;;
11166  esac
11167  for lt_sys_path in $lt_search_path_spec; do
11168    if test -d "$lt_sys_path$lt_multi_os_dir"; then
11169      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11170    elif test -n "$lt_multi_os_dir"; then
11171      test -d "$lt_sys_path" && \
11172	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11173    fi
11174  done
11175  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11176BEGIN {RS = " "; FS = "/|\n";} {
11177  lt_foo = "";
11178  lt_count = 0;
11179  for (lt_i = NF; lt_i > 0; lt_i--) {
11180    if ($lt_i != "" && $lt_i != ".") {
11181      if ($lt_i == "..") {
11182        lt_count++;
11183      } else {
11184        if (lt_count == 0) {
11185          lt_foo = "/" $lt_i lt_foo;
11186        } else {
11187          lt_count--;
11188        }
11189      }
11190    }
11191  }
11192  if (lt_foo != "") { lt_freq[lt_foo]++; }
11193  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11194}'`
11195  # AWK program above erroneously prepends '/' to C:/dos/paths
11196  # for these hosts.
11197  case $host_os in
11198    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11199      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11200  esac
11201  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11202else
11203  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11204fi
11205library_names_spec=
11206libname_spec='lib$name'
11207soname_spec=
11208shrext_cmds=.so
11209postinstall_cmds=
11210postuninstall_cmds=
11211finish_cmds=
11212finish_eval=
11213shlibpath_var=
11214shlibpath_overrides_runpath=unknown
11215version_type=none
11216dynamic_linker="$host_os ld.so"
11217sys_lib_dlsearch_path_spec="/lib /usr/lib"
11218need_lib_prefix=unknown
11219hardcode_into_libs=no
11220
11221# when you set need_version to no, make sure it does not cause -set_version
11222# flags to be left without arguments
11223need_version=unknown
11224
11225
11226
11227case $host_os in
11228aix3*)
11229  version_type=linux # correct to gnu/linux during the next big refactor
11230  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11231  shlibpath_var=LIBPATH
11232
11233  # AIX 3 has no versioning support, so we append a major version to the name.
11234  soname_spec='$libname$release$shared_ext$major'
11235  ;;
11236
11237aix[4-9]*)
11238  version_type=linux # correct to gnu/linux during the next big refactor
11239  need_lib_prefix=no
11240  need_version=no
11241  hardcode_into_libs=yes
11242  if test ia64 = "$host_cpu"; then
11243    # AIX 5 supports IA64
11244    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11245    shlibpath_var=LD_LIBRARY_PATH
11246  else
11247    # With GCC up to 2.95.x, collect2 would create an import file
11248    # for dependence libraries.  The import file would start with
11249    # the line '#! .'.  This would cause the generated library to
11250    # depend on '.', always an invalid library.  This was fixed in
11251    # development snapshots of GCC prior to 3.0.
11252    case $host_os in
11253      aix4 | aix4.[01] | aix4.[01].*)
11254      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11255	   echo ' yes '
11256	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11257	:
11258      else
11259	can_build_shared=no
11260      fi
11261      ;;
11262    esac
11263    # Using Import Files as archive members, it is possible to support
11264    # filename-based versioning of shared library archives on AIX. While
11265    # this would work for both with and without runtime linking, it will
11266    # prevent static linking of such archives. So we do filename-based
11267    # shared library versioning with .so extension only, which is used
11268    # when both runtime linking and shared linking is enabled.
11269    # Unfortunately, runtime linking may impact performance, so we do
11270    # not want this to be the default eventually. Also, we use the
11271    # versioned .so libs for executables only if there is the -brtl
11272    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11273    # To allow for filename-based versioning support, we need to create
11274    # libNAME.so.V as an archive file, containing:
11275    # *) an Import File, referring to the versioned filename of the
11276    #    archive as well as the shared archive member, telling the
11277    #    bitwidth (32 or 64) of that shared object, and providing the
11278    #    list of exported symbols of that shared object, eventually
11279    #    decorated with the 'weak' keyword
11280    # *) the shared object with the F_LOADONLY flag set, to really avoid
11281    #    it being seen by the linker.
11282    # At run time we better use the real file rather than another symlink,
11283    # but for link time we create the symlink libNAME.so -> libNAME.so.V
11284
11285    case $with_aix_soname,$aix_use_runtimelinking in
11286    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11287    # soname into executable. Probably we can add versioning support to
11288    # collect2, so additional links can be useful in future.
11289    aix,yes) # traditional libtool
11290      dynamic_linker='AIX unversionable lib.so'
11291      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11292      # instead of lib<name>.a to let people know that these are not
11293      # typical AIX shared libraries.
11294      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11295      ;;
11296    aix,no) # traditional AIX only
11297      dynamic_linker='AIX lib.a(lib.so.V)'
11298      # We preserve .a as extension for shared libraries through AIX4.2
11299      # and later when we are not doing run time linking.
11300      library_names_spec='$libname$release.a $libname.a'
11301      soname_spec='$libname$release$shared_ext$major'
11302      ;;
11303    svr4,*) # full svr4 only
11304      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11305      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11306      # We do not specify a path in Import Files, so LIBPATH fires.
11307      shlibpath_overrides_runpath=yes
11308      ;;
11309    *,yes) # both, prefer svr4
11310      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11311      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11312      # unpreferred sharedlib libNAME.a needs extra handling
11313      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"'
11314      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"'
11315      # We do not specify a path in Import Files, so LIBPATH fires.
11316      shlibpath_overrides_runpath=yes
11317      ;;
11318    *,no) # both, prefer aix
11319      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11320      library_names_spec='$libname$release.a $libname.a'
11321      soname_spec='$libname$release$shared_ext$major'
11322      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11323      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)'
11324      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"'
11325      ;;
11326    esac
11327    shlibpath_var=LIBPATH
11328  fi
11329  ;;
11330
11331amigaos*)
11332  case $host_cpu in
11333  powerpc)
11334    # Since July 2007 AmigaOS4 officially supports .so libraries.
11335    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11336    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11337    ;;
11338  m68k)
11339    library_names_spec='$libname.ixlibrary $libname.a'
11340    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11341    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'
11342    ;;
11343  esac
11344  ;;
11345
11346beos*)
11347  library_names_spec='$libname$shared_ext'
11348  dynamic_linker="$host_os ld.so"
11349  shlibpath_var=LIBRARY_PATH
11350  ;;
11351
11352bsdi[45]*)
11353  version_type=linux # correct to gnu/linux during the next big refactor
11354  need_version=no
11355  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11356  soname_spec='$libname$release$shared_ext$major'
11357  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11358  shlibpath_var=LD_LIBRARY_PATH
11359  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11360  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11361  # the default ld.so.conf also contains /usr/contrib/lib and
11362  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11363  # libtool to hard-code these into programs
11364  ;;
11365
11366cygwin* | mingw* | pw32* | cegcc*)
11367  version_type=windows
11368  shrext_cmds=.dll
11369  need_version=no
11370  need_lib_prefix=no
11371
11372  case $GCC,$cc_basename in
11373  yes,*)
11374    # gcc
11375    library_names_spec='$libname.dll.a'
11376    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11377    postinstall_cmds='base_file=`basename \$file`~
11378      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11379      dldir=$destdir/`dirname \$dlpath`~
11380      test -d \$dldir || mkdir -p \$dldir~
11381      $install_prog $dir/$dlname \$dldir/$dlname~
11382      chmod a+x \$dldir/$dlname~
11383      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11384        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11385      fi'
11386    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11387      dlpath=$dir/\$dldll~
11388       $RM \$dlpath'
11389    shlibpath_overrides_runpath=yes
11390
11391    case $host_os in
11392    cygwin*)
11393      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11394      soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11395
11396      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11397      ;;
11398    mingw* | cegcc*)
11399      # MinGW DLLs use traditional 'lib' prefix
11400      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11401      ;;
11402    pw32*)
11403      # pw32 DLLs use 'pw' prefix rather than 'lib'
11404      library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11405      ;;
11406    esac
11407    dynamic_linker='Win32 ld.exe'
11408    ;;
11409
11410  *,cl* | *,icl*)
11411    # Native MSVC or ICC
11412    libname_spec='$name'
11413    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11414    library_names_spec='$libname.dll.lib'
11415
11416    case $build_os in
11417    mingw*)
11418      sys_lib_search_path_spec=
11419      lt_save_ifs=$IFS
11420      IFS=';'
11421      for lt_path in $LIB
11422      do
11423        IFS=$lt_save_ifs
11424        # Let DOS variable expansion print the short 8.3 style file name.
11425        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11426        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11427      done
11428      IFS=$lt_save_ifs
11429      # Convert to MSYS style.
11430      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11431      ;;
11432    cygwin*)
11433      # Convert to unix form, then to dos form, then back to unix form
11434      # but this time dos style (no spaces!) so that the unix form looks
11435      # like /cygdrive/c/PROGRA~1:/cygdr...
11436      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11437      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11438      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11439      ;;
11440    *)
11441      sys_lib_search_path_spec=$LIB
11442      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11443        # It is most probably a Windows format PATH.
11444        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11445      else
11446        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11447      fi
11448      # FIXME: find the short name or the path components, as spaces are
11449      # common. (e.g. "Program Files" -> "PROGRA~1")
11450      ;;
11451    esac
11452
11453    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11454    postinstall_cmds='base_file=`basename \$file`~
11455      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11456      dldir=$destdir/`dirname \$dlpath`~
11457      test -d \$dldir || mkdir -p \$dldir~
11458      $install_prog $dir/$dlname \$dldir/$dlname'
11459    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11460      dlpath=$dir/\$dldll~
11461       $RM \$dlpath'
11462    shlibpath_overrides_runpath=yes
11463    dynamic_linker='Win32 link.exe'
11464    ;;
11465
11466  *)
11467    # Assume MSVC and ICC wrapper
11468    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11469    dynamic_linker='Win32 ld.exe'
11470    ;;
11471  esac
11472  # FIXME: first we should search . and the directory the executable is in
11473  shlibpath_var=PATH
11474  ;;
11475
11476darwin* | rhapsody*)
11477  dynamic_linker="$host_os dyld"
11478  version_type=darwin
11479  need_lib_prefix=no
11480  need_version=no
11481  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11482  soname_spec='$libname$release$major$shared_ext'
11483  shlibpath_overrides_runpath=yes
11484  shlibpath_var=DYLD_LIBRARY_PATH
11485  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11486
11487  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11488  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11489  ;;
11490
11491dgux*)
11492  version_type=linux # correct to gnu/linux during the next big refactor
11493  need_lib_prefix=no
11494  need_version=no
11495  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11496  soname_spec='$libname$release$shared_ext$major'
11497  shlibpath_var=LD_LIBRARY_PATH
11498  ;;
11499
11500freebsd* | dragonfly* | midnightbsd*)
11501  # DragonFly does not have aout.  When/if they implement a new
11502  # versioning mechanism, adjust this.
11503  if test -x /usr/bin/objformat; then
11504    objformat=`/usr/bin/objformat`
11505  else
11506    case $host_os in
11507    freebsd[23].*) objformat=aout ;;
11508    *) objformat=elf ;;
11509    esac
11510  fi
11511  version_type=freebsd-$objformat
11512  case $version_type in
11513    freebsd-elf*)
11514      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11515      soname_spec='$libname$release$shared_ext$major'
11516      need_version=no
11517      need_lib_prefix=no
11518      ;;
11519    freebsd-*)
11520      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11521      need_version=yes
11522      ;;
11523  esac
11524  shlibpath_var=LD_LIBRARY_PATH
11525  case $host_os in
11526  freebsd2.*)
11527    shlibpath_overrides_runpath=yes
11528    ;;
11529  freebsd3.[01]* | freebsdelf3.[01]*)
11530    shlibpath_overrides_runpath=yes
11531    hardcode_into_libs=yes
11532    ;;
11533  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11534  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11535    shlibpath_overrides_runpath=no
11536    hardcode_into_libs=yes
11537    ;;
11538  *) # from 4.6 on, and DragonFly
11539    shlibpath_overrides_runpath=yes
11540    hardcode_into_libs=yes
11541    ;;
11542  esac
11543  ;;
11544
11545haiku*)
11546  version_type=linux # correct to gnu/linux during the next big refactor
11547  need_lib_prefix=no
11548  need_version=no
11549  dynamic_linker="$host_os runtime_loader"
11550  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11551  soname_spec='$libname$release$shared_ext$major'
11552  shlibpath_var=LIBRARY_PATH
11553  shlibpath_overrides_runpath=no
11554  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11555  hardcode_into_libs=yes
11556  ;;
11557
11558hpux9* | hpux10* | hpux11*)
11559  # Give a soname corresponding to the major version so that dld.sl refuses to
11560  # link against other versions.
11561  version_type=sunos
11562  need_lib_prefix=no
11563  need_version=no
11564  case $host_cpu in
11565  ia64*)
11566    shrext_cmds='.so'
11567    hardcode_into_libs=yes
11568    dynamic_linker="$host_os dld.so"
11569    shlibpath_var=LD_LIBRARY_PATH
11570    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11571    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11572    soname_spec='$libname$release$shared_ext$major'
11573    if test 32 = "$HPUX_IA64_MODE"; then
11574      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11575      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11576    else
11577      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11578      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11579    fi
11580    ;;
11581  hppa*64*)
11582    shrext_cmds='.sl'
11583    hardcode_into_libs=yes
11584    dynamic_linker="$host_os dld.sl"
11585    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11586    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11587    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11588    soname_spec='$libname$release$shared_ext$major'
11589    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11590    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11591    ;;
11592  *)
11593    shrext_cmds='.sl'
11594    dynamic_linker="$host_os dld.sl"
11595    shlibpath_var=SHLIB_PATH
11596    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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    ;;
11600  esac
11601  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11602  postinstall_cmds='chmod 555 $lib'
11603  # or fails outright, so override atomically:
11604  install_override_mode=555
11605  ;;
11606
11607interix[3-9]*)
11608  version_type=linux # correct to gnu/linux during the next big refactor
11609  need_lib_prefix=no
11610  need_version=no
11611  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11612  soname_spec='$libname$release$shared_ext$major'
11613  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11614  shlibpath_var=LD_LIBRARY_PATH
11615  shlibpath_overrides_runpath=no
11616  hardcode_into_libs=yes
11617  ;;
11618
11619irix5* | irix6* | nonstopux*)
11620  case $host_os in
11621    nonstopux*) version_type=nonstopux ;;
11622    *)
11623	if test yes = "$lt_cv_prog_gnu_ld"; then
11624		version_type=linux # correct to gnu/linux during the next big refactor
11625	else
11626		version_type=irix
11627	fi ;;
11628  esac
11629  need_lib_prefix=no
11630  need_version=no
11631  soname_spec='$libname$release$shared_ext$major'
11632  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11633  case $host_os in
11634  irix5* | nonstopux*)
11635    libsuff= shlibsuff=
11636    ;;
11637  *)
11638    case $LD in # libtool.m4 will add one of these switches to LD
11639    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11640      libsuff= shlibsuff= libmagic=32-bit;;
11641    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11642      libsuff=32 shlibsuff=N32 libmagic=N32;;
11643    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11644      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11645    *) libsuff= shlibsuff= libmagic=never-match;;
11646    esac
11647    ;;
11648  esac
11649  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11650  shlibpath_overrides_runpath=no
11651  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11652  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11653  hardcode_into_libs=yes
11654  ;;
11655
11656# No shared lib support for Linux oldld, aout, or coff.
11657linux*oldld* | linux*aout* | linux*coff*)
11658  dynamic_linker=no
11659  ;;
11660
11661linux*android*)
11662  version_type=none # Android doesn't support versioned libraries.
11663  need_lib_prefix=no
11664  need_version=no
11665  library_names_spec='$libname$release$shared_ext'
11666  soname_spec='$libname$release$shared_ext'
11667  finish_cmds=
11668  shlibpath_var=LD_LIBRARY_PATH
11669  shlibpath_overrides_runpath=yes
11670
11671  # This implies no fast_install, which is unacceptable.
11672  # Some rework will be needed to allow for fast_install
11673  # before this can be enabled.
11674  hardcode_into_libs=yes
11675
11676  dynamic_linker='Android linker'
11677  # Don't embed -rpath directories since the linker doesn't support them.
11678  hardcode_libdir_flag_spec='-L$libdir'
11679  ;;
11680
11681# This must be glibc/ELF.
11682linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11683  version_type=linux # correct to gnu/linux during the next big refactor
11684  need_lib_prefix=no
11685  need_version=no
11686  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11687  soname_spec='$libname$release$shared_ext$major'
11688  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11689  shlibpath_var=LD_LIBRARY_PATH
11690  shlibpath_overrides_runpath=no
11691
11692  # Some binutils ld are patched to set DT_RUNPATH
11693  if test ${lt_cv_shlibpath_overrides_runpath+y}
11694then :
11695  printf %s "(cached) " >&6
11696else $as_nop
11697  lt_cv_shlibpath_overrides_runpath=no
11698    save_LDFLAGS=$LDFLAGS
11699    save_libdir=$libdir
11700    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11701	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11702    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11703/* end confdefs.h.  */
11704
11705int
11706main (void)
11707{
11708
11709  ;
11710  return 0;
11711}
11712_ACEOF
11713if ac_fn_c_try_link "$LINENO"
11714then :
11715  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
11716then :
11717  lt_cv_shlibpath_overrides_runpath=yes
11718fi
11719fi
11720rm -f core conftest.err conftest.$ac_objext conftest.beam \
11721    conftest$ac_exeext conftest.$ac_ext
11722    LDFLAGS=$save_LDFLAGS
11723    libdir=$save_libdir
11724
11725fi
11726
11727  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11728
11729  # This implies no fast_install, which is unacceptable.
11730  # Some rework will be needed to allow for fast_install
11731  # before this can be enabled.
11732  hardcode_into_libs=yes
11733
11734  # Ideally, we could use ldconfig to report *all* directores which are
11735  # searched for libraries, however this is still not possible.  Aside from not
11736  # being certain /sbin/ldconfig is available, command
11737  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11738  # even though it is searched at run-time.  Try to do the best guess by
11739  # appending ld.so.conf contents (and includes) to the search path.
11740  if test -f /etc/ld.so.conf; then
11741    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' ' '`
11742    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11743  fi
11744
11745  # We used to test for /lib/ld.so.1 and disable shared libraries on
11746  # powerpc, because MkLinux only supported shared libraries with the
11747  # GNU dynamic linker.  Since this was broken with cross compilers,
11748  # most powerpc-linux boxes support dynamic linking these days and
11749  # people can always --disable-shared, the test was removed, and we
11750  # assume the GNU/Linux dynamic linker is in use.
11751  dynamic_linker='GNU/Linux ld.so'
11752  ;;
11753
11754netbsdelf*-gnu)
11755  version_type=linux
11756  need_lib_prefix=no
11757  need_version=no
11758  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11759  soname_spec='${libname}${release}${shared_ext}$major'
11760  shlibpath_var=LD_LIBRARY_PATH
11761  shlibpath_overrides_runpath=no
11762  hardcode_into_libs=yes
11763  dynamic_linker='NetBSD ld.elf_so'
11764  ;;
11765
11766netbsd*)
11767  version_type=sunos
11768  need_lib_prefix=no
11769  need_version=no
11770  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11771    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11772    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11773    dynamic_linker='NetBSD (a.out) ld.so'
11774  else
11775    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11776    soname_spec='$libname$release$shared_ext$major'
11777    dynamic_linker='NetBSD ld.elf_so'
11778  fi
11779  shlibpath_var=LD_LIBRARY_PATH
11780  shlibpath_overrides_runpath=yes
11781  hardcode_into_libs=yes
11782  ;;
11783
11784newsos6)
11785  version_type=linux # correct to gnu/linux during the next big refactor
11786  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11787  shlibpath_var=LD_LIBRARY_PATH
11788  shlibpath_overrides_runpath=yes
11789  ;;
11790
11791*nto* | *qnx*)
11792  version_type=qnx
11793  need_lib_prefix=no
11794  need_version=no
11795  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11796  soname_spec='$libname$release$shared_ext$major'
11797  shlibpath_var=LD_LIBRARY_PATH
11798  shlibpath_overrides_runpath=no
11799  hardcode_into_libs=yes
11800  dynamic_linker='ldqnx.so'
11801  ;;
11802
11803openbsd* | bitrig*)
11804  version_type=sunos
11805  sys_lib_dlsearch_path_spec=/usr/lib
11806  need_lib_prefix=no
11807  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11808    need_version=no
11809  else
11810    need_version=yes
11811  fi
11812  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11813  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11814  shlibpath_var=LD_LIBRARY_PATH
11815  shlibpath_overrides_runpath=yes
11816  ;;
11817
11818os2*)
11819  libname_spec='$name'
11820  version_type=windows
11821  shrext_cmds=.dll
11822  need_version=no
11823  need_lib_prefix=no
11824  # OS/2 can only load a DLL with a base name of 8 characters or less.
11825  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11826    v=$($ECHO $release$versuffix | tr -d .-);
11827    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11828    $ECHO $n$v`$shared_ext'
11829  library_names_spec='${libname}_dll.$libext'
11830  dynamic_linker='OS/2 ld.exe'
11831  shlibpath_var=BEGINLIBPATH
11832  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11833  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11834  postinstall_cmds='base_file=`basename \$file`~
11835    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11836    dldir=$destdir/`dirname \$dlpath`~
11837    test -d \$dldir || mkdir -p \$dldir~
11838    $install_prog $dir/$dlname \$dldir/$dlname~
11839    chmod a+x \$dldir/$dlname~
11840    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11841      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11842    fi'
11843  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11844    dlpath=$dir/\$dldll~
11845    $RM \$dlpath'
11846  ;;
11847
11848osf3* | osf4* | osf5*)
11849  version_type=osf
11850  need_lib_prefix=no
11851  need_version=no
11852  soname_spec='$libname$release$shared_ext$major'
11853  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11854  shlibpath_var=LD_LIBRARY_PATH
11855  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11856  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11857  ;;
11858
11859rdos*)
11860  dynamic_linker=no
11861  ;;
11862
11863solaris*)
11864  version_type=linux # correct to gnu/linux during the next big refactor
11865  need_lib_prefix=no
11866  need_version=no
11867  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11868  soname_spec='$libname$release$shared_ext$major'
11869  shlibpath_var=LD_LIBRARY_PATH
11870  shlibpath_overrides_runpath=yes
11871  hardcode_into_libs=yes
11872  # ldd complains unless libraries are executable
11873  postinstall_cmds='chmod +x $lib'
11874  ;;
11875
11876sunos4*)
11877  version_type=sunos
11878  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11879  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11880  shlibpath_var=LD_LIBRARY_PATH
11881  shlibpath_overrides_runpath=yes
11882  if test yes = "$with_gnu_ld"; then
11883    need_lib_prefix=no
11884  fi
11885  need_version=yes
11886  ;;
11887
11888sysv4 | sysv4.3*)
11889  version_type=linux # correct to gnu/linux during the next big refactor
11890  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11891  soname_spec='$libname$release$shared_ext$major'
11892  shlibpath_var=LD_LIBRARY_PATH
11893  case $host_vendor in
11894    sni)
11895      shlibpath_overrides_runpath=no
11896      need_lib_prefix=no
11897      runpath_var=LD_RUN_PATH
11898      ;;
11899    siemens)
11900      need_lib_prefix=no
11901      ;;
11902    motorola)
11903      need_lib_prefix=no
11904      need_version=no
11905      shlibpath_overrides_runpath=no
11906      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11907      ;;
11908  esac
11909  ;;
11910
11911sysv4*MP*)
11912  if test -d /usr/nec; then
11913    version_type=linux # correct to gnu/linux during the next big refactor
11914    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11915    soname_spec='$libname$shared_ext.$major'
11916    shlibpath_var=LD_LIBRARY_PATH
11917  fi
11918  ;;
11919
11920sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11921  version_type=sco
11922  need_lib_prefix=no
11923  need_version=no
11924  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11925  soname_spec='$libname$release$shared_ext$major'
11926  shlibpath_var=LD_LIBRARY_PATH
11927  shlibpath_overrides_runpath=yes
11928  hardcode_into_libs=yes
11929  if test yes = "$with_gnu_ld"; then
11930    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11931  else
11932    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11933    case $host_os in
11934      sco3.2v5*)
11935        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11936	;;
11937    esac
11938  fi
11939  sys_lib_dlsearch_path_spec='/usr/lib'
11940  ;;
11941
11942tpf*)
11943  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11944  version_type=linux # correct to gnu/linux during the next big refactor
11945  need_lib_prefix=no
11946  need_version=no
11947  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11948  shlibpath_var=LD_LIBRARY_PATH
11949  shlibpath_overrides_runpath=no
11950  hardcode_into_libs=yes
11951  ;;
11952
11953uts4*)
11954  version_type=linux # correct to gnu/linux during the next big refactor
11955  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11956  soname_spec='$libname$release$shared_ext$major'
11957  shlibpath_var=LD_LIBRARY_PATH
11958  ;;
11959
11960*)
11961  dynamic_linker=no
11962  ;;
11963esac
11964{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11965printf "%s\n" "$dynamic_linker" >&6; }
11966test no = "$dynamic_linker" && can_build_shared=no
11967
11968variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11969if test yes = "$GCC"; then
11970  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11971fi
11972
11973if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11974  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11975fi
11976
11977if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11978  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11979fi
11980
11981# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11982configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11983
11984# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11985func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11986
11987# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11988configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12087printf %s "checking how to hardcode library paths into programs... " >&6; }
12088hardcode_action=
12089if test -n "$hardcode_libdir_flag_spec" ||
12090   test -n "$runpath_var" ||
12091   test yes = "$hardcode_automatic"; then
12092
12093  # We can hardcode non-existent directories.
12094  if test no != "$hardcode_direct" &&
12095     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12096     # have to relink, otherwise we might link with an installed library
12097     # when we should be linking with a yet-to-be-installed one
12098     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12099     test no != "$hardcode_minus_L"; then
12100    # Linking always hardcodes the temporary library directory.
12101    hardcode_action=relink
12102  else
12103    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12104    hardcode_action=immediate
12105  fi
12106else
12107  # We cannot hardcode anything, or else we can only hardcode existing
12108  # directories.
12109  hardcode_action=unsupported
12110fi
12111{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12112printf "%s\n" "$hardcode_action" >&6; }
12113
12114if test relink = "$hardcode_action" ||
12115   test yes = "$inherit_rpath"; then
12116  # Fast installation is not supported
12117  enable_fast_install=no
12118elif test yes = "$shlibpath_overrides_runpath" ||
12119     test no = "$enable_shared"; then
12120  # Fast installation is not necessary
12121  enable_fast_install=needless
12122fi
12123
12124
12125
12126
12127
12128
12129  if test yes != "$enable_dlopen"; then
12130  enable_dlopen=unknown
12131  enable_dlopen_self=unknown
12132  enable_dlopen_self_static=unknown
12133else
12134  lt_cv_dlopen=no
12135  lt_cv_dlopen_libs=
12136
12137  case $host_os in
12138  beos*)
12139    lt_cv_dlopen=load_add_on
12140    lt_cv_dlopen_libs=
12141    lt_cv_dlopen_self=yes
12142    ;;
12143
12144  mingw* | pw32* | cegcc*)
12145    lt_cv_dlopen=LoadLibrary
12146    lt_cv_dlopen_libs=
12147    ;;
12148
12149  cygwin*)
12150    lt_cv_dlopen=dlopen
12151    lt_cv_dlopen_libs=
12152    ;;
12153
12154  darwin*)
12155    # if libdl is installed we need to link against it
12156    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12157printf %s "checking for dlopen in -ldl... " >&6; }
12158if test ${ac_cv_lib_dl_dlopen+y}
12159then :
12160  printf %s "(cached) " >&6
12161else $as_nop
12162  ac_check_lib_save_LIBS=$LIBS
12163LIBS="-ldl  $LIBS"
12164cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12165/* end confdefs.h.  */
12166
12167/* Override any GCC internal prototype to avoid an error.
12168   Use char because int might match the return type of a GCC
12169   builtin and then its argument prototype would still apply.  */
12170char dlopen ();
12171int
12172main (void)
12173{
12174return dlopen ();
12175  ;
12176  return 0;
12177}
12178_ACEOF
12179if ac_fn_c_try_link "$LINENO"
12180then :
12181  ac_cv_lib_dl_dlopen=yes
12182else $as_nop
12183  ac_cv_lib_dl_dlopen=no
12184fi
12185rm -f core conftest.err conftest.$ac_objext conftest.beam \
12186    conftest$ac_exeext conftest.$ac_ext
12187LIBS=$ac_check_lib_save_LIBS
12188fi
12189{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12190printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12191if test "x$ac_cv_lib_dl_dlopen" = xyes
12192then :
12193  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12194else $as_nop
12195
12196    lt_cv_dlopen=dyld
12197    lt_cv_dlopen_libs=
12198    lt_cv_dlopen_self=yes
12199
12200fi
12201
12202    ;;
12203
12204  tpf*)
12205    # Don't try to run any link tests for TPF.  We know it's impossible
12206    # because TPF is a cross-compiler, and we know how we open DSOs.
12207    lt_cv_dlopen=dlopen
12208    lt_cv_dlopen_libs=
12209    lt_cv_dlopen_self=no
12210    ;;
12211
12212  *)
12213    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12214if test "x$ac_cv_func_shl_load" = xyes
12215then :
12216  lt_cv_dlopen=shl_load
12217else $as_nop
12218  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12219printf %s "checking for shl_load in -ldld... " >&6; }
12220if test ${ac_cv_lib_dld_shl_load+y}
12221then :
12222  printf %s "(cached) " >&6
12223else $as_nop
12224  ac_check_lib_save_LIBS=$LIBS
12225LIBS="-ldld  $LIBS"
12226cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12227/* end confdefs.h.  */
12228
12229/* Override any GCC internal prototype to avoid an error.
12230   Use char because int might match the return type of a GCC
12231   builtin and then its argument prototype would still apply.  */
12232char shl_load ();
12233int
12234main (void)
12235{
12236return shl_load ();
12237  ;
12238  return 0;
12239}
12240_ACEOF
12241if ac_fn_c_try_link "$LINENO"
12242then :
12243  ac_cv_lib_dld_shl_load=yes
12244else $as_nop
12245  ac_cv_lib_dld_shl_load=no
12246fi
12247rm -f core conftest.err conftest.$ac_objext conftest.beam \
12248    conftest$ac_exeext conftest.$ac_ext
12249LIBS=$ac_check_lib_save_LIBS
12250fi
12251{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12252printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12253if test "x$ac_cv_lib_dld_shl_load" = xyes
12254then :
12255  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12256else $as_nop
12257  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12258if test "x$ac_cv_func_dlopen" = xyes
12259then :
12260  lt_cv_dlopen=dlopen
12261else $as_nop
12262  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12263printf %s "checking for dlopen in -ldl... " >&6; }
12264if test ${ac_cv_lib_dl_dlopen+y}
12265then :
12266  printf %s "(cached) " >&6
12267else $as_nop
12268  ac_check_lib_save_LIBS=$LIBS
12269LIBS="-ldl  $LIBS"
12270cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12271/* end confdefs.h.  */
12272
12273/* Override any GCC internal prototype to avoid an error.
12274   Use char because int might match the return type of a GCC
12275   builtin and then its argument prototype would still apply.  */
12276char dlopen ();
12277int
12278main (void)
12279{
12280return dlopen ();
12281  ;
12282  return 0;
12283}
12284_ACEOF
12285if ac_fn_c_try_link "$LINENO"
12286then :
12287  ac_cv_lib_dl_dlopen=yes
12288else $as_nop
12289  ac_cv_lib_dl_dlopen=no
12290fi
12291rm -f core conftest.err conftest.$ac_objext conftest.beam \
12292    conftest$ac_exeext conftest.$ac_ext
12293LIBS=$ac_check_lib_save_LIBS
12294fi
12295{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12296printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12297if test "x$ac_cv_lib_dl_dlopen" = xyes
12298then :
12299  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12300else $as_nop
12301  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12302printf %s "checking for dlopen in -lsvld... " >&6; }
12303if test ${ac_cv_lib_svld_dlopen+y}
12304then :
12305  printf %s "(cached) " >&6
12306else $as_nop
12307  ac_check_lib_save_LIBS=$LIBS
12308LIBS="-lsvld  $LIBS"
12309cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12310/* end confdefs.h.  */
12311
12312/* Override any GCC internal prototype to avoid an error.
12313   Use char because int might match the return type of a GCC
12314   builtin and then its argument prototype would still apply.  */
12315char dlopen ();
12316int
12317main (void)
12318{
12319return dlopen ();
12320  ;
12321  return 0;
12322}
12323_ACEOF
12324if ac_fn_c_try_link "$LINENO"
12325then :
12326  ac_cv_lib_svld_dlopen=yes
12327else $as_nop
12328  ac_cv_lib_svld_dlopen=no
12329fi
12330rm -f core conftest.err conftest.$ac_objext conftest.beam \
12331    conftest$ac_exeext conftest.$ac_ext
12332LIBS=$ac_check_lib_save_LIBS
12333fi
12334{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12335printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12336if test "x$ac_cv_lib_svld_dlopen" = xyes
12337then :
12338  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12339else $as_nop
12340  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12341printf %s "checking for dld_link in -ldld... " >&6; }
12342if test ${ac_cv_lib_dld_dld_link+y}
12343then :
12344  printf %s "(cached) " >&6
12345else $as_nop
12346  ac_check_lib_save_LIBS=$LIBS
12347LIBS="-ldld  $LIBS"
12348cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12349/* end confdefs.h.  */
12350
12351/* Override any GCC internal prototype to avoid an error.
12352   Use char because int might match the return type of a GCC
12353   builtin and then its argument prototype would still apply.  */
12354char dld_link ();
12355int
12356main (void)
12357{
12358return dld_link ();
12359  ;
12360  return 0;
12361}
12362_ACEOF
12363if ac_fn_c_try_link "$LINENO"
12364then :
12365  ac_cv_lib_dld_dld_link=yes
12366else $as_nop
12367  ac_cv_lib_dld_dld_link=no
12368fi
12369rm -f core conftest.err conftest.$ac_objext conftest.beam \
12370    conftest$ac_exeext conftest.$ac_ext
12371LIBS=$ac_check_lib_save_LIBS
12372fi
12373{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12374printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12375if test "x$ac_cv_lib_dld_dld_link" = xyes
12376then :
12377  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12378fi
12379
12380
12381fi
12382
12383
12384fi
12385
12386
12387fi
12388
12389
12390fi
12391
12392
12393fi
12394
12395    ;;
12396  esac
12397
12398  if test no = "$lt_cv_dlopen"; then
12399    enable_dlopen=no
12400  else
12401    enable_dlopen=yes
12402  fi
12403
12404  case $lt_cv_dlopen in
12405  dlopen)
12406    save_CPPFLAGS=$CPPFLAGS
12407    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12408
12409    save_LDFLAGS=$LDFLAGS
12410    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12411
12412    save_LIBS=$LIBS
12413    LIBS="$lt_cv_dlopen_libs $LIBS"
12414
12415    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12416printf %s "checking whether a program can dlopen itself... " >&6; }
12417if test ${lt_cv_dlopen_self+y}
12418then :
12419  printf %s "(cached) " >&6
12420else $as_nop
12421  	  if test yes = "$cross_compiling"; then :
12422  lt_cv_dlopen_self=cross
12423else
12424  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12425  lt_status=$lt_dlunknown
12426  cat > conftest.$ac_ext <<_LT_EOF
12427#line $LINENO "configure"
12428#include "confdefs.h"
12429
12430#if HAVE_DLFCN_H
12431#include <dlfcn.h>
12432#endif
12433
12434#include <stdio.h>
12435
12436#ifdef RTLD_GLOBAL
12437#  define LT_DLGLOBAL		RTLD_GLOBAL
12438#else
12439#  ifdef DL_GLOBAL
12440#    define LT_DLGLOBAL		DL_GLOBAL
12441#  else
12442#    define LT_DLGLOBAL		0
12443#  endif
12444#endif
12445
12446/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12447   find out it does not work in some platform. */
12448#ifndef LT_DLLAZY_OR_NOW
12449#  ifdef RTLD_LAZY
12450#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12451#  else
12452#    ifdef DL_LAZY
12453#      define LT_DLLAZY_OR_NOW		DL_LAZY
12454#    else
12455#      ifdef RTLD_NOW
12456#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12457#      else
12458#        ifdef DL_NOW
12459#          define LT_DLLAZY_OR_NOW	DL_NOW
12460#        else
12461#          define LT_DLLAZY_OR_NOW	0
12462#        endif
12463#      endif
12464#    endif
12465#  endif
12466#endif
12467
12468/* When -fvisibility=hidden is used, assume the code has been annotated
12469   correspondingly for the symbols needed.  */
12470#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12471int fnord () __attribute__((visibility("default")));
12472#endif
12473
12474int fnord () { return 42; }
12475int main ()
12476{
12477  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12478  int status = $lt_dlunknown;
12479
12480  if (self)
12481    {
12482      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12483      else
12484        {
12485	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12486          else puts (dlerror ());
12487	}
12488      /* dlclose (self); */
12489    }
12490  else
12491    puts (dlerror ());
12492
12493  return status;
12494}
12495_LT_EOF
12496  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12497  (eval $ac_link) 2>&5
12498  ac_status=$?
12499  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12500  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12501    (./conftest; exit; ) >&5 2>/dev/null
12502    lt_status=$?
12503    case x$lt_status in
12504      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12505      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12506      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12507    esac
12508  else :
12509    # compilation failed
12510    lt_cv_dlopen_self=no
12511  fi
12512fi
12513rm -fr conftest*
12514
12515
12516fi
12517{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12518printf "%s\n" "$lt_cv_dlopen_self" >&6; }
12519
12520    if test yes = "$lt_cv_dlopen_self"; then
12521      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12522      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12523printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
12524if test ${lt_cv_dlopen_self_static+y}
12525then :
12526  printf %s "(cached) " >&6
12527else $as_nop
12528  	  if test yes = "$cross_compiling"; then :
12529  lt_cv_dlopen_self_static=cross
12530else
12531  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12532  lt_status=$lt_dlunknown
12533  cat > conftest.$ac_ext <<_LT_EOF
12534#line $LINENO "configure"
12535#include "confdefs.h"
12536
12537#if HAVE_DLFCN_H
12538#include <dlfcn.h>
12539#endif
12540
12541#include <stdio.h>
12542
12543#ifdef RTLD_GLOBAL
12544#  define LT_DLGLOBAL		RTLD_GLOBAL
12545#else
12546#  ifdef DL_GLOBAL
12547#    define LT_DLGLOBAL		DL_GLOBAL
12548#  else
12549#    define LT_DLGLOBAL		0
12550#  endif
12551#endif
12552
12553/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12554   find out it does not work in some platform. */
12555#ifndef LT_DLLAZY_OR_NOW
12556#  ifdef RTLD_LAZY
12557#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12558#  else
12559#    ifdef DL_LAZY
12560#      define LT_DLLAZY_OR_NOW		DL_LAZY
12561#    else
12562#      ifdef RTLD_NOW
12563#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12564#      else
12565#        ifdef DL_NOW
12566#          define LT_DLLAZY_OR_NOW	DL_NOW
12567#        else
12568#          define LT_DLLAZY_OR_NOW	0
12569#        endif
12570#      endif
12571#    endif
12572#  endif
12573#endif
12574
12575/* When -fvisibility=hidden is used, assume the code has been annotated
12576   correspondingly for the symbols needed.  */
12577#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12578int fnord () __attribute__((visibility("default")));
12579#endif
12580
12581int fnord () { return 42; }
12582int main ()
12583{
12584  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12585  int status = $lt_dlunknown;
12586
12587  if (self)
12588    {
12589      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12590      else
12591        {
12592	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12593          else puts (dlerror ());
12594	}
12595      /* dlclose (self); */
12596    }
12597  else
12598    puts (dlerror ());
12599
12600  return status;
12601}
12602_LT_EOF
12603  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12604  (eval $ac_link) 2>&5
12605  ac_status=$?
12606  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12607  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12608    (./conftest; exit; ) >&5 2>/dev/null
12609    lt_status=$?
12610    case x$lt_status in
12611      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12612      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12613      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12614    esac
12615  else :
12616    # compilation failed
12617    lt_cv_dlopen_self_static=no
12618  fi
12619fi
12620rm -fr conftest*
12621
12622
12623fi
12624{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12625printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
12626    fi
12627
12628    CPPFLAGS=$save_CPPFLAGS
12629    LDFLAGS=$save_LDFLAGS
12630    LIBS=$save_LIBS
12631    ;;
12632  esac
12633
12634  case $lt_cv_dlopen_self in
12635  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12636  *) enable_dlopen_self=unknown ;;
12637  esac
12638
12639  case $lt_cv_dlopen_self_static in
12640  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12641  *) enable_dlopen_self_static=unknown ;;
12642  esac
12643fi
12644
12645
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661striplib=
12662old_striplib=
12663{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12664printf %s "checking whether stripping libraries is possible... " >&6; }
12665if test -z "$STRIP"; then
12666  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12667printf "%s\n" "no" >&6; }
12668else
12669  if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12670    old_striplib="$STRIP --strip-debug"
12671    striplib="$STRIP --strip-unneeded"
12672    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12673printf "%s\n" "yes" >&6; }
12674  else
12675    case $host_os in
12676    darwin*)
12677      # FIXME - insert some real tests, host_os isn't really good enough
12678      striplib="$STRIP -x"
12679      old_striplib="$STRIP -S"
12680      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12681printf "%s\n" "yes" >&6; }
12682      ;;
12683    freebsd*)
12684      if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
12685        old_striplib="$STRIP --strip-debug"
12686        striplib="$STRIP --strip-unneeded"
12687        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12688printf "%s\n" "yes" >&6; }
12689      else
12690        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12691printf "%s\n" "no" >&6; }
12692      fi
12693      ;;
12694    *)
12695      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12696printf "%s\n" "no" >&6; }
12697      ;;
12698    esac
12699  fi
12700fi
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713  # Report what library types will actually be built
12714  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12715printf %s "checking if libtool supports shared libraries... " >&6; }
12716  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12717printf "%s\n" "$can_build_shared" >&6; }
12718
12719  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12720printf %s "checking whether to build shared libraries... " >&6; }
12721  test no = "$can_build_shared" && enable_shared=no
12722
12723  # On AIX, shared libraries and static libraries use the same namespace, and
12724  # are all built from PIC.
12725  case $host_os in
12726  aix3*)
12727    test yes = "$enable_shared" && enable_static=no
12728    if test -n "$RANLIB"; then
12729      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12730      postinstall_cmds='$RANLIB $lib'
12731    fi
12732    ;;
12733
12734  aix[4-9]*)
12735    if test ia64 != "$host_cpu"; then
12736      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12737      yes,aix,yes) ;;			# shared object as lib.so file only
12738      yes,svr4,*) ;;			# shared object as lib.so archive member only
12739      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
12740      esac
12741    fi
12742    ;;
12743  esac
12744  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12745printf "%s\n" "$enable_shared" >&6; }
12746
12747  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12748printf %s "checking whether to build static libraries... " >&6; }
12749  # Make sure either enable_shared or enable_static is yes.
12750  test yes = "$enable_shared" || enable_static=yes
12751  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12752printf "%s\n" "$enable_static" >&6; }
12753
12754
12755
12756
12757fi
12758ac_ext=c
12759ac_cpp='$CPP $CPPFLAGS'
12760ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12761ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12762ac_compiler_gnu=$ac_cv_c_compiler_gnu
12763
12764CC=$lt_save_CC
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774
12775
12776
12777
12778
12779
12780        ac_config_commands="$ac_config_commands libtool"
12781
12782
12783
12784
12785# Only expand once:
12786
12787
12788
12789# Require xorg-macros minimum of 1.12 for DocBook external references
12790
12791
12792
12793
12794
12795
12796
12797
12798
12799
12800
12801
12802{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
12803printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
12804if test ${ac_cv_c_undeclared_builtin_options+y}
12805then :
12806  printf %s "(cached) " >&6
12807else $as_nop
12808  ac_save_CFLAGS=$CFLAGS
12809   ac_cv_c_undeclared_builtin_options='cannot detect'
12810   for ac_arg in '' -fno-builtin; do
12811     CFLAGS="$ac_save_CFLAGS $ac_arg"
12812     # This test program should *not* compile successfully.
12813     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12814/* end confdefs.h.  */
12815
12816int
12817main (void)
12818{
12819(void) strchr;
12820  ;
12821  return 0;
12822}
12823_ACEOF
12824if ac_fn_c_try_compile "$LINENO"
12825then :
12826
12827else $as_nop
12828  # This test program should compile successfully.
12829        # No library function is consistently available on
12830        # freestanding implementations, so test against a dummy
12831        # declaration.  Include always-available headers on the
12832        # off chance that they somehow elicit warnings.
12833        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12834/* end confdefs.h.  */
12835#include <float.h>
12836#include <limits.h>
12837#include <stdarg.h>
12838#include <stddef.h>
12839extern void ac_decl (int, char *);
12840
12841int
12842main (void)
12843{
12844(void) ac_decl (0, (char *) 0);
12845  (void) ac_decl;
12846
12847  ;
12848  return 0;
12849}
12850_ACEOF
12851if ac_fn_c_try_compile "$LINENO"
12852then :
12853  if test x"$ac_arg" = x
12854then :
12855  ac_cv_c_undeclared_builtin_options='none needed'
12856else $as_nop
12857  ac_cv_c_undeclared_builtin_options=$ac_arg
12858fi
12859          break
12860fi
12861rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12862fi
12863rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12864    done
12865    CFLAGS=$ac_save_CFLAGS
12866
12867fi
12868{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
12869printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
12870  case $ac_cv_c_undeclared_builtin_options in #(
12871  'cannot detect') :
12872    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12873printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12874as_fn_error $? "cannot make $CC report undeclared builtins
12875See \`config.log' for more details" "$LINENO" 5; } ;; #(
12876  'none needed') :
12877    ac_c_undeclared_builtin_options='' ;; #(
12878  *) :
12879    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
12880esac
12881
12882
12883
12884
12885
12886ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
12887if test "x$ac_cv_have_decl___clang__" = xyes
12888then :
12889  CLANGCC="yes"
12890else $as_nop
12891  CLANGCC="no"
12892fi
12893ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
12894if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
12895then :
12896  INTELCC="yes"
12897else $as_nop
12898  INTELCC="no"
12899fi
12900ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
12901if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
12902then :
12903  SUNCC="yes"
12904else $as_nop
12905  SUNCC="no"
12906fi
12907
12908
12909
12910
12911
12912
12913
12914
12915if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12916	if test -n "$ac_tool_prefix"; then
12917  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12918set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12919{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12920printf %s "checking for $ac_word... " >&6; }
12921if test ${ac_cv_path_PKG_CONFIG+y}
12922then :
12923  printf %s "(cached) " >&6
12924else $as_nop
12925  case $PKG_CONFIG in
12926  [\\/]* | ?:[\\/]*)
12927  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12928  ;;
12929  *)
12930  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12931for as_dir in $PATH
12932do
12933  IFS=$as_save_IFS
12934  case $as_dir in #(((
12935    '') as_dir=./ ;;
12936    */) ;;
12937    *) as_dir=$as_dir/ ;;
12938  esac
12939    for ac_exec_ext in '' $ac_executable_extensions; do
12940  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12941    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
12942    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12943    break 2
12944  fi
12945done
12946  done
12947IFS=$as_save_IFS
12948
12949  ;;
12950esac
12951fi
12952PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12953if test -n "$PKG_CONFIG"; then
12954  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12955printf "%s\n" "$PKG_CONFIG" >&6; }
12956else
12957  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12958printf "%s\n" "no" >&6; }
12959fi
12960
12961
12962fi
12963if test -z "$ac_cv_path_PKG_CONFIG"; then
12964  ac_pt_PKG_CONFIG=$PKG_CONFIG
12965  # Extract the first word of "pkg-config", so it can be a program name with args.
12966set dummy pkg-config; ac_word=$2
12967{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12968printf %s "checking for $ac_word... " >&6; }
12969if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
12970then :
12971  printf %s "(cached) " >&6
12972else $as_nop
12973  case $ac_pt_PKG_CONFIG in
12974  [\\/]* | ?:[\\/]*)
12975  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12976  ;;
12977  *)
12978  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12979for as_dir in $PATH
12980do
12981  IFS=$as_save_IFS
12982  case $as_dir in #(((
12983    '') as_dir=./ ;;
12984    */) ;;
12985    *) as_dir=$as_dir/ ;;
12986  esac
12987    for ac_exec_ext in '' $ac_executable_extensions; do
12988  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12989    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
12990    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12991    break 2
12992  fi
12993done
12994  done
12995IFS=$as_save_IFS
12996
12997  ;;
12998esac
12999fi
13000ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13001if test -n "$ac_pt_PKG_CONFIG"; then
13002  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13003printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
13004else
13005  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13006printf "%s\n" "no" >&6; }
13007fi
13008
13009  if test "x$ac_pt_PKG_CONFIG" = x; then
13010    PKG_CONFIG=""
13011  else
13012    case $cross_compiling:$ac_tool_warned in
13013yes:)
13014{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13015printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13016ac_tool_warned=yes ;;
13017esac
13018    PKG_CONFIG=$ac_pt_PKG_CONFIG
13019  fi
13020else
13021  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13022fi
13023
13024fi
13025if test -n "$PKG_CONFIG"; then
13026	_pkg_min_version=0.9.0
13027	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13028printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13029	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13030		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13031printf "%s\n" "yes" >&6; }
13032	else
13033		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13034printf "%s\n" "no" >&6; }
13035		PKG_CONFIG=""
13036	fi
13037fi
13038
13039
13040
13041
13042
13043# Check whether --enable-selective-werror was given.
13044if test ${enable_selective_werror+y}
13045then :
13046  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
13047else $as_nop
13048  SELECTIVE_WERROR=yes
13049fi
13050
13051
13052
13053
13054
13055# -v is too short to test reliably with XORG_TESTSET_CFLAG
13056if test "x$SUNCC" = "xyes"; then
13057    BASE_CFLAGS="-v"
13058else
13059    BASE_CFLAGS=""
13060fi
13061
13062# This chunk of warnings were those that existed in the legacy CWARNFLAGS
13063
13064
13065
13066
13067
13068
13069
13070
13071
13072
13073
13074
13075
13076xorg_testset_save_CFLAGS="$CFLAGS"
13077
13078if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13079	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13080	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13081printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13082if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13083then :
13084  printf %s "(cached) " >&6
13085else $as_nop
13086  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13087/* end confdefs.h.  */
13088int i;
13089_ACEOF
13090if ac_fn_c_try_compile "$LINENO"
13091then :
13092  xorg_cv_cc_flag_unknown_warning_option=yes
13093else $as_nop
13094  xorg_cv_cc_flag_unknown_warning_option=no
13095fi
13096rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13097fi
13098{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13099printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13100	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13101	CFLAGS="$xorg_testset_save_CFLAGS"
13102fi
13103
13104if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13105	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13106		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13107	fi
13108	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13109	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13110printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13111if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13112then :
13113  printf %s "(cached) " >&6
13114else $as_nop
13115  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13116/* end confdefs.h.  */
13117int i;
13118_ACEOF
13119if ac_fn_c_try_compile "$LINENO"
13120then :
13121  xorg_cv_cc_flag_unused_command_line_argument=yes
13122else $as_nop
13123  xorg_cv_cc_flag_unused_command_line_argument=no
13124fi
13125rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13126fi
13127{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13128printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13129	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13130	CFLAGS="$xorg_testset_save_CFLAGS"
13131fi
13132
13133found="no"
13134
13135	if test $found = "no" ; then
13136		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13137			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13138		fi
13139
13140		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13141			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13142		fi
13143
13144		CFLAGS="$CFLAGS -Wall"
13145
13146		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
13147printf %s "checking if $CC supports -Wall... " >&6; }
13148		cacheid=xorg_cv_cc_flag__Wall
13149		if eval test \${$cacheid+y}
13150then :
13151  printf %s "(cached) " >&6
13152else $as_nop
13153  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13154/* end confdefs.h.  */
13155int i;
13156int
13157main (void)
13158{
13159
13160  ;
13161  return 0;
13162}
13163_ACEOF
13164if ac_fn_c_try_link "$LINENO"
13165then :
13166  eval $cacheid=yes
13167else $as_nop
13168  eval $cacheid=no
13169fi
13170rm -f core conftest.err conftest.$ac_objext conftest.beam \
13171    conftest$ac_exeext conftest.$ac_ext
13172fi
13173
13174
13175		CFLAGS="$xorg_testset_save_CFLAGS"
13176
13177		eval supported=\$$cacheid
13178		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13179printf "%s\n" "$supported" >&6; }
13180		if test "$supported" = "yes" ; then
13181			BASE_CFLAGS="$BASE_CFLAGS -Wall"
13182			found="yes"
13183		fi
13184	fi
13185
13186
13187
13188
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198
13199
13200xorg_testset_save_CFLAGS="$CFLAGS"
13201
13202if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13203	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13204	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13205printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13206if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13207then :
13208  printf %s "(cached) " >&6
13209else $as_nop
13210  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13211/* end confdefs.h.  */
13212int i;
13213_ACEOF
13214if ac_fn_c_try_compile "$LINENO"
13215then :
13216  xorg_cv_cc_flag_unknown_warning_option=yes
13217else $as_nop
13218  xorg_cv_cc_flag_unknown_warning_option=no
13219fi
13220rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13221fi
13222{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13223printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13224	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13225	CFLAGS="$xorg_testset_save_CFLAGS"
13226fi
13227
13228if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13229	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13230		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13231	fi
13232	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13233	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13234printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13235if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13236then :
13237  printf %s "(cached) " >&6
13238else $as_nop
13239  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13240/* end confdefs.h.  */
13241int i;
13242_ACEOF
13243if ac_fn_c_try_compile "$LINENO"
13244then :
13245  xorg_cv_cc_flag_unused_command_line_argument=yes
13246else $as_nop
13247  xorg_cv_cc_flag_unused_command_line_argument=no
13248fi
13249rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13250fi
13251{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13252printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13253	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13254	CFLAGS="$xorg_testset_save_CFLAGS"
13255fi
13256
13257found="no"
13258
13259	if test $found = "no" ; then
13260		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13261			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13262		fi
13263
13264		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13265			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13266		fi
13267
13268		CFLAGS="$CFLAGS -Wpointer-arith"
13269
13270		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
13271printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
13272		cacheid=xorg_cv_cc_flag__Wpointer_arith
13273		if eval test \${$cacheid+y}
13274then :
13275  printf %s "(cached) " >&6
13276else $as_nop
13277  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13278/* end confdefs.h.  */
13279int i;
13280int
13281main (void)
13282{
13283
13284  ;
13285  return 0;
13286}
13287_ACEOF
13288if ac_fn_c_try_link "$LINENO"
13289then :
13290  eval $cacheid=yes
13291else $as_nop
13292  eval $cacheid=no
13293fi
13294rm -f core conftest.err conftest.$ac_objext conftest.beam \
13295    conftest$ac_exeext conftest.$ac_ext
13296fi
13297
13298
13299		CFLAGS="$xorg_testset_save_CFLAGS"
13300
13301		eval supported=\$$cacheid
13302		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13303printf "%s\n" "$supported" >&6; }
13304		if test "$supported" = "yes" ; then
13305			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
13306			found="yes"
13307		fi
13308	fi
13309
13310
13311
13312
13313
13314
13315
13316
13317
13318
13319
13320
13321
13322
13323
13324xorg_testset_save_CFLAGS="$CFLAGS"
13325
13326if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13327	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13328	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13329printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13330if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13331then :
13332  printf %s "(cached) " >&6
13333else $as_nop
13334  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13335/* end confdefs.h.  */
13336int i;
13337_ACEOF
13338if ac_fn_c_try_compile "$LINENO"
13339then :
13340  xorg_cv_cc_flag_unknown_warning_option=yes
13341else $as_nop
13342  xorg_cv_cc_flag_unknown_warning_option=no
13343fi
13344rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13345fi
13346{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13347printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13348	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13349	CFLAGS="$xorg_testset_save_CFLAGS"
13350fi
13351
13352if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13353	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13354		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13355	fi
13356	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13357	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13358printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13359if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13360then :
13361  printf %s "(cached) " >&6
13362else $as_nop
13363  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13364/* end confdefs.h.  */
13365int i;
13366_ACEOF
13367if ac_fn_c_try_compile "$LINENO"
13368then :
13369  xorg_cv_cc_flag_unused_command_line_argument=yes
13370else $as_nop
13371  xorg_cv_cc_flag_unused_command_line_argument=no
13372fi
13373rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13374fi
13375{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13376printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13377	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13378	CFLAGS="$xorg_testset_save_CFLAGS"
13379fi
13380
13381found="no"
13382
13383	if test $found = "no" ; then
13384		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13385			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13386		fi
13387
13388		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13389			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13390		fi
13391
13392		CFLAGS="$CFLAGS -Wmissing-declarations"
13393
13394		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
13395printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
13396		cacheid=xorg_cv_cc_flag__Wmissing_declarations
13397		if eval test \${$cacheid+y}
13398then :
13399  printf %s "(cached) " >&6
13400else $as_nop
13401  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13402/* end confdefs.h.  */
13403int i;
13404int
13405main (void)
13406{
13407
13408  ;
13409  return 0;
13410}
13411_ACEOF
13412if ac_fn_c_try_link "$LINENO"
13413then :
13414  eval $cacheid=yes
13415else $as_nop
13416  eval $cacheid=no
13417fi
13418rm -f core conftest.err conftest.$ac_objext conftest.beam \
13419    conftest$ac_exeext conftest.$ac_ext
13420fi
13421
13422
13423		CFLAGS="$xorg_testset_save_CFLAGS"
13424
13425		eval supported=\$$cacheid
13426		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13427printf "%s\n" "$supported" >&6; }
13428		if test "$supported" = "yes" ; then
13429			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
13430			found="yes"
13431		fi
13432	fi
13433
13434
13435
13436
13437
13438
13439
13440
13441
13442
13443
13444
13445
13446
13447
13448xorg_testset_save_CFLAGS="$CFLAGS"
13449
13450if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13451	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13452	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13453printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13454if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13455then :
13456  printf %s "(cached) " >&6
13457else $as_nop
13458  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13459/* end confdefs.h.  */
13460int i;
13461_ACEOF
13462if ac_fn_c_try_compile "$LINENO"
13463then :
13464  xorg_cv_cc_flag_unknown_warning_option=yes
13465else $as_nop
13466  xorg_cv_cc_flag_unknown_warning_option=no
13467fi
13468rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13469fi
13470{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13471printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13472	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13473	CFLAGS="$xorg_testset_save_CFLAGS"
13474fi
13475
13476if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13477	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13478		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13479	fi
13480	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13481	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13482printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13483if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13484then :
13485  printf %s "(cached) " >&6
13486else $as_nop
13487  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13488/* end confdefs.h.  */
13489int i;
13490_ACEOF
13491if ac_fn_c_try_compile "$LINENO"
13492then :
13493  xorg_cv_cc_flag_unused_command_line_argument=yes
13494else $as_nop
13495  xorg_cv_cc_flag_unused_command_line_argument=no
13496fi
13497rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13498fi
13499{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13500printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13501	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13502	CFLAGS="$xorg_testset_save_CFLAGS"
13503fi
13504
13505found="no"
13506
13507	if test $found = "no" ; then
13508		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13509			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13510		fi
13511
13512		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13513			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13514		fi
13515
13516		CFLAGS="$CFLAGS -Wformat=2"
13517
13518		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
13519printf %s "checking if $CC supports -Wformat=2... " >&6; }
13520		cacheid=xorg_cv_cc_flag__Wformat_2
13521		if eval test \${$cacheid+y}
13522then :
13523  printf %s "(cached) " >&6
13524else $as_nop
13525  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13526/* end confdefs.h.  */
13527int i;
13528int
13529main (void)
13530{
13531
13532  ;
13533  return 0;
13534}
13535_ACEOF
13536if ac_fn_c_try_link "$LINENO"
13537then :
13538  eval $cacheid=yes
13539else $as_nop
13540  eval $cacheid=no
13541fi
13542rm -f core conftest.err conftest.$ac_objext conftest.beam \
13543    conftest$ac_exeext conftest.$ac_ext
13544fi
13545
13546
13547		CFLAGS="$xorg_testset_save_CFLAGS"
13548
13549		eval supported=\$$cacheid
13550		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13551printf "%s\n" "$supported" >&6; }
13552		if test "$supported" = "yes" ; then
13553			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
13554			found="yes"
13555		fi
13556	fi
13557
13558	if test $found = "no" ; then
13559		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13560			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13561		fi
13562
13563		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13564			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13565		fi
13566
13567		CFLAGS="$CFLAGS -Wformat"
13568
13569		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
13570printf %s "checking if $CC supports -Wformat... " >&6; }
13571		cacheid=xorg_cv_cc_flag__Wformat
13572		if eval test \${$cacheid+y}
13573then :
13574  printf %s "(cached) " >&6
13575else $as_nop
13576  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13577/* end confdefs.h.  */
13578int i;
13579int
13580main (void)
13581{
13582
13583  ;
13584  return 0;
13585}
13586_ACEOF
13587if ac_fn_c_try_link "$LINENO"
13588then :
13589  eval $cacheid=yes
13590else $as_nop
13591  eval $cacheid=no
13592fi
13593rm -f core conftest.err conftest.$ac_objext conftest.beam \
13594    conftest$ac_exeext conftest.$ac_ext
13595fi
13596
13597
13598		CFLAGS="$xorg_testset_save_CFLAGS"
13599
13600		eval supported=\$$cacheid
13601		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13602printf "%s\n" "$supported" >&6; }
13603		if test "$supported" = "yes" ; then
13604			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
13605			found="yes"
13606		fi
13607	fi
13608
13609
13610
13611
13612
13613
13614
13615
13616
13617
13618
13619
13620
13621
13622
13623
13624
13625xorg_testset_save_CFLAGS="$CFLAGS"
13626
13627if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13628	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13629	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13630printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13631if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13632then :
13633  printf %s "(cached) " >&6
13634else $as_nop
13635  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13636/* end confdefs.h.  */
13637int i;
13638_ACEOF
13639if ac_fn_c_try_compile "$LINENO"
13640then :
13641  xorg_cv_cc_flag_unknown_warning_option=yes
13642else $as_nop
13643  xorg_cv_cc_flag_unknown_warning_option=no
13644fi
13645rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13646fi
13647{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13648printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13649	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13650	CFLAGS="$xorg_testset_save_CFLAGS"
13651fi
13652
13653if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13654	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13655		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13656	fi
13657	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13658	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13659printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13660if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13661then :
13662  printf %s "(cached) " >&6
13663else $as_nop
13664  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13665/* end confdefs.h.  */
13666int i;
13667_ACEOF
13668if ac_fn_c_try_compile "$LINENO"
13669then :
13670  xorg_cv_cc_flag_unused_command_line_argument=yes
13671else $as_nop
13672  xorg_cv_cc_flag_unused_command_line_argument=no
13673fi
13674rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13675fi
13676{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13677printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13678	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13679	CFLAGS="$xorg_testset_save_CFLAGS"
13680fi
13681
13682found="no"
13683
13684	if test $found = "no" ; then
13685		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13686			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13687		fi
13688
13689		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13690			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13691		fi
13692
13693		CFLAGS="$CFLAGS -Wstrict-prototypes"
13694
13695		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
13696printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
13697		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
13698		if eval test \${$cacheid+y}
13699then :
13700  printf %s "(cached) " >&6
13701else $as_nop
13702  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13703/* end confdefs.h.  */
13704int i;
13705int
13706main (void)
13707{
13708
13709  ;
13710  return 0;
13711}
13712_ACEOF
13713if ac_fn_c_try_link "$LINENO"
13714then :
13715  eval $cacheid=yes
13716else $as_nop
13717  eval $cacheid=no
13718fi
13719rm -f core conftest.err conftest.$ac_objext conftest.beam \
13720    conftest$ac_exeext conftest.$ac_ext
13721fi
13722
13723
13724		CFLAGS="$xorg_testset_save_CFLAGS"
13725
13726		eval supported=\$$cacheid
13727		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13728printf "%s\n" "$supported" >&6; }
13729		if test "$supported" = "yes" ; then
13730			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
13731			found="yes"
13732		fi
13733	fi
13734
13735
13736
13737
13738
13739
13740
13741
13742
13743
13744
13745
13746
13747
13748
13749xorg_testset_save_CFLAGS="$CFLAGS"
13750
13751if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13752	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13753	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13754printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13755if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13756then :
13757  printf %s "(cached) " >&6
13758else $as_nop
13759  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13760/* end confdefs.h.  */
13761int i;
13762_ACEOF
13763if ac_fn_c_try_compile "$LINENO"
13764then :
13765  xorg_cv_cc_flag_unknown_warning_option=yes
13766else $as_nop
13767  xorg_cv_cc_flag_unknown_warning_option=no
13768fi
13769rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13770fi
13771{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13772printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13773	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13774	CFLAGS="$xorg_testset_save_CFLAGS"
13775fi
13776
13777if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13778	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13779		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13780	fi
13781	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13782	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13783printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13784if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13785then :
13786  printf %s "(cached) " >&6
13787else $as_nop
13788  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13789/* end confdefs.h.  */
13790int i;
13791_ACEOF
13792if ac_fn_c_try_compile "$LINENO"
13793then :
13794  xorg_cv_cc_flag_unused_command_line_argument=yes
13795else $as_nop
13796  xorg_cv_cc_flag_unused_command_line_argument=no
13797fi
13798rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13799fi
13800{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13801printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13802	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13803	CFLAGS="$xorg_testset_save_CFLAGS"
13804fi
13805
13806found="no"
13807
13808	if test $found = "no" ; then
13809		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13810			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13811		fi
13812
13813		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13814			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13815		fi
13816
13817		CFLAGS="$CFLAGS -Wmissing-prototypes"
13818
13819		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
13820printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
13821		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
13822		if eval test \${$cacheid+y}
13823then :
13824  printf %s "(cached) " >&6
13825else $as_nop
13826  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13827/* end confdefs.h.  */
13828int i;
13829int
13830main (void)
13831{
13832
13833  ;
13834  return 0;
13835}
13836_ACEOF
13837if ac_fn_c_try_link "$LINENO"
13838then :
13839  eval $cacheid=yes
13840else $as_nop
13841  eval $cacheid=no
13842fi
13843rm -f core conftest.err conftest.$ac_objext conftest.beam \
13844    conftest$ac_exeext conftest.$ac_ext
13845fi
13846
13847
13848		CFLAGS="$xorg_testset_save_CFLAGS"
13849
13850		eval supported=\$$cacheid
13851		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13852printf "%s\n" "$supported" >&6; }
13853		if test "$supported" = "yes" ; then
13854			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
13855			found="yes"
13856		fi
13857	fi
13858
13859
13860
13861
13862
13863
13864
13865
13866
13867
13868
13869
13870
13871
13872
13873xorg_testset_save_CFLAGS="$CFLAGS"
13874
13875if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13876	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13877	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13878printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13879if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13880then :
13881  printf %s "(cached) " >&6
13882else $as_nop
13883  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13884/* end confdefs.h.  */
13885int i;
13886_ACEOF
13887if ac_fn_c_try_compile "$LINENO"
13888then :
13889  xorg_cv_cc_flag_unknown_warning_option=yes
13890else $as_nop
13891  xorg_cv_cc_flag_unknown_warning_option=no
13892fi
13893rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13894fi
13895{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13896printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13897	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13898	CFLAGS="$xorg_testset_save_CFLAGS"
13899fi
13900
13901if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13902	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13903		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13904	fi
13905	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13906	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13907printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13908if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13909then :
13910  printf %s "(cached) " >&6
13911else $as_nop
13912  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13913/* end confdefs.h.  */
13914int i;
13915_ACEOF
13916if ac_fn_c_try_compile "$LINENO"
13917then :
13918  xorg_cv_cc_flag_unused_command_line_argument=yes
13919else $as_nop
13920  xorg_cv_cc_flag_unused_command_line_argument=no
13921fi
13922rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13923fi
13924{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13925printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13926	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13927	CFLAGS="$xorg_testset_save_CFLAGS"
13928fi
13929
13930found="no"
13931
13932	if test $found = "no" ; then
13933		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13934			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13935		fi
13936
13937		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13938			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13939		fi
13940
13941		CFLAGS="$CFLAGS -Wnested-externs"
13942
13943		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
13944printf %s "checking if $CC supports -Wnested-externs... " >&6; }
13945		cacheid=xorg_cv_cc_flag__Wnested_externs
13946		if eval test \${$cacheid+y}
13947then :
13948  printf %s "(cached) " >&6
13949else $as_nop
13950  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13951/* end confdefs.h.  */
13952int i;
13953int
13954main (void)
13955{
13956
13957  ;
13958  return 0;
13959}
13960_ACEOF
13961if ac_fn_c_try_link "$LINENO"
13962then :
13963  eval $cacheid=yes
13964else $as_nop
13965  eval $cacheid=no
13966fi
13967rm -f core conftest.err conftest.$ac_objext conftest.beam \
13968    conftest$ac_exeext conftest.$ac_ext
13969fi
13970
13971
13972		CFLAGS="$xorg_testset_save_CFLAGS"
13973
13974		eval supported=\$$cacheid
13975		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13976printf "%s\n" "$supported" >&6; }
13977		if test "$supported" = "yes" ; then
13978			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
13979			found="yes"
13980		fi
13981	fi
13982
13983
13984
13985
13986
13987
13988
13989
13990
13991
13992
13993
13994
13995
13996
13997xorg_testset_save_CFLAGS="$CFLAGS"
13998
13999if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14000	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14001	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14002printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14003if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14004then :
14005  printf %s "(cached) " >&6
14006else $as_nop
14007  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14008/* end confdefs.h.  */
14009int i;
14010_ACEOF
14011if ac_fn_c_try_compile "$LINENO"
14012then :
14013  xorg_cv_cc_flag_unknown_warning_option=yes
14014else $as_nop
14015  xorg_cv_cc_flag_unknown_warning_option=no
14016fi
14017rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14018fi
14019{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14020printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14021	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14022	CFLAGS="$xorg_testset_save_CFLAGS"
14023fi
14024
14025if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14026	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14027		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14028	fi
14029	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14030	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14031printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14032if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14033then :
14034  printf %s "(cached) " >&6
14035else $as_nop
14036  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14037/* end confdefs.h.  */
14038int i;
14039_ACEOF
14040if ac_fn_c_try_compile "$LINENO"
14041then :
14042  xorg_cv_cc_flag_unused_command_line_argument=yes
14043else $as_nop
14044  xorg_cv_cc_flag_unused_command_line_argument=no
14045fi
14046rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14047fi
14048{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14049printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14050	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14051	CFLAGS="$xorg_testset_save_CFLAGS"
14052fi
14053
14054found="no"
14055
14056	if test $found = "no" ; then
14057		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14058			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14059		fi
14060
14061		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14062			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14063		fi
14064
14065		CFLAGS="$CFLAGS -Wbad-function-cast"
14066
14067		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
14068printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
14069		cacheid=xorg_cv_cc_flag__Wbad_function_cast
14070		if eval test \${$cacheid+y}
14071then :
14072  printf %s "(cached) " >&6
14073else $as_nop
14074  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14075/* end confdefs.h.  */
14076int i;
14077int
14078main (void)
14079{
14080
14081  ;
14082  return 0;
14083}
14084_ACEOF
14085if ac_fn_c_try_link "$LINENO"
14086then :
14087  eval $cacheid=yes
14088else $as_nop
14089  eval $cacheid=no
14090fi
14091rm -f core conftest.err conftest.$ac_objext conftest.beam \
14092    conftest$ac_exeext conftest.$ac_ext
14093fi
14094
14095
14096		CFLAGS="$xorg_testset_save_CFLAGS"
14097
14098		eval supported=\$$cacheid
14099		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14100printf "%s\n" "$supported" >&6; }
14101		if test "$supported" = "yes" ; then
14102			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
14103			found="yes"
14104		fi
14105	fi
14106
14107
14108
14109
14110
14111
14112
14113
14114
14115
14116
14117
14118
14119
14120
14121xorg_testset_save_CFLAGS="$CFLAGS"
14122
14123if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14124	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14125	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14126printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14127if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14128then :
14129  printf %s "(cached) " >&6
14130else $as_nop
14131  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14132/* end confdefs.h.  */
14133int i;
14134_ACEOF
14135if ac_fn_c_try_compile "$LINENO"
14136then :
14137  xorg_cv_cc_flag_unknown_warning_option=yes
14138else $as_nop
14139  xorg_cv_cc_flag_unknown_warning_option=no
14140fi
14141rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14142fi
14143{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14144printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14145	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14146	CFLAGS="$xorg_testset_save_CFLAGS"
14147fi
14148
14149if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14150	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14151		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14152	fi
14153	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14154	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14155printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14156if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14157then :
14158  printf %s "(cached) " >&6
14159else $as_nop
14160  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14161/* end confdefs.h.  */
14162int i;
14163_ACEOF
14164if ac_fn_c_try_compile "$LINENO"
14165then :
14166  xorg_cv_cc_flag_unused_command_line_argument=yes
14167else $as_nop
14168  xorg_cv_cc_flag_unused_command_line_argument=no
14169fi
14170rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14171fi
14172{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14173printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14174	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14175	CFLAGS="$xorg_testset_save_CFLAGS"
14176fi
14177
14178found="no"
14179
14180	if test $found = "no" ; then
14181		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14182			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14183		fi
14184
14185		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14186			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14187		fi
14188
14189		CFLAGS="$CFLAGS -Wold-style-definition"
14190
14191		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
14192printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
14193		cacheid=xorg_cv_cc_flag__Wold_style_definition
14194		if eval test \${$cacheid+y}
14195then :
14196  printf %s "(cached) " >&6
14197else $as_nop
14198  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14199/* end confdefs.h.  */
14200int i;
14201int
14202main (void)
14203{
14204
14205  ;
14206  return 0;
14207}
14208_ACEOF
14209if ac_fn_c_try_link "$LINENO"
14210then :
14211  eval $cacheid=yes
14212else $as_nop
14213  eval $cacheid=no
14214fi
14215rm -f core conftest.err conftest.$ac_objext conftest.beam \
14216    conftest$ac_exeext conftest.$ac_ext
14217fi
14218
14219
14220		CFLAGS="$xorg_testset_save_CFLAGS"
14221
14222		eval supported=\$$cacheid
14223		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14224printf "%s\n" "$supported" >&6; }
14225		if test "$supported" = "yes" ; then
14226			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
14227			found="yes"
14228		fi
14229	fi
14230
14231	if test $found = "no" ; then
14232		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14233			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14234		fi
14235
14236		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14237			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14238		fi
14239
14240		CFLAGS="$CFLAGS -fd"
14241
14242		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
14243printf %s "checking if $CC supports -fd... " >&6; }
14244		cacheid=xorg_cv_cc_flag__fd
14245		if eval test \${$cacheid+y}
14246then :
14247  printf %s "(cached) " >&6
14248else $as_nop
14249  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14250/* end confdefs.h.  */
14251int i;
14252int
14253main (void)
14254{
14255
14256  ;
14257  return 0;
14258}
14259_ACEOF
14260if ac_fn_c_try_link "$LINENO"
14261then :
14262  eval $cacheid=yes
14263else $as_nop
14264  eval $cacheid=no
14265fi
14266rm -f core conftest.err conftest.$ac_objext conftest.beam \
14267    conftest$ac_exeext conftest.$ac_ext
14268fi
14269
14270
14271		CFLAGS="$xorg_testset_save_CFLAGS"
14272
14273		eval supported=\$$cacheid
14274		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14275printf "%s\n" "$supported" >&6; }
14276		if test "$supported" = "yes" ; then
14277			BASE_CFLAGS="$BASE_CFLAGS -fd"
14278			found="yes"
14279		fi
14280	fi
14281
14282
14283
14284
14285
14286
14287
14288
14289
14290
14291
14292
14293
14294
14295
14296xorg_testset_save_CFLAGS="$CFLAGS"
14297
14298if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14299	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14300	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14301printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14302if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14303then :
14304  printf %s "(cached) " >&6
14305else $as_nop
14306  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14307/* end confdefs.h.  */
14308int i;
14309_ACEOF
14310if ac_fn_c_try_compile "$LINENO"
14311then :
14312  xorg_cv_cc_flag_unknown_warning_option=yes
14313else $as_nop
14314  xorg_cv_cc_flag_unknown_warning_option=no
14315fi
14316rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14317fi
14318{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14319printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14320	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14321	CFLAGS="$xorg_testset_save_CFLAGS"
14322fi
14323
14324if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14325	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14326		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14327	fi
14328	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14329	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14330printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14331if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14332then :
14333  printf %s "(cached) " >&6
14334else $as_nop
14335  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14336/* end confdefs.h.  */
14337int i;
14338_ACEOF
14339if ac_fn_c_try_compile "$LINENO"
14340then :
14341  xorg_cv_cc_flag_unused_command_line_argument=yes
14342else $as_nop
14343  xorg_cv_cc_flag_unused_command_line_argument=no
14344fi
14345rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14346fi
14347{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14348printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14349	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14350	CFLAGS="$xorg_testset_save_CFLAGS"
14351fi
14352
14353found="no"
14354
14355	if test $found = "no" ; then
14356		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14357			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14358		fi
14359
14360		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14361			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14362		fi
14363
14364		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
14365
14366		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
14367printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
14368		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
14369		if eval test \${$cacheid+y}
14370then :
14371  printf %s "(cached) " >&6
14372else $as_nop
14373  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14374/* end confdefs.h.  */
14375int i;
14376int
14377main (void)
14378{
14379
14380  ;
14381  return 0;
14382}
14383_ACEOF
14384if ac_fn_c_try_link "$LINENO"
14385then :
14386  eval $cacheid=yes
14387else $as_nop
14388  eval $cacheid=no
14389fi
14390rm -f core conftest.err conftest.$ac_objext conftest.beam \
14391    conftest$ac_exeext conftest.$ac_ext
14392fi
14393
14394
14395		CFLAGS="$xorg_testset_save_CFLAGS"
14396
14397		eval supported=\$$cacheid
14398		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14399printf "%s\n" "$supported" >&6; }
14400		if test "$supported" = "yes" ; then
14401			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
14402			found="yes"
14403		fi
14404	fi
14405
14406
14407
14408
14409
14410# This chunk adds additional warnings that could catch undesired effects.
14411
14412
14413
14414
14415
14416
14417
14418
14419
14420
14421
14422
14423
14424xorg_testset_save_CFLAGS="$CFLAGS"
14425
14426if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14427	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14428	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14429printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14430if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14431then :
14432  printf %s "(cached) " >&6
14433else $as_nop
14434  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14435/* end confdefs.h.  */
14436int i;
14437_ACEOF
14438if ac_fn_c_try_compile "$LINENO"
14439then :
14440  xorg_cv_cc_flag_unknown_warning_option=yes
14441else $as_nop
14442  xorg_cv_cc_flag_unknown_warning_option=no
14443fi
14444rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14445fi
14446{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14447printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14448	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14449	CFLAGS="$xorg_testset_save_CFLAGS"
14450fi
14451
14452if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14453	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14454		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14455	fi
14456	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14457	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14458printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14459if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14460then :
14461  printf %s "(cached) " >&6
14462else $as_nop
14463  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14464/* end confdefs.h.  */
14465int i;
14466_ACEOF
14467if ac_fn_c_try_compile "$LINENO"
14468then :
14469  xorg_cv_cc_flag_unused_command_line_argument=yes
14470else $as_nop
14471  xorg_cv_cc_flag_unused_command_line_argument=no
14472fi
14473rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14474fi
14475{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14476printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14477	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14478	CFLAGS="$xorg_testset_save_CFLAGS"
14479fi
14480
14481found="no"
14482
14483	if test $found = "no" ; then
14484		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14485			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14486		fi
14487
14488		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14489			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14490		fi
14491
14492		CFLAGS="$CFLAGS -Wunused"
14493
14494		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
14495printf %s "checking if $CC supports -Wunused... " >&6; }
14496		cacheid=xorg_cv_cc_flag__Wunused
14497		if eval test \${$cacheid+y}
14498then :
14499  printf %s "(cached) " >&6
14500else $as_nop
14501  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14502/* end confdefs.h.  */
14503int i;
14504int
14505main (void)
14506{
14507
14508  ;
14509  return 0;
14510}
14511_ACEOF
14512if ac_fn_c_try_link "$LINENO"
14513then :
14514  eval $cacheid=yes
14515else $as_nop
14516  eval $cacheid=no
14517fi
14518rm -f core conftest.err conftest.$ac_objext conftest.beam \
14519    conftest$ac_exeext conftest.$ac_ext
14520fi
14521
14522
14523		CFLAGS="$xorg_testset_save_CFLAGS"
14524
14525		eval supported=\$$cacheid
14526		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14527printf "%s\n" "$supported" >&6; }
14528		if test "$supported" = "yes" ; then
14529			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
14530			found="yes"
14531		fi
14532	fi
14533
14534
14535
14536
14537
14538
14539
14540
14541
14542
14543
14544
14545
14546
14547
14548xorg_testset_save_CFLAGS="$CFLAGS"
14549
14550if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14551	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14552	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14553printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14554if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14555then :
14556  printf %s "(cached) " >&6
14557else $as_nop
14558  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14559/* end confdefs.h.  */
14560int i;
14561_ACEOF
14562if ac_fn_c_try_compile "$LINENO"
14563then :
14564  xorg_cv_cc_flag_unknown_warning_option=yes
14565else $as_nop
14566  xorg_cv_cc_flag_unknown_warning_option=no
14567fi
14568rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14569fi
14570{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14571printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14572	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14573	CFLAGS="$xorg_testset_save_CFLAGS"
14574fi
14575
14576if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14577	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14578		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14579	fi
14580	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14581	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14582printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14583if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14584then :
14585  printf %s "(cached) " >&6
14586else $as_nop
14587  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14588/* end confdefs.h.  */
14589int i;
14590_ACEOF
14591if ac_fn_c_try_compile "$LINENO"
14592then :
14593  xorg_cv_cc_flag_unused_command_line_argument=yes
14594else $as_nop
14595  xorg_cv_cc_flag_unused_command_line_argument=no
14596fi
14597rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14598fi
14599{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14600printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14601	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14602	CFLAGS="$xorg_testset_save_CFLAGS"
14603fi
14604
14605found="no"
14606
14607	if test $found = "no" ; then
14608		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14609			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14610		fi
14611
14612		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14613			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14614		fi
14615
14616		CFLAGS="$CFLAGS -Wuninitialized"
14617
14618		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
14619printf %s "checking if $CC supports -Wuninitialized... " >&6; }
14620		cacheid=xorg_cv_cc_flag__Wuninitialized
14621		if eval test \${$cacheid+y}
14622then :
14623  printf %s "(cached) " >&6
14624else $as_nop
14625  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14626/* end confdefs.h.  */
14627int i;
14628int
14629main (void)
14630{
14631
14632  ;
14633  return 0;
14634}
14635_ACEOF
14636if ac_fn_c_try_link "$LINENO"
14637then :
14638  eval $cacheid=yes
14639else $as_nop
14640  eval $cacheid=no
14641fi
14642rm -f core conftest.err conftest.$ac_objext conftest.beam \
14643    conftest$ac_exeext conftest.$ac_ext
14644fi
14645
14646
14647		CFLAGS="$xorg_testset_save_CFLAGS"
14648
14649		eval supported=\$$cacheid
14650		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14651printf "%s\n" "$supported" >&6; }
14652		if test "$supported" = "yes" ; then
14653			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
14654			found="yes"
14655		fi
14656	fi
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668
14669
14670
14671
14672xorg_testset_save_CFLAGS="$CFLAGS"
14673
14674if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14675	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14676	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14677printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14678if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14679then :
14680  printf %s "(cached) " >&6
14681else $as_nop
14682  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14683/* end confdefs.h.  */
14684int i;
14685_ACEOF
14686if ac_fn_c_try_compile "$LINENO"
14687then :
14688  xorg_cv_cc_flag_unknown_warning_option=yes
14689else $as_nop
14690  xorg_cv_cc_flag_unknown_warning_option=no
14691fi
14692rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14693fi
14694{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14695printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14696	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14697	CFLAGS="$xorg_testset_save_CFLAGS"
14698fi
14699
14700if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14701	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14702		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14703	fi
14704	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14705	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14706printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14707if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14708then :
14709  printf %s "(cached) " >&6
14710else $as_nop
14711  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14712/* end confdefs.h.  */
14713int i;
14714_ACEOF
14715if ac_fn_c_try_compile "$LINENO"
14716then :
14717  xorg_cv_cc_flag_unused_command_line_argument=yes
14718else $as_nop
14719  xorg_cv_cc_flag_unused_command_line_argument=no
14720fi
14721rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14722fi
14723{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14724printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14725	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14726	CFLAGS="$xorg_testset_save_CFLAGS"
14727fi
14728
14729found="no"
14730
14731	if test $found = "no" ; then
14732		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14733			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14734		fi
14735
14736		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14737			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14738		fi
14739
14740		CFLAGS="$CFLAGS -Wshadow"
14741
14742		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
14743printf %s "checking if $CC supports -Wshadow... " >&6; }
14744		cacheid=xorg_cv_cc_flag__Wshadow
14745		if eval test \${$cacheid+y}
14746then :
14747  printf %s "(cached) " >&6
14748else $as_nop
14749  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14750/* end confdefs.h.  */
14751int i;
14752int
14753main (void)
14754{
14755
14756  ;
14757  return 0;
14758}
14759_ACEOF
14760if ac_fn_c_try_link "$LINENO"
14761then :
14762  eval $cacheid=yes
14763else $as_nop
14764  eval $cacheid=no
14765fi
14766rm -f core conftest.err conftest.$ac_objext conftest.beam \
14767    conftest$ac_exeext conftest.$ac_ext
14768fi
14769
14770
14771		CFLAGS="$xorg_testset_save_CFLAGS"
14772
14773		eval supported=\$$cacheid
14774		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14775printf "%s\n" "$supported" >&6; }
14776		if test "$supported" = "yes" ; then
14777			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
14778			found="yes"
14779		fi
14780	fi
14781
14782
14783
14784
14785
14786
14787
14788
14789
14790
14791
14792
14793
14794
14795
14796xorg_testset_save_CFLAGS="$CFLAGS"
14797
14798if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14799	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14800	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14801printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14802if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14803then :
14804  printf %s "(cached) " >&6
14805else $as_nop
14806  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14807/* end confdefs.h.  */
14808int i;
14809_ACEOF
14810if ac_fn_c_try_compile "$LINENO"
14811then :
14812  xorg_cv_cc_flag_unknown_warning_option=yes
14813else $as_nop
14814  xorg_cv_cc_flag_unknown_warning_option=no
14815fi
14816rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14817fi
14818{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14819printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14820	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14821	CFLAGS="$xorg_testset_save_CFLAGS"
14822fi
14823
14824if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14825	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14826		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14827	fi
14828	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14829	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14830printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14831if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14832then :
14833  printf %s "(cached) " >&6
14834else $as_nop
14835  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14836/* end confdefs.h.  */
14837int i;
14838_ACEOF
14839if ac_fn_c_try_compile "$LINENO"
14840then :
14841  xorg_cv_cc_flag_unused_command_line_argument=yes
14842else $as_nop
14843  xorg_cv_cc_flag_unused_command_line_argument=no
14844fi
14845rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14846fi
14847{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14848printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14849	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14850	CFLAGS="$xorg_testset_save_CFLAGS"
14851fi
14852
14853found="no"
14854
14855	if test $found = "no" ; then
14856		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14857			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14858		fi
14859
14860		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14861			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14862		fi
14863
14864		CFLAGS="$CFLAGS -Wmissing-noreturn"
14865
14866		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
14867printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
14868		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
14869		if eval test \${$cacheid+y}
14870then :
14871  printf %s "(cached) " >&6
14872else $as_nop
14873  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14874/* end confdefs.h.  */
14875int i;
14876int
14877main (void)
14878{
14879
14880  ;
14881  return 0;
14882}
14883_ACEOF
14884if ac_fn_c_try_link "$LINENO"
14885then :
14886  eval $cacheid=yes
14887else $as_nop
14888  eval $cacheid=no
14889fi
14890rm -f core conftest.err conftest.$ac_objext conftest.beam \
14891    conftest$ac_exeext conftest.$ac_ext
14892fi
14893
14894
14895		CFLAGS="$xorg_testset_save_CFLAGS"
14896
14897		eval supported=\$$cacheid
14898		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14899printf "%s\n" "$supported" >&6; }
14900		if test "$supported" = "yes" ; then
14901			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
14902			found="yes"
14903		fi
14904	fi
14905
14906
14907
14908
14909
14910
14911
14912
14913
14914
14915
14916
14917
14918
14919
14920xorg_testset_save_CFLAGS="$CFLAGS"
14921
14922if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14923	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14924	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14925printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14926if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14927then :
14928  printf %s "(cached) " >&6
14929else $as_nop
14930  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14931/* end confdefs.h.  */
14932int i;
14933_ACEOF
14934if ac_fn_c_try_compile "$LINENO"
14935then :
14936  xorg_cv_cc_flag_unknown_warning_option=yes
14937else $as_nop
14938  xorg_cv_cc_flag_unknown_warning_option=no
14939fi
14940rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14941fi
14942{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14943printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14944	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14945	CFLAGS="$xorg_testset_save_CFLAGS"
14946fi
14947
14948if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14949	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14950		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14951	fi
14952	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14953	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14954printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14955if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14956then :
14957  printf %s "(cached) " >&6
14958else $as_nop
14959  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14960/* end confdefs.h.  */
14961int i;
14962_ACEOF
14963if ac_fn_c_try_compile "$LINENO"
14964then :
14965  xorg_cv_cc_flag_unused_command_line_argument=yes
14966else $as_nop
14967  xorg_cv_cc_flag_unused_command_line_argument=no
14968fi
14969rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14970fi
14971{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14972printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14973	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14974	CFLAGS="$xorg_testset_save_CFLAGS"
14975fi
14976
14977found="no"
14978
14979	if test $found = "no" ; then
14980		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14981			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14982		fi
14983
14984		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14985			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14986		fi
14987
14988		CFLAGS="$CFLAGS -Wmissing-format-attribute"
14989
14990		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
14991printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
14992		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
14993		if eval test \${$cacheid+y}
14994then :
14995  printf %s "(cached) " >&6
14996else $as_nop
14997  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14998/* end confdefs.h.  */
14999int i;
15000int
15001main (void)
15002{
15003
15004  ;
15005  return 0;
15006}
15007_ACEOF
15008if ac_fn_c_try_link "$LINENO"
15009then :
15010  eval $cacheid=yes
15011else $as_nop
15012  eval $cacheid=no
15013fi
15014rm -f core conftest.err conftest.$ac_objext conftest.beam \
15015    conftest$ac_exeext conftest.$ac_ext
15016fi
15017
15018
15019		CFLAGS="$xorg_testset_save_CFLAGS"
15020
15021		eval supported=\$$cacheid
15022		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15023printf "%s\n" "$supported" >&6; }
15024		if test "$supported" = "yes" ; then
15025			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
15026			found="yes"
15027		fi
15028	fi
15029
15030
15031
15032
15033
15034
15035
15036
15037
15038
15039
15040
15041
15042
15043
15044xorg_testset_save_CFLAGS="$CFLAGS"
15045
15046if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15047	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15048	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15049printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15050if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15051then :
15052  printf %s "(cached) " >&6
15053else $as_nop
15054  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15055/* end confdefs.h.  */
15056int i;
15057_ACEOF
15058if ac_fn_c_try_compile "$LINENO"
15059then :
15060  xorg_cv_cc_flag_unknown_warning_option=yes
15061else $as_nop
15062  xorg_cv_cc_flag_unknown_warning_option=no
15063fi
15064rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15065fi
15066{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15067printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15068	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15069	CFLAGS="$xorg_testset_save_CFLAGS"
15070fi
15071
15072if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15073	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15074		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15075	fi
15076	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15077	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15078printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15079if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15080then :
15081  printf %s "(cached) " >&6
15082else $as_nop
15083  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15084/* end confdefs.h.  */
15085int i;
15086_ACEOF
15087if ac_fn_c_try_compile "$LINENO"
15088then :
15089  xorg_cv_cc_flag_unused_command_line_argument=yes
15090else $as_nop
15091  xorg_cv_cc_flag_unused_command_line_argument=no
15092fi
15093rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15094fi
15095{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15096printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15097	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15098	CFLAGS="$xorg_testset_save_CFLAGS"
15099fi
15100
15101found="no"
15102
15103	if test $found = "no" ; then
15104		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15105			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15106		fi
15107
15108		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15109			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15110		fi
15111
15112		CFLAGS="$CFLAGS -Wredundant-decls"
15113
15114		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
15115printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
15116		cacheid=xorg_cv_cc_flag__Wredundant_decls
15117		if eval test \${$cacheid+y}
15118then :
15119  printf %s "(cached) " >&6
15120else $as_nop
15121  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15122/* end confdefs.h.  */
15123int i;
15124int
15125main (void)
15126{
15127
15128  ;
15129  return 0;
15130}
15131_ACEOF
15132if ac_fn_c_try_link "$LINENO"
15133then :
15134  eval $cacheid=yes
15135else $as_nop
15136  eval $cacheid=no
15137fi
15138rm -f core conftest.err conftest.$ac_objext conftest.beam \
15139    conftest$ac_exeext conftest.$ac_ext
15140fi
15141
15142
15143		CFLAGS="$xorg_testset_save_CFLAGS"
15144
15145		eval supported=\$$cacheid
15146		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15147printf "%s\n" "$supported" >&6; }
15148		if test "$supported" = "yes" ; then
15149			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
15150			found="yes"
15151		fi
15152	fi
15153
15154
15155
15156
15157
15158
15159
15160
15161
15162
15163
15164
15165
15166
15167
15168xorg_testset_save_CFLAGS="$CFLAGS"
15169
15170if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15171	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15172	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15173printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15174if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15175then :
15176  printf %s "(cached) " >&6
15177else $as_nop
15178  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15179/* end confdefs.h.  */
15180int i;
15181_ACEOF
15182if ac_fn_c_try_compile "$LINENO"
15183then :
15184  xorg_cv_cc_flag_unknown_warning_option=yes
15185else $as_nop
15186  xorg_cv_cc_flag_unknown_warning_option=no
15187fi
15188rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15189fi
15190{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15191printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15192	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15193	CFLAGS="$xorg_testset_save_CFLAGS"
15194fi
15195
15196if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15197	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15198		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15199	fi
15200	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15201	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15202printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15203if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15204then :
15205  printf %s "(cached) " >&6
15206else $as_nop
15207  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15208/* end confdefs.h.  */
15209int i;
15210_ACEOF
15211if ac_fn_c_try_compile "$LINENO"
15212then :
15213  xorg_cv_cc_flag_unused_command_line_argument=yes
15214else $as_nop
15215  xorg_cv_cc_flag_unused_command_line_argument=no
15216fi
15217rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15218fi
15219{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15220printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15221	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15222	CFLAGS="$xorg_testset_save_CFLAGS"
15223fi
15224
15225found="no"
15226
15227	if test $found = "no" ; then
15228		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15229			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15230		fi
15231
15232		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15233			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15234		fi
15235
15236		CFLAGS="$CFLAGS -Wlogical-op"
15237
15238		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
15239printf %s "checking if $CC supports -Wlogical-op... " >&6; }
15240		cacheid=xorg_cv_cc_flag__Wlogical_op
15241		if eval test \${$cacheid+y}
15242then :
15243  printf %s "(cached) " >&6
15244else $as_nop
15245  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15246/* end confdefs.h.  */
15247int i;
15248int
15249main (void)
15250{
15251
15252  ;
15253  return 0;
15254}
15255_ACEOF
15256if ac_fn_c_try_link "$LINENO"
15257then :
15258  eval $cacheid=yes
15259else $as_nop
15260  eval $cacheid=no
15261fi
15262rm -f core conftest.err conftest.$ac_objext conftest.beam \
15263    conftest$ac_exeext conftest.$ac_ext
15264fi
15265
15266
15267		CFLAGS="$xorg_testset_save_CFLAGS"
15268
15269		eval supported=\$$cacheid
15270		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15271printf "%s\n" "$supported" >&6; }
15272		if test "$supported" = "yes" ; then
15273			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
15274			found="yes"
15275		fi
15276	fi
15277
15278
15279
15280# These are currently disabled because they are noisy.  They will be enabled
15281# in the future once the codebase is sufficiently modernized to silence
15282# them.  For now, I don't want them to drown out the other warnings.
15283# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
15284# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
15285# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
15286
15287# Turn some warnings into errors, so we don't accidently get successful builds
15288# when there are problems that should be fixed.
15289
15290if test "x$SELECTIVE_WERROR" = "xyes" ; then
15291
15292
15293
15294
15295
15296
15297
15298
15299
15300
15301
15302
15303
15304xorg_testset_save_CFLAGS="$CFLAGS"
15305
15306if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15307	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15308	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15309printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15310if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15311then :
15312  printf %s "(cached) " >&6
15313else $as_nop
15314  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15315/* end confdefs.h.  */
15316int i;
15317_ACEOF
15318if ac_fn_c_try_compile "$LINENO"
15319then :
15320  xorg_cv_cc_flag_unknown_warning_option=yes
15321else $as_nop
15322  xorg_cv_cc_flag_unknown_warning_option=no
15323fi
15324rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15325fi
15326{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15327printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15328	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15329	CFLAGS="$xorg_testset_save_CFLAGS"
15330fi
15331
15332if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15333	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15334		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15335	fi
15336	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15337	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15338printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15339if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15340then :
15341  printf %s "(cached) " >&6
15342else $as_nop
15343  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15344/* end confdefs.h.  */
15345int i;
15346_ACEOF
15347if ac_fn_c_try_compile "$LINENO"
15348then :
15349  xorg_cv_cc_flag_unused_command_line_argument=yes
15350else $as_nop
15351  xorg_cv_cc_flag_unused_command_line_argument=no
15352fi
15353rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15354fi
15355{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15356printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15357	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15358	CFLAGS="$xorg_testset_save_CFLAGS"
15359fi
15360
15361found="no"
15362
15363	if test $found = "no" ; then
15364		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15365			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15366		fi
15367
15368		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15369			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15370		fi
15371
15372		CFLAGS="$CFLAGS -Werror=implicit"
15373
15374		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
15375printf %s "checking if $CC supports -Werror=implicit... " >&6; }
15376		cacheid=xorg_cv_cc_flag__Werror_implicit
15377		if eval test \${$cacheid+y}
15378then :
15379  printf %s "(cached) " >&6
15380else $as_nop
15381  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15382/* end confdefs.h.  */
15383int i;
15384int
15385main (void)
15386{
15387
15388  ;
15389  return 0;
15390}
15391_ACEOF
15392if ac_fn_c_try_link "$LINENO"
15393then :
15394  eval $cacheid=yes
15395else $as_nop
15396  eval $cacheid=no
15397fi
15398rm -f core conftest.err conftest.$ac_objext conftest.beam \
15399    conftest$ac_exeext conftest.$ac_ext
15400fi
15401
15402
15403		CFLAGS="$xorg_testset_save_CFLAGS"
15404
15405		eval supported=\$$cacheid
15406		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15407printf "%s\n" "$supported" >&6; }
15408		if test "$supported" = "yes" ; then
15409			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
15410			found="yes"
15411		fi
15412	fi
15413
15414	if test $found = "no" ; then
15415		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15416			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15417		fi
15418
15419		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15420			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15421		fi
15422
15423		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15424
15425		{ 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
15426printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
15427		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
15428		if eval test \${$cacheid+y}
15429then :
15430  printf %s "(cached) " >&6
15431else $as_nop
15432  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15433/* end confdefs.h.  */
15434int i;
15435int
15436main (void)
15437{
15438
15439  ;
15440  return 0;
15441}
15442_ACEOF
15443if ac_fn_c_try_link "$LINENO"
15444then :
15445  eval $cacheid=yes
15446else $as_nop
15447  eval $cacheid=no
15448fi
15449rm -f core conftest.err conftest.$ac_objext conftest.beam \
15450    conftest$ac_exeext conftest.$ac_ext
15451fi
15452
15453
15454		CFLAGS="$xorg_testset_save_CFLAGS"
15455
15456		eval supported=\$$cacheid
15457		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15458printf "%s\n" "$supported" >&6; }
15459		if test "$supported" = "yes" ; then
15460			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15461			found="yes"
15462		fi
15463	fi
15464
15465
15466
15467
15468
15469
15470
15471
15472
15473
15474
15475
15476
15477
15478
15479xorg_testset_save_CFLAGS="$CFLAGS"
15480
15481if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15482	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15483	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15484printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15485if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15486then :
15487  printf %s "(cached) " >&6
15488else $as_nop
15489  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15490/* end confdefs.h.  */
15491int i;
15492_ACEOF
15493if ac_fn_c_try_compile "$LINENO"
15494then :
15495  xorg_cv_cc_flag_unknown_warning_option=yes
15496else $as_nop
15497  xorg_cv_cc_flag_unknown_warning_option=no
15498fi
15499rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15500fi
15501{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15502printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15503	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15504	CFLAGS="$xorg_testset_save_CFLAGS"
15505fi
15506
15507if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15508	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15509		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15510	fi
15511	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15512	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15513printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15514if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15515then :
15516  printf %s "(cached) " >&6
15517else $as_nop
15518  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15519/* end confdefs.h.  */
15520int i;
15521_ACEOF
15522if ac_fn_c_try_compile "$LINENO"
15523then :
15524  xorg_cv_cc_flag_unused_command_line_argument=yes
15525else $as_nop
15526  xorg_cv_cc_flag_unused_command_line_argument=no
15527fi
15528rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15529fi
15530{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15531printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15532	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15533	CFLAGS="$xorg_testset_save_CFLAGS"
15534fi
15535
15536found="no"
15537
15538	if test $found = "no" ; then
15539		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15540			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15541		fi
15542
15543		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15544			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15545		fi
15546
15547		CFLAGS="$CFLAGS -Werror=nonnull"
15548
15549		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
15550printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
15551		cacheid=xorg_cv_cc_flag__Werror_nonnull
15552		if eval test \${$cacheid+y}
15553then :
15554  printf %s "(cached) " >&6
15555else $as_nop
15556  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15557/* end confdefs.h.  */
15558int i;
15559int
15560main (void)
15561{
15562
15563  ;
15564  return 0;
15565}
15566_ACEOF
15567if ac_fn_c_try_link "$LINENO"
15568then :
15569  eval $cacheid=yes
15570else $as_nop
15571  eval $cacheid=no
15572fi
15573rm -f core conftest.err conftest.$ac_objext conftest.beam \
15574    conftest$ac_exeext conftest.$ac_ext
15575fi
15576
15577
15578		CFLAGS="$xorg_testset_save_CFLAGS"
15579
15580		eval supported=\$$cacheid
15581		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15582printf "%s\n" "$supported" >&6; }
15583		if test "$supported" = "yes" ; then
15584			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
15585			found="yes"
15586		fi
15587	fi
15588
15589
15590
15591
15592
15593
15594
15595
15596
15597
15598
15599
15600
15601
15602
15603xorg_testset_save_CFLAGS="$CFLAGS"
15604
15605if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15606	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15607	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15608printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15609if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15610then :
15611  printf %s "(cached) " >&6
15612else $as_nop
15613  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15614/* end confdefs.h.  */
15615int i;
15616_ACEOF
15617if ac_fn_c_try_compile "$LINENO"
15618then :
15619  xorg_cv_cc_flag_unknown_warning_option=yes
15620else $as_nop
15621  xorg_cv_cc_flag_unknown_warning_option=no
15622fi
15623rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15624fi
15625{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15626printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15627	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15628	CFLAGS="$xorg_testset_save_CFLAGS"
15629fi
15630
15631if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15632	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15633		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15634	fi
15635	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15636	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15637printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15638if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15639then :
15640  printf %s "(cached) " >&6
15641else $as_nop
15642  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15643/* end confdefs.h.  */
15644int i;
15645_ACEOF
15646if ac_fn_c_try_compile "$LINENO"
15647then :
15648  xorg_cv_cc_flag_unused_command_line_argument=yes
15649else $as_nop
15650  xorg_cv_cc_flag_unused_command_line_argument=no
15651fi
15652rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15653fi
15654{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15655printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15656	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15657	CFLAGS="$xorg_testset_save_CFLAGS"
15658fi
15659
15660found="no"
15661
15662	if test $found = "no" ; then
15663		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15664			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15665		fi
15666
15667		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15668			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15669		fi
15670
15671		CFLAGS="$CFLAGS -Werror=init-self"
15672
15673		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
15674printf %s "checking if $CC supports -Werror=init-self... " >&6; }
15675		cacheid=xorg_cv_cc_flag__Werror_init_self
15676		if eval test \${$cacheid+y}
15677then :
15678  printf %s "(cached) " >&6
15679else $as_nop
15680  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15681/* end confdefs.h.  */
15682int i;
15683int
15684main (void)
15685{
15686
15687  ;
15688  return 0;
15689}
15690_ACEOF
15691if ac_fn_c_try_link "$LINENO"
15692then :
15693  eval $cacheid=yes
15694else $as_nop
15695  eval $cacheid=no
15696fi
15697rm -f core conftest.err conftest.$ac_objext conftest.beam \
15698    conftest$ac_exeext conftest.$ac_ext
15699fi
15700
15701
15702		CFLAGS="$xorg_testset_save_CFLAGS"
15703
15704		eval supported=\$$cacheid
15705		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15706printf "%s\n" "$supported" >&6; }
15707		if test "$supported" = "yes" ; then
15708			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
15709			found="yes"
15710		fi
15711	fi
15712
15713
15714
15715
15716
15717
15718
15719
15720
15721
15722
15723
15724
15725
15726
15727xorg_testset_save_CFLAGS="$CFLAGS"
15728
15729if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15730	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15731	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15732printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15733if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15734then :
15735  printf %s "(cached) " >&6
15736else $as_nop
15737  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15738/* end confdefs.h.  */
15739int i;
15740_ACEOF
15741if ac_fn_c_try_compile "$LINENO"
15742then :
15743  xorg_cv_cc_flag_unknown_warning_option=yes
15744else $as_nop
15745  xorg_cv_cc_flag_unknown_warning_option=no
15746fi
15747rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15748fi
15749{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15750printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15751	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15752	CFLAGS="$xorg_testset_save_CFLAGS"
15753fi
15754
15755if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15756	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15757		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15758	fi
15759	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15760	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15761printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15762if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15763then :
15764  printf %s "(cached) " >&6
15765else $as_nop
15766  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15767/* end confdefs.h.  */
15768int i;
15769_ACEOF
15770if ac_fn_c_try_compile "$LINENO"
15771then :
15772  xorg_cv_cc_flag_unused_command_line_argument=yes
15773else $as_nop
15774  xorg_cv_cc_flag_unused_command_line_argument=no
15775fi
15776rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15777fi
15778{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15779printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15780	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15781	CFLAGS="$xorg_testset_save_CFLAGS"
15782fi
15783
15784found="no"
15785
15786	if test $found = "no" ; then
15787		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15788			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15789		fi
15790
15791		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15792			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15793		fi
15794
15795		CFLAGS="$CFLAGS -Werror=main"
15796
15797		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
15798printf %s "checking if $CC supports -Werror=main... " >&6; }
15799		cacheid=xorg_cv_cc_flag__Werror_main
15800		if eval test \${$cacheid+y}
15801then :
15802  printf %s "(cached) " >&6
15803else $as_nop
15804  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15805/* end confdefs.h.  */
15806int i;
15807int
15808main (void)
15809{
15810
15811  ;
15812  return 0;
15813}
15814_ACEOF
15815if ac_fn_c_try_link "$LINENO"
15816then :
15817  eval $cacheid=yes
15818else $as_nop
15819  eval $cacheid=no
15820fi
15821rm -f core conftest.err conftest.$ac_objext conftest.beam \
15822    conftest$ac_exeext conftest.$ac_ext
15823fi
15824
15825
15826		CFLAGS="$xorg_testset_save_CFLAGS"
15827
15828		eval supported=\$$cacheid
15829		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15830printf "%s\n" "$supported" >&6; }
15831		if test "$supported" = "yes" ; then
15832			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
15833			found="yes"
15834		fi
15835	fi
15836
15837
15838
15839
15840
15841
15842
15843
15844
15845
15846
15847
15848
15849
15850
15851xorg_testset_save_CFLAGS="$CFLAGS"
15852
15853if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15854	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15855	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15856printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15857if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15858then :
15859  printf %s "(cached) " >&6
15860else $as_nop
15861  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15862/* end confdefs.h.  */
15863int i;
15864_ACEOF
15865if ac_fn_c_try_compile "$LINENO"
15866then :
15867  xorg_cv_cc_flag_unknown_warning_option=yes
15868else $as_nop
15869  xorg_cv_cc_flag_unknown_warning_option=no
15870fi
15871rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15872fi
15873{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15874printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15875	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15876	CFLAGS="$xorg_testset_save_CFLAGS"
15877fi
15878
15879if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15880	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15881		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15882	fi
15883	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15884	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15885printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15886if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15887then :
15888  printf %s "(cached) " >&6
15889else $as_nop
15890  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15891/* end confdefs.h.  */
15892int i;
15893_ACEOF
15894if ac_fn_c_try_compile "$LINENO"
15895then :
15896  xorg_cv_cc_flag_unused_command_line_argument=yes
15897else $as_nop
15898  xorg_cv_cc_flag_unused_command_line_argument=no
15899fi
15900rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15901fi
15902{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15903printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15904	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15905	CFLAGS="$xorg_testset_save_CFLAGS"
15906fi
15907
15908found="no"
15909
15910	if test $found = "no" ; then
15911		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15912			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15913		fi
15914
15915		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15916			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15917		fi
15918
15919		CFLAGS="$CFLAGS -Werror=missing-braces"
15920
15921		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
15922printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
15923		cacheid=xorg_cv_cc_flag__Werror_missing_braces
15924		if eval test \${$cacheid+y}
15925then :
15926  printf %s "(cached) " >&6
15927else $as_nop
15928  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15929/* end confdefs.h.  */
15930int i;
15931int
15932main (void)
15933{
15934
15935  ;
15936  return 0;
15937}
15938_ACEOF
15939if ac_fn_c_try_link "$LINENO"
15940then :
15941  eval $cacheid=yes
15942else $as_nop
15943  eval $cacheid=no
15944fi
15945rm -f core conftest.err conftest.$ac_objext conftest.beam \
15946    conftest$ac_exeext conftest.$ac_ext
15947fi
15948
15949
15950		CFLAGS="$xorg_testset_save_CFLAGS"
15951
15952		eval supported=\$$cacheid
15953		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15954printf "%s\n" "$supported" >&6; }
15955		if test "$supported" = "yes" ; then
15956			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
15957			found="yes"
15958		fi
15959	fi
15960
15961
15962
15963
15964
15965
15966
15967
15968
15969
15970
15971
15972
15973
15974
15975xorg_testset_save_CFLAGS="$CFLAGS"
15976
15977if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15978	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15979	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15980printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15981if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15982then :
15983  printf %s "(cached) " >&6
15984else $as_nop
15985  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15986/* end confdefs.h.  */
15987int i;
15988_ACEOF
15989if ac_fn_c_try_compile "$LINENO"
15990then :
15991  xorg_cv_cc_flag_unknown_warning_option=yes
15992else $as_nop
15993  xorg_cv_cc_flag_unknown_warning_option=no
15994fi
15995rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15996fi
15997{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15998printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15999	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16000	CFLAGS="$xorg_testset_save_CFLAGS"
16001fi
16002
16003if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16004	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16005		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16006	fi
16007	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16008	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16009printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16010if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16011then :
16012  printf %s "(cached) " >&6
16013else $as_nop
16014  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16015/* end confdefs.h.  */
16016int i;
16017_ACEOF
16018if ac_fn_c_try_compile "$LINENO"
16019then :
16020  xorg_cv_cc_flag_unused_command_line_argument=yes
16021else $as_nop
16022  xorg_cv_cc_flag_unused_command_line_argument=no
16023fi
16024rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16025fi
16026{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16027printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16028	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16029	CFLAGS="$xorg_testset_save_CFLAGS"
16030fi
16031
16032found="no"
16033
16034	if test $found = "no" ; then
16035		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16036			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16037		fi
16038
16039		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16040			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16041		fi
16042
16043		CFLAGS="$CFLAGS -Werror=sequence-point"
16044
16045		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
16046printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
16047		cacheid=xorg_cv_cc_flag__Werror_sequence_point
16048		if eval test \${$cacheid+y}
16049then :
16050  printf %s "(cached) " >&6
16051else $as_nop
16052  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16053/* end confdefs.h.  */
16054int i;
16055int
16056main (void)
16057{
16058
16059  ;
16060  return 0;
16061}
16062_ACEOF
16063if ac_fn_c_try_link "$LINENO"
16064then :
16065  eval $cacheid=yes
16066else $as_nop
16067  eval $cacheid=no
16068fi
16069rm -f core conftest.err conftest.$ac_objext conftest.beam \
16070    conftest$ac_exeext conftest.$ac_ext
16071fi
16072
16073
16074		CFLAGS="$xorg_testset_save_CFLAGS"
16075
16076		eval supported=\$$cacheid
16077		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16078printf "%s\n" "$supported" >&6; }
16079		if test "$supported" = "yes" ; then
16080			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
16081			found="yes"
16082		fi
16083	fi
16084
16085
16086
16087
16088
16089
16090
16091
16092
16093
16094
16095
16096
16097
16098
16099xorg_testset_save_CFLAGS="$CFLAGS"
16100
16101if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16102	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16103	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16104printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16105if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16106then :
16107  printf %s "(cached) " >&6
16108else $as_nop
16109  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16110/* end confdefs.h.  */
16111int i;
16112_ACEOF
16113if ac_fn_c_try_compile "$LINENO"
16114then :
16115  xorg_cv_cc_flag_unknown_warning_option=yes
16116else $as_nop
16117  xorg_cv_cc_flag_unknown_warning_option=no
16118fi
16119rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16120fi
16121{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16122printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16123	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16124	CFLAGS="$xorg_testset_save_CFLAGS"
16125fi
16126
16127if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16128	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16129		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16130	fi
16131	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16132	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16133printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16134if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16135then :
16136  printf %s "(cached) " >&6
16137else $as_nop
16138  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16139/* end confdefs.h.  */
16140int i;
16141_ACEOF
16142if ac_fn_c_try_compile "$LINENO"
16143then :
16144  xorg_cv_cc_flag_unused_command_line_argument=yes
16145else $as_nop
16146  xorg_cv_cc_flag_unused_command_line_argument=no
16147fi
16148rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16149fi
16150{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16151printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16152	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16153	CFLAGS="$xorg_testset_save_CFLAGS"
16154fi
16155
16156found="no"
16157
16158	if test $found = "no" ; then
16159		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16160			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16161		fi
16162
16163		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16164			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16165		fi
16166
16167		CFLAGS="$CFLAGS -Werror=return-type"
16168
16169		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
16170printf %s "checking if $CC supports -Werror=return-type... " >&6; }
16171		cacheid=xorg_cv_cc_flag__Werror_return_type
16172		if eval test \${$cacheid+y}
16173then :
16174  printf %s "(cached) " >&6
16175else $as_nop
16176  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16177/* end confdefs.h.  */
16178int i;
16179int
16180main (void)
16181{
16182
16183  ;
16184  return 0;
16185}
16186_ACEOF
16187if ac_fn_c_try_link "$LINENO"
16188then :
16189  eval $cacheid=yes
16190else $as_nop
16191  eval $cacheid=no
16192fi
16193rm -f core conftest.err conftest.$ac_objext conftest.beam \
16194    conftest$ac_exeext conftest.$ac_ext
16195fi
16196
16197
16198		CFLAGS="$xorg_testset_save_CFLAGS"
16199
16200		eval supported=\$$cacheid
16201		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16202printf "%s\n" "$supported" >&6; }
16203		if test "$supported" = "yes" ; then
16204			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
16205			found="yes"
16206		fi
16207	fi
16208
16209	if test $found = "no" ; then
16210		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16211			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16212		fi
16213
16214		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16215			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16216		fi
16217
16218		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16219
16220		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
16221printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
16222		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
16223		if eval test \${$cacheid+y}
16224then :
16225  printf %s "(cached) " >&6
16226else $as_nop
16227  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16228/* end confdefs.h.  */
16229int i;
16230int
16231main (void)
16232{
16233
16234  ;
16235  return 0;
16236}
16237_ACEOF
16238if ac_fn_c_try_link "$LINENO"
16239then :
16240  eval $cacheid=yes
16241else $as_nop
16242  eval $cacheid=no
16243fi
16244rm -f core conftest.err conftest.$ac_objext conftest.beam \
16245    conftest$ac_exeext conftest.$ac_ext
16246fi
16247
16248
16249		CFLAGS="$xorg_testset_save_CFLAGS"
16250
16251		eval supported=\$$cacheid
16252		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16253printf "%s\n" "$supported" >&6; }
16254		if test "$supported" = "yes" ; then
16255			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16256			found="yes"
16257		fi
16258	fi
16259
16260
16261
16262
16263
16264
16265
16266
16267
16268
16269
16270
16271
16272
16273
16274xorg_testset_save_CFLAGS="$CFLAGS"
16275
16276if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16277	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16278	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16279printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16280if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16281then :
16282  printf %s "(cached) " >&6
16283else $as_nop
16284  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16285/* end confdefs.h.  */
16286int i;
16287_ACEOF
16288if ac_fn_c_try_compile "$LINENO"
16289then :
16290  xorg_cv_cc_flag_unknown_warning_option=yes
16291else $as_nop
16292  xorg_cv_cc_flag_unknown_warning_option=no
16293fi
16294rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16295fi
16296{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16297printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16298	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16299	CFLAGS="$xorg_testset_save_CFLAGS"
16300fi
16301
16302if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16303	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16304		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16305	fi
16306	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16307	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16308printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16309if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16310then :
16311  printf %s "(cached) " >&6
16312else $as_nop
16313  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16314/* end confdefs.h.  */
16315int i;
16316_ACEOF
16317if ac_fn_c_try_compile "$LINENO"
16318then :
16319  xorg_cv_cc_flag_unused_command_line_argument=yes
16320else $as_nop
16321  xorg_cv_cc_flag_unused_command_line_argument=no
16322fi
16323rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16324fi
16325{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16326printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16327	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16328	CFLAGS="$xorg_testset_save_CFLAGS"
16329fi
16330
16331found="no"
16332
16333	if test $found = "no" ; then
16334		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16335			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16336		fi
16337
16338		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16339			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16340		fi
16341
16342		CFLAGS="$CFLAGS -Werror=trigraphs"
16343
16344		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
16345printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
16346		cacheid=xorg_cv_cc_flag__Werror_trigraphs
16347		if eval test \${$cacheid+y}
16348then :
16349  printf %s "(cached) " >&6
16350else $as_nop
16351  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16352/* end confdefs.h.  */
16353int i;
16354int
16355main (void)
16356{
16357
16358  ;
16359  return 0;
16360}
16361_ACEOF
16362if ac_fn_c_try_link "$LINENO"
16363then :
16364  eval $cacheid=yes
16365else $as_nop
16366  eval $cacheid=no
16367fi
16368rm -f core conftest.err conftest.$ac_objext conftest.beam \
16369    conftest$ac_exeext conftest.$ac_ext
16370fi
16371
16372
16373		CFLAGS="$xorg_testset_save_CFLAGS"
16374
16375		eval supported=\$$cacheid
16376		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16377printf "%s\n" "$supported" >&6; }
16378		if test "$supported" = "yes" ; then
16379			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
16380			found="yes"
16381		fi
16382	fi
16383
16384
16385
16386
16387
16388
16389
16390
16391
16392
16393
16394
16395
16396
16397
16398xorg_testset_save_CFLAGS="$CFLAGS"
16399
16400if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16401	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16402	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16403printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16404if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16405then :
16406  printf %s "(cached) " >&6
16407else $as_nop
16408  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16409/* end confdefs.h.  */
16410int i;
16411_ACEOF
16412if ac_fn_c_try_compile "$LINENO"
16413then :
16414  xorg_cv_cc_flag_unknown_warning_option=yes
16415else $as_nop
16416  xorg_cv_cc_flag_unknown_warning_option=no
16417fi
16418rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16419fi
16420{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16421printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16422	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16423	CFLAGS="$xorg_testset_save_CFLAGS"
16424fi
16425
16426if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16427	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16428		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16429	fi
16430	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16431	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16432printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16433if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16434then :
16435  printf %s "(cached) " >&6
16436else $as_nop
16437  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16438/* end confdefs.h.  */
16439int i;
16440_ACEOF
16441if ac_fn_c_try_compile "$LINENO"
16442then :
16443  xorg_cv_cc_flag_unused_command_line_argument=yes
16444else $as_nop
16445  xorg_cv_cc_flag_unused_command_line_argument=no
16446fi
16447rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16448fi
16449{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16450printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16451	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16452	CFLAGS="$xorg_testset_save_CFLAGS"
16453fi
16454
16455found="no"
16456
16457	if test $found = "no" ; then
16458		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16459			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16460		fi
16461
16462		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16463			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16464		fi
16465
16466		CFLAGS="$CFLAGS -Werror=array-bounds"
16467
16468		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
16469printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
16470		cacheid=xorg_cv_cc_flag__Werror_array_bounds
16471		if eval test \${$cacheid+y}
16472then :
16473  printf %s "(cached) " >&6
16474else $as_nop
16475  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16476/* end confdefs.h.  */
16477int i;
16478int
16479main (void)
16480{
16481
16482  ;
16483  return 0;
16484}
16485_ACEOF
16486if ac_fn_c_try_link "$LINENO"
16487then :
16488  eval $cacheid=yes
16489else $as_nop
16490  eval $cacheid=no
16491fi
16492rm -f core conftest.err conftest.$ac_objext conftest.beam \
16493    conftest$ac_exeext conftest.$ac_ext
16494fi
16495
16496
16497		CFLAGS="$xorg_testset_save_CFLAGS"
16498
16499		eval supported=\$$cacheid
16500		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16501printf "%s\n" "$supported" >&6; }
16502		if test "$supported" = "yes" ; then
16503			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
16504			found="yes"
16505		fi
16506	fi
16507
16508
16509
16510
16511
16512
16513
16514
16515
16516
16517
16518
16519
16520
16521
16522xorg_testset_save_CFLAGS="$CFLAGS"
16523
16524if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16525	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16526	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16527printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16528if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16529then :
16530  printf %s "(cached) " >&6
16531else $as_nop
16532  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16533/* end confdefs.h.  */
16534int i;
16535_ACEOF
16536if ac_fn_c_try_compile "$LINENO"
16537then :
16538  xorg_cv_cc_flag_unknown_warning_option=yes
16539else $as_nop
16540  xorg_cv_cc_flag_unknown_warning_option=no
16541fi
16542rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16543fi
16544{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16545printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16546	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16547	CFLAGS="$xorg_testset_save_CFLAGS"
16548fi
16549
16550if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16551	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16552		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16553	fi
16554	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16555	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16556printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16557if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16558then :
16559  printf %s "(cached) " >&6
16560else $as_nop
16561  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16562/* end confdefs.h.  */
16563int i;
16564_ACEOF
16565if ac_fn_c_try_compile "$LINENO"
16566then :
16567  xorg_cv_cc_flag_unused_command_line_argument=yes
16568else $as_nop
16569  xorg_cv_cc_flag_unused_command_line_argument=no
16570fi
16571rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16572fi
16573{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16574printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16575	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16576	CFLAGS="$xorg_testset_save_CFLAGS"
16577fi
16578
16579found="no"
16580
16581	if test $found = "no" ; then
16582		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16583			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16584		fi
16585
16586		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16587			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16588		fi
16589
16590		CFLAGS="$CFLAGS -Werror=write-strings"
16591
16592		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
16593printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
16594		cacheid=xorg_cv_cc_flag__Werror_write_strings
16595		if eval test \${$cacheid+y}
16596then :
16597  printf %s "(cached) " >&6
16598else $as_nop
16599  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16600/* end confdefs.h.  */
16601int i;
16602int
16603main (void)
16604{
16605
16606  ;
16607  return 0;
16608}
16609_ACEOF
16610if ac_fn_c_try_link "$LINENO"
16611then :
16612  eval $cacheid=yes
16613else $as_nop
16614  eval $cacheid=no
16615fi
16616rm -f core conftest.err conftest.$ac_objext conftest.beam \
16617    conftest$ac_exeext conftest.$ac_ext
16618fi
16619
16620
16621		CFLAGS="$xorg_testset_save_CFLAGS"
16622
16623		eval supported=\$$cacheid
16624		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16625printf "%s\n" "$supported" >&6; }
16626		if test "$supported" = "yes" ; then
16627			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
16628			found="yes"
16629		fi
16630	fi
16631
16632
16633
16634
16635
16636
16637
16638
16639
16640
16641
16642
16643
16644
16645
16646xorg_testset_save_CFLAGS="$CFLAGS"
16647
16648if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16649	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16650	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16651printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16652if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16653then :
16654  printf %s "(cached) " >&6
16655else $as_nop
16656  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16657/* end confdefs.h.  */
16658int i;
16659_ACEOF
16660if ac_fn_c_try_compile "$LINENO"
16661then :
16662  xorg_cv_cc_flag_unknown_warning_option=yes
16663else $as_nop
16664  xorg_cv_cc_flag_unknown_warning_option=no
16665fi
16666rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16667fi
16668{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16669printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16670	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16671	CFLAGS="$xorg_testset_save_CFLAGS"
16672fi
16673
16674if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16675	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16676		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16677	fi
16678	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16679	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16680printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16681if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16682then :
16683  printf %s "(cached) " >&6
16684else $as_nop
16685  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16686/* end confdefs.h.  */
16687int i;
16688_ACEOF
16689if ac_fn_c_try_compile "$LINENO"
16690then :
16691  xorg_cv_cc_flag_unused_command_line_argument=yes
16692else $as_nop
16693  xorg_cv_cc_flag_unused_command_line_argument=no
16694fi
16695rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16696fi
16697{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16698printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16699	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16700	CFLAGS="$xorg_testset_save_CFLAGS"
16701fi
16702
16703found="no"
16704
16705	if test $found = "no" ; then
16706		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16707			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16708		fi
16709
16710		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16711			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16712		fi
16713
16714		CFLAGS="$CFLAGS -Werror=address"
16715
16716		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
16717printf %s "checking if $CC supports -Werror=address... " >&6; }
16718		cacheid=xorg_cv_cc_flag__Werror_address
16719		if eval test \${$cacheid+y}
16720then :
16721  printf %s "(cached) " >&6
16722else $as_nop
16723  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16724/* end confdefs.h.  */
16725int i;
16726int
16727main (void)
16728{
16729
16730  ;
16731  return 0;
16732}
16733_ACEOF
16734if ac_fn_c_try_link "$LINENO"
16735then :
16736  eval $cacheid=yes
16737else $as_nop
16738  eval $cacheid=no
16739fi
16740rm -f core conftest.err conftest.$ac_objext conftest.beam \
16741    conftest$ac_exeext conftest.$ac_ext
16742fi
16743
16744
16745		CFLAGS="$xorg_testset_save_CFLAGS"
16746
16747		eval supported=\$$cacheid
16748		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16749printf "%s\n" "$supported" >&6; }
16750		if test "$supported" = "yes" ; then
16751			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
16752			found="yes"
16753		fi
16754	fi
16755
16756
16757
16758
16759
16760
16761
16762
16763
16764
16765
16766
16767
16768
16769
16770xorg_testset_save_CFLAGS="$CFLAGS"
16771
16772if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16773	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16774	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16775printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16776if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16777then :
16778  printf %s "(cached) " >&6
16779else $as_nop
16780  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16781/* end confdefs.h.  */
16782int i;
16783_ACEOF
16784if ac_fn_c_try_compile "$LINENO"
16785then :
16786  xorg_cv_cc_flag_unknown_warning_option=yes
16787else $as_nop
16788  xorg_cv_cc_flag_unknown_warning_option=no
16789fi
16790rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16791fi
16792{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16793printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16794	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16795	CFLAGS="$xorg_testset_save_CFLAGS"
16796fi
16797
16798if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16799	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16800		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16801	fi
16802	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16803	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16804printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16805if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16806then :
16807  printf %s "(cached) " >&6
16808else $as_nop
16809  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16810/* end confdefs.h.  */
16811int i;
16812_ACEOF
16813if ac_fn_c_try_compile "$LINENO"
16814then :
16815  xorg_cv_cc_flag_unused_command_line_argument=yes
16816else $as_nop
16817  xorg_cv_cc_flag_unused_command_line_argument=no
16818fi
16819rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16820fi
16821{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16822printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16823	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16824	CFLAGS="$xorg_testset_save_CFLAGS"
16825fi
16826
16827found="no"
16828
16829	if test $found = "no" ; then
16830		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16831			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16832		fi
16833
16834		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16835			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16836		fi
16837
16838		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
16839
16840		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
16841printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
16842		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
16843		if eval test \${$cacheid+y}
16844then :
16845  printf %s "(cached) " >&6
16846else $as_nop
16847  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16848/* end confdefs.h.  */
16849int i;
16850int
16851main (void)
16852{
16853
16854  ;
16855  return 0;
16856}
16857_ACEOF
16858if ac_fn_c_try_link "$LINENO"
16859then :
16860  eval $cacheid=yes
16861else $as_nop
16862  eval $cacheid=no
16863fi
16864rm -f core conftest.err conftest.$ac_objext conftest.beam \
16865    conftest$ac_exeext conftest.$ac_ext
16866fi
16867
16868
16869		CFLAGS="$xorg_testset_save_CFLAGS"
16870
16871		eval supported=\$$cacheid
16872		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16873printf "%s\n" "$supported" >&6; }
16874		if test "$supported" = "yes" ; then
16875			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
16876			found="yes"
16877		fi
16878	fi
16879
16880	if test $found = "no" ; then
16881		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16882			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16883		fi
16884
16885		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16886			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16887		fi
16888
16889		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16890
16891		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
16892printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
16893		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
16894		if eval test \${$cacheid+y}
16895then :
16896  printf %s "(cached) " >&6
16897else $as_nop
16898  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16899/* end confdefs.h.  */
16900int i;
16901int
16902main (void)
16903{
16904
16905  ;
16906  return 0;
16907}
16908_ACEOF
16909if ac_fn_c_try_link "$LINENO"
16910then :
16911  eval $cacheid=yes
16912else $as_nop
16913  eval $cacheid=no
16914fi
16915rm -f core conftest.err conftest.$ac_objext conftest.beam \
16916    conftest$ac_exeext conftest.$ac_ext
16917fi
16918
16919
16920		CFLAGS="$xorg_testset_save_CFLAGS"
16921
16922		eval supported=\$$cacheid
16923		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16924printf "%s\n" "$supported" >&6; }
16925		if test "$supported" = "yes" ; then
16926			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16927			found="yes"
16928		fi
16929	fi
16930
16931
16932
16933
16934
16935
16936
16937
16938
16939
16940
16941
16942
16943
16944
16945xorg_testset_save_CFLAGS="$CFLAGS"
16946
16947if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16948	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16949	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16950printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16951if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16952then :
16953  printf %s "(cached) " >&6
16954else $as_nop
16955  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16956/* end confdefs.h.  */
16957int i;
16958_ACEOF
16959if ac_fn_c_try_compile "$LINENO"
16960then :
16961  xorg_cv_cc_flag_unknown_warning_option=yes
16962else $as_nop
16963  xorg_cv_cc_flag_unknown_warning_option=no
16964fi
16965rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16966fi
16967{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16968printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16969	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16970	CFLAGS="$xorg_testset_save_CFLAGS"
16971fi
16972
16973if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16974	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16975		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16976	fi
16977	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16978	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16979printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16980if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16981then :
16982  printf %s "(cached) " >&6
16983else $as_nop
16984  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16985/* end confdefs.h.  */
16986int i;
16987_ACEOF
16988if ac_fn_c_try_compile "$LINENO"
16989then :
16990  xorg_cv_cc_flag_unused_command_line_argument=yes
16991else $as_nop
16992  xorg_cv_cc_flag_unused_command_line_argument=no
16993fi
16994rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16995fi
16996{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16997printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16998	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16999	CFLAGS="$xorg_testset_save_CFLAGS"
17000fi
17001
17002found="no"
17003
17004	if test $found = "no" ; then
17005		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17006			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17007		fi
17008
17009		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17010			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17011		fi
17012
17013		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
17014
17015		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
17016printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
17017		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
17018		if eval test \${$cacheid+y}
17019then :
17020  printf %s "(cached) " >&6
17021else $as_nop
17022  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17023/* end confdefs.h.  */
17024int i;
17025int
17026main (void)
17027{
17028
17029  ;
17030  return 0;
17031}
17032_ACEOF
17033if ac_fn_c_try_link "$LINENO"
17034then :
17035  eval $cacheid=yes
17036else $as_nop
17037  eval $cacheid=no
17038fi
17039rm -f core conftest.err conftest.$ac_objext conftest.beam \
17040    conftest$ac_exeext conftest.$ac_ext
17041fi
17042
17043
17044		CFLAGS="$xorg_testset_save_CFLAGS"
17045
17046		eval supported=\$$cacheid
17047		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17048printf "%s\n" "$supported" >&6; }
17049		if test "$supported" = "yes" ; then
17050			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
17051			found="yes"
17052		fi
17053	fi
17054
17055 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
17056else
17057{ 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
17058printf "%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;}
17059
17060
17061
17062
17063
17064
17065
17066
17067
17068
17069
17070
17071
17072xorg_testset_save_CFLAGS="$CFLAGS"
17073
17074if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17075	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17076	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17077printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17078if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17079then :
17080  printf %s "(cached) " >&6
17081else $as_nop
17082  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17083/* end confdefs.h.  */
17084int i;
17085_ACEOF
17086if ac_fn_c_try_compile "$LINENO"
17087then :
17088  xorg_cv_cc_flag_unknown_warning_option=yes
17089else $as_nop
17090  xorg_cv_cc_flag_unknown_warning_option=no
17091fi
17092rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17093fi
17094{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17095printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17096	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17097	CFLAGS="$xorg_testset_save_CFLAGS"
17098fi
17099
17100if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17101	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17102		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17103	fi
17104	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17105	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17106printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17107if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17108then :
17109  printf %s "(cached) " >&6
17110else $as_nop
17111  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17112/* end confdefs.h.  */
17113int i;
17114_ACEOF
17115if ac_fn_c_try_compile "$LINENO"
17116then :
17117  xorg_cv_cc_flag_unused_command_line_argument=yes
17118else $as_nop
17119  xorg_cv_cc_flag_unused_command_line_argument=no
17120fi
17121rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17122fi
17123{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17124printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17125	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17126	CFLAGS="$xorg_testset_save_CFLAGS"
17127fi
17128
17129found="no"
17130
17131	if test $found = "no" ; then
17132		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17133			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17134		fi
17135
17136		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17137			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17138		fi
17139
17140		CFLAGS="$CFLAGS -Wimplicit"
17141
17142		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
17143printf %s "checking if $CC supports -Wimplicit... " >&6; }
17144		cacheid=xorg_cv_cc_flag__Wimplicit
17145		if eval test \${$cacheid+y}
17146then :
17147  printf %s "(cached) " >&6
17148else $as_nop
17149  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17150/* end confdefs.h.  */
17151int i;
17152int
17153main (void)
17154{
17155
17156  ;
17157  return 0;
17158}
17159_ACEOF
17160if ac_fn_c_try_link "$LINENO"
17161then :
17162  eval $cacheid=yes
17163else $as_nop
17164  eval $cacheid=no
17165fi
17166rm -f core conftest.err conftest.$ac_objext conftest.beam \
17167    conftest$ac_exeext conftest.$ac_ext
17168fi
17169
17170
17171		CFLAGS="$xorg_testset_save_CFLAGS"
17172
17173		eval supported=\$$cacheid
17174		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17175printf "%s\n" "$supported" >&6; }
17176		if test "$supported" = "yes" ; then
17177			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
17178			found="yes"
17179		fi
17180	fi
17181
17182
17183
17184
17185
17186
17187
17188
17189
17190
17191
17192
17193
17194
17195
17196xorg_testset_save_CFLAGS="$CFLAGS"
17197
17198if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17199	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17200	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17201printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17202if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17203then :
17204  printf %s "(cached) " >&6
17205else $as_nop
17206  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17207/* end confdefs.h.  */
17208int i;
17209_ACEOF
17210if ac_fn_c_try_compile "$LINENO"
17211then :
17212  xorg_cv_cc_flag_unknown_warning_option=yes
17213else $as_nop
17214  xorg_cv_cc_flag_unknown_warning_option=no
17215fi
17216rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17217fi
17218{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17219printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17220	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17221	CFLAGS="$xorg_testset_save_CFLAGS"
17222fi
17223
17224if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17225	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17226		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17227	fi
17228	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17229	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17230printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17231if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17232then :
17233  printf %s "(cached) " >&6
17234else $as_nop
17235  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17236/* end confdefs.h.  */
17237int i;
17238_ACEOF
17239if ac_fn_c_try_compile "$LINENO"
17240then :
17241  xorg_cv_cc_flag_unused_command_line_argument=yes
17242else $as_nop
17243  xorg_cv_cc_flag_unused_command_line_argument=no
17244fi
17245rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17246fi
17247{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17248printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17249	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17250	CFLAGS="$xorg_testset_save_CFLAGS"
17251fi
17252
17253found="no"
17254
17255	if test $found = "no" ; then
17256		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17257			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17258		fi
17259
17260		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17261			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17262		fi
17263
17264		CFLAGS="$CFLAGS -Wnonnull"
17265
17266		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
17267printf %s "checking if $CC supports -Wnonnull... " >&6; }
17268		cacheid=xorg_cv_cc_flag__Wnonnull
17269		if eval test \${$cacheid+y}
17270then :
17271  printf %s "(cached) " >&6
17272else $as_nop
17273  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17274/* end confdefs.h.  */
17275int i;
17276int
17277main (void)
17278{
17279
17280  ;
17281  return 0;
17282}
17283_ACEOF
17284if ac_fn_c_try_link "$LINENO"
17285then :
17286  eval $cacheid=yes
17287else $as_nop
17288  eval $cacheid=no
17289fi
17290rm -f core conftest.err conftest.$ac_objext conftest.beam \
17291    conftest$ac_exeext conftest.$ac_ext
17292fi
17293
17294
17295		CFLAGS="$xorg_testset_save_CFLAGS"
17296
17297		eval supported=\$$cacheid
17298		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17299printf "%s\n" "$supported" >&6; }
17300		if test "$supported" = "yes" ; then
17301			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
17302			found="yes"
17303		fi
17304	fi
17305
17306
17307
17308
17309
17310
17311
17312
17313
17314
17315
17316
17317
17318
17319
17320xorg_testset_save_CFLAGS="$CFLAGS"
17321
17322if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17323	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17324	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17325printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17326if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17327then :
17328  printf %s "(cached) " >&6
17329else $as_nop
17330  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17331/* end confdefs.h.  */
17332int i;
17333_ACEOF
17334if ac_fn_c_try_compile "$LINENO"
17335then :
17336  xorg_cv_cc_flag_unknown_warning_option=yes
17337else $as_nop
17338  xorg_cv_cc_flag_unknown_warning_option=no
17339fi
17340rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17341fi
17342{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17343printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17344	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17345	CFLAGS="$xorg_testset_save_CFLAGS"
17346fi
17347
17348if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17349	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17350		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17351	fi
17352	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17353	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17354printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17355if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17356then :
17357  printf %s "(cached) " >&6
17358else $as_nop
17359  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17360/* end confdefs.h.  */
17361int i;
17362_ACEOF
17363if ac_fn_c_try_compile "$LINENO"
17364then :
17365  xorg_cv_cc_flag_unused_command_line_argument=yes
17366else $as_nop
17367  xorg_cv_cc_flag_unused_command_line_argument=no
17368fi
17369rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17370fi
17371{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17372printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17373	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17374	CFLAGS="$xorg_testset_save_CFLAGS"
17375fi
17376
17377found="no"
17378
17379	if test $found = "no" ; then
17380		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17381			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17382		fi
17383
17384		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17385			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17386		fi
17387
17388		CFLAGS="$CFLAGS -Winit-self"
17389
17390		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
17391printf %s "checking if $CC supports -Winit-self... " >&6; }
17392		cacheid=xorg_cv_cc_flag__Winit_self
17393		if eval test \${$cacheid+y}
17394then :
17395  printf %s "(cached) " >&6
17396else $as_nop
17397  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17398/* end confdefs.h.  */
17399int i;
17400int
17401main (void)
17402{
17403
17404  ;
17405  return 0;
17406}
17407_ACEOF
17408if ac_fn_c_try_link "$LINENO"
17409then :
17410  eval $cacheid=yes
17411else $as_nop
17412  eval $cacheid=no
17413fi
17414rm -f core conftest.err conftest.$ac_objext conftest.beam \
17415    conftest$ac_exeext conftest.$ac_ext
17416fi
17417
17418
17419		CFLAGS="$xorg_testset_save_CFLAGS"
17420
17421		eval supported=\$$cacheid
17422		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17423printf "%s\n" "$supported" >&6; }
17424		if test "$supported" = "yes" ; then
17425			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
17426			found="yes"
17427		fi
17428	fi
17429
17430
17431
17432
17433
17434
17435
17436
17437
17438
17439
17440
17441
17442
17443
17444xorg_testset_save_CFLAGS="$CFLAGS"
17445
17446if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17447	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17448	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17449printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17450if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17451then :
17452  printf %s "(cached) " >&6
17453else $as_nop
17454  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17455/* end confdefs.h.  */
17456int i;
17457_ACEOF
17458if ac_fn_c_try_compile "$LINENO"
17459then :
17460  xorg_cv_cc_flag_unknown_warning_option=yes
17461else $as_nop
17462  xorg_cv_cc_flag_unknown_warning_option=no
17463fi
17464rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17465fi
17466{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17467printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17468	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17469	CFLAGS="$xorg_testset_save_CFLAGS"
17470fi
17471
17472if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17473	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17474		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17475	fi
17476	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17477	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17478printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17479if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17480then :
17481  printf %s "(cached) " >&6
17482else $as_nop
17483  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17484/* end confdefs.h.  */
17485int i;
17486_ACEOF
17487if ac_fn_c_try_compile "$LINENO"
17488then :
17489  xorg_cv_cc_flag_unused_command_line_argument=yes
17490else $as_nop
17491  xorg_cv_cc_flag_unused_command_line_argument=no
17492fi
17493rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17494fi
17495{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17496printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17497	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17498	CFLAGS="$xorg_testset_save_CFLAGS"
17499fi
17500
17501found="no"
17502
17503	if test $found = "no" ; then
17504		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17505			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17506		fi
17507
17508		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17509			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17510		fi
17511
17512		CFLAGS="$CFLAGS -Wmain"
17513
17514		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
17515printf %s "checking if $CC supports -Wmain... " >&6; }
17516		cacheid=xorg_cv_cc_flag__Wmain
17517		if eval test \${$cacheid+y}
17518then :
17519  printf %s "(cached) " >&6
17520else $as_nop
17521  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17522/* end confdefs.h.  */
17523int i;
17524int
17525main (void)
17526{
17527
17528  ;
17529  return 0;
17530}
17531_ACEOF
17532if ac_fn_c_try_link "$LINENO"
17533then :
17534  eval $cacheid=yes
17535else $as_nop
17536  eval $cacheid=no
17537fi
17538rm -f core conftest.err conftest.$ac_objext conftest.beam \
17539    conftest$ac_exeext conftest.$ac_ext
17540fi
17541
17542
17543		CFLAGS="$xorg_testset_save_CFLAGS"
17544
17545		eval supported=\$$cacheid
17546		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17547printf "%s\n" "$supported" >&6; }
17548		if test "$supported" = "yes" ; then
17549			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
17550			found="yes"
17551		fi
17552	fi
17553
17554
17555
17556
17557
17558
17559
17560
17561
17562
17563
17564
17565
17566
17567
17568xorg_testset_save_CFLAGS="$CFLAGS"
17569
17570if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17571	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17572	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17573printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17574if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17575then :
17576  printf %s "(cached) " >&6
17577else $as_nop
17578  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17579/* end confdefs.h.  */
17580int i;
17581_ACEOF
17582if ac_fn_c_try_compile "$LINENO"
17583then :
17584  xorg_cv_cc_flag_unknown_warning_option=yes
17585else $as_nop
17586  xorg_cv_cc_flag_unknown_warning_option=no
17587fi
17588rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17589fi
17590{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17591printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17592	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17593	CFLAGS="$xorg_testset_save_CFLAGS"
17594fi
17595
17596if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17597	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17598		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17599	fi
17600	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17601	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17602printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17603if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17604then :
17605  printf %s "(cached) " >&6
17606else $as_nop
17607  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17608/* end confdefs.h.  */
17609int i;
17610_ACEOF
17611if ac_fn_c_try_compile "$LINENO"
17612then :
17613  xorg_cv_cc_flag_unused_command_line_argument=yes
17614else $as_nop
17615  xorg_cv_cc_flag_unused_command_line_argument=no
17616fi
17617rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17618fi
17619{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17620printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17621	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17622	CFLAGS="$xorg_testset_save_CFLAGS"
17623fi
17624
17625found="no"
17626
17627	if test $found = "no" ; then
17628		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17629			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17630		fi
17631
17632		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17633			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17634		fi
17635
17636		CFLAGS="$CFLAGS -Wmissing-braces"
17637
17638		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
17639printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
17640		cacheid=xorg_cv_cc_flag__Wmissing_braces
17641		if eval test \${$cacheid+y}
17642then :
17643  printf %s "(cached) " >&6
17644else $as_nop
17645  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17646/* end confdefs.h.  */
17647int i;
17648int
17649main (void)
17650{
17651
17652  ;
17653  return 0;
17654}
17655_ACEOF
17656if ac_fn_c_try_link "$LINENO"
17657then :
17658  eval $cacheid=yes
17659else $as_nop
17660  eval $cacheid=no
17661fi
17662rm -f core conftest.err conftest.$ac_objext conftest.beam \
17663    conftest$ac_exeext conftest.$ac_ext
17664fi
17665
17666
17667		CFLAGS="$xorg_testset_save_CFLAGS"
17668
17669		eval supported=\$$cacheid
17670		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17671printf "%s\n" "$supported" >&6; }
17672		if test "$supported" = "yes" ; then
17673			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
17674			found="yes"
17675		fi
17676	fi
17677
17678
17679
17680
17681
17682
17683
17684
17685
17686
17687
17688
17689
17690
17691
17692xorg_testset_save_CFLAGS="$CFLAGS"
17693
17694if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17695	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17696	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17697printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17698if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17699then :
17700  printf %s "(cached) " >&6
17701else $as_nop
17702  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17703/* end confdefs.h.  */
17704int i;
17705_ACEOF
17706if ac_fn_c_try_compile "$LINENO"
17707then :
17708  xorg_cv_cc_flag_unknown_warning_option=yes
17709else $as_nop
17710  xorg_cv_cc_flag_unknown_warning_option=no
17711fi
17712rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17713fi
17714{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17715printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17716	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17717	CFLAGS="$xorg_testset_save_CFLAGS"
17718fi
17719
17720if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17721	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17722		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17723	fi
17724	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17725	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17726printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17727if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17728then :
17729  printf %s "(cached) " >&6
17730else $as_nop
17731  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17732/* end confdefs.h.  */
17733int i;
17734_ACEOF
17735if ac_fn_c_try_compile "$LINENO"
17736then :
17737  xorg_cv_cc_flag_unused_command_line_argument=yes
17738else $as_nop
17739  xorg_cv_cc_flag_unused_command_line_argument=no
17740fi
17741rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17742fi
17743{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17744printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17745	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17746	CFLAGS="$xorg_testset_save_CFLAGS"
17747fi
17748
17749found="no"
17750
17751	if test $found = "no" ; then
17752		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17753			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17754		fi
17755
17756		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17757			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17758		fi
17759
17760		CFLAGS="$CFLAGS -Wsequence-point"
17761
17762		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
17763printf %s "checking if $CC supports -Wsequence-point... " >&6; }
17764		cacheid=xorg_cv_cc_flag__Wsequence_point
17765		if eval test \${$cacheid+y}
17766then :
17767  printf %s "(cached) " >&6
17768else $as_nop
17769  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17770/* end confdefs.h.  */
17771int i;
17772int
17773main (void)
17774{
17775
17776  ;
17777  return 0;
17778}
17779_ACEOF
17780if ac_fn_c_try_link "$LINENO"
17781then :
17782  eval $cacheid=yes
17783else $as_nop
17784  eval $cacheid=no
17785fi
17786rm -f core conftest.err conftest.$ac_objext conftest.beam \
17787    conftest$ac_exeext conftest.$ac_ext
17788fi
17789
17790
17791		CFLAGS="$xorg_testset_save_CFLAGS"
17792
17793		eval supported=\$$cacheid
17794		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17795printf "%s\n" "$supported" >&6; }
17796		if test "$supported" = "yes" ; then
17797			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
17798			found="yes"
17799		fi
17800	fi
17801
17802
17803
17804
17805
17806
17807
17808
17809
17810
17811
17812
17813
17814
17815
17816xorg_testset_save_CFLAGS="$CFLAGS"
17817
17818if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17819	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17820	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17821printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17822if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17823then :
17824  printf %s "(cached) " >&6
17825else $as_nop
17826  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17827/* end confdefs.h.  */
17828int i;
17829_ACEOF
17830if ac_fn_c_try_compile "$LINENO"
17831then :
17832  xorg_cv_cc_flag_unknown_warning_option=yes
17833else $as_nop
17834  xorg_cv_cc_flag_unknown_warning_option=no
17835fi
17836rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17837fi
17838{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17839printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17840	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17841	CFLAGS="$xorg_testset_save_CFLAGS"
17842fi
17843
17844if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17845	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17846		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17847	fi
17848	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17849	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17850printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17851if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17852then :
17853  printf %s "(cached) " >&6
17854else $as_nop
17855  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17856/* end confdefs.h.  */
17857int i;
17858_ACEOF
17859if ac_fn_c_try_compile "$LINENO"
17860then :
17861  xorg_cv_cc_flag_unused_command_line_argument=yes
17862else $as_nop
17863  xorg_cv_cc_flag_unused_command_line_argument=no
17864fi
17865rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17866fi
17867{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17868printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17869	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17870	CFLAGS="$xorg_testset_save_CFLAGS"
17871fi
17872
17873found="no"
17874
17875	if test $found = "no" ; then
17876		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17877			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17878		fi
17879
17880		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17881			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17882		fi
17883
17884		CFLAGS="$CFLAGS -Wreturn-type"
17885
17886		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
17887printf %s "checking if $CC supports -Wreturn-type... " >&6; }
17888		cacheid=xorg_cv_cc_flag__Wreturn_type
17889		if eval test \${$cacheid+y}
17890then :
17891  printf %s "(cached) " >&6
17892else $as_nop
17893  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17894/* end confdefs.h.  */
17895int i;
17896int
17897main (void)
17898{
17899
17900  ;
17901  return 0;
17902}
17903_ACEOF
17904if ac_fn_c_try_link "$LINENO"
17905then :
17906  eval $cacheid=yes
17907else $as_nop
17908  eval $cacheid=no
17909fi
17910rm -f core conftest.err conftest.$ac_objext conftest.beam \
17911    conftest$ac_exeext conftest.$ac_ext
17912fi
17913
17914
17915		CFLAGS="$xorg_testset_save_CFLAGS"
17916
17917		eval supported=\$$cacheid
17918		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17919printf "%s\n" "$supported" >&6; }
17920		if test "$supported" = "yes" ; then
17921			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
17922			found="yes"
17923		fi
17924	fi
17925
17926
17927
17928
17929
17930
17931
17932
17933
17934
17935
17936
17937
17938
17939
17940xorg_testset_save_CFLAGS="$CFLAGS"
17941
17942if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17943	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17944	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17945printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17946if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17947then :
17948  printf %s "(cached) " >&6
17949else $as_nop
17950  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17951/* end confdefs.h.  */
17952int i;
17953_ACEOF
17954if ac_fn_c_try_compile "$LINENO"
17955then :
17956  xorg_cv_cc_flag_unknown_warning_option=yes
17957else $as_nop
17958  xorg_cv_cc_flag_unknown_warning_option=no
17959fi
17960rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17961fi
17962{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17963printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17964	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17965	CFLAGS="$xorg_testset_save_CFLAGS"
17966fi
17967
17968if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17969	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17970		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17971	fi
17972	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17973	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17974printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17975if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17976then :
17977  printf %s "(cached) " >&6
17978else $as_nop
17979  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17980/* end confdefs.h.  */
17981int i;
17982_ACEOF
17983if ac_fn_c_try_compile "$LINENO"
17984then :
17985  xorg_cv_cc_flag_unused_command_line_argument=yes
17986else $as_nop
17987  xorg_cv_cc_flag_unused_command_line_argument=no
17988fi
17989rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17990fi
17991{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17992printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17993	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17994	CFLAGS="$xorg_testset_save_CFLAGS"
17995fi
17996
17997found="no"
17998
17999	if test $found = "no" ; then
18000		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18001			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18002		fi
18003
18004		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18005			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18006		fi
18007
18008		CFLAGS="$CFLAGS -Wtrigraphs"
18009
18010		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
18011printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
18012		cacheid=xorg_cv_cc_flag__Wtrigraphs
18013		if eval test \${$cacheid+y}
18014then :
18015  printf %s "(cached) " >&6
18016else $as_nop
18017  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18018/* end confdefs.h.  */
18019int i;
18020int
18021main (void)
18022{
18023
18024  ;
18025  return 0;
18026}
18027_ACEOF
18028if ac_fn_c_try_link "$LINENO"
18029then :
18030  eval $cacheid=yes
18031else $as_nop
18032  eval $cacheid=no
18033fi
18034rm -f core conftest.err conftest.$ac_objext conftest.beam \
18035    conftest$ac_exeext conftest.$ac_ext
18036fi
18037
18038
18039		CFLAGS="$xorg_testset_save_CFLAGS"
18040
18041		eval supported=\$$cacheid
18042		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18043printf "%s\n" "$supported" >&6; }
18044		if test "$supported" = "yes" ; then
18045			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
18046			found="yes"
18047		fi
18048	fi
18049
18050
18051
18052
18053
18054
18055
18056
18057
18058
18059
18060
18061
18062
18063
18064xorg_testset_save_CFLAGS="$CFLAGS"
18065
18066if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18067	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18068	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18069printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18070if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18071then :
18072  printf %s "(cached) " >&6
18073else $as_nop
18074  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18075/* end confdefs.h.  */
18076int i;
18077_ACEOF
18078if ac_fn_c_try_compile "$LINENO"
18079then :
18080  xorg_cv_cc_flag_unknown_warning_option=yes
18081else $as_nop
18082  xorg_cv_cc_flag_unknown_warning_option=no
18083fi
18084rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18085fi
18086{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18087printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18088	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18089	CFLAGS="$xorg_testset_save_CFLAGS"
18090fi
18091
18092if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18093	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18094		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18095	fi
18096	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18097	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18098printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18099if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18100then :
18101  printf %s "(cached) " >&6
18102else $as_nop
18103  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18104/* end confdefs.h.  */
18105int i;
18106_ACEOF
18107if ac_fn_c_try_compile "$LINENO"
18108then :
18109  xorg_cv_cc_flag_unused_command_line_argument=yes
18110else $as_nop
18111  xorg_cv_cc_flag_unused_command_line_argument=no
18112fi
18113rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18114fi
18115{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18116printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18117	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18118	CFLAGS="$xorg_testset_save_CFLAGS"
18119fi
18120
18121found="no"
18122
18123	if test $found = "no" ; then
18124		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18125			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18126		fi
18127
18128		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18129			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18130		fi
18131
18132		CFLAGS="$CFLAGS -Warray-bounds"
18133
18134		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
18135printf %s "checking if $CC supports -Warray-bounds... " >&6; }
18136		cacheid=xorg_cv_cc_flag__Warray_bounds
18137		if eval test \${$cacheid+y}
18138then :
18139  printf %s "(cached) " >&6
18140else $as_nop
18141  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18142/* end confdefs.h.  */
18143int i;
18144int
18145main (void)
18146{
18147
18148  ;
18149  return 0;
18150}
18151_ACEOF
18152if ac_fn_c_try_link "$LINENO"
18153then :
18154  eval $cacheid=yes
18155else $as_nop
18156  eval $cacheid=no
18157fi
18158rm -f core conftest.err conftest.$ac_objext conftest.beam \
18159    conftest$ac_exeext conftest.$ac_ext
18160fi
18161
18162
18163		CFLAGS="$xorg_testset_save_CFLAGS"
18164
18165		eval supported=\$$cacheid
18166		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18167printf "%s\n" "$supported" >&6; }
18168		if test "$supported" = "yes" ; then
18169			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
18170			found="yes"
18171		fi
18172	fi
18173
18174
18175
18176
18177
18178
18179
18180
18181
18182
18183
18184
18185
18186
18187
18188xorg_testset_save_CFLAGS="$CFLAGS"
18189
18190if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18191	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18192	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18193printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18194if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18195then :
18196  printf %s "(cached) " >&6
18197else $as_nop
18198  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18199/* end confdefs.h.  */
18200int i;
18201_ACEOF
18202if ac_fn_c_try_compile "$LINENO"
18203then :
18204  xorg_cv_cc_flag_unknown_warning_option=yes
18205else $as_nop
18206  xorg_cv_cc_flag_unknown_warning_option=no
18207fi
18208rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18209fi
18210{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18211printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18212	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18213	CFLAGS="$xorg_testset_save_CFLAGS"
18214fi
18215
18216if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18217	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18218		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18219	fi
18220	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18221	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18222printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18223if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18224then :
18225  printf %s "(cached) " >&6
18226else $as_nop
18227  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18228/* end confdefs.h.  */
18229int i;
18230_ACEOF
18231if ac_fn_c_try_compile "$LINENO"
18232then :
18233  xorg_cv_cc_flag_unused_command_line_argument=yes
18234else $as_nop
18235  xorg_cv_cc_flag_unused_command_line_argument=no
18236fi
18237rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18238fi
18239{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18240printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18241	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18242	CFLAGS="$xorg_testset_save_CFLAGS"
18243fi
18244
18245found="no"
18246
18247	if test $found = "no" ; then
18248		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18249			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18250		fi
18251
18252		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18253			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18254		fi
18255
18256		CFLAGS="$CFLAGS -Wwrite-strings"
18257
18258		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
18259printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
18260		cacheid=xorg_cv_cc_flag__Wwrite_strings
18261		if eval test \${$cacheid+y}
18262then :
18263  printf %s "(cached) " >&6
18264else $as_nop
18265  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18266/* end confdefs.h.  */
18267int i;
18268int
18269main (void)
18270{
18271
18272  ;
18273  return 0;
18274}
18275_ACEOF
18276if ac_fn_c_try_link "$LINENO"
18277then :
18278  eval $cacheid=yes
18279else $as_nop
18280  eval $cacheid=no
18281fi
18282rm -f core conftest.err conftest.$ac_objext conftest.beam \
18283    conftest$ac_exeext conftest.$ac_ext
18284fi
18285
18286
18287		CFLAGS="$xorg_testset_save_CFLAGS"
18288
18289		eval supported=\$$cacheid
18290		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18291printf "%s\n" "$supported" >&6; }
18292		if test "$supported" = "yes" ; then
18293			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
18294			found="yes"
18295		fi
18296	fi
18297
18298
18299
18300
18301
18302
18303
18304
18305
18306
18307
18308
18309
18310
18311
18312xorg_testset_save_CFLAGS="$CFLAGS"
18313
18314if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18315	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18316	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18317printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18318if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18319then :
18320  printf %s "(cached) " >&6
18321else $as_nop
18322  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18323/* end confdefs.h.  */
18324int i;
18325_ACEOF
18326if ac_fn_c_try_compile "$LINENO"
18327then :
18328  xorg_cv_cc_flag_unknown_warning_option=yes
18329else $as_nop
18330  xorg_cv_cc_flag_unknown_warning_option=no
18331fi
18332rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18333fi
18334{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18335printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18336	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18337	CFLAGS="$xorg_testset_save_CFLAGS"
18338fi
18339
18340if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18341	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18342		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18343	fi
18344	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18345	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18346printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18347if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18348then :
18349  printf %s "(cached) " >&6
18350else $as_nop
18351  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18352/* end confdefs.h.  */
18353int i;
18354_ACEOF
18355if ac_fn_c_try_compile "$LINENO"
18356then :
18357  xorg_cv_cc_flag_unused_command_line_argument=yes
18358else $as_nop
18359  xorg_cv_cc_flag_unused_command_line_argument=no
18360fi
18361rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18362fi
18363{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18364printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18365	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18366	CFLAGS="$xorg_testset_save_CFLAGS"
18367fi
18368
18369found="no"
18370
18371	if test $found = "no" ; then
18372		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18373			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18374		fi
18375
18376		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18377			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18378		fi
18379
18380		CFLAGS="$CFLAGS -Waddress"
18381
18382		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
18383printf %s "checking if $CC supports -Waddress... " >&6; }
18384		cacheid=xorg_cv_cc_flag__Waddress
18385		if eval test \${$cacheid+y}
18386then :
18387  printf %s "(cached) " >&6
18388else $as_nop
18389  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18390/* end confdefs.h.  */
18391int i;
18392int
18393main (void)
18394{
18395
18396  ;
18397  return 0;
18398}
18399_ACEOF
18400if ac_fn_c_try_link "$LINENO"
18401then :
18402  eval $cacheid=yes
18403else $as_nop
18404  eval $cacheid=no
18405fi
18406rm -f core conftest.err conftest.$ac_objext conftest.beam \
18407    conftest$ac_exeext conftest.$ac_ext
18408fi
18409
18410
18411		CFLAGS="$xorg_testset_save_CFLAGS"
18412
18413		eval supported=\$$cacheid
18414		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18415printf "%s\n" "$supported" >&6; }
18416		if test "$supported" = "yes" ; then
18417			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
18418			found="yes"
18419		fi
18420	fi
18421
18422
18423
18424
18425
18426
18427
18428
18429
18430
18431
18432
18433
18434
18435
18436xorg_testset_save_CFLAGS="$CFLAGS"
18437
18438if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18439	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18440	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18441printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18442if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18443then :
18444  printf %s "(cached) " >&6
18445else $as_nop
18446  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18447/* end confdefs.h.  */
18448int i;
18449_ACEOF
18450if ac_fn_c_try_compile "$LINENO"
18451then :
18452  xorg_cv_cc_flag_unknown_warning_option=yes
18453else $as_nop
18454  xorg_cv_cc_flag_unknown_warning_option=no
18455fi
18456rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18457fi
18458{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18459printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18460	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18461	CFLAGS="$xorg_testset_save_CFLAGS"
18462fi
18463
18464if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18465	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18466		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18467	fi
18468	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18469	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18470printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18471if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18472then :
18473  printf %s "(cached) " >&6
18474else $as_nop
18475  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18476/* end confdefs.h.  */
18477int i;
18478_ACEOF
18479if ac_fn_c_try_compile "$LINENO"
18480then :
18481  xorg_cv_cc_flag_unused_command_line_argument=yes
18482else $as_nop
18483  xorg_cv_cc_flag_unused_command_line_argument=no
18484fi
18485rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18486fi
18487{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18488printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18489	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18490	CFLAGS="$xorg_testset_save_CFLAGS"
18491fi
18492
18493found="no"
18494
18495	if test $found = "no" ; then
18496		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18497			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18498		fi
18499
18500		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18501			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18502		fi
18503
18504		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
18505
18506		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
18507printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
18508		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
18509		if eval test \${$cacheid+y}
18510then :
18511  printf %s "(cached) " >&6
18512else $as_nop
18513  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18514/* end confdefs.h.  */
18515int i;
18516int
18517main (void)
18518{
18519
18520  ;
18521  return 0;
18522}
18523_ACEOF
18524if ac_fn_c_try_link "$LINENO"
18525then :
18526  eval $cacheid=yes
18527else $as_nop
18528  eval $cacheid=no
18529fi
18530rm -f core conftest.err conftest.$ac_objext conftest.beam \
18531    conftest$ac_exeext conftest.$ac_ext
18532fi
18533
18534
18535		CFLAGS="$xorg_testset_save_CFLAGS"
18536
18537		eval supported=\$$cacheid
18538		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18539printf "%s\n" "$supported" >&6; }
18540		if test "$supported" = "yes" ; then
18541			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
18542			found="yes"
18543		fi
18544	fi
18545
18546
18547
18548
18549
18550
18551
18552
18553
18554
18555
18556
18557
18558
18559
18560xorg_testset_save_CFLAGS="$CFLAGS"
18561
18562if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18563	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18564	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18565printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18566if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18567then :
18568  printf %s "(cached) " >&6
18569else $as_nop
18570  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18571/* end confdefs.h.  */
18572int i;
18573_ACEOF
18574if ac_fn_c_try_compile "$LINENO"
18575then :
18576  xorg_cv_cc_flag_unknown_warning_option=yes
18577else $as_nop
18578  xorg_cv_cc_flag_unknown_warning_option=no
18579fi
18580rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18581fi
18582{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18583printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18584	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18585	CFLAGS="$xorg_testset_save_CFLAGS"
18586fi
18587
18588if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18589	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18590		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18591	fi
18592	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18593	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18594printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18595if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18596then :
18597  printf %s "(cached) " >&6
18598else $as_nop
18599  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18600/* end confdefs.h.  */
18601int i;
18602_ACEOF
18603if ac_fn_c_try_compile "$LINENO"
18604then :
18605  xorg_cv_cc_flag_unused_command_line_argument=yes
18606else $as_nop
18607  xorg_cv_cc_flag_unused_command_line_argument=no
18608fi
18609rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18610fi
18611{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18612printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18613	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18614	CFLAGS="$xorg_testset_save_CFLAGS"
18615fi
18616
18617found="no"
18618
18619	if test $found = "no" ; then
18620		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18621			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18622		fi
18623
18624		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18625			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18626		fi
18627
18628		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
18629
18630		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
18631printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
18632		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
18633		if eval test \${$cacheid+y}
18634then :
18635  printf %s "(cached) " >&6
18636else $as_nop
18637  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18638/* end confdefs.h.  */
18639int i;
18640int
18641main (void)
18642{
18643
18644  ;
18645  return 0;
18646}
18647_ACEOF
18648if ac_fn_c_try_link "$LINENO"
18649then :
18650  eval $cacheid=yes
18651else $as_nop
18652  eval $cacheid=no
18653fi
18654rm -f core conftest.err conftest.$ac_objext conftest.beam \
18655    conftest$ac_exeext conftest.$ac_ext
18656fi
18657
18658
18659		CFLAGS="$xorg_testset_save_CFLAGS"
18660
18661		eval supported=\$$cacheid
18662		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18663printf "%s\n" "$supported" >&6; }
18664		if test "$supported" = "yes" ; then
18665			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
18666			found="yes"
18667		fi
18668	fi
18669
18670
18671fi
18672
18673
18674
18675
18676
18677
18678
18679		CWARNFLAGS="$BASE_CFLAGS"
18680		if  test "x$GCC" = xyes ; then
18681		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
18682		fi
18683
18684
18685
18686
18687
18688
18689
18690
18691# Check whether --enable-strict-compilation was given.
18692if test ${enable_strict_compilation+y}
18693then :
18694  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
18695else $as_nop
18696  STRICT_COMPILE=no
18697fi
18698
18699
18700
18701
18702
18703
18704STRICT_CFLAGS=""
18705
18706
18707
18708
18709
18710
18711
18712
18713
18714
18715
18716
18717
18718xorg_testset_save_CFLAGS="$CFLAGS"
18719
18720if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18721	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18722	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18723printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18724if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18725then :
18726  printf %s "(cached) " >&6
18727else $as_nop
18728  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18729/* end confdefs.h.  */
18730int i;
18731_ACEOF
18732if ac_fn_c_try_compile "$LINENO"
18733then :
18734  xorg_cv_cc_flag_unknown_warning_option=yes
18735else $as_nop
18736  xorg_cv_cc_flag_unknown_warning_option=no
18737fi
18738rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18739fi
18740{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18741printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18742	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18743	CFLAGS="$xorg_testset_save_CFLAGS"
18744fi
18745
18746if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18747	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18748		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18749	fi
18750	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18751	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18752printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18753if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18754then :
18755  printf %s "(cached) " >&6
18756else $as_nop
18757  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18758/* end confdefs.h.  */
18759int i;
18760_ACEOF
18761if ac_fn_c_try_compile "$LINENO"
18762then :
18763  xorg_cv_cc_flag_unused_command_line_argument=yes
18764else $as_nop
18765  xorg_cv_cc_flag_unused_command_line_argument=no
18766fi
18767rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18768fi
18769{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18770printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18771	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18772	CFLAGS="$xorg_testset_save_CFLAGS"
18773fi
18774
18775found="no"
18776
18777	if test $found = "no" ; then
18778		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18779			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18780		fi
18781
18782		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18783			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18784		fi
18785
18786		CFLAGS="$CFLAGS -pedantic"
18787
18788		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
18789printf %s "checking if $CC supports -pedantic... " >&6; }
18790		cacheid=xorg_cv_cc_flag__pedantic
18791		if eval test \${$cacheid+y}
18792then :
18793  printf %s "(cached) " >&6
18794else $as_nop
18795  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18796/* end confdefs.h.  */
18797int i;
18798int
18799main (void)
18800{
18801
18802  ;
18803  return 0;
18804}
18805_ACEOF
18806if ac_fn_c_try_link "$LINENO"
18807then :
18808  eval $cacheid=yes
18809else $as_nop
18810  eval $cacheid=no
18811fi
18812rm -f core conftest.err conftest.$ac_objext conftest.beam \
18813    conftest$ac_exeext conftest.$ac_ext
18814fi
18815
18816
18817		CFLAGS="$xorg_testset_save_CFLAGS"
18818
18819		eval supported=\$$cacheid
18820		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18821printf "%s\n" "$supported" >&6; }
18822		if test "$supported" = "yes" ; then
18823			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
18824			found="yes"
18825		fi
18826	fi
18827
18828
18829
18830
18831
18832
18833
18834
18835
18836
18837
18838
18839
18840
18841
18842xorg_testset_save_CFLAGS="$CFLAGS"
18843
18844if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18845	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18846	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18847printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18848if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18849then :
18850  printf %s "(cached) " >&6
18851else $as_nop
18852  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18853/* end confdefs.h.  */
18854int i;
18855_ACEOF
18856if ac_fn_c_try_compile "$LINENO"
18857then :
18858  xorg_cv_cc_flag_unknown_warning_option=yes
18859else $as_nop
18860  xorg_cv_cc_flag_unknown_warning_option=no
18861fi
18862rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18863fi
18864{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18865printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18866	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18867	CFLAGS="$xorg_testset_save_CFLAGS"
18868fi
18869
18870if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18871	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18872		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18873	fi
18874	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18875	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18876printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18877if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18878then :
18879  printf %s "(cached) " >&6
18880else $as_nop
18881  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18882/* end confdefs.h.  */
18883int i;
18884_ACEOF
18885if ac_fn_c_try_compile "$LINENO"
18886then :
18887  xorg_cv_cc_flag_unused_command_line_argument=yes
18888else $as_nop
18889  xorg_cv_cc_flag_unused_command_line_argument=no
18890fi
18891rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18892fi
18893{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18894printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18895	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18896	CFLAGS="$xorg_testset_save_CFLAGS"
18897fi
18898
18899found="no"
18900
18901	if test $found = "no" ; then
18902		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18903			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18904		fi
18905
18906		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18907			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18908		fi
18909
18910		CFLAGS="$CFLAGS -Werror"
18911
18912		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
18913printf %s "checking if $CC supports -Werror... " >&6; }
18914		cacheid=xorg_cv_cc_flag__Werror
18915		if eval test \${$cacheid+y}
18916then :
18917  printf %s "(cached) " >&6
18918else $as_nop
18919  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18920/* end confdefs.h.  */
18921int i;
18922int
18923main (void)
18924{
18925
18926  ;
18927  return 0;
18928}
18929_ACEOF
18930if ac_fn_c_try_link "$LINENO"
18931then :
18932  eval $cacheid=yes
18933else $as_nop
18934  eval $cacheid=no
18935fi
18936rm -f core conftest.err conftest.$ac_objext conftest.beam \
18937    conftest$ac_exeext conftest.$ac_ext
18938fi
18939
18940
18941		CFLAGS="$xorg_testset_save_CFLAGS"
18942
18943		eval supported=\$$cacheid
18944		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18945printf "%s\n" "$supported" >&6; }
18946		if test "$supported" = "yes" ; then
18947			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
18948			found="yes"
18949		fi
18950	fi
18951
18952	if test $found = "no" ; then
18953		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18954			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18955		fi
18956
18957		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18958			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18959		fi
18960
18961		CFLAGS="$CFLAGS -errwarn"
18962
18963		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
18964printf %s "checking if $CC supports -errwarn... " >&6; }
18965		cacheid=xorg_cv_cc_flag__errwarn
18966		if eval test \${$cacheid+y}
18967then :
18968  printf %s "(cached) " >&6
18969else $as_nop
18970  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18971/* end confdefs.h.  */
18972int i;
18973int
18974main (void)
18975{
18976
18977  ;
18978  return 0;
18979}
18980_ACEOF
18981if ac_fn_c_try_link "$LINENO"
18982then :
18983  eval $cacheid=yes
18984else $as_nop
18985  eval $cacheid=no
18986fi
18987rm -f core conftest.err conftest.$ac_objext conftest.beam \
18988    conftest$ac_exeext conftest.$ac_ext
18989fi
18990
18991
18992		CFLAGS="$xorg_testset_save_CFLAGS"
18993
18994		eval supported=\$$cacheid
18995		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18996printf "%s\n" "$supported" >&6; }
18997		if test "$supported" = "yes" ; then
18998			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
18999			found="yes"
19000		fi
19001	fi
19002
19003
19004
19005# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
19006# activate it with -Werror, so we add it here explicitly.
19007
19008
19009
19010
19011
19012
19013
19014
19015
19016
19017
19018
19019
19020xorg_testset_save_CFLAGS="$CFLAGS"
19021
19022if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19023	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19024	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19025printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19026if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19027then :
19028  printf %s "(cached) " >&6
19029else $as_nop
19030  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19031/* end confdefs.h.  */
19032int i;
19033_ACEOF
19034if ac_fn_c_try_compile "$LINENO"
19035then :
19036  xorg_cv_cc_flag_unknown_warning_option=yes
19037else $as_nop
19038  xorg_cv_cc_flag_unknown_warning_option=no
19039fi
19040rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19041fi
19042{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19043printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19044	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19045	CFLAGS="$xorg_testset_save_CFLAGS"
19046fi
19047
19048if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19049	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19050		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19051	fi
19052	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19053	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19054printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19055if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19056then :
19057  printf %s "(cached) " >&6
19058else $as_nop
19059  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19060/* end confdefs.h.  */
19061int i;
19062_ACEOF
19063if ac_fn_c_try_compile "$LINENO"
19064then :
19065  xorg_cv_cc_flag_unused_command_line_argument=yes
19066else $as_nop
19067  xorg_cv_cc_flag_unused_command_line_argument=no
19068fi
19069rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19070fi
19071{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19072printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19073	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19074	CFLAGS="$xorg_testset_save_CFLAGS"
19075fi
19076
19077found="no"
19078
19079	if test $found = "no" ; then
19080		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19081			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19082		fi
19083
19084		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19085			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19086		fi
19087
19088		CFLAGS="$CFLAGS -Werror=attributes"
19089
19090		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
19091printf %s "checking if $CC supports -Werror=attributes... " >&6; }
19092		cacheid=xorg_cv_cc_flag__Werror_attributes
19093		if eval test \${$cacheid+y}
19094then :
19095  printf %s "(cached) " >&6
19096else $as_nop
19097  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19098/* end confdefs.h.  */
19099int i;
19100int
19101main (void)
19102{
19103
19104  ;
19105  return 0;
19106}
19107_ACEOF
19108if ac_fn_c_try_link "$LINENO"
19109then :
19110  eval $cacheid=yes
19111else $as_nop
19112  eval $cacheid=no
19113fi
19114rm -f core conftest.err conftest.$ac_objext conftest.beam \
19115    conftest$ac_exeext conftest.$ac_ext
19116fi
19117
19118
19119		CFLAGS="$xorg_testset_save_CFLAGS"
19120
19121		eval supported=\$$cacheid
19122		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19123printf "%s\n" "$supported" >&6; }
19124		if test "$supported" = "yes" ; then
19125			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
19126			found="yes"
19127		fi
19128	fi
19129
19130
19131
19132if test "x$STRICT_COMPILE" = "xyes"; then
19133    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
19134    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
19135fi
19136
19137
19138
19139
19140
19141
19142cat >>confdefs.h <<_ACEOF
19143#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
19144_ACEOF
19145
19146	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
19147	if test "x$PVM" = "x"; then
19148		PVM="0"
19149	fi
19150
19151printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
19152
19153	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
19154	if test "x$PVP" = "x"; then
19155		PVP="0"
19156	fi
19157
19158printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
19159
19160
19161
19162CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
19163mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
19164|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
19165touch \$(top_srcdir)/ChangeLog; \
19166echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
19167
19168
19169
19170
19171macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
19172INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
19173mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
19174|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
19175touch \$(top_srcdir)/INSTALL; \
19176echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
19177
19178
19179
19180
19181
19182
19183case $host_os in
19184    solaris*)
19185        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
19186        # check for a man page file found in later versions that use
19187        # traditional section numbers instead
19188        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
19189printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
19190if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
19191then :
19192  printf %s "(cached) " >&6
19193else $as_nop
19194  test "$cross_compiling" = yes &&
19195  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
19196if test -r "/usr/share/man/man7/attributes.7"; then
19197  ac_cv_file__usr_share_man_man7_attributes_7=yes
19198else
19199  ac_cv_file__usr_share_man_man7_attributes_7=no
19200fi
19201fi
19202{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
19203printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
19204if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
19205then :
19206  SYSV_MAN_SECTIONS=false
19207else $as_nop
19208  SYSV_MAN_SECTIONS=true
19209fi
19210
19211        ;;
19212    *) SYSV_MAN_SECTIONS=false ;;
19213esac
19214
19215if test x$APP_MAN_SUFFIX = x    ; then
19216    APP_MAN_SUFFIX=1
19217fi
19218if test x$APP_MAN_DIR = x    ; then
19219    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
19220fi
19221
19222if test x$LIB_MAN_SUFFIX = x    ; then
19223    LIB_MAN_SUFFIX=3
19224fi
19225if test x$LIB_MAN_DIR = x    ; then
19226    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
19227fi
19228
19229if test x$FILE_MAN_SUFFIX = x    ; then
19230    case $SYSV_MAN_SECTIONS in
19231	true)				FILE_MAN_SUFFIX=4  ;;
19232	*)				FILE_MAN_SUFFIX=5  ;;
19233    esac
19234fi
19235if test x$FILE_MAN_DIR = x    ; then
19236    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
19237fi
19238
19239if test x$MISC_MAN_SUFFIX = x    ; then
19240    case $SYSV_MAN_SECTIONS in
19241	true)				MISC_MAN_SUFFIX=5  ;;
19242	*)				MISC_MAN_SUFFIX=7  ;;
19243    esac
19244fi
19245if test x$MISC_MAN_DIR = x    ; then
19246    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
19247fi
19248
19249if test x$DRIVER_MAN_SUFFIX = x    ; then
19250    case $SYSV_MAN_SECTIONS in
19251	true)				DRIVER_MAN_SUFFIX=7  ;;
19252	*)				DRIVER_MAN_SUFFIX=4  ;;
19253    esac
19254fi
19255if test x$DRIVER_MAN_DIR = x    ; then
19256    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
19257fi
19258
19259if test x$ADMIN_MAN_SUFFIX = x    ; then
19260    case $SYSV_MAN_SECTIONS in
19261	true)				ADMIN_MAN_SUFFIX=1m ;;
19262	*)				ADMIN_MAN_SUFFIX=8  ;;
19263    esac
19264fi
19265if test x$ADMIN_MAN_DIR = x    ; then
19266    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
19267fi
19268
19269
19270
19271
19272
19273
19274
19275
19276
19277
19278
19279
19280
19281
19282
19283XORG_MAN_PAGE="X Version 11"
19284
19285MAN_SUBSTS="\
19286	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19287	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19288	-e 's|__xservername__|Xorg|g' \
19289	-e 's|__xconfigfile__|xorg.conf|g' \
19290	-e 's|__projectroot__|\$(prefix)|g' \
19291	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
19292	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
19293	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
19294	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
19295	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
19296	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
19297	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
19298
19299
19300
19301# Check whether --enable-silent-rules was given.
19302if test ${enable_silent_rules+y}
19303then :
19304  enableval=$enable_silent_rules;
19305fi
19306
19307case $enable_silent_rules in # (((
19308  yes) AM_DEFAULT_VERBOSITY=0;;
19309   no) AM_DEFAULT_VERBOSITY=1;;
19310    *) AM_DEFAULT_VERBOSITY=0;;
19311esac
19312am_make=${MAKE-make}
19313{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
19314printf %s "checking whether $am_make supports nested variables... " >&6; }
19315if test ${am_cv_make_support_nested_variables+y}
19316then :
19317  printf %s "(cached) " >&6
19318else $as_nop
19319  if printf "%s\n" 'TRUE=$(BAR$(V))
19320BAR0=false
19321BAR1=true
19322V=1
19323am__doit:
19324	@$(TRUE)
19325.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
19326  am_cv_make_support_nested_variables=yes
19327else
19328  am_cv_make_support_nested_variables=no
19329fi
19330fi
19331{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
19332printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
19333if test $am_cv_make_support_nested_variables = yes; then
19334    AM_V='$(V)'
19335  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
19336else
19337  AM_V=$AM_DEFAULT_VERBOSITY
19338  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
19339fi
19340AM_BACKSLASH='\'
19341
19342
19343
19344
19345# Check whether --enable-specs was given.
19346if test ${enable_specs+y}
19347then :
19348  enableval=$enable_specs; build_specs=$enableval
19349else $as_nop
19350  build_specs=yes
19351fi
19352
19353
19354 if test x$build_specs = xyes; then
19355  ENABLE_SPECS_TRUE=
19356  ENABLE_SPECS_FALSE='#'
19357else
19358  ENABLE_SPECS_TRUE='#'
19359  ENABLE_SPECS_FALSE=
19360fi
19361
19362{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build functional specifications" >&5
19363printf %s "checking whether to build functional specifications... " >&6; }
19364{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $build_specs" >&5
19365printf "%s\n" "$build_specs" >&6; }
19366
19367
19368
19369
19370
19371# Check whether --with-xmlto was given.
19372if test ${with_xmlto+y}
19373then :
19374  withval=$with_xmlto; use_xmlto=$withval
19375else $as_nop
19376  use_xmlto=auto
19377fi
19378
19379
19380
19381if test "x$use_xmlto" = x"auto"; then
19382   # Extract the first word of "xmlto", so it can be a program name with args.
19383set dummy xmlto; ac_word=$2
19384{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19385printf %s "checking for $ac_word... " >&6; }
19386if test ${ac_cv_path_XMLTO+y}
19387then :
19388  printf %s "(cached) " >&6
19389else $as_nop
19390  case $XMLTO in
19391  [\\/]* | ?:[\\/]*)
19392  ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
19393  ;;
19394  *)
19395  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19396for as_dir in $PATH
19397do
19398  IFS=$as_save_IFS
19399  case $as_dir in #(((
19400    '') as_dir=./ ;;
19401    */) ;;
19402    *) as_dir=$as_dir/ ;;
19403  esac
19404    for ac_exec_ext in '' $ac_executable_extensions; do
19405  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19406    ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext"
19407    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19408    break 2
19409  fi
19410done
19411  done
19412IFS=$as_save_IFS
19413
19414  ;;
19415esac
19416fi
19417XMLTO=$ac_cv_path_XMLTO
19418if test -n "$XMLTO"; then
19419  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
19420printf "%s\n" "$XMLTO" >&6; }
19421else
19422  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19423printf "%s\n" "no" >&6; }
19424fi
19425
19426
19427   if test "x$XMLTO" = "x"; then
19428        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5
19429printf "%s\n" "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;}
19430	have_xmlto=no
19431   else
19432        have_xmlto=yes
19433   fi
19434elif test "x$use_xmlto" = x"yes" ; then
19435   # Extract the first word of "xmlto", so it can be a program name with args.
19436set dummy xmlto; ac_word=$2
19437{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19438printf %s "checking for $ac_word... " >&6; }
19439if test ${ac_cv_path_XMLTO+y}
19440then :
19441  printf %s "(cached) " >&6
19442else $as_nop
19443  case $XMLTO in
19444  [\\/]* | ?:[\\/]*)
19445  ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
19446  ;;
19447  *)
19448  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19449for as_dir in $PATH
19450do
19451  IFS=$as_save_IFS
19452  case $as_dir in #(((
19453    '') as_dir=./ ;;
19454    */) ;;
19455    *) as_dir=$as_dir/ ;;
19456  esac
19457    for ac_exec_ext in '' $ac_executable_extensions; do
19458  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19459    ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext"
19460    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19461    break 2
19462  fi
19463done
19464  done
19465IFS=$as_save_IFS
19466
19467  ;;
19468esac
19469fi
19470XMLTO=$ac_cv_path_XMLTO
19471if test -n "$XMLTO"; then
19472  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
19473printf "%s\n" "$XMLTO" >&6; }
19474else
19475  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19476printf "%s\n" "no" >&6; }
19477fi
19478
19479
19480   if test "x$XMLTO" = "x"; then
19481        as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5
19482   fi
19483   have_xmlto=yes
19484elif test "x$use_xmlto" = x"no" ; then
19485   if test "x$XMLTO" != "x"; then
19486      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5
19487printf "%s\n" "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;}
19488   fi
19489   have_xmlto=no
19490else
19491   as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5
19492fi
19493
19494# Test for a minimum version of xmlto, if provided.
19495if test "$have_xmlto" = yes; then
19496    # scrape the xmlto version
19497    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5
19498printf %s "checking the xmlto version... " >&6; }
19499    xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3`
19500    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5
19501printf "%s\n" "$xmlto_version" >&6; }
19502    as_arg_v1=$xmlto_version
19503as_arg_v2=0.0.22
19504awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
19505case $? in #(
19506  1) :
19507    if test "x$use_xmlto" = xauto; then
19508            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5
19509printf "%s\n" "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;}
19510            have_xmlto=no
19511        else
19512            as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5
19513        fi ;; #(
19514  0) :
19515     ;; #(
19516  2) :
19517     ;; #(
19518  *) :
19519     ;;
19520esac
19521fi
19522
19523# Test for the ability of xmlto to generate a text target
19524#
19525# NOTE: xmlto 0.0.27 or higher return a non-zero return code in the
19526# following test for empty XML docbook files.
19527# For compatibility reasons use the following empty XML docbook file and if
19528# it fails try it again with a non-empty XML file.
19529have_xmlto_text=no
19530cat > conftest.xml << "EOF"
19531EOF
19532if test "$have_xmlto" = yes
19533then :
19534  if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1
19535then :
19536  have_xmlto_text=yes
19537else $as_nop
19538  # Try it again with a non-empty XML file.
19539              cat > conftest.xml << "EOF"
19540<x></x>
19541EOF
19542              if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1
19543then :
19544  have_xmlto_text=yes
19545else $as_nop
19546  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5
19547printf "%s\n" "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;}
19548fi
19549fi
19550fi
19551rm -f conftest.xml
19552 if test $have_xmlto_text = yes; then
19553  HAVE_XMLTO_TEXT_TRUE=
19554  HAVE_XMLTO_TEXT_FALSE='#'
19555else
19556  HAVE_XMLTO_TEXT_TRUE='#'
19557  HAVE_XMLTO_TEXT_FALSE=
19558fi
19559
19560 if test "$have_xmlto" = yes; then
19561  HAVE_XMLTO_TRUE=
19562  HAVE_XMLTO_FALSE='#'
19563else
19564  HAVE_XMLTO_TRUE='#'
19565  HAVE_XMLTO_FALSE=
19566fi
19567
19568
19569
19570
19571
19572
19573# Check whether --with-fop was given.
19574if test ${with_fop+y}
19575then :
19576  withval=$with_fop; use_fop=$withval
19577else $as_nop
19578  use_fop=auto
19579fi
19580
19581
19582
19583if test "x$use_fop" = x"auto"; then
19584   # Extract the first word of "fop", so it can be a program name with args.
19585set dummy fop; ac_word=$2
19586{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19587printf %s "checking for $ac_word... " >&6; }
19588if test ${ac_cv_path_FOP+y}
19589then :
19590  printf %s "(cached) " >&6
19591else $as_nop
19592  case $FOP in
19593  [\\/]* | ?:[\\/]*)
19594  ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
19595  ;;
19596  *)
19597  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19598for as_dir in $PATH
19599do
19600  IFS=$as_save_IFS
19601  case $as_dir in #(((
19602    '') as_dir=./ ;;
19603    */) ;;
19604    *) as_dir=$as_dir/ ;;
19605  esac
19606    for ac_exec_ext in '' $ac_executable_extensions; do
19607  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19608    ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext"
19609    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19610    break 2
19611  fi
19612done
19613  done
19614IFS=$as_save_IFS
19615
19616  ;;
19617esac
19618fi
19619FOP=$ac_cv_path_FOP
19620if test -n "$FOP"; then
19621  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
19622printf "%s\n" "$FOP" >&6; }
19623else
19624  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19625printf "%s\n" "no" >&6; }
19626fi
19627
19628
19629   if test "x$FOP" = "x"; then
19630        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5
19631printf "%s\n" "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;}
19632	have_fop=no
19633   else
19634        have_fop=yes
19635   fi
19636elif test "x$use_fop" = x"yes" ; then
19637   # Extract the first word of "fop", so it can be a program name with args.
19638set dummy fop; ac_word=$2
19639{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19640printf %s "checking for $ac_word... " >&6; }
19641if test ${ac_cv_path_FOP+y}
19642then :
19643  printf %s "(cached) " >&6
19644else $as_nop
19645  case $FOP in
19646  [\\/]* | ?:[\\/]*)
19647  ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
19648  ;;
19649  *)
19650  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19651for as_dir in $PATH
19652do
19653  IFS=$as_save_IFS
19654  case $as_dir in #(((
19655    '') as_dir=./ ;;
19656    */) ;;
19657    *) as_dir=$as_dir/ ;;
19658  esac
19659    for ac_exec_ext in '' $ac_executable_extensions; do
19660  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19661    ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext"
19662    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19663    break 2
19664  fi
19665done
19666  done
19667IFS=$as_save_IFS
19668
19669  ;;
19670esac
19671fi
19672FOP=$ac_cv_path_FOP
19673if test -n "$FOP"; then
19674  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
19675printf "%s\n" "$FOP" >&6; }
19676else
19677  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19678printf "%s\n" "no" >&6; }
19679fi
19680
19681
19682   if test "x$FOP" = "x"; then
19683        as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5
19684   fi
19685   have_fop=yes
19686elif test "x$use_fop" = x"no" ; then
19687   if test "x$FOP" != "x"; then
19688      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5
19689printf "%s\n" "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;}
19690   fi
19691   have_fop=no
19692else
19693   as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5
19694fi
19695
19696# Test for a minimum version of fop, if provided.
19697
19698 if test "$have_fop" = yes; then
19699  HAVE_FOP_TRUE=
19700  HAVE_FOP_FALSE='#'
19701else
19702  HAVE_FOP_TRUE='#'
19703  HAVE_FOP_FALSE=
19704fi
19705
19706
19707
19708
19709# Preserves the interface, should it be implemented later
19710
19711
19712
19713# Check whether --with-xsltproc was given.
19714if test ${with_xsltproc+y}
19715then :
19716  withval=$with_xsltproc; use_xsltproc=$withval
19717else $as_nop
19718  use_xsltproc=auto
19719fi
19720
19721
19722
19723if test "x$use_xsltproc" = x"auto"; then
19724   # Extract the first word of "xsltproc", so it can be a program name with args.
19725set dummy xsltproc; ac_word=$2
19726{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19727printf %s "checking for $ac_word... " >&6; }
19728if test ${ac_cv_path_XSLTPROC+y}
19729then :
19730  printf %s "(cached) " >&6
19731else $as_nop
19732  case $XSLTPROC in
19733  [\\/]* | ?:[\\/]*)
19734  ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
19735  ;;
19736  *)
19737  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19738for as_dir in $PATH
19739do
19740  IFS=$as_save_IFS
19741  case $as_dir in #(((
19742    '') as_dir=./ ;;
19743    */) ;;
19744    *) as_dir=$as_dir/ ;;
19745  esac
19746    for ac_exec_ext in '' $ac_executable_extensions; do
19747  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19748    ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext"
19749    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19750    break 2
19751  fi
19752done
19753  done
19754IFS=$as_save_IFS
19755
19756  ;;
19757esac
19758fi
19759XSLTPROC=$ac_cv_path_XSLTPROC
19760if test -n "$XSLTPROC"; then
19761  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
19762printf "%s\n" "$XSLTPROC" >&6; }
19763else
19764  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19765printf "%s\n" "no" >&6; }
19766fi
19767
19768
19769   if test "x$XSLTPROC" = "x"; then
19770        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5
19771printf "%s\n" "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;}
19772	have_xsltproc=no
19773   else
19774        have_xsltproc=yes
19775   fi
19776elif test "x$use_xsltproc" = x"yes" ; then
19777   # Extract the first word of "xsltproc", so it can be a program name with args.
19778set dummy xsltproc; ac_word=$2
19779{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19780printf %s "checking for $ac_word... " >&6; }
19781if test ${ac_cv_path_XSLTPROC+y}
19782then :
19783  printf %s "(cached) " >&6
19784else $as_nop
19785  case $XSLTPROC in
19786  [\\/]* | ?:[\\/]*)
19787  ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
19788  ;;
19789  *)
19790  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19791for as_dir in $PATH
19792do
19793  IFS=$as_save_IFS
19794  case $as_dir in #(((
19795    '') as_dir=./ ;;
19796    */) ;;
19797    *) as_dir=$as_dir/ ;;
19798  esac
19799    for ac_exec_ext in '' $ac_executable_extensions; do
19800  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19801    ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext"
19802    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19803    break 2
19804  fi
19805done
19806  done
19807IFS=$as_save_IFS
19808
19809  ;;
19810esac
19811fi
19812XSLTPROC=$ac_cv_path_XSLTPROC
19813if test -n "$XSLTPROC"; then
19814  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
19815printf "%s\n" "$XSLTPROC" >&6; }
19816else
19817  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19818printf "%s\n" "no" >&6; }
19819fi
19820
19821
19822   if test "x$XSLTPROC" = "x"; then
19823        as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5
19824   fi
19825   have_xsltproc=yes
19826elif test "x$use_xsltproc" = x"no" ; then
19827   if test "x$XSLTPROC" != "x"; then
19828      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5
19829printf "%s\n" "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;}
19830   fi
19831   have_xsltproc=no
19832else
19833   as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5
19834fi
19835
19836 if test "$have_xsltproc" = yes; then
19837  HAVE_XSLTPROC_TRUE=
19838  HAVE_XSLTPROC_FALSE='#'
19839else
19840  HAVE_XSLTPROC_TRUE='#'
19841  HAVE_XSLTPROC_FALSE=
19842fi
19843
19844
19845
19846{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.8" >&5
19847printf %s "checking for X.Org SGML entities >= 1.8... " >&6; }
19848XORG_SGML_PATH=
19849if test -n "$PKG_CONFIG" && \
19850    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.8\""; } >&5
19851  ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.8") 2>&5
19852  ac_status=$?
19853  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19854  test $ac_status = 0; }; then
19855  XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools`
19856else
19857  :
19858
19859fi
19860
19861# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing
19862# the path and the name of the doc stylesheet
19863if test "x$XORG_SGML_PATH" != "x" ; then
19864   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5
19865printf "%s\n" "$XORG_SGML_PATH" >&6; }
19866   STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11
19867   XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl
19868else
19869   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19870printf "%s\n" "no" >&6; }
19871fi
19872
19873
19874
19875
19876 if test "x$XSL_STYLESHEET" != "x"; then
19877  HAVE_STYLESHEETS_TRUE=
19878  HAVE_STYLESHEETS_FALSE='#'
19879else
19880  HAVE_STYLESHEETS_TRUE='#'
19881  HAVE_STYLESHEETS_FALSE=
19882fi
19883
19884
19885
19886# Some compilers do not support per target -c and -o flags
19887
19888
19889# Checks for programs.
19890for ac_prog in gawk mawk nawk awk
19891do
19892  # Extract the first word of "$ac_prog", so it can be a program name with args.
19893set dummy $ac_prog; ac_word=$2
19894{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19895printf %s "checking for $ac_word... " >&6; }
19896if test ${ac_cv_prog_AWK+y}
19897then :
19898  printf %s "(cached) " >&6
19899else $as_nop
19900  if test -n "$AWK"; then
19901  ac_cv_prog_AWK="$AWK" # Let the user override the test.
19902else
19903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19904for as_dir in $PATH
19905do
19906  IFS=$as_save_IFS
19907  case $as_dir in #(((
19908    '') as_dir=./ ;;
19909    */) ;;
19910    *) as_dir=$as_dir/ ;;
19911  esac
19912    for ac_exec_ext in '' $ac_executable_extensions; do
19913  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19914    ac_cv_prog_AWK="$ac_prog"
19915    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19916    break 2
19917  fi
19918done
19919  done
19920IFS=$as_save_IFS
19921
19922fi
19923fi
19924AWK=$ac_cv_prog_AWK
19925if test -n "$AWK"; then
19926  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
19927printf "%s\n" "$AWK" >&6; }
19928else
19929  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19930printf "%s\n" "no" >&6; }
19931fi
19932
19933
19934  test -n "$AWK" && break
19935done
19936
19937
19938# Need to call this explicitly since the first call to PKG_CHECK_MODULES
19939# is in an if statement, and later calls would break if it's skipped.
19940
19941
19942
19943
19944
19945
19946
19947if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
19948	if test -n "$ac_tool_prefix"; then
19949  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19950set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19951{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19952printf %s "checking for $ac_word... " >&6; }
19953if test ${ac_cv_path_PKG_CONFIG+y}
19954then :
19955  printf %s "(cached) " >&6
19956else $as_nop
19957  case $PKG_CONFIG in
19958  [\\/]* | ?:[\\/]*)
19959  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19960  ;;
19961  *)
19962  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19963for as_dir in $PATH
19964do
19965  IFS=$as_save_IFS
19966  case $as_dir in #(((
19967    '') as_dir=./ ;;
19968    */) ;;
19969    *) as_dir=$as_dir/ ;;
19970  esac
19971    for ac_exec_ext in '' $ac_executable_extensions; do
19972  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19973    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
19974    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19975    break 2
19976  fi
19977done
19978  done
19979IFS=$as_save_IFS
19980
19981  ;;
19982esac
19983fi
19984PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19985if test -n "$PKG_CONFIG"; then
19986  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19987printf "%s\n" "$PKG_CONFIG" >&6; }
19988else
19989  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19990printf "%s\n" "no" >&6; }
19991fi
19992
19993
19994fi
19995if test -z "$ac_cv_path_PKG_CONFIG"; then
19996  ac_pt_PKG_CONFIG=$PKG_CONFIG
19997  # Extract the first word of "pkg-config", so it can be a program name with args.
19998set dummy pkg-config; ac_word=$2
19999{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20000printf %s "checking for $ac_word... " >&6; }
20001if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
20002then :
20003  printf %s "(cached) " >&6
20004else $as_nop
20005  case $ac_pt_PKG_CONFIG in
20006  [\\/]* | ?:[\\/]*)
20007  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
20008  ;;
20009  *)
20010  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20011for as_dir in $PATH
20012do
20013  IFS=$as_save_IFS
20014  case $as_dir in #(((
20015    '') as_dir=./ ;;
20016    */) ;;
20017    *) as_dir=$as_dir/ ;;
20018  esac
20019    for ac_exec_ext in '' $ac_executable_extensions; do
20020  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20021    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
20022    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20023    break 2
20024  fi
20025done
20026  done
20027IFS=$as_save_IFS
20028
20029  ;;
20030esac
20031fi
20032ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
20033if test -n "$ac_pt_PKG_CONFIG"; then
20034  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
20035printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
20036else
20037  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20038printf "%s\n" "no" >&6; }
20039fi
20040
20041  if test "x$ac_pt_PKG_CONFIG" = x; then
20042    PKG_CONFIG=""
20043  else
20044    case $cross_compiling:$ac_tool_warned in
20045yes:)
20046{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20047printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20048ac_tool_warned=yes ;;
20049esac
20050    PKG_CONFIG=$ac_pt_PKG_CONFIG
20051  fi
20052else
20053  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
20054fi
20055
20056fi
20057if test -n "$PKG_CONFIG"; then
20058	_pkg_min_version=0.9.0
20059	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
20060printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
20061	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
20062		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20063printf "%s\n" "yes" >&6; }
20064	else
20065		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20066printf "%s\n" "no" >&6; }
20067		PKG_CONFIG=""
20068	fi
20069fi
20070
20071#
20072# fix libtool to set SONAME to libXaw.so.$major
20073#
20074ac_config_commands="$ac_config_commands libtool_hack"
20075
20076
20077# OSX/Win32 rules are different.
20078platform_win32=no
20079platform_darwin=no
20080LIBEXT=so
20081case $host_os in
20082    cygwin*|mingw*)
20083	LIBEXT=dll.a
20084	platform_win32=yes
20085	;;
20086    darwin*)
20087	LIBEXT=dylib
20088	platform_darwin=yes
20089	;;
20090esac
20091
20092 if test "x$platform_win32" = "xyes"; then
20093  PLATFORM_WIN32_TRUE=
20094  PLATFORM_WIN32_FALSE='#'
20095else
20096  PLATFORM_WIN32_TRUE='#'
20097  PLATFORM_WIN32_FALSE=
20098fi
20099
20100 if test "x$platform_darwin" = "xyes"; then
20101  PLATFORM_DARWIN_TRUE=
20102  PLATFORM_DARWIN_FALSE='#'
20103else
20104  PLATFORM_DARWIN_TRUE='#'
20105  PLATFORM_DARWIN_FALSE=
20106fi
20107
20108
20109# Whether to build Xaw6
20110
20111# Check whether --enable-xaw6 was given.
20112if test ${enable_xaw6+y}
20113then :
20114  enableval=$enable_xaw6; build_v6=$enableval
20115else $as_nop
20116  build_v6=yes
20117fi
20118
20119
20120if test "x$build_v6" = xyes; then
20121
20122pkg_failed=no
20123{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xproto x11 xext xextproto xt xmu" >&5
20124printf %s "checking for xproto x11 xext xextproto xt xmu... " >&6; }
20125
20126if test -n "$XAW6_CFLAGS"; then
20127    pkg_cv_XAW6_CFLAGS="$XAW6_CFLAGS"
20128 elif test -n "$PKG_CONFIG"; then
20129    if test -n "$PKG_CONFIG" && \
20130    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto x11 xext xextproto xt xmu\""; } >&5
20131  ($PKG_CONFIG --exists --print-errors "xproto x11 xext xextproto xt xmu") 2>&5
20132  ac_status=$?
20133  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20134  test $ac_status = 0; }; then
20135  pkg_cv_XAW6_CFLAGS=`$PKG_CONFIG --cflags "xproto x11 xext xextproto xt xmu" 2>/dev/null`
20136		      test "x$?" != "x0" && pkg_failed=yes
20137else
20138  pkg_failed=yes
20139fi
20140 else
20141    pkg_failed=untried
20142fi
20143if test -n "$XAW6_LIBS"; then
20144    pkg_cv_XAW6_LIBS="$XAW6_LIBS"
20145 elif test -n "$PKG_CONFIG"; then
20146    if test -n "$PKG_CONFIG" && \
20147    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto x11 xext xextproto xt xmu\""; } >&5
20148  ($PKG_CONFIG --exists --print-errors "xproto x11 xext xextproto xt xmu") 2>&5
20149  ac_status=$?
20150  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20151  test $ac_status = 0; }; then
20152  pkg_cv_XAW6_LIBS=`$PKG_CONFIG --libs "xproto x11 xext xextproto xt xmu" 2>/dev/null`
20153		      test "x$?" != "x0" && pkg_failed=yes
20154else
20155  pkg_failed=yes
20156fi
20157 else
20158    pkg_failed=untried
20159fi
20160
20161
20162
20163if test $pkg_failed = yes; then
20164        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20165printf "%s\n" "no" >&6; }
20166
20167if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20168        _pkg_short_errors_supported=yes
20169else
20170        _pkg_short_errors_supported=no
20171fi
20172        if test $_pkg_short_errors_supported = yes; then
20173                XAW6_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto x11 xext xextproto xt xmu" 2>&1`
20174        else
20175                XAW6_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto x11 xext xextproto xt xmu" 2>&1`
20176        fi
20177        # Put the nasty error message in config.log where it belongs
20178        echo "$XAW6_PKG_ERRORS" >&5
20179
20180        as_fn_error $? "Package requirements (xproto x11 xext xextproto xt xmu) were not met:
20181
20182$XAW6_PKG_ERRORS
20183
20184Consider adjusting the PKG_CONFIG_PATH environment variable if you
20185installed software in a non-standard prefix.
20186
20187Alternatively, you may set the environment variables XAW6_CFLAGS
20188and XAW6_LIBS to avoid the need to call pkg-config.
20189See the pkg-config man page for more details." "$LINENO" 5
20190elif test $pkg_failed = untried; then
20191        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20192printf "%s\n" "no" >&6; }
20193        { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20194printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
20195as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
20196is in your PATH or set the PKG_CONFIG environment variable to the full
20197path to pkg-config.
20198
20199Alternatively, you may set the environment variables XAW6_CFLAGS
20200and XAW6_LIBS to avoid the need to call pkg-config.
20201See the pkg-config man page for more details.
20202
20203To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20204See \`config.log' for more details" "$LINENO" 5; }
20205else
20206        XAW6_CFLAGS=$pkg_cv_XAW6_CFLAGS
20207        XAW6_LIBS=$pkg_cv_XAW6_LIBS
20208        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20209printf "%s\n" "yes" >&6; }
20210
20211fi
20212fi
20213
20214
20215# Whether to build Xaw7
20216
20217# Check whether --enable-xaw7 was given.
20218if test ${enable_xaw7+y}
20219then :
20220  enableval=$enable_xaw7; build_v7=$enableval
20221else $as_nop
20222  build_v7=yes
20223fi
20224
20225
20226if test "x$build_v7" = xyes; then
20227
20228pkg_failed=no
20229{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xproto x11 xext xextproto xt xmu xpm" >&5
20230printf %s "checking for xproto x11 xext xextproto xt xmu xpm... " >&6; }
20231
20232if test -n "$XAW7_CFLAGS"; then
20233    pkg_cv_XAW7_CFLAGS="$XAW7_CFLAGS"
20234 elif test -n "$PKG_CONFIG"; then
20235    if test -n "$PKG_CONFIG" && \
20236    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto x11 xext xextproto xt xmu xpm\""; } >&5
20237  ($PKG_CONFIG --exists --print-errors "xproto x11 xext xextproto xt xmu xpm") 2>&5
20238  ac_status=$?
20239  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20240  test $ac_status = 0; }; then
20241  pkg_cv_XAW7_CFLAGS=`$PKG_CONFIG --cflags "xproto x11 xext xextproto xt xmu xpm" 2>/dev/null`
20242		      test "x$?" != "x0" && pkg_failed=yes
20243else
20244  pkg_failed=yes
20245fi
20246 else
20247    pkg_failed=untried
20248fi
20249if test -n "$XAW7_LIBS"; then
20250    pkg_cv_XAW7_LIBS="$XAW7_LIBS"
20251 elif test -n "$PKG_CONFIG"; then
20252    if test -n "$PKG_CONFIG" && \
20253    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto x11 xext xextproto xt xmu xpm\""; } >&5
20254  ($PKG_CONFIG --exists --print-errors "xproto x11 xext xextproto xt xmu xpm") 2>&5
20255  ac_status=$?
20256  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20257  test $ac_status = 0; }; then
20258  pkg_cv_XAW7_LIBS=`$PKG_CONFIG --libs "xproto x11 xext xextproto xt xmu xpm" 2>/dev/null`
20259		      test "x$?" != "x0" && pkg_failed=yes
20260else
20261  pkg_failed=yes
20262fi
20263 else
20264    pkg_failed=untried
20265fi
20266
20267
20268
20269if test $pkg_failed = yes; then
20270        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20271printf "%s\n" "no" >&6; }
20272
20273if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20274        _pkg_short_errors_supported=yes
20275else
20276        _pkg_short_errors_supported=no
20277fi
20278        if test $_pkg_short_errors_supported = yes; then
20279                XAW7_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto x11 xext xextproto xt xmu xpm" 2>&1`
20280        else
20281                XAW7_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto x11 xext xextproto xt xmu xpm" 2>&1`
20282        fi
20283        # Put the nasty error message in config.log where it belongs
20284        echo "$XAW7_PKG_ERRORS" >&5
20285
20286        as_fn_error $? "Package requirements (xproto x11 xext xextproto xt xmu xpm) were not met:
20287
20288$XAW7_PKG_ERRORS
20289
20290Consider adjusting the PKG_CONFIG_PATH environment variable if you
20291installed software in a non-standard prefix.
20292
20293Alternatively, you may set the environment variables XAW7_CFLAGS
20294and XAW7_LIBS to avoid the need to call pkg-config.
20295See the pkg-config man page for more details." "$LINENO" 5
20296elif test $pkg_failed = untried; then
20297        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20298printf "%s\n" "no" >&6; }
20299        { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20300printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
20301as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
20302is in your PATH or set the PKG_CONFIG environment variable to the full
20303path to pkg-config.
20304
20305Alternatively, you may set the environment variables XAW7_CFLAGS
20306and XAW7_LIBS to avoid the need to call pkg-config.
20307See the pkg-config man page for more details.
20308
20309To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20310See \`config.log' for more details" "$LINENO" 5; }
20311else
20312        XAW7_CFLAGS=$pkg_cv_XAW7_CFLAGS
20313        XAW7_LIBS=$pkg_cv_XAW7_LIBS
20314        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20315printf "%s\n" "yes" >&6; }
20316
20317fi
20318fi
20319
20320
20321 if test x$build_v6 = xyes; then
20322  BUILD_XAW6_TRUE=
20323  BUILD_XAW6_FALSE='#'
20324else
20325  BUILD_XAW6_TRUE='#'
20326  BUILD_XAW6_FALSE=
20327fi
20328
20329 if test x$build_v7 = xyes; then
20330  BUILD_XAW7_TRUE=
20331  BUILD_XAW7_FALSE='#'
20332else
20333  BUILD_XAW7_TRUE='#'
20334  BUILD_XAW7_FALSE=
20335fi
20336
20337
20338# Checks for header files.
20339ac_fn_c_check_header_compile "$LINENO" "wctype.h" "ac_cv_header_wctype_h" "$ac_includes_default"
20340if test "x$ac_cv_header_wctype_h" = xyes
20341then :
20342  printf "%s\n" "#define HAVE_WCTYPE_H 1" >>confdefs.h
20343
20344fi
20345ac_fn_c_check_header_compile "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
20346if test "x$ac_cv_header_wchar_h" = xyes
20347then :
20348  printf "%s\n" "#define HAVE_WCHAR_H 1" >>confdefs.h
20349
20350fi
20351ac_fn_c_check_header_compile "$LINENO" "widec.h" "ac_cv_header_widec_h" "$ac_includes_default"
20352if test "x$ac_cv_header_widec_h" = xyes
20353then :
20354  printf "%s\n" "#define HAVE_WIDEC_H 1" >>confdefs.h
20355
20356fi
20357
20358
20359# Checks for functions
20360ac_fn_c_check_func "$LINENO" "iswalnum" "ac_cv_func_iswalnum"
20361if test "x$ac_cv_func_iswalnum" = xyes
20362then :
20363  printf "%s\n" "#define HAVE_ISWALNUM 1" >>confdefs.h
20364
20365fi
20366ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
20367if test "x$ac_cv_func_getpagesize" = xyes
20368then :
20369  printf "%s\n" "#define HAVE_GETPAGESIZE 1" >>confdefs.h
20370
20371fi
20372
20373
20374# Link with winsock if mingw target
20375case $host_os in
20376	*mingw*)
20377		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5
20378printf %s "checking for main in -lws2_32... " >&6; }
20379if test ${ac_cv_lib_ws2_32_main+y}
20380then :
20381  printf %s "(cached) " >&6
20382else $as_nop
20383  ac_check_lib_save_LIBS=$LIBS
20384LIBS="-lws2_32  $LIBS"
20385cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20386/* end confdefs.h.  */
20387
20388
20389int
20390main (void)
20391{
20392return main ();
20393  ;
20394  return 0;
20395}
20396_ACEOF
20397if ac_fn_c_try_link "$LINENO"
20398then :
20399  ac_cv_lib_ws2_32_main=yes
20400else $as_nop
20401  ac_cv_lib_ws2_32_main=no
20402fi
20403rm -f core conftest.err conftest.$ac_objext conftest.beam \
20404    conftest$ac_exeext conftest.$ac_ext
20405LIBS=$ac_check_lib_save_LIBS
20406fi
20407{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5
20408printf "%s\n" "$ac_cv_lib_ws2_32_main" >&6; }
20409if test "x$ac_cv_lib_ws2_32_main" = xyes
20410then :
20411  printf "%s\n" "#define HAVE_LIBWS2_32 1" >>confdefs.h
20412
20413  LIBS="-lws2_32 $LIBS"
20414
20415fi
20416
20417	;;
20418	*)
20419	;;
20420esac
20421
20422{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C const-support is wanted" >&5
20423printf %s "checking if C const-support is wanted... " >&6; }
20424# Check whether --enable-const was given.
20425if test ${enable_const+y}
20426then :
20427  enableval=$enable_const; USE_CONST="$enableval"
20428else $as_nop
20429  USE_CONST="yes"
20430fi
20431
20432{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_CONST" >&5
20433printf "%s\n" "$USE_CONST" >&6; }
20434if test "x$USE_CONST" = "xyes" ; then
20435
20436printf "%s\n" "#define _CONST_X_STRING 1" >>confdefs.h
20437
20438fi
20439
20440# --enable-unit-tests
20441
20442
20443
20444
20445
20446# Check for different types of support on different platforms
20447case $host_os in
20448    solaris*)
20449        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
20450printf %s "checking for umem_alloc in -lumem... " >&6; }
20451if test ${ac_cv_lib_umem_umem_alloc+y}
20452then :
20453  printf %s "(cached) " >&6
20454else $as_nop
20455  ac_check_lib_save_LIBS=$LIBS
20456LIBS="-lumem  $LIBS"
20457cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20458/* end confdefs.h.  */
20459
20460/* Override any GCC internal prototype to avoid an error.
20461   Use char because int might match the return type of a GCC
20462   builtin and then its argument prototype would still apply.  */
20463char umem_alloc ();
20464int
20465main (void)
20466{
20467return umem_alloc ();
20468  ;
20469  return 0;
20470}
20471_ACEOF
20472if ac_fn_c_try_link "$LINENO"
20473then :
20474  ac_cv_lib_umem_umem_alloc=yes
20475else $as_nop
20476  ac_cv_lib_umem_umem_alloc=no
20477fi
20478rm -f core conftest.err conftest.$ac_objext conftest.beam \
20479    conftest$ac_exeext conftest.$ac_ext
20480LIBS=$ac_check_lib_save_LIBS
20481fi
20482{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
20483printf "%s\n" "$ac_cv_lib_umem_umem_alloc" >&6; }
20484if test "x$ac_cv_lib_umem_umem_alloc" = xyes
20485then :
20486  malloc_debug_env='LD_PRELOAD=libumem.so UMEM_DEBUG=default'
20487fi
20488
20489        ;;
20490    *-gnu*) # GNU libc - Value is used as a single byte bit pattern,
20491        # both directly and inverted, so should not be 0 or 255.
20492        malloc_debug_env='MALLOC_PERTURB_=15'
20493        ;;
20494    darwin*)
20495        malloc_debug_env='MallocPreScribble=1 MallocScribble=1 DYLD_INSERT_LIBRARIES=/usr/lib/libgmalloc.dylib'
20496        ;;
20497    *bsd*)
20498        malloc_debug_env='MallocPreScribble=1 MallocScribble=1'
20499        ;;
20500esac
20501
20502# User supplied flags override default flags
20503if test "x$XORG_MALLOC_DEBUG_ENV" != "x"; then
20504    malloc_debug_env="$XORG_MALLOC_DEBUG_ENV"
20505fi
20506
20507XORG_MALLOC_DEBUG_ENV=$malloc_debug_env
20508
20509
20510
20511
20512
20513
20514
20515# Check whether --enable-unit-tests was given.
20516if test ${enable_unit_tests+y}
20517then :
20518  enableval=$enable_unit_tests; enable_unit_tests=$enableval
20519else $as_nop
20520  enable_unit_tests=no
20521fi
20522
20523
20524 if test "x$enable_unit_tests" != xno; then
20525  ENABLE_UNIT_TESTS_TRUE=
20526  ENABLE_UNIT_TESTS_FALSE='#'
20527else
20528  ENABLE_UNIT_TESTS_TRUE='#'
20529  ENABLE_UNIT_TESTS_FALSE=
20530fi
20531
20532{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build unit test cases" >&5
20533printf %s "checking whether to build unit test cases... " >&6; }
20534{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_unit_tests" >&5
20535printf "%s\n" "$enable_unit_tests" >&6; }
20536
20537
20538
20539
20540
20541
20542# Check for different types of support on different platforms
20543case $host_os in
20544    solaris*)
20545        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
20546printf %s "checking for umem_alloc in -lumem... " >&6; }
20547if test ${ac_cv_lib_umem_umem_alloc+y}
20548then :
20549  printf %s "(cached) " >&6
20550else $as_nop
20551  ac_check_lib_save_LIBS=$LIBS
20552LIBS="-lumem  $LIBS"
20553cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20554/* end confdefs.h.  */
20555
20556/* Override any GCC internal prototype to avoid an error.
20557   Use char because int might match the return type of a GCC
20558   builtin and then its argument prototype would still apply.  */
20559char umem_alloc ();
20560int
20561main (void)
20562{
20563return umem_alloc ();
20564  ;
20565  return 0;
20566}
20567_ACEOF
20568if ac_fn_c_try_link "$LINENO"
20569then :
20570  ac_cv_lib_umem_umem_alloc=yes
20571else $as_nop
20572  ac_cv_lib_umem_umem_alloc=no
20573fi
20574rm -f core conftest.err conftest.$ac_objext conftest.beam \
20575    conftest$ac_exeext conftest.$ac_ext
20576LIBS=$ac_check_lib_save_LIBS
20577fi
20578{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
20579printf "%s\n" "$ac_cv_lib_umem_umem_alloc" >&6; }
20580if test "x$ac_cv_lib_umem_umem_alloc" = xyes
20581then :
20582  malloc_debug_env='LD_PRELOAD=libumem.so UMEM_DEBUG=default'
20583fi
20584
20585        ;;
20586    *-gnu*) # GNU libc - Value is used as a single byte bit pattern,
20587        # both directly and inverted, so should not be 0 or 255.
20588        malloc_debug_env='MALLOC_PERTURB_=15'
20589        ;;
20590    darwin*)
20591        malloc_debug_env='MallocPreScribble=1 MallocScribble=1 DYLD_INSERT_LIBRARIES=/usr/lib/libgmalloc.dylib'
20592        ;;
20593    *bsd*)
20594        malloc_debug_env='MallocPreScribble=1 MallocScribble=1'
20595        ;;
20596esac
20597
20598# User supplied flags override default flags
20599if test "x$XORG_MALLOC_DEBUG_ENV" != "x"; then
20600    malloc_debug_env="$XORG_MALLOC_DEBUG_ENV"
20601fi
20602
20603XORG_MALLOC_DEBUG_ENV=$malloc_debug_env
20604
20605
20606if test "x$enable_unit_tests" != "xno" ; then
20607	ac_fn_c_check_func "$LINENO" "malloc_usable_size" "ac_cv_func_malloc_usable_size"
20608if test "x$ac_cv_func_malloc_usable_size" = xyes
20609then :
20610  printf "%s\n" "#define HAVE_MALLOC_USABLE_SIZE 1" >>confdefs.h
20611
20612fi
20613
20614	ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
20615if test "x$ac_cv_header_malloc_h" = xyes
20616then :
20617  printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h
20618
20619fi
20620
20621fi
20622
20623ac_config_files="$ac_config_files Makefile examples/Makefile include/Makefile man/Makefile specs/Makefile specs/libXaw.ent src/Makefile"
20624
20625
20626if test "x$build_v6" = xyes; then
20627   ac_config_files="$ac_config_files xaw6.pc"
20628
20629fi
20630
20631if test "x$build_v7" = xyes; then
20632   ac_config_files="$ac_config_files xaw7.pc"
20633
20634fi
20635
20636cat >confcache <<\_ACEOF
20637# This file is a shell script that caches the results of configure
20638# tests run on this system so they can be shared between configure
20639# scripts and configure runs, see configure's option --config-cache.
20640# It is not useful on other systems.  If it contains results you don't
20641# want to keep, you may remove or edit it.
20642#
20643# config.status only pays attention to the cache file if you give it
20644# the --recheck option to rerun configure.
20645#
20646# `ac_cv_env_foo' variables (set or unset) will be overridden when
20647# loading this file, other *unset* `ac_cv_foo' will be assigned the
20648# following values.
20649
20650_ACEOF
20651
20652# The following way of writing the cache mishandles newlines in values,
20653# but we know of no workaround that is simple, portable, and efficient.
20654# So, we kill variables containing newlines.
20655# Ultrix sh set writes to stderr and can't be redirected directly,
20656# and sets the high bit in the cache file unless we assign to the vars.
20657(
20658  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20659    eval ac_val=\$$ac_var
20660    case $ac_val in #(
20661    *${as_nl}*)
20662      case $ac_var in #(
20663      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20664printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20665      esac
20666      case $ac_var in #(
20667      _ | IFS | as_nl) ;; #(
20668      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20669      *) { eval $ac_var=; unset $ac_var;} ;;
20670      esac ;;
20671    esac
20672  done
20673
20674  (set) 2>&1 |
20675    case $as_nl`(ac_space=' '; set) 2>&1` in #(
20676    *${as_nl}ac_space=\ *)
20677      # `set' does not quote correctly, so add quotes: double-quote
20678      # substitution turns \\\\ into \\, and sed turns \\ into \.
20679      sed -n \
20680	"s/'/'\\\\''/g;
20681	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20682      ;; #(
20683    *)
20684      # `set' quotes correctly as required by POSIX, so do not add quotes.
20685      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20686      ;;
20687    esac |
20688    sort
20689) |
20690  sed '
20691     /^ac_cv_env_/b end
20692     t clear
20693     :clear
20694     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
20695     t end
20696     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20697     :end' >>confcache
20698if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20699  if test -w "$cache_file"; then
20700    if test "x$cache_file" != "x/dev/null"; then
20701      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20702printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
20703      if test ! -f "$cache_file" || test -h "$cache_file"; then
20704	cat confcache >"$cache_file"
20705      else
20706        case $cache_file in #(
20707        */* | ?:*)
20708	  mv -f confcache "$cache_file"$$ &&
20709	  mv -f "$cache_file"$$ "$cache_file" ;; #(
20710        *)
20711	  mv -f confcache "$cache_file" ;;
20712	esac
20713      fi
20714    fi
20715  else
20716    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20717printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
20718  fi
20719fi
20720rm -f confcache
20721
20722test "x$prefix" = xNONE && prefix=$ac_default_prefix
20723# Let make expand exec_prefix.
20724test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20725
20726DEFS=-DHAVE_CONFIG_H
20727
20728ac_libobjs=
20729ac_ltlibobjs=
20730U=
20731for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20732  # 1. Remove the extension, and $U if already installed.
20733  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20734  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
20735  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20736  #    will be set to the directory where LIBOBJS objects are built.
20737  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20738  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20739done
20740LIBOBJS=$ac_libobjs
20741
20742LTLIBOBJS=$ac_ltlibobjs
20743
20744
20745{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20746printf %s "checking that generated files are newer than configure... " >&6; }
20747   if test -n "$am_sleep_pid"; then
20748     # Hide warnings about reused PIDs.
20749     wait $am_sleep_pid 2>/dev/null
20750   fi
20751   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
20752printf "%s\n" "done" >&6; }
20753 if test -n "$EXEEXT"; then
20754  am__EXEEXT_TRUE=
20755  am__EXEEXT_FALSE='#'
20756else
20757  am__EXEEXT_TRUE='#'
20758  am__EXEEXT_FALSE=
20759fi
20760
20761if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20762  as_fn_error $? "conditional \"AMDEP\" was never defined.
20763Usually this means the macro was only invoked conditionally." "$LINENO" 5
20764fi
20765if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20766  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20767Usually this means the macro was only invoked conditionally." "$LINENO" 5
20768fi
20769if test -z "${ENABLE_SPECS_TRUE}" && test -z "${ENABLE_SPECS_FALSE}"; then
20770  as_fn_error $? "conditional \"ENABLE_SPECS\" was never defined.
20771Usually this means the macro was only invoked conditionally." "$LINENO" 5
20772fi
20773if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then
20774  as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined.
20775Usually this means the macro was only invoked conditionally." "$LINENO" 5
20776fi
20777if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
20778  as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined.
20779Usually this means the macro was only invoked conditionally." "$LINENO" 5
20780fi
20781if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then
20782  as_fn_error $? "conditional \"HAVE_FOP\" was never defined.
20783Usually this means the macro was only invoked conditionally." "$LINENO" 5
20784fi
20785if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then
20786  as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined.
20787Usually this means the macro was only invoked conditionally." "$LINENO" 5
20788fi
20789if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then
20790  as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined.
20791Usually this means the macro was only invoked conditionally." "$LINENO" 5
20792fi
20793if test -z "${PLATFORM_WIN32_TRUE}" && test -z "${PLATFORM_WIN32_FALSE}"; then
20794  as_fn_error $? "conditional \"PLATFORM_WIN32\" was never defined.
20795Usually this means the macro was only invoked conditionally." "$LINENO" 5
20796fi
20797if test -z "${PLATFORM_DARWIN_TRUE}" && test -z "${PLATFORM_DARWIN_FALSE}"; then
20798  as_fn_error $? "conditional \"PLATFORM_DARWIN\" was never defined.
20799Usually this means the macro was only invoked conditionally." "$LINENO" 5
20800fi
20801if test -z "${BUILD_XAW6_TRUE}" && test -z "${BUILD_XAW6_FALSE}"; then
20802  as_fn_error $? "conditional \"BUILD_XAW6\" was never defined.
20803Usually this means the macro was only invoked conditionally." "$LINENO" 5
20804fi
20805if test -z "${BUILD_XAW7_TRUE}" && test -z "${BUILD_XAW7_FALSE}"; then
20806  as_fn_error $? "conditional \"BUILD_XAW7\" was never defined.
20807Usually this means the macro was only invoked conditionally." "$LINENO" 5
20808fi
20809if test -z "${ENABLE_UNIT_TESTS_TRUE}" && test -z "${ENABLE_UNIT_TESTS_FALSE}"; then
20810  as_fn_error $? "conditional \"ENABLE_UNIT_TESTS\" was never defined.
20811Usually this means the macro was only invoked conditionally." "$LINENO" 5
20812fi
20813
20814: "${CONFIG_STATUS=./config.status}"
20815ac_write_fail=0
20816ac_clean_files_save=$ac_clean_files
20817ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20818{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20819printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
20820as_write_fail=0
20821cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20822#! $SHELL
20823# Generated by $as_me.
20824# Run this file to recreate the current configuration.
20825# Compiler output produced by configure, useful for debugging
20826# configure, is in config.log if it exists.
20827
20828debug=false
20829ac_cs_recheck=false
20830ac_cs_silent=false
20831
20832SHELL=\${CONFIG_SHELL-$SHELL}
20833export SHELL
20834_ASEOF
20835cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20836## -------------------- ##
20837## M4sh Initialization. ##
20838## -------------------- ##
20839
20840# Be more Bourne compatible
20841DUALCASE=1; export DUALCASE # for MKS sh
20842as_nop=:
20843if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
20844then :
20845  emulate sh
20846  NULLCMD=:
20847  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20848  # is contrary to our usage.  Disable this feature.
20849  alias -g '${1+"$@"}'='"$@"'
20850  setopt NO_GLOB_SUBST
20851else $as_nop
20852  case `(set -o) 2>/dev/null` in #(
20853  *posix*) :
20854    set -o posix ;; #(
20855  *) :
20856     ;;
20857esac
20858fi
20859
20860
20861
20862# Reset variables that may have inherited troublesome values from
20863# the environment.
20864
20865# IFS needs to be set, to space, tab, and newline, in precisely that order.
20866# (If _AS_PATH_WALK were called with IFS unset, it would have the
20867# side effect of setting IFS to empty, thus disabling word splitting.)
20868# Quoting is to prevent editors from complaining about space-tab.
20869as_nl='
20870'
20871export as_nl
20872IFS=" ""	$as_nl"
20873
20874PS1='$ '
20875PS2='> '
20876PS4='+ '
20877
20878# Ensure predictable behavior from utilities with locale-dependent output.
20879LC_ALL=C
20880export LC_ALL
20881LANGUAGE=C
20882export LANGUAGE
20883
20884# We cannot yet rely on "unset" to work, but we need these variables
20885# to be unset--not just set to an empty or harmless value--now, to
20886# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
20887# also avoids known problems related to "unset" and subshell syntax
20888# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
20889for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
20890do eval test \${$as_var+y} \
20891  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20892done
20893
20894# Ensure that fds 0, 1, and 2 are open.
20895if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
20896if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
20897if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
20898
20899# The user is always right.
20900if ${PATH_SEPARATOR+false} :; then
20901  PATH_SEPARATOR=:
20902  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20903    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20904      PATH_SEPARATOR=';'
20905  }
20906fi
20907
20908
20909# Find who we are.  Look in the path if we contain no directory separator.
20910as_myself=
20911case $0 in #((
20912  *[\\/]* ) as_myself=$0 ;;
20913  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20914for as_dir in $PATH
20915do
20916  IFS=$as_save_IFS
20917  case $as_dir in #(((
20918    '') as_dir=./ ;;
20919    */) ;;
20920    *) as_dir=$as_dir/ ;;
20921  esac
20922    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
20923  done
20924IFS=$as_save_IFS
20925
20926     ;;
20927esac
20928# We did not find ourselves, most probably we were run as `sh COMMAND'
20929# in which case we are not to be found in the path.
20930if test "x$as_myself" = x; then
20931  as_myself=$0
20932fi
20933if test ! -f "$as_myself"; then
20934  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20935  exit 1
20936fi
20937
20938
20939
20940# as_fn_error STATUS ERROR [LINENO LOG_FD]
20941# ----------------------------------------
20942# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20943# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20944# script with STATUS, using 1 if that was 0.
20945as_fn_error ()
20946{
20947  as_status=$1; test $as_status -eq 0 && as_status=1
20948  if test "$4"; then
20949    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20950    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20951  fi
20952  printf "%s\n" "$as_me: error: $2" >&2
20953  as_fn_exit $as_status
20954} # as_fn_error
20955
20956
20957
20958# as_fn_set_status STATUS
20959# -----------------------
20960# Set $? to STATUS, without forking.
20961as_fn_set_status ()
20962{
20963  return $1
20964} # as_fn_set_status
20965
20966# as_fn_exit STATUS
20967# -----------------
20968# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20969as_fn_exit ()
20970{
20971  set +e
20972  as_fn_set_status $1
20973  exit $1
20974} # as_fn_exit
20975
20976# as_fn_unset VAR
20977# ---------------
20978# Portably unset VAR.
20979as_fn_unset ()
20980{
20981  { eval $1=; unset $1;}
20982}
20983as_unset=as_fn_unset
20984
20985# as_fn_append VAR VALUE
20986# ----------------------
20987# Append the text in VALUE to the end of the definition contained in VAR. Take
20988# advantage of any shell optimizations that allow amortized linear growth over
20989# repeated appends, instead of the typical quadratic growth present in naive
20990# implementations.
20991if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
20992then :
20993  eval 'as_fn_append ()
20994  {
20995    eval $1+=\$2
20996  }'
20997else $as_nop
20998  as_fn_append ()
20999  {
21000    eval $1=\$$1\$2
21001  }
21002fi # as_fn_append
21003
21004# as_fn_arith ARG...
21005# ------------------
21006# Perform arithmetic evaluation on the ARGs, and store the result in the
21007# global $as_val. Take advantage of shells that can avoid forks. The arguments
21008# must be portable across $(()) and expr.
21009if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
21010then :
21011  eval 'as_fn_arith ()
21012  {
21013    as_val=$(( $* ))
21014  }'
21015else $as_nop
21016  as_fn_arith ()
21017  {
21018    as_val=`expr "$@" || test $? -eq 1`
21019  }
21020fi # as_fn_arith
21021
21022
21023if expr a : '\(a\)' >/dev/null 2>&1 &&
21024   test "X`expr 00001 : '.*\(...\)'`" = X001; then
21025  as_expr=expr
21026else
21027  as_expr=false
21028fi
21029
21030if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21031  as_basename=basename
21032else
21033  as_basename=false
21034fi
21035
21036if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21037  as_dirname=dirname
21038else
21039  as_dirname=false
21040fi
21041
21042as_me=`$as_basename -- "$0" ||
21043$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21044	 X"$0" : 'X\(//\)$' \| \
21045	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21046printf "%s\n" X/"$0" |
21047    sed '/^.*\/\([^/][^/]*\)\/*$/{
21048	    s//\1/
21049	    q
21050	  }
21051	  /^X\/\(\/\/\)$/{
21052	    s//\1/
21053	    q
21054	  }
21055	  /^X\/\(\/\).*/{
21056	    s//\1/
21057	    q
21058	  }
21059	  s/.*/./; q'`
21060
21061# Avoid depending upon Character Ranges.
21062as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21063as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21064as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21065as_cr_digits='0123456789'
21066as_cr_alnum=$as_cr_Letters$as_cr_digits
21067
21068
21069# Determine whether it's possible to make 'echo' print without a newline.
21070# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
21071# for compatibility with existing Makefiles.
21072ECHO_C= ECHO_N= ECHO_T=
21073case `echo -n x` in #(((((
21074-n*)
21075  case `echo 'xy\c'` in
21076  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
21077  xy)  ECHO_C='\c';;
21078  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
21079       ECHO_T='	';;
21080  esac;;
21081*)
21082  ECHO_N='-n';;
21083esac
21084
21085# For backward compatibility with old third-party macros, we provide
21086# the shell variables $as_echo and $as_echo_n.  New code should use
21087# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
21088as_echo='printf %s\n'
21089as_echo_n='printf %s'
21090
21091rm -f conf$$ conf$$.exe conf$$.file
21092if test -d conf$$.dir; then
21093  rm -f conf$$.dir/conf$$.file
21094else
21095  rm -f conf$$.dir
21096  mkdir conf$$.dir 2>/dev/null
21097fi
21098if (echo >conf$$.file) 2>/dev/null; then
21099  if ln -s conf$$.file conf$$ 2>/dev/null; then
21100    as_ln_s='ln -s'
21101    # ... but there are two gotchas:
21102    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21103    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21104    # In both cases, we have to default to `cp -pR'.
21105    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21106      as_ln_s='cp -pR'
21107  elif ln conf$$.file conf$$ 2>/dev/null; then
21108    as_ln_s=ln
21109  else
21110    as_ln_s='cp -pR'
21111  fi
21112else
21113  as_ln_s='cp -pR'
21114fi
21115rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21116rmdir conf$$.dir 2>/dev/null
21117
21118
21119# as_fn_mkdir_p
21120# -------------
21121# Create "$as_dir" as a directory, including parents if necessary.
21122as_fn_mkdir_p ()
21123{
21124
21125  case $as_dir in #(
21126  -*) as_dir=./$as_dir;;
21127  esac
21128  test -d "$as_dir" || eval $as_mkdir_p || {
21129    as_dirs=
21130    while :; do
21131      case $as_dir in #(
21132      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21133      *) as_qdir=$as_dir;;
21134      esac
21135      as_dirs="'$as_qdir' $as_dirs"
21136      as_dir=`$as_dirname -- "$as_dir" ||
21137$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21138	 X"$as_dir" : 'X\(//\)[^/]' \| \
21139	 X"$as_dir" : 'X\(//\)$' \| \
21140	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21141printf "%s\n" X"$as_dir" |
21142    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21143	    s//\1/
21144	    q
21145	  }
21146	  /^X\(\/\/\)[^/].*/{
21147	    s//\1/
21148	    q
21149	  }
21150	  /^X\(\/\/\)$/{
21151	    s//\1/
21152	    q
21153	  }
21154	  /^X\(\/\).*/{
21155	    s//\1/
21156	    q
21157	  }
21158	  s/.*/./; q'`
21159      test -d "$as_dir" && break
21160    done
21161    test -z "$as_dirs" || eval "mkdir $as_dirs"
21162  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21163
21164
21165} # as_fn_mkdir_p
21166if mkdir -p . 2>/dev/null; then
21167  as_mkdir_p='mkdir -p "$as_dir"'
21168else
21169  test -d ./-p && rmdir ./-p
21170  as_mkdir_p=false
21171fi
21172
21173
21174# as_fn_executable_p FILE
21175# -----------------------
21176# Test if FILE is an executable regular file.
21177as_fn_executable_p ()
21178{
21179  test -f "$1" && test -x "$1"
21180} # as_fn_executable_p
21181as_test_x='test -x'
21182as_executable_p=as_fn_executable_p
21183
21184# Sed expression to map a string onto a valid CPP name.
21185as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21186
21187# Sed expression to map a string onto a valid variable name.
21188as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21189
21190
21191exec 6>&1
21192## ----------------------------------- ##
21193## Main body of $CONFIG_STATUS script. ##
21194## ----------------------------------- ##
21195_ASEOF
21196test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21197
21198cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21199# Save the log message, to keep $0 and so on meaningful, and to
21200# report actual input values of CONFIG_FILES etc. instead of their
21201# values after options handling.
21202ac_log="
21203This file was extended by libXaw $as_me 1.0.16, which was
21204generated by GNU Autoconf 2.71.  Invocation command line was
21205
21206  CONFIG_FILES    = $CONFIG_FILES
21207  CONFIG_HEADERS  = $CONFIG_HEADERS
21208  CONFIG_LINKS    = $CONFIG_LINKS
21209  CONFIG_COMMANDS = $CONFIG_COMMANDS
21210  $ $0 $@
21211
21212on `(hostname || uname -n) 2>/dev/null | sed 1q`
21213"
21214
21215_ACEOF
21216
21217case $ac_config_files in *"
21218"*) set x $ac_config_files; shift; ac_config_files=$*;;
21219esac
21220
21221case $ac_config_headers in *"
21222"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21223esac
21224
21225
21226cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21227# Files that config.status was made for.
21228config_files="$ac_config_files"
21229config_headers="$ac_config_headers"
21230config_commands="$ac_config_commands"
21231
21232_ACEOF
21233
21234cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21235ac_cs_usage="\
21236\`$as_me' instantiates files and other configuration actions
21237from templates according to the current configuration.  Unless the files
21238and actions are specified as TAGs, all are instantiated by default.
21239
21240Usage: $0 [OPTION]... [TAG]...
21241
21242  -h, --help       print this help, then exit
21243  -V, --version    print version number and configuration settings, then exit
21244      --config     print configuration, then exit
21245  -q, --quiet, --silent
21246                   do not print progress messages
21247  -d, --debug      don't remove temporary files
21248      --recheck    update $as_me by reconfiguring in the same conditions
21249      --file=FILE[:TEMPLATE]
21250                   instantiate the configuration file FILE
21251      --header=FILE[:TEMPLATE]
21252                   instantiate the configuration header FILE
21253
21254Configuration files:
21255$config_files
21256
21257Configuration headers:
21258$config_headers
21259
21260Configuration commands:
21261$config_commands
21262
21263Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxaw/-/issues>."
21264
21265_ACEOF
21266ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
21267ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
21268cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21269ac_cs_config='$ac_cs_config_escaped'
21270ac_cs_version="\\
21271libXaw config.status 1.0.16
21272configured by $0, generated by GNU Autoconf 2.71,
21273  with options \\"\$ac_cs_config\\"
21274
21275Copyright (C) 2021 Free Software Foundation, Inc.
21276This config.status script is free software; the Free Software Foundation
21277gives unlimited permission to copy, distribute and modify it."
21278
21279ac_pwd='$ac_pwd'
21280srcdir='$srcdir'
21281INSTALL='$INSTALL'
21282MKDIR_P='$MKDIR_P'
21283AWK='$AWK'
21284test -n "\$AWK" || AWK=awk
21285_ACEOF
21286
21287cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21288# The default lists apply if the user does not specify any file.
21289ac_need_defaults=:
21290while test $# != 0
21291do
21292  case $1 in
21293  --*=?*)
21294    ac_option=`expr "X$1" : 'X\([^=]*\)='`
21295    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21296    ac_shift=:
21297    ;;
21298  --*=)
21299    ac_option=`expr "X$1" : 'X\([^=]*\)='`
21300    ac_optarg=
21301    ac_shift=:
21302    ;;
21303  *)
21304    ac_option=$1
21305    ac_optarg=$2
21306    ac_shift=shift
21307    ;;
21308  esac
21309
21310  case $ac_option in
21311  # Handling of the options.
21312  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21313    ac_cs_recheck=: ;;
21314  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21315    printf "%s\n" "$ac_cs_version"; exit ;;
21316  --config | --confi | --conf | --con | --co | --c )
21317    printf "%s\n" "$ac_cs_config"; exit ;;
21318  --debug | --debu | --deb | --de | --d | -d )
21319    debug=: ;;
21320  --file | --fil | --fi | --f )
21321    $ac_shift
21322    case $ac_optarg in
21323    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21324    '') as_fn_error $? "missing file argument" ;;
21325    esac
21326    as_fn_append CONFIG_FILES " '$ac_optarg'"
21327    ac_need_defaults=false;;
21328  --header | --heade | --head | --hea )
21329    $ac_shift
21330    case $ac_optarg in
21331    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21332    esac
21333    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21334    ac_need_defaults=false;;
21335  --he | --h)
21336    # Conflict between --help and --header
21337    as_fn_error $? "ambiguous option: \`$1'
21338Try \`$0 --help' for more information.";;
21339  --help | --hel | -h )
21340    printf "%s\n" "$ac_cs_usage"; exit ;;
21341  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21342  | -silent | --silent | --silen | --sile | --sil | --si | --s)
21343    ac_cs_silent=: ;;
21344
21345  # This is an error.
21346  -*) as_fn_error $? "unrecognized option: \`$1'
21347Try \`$0 --help' for more information." ;;
21348
21349  *) as_fn_append ac_config_targets " $1"
21350     ac_need_defaults=false ;;
21351
21352  esac
21353  shift
21354done
21355
21356ac_configure_extra_args=
21357
21358if $ac_cs_silent; then
21359  exec 6>/dev/null
21360  ac_configure_extra_args="$ac_configure_extra_args --silent"
21361fi
21362
21363_ACEOF
21364cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21365if \$ac_cs_recheck; then
21366  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21367  shift
21368  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
21369  CONFIG_SHELL='$SHELL'
21370  export CONFIG_SHELL
21371  exec "\$@"
21372fi
21373
21374_ACEOF
21375cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21376exec 5>>config.log
21377{
21378  echo
21379  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21380## Running $as_me. ##
21381_ASBOX
21382  printf "%s\n" "$ac_log"
21383} >&5
21384
21385_ACEOF
21386cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21387#
21388# INIT-COMMANDS
21389#
21390AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
21391
21392
21393# The HP-UX ksh and POSIX shell print the target directory to stdout
21394# if CDPATH is set.
21395(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21396
21397sed_quote_subst='$sed_quote_subst'
21398double_quote_subst='$double_quote_subst'
21399delay_variable_subst='$delay_variable_subst'
21400macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21401macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21402enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21403enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21404pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21405enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21406shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
21407SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21408ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
21409PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
21410host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21411host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21412host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21413build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21414build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21415build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21416SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21417Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21418GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21419EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21420FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21421LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21422NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21423LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21424max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21425ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21426exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21427lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21428lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21429lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21430lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21431lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21432reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21433reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21434FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
21435OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21436deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21437file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21438file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21439want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21440DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21441sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21442AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21443lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
21444AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21445archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
21446STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21447RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21448old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21449old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21450old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21451lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21452CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21453CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21454compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21455GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21456lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
21457lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
21458lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
21459lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
21460lt_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"`'
21461lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
21462nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
21463lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
21464lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
21465objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
21466MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
21467lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
21468lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
21469lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
21470lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
21471lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
21472need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
21473MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
21474DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21475NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21476LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21477OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21478OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21479libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21480shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21481extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21482archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21483enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21484export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21485whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21486compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21487old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21488old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21489archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21490archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21491module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21492module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21493with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21494allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21495no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21496hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
21497hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21498hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21499hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21500hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21501hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21502hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21503inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21504link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21505always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21506export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21507exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21508include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21509prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21510postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
21511file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21512variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21513need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21514need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21515version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21516runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21517shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21518shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21519libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21520library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21521soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21522install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21523postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21524postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21525finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21526finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21527hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21528sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21529configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
21530configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
21531hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21532enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21533enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21534enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21535old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21536striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21537
21538LTCC='$LTCC'
21539LTCFLAGS='$LTCFLAGS'
21540compiler='$compiler_DEFAULT'
21541
21542# A function that is used when there is no print builtin or printf.
21543func_fallback_echo ()
21544{
21545  eval 'cat <<_LTECHO_EOF
21546\$1
21547_LTECHO_EOF'
21548}
21549
21550# Quote evaled strings.
21551for var in SHELL \
21552ECHO \
21553PATH_SEPARATOR \
21554SED \
21555GREP \
21556EGREP \
21557FGREP \
21558LD \
21559NM \
21560LN_S \
21561lt_SP2NL \
21562lt_NL2SP \
21563reload_flag \
21564FILECMD \
21565OBJDUMP \
21566deplibs_check_method \
21567file_magic_cmd \
21568file_magic_glob \
21569want_nocaseglob \
21570DLLTOOL \
21571sharedlib_from_linklib_cmd \
21572AR \
21573archiver_list_spec \
21574STRIP \
21575RANLIB \
21576CC \
21577CFLAGS \
21578compiler \
21579lt_cv_sys_global_symbol_pipe \
21580lt_cv_sys_global_symbol_to_cdecl \
21581lt_cv_sys_global_symbol_to_import \
21582lt_cv_sys_global_symbol_to_c_name_address \
21583lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21584lt_cv_nm_interface \
21585nm_file_list_spec \
21586lt_cv_truncate_bin \
21587lt_prog_compiler_no_builtin_flag \
21588lt_prog_compiler_pic \
21589lt_prog_compiler_wl \
21590lt_prog_compiler_static \
21591lt_cv_prog_compiler_c_o \
21592need_locks \
21593MANIFEST_TOOL \
21594DSYMUTIL \
21595NMEDIT \
21596LIPO \
21597OTOOL \
21598OTOOL64 \
21599shrext_cmds \
21600export_dynamic_flag_spec \
21601whole_archive_flag_spec \
21602compiler_needs_object \
21603with_gnu_ld \
21604allow_undefined_flag \
21605no_undefined_flag \
21606hardcode_libdir_flag_spec \
21607hardcode_libdir_separator \
21608exclude_expsyms \
21609include_expsyms \
21610file_list_spec \
21611variables_saved_for_relink \
21612libname_spec \
21613library_names_spec \
21614soname_spec \
21615install_override_mode \
21616finish_eval \
21617old_striplib \
21618striplib; do
21619    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21620    *[\\\\\\\`\\"\\\$]*)
21621      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21622      ;;
21623    *)
21624      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21625      ;;
21626    esac
21627done
21628
21629# Double-quote double-evaled strings.
21630for var in reload_cmds \
21631old_postinstall_cmds \
21632old_postuninstall_cmds \
21633old_archive_cmds \
21634extract_expsyms_cmds \
21635old_archive_from_new_cmds \
21636old_archive_from_expsyms_cmds \
21637archive_cmds \
21638archive_expsym_cmds \
21639module_cmds \
21640module_expsym_cmds \
21641export_symbols_cmds \
21642prelink_cmds \
21643postlink_cmds \
21644postinstall_cmds \
21645postuninstall_cmds \
21646finish_cmds \
21647sys_lib_search_path_spec \
21648configure_time_dlsearch_path \
21649configure_time_lt_sys_library_path; do
21650    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21651    *[\\\\\\\`\\"\\\$]*)
21652      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21653      ;;
21654    *)
21655      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21656      ;;
21657    esac
21658done
21659
21660ac_aux_dir='$ac_aux_dir'
21661
21662# See if we are running on zsh, and set the options that allow our
21663# commands through without removal of \ escapes INIT.
21664if test -n "\${ZSH_VERSION+set}"; then
21665   setopt NO_GLOB_SUBST
21666fi
21667
21668
21669    PACKAGE='$PACKAGE'
21670    VERSION='$VERSION'
21671    RM='$RM'
21672    ofile='$ofile'
21673
21674
21675
21676
21677_ACEOF
21678
21679cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21680
21681# Handling of arguments.
21682for ac_config_target in $ac_config_targets
21683do
21684  case $ac_config_target in
21685    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21686    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21687    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21688    "libtool_hack") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool_hack" ;;
21689    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21690    "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
21691    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
21692    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
21693    "specs/Makefile") CONFIG_FILES="$CONFIG_FILES specs/Makefile" ;;
21694    "specs/libXaw.ent") CONFIG_FILES="$CONFIG_FILES specs/libXaw.ent" ;;
21695    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21696    "xaw6.pc") CONFIG_FILES="$CONFIG_FILES xaw6.pc" ;;
21697    "xaw7.pc") CONFIG_FILES="$CONFIG_FILES xaw7.pc" ;;
21698
21699  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21700  esac
21701done
21702
21703
21704# If the user did not use the arguments to specify the items to instantiate,
21705# then the envvar interface is used.  Set only those that are not.
21706# We use the long form for the default assignment because of an extremely
21707# bizarre bug on SunOS 4.1.3.
21708if $ac_need_defaults; then
21709  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
21710  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
21711  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
21712fi
21713
21714# Have a temporary directory for convenience.  Make it in the build tree
21715# simply because there is no reason against having it here, and in addition,
21716# creating and moving files from /tmp can sometimes cause problems.
21717# Hook for its removal unless debugging.
21718# Note that there is a small window in which the directory will not be cleaned:
21719# after its creation but before its name has been assigned to `$tmp'.
21720$debug ||
21721{
21722  tmp= ac_tmp=
21723  trap 'exit_status=$?
21724  : "${ac_tmp:=$tmp}"
21725  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21726' 0
21727  trap 'as_fn_exit 1' 1 2 13 15
21728}
21729# Create a (secure) tmp directory for tmp files.
21730
21731{
21732  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21733  test -d "$tmp"
21734}  ||
21735{
21736  tmp=./conf$$-$RANDOM
21737  (umask 077 && mkdir "$tmp")
21738} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21739ac_tmp=$tmp
21740
21741# Set up the scripts for CONFIG_FILES section.
21742# No need to generate them if there are no CONFIG_FILES.
21743# This happens for instance with `./config.status config.h'.
21744if test -n "$CONFIG_FILES"; then
21745
21746
21747ac_cr=`echo X | tr X '\015'`
21748# On cygwin, bash can eat \r inside `` if the user requested igncr.
21749# But we know of no other shell where ac_cr would be empty at this
21750# point, so we can use a bashism as a fallback.
21751if test "x$ac_cr" = x; then
21752  eval ac_cr=\$\'\\r\'
21753fi
21754ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21755if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21756  ac_cs_awk_cr='\\r'
21757else
21758  ac_cs_awk_cr=$ac_cr
21759fi
21760
21761echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21762_ACEOF
21763
21764
21765{
21766  echo "cat >conf$$subs.awk <<_ACEOF" &&
21767  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21768  echo "_ACEOF"
21769} >conf$$subs.sh ||
21770  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21771ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21772ac_delim='%!_!# '
21773for ac_last_try in false false false false false :; do
21774  . ./conf$$subs.sh ||
21775    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21776
21777  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21778  if test $ac_delim_n = $ac_delim_num; then
21779    break
21780  elif $ac_last_try; then
21781    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21782  else
21783    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21784  fi
21785done
21786rm -f conf$$subs.sh
21787
21788cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21789cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21790_ACEOF
21791sed -n '
21792h
21793s/^/S["/; s/!.*/"]=/
21794p
21795g
21796s/^[^!]*!//
21797:repl
21798t repl
21799s/'"$ac_delim"'$//
21800t delim
21801:nl
21802h
21803s/\(.\{148\}\)..*/\1/
21804t more1
21805s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21806p
21807n
21808b repl
21809:more1
21810s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21811p
21812g
21813s/.\{148\}//
21814t nl
21815:delim
21816h
21817s/\(.\{148\}\)..*/\1/
21818t more2
21819s/["\\]/\\&/g; s/^/"/; s/$/"/
21820p
21821b
21822:more2
21823s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21824p
21825g
21826s/.\{148\}//
21827t delim
21828' <conf$$subs.awk | sed '
21829/^[^""]/{
21830  N
21831  s/\n//
21832}
21833' >>$CONFIG_STATUS || ac_write_fail=1
21834rm -f conf$$subs.awk
21835cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21836_ACAWK
21837cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21838  for (key in S) S_is_set[key] = 1
21839  FS = ""
21840
21841}
21842{
21843  line = $ 0
21844  nfields = split(line, field, "@")
21845  substed = 0
21846  len = length(field[1])
21847  for (i = 2; i < nfields; i++) {
21848    key = field[i]
21849    keylen = length(key)
21850    if (S_is_set[key]) {
21851      value = S[key]
21852      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21853      len += length(value) + length(field[++i])
21854      substed = 1
21855    } else
21856      len += 1 + keylen
21857  }
21858
21859  print line
21860}
21861
21862_ACAWK
21863_ACEOF
21864cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21865if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21866  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21867else
21868  cat
21869fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21870  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21871_ACEOF
21872
21873# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21874# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21875# trailing colons and then remove the whole line if VPATH becomes empty
21876# (actually we leave an empty line to preserve line numbers).
21877if test "x$srcdir" = x.; then
21878  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
21879h
21880s///
21881s/^/:/
21882s/[	 ]*$/:/
21883s/:\$(srcdir):/:/g
21884s/:\${srcdir}:/:/g
21885s/:@srcdir@:/:/g
21886s/^:*//
21887s/:*$//
21888x
21889s/\(=[	 ]*\).*/\1/
21890G
21891s/\n//
21892s/^[^=]*=[	 ]*$//
21893}'
21894fi
21895
21896cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21897fi # test -n "$CONFIG_FILES"
21898
21899# Set up the scripts for CONFIG_HEADERS section.
21900# No need to generate them if there are no CONFIG_HEADERS.
21901# This happens for instance with `./config.status Makefile'.
21902if test -n "$CONFIG_HEADERS"; then
21903cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21904BEGIN {
21905_ACEOF
21906
21907# Transform confdefs.h into an awk script `defines.awk', embedded as
21908# here-document in config.status, that substitutes the proper values into
21909# config.h.in to produce config.h.
21910
21911# Create a delimiter string that does not exist in confdefs.h, to ease
21912# handling of long lines.
21913ac_delim='%!_!# '
21914for ac_last_try in false false :; do
21915  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21916  if test -z "$ac_tt"; then
21917    break
21918  elif $ac_last_try; then
21919    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21920  else
21921    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21922  fi
21923done
21924
21925# For the awk script, D is an array of macro values keyed by name,
21926# likewise P contains macro parameters if any.  Preserve backslash
21927# newline sequences.
21928
21929ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21930sed -n '
21931s/.\{148\}/&'"$ac_delim"'/g
21932t rset
21933:rset
21934s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
21935t def
21936d
21937:def
21938s/\\$//
21939t bsnl
21940s/["\\]/\\&/g
21941s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
21942D["\1"]=" \3"/p
21943s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
21944d
21945:bsnl
21946s/["\\]/\\&/g
21947s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
21948D["\1"]=" \3\\\\\\n"\\/p
21949t cont
21950s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21951t cont
21952d
21953:cont
21954n
21955s/.\{148\}/&'"$ac_delim"'/g
21956t clear
21957:clear
21958s/\\$//
21959t bsnlc
21960s/["\\]/\\&/g; s/^/"/; s/$/"/p
21961d
21962:bsnlc
21963s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21964b cont
21965' <confdefs.h | sed '
21966s/'"$ac_delim"'/"\\\
21967"/g' >>$CONFIG_STATUS || ac_write_fail=1
21968
21969cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21970  for (key in D) D_is_set[key] = 1
21971  FS = ""
21972}
21973/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21974  line = \$ 0
21975  split(line, arg, " ")
21976  if (arg[1] == "#") {
21977    defundef = arg[2]
21978    mac1 = arg[3]
21979  } else {
21980    defundef = substr(arg[1], 2)
21981    mac1 = arg[2]
21982  }
21983  split(mac1, mac2, "(") #)
21984  macro = mac2[1]
21985  prefix = substr(line, 1, index(line, defundef) - 1)
21986  if (D_is_set[macro]) {
21987    # Preserve the white space surrounding the "#".
21988    print prefix "define", macro P[macro] D[macro]
21989    next
21990  } else {
21991    # Replace #undef with comments.  This is necessary, for example,
21992    # in the case of _POSIX_SOURCE, which is predefined and required
21993    # on some systems where configure will not decide to define it.
21994    if (defundef == "undef") {
21995      print "/*", prefix defundef, macro, "*/"
21996      next
21997    }
21998  }
21999}
22000{ print }
22001_ACAWK
22002_ACEOF
22003cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22004  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
22005fi # test -n "$CONFIG_HEADERS"
22006
22007
22008eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
22009shift
22010for ac_tag
22011do
22012  case $ac_tag in
22013  :[FHLC]) ac_mode=$ac_tag; continue;;
22014  esac
22015  case $ac_mode$ac_tag in
22016  :[FHL]*:*);;
22017  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
22018  :[FH]-) ac_tag=-:-;;
22019  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22020  esac
22021  ac_save_IFS=$IFS
22022  IFS=:
22023  set x $ac_tag
22024  IFS=$ac_save_IFS
22025  shift
22026  ac_file=$1
22027  shift
22028
22029  case $ac_mode in
22030  :L) ac_source=$1;;
22031  :[FH])
22032    ac_file_inputs=
22033    for ac_f
22034    do
22035      case $ac_f in
22036      -) ac_f="$ac_tmp/stdin";;
22037      *) # Look for the file first in the build tree, then in the source tree
22038	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
22039	 # because $ac_f cannot contain `:'.
22040	 test -f "$ac_f" ||
22041	   case $ac_f in
22042	   [\\/$]*) false;;
22043	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22044	   esac ||
22045	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
22046      esac
22047      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22048      as_fn_append ac_file_inputs " '$ac_f'"
22049    done
22050
22051    # Let's still pretend it is `configure' which instantiates (i.e., don't
22052    # use $as_me), people would be surprised to read:
22053    #    /* config.h.  Generated by config.status.  */
22054    configure_input='Generated from '`
22055	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22056	`' by configure.'
22057    if test x"$ac_file" != x-; then
22058      configure_input="$ac_file.  $configure_input"
22059      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22060printf "%s\n" "$as_me: creating $ac_file" >&6;}
22061    fi
22062    # Neutralize special characters interpreted by sed in replacement strings.
22063    case $configure_input in #(
22064    *\&* | *\|* | *\\* )
22065       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
22066       sed 's/[\\\\&|]/\\\\&/g'`;; #(
22067    *) ac_sed_conf_input=$configure_input;;
22068    esac
22069
22070    case $ac_tag in
22071    *:-:* | *:-) cat >"$ac_tmp/stdin" \
22072      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
22073    esac
22074    ;;
22075  esac
22076
22077  ac_dir=`$as_dirname -- "$ac_file" ||
22078$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22079	 X"$ac_file" : 'X\(//\)[^/]' \| \
22080	 X"$ac_file" : 'X\(//\)$' \| \
22081	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22082printf "%s\n" X"$ac_file" |
22083    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22084	    s//\1/
22085	    q
22086	  }
22087	  /^X\(\/\/\)[^/].*/{
22088	    s//\1/
22089	    q
22090	  }
22091	  /^X\(\/\/\)$/{
22092	    s//\1/
22093	    q
22094	  }
22095	  /^X\(\/\).*/{
22096	    s//\1/
22097	    q
22098	  }
22099	  s/.*/./; q'`
22100  as_dir="$ac_dir"; as_fn_mkdir_p
22101  ac_builddir=.
22102
22103case "$ac_dir" in
22104.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22105*)
22106  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
22107  # A ".." for each directory in $ac_dir_suffix.
22108  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22109  case $ac_top_builddir_sub in
22110  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22111  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22112  esac ;;
22113esac
22114ac_abs_top_builddir=$ac_pwd
22115ac_abs_builddir=$ac_pwd$ac_dir_suffix
22116# for backward compatibility:
22117ac_top_builddir=$ac_top_build_prefix
22118
22119case $srcdir in
22120  .)  # We are building in place.
22121    ac_srcdir=.
22122    ac_top_srcdir=$ac_top_builddir_sub
22123    ac_abs_top_srcdir=$ac_pwd ;;
22124  [\\/]* | ?:[\\/]* )  # Absolute name.
22125    ac_srcdir=$srcdir$ac_dir_suffix;
22126    ac_top_srcdir=$srcdir
22127    ac_abs_top_srcdir=$srcdir ;;
22128  *) # Relative name.
22129    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22130    ac_top_srcdir=$ac_top_build_prefix$srcdir
22131    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22132esac
22133ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22134
22135
22136  case $ac_mode in
22137  :F)
22138  #
22139  # CONFIG_FILE
22140  #
22141
22142  case $INSTALL in
22143  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22144  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22145  esac
22146  ac_MKDIR_P=$MKDIR_P
22147  case $MKDIR_P in
22148  [\\/$]* | ?:[\\/]* ) ;;
22149  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22150  esac
22151_ACEOF
22152
22153cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22154# If the template does not know about datarootdir, expand it.
22155# FIXME: This hack should be removed a few years after 2.60.
22156ac_datarootdir_hack=; ac_datarootdir_seen=
22157ac_sed_dataroot='
22158/datarootdir/ {
22159  p
22160  q
22161}
22162/@datadir@/p
22163/@docdir@/p
22164/@infodir@/p
22165/@localedir@/p
22166/@mandir@/p'
22167case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22168*datarootdir*) ac_datarootdir_seen=yes;;
22169*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22170  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22171printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22172_ACEOF
22173cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22174  ac_datarootdir_hack='
22175  s&@datadir@&$datadir&g
22176  s&@docdir@&$docdir&g
22177  s&@infodir@&$infodir&g
22178  s&@localedir@&$localedir&g
22179  s&@mandir@&$mandir&g
22180  s&\\\${datarootdir}&$datarootdir&g' ;;
22181esac
22182_ACEOF
22183
22184# Neutralize VPATH when `$srcdir' = `.'.
22185# Shell code in configure.ac might set extrasub.
22186# FIXME: do we really want to maintain this feature?
22187cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22188ac_sed_extra="$ac_vpsub
22189$extrasub
22190_ACEOF
22191cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22192:t
22193/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22194s|@configure_input@|$ac_sed_conf_input|;t t
22195s&@top_builddir@&$ac_top_builddir_sub&;t t
22196s&@top_build_prefix@&$ac_top_build_prefix&;t t
22197s&@srcdir@&$ac_srcdir&;t t
22198s&@abs_srcdir@&$ac_abs_srcdir&;t t
22199s&@top_srcdir@&$ac_top_srcdir&;t t
22200s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22201s&@builddir@&$ac_builddir&;t t
22202s&@abs_builddir@&$ac_abs_builddir&;t t
22203s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22204s&@INSTALL@&$ac_INSTALL&;t t
22205s&@MKDIR_P@&$ac_MKDIR_P&;t t
22206$ac_datarootdir_hack
22207"
22208eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22209  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22210
22211test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22212  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22213  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
22214      "$ac_tmp/out"`; test -z "$ac_out"; } &&
22215  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22216which seems to be undefined.  Please make sure it is defined" >&5
22217printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22218which seems to be undefined.  Please make sure it is defined" >&2;}
22219
22220  rm -f "$ac_tmp/stdin"
22221  case $ac_file in
22222  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22223  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
22224  esac \
22225  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22226 ;;
22227  :H)
22228  #
22229  # CONFIG_HEADER
22230  #
22231  if test x"$ac_file" != x-; then
22232    {
22233      printf "%s\n" "/* $configure_input  */" >&1 \
22234      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22235    } >"$ac_tmp/config.h" \
22236      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22237    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22238      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22239printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
22240    else
22241      rm -f "$ac_file"
22242      mv "$ac_tmp/config.h" "$ac_file" \
22243	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
22244    fi
22245  else
22246    printf "%s\n" "/* $configure_input  */" >&1 \
22247      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22248      || as_fn_error $? "could not create -" "$LINENO" 5
22249  fi
22250# Compute "$ac_file"'s index in $config_headers.
22251_am_arg="$ac_file"
22252_am_stamp_count=1
22253for _am_header in $config_headers :; do
22254  case $_am_header in
22255    $_am_arg | $_am_arg:* )
22256      break ;;
22257    * )
22258      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22259  esac
22260done
22261echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22262$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22263	 X"$_am_arg" : 'X\(//\)[^/]' \| \
22264	 X"$_am_arg" : 'X\(//\)$' \| \
22265	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22266printf "%s\n" X"$_am_arg" |
22267    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22268	    s//\1/
22269	    q
22270	  }
22271	  /^X\(\/\/\)[^/].*/{
22272	    s//\1/
22273	    q
22274	  }
22275	  /^X\(\/\/\)$/{
22276	    s//\1/
22277	    q
22278	  }
22279	  /^X\(\/\).*/{
22280	    s//\1/
22281	    q
22282	  }
22283	  s/.*/./; q'`/stamp-h$_am_stamp_count
22284 ;;
22285
22286  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22287printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
22288 ;;
22289  esac
22290
22291
22292  case $ac_file$ac_mode in
22293    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22294  # Older Autoconf quotes --file arguments for eval, but not when files
22295  # are listed without --file.  Let's play safe and only enable the eval
22296  # if we detect the quoting.
22297  # TODO: see whether this extra hack can be removed once we start
22298  # requiring Autoconf 2.70 or later.
22299  case $CONFIG_FILES in #(
22300  *\'*) :
22301    eval set x "$CONFIG_FILES" ;; #(
22302  *) :
22303    set x $CONFIG_FILES ;; #(
22304  *) :
22305     ;;
22306esac
22307  shift
22308  # Used to flag and report bootstrapping failures.
22309  am_rc=0
22310  for am_mf
22311  do
22312    # Strip MF so we end up with the name of the file.
22313    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
22314    # Check whether this is an Automake generated Makefile which includes
22315    # dependency-tracking related rules and includes.
22316    # Grep'ing the whole file directly is not great: AIX grep has a line
22317    # limit of 2048, but all sed's we know have understand at least 4000.
22318    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
22319      || continue
22320    am_dirpart=`$as_dirname -- "$am_mf" ||
22321$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22322	 X"$am_mf" : 'X\(//\)[^/]' \| \
22323	 X"$am_mf" : 'X\(//\)$' \| \
22324	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22325printf "%s\n" X"$am_mf" |
22326    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22327	    s//\1/
22328	    q
22329	  }
22330	  /^X\(\/\/\)[^/].*/{
22331	    s//\1/
22332	    q
22333	  }
22334	  /^X\(\/\/\)$/{
22335	    s//\1/
22336	    q
22337	  }
22338	  /^X\(\/\).*/{
22339	    s//\1/
22340	    q
22341	  }
22342	  s/.*/./; q'`
22343    am_filepart=`$as_basename -- "$am_mf" ||
22344$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
22345	 X"$am_mf" : 'X\(//\)$' \| \
22346	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22347printf "%s\n" X/"$am_mf" |
22348    sed '/^.*\/\([^/][^/]*\)\/*$/{
22349	    s//\1/
22350	    q
22351	  }
22352	  /^X\/\(\/\/\)$/{
22353	    s//\1/
22354	    q
22355	  }
22356	  /^X\/\(\/\).*/{
22357	    s//\1/
22358	    q
22359	  }
22360	  s/.*/./; q'`
22361    { echo "$as_me:$LINENO: cd "$am_dirpart" \
22362      && sed -e '/# am--include-marker/d' "$am_filepart" \
22363        | $MAKE -f - am--depfiles" >&5
22364   (cd "$am_dirpart" \
22365      && sed -e '/# am--include-marker/d' "$am_filepart" \
22366        | $MAKE -f - am--depfiles) >&5 2>&5
22367   ac_status=$?
22368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22369   (exit $ac_status); } || am_rc=$?
22370  done
22371  if test $am_rc -ne 0; then
22372    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22373printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22374as_fn_error $? "Something went wrong bootstrapping makefile fragments
22375    for automatic dependency tracking.  If GNU make was not used, consider
22376    re-running the configure script with MAKE=\"gmake\" (or whatever is
22377    necessary).  You can also try re-running configure with the
22378    '--disable-dependency-tracking' option to at least be able to build
22379    the package (albeit without support for automatic dependency tracking).
22380See \`config.log' for more details" "$LINENO" 5; }
22381  fi
22382  { am_dirpart=; unset am_dirpart;}
22383  { am_filepart=; unset am_filepart;}
22384  { am_mf=; unset am_mf;}
22385  { am_rc=; unset am_rc;}
22386  rm -f conftest-deps.mk
22387}
22388 ;;
22389    "libtool":C)
22390
22391    # See if we are running on zsh, and set the options that allow our
22392    # commands through without removal of \ escapes.
22393    if test -n "${ZSH_VERSION+set}"; then
22394      setopt NO_GLOB_SUBST
22395    fi
22396
22397    cfgfile=${ofile}T
22398    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22399    $RM "$cfgfile"
22400
22401    cat <<_LT_EOF >> "$cfgfile"
22402#! $SHELL
22403# Generated automatically by $as_me ($PACKAGE) $VERSION
22404# NOTE: Changes made to this file will be lost: look at ltmain.sh.
22405
22406# Provide generalized library-building support services.
22407# Written by Gordon Matzigkeit, 1996
22408
22409# Copyright (C) 2014 Free Software Foundation, Inc.
22410# This is free software; see the source for copying conditions.  There is NO
22411# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
22412
22413# GNU Libtool is free software; you can redistribute it and/or modify
22414# it under the terms of the GNU General Public License as published by
22415# the Free Software Foundation; either version 2 of of the License, or
22416# (at your option) any later version.
22417#
22418# As a special exception to the GNU General Public License, if you
22419# distribute this file as part of a program or library that is built
22420# using GNU Libtool, you may include this file under the  same
22421# distribution terms that you use for the rest of that program.
22422#
22423# GNU Libtool is distributed in the hope that it will be useful, but
22424# WITHOUT ANY WARRANTY; without even the implied warranty of
22425# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22426# GNU General Public License for more details.
22427#
22428# You should have received a copy of the GNU General Public License
22429# along with this program.  If not, see <http://www.gnu.org/licenses/>.
22430
22431
22432# The names of the tagged configurations supported by this script.
22433available_tags=''
22434
22435# Configured defaults for sys_lib_dlsearch_path munging.
22436: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
22437
22438# ### BEGIN LIBTOOL CONFIG
22439
22440# Which release of libtool.m4 was used?
22441macro_version=$macro_version
22442macro_revision=$macro_revision
22443
22444# Whether or not to build shared libraries.
22445build_libtool_libs=$enable_shared
22446
22447# Whether or not to build static libraries.
22448build_old_libs=$enable_static
22449
22450# What type of objects to build.
22451pic_mode=$pic_mode
22452
22453# Whether or not to optimize for fast installation.
22454fast_install=$enable_fast_install
22455
22456# Shared archive member basename,for filename based shared library versioning on AIX.
22457shared_archive_member_spec=$shared_archive_member_spec
22458
22459# Shell to use when invoking shell scripts.
22460SHELL=$lt_SHELL
22461
22462# An echo program that protects backslashes.
22463ECHO=$lt_ECHO
22464
22465# The PATH separator for the build system.
22466PATH_SEPARATOR=$lt_PATH_SEPARATOR
22467
22468# The host system.
22469host_alias=$host_alias
22470host=$host
22471host_os=$host_os
22472
22473# The build system.
22474build_alias=$build_alias
22475build=$build
22476build_os=$build_os
22477
22478# A sed program that does not truncate output.
22479SED=$lt_SED
22480
22481# Sed that helps us avoid accidentally triggering echo(1) options like -n.
22482Xsed="\$SED -e 1s/^X//"
22483
22484# A grep program that handles long lines.
22485GREP=$lt_GREP
22486
22487# An ERE matcher.
22488EGREP=$lt_EGREP
22489
22490# A literal string matcher.
22491FGREP=$lt_FGREP
22492
22493# A BSD- or MS-compatible name lister.
22494NM=$lt_NM
22495
22496# Whether we need soft or hard links.
22497LN_S=$lt_LN_S
22498
22499# What is the maximum length of a command?
22500max_cmd_len=$max_cmd_len
22501
22502# Object file suffix (normally "o").
22503objext=$ac_objext
22504
22505# Executable file suffix (normally "").
22506exeext=$exeext
22507
22508# whether the shell understands "unset".
22509lt_unset=$lt_unset
22510
22511# turn spaces into newlines.
22512SP2NL=$lt_lt_SP2NL
22513
22514# turn newlines into spaces.
22515NL2SP=$lt_lt_NL2SP
22516
22517# convert \$build file names to \$host format.
22518to_host_file_cmd=$lt_cv_to_host_file_cmd
22519
22520# convert \$build files to toolchain format.
22521to_tool_file_cmd=$lt_cv_to_tool_file_cmd
22522
22523# A file(cmd) program that detects file types.
22524FILECMD=$lt_FILECMD
22525
22526# An object symbol dumper.
22527OBJDUMP=$lt_OBJDUMP
22528
22529# Method to check whether dependent libraries are shared objects.
22530deplibs_check_method=$lt_deplibs_check_method
22531
22532# Command to use when deplibs_check_method = "file_magic".
22533file_magic_cmd=$lt_file_magic_cmd
22534
22535# How to find potential files when deplibs_check_method = "file_magic".
22536file_magic_glob=$lt_file_magic_glob
22537
22538# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
22539want_nocaseglob=$lt_want_nocaseglob
22540
22541# DLL creation program.
22542DLLTOOL=$lt_DLLTOOL
22543
22544# Command to associate shared and link libraries.
22545sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
22546
22547# The archiver.
22548AR=$lt_AR
22549
22550# Flags to create an archive (by configure).
22551lt_ar_flags=$lt_ar_flags
22552
22553# Flags to create an archive.
22554AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
22555
22556# How to feed a file listing to the archiver.
22557archiver_list_spec=$lt_archiver_list_spec
22558
22559# A symbol stripping program.
22560STRIP=$lt_STRIP
22561
22562# Commands used to install an old-style archive.
22563RANLIB=$lt_RANLIB
22564old_postinstall_cmds=$lt_old_postinstall_cmds
22565old_postuninstall_cmds=$lt_old_postuninstall_cmds
22566
22567# Whether to use a lock for old archive extraction.
22568lock_old_archive_extraction=$lock_old_archive_extraction
22569
22570# A C compiler.
22571LTCC=$lt_CC
22572
22573# LTCC compiler flags.
22574LTCFLAGS=$lt_CFLAGS
22575
22576# Take the output of nm and produce a listing of raw symbols and C names.
22577global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22578
22579# Transform the output of nm in a proper C declaration.
22580global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22581
22582# Transform the output of nm into a list of symbols to manually relocate.
22583global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
22584
22585# Transform the output of nm in a C name address pair.
22586global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22587
22588# Transform the output of nm in a C name address pair when lib prefix is needed.
22589global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22590
22591# The name lister interface.
22592nm_interface=$lt_lt_cv_nm_interface
22593
22594# Specify filename containing input files for \$NM.
22595nm_file_list_spec=$lt_nm_file_list_spec
22596
22597# The root where to search for dependent libraries,and where our libraries should be installed.
22598lt_sysroot=$lt_sysroot
22599
22600# Command to truncate a binary pipe.
22601lt_truncate_bin=$lt_lt_cv_truncate_bin
22602
22603# The name of the directory that contains temporary libtool files.
22604objdir=$objdir
22605
22606# Used to examine libraries when file_magic_cmd begins with "file".
22607MAGIC_CMD=$MAGIC_CMD
22608
22609# Must we lock files when doing compilation?
22610need_locks=$lt_need_locks
22611
22612# Manifest tool.
22613MANIFEST_TOOL=$lt_MANIFEST_TOOL
22614
22615# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22616DSYMUTIL=$lt_DSYMUTIL
22617
22618# Tool to change global to local symbols on Mac OS X.
22619NMEDIT=$lt_NMEDIT
22620
22621# Tool to manipulate fat objects and archives on Mac OS X.
22622LIPO=$lt_LIPO
22623
22624# ldd/readelf like tool for Mach-O binaries on Mac OS X.
22625OTOOL=$lt_OTOOL
22626
22627# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22628OTOOL64=$lt_OTOOL64
22629
22630# Old archive suffix (normally "a").
22631libext=$libext
22632
22633# Shared library suffix (normally ".so").
22634shrext_cmds=$lt_shrext_cmds
22635
22636# The commands to extract the exported symbol list from a shared archive.
22637extract_expsyms_cmds=$lt_extract_expsyms_cmds
22638
22639# Variables whose values should be saved in libtool wrapper scripts and
22640# restored at link time.
22641variables_saved_for_relink=$lt_variables_saved_for_relink
22642
22643# Do we need the "lib" prefix for modules?
22644need_lib_prefix=$need_lib_prefix
22645
22646# Do we need a version for libraries?
22647need_version=$need_version
22648
22649# Library versioning type.
22650version_type=$version_type
22651
22652# Shared library runtime path variable.
22653runpath_var=$runpath_var
22654
22655# Shared library path variable.
22656shlibpath_var=$shlibpath_var
22657
22658# Is shlibpath searched before the hard-coded library search path?
22659shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22660
22661# Format of library name prefix.
22662libname_spec=$lt_libname_spec
22663
22664# List of archive names.  First name is the real one, the rest are links.
22665# The last name is the one that the linker finds with -lNAME
22666library_names_spec=$lt_library_names_spec
22667
22668# The coded name of the library, if different from the real name.
22669soname_spec=$lt_soname_spec
22670
22671# Permission mode override for installation of shared libraries.
22672install_override_mode=$lt_install_override_mode
22673
22674# Command to use after installation of a shared archive.
22675postinstall_cmds=$lt_postinstall_cmds
22676
22677# Command to use after uninstallation of a shared archive.
22678postuninstall_cmds=$lt_postuninstall_cmds
22679
22680# Commands used to finish a libtool library installation in a directory.
22681finish_cmds=$lt_finish_cmds
22682
22683# As "finish_cmds", except a single script fragment to be evaled but
22684# not shown.
22685finish_eval=$lt_finish_eval
22686
22687# Whether we should hardcode library paths into libraries.
22688hardcode_into_libs=$hardcode_into_libs
22689
22690# Compile-time system search path for libraries.
22691sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22692
22693# Detected run-time system search path for libraries.
22694sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
22695
22696# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
22697configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
22698
22699# Whether dlopen is supported.
22700dlopen_support=$enable_dlopen
22701
22702# Whether dlopen of programs is supported.
22703dlopen_self=$enable_dlopen_self
22704
22705# Whether dlopen of statically linked programs is supported.
22706dlopen_self_static=$enable_dlopen_self_static
22707
22708# Commands to strip libraries.
22709old_striplib=$lt_old_striplib
22710striplib=$lt_striplib
22711
22712
22713# The linker used to build libraries.
22714LD=$lt_LD
22715
22716# How to create reloadable object files.
22717reload_flag=$lt_reload_flag
22718reload_cmds=$lt_reload_cmds
22719
22720# Commands used to build an old-style archive.
22721old_archive_cmds=$lt_old_archive_cmds
22722
22723# A language specific compiler.
22724CC=$lt_compiler
22725
22726# Is the compiler the GNU compiler?
22727with_gcc=$GCC
22728
22729# Compiler flag to turn off builtin functions.
22730no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22731
22732# Additional compiler flags for building library objects.
22733pic_flag=$lt_lt_prog_compiler_pic
22734
22735# How to pass a linker flag through the compiler.
22736wl=$lt_lt_prog_compiler_wl
22737
22738# Compiler flag to prevent dynamic linking.
22739link_static_flag=$lt_lt_prog_compiler_static
22740
22741# Does compiler simultaneously support -c and -o options?
22742compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22743
22744# Whether or not to add -lc for building shared libraries.
22745build_libtool_need_lc=$archive_cmds_need_lc
22746
22747# Whether or not to disallow shared libs when runtime libs are static.
22748allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22749
22750# Compiler flag to allow reflexive dlopens.
22751export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22752
22753# Compiler flag to generate shared objects directly from archives.
22754whole_archive_flag_spec=$lt_whole_archive_flag_spec
22755
22756# Whether the compiler copes with passing no objects directly.
22757compiler_needs_object=$lt_compiler_needs_object
22758
22759# Create an old-style archive from a shared archive.
22760old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22761
22762# Create a temporary old-style archive to link instead of a shared archive.
22763old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22764
22765# Commands used to build a shared archive.
22766archive_cmds=$lt_archive_cmds
22767archive_expsym_cmds=$lt_archive_expsym_cmds
22768
22769# Commands used to build a loadable module if different from building
22770# a shared archive.
22771module_cmds=$lt_module_cmds
22772module_expsym_cmds=$lt_module_expsym_cmds
22773
22774# Whether we are building with GNU ld or not.
22775with_gnu_ld=$lt_with_gnu_ld
22776
22777# Flag that allows shared libraries with undefined symbols to be built.
22778allow_undefined_flag=$lt_allow_undefined_flag
22779
22780# Flag that enforces no undefined symbols.
22781no_undefined_flag=$lt_no_undefined_flag
22782
22783# Flag to hardcode \$libdir into a binary during linking.
22784# This must work even if \$libdir does not exist
22785hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22786
22787# Whether we need a single "-rpath" flag with a separated argument.
22788hardcode_libdir_separator=$lt_hardcode_libdir_separator
22789
22790# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22791# DIR into the resulting binary.
22792hardcode_direct=$hardcode_direct
22793
22794# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22795# DIR into the resulting binary and the resulting library dependency is
22796# "absolute",i.e impossible to change by setting \$shlibpath_var if the
22797# library is relocated.
22798hardcode_direct_absolute=$hardcode_direct_absolute
22799
22800# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22801# into the resulting binary.
22802hardcode_minus_L=$hardcode_minus_L
22803
22804# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22805# into the resulting binary.
22806hardcode_shlibpath_var=$hardcode_shlibpath_var
22807
22808# Set to "yes" if building a shared library automatically hardcodes DIR
22809# into the library and all subsequent libraries and executables linked
22810# against it.
22811hardcode_automatic=$hardcode_automatic
22812
22813# Set to yes if linker adds runtime paths of dependent libraries
22814# to runtime path list.
22815inherit_rpath=$inherit_rpath
22816
22817# Whether libtool must link a program against all its dependency libraries.
22818link_all_deplibs=$link_all_deplibs
22819
22820# Set to "yes" if exported symbols are required.
22821always_export_symbols=$always_export_symbols
22822
22823# The commands to list exported symbols.
22824export_symbols_cmds=$lt_export_symbols_cmds
22825
22826# Symbols that should not be listed in the preloaded symbols.
22827exclude_expsyms=$lt_exclude_expsyms
22828
22829# Symbols that must always be exported.
22830include_expsyms=$lt_include_expsyms
22831
22832# Commands necessary for linking programs (against libraries) with templates.
22833prelink_cmds=$lt_prelink_cmds
22834
22835# Commands necessary for finishing linking programs.
22836postlink_cmds=$lt_postlink_cmds
22837
22838# Specify filename containing input files.
22839file_list_spec=$lt_file_list_spec
22840
22841# How to hardcode a shared library path into an executable.
22842hardcode_action=$hardcode_action
22843
22844# ### END LIBTOOL CONFIG
22845
22846_LT_EOF
22847
22848    cat <<'_LT_EOF' >> "$cfgfile"
22849
22850# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
22851
22852# func_munge_path_list VARIABLE PATH
22853# -----------------------------------
22854# VARIABLE is name of variable containing _space_ separated list of
22855# directories to be munged by the contents of PATH, which is string
22856# having a format:
22857# "DIR[:DIR]:"
22858#       string "DIR[ DIR]" will be prepended to VARIABLE
22859# ":DIR[:DIR]"
22860#       string "DIR[ DIR]" will be appended to VARIABLE
22861# "DIRP[:DIRP]::[DIRA:]DIRA"
22862#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
22863#       "DIRA[ DIRA]" will be appended to VARIABLE
22864# "DIR[:DIR]"
22865#       VARIABLE will be replaced by "DIR[ DIR]"
22866func_munge_path_list ()
22867{
22868    case x$2 in
22869    x)
22870        ;;
22871    *:)
22872        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
22873        ;;
22874    x:*)
22875        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
22876        ;;
22877    *::*)
22878        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
22879        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
22880        ;;
22881    *)
22882        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
22883        ;;
22884    esac
22885}
22886
22887
22888# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
22889func_cc_basename ()
22890{
22891    for cc_temp in $*""; do
22892      case $cc_temp in
22893        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22894        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22895        \-*) ;;
22896        *) break;;
22897      esac
22898    done
22899    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
22900}
22901
22902
22903# ### END FUNCTIONS SHARED WITH CONFIGURE
22904
22905_LT_EOF
22906
22907  case $host_os in
22908  aix3*)
22909    cat <<\_LT_EOF >> "$cfgfile"
22910# AIX sometimes has problems with the GCC collect2 program.  For some
22911# reason, if we set the COLLECT_NAMES environment variable, the problems
22912# vanish in a puff of smoke.
22913if test set != "${COLLECT_NAMES+set}"; then
22914  COLLECT_NAMES=
22915  export COLLECT_NAMES
22916fi
22917_LT_EOF
22918    ;;
22919  esac
22920
22921
22922
22923ltmain=$ac_aux_dir/ltmain.sh
22924
22925
22926  # We use sed instead of cat because bash on DJGPP gets confused if
22927  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
22928  # text mode, it properly converts lines to CR/LF.  This bash problem
22929  # is reportedly fixed, but why not run on old versions too?
22930  $SED '$q' "$ltmain" >> "$cfgfile" \
22931     || (rm -f "$cfgfile"; exit 1)
22932
22933   mv -f "$cfgfile" "$ofile" ||
22934    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22935  chmod +x "$ofile"
22936
22937 ;;
22938    "libtool_hack":C)
22939	cp -f libtool libtool_
22940	test -z "$SED" && SED=sed
22941	$SED '1,/^soname_spec/{
22942/^soname_spec/i\
22943# X.Org hack to match monolithic Xaw SONAME\
22944xorglibxawname="libXaw"
22945/^soname_spec/s/libname/xorglibxawname/
22946}' libtool_ > libtool
22947	rm -f libtool_
22948 ;;
22949
22950  esac
22951done # for ac_tag
22952
22953
22954as_fn_exit 0
22955_ACEOF
22956ac_clean_files=$ac_clean_files_save
22957
22958test $ac_write_fail = 0 ||
22959  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22960
22961
22962# configure is writing to config.log, and then calls config.status.
22963# config.status does its own redirection, appending to config.log.
22964# Unfortunately, on DOS this fails, as config.log is still kept open
22965# by configure, so config.status won't be able to write to it; its
22966# output is simply discarded.  So we exec the FD to /dev/null,
22967# effectively closing config.log, so it can be properly (re)opened and
22968# appended to by config.status.  When coming back to configure, we
22969# need to make the FD available again.
22970if test "$no_create" != yes; then
22971  ac_cs_success=:
22972  ac_config_status_args=
22973  test "$silent" = yes &&
22974    ac_config_status_args="$ac_config_status_args --quiet"
22975  exec 5>/dev/null
22976  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22977  exec 5>>config.log
22978  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22979  # would make configure fail if this is the last instruction.
22980  $ac_cs_success || as_fn_exit 1
22981fi
22982if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22983  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22984printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22985fi
22986
22987
22988