configure revision 5b16253f
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.71 for libXaw 1.0.15.
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.15'
686PACKAGE_STRING='libXaw 1.0.15'
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
727BUILD_XAW7_FALSE
728BUILD_XAW7_TRUE
729BUILD_XAW6_FALSE
730BUILD_XAW6_TRUE
731XAW7_LIBS
732XAW7_CFLAGS
733XAW6_LIBS
734XAW6_CFLAGS
735PLATFORM_DARWIN_FALSE
736PLATFORM_DARWIN_TRUE
737PLATFORM_WIN32_FALSE
738PLATFORM_WIN32_TRUE
739LIBEXT
740HAVE_STYLESHEETS_FALSE
741HAVE_STYLESHEETS_TRUE
742XSL_STYLESHEET
743STYLESHEET_SRCDIR
744XORG_SGML_PATH
745HAVE_XSLTPROC_FALSE
746HAVE_XSLTPROC_TRUE
747XSLTPROC
748HAVE_FOP_FALSE
749HAVE_FOP_TRUE
750FOP
751HAVE_XMLTO_FALSE
752HAVE_XMLTO_TRUE
753HAVE_XMLTO_TEXT_FALSE
754HAVE_XMLTO_TEXT_TRUE
755XMLTO
756ENABLE_SPECS_FALSE
757ENABLE_SPECS_TRUE
758MAN_SUBSTS
759XORG_MAN_PAGE
760ADMIN_MAN_DIR
761DRIVER_MAN_DIR
762MISC_MAN_DIR
763FILE_MAN_DIR
764LIB_MAN_DIR
765APP_MAN_DIR
766ADMIN_MAN_SUFFIX
767DRIVER_MAN_SUFFIX
768MISC_MAN_SUFFIX
769FILE_MAN_SUFFIX
770LIB_MAN_SUFFIX
771APP_MAN_SUFFIX
772INSTALL_CMD
773PKG_CONFIG_LIBDIR
774PKG_CONFIG_PATH
775PKG_CONFIG
776CHANGELOG_CMD
777STRICT_CFLAGS
778CWARNFLAGS
779BASE_CFLAGS
780LT_SYS_LIBRARY_PATH
781OTOOL64
782OTOOL
783LIPO
784NMEDIT
785DSYMUTIL
786MANIFEST_TOOL
787RANLIB
788ac_ct_AR
789AR
790DLLTOOL
791OBJDUMP
792FILECMD
793LN_S
794NM
795ac_ct_DUMPBIN
796DUMPBIN
797LD
798FGREP
799EGREP
800GREP
801SED
802am__fastdepCC_FALSE
803am__fastdepCC_TRUE
804CCDEPMODE
805am__nodep
806AMDEPBACKSLASH
807AMDEP_FALSE
808AMDEP_TRUE
809am__include
810DEPDIR
811OBJEXT
812EXEEXT
813ac_ct_CC
814CPPFLAGS
815LDFLAGS
816CFLAGS
817CC
818host_os
819host_vendor
820host_cpu
821host
822build_os
823build_vendor
824build_cpu
825build
826LIBTOOL
827AM_BACKSLASH
828AM_DEFAULT_VERBOSITY
829AM_DEFAULT_V
830AM_V
831CSCOPE
832ETAGS
833CTAGS
834am__untar
835am__tar
836AMTAR
837am__leading_dot
838SET_MAKE
839AWK
840mkdir_p
841MKDIR_P
842INSTALL_STRIP_PROGRAM
843STRIP
844install_sh
845MAKEINFO
846AUTOHEADER
847AUTOMAKE
848AUTOCONF
849ACLOCAL
850VERSION
851PACKAGE
852CYGPATH_W
853am__isrc
854INSTALL_DATA
855INSTALL_SCRIPT
856INSTALL_PROGRAM
857target_alias
858host_alias
859build_alias
860LIBS
861ECHO_T
862ECHO_N
863ECHO_C
864DEFS
865mandir
866localedir
867libdir
868psdir
869pdfdir
870dvidir
871htmldir
872infodir
873docdir
874oldincludedir
875includedir
876runstatedir
877localstatedir
878sharedstatedir
879sysconfdir
880datadir
881datarootdir
882libexecdir
883sbindir
884bindir
885program_transform_name
886prefix
887exec_prefix
888PACKAGE_URL
889PACKAGE_BUGREPORT
890PACKAGE_STRING
891PACKAGE_VERSION
892PACKAGE_TARNAME
893PACKAGE_NAME
894PATH_SEPARATOR
895SHELL
896am__quote'
897ac_subst_files=''
898ac_user_opts='
899enable_option_checking
900enable_silent_rules
901enable_shared
902enable_static
903with_pic
904enable_fast_install
905with_aix_soname
906enable_dependency_tracking
907with_gnu_ld
908with_sysroot
909enable_libtool_lock
910enable_selective_werror
911enable_strict_compilation
912enable_specs
913with_xmlto
914with_fop
915with_xsltproc
916enable_xaw6
917enable_xaw7
918enable_const
919'
920      ac_precious_vars='build_alias
921host_alias
922target_alias
923CC
924CFLAGS
925LDFLAGS
926LIBS
927CPPFLAGS
928LT_SYS_LIBRARY_PATH
929PKG_CONFIG
930PKG_CONFIG_PATH
931PKG_CONFIG_LIBDIR
932XMLTO
933FOP
934XSLTPROC
935XAW6_CFLAGS
936XAW6_LIBS
937XAW7_CFLAGS
938XAW7_LIBS'
939
940
941# Initialize some variables set by options.
942ac_init_help=
943ac_init_version=false
944ac_unrecognized_opts=
945ac_unrecognized_sep=
946# The variables have the same names as the options, with
947# dashes changed to underlines.
948cache_file=/dev/null
949exec_prefix=NONE
950no_create=
951no_recursion=
952prefix=NONE
953program_prefix=NONE
954program_suffix=NONE
955program_transform_name=s,x,x,
956silent=
957site=
958srcdir=
959verbose=
960x_includes=NONE
961x_libraries=NONE
962
963# Installation directory options.
964# These are left unexpanded so users can "make install exec_prefix=/foo"
965# and all the variables that are supposed to be based on exec_prefix
966# by default will actually change.
967# Use braces instead of parens because sh, perl, etc. also accept them.
968# (The list follows the same order as the GNU Coding Standards.)
969bindir='${exec_prefix}/bin'
970sbindir='${exec_prefix}/sbin'
971libexecdir='${exec_prefix}/libexec'
972datarootdir='${prefix}/share'
973datadir='${datarootdir}'
974sysconfdir='${prefix}/etc'
975sharedstatedir='${prefix}/com'
976localstatedir='${prefix}/var'
977runstatedir='${localstatedir}/run'
978includedir='${prefix}/include'
979oldincludedir='/usr/include'
980docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
981infodir='${datarootdir}/info'
982htmldir='${docdir}'
983dvidir='${docdir}'
984pdfdir='${docdir}'
985psdir='${docdir}'
986libdir='${exec_prefix}/lib'
987localedir='${datarootdir}/locale'
988mandir='${datarootdir}/man'
989
990ac_prev=
991ac_dashdash=
992for ac_option
993do
994  # If the previous option needs an argument, assign it.
995  if test -n "$ac_prev"; then
996    eval $ac_prev=\$ac_option
997    ac_prev=
998    continue
999  fi
1000
1001  case $ac_option in
1002  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1003  *=)   ac_optarg= ;;
1004  *)    ac_optarg=yes ;;
1005  esac
1006
1007  case $ac_dashdash$ac_option in
1008  --)
1009    ac_dashdash=yes ;;
1010
1011  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1012    ac_prev=bindir ;;
1013  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1014    bindir=$ac_optarg ;;
1015
1016  -build | --build | --buil | --bui | --bu)
1017    ac_prev=build_alias ;;
1018  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1019    build_alias=$ac_optarg ;;
1020
1021  -cache-file | --cache-file | --cache-fil | --cache-fi \
1022  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1023    ac_prev=cache_file ;;
1024  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1025  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1026    cache_file=$ac_optarg ;;
1027
1028  --config-cache | -C)
1029    cache_file=config.cache ;;
1030
1031  -datadir | --datadir | --datadi | --datad)
1032    ac_prev=datadir ;;
1033  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1034    datadir=$ac_optarg ;;
1035
1036  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1037  | --dataroo | --dataro | --datar)
1038    ac_prev=datarootdir ;;
1039  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1040  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1041    datarootdir=$ac_optarg ;;
1042
1043  -disable-* | --disable-*)
1044    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1045    # Reject names that are not valid shell variable names.
1046    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1047      as_fn_error $? "invalid feature name: \`$ac_useropt'"
1048    ac_useropt_orig=$ac_useropt
1049    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1050    case $ac_user_opts in
1051      *"
1052"enable_$ac_useropt"
1053"*) ;;
1054      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1055	 ac_unrecognized_sep=', ';;
1056    esac
1057    eval enable_$ac_useropt=no ;;
1058
1059  -docdir | --docdir | --docdi | --doc | --do)
1060    ac_prev=docdir ;;
1061  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1062    docdir=$ac_optarg ;;
1063
1064  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1065    ac_prev=dvidir ;;
1066  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1067    dvidir=$ac_optarg ;;
1068
1069  -enable-* | --enable-*)
1070    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1071    # Reject names that are not valid shell variable names.
1072    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1073      as_fn_error $? "invalid feature name: \`$ac_useropt'"
1074    ac_useropt_orig=$ac_useropt
1075    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1076    case $ac_user_opts in
1077      *"
1078"enable_$ac_useropt"
1079"*) ;;
1080      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1081	 ac_unrecognized_sep=', ';;
1082    esac
1083    eval enable_$ac_useropt=\$ac_optarg ;;
1084
1085  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1086  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1087  | --exec | --exe | --ex)
1088    ac_prev=exec_prefix ;;
1089  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1090  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1091  | --exec=* | --exe=* | --ex=*)
1092    exec_prefix=$ac_optarg ;;
1093
1094  -gas | --gas | --ga | --g)
1095    # Obsolete; use --with-gas.
1096    with_gas=yes ;;
1097
1098  -help | --help | --hel | --he | -h)
1099    ac_init_help=long ;;
1100  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1101    ac_init_help=recursive ;;
1102  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1103    ac_init_help=short ;;
1104
1105  -host | --host | --hos | --ho)
1106    ac_prev=host_alias ;;
1107  -host=* | --host=* | --hos=* | --ho=*)
1108    host_alias=$ac_optarg ;;
1109
1110  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1111    ac_prev=htmldir ;;
1112  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1113  | --ht=*)
1114    htmldir=$ac_optarg ;;
1115
1116  -includedir | --includedir | --includedi | --included | --include \
1117  | --includ | --inclu | --incl | --inc)
1118    ac_prev=includedir ;;
1119  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1120  | --includ=* | --inclu=* | --incl=* | --inc=*)
1121    includedir=$ac_optarg ;;
1122
1123  -infodir | --infodir | --infodi | --infod | --info | --inf)
1124    ac_prev=infodir ;;
1125  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1126    infodir=$ac_optarg ;;
1127
1128  -libdir | --libdir | --libdi | --libd)
1129    ac_prev=libdir ;;
1130  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1131    libdir=$ac_optarg ;;
1132
1133  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1134  | --libexe | --libex | --libe)
1135    ac_prev=libexecdir ;;
1136  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1137  | --libexe=* | --libex=* | --libe=*)
1138    libexecdir=$ac_optarg ;;
1139
1140  -localedir | --localedir | --localedi | --localed | --locale)
1141    ac_prev=localedir ;;
1142  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1143    localedir=$ac_optarg ;;
1144
1145  -localstatedir | --localstatedir | --localstatedi | --localstated \
1146  | --localstate | --localstat | --localsta | --localst | --locals)
1147    ac_prev=localstatedir ;;
1148  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1149  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1150    localstatedir=$ac_optarg ;;
1151
1152  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1153    ac_prev=mandir ;;
1154  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1155    mandir=$ac_optarg ;;
1156
1157  -nfp | --nfp | --nf)
1158    # Obsolete; use --without-fp.
1159    with_fp=no ;;
1160
1161  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1162  | --no-cr | --no-c | -n)
1163    no_create=yes ;;
1164
1165  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1166  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1167    no_recursion=yes ;;
1168
1169  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1170  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1171  | --oldin | --oldi | --old | --ol | --o)
1172    ac_prev=oldincludedir ;;
1173  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1174  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1175  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1176    oldincludedir=$ac_optarg ;;
1177
1178  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1179    ac_prev=prefix ;;
1180  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1181    prefix=$ac_optarg ;;
1182
1183  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1184  | --program-pre | --program-pr | --program-p)
1185    ac_prev=program_prefix ;;
1186  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1187  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1188    program_prefix=$ac_optarg ;;
1189
1190  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1191  | --program-suf | --program-su | --program-s)
1192    ac_prev=program_suffix ;;
1193  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1194  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1195    program_suffix=$ac_optarg ;;
1196
1197  -program-transform-name | --program-transform-name \
1198  | --program-transform-nam | --program-transform-na \
1199  | --program-transform-n | --program-transform- \
1200  | --program-transform | --program-transfor \
1201  | --program-transfo | --program-transf \
1202  | --program-trans | --program-tran \
1203  | --progr-tra | --program-tr | --program-t)
1204    ac_prev=program_transform_name ;;
1205  -program-transform-name=* | --program-transform-name=* \
1206  | --program-transform-nam=* | --program-transform-na=* \
1207  | --program-transform-n=* | --program-transform-=* \
1208  | --program-transform=* | --program-transfor=* \
1209  | --program-transfo=* | --program-transf=* \
1210  | --program-trans=* | --program-tran=* \
1211  | --progr-tra=* | --program-tr=* | --program-t=*)
1212    program_transform_name=$ac_optarg ;;
1213
1214  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1215    ac_prev=pdfdir ;;
1216  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1217    pdfdir=$ac_optarg ;;
1218
1219  -psdir | --psdir | --psdi | --psd | --ps)
1220    ac_prev=psdir ;;
1221  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1222    psdir=$ac_optarg ;;
1223
1224  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1225  | -silent | --silent | --silen | --sile | --sil)
1226    silent=yes ;;
1227
1228  -runstatedir | --runstatedir | --runstatedi | --runstated \
1229  | --runstate | --runstat | --runsta | --runst | --runs \
1230  | --run | --ru | --r)
1231    ac_prev=runstatedir ;;
1232  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1233  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1234  | --run=* | --ru=* | --r=*)
1235    runstatedir=$ac_optarg ;;
1236
1237  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1238    ac_prev=sbindir ;;
1239  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1240  | --sbi=* | --sb=*)
1241    sbindir=$ac_optarg ;;
1242
1243  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1244  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1245  | --sharedst | --shareds | --shared | --share | --shar \
1246  | --sha | --sh)
1247    ac_prev=sharedstatedir ;;
1248  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1249  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1250  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1251  | --sha=* | --sh=*)
1252    sharedstatedir=$ac_optarg ;;
1253
1254  -site | --site | --sit)
1255    ac_prev=site ;;
1256  -site=* | --site=* | --sit=*)
1257    site=$ac_optarg ;;
1258
1259  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1260    ac_prev=srcdir ;;
1261  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1262    srcdir=$ac_optarg ;;
1263
1264  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1265  | --syscon | --sysco | --sysc | --sys | --sy)
1266    ac_prev=sysconfdir ;;
1267  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1268  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1269    sysconfdir=$ac_optarg ;;
1270
1271  -target | --target | --targe | --targ | --tar | --ta | --t)
1272    ac_prev=target_alias ;;
1273  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1274    target_alias=$ac_optarg ;;
1275
1276  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1277    verbose=yes ;;
1278
1279  -version | --version | --versio | --versi | --vers | -V)
1280    ac_init_version=: ;;
1281
1282  -with-* | --with-*)
1283    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1284    # Reject names that are not valid shell variable names.
1285    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1286      as_fn_error $? "invalid package name: \`$ac_useropt'"
1287    ac_useropt_orig=$ac_useropt
1288    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1289    case $ac_user_opts in
1290      *"
1291"with_$ac_useropt"
1292"*) ;;
1293      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1294	 ac_unrecognized_sep=', ';;
1295    esac
1296    eval with_$ac_useropt=\$ac_optarg ;;
1297
1298  -without-* | --without-*)
1299    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1300    # Reject names that are not valid shell variable names.
1301    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1302      as_fn_error $? "invalid package name: \`$ac_useropt'"
1303    ac_useropt_orig=$ac_useropt
1304    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1305    case $ac_user_opts in
1306      *"
1307"with_$ac_useropt"
1308"*) ;;
1309      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1310	 ac_unrecognized_sep=', ';;
1311    esac
1312    eval with_$ac_useropt=no ;;
1313
1314  --x)
1315    # Obsolete; use --with-x.
1316    with_x=yes ;;
1317
1318  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1319  | --x-incl | --x-inc | --x-in | --x-i)
1320    ac_prev=x_includes ;;
1321  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1322  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1323    x_includes=$ac_optarg ;;
1324
1325  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1326  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1327    ac_prev=x_libraries ;;
1328  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1329  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1330    x_libraries=$ac_optarg ;;
1331
1332  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1333Try \`$0 --help' for more information"
1334    ;;
1335
1336  *=*)
1337    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1338    # Reject names that are not valid shell variable names.
1339    case $ac_envvar in #(
1340      '' | [0-9]* | *[!_$as_cr_alnum]* )
1341      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1342    esac
1343    eval $ac_envvar=\$ac_optarg
1344    export $ac_envvar ;;
1345
1346  *)
1347    # FIXME: should be removed in autoconf 3.0.
1348    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1349    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1350      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1351    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1352    ;;
1353
1354  esac
1355done
1356
1357if test -n "$ac_prev"; then
1358  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1359  as_fn_error $? "missing argument to $ac_option"
1360fi
1361
1362if test -n "$ac_unrecognized_opts"; then
1363  case $enable_option_checking in
1364    no) ;;
1365    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1366    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1367  esac
1368fi
1369
1370# Check all directory arguments for consistency.
1371for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1372		datadir sysconfdir sharedstatedir localstatedir includedir \
1373		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1374		libdir localedir mandir runstatedir
1375do
1376  eval ac_val=\$$ac_var
1377  # Remove trailing slashes.
1378  case $ac_val in
1379    */ )
1380      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1381      eval $ac_var=\$ac_val;;
1382  esac
1383  # Be sure to have absolute directory names.
1384  case $ac_val in
1385    [\\/$]* | ?:[\\/]* )  continue;;
1386    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1387  esac
1388  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1389done
1390
1391# There might be people who depend on the old broken behavior: `$host'
1392# used to hold the argument of --host etc.
1393# FIXME: To remove some day.
1394build=$build_alias
1395host=$host_alias
1396target=$target_alias
1397
1398# FIXME: To remove some day.
1399if test "x$host_alias" != x; then
1400  if test "x$build_alias" = x; then
1401    cross_compiling=maybe
1402  elif test "x$build_alias" != "x$host_alias"; then
1403    cross_compiling=yes
1404  fi
1405fi
1406
1407ac_tool_prefix=
1408test -n "$host_alias" && ac_tool_prefix=$host_alias-
1409
1410test "$silent" = yes && exec 6>/dev/null
1411
1412
1413ac_pwd=`pwd` && test -n "$ac_pwd" &&
1414ac_ls_di=`ls -di .` &&
1415ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1416  as_fn_error $? "working directory cannot be determined"
1417test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1418  as_fn_error $? "pwd does not report name of working directory"
1419
1420
1421# Find the source files, if location was not specified.
1422if test -z "$srcdir"; then
1423  ac_srcdir_defaulted=yes
1424  # Try the directory containing this script, then the parent directory.
1425  ac_confdir=`$as_dirname -- "$as_myself" ||
1426$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1427	 X"$as_myself" : 'X\(//\)[^/]' \| \
1428	 X"$as_myself" : 'X\(//\)$' \| \
1429	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1430printf "%s\n" X"$as_myself" |
1431    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1432	    s//\1/
1433	    q
1434	  }
1435	  /^X\(\/\/\)[^/].*/{
1436	    s//\1/
1437	    q
1438	  }
1439	  /^X\(\/\/\)$/{
1440	    s//\1/
1441	    q
1442	  }
1443	  /^X\(\/\).*/{
1444	    s//\1/
1445	    q
1446	  }
1447	  s/.*/./; q'`
1448  srcdir=$ac_confdir
1449  if test ! -r "$srcdir/$ac_unique_file"; then
1450    srcdir=..
1451  fi
1452else
1453  ac_srcdir_defaulted=no
1454fi
1455if test ! -r "$srcdir/$ac_unique_file"; then
1456  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1457  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1458fi
1459ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1460ac_abs_confdir=`(
1461	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1462	pwd)`
1463# When building in place, set srcdir=.
1464if test "$ac_abs_confdir" = "$ac_pwd"; then
1465  srcdir=.
1466fi
1467# Remove unnecessary trailing slashes from srcdir.
1468# Double slashes in file names in object file debugging info
1469# mess up M-x gdb in Emacs.
1470case $srcdir in
1471*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1472esac
1473for ac_var in $ac_precious_vars; do
1474  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1475  eval ac_env_${ac_var}_value=\$${ac_var}
1476  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1477  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1478done
1479
1480#
1481# Report the --help message.
1482#
1483if test "$ac_init_help" = "long"; then
1484  # Omit some internal or obsolete options to make the list less imposing.
1485  # This message is too long to be a string in the A/UX 3.1 sh.
1486  cat <<_ACEOF
1487\`configure' configures libXaw 1.0.15 to adapt to many kinds of systems.
1488
1489Usage: $0 [OPTION]... [VAR=VALUE]...
1490
1491To assign environment variables (e.g., CC, CFLAGS...), specify them as
1492VAR=VALUE.  See below for descriptions of some of the useful variables.
1493
1494Defaults for the options are specified in brackets.
1495
1496Configuration:
1497  -h, --help              display this help and exit
1498      --help=short        display options specific to this package
1499      --help=recursive    display the short help of all the included packages
1500  -V, --version           display version information and exit
1501  -q, --quiet, --silent   do not print \`checking ...' messages
1502      --cache-file=FILE   cache test results in FILE [disabled]
1503  -C, --config-cache      alias for \`--cache-file=config.cache'
1504  -n, --no-create         do not create output files
1505      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1506
1507Installation directories:
1508  --prefix=PREFIX         install architecture-independent files in PREFIX
1509                          [$ac_default_prefix]
1510  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1511                          [PREFIX]
1512
1513By default, \`make install' will install all the files in
1514\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1515an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1516for instance \`--prefix=\$HOME'.
1517
1518For better control, use the options below.
1519
1520Fine tuning of the installation directories:
1521  --bindir=DIR            user executables [EPREFIX/bin]
1522  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1523  --libexecdir=DIR        program executables [EPREFIX/libexec]
1524  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1525  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1526  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1527  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1528  --libdir=DIR            object code libraries [EPREFIX/lib]
1529  --includedir=DIR        C header files [PREFIX/include]
1530  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1531  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1532  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1533  --infodir=DIR           info documentation [DATAROOTDIR/info]
1534  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1535  --mandir=DIR            man documentation [DATAROOTDIR/man]
1536  --docdir=DIR            documentation root [DATAROOTDIR/doc/libXaw]
1537  --htmldir=DIR           html documentation [DOCDIR]
1538  --dvidir=DIR            dvi documentation [DOCDIR]
1539  --pdfdir=DIR            pdf documentation [DOCDIR]
1540  --psdir=DIR             ps documentation [DOCDIR]
1541_ACEOF
1542
1543  cat <<\_ACEOF
1544
1545Program names:
1546  --program-prefix=PREFIX            prepend PREFIX to installed program names
1547  --program-suffix=SUFFIX            append SUFFIX to installed program names
1548  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1549
1550System types:
1551  --build=BUILD     configure for building on BUILD [guessed]
1552  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1553_ACEOF
1554fi
1555
1556if test -n "$ac_init_help"; then
1557  case $ac_init_help in
1558     short | recursive ) echo "Configuration of libXaw 1.0.15:";;
1559   esac
1560  cat <<\_ACEOF
1561
1562Optional Features:
1563  --disable-option-checking  ignore unrecognized --enable/--with options
1564  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1565  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1566  --enable-silent-rules   less verbose build output (undo: "make V=1")
1567  --disable-silent-rules  verbose build output (undo: "make V=0")
1568  --enable-shared[=PKGS]  build shared libraries [default=yes]
1569  --enable-static[=PKGS]  build static libraries [default=yes]
1570  --enable-fast-install[=PKGS]
1571                          optimize for fast installation [default=yes]
1572  --enable-dependency-tracking
1573                          do not reject slow dependency extractors
1574  --disable-dependency-tracking
1575                          speeds up one-time build
1576  --disable-libtool-lock  avoid locking (might break parallel builds)
1577  --disable-selective-werror
1578                          Turn off selective compiler errors. (default:
1579                          enabled)
1580  --enable-strict-compilation
1581                          Enable all warnings from compiler and make them
1582                          errors (default: disabled)
1583  --enable-specs          Enable building the specs (default: yes)
1584  --disable-xaw6          Disable building of libXaw.so.6
1585  --disable-xaw7          Disable building of libXaw.so.7
1586  --disable-const         Disable const-support
1587
1588Optional Packages:
1589  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1590  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1591  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1592                          both]
1593  --with-aix-soname=aix|svr4|both
1594                          shared library versioning (aka "SONAME") variant to
1595                          provide on AIX, [default=aix].
1596  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1597  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1598                          compiler's sysroot if not specified).
1599  --with-xmlto            Use xmlto to regenerate documentation (default:
1600                          auto)
1601  --with-fop              Use fop to regenerate documentation (default: auto)
1602  --with-xsltproc         Use xsltproc for the transformation of XML documents
1603                          (default: auto)
1604
1605Some influential environment variables:
1606  CC          C compiler command
1607  CFLAGS      C compiler flags
1608  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1609              nonstandard directory <lib dir>
1610  LIBS        libraries to pass to the linker, e.g. -l<library>
1611  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1612              you have headers in a nonstandard directory <include dir>
1613  LT_SYS_LIBRARY_PATH
1614              User-defined run-time library search path.
1615  PKG_CONFIG  path to pkg-config utility
1616  PKG_CONFIG_PATH
1617              directories to add to pkg-config's search path
1618  PKG_CONFIG_LIBDIR
1619              path overriding pkg-config's built-in search path
1620  XMLTO       Path to xmlto command
1621  FOP         Path to fop command
1622  XSLTPROC    Path to xsltproc command
1623  XAW6_CFLAGS C compiler flags for XAW6, overriding pkg-config
1624  XAW6_LIBS   linker flags for XAW6, overriding pkg-config
1625  XAW7_CFLAGS C compiler flags for XAW7, overriding pkg-config
1626  XAW7_LIBS   linker flags for XAW7, overriding pkg-config
1627
1628Use these variables to override the choices made by `configure' or to help
1629it to find libraries and programs with nonstandard names/locations.
1630
1631Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxaw/-/issues>.
1632_ACEOF
1633ac_status=$?
1634fi
1635
1636if test "$ac_init_help" = "recursive"; then
1637  # If there are subdirs, report their specific --help.
1638  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1639    test -d "$ac_dir" ||
1640      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1641      continue
1642    ac_builddir=.
1643
1644case "$ac_dir" in
1645.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1646*)
1647  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1648  # A ".." for each directory in $ac_dir_suffix.
1649  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1650  case $ac_top_builddir_sub in
1651  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1652  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1653  esac ;;
1654esac
1655ac_abs_top_builddir=$ac_pwd
1656ac_abs_builddir=$ac_pwd$ac_dir_suffix
1657# for backward compatibility:
1658ac_top_builddir=$ac_top_build_prefix
1659
1660case $srcdir in
1661  .)  # We are building in place.
1662    ac_srcdir=.
1663    ac_top_srcdir=$ac_top_builddir_sub
1664    ac_abs_top_srcdir=$ac_pwd ;;
1665  [\\/]* | ?:[\\/]* )  # Absolute name.
1666    ac_srcdir=$srcdir$ac_dir_suffix;
1667    ac_top_srcdir=$srcdir
1668    ac_abs_top_srcdir=$srcdir ;;
1669  *) # Relative name.
1670    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1671    ac_top_srcdir=$ac_top_build_prefix$srcdir
1672    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1673esac
1674ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1675
1676    cd "$ac_dir" || { ac_status=$?; continue; }
1677    # Check for configure.gnu first; this name is used for a wrapper for
1678    # Metaconfig's "Configure" on case-insensitive file systems.
1679    if test -f "$ac_srcdir/configure.gnu"; then
1680      echo &&
1681      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1682    elif test -f "$ac_srcdir/configure"; then
1683      echo &&
1684      $SHELL "$ac_srcdir/configure" --help=recursive
1685    else
1686      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1687    fi || ac_status=$?
1688    cd "$ac_pwd" || { ac_status=$?; break; }
1689  done
1690fi
1691
1692test -n "$ac_init_help" && exit $ac_status
1693if $ac_init_version; then
1694  cat <<\_ACEOF
1695libXaw configure 1.0.15
1696generated by GNU Autoconf 2.71
1697
1698Copyright (C) 2021 Free Software Foundation, Inc.
1699This configure script is free software; the Free Software Foundation
1700gives unlimited permission to copy, distribute and modify it.
1701_ACEOF
1702  exit
1703fi
1704
1705## ------------------------ ##
1706## Autoconf initialization. ##
1707## ------------------------ ##
1708
1709# ac_fn_c_try_compile LINENO
1710# --------------------------
1711# Try to compile conftest.$ac_ext, and return whether this succeeded.
1712ac_fn_c_try_compile ()
1713{
1714  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1715  rm -f conftest.$ac_objext conftest.beam
1716  if { { ac_try="$ac_compile"
1717case "(($ac_try" in
1718  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1719  *) ac_try_echo=$ac_try;;
1720esac
1721eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1722printf "%s\n" "$ac_try_echo"; } >&5
1723  (eval "$ac_compile") 2>conftest.err
1724  ac_status=$?
1725  if test -s conftest.err; then
1726    grep -v '^ *+' conftest.err >conftest.er1
1727    cat conftest.er1 >&5
1728    mv -f conftest.er1 conftest.err
1729  fi
1730  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1731  test $ac_status = 0; } && {
1732	 test -z "$ac_c_werror_flag" ||
1733	 test ! -s conftest.err
1734       } && test -s conftest.$ac_objext
1735then :
1736  ac_retval=0
1737else $as_nop
1738  printf "%s\n" "$as_me: failed program was:" >&5
1739sed 's/^/| /' conftest.$ac_ext >&5
1740
1741	ac_retval=1
1742fi
1743  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1744  as_fn_set_status $ac_retval
1745
1746} # ac_fn_c_try_compile
1747
1748# ac_fn_c_try_link LINENO
1749# -----------------------
1750# Try to link conftest.$ac_ext, and return whether this succeeded.
1751ac_fn_c_try_link ()
1752{
1753  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1754  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1755  if { { ac_try="$ac_link"
1756case "(($ac_try" in
1757  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1758  *) ac_try_echo=$ac_try;;
1759esac
1760eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1761printf "%s\n" "$ac_try_echo"; } >&5
1762  (eval "$ac_link") 2>conftest.err
1763  ac_status=$?
1764  if test -s conftest.err; then
1765    grep -v '^ *+' conftest.err >conftest.er1
1766    cat conftest.er1 >&5
1767    mv -f conftest.er1 conftest.err
1768  fi
1769  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1770  test $ac_status = 0; } && {
1771	 test -z "$ac_c_werror_flag" ||
1772	 test ! -s conftest.err
1773       } && test -s conftest$ac_exeext && {
1774	 test "$cross_compiling" = yes ||
1775	 test -x conftest$ac_exeext
1776       }
1777then :
1778  ac_retval=0
1779else $as_nop
1780  printf "%s\n" "$as_me: failed program was:" >&5
1781sed 's/^/| /' conftest.$ac_ext >&5
1782
1783	ac_retval=1
1784fi
1785  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1786  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1787  # interfere with the next link command; also delete a directory that is
1788  # left behind by Apple's compiler.  We do this before executing the actions.
1789  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1790  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1791  as_fn_set_status $ac_retval
1792
1793} # ac_fn_c_try_link
1794
1795# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1796# -------------------------------------------------------
1797# Tests whether HEADER exists and can be compiled using the include files in
1798# INCLUDES, setting the cache variable VAR accordingly.
1799ac_fn_c_check_header_compile ()
1800{
1801  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1802  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1803printf %s "checking for $2... " >&6; }
1804if eval test \${$3+y}
1805then :
1806  printf %s "(cached) " >&6
1807else $as_nop
1808  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1809/* end confdefs.h.  */
1810$4
1811#include <$2>
1812_ACEOF
1813if ac_fn_c_try_compile "$LINENO"
1814then :
1815  eval "$3=yes"
1816else $as_nop
1817  eval "$3=no"
1818fi
1819rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1820fi
1821eval ac_res=\$$3
1822	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1823printf "%s\n" "$ac_res" >&6; }
1824  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1825
1826} # ac_fn_c_check_header_compile
1827
1828# ac_fn_c_check_func LINENO FUNC VAR
1829# ----------------------------------
1830# Tests whether FUNC exists, setting the cache variable VAR accordingly
1831ac_fn_c_check_func ()
1832{
1833  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1834  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1835printf %s "checking for $2... " >&6; }
1836if eval test \${$3+y}
1837then :
1838  printf %s "(cached) " >&6
1839else $as_nop
1840  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1841/* end confdefs.h.  */
1842/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1843   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1844#define $2 innocuous_$2
1845
1846/* System header to define __stub macros and hopefully few prototypes,
1847   which can conflict with char $2 (); below.  */
1848
1849#include <limits.h>
1850#undef $2
1851
1852/* Override any GCC internal prototype to avoid an error.
1853   Use char because int might match the return type of a GCC
1854   builtin and then its argument prototype would still apply.  */
1855#ifdef __cplusplus
1856extern "C"
1857#endif
1858char $2 ();
1859/* The GNU C library defines this for functions which it implements
1860    to always fail with ENOSYS.  Some functions are actually named
1861    something starting with __ and the normal name is an alias.  */
1862#if defined __stub_$2 || defined __stub___$2
1863choke me
1864#endif
1865
1866int
1867main (void)
1868{
1869return $2 ();
1870  ;
1871  return 0;
1872}
1873_ACEOF
1874if ac_fn_c_try_link "$LINENO"
1875then :
1876  eval "$3=yes"
1877else $as_nop
1878  eval "$3=no"
1879fi
1880rm -f core conftest.err conftest.$ac_objext conftest.beam \
1881    conftest$ac_exeext conftest.$ac_ext
1882fi
1883eval ac_res=\$$3
1884	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1885printf "%s\n" "$ac_res" >&6; }
1886  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1887
1888} # ac_fn_c_check_func
1889
1890# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1891# ------------------------------------------------------------------
1892# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1893# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1894ac_fn_check_decl ()
1895{
1896  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1897  as_decl_name=`echo $2|sed 's/ *(.*//'`
1898  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1899printf %s "checking whether $as_decl_name is declared... " >&6; }
1900if eval test \${$3+y}
1901then :
1902  printf %s "(cached) " >&6
1903else $as_nop
1904  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1905  eval ac_save_FLAGS=\$$6
1906  as_fn_append $6 " $5"
1907  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1908/* end confdefs.h.  */
1909$4
1910int
1911main (void)
1912{
1913#ifndef $as_decl_name
1914#ifdef __cplusplus
1915  (void) $as_decl_use;
1916#else
1917  (void) $as_decl_name;
1918#endif
1919#endif
1920
1921  ;
1922  return 0;
1923}
1924_ACEOF
1925if ac_fn_c_try_compile "$LINENO"
1926then :
1927  eval "$3=yes"
1928else $as_nop
1929  eval "$3=no"
1930fi
1931rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1932  eval $6=\$ac_save_FLAGS
1933
1934fi
1935eval ac_res=\$$3
1936	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1937printf "%s\n" "$ac_res" >&6; }
1938  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1939
1940} # ac_fn_check_decl
1941ac_configure_args_raw=
1942for ac_arg
1943do
1944  case $ac_arg in
1945  *\'*)
1946    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1947  esac
1948  as_fn_append ac_configure_args_raw " '$ac_arg'"
1949done
1950
1951case $ac_configure_args_raw in
1952  *$as_nl*)
1953    ac_safe_unquote= ;;
1954  *)
1955    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
1956    ac_unsafe_a="$ac_unsafe_z#~"
1957    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1958    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1959esac
1960
1961cat >config.log <<_ACEOF
1962This file contains any messages produced by compilers while
1963running configure, to aid debugging if configure makes a mistake.
1964
1965It was created by libXaw $as_me 1.0.15, which was
1966generated by GNU Autoconf 2.71.  Invocation command line was
1967
1968  $ $0$ac_configure_args_raw
1969
1970_ACEOF
1971exec 5>>config.log
1972{
1973cat <<_ASUNAME
1974## --------- ##
1975## Platform. ##
1976## --------- ##
1977
1978hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1979uname -m = `(uname -m) 2>/dev/null || echo unknown`
1980uname -r = `(uname -r) 2>/dev/null || echo unknown`
1981uname -s = `(uname -s) 2>/dev/null || echo unknown`
1982uname -v = `(uname -v) 2>/dev/null || echo unknown`
1983
1984/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1985/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1986
1987/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1988/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1989/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1990/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1991/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1992/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1993/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1994
1995_ASUNAME
1996
1997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1998for as_dir in $PATH
1999do
2000  IFS=$as_save_IFS
2001  case $as_dir in #(((
2002    '') as_dir=./ ;;
2003    */) ;;
2004    *) as_dir=$as_dir/ ;;
2005  esac
2006    printf "%s\n" "PATH: $as_dir"
2007  done
2008IFS=$as_save_IFS
2009
2010} >&5
2011
2012cat >&5 <<_ACEOF
2013
2014
2015## ----------- ##
2016## Core tests. ##
2017## ----------- ##
2018
2019_ACEOF
2020
2021
2022# Keep a trace of the command line.
2023# Strip out --no-create and --no-recursion so they do not pile up.
2024# Strip out --silent because we don't want to record it for future runs.
2025# Also quote any args containing shell meta-characters.
2026# Make two passes to allow for proper duplicate-argument suppression.
2027ac_configure_args=
2028ac_configure_args0=
2029ac_configure_args1=
2030ac_must_keep_next=false
2031for ac_pass in 1 2
2032do
2033  for ac_arg
2034  do
2035    case $ac_arg in
2036    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2037    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2038    | -silent | --silent | --silen | --sile | --sil)
2039      continue ;;
2040    *\'*)
2041      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2042    esac
2043    case $ac_pass in
2044    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2045    2)
2046      as_fn_append ac_configure_args1 " '$ac_arg'"
2047      if test $ac_must_keep_next = true; then
2048	ac_must_keep_next=false # Got value, back to normal.
2049      else
2050	case $ac_arg in
2051	  *=* | --config-cache | -C | -disable-* | --disable-* \
2052	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2053	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2054	  | -with-* | --with-* | -without-* | --without-* | --x)
2055	    case "$ac_configure_args0 " in
2056	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2057	    esac
2058	    ;;
2059	  -* ) ac_must_keep_next=true ;;
2060	esac
2061      fi
2062      as_fn_append ac_configure_args " '$ac_arg'"
2063      ;;
2064    esac
2065  done
2066done
2067{ ac_configure_args0=; unset ac_configure_args0;}
2068{ ac_configure_args1=; unset ac_configure_args1;}
2069
2070# When interrupted or exit'd, cleanup temporary files, and complete
2071# config.log.  We remove comments because anyway the quotes in there
2072# would cause problems or look ugly.
2073# WARNING: Use '\'' to represent an apostrophe within the trap.
2074# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2075trap 'exit_status=$?
2076  # Sanitize IFS.
2077  IFS=" ""	$as_nl"
2078  # Save into config.log some information that might help in debugging.
2079  {
2080    echo
2081
2082    printf "%s\n" "## ---------------- ##
2083## Cache variables. ##
2084## ---------------- ##"
2085    echo
2086    # The following way of writing the cache mishandles newlines in values,
2087(
2088  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2089    eval ac_val=\$$ac_var
2090    case $ac_val in #(
2091    *${as_nl}*)
2092      case $ac_var in #(
2093      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2094printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2095      esac
2096      case $ac_var in #(
2097      _ | IFS | as_nl) ;; #(
2098      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2099      *) { eval $ac_var=; unset $ac_var;} ;;
2100      esac ;;
2101    esac
2102  done
2103  (set) 2>&1 |
2104    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2105    *${as_nl}ac_space=\ *)
2106      sed -n \
2107	"s/'\''/'\''\\\\'\'''\''/g;
2108	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2109      ;; #(
2110    *)
2111      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2112      ;;
2113    esac |
2114    sort
2115)
2116    echo
2117
2118    printf "%s\n" "## ----------------- ##
2119## Output variables. ##
2120## ----------------- ##"
2121    echo
2122    for ac_var in $ac_subst_vars
2123    do
2124      eval ac_val=\$$ac_var
2125      case $ac_val in
2126      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2127      esac
2128      printf "%s\n" "$ac_var='\''$ac_val'\''"
2129    done | sort
2130    echo
2131
2132    if test -n "$ac_subst_files"; then
2133      printf "%s\n" "## ------------------- ##
2134## File substitutions. ##
2135## ------------------- ##"
2136      echo
2137      for ac_var in $ac_subst_files
2138      do
2139	eval ac_val=\$$ac_var
2140	case $ac_val in
2141	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2142	esac
2143	printf "%s\n" "$ac_var='\''$ac_val'\''"
2144      done | sort
2145      echo
2146    fi
2147
2148    if test -s confdefs.h; then
2149      printf "%s\n" "## ----------- ##
2150## confdefs.h. ##
2151## ----------- ##"
2152      echo
2153      cat confdefs.h
2154      echo
2155    fi
2156    test "$ac_signal" != 0 &&
2157      printf "%s\n" "$as_me: caught signal $ac_signal"
2158    printf "%s\n" "$as_me: exit $exit_status"
2159  } >&5
2160  rm -f core *.core core.conftest.* &&
2161    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2162    exit $exit_status
2163' 0
2164for ac_signal in 1 2 13 15; do
2165  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2166done
2167ac_signal=0
2168
2169# confdefs.h avoids OS command line length limits that DEFS can exceed.
2170rm -f -r conftest* confdefs.h
2171
2172printf "%s\n" "/* confdefs.h */" > confdefs.h
2173
2174# Predefined preprocessor variables.
2175
2176printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2177
2178printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2179
2180printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2181
2182printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2183
2184printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2185
2186printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2187
2188
2189# Let the site file select an alternate cache file if it wants to.
2190# Prefer an explicitly selected file to automatically selected ones.
2191if test -n "$CONFIG_SITE"; then
2192  ac_site_files="$CONFIG_SITE"
2193elif test "x$prefix" != xNONE; then
2194  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2195else
2196  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2197fi
2198
2199for ac_site_file in $ac_site_files
2200do
2201  case $ac_site_file in #(
2202  */*) :
2203     ;; #(
2204  *) :
2205    ac_site_file=./$ac_site_file ;;
2206esac
2207  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2208    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2209printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2210    sed 's/^/| /' "$ac_site_file" >&5
2211    . "$ac_site_file" \
2212      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2213printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2214as_fn_error $? "failed to load site script $ac_site_file
2215See \`config.log' for more details" "$LINENO" 5; }
2216  fi
2217done
2218
2219if test -r "$cache_file"; then
2220  # Some versions of bash will fail to source /dev/null (special files
2221  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2222  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2223    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2224printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2225    case $cache_file in
2226      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2227      *)                      . "./$cache_file";;
2228    esac
2229  fi
2230else
2231  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2232printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2233  >$cache_file
2234fi
2235
2236# Test code for whether the C compiler supports C89 (global declarations)
2237ac_c_conftest_c89_globals='
2238/* Does the compiler advertise C89 conformance?
2239   Do not test the value of __STDC__, because some compilers set it to 0
2240   while being otherwise adequately conformant. */
2241#if !defined __STDC__
2242# error "Compiler does not advertise C89 conformance"
2243#endif
2244
2245#include <stddef.h>
2246#include <stdarg.h>
2247struct stat;
2248/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2249struct buf { int x; };
2250struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2251static char *e (p, i)
2252     char **p;
2253     int i;
2254{
2255  return p[i];
2256}
2257static char *f (char * (*g) (char **, int), char **p, ...)
2258{
2259  char *s;
2260  va_list v;
2261  va_start (v,p);
2262  s = g (p, va_arg (v,int));
2263  va_end (v);
2264  return s;
2265}
2266
2267/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2268   function prototypes and stuff, but not \xHH hex character constants.
2269   These do not provoke an error unfortunately, instead are silently treated
2270   as an "x".  The following induces an error, until -std is added to get
2271   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2272   array size at least.  It is necessary to write \x00 == 0 to get something
2273   that is true only with -std.  */
2274int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2275
2276/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2277   inside strings and character constants.  */
2278#define FOO(x) '\''x'\''
2279int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2280
2281int test (int i, double x);
2282struct s1 {int (*f) (int a);};
2283struct s2 {int (*f) (double a);};
2284int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2285               int, int);'
2286
2287# Test code for whether the C compiler supports C89 (body of main).
2288ac_c_conftest_c89_main='
2289ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2290'
2291
2292# Test code for whether the C compiler supports C99 (global declarations)
2293ac_c_conftest_c99_globals='
2294// Does the compiler advertise C99 conformance?
2295#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2296# error "Compiler does not advertise C99 conformance"
2297#endif
2298
2299#include <stdbool.h>
2300extern int puts (const char *);
2301extern int printf (const char *, ...);
2302extern int dprintf (int, const char *, ...);
2303extern void *malloc (size_t);
2304
2305// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2306// dprintf is used instead of fprintf to avoid needing to declare
2307// FILE and stderr.
2308#define debug(...) dprintf (2, __VA_ARGS__)
2309#define showlist(...) puts (#__VA_ARGS__)
2310#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2311static void
2312test_varargs_macros (void)
2313{
2314  int x = 1234;
2315  int y = 5678;
2316  debug ("Flag");
2317  debug ("X = %d\n", x);
2318  showlist (The first, second, and third items.);
2319  report (x>y, "x is %d but y is %d", x, y);
2320}
2321
2322// Check long long types.
2323#define BIG64 18446744073709551615ull
2324#define BIG32 4294967295ul
2325#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2326#if !BIG_OK
2327  #error "your preprocessor is broken"
2328#endif
2329#if BIG_OK
2330#else
2331  #error "your preprocessor is broken"
2332#endif
2333static long long int bignum = -9223372036854775807LL;
2334static unsigned long long int ubignum = BIG64;
2335
2336struct incomplete_array
2337{
2338  int datasize;
2339  double data[];
2340};
2341
2342struct named_init {
2343  int number;
2344  const wchar_t *name;
2345  double average;
2346};
2347
2348typedef const char *ccp;
2349
2350static inline int
2351test_restrict (ccp restrict text)
2352{
2353  // See if C++-style comments work.
2354  // Iterate through items via the restricted pointer.
2355  // Also check for declarations in for loops.
2356  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2357    continue;
2358  return 0;
2359}
2360
2361// Check varargs and va_copy.
2362static bool
2363test_varargs (const char *format, ...)
2364{
2365  va_list args;
2366  va_start (args, format);
2367  va_list args_copy;
2368  va_copy (args_copy, args);
2369
2370  const char *str = "";
2371  int number = 0;
2372  float fnumber = 0;
2373
2374  while (*format)
2375    {
2376      switch (*format++)
2377	{
2378	case '\''s'\'': // string
2379	  str = va_arg (args_copy, const char *);
2380	  break;
2381	case '\''d'\'': // int
2382	  number = va_arg (args_copy, int);
2383	  break;
2384	case '\''f'\'': // float
2385	  fnumber = va_arg (args_copy, double);
2386	  break;
2387	default:
2388	  break;
2389	}
2390    }
2391  va_end (args_copy);
2392  va_end (args);
2393
2394  return *str && number && fnumber;
2395}
2396'
2397
2398# Test code for whether the C compiler supports C99 (body of main).
2399ac_c_conftest_c99_main='
2400  // Check bool.
2401  _Bool success = false;
2402  success |= (argc != 0);
2403
2404  // Check restrict.
2405  if (test_restrict ("String literal") == 0)
2406    success = true;
2407  char *restrict newvar = "Another string";
2408
2409  // Check varargs.
2410  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2411  test_varargs_macros ();
2412
2413  // Check flexible array members.
2414  struct incomplete_array *ia =
2415    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2416  ia->datasize = 10;
2417  for (int i = 0; i < ia->datasize; ++i)
2418    ia->data[i] = i * 1.234;
2419
2420  // Check named initializers.
2421  struct named_init ni = {
2422    .number = 34,
2423    .name = L"Test wide string",
2424    .average = 543.34343,
2425  };
2426
2427  ni.number = 58;
2428
2429  int dynamic_array[ni.number];
2430  dynamic_array[0] = argv[0][0];
2431  dynamic_array[ni.number - 1] = 543;
2432
2433  // work around unused variable warnings
2434  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2435	 || dynamic_array[ni.number - 1] != 543);
2436'
2437
2438# Test code for whether the C compiler supports C11 (global declarations)
2439ac_c_conftest_c11_globals='
2440// Does the compiler advertise C11 conformance?
2441#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2442# error "Compiler does not advertise C11 conformance"
2443#endif
2444
2445// Check _Alignas.
2446char _Alignas (double) aligned_as_double;
2447char _Alignas (0) no_special_alignment;
2448extern char aligned_as_int;
2449char _Alignas (0) _Alignas (int) aligned_as_int;
2450
2451// Check _Alignof.
2452enum
2453{
2454  int_alignment = _Alignof (int),
2455  int_array_alignment = _Alignof (int[100]),
2456  char_alignment = _Alignof (char)
2457};
2458_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2459
2460// Check _Noreturn.
2461int _Noreturn does_not_return (void) { for (;;) continue; }
2462
2463// Check _Static_assert.
2464struct test_static_assert
2465{
2466  int x;
2467  _Static_assert (sizeof (int) <= sizeof (long int),
2468                  "_Static_assert does not work in struct");
2469  long int y;
2470};
2471
2472// Check UTF-8 literals.
2473#define u8 syntax error!
2474char const utf8_literal[] = u8"happens to be ASCII" "another string";
2475
2476// Check duplicate typedefs.
2477typedef long *long_ptr;
2478typedef long int *long_ptr;
2479typedef long_ptr long_ptr;
2480
2481// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2482struct anonymous
2483{
2484  union {
2485    struct { int i; int j; };
2486    struct { int k; long int l; } w;
2487  };
2488  int m;
2489} v1;
2490'
2491
2492# Test code for whether the C compiler supports C11 (body of main).
2493ac_c_conftest_c11_main='
2494  _Static_assert ((offsetof (struct anonymous, i)
2495		   == offsetof (struct anonymous, w.k)),
2496		  "Anonymous union alignment botch");
2497  v1.i = 2;
2498  v1.w.k = 5;
2499  ok |= v1.i != 5;
2500'
2501
2502# Test code for whether the C compiler supports C11 (complete).
2503ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2504${ac_c_conftest_c99_globals}
2505${ac_c_conftest_c11_globals}
2506
2507int
2508main (int argc, char **argv)
2509{
2510  int ok = 0;
2511  ${ac_c_conftest_c89_main}
2512  ${ac_c_conftest_c99_main}
2513  ${ac_c_conftest_c11_main}
2514  return ok;
2515}
2516"
2517
2518# Test code for whether the C compiler supports C99 (complete).
2519ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2520${ac_c_conftest_c99_globals}
2521
2522int
2523main (int argc, char **argv)
2524{
2525  int ok = 0;
2526  ${ac_c_conftest_c89_main}
2527  ${ac_c_conftest_c99_main}
2528  return ok;
2529}
2530"
2531
2532# Test code for whether the C compiler supports C89 (complete).
2533ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2534
2535int
2536main (int argc, char **argv)
2537{
2538  int ok = 0;
2539  ${ac_c_conftest_c89_main}
2540  return ok;
2541}
2542"
2543
2544as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2545as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2546as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2547as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2548as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2549as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2550as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2551as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2552as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2553
2554# Auxiliary files required by this configure script.
2555ac_aux_files="compile config.guess config.sub ltmain.sh missing install-sh"
2556
2557# Locations in which to look for auxiliary files.
2558ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2559
2560# Search for a directory containing all of the required auxiliary files,
2561# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2562# If we don't find one directory that contains all the files we need,
2563# we report the set of missing files from the *first* directory in
2564# $ac_aux_dir_candidates and give up.
2565ac_missing_aux_files=""
2566ac_first_candidate=:
2567printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2569as_found=false
2570for as_dir in $ac_aux_dir_candidates
2571do
2572  IFS=$as_save_IFS
2573  case $as_dir in #(((
2574    '') as_dir=./ ;;
2575    */) ;;
2576    *) as_dir=$as_dir/ ;;
2577  esac
2578  as_found=:
2579
2580  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2581  ac_aux_dir_found=yes
2582  ac_install_sh=
2583  for ac_aux in $ac_aux_files
2584  do
2585    # As a special case, if "install-sh" is required, that requirement
2586    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2587    # and $ac_install_sh is set appropriately for whichever one is found.
2588    if test x"$ac_aux" = x"install-sh"
2589    then
2590      if test -f "${as_dir}install-sh"; then
2591        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2592        ac_install_sh="${as_dir}install-sh -c"
2593      elif test -f "${as_dir}install.sh"; then
2594        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2595        ac_install_sh="${as_dir}install.sh -c"
2596      elif test -f "${as_dir}shtool"; then
2597        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2598        ac_install_sh="${as_dir}shtool install -c"
2599      else
2600        ac_aux_dir_found=no
2601        if $ac_first_candidate; then
2602          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2603        else
2604          break
2605        fi
2606      fi
2607    else
2608      if test -f "${as_dir}${ac_aux}"; then
2609        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2610      else
2611        ac_aux_dir_found=no
2612        if $ac_first_candidate; then
2613          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2614        else
2615          break
2616        fi
2617      fi
2618    fi
2619  done
2620  if test "$ac_aux_dir_found" = yes; then
2621    ac_aux_dir="$as_dir"
2622    break
2623  fi
2624  ac_first_candidate=false
2625
2626  as_found=false
2627done
2628IFS=$as_save_IFS
2629if $as_found
2630then :
2631
2632else $as_nop
2633  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2634fi
2635
2636
2637# These three variables are undocumented and unsupported,
2638# and are intended to be withdrawn in a future Autoconf release.
2639# They can cause serious problems if a builder's source tree is in a directory
2640# whose full name contains unusual characters.
2641if test -f "${ac_aux_dir}config.guess"; then
2642  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2643fi
2644if test -f "${ac_aux_dir}config.sub"; then
2645  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2646fi
2647if test -f "$ac_aux_dir/configure"; then
2648  ac_configure="$SHELL ${ac_aux_dir}configure"
2649fi
2650
2651# Check that the precious variables saved in the cache have kept the same
2652# value.
2653ac_cache_corrupted=false
2654for ac_var in $ac_precious_vars; do
2655  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2656  eval ac_new_set=\$ac_env_${ac_var}_set
2657  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2658  eval ac_new_val=\$ac_env_${ac_var}_value
2659  case $ac_old_set,$ac_new_set in
2660    set,)
2661      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2662printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2663      ac_cache_corrupted=: ;;
2664    ,set)
2665      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2666printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2667      ac_cache_corrupted=: ;;
2668    ,);;
2669    *)
2670      if test "x$ac_old_val" != "x$ac_new_val"; then
2671	# differences in whitespace do not lead to failure.
2672	ac_old_val_w=`echo x $ac_old_val`
2673	ac_new_val_w=`echo x $ac_new_val`
2674	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2675	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2676printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2677	  ac_cache_corrupted=:
2678	else
2679	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2680printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2681	  eval $ac_var=\$ac_old_val
2682	fi
2683	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2684printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
2685	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2686printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
2687      fi;;
2688  esac
2689  # Pass precious variables to config.status.
2690  if test "$ac_new_set" = set; then
2691    case $ac_new_val in
2692    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2693    *) ac_arg=$ac_var=$ac_new_val ;;
2694    esac
2695    case " $ac_configure_args " in
2696      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2697      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2698    esac
2699  fi
2700done
2701if $ac_cache_corrupted; then
2702  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2703printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2704  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2705printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2706  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2707	    and start over" "$LINENO" 5
2708fi
2709## -------------------- ##
2710## Main body of script. ##
2711## -------------------- ##
2712
2713ac_ext=c
2714ac_cpp='$CPP $CPPFLAGS'
2715ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2716ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2717ac_compiler_gnu=$ac_cv_c_compiler_gnu
2718
2719
2720
2721ac_config_headers="$ac_config_headers config.h"
2722
2723
2724
2725# Initialize Automake
2726am__api_version='1.16'
2727
2728
2729
2730  # Find a good install program.  We prefer a C program (faster),
2731# so one script is as good as another.  But avoid the broken or
2732# incompatible versions:
2733# SysV /etc/install, /usr/sbin/install
2734# SunOS /usr/etc/install
2735# IRIX /sbin/install
2736# AIX /bin/install
2737# AmigaOS /C/install, which installs bootblocks on floppy discs
2738# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2739# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2740# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2741# OS/2's system install, which has a completely different semantic
2742# ./install, which can be erroneously created by make from ./install.sh.
2743# Reject install programs that cannot install multiple files.
2744{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2745printf %s "checking for a BSD-compatible install... " >&6; }
2746if test -z "$INSTALL"; then
2747if test ${ac_cv_path_install+y}
2748then :
2749  printf %s "(cached) " >&6
2750else $as_nop
2751  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2752for as_dir in $PATH
2753do
2754  IFS=$as_save_IFS
2755  case $as_dir in #(((
2756    '') as_dir=./ ;;
2757    */) ;;
2758    *) as_dir=$as_dir/ ;;
2759  esac
2760    # Account for fact that we put trailing slashes in our PATH walk.
2761case $as_dir in #((
2762  ./ | /[cC]/* | \
2763  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2764  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2765  /usr/ucb/* ) ;;
2766  *)
2767    # OSF1 and SCO ODT 3.0 have their own names for install.
2768    # Don't use installbsd from OSF since it installs stuff as root
2769    # by default.
2770    for ac_prog in ginstall scoinst install; do
2771      for ac_exec_ext in '' $ac_executable_extensions; do
2772	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2773	  if test $ac_prog = install &&
2774	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2775	    # AIX install.  It has an incompatible calling convention.
2776	    :
2777	  elif test $ac_prog = install &&
2778	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2779	    # program-specific install script used by HP pwplus--don't use.
2780	    :
2781	  else
2782	    rm -rf conftest.one conftest.two conftest.dir
2783	    echo one > conftest.one
2784	    echo two > conftest.two
2785	    mkdir conftest.dir
2786	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2787	      test -s conftest.one && test -s conftest.two &&
2788	      test -s conftest.dir/conftest.one &&
2789	      test -s conftest.dir/conftest.two
2790	    then
2791	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2792	      break 3
2793	    fi
2794	  fi
2795	fi
2796      done
2797    done
2798    ;;
2799esac
2800
2801  done
2802IFS=$as_save_IFS
2803
2804rm -rf conftest.one conftest.two conftest.dir
2805
2806fi
2807  if test ${ac_cv_path_install+y}; then
2808    INSTALL=$ac_cv_path_install
2809  else
2810    # As a last resort, use the slow shell script.  Don't cache a
2811    # value for INSTALL within a source directory, because that will
2812    # break other packages using the cache if that directory is
2813    # removed, or if the value is a relative name.
2814    INSTALL=$ac_install_sh
2815  fi
2816fi
2817{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2818printf "%s\n" "$INSTALL" >&6; }
2819
2820# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2821# It thinks the first close brace ends the variable substitution.
2822test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2823
2824test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2825
2826test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2827
2828{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2829printf %s "checking whether build environment is sane... " >&6; }
2830# Reject unsafe characters in $srcdir or the absolute working directory
2831# name.  Accept space and tab only in the latter.
2832am_lf='
2833'
2834case `pwd` in
2835  *[\\\"\#\$\&\'\`$am_lf]*)
2836    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2837esac
2838case $srcdir in
2839  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2840    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2841esac
2842
2843# Do 'set' in a subshell so we don't clobber the current shell's
2844# arguments.  Must try -L first in case configure is actually a
2845# symlink; some systems play weird games with the mod time of symlinks
2846# (eg FreeBSD returns the mod time of the symlink's containing
2847# directory).
2848if (
2849   am_has_slept=no
2850   for am_try in 1 2; do
2851     echo "timestamp, slept: $am_has_slept" > conftest.file
2852     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2853     if test "$*" = "X"; then
2854	# -L didn't work.
2855	set X `ls -t "$srcdir/configure" conftest.file`
2856     fi
2857     if test "$*" != "X $srcdir/configure conftest.file" \
2858	&& test "$*" != "X conftest.file $srcdir/configure"; then
2859
2860	# If neither matched, then we have a broken ls.  This can happen
2861	# if, for instance, CONFIG_SHELL is bash and it inherits a
2862	# broken ls alias from the environment.  This has actually
2863	# happened.  Such a system could not be considered "sane".
2864	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2865  alias in your environment" "$LINENO" 5
2866     fi
2867     if test "$2" = conftest.file || test $am_try -eq 2; then
2868       break
2869     fi
2870     # Just in case.
2871     sleep 1
2872     am_has_slept=yes
2873   done
2874   test "$2" = conftest.file
2875   )
2876then
2877   # Ok.
2878   :
2879else
2880   as_fn_error $? "newly created file is older than distributed files!
2881Check your system clock" "$LINENO" 5
2882fi
2883{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2884printf "%s\n" "yes" >&6; }
2885# If we didn't sleep, we still need to ensure time stamps of config.status and
2886# generated files are strictly newer.
2887am_sleep_pid=
2888if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2889  ( sleep 1 ) &
2890  am_sleep_pid=$!
2891fi
2892
2893rm -f conftest.file
2894
2895test "$program_prefix" != NONE &&
2896  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2897# Use a double $ so make ignores it.
2898test "$program_suffix" != NONE &&
2899  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2900# Double any \ or $.
2901# By default was `s,x,x', remove it if useless.
2902ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2903program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2904
2905
2906# Expand $ac_aux_dir to an absolute path.
2907am_aux_dir=`cd "$ac_aux_dir" && pwd`
2908
2909
2910  if test x"${MISSING+set}" != xset; then
2911  MISSING="\${SHELL} '$am_aux_dir/missing'"
2912fi
2913# Use eval to expand $SHELL
2914if eval "$MISSING --is-lightweight"; then
2915  am_missing_run="$MISSING "
2916else
2917  am_missing_run=
2918  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2919printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2920fi
2921
2922if test x"${install_sh+set}" != xset; then
2923  case $am_aux_dir in
2924  *\ * | *\	*)
2925    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2926  *)
2927    install_sh="\${SHELL} $am_aux_dir/install-sh"
2928  esac
2929fi
2930
2931# Installed binaries are usually stripped using 'strip' when the user
2932# run "make install-strip".  However 'strip' might not be the right
2933# tool to use in cross-compilation environments, therefore Automake
2934# will honor the 'STRIP' environment variable to overrule this program.
2935if test "$cross_compiling" != no; then
2936  if test -n "$ac_tool_prefix"; then
2937  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2938set dummy ${ac_tool_prefix}strip; ac_word=$2
2939{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2940printf %s "checking for $ac_word... " >&6; }
2941if test ${ac_cv_prog_STRIP+y}
2942then :
2943  printf %s "(cached) " >&6
2944else $as_nop
2945  if test -n "$STRIP"; then
2946  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2947else
2948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2949for as_dir in $PATH
2950do
2951  IFS=$as_save_IFS
2952  case $as_dir in #(((
2953    '') as_dir=./ ;;
2954    */) ;;
2955    *) as_dir=$as_dir/ ;;
2956  esac
2957    for ac_exec_ext in '' $ac_executable_extensions; do
2958  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2959    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2960    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2961    break 2
2962  fi
2963done
2964  done
2965IFS=$as_save_IFS
2966
2967fi
2968fi
2969STRIP=$ac_cv_prog_STRIP
2970if test -n "$STRIP"; then
2971  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2972printf "%s\n" "$STRIP" >&6; }
2973else
2974  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2975printf "%s\n" "no" >&6; }
2976fi
2977
2978
2979fi
2980if test -z "$ac_cv_prog_STRIP"; then
2981  ac_ct_STRIP=$STRIP
2982  # Extract the first word of "strip", so it can be a program name with args.
2983set dummy strip; ac_word=$2
2984{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2985printf %s "checking for $ac_word... " >&6; }
2986if test ${ac_cv_prog_ac_ct_STRIP+y}
2987then :
2988  printf %s "(cached) " >&6
2989else $as_nop
2990  if test -n "$ac_ct_STRIP"; then
2991  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2992else
2993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2994for as_dir in $PATH
2995do
2996  IFS=$as_save_IFS
2997  case $as_dir in #(((
2998    '') as_dir=./ ;;
2999    */) ;;
3000    *) as_dir=$as_dir/ ;;
3001  esac
3002    for ac_exec_ext in '' $ac_executable_extensions; do
3003  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3004    ac_cv_prog_ac_ct_STRIP="strip"
3005    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3006    break 2
3007  fi
3008done
3009  done
3010IFS=$as_save_IFS
3011
3012fi
3013fi
3014ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3015if test -n "$ac_ct_STRIP"; then
3016  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3017printf "%s\n" "$ac_ct_STRIP" >&6; }
3018else
3019  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3020printf "%s\n" "no" >&6; }
3021fi
3022
3023  if test "x$ac_ct_STRIP" = x; then
3024    STRIP=":"
3025  else
3026    case $cross_compiling:$ac_tool_warned in
3027yes:)
3028{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3029printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3030ac_tool_warned=yes ;;
3031esac
3032    STRIP=$ac_ct_STRIP
3033  fi
3034else
3035  STRIP="$ac_cv_prog_STRIP"
3036fi
3037
3038fi
3039INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3040
3041
3042  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3043printf %s "checking for a race-free mkdir -p... " >&6; }
3044if test -z "$MKDIR_P"; then
3045  if test ${ac_cv_path_mkdir+y}
3046then :
3047  printf %s "(cached) " >&6
3048else $as_nop
3049  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3050for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3051do
3052  IFS=$as_save_IFS
3053  case $as_dir in #(((
3054    '') as_dir=./ ;;
3055    */) ;;
3056    *) as_dir=$as_dir/ ;;
3057  esac
3058    for ac_prog in mkdir gmkdir; do
3059	 for ac_exec_ext in '' $ac_executable_extensions; do
3060	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3061	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3062	     'mkdir ('*'coreutils) '* | \
3063	     'BusyBox '* | \
3064	     'mkdir (fileutils) '4.1*)
3065	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3066	       break 3;;
3067	   esac
3068	 done
3069       done
3070  done
3071IFS=$as_save_IFS
3072
3073fi
3074
3075  test -d ./--version && rmdir ./--version
3076  if test ${ac_cv_path_mkdir+y}; then
3077    MKDIR_P="$ac_cv_path_mkdir -p"
3078  else
3079    # As a last resort, use the slow shell script.  Don't cache a
3080    # value for MKDIR_P within a source directory, because that will
3081    # break other packages using the cache if that directory is
3082    # removed, or if the value is a relative name.
3083    MKDIR_P="$ac_install_sh -d"
3084  fi
3085fi
3086{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3087printf "%s\n" "$MKDIR_P" >&6; }
3088
3089for ac_prog in gawk mawk nawk awk
3090do
3091  # Extract the first word of "$ac_prog", so it can be a program name with args.
3092set dummy $ac_prog; ac_word=$2
3093{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3094printf %s "checking for $ac_word... " >&6; }
3095if test ${ac_cv_prog_AWK+y}
3096then :
3097  printf %s "(cached) " >&6
3098else $as_nop
3099  if test -n "$AWK"; then
3100  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3101else
3102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3103for as_dir in $PATH
3104do
3105  IFS=$as_save_IFS
3106  case $as_dir in #(((
3107    '') as_dir=./ ;;
3108    */) ;;
3109    *) as_dir=$as_dir/ ;;
3110  esac
3111    for ac_exec_ext in '' $ac_executable_extensions; do
3112  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3113    ac_cv_prog_AWK="$ac_prog"
3114    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3115    break 2
3116  fi
3117done
3118  done
3119IFS=$as_save_IFS
3120
3121fi
3122fi
3123AWK=$ac_cv_prog_AWK
3124if test -n "$AWK"; then
3125  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3126printf "%s\n" "$AWK" >&6; }
3127else
3128  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3129printf "%s\n" "no" >&6; }
3130fi
3131
3132
3133  test -n "$AWK" && break
3134done
3135
3136{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3137printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3138set x ${MAKE-make}
3139ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3140if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3141then :
3142  printf %s "(cached) " >&6
3143else $as_nop
3144  cat >conftest.make <<\_ACEOF
3145SHELL = /bin/sh
3146all:
3147	@echo '@@@%%%=$(MAKE)=@@@%%%'
3148_ACEOF
3149# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3150case `${MAKE-make} -f conftest.make 2>/dev/null` in
3151  *@@@%%%=?*=@@@%%%*)
3152    eval ac_cv_prog_make_${ac_make}_set=yes;;
3153  *)
3154    eval ac_cv_prog_make_${ac_make}_set=no;;
3155esac
3156rm -f conftest.make
3157fi
3158if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3159  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3160printf "%s\n" "yes" >&6; }
3161  SET_MAKE=
3162else
3163  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3164printf "%s\n" "no" >&6; }
3165  SET_MAKE="MAKE=${MAKE-make}"
3166fi
3167
3168rm -rf .tst 2>/dev/null
3169mkdir .tst 2>/dev/null
3170if test -d .tst; then
3171  am__leading_dot=.
3172else
3173  am__leading_dot=_
3174fi
3175rmdir .tst 2>/dev/null
3176
3177# Check whether --enable-silent-rules was given.
3178if test ${enable_silent_rules+y}
3179then :
3180  enableval=$enable_silent_rules;
3181fi
3182
3183case $enable_silent_rules in # (((
3184  yes) AM_DEFAULT_VERBOSITY=0;;
3185   no) AM_DEFAULT_VERBOSITY=1;;
3186    *) AM_DEFAULT_VERBOSITY=1;;
3187esac
3188am_make=${MAKE-make}
3189{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3190printf %s "checking whether $am_make supports nested variables... " >&6; }
3191if test ${am_cv_make_support_nested_variables+y}
3192then :
3193  printf %s "(cached) " >&6
3194else $as_nop
3195  if printf "%s\n" 'TRUE=$(BAR$(V))
3196BAR0=false
3197BAR1=true
3198V=1
3199am__doit:
3200	@$(TRUE)
3201.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3202  am_cv_make_support_nested_variables=yes
3203else
3204  am_cv_make_support_nested_variables=no
3205fi
3206fi
3207{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3208printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3209if test $am_cv_make_support_nested_variables = yes; then
3210    AM_V='$(V)'
3211  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3212else
3213  AM_V=$AM_DEFAULT_VERBOSITY
3214  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3215fi
3216AM_BACKSLASH='\'
3217
3218if test "`cd $srcdir && pwd`" != "`pwd`"; then
3219  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3220  # is not polluted with repeated "-I."
3221  am__isrc=' -I$(srcdir)'
3222  # test to see if srcdir already configured
3223  if test -f $srcdir/config.status; then
3224    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3225  fi
3226fi
3227
3228# test whether we have cygpath
3229if test -z "$CYGPATH_W"; then
3230  if (cygpath --version) >/dev/null 2>/dev/null; then
3231    CYGPATH_W='cygpath -w'
3232  else
3233    CYGPATH_W=echo
3234  fi
3235fi
3236
3237
3238# Define the identity of the package.
3239 PACKAGE='libXaw'
3240 VERSION='1.0.15'
3241
3242
3243printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3244
3245
3246printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3247
3248# Some tools Automake needs.
3249
3250ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3251
3252
3253AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3254
3255
3256AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3257
3258
3259AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3260
3261
3262MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3263
3264# For better backward compatibility.  To be removed once Automake 1.9.x
3265# dies out for good.  For more background, see:
3266# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3267# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3268mkdir_p='$(MKDIR_P)'
3269
3270# We need awk for the "check" target (and possibly the TAP driver).  The
3271# system "awk" is bad on some platforms.
3272# Always define AMTAR for backward compatibility.  Yes, it's still used
3273# in the wild :-(  We should find a proper way to deprecate it ...
3274AMTAR='$${TAR-tar}'
3275
3276
3277# We'll loop over all known methods to create a tar archive until one works.
3278_am_tools='gnutar  pax cpio none'
3279
3280am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3281
3282
3283
3284
3285
3286# Variables for tags utilities; see am/tags.am
3287if test -z "$CTAGS"; then
3288  CTAGS=ctags
3289fi
3290
3291if test -z "$ETAGS"; then
3292  ETAGS=etags
3293fi
3294
3295if test -z "$CSCOPE"; then
3296  CSCOPE=cscope
3297fi
3298
3299
3300
3301# POSIX will say in a future version that running "rm -f" with no argument
3302# is OK; and we want to be able to make that assumption in our Makefile
3303# recipes.  So use an aggressive probe to check that the usage we want is
3304# actually supported "in the wild" to an acceptable degree.
3305# See automake bug#10828.
3306# To make any issue more visible, cause the running configure to be aborted
3307# by default if the 'rm' program in use doesn't match our expectations; the
3308# user can still override this though.
3309if rm -f && rm -fr && rm -rf; then : OK; else
3310  cat >&2 <<'END'
3311Oops!
3312
3313Your 'rm' program seems unable to run without file operands specified
3314on the command line, even when the '-f' option is present.  This is contrary
3315to the behaviour of most rm programs out there, and not conforming with
3316the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3317
3318Please tell bug-automake@gnu.org about your system, including the value
3319of your $PATH and any error possibly output before this message.  This
3320can help us improve future automake versions.
3321
3322END
3323  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3324    echo 'Configuration will proceed anyway, since you have set the' >&2
3325    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3326    echo >&2
3327  else
3328    cat >&2 <<'END'
3329Aborting the configuration process, to ensure you take notice of the issue.
3330
3331You can download and install GNU coreutils to get an 'rm' implementation
3332that behaves properly: <https://www.gnu.org/software/coreutils/>.
3333
3334If you want to complete the configuration process using your problematic
3335'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3336to "yes", and re-run configure.
3337
3338END
3339    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3340  fi
3341fi
3342
3343
3344# Initialize libtool
3345case `pwd` in
3346  *\ * | *\	*)
3347    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3348printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3349esac
3350
3351
3352
3353macro_version='2.4.7'
3354macro_revision='2.4.7'
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369ltmain=$ac_aux_dir/ltmain.sh
3370
3371
3372
3373  # Make sure we can run config.sub.
3374$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3375  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3376
3377{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3378printf %s "checking build system type... " >&6; }
3379if test ${ac_cv_build+y}
3380then :
3381  printf %s "(cached) " >&6
3382else $as_nop
3383  ac_build_alias=$build_alias
3384test "x$ac_build_alias" = x &&
3385  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3386test "x$ac_build_alias" = x &&
3387  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3388ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3389  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3390
3391fi
3392{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3393printf "%s\n" "$ac_cv_build" >&6; }
3394case $ac_cv_build in
3395*-*-*) ;;
3396*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3397esac
3398build=$ac_cv_build
3399ac_save_IFS=$IFS; IFS='-'
3400set x $ac_cv_build
3401shift
3402build_cpu=$1
3403build_vendor=$2
3404shift; shift
3405# Remember, the first character of IFS is used to create $*,
3406# except with old shells:
3407build_os=$*
3408IFS=$ac_save_IFS
3409case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3410
3411
3412{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3413printf %s "checking host system type... " >&6; }
3414if test ${ac_cv_host+y}
3415then :
3416  printf %s "(cached) " >&6
3417else $as_nop
3418  if test "x$host_alias" = x; then
3419  ac_cv_host=$ac_cv_build
3420else
3421  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3422    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3423fi
3424
3425fi
3426{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3427printf "%s\n" "$ac_cv_host" >&6; }
3428case $ac_cv_host in
3429*-*-*) ;;
3430*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3431esac
3432host=$ac_cv_host
3433ac_save_IFS=$IFS; IFS='-'
3434set x $ac_cv_host
3435shift
3436host_cpu=$1
3437host_vendor=$2
3438shift; shift
3439# Remember, the first character of IFS is used to create $*,
3440# except with old shells:
3441host_os=$*
3442IFS=$ac_save_IFS
3443case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3444
3445
3446# Backslashify metacharacters that are still active within
3447# double-quoted strings.
3448sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3449
3450# Same as above, but do not quote variable references.
3451double_quote_subst='s/\(["`\\]\)/\\\1/g'
3452
3453# Sed substitution to delay expansion of an escaped shell variable in a
3454# double_quote_subst'ed string.
3455delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3456
3457# Sed substitution to delay expansion of an escaped single quote.
3458delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3459
3460# Sed substitution to avoid accidental globbing in evaled expressions
3461no_glob_subst='s/\*/\\\*/g'
3462
3463ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3464ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3465ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3466
3467{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3468printf %s "checking how to print strings... " >&6; }
3469# Test print first, because it will be a builtin if present.
3470if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3471   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3472  ECHO='print -r --'
3473elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3474  ECHO='printf %s\n'
3475else
3476  # Use this function as a fallback that always works.
3477  func_fallback_echo ()
3478  {
3479    eval 'cat <<_LTECHO_EOF
3480$1
3481_LTECHO_EOF'
3482  }
3483  ECHO='func_fallback_echo'
3484fi
3485
3486# func_echo_all arg...
3487# Invoke $ECHO with all args, space-separated.
3488func_echo_all ()
3489{
3490    $ECHO ""
3491}
3492
3493case $ECHO in
3494  printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3495printf "%s\n" "printf" >&6; } ;;
3496  print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3497printf "%s\n" "print -r" >&6; } ;;
3498  *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3499printf "%s\n" "cat" >&6; } ;;
3500esac
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524DEPDIR="${am__leading_dot}deps"
3525
3526ac_config_commands="$ac_config_commands depfiles"
3527
3528{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3529printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3530cat > confinc.mk << 'END'
3531am__doit:
3532	@echo this is the am__doit target >confinc.out
3533.PHONY: am__doit
3534END
3535am__include="#"
3536am__quote=
3537# BSD make does it like this.
3538echo '.include "confinc.mk" # ignored' > confmf.BSD
3539# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3540echo 'include confinc.mk # ignored' > confmf.GNU
3541_am_result=no
3542for s in GNU BSD; do
3543  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3544   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3545   ac_status=$?
3546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3547   (exit $ac_status); }
3548  case $?:`cat confinc.out 2>/dev/null` in #(
3549  '0:this is the am__doit target') :
3550    case $s in #(
3551  BSD) :
3552    am__include='.include' am__quote='"' ;; #(
3553  *) :
3554    am__include='include' am__quote='' ;;
3555esac ;; #(
3556  *) :
3557     ;;
3558esac
3559  if test "$am__include" != "#"; then
3560    _am_result="yes ($s style)"
3561    break
3562  fi
3563done
3564rm -f confinc.* confmf.*
3565{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3566printf "%s\n" "${_am_result}" >&6; }
3567
3568# Check whether --enable-dependency-tracking was given.
3569if test ${enable_dependency_tracking+y}
3570then :
3571  enableval=$enable_dependency_tracking;
3572fi
3573
3574if test "x$enable_dependency_tracking" != xno; then
3575  am_depcomp="$ac_aux_dir/depcomp"
3576  AMDEPBACKSLASH='\'
3577  am__nodep='_no'
3578fi
3579 if test "x$enable_dependency_tracking" != xno; then
3580  AMDEP_TRUE=
3581  AMDEP_FALSE='#'
3582else
3583  AMDEP_TRUE='#'
3584  AMDEP_FALSE=
3585fi
3586
3587
3588ac_ext=c
3589ac_cpp='$CPP $CPPFLAGS'
3590ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3591ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3592ac_compiler_gnu=$ac_cv_c_compiler_gnu
3593if test -n "$ac_tool_prefix"; then
3594  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3595set dummy ${ac_tool_prefix}gcc; ac_word=$2
3596{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3597printf %s "checking for $ac_word... " >&6; }
3598if test ${ac_cv_prog_CC+y}
3599then :
3600  printf %s "(cached) " >&6
3601else $as_nop
3602  if test -n "$CC"; then
3603  ac_cv_prog_CC="$CC" # Let the user override the test.
3604else
3605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3606for as_dir in $PATH
3607do
3608  IFS=$as_save_IFS
3609  case $as_dir in #(((
3610    '') as_dir=./ ;;
3611    */) ;;
3612    *) as_dir=$as_dir/ ;;
3613  esac
3614    for ac_exec_ext in '' $ac_executable_extensions; do
3615  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3616    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3617    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3618    break 2
3619  fi
3620done
3621  done
3622IFS=$as_save_IFS
3623
3624fi
3625fi
3626CC=$ac_cv_prog_CC
3627if test -n "$CC"; then
3628  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3629printf "%s\n" "$CC" >&6; }
3630else
3631  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3632printf "%s\n" "no" >&6; }
3633fi
3634
3635
3636fi
3637if test -z "$ac_cv_prog_CC"; then
3638  ac_ct_CC=$CC
3639  # Extract the first word of "gcc", so it can be a program name with args.
3640set dummy gcc; ac_word=$2
3641{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3642printf %s "checking for $ac_word... " >&6; }
3643if test ${ac_cv_prog_ac_ct_CC+y}
3644then :
3645  printf %s "(cached) " >&6
3646else $as_nop
3647  if test -n "$ac_ct_CC"; then
3648  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3649else
3650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3651for as_dir in $PATH
3652do
3653  IFS=$as_save_IFS
3654  case $as_dir in #(((
3655    '') as_dir=./ ;;
3656    */) ;;
3657    *) as_dir=$as_dir/ ;;
3658  esac
3659    for ac_exec_ext in '' $ac_executable_extensions; do
3660  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3661    ac_cv_prog_ac_ct_CC="gcc"
3662    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3663    break 2
3664  fi
3665done
3666  done
3667IFS=$as_save_IFS
3668
3669fi
3670fi
3671ac_ct_CC=$ac_cv_prog_ac_ct_CC
3672if test -n "$ac_ct_CC"; then
3673  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3674printf "%s\n" "$ac_ct_CC" >&6; }
3675else
3676  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3677printf "%s\n" "no" >&6; }
3678fi
3679
3680  if test "x$ac_ct_CC" = x; then
3681    CC=""
3682  else
3683    case $cross_compiling:$ac_tool_warned in
3684yes:)
3685{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3686printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3687ac_tool_warned=yes ;;
3688esac
3689    CC=$ac_ct_CC
3690  fi
3691else
3692  CC="$ac_cv_prog_CC"
3693fi
3694
3695if test -z "$CC"; then
3696          if test -n "$ac_tool_prefix"; then
3697    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3698set dummy ${ac_tool_prefix}cc; ac_word=$2
3699{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3700printf %s "checking for $ac_word... " >&6; }
3701if test ${ac_cv_prog_CC+y}
3702then :
3703  printf %s "(cached) " >&6
3704else $as_nop
3705  if test -n "$CC"; then
3706  ac_cv_prog_CC="$CC" # Let the user override the test.
3707else
3708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3709for as_dir in $PATH
3710do
3711  IFS=$as_save_IFS
3712  case $as_dir in #(((
3713    '') as_dir=./ ;;
3714    */) ;;
3715    *) as_dir=$as_dir/ ;;
3716  esac
3717    for ac_exec_ext in '' $ac_executable_extensions; do
3718  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3719    ac_cv_prog_CC="${ac_tool_prefix}cc"
3720    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3721    break 2
3722  fi
3723done
3724  done
3725IFS=$as_save_IFS
3726
3727fi
3728fi
3729CC=$ac_cv_prog_CC
3730if test -n "$CC"; then
3731  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3732printf "%s\n" "$CC" >&6; }
3733else
3734  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3735printf "%s\n" "no" >&6; }
3736fi
3737
3738
3739  fi
3740fi
3741if test -z "$CC"; then
3742  # Extract the first word of "cc", so it can be a program name with args.
3743set dummy cc; ac_word=$2
3744{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3745printf %s "checking for $ac_word... " >&6; }
3746if test ${ac_cv_prog_CC+y}
3747then :
3748  printf %s "(cached) " >&6
3749else $as_nop
3750  if test -n "$CC"; then
3751  ac_cv_prog_CC="$CC" # Let the user override the test.
3752else
3753  ac_prog_rejected=no
3754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3755for as_dir in $PATH
3756do
3757  IFS=$as_save_IFS
3758  case $as_dir in #(((
3759    '') as_dir=./ ;;
3760    */) ;;
3761    *) as_dir=$as_dir/ ;;
3762  esac
3763    for ac_exec_ext in '' $ac_executable_extensions; do
3764  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3765    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3766       ac_prog_rejected=yes
3767       continue
3768     fi
3769    ac_cv_prog_CC="cc"
3770    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3771    break 2
3772  fi
3773done
3774  done
3775IFS=$as_save_IFS
3776
3777if test $ac_prog_rejected = yes; then
3778  # We found a bogon in the path, so make sure we never use it.
3779  set dummy $ac_cv_prog_CC
3780  shift
3781  if test $# != 0; then
3782    # We chose a different compiler from the bogus one.
3783    # However, it has the same basename, so the bogon will be chosen
3784    # first if we set CC to just the basename; use the full file name.
3785    shift
3786    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3787  fi
3788fi
3789fi
3790fi
3791CC=$ac_cv_prog_CC
3792if test -n "$CC"; then
3793  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3794printf "%s\n" "$CC" >&6; }
3795else
3796  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3797printf "%s\n" "no" >&6; }
3798fi
3799
3800
3801fi
3802if test -z "$CC"; then
3803  if test -n "$ac_tool_prefix"; then
3804  for ac_prog in cl.exe
3805  do
3806    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3807set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3808{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3809printf %s "checking for $ac_word... " >&6; }
3810if test ${ac_cv_prog_CC+y}
3811then :
3812  printf %s "(cached) " >&6
3813else $as_nop
3814  if test -n "$CC"; then
3815  ac_cv_prog_CC="$CC" # Let the user override the test.
3816else
3817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3818for as_dir in $PATH
3819do
3820  IFS=$as_save_IFS
3821  case $as_dir in #(((
3822    '') as_dir=./ ;;
3823    */) ;;
3824    *) as_dir=$as_dir/ ;;
3825  esac
3826    for ac_exec_ext in '' $ac_executable_extensions; do
3827  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3828    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3829    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3830    break 2
3831  fi
3832done
3833  done
3834IFS=$as_save_IFS
3835
3836fi
3837fi
3838CC=$ac_cv_prog_CC
3839if test -n "$CC"; then
3840  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3841printf "%s\n" "$CC" >&6; }
3842else
3843  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3844printf "%s\n" "no" >&6; }
3845fi
3846
3847
3848    test -n "$CC" && break
3849  done
3850fi
3851if test -z "$CC"; then
3852  ac_ct_CC=$CC
3853  for ac_prog in cl.exe
3854do
3855  # Extract the first word of "$ac_prog", so it can be a program name with args.
3856set dummy $ac_prog; ac_word=$2
3857{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3858printf %s "checking for $ac_word... " >&6; }
3859if test ${ac_cv_prog_ac_ct_CC+y}
3860then :
3861  printf %s "(cached) " >&6
3862else $as_nop
3863  if test -n "$ac_ct_CC"; then
3864  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3865else
3866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3867for as_dir in $PATH
3868do
3869  IFS=$as_save_IFS
3870  case $as_dir in #(((
3871    '') as_dir=./ ;;
3872    */) ;;
3873    *) as_dir=$as_dir/ ;;
3874  esac
3875    for ac_exec_ext in '' $ac_executable_extensions; do
3876  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3877    ac_cv_prog_ac_ct_CC="$ac_prog"
3878    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3879    break 2
3880  fi
3881done
3882  done
3883IFS=$as_save_IFS
3884
3885fi
3886fi
3887ac_ct_CC=$ac_cv_prog_ac_ct_CC
3888if test -n "$ac_ct_CC"; then
3889  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3890printf "%s\n" "$ac_ct_CC" >&6; }
3891else
3892  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3893printf "%s\n" "no" >&6; }
3894fi
3895
3896
3897  test -n "$ac_ct_CC" && break
3898done
3899
3900  if test "x$ac_ct_CC" = x; then
3901    CC=""
3902  else
3903    case $cross_compiling:$ac_tool_warned in
3904yes:)
3905{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3906printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3907ac_tool_warned=yes ;;
3908esac
3909    CC=$ac_ct_CC
3910  fi
3911fi
3912
3913fi
3914if test -z "$CC"; then
3915  if test -n "$ac_tool_prefix"; then
3916  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3917set dummy ${ac_tool_prefix}clang; ac_word=$2
3918{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3919printf %s "checking for $ac_word... " >&6; }
3920if test ${ac_cv_prog_CC+y}
3921then :
3922  printf %s "(cached) " >&6
3923else $as_nop
3924  if test -n "$CC"; then
3925  ac_cv_prog_CC="$CC" # Let the user override the test.
3926else
3927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3928for as_dir in $PATH
3929do
3930  IFS=$as_save_IFS
3931  case $as_dir in #(((
3932    '') as_dir=./ ;;
3933    */) ;;
3934    *) as_dir=$as_dir/ ;;
3935  esac
3936    for ac_exec_ext in '' $ac_executable_extensions; do
3937  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3938    ac_cv_prog_CC="${ac_tool_prefix}clang"
3939    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3940    break 2
3941  fi
3942done
3943  done
3944IFS=$as_save_IFS
3945
3946fi
3947fi
3948CC=$ac_cv_prog_CC
3949if test -n "$CC"; then
3950  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3951printf "%s\n" "$CC" >&6; }
3952else
3953  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3954printf "%s\n" "no" >&6; }
3955fi
3956
3957
3958fi
3959if test -z "$ac_cv_prog_CC"; then
3960  ac_ct_CC=$CC
3961  # Extract the first word of "clang", so it can be a program name with args.
3962set dummy clang; ac_word=$2
3963{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3964printf %s "checking for $ac_word... " >&6; }
3965if test ${ac_cv_prog_ac_ct_CC+y}
3966then :
3967  printf %s "(cached) " >&6
3968else $as_nop
3969  if test -n "$ac_ct_CC"; then
3970  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3971else
3972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3973for as_dir in $PATH
3974do
3975  IFS=$as_save_IFS
3976  case $as_dir in #(((
3977    '') as_dir=./ ;;
3978    */) ;;
3979    *) as_dir=$as_dir/ ;;
3980  esac
3981    for ac_exec_ext in '' $ac_executable_extensions; do
3982  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3983    ac_cv_prog_ac_ct_CC="clang"
3984    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3985    break 2
3986  fi
3987done
3988  done
3989IFS=$as_save_IFS
3990
3991fi
3992fi
3993ac_ct_CC=$ac_cv_prog_ac_ct_CC
3994if test -n "$ac_ct_CC"; then
3995  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3996printf "%s\n" "$ac_ct_CC" >&6; }
3997else
3998  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3999printf "%s\n" "no" >&6; }
4000fi
4001
4002  if test "x$ac_ct_CC" = x; then
4003    CC=""
4004  else
4005    case $cross_compiling:$ac_tool_warned in
4006yes:)
4007{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4008printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4009ac_tool_warned=yes ;;
4010esac
4011    CC=$ac_ct_CC
4012  fi
4013else
4014  CC="$ac_cv_prog_CC"
4015fi
4016
4017fi
4018
4019
4020test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4021printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4022as_fn_error $? "no acceptable C compiler found in \$PATH
4023See \`config.log' for more details" "$LINENO" 5; }
4024
4025# Provide some information about the compiler.
4026printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4027set X $ac_compile
4028ac_compiler=$2
4029for ac_option in --version -v -V -qversion -version; do
4030  { { ac_try="$ac_compiler $ac_option >&5"
4031case "(($ac_try" in
4032  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4033  *) ac_try_echo=$ac_try;;
4034esac
4035eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4036printf "%s\n" "$ac_try_echo"; } >&5
4037  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4038  ac_status=$?
4039  if test -s conftest.err; then
4040    sed '10a\
4041... rest of stderr output deleted ...
4042         10q' conftest.err >conftest.er1
4043    cat conftest.er1 >&5
4044  fi
4045  rm -f conftest.er1 conftest.err
4046  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4047  test $ac_status = 0; }
4048done
4049
4050cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4051/* end confdefs.h.  */
4052
4053int
4054main (void)
4055{
4056
4057  ;
4058  return 0;
4059}
4060_ACEOF
4061ac_clean_files_save=$ac_clean_files
4062ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4063# Try to create an executable without -o first, disregard a.out.
4064# It will help us diagnose broken compilers, and finding out an intuition
4065# of exeext.
4066{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4067printf %s "checking whether the C compiler works... " >&6; }
4068ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4069
4070# The possible output files:
4071ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4072
4073ac_rmfiles=
4074for ac_file in $ac_files
4075do
4076  case $ac_file in
4077    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4078    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4079  esac
4080done
4081rm -f $ac_rmfiles
4082
4083if { { ac_try="$ac_link_default"
4084case "(($ac_try" in
4085  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4086  *) ac_try_echo=$ac_try;;
4087esac
4088eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4089printf "%s\n" "$ac_try_echo"; } >&5
4090  (eval "$ac_link_default") 2>&5
4091  ac_status=$?
4092  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4093  test $ac_status = 0; }
4094then :
4095  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4096# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4097# in a Makefile.  We should not override ac_cv_exeext if it was cached,
4098# so that the user can short-circuit this test for compilers unknown to
4099# Autoconf.
4100for ac_file in $ac_files ''
4101do
4102  test -f "$ac_file" || continue
4103  case $ac_file in
4104    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4105	;;
4106    [ab].out )
4107	# We found the default executable, but exeext='' is most
4108	# certainly right.
4109	break;;
4110    *.* )
4111	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4112	then :; else
4113	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4114	fi
4115	# We set ac_cv_exeext here because the later test for it is not
4116	# safe: cross compilers may not add the suffix if given an `-o'
4117	# argument, so we may need to know it at that point already.
4118	# Even if this section looks crufty: it has the advantage of
4119	# actually working.
4120	break;;
4121    * )
4122	break;;
4123  esac
4124done
4125test "$ac_cv_exeext" = no && ac_cv_exeext=
4126
4127else $as_nop
4128  ac_file=''
4129fi
4130if test -z "$ac_file"
4131then :
4132  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4133printf "%s\n" "no" >&6; }
4134printf "%s\n" "$as_me: failed program was:" >&5
4135sed 's/^/| /' conftest.$ac_ext >&5
4136
4137{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4138printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4139as_fn_error 77 "C compiler cannot create executables
4140See \`config.log' for more details" "$LINENO" 5; }
4141else $as_nop
4142  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4143printf "%s\n" "yes" >&6; }
4144fi
4145{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4146printf %s "checking for C compiler default output file name... " >&6; }
4147{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4148printf "%s\n" "$ac_file" >&6; }
4149ac_exeext=$ac_cv_exeext
4150
4151rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4152ac_clean_files=$ac_clean_files_save
4153{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4154printf %s "checking for suffix of executables... " >&6; }
4155if { { ac_try="$ac_link"
4156case "(($ac_try" in
4157  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4158  *) ac_try_echo=$ac_try;;
4159esac
4160eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4161printf "%s\n" "$ac_try_echo"; } >&5
4162  (eval "$ac_link") 2>&5
4163  ac_status=$?
4164  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4165  test $ac_status = 0; }
4166then :
4167  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4168# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4169# work properly (i.e., refer to `conftest.exe'), while it won't with
4170# `rm'.
4171for ac_file in conftest.exe conftest conftest.*; do
4172  test -f "$ac_file" || continue
4173  case $ac_file in
4174    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4175    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4176	  break;;
4177    * ) break;;
4178  esac
4179done
4180else $as_nop
4181  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4182printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4183as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4184See \`config.log' for more details" "$LINENO" 5; }
4185fi
4186rm -f conftest conftest$ac_cv_exeext
4187{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4188printf "%s\n" "$ac_cv_exeext" >&6; }
4189
4190rm -f conftest.$ac_ext
4191EXEEXT=$ac_cv_exeext
4192ac_exeext=$EXEEXT
4193cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4194/* end confdefs.h.  */
4195#include <stdio.h>
4196int
4197main (void)
4198{
4199FILE *f = fopen ("conftest.out", "w");
4200 return ferror (f) || fclose (f) != 0;
4201
4202  ;
4203  return 0;
4204}
4205_ACEOF
4206ac_clean_files="$ac_clean_files conftest.out"
4207# Check that the compiler produces executables we can run.  If not, either
4208# the compiler is broken, or we cross compile.
4209{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4210printf %s "checking whether we are cross compiling... " >&6; }
4211if test "$cross_compiling" != yes; then
4212  { { ac_try="$ac_link"
4213case "(($ac_try" in
4214  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4215  *) ac_try_echo=$ac_try;;
4216esac
4217eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4218printf "%s\n" "$ac_try_echo"; } >&5
4219  (eval "$ac_link") 2>&5
4220  ac_status=$?
4221  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4222  test $ac_status = 0; }
4223  if { ac_try='./conftest$ac_cv_exeext'
4224  { { case "(($ac_try" in
4225  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4226  *) ac_try_echo=$ac_try;;
4227esac
4228eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4229printf "%s\n" "$ac_try_echo"; } >&5
4230  (eval "$ac_try") 2>&5
4231  ac_status=$?
4232  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4233  test $ac_status = 0; }; }; then
4234    cross_compiling=no
4235  else
4236    if test "$cross_compiling" = maybe; then
4237	cross_compiling=yes
4238    else
4239	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4240printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4241as_fn_error 77 "cannot run C compiled programs.
4242If you meant to cross compile, use \`--host'.
4243See \`config.log' for more details" "$LINENO" 5; }
4244    fi
4245  fi
4246fi
4247{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4248printf "%s\n" "$cross_compiling" >&6; }
4249
4250rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4251ac_clean_files=$ac_clean_files_save
4252{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4253printf %s "checking for suffix of object files... " >&6; }
4254if test ${ac_cv_objext+y}
4255then :
4256  printf %s "(cached) " >&6
4257else $as_nop
4258  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4259/* end confdefs.h.  */
4260
4261int
4262main (void)
4263{
4264
4265  ;
4266  return 0;
4267}
4268_ACEOF
4269rm -f conftest.o conftest.obj
4270if { { ac_try="$ac_compile"
4271case "(($ac_try" in
4272  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4273  *) ac_try_echo=$ac_try;;
4274esac
4275eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4276printf "%s\n" "$ac_try_echo"; } >&5
4277  (eval "$ac_compile") 2>&5
4278  ac_status=$?
4279  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4280  test $ac_status = 0; }
4281then :
4282  for ac_file in conftest.o conftest.obj conftest.*; do
4283  test -f "$ac_file" || continue;
4284  case $ac_file in
4285    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4286    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4287       break;;
4288  esac
4289done
4290else $as_nop
4291  printf "%s\n" "$as_me: failed program was:" >&5
4292sed 's/^/| /' conftest.$ac_ext >&5
4293
4294{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4295printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4296as_fn_error $? "cannot compute suffix of object files: cannot compile
4297See \`config.log' for more details" "$LINENO" 5; }
4298fi
4299rm -f conftest.$ac_cv_objext conftest.$ac_ext
4300fi
4301{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4302printf "%s\n" "$ac_cv_objext" >&6; }
4303OBJEXT=$ac_cv_objext
4304ac_objext=$OBJEXT
4305{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4306printf %s "checking whether the compiler supports GNU C... " >&6; }
4307if test ${ac_cv_c_compiler_gnu+y}
4308then :
4309  printf %s "(cached) " >&6
4310else $as_nop
4311  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4312/* end confdefs.h.  */
4313
4314int
4315main (void)
4316{
4317#ifndef __GNUC__
4318       choke me
4319#endif
4320
4321  ;
4322  return 0;
4323}
4324_ACEOF
4325if ac_fn_c_try_compile "$LINENO"
4326then :
4327  ac_compiler_gnu=yes
4328else $as_nop
4329  ac_compiler_gnu=no
4330fi
4331rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4332ac_cv_c_compiler_gnu=$ac_compiler_gnu
4333
4334fi
4335{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4336printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4337ac_compiler_gnu=$ac_cv_c_compiler_gnu
4338
4339if test $ac_compiler_gnu = yes; then
4340  GCC=yes
4341else
4342  GCC=
4343fi
4344ac_test_CFLAGS=${CFLAGS+y}
4345ac_save_CFLAGS=$CFLAGS
4346{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4347printf %s "checking whether $CC accepts -g... " >&6; }
4348if test ${ac_cv_prog_cc_g+y}
4349then :
4350  printf %s "(cached) " >&6
4351else $as_nop
4352  ac_save_c_werror_flag=$ac_c_werror_flag
4353   ac_c_werror_flag=yes
4354   ac_cv_prog_cc_g=no
4355   CFLAGS="-g"
4356   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4357/* end confdefs.h.  */
4358
4359int
4360main (void)
4361{
4362
4363  ;
4364  return 0;
4365}
4366_ACEOF
4367if ac_fn_c_try_compile "$LINENO"
4368then :
4369  ac_cv_prog_cc_g=yes
4370else $as_nop
4371  CFLAGS=""
4372      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4373/* end confdefs.h.  */
4374
4375int
4376main (void)
4377{
4378
4379  ;
4380  return 0;
4381}
4382_ACEOF
4383if ac_fn_c_try_compile "$LINENO"
4384then :
4385
4386else $as_nop
4387  ac_c_werror_flag=$ac_save_c_werror_flag
4388	 CFLAGS="-g"
4389	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4390/* end confdefs.h.  */
4391
4392int
4393main (void)
4394{
4395
4396  ;
4397  return 0;
4398}
4399_ACEOF
4400if ac_fn_c_try_compile "$LINENO"
4401then :
4402  ac_cv_prog_cc_g=yes
4403fi
4404rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4405fi
4406rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4407fi
4408rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4409   ac_c_werror_flag=$ac_save_c_werror_flag
4410fi
4411{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4412printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4413if test $ac_test_CFLAGS; then
4414  CFLAGS=$ac_save_CFLAGS
4415elif test $ac_cv_prog_cc_g = yes; then
4416  if test "$GCC" = yes; then
4417    CFLAGS="-g -O2"
4418  else
4419    CFLAGS="-g"
4420  fi
4421else
4422  if test "$GCC" = yes; then
4423    CFLAGS="-O2"
4424  else
4425    CFLAGS=
4426  fi
4427fi
4428ac_prog_cc_stdc=no
4429if test x$ac_prog_cc_stdc = xno
4430then :
4431  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4432printf %s "checking for $CC option to enable C11 features... " >&6; }
4433if test ${ac_cv_prog_cc_c11+y}
4434then :
4435  printf %s "(cached) " >&6
4436else $as_nop
4437  ac_cv_prog_cc_c11=no
4438ac_save_CC=$CC
4439cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4440/* end confdefs.h.  */
4441$ac_c_conftest_c11_program
4442_ACEOF
4443for ac_arg in '' -std=gnu11
4444do
4445  CC="$ac_save_CC $ac_arg"
4446  if ac_fn_c_try_compile "$LINENO"
4447then :
4448  ac_cv_prog_cc_c11=$ac_arg
4449fi
4450rm -f core conftest.err conftest.$ac_objext conftest.beam
4451  test "x$ac_cv_prog_cc_c11" != "xno" && break
4452done
4453rm -f conftest.$ac_ext
4454CC=$ac_save_CC
4455fi
4456
4457if test "x$ac_cv_prog_cc_c11" = xno
4458then :
4459  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4460printf "%s\n" "unsupported" >&6; }
4461else $as_nop
4462  if test "x$ac_cv_prog_cc_c11" = x
4463then :
4464  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4465printf "%s\n" "none needed" >&6; }
4466else $as_nop
4467  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4468printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4469     CC="$CC $ac_cv_prog_cc_c11"
4470fi
4471  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4472  ac_prog_cc_stdc=c11
4473fi
4474fi
4475if test x$ac_prog_cc_stdc = xno
4476then :
4477  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4478printf %s "checking for $CC option to enable C99 features... " >&6; }
4479if test ${ac_cv_prog_cc_c99+y}
4480then :
4481  printf %s "(cached) " >&6
4482else $as_nop
4483  ac_cv_prog_cc_c99=no
4484ac_save_CC=$CC
4485cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4486/* end confdefs.h.  */
4487$ac_c_conftest_c99_program
4488_ACEOF
4489for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4490do
4491  CC="$ac_save_CC $ac_arg"
4492  if ac_fn_c_try_compile "$LINENO"
4493then :
4494  ac_cv_prog_cc_c99=$ac_arg
4495fi
4496rm -f core conftest.err conftest.$ac_objext conftest.beam
4497  test "x$ac_cv_prog_cc_c99" != "xno" && break
4498done
4499rm -f conftest.$ac_ext
4500CC=$ac_save_CC
4501fi
4502
4503if test "x$ac_cv_prog_cc_c99" = xno
4504then :
4505  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4506printf "%s\n" "unsupported" >&6; }
4507else $as_nop
4508  if test "x$ac_cv_prog_cc_c99" = x
4509then :
4510  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4511printf "%s\n" "none needed" >&6; }
4512else $as_nop
4513  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4514printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4515     CC="$CC $ac_cv_prog_cc_c99"
4516fi
4517  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4518  ac_prog_cc_stdc=c99
4519fi
4520fi
4521if test x$ac_prog_cc_stdc = xno
4522then :
4523  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4524printf %s "checking for $CC option to enable C89 features... " >&6; }
4525if test ${ac_cv_prog_cc_c89+y}
4526then :
4527  printf %s "(cached) " >&6
4528else $as_nop
4529  ac_cv_prog_cc_c89=no
4530ac_save_CC=$CC
4531cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4532/* end confdefs.h.  */
4533$ac_c_conftest_c89_program
4534_ACEOF
4535for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4536do
4537  CC="$ac_save_CC $ac_arg"
4538  if ac_fn_c_try_compile "$LINENO"
4539then :
4540  ac_cv_prog_cc_c89=$ac_arg
4541fi
4542rm -f core conftest.err conftest.$ac_objext conftest.beam
4543  test "x$ac_cv_prog_cc_c89" != "xno" && break
4544done
4545rm -f conftest.$ac_ext
4546CC=$ac_save_CC
4547fi
4548
4549if test "x$ac_cv_prog_cc_c89" = xno
4550then :
4551  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4552printf "%s\n" "unsupported" >&6; }
4553else $as_nop
4554  if test "x$ac_cv_prog_cc_c89" = x
4555then :
4556  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4557printf "%s\n" "none needed" >&6; }
4558else $as_nop
4559  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4560printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4561     CC="$CC $ac_cv_prog_cc_c89"
4562fi
4563  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4564  ac_prog_cc_stdc=c89
4565fi
4566fi
4567
4568ac_ext=c
4569ac_cpp='$CPP $CPPFLAGS'
4570ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4571ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4572ac_compiler_gnu=$ac_cv_c_compiler_gnu
4573
4574
4575  ac_ext=c
4576ac_cpp='$CPP $CPPFLAGS'
4577ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4578ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4579ac_compiler_gnu=$ac_cv_c_compiler_gnu
4580{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4581printf %s "checking whether $CC understands -c and -o together... " >&6; }
4582if test ${am_cv_prog_cc_c_o+y}
4583then :
4584  printf %s "(cached) " >&6
4585else $as_nop
4586  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4587/* end confdefs.h.  */
4588
4589int
4590main (void)
4591{
4592
4593  ;
4594  return 0;
4595}
4596_ACEOF
4597  # Make sure it works both with $CC and with simple cc.
4598  # Following AC_PROG_CC_C_O, we do the test twice because some
4599  # compilers refuse to overwrite an existing .o file with -o,
4600  # though they will create one.
4601  am_cv_prog_cc_c_o=yes
4602  for am_i in 1 2; do
4603    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4604   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4605   ac_status=$?
4606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4607   (exit $ac_status); } \
4608         && test -f conftest2.$ac_objext; then
4609      : OK
4610    else
4611      am_cv_prog_cc_c_o=no
4612      break
4613    fi
4614  done
4615  rm -f core conftest*
4616  unset am_i
4617fi
4618{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4619printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4620if test "$am_cv_prog_cc_c_o" != yes; then
4621   # Losing compiler, so override with the script.
4622   # FIXME: It is wrong to rewrite CC.
4623   # But if we don't then we get into trouble of one sort or another.
4624   # A longer-term fix would be to have automake use am__CC in this case,
4625   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4626   CC="$am_aux_dir/compile $CC"
4627fi
4628ac_ext=c
4629ac_cpp='$CPP $CPPFLAGS'
4630ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4631ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4632ac_compiler_gnu=$ac_cv_c_compiler_gnu
4633
4634
4635depcc="$CC"   am_compiler_list=
4636
4637{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4638printf %s "checking dependency style of $depcc... " >&6; }
4639if test ${am_cv_CC_dependencies_compiler_type+y}
4640then :
4641  printf %s "(cached) " >&6
4642else $as_nop
4643  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4644  # We make a subdir and do the tests there.  Otherwise we can end up
4645  # making bogus files that we don't know about and never remove.  For
4646  # instance it was reported that on HP-UX the gcc test will end up
4647  # making a dummy file named 'D' -- because '-MD' means "put the output
4648  # in D".
4649  rm -rf conftest.dir
4650  mkdir conftest.dir
4651  # Copy depcomp to subdir because otherwise we won't find it if we're
4652  # using a relative directory.
4653  cp "$am_depcomp" conftest.dir
4654  cd conftest.dir
4655  # We will build objects and dependencies in a subdirectory because
4656  # it helps to detect inapplicable dependency modes.  For instance
4657  # both Tru64's cc and ICC support -MD to output dependencies as a
4658  # side effect of compilation, but ICC will put the dependencies in
4659  # the current directory while Tru64 will put them in the object
4660  # directory.
4661  mkdir sub
4662
4663  am_cv_CC_dependencies_compiler_type=none
4664  if test "$am_compiler_list" = ""; then
4665     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4666  fi
4667  am__universal=false
4668  case " $depcc " in #(
4669     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4670     esac
4671
4672  for depmode in $am_compiler_list; do
4673    # Setup a source with many dependencies, because some compilers
4674    # like to wrap large dependency lists on column 80 (with \), and
4675    # we should not choose a depcomp mode which is confused by this.
4676    #
4677    # We need to recreate these files for each test, as the compiler may
4678    # overwrite some of them when testing with obscure command lines.
4679    # This happens at least with the AIX C compiler.
4680    : > sub/conftest.c
4681    for i in 1 2 3 4 5 6; do
4682      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4683      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4684      # Solaris 10 /bin/sh.
4685      echo '/* dummy */' > sub/conftst$i.h
4686    done
4687    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4688
4689    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4690    # mode.  It turns out that the SunPro C++ compiler does not properly
4691    # handle '-M -o', and we need to detect this.  Also, some Intel
4692    # versions had trouble with output in subdirs.
4693    am__obj=sub/conftest.${OBJEXT-o}
4694    am__minus_obj="-o $am__obj"
4695    case $depmode in
4696    gcc)
4697      # This depmode causes a compiler race in universal mode.
4698      test "$am__universal" = false || continue
4699      ;;
4700    nosideeffect)
4701      # After this tag, mechanisms are not by side-effect, so they'll
4702      # only be used when explicitly requested.
4703      if test "x$enable_dependency_tracking" = xyes; then
4704	continue
4705      else
4706	break
4707      fi
4708      ;;
4709    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4710      # This compiler won't grok '-c -o', but also, the minuso test has
4711      # not run yet.  These depmodes are late enough in the game, and
4712      # so weak that their functioning should not be impacted.
4713      am__obj=conftest.${OBJEXT-o}
4714      am__minus_obj=
4715      ;;
4716    none) break ;;
4717    esac
4718    if depmode=$depmode \
4719       source=sub/conftest.c object=$am__obj \
4720       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4721       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4722         >/dev/null 2>conftest.err &&
4723       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4724       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4725       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4726       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4727      # icc doesn't choke on unknown options, it will just issue warnings
4728      # or remarks (even with -Werror).  So we grep stderr for any message
4729      # that says an option was ignored or not supported.
4730      # When given -MP, icc 7.0 and 7.1 complain thusly:
4731      #   icc: Command line warning: ignoring option '-M'; no argument required
4732      # The diagnosis changed in icc 8.0:
4733      #   icc: Command line remark: option '-MP' not supported
4734      if (grep 'ignoring option' conftest.err ||
4735          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4736        am_cv_CC_dependencies_compiler_type=$depmode
4737        break
4738      fi
4739    fi
4740  done
4741
4742  cd ..
4743  rm -rf conftest.dir
4744else
4745  am_cv_CC_dependencies_compiler_type=none
4746fi
4747
4748fi
4749{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4750printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4751CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4752
4753 if
4754  test "x$enable_dependency_tracking" != xno \
4755  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4756  am__fastdepCC_TRUE=
4757  am__fastdepCC_FALSE='#'
4758else
4759  am__fastdepCC_TRUE='#'
4760  am__fastdepCC_FALSE=
4761fi
4762
4763
4764{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4765printf %s "checking for a sed that does not truncate output... " >&6; }
4766if test ${ac_cv_path_SED+y}
4767then :
4768  printf %s "(cached) " >&6
4769else $as_nop
4770            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4771     for ac_i in 1 2 3 4 5 6 7; do
4772       ac_script="$ac_script$as_nl$ac_script"
4773     done
4774     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4775     { ac_script=; unset ac_script;}
4776     if test -z "$SED"; then
4777  ac_path_SED_found=false
4778  # Loop through the user's path and test for each of PROGNAME-LIST
4779  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4780for as_dir in $PATH
4781do
4782  IFS=$as_save_IFS
4783  case $as_dir in #(((
4784    '') as_dir=./ ;;
4785    */) ;;
4786    *) as_dir=$as_dir/ ;;
4787  esac
4788    for ac_prog in sed gsed
4789   do
4790    for ac_exec_ext in '' $ac_executable_extensions; do
4791      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4792      as_fn_executable_p "$ac_path_SED" || continue
4793# Check for GNU ac_path_SED and select it if it is found.
4794  # Check for GNU $ac_path_SED
4795case `"$ac_path_SED" --version 2>&1` in
4796*GNU*)
4797  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4798*)
4799  ac_count=0
4800  printf %s 0123456789 >"conftest.in"
4801  while :
4802  do
4803    cat "conftest.in" "conftest.in" >"conftest.tmp"
4804    mv "conftest.tmp" "conftest.in"
4805    cp "conftest.in" "conftest.nl"
4806    printf "%s\n" '' >> "conftest.nl"
4807    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4808    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4809    as_fn_arith $ac_count + 1 && ac_count=$as_val
4810    if test $ac_count -gt ${ac_path_SED_max-0}; then
4811      # Best one so far, save it but keep looking for a better one
4812      ac_cv_path_SED="$ac_path_SED"
4813      ac_path_SED_max=$ac_count
4814    fi
4815    # 10*(2^10) chars as input seems more than enough
4816    test $ac_count -gt 10 && break
4817  done
4818  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4819esac
4820
4821      $ac_path_SED_found && break 3
4822    done
4823  done
4824  done
4825IFS=$as_save_IFS
4826  if test -z "$ac_cv_path_SED"; then
4827    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4828  fi
4829else
4830  ac_cv_path_SED=$SED
4831fi
4832
4833fi
4834{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4835printf "%s\n" "$ac_cv_path_SED" >&6; }
4836 SED="$ac_cv_path_SED"
4837  rm -f conftest.sed
4838
4839test -z "$SED" && SED=sed
4840Xsed="$SED -e 1s/^X//"
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4853printf %s "checking for grep that handles long lines and -e... " >&6; }
4854if test ${ac_cv_path_GREP+y}
4855then :
4856  printf %s "(cached) " >&6
4857else $as_nop
4858  if test -z "$GREP"; then
4859  ac_path_GREP_found=false
4860  # Loop through the user's path and test for each of PROGNAME-LIST
4861  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4862for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4863do
4864  IFS=$as_save_IFS
4865  case $as_dir in #(((
4866    '') as_dir=./ ;;
4867    */) ;;
4868    *) as_dir=$as_dir/ ;;
4869  esac
4870    for ac_prog in grep ggrep
4871   do
4872    for ac_exec_ext in '' $ac_executable_extensions; do
4873      ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
4874      as_fn_executable_p "$ac_path_GREP" || continue
4875# Check for GNU ac_path_GREP and select it if it is found.
4876  # Check for GNU $ac_path_GREP
4877case `"$ac_path_GREP" --version 2>&1` in
4878*GNU*)
4879  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4880*)
4881  ac_count=0
4882  printf %s 0123456789 >"conftest.in"
4883  while :
4884  do
4885    cat "conftest.in" "conftest.in" >"conftest.tmp"
4886    mv "conftest.tmp" "conftest.in"
4887    cp "conftest.in" "conftest.nl"
4888    printf "%s\n" 'GREP' >> "conftest.nl"
4889    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4890    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4891    as_fn_arith $ac_count + 1 && ac_count=$as_val
4892    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4893      # Best one so far, save it but keep looking for a better one
4894      ac_cv_path_GREP="$ac_path_GREP"
4895      ac_path_GREP_max=$ac_count
4896    fi
4897    # 10*(2^10) chars as input seems more than enough
4898    test $ac_count -gt 10 && break
4899  done
4900  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4901esac
4902
4903      $ac_path_GREP_found && break 3
4904    done
4905  done
4906  done
4907IFS=$as_save_IFS
4908  if test -z "$ac_cv_path_GREP"; then
4909    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4910  fi
4911else
4912  ac_cv_path_GREP=$GREP
4913fi
4914
4915fi
4916{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4917printf "%s\n" "$ac_cv_path_GREP" >&6; }
4918 GREP="$ac_cv_path_GREP"
4919
4920
4921{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4922printf %s "checking for egrep... " >&6; }
4923if test ${ac_cv_path_EGREP+y}
4924then :
4925  printf %s "(cached) " >&6
4926else $as_nop
4927  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4928   then ac_cv_path_EGREP="$GREP -E"
4929   else
4930     if test -z "$EGREP"; then
4931  ac_path_EGREP_found=false
4932  # Loop through the user's path and test for each of PROGNAME-LIST
4933  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4934for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4935do
4936  IFS=$as_save_IFS
4937  case $as_dir in #(((
4938    '') as_dir=./ ;;
4939    */) ;;
4940    *) as_dir=$as_dir/ ;;
4941  esac
4942    for ac_prog in egrep
4943   do
4944    for ac_exec_ext in '' $ac_executable_extensions; do
4945      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
4946      as_fn_executable_p "$ac_path_EGREP" || continue
4947# Check for GNU ac_path_EGREP and select it if it is found.
4948  # Check for GNU $ac_path_EGREP
4949case `"$ac_path_EGREP" --version 2>&1` in
4950*GNU*)
4951  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4952*)
4953  ac_count=0
4954  printf %s 0123456789 >"conftest.in"
4955  while :
4956  do
4957    cat "conftest.in" "conftest.in" >"conftest.tmp"
4958    mv "conftest.tmp" "conftest.in"
4959    cp "conftest.in" "conftest.nl"
4960    printf "%s\n" 'EGREP' >> "conftest.nl"
4961    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4962    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4963    as_fn_arith $ac_count + 1 && ac_count=$as_val
4964    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4965      # Best one so far, save it but keep looking for a better one
4966      ac_cv_path_EGREP="$ac_path_EGREP"
4967      ac_path_EGREP_max=$ac_count
4968    fi
4969    # 10*(2^10) chars as input seems more than enough
4970    test $ac_count -gt 10 && break
4971  done
4972  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4973esac
4974
4975      $ac_path_EGREP_found && break 3
4976    done
4977  done
4978  done
4979IFS=$as_save_IFS
4980  if test -z "$ac_cv_path_EGREP"; then
4981    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4982  fi
4983else
4984  ac_cv_path_EGREP=$EGREP
4985fi
4986
4987   fi
4988fi
4989{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4990printf "%s\n" "$ac_cv_path_EGREP" >&6; }
4991 EGREP="$ac_cv_path_EGREP"
4992
4993
4994{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4995printf %s "checking for fgrep... " >&6; }
4996if test ${ac_cv_path_FGREP+y}
4997then :
4998  printf %s "(cached) " >&6
4999else $as_nop
5000  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5001   then ac_cv_path_FGREP="$GREP -F"
5002   else
5003     if test -z "$FGREP"; then
5004  ac_path_FGREP_found=false
5005  # Loop through the user's path and test for each of PROGNAME-LIST
5006  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5007for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5008do
5009  IFS=$as_save_IFS
5010  case $as_dir in #(((
5011    '') as_dir=./ ;;
5012    */) ;;
5013    *) as_dir=$as_dir/ ;;
5014  esac
5015    for ac_prog in fgrep
5016   do
5017    for ac_exec_ext in '' $ac_executable_extensions; do
5018      ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5019      as_fn_executable_p "$ac_path_FGREP" || continue
5020# Check for GNU ac_path_FGREP and select it if it is found.
5021  # Check for GNU $ac_path_FGREP
5022case `"$ac_path_FGREP" --version 2>&1` in
5023*GNU*)
5024  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5025*)
5026  ac_count=0
5027  printf %s 0123456789 >"conftest.in"
5028  while :
5029  do
5030    cat "conftest.in" "conftest.in" >"conftest.tmp"
5031    mv "conftest.tmp" "conftest.in"
5032    cp "conftest.in" "conftest.nl"
5033    printf "%s\n" 'FGREP' >> "conftest.nl"
5034    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5035    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5036    as_fn_arith $ac_count + 1 && ac_count=$as_val
5037    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5038      # Best one so far, save it but keep looking for a better one
5039      ac_cv_path_FGREP="$ac_path_FGREP"
5040      ac_path_FGREP_max=$ac_count
5041    fi
5042    # 10*(2^10) chars as input seems more than enough
5043    test $ac_count -gt 10 && break
5044  done
5045  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5046esac
5047
5048      $ac_path_FGREP_found && break 3
5049    done
5050  done
5051  done
5052IFS=$as_save_IFS
5053  if test -z "$ac_cv_path_FGREP"; then
5054    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5055  fi
5056else
5057  ac_cv_path_FGREP=$FGREP
5058fi
5059
5060   fi
5061fi
5062{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5063printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5064 FGREP="$ac_cv_path_FGREP"
5065
5066
5067test -z "$GREP" && GREP=grep
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087# Check whether --with-gnu-ld was given.
5088if test ${with_gnu_ld+y}
5089then :
5090  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5091else $as_nop
5092  with_gnu_ld=no
5093fi
5094
5095ac_prog=ld
5096if test yes = "$GCC"; then
5097  # Check if gcc -print-prog-name=ld gives a path.
5098  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5099printf %s "checking for ld used by $CC... " >&6; }
5100  case $host in
5101  *-*-mingw*)
5102    # gcc leaves a trailing carriage return, which upsets mingw
5103    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5104  *)
5105    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5106  esac
5107  case $ac_prog in
5108    # Accept absolute paths.
5109    [\\/]* | ?:[\\/]*)
5110      re_direlt='/[^/][^/]*/\.\./'
5111      # Canonicalize the pathname of ld
5112      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5113      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5114	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5115      done
5116      test -z "$LD" && LD=$ac_prog
5117      ;;
5118  "")
5119    # If it fails, then pretend we aren't using GCC.
5120    ac_prog=ld
5121    ;;
5122  *)
5123    # If it is relative, then search for the first ld in PATH.
5124    with_gnu_ld=unknown
5125    ;;
5126  esac
5127elif test yes = "$with_gnu_ld"; then
5128  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5129printf %s "checking for GNU ld... " >&6; }
5130else
5131  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5132printf %s "checking for non-GNU ld... " >&6; }
5133fi
5134if test ${lt_cv_path_LD+y}
5135then :
5136  printf %s "(cached) " >&6
5137else $as_nop
5138  if test -z "$LD"; then
5139  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5140  for ac_dir in $PATH; do
5141    IFS=$lt_save_ifs
5142    test -z "$ac_dir" && ac_dir=.
5143    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5144      lt_cv_path_LD=$ac_dir/$ac_prog
5145      # Check to see if the program is GNU ld.  I'd rather use --version,
5146      # but apparently some variants of GNU ld only accept -v.
5147      # Break only if it was the GNU/non-GNU ld that we prefer.
5148      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5149      *GNU* | *'with BFD'*)
5150	test no != "$with_gnu_ld" && break
5151	;;
5152      *)
5153	test yes != "$with_gnu_ld" && break
5154	;;
5155      esac
5156    fi
5157  done
5158  IFS=$lt_save_ifs
5159else
5160  lt_cv_path_LD=$LD # Let the user override the test with a path.
5161fi
5162fi
5163
5164LD=$lt_cv_path_LD
5165if test -n "$LD"; then
5166  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5167printf "%s\n" "$LD" >&6; }
5168else
5169  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5170printf "%s\n" "no" >&6; }
5171fi
5172test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5173{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5174printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5175if test ${lt_cv_prog_gnu_ld+y}
5176then :
5177  printf %s "(cached) " >&6
5178else $as_nop
5179  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5180case `$LD -v 2>&1 </dev/null` in
5181*GNU* | *'with BFD'*)
5182  lt_cv_prog_gnu_ld=yes
5183  ;;
5184*)
5185  lt_cv_prog_gnu_ld=no
5186  ;;
5187esac
5188fi
5189{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5190printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5191with_gnu_ld=$lt_cv_prog_gnu_ld
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5202printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5203if test ${lt_cv_path_NM+y}
5204then :
5205  printf %s "(cached) " >&6
5206else $as_nop
5207  if test -n "$NM"; then
5208  # Let the user override the test.
5209  lt_cv_path_NM=$NM
5210else
5211  lt_nm_to_check=${ac_tool_prefix}nm
5212  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5213    lt_nm_to_check="$lt_nm_to_check nm"
5214  fi
5215  for lt_tmp_nm in $lt_nm_to_check; do
5216    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5217    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5218      IFS=$lt_save_ifs
5219      test -z "$ac_dir" && ac_dir=.
5220      tmp_nm=$ac_dir/$lt_tmp_nm
5221      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5222	# Check to see if the nm accepts a BSD-compat flag.
5223	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5224	#   nm: unknown option "B" ignored
5225	# Tru64's nm complains that /dev/null is an invalid object file
5226	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5227	case $build_os in
5228	mingw*) lt_bad_file=conftest.nm/nofile ;;
5229	*) lt_bad_file=/dev/null ;;
5230	esac
5231	case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5232	*$lt_bad_file* | *'Invalid file or object type'*)
5233	  lt_cv_path_NM="$tmp_nm -B"
5234	  break 2
5235	  ;;
5236	*)
5237	  case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5238	  */dev/null*)
5239	    lt_cv_path_NM="$tmp_nm -p"
5240	    break 2
5241	    ;;
5242	  *)
5243	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5244	    continue # so that we can try to find one that supports BSD flags
5245	    ;;
5246	  esac
5247	  ;;
5248	esac
5249      fi
5250    done
5251    IFS=$lt_save_ifs
5252  done
5253  : ${lt_cv_path_NM=no}
5254fi
5255fi
5256{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5257printf "%s\n" "$lt_cv_path_NM" >&6; }
5258if test no != "$lt_cv_path_NM"; then
5259  NM=$lt_cv_path_NM
5260else
5261  # Didn't find any BSD compatible name lister, look for dumpbin.
5262  if test -n "$DUMPBIN"; then :
5263    # Let the user override the test.
5264  else
5265    if test -n "$ac_tool_prefix"; then
5266  for ac_prog in dumpbin "link -dump"
5267  do
5268    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5269set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5270{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5271printf %s "checking for $ac_word... " >&6; }
5272if test ${ac_cv_prog_DUMPBIN+y}
5273then :
5274  printf %s "(cached) " >&6
5275else $as_nop
5276  if test -n "$DUMPBIN"; then
5277  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5278else
5279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5280for as_dir in $PATH
5281do
5282  IFS=$as_save_IFS
5283  case $as_dir in #(((
5284    '') as_dir=./ ;;
5285    */) ;;
5286    *) as_dir=$as_dir/ ;;
5287  esac
5288    for ac_exec_ext in '' $ac_executable_extensions; do
5289  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5290    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5291    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5292    break 2
5293  fi
5294done
5295  done
5296IFS=$as_save_IFS
5297
5298fi
5299fi
5300DUMPBIN=$ac_cv_prog_DUMPBIN
5301if test -n "$DUMPBIN"; then
5302  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5303printf "%s\n" "$DUMPBIN" >&6; }
5304else
5305  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5306printf "%s\n" "no" >&6; }
5307fi
5308
5309
5310    test -n "$DUMPBIN" && break
5311  done
5312fi
5313if test -z "$DUMPBIN"; then
5314  ac_ct_DUMPBIN=$DUMPBIN
5315  for ac_prog in dumpbin "link -dump"
5316do
5317  # Extract the first word of "$ac_prog", so it can be a program name with args.
5318set dummy $ac_prog; ac_word=$2
5319{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5320printf %s "checking for $ac_word... " >&6; }
5321if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5322then :
5323  printf %s "(cached) " >&6
5324else $as_nop
5325  if test -n "$ac_ct_DUMPBIN"; then
5326  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5327else
5328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5329for as_dir in $PATH
5330do
5331  IFS=$as_save_IFS
5332  case $as_dir in #(((
5333    '') as_dir=./ ;;
5334    */) ;;
5335    *) as_dir=$as_dir/ ;;
5336  esac
5337    for ac_exec_ext in '' $ac_executable_extensions; do
5338  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5339    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5340    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5341    break 2
5342  fi
5343done
5344  done
5345IFS=$as_save_IFS
5346
5347fi
5348fi
5349ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5350if test -n "$ac_ct_DUMPBIN"; then
5351  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5352printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5353else
5354  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5355printf "%s\n" "no" >&6; }
5356fi
5357
5358
5359  test -n "$ac_ct_DUMPBIN" && break
5360done
5361
5362  if test "x$ac_ct_DUMPBIN" = x; then
5363    DUMPBIN=":"
5364  else
5365    case $cross_compiling:$ac_tool_warned in
5366yes:)
5367{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5368printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5369ac_tool_warned=yes ;;
5370esac
5371    DUMPBIN=$ac_ct_DUMPBIN
5372  fi
5373fi
5374
5375    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5376    *COFF*)
5377      DUMPBIN="$DUMPBIN -symbols -headers"
5378      ;;
5379    *)
5380      DUMPBIN=:
5381      ;;
5382    esac
5383  fi
5384
5385  if test : != "$DUMPBIN"; then
5386    NM=$DUMPBIN
5387  fi
5388fi
5389test -z "$NM" && NM=nm
5390
5391
5392
5393
5394
5395
5396{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5397printf %s "checking the name lister ($NM) interface... " >&6; }
5398if test ${lt_cv_nm_interface+y}
5399then :
5400  printf %s "(cached) " >&6
5401else $as_nop
5402  lt_cv_nm_interface="BSD nm"
5403  echo "int some_variable = 0;" > conftest.$ac_ext
5404  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5405  (eval "$ac_compile" 2>conftest.err)
5406  cat conftest.err >&5
5407  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5408  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5409  cat conftest.err >&5
5410  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5411  cat conftest.out >&5
5412  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5413    lt_cv_nm_interface="MS dumpbin"
5414  fi
5415  rm -f conftest*
5416fi
5417{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5418printf "%s\n" "$lt_cv_nm_interface" >&6; }
5419
5420{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5421printf %s "checking whether ln -s works... " >&6; }
5422LN_S=$as_ln_s
5423if test "$LN_S" = "ln -s"; then
5424  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5425printf "%s\n" "yes" >&6; }
5426else
5427  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5428printf "%s\n" "no, using $LN_S" >&6; }
5429fi
5430
5431# find the maximum length of command line arguments
5432{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5433printf %s "checking the maximum length of command line arguments... " >&6; }
5434if test ${lt_cv_sys_max_cmd_len+y}
5435then :
5436  printf %s "(cached) " >&6
5437else $as_nop
5438    i=0
5439  teststring=ABCD
5440
5441  case $build_os in
5442  msdosdjgpp*)
5443    # On DJGPP, this test can blow up pretty badly due to problems in libc
5444    # (any single argument exceeding 2000 bytes causes a buffer overrun
5445    # during glob expansion).  Even if it were fixed, the result of this
5446    # check would be larger than it should be.
5447    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5448    ;;
5449
5450  gnu*)
5451    # Under GNU Hurd, this test is not required because there is
5452    # no limit to the length of command line arguments.
5453    # Libtool will interpret -1 as no limit whatsoever
5454    lt_cv_sys_max_cmd_len=-1;
5455    ;;
5456
5457  cygwin* | mingw* | cegcc*)
5458    # On Win9x/ME, this test blows up -- it succeeds, but takes
5459    # about 5 minutes as the teststring grows exponentially.
5460    # Worse, since 9x/ME are not pre-emptively multitasking,
5461    # you end up with a "frozen" computer, even though with patience
5462    # the test eventually succeeds (with a max line length of 256k).
5463    # Instead, let's just punt: use the minimum linelength reported by
5464    # all of the supported platforms: 8192 (on NT/2K/XP).
5465    lt_cv_sys_max_cmd_len=8192;
5466    ;;
5467
5468  mint*)
5469    # On MiNT this can take a long time and run out of memory.
5470    lt_cv_sys_max_cmd_len=8192;
5471    ;;
5472
5473  amigaos*)
5474    # On AmigaOS with pdksh, this test takes hours, literally.
5475    # So we just punt and use a minimum line length of 8192.
5476    lt_cv_sys_max_cmd_len=8192;
5477    ;;
5478
5479  bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5480    # This has been around since 386BSD, at least.  Likely further.
5481    if test -x /sbin/sysctl; then
5482      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5483    elif test -x /usr/sbin/sysctl; then
5484      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5485    else
5486      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5487    fi
5488    # And add a safety zone
5489    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5490    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5491    ;;
5492
5493  interix*)
5494    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5495    lt_cv_sys_max_cmd_len=196608
5496    ;;
5497
5498  os2*)
5499    # The test takes a long time on OS/2.
5500    lt_cv_sys_max_cmd_len=8192
5501    ;;
5502
5503  osf*)
5504    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5505    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5506    # nice to cause kernel panics so lets avoid the loop below.
5507    # First set a reasonable default.
5508    lt_cv_sys_max_cmd_len=16384
5509    #
5510    if test -x /sbin/sysconfig; then
5511      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5512        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5513      esac
5514    fi
5515    ;;
5516  sco3.2v5*)
5517    lt_cv_sys_max_cmd_len=102400
5518    ;;
5519  sysv5* | sco5v6* | sysv4.2uw2*)
5520    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5521    if test -n "$kargmax"; then
5522      lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[	 ]//'`
5523    else
5524      lt_cv_sys_max_cmd_len=32768
5525    fi
5526    ;;
5527  *)
5528    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5529    if test -n "$lt_cv_sys_max_cmd_len" && \
5530       test undefined != "$lt_cv_sys_max_cmd_len"; then
5531      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5532      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5533    else
5534      # Make teststring a little bigger before we do anything with it.
5535      # a 1K string should be a reasonable start.
5536      for i in 1 2 3 4 5 6 7 8; do
5537        teststring=$teststring$teststring
5538      done
5539      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5540      # If test is not a shell built-in, we'll probably end up computing a
5541      # maximum length that is only half of the actual maximum length, but
5542      # we can't tell.
5543      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5544	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5545	      test 17 != "$i" # 1/2 MB should be enough
5546      do
5547        i=`expr $i + 1`
5548        teststring=$teststring$teststring
5549      done
5550      # Only check the string length outside the loop.
5551      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5552      teststring=
5553      # Add a significant safety factor because C++ compilers can tack on
5554      # massive amounts of additional arguments before passing them to the
5555      # linker.  It appears as though 1/2 is a usable value.
5556      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5557    fi
5558    ;;
5559  esac
5560
5561fi
5562
5563if test -n "$lt_cv_sys_max_cmd_len"; then
5564  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5565printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
5566else
5567  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5568printf "%s\n" "none" >&6; }
5569fi
5570max_cmd_len=$lt_cv_sys_max_cmd_len
5571
5572
5573
5574
5575
5576
5577: ${CP="cp -f"}
5578: ${MV="mv -f"}
5579: ${RM="rm -f"}
5580
5581if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5582  lt_unset=unset
5583else
5584  lt_unset=false
5585fi
5586
5587
5588
5589
5590
5591# test EBCDIC or ASCII
5592case `echo X|tr X '\101'` in
5593 A) # ASCII based system
5594    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5595  lt_SP2NL='tr \040 \012'
5596  lt_NL2SP='tr \015\012 \040\040'
5597  ;;
5598 *) # EBCDIC based system
5599  lt_SP2NL='tr \100 \n'
5600  lt_NL2SP='tr \r\n \100\100'
5601  ;;
5602esac
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5613printf %s "checking how to convert $build file names to $host format... " >&6; }
5614if test ${lt_cv_to_host_file_cmd+y}
5615then :
5616  printf %s "(cached) " >&6
5617else $as_nop
5618  case $host in
5619  *-*-mingw* )
5620    case $build in
5621      *-*-mingw* ) # actually msys
5622        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5623        ;;
5624      *-*-cygwin* )
5625        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5626        ;;
5627      * ) # otherwise, assume *nix
5628        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5629        ;;
5630    esac
5631    ;;
5632  *-*-cygwin* )
5633    case $build in
5634      *-*-mingw* ) # actually msys
5635        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5636        ;;
5637      *-*-cygwin* )
5638        lt_cv_to_host_file_cmd=func_convert_file_noop
5639        ;;
5640      * ) # otherwise, assume *nix
5641        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5642        ;;
5643    esac
5644    ;;
5645  * ) # unhandled hosts (and "normal" native builds)
5646    lt_cv_to_host_file_cmd=func_convert_file_noop
5647    ;;
5648esac
5649
5650fi
5651
5652to_host_file_cmd=$lt_cv_to_host_file_cmd
5653{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5654printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
5655
5656
5657
5658
5659
5660{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5661printf %s "checking how to convert $build file names to toolchain format... " >&6; }
5662if test ${lt_cv_to_tool_file_cmd+y}
5663then :
5664  printf %s "(cached) " >&6
5665else $as_nop
5666  #assume ordinary cross tools, or native build.
5667lt_cv_to_tool_file_cmd=func_convert_file_noop
5668case $host in
5669  *-*-mingw* )
5670    case $build in
5671      *-*-mingw* ) # actually msys
5672        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5673        ;;
5674    esac
5675    ;;
5676esac
5677
5678fi
5679
5680to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5681{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5682printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
5683
5684
5685
5686
5687
5688{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5689printf %s "checking for $LD option to reload object files... " >&6; }
5690if test ${lt_cv_ld_reload_flag+y}
5691then :
5692  printf %s "(cached) " >&6
5693else $as_nop
5694  lt_cv_ld_reload_flag='-r'
5695fi
5696{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5697printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
5698reload_flag=$lt_cv_ld_reload_flag
5699case $reload_flag in
5700"" | " "*) ;;
5701*) reload_flag=" $reload_flag" ;;
5702esac
5703reload_cmds='$LD$reload_flag -o $output$reload_objs'
5704case $host_os in
5705  cygwin* | mingw* | pw32* | cegcc*)
5706    if test yes != "$GCC"; then
5707      reload_cmds=false
5708    fi
5709    ;;
5710  darwin*)
5711    if test yes = "$GCC"; then
5712      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5713    else
5714      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5715    fi
5716    ;;
5717esac
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727if test -n "$ac_tool_prefix"; then
5728  # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
5729set dummy ${ac_tool_prefix}file; ac_word=$2
5730{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5731printf %s "checking for $ac_word... " >&6; }
5732if test ${ac_cv_prog_FILECMD+y}
5733then :
5734  printf %s "(cached) " >&6
5735else $as_nop
5736  if test -n "$FILECMD"; then
5737  ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
5738else
5739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5740for as_dir in $PATH
5741do
5742  IFS=$as_save_IFS
5743  case $as_dir in #(((
5744    '') as_dir=./ ;;
5745    */) ;;
5746    *) as_dir=$as_dir/ ;;
5747  esac
5748    for ac_exec_ext in '' $ac_executable_extensions; do
5749  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5750    ac_cv_prog_FILECMD="${ac_tool_prefix}file"
5751    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5752    break 2
5753  fi
5754done
5755  done
5756IFS=$as_save_IFS
5757
5758fi
5759fi
5760FILECMD=$ac_cv_prog_FILECMD
5761if test -n "$FILECMD"; then
5762  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
5763printf "%s\n" "$FILECMD" >&6; }
5764else
5765  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5766printf "%s\n" "no" >&6; }
5767fi
5768
5769
5770fi
5771if test -z "$ac_cv_prog_FILECMD"; then
5772  ac_ct_FILECMD=$FILECMD
5773  # Extract the first word of "file", so it can be a program name with args.
5774set dummy file; ac_word=$2
5775{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5776printf %s "checking for $ac_word... " >&6; }
5777if test ${ac_cv_prog_ac_ct_FILECMD+y}
5778then :
5779  printf %s "(cached) " >&6
5780else $as_nop
5781  if test -n "$ac_ct_FILECMD"; then
5782  ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
5783else
5784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5785for as_dir in $PATH
5786do
5787  IFS=$as_save_IFS
5788  case $as_dir in #(((
5789    '') as_dir=./ ;;
5790    */) ;;
5791    *) as_dir=$as_dir/ ;;
5792  esac
5793    for ac_exec_ext in '' $ac_executable_extensions; do
5794  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5795    ac_cv_prog_ac_ct_FILECMD="file"
5796    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5797    break 2
5798  fi
5799done
5800  done
5801IFS=$as_save_IFS
5802
5803fi
5804fi
5805ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
5806if test -n "$ac_ct_FILECMD"; then
5807  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
5808printf "%s\n" "$ac_ct_FILECMD" >&6; }
5809else
5810  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5811printf "%s\n" "no" >&6; }
5812fi
5813
5814  if test "x$ac_ct_FILECMD" = x; then
5815    FILECMD=":"
5816  else
5817    case $cross_compiling:$ac_tool_warned in
5818yes:)
5819{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5820printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5821ac_tool_warned=yes ;;
5822esac
5823    FILECMD=$ac_ct_FILECMD
5824  fi
5825else
5826  FILECMD="$ac_cv_prog_FILECMD"
5827fi
5828
5829
5830
5831
5832
5833
5834
5835if test -n "$ac_tool_prefix"; then
5836  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5837set dummy ${ac_tool_prefix}objdump; ac_word=$2
5838{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5839printf %s "checking for $ac_word... " >&6; }
5840if test ${ac_cv_prog_OBJDUMP+y}
5841then :
5842  printf %s "(cached) " >&6
5843else $as_nop
5844  if test -n "$OBJDUMP"; then
5845  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5846else
5847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5848for as_dir in $PATH
5849do
5850  IFS=$as_save_IFS
5851  case $as_dir in #(((
5852    '') as_dir=./ ;;
5853    */) ;;
5854    *) as_dir=$as_dir/ ;;
5855  esac
5856    for ac_exec_ext in '' $ac_executable_extensions; do
5857  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5858    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5859    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5860    break 2
5861  fi
5862done
5863  done
5864IFS=$as_save_IFS
5865
5866fi
5867fi
5868OBJDUMP=$ac_cv_prog_OBJDUMP
5869if test -n "$OBJDUMP"; then
5870  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5871printf "%s\n" "$OBJDUMP" >&6; }
5872else
5873  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5874printf "%s\n" "no" >&6; }
5875fi
5876
5877
5878fi
5879if test -z "$ac_cv_prog_OBJDUMP"; then
5880  ac_ct_OBJDUMP=$OBJDUMP
5881  # Extract the first word of "objdump", so it can be a program name with args.
5882set dummy objdump; ac_word=$2
5883{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5884printf %s "checking for $ac_word... " >&6; }
5885if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
5886then :
5887  printf %s "(cached) " >&6
5888else $as_nop
5889  if test -n "$ac_ct_OBJDUMP"; then
5890  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5891else
5892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5893for as_dir in $PATH
5894do
5895  IFS=$as_save_IFS
5896  case $as_dir in #(((
5897    '') as_dir=./ ;;
5898    */) ;;
5899    *) as_dir=$as_dir/ ;;
5900  esac
5901    for ac_exec_ext in '' $ac_executable_extensions; do
5902  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5903    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5904    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5905    break 2
5906  fi
5907done
5908  done
5909IFS=$as_save_IFS
5910
5911fi
5912fi
5913ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5914if test -n "$ac_ct_OBJDUMP"; then
5915  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5916printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
5917else
5918  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5919printf "%s\n" "no" >&6; }
5920fi
5921
5922  if test "x$ac_ct_OBJDUMP" = x; then
5923    OBJDUMP="false"
5924  else
5925    case $cross_compiling:$ac_tool_warned in
5926yes:)
5927{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5928printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5929ac_tool_warned=yes ;;
5930esac
5931    OBJDUMP=$ac_ct_OBJDUMP
5932  fi
5933else
5934  OBJDUMP="$ac_cv_prog_OBJDUMP"
5935fi
5936
5937test -z "$OBJDUMP" && OBJDUMP=objdump
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5948printf %s "checking how to recognize dependent libraries... " >&6; }
5949if test ${lt_cv_deplibs_check_method+y}
5950then :
5951  printf %s "(cached) " >&6
5952else $as_nop
5953  lt_cv_file_magic_cmd='$MAGIC_CMD'
5954lt_cv_file_magic_test_file=
5955lt_cv_deplibs_check_method='unknown'
5956# Need to set the preceding variable on all platforms that support
5957# interlibrary dependencies.
5958# 'none' -- dependencies not supported.
5959# 'unknown' -- same as none, but documents that we really don't know.
5960# 'pass_all' -- all dependencies passed with no checks.
5961# 'test_compile' -- check by making test program.
5962# 'file_magic [[regex]]' -- check by looking for files in library path
5963# that responds to the $file_magic_cmd with a given extended regex.
5964# If you have 'file' or equivalent on your system and you're not sure
5965# whether 'pass_all' will *always* work, you probably want this one.
5966
5967case $host_os in
5968aix[4-9]*)
5969  lt_cv_deplibs_check_method=pass_all
5970  ;;
5971
5972beos*)
5973  lt_cv_deplibs_check_method=pass_all
5974  ;;
5975
5976bsdi[45]*)
5977  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5978  lt_cv_file_magic_cmd='$FILECMD -L'
5979  lt_cv_file_magic_test_file=/shlib/libc.so
5980  ;;
5981
5982cygwin*)
5983  # func_win32_libid is a shell function defined in ltmain.sh
5984  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5985  lt_cv_file_magic_cmd='func_win32_libid'
5986  ;;
5987
5988mingw* | pw32*)
5989  # Base MSYS/MinGW do not provide the 'file' command needed by
5990  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5991  # unless we find 'file', for example because we are cross-compiling.
5992  if ( file / ) >/dev/null 2>&1; then
5993    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5994    lt_cv_file_magic_cmd='func_win32_libid'
5995  else
5996    # Keep this pattern in sync with the one in func_win32_libid.
5997    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5998    lt_cv_file_magic_cmd='$OBJDUMP -f'
5999  fi
6000  ;;
6001
6002cegcc*)
6003  # use the weaker test based on 'objdump'. See mingw*.
6004  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6005  lt_cv_file_magic_cmd='$OBJDUMP -f'
6006  ;;
6007
6008darwin* | rhapsody*)
6009  lt_cv_deplibs_check_method=pass_all
6010  ;;
6011
6012freebsd* | dragonfly* | midnightbsd*)
6013  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6014    case $host_cpu in
6015    i*86 )
6016      # Not sure whether the presence of OpenBSD here was a mistake.
6017      # Let's accept both of them until this is cleared up.
6018      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6019      lt_cv_file_magic_cmd=$FILECMD
6020      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6021      ;;
6022    esac
6023  else
6024    lt_cv_deplibs_check_method=pass_all
6025  fi
6026  ;;
6027
6028haiku*)
6029  lt_cv_deplibs_check_method=pass_all
6030  ;;
6031
6032hpux10.20* | hpux11*)
6033  lt_cv_file_magic_cmd=$FILECMD
6034  case $host_cpu in
6035  ia64*)
6036    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6037    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6038    ;;
6039  hppa*64*)
6040    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]'
6041    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6042    ;;
6043  *)
6044    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6045    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6046    ;;
6047  esac
6048  ;;
6049
6050interix[3-9]*)
6051  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6052  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6053  ;;
6054
6055irix5* | irix6* | nonstopux*)
6056  case $LD in
6057  *-32|*"-32 ") libmagic=32-bit;;
6058  *-n32|*"-n32 ") libmagic=N32;;
6059  *-64|*"-64 ") libmagic=64-bit;;
6060  *) libmagic=never-match;;
6061  esac
6062  lt_cv_deplibs_check_method=pass_all
6063  ;;
6064
6065# This must be glibc/ELF.
6066linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6067  lt_cv_deplibs_check_method=pass_all
6068  ;;
6069
6070netbsd*)
6071  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6072    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6073  else
6074    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6075  fi
6076  ;;
6077
6078newos6*)
6079  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6080  lt_cv_file_magic_cmd=$FILECMD
6081  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6082  ;;
6083
6084*nto* | *qnx*)
6085  lt_cv_deplibs_check_method=pass_all
6086  ;;
6087
6088openbsd* | bitrig*)
6089  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6090    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6091  else
6092    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6093  fi
6094  ;;
6095
6096osf3* | osf4* | osf5*)
6097  lt_cv_deplibs_check_method=pass_all
6098  ;;
6099
6100rdos*)
6101  lt_cv_deplibs_check_method=pass_all
6102  ;;
6103
6104solaris*)
6105  lt_cv_deplibs_check_method=pass_all
6106  ;;
6107
6108sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6109  lt_cv_deplibs_check_method=pass_all
6110  ;;
6111
6112sysv4 | sysv4.3*)
6113  case $host_vendor in
6114  motorola)
6115    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]'
6116    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6117    ;;
6118  ncr)
6119    lt_cv_deplibs_check_method=pass_all
6120    ;;
6121  sequent)
6122    lt_cv_file_magic_cmd='/bin/file'
6123    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6124    ;;
6125  sni)
6126    lt_cv_file_magic_cmd='/bin/file'
6127    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6128    lt_cv_file_magic_test_file=/lib/libc.so
6129    ;;
6130  siemens)
6131    lt_cv_deplibs_check_method=pass_all
6132    ;;
6133  pc)
6134    lt_cv_deplibs_check_method=pass_all
6135    ;;
6136  esac
6137  ;;
6138
6139tpf*)
6140  lt_cv_deplibs_check_method=pass_all
6141  ;;
6142os2*)
6143  lt_cv_deplibs_check_method=pass_all
6144  ;;
6145esac
6146
6147fi
6148{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6149printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6150
6151file_magic_glob=
6152want_nocaseglob=no
6153if test "$build" = "$host"; then
6154  case $host_os in
6155  mingw* | pw32*)
6156    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6157      want_nocaseglob=yes
6158    else
6159      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6160    fi
6161    ;;
6162  esac
6163fi
6164
6165file_magic_cmd=$lt_cv_file_magic_cmd
6166deplibs_check_method=$lt_cv_deplibs_check_method
6167test -z "$deplibs_check_method" && deplibs_check_method=unknown
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190if test -n "$ac_tool_prefix"; then
6191  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6192set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6193{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6194printf %s "checking for $ac_word... " >&6; }
6195if test ${ac_cv_prog_DLLTOOL+y}
6196then :
6197  printf %s "(cached) " >&6
6198else $as_nop
6199  if test -n "$DLLTOOL"; then
6200  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6201else
6202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6203for as_dir in $PATH
6204do
6205  IFS=$as_save_IFS
6206  case $as_dir in #(((
6207    '') as_dir=./ ;;
6208    */) ;;
6209    *) as_dir=$as_dir/ ;;
6210  esac
6211    for ac_exec_ext in '' $ac_executable_extensions; do
6212  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6213    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6214    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6215    break 2
6216  fi
6217done
6218  done
6219IFS=$as_save_IFS
6220
6221fi
6222fi
6223DLLTOOL=$ac_cv_prog_DLLTOOL
6224if test -n "$DLLTOOL"; then
6225  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6226printf "%s\n" "$DLLTOOL" >&6; }
6227else
6228  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6229printf "%s\n" "no" >&6; }
6230fi
6231
6232
6233fi
6234if test -z "$ac_cv_prog_DLLTOOL"; then
6235  ac_ct_DLLTOOL=$DLLTOOL
6236  # Extract the first word of "dlltool", so it can be a program name with args.
6237set dummy dlltool; ac_word=$2
6238{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6239printf %s "checking for $ac_word... " >&6; }
6240if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6241then :
6242  printf %s "(cached) " >&6
6243else $as_nop
6244  if test -n "$ac_ct_DLLTOOL"; then
6245  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6246else
6247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6248for as_dir in $PATH
6249do
6250  IFS=$as_save_IFS
6251  case $as_dir in #(((
6252    '') as_dir=./ ;;
6253    */) ;;
6254    *) as_dir=$as_dir/ ;;
6255  esac
6256    for ac_exec_ext in '' $ac_executable_extensions; do
6257  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6258    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6259    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6260    break 2
6261  fi
6262done
6263  done
6264IFS=$as_save_IFS
6265
6266fi
6267fi
6268ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6269if test -n "$ac_ct_DLLTOOL"; then
6270  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6271printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6272else
6273  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6274printf "%s\n" "no" >&6; }
6275fi
6276
6277  if test "x$ac_ct_DLLTOOL" = x; then
6278    DLLTOOL="false"
6279  else
6280    case $cross_compiling:$ac_tool_warned in
6281yes:)
6282{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6283printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6284ac_tool_warned=yes ;;
6285esac
6286    DLLTOOL=$ac_ct_DLLTOOL
6287  fi
6288else
6289  DLLTOOL="$ac_cv_prog_DLLTOOL"
6290fi
6291
6292test -z "$DLLTOOL" && DLLTOOL=dlltool
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6304printf %s "checking how to associate runtime and link libraries... " >&6; }
6305if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6306then :
6307  printf %s "(cached) " >&6
6308else $as_nop
6309  lt_cv_sharedlib_from_linklib_cmd='unknown'
6310
6311case $host_os in
6312cygwin* | mingw* | pw32* | cegcc*)
6313  # two different shell functions defined in ltmain.sh;
6314  # decide which one to use based on capabilities of $DLLTOOL
6315  case `$DLLTOOL --help 2>&1` in
6316  *--identify-strict*)
6317    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6318    ;;
6319  *)
6320    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6321    ;;
6322  esac
6323  ;;
6324*)
6325  # fallback: assume linklib IS sharedlib
6326  lt_cv_sharedlib_from_linklib_cmd=$ECHO
6327  ;;
6328esac
6329
6330fi
6331{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6332printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6333sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6334test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6335
6336
6337
6338
6339
6340
6341
6342
6343if test -n "$ac_tool_prefix"; then
6344  for ac_prog in ar
6345  do
6346    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6347set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6348{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6349printf %s "checking for $ac_word... " >&6; }
6350if test ${ac_cv_prog_AR+y}
6351then :
6352  printf %s "(cached) " >&6
6353else $as_nop
6354  if test -n "$AR"; then
6355  ac_cv_prog_AR="$AR" # Let the user override the test.
6356else
6357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6358for as_dir in $PATH
6359do
6360  IFS=$as_save_IFS
6361  case $as_dir in #(((
6362    '') as_dir=./ ;;
6363    */) ;;
6364    *) as_dir=$as_dir/ ;;
6365  esac
6366    for ac_exec_ext in '' $ac_executable_extensions; do
6367  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6368    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6369    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6370    break 2
6371  fi
6372done
6373  done
6374IFS=$as_save_IFS
6375
6376fi
6377fi
6378AR=$ac_cv_prog_AR
6379if test -n "$AR"; then
6380  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6381printf "%s\n" "$AR" >&6; }
6382else
6383  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6384printf "%s\n" "no" >&6; }
6385fi
6386
6387
6388    test -n "$AR" && break
6389  done
6390fi
6391if test -z "$AR"; then
6392  ac_ct_AR=$AR
6393  for ac_prog in ar
6394do
6395  # Extract the first word of "$ac_prog", so it can be a program name with args.
6396set dummy $ac_prog; ac_word=$2
6397{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6398printf %s "checking for $ac_word... " >&6; }
6399if test ${ac_cv_prog_ac_ct_AR+y}
6400then :
6401  printf %s "(cached) " >&6
6402else $as_nop
6403  if test -n "$ac_ct_AR"; then
6404  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6405else
6406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6407for as_dir in $PATH
6408do
6409  IFS=$as_save_IFS
6410  case $as_dir in #(((
6411    '') as_dir=./ ;;
6412    */) ;;
6413    *) as_dir=$as_dir/ ;;
6414  esac
6415    for ac_exec_ext in '' $ac_executable_extensions; do
6416  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6417    ac_cv_prog_ac_ct_AR="$ac_prog"
6418    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6419    break 2
6420  fi
6421done
6422  done
6423IFS=$as_save_IFS
6424
6425fi
6426fi
6427ac_ct_AR=$ac_cv_prog_ac_ct_AR
6428if test -n "$ac_ct_AR"; then
6429  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6430printf "%s\n" "$ac_ct_AR" >&6; }
6431else
6432  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6433printf "%s\n" "no" >&6; }
6434fi
6435
6436
6437  test -n "$ac_ct_AR" && break
6438done
6439
6440  if test "x$ac_ct_AR" = x; then
6441    AR="false"
6442  else
6443    case $cross_compiling:$ac_tool_warned in
6444yes:)
6445{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6446printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6447ac_tool_warned=yes ;;
6448esac
6449    AR=$ac_ct_AR
6450  fi
6451fi
6452
6453: ${AR=ar}
6454
6455
6456
6457
6458
6459
6460# Use ARFLAGS variable as AR's operation code to sync the variable naming with
6461# Automake.  If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6462# higher priority because thats what people were doing historically (setting
6463# ARFLAGS for automake and AR_FLAGS for libtool).  FIXME: Make the AR_FLAGS
6464# variable obsoleted/removed.
6465
6466test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6467lt_ar_flags=$AR_FLAGS
6468
6469
6470
6471
6472
6473
6474# Make AR_FLAGS overridable by 'make ARFLAGS='.  Don't try to run-time override
6475# by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6476
6477
6478
6479
6480
6481
6482{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6483printf %s "checking for archiver @FILE support... " >&6; }
6484if test ${lt_cv_ar_at_file+y}
6485then :
6486  printf %s "(cached) " >&6
6487else $as_nop
6488  lt_cv_ar_at_file=no
6489   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6490/* end confdefs.h.  */
6491
6492int
6493main (void)
6494{
6495
6496  ;
6497  return 0;
6498}
6499_ACEOF
6500if ac_fn_c_try_compile "$LINENO"
6501then :
6502  echo conftest.$ac_objext > conftest.lst
6503      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6504      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6505  (eval $lt_ar_try) 2>&5
6506  ac_status=$?
6507  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6508  test $ac_status = 0; }
6509      if test 0 -eq "$ac_status"; then
6510	# Ensure the archiver fails upon bogus file names.
6511	rm -f conftest.$ac_objext libconftest.a
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 -ne "$ac_status"; then
6518          lt_cv_ar_at_file=@
6519        fi
6520      fi
6521      rm -f conftest.* libconftest.a
6522
6523fi
6524rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6525
6526fi
6527{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6528printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6529
6530if test no = "$lt_cv_ar_at_file"; then
6531  archiver_list_spec=
6532else
6533  archiver_list_spec=$lt_cv_ar_at_file
6534fi
6535
6536
6537
6538
6539
6540
6541
6542if test -n "$ac_tool_prefix"; then
6543  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6544set dummy ${ac_tool_prefix}strip; ac_word=$2
6545{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6546printf %s "checking for $ac_word... " >&6; }
6547if test ${ac_cv_prog_STRIP+y}
6548then :
6549  printf %s "(cached) " >&6
6550else $as_nop
6551  if test -n "$STRIP"; then
6552  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6553else
6554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6555for as_dir in $PATH
6556do
6557  IFS=$as_save_IFS
6558  case $as_dir in #(((
6559    '') as_dir=./ ;;
6560    */) ;;
6561    *) as_dir=$as_dir/ ;;
6562  esac
6563    for ac_exec_ext in '' $ac_executable_extensions; do
6564  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6565    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6566    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6567    break 2
6568  fi
6569done
6570  done
6571IFS=$as_save_IFS
6572
6573fi
6574fi
6575STRIP=$ac_cv_prog_STRIP
6576if test -n "$STRIP"; then
6577  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6578printf "%s\n" "$STRIP" >&6; }
6579else
6580  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6581printf "%s\n" "no" >&6; }
6582fi
6583
6584
6585fi
6586if test -z "$ac_cv_prog_STRIP"; then
6587  ac_ct_STRIP=$STRIP
6588  # Extract the first word of "strip", so it can be a program name with args.
6589set dummy strip; ac_word=$2
6590{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6591printf %s "checking for $ac_word... " >&6; }
6592if test ${ac_cv_prog_ac_ct_STRIP+y}
6593then :
6594  printf %s "(cached) " >&6
6595else $as_nop
6596  if test -n "$ac_ct_STRIP"; then
6597  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6598else
6599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6600for as_dir in $PATH
6601do
6602  IFS=$as_save_IFS
6603  case $as_dir in #(((
6604    '') as_dir=./ ;;
6605    */) ;;
6606    *) as_dir=$as_dir/ ;;
6607  esac
6608    for ac_exec_ext in '' $ac_executable_extensions; do
6609  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6610    ac_cv_prog_ac_ct_STRIP="strip"
6611    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6612    break 2
6613  fi
6614done
6615  done
6616IFS=$as_save_IFS
6617
6618fi
6619fi
6620ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6621if test -n "$ac_ct_STRIP"; then
6622  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6623printf "%s\n" "$ac_ct_STRIP" >&6; }
6624else
6625  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6626printf "%s\n" "no" >&6; }
6627fi
6628
6629  if test "x$ac_ct_STRIP" = x; then
6630    STRIP=":"
6631  else
6632    case $cross_compiling:$ac_tool_warned in
6633yes:)
6634{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6635printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6636ac_tool_warned=yes ;;
6637esac
6638    STRIP=$ac_ct_STRIP
6639  fi
6640else
6641  STRIP="$ac_cv_prog_STRIP"
6642fi
6643
6644test -z "$STRIP" && STRIP=:
6645
6646
6647
6648
6649
6650
6651if test -n "$ac_tool_prefix"; then
6652  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6653set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6654{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6655printf %s "checking for $ac_word... " >&6; }
6656if test ${ac_cv_prog_RANLIB+y}
6657then :
6658  printf %s "(cached) " >&6
6659else $as_nop
6660  if test -n "$RANLIB"; then
6661  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6662else
6663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6664for as_dir in $PATH
6665do
6666  IFS=$as_save_IFS
6667  case $as_dir in #(((
6668    '') as_dir=./ ;;
6669    */) ;;
6670    *) as_dir=$as_dir/ ;;
6671  esac
6672    for ac_exec_ext in '' $ac_executable_extensions; do
6673  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6674    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6675    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6676    break 2
6677  fi
6678done
6679  done
6680IFS=$as_save_IFS
6681
6682fi
6683fi
6684RANLIB=$ac_cv_prog_RANLIB
6685if test -n "$RANLIB"; then
6686  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6687printf "%s\n" "$RANLIB" >&6; }
6688else
6689  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6690printf "%s\n" "no" >&6; }
6691fi
6692
6693
6694fi
6695if test -z "$ac_cv_prog_RANLIB"; then
6696  ac_ct_RANLIB=$RANLIB
6697  # Extract the first word of "ranlib", so it can be a program name with args.
6698set dummy ranlib; ac_word=$2
6699{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6700printf %s "checking for $ac_word... " >&6; }
6701if test ${ac_cv_prog_ac_ct_RANLIB+y}
6702then :
6703  printf %s "(cached) " >&6
6704else $as_nop
6705  if test -n "$ac_ct_RANLIB"; then
6706  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6707else
6708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6709for as_dir in $PATH
6710do
6711  IFS=$as_save_IFS
6712  case $as_dir in #(((
6713    '') as_dir=./ ;;
6714    */) ;;
6715    *) as_dir=$as_dir/ ;;
6716  esac
6717    for ac_exec_ext in '' $ac_executable_extensions; do
6718  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6719    ac_cv_prog_ac_ct_RANLIB="ranlib"
6720    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6721    break 2
6722  fi
6723done
6724  done
6725IFS=$as_save_IFS
6726
6727fi
6728fi
6729ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6730if test -n "$ac_ct_RANLIB"; then
6731  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6732printf "%s\n" "$ac_ct_RANLIB" >&6; }
6733else
6734  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6735printf "%s\n" "no" >&6; }
6736fi
6737
6738  if test "x$ac_ct_RANLIB" = x; then
6739    RANLIB=":"
6740  else
6741    case $cross_compiling:$ac_tool_warned in
6742yes:)
6743{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6744printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6745ac_tool_warned=yes ;;
6746esac
6747    RANLIB=$ac_ct_RANLIB
6748  fi
6749else
6750  RANLIB="$ac_cv_prog_RANLIB"
6751fi
6752
6753test -z "$RANLIB" && RANLIB=:
6754
6755
6756
6757
6758
6759
6760# Determine commands to create old-style static archives.
6761old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6762old_postinstall_cmds='chmod 644 $oldlib'
6763old_postuninstall_cmds=
6764
6765if test -n "$RANLIB"; then
6766  case $host_os in
6767  bitrig* | openbsd*)
6768    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6769    ;;
6770  *)
6771    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6772    ;;
6773  esac
6774  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6775fi
6776
6777case $host_os in
6778  darwin*)
6779    lock_old_archive_extraction=yes ;;
6780  *)
6781    lock_old_archive_extraction=no ;;
6782esac
6783
6784
6785
6786
6787
6788
6789
6790
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# If no C compiler was specified, use CC.
6823LTCC=${LTCC-"$CC"}
6824
6825# If no C compiler flags were specified, use CFLAGS.
6826LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6827
6828# Allow CC to be a program name with arguments.
6829compiler=$CC
6830
6831
6832# Check for command to grab the raw symbol name followed by C symbol from nm.
6833{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6834printf %s "checking command to parse $NM output from $compiler object... " >&6; }
6835if test ${lt_cv_sys_global_symbol_pipe+y}
6836then :
6837  printf %s "(cached) " >&6
6838else $as_nop
6839
6840# These are sane defaults that work on at least a few old systems.
6841# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6842
6843# Character class describing NM global symbol codes.
6844symcode='[BCDEGRST]'
6845
6846# Regexp to match symbols that can be accessed directly from C.
6847sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6848
6849# Define system-specific variables.
6850case $host_os in
6851aix*)
6852  symcode='[BCDT]'
6853  ;;
6854cygwin* | mingw* | pw32* | cegcc*)
6855  symcode='[ABCDGISTW]'
6856  ;;
6857hpux*)
6858  if test ia64 = "$host_cpu"; then
6859    symcode='[ABCDEGRST]'
6860  fi
6861  ;;
6862irix* | nonstopux*)
6863  symcode='[BCDEGRST]'
6864  ;;
6865osf*)
6866  symcode='[BCDEGQRST]'
6867  ;;
6868solaris*)
6869  symcode='[BDRT]'
6870  ;;
6871sco3.2v5*)
6872  symcode='[DT]'
6873  ;;
6874sysv4.2uw2*)
6875  symcode='[DT]'
6876  ;;
6877sysv5* | sco5v6* | unixware* | OpenUNIX*)
6878  symcode='[ABDT]'
6879  ;;
6880sysv4)
6881  symcode='[DFNSTU]'
6882  ;;
6883esac
6884
6885# If we're using GNU nm, then use its standard symbol codes.
6886case `$NM -V 2>&1` in
6887*GNU* | *'with BFD'*)
6888  symcode='[ABCDGIRSTW]' ;;
6889esac
6890
6891if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6892  # Gets list of data symbols to import.
6893  lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
6894  # Adjust the below global symbol transforms to fixup imported variables.
6895  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6896  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6897  lt_c_name_lib_hook="\
6898  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6899  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6900else
6901  # Disable hooks by default.
6902  lt_cv_sys_global_symbol_to_import=
6903  lt_cdecl_hook=
6904  lt_c_name_hook=
6905  lt_c_name_lib_hook=
6906fi
6907
6908# Transform an extracted symbol line into a proper C declaration.
6909# Some systems (esp. on ia64) link data and code symbols differently,
6910# so use this general approach.
6911lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
6912$lt_cdecl_hook\
6913" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6914" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6915
6916# Transform an extracted symbol line into symbol name and symbol address
6917lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
6918$lt_c_name_hook\
6919" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6920" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6921
6922# Transform an extracted symbol line into symbol name with lib prefix and
6923# symbol address.
6924lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
6925$lt_c_name_lib_hook\
6926" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6927" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6928" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6929
6930# Handle CRLF in mingw tool chain
6931opt_cr=
6932case $build_os in
6933mingw*)
6934  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6935  ;;
6936esac
6937
6938# Try without a prefix underscore, then with it.
6939for ac_symprfx in "" "_"; do
6940
6941  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6942  symxfrm="\\1 $ac_symprfx\\2 \\2"
6943
6944  # Write the raw and C identifiers.
6945  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6946    # Fake it for dumpbin and say T for any non-static function,
6947    # D for any global variable and I for any imported variable.
6948    # Also find C++ and __fastcall symbols from MSVC++ or ICC,
6949    # which start with @ or ?.
6950    lt_cv_sys_global_symbol_pipe="$AWK '"\
6951"     {last_section=section; section=\$ 3};"\
6952"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6953"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6954"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6955"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6956"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6957"     \$ 0!~/External *\|/{next};"\
6958"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6959"     {if(hide[section]) next};"\
6960"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6961"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6962"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6963"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6964"     ' prfx=^$ac_symprfx"
6965  else
6966    lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6967  fi
6968  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
6969
6970  # Check to see that the pipe works correctly.
6971  pipe_works=no
6972
6973  rm -f conftest*
6974  cat > conftest.$ac_ext <<_LT_EOF
6975#ifdef __cplusplus
6976extern "C" {
6977#endif
6978char nm_test_var;
6979void nm_test_func(void);
6980void nm_test_func(void){}
6981#ifdef __cplusplus
6982}
6983#endif
6984int main(){nm_test_var='a';nm_test_func();return(0);}
6985_LT_EOF
6986
6987  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6988  (eval $ac_compile) 2>&5
6989  ac_status=$?
6990  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6991  test $ac_status = 0; }; then
6992    # Now try to grab the symbols.
6993    nlist=conftest.nm
6994    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6995  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6996  ac_status=$?
6997  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6998  test $ac_status = 0; } && test -s "$nlist"; then
6999      # Try sorting and uniquifying the output.
7000      if sort "$nlist" | uniq > "$nlist"T; then
7001	mv -f "$nlist"T "$nlist"
7002      else
7003	rm -f "$nlist"T
7004      fi
7005
7006      # Make sure that we snagged all the symbols we need.
7007      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7008	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7009	  cat <<_LT_EOF > conftest.$ac_ext
7010/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7011#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7012/* DATA imports from DLLs on WIN32 can't be const, because runtime
7013   relocations are performed -- see ld's documentation on pseudo-relocs.  */
7014# define LT_DLSYM_CONST
7015#elif defined __osf__
7016/* This system does not cope well with relocations in const data.  */
7017# define LT_DLSYM_CONST
7018#else
7019# define LT_DLSYM_CONST const
7020#endif
7021
7022#ifdef __cplusplus
7023extern "C" {
7024#endif
7025
7026_LT_EOF
7027	  # Now generate the symbol file.
7028	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7029
7030	  cat <<_LT_EOF >> conftest.$ac_ext
7031
7032/* The mapping between symbol names and symbols.  */
7033LT_DLSYM_CONST struct {
7034  const char *name;
7035  void       *address;
7036}
7037lt__PROGRAM__LTX_preloaded_symbols[] =
7038{
7039  { "@PROGRAM@", (void *) 0 },
7040_LT_EOF
7041	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7042	  cat <<\_LT_EOF >> conftest.$ac_ext
7043  {0, (void *) 0}
7044};
7045
7046/* This works around a problem in FreeBSD linker */
7047#ifdef FREEBSD_WORKAROUND
7048static const void *lt_preloaded_setup() {
7049  return lt__PROGRAM__LTX_preloaded_symbols;
7050}
7051#endif
7052
7053#ifdef __cplusplus
7054}
7055#endif
7056_LT_EOF
7057	  # Now try linking the two files.
7058	  mv conftest.$ac_objext conftstm.$ac_objext
7059	  lt_globsym_save_LIBS=$LIBS
7060	  lt_globsym_save_CFLAGS=$CFLAGS
7061	  LIBS=conftstm.$ac_objext
7062	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7063	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7064  (eval $ac_link) 2>&5
7065  ac_status=$?
7066  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7067  test $ac_status = 0; } && test -s conftest$ac_exeext; then
7068	    pipe_works=yes
7069	  fi
7070	  LIBS=$lt_globsym_save_LIBS
7071	  CFLAGS=$lt_globsym_save_CFLAGS
7072	else
7073	  echo "cannot find nm_test_func in $nlist" >&5
7074	fi
7075      else
7076	echo "cannot find nm_test_var in $nlist" >&5
7077      fi
7078    else
7079      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7080    fi
7081  else
7082    echo "$progname: failed program was:" >&5
7083    cat conftest.$ac_ext >&5
7084  fi
7085  rm -rf conftest* conftst*
7086
7087  # Do not use the global_symbol_pipe unless it works.
7088  if test yes = "$pipe_works"; then
7089    break
7090  else
7091    lt_cv_sys_global_symbol_pipe=
7092  fi
7093done
7094
7095fi
7096
7097if test -z "$lt_cv_sys_global_symbol_pipe"; then
7098  lt_cv_sys_global_symbol_to_cdecl=
7099fi
7100if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7101  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7102printf "%s\n" "failed" >&6; }
7103else
7104  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7105printf "%s\n" "ok" >&6; }
7106fi
7107
7108# Response file support.
7109if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7110  nm_file_list_spec='@'
7111elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7112  nm_file_list_spec='@'
7113fi
7114
7115
7116
7117
7118
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{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7152printf %s "checking for sysroot... " >&6; }
7153
7154# Check whether --with-sysroot was given.
7155if test ${with_sysroot+y}
7156then :
7157  withval=$with_sysroot;
7158else $as_nop
7159  with_sysroot=no
7160fi
7161
7162
7163lt_sysroot=
7164case $with_sysroot in #(
7165 yes)
7166   if test yes = "$GCC"; then
7167     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7168   fi
7169   ;; #(
7170 /*)
7171   lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7172   ;; #(
7173 no|'')
7174   ;; #(
7175 *)
7176   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7177printf "%s\n" "$with_sysroot" >&6; }
7178   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7179   ;;
7180esac
7181
7182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7183printf "%s\n" "${lt_sysroot:-no}" >&6; }
7184
7185
7186
7187
7188
7189{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7190printf %s "checking for a working dd... " >&6; }
7191if test ${ac_cv_path_lt_DD+y}
7192then :
7193  printf %s "(cached) " >&6
7194else $as_nop
7195  printf 0123456789abcdef0123456789abcdef >conftest.i
7196cat conftest.i conftest.i >conftest2.i
7197: ${lt_DD:=$DD}
7198if test -z "$lt_DD"; then
7199  ac_path_lt_DD_found=false
7200  # Loop through the user's path and test for each of PROGNAME-LIST
7201  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7202for as_dir in $PATH
7203do
7204  IFS=$as_save_IFS
7205  case $as_dir in #(((
7206    '') as_dir=./ ;;
7207    */) ;;
7208    *) as_dir=$as_dir/ ;;
7209  esac
7210    for ac_prog in dd
7211   do
7212    for ac_exec_ext in '' $ac_executable_extensions; do
7213      ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7214      as_fn_executable_p "$ac_path_lt_DD" || continue
7215if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7216  cmp -s conftest.i conftest.out \
7217  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7218fi
7219      $ac_path_lt_DD_found && break 3
7220    done
7221  done
7222  done
7223IFS=$as_save_IFS
7224  if test -z "$ac_cv_path_lt_DD"; then
7225    :
7226  fi
7227else
7228  ac_cv_path_lt_DD=$lt_DD
7229fi
7230
7231rm -f conftest.i conftest2.i conftest.out
7232fi
7233{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7234printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7235
7236
7237{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7238printf %s "checking how to truncate binary pipes... " >&6; }
7239if test ${lt_cv_truncate_bin+y}
7240then :
7241  printf %s "(cached) " >&6
7242else $as_nop
7243  printf 0123456789abcdef0123456789abcdef >conftest.i
7244cat conftest.i conftest.i >conftest2.i
7245lt_cv_truncate_bin=
7246if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7247  cmp -s conftest.i conftest.out \
7248  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7249fi
7250rm -f conftest.i conftest2.i conftest.out
7251test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7252fi
7253{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7254printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7255
7256
7257
7258
7259
7260
7261
7262# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7263func_cc_basename ()
7264{
7265    for cc_temp in $*""; do
7266      case $cc_temp in
7267        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7268        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7269        \-*) ;;
7270        *) break;;
7271      esac
7272    done
7273    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7274}
7275
7276# Check whether --enable-libtool-lock was given.
7277if test ${enable_libtool_lock+y}
7278then :
7279  enableval=$enable_libtool_lock;
7280fi
7281
7282test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7283
7284# Some flags need to be propagated to the compiler or linker for good
7285# libtool support.
7286case $host in
7287ia64-*-hpux*)
7288  # Find out what ABI is being produced by ac_compile, and set mode
7289  # options accordingly.
7290  echo 'int i;' > conftest.$ac_ext
7291  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7292  (eval $ac_compile) 2>&5
7293  ac_status=$?
7294  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7295  test $ac_status = 0; }; then
7296    case `$FILECMD conftest.$ac_objext` in
7297      *ELF-32*)
7298	HPUX_IA64_MODE=32
7299	;;
7300      *ELF-64*)
7301	HPUX_IA64_MODE=64
7302	;;
7303    esac
7304  fi
7305  rm -rf conftest*
7306  ;;
7307*-*-irix6*)
7308  # Find out what ABI is being produced by ac_compile, and set linker
7309  # options accordingly.
7310  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7311  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7312  (eval $ac_compile) 2>&5
7313  ac_status=$?
7314  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7315  test $ac_status = 0; }; then
7316    if test yes = "$lt_cv_prog_gnu_ld"; then
7317      case `$FILECMD conftest.$ac_objext` in
7318	*32-bit*)
7319	  LD="${LD-ld} -melf32bsmip"
7320	  ;;
7321	*N32*)
7322	  LD="${LD-ld} -melf32bmipn32"
7323	  ;;
7324	*64-bit*)
7325	  LD="${LD-ld} -melf64bmip"
7326	;;
7327      esac
7328    else
7329      case `$FILECMD conftest.$ac_objext` in
7330	*32-bit*)
7331	  LD="${LD-ld} -32"
7332	  ;;
7333	*N32*)
7334	  LD="${LD-ld} -n32"
7335	  ;;
7336	*64-bit*)
7337	  LD="${LD-ld} -64"
7338	  ;;
7339      esac
7340    fi
7341  fi
7342  rm -rf conftest*
7343  ;;
7344
7345mips64*-*linux*)
7346  # Find out what ABI is being produced by ac_compile, and set linker
7347  # options accordingly.
7348  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7349  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7350  (eval $ac_compile) 2>&5
7351  ac_status=$?
7352  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7353  test $ac_status = 0; }; then
7354    emul=elf
7355    case `$FILECMD conftest.$ac_objext` in
7356      *32-bit*)
7357	emul="${emul}32"
7358	;;
7359      *64-bit*)
7360	emul="${emul}64"
7361	;;
7362    esac
7363    case `$FILECMD conftest.$ac_objext` in
7364      *MSB*)
7365	emul="${emul}btsmip"
7366	;;
7367      *LSB*)
7368	emul="${emul}ltsmip"
7369	;;
7370    esac
7371    case `$FILECMD conftest.$ac_objext` in
7372      *N32*)
7373	emul="${emul}n32"
7374	;;
7375    esac
7376    LD="${LD-ld} -m $emul"
7377  fi
7378  rm -rf conftest*
7379  ;;
7380
7381x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7382s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7383  # Find out what ABI is being produced by ac_compile, and set linker
7384  # options accordingly.  Note that the listed cases only cover the
7385  # situations where additional linker options are needed (such as when
7386  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7387  # vice versa); the common cases where no linker options are needed do
7388  # not appear in the list.
7389  echo 'int i;' > conftest.$ac_ext
7390  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7391  (eval $ac_compile) 2>&5
7392  ac_status=$?
7393  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7394  test $ac_status = 0; }; then
7395    case `$FILECMD conftest.o` in
7396      *32-bit*)
7397	case $host in
7398	  x86_64-*kfreebsd*-gnu)
7399	    LD="${LD-ld} -m elf_i386_fbsd"
7400	    ;;
7401	  x86_64-*linux*)
7402	    case `$FILECMD conftest.o` in
7403	      *x86-64*)
7404		LD="${LD-ld} -m elf32_x86_64"
7405		;;
7406	      *)
7407		LD="${LD-ld} -m elf_i386"
7408		;;
7409	    esac
7410	    ;;
7411	  powerpc64le-*linux*)
7412	    LD="${LD-ld} -m elf32lppclinux"
7413	    ;;
7414	  powerpc64-*linux*)
7415	    LD="${LD-ld} -m elf32ppclinux"
7416	    ;;
7417	  s390x-*linux*)
7418	    LD="${LD-ld} -m elf_s390"
7419	    ;;
7420	  sparc64-*linux*)
7421	    LD="${LD-ld} -m elf32_sparc"
7422	    ;;
7423	esac
7424	;;
7425      *64-bit*)
7426	case $host in
7427	  x86_64-*kfreebsd*-gnu)
7428	    LD="${LD-ld} -m elf_x86_64_fbsd"
7429	    ;;
7430	  x86_64-*linux*)
7431	    LD="${LD-ld} -m elf_x86_64"
7432	    ;;
7433	  powerpcle-*linux*)
7434	    LD="${LD-ld} -m elf64lppc"
7435	    ;;
7436	  powerpc-*linux*)
7437	    LD="${LD-ld} -m elf64ppc"
7438	    ;;
7439	  s390*-*linux*|s390*-*tpf*)
7440	    LD="${LD-ld} -m elf64_s390"
7441	    ;;
7442	  sparc*-*linux*)
7443	    LD="${LD-ld} -m elf64_sparc"
7444	    ;;
7445	esac
7446	;;
7447    esac
7448  fi
7449  rm -rf conftest*
7450  ;;
7451
7452*-*-sco3.2v5*)
7453  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7454  SAVE_CFLAGS=$CFLAGS
7455  CFLAGS="$CFLAGS -belf"
7456  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7457printf %s "checking whether the C compiler needs -belf... " >&6; }
7458if test ${lt_cv_cc_needs_belf+y}
7459then :
7460  printf %s "(cached) " >&6
7461else $as_nop
7462  ac_ext=c
7463ac_cpp='$CPP $CPPFLAGS'
7464ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7465ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7466ac_compiler_gnu=$ac_cv_c_compiler_gnu
7467
7468     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7469/* end confdefs.h.  */
7470
7471int
7472main (void)
7473{
7474
7475  ;
7476  return 0;
7477}
7478_ACEOF
7479if ac_fn_c_try_link "$LINENO"
7480then :
7481  lt_cv_cc_needs_belf=yes
7482else $as_nop
7483  lt_cv_cc_needs_belf=no
7484fi
7485rm -f core conftest.err conftest.$ac_objext conftest.beam \
7486    conftest$ac_exeext conftest.$ac_ext
7487     ac_ext=c
7488ac_cpp='$CPP $CPPFLAGS'
7489ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7490ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7491ac_compiler_gnu=$ac_cv_c_compiler_gnu
7492
7493fi
7494{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7495printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7496  if test yes != "$lt_cv_cc_needs_belf"; then
7497    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7498    CFLAGS=$SAVE_CFLAGS
7499  fi
7500  ;;
7501*-*solaris*)
7502  # Find out what ABI is being produced by ac_compile, and set linker
7503  # options accordingly.
7504  echo 'int i;' > conftest.$ac_ext
7505  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7506  (eval $ac_compile) 2>&5
7507  ac_status=$?
7508  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7509  test $ac_status = 0; }; then
7510    case `$FILECMD conftest.o` in
7511    *64-bit*)
7512      case $lt_cv_prog_gnu_ld in
7513      yes*)
7514        case $host in
7515        i?86-*-solaris*|x86_64-*-solaris*)
7516          LD="${LD-ld} -m elf_x86_64"
7517          ;;
7518        sparc*-*-solaris*)
7519          LD="${LD-ld} -m elf64_sparc"
7520          ;;
7521        esac
7522        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7523        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7524          LD=${LD-ld}_sol2
7525        fi
7526        ;;
7527      *)
7528	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7529	  LD="${LD-ld} -64"
7530	fi
7531	;;
7532      esac
7533      ;;
7534    esac
7535  fi
7536  rm -rf conftest*
7537  ;;
7538esac
7539
7540need_locks=$enable_libtool_lock
7541
7542if test -n "$ac_tool_prefix"; then
7543  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7544set dummy ${ac_tool_prefix}mt; ac_word=$2
7545{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7546printf %s "checking for $ac_word... " >&6; }
7547if test ${ac_cv_prog_MANIFEST_TOOL+y}
7548then :
7549  printf %s "(cached) " >&6
7550else $as_nop
7551  if test -n "$MANIFEST_TOOL"; then
7552  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7553else
7554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7555for as_dir in $PATH
7556do
7557  IFS=$as_save_IFS
7558  case $as_dir in #(((
7559    '') as_dir=./ ;;
7560    */) ;;
7561    *) as_dir=$as_dir/ ;;
7562  esac
7563    for ac_exec_ext in '' $ac_executable_extensions; do
7564  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7565    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7566    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7567    break 2
7568  fi
7569done
7570  done
7571IFS=$as_save_IFS
7572
7573fi
7574fi
7575MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7576if test -n "$MANIFEST_TOOL"; then
7577  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7578printf "%s\n" "$MANIFEST_TOOL" >&6; }
7579else
7580  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7581printf "%s\n" "no" >&6; }
7582fi
7583
7584
7585fi
7586if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7587  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7588  # Extract the first word of "mt", so it can be a program name with args.
7589set dummy mt; ac_word=$2
7590{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7591printf %s "checking for $ac_word... " >&6; }
7592if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7593then :
7594  printf %s "(cached) " >&6
7595else $as_nop
7596  if test -n "$ac_ct_MANIFEST_TOOL"; then
7597  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7598else
7599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7600for as_dir in $PATH
7601do
7602  IFS=$as_save_IFS
7603  case $as_dir in #(((
7604    '') as_dir=./ ;;
7605    */) ;;
7606    *) as_dir=$as_dir/ ;;
7607  esac
7608    for ac_exec_ext in '' $ac_executable_extensions; do
7609  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7610    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7611    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7612    break 2
7613  fi
7614done
7615  done
7616IFS=$as_save_IFS
7617
7618fi
7619fi
7620ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7621if test -n "$ac_ct_MANIFEST_TOOL"; then
7622  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7623printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7624else
7625  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7626printf "%s\n" "no" >&6; }
7627fi
7628
7629  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7630    MANIFEST_TOOL=":"
7631  else
7632    case $cross_compiling:$ac_tool_warned in
7633yes:)
7634{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7635printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7636ac_tool_warned=yes ;;
7637esac
7638    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7639  fi
7640else
7641  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7642fi
7643
7644test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7645{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7646printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7647if test ${lt_cv_path_mainfest_tool+y}
7648then :
7649  printf %s "(cached) " >&6
7650else $as_nop
7651  lt_cv_path_mainfest_tool=no
7652  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7653  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7654  cat conftest.err >&5
7655  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7656    lt_cv_path_mainfest_tool=yes
7657  fi
7658  rm -f conftest*
7659fi
7660{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7661printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
7662if test yes != "$lt_cv_path_mainfest_tool"; then
7663  MANIFEST_TOOL=:
7664fi
7665
7666
7667
7668
7669
7670
7671  case $host_os in
7672    rhapsody* | darwin*)
7673    if test -n "$ac_tool_prefix"; then
7674  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7675set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7676{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7677printf %s "checking for $ac_word... " >&6; }
7678if test ${ac_cv_prog_DSYMUTIL+y}
7679then :
7680  printf %s "(cached) " >&6
7681else $as_nop
7682  if test -n "$DSYMUTIL"; then
7683  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7684else
7685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7686for as_dir in $PATH
7687do
7688  IFS=$as_save_IFS
7689  case $as_dir in #(((
7690    '') as_dir=./ ;;
7691    */) ;;
7692    *) as_dir=$as_dir/ ;;
7693  esac
7694    for ac_exec_ext in '' $ac_executable_extensions; do
7695  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7696    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7697    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7698    break 2
7699  fi
7700done
7701  done
7702IFS=$as_save_IFS
7703
7704fi
7705fi
7706DSYMUTIL=$ac_cv_prog_DSYMUTIL
7707if test -n "$DSYMUTIL"; then
7708  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7709printf "%s\n" "$DSYMUTIL" >&6; }
7710else
7711  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7712printf "%s\n" "no" >&6; }
7713fi
7714
7715
7716fi
7717if test -z "$ac_cv_prog_DSYMUTIL"; then
7718  ac_ct_DSYMUTIL=$DSYMUTIL
7719  # Extract the first word of "dsymutil", so it can be a program name with args.
7720set dummy dsymutil; ac_word=$2
7721{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7722printf %s "checking for $ac_word... " >&6; }
7723if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
7724then :
7725  printf %s "(cached) " >&6
7726else $as_nop
7727  if test -n "$ac_ct_DSYMUTIL"; then
7728  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7729else
7730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7731for as_dir in $PATH
7732do
7733  IFS=$as_save_IFS
7734  case $as_dir in #(((
7735    '') as_dir=./ ;;
7736    */) ;;
7737    *) as_dir=$as_dir/ ;;
7738  esac
7739    for ac_exec_ext in '' $ac_executable_extensions; do
7740  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7741    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7742    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7743    break 2
7744  fi
7745done
7746  done
7747IFS=$as_save_IFS
7748
7749fi
7750fi
7751ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7752if test -n "$ac_ct_DSYMUTIL"; then
7753  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7754printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
7755else
7756  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7757printf "%s\n" "no" >&6; }
7758fi
7759
7760  if test "x$ac_ct_DSYMUTIL" = x; then
7761    DSYMUTIL=":"
7762  else
7763    case $cross_compiling:$ac_tool_warned in
7764yes:)
7765{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7766printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7767ac_tool_warned=yes ;;
7768esac
7769    DSYMUTIL=$ac_ct_DSYMUTIL
7770  fi
7771else
7772  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7773fi
7774
7775    if test -n "$ac_tool_prefix"; then
7776  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7777set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7778{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7779printf %s "checking for $ac_word... " >&6; }
7780if test ${ac_cv_prog_NMEDIT+y}
7781then :
7782  printf %s "(cached) " >&6
7783else $as_nop
7784  if test -n "$NMEDIT"; then
7785  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7786else
7787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7788for as_dir in $PATH
7789do
7790  IFS=$as_save_IFS
7791  case $as_dir in #(((
7792    '') as_dir=./ ;;
7793    */) ;;
7794    *) as_dir=$as_dir/ ;;
7795  esac
7796    for ac_exec_ext in '' $ac_executable_extensions; do
7797  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7798    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7799    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7800    break 2
7801  fi
7802done
7803  done
7804IFS=$as_save_IFS
7805
7806fi
7807fi
7808NMEDIT=$ac_cv_prog_NMEDIT
7809if test -n "$NMEDIT"; then
7810  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7811printf "%s\n" "$NMEDIT" >&6; }
7812else
7813  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7814printf "%s\n" "no" >&6; }
7815fi
7816
7817
7818fi
7819if test -z "$ac_cv_prog_NMEDIT"; then
7820  ac_ct_NMEDIT=$NMEDIT
7821  # Extract the first word of "nmedit", so it can be a program name with args.
7822set dummy nmedit; ac_word=$2
7823{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7824printf %s "checking for $ac_word... " >&6; }
7825if test ${ac_cv_prog_ac_ct_NMEDIT+y}
7826then :
7827  printf %s "(cached) " >&6
7828else $as_nop
7829  if test -n "$ac_ct_NMEDIT"; then
7830  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7831else
7832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7833for as_dir in $PATH
7834do
7835  IFS=$as_save_IFS
7836  case $as_dir in #(((
7837    '') as_dir=./ ;;
7838    */) ;;
7839    *) as_dir=$as_dir/ ;;
7840  esac
7841    for ac_exec_ext in '' $ac_executable_extensions; do
7842  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7843    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7844    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7845    break 2
7846  fi
7847done
7848  done
7849IFS=$as_save_IFS
7850
7851fi
7852fi
7853ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7854if test -n "$ac_ct_NMEDIT"; then
7855  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7856printf "%s\n" "$ac_ct_NMEDIT" >&6; }
7857else
7858  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7859printf "%s\n" "no" >&6; }
7860fi
7861
7862  if test "x$ac_ct_NMEDIT" = x; then
7863    NMEDIT=":"
7864  else
7865    case $cross_compiling:$ac_tool_warned in
7866yes:)
7867{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7868printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7869ac_tool_warned=yes ;;
7870esac
7871    NMEDIT=$ac_ct_NMEDIT
7872  fi
7873else
7874  NMEDIT="$ac_cv_prog_NMEDIT"
7875fi
7876
7877    if test -n "$ac_tool_prefix"; then
7878  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7879set dummy ${ac_tool_prefix}lipo; ac_word=$2
7880{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7881printf %s "checking for $ac_word... " >&6; }
7882if test ${ac_cv_prog_LIPO+y}
7883then :
7884  printf %s "(cached) " >&6
7885else $as_nop
7886  if test -n "$LIPO"; then
7887  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7888else
7889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7890for as_dir in $PATH
7891do
7892  IFS=$as_save_IFS
7893  case $as_dir in #(((
7894    '') as_dir=./ ;;
7895    */) ;;
7896    *) as_dir=$as_dir/ ;;
7897  esac
7898    for ac_exec_ext in '' $ac_executable_extensions; do
7899  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7900    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7901    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7902    break 2
7903  fi
7904done
7905  done
7906IFS=$as_save_IFS
7907
7908fi
7909fi
7910LIPO=$ac_cv_prog_LIPO
7911if test -n "$LIPO"; then
7912  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7913printf "%s\n" "$LIPO" >&6; }
7914else
7915  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7916printf "%s\n" "no" >&6; }
7917fi
7918
7919
7920fi
7921if test -z "$ac_cv_prog_LIPO"; then
7922  ac_ct_LIPO=$LIPO
7923  # Extract the first word of "lipo", so it can be a program name with args.
7924set dummy lipo; ac_word=$2
7925{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7926printf %s "checking for $ac_word... " >&6; }
7927if test ${ac_cv_prog_ac_ct_LIPO+y}
7928then :
7929  printf %s "(cached) " >&6
7930else $as_nop
7931  if test -n "$ac_ct_LIPO"; then
7932  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7933else
7934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7935for as_dir in $PATH
7936do
7937  IFS=$as_save_IFS
7938  case $as_dir in #(((
7939    '') as_dir=./ ;;
7940    */) ;;
7941    *) as_dir=$as_dir/ ;;
7942  esac
7943    for ac_exec_ext in '' $ac_executable_extensions; do
7944  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7945    ac_cv_prog_ac_ct_LIPO="lipo"
7946    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7947    break 2
7948  fi
7949done
7950  done
7951IFS=$as_save_IFS
7952
7953fi
7954fi
7955ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7956if test -n "$ac_ct_LIPO"; then
7957  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7958printf "%s\n" "$ac_ct_LIPO" >&6; }
7959else
7960  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7961printf "%s\n" "no" >&6; }
7962fi
7963
7964  if test "x$ac_ct_LIPO" = x; then
7965    LIPO=":"
7966  else
7967    case $cross_compiling:$ac_tool_warned in
7968yes:)
7969{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7970printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7971ac_tool_warned=yes ;;
7972esac
7973    LIPO=$ac_ct_LIPO
7974  fi
7975else
7976  LIPO="$ac_cv_prog_LIPO"
7977fi
7978
7979    if test -n "$ac_tool_prefix"; then
7980  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7981set dummy ${ac_tool_prefix}otool; ac_word=$2
7982{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7983printf %s "checking for $ac_word... " >&6; }
7984if test ${ac_cv_prog_OTOOL+y}
7985then :
7986  printf %s "(cached) " >&6
7987else $as_nop
7988  if test -n "$OTOOL"; then
7989  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7990else
7991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7992for as_dir in $PATH
7993do
7994  IFS=$as_save_IFS
7995  case $as_dir in #(((
7996    '') as_dir=./ ;;
7997    */) ;;
7998    *) as_dir=$as_dir/ ;;
7999  esac
8000    for ac_exec_ext in '' $ac_executable_extensions; do
8001  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8002    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8003    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8004    break 2
8005  fi
8006done
8007  done
8008IFS=$as_save_IFS
8009
8010fi
8011fi
8012OTOOL=$ac_cv_prog_OTOOL
8013if test -n "$OTOOL"; then
8014  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8015printf "%s\n" "$OTOOL" >&6; }
8016else
8017  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8018printf "%s\n" "no" >&6; }
8019fi
8020
8021
8022fi
8023if test -z "$ac_cv_prog_OTOOL"; then
8024  ac_ct_OTOOL=$OTOOL
8025  # Extract the first word of "otool", so it can be a program name with args.
8026set dummy otool; ac_word=$2
8027{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8028printf %s "checking for $ac_word... " >&6; }
8029if test ${ac_cv_prog_ac_ct_OTOOL+y}
8030then :
8031  printf %s "(cached) " >&6
8032else $as_nop
8033  if test -n "$ac_ct_OTOOL"; then
8034  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8035else
8036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8037for as_dir in $PATH
8038do
8039  IFS=$as_save_IFS
8040  case $as_dir in #(((
8041    '') as_dir=./ ;;
8042    */) ;;
8043    *) as_dir=$as_dir/ ;;
8044  esac
8045    for ac_exec_ext in '' $ac_executable_extensions; do
8046  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8047    ac_cv_prog_ac_ct_OTOOL="otool"
8048    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8049    break 2
8050  fi
8051done
8052  done
8053IFS=$as_save_IFS
8054
8055fi
8056fi
8057ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8058if test -n "$ac_ct_OTOOL"; then
8059  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8060printf "%s\n" "$ac_ct_OTOOL" >&6; }
8061else
8062  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8063printf "%s\n" "no" >&6; }
8064fi
8065
8066  if test "x$ac_ct_OTOOL" = x; then
8067    OTOOL=":"
8068  else
8069    case $cross_compiling:$ac_tool_warned in
8070yes:)
8071{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8072printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8073ac_tool_warned=yes ;;
8074esac
8075    OTOOL=$ac_ct_OTOOL
8076  fi
8077else
8078  OTOOL="$ac_cv_prog_OTOOL"
8079fi
8080
8081    if test -n "$ac_tool_prefix"; then
8082  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8083set dummy ${ac_tool_prefix}otool64; ac_word=$2
8084{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8085printf %s "checking for $ac_word... " >&6; }
8086if test ${ac_cv_prog_OTOOL64+y}
8087then :
8088  printf %s "(cached) " >&6
8089else $as_nop
8090  if test -n "$OTOOL64"; then
8091  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8092else
8093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8094for as_dir in $PATH
8095do
8096  IFS=$as_save_IFS
8097  case $as_dir in #(((
8098    '') as_dir=./ ;;
8099    */) ;;
8100    *) as_dir=$as_dir/ ;;
8101  esac
8102    for ac_exec_ext in '' $ac_executable_extensions; do
8103  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8104    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8105    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8106    break 2
8107  fi
8108done
8109  done
8110IFS=$as_save_IFS
8111
8112fi
8113fi
8114OTOOL64=$ac_cv_prog_OTOOL64
8115if test -n "$OTOOL64"; then
8116  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8117printf "%s\n" "$OTOOL64" >&6; }
8118else
8119  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8120printf "%s\n" "no" >&6; }
8121fi
8122
8123
8124fi
8125if test -z "$ac_cv_prog_OTOOL64"; then
8126  ac_ct_OTOOL64=$OTOOL64
8127  # Extract the first word of "otool64", so it can be a program name with args.
8128set dummy otool64; ac_word=$2
8129{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8130printf %s "checking for $ac_word... " >&6; }
8131if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8132then :
8133  printf %s "(cached) " >&6
8134else $as_nop
8135  if test -n "$ac_ct_OTOOL64"; then
8136  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8137else
8138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8139for as_dir in $PATH
8140do
8141  IFS=$as_save_IFS
8142  case $as_dir in #(((
8143    '') as_dir=./ ;;
8144    */) ;;
8145    *) as_dir=$as_dir/ ;;
8146  esac
8147    for ac_exec_ext in '' $ac_executable_extensions; do
8148  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8149    ac_cv_prog_ac_ct_OTOOL64="otool64"
8150    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8151    break 2
8152  fi
8153done
8154  done
8155IFS=$as_save_IFS
8156
8157fi
8158fi
8159ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8160if test -n "$ac_ct_OTOOL64"; then
8161  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8162printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8163else
8164  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8165printf "%s\n" "no" >&6; }
8166fi
8167
8168  if test "x$ac_ct_OTOOL64" = x; then
8169    OTOOL64=":"
8170  else
8171    case $cross_compiling:$ac_tool_warned in
8172yes:)
8173{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8174printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8175ac_tool_warned=yes ;;
8176esac
8177    OTOOL64=$ac_ct_OTOOL64
8178  fi
8179else
8180  OTOOL64="$ac_cv_prog_OTOOL64"
8181fi
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8210printf %s "checking for -single_module linker flag... " >&6; }
8211if test ${lt_cv_apple_cc_single_mod+y}
8212then :
8213  printf %s "(cached) " >&6
8214else $as_nop
8215  lt_cv_apple_cc_single_mod=no
8216      if test -z "$LT_MULTI_MODULE"; then
8217	# By default we will add the -single_module flag. You can override
8218	# by either setting the environment variable LT_MULTI_MODULE
8219	# non-empty at configure time, or by adding -multi_module to the
8220	# link flags.
8221	rm -rf libconftest.dylib*
8222	echo "int foo(void){return 1;}" > conftest.c
8223	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8224-dynamiclib -Wl,-single_module conftest.c" >&5
8225	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8226	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8227        _lt_result=$?
8228	# If there is a non-empty error log, and "single_module"
8229	# appears in it, assume the flag caused a linker warning
8230        if test -s conftest.err && $GREP single_module conftest.err; then
8231	  cat conftest.err >&5
8232	# Otherwise, if the output was created with a 0 exit code from
8233	# the compiler, it worked.
8234	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8235	  lt_cv_apple_cc_single_mod=yes
8236	else
8237	  cat conftest.err >&5
8238	fi
8239	rm -rf libconftest.dylib*
8240	rm -f conftest.*
8241      fi
8242fi
8243{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8244printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8245
8246    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8247printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8248if test ${lt_cv_ld_exported_symbols_list+y}
8249then :
8250  printf %s "(cached) " >&6
8251else $as_nop
8252  lt_cv_ld_exported_symbols_list=no
8253      save_LDFLAGS=$LDFLAGS
8254      echo "_main" > conftest.sym
8255      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8256      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8257/* end confdefs.h.  */
8258
8259int
8260main (void)
8261{
8262
8263  ;
8264  return 0;
8265}
8266_ACEOF
8267if ac_fn_c_try_link "$LINENO"
8268then :
8269  lt_cv_ld_exported_symbols_list=yes
8270else $as_nop
8271  lt_cv_ld_exported_symbols_list=no
8272fi
8273rm -f core conftest.err conftest.$ac_objext conftest.beam \
8274    conftest$ac_exeext conftest.$ac_ext
8275	LDFLAGS=$save_LDFLAGS
8276
8277fi
8278{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8279printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8280
8281    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8282printf %s "checking for -force_load linker flag... " >&6; }
8283if test ${lt_cv_ld_force_load+y}
8284then :
8285  printf %s "(cached) " >&6
8286else $as_nop
8287  lt_cv_ld_force_load=no
8288      cat > conftest.c << _LT_EOF
8289int forced_loaded() { return 2;}
8290_LT_EOF
8291      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8292      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8293      echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8294      $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8295      echo "$RANLIB libconftest.a" >&5
8296      $RANLIB libconftest.a 2>&5
8297      cat > conftest.c << _LT_EOF
8298int main() { return 0;}
8299_LT_EOF
8300      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8301      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8302      _lt_result=$?
8303      if test -s conftest.err && $GREP force_load conftest.err; then
8304	cat conftest.err >&5
8305      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8306	lt_cv_ld_force_load=yes
8307      else
8308	cat conftest.err >&5
8309      fi
8310        rm -f conftest.err libconftest.a conftest conftest.c
8311        rm -rf conftest.dSYM
8312
8313fi
8314{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8315printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8316    case $host_os in
8317    rhapsody* | darwin1.[012])
8318      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8319    darwin1.*)
8320      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8321    darwin*)
8322      case $MACOSX_DEPLOYMENT_TARGET,$host in
8323        10.[012],*|,*powerpc*-darwin[5-8]*)
8324          _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8325        *)
8326          _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8327      esac
8328    ;;
8329  esac
8330    if test yes = "$lt_cv_apple_cc_single_mod"; then
8331      _lt_dar_single_mod='$single_module'
8332    fi
8333    if test yes = "$lt_cv_ld_exported_symbols_list"; then
8334      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8335    else
8336      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8337    fi
8338    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8339      _lt_dsymutil='~$DSYMUTIL $lib || :'
8340    else
8341      _lt_dsymutil=
8342    fi
8343    ;;
8344  esac
8345
8346# func_munge_path_list VARIABLE PATH
8347# -----------------------------------
8348# VARIABLE is name of variable containing _space_ separated list of
8349# directories to be munged by the contents of PATH, which is string
8350# having a format:
8351# "DIR[:DIR]:"
8352#       string "DIR[ DIR]" will be prepended to VARIABLE
8353# ":DIR[:DIR]"
8354#       string "DIR[ DIR]" will be appended to VARIABLE
8355# "DIRP[:DIRP]::[DIRA:]DIRA"
8356#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8357#       "DIRA[ DIRA]" will be appended to VARIABLE
8358# "DIR[:DIR]"
8359#       VARIABLE will be replaced by "DIR[ DIR]"
8360func_munge_path_list ()
8361{
8362    case x$2 in
8363    x)
8364        ;;
8365    *:)
8366        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8367        ;;
8368    x:*)
8369        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8370        ;;
8371    *::*)
8372        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8373        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8374        ;;
8375    *)
8376        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8377        ;;
8378    esac
8379}
8380
8381ac_header= ac_cache=
8382for ac_item in $ac_header_c_list
8383do
8384  if test $ac_cache; then
8385    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
8386    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
8387      printf "%s\n" "#define $ac_item 1" >> confdefs.h
8388    fi
8389    ac_header= ac_cache=
8390  elif test $ac_header; then
8391    ac_cache=$ac_item
8392  else
8393    ac_header=$ac_item
8394  fi
8395done
8396
8397
8398
8399
8400
8401
8402
8403
8404if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
8405then :
8406
8407printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
8408
8409fi
8410ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8411"
8412if test "x$ac_cv_header_dlfcn_h" = xyes
8413then :
8414  printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8415
8416fi
8417
8418
8419
8420
8421
8422# Set options
8423
8424
8425
8426        enable_dlopen=no
8427
8428
8429  enable_win32_dll=no
8430
8431
8432            # Check whether --enable-shared was given.
8433if test ${enable_shared+y}
8434then :
8435  enableval=$enable_shared; p=${PACKAGE-default}
8436    case $enableval in
8437    yes) enable_shared=yes ;;
8438    no) enable_shared=no ;;
8439    *)
8440      enable_shared=no
8441      # Look at the argument we got.  We use all the common list separators.
8442      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8443      for pkg in $enableval; do
8444	IFS=$lt_save_ifs
8445	if test "X$pkg" = "X$p"; then
8446	  enable_shared=yes
8447	fi
8448      done
8449      IFS=$lt_save_ifs
8450      ;;
8451    esac
8452else $as_nop
8453  enable_shared=yes
8454fi
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464  # Check whether --enable-static was given.
8465if test ${enable_static+y}
8466then :
8467  enableval=$enable_static; p=${PACKAGE-default}
8468    case $enableval in
8469    yes) enable_static=yes ;;
8470    no) enable_static=no ;;
8471    *)
8472     enable_static=no
8473      # Look at the argument we got.  We use all the common list separators.
8474      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8475      for pkg in $enableval; do
8476	IFS=$lt_save_ifs
8477	if test "X$pkg" = "X$p"; then
8478	  enable_static=yes
8479	fi
8480      done
8481      IFS=$lt_save_ifs
8482      ;;
8483    esac
8484else $as_nop
8485  enable_static=yes
8486fi
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497# Check whether --with-pic was given.
8498if test ${with_pic+y}
8499then :
8500  withval=$with_pic; lt_p=${PACKAGE-default}
8501    case $withval in
8502    yes|no) pic_mode=$withval ;;
8503    *)
8504      pic_mode=default
8505      # Look at the argument we got.  We use all the common list separators.
8506      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8507      for lt_pkg in $withval; do
8508	IFS=$lt_save_ifs
8509	if test "X$lt_pkg" = "X$lt_p"; then
8510	  pic_mode=yes
8511	fi
8512      done
8513      IFS=$lt_save_ifs
8514      ;;
8515    esac
8516else $as_nop
8517  pic_mode=default
8518fi
8519
8520
8521
8522
8523
8524
8525
8526
8527  # Check whether --enable-fast-install was given.
8528if test ${enable_fast_install+y}
8529then :
8530  enableval=$enable_fast_install; p=${PACKAGE-default}
8531    case $enableval in
8532    yes) enable_fast_install=yes ;;
8533    no) enable_fast_install=no ;;
8534    *)
8535      enable_fast_install=no
8536      # Look at the argument we got.  We use all the common list separators.
8537      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8538      for pkg in $enableval; do
8539	IFS=$lt_save_ifs
8540	if test "X$pkg" = "X$p"; then
8541	  enable_fast_install=yes
8542	fi
8543      done
8544      IFS=$lt_save_ifs
8545      ;;
8546    esac
8547else $as_nop
8548  enable_fast_install=yes
8549fi
8550
8551
8552
8553
8554
8555
8556
8557
8558  shared_archive_member_spec=
8559case $host,$enable_shared in
8560power*-*-aix[5-9]*,yes)
8561  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8562printf %s "checking which variant of shared library versioning to provide... " >&6; }
8563
8564# Check whether --with-aix-soname was given.
8565if test ${with_aix_soname+y}
8566then :
8567  withval=$with_aix_soname; case $withval in
8568    aix|svr4|both)
8569      ;;
8570    *)
8571      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8572      ;;
8573    esac
8574    lt_cv_with_aix_soname=$with_aix_soname
8575else $as_nop
8576  if test ${lt_cv_with_aix_soname+y}
8577then :
8578  printf %s "(cached) " >&6
8579else $as_nop
8580  lt_cv_with_aix_soname=aix
8581fi
8582
8583    with_aix_soname=$lt_cv_with_aix_soname
8584fi
8585
8586  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8587printf "%s\n" "$with_aix_soname" >&6; }
8588  if test aix != "$with_aix_soname"; then
8589    # For the AIX way of multilib, we name the shared archive member
8590    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8591    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8592    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8593    # the AIX toolchain works better with OBJECT_MODE set (default 32).
8594    if test 64 = "${OBJECT_MODE-32}"; then
8595      shared_archive_member_spec=shr_64
8596    else
8597      shared_archive_member_spec=shr
8598    fi
8599  fi
8600  ;;
8601*)
8602  with_aix_soname=aix
8603  ;;
8604esac
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615# This can be used to rebuild libtool when needed
8616LIBTOOL_DEPS=$ltmain
8617
8618# Always use our own libtool.
8619LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8620
8621
8622
8623
8624
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
8650test -z "$LN_S" && LN_S="ln -s"
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663
8664
8665if test -n "${ZSH_VERSION+set}"; then
8666   setopt NO_GLOB_SUBST
8667fi
8668
8669{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8670printf %s "checking for objdir... " >&6; }
8671if test ${lt_cv_objdir+y}
8672then :
8673  printf %s "(cached) " >&6
8674else $as_nop
8675  rm -f .libs 2>/dev/null
8676mkdir .libs 2>/dev/null
8677if test -d .libs; then
8678  lt_cv_objdir=.libs
8679else
8680  # MS-DOS does not allow filenames that begin with a dot.
8681  lt_cv_objdir=_libs
8682fi
8683rmdir .libs 2>/dev/null
8684fi
8685{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8686printf "%s\n" "$lt_cv_objdir" >&6; }
8687objdir=$lt_cv_objdir
8688
8689
8690
8691
8692
8693printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
8694
8695
8696
8697
8698case $host_os in
8699aix3*)
8700  # AIX sometimes has problems with the GCC collect2 program.  For some
8701  # reason, if we set the COLLECT_NAMES environment variable, the problems
8702  # vanish in a puff of smoke.
8703  if test set != "${COLLECT_NAMES+set}"; then
8704    COLLECT_NAMES=
8705    export COLLECT_NAMES
8706  fi
8707  ;;
8708esac
8709
8710# Global variables:
8711ofile=libtool
8712can_build_shared=yes
8713
8714# All known linkers require a '.a' archive for static linking (except MSVC and
8715# ICC, which need '.lib').
8716libext=a
8717
8718with_gnu_ld=$lt_cv_prog_gnu_ld
8719
8720old_CC=$CC
8721old_CFLAGS=$CFLAGS
8722
8723# Set sane defaults for various variables
8724test -z "$CC" && CC=cc
8725test -z "$LTCC" && LTCC=$CC
8726test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8727test -z "$LD" && LD=ld
8728test -z "$ac_objext" && ac_objext=o
8729
8730func_cc_basename $compiler
8731cc_basename=$func_cc_basename_result
8732
8733
8734# Only perform the check for file, if the check method requires it
8735test -z "$MAGIC_CMD" && MAGIC_CMD=file
8736case $deplibs_check_method in
8737file_magic*)
8738  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8739    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8740printf %s "checking for ${ac_tool_prefix}file... " >&6; }
8741if test ${lt_cv_path_MAGIC_CMD+y}
8742then :
8743  printf %s "(cached) " >&6
8744else $as_nop
8745  case $MAGIC_CMD in
8746[\\/*] |  ?:[\\/]*)
8747  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8748  ;;
8749*)
8750  lt_save_MAGIC_CMD=$MAGIC_CMD
8751  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8752  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8753  for ac_dir in $ac_dummy; do
8754    IFS=$lt_save_ifs
8755    test -z "$ac_dir" && ac_dir=.
8756    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8757      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8758      if test -n "$file_magic_test_file"; then
8759	case $deplibs_check_method in
8760	"file_magic "*)
8761	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8762	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8763	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8764	    $EGREP "$file_magic_regex" > /dev/null; then
8765	    :
8766	  else
8767	    cat <<_LT_EOF 1>&2
8768
8769*** Warning: the command libtool uses to detect shared libraries,
8770*** $file_magic_cmd, produces output that libtool cannot recognize.
8771*** The result is that libtool may fail to recognize shared libraries
8772*** as such.  This will affect the creation of libtool libraries that
8773*** depend on shared libraries, but programs linked with such libtool
8774*** libraries will work regardless of this problem.  Nevertheless, you
8775*** may want to report the problem to your system manager and/or to
8776*** bug-libtool@gnu.org
8777
8778_LT_EOF
8779	  fi ;;
8780	esac
8781      fi
8782      break
8783    fi
8784  done
8785  IFS=$lt_save_ifs
8786  MAGIC_CMD=$lt_save_MAGIC_CMD
8787  ;;
8788esac
8789fi
8790
8791MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8792if test -n "$MAGIC_CMD"; then
8793  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8794printf "%s\n" "$MAGIC_CMD" >&6; }
8795else
8796  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8797printf "%s\n" "no" >&6; }
8798fi
8799
8800
8801
8802
8803
8804if test -z "$lt_cv_path_MAGIC_CMD"; then
8805  if test -n "$ac_tool_prefix"; then
8806    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8807printf %s "checking for file... " >&6; }
8808if test ${lt_cv_path_MAGIC_CMD+y}
8809then :
8810  printf %s "(cached) " >&6
8811else $as_nop
8812  case $MAGIC_CMD in
8813[\\/*] |  ?:[\\/]*)
8814  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8815  ;;
8816*)
8817  lt_save_MAGIC_CMD=$MAGIC_CMD
8818  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8819  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8820  for ac_dir in $ac_dummy; do
8821    IFS=$lt_save_ifs
8822    test -z "$ac_dir" && ac_dir=.
8823    if test -f "$ac_dir/file"; then
8824      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8825      if test -n "$file_magic_test_file"; then
8826	case $deplibs_check_method in
8827	"file_magic "*)
8828	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8829	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8830	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8831	    $EGREP "$file_magic_regex" > /dev/null; then
8832	    :
8833	  else
8834	    cat <<_LT_EOF 1>&2
8835
8836*** Warning: the command libtool uses to detect shared libraries,
8837*** $file_magic_cmd, produces output that libtool cannot recognize.
8838*** The result is that libtool may fail to recognize shared libraries
8839*** as such.  This will affect the creation of libtool libraries that
8840*** depend on shared libraries, but programs linked with such libtool
8841*** libraries will work regardless of this problem.  Nevertheless, you
8842*** may want to report the problem to your system manager and/or to
8843*** bug-libtool@gnu.org
8844
8845_LT_EOF
8846	  fi ;;
8847	esac
8848      fi
8849      break
8850    fi
8851  done
8852  IFS=$lt_save_ifs
8853  MAGIC_CMD=$lt_save_MAGIC_CMD
8854  ;;
8855esac
8856fi
8857
8858MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8859if test -n "$MAGIC_CMD"; then
8860  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8861printf "%s\n" "$MAGIC_CMD" >&6; }
8862else
8863  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8864printf "%s\n" "no" >&6; }
8865fi
8866
8867
8868  else
8869    MAGIC_CMD=:
8870  fi
8871fi
8872
8873  fi
8874  ;;
8875esac
8876
8877# Use C for the default configuration in the libtool script
8878
8879lt_save_CC=$CC
8880ac_ext=c
8881ac_cpp='$CPP $CPPFLAGS'
8882ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8883ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8884ac_compiler_gnu=$ac_cv_c_compiler_gnu
8885
8886
8887# Source file extension for C test sources.
8888ac_ext=c
8889
8890# Object file extension for compiled C test sources.
8891objext=o
8892objext=$objext
8893
8894# Code to be used in simple compile tests
8895lt_simple_compile_test_code="int some_variable = 0;"
8896
8897# Code to be used in simple link tests
8898lt_simple_link_test_code='int main(){return(0);}'
8899
8900
8901
8902
8903
8904
8905
8906# If no C compiler was specified, use CC.
8907LTCC=${LTCC-"$CC"}
8908
8909# If no C compiler flags were specified, use CFLAGS.
8910LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8911
8912# Allow CC to be a program name with arguments.
8913compiler=$CC
8914
8915# Save the default compiler, since it gets overwritten when the other
8916# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8917compiler_DEFAULT=$CC
8918
8919# save warnings/boilerplate of simple test code
8920ac_outfile=conftest.$ac_objext
8921echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8922eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8923_lt_compiler_boilerplate=`cat conftest.err`
8924$RM conftest*
8925
8926ac_outfile=conftest.$ac_objext
8927echo "$lt_simple_link_test_code" >conftest.$ac_ext
8928eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8929_lt_linker_boilerplate=`cat conftest.err`
8930$RM -r conftest*
8931
8932
8933## CAVEAT EMPTOR:
8934## There is no encapsulation within the following macros, do not change
8935## the running order or otherwise move them around unless you know exactly
8936## what you are doing...
8937if test -n "$compiler"; then
8938
8939lt_prog_compiler_no_builtin_flag=
8940
8941if test yes = "$GCC"; then
8942  case $cc_basename in
8943  nvcc*)
8944    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8945  *)
8946    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8947  esac
8948
8949  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8950printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8951if test ${lt_cv_prog_compiler_rtti_exceptions+y}
8952then :
8953  printf %s "(cached) " >&6
8954else $as_nop
8955  lt_cv_prog_compiler_rtti_exceptions=no
8956   ac_outfile=conftest.$ac_objext
8957   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8958   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8959   # Insert the option either (1) after the last *FLAGS variable, or
8960   # (2) before a word containing "conftest.", or (3) at the end.
8961   # Note that $ac_compile itself does not contain backslashes and begins
8962   # with a dollar sign (not a hyphen), so the echo should work correctly.
8963   # The option is referenced via a variable to avoid confusing sed.
8964   lt_compile=`echo "$ac_compile" | $SED \
8965   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8966   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8967   -e 's:$: $lt_compiler_flag:'`
8968   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8969   (eval "$lt_compile" 2>conftest.err)
8970   ac_status=$?
8971   cat conftest.err >&5
8972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8973   if (exit $ac_status) && test -s "$ac_outfile"; then
8974     # The compiler can only warn and ignore the option if not recognized
8975     # So say no if there are warnings other than the usual output.
8976     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8977     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8978     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8979       lt_cv_prog_compiler_rtti_exceptions=yes
8980     fi
8981   fi
8982   $RM conftest*
8983
8984fi
8985{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8986printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8987
8988if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8989    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8990else
8991    :
8992fi
8993
8994fi
8995
8996
8997
8998
8999
9000
9001  lt_prog_compiler_wl=
9002lt_prog_compiler_pic=
9003lt_prog_compiler_static=
9004
9005
9006  if test yes = "$GCC"; then
9007    lt_prog_compiler_wl='-Wl,'
9008    lt_prog_compiler_static='-static'
9009
9010    case $host_os in
9011      aix*)
9012      # All AIX code is PIC.
9013      if test ia64 = "$host_cpu"; then
9014	# AIX 5 now supports IA64 processor
9015	lt_prog_compiler_static='-Bstatic'
9016      fi
9017      lt_prog_compiler_pic='-fPIC'
9018      ;;
9019
9020    amigaos*)
9021      case $host_cpu in
9022      powerpc)
9023            # see comment about AmigaOS4 .so support
9024            lt_prog_compiler_pic='-fPIC'
9025        ;;
9026      m68k)
9027            # FIXME: we need at least 68020 code to build shared libraries, but
9028            # adding the '-m68020' flag to GCC prevents building anything better,
9029            # like '-m68040'.
9030            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9031        ;;
9032      esac
9033      ;;
9034
9035    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9036      # PIC is the default for these OSes.
9037      ;;
9038
9039    mingw* | cygwin* | pw32* | os2* | cegcc*)
9040      # This hack is so that the source file can tell whether it is being
9041      # built for inclusion in a dll (and should export symbols for example).
9042      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9043      # (--disable-auto-import) libraries
9044      lt_prog_compiler_pic='-DDLL_EXPORT'
9045      case $host_os in
9046      os2*)
9047	lt_prog_compiler_static='$wl-static'
9048	;;
9049      esac
9050      ;;
9051
9052    darwin* | rhapsody*)
9053      # PIC is the default on this platform
9054      # Common symbols not allowed in MH_DYLIB files
9055      lt_prog_compiler_pic='-fno-common'
9056      ;;
9057
9058    haiku*)
9059      # PIC is the default for Haiku.
9060      # The "-static" flag exists, but is broken.
9061      lt_prog_compiler_static=
9062      ;;
9063
9064    hpux*)
9065      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9066      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9067      # sets the default TLS model and affects inlining.
9068      case $host_cpu in
9069      hppa*64*)
9070	# +Z the default
9071	;;
9072      *)
9073	lt_prog_compiler_pic='-fPIC'
9074	;;
9075      esac
9076      ;;
9077
9078    interix[3-9]*)
9079      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9080      # Instead, we relocate shared libraries at runtime.
9081      ;;
9082
9083    msdosdjgpp*)
9084      # Just because we use GCC doesn't mean we suddenly get shared libraries
9085      # on systems that don't support them.
9086      lt_prog_compiler_can_build_shared=no
9087      enable_shared=no
9088      ;;
9089
9090    *nto* | *qnx*)
9091      # QNX uses GNU C++, but need to define -shared option too, otherwise
9092      # it will coredump.
9093      lt_prog_compiler_pic='-fPIC -shared'
9094      ;;
9095
9096    sysv4*MP*)
9097      if test -d /usr/nec; then
9098	lt_prog_compiler_pic=-Kconform_pic
9099      fi
9100      ;;
9101
9102    *)
9103      lt_prog_compiler_pic='-fPIC'
9104      ;;
9105    esac
9106
9107    case $cc_basename in
9108    nvcc*) # Cuda Compiler Driver 2.2
9109      lt_prog_compiler_wl='-Xlinker '
9110      if test -n "$lt_prog_compiler_pic"; then
9111        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9112      fi
9113      ;;
9114    esac
9115  else
9116    # PORTME Check for flag to pass linker flags through the system compiler.
9117    case $host_os in
9118    aix*)
9119      lt_prog_compiler_wl='-Wl,'
9120      if test ia64 = "$host_cpu"; then
9121	# AIX 5 now supports IA64 processor
9122	lt_prog_compiler_static='-Bstatic'
9123      else
9124	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9125      fi
9126      ;;
9127
9128    darwin* | rhapsody*)
9129      # PIC is the default on this platform
9130      # Common symbols not allowed in MH_DYLIB files
9131      lt_prog_compiler_pic='-fno-common'
9132      case $cc_basename in
9133      nagfor*)
9134        # NAG Fortran compiler
9135        lt_prog_compiler_wl='-Wl,-Wl,,'
9136        lt_prog_compiler_pic='-PIC'
9137        lt_prog_compiler_static='-Bstatic'
9138        ;;
9139      esac
9140      ;;
9141
9142    mingw* | cygwin* | pw32* | os2* | cegcc*)
9143      # This hack is so that the source file can tell whether it is being
9144      # built for inclusion in a dll (and should export symbols for example).
9145      lt_prog_compiler_pic='-DDLL_EXPORT'
9146      case $host_os in
9147      os2*)
9148	lt_prog_compiler_static='$wl-static'
9149	;;
9150      esac
9151      ;;
9152
9153    hpux9* | hpux10* | hpux11*)
9154      lt_prog_compiler_wl='-Wl,'
9155      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9156      # not for PA HP-UX.
9157      case $host_cpu in
9158      hppa*64*|ia64*)
9159	# +Z the default
9160	;;
9161      *)
9162	lt_prog_compiler_pic='+Z'
9163	;;
9164      esac
9165      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9166      lt_prog_compiler_static='$wl-a ${wl}archive'
9167      ;;
9168
9169    irix5* | irix6* | nonstopux*)
9170      lt_prog_compiler_wl='-Wl,'
9171      # PIC (with -KPIC) is the default.
9172      lt_prog_compiler_static='-non_shared'
9173      ;;
9174
9175    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9176      case $cc_basename in
9177      # old Intel for x86_64, which still supported -KPIC.
9178      ecc*)
9179	lt_prog_compiler_wl='-Wl,'
9180	lt_prog_compiler_pic='-KPIC'
9181	lt_prog_compiler_static='-static'
9182        ;;
9183      # icc used to be incompatible with GCC.
9184      # ICC 10 doesn't accept -KPIC any more.
9185      icc* | ifort*)
9186	lt_prog_compiler_wl='-Wl,'
9187	lt_prog_compiler_pic='-fPIC'
9188	lt_prog_compiler_static='-static'
9189        ;;
9190      # Lahey Fortran 8.1.
9191      lf95*)
9192	lt_prog_compiler_wl='-Wl,'
9193	lt_prog_compiler_pic='--shared'
9194	lt_prog_compiler_static='--static'
9195	;;
9196      nagfor*)
9197	# NAG Fortran compiler
9198	lt_prog_compiler_wl='-Wl,-Wl,,'
9199	lt_prog_compiler_pic='-PIC'
9200	lt_prog_compiler_static='-Bstatic'
9201	;;
9202      tcc*)
9203	# Fabrice Bellard et al's Tiny C Compiler
9204	lt_prog_compiler_wl='-Wl,'
9205	lt_prog_compiler_pic='-fPIC'
9206	lt_prog_compiler_static='-static'
9207	;;
9208      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9209        # Portland Group compilers (*not* the Pentium gcc compiler,
9210	# which looks to be a dead project)
9211	lt_prog_compiler_wl='-Wl,'
9212	lt_prog_compiler_pic='-fpic'
9213	lt_prog_compiler_static='-Bstatic'
9214        ;;
9215      ccc*)
9216        lt_prog_compiler_wl='-Wl,'
9217        # All Alpha code is PIC.
9218        lt_prog_compiler_static='-non_shared'
9219        ;;
9220      xl* | bgxl* | bgf* | mpixl*)
9221	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9222	lt_prog_compiler_wl='-Wl,'
9223	lt_prog_compiler_pic='-qpic'
9224	lt_prog_compiler_static='-qstaticlink'
9225	;;
9226      *)
9227	case `$CC -V 2>&1 | $SED 5q` in
9228	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9229	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9230	  lt_prog_compiler_pic='-KPIC'
9231	  lt_prog_compiler_static='-Bstatic'
9232	  lt_prog_compiler_wl=''
9233	  ;;
9234	*Sun\ F* | *Sun*Fortran*)
9235	  lt_prog_compiler_pic='-KPIC'
9236	  lt_prog_compiler_static='-Bstatic'
9237	  lt_prog_compiler_wl='-Qoption ld '
9238	  ;;
9239	*Sun\ C*)
9240	  # Sun C 5.9
9241	  lt_prog_compiler_pic='-KPIC'
9242	  lt_prog_compiler_static='-Bstatic'
9243	  lt_prog_compiler_wl='-Wl,'
9244	  ;;
9245        *Intel*\ [CF]*Compiler*)
9246	  lt_prog_compiler_wl='-Wl,'
9247	  lt_prog_compiler_pic='-fPIC'
9248	  lt_prog_compiler_static='-static'
9249	  ;;
9250	*Portland\ Group*)
9251	  lt_prog_compiler_wl='-Wl,'
9252	  lt_prog_compiler_pic='-fpic'
9253	  lt_prog_compiler_static='-Bstatic'
9254	  ;;
9255	esac
9256	;;
9257      esac
9258      ;;
9259
9260    newsos6)
9261      lt_prog_compiler_pic='-KPIC'
9262      lt_prog_compiler_static='-Bstatic'
9263      ;;
9264
9265    *nto* | *qnx*)
9266      # QNX uses GNU C++, but need to define -shared option too, otherwise
9267      # it will coredump.
9268      lt_prog_compiler_pic='-fPIC -shared'
9269      ;;
9270
9271    osf3* | osf4* | osf5*)
9272      lt_prog_compiler_wl='-Wl,'
9273      # All OSF/1 code is PIC.
9274      lt_prog_compiler_static='-non_shared'
9275      ;;
9276
9277    rdos*)
9278      lt_prog_compiler_static='-non_shared'
9279      ;;
9280
9281    solaris*)
9282      lt_prog_compiler_pic='-KPIC'
9283      lt_prog_compiler_static='-Bstatic'
9284      case $cc_basename in
9285      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9286	lt_prog_compiler_wl='-Qoption ld ';;
9287      *)
9288	lt_prog_compiler_wl='-Wl,';;
9289      esac
9290      ;;
9291
9292    sunos4*)
9293      lt_prog_compiler_wl='-Qoption ld '
9294      lt_prog_compiler_pic='-PIC'
9295      lt_prog_compiler_static='-Bstatic'
9296      ;;
9297
9298    sysv4 | sysv4.2uw2* | sysv4.3*)
9299      lt_prog_compiler_wl='-Wl,'
9300      lt_prog_compiler_pic='-KPIC'
9301      lt_prog_compiler_static='-Bstatic'
9302      ;;
9303
9304    sysv4*MP*)
9305      if test -d /usr/nec; then
9306	lt_prog_compiler_pic='-Kconform_pic'
9307	lt_prog_compiler_static='-Bstatic'
9308      fi
9309      ;;
9310
9311    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9312      lt_prog_compiler_wl='-Wl,'
9313      lt_prog_compiler_pic='-KPIC'
9314      lt_prog_compiler_static='-Bstatic'
9315      ;;
9316
9317    unicos*)
9318      lt_prog_compiler_wl='-Wl,'
9319      lt_prog_compiler_can_build_shared=no
9320      ;;
9321
9322    uts4*)
9323      lt_prog_compiler_pic='-pic'
9324      lt_prog_compiler_static='-Bstatic'
9325      ;;
9326
9327    *)
9328      lt_prog_compiler_can_build_shared=no
9329      ;;
9330    esac
9331  fi
9332
9333case $host_os in
9334  # For platforms that do not support PIC, -DPIC is meaningless:
9335  *djgpp*)
9336    lt_prog_compiler_pic=
9337    ;;
9338  *)
9339    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9340    ;;
9341esac
9342
9343{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9344printf %s "checking for $compiler option to produce PIC... " >&6; }
9345if test ${lt_cv_prog_compiler_pic+y}
9346then :
9347  printf %s "(cached) " >&6
9348else $as_nop
9349  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9350fi
9351{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9352printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9353lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9354
9355#
9356# Check to make sure the PIC flag actually works.
9357#
9358if test -n "$lt_prog_compiler_pic"; then
9359  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9360printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9361if test ${lt_cv_prog_compiler_pic_works+y}
9362then :
9363  printf %s "(cached) " >&6
9364else $as_nop
9365  lt_cv_prog_compiler_pic_works=no
9366   ac_outfile=conftest.$ac_objext
9367   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9368   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9369   # Insert the option either (1) after the last *FLAGS variable, or
9370   # (2) before a word containing "conftest.", or (3) at the end.
9371   # Note that $ac_compile itself does not contain backslashes and begins
9372   # with a dollar sign (not a hyphen), so the echo should work correctly.
9373   # The option is referenced via a variable to avoid confusing sed.
9374   lt_compile=`echo "$ac_compile" | $SED \
9375   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9376   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9377   -e 's:$: $lt_compiler_flag:'`
9378   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9379   (eval "$lt_compile" 2>conftest.err)
9380   ac_status=$?
9381   cat conftest.err >&5
9382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9383   if (exit $ac_status) && test -s "$ac_outfile"; then
9384     # The compiler can only warn and ignore the option if not recognized
9385     # So say no if there are warnings other than the usual output.
9386     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9387     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9388     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9389       lt_cv_prog_compiler_pic_works=yes
9390     fi
9391   fi
9392   $RM conftest*
9393
9394fi
9395{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9396printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9397
9398if test yes = "$lt_cv_prog_compiler_pic_works"; then
9399    case $lt_prog_compiler_pic in
9400     "" | " "*) ;;
9401     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9402     esac
9403else
9404    lt_prog_compiler_pic=
9405     lt_prog_compiler_can_build_shared=no
9406fi
9407
9408fi
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420#
9421# Check to make sure the static flag actually works.
9422#
9423wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9424{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9425printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9426if test ${lt_cv_prog_compiler_static_works+y}
9427then :
9428  printf %s "(cached) " >&6
9429else $as_nop
9430  lt_cv_prog_compiler_static_works=no
9431   save_LDFLAGS=$LDFLAGS
9432   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9433   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9434   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9435     # The linker can only warn and ignore the option if not recognized
9436     # So say no if there are warnings
9437     if test -s conftest.err; then
9438       # Append any errors to the config.log.
9439       cat conftest.err 1>&5
9440       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9441       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9442       if diff conftest.exp conftest.er2 >/dev/null; then
9443         lt_cv_prog_compiler_static_works=yes
9444       fi
9445     else
9446       lt_cv_prog_compiler_static_works=yes
9447     fi
9448   fi
9449   $RM -r conftest*
9450   LDFLAGS=$save_LDFLAGS
9451
9452fi
9453{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9454printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9455
9456if test yes = "$lt_cv_prog_compiler_static_works"; then
9457    :
9458else
9459    lt_prog_compiler_static=
9460fi
9461
9462
9463
9464
9465
9466
9467
9468  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9469printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9470if test ${lt_cv_prog_compiler_c_o+y}
9471then :
9472  printf %s "(cached) " >&6
9473else $as_nop
9474  lt_cv_prog_compiler_c_o=no
9475   $RM -r conftest 2>/dev/null
9476   mkdir conftest
9477   cd conftest
9478   mkdir out
9479   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9480
9481   lt_compiler_flag="-o out/conftest2.$ac_objext"
9482   # Insert the option either (1) after the last *FLAGS variable, or
9483   # (2) before a word containing "conftest.", or (3) at the end.
9484   # Note that $ac_compile itself does not contain backslashes and begins
9485   # with a dollar sign (not a hyphen), so the echo should work correctly.
9486   lt_compile=`echo "$ac_compile" | $SED \
9487   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9488   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9489   -e 's:$: $lt_compiler_flag:'`
9490   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9491   (eval "$lt_compile" 2>out/conftest.err)
9492   ac_status=$?
9493   cat out/conftest.err >&5
9494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9495   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9496   then
9497     # The compiler can only warn and ignore the option if not recognized
9498     # So say no if there are warnings
9499     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9500     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9501     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9502       lt_cv_prog_compiler_c_o=yes
9503     fi
9504   fi
9505   chmod u+w . 2>&5
9506   $RM conftest*
9507   # SGI C++ compiler will create directory out/ii_files/ for
9508   # template instantiation
9509   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9510   $RM out/* && rmdir out
9511   cd ..
9512   $RM -r conftest
9513   $RM conftest*
9514
9515fi
9516{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9517printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9518
9519
9520
9521
9522
9523
9524  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9525printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9526if test ${lt_cv_prog_compiler_c_o+y}
9527then :
9528  printf %s "(cached) " >&6
9529else $as_nop
9530  lt_cv_prog_compiler_c_o=no
9531   $RM -r conftest 2>/dev/null
9532   mkdir conftest
9533   cd conftest
9534   mkdir out
9535   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9536
9537   lt_compiler_flag="-o out/conftest2.$ac_objext"
9538   # Insert the option either (1) after the last *FLAGS variable, or
9539   # (2) before a word containing "conftest.", or (3) at the end.
9540   # Note that $ac_compile itself does not contain backslashes and begins
9541   # with a dollar sign (not a hyphen), so the echo should work correctly.
9542   lt_compile=`echo "$ac_compile" | $SED \
9543   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9544   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9545   -e 's:$: $lt_compiler_flag:'`
9546   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9547   (eval "$lt_compile" 2>out/conftest.err)
9548   ac_status=$?
9549   cat out/conftest.err >&5
9550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9551   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9552   then
9553     # The compiler can only warn and ignore the option if not recognized
9554     # So say no if there are warnings
9555     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9556     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9557     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9558       lt_cv_prog_compiler_c_o=yes
9559     fi
9560   fi
9561   chmod u+w . 2>&5
9562   $RM conftest*
9563   # SGI C++ compiler will create directory out/ii_files/ for
9564   # template instantiation
9565   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9566   $RM out/* && rmdir out
9567   cd ..
9568   $RM -r conftest
9569   $RM conftest*
9570
9571fi
9572{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9573printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9574
9575
9576
9577
9578hard_links=nottested
9579if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9580  # do not overwrite the value of need_locks provided by the user
9581  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9582printf %s "checking if we can lock with hard links... " >&6; }
9583  hard_links=yes
9584  $RM conftest*
9585  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9586  touch conftest.a
9587  ln conftest.a conftest.b 2>&5 || hard_links=no
9588  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9589  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9590printf "%s\n" "$hard_links" >&6; }
9591  if test no = "$hard_links"; then
9592    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9593printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9594    need_locks=warn
9595  fi
9596else
9597  need_locks=no
9598fi
9599
9600
9601
9602
9603
9604
9605  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9606printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9607
9608  runpath_var=
9609  allow_undefined_flag=
9610  always_export_symbols=no
9611  archive_cmds=
9612  archive_expsym_cmds=
9613  compiler_needs_object=no
9614  enable_shared_with_static_runtimes=no
9615  export_dynamic_flag_spec=
9616  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9617  hardcode_automatic=no
9618  hardcode_direct=no
9619  hardcode_direct_absolute=no
9620  hardcode_libdir_flag_spec=
9621  hardcode_libdir_separator=
9622  hardcode_minus_L=no
9623  hardcode_shlibpath_var=unsupported
9624  inherit_rpath=no
9625  link_all_deplibs=unknown
9626  module_cmds=
9627  module_expsym_cmds=
9628  old_archive_from_new_cmds=
9629  old_archive_from_expsyms_cmds=
9630  thread_safe_flag_spec=
9631  whole_archive_flag_spec=
9632  # include_expsyms should be a list of space-separated symbols to be *always*
9633  # included in the symbol list
9634  include_expsyms=
9635  # exclude_expsyms can be an extended regexp of symbols to exclude
9636  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9637  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9638  # as well as any symbol that contains 'd'.
9639  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9640  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9641  # platforms (ab)use it in PIC code, but their linkers get confused if
9642  # the symbol is explicitly referenced.  Since portable code cannot
9643  # rely on this symbol name, it's probably fine to never include it in
9644  # preloaded symbol tables.
9645  # Exclude shared library initialization/finalization symbols.
9646  extract_expsyms_cmds=
9647
9648  case $host_os in
9649  cygwin* | mingw* | pw32* | cegcc*)
9650    # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
9651    # When not using gcc, we currently assume that we are using
9652    # Microsoft Visual C++ or Intel C++ Compiler.
9653    if test yes != "$GCC"; then
9654      with_gnu_ld=no
9655    fi
9656    ;;
9657  interix*)
9658    # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
9659    with_gnu_ld=yes
9660    ;;
9661  openbsd* | bitrig*)
9662    with_gnu_ld=no
9663    ;;
9664  esac
9665
9666  ld_shlibs=yes
9667
9668  # On some targets, GNU ld is compatible enough with the native linker
9669  # that we're better off using the native interface for both.
9670  lt_use_gnu_ld_interface=no
9671  if test yes = "$with_gnu_ld"; then
9672    case $host_os in
9673      aix*)
9674	# The AIX port of GNU ld has always aspired to compatibility
9675	# with the native linker.  However, as the warning in the GNU ld
9676	# block says, versions before 2.19.5* couldn't really create working
9677	# shared libraries, regardless of the interface used.
9678	case `$LD -v 2>&1` in
9679	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9680	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9681	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9682	  *)
9683	    lt_use_gnu_ld_interface=yes
9684	    ;;
9685	esac
9686	;;
9687      *)
9688	lt_use_gnu_ld_interface=yes
9689	;;
9690    esac
9691  fi
9692
9693  if test yes = "$lt_use_gnu_ld_interface"; then
9694    # If archive_cmds runs LD, not CC, wlarc should be empty
9695    wlarc='$wl'
9696
9697    # Set some defaults for GNU ld with shared library support. These
9698    # are reset later if shared libraries are not supported. Putting them
9699    # here allows them to be overridden if necessary.
9700    runpath_var=LD_RUN_PATH
9701    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9702    export_dynamic_flag_spec='$wl--export-dynamic'
9703    # ancient GNU ld didn't support --whole-archive et. al.
9704    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9705      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9706    else
9707      whole_archive_flag_spec=
9708    fi
9709    supports_anon_versioning=no
9710    case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
9711      *GNU\ gold*) supports_anon_versioning=yes ;;
9712      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9713      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9714      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9715      *\ 2.11.*) ;; # other 2.11 versions
9716      *) supports_anon_versioning=yes ;;
9717    esac
9718
9719    # See if GNU ld supports shared libraries.
9720    case $host_os in
9721    aix[3-9]*)
9722      # On AIX/PPC, the GNU linker is very broken
9723      if test ia64 != "$host_cpu"; then
9724	ld_shlibs=no
9725	cat <<_LT_EOF 1>&2
9726
9727*** Warning: the GNU linker, at least up to release 2.19, is reported
9728*** to be unable to reliably create shared libraries on AIX.
9729*** Therefore, libtool is disabling shared libraries support.  If you
9730*** really care for shared libraries, you may want to install binutils
9731*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9732*** You will then need to restart the configuration process.
9733
9734_LT_EOF
9735      fi
9736      ;;
9737
9738    amigaos*)
9739      case $host_cpu in
9740      powerpc)
9741            # see comment about AmigaOS4 .so support
9742            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9743            archive_expsym_cmds=''
9744        ;;
9745      m68k)
9746            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)'
9747            hardcode_libdir_flag_spec='-L$libdir'
9748            hardcode_minus_L=yes
9749        ;;
9750      esac
9751      ;;
9752
9753    beos*)
9754      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9755	allow_undefined_flag=unsupported
9756	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9757	# support --undefined.  This deserves some investigation.  FIXME
9758	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9759      else
9760	ld_shlibs=no
9761      fi
9762      ;;
9763
9764    cygwin* | mingw* | pw32* | cegcc*)
9765      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9766      # as there is no search path for DLLs.
9767      hardcode_libdir_flag_spec='-L$libdir'
9768      export_dynamic_flag_spec='$wl--export-all-symbols'
9769      allow_undefined_flag=unsupported
9770      always_export_symbols=no
9771      enable_shared_with_static_runtimes=yes
9772      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'
9773      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9774
9775      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9776        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9777	# If the export-symbols file already is a .def file, use it as
9778	# is; otherwise, prepend EXPORTS...
9779	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9780          cp $export_symbols $output_objdir/$soname.def;
9781        else
9782          echo EXPORTS > $output_objdir/$soname.def;
9783          cat $export_symbols >> $output_objdir/$soname.def;
9784        fi~
9785        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9786      else
9787	ld_shlibs=no
9788      fi
9789      ;;
9790
9791    haiku*)
9792      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9793      link_all_deplibs=yes
9794      ;;
9795
9796    os2*)
9797      hardcode_libdir_flag_spec='-L$libdir'
9798      hardcode_minus_L=yes
9799      allow_undefined_flag=unsupported
9800      shrext_cmds=.dll
9801      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9802	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9803	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9804	$ECHO EXPORTS >> $output_objdir/$libname.def~
9805	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9806	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9807	emximp -o $lib $output_objdir/$libname.def'
9808      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9809	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9810	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9811	$ECHO EXPORTS >> $output_objdir/$libname.def~
9812	prefix_cmds="$SED"~
9813	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9814	  prefix_cmds="$prefix_cmds -e 1d";
9815	fi~
9816	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9817	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9818	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9819	emximp -o $lib $output_objdir/$libname.def'
9820      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9821      enable_shared_with_static_runtimes=yes
9822      file_list_spec='@'
9823      ;;
9824
9825    interix[3-9]*)
9826      hardcode_direct=no
9827      hardcode_shlibpath_var=no
9828      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9829      export_dynamic_flag_spec='$wl-E'
9830      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9831      # Instead, shared libraries are loaded at an image base (0x10000000 by
9832      # default) and relocated if they conflict, which is a slow very memory
9833      # consuming and fragmenting process.  To avoid this, we pick a random,
9834      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9835      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9836      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9837      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'
9838      ;;
9839
9840    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9841      tmp_diet=no
9842      if test linux-dietlibc = "$host_os"; then
9843	case $cc_basename in
9844	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9845	esac
9846      fi
9847      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9848	 && test no = "$tmp_diet"
9849      then
9850	tmp_addflag=' $pic_flag'
9851	tmp_sharedflag='-shared'
9852	case $cc_basename,$host_cpu in
9853        pgcc*)				# Portland Group C compiler
9854	  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'
9855	  tmp_addflag=' $pic_flag'
9856	  ;;
9857	pgf77* | pgf90* | pgf95* | pgfortran*)
9858					# Portland Group f77 and f90 compilers
9859	  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'
9860	  tmp_addflag=' $pic_flag -Mnomain' ;;
9861	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9862	  tmp_addflag=' -i_dynamic' ;;
9863	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9864	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9865	ifc* | ifort*)			# Intel Fortran compiler
9866	  tmp_addflag=' -nofor_main' ;;
9867	lf95*)				# Lahey Fortran 8.1
9868	  whole_archive_flag_spec=
9869	  tmp_sharedflag='--shared' ;;
9870        nagfor*)                        # NAGFOR 5.3
9871          tmp_sharedflag='-Wl,-shared' ;;
9872	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9873	  tmp_sharedflag='-qmkshrobj'
9874	  tmp_addflag= ;;
9875	nvcc*)	# Cuda Compiler Driver 2.2
9876	  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'
9877	  compiler_needs_object=yes
9878	  ;;
9879	esac
9880	case `$CC -V 2>&1 | $SED 5q` in
9881	*Sun\ C*)			# Sun C 5.9
9882	  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'
9883	  compiler_needs_object=yes
9884	  tmp_sharedflag='-G' ;;
9885	*Sun\ F*)			# Sun Fortran 8.3
9886	  tmp_sharedflag='-G' ;;
9887	esac
9888	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9889
9890        if test yes = "$supports_anon_versioning"; then
9891          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9892            cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9893            echo "local: *; };" >> $output_objdir/$libname.ver~
9894            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9895        fi
9896
9897	case $cc_basename in
9898	tcc*)
9899	  export_dynamic_flag_spec='-rdynamic'
9900	  ;;
9901	xlf* | bgf* | bgxlf* | mpixlf*)
9902	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9903	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9904	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9905	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9906	  if test yes = "$supports_anon_versioning"; then
9907	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9908              cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9909              echo "local: *; };" >> $output_objdir/$libname.ver~
9910              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9911	  fi
9912	  ;;
9913	esac
9914      else
9915        ld_shlibs=no
9916      fi
9917      ;;
9918
9919    netbsd*)
9920      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9921	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9922	wlarc=
9923      else
9924	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9925	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9926      fi
9927      ;;
9928
9929    solaris*)
9930      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9931	ld_shlibs=no
9932	cat <<_LT_EOF 1>&2
9933
9934*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9935*** create shared libraries on Solaris systems.  Therefore, libtool
9936*** is disabling shared libraries support.  We urge you to upgrade GNU
9937*** binutils to release 2.9.1 or newer.  Another option is to modify
9938*** your PATH or compiler configuration so that the native linker is
9939*** used, and then restart.
9940
9941_LT_EOF
9942      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9943	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9944	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9945      else
9946	ld_shlibs=no
9947      fi
9948      ;;
9949
9950    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9951      case `$LD -v 2>&1` in
9952        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9953	ld_shlibs=no
9954	cat <<_LT_EOF 1>&2
9955
9956*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9957*** reliably create shared libraries on SCO systems.  Therefore, libtool
9958*** is disabling shared libraries support.  We urge you to upgrade GNU
9959*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9960*** your PATH or compiler configuration so that the native linker is
9961*** used, and then restart.
9962
9963_LT_EOF
9964	;;
9965	*)
9966	  # For security reasons, it is highly recommended that you always
9967	  # use absolute paths for naming shared libraries, and exclude the
9968	  # DT_RUNPATH tag from executables and libraries.  But doing so
9969	  # requires that you compile everything twice, which is a pain.
9970	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9971	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9972	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9973	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9974	  else
9975	    ld_shlibs=no
9976	  fi
9977	;;
9978      esac
9979      ;;
9980
9981    sunos4*)
9982      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9983      wlarc=
9984      hardcode_direct=yes
9985      hardcode_shlibpath_var=no
9986      ;;
9987
9988    *)
9989      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9990	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9991	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9992      else
9993	ld_shlibs=no
9994      fi
9995      ;;
9996    esac
9997
9998    if test no = "$ld_shlibs"; then
9999      runpath_var=
10000      hardcode_libdir_flag_spec=
10001      export_dynamic_flag_spec=
10002      whole_archive_flag_spec=
10003    fi
10004  else
10005    # PORTME fill in a description of your system's linker (not GNU ld)
10006    case $host_os in
10007    aix3*)
10008      allow_undefined_flag=unsupported
10009      always_export_symbols=yes
10010      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'
10011      # Note: this linker hardcodes the directories in LIBPATH if there
10012      # are no directories specified by -L.
10013      hardcode_minus_L=yes
10014      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10015	# Neither direct hardcoding nor static linking is supported with a
10016	# broken collect2.
10017	hardcode_direct=unsupported
10018      fi
10019      ;;
10020
10021    aix[4-9]*)
10022      if test ia64 = "$host_cpu"; then
10023	# On IA64, the linker does run time linking by default, so we don't
10024	# have to do anything special.
10025	aix_use_runtimelinking=no
10026	exp_sym_flag='-Bexport'
10027	no_entry_flag=
10028      else
10029	# If we're using GNU nm, then we don't want the "-C" option.
10030	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
10031	# Without the "-l" option, or with the "-B" option, AIX nm treats
10032	# weak defined symbols like other global defined symbols, whereas
10033	# GNU nm marks them as "W".
10034	# While the 'weak' keyword is ignored in the Export File, we need
10035	# it in the Import File for the 'aix-soname' feature, so we have
10036	# to replace the "-B" option with "-P" for AIX nm.
10037	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10038	  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'
10039	else
10040	  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'
10041	fi
10042	aix_use_runtimelinking=no
10043
10044	# Test if we are trying to use run time linking or normal
10045	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10046	# have runtime linking enabled, and use it for executables.
10047	# For shared libraries, we enable/disable runtime linking
10048	# depending on the kind of the shared library created -
10049	# when "with_aix_soname,aix_use_runtimelinking" is:
10050	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
10051	# "aix,yes"  lib.so          shared, rtl:yes, for executables
10052	#            lib.a           static archive
10053	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
10054	#            lib.a(lib.so.V) shared, rtl:no,  for executables
10055	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10056	#            lib.a(lib.so.V) shared, rtl:no
10057	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
10058	#            lib.a           static archive
10059	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10060	  for ld_flag in $LDFLAGS; do
10061	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10062	    aix_use_runtimelinking=yes
10063	    break
10064	  fi
10065	  done
10066	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10067	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
10068	    # so we don't have lib.a shared libs to link our executables.
10069	    # We have to force runtime linking in this case.
10070	    aix_use_runtimelinking=yes
10071	    LDFLAGS="$LDFLAGS -Wl,-brtl"
10072	  fi
10073	  ;;
10074	esac
10075
10076	exp_sym_flag='-bexport'
10077	no_entry_flag='-bnoentry'
10078      fi
10079
10080      # When large executables or shared objects are built, AIX ld can
10081      # have problems creating the table of contents.  If linking a library
10082      # or program results in "error TOC overflow" add -mminimal-toc to
10083      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10084      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10085
10086      archive_cmds=''
10087      hardcode_direct=yes
10088      hardcode_direct_absolute=yes
10089      hardcode_libdir_separator=':'
10090      link_all_deplibs=yes
10091      file_list_spec='$wl-f,'
10092      case $with_aix_soname,$aix_use_runtimelinking in
10093      aix,*) ;; # traditional, no import file
10094      svr4,* | *,yes) # use import file
10095	# The Import File defines what to hardcode.
10096	hardcode_direct=no
10097	hardcode_direct_absolute=no
10098	;;
10099      esac
10100
10101      if test yes = "$GCC"; then
10102	case $host_os in aix4.[012]|aix4.[012].*)
10103	# We only want to do this on AIX 4.2 and lower, the check
10104	# below for broken collect2 doesn't work under 4.3+
10105	  collect2name=`$CC -print-prog-name=collect2`
10106	  if test -f "$collect2name" &&
10107	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10108	  then
10109	  # We have reworked collect2
10110	  :
10111	  else
10112	  # We have old collect2
10113	  hardcode_direct=unsupported
10114	  # It fails to find uninstalled libraries when the uninstalled
10115	  # path is not listed in the libpath.  Setting hardcode_minus_L
10116	  # to unsupported forces relinking
10117	  hardcode_minus_L=yes
10118	  hardcode_libdir_flag_spec='-L$libdir'
10119	  hardcode_libdir_separator=
10120	  fi
10121	  ;;
10122	esac
10123	shared_flag='-shared'
10124	if test yes = "$aix_use_runtimelinking"; then
10125	  shared_flag="$shared_flag "'$wl-G'
10126	fi
10127	# Need to ensure runtime linking is disabled for the traditional
10128	# shared library, or the linker may eventually find shared libraries
10129	# /with/ Import File - we do not want to mix them.
10130	shared_flag_aix='-shared'
10131	shared_flag_svr4='-shared $wl-G'
10132      else
10133	# not using gcc
10134	if test ia64 = "$host_cpu"; then
10135	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10136	# chokes on -Wl,-G. The following line is correct:
10137	  shared_flag='-G'
10138	else
10139	  if test yes = "$aix_use_runtimelinking"; then
10140	    shared_flag='$wl-G'
10141	  else
10142	    shared_flag='$wl-bM:SRE'
10143	  fi
10144	  shared_flag_aix='$wl-bM:SRE'
10145	  shared_flag_svr4='$wl-G'
10146	fi
10147      fi
10148
10149      export_dynamic_flag_spec='$wl-bexpall'
10150      # It seems that -bexpall does not export symbols beginning with
10151      # underscore (_), so it is better to generate a list of symbols to export.
10152      always_export_symbols=yes
10153      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10154	# Warning - without using the other runtime loading flags (-brtl),
10155	# -berok will link without error, but may produce a broken library.
10156	allow_undefined_flag='-berok'
10157        # Determine the default libpath from the value encoded in an
10158        # empty executable.
10159        if test set = "${lt_cv_aix_libpath+set}"; then
10160  aix_libpath=$lt_cv_aix_libpath
10161else
10162  if test ${lt_cv_aix_libpath_+y}
10163then :
10164  printf %s "(cached) " >&6
10165else $as_nop
10166  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10167/* end confdefs.h.  */
10168
10169int
10170main (void)
10171{
10172
10173  ;
10174  return 0;
10175}
10176_ACEOF
10177if ac_fn_c_try_link "$LINENO"
10178then :
10179
10180  lt_aix_libpath_sed='
10181      /Import File Strings/,/^$/ {
10182	  /^0/ {
10183	      s/^0  *\([^ ]*\) *$/\1/
10184	      p
10185	  }
10186      }'
10187  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10188  # Check for a 64-bit object if we didn't find anything.
10189  if test -z "$lt_cv_aix_libpath_"; then
10190    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10191  fi
10192fi
10193rm -f core conftest.err conftest.$ac_objext conftest.beam \
10194    conftest$ac_exeext conftest.$ac_ext
10195  if test -z "$lt_cv_aix_libpath_"; then
10196    lt_cv_aix_libpath_=/usr/lib:/lib
10197  fi
10198
10199fi
10200
10201  aix_libpath=$lt_cv_aix_libpath_
10202fi
10203
10204        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10205        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
10206      else
10207	if test ia64 = "$host_cpu"; then
10208	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10209	  allow_undefined_flag="-z nodefs"
10210	  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"
10211	else
10212	 # Determine the default libpath from the value encoded in an
10213	 # empty executable.
10214	 if test set = "${lt_cv_aix_libpath+set}"; then
10215  aix_libpath=$lt_cv_aix_libpath
10216else
10217  if test ${lt_cv_aix_libpath_+y}
10218then :
10219  printf %s "(cached) " >&6
10220else $as_nop
10221  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10222/* end confdefs.h.  */
10223
10224int
10225main (void)
10226{
10227
10228  ;
10229  return 0;
10230}
10231_ACEOF
10232if ac_fn_c_try_link "$LINENO"
10233then :
10234
10235  lt_aix_libpath_sed='
10236      /Import File Strings/,/^$/ {
10237	  /^0/ {
10238	      s/^0  *\([^ ]*\) *$/\1/
10239	      p
10240	  }
10241      }'
10242  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10243  # Check for a 64-bit object if we didn't find anything.
10244  if test -z "$lt_cv_aix_libpath_"; then
10245    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10246  fi
10247fi
10248rm -f core conftest.err conftest.$ac_objext conftest.beam \
10249    conftest$ac_exeext conftest.$ac_ext
10250  if test -z "$lt_cv_aix_libpath_"; then
10251    lt_cv_aix_libpath_=/usr/lib:/lib
10252  fi
10253
10254fi
10255
10256  aix_libpath=$lt_cv_aix_libpath_
10257fi
10258
10259	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10260	  # Warning - without using the other run time loading flags,
10261	  # -berok will link without error, but may produce a broken library.
10262	  no_undefined_flag=' $wl-bernotok'
10263	  allow_undefined_flag=' $wl-berok'
10264	  if test yes = "$with_gnu_ld"; then
10265	    # We only use this code for GNU lds that support --whole-archive.
10266	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10267	  else
10268	    # Exported symbols can be pulled into shared objects from archives
10269	    whole_archive_flag_spec='$convenience'
10270	  fi
10271	  archive_cmds_need_lc=yes
10272	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10273	  # -brtl affects multiple linker settings, -berok does not and is overridden later
10274	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10275	  if test svr4 != "$with_aix_soname"; then
10276	    # This is similar to how AIX traditionally builds its shared libraries.
10277	    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'
10278	  fi
10279	  if test aix != "$with_aix_soname"; then
10280	    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'
10281	  else
10282	    # used by -dlpreopen to get the symbols
10283	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10284	  fi
10285	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10286	fi
10287      fi
10288      ;;
10289
10290    amigaos*)
10291      case $host_cpu in
10292      powerpc)
10293            # see comment about AmigaOS4 .so support
10294            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10295            archive_expsym_cmds=''
10296        ;;
10297      m68k)
10298            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)'
10299            hardcode_libdir_flag_spec='-L$libdir'
10300            hardcode_minus_L=yes
10301        ;;
10302      esac
10303      ;;
10304
10305    bsdi[45]*)
10306      export_dynamic_flag_spec=-rdynamic
10307      ;;
10308
10309    cygwin* | mingw* | pw32* | cegcc*)
10310      # When not using gcc, we currently assume that we are using
10311      # Microsoft Visual C++ or Intel C++ Compiler.
10312      # hardcode_libdir_flag_spec is actually meaningless, as there is
10313      # no search path for DLLs.
10314      case $cc_basename in
10315      cl* | icl*)
10316	# Native MSVC or ICC
10317	hardcode_libdir_flag_spec=' '
10318	allow_undefined_flag=unsupported
10319	always_export_symbols=yes
10320	file_list_spec='@'
10321	# Tell ltmain to make .lib files, not .a files.
10322	libext=lib
10323	# Tell ltmain to make .dll files, not .so files.
10324	shrext_cmds=.dll
10325	# FIXME: Setting linknames here is a bad hack.
10326	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10327	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10328            cp "$export_symbols" "$output_objdir/$soname.def";
10329            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10330          else
10331            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10332          fi~
10333          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10334          linknames='
10335	# The linker will not automatically build a static lib if we build a DLL.
10336	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10337	enable_shared_with_static_runtimes=yes
10338	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10339	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10340	# Don't use ranlib
10341	old_postinstall_cmds='chmod 644 $oldlib'
10342	postlink_cmds='lt_outputfile="@OUTPUT@"~
10343          lt_tool_outputfile="@TOOL_OUTPUT@"~
10344          case $lt_outputfile in
10345            *.exe|*.EXE) ;;
10346            *)
10347              lt_outputfile=$lt_outputfile.exe
10348              lt_tool_outputfile=$lt_tool_outputfile.exe
10349              ;;
10350          esac~
10351          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10352            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10353            $RM "$lt_outputfile.manifest";
10354          fi'
10355	;;
10356      *)
10357	# Assume MSVC and ICC wrapper
10358	hardcode_libdir_flag_spec=' '
10359	allow_undefined_flag=unsupported
10360	# Tell ltmain to make .lib files, not .a files.
10361	libext=lib
10362	# Tell ltmain to make .dll files, not .so files.
10363	shrext_cmds=.dll
10364	# FIXME: Setting linknames here is a bad hack.
10365	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10366	# The linker will automatically build a .lib file if we build a DLL.
10367	old_archive_from_new_cmds='true'
10368	# FIXME: Should let the user specify the lib program.
10369	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10370	enable_shared_with_static_runtimes=yes
10371	;;
10372      esac
10373      ;;
10374
10375    darwin* | rhapsody*)
10376
10377
10378  archive_cmds_need_lc=no
10379  hardcode_direct=no
10380  hardcode_automatic=yes
10381  hardcode_shlibpath_var=unsupported
10382  if test yes = "$lt_cv_ld_force_load"; then
10383    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\"`'
10384
10385  else
10386    whole_archive_flag_spec=''
10387  fi
10388  link_all_deplibs=yes
10389  allow_undefined_flag=$_lt_dar_allow_undefined
10390  case $cc_basename in
10391     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10392     *) _lt_dar_can_shared=$GCC ;;
10393  esac
10394  if test yes = "$_lt_dar_can_shared"; then
10395    output_verbose_link_cmd=func_echo_all
10396    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10397    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10398    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"
10399    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"
10400
10401  else
10402  ld_shlibs=no
10403  fi
10404
10405      ;;
10406
10407    dgux*)
10408      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10409      hardcode_libdir_flag_spec='-L$libdir'
10410      hardcode_shlibpath_var=no
10411      ;;
10412
10413    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10414    # support.  Future versions do this automatically, but an explicit c++rt0.o
10415    # does not break anything, and helps significantly (at the cost of a little
10416    # extra space).
10417    freebsd2.2*)
10418      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10419      hardcode_libdir_flag_spec='-R$libdir'
10420      hardcode_direct=yes
10421      hardcode_shlibpath_var=no
10422      ;;
10423
10424    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10425    freebsd2.*)
10426      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10427      hardcode_direct=yes
10428      hardcode_minus_L=yes
10429      hardcode_shlibpath_var=no
10430      ;;
10431
10432    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10433    freebsd* | dragonfly* | midnightbsd*)
10434      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10435      hardcode_libdir_flag_spec='-R$libdir'
10436      hardcode_direct=yes
10437      hardcode_shlibpath_var=no
10438      ;;
10439
10440    hpux9*)
10441      if test yes = "$GCC"; then
10442	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'
10443      else
10444	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'
10445      fi
10446      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10447      hardcode_libdir_separator=:
10448      hardcode_direct=yes
10449
10450      # hardcode_minus_L: Not really in the search PATH,
10451      # but as the default location of the library.
10452      hardcode_minus_L=yes
10453      export_dynamic_flag_spec='$wl-E'
10454      ;;
10455
10456    hpux10*)
10457      if test yes,no = "$GCC,$with_gnu_ld"; then
10458	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10459      else
10460	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10461      fi
10462      if test no = "$with_gnu_ld"; then
10463	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10464	hardcode_libdir_separator=:
10465	hardcode_direct=yes
10466	hardcode_direct_absolute=yes
10467	export_dynamic_flag_spec='$wl-E'
10468	# hardcode_minus_L: Not really in the search PATH,
10469	# but as the default location of the library.
10470	hardcode_minus_L=yes
10471      fi
10472      ;;
10473
10474    hpux11*)
10475      if test yes,no = "$GCC,$with_gnu_ld"; then
10476	case $host_cpu in
10477	hppa*64*)
10478	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10479	  ;;
10480	ia64*)
10481	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10482	  ;;
10483	*)
10484	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10485	  ;;
10486	esac
10487      else
10488	case $host_cpu in
10489	hppa*64*)
10490	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10491	  ;;
10492	ia64*)
10493	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10494	  ;;
10495	*)
10496
10497	  # Older versions of the 11.00 compiler do not understand -b yet
10498	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10499	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10500printf %s "checking if $CC understands -b... " >&6; }
10501if test ${lt_cv_prog_compiler__b+y}
10502then :
10503  printf %s "(cached) " >&6
10504else $as_nop
10505  lt_cv_prog_compiler__b=no
10506   save_LDFLAGS=$LDFLAGS
10507   LDFLAGS="$LDFLAGS -b"
10508   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10509   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10510     # The linker can only warn and ignore the option if not recognized
10511     # So say no if there are warnings
10512     if test -s conftest.err; then
10513       # Append any errors to the config.log.
10514       cat conftest.err 1>&5
10515       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10516       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10517       if diff conftest.exp conftest.er2 >/dev/null; then
10518         lt_cv_prog_compiler__b=yes
10519       fi
10520     else
10521       lt_cv_prog_compiler__b=yes
10522     fi
10523   fi
10524   $RM -r conftest*
10525   LDFLAGS=$save_LDFLAGS
10526
10527fi
10528{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10529printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10530
10531if test yes = "$lt_cv_prog_compiler__b"; then
10532    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10533else
10534    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10535fi
10536
10537	  ;;
10538	esac
10539      fi
10540      if test no = "$with_gnu_ld"; then
10541	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10542	hardcode_libdir_separator=:
10543
10544	case $host_cpu in
10545	hppa*64*|ia64*)
10546	  hardcode_direct=no
10547	  hardcode_shlibpath_var=no
10548	  ;;
10549	*)
10550	  hardcode_direct=yes
10551	  hardcode_direct_absolute=yes
10552	  export_dynamic_flag_spec='$wl-E'
10553
10554	  # hardcode_minus_L: Not really in the search PATH,
10555	  # but as the default location of the library.
10556	  hardcode_minus_L=yes
10557	  ;;
10558	esac
10559      fi
10560      ;;
10561
10562    irix5* | irix6* | nonstopux*)
10563      if test yes = "$GCC"; then
10564	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'
10565	# Try to use the -exported_symbol ld option, if it does not
10566	# work, assume that -exports_file does not work either and
10567	# implicitly export all symbols.
10568	# This should be the same for all languages, so no per-tag cache variable.
10569	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10570printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10571if test ${lt_cv_irix_exported_symbol+y}
10572then :
10573  printf %s "(cached) " >&6
10574else $as_nop
10575  save_LDFLAGS=$LDFLAGS
10576	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10577	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10578/* end confdefs.h.  */
10579int foo (void) { return 0; }
10580_ACEOF
10581if ac_fn_c_try_link "$LINENO"
10582then :
10583  lt_cv_irix_exported_symbol=yes
10584else $as_nop
10585  lt_cv_irix_exported_symbol=no
10586fi
10587rm -f core conftest.err conftest.$ac_objext conftest.beam \
10588    conftest$ac_exeext conftest.$ac_ext
10589           LDFLAGS=$save_LDFLAGS
10590fi
10591{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10592printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
10593	if test yes = "$lt_cv_irix_exported_symbol"; then
10594          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'
10595	fi
10596      else
10597	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'
10598	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'
10599      fi
10600      archive_cmds_need_lc='no'
10601      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10602      hardcode_libdir_separator=:
10603      inherit_rpath=yes
10604      link_all_deplibs=yes
10605      ;;
10606
10607    linux*)
10608      case $cc_basename in
10609      tcc*)
10610	# Fabrice Bellard et al's Tiny C Compiler
10611	ld_shlibs=yes
10612	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10613	;;
10614      esac
10615      ;;
10616
10617    netbsd*)
10618      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10619	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10620      else
10621	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10622      fi
10623      hardcode_libdir_flag_spec='-R$libdir'
10624      hardcode_direct=yes
10625      hardcode_shlibpath_var=no
10626      ;;
10627
10628    newsos6)
10629      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10630      hardcode_direct=yes
10631      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10632      hardcode_libdir_separator=:
10633      hardcode_shlibpath_var=no
10634      ;;
10635
10636    *nto* | *qnx*)
10637      ;;
10638
10639    openbsd* | bitrig*)
10640      if test -f /usr/libexec/ld.so; then
10641	hardcode_direct=yes
10642	hardcode_shlibpath_var=no
10643	hardcode_direct_absolute=yes
10644	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10645	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10646	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10647	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10648	  export_dynamic_flag_spec='$wl-E'
10649	else
10650	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10651	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10652	fi
10653      else
10654	ld_shlibs=no
10655      fi
10656      ;;
10657
10658    os2*)
10659      hardcode_libdir_flag_spec='-L$libdir'
10660      hardcode_minus_L=yes
10661      allow_undefined_flag=unsupported
10662      shrext_cmds=.dll
10663      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10664	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10665	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10666	$ECHO EXPORTS >> $output_objdir/$libname.def~
10667	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10668	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10669	emximp -o $lib $output_objdir/$libname.def'
10670      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10671	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10672	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10673	$ECHO EXPORTS >> $output_objdir/$libname.def~
10674	prefix_cmds="$SED"~
10675	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10676	  prefix_cmds="$prefix_cmds -e 1d";
10677	fi~
10678	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10679	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10680	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10681	emximp -o $lib $output_objdir/$libname.def'
10682      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10683      enable_shared_with_static_runtimes=yes
10684      file_list_spec='@'
10685      ;;
10686
10687    osf3*)
10688      if test yes = "$GCC"; then
10689	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10690	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'
10691      else
10692	allow_undefined_flag=' -expect_unresolved \*'
10693	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'
10694      fi
10695      archive_cmds_need_lc='no'
10696      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10697      hardcode_libdir_separator=:
10698      ;;
10699
10700    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10701      if test yes = "$GCC"; then
10702	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10703	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'
10704	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10705      else
10706	allow_undefined_flag=' -expect_unresolved \*'
10707	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'
10708	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~
10709          $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'
10710
10711	# Both c and cxx compiler support -rpath directly
10712	hardcode_libdir_flag_spec='-rpath $libdir'
10713      fi
10714      archive_cmds_need_lc='no'
10715      hardcode_libdir_separator=:
10716      ;;
10717
10718    solaris*)
10719      no_undefined_flag=' -z defs'
10720      if test yes = "$GCC"; then
10721	wlarc='$wl'
10722	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10723	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10724          $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'
10725      else
10726	case `$CC -V 2>&1` in
10727	*"Compilers 5.0"*)
10728	  wlarc=''
10729	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10730	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10731            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10732	  ;;
10733	*)
10734	  wlarc='$wl'
10735	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10736	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10737            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10738	  ;;
10739	esac
10740      fi
10741      hardcode_libdir_flag_spec='-R$libdir'
10742      hardcode_shlibpath_var=no
10743      case $host_os in
10744      solaris2.[0-5] | solaris2.[0-5].*) ;;
10745      *)
10746	# The compiler driver will combine and reorder linker options,
10747	# but understands '-z linker_flag'.  GCC discards it without '$wl',
10748	# but is careful enough not to reorder.
10749	# Supported since Solaris 2.6 (maybe 2.5.1?)
10750	if test yes = "$GCC"; then
10751	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10752	else
10753	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10754	fi
10755	;;
10756      esac
10757      link_all_deplibs=yes
10758      ;;
10759
10760    sunos4*)
10761      if test sequent = "$host_vendor"; then
10762	# Use $CC to link under sequent, because it throws in some extra .o
10763	# files that make .init and .fini sections work.
10764	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10765      else
10766	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10767      fi
10768      hardcode_libdir_flag_spec='-L$libdir'
10769      hardcode_direct=yes
10770      hardcode_minus_L=yes
10771      hardcode_shlibpath_var=no
10772      ;;
10773
10774    sysv4)
10775      case $host_vendor in
10776	sni)
10777	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10778	  hardcode_direct=yes # is this really true???
10779	;;
10780	siemens)
10781	  ## LD is ld it makes a PLAMLIB
10782	  ## CC just makes a GrossModule.
10783	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10784	  reload_cmds='$CC -r -o $output$reload_objs'
10785	  hardcode_direct=no
10786        ;;
10787	motorola)
10788	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10789	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10790	;;
10791      esac
10792      runpath_var='LD_RUN_PATH'
10793      hardcode_shlibpath_var=no
10794      ;;
10795
10796    sysv4.3*)
10797      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10798      hardcode_shlibpath_var=no
10799      export_dynamic_flag_spec='-Bexport'
10800      ;;
10801
10802    sysv4*MP*)
10803      if test -d /usr/nec; then
10804	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10805	hardcode_shlibpath_var=no
10806	runpath_var=LD_RUN_PATH
10807	hardcode_runpath_var=yes
10808	ld_shlibs=yes
10809      fi
10810      ;;
10811
10812    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10813      no_undefined_flag='$wl-z,text'
10814      archive_cmds_need_lc=no
10815      hardcode_shlibpath_var=no
10816      runpath_var='LD_RUN_PATH'
10817
10818      if test yes = "$GCC"; then
10819	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10820	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10821      else
10822	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10823	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10824      fi
10825      ;;
10826
10827    sysv5* | sco3.2v5* | sco5v6*)
10828      # Note: We CANNOT use -z defs as we might desire, because we do not
10829      # link with -lc, and that would cause any symbols used from libc to
10830      # always be unresolved, which means just about no library would
10831      # ever link correctly.  If we're not using GNU ld we use -z text
10832      # though, which does catch some bad symbols but isn't as heavy-handed
10833      # as -z defs.
10834      no_undefined_flag='$wl-z,text'
10835      allow_undefined_flag='$wl-z,nodefs'
10836      archive_cmds_need_lc=no
10837      hardcode_shlibpath_var=no
10838      hardcode_libdir_flag_spec='$wl-R,$libdir'
10839      hardcode_libdir_separator=':'
10840      link_all_deplibs=yes
10841      export_dynamic_flag_spec='$wl-Bexport'
10842      runpath_var='LD_RUN_PATH'
10843
10844      if test yes = "$GCC"; then
10845	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10846	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10847      else
10848	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10849	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10850      fi
10851      ;;
10852
10853    uts4*)
10854      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10855      hardcode_libdir_flag_spec='-L$libdir'
10856      hardcode_shlibpath_var=no
10857      ;;
10858
10859    *)
10860      ld_shlibs=no
10861      ;;
10862    esac
10863
10864    if test sni = "$host_vendor"; then
10865      case $host in
10866      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10867	export_dynamic_flag_spec='$wl-Blargedynsym'
10868	;;
10869      esac
10870    fi
10871  fi
10872
10873{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10874printf "%s\n" "$ld_shlibs" >&6; }
10875test no = "$ld_shlibs" && can_build_shared=no
10876
10877with_gnu_ld=$with_gnu_ld
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893#
10894# Do we need to explicitly link libc?
10895#
10896case "x$archive_cmds_need_lc" in
10897x|xyes)
10898  # Assume -lc should be added
10899  archive_cmds_need_lc=yes
10900
10901  if test yes,yes = "$GCC,$enable_shared"; then
10902    case $archive_cmds in
10903    *'~'*)
10904      # FIXME: we may have to deal with multi-command sequences.
10905      ;;
10906    '$CC '*)
10907      # Test whether the compiler implicitly links with -lc since on some
10908      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10909      # to ld, don't add -lc before -lgcc.
10910      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10911printf %s "checking whether -lc should be explicitly linked in... " >&6; }
10912if test ${lt_cv_archive_cmds_need_lc+y}
10913then :
10914  printf %s "(cached) " >&6
10915else $as_nop
10916  $RM conftest*
10917	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10918
10919	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10920  (eval $ac_compile) 2>&5
10921  ac_status=$?
10922  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10923  test $ac_status = 0; } 2>conftest.err; then
10924	  soname=conftest
10925	  lib=conftest
10926	  libobjs=conftest.$ac_objext
10927	  deplibs=
10928	  wl=$lt_prog_compiler_wl
10929	  pic_flag=$lt_prog_compiler_pic
10930	  compiler_flags=-v
10931	  linker_flags=-v
10932	  verstring=
10933	  output_objdir=.
10934	  libname=conftest
10935	  lt_save_allow_undefined_flag=$allow_undefined_flag
10936	  allow_undefined_flag=
10937	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10938  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10939  ac_status=$?
10940  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10941  test $ac_status = 0; }
10942	  then
10943	    lt_cv_archive_cmds_need_lc=no
10944	  else
10945	    lt_cv_archive_cmds_need_lc=yes
10946	  fi
10947	  allow_undefined_flag=$lt_save_allow_undefined_flag
10948	else
10949	  cat conftest.err 1>&5
10950	fi
10951	$RM conftest*
10952
10953fi
10954{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10955printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
10956      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10957      ;;
10958    esac
10959  fi
10960  ;;
10961esac
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
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  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11115printf %s "checking dynamic linker characteristics... " >&6; }
11116
11117if test yes = "$GCC"; then
11118  case $host_os in
11119    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11120    *) lt_awk_arg='/^libraries:/' ;;
11121  esac
11122  case $host_os in
11123    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11124    *) lt_sed_strip_eq='s|=/|/|g' ;;
11125  esac
11126  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11127  case $lt_search_path_spec in
11128  *\;*)
11129    # if the path contains ";" then we assume it to be the separator
11130    # otherwise default to the standard path separator (i.e. ":") - it is
11131    # assumed that no part of a normal pathname contains ";" but that should
11132    # okay in the real world where ";" in dirpaths is itself problematic.
11133    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11134    ;;
11135  *)
11136    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11137    ;;
11138  esac
11139  # Ok, now we have the path, separated by spaces, we can step through it
11140  # and add multilib dir if necessary...
11141  lt_tmp_lt_search_path_spec=
11142  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11143  # ...but if some path component already ends with the multilib dir we assume
11144  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11145  case "$lt_multi_os_dir; $lt_search_path_spec " in
11146  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11147    lt_multi_os_dir=
11148    ;;
11149  esac
11150  for lt_sys_path in $lt_search_path_spec; do
11151    if test -d "$lt_sys_path$lt_multi_os_dir"; then
11152      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11153    elif test -n "$lt_multi_os_dir"; then
11154      test -d "$lt_sys_path" && \
11155	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11156    fi
11157  done
11158  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11159BEGIN {RS = " "; FS = "/|\n";} {
11160  lt_foo = "";
11161  lt_count = 0;
11162  for (lt_i = NF; lt_i > 0; lt_i--) {
11163    if ($lt_i != "" && $lt_i != ".") {
11164      if ($lt_i == "..") {
11165        lt_count++;
11166      } else {
11167        if (lt_count == 0) {
11168          lt_foo = "/" $lt_i lt_foo;
11169        } else {
11170          lt_count--;
11171        }
11172      }
11173    }
11174  }
11175  if (lt_foo != "") { lt_freq[lt_foo]++; }
11176  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11177}'`
11178  # AWK program above erroneously prepends '/' to C:/dos/paths
11179  # for these hosts.
11180  case $host_os in
11181    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11182      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11183  esac
11184  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11185else
11186  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11187fi
11188library_names_spec=
11189libname_spec='lib$name'
11190soname_spec=
11191shrext_cmds=.so
11192postinstall_cmds=
11193postuninstall_cmds=
11194finish_cmds=
11195finish_eval=
11196shlibpath_var=
11197shlibpath_overrides_runpath=unknown
11198version_type=none
11199dynamic_linker="$host_os ld.so"
11200sys_lib_dlsearch_path_spec="/lib /usr/lib"
11201need_lib_prefix=unknown
11202hardcode_into_libs=no
11203
11204# when you set need_version to no, make sure it does not cause -set_version
11205# flags to be left without arguments
11206need_version=unknown
11207
11208
11209
11210case $host_os in
11211aix3*)
11212  version_type=linux # correct to gnu/linux during the next big refactor
11213  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11214  shlibpath_var=LIBPATH
11215
11216  # AIX 3 has no versioning support, so we append a major version to the name.
11217  soname_spec='$libname$release$shared_ext$major'
11218  ;;
11219
11220aix[4-9]*)
11221  version_type=linux # correct to gnu/linux during the next big refactor
11222  need_lib_prefix=no
11223  need_version=no
11224  hardcode_into_libs=yes
11225  if test ia64 = "$host_cpu"; then
11226    # AIX 5 supports IA64
11227    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11228    shlibpath_var=LD_LIBRARY_PATH
11229  else
11230    # With GCC up to 2.95.x, collect2 would create an import file
11231    # for dependence libraries.  The import file would start with
11232    # the line '#! .'.  This would cause the generated library to
11233    # depend on '.', always an invalid library.  This was fixed in
11234    # development snapshots of GCC prior to 3.0.
11235    case $host_os in
11236      aix4 | aix4.[01] | aix4.[01].*)
11237      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11238	   echo ' yes '
11239	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11240	:
11241      else
11242	can_build_shared=no
11243      fi
11244      ;;
11245    esac
11246    # Using Import Files as archive members, it is possible to support
11247    # filename-based versioning of shared library archives on AIX. While
11248    # this would work for both with and without runtime linking, it will
11249    # prevent static linking of such archives. So we do filename-based
11250    # shared library versioning with .so extension only, which is used
11251    # when both runtime linking and shared linking is enabled.
11252    # Unfortunately, runtime linking may impact performance, so we do
11253    # not want this to be the default eventually. Also, we use the
11254    # versioned .so libs for executables only if there is the -brtl
11255    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11256    # To allow for filename-based versioning support, we need to create
11257    # libNAME.so.V as an archive file, containing:
11258    # *) an Import File, referring to the versioned filename of the
11259    #    archive as well as the shared archive member, telling the
11260    #    bitwidth (32 or 64) of that shared object, and providing the
11261    #    list of exported symbols of that shared object, eventually
11262    #    decorated with the 'weak' keyword
11263    # *) the shared object with the F_LOADONLY flag set, to really avoid
11264    #    it being seen by the linker.
11265    # At run time we better use the real file rather than another symlink,
11266    # but for link time we create the symlink libNAME.so -> libNAME.so.V
11267
11268    case $with_aix_soname,$aix_use_runtimelinking in
11269    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11270    # soname into executable. Probably we can add versioning support to
11271    # collect2, so additional links can be useful in future.
11272    aix,yes) # traditional libtool
11273      dynamic_linker='AIX unversionable lib.so'
11274      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11275      # instead of lib<name>.a to let people know that these are not
11276      # typical AIX shared libraries.
11277      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11278      ;;
11279    aix,no) # traditional AIX only
11280      dynamic_linker='AIX lib.a(lib.so.V)'
11281      # We preserve .a as extension for shared libraries through AIX4.2
11282      # and later when we are not doing run time linking.
11283      library_names_spec='$libname$release.a $libname.a'
11284      soname_spec='$libname$release$shared_ext$major'
11285      ;;
11286    svr4,*) # full svr4 only
11287      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11288      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11289      # We do not specify a path in Import Files, so LIBPATH fires.
11290      shlibpath_overrides_runpath=yes
11291      ;;
11292    *,yes) # both, prefer svr4
11293      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11294      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11295      # unpreferred sharedlib libNAME.a needs extra handling
11296      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"'
11297      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"'
11298      # We do not specify a path in Import Files, so LIBPATH fires.
11299      shlibpath_overrides_runpath=yes
11300      ;;
11301    *,no) # both, prefer aix
11302      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11303      library_names_spec='$libname$release.a $libname.a'
11304      soname_spec='$libname$release$shared_ext$major'
11305      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11306      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)'
11307      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"'
11308      ;;
11309    esac
11310    shlibpath_var=LIBPATH
11311  fi
11312  ;;
11313
11314amigaos*)
11315  case $host_cpu in
11316  powerpc)
11317    # Since July 2007 AmigaOS4 officially supports .so libraries.
11318    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11319    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11320    ;;
11321  m68k)
11322    library_names_spec='$libname.ixlibrary $libname.a'
11323    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11324    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'
11325    ;;
11326  esac
11327  ;;
11328
11329beos*)
11330  library_names_spec='$libname$shared_ext'
11331  dynamic_linker="$host_os ld.so"
11332  shlibpath_var=LIBRARY_PATH
11333  ;;
11334
11335bsdi[45]*)
11336  version_type=linux # correct to gnu/linux during the next big refactor
11337  need_version=no
11338  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11339  soname_spec='$libname$release$shared_ext$major'
11340  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11341  shlibpath_var=LD_LIBRARY_PATH
11342  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11343  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11344  # the default ld.so.conf also contains /usr/contrib/lib and
11345  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11346  # libtool to hard-code these into programs
11347  ;;
11348
11349cygwin* | mingw* | pw32* | cegcc*)
11350  version_type=windows
11351  shrext_cmds=.dll
11352  need_version=no
11353  need_lib_prefix=no
11354
11355  case $GCC,$cc_basename in
11356  yes,*)
11357    # gcc
11358    library_names_spec='$libname.dll.a'
11359    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11360    postinstall_cmds='base_file=`basename \$file`~
11361      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11362      dldir=$destdir/`dirname \$dlpath`~
11363      test -d \$dldir || mkdir -p \$dldir~
11364      $install_prog $dir/$dlname \$dldir/$dlname~
11365      chmod a+x \$dldir/$dlname~
11366      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11367        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11368      fi'
11369    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11370      dlpath=$dir/\$dldll~
11371       $RM \$dlpath'
11372    shlibpath_overrides_runpath=yes
11373
11374    case $host_os in
11375    cygwin*)
11376      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11377      soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11378
11379      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11380      ;;
11381    mingw* | cegcc*)
11382      # MinGW DLLs use traditional 'lib' prefix
11383      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11384      ;;
11385    pw32*)
11386      # pw32 DLLs use 'pw' prefix rather than 'lib'
11387      library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11388      ;;
11389    esac
11390    dynamic_linker='Win32 ld.exe'
11391    ;;
11392
11393  *,cl* | *,icl*)
11394    # Native MSVC or ICC
11395    libname_spec='$name'
11396    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11397    library_names_spec='$libname.dll.lib'
11398
11399    case $build_os in
11400    mingw*)
11401      sys_lib_search_path_spec=
11402      lt_save_ifs=$IFS
11403      IFS=';'
11404      for lt_path in $LIB
11405      do
11406        IFS=$lt_save_ifs
11407        # Let DOS variable expansion print the short 8.3 style file name.
11408        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11409        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11410      done
11411      IFS=$lt_save_ifs
11412      # Convert to MSYS style.
11413      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11414      ;;
11415    cygwin*)
11416      # Convert to unix form, then to dos form, then back to unix form
11417      # but this time dos style (no spaces!) so that the unix form looks
11418      # like /cygdrive/c/PROGRA~1:/cygdr...
11419      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11420      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11421      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11422      ;;
11423    *)
11424      sys_lib_search_path_spec=$LIB
11425      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11426        # It is most probably a Windows format PATH.
11427        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11428      else
11429        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11430      fi
11431      # FIXME: find the short name or the path components, as spaces are
11432      # common. (e.g. "Program Files" -> "PROGRA~1")
11433      ;;
11434    esac
11435
11436    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11437    postinstall_cmds='base_file=`basename \$file`~
11438      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11439      dldir=$destdir/`dirname \$dlpath`~
11440      test -d \$dldir || mkdir -p \$dldir~
11441      $install_prog $dir/$dlname \$dldir/$dlname'
11442    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11443      dlpath=$dir/\$dldll~
11444       $RM \$dlpath'
11445    shlibpath_overrides_runpath=yes
11446    dynamic_linker='Win32 link.exe'
11447    ;;
11448
11449  *)
11450    # Assume MSVC and ICC wrapper
11451    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11452    dynamic_linker='Win32 ld.exe'
11453    ;;
11454  esac
11455  # FIXME: first we should search . and the directory the executable is in
11456  shlibpath_var=PATH
11457  ;;
11458
11459darwin* | rhapsody*)
11460  dynamic_linker="$host_os dyld"
11461  version_type=darwin
11462  need_lib_prefix=no
11463  need_version=no
11464  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11465  soname_spec='$libname$release$major$shared_ext'
11466  shlibpath_overrides_runpath=yes
11467  shlibpath_var=DYLD_LIBRARY_PATH
11468  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11469
11470  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11471  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11472  ;;
11473
11474dgux*)
11475  version_type=linux # correct to gnu/linux during the next big refactor
11476  need_lib_prefix=no
11477  need_version=no
11478  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11479  soname_spec='$libname$release$shared_ext$major'
11480  shlibpath_var=LD_LIBRARY_PATH
11481  ;;
11482
11483freebsd* | dragonfly* | midnightbsd*)
11484  # DragonFly does not have aout.  When/if they implement a new
11485  # versioning mechanism, adjust this.
11486  if test -x /usr/bin/objformat; then
11487    objformat=`/usr/bin/objformat`
11488  else
11489    case $host_os in
11490    freebsd[23].*) objformat=aout ;;
11491    *) objformat=elf ;;
11492    esac
11493  fi
11494  version_type=freebsd-$objformat
11495  case $version_type in
11496    freebsd-elf*)
11497      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11498      soname_spec='$libname$release$shared_ext$major'
11499      need_version=no
11500      need_lib_prefix=no
11501      ;;
11502    freebsd-*)
11503      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11504      need_version=yes
11505      ;;
11506  esac
11507  shlibpath_var=LD_LIBRARY_PATH
11508  case $host_os in
11509  freebsd2.*)
11510    shlibpath_overrides_runpath=yes
11511    ;;
11512  freebsd3.[01]* | freebsdelf3.[01]*)
11513    shlibpath_overrides_runpath=yes
11514    hardcode_into_libs=yes
11515    ;;
11516  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11517  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11518    shlibpath_overrides_runpath=no
11519    hardcode_into_libs=yes
11520    ;;
11521  *) # from 4.6 on, and DragonFly
11522    shlibpath_overrides_runpath=yes
11523    hardcode_into_libs=yes
11524    ;;
11525  esac
11526  ;;
11527
11528haiku*)
11529  version_type=linux # correct to gnu/linux during the next big refactor
11530  need_lib_prefix=no
11531  need_version=no
11532  dynamic_linker="$host_os runtime_loader"
11533  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11534  soname_spec='$libname$release$shared_ext$major'
11535  shlibpath_var=LIBRARY_PATH
11536  shlibpath_overrides_runpath=no
11537  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11538  hardcode_into_libs=yes
11539  ;;
11540
11541hpux9* | hpux10* | hpux11*)
11542  # Give a soname corresponding to the major version so that dld.sl refuses to
11543  # link against other versions.
11544  version_type=sunos
11545  need_lib_prefix=no
11546  need_version=no
11547  case $host_cpu in
11548  ia64*)
11549    shrext_cmds='.so'
11550    hardcode_into_libs=yes
11551    dynamic_linker="$host_os dld.so"
11552    shlibpath_var=LD_LIBRARY_PATH
11553    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11554    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11555    soname_spec='$libname$release$shared_ext$major'
11556    if test 32 = "$HPUX_IA64_MODE"; then
11557      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11558      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11559    else
11560      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11561      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11562    fi
11563    ;;
11564  hppa*64*)
11565    shrext_cmds='.sl'
11566    hardcode_into_libs=yes
11567    dynamic_linker="$host_os dld.sl"
11568    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11569    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11570    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11571    soname_spec='$libname$release$shared_ext$major'
11572    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11573    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11574    ;;
11575  *)
11576    shrext_cmds='.sl'
11577    dynamic_linker="$host_os dld.sl"
11578    shlibpath_var=SHLIB_PATH
11579    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11580    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11581    soname_spec='$libname$release$shared_ext$major'
11582    ;;
11583  esac
11584  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11585  postinstall_cmds='chmod 555 $lib'
11586  # or fails outright, so override atomically:
11587  install_override_mode=555
11588  ;;
11589
11590interix[3-9]*)
11591  version_type=linux # correct to gnu/linux during the next big refactor
11592  need_lib_prefix=no
11593  need_version=no
11594  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11595  soname_spec='$libname$release$shared_ext$major'
11596  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11597  shlibpath_var=LD_LIBRARY_PATH
11598  shlibpath_overrides_runpath=no
11599  hardcode_into_libs=yes
11600  ;;
11601
11602irix5* | irix6* | nonstopux*)
11603  case $host_os in
11604    nonstopux*) version_type=nonstopux ;;
11605    *)
11606	if test yes = "$lt_cv_prog_gnu_ld"; then
11607		version_type=linux # correct to gnu/linux during the next big refactor
11608	else
11609		version_type=irix
11610	fi ;;
11611  esac
11612  need_lib_prefix=no
11613  need_version=no
11614  soname_spec='$libname$release$shared_ext$major'
11615  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11616  case $host_os in
11617  irix5* | nonstopux*)
11618    libsuff= shlibsuff=
11619    ;;
11620  *)
11621    case $LD in # libtool.m4 will add one of these switches to LD
11622    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11623      libsuff= shlibsuff= libmagic=32-bit;;
11624    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11625      libsuff=32 shlibsuff=N32 libmagic=N32;;
11626    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11627      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11628    *) libsuff= shlibsuff= libmagic=never-match;;
11629    esac
11630    ;;
11631  esac
11632  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11633  shlibpath_overrides_runpath=no
11634  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11635  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11636  hardcode_into_libs=yes
11637  ;;
11638
11639# No shared lib support for Linux oldld, aout, or coff.
11640linux*oldld* | linux*aout* | linux*coff*)
11641  dynamic_linker=no
11642  ;;
11643
11644linux*android*)
11645  version_type=none # Android doesn't support versioned libraries.
11646  need_lib_prefix=no
11647  need_version=no
11648  library_names_spec='$libname$release$shared_ext'
11649  soname_spec='$libname$release$shared_ext'
11650  finish_cmds=
11651  shlibpath_var=LD_LIBRARY_PATH
11652  shlibpath_overrides_runpath=yes
11653
11654  # This implies no fast_install, which is unacceptable.
11655  # Some rework will be needed to allow for fast_install
11656  # before this can be enabled.
11657  hardcode_into_libs=yes
11658
11659  dynamic_linker='Android linker'
11660  # Don't embed -rpath directories since the linker doesn't support them.
11661  hardcode_libdir_flag_spec='-L$libdir'
11662  ;;
11663
11664# This must be glibc/ELF.
11665linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11666  version_type=linux # correct to gnu/linux during the next big refactor
11667  need_lib_prefix=no
11668  need_version=no
11669  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11670  soname_spec='$libname$release$shared_ext$major'
11671  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11672  shlibpath_var=LD_LIBRARY_PATH
11673  shlibpath_overrides_runpath=no
11674
11675  # Some binutils ld are patched to set DT_RUNPATH
11676  if test ${lt_cv_shlibpath_overrides_runpath+y}
11677then :
11678  printf %s "(cached) " >&6
11679else $as_nop
11680  lt_cv_shlibpath_overrides_runpath=no
11681    save_LDFLAGS=$LDFLAGS
11682    save_libdir=$libdir
11683    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11684	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11685    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11686/* end confdefs.h.  */
11687
11688int
11689main (void)
11690{
11691
11692  ;
11693  return 0;
11694}
11695_ACEOF
11696if ac_fn_c_try_link "$LINENO"
11697then :
11698  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
11699then :
11700  lt_cv_shlibpath_overrides_runpath=yes
11701fi
11702fi
11703rm -f core conftest.err conftest.$ac_objext conftest.beam \
11704    conftest$ac_exeext conftest.$ac_ext
11705    LDFLAGS=$save_LDFLAGS
11706    libdir=$save_libdir
11707
11708fi
11709
11710  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11711
11712  # This implies no fast_install, which is unacceptable.
11713  # Some rework will be needed to allow for fast_install
11714  # before this can be enabled.
11715  hardcode_into_libs=yes
11716
11717  # Ideally, we could use ldconfig to report *all* directores which are
11718  # searched for libraries, however this is still not possible.  Aside from not
11719  # being certain /sbin/ldconfig is available, command
11720  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11721  # even though it is searched at run-time.  Try to do the best guess by
11722  # appending ld.so.conf contents (and includes) to the search path.
11723  if test -f /etc/ld.so.conf; then
11724    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' ' '`
11725    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11726  fi
11727
11728  # We used to test for /lib/ld.so.1 and disable shared libraries on
11729  # powerpc, because MkLinux only supported shared libraries with the
11730  # GNU dynamic linker.  Since this was broken with cross compilers,
11731  # most powerpc-linux boxes support dynamic linking these days and
11732  # people can always --disable-shared, the test was removed, and we
11733  # assume the GNU/Linux dynamic linker is in use.
11734  dynamic_linker='GNU/Linux ld.so'
11735  ;;
11736
11737netbsd*)
11738  version_type=sunos
11739  need_lib_prefix=no
11740  need_version=no
11741  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11742    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11743    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11744    dynamic_linker='NetBSD (a.out) ld.so'
11745  else
11746    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11747    soname_spec='$libname$release$shared_ext$major'
11748    dynamic_linker='NetBSD ld.elf_so'
11749  fi
11750  shlibpath_var=LD_LIBRARY_PATH
11751  shlibpath_overrides_runpath=yes
11752  hardcode_into_libs=yes
11753  ;;
11754
11755newsos6)
11756  version_type=linux # correct to gnu/linux during the next big refactor
11757  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11758  shlibpath_var=LD_LIBRARY_PATH
11759  shlibpath_overrides_runpath=yes
11760  ;;
11761
11762*nto* | *qnx*)
11763  version_type=qnx
11764  need_lib_prefix=no
11765  need_version=no
11766  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11767  soname_spec='$libname$release$shared_ext$major'
11768  shlibpath_var=LD_LIBRARY_PATH
11769  shlibpath_overrides_runpath=no
11770  hardcode_into_libs=yes
11771  dynamic_linker='ldqnx.so'
11772  ;;
11773
11774openbsd* | bitrig*)
11775  version_type=sunos
11776  sys_lib_dlsearch_path_spec=/usr/lib
11777  need_lib_prefix=no
11778  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11779    need_version=no
11780  else
11781    need_version=yes
11782  fi
11783  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11784  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11785  shlibpath_var=LD_LIBRARY_PATH
11786  shlibpath_overrides_runpath=yes
11787  ;;
11788
11789os2*)
11790  libname_spec='$name'
11791  version_type=windows
11792  shrext_cmds=.dll
11793  need_version=no
11794  need_lib_prefix=no
11795  # OS/2 can only load a DLL with a base name of 8 characters or less.
11796  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11797    v=$($ECHO $release$versuffix | tr -d .-);
11798    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11799    $ECHO $n$v`$shared_ext'
11800  library_names_spec='${libname}_dll.$libext'
11801  dynamic_linker='OS/2 ld.exe'
11802  shlibpath_var=BEGINLIBPATH
11803  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11804  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11805  postinstall_cmds='base_file=`basename \$file`~
11806    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11807    dldir=$destdir/`dirname \$dlpath`~
11808    test -d \$dldir || mkdir -p \$dldir~
11809    $install_prog $dir/$dlname \$dldir/$dlname~
11810    chmod a+x \$dldir/$dlname~
11811    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11812      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11813    fi'
11814  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11815    dlpath=$dir/\$dldll~
11816    $RM \$dlpath'
11817  ;;
11818
11819osf3* | osf4* | osf5*)
11820  version_type=osf
11821  need_lib_prefix=no
11822  need_version=no
11823  soname_spec='$libname$release$shared_ext$major'
11824  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11825  shlibpath_var=LD_LIBRARY_PATH
11826  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11827  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11828  ;;
11829
11830rdos*)
11831  dynamic_linker=no
11832  ;;
11833
11834solaris*)
11835  version_type=linux # correct to gnu/linux during the next big refactor
11836  need_lib_prefix=no
11837  need_version=no
11838  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11839  soname_spec='$libname$release$shared_ext$major'
11840  shlibpath_var=LD_LIBRARY_PATH
11841  shlibpath_overrides_runpath=yes
11842  hardcode_into_libs=yes
11843  # ldd complains unless libraries are executable
11844  postinstall_cmds='chmod +x $lib'
11845  ;;
11846
11847sunos4*)
11848  version_type=sunos
11849  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11850  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11851  shlibpath_var=LD_LIBRARY_PATH
11852  shlibpath_overrides_runpath=yes
11853  if test yes = "$with_gnu_ld"; then
11854    need_lib_prefix=no
11855  fi
11856  need_version=yes
11857  ;;
11858
11859sysv4 | sysv4.3*)
11860  version_type=linux # correct to gnu/linux during the next big refactor
11861  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11862  soname_spec='$libname$release$shared_ext$major'
11863  shlibpath_var=LD_LIBRARY_PATH
11864  case $host_vendor in
11865    sni)
11866      shlibpath_overrides_runpath=no
11867      need_lib_prefix=no
11868      runpath_var=LD_RUN_PATH
11869      ;;
11870    siemens)
11871      need_lib_prefix=no
11872      ;;
11873    motorola)
11874      need_lib_prefix=no
11875      need_version=no
11876      shlibpath_overrides_runpath=no
11877      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11878      ;;
11879  esac
11880  ;;
11881
11882sysv4*MP*)
11883  if test -d /usr/nec; then
11884    version_type=linux # correct to gnu/linux during the next big refactor
11885    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11886    soname_spec='$libname$shared_ext.$major'
11887    shlibpath_var=LD_LIBRARY_PATH
11888  fi
11889  ;;
11890
11891sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11892  version_type=sco
11893  need_lib_prefix=no
11894  need_version=no
11895  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11896  soname_spec='$libname$release$shared_ext$major'
11897  shlibpath_var=LD_LIBRARY_PATH
11898  shlibpath_overrides_runpath=yes
11899  hardcode_into_libs=yes
11900  if test yes = "$with_gnu_ld"; then
11901    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11902  else
11903    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11904    case $host_os in
11905      sco3.2v5*)
11906        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11907	;;
11908    esac
11909  fi
11910  sys_lib_dlsearch_path_spec='/usr/lib'
11911  ;;
11912
11913tpf*)
11914  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11915  version_type=linux # correct to gnu/linux during the next big refactor
11916  need_lib_prefix=no
11917  need_version=no
11918  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11919  shlibpath_var=LD_LIBRARY_PATH
11920  shlibpath_overrides_runpath=no
11921  hardcode_into_libs=yes
11922  ;;
11923
11924uts4*)
11925  version_type=linux # correct to gnu/linux during the next big refactor
11926  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11927  soname_spec='$libname$release$shared_ext$major'
11928  shlibpath_var=LD_LIBRARY_PATH
11929  ;;
11930
11931*)
11932  dynamic_linker=no
11933  ;;
11934esac
11935{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11936printf "%s\n" "$dynamic_linker" >&6; }
11937test no = "$dynamic_linker" && can_build_shared=no
11938
11939variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11940if test yes = "$GCC"; then
11941  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11942fi
11943
11944if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11945  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11946fi
11947
11948if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11949  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11950fi
11951
11952# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11953configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11954
11955# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11956func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11957
11958# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11959configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
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  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12058printf %s "checking how to hardcode library paths into programs... " >&6; }
12059hardcode_action=
12060if test -n "$hardcode_libdir_flag_spec" ||
12061   test -n "$runpath_var" ||
12062   test yes = "$hardcode_automatic"; then
12063
12064  # We can hardcode non-existent directories.
12065  if test no != "$hardcode_direct" &&
12066     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12067     # have to relink, otherwise we might link with an installed library
12068     # when we should be linking with a yet-to-be-installed one
12069     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12070     test no != "$hardcode_minus_L"; then
12071    # Linking always hardcodes the temporary library directory.
12072    hardcode_action=relink
12073  else
12074    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12075    hardcode_action=immediate
12076  fi
12077else
12078  # We cannot hardcode anything, or else we can only hardcode existing
12079  # directories.
12080  hardcode_action=unsupported
12081fi
12082{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12083printf "%s\n" "$hardcode_action" >&6; }
12084
12085if test relink = "$hardcode_action" ||
12086   test yes = "$inherit_rpath"; then
12087  # Fast installation is not supported
12088  enable_fast_install=no
12089elif test yes = "$shlibpath_overrides_runpath" ||
12090     test no = "$enable_shared"; then
12091  # Fast installation is not necessary
12092  enable_fast_install=needless
12093fi
12094
12095
12096
12097
12098
12099
12100  if test yes != "$enable_dlopen"; then
12101  enable_dlopen=unknown
12102  enable_dlopen_self=unknown
12103  enable_dlopen_self_static=unknown
12104else
12105  lt_cv_dlopen=no
12106  lt_cv_dlopen_libs=
12107
12108  case $host_os in
12109  beos*)
12110    lt_cv_dlopen=load_add_on
12111    lt_cv_dlopen_libs=
12112    lt_cv_dlopen_self=yes
12113    ;;
12114
12115  mingw* | pw32* | cegcc*)
12116    lt_cv_dlopen=LoadLibrary
12117    lt_cv_dlopen_libs=
12118    ;;
12119
12120  cygwin*)
12121    lt_cv_dlopen=dlopen
12122    lt_cv_dlopen_libs=
12123    ;;
12124
12125  darwin*)
12126    # if libdl is installed we need to link against it
12127    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12128printf %s "checking for dlopen in -ldl... " >&6; }
12129if test ${ac_cv_lib_dl_dlopen+y}
12130then :
12131  printf %s "(cached) " >&6
12132else $as_nop
12133  ac_check_lib_save_LIBS=$LIBS
12134LIBS="-ldl  $LIBS"
12135cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12136/* end confdefs.h.  */
12137
12138/* Override any GCC internal prototype to avoid an error.
12139   Use char because int might match the return type of a GCC
12140   builtin and then its argument prototype would still apply.  */
12141char dlopen ();
12142int
12143main (void)
12144{
12145return dlopen ();
12146  ;
12147  return 0;
12148}
12149_ACEOF
12150if ac_fn_c_try_link "$LINENO"
12151then :
12152  ac_cv_lib_dl_dlopen=yes
12153else $as_nop
12154  ac_cv_lib_dl_dlopen=no
12155fi
12156rm -f core conftest.err conftest.$ac_objext conftest.beam \
12157    conftest$ac_exeext conftest.$ac_ext
12158LIBS=$ac_check_lib_save_LIBS
12159fi
12160{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12161printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12162if test "x$ac_cv_lib_dl_dlopen" = xyes
12163then :
12164  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12165else $as_nop
12166
12167    lt_cv_dlopen=dyld
12168    lt_cv_dlopen_libs=
12169    lt_cv_dlopen_self=yes
12170
12171fi
12172
12173    ;;
12174
12175  tpf*)
12176    # Don't try to run any link tests for TPF.  We know it's impossible
12177    # because TPF is a cross-compiler, and we know how we open DSOs.
12178    lt_cv_dlopen=dlopen
12179    lt_cv_dlopen_libs=
12180    lt_cv_dlopen_self=no
12181    ;;
12182
12183  *)
12184    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12185if test "x$ac_cv_func_shl_load" = xyes
12186then :
12187  lt_cv_dlopen=shl_load
12188else $as_nop
12189  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12190printf %s "checking for shl_load in -ldld... " >&6; }
12191if test ${ac_cv_lib_dld_shl_load+y}
12192then :
12193  printf %s "(cached) " >&6
12194else $as_nop
12195  ac_check_lib_save_LIBS=$LIBS
12196LIBS="-ldld  $LIBS"
12197cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12198/* end confdefs.h.  */
12199
12200/* Override any GCC internal prototype to avoid an error.
12201   Use char because int might match the return type of a GCC
12202   builtin and then its argument prototype would still apply.  */
12203char shl_load ();
12204int
12205main (void)
12206{
12207return shl_load ();
12208  ;
12209  return 0;
12210}
12211_ACEOF
12212if ac_fn_c_try_link "$LINENO"
12213then :
12214  ac_cv_lib_dld_shl_load=yes
12215else $as_nop
12216  ac_cv_lib_dld_shl_load=no
12217fi
12218rm -f core conftest.err conftest.$ac_objext conftest.beam \
12219    conftest$ac_exeext conftest.$ac_ext
12220LIBS=$ac_check_lib_save_LIBS
12221fi
12222{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12223printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12224if test "x$ac_cv_lib_dld_shl_load" = xyes
12225then :
12226  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12227else $as_nop
12228  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12229if test "x$ac_cv_func_dlopen" = xyes
12230then :
12231  lt_cv_dlopen=dlopen
12232else $as_nop
12233  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12234printf %s "checking for dlopen in -ldl... " >&6; }
12235if test ${ac_cv_lib_dl_dlopen+y}
12236then :
12237  printf %s "(cached) " >&6
12238else $as_nop
12239  ac_check_lib_save_LIBS=$LIBS
12240LIBS="-ldl  $LIBS"
12241cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12242/* end confdefs.h.  */
12243
12244/* Override any GCC internal prototype to avoid an error.
12245   Use char because int might match the return type of a GCC
12246   builtin and then its argument prototype would still apply.  */
12247char dlopen ();
12248int
12249main (void)
12250{
12251return dlopen ();
12252  ;
12253  return 0;
12254}
12255_ACEOF
12256if ac_fn_c_try_link "$LINENO"
12257then :
12258  ac_cv_lib_dl_dlopen=yes
12259else $as_nop
12260  ac_cv_lib_dl_dlopen=no
12261fi
12262rm -f core conftest.err conftest.$ac_objext conftest.beam \
12263    conftest$ac_exeext conftest.$ac_ext
12264LIBS=$ac_check_lib_save_LIBS
12265fi
12266{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12267printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12268if test "x$ac_cv_lib_dl_dlopen" = xyes
12269then :
12270  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12271else $as_nop
12272  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12273printf %s "checking for dlopen in -lsvld... " >&6; }
12274if test ${ac_cv_lib_svld_dlopen+y}
12275then :
12276  printf %s "(cached) " >&6
12277else $as_nop
12278  ac_check_lib_save_LIBS=$LIBS
12279LIBS="-lsvld  $LIBS"
12280cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12281/* end confdefs.h.  */
12282
12283/* Override any GCC internal prototype to avoid an error.
12284   Use char because int might match the return type of a GCC
12285   builtin and then its argument prototype would still apply.  */
12286char dlopen ();
12287int
12288main (void)
12289{
12290return dlopen ();
12291  ;
12292  return 0;
12293}
12294_ACEOF
12295if ac_fn_c_try_link "$LINENO"
12296then :
12297  ac_cv_lib_svld_dlopen=yes
12298else $as_nop
12299  ac_cv_lib_svld_dlopen=no
12300fi
12301rm -f core conftest.err conftest.$ac_objext conftest.beam \
12302    conftest$ac_exeext conftest.$ac_ext
12303LIBS=$ac_check_lib_save_LIBS
12304fi
12305{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12306printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12307if test "x$ac_cv_lib_svld_dlopen" = xyes
12308then :
12309  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12310else $as_nop
12311  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12312printf %s "checking for dld_link in -ldld... " >&6; }
12313if test ${ac_cv_lib_dld_dld_link+y}
12314then :
12315  printf %s "(cached) " >&6
12316else $as_nop
12317  ac_check_lib_save_LIBS=$LIBS
12318LIBS="-ldld  $LIBS"
12319cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12320/* end confdefs.h.  */
12321
12322/* Override any GCC internal prototype to avoid an error.
12323   Use char because int might match the return type of a GCC
12324   builtin and then its argument prototype would still apply.  */
12325char dld_link ();
12326int
12327main (void)
12328{
12329return dld_link ();
12330  ;
12331  return 0;
12332}
12333_ACEOF
12334if ac_fn_c_try_link "$LINENO"
12335then :
12336  ac_cv_lib_dld_dld_link=yes
12337else $as_nop
12338  ac_cv_lib_dld_dld_link=no
12339fi
12340rm -f core conftest.err conftest.$ac_objext conftest.beam \
12341    conftest$ac_exeext conftest.$ac_ext
12342LIBS=$ac_check_lib_save_LIBS
12343fi
12344{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12345printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12346if test "x$ac_cv_lib_dld_dld_link" = xyes
12347then :
12348  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12349fi
12350
12351
12352fi
12353
12354
12355fi
12356
12357
12358fi
12359
12360
12361fi
12362
12363
12364fi
12365
12366    ;;
12367  esac
12368
12369  if test no = "$lt_cv_dlopen"; then
12370    enable_dlopen=no
12371  else
12372    enable_dlopen=yes
12373  fi
12374
12375  case $lt_cv_dlopen in
12376  dlopen)
12377    save_CPPFLAGS=$CPPFLAGS
12378    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12379
12380    save_LDFLAGS=$LDFLAGS
12381    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12382
12383    save_LIBS=$LIBS
12384    LIBS="$lt_cv_dlopen_libs $LIBS"
12385
12386    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12387printf %s "checking whether a program can dlopen itself... " >&6; }
12388if test ${lt_cv_dlopen_self+y}
12389then :
12390  printf %s "(cached) " >&6
12391else $as_nop
12392  	  if test yes = "$cross_compiling"; then :
12393  lt_cv_dlopen_self=cross
12394else
12395  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12396  lt_status=$lt_dlunknown
12397  cat > conftest.$ac_ext <<_LT_EOF
12398#line $LINENO "configure"
12399#include "confdefs.h"
12400
12401#if HAVE_DLFCN_H
12402#include <dlfcn.h>
12403#endif
12404
12405#include <stdio.h>
12406
12407#ifdef RTLD_GLOBAL
12408#  define LT_DLGLOBAL		RTLD_GLOBAL
12409#else
12410#  ifdef DL_GLOBAL
12411#    define LT_DLGLOBAL		DL_GLOBAL
12412#  else
12413#    define LT_DLGLOBAL		0
12414#  endif
12415#endif
12416
12417/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12418   find out it does not work in some platform. */
12419#ifndef LT_DLLAZY_OR_NOW
12420#  ifdef RTLD_LAZY
12421#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12422#  else
12423#    ifdef DL_LAZY
12424#      define LT_DLLAZY_OR_NOW		DL_LAZY
12425#    else
12426#      ifdef RTLD_NOW
12427#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12428#      else
12429#        ifdef DL_NOW
12430#          define LT_DLLAZY_OR_NOW	DL_NOW
12431#        else
12432#          define LT_DLLAZY_OR_NOW	0
12433#        endif
12434#      endif
12435#    endif
12436#  endif
12437#endif
12438
12439/* When -fvisibility=hidden is used, assume the code has been annotated
12440   correspondingly for the symbols needed.  */
12441#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12442int fnord () __attribute__((visibility("default")));
12443#endif
12444
12445int fnord () { return 42; }
12446int main ()
12447{
12448  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12449  int status = $lt_dlunknown;
12450
12451  if (self)
12452    {
12453      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12454      else
12455        {
12456	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12457          else puts (dlerror ());
12458	}
12459      /* dlclose (self); */
12460    }
12461  else
12462    puts (dlerror ());
12463
12464  return status;
12465}
12466_LT_EOF
12467  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12468  (eval $ac_link) 2>&5
12469  ac_status=$?
12470  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12471  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12472    (./conftest; exit; ) >&5 2>/dev/null
12473    lt_status=$?
12474    case x$lt_status in
12475      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12476      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12477      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12478    esac
12479  else :
12480    # compilation failed
12481    lt_cv_dlopen_self=no
12482  fi
12483fi
12484rm -fr conftest*
12485
12486
12487fi
12488{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12489printf "%s\n" "$lt_cv_dlopen_self" >&6; }
12490
12491    if test yes = "$lt_cv_dlopen_self"; then
12492      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12493      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12494printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
12495if test ${lt_cv_dlopen_self_static+y}
12496then :
12497  printf %s "(cached) " >&6
12498else $as_nop
12499  	  if test yes = "$cross_compiling"; then :
12500  lt_cv_dlopen_self_static=cross
12501else
12502  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12503  lt_status=$lt_dlunknown
12504  cat > conftest.$ac_ext <<_LT_EOF
12505#line $LINENO "configure"
12506#include "confdefs.h"
12507
12508#if HAVE_DLFCN_H
12509#include <dlfcn.h>
12510#endif
12511
12512#include <stdio.h>
12513
12514#ifdef RTLD_GLOBAL
12515#  define LT_DLGLOBAL		RTLD_GLOBAL
12516#else
12517#  ifdef DL_GLOBAL
12518#    define LT_DLGLOBAL		DL_GLOBAL
12519#  else
12520#    define LT_DLGLOBAL		0
12521#  endif
12522#endif
12523
12524/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12525   find out it does not work in some platform. */
12526#ifndef LT_DLLAZY_OR_NOW
12527#  ifdef RTLD_LAZY
12528#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12529#  else
12530#    ifdef DL_LAZY
12531#      define LT_DLLAZY_OR_NOW		DL_LAZY
12532#    else
12533#      ifdef RTLD_NOW
12534#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12535#      else
12536#        ifdef DL_NOW
12537#          define LT_DLLAZY_OR_NOW	DL_NOW
12538#        else
12539#          define LT_DLLAZY_OR_NOW	0
12540#        endif
12541#      endif
12542#    endif
12543#  endif
12544#endif
12545
12546/* When -fvisibility=hidden is used, assume the code has been annotated
12547   correspondingly for the symbols needed.  */
12548#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12549int fnord () __attribute__((visibility("default")));
12550#endif
12551
12552int fnord () { return 42; }
12553int main ()
12554{
12555  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12556  int status = $lt_dlunknown;
12557
12558  if (self)
12559    {
12560      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12561      else
12562        {
12563	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12564          else puts (dlerror ());
12565	}
12566      /* dlclose (self); */
12567    }
12568  else
12569    puts (dlerror ());
12570
12571  return status;
12572}
12573_LT_EOF
12574  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12575  (eval $ac_link) 2>&5
12576  ac_status=$?
12577  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12578  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12579    (./conftest; exit; ) >&5 2>/dev/null
12580    lt_status=$?
12581    case x$lt_status in
12582      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12583      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12584      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12585    esac
12586  else :
12587    # compilation failed
12588    lt_cv_dlopen_self_static=no
12589  fi
12590fi
12591rm -fr conftest*
12592
12593
12594fi
12595{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12596printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
12597    fi
12598
12599    CPPFLAGS=$save_CPPFLAGS
12600    LDFLAGS=$save_LDFLAGS
12601    LIBS=$save_LIBS
12602    ;;
12603  esac
12604
12605  case $lt_cv_dlopen_self in
12606  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12607  *) enable_dlopen_self=unknown ;;
12608  esac
12609
12610  case $lt_cv_dlopen_self_static in
12611  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12612  *) enable_dlopen_self_static=unknown ;;
12613  esac
12614fi
12615
12616
12617
12618
12619
12620
12621
12622
12623
12624
12625
12626
12627
12628
12629
12630
12631
12632striplib=
12633old_striplib=
12634{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12635printf %s "checking whether stripping libraries is possible... " >&6; }
12636if test -z "$STRIP"; then
12637  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12638printf "%s\n" "no" >&6; }
12639else
12640  if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12641    old_striplib="$STRIP --strip-debug"
12642    striplib="$STRIP --strip-unneeded"
12643    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12644printf "%s\n" "yes" >&6; }
12645  else
12646    case $host_os in
12647    darwin*)
12648      # FIXME - insert some real tests, host_os isn't really good enough
12649      striplib="$STRIP -x"
12650      old_striplib="$STRIP -S"
12651      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12652printf "%s\n" "yes" >&6; }
12653      ;;
12654    freebsd*)
12655      if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
12656        old_striplib="$STRIP --strip-debug"
12657        striplib="$STRIP --strip-unneeded"
12658        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12659printf "%s\n" "yes" >&6; }
12660      else
12661        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12662printf "%s\n" "no" >&6; }
12663      fi
12664      ;;
12665    *)
12666      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12667printf "%s\n" "no" >&6; }
12668      ;;
12669    esac
12670  fi
12671fi
12672
12673
12674
12675
12676
12677
12678
12679
12680
12681
12682
12683
12684  # Report what library types will actually be built
12685  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12686printf %s "checking if libtool supports shared libraries... " >&6; }
12687  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12688printf "%s\n" "$can_build_shared" >&6; }
12689
12690  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12691printf %s "checking whether to build shared libraries... " >&6; }
12692  test no = "$can_build_shared" && enable_shared=no
12693
12694  # On AIX, shared libraries and static libraries use the same namespace, and
12695  # are all built from PIC.
12696  case $host_os in
12697  aix3*)
12698    test yes = "$enable_shared" && enable_static=no
12699    if test -n "$RANLIB"; then
12700      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12701      postinstall_cmds='$RANLIB $lib'
12702    fi
12703    ;;
12704
12705  aix[4-9]*)
12706    if test ia64 != "$host_cpu"; then
12707      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12708      yes,aix,yes) ;;			# shared object as lib.so file only
12709      yes,svr4,*) ;;			# shared object as lib.so archive member only
12710      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
12711      esac
12712    fi
12713    ;;
12714  esac
12715  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12716printf "%s\n" "$enable_shared" >&6; }
12717
12718  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12719printf %s "checking whether to build static libraries... " >&6; }
12720  # Make sure either enable_shared or enable_static is yes.
12721  test yes = "$enable_shared" || enable_static=yes
12722  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12723printf "%s\n" "$enable_static" >&6; }
12724
12725
12726
12727
12728fi
12729ac_ext=c
12730ac_cpp='$CPP $CPPFLAGS'
12731ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12732ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12733ac_compiler_gnu=$ac_cv_c_compiler_gnu
12734
12735CC=$lt_save_CC
12736
12737
12738
12739
12740
12741
12742
12743
12744
12745
12746
12747
12748
12749
12750
12751        ac_config_commands="$ac_config_commands libtool"
12752
12753
12754
12755
12756# Only expand once:
12757
12758
12759
12760# Require xorg-macros minimum of 1.12 for DocBook external references
12761
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
12773printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
12774if test ${ac_cv_c_undeclared_builtin_options+y}
12775then :
12776  printf %s "(cached) " >&6
12777else $as_nop
12778  ac_save_CFLAGS=$CFLAGS
12779   ac_cv_c_undeclared_builtin_options='cannot detect'
12780   for ac_arg in '' -fno-builtin; do
12781     CFLAGS="$ac_save_CFLAGS $ac_arg"
12782     # This test program should *not* compile successfully.
12783     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12784/* end confdefs.h.  */
12785
12786int
12787main (void)
12788{
12789(void) strchr;
12790  ;
12791  return 0;
12792}
12793_ACEOF
12794if ac_fn_c_try_compile "$LINENO"
12795then :
12796
12797else $as_nop
12798  # This test program should compile successfully.
12799        # No library function is consistently available on
12800        # freestanding implementations, so test against a dummy
12801        # declaration.  Include always-available headers on the
12802        # off chance that they somehow elicit warnings.
12803        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12804/* end confdefs.h.  */
12805#include <float.h>
12806#include <limits.h>
12807#include <stdarg.h>
12808#include <stddef.h>
12809extern void ac_decl (int, char *);
12810
12811int
12812main (void)
12813{
12814(void) ac_decl (0, (char *) 0);
12815  (void) ac_decl;
12816
12817  ;
12818  return 0;
12819}
12820_ACEOF
12821if ac_fn_c_try_compile "$LINENO"
12822then :
12823  if test x"$ac_arg" = x
12824then :
12825  ac_cv_c_undeclared_builtin_options='none needed'
12826else $as_nop
12827  ac_cv_c_undeclared_builtin_options=$ac_arg
12828fi
12829          break
12830fi
12831rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12832fi
12833rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12834    done
12835    CFLAGS=$ac_save_CFLAGS
12836
12837fi
12838{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
12839printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
12840  case $ac_cv_c_undeclared_builtin_options in #(
12841  'cannot detect') :
12842    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12843printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12844as_fn_error $? "cannot make $CC report undeclared builtins
12845See \`config.log' for more details" "$LINENO" 5; } ;; #(
12846  'none needed') :
12847    ac_c_undeclared_builtin_options='' ;; #(
12848  *) :
12849    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
12850esac
12851
12852
12853
12854
12855
12856ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
12857if test "x$ac_cv_have_decl___clang__" = xyes
12858then :
12859  CLANGCC="yes"
12860else $as_nop
12861  CLANGCC="no"
12862fi
12863ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
12864if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
12865then :
12866  INTELCC="yes"
12867else $as_nop
12868  INTELCC="no"
12869fi
12870ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
12871if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
12872then :
12873  SUNCC="yes"
12874else $as_nop
12875  SUNCC="no"
12876fi
12877
12878
12879
12880
12881
12882
12883
12884
12885if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12886	if test -n "$ac_tool_prefix"; then
12887  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12888set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12889{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12890printf %s "checking for $ac_word... " >&6; }
12891if test ${ac_cv_path_PKG_CONFIG+y}
12892then :
12893  printf %s "(cached) " >&6
12894else $as_nop
12895  case $PKG_CONFIG in
12896  [\\/]* | ?:[\\/]*)
12897  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12898  ;;
12899  *)
12900  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12901for as_dir in $PATH
12902do
12903  IFS=$as_save_IFS
12904  case $as_dir in #(((
12905    '') as_dir=./ ;;
12906    */) ;;
12907    *) as_dir=$as_dir/ ;;
12908  esac
12909    for ac_exec_ext in '' $ac_executable_extensions; do
12910  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12911    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
12912    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12913    break 2
12914  fi
12915done
12916  done
12917IFS=$as_save_IFS
12918
12919  ;;
12920esac
12921fi
12922PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12923if test -n "$PKG_CONFIG"; then
12924  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12925printf "%s\n" "$PKG_CONFIG" >&6; }
12926else
12927  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12928printf "%s\n" "no" >&6; }
12929fi
12930
12931
12932fi
12933if test -z "$ac_cv_path_PKG_CONFIG"; then
12934  ac_pt_PKG_CONFIG=$PKG_CONFIG
12935  # Extract the first word of "pkg-config", so it can be a program name with args.
12936set dummy pkg-config; ac_word=$2
12937{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12938printf %s "checking for $ac_word... " >&6; }
12939if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
12940then :
12941  printf %s "(cached) " >&6
12942else $as_nop
12943  case $ac_pt_PKG_CONFIG in
12944  [\\/]* | ?:[\\/]*)
12945  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12946  ;;
12947  *)
12948  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12949for as_dir in $PATH
12950do
12951  IFS=$as_save_IFS
12952  case $as_dir in #(((
12953    '') as_dir=./ ;;
12954    */) ;;
12955    *) as_dir=$as_dir/ ;;
12956  esac
12957    for ac_exec_ext in '' $ac_executable_extensions; do
12958  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12959    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
12960    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12961    break 2
12962  fi
12963done
12964  done
12965IFS=$as_save_IFS
12966
12967  ;;
12968esac
12969fi
12970ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12971if test -n "$ac_pt_PKG_CONFIG"; then
12972  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12973printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
12974else
12975  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12976printf "%s\n" "no" >&6; }
12977fi
12978
12979  if test "x$ac_pt_PKG_CONFIG" = x; then
12980    PKG_CONFIG=""
12981  else
12982    case $cross_compiling:$ac_tool_warned in
12983yes:)
12984{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12985printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12986ac_tool_warned=yes ;;
12987esac
12988    PKG_CONFIG=$ac_pt_PKG_CONFIG
12989  fi
12990else
12991  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12992fi
12993
12994fi
12995if test -n "$PKG_CONFIG"; then
12996	_pkg_min_version=0.9.0
12997	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12998printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12999	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13000		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13001printf "%s\n" "yes" >&6; }
13002	else
13003		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13004printf "%s\n" "no" >&6; }
13005		PKG_CONFIG=""
13006	fi
13007fi
13008
13009
13010
13011
13012
13013# Check whether --enable-selective-werror was given.
13014if test ${enable_selective_werror+y}
13015then :
13016  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
13017else $as_nop
13018  SELECTIVE_WERROR=yes
13019fi
13020
13021
13022
13023
13024
13025# -v is too short to test reliably with XORG_TESTSET_CFLAG
13026if test "x$SUNCC" = "xyes"; then
13027    BASE_CFLAGS="-v"
13028else
13029    BASE_CFLAGS=""
13030fi
13031
13032# This chunk of warnings were those that existed in the legacy CWARNFLAGS
13033
13034
13035
13036
13037
13038
13039
13040
13041
13042
13043
13044
13045
13046xorg_testset_save_CFLAGS="$CFLAGS"
13047
13048if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13049	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13050	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13051printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13052if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13053then :
13054  printf %s "(cached) " >&6
13055else $as_nop
13056  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13057/* end confdefs.h.  */
13058int i;
13059_ACEOF
13060if ac_fn_c_try_compile "$LINENO"
13061then :
13062  xorg_cv_cc_flag_unknown_warning_option=yes
13063else $as_nop
13064  xorg_cv_cc_flag_unknown_warning_option=no
13065fi
13066rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13067fi
13068{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13069printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13070	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13071	CFLAGS="$xorg_testset_save_CFLAGS"
13072fi
13073
13074if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13075	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13076		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13077	fi
13078	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13079	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13080printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13081if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13082then :
13083  printf %s "(cached) " >&6
13084else $as_nop
13085  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13086/* end confdefs.h.  */
13087int i;
13088_ACEOF
13089if ac_fn_c_try_compile "$LINENO"
13090then :
13091  xorg_cv_cc_flag_unused_command_line_argument=yes
13092else $as_nop
13093  xorg_cv_cc_flag_unused_command_line_argument=no
13094fi
13095rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13096fi
13097{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13098printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13099	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13100	CFLAGS="$xorg_testset_save_CFLAGS"
13101fi
13102
13103found="no"
13104
13105	if test $found = "no" ; then
13106		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13107			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13108		fi
13109
13110		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13111			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13112		fi
13113
13114		CFLAGS="$CFLAGS -Wall"
13115
13116		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
13117printf %s "checking if $CC supports -Wall... " >&6; }
13118		cacheid=xorg_cv_cc_flag__Wall
13119		if eval test \${$cacheid+y}
13120then :
13121  printf %s "(cached) " >&6
13122else $as_nop
13123  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13124/* end confdefs.h.  */
13125int i;
13126int
13127main (void)
13128{
13129
13130  ;
13131  return 0;
13132}
13133_ACEOF
13134if ac_fn_c_try_link "$LINENO"
13135then :
13136  eval $cacheid=yes
13137else $as_nop
13138  eval $cacheid=no
13139fi
13140rm -f core conftest.err conftest.$ac_objext conftest.beam \
13141    conftest$ac_exeext conftest.$ac_ext
13142fi
13143
13144
13145		CFLAGS="$xorg_testset_save_CFLAGS"
13146
13147		eval supported=\$$cacheid
13148		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13149printf "%s\n" "$supported" >&6; }
13150		if test "$supported" = "yes" ; then
13151			BASE_CFLAGS="$BASE_CFLAGS -Wall"
13152			found="yes"
13153		fi
13154	fi
13155
13156
13157
13158
13159
13160
13161
13162
13163
13164
13165
13166
13167
13168
13169
13170xorg_testset_save_CFLAGS="$CFLAGS"
13171
13172if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13173	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13174	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13175printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13176if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13177then :
13178  printf %s "(cached) " >&6
13179else $as_nop
13180  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13181/* end confdefs.h.  */
13182int i;
13183_ACEOF
13184if ac_fn_c_try_compile "$LINENO"
13185then :
13186  xorg_cv_cc_flag_unknown_warning_option=yes
13187else $as_nop
13188  xorg_cv_cc_flag_unknown_warning_option=no
13189fi
13190rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13191fi
13192{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13193printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13194	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13195	CFLAGS="$xorg_testset_save_CFLAGS"
13196fi
13197
13198if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13199	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13200		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13201	fi
13202	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13203	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13204printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13205if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13206then :
13207  printf %s "(cached) " >&6
13208else $as_nop
13209  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13210/* end confdefs.h.  */
13211int i;
13212_ACEOF
13213if ac_fn_c_try_compile "$LINENO"
13214then :
13215  xorg_cv_cc_flag_unused_command_line_argument=yes
13216else $as_nop
13217  xorg_cv_cc_flag_unused_command_line_argument=no
13218fi
13219rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13220fi
13221{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13222printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13223	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13224	CFLAGS="$xorg_testset_save_CFLAGS"
13225fi
13226
13227found="no"
13228
13229	if test $found = "no" ; then
13230		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13231			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13232		fi
13233
13234		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13235			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13236		fi
13237
13238		CFLAGS="$CFLAGS -Wpointer-arith"
13239
13240		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
13241printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
13242		cacheid=xorg_cv_cc_flag__Wpointer_arith
13243		if eval test \${$cacheid+y}
13244then :
13245  printf %s "(cached) " >&6
13246else $as_nop
13247  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13248/* end confdefs.h.  */
13249int i;
13250int
13251main (void)
13252{
13253
13254  ;
13255  return 0;
13256}
13257_ACEOF
13258if ac_fn_c_try_link "$LINENO"
13259then :
13260  eval $cacheid=yes
13261else $as_nop
13262  eval $cacheid=no
13263fi
13264rm -f core conftest.err conftest.$ac_objext conftest.beam \
13265    conftest$ac_exeext conftest.$ac_ext
13266fi
13267
13268
13269		CFLAGS="$xorg_testset_save_CFLAGS"
13270
13271		eval supported=\$$cacheid
13272		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13273printf "%s\n" "$supported" >&6; }
13274		if test "$supported" = "yes" ; then
13275			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
13276			found="yes"
13277		fi
13278	fi
13279
13280
13281
13282
13283
13284
13285
13286
13287
13288
13289
13290
13291
13292
13293
13294xorg_testset_save_CFLAGS="$CFLAGS"
13295
13296if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13297	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13298	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13299printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13300if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13301then :
13302  printf %s "(cached) " >&6
13303else $as_nop
13304  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13305/* end confdefs.h.  */
13306int i;
13307_ACEOF
13308if ac_fn_c_try_compile "$LINENO"
13309then :
13310  xorg_cv_cc_flag_unknown_warning_option=yes
13311else $as_nop
13312  xorg_cv_cc_flag_unknown_warning_option=no
13313fi
13314rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13315fi
13316{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13317printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13318	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13319	CFLAGS="$xorg_testset_save_CFLAGS"
13320fi
13321
13322if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13323	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13324		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13325	fi
13326	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13327	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13328printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13329if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13330then :
13331  printf %s "(cached) " >&6
13332else $as_nop
13333  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13334/* end confdefs.h.  */
13335int i;
13336_ACEOF
13337if ac_fn_c_try_compile "$LINENO"
13338then :
13339  xorg_cv_cc_flag_unused_command_line_argument=yes
13340else $as_nop
13341  xorg_cv_cc_flag_unused_command_line_argument=no
13342fi
13343rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13344fi
13345{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13346printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13347	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13348	CFLAGS="$xorg_testset_save_CFLAGS"
13349fi
13350
13351found="no"
13352
13353	if test $found = "no" ; then
13354		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13355			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13356		fi
13357
13358		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13359			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13360		fi
13361
13362		CFLAGS="$CFLAGS -Wmissing-declarations"
13363
13364		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
13365printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
13366		cacheid=xorg_cv_cc_flag__Wmissing_declarations
13367		if eval test \${$cacheid+y}
13368then :
13369  printf %s "(cached) " >&6
13370else $as_nop
13371  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13372/* end confdefs.h.  */
13373int i;
13374int
13375main (void)
13376{
13377
13378  ;
13379  return 0;
13380}
13381_ACEOF
13382if ac_fn_c_try_link "$LINENO"
13383then :
13384  eval $cacheid=yes
13385else $as_nop
13386  eval $cacheid=no
13387fi
13388rm -f core conftest.err conftest.$ac_objext conftest.beam \
13389    conftest$ac_exeext conftest.$ac_ext
13390fi
13391
13392
13393		CFLAGS="$xorg_testset_save_CFLAGS"
13394
13395		eval supported=\$$cacheid
13396		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13397printf "%s\n" "$supported" >&6; }
13398		if test "$supported" = "yes" ; then
13399			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
13400			found="yes"
13401		fi
13402	fi
13403
13404
13405
13406
13407
13408
13409
13410
13411
13412
13413
13414
13415
13416
13417
13418xorg_testset_save_CFLAGS="$CFLAGS"
13419
13420if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13421	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13422	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13423printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13424if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13425then :
13426  printf %s "(cached) " >&6
13427else $as_nop
13428  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13429/* end confdefs.h.  */
13430int i;
13431_ACEOF
13432if ac_fn_c_try_compile "$LINENO"
13433then :
13434  xorg_cv_cc_flag_unknown_warning_option=yes
13435else $as_nop
13436  xorg_cv_cc_flag_unknown_warning_option=no
13437fi
13438rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13439fi
13440{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13441printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13442	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13443	CFLAGS="$xorg_testset_save_CFLAGS"
13444fi
13445
13446if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13447	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13448		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13449	fi
13450	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13451	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13452printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13453if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13454then :
13455  printf %s "(cached) " >&6
13456else $as_nop
13457  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13458/* end confdefs.h.  */
13459int i;
13460_ACEOF
13461if ac_fn_c_try_compile "$LINENO"
13462then :
13463  xorg_cv_cc_flag_unused_command_line_argument=yes
13464else $as_nop
13465  xorg_cv_cc_flag_unused_command_line_argument=no
13466fi
13467rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13468fi
13469{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13470printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13471	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13472	CFLAGS="$xorg_testset_save_CFLAGS"
13473fi
13474
13475found="no"
13476
13477	if test $found = "no" ; then
13478		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13479			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13480		fi
13481
13482		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13483			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13484		fi
13485
13486		CFLAGS="$CFLAGS -Wformat=2"
13487
13488		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
13489printf %s "checking if $CC supports -Wformat=2... " >&6; }
13490		cacheid=xorg_cv_cc_flag__Wformat_2
13491		if eval test \${$cacheid+y}
13492then :
13493  printf %s "(cached) " >&6
13494else $as_nop
13495  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13496/* end confdefs.h.  */
13497int i;
13498int
13499main (void)
13500{
13501
13502  ;
13503  return 0;
13504}
13505_ACEOF
13506if ac_fn_c_try_link "$LINENO"
13507then :
13508  eval $cacheid=yes
13509else $as_nop
13510  eval $cacheid=no
13511fi
13512rm -f core conftest.err conftest.$ac_objext conftest.beam \
13513    conftest$ac_exeext conftest.$ac_ext
13514fi
13515
13516
13517		CFLAGS="$xorg_testset_save_CFLAGS"
13518
13519		eval supported=\$$cacheid
13520		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13521printf "%s\n" "$supported" >&6; }
13522		if test "$supported" = "yes" ; then
13523			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
13524			found="yes"
13525		fi
13526	fi
13527
13528	if test $found = "no" ; then
13529		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13530			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13531		fi
13532
13533		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13534			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13535		fi
13536
13537		CFLAGS="$CFLAGS -Wformat"
13538
13539		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
13540printf %s "checking if $CC supports -Wformat... " >&6; }
13541		cacheid=xorg_cv_cc_flag__Wformat
13542		if eval test \${$cacheid+y}
13543then :
13544  printf %s "(cached) " >&6
13545else $as_nop
13546  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13547/* end confdefs.h.  */
13548int i;
13549int
13550main (void)
13551{
13552
13553  ;
13554  return 0;
13555}
13556_ACEOF
13557if ac_fn_c_try_link "$LINENO"
13558then :
13559  eval $cacheid=yes
13560else $as_nop
13561  eval $cacheid=no
13562fi
13563rm -f core conftest.err conftest.$ac_objext conftest.beam \
13564    conftest$ac_exeext conftest.$ac_ext
13565fi
13566
13567
13568		CFLAGS="$xorg_testset_save_CFLAGS"
13569
13570		eval supported=\$$cacheid
13571		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13572printf "%s\n" "$supported" >&6; }
13573		if test "$supported" = "yes" ; then
13574			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
13575			found="yes"
13576		fi
13577	fi
13578
13579
13580
13581
13582
13583
13584
13585
13586
13587
13588
13589
13590
13591
13592
13593
13594
13595xorg_testset_save_CFLAGS="$CFLAGS"
13596
13597if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13598	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13599	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13600printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13601if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13602then :
13603  printf %s "(cached) " >&6
13604else $as_nop
13605  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13606/* end confdefs.h.  */
13607int i;
13608_ACEOF
13609if ac_fn_c_try_compile "$LINENO"
13610then :
13611  xorg_cv_cc_flag_unknown_warning_option=yes
13612else $as_nop
13613  xorg_cv_cc_flag_unknown_warning_option=no
13614fi
13615rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13616fi
13617{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13618printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13619	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13620	CFLAGS="$xorg_testset_save_CFLAGS"
13621fi
13622
13623if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13624	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13625		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13626	fi
13627	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13628	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13629printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13630if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13631then :
13632  printf %s "(cached) " >&6
13633else $as_nop
13634  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13635/* end confdefs.h.  */
13636int i;
13637_ACEOF
13638if ac_fn_c_try_compile "$LINENO"
13639then :
13640  xorg_cv_cc_flag_unused_command_line_argument=yes
13641else $as_nop
13642  xorg_cv_cc_flag_unused_command_line_argument=no
13643fi
13644rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13645fi
13646{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13647printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13648	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13649	CFLAGS="$xorg_testset_save_CFLAGS"
13650fi
13651
13652found="no"
13653
13654	if test $found = "no" ; then
13655		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13656			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13657		fi
13658
13659		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13660			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13661		fi
13662
13663		CFLAGS="$CFLAGS -Wstrict-prototypes"
13664
13665		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
13666printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
13667		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
13668		if eval test \${$cacheid+y}
13669then :
13670  printf %s "(cached) " >&6
13671else $as_nop
13672  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13673/* end confdefs.h.  */
13674int i;
13675int
13676main (void)
13677{
13678
13679  ;
13680  return 0;
13681}
13682_ACEOF
13683if ac_fn_c_try_link "$LINENO"
13684then :
13685  eval $cacheid=yes
13686else $as_nop
13687  eval $cacheid=no
13688fi
13689rm -f core conftest.err conftest.$ac_objext conftest.beam \
13690    conftest$ac_exeext conftest.$ac_ext
13691fi
13692
13693
13694		CFLAGS="$xorg_testset_save_CFLAGS"
13695
13696		eval supported=\$$cacheid
13697		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13698printf "%s\n" "$supported" >&6; }
13699		if test "$supported" = "yes" ; then
13700			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
13701			found="yes"
13702		fi
13703	fi
13704
13705
13706
13707
13708
13709
13710
13711
13712
13713
13714
13715
13716
13717
13718
13719xorg_testset_save_CFLAGS="$CFLAGS"
13720
13721if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13722	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13723	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13724printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13725if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13726then :
13727  printf %s "(cached) " >&6
13728else $as_nop
13729  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13730/* end confdefs.h.  */
13731int i;
13732_ACEOF
13733if ac_fn_c_try_compile "$LINENO"
13734then :
13735  xorg_cv_cc_flag_unknown_warning_option=yes
13736else $as_nop
13737  xorg_cv_cc_flag_unknown_warning_option=no
13738fi
13739rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13740fi
13741{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13742printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13743	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13744	CFLAGS="$xorg_testset_save_CFLAGS"
13745fi
13746
13747if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13748	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13749		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13750	fi
13751	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13752	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13753printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13754if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13755then :
13756  printf %s "(cached) " >&6
13757else $as_nop
13758  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13759/* end confdefs.h.  */
13760int i;
13761_ACEOF
13762if ac_fn_c_try_compile "$LINENO"
13763then :
13764  xorg_cv_cc_flag_unused_command_line_argument=yes
13765else $as_nop
13766  xorg_cv_cc_flag_unused_command_line_argument=no
13767fi
13768rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13769fi
13770{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13771printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13772	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13773	CFLAGS="$xorg_testset_save_CFLAGS"
13774fi
13775
13776found="no"
13777
13778	if test $found = "no" ; then
13779		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13780			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13781		fi
13782
13783		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13784			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13785		fi
13786
13787		CFLAGS="$CFLAGS -Wmissing-prototypes"
13788
13789		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
13790printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
13791		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
13792		if eval test \${$cacheid+y}
13793then :
13794  printf %s "(cached) " >&6
13795else $as_nop
13796  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13797/* end confdefs.h.  */
13798int i;
13799int
13800main (void)
13801{
13802
13803  ;
13804  return 0;
13805}
13806_ACEOF
13807if ac_fn_c_try_link "$LINENO"
13808then :
13809  eval $cacheid=yes
13810else $as_nop
13811  eval $cacheid=no
13812fi
13813rm -f core conftest.err conftest.$ac_objext conftest.beam \
13814    conftest$ac_exeext conftest.$ac_ext
13815fi
13816
13817
13818		CFLAGS="$xorg_testset_save_CFLAGS"
13819
13820		eval supported=\$$cacheid
13821		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13822printf "%s\n" "$supported" >&6; }
13823		if test "$supported" = "yes" ; then
13824			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
13825			found="yes"
13826		fi
13827	fi
13828
13829
13830
13831
13832
13833
13834
13835
13836
13837
13838
13839
13840
13841
13842
13843xorg_testset_save_CFLAGS="$CFLAGS"
13844
13845if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13846	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13847	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13848printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13849if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13850then :
13851  printf %s "(cached) " >&6
13852else $as_nop
13853  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13854/* end confdefs.h.  */
13855int i;
13856_ACEOF
13857if ac_fn_c_try_compile "$LINENO"
13858then :
13859  xorg_cv_cc_flag_unknown_warning_option=yes
13860else $as_nop
13861  xorg_cv_cc_flag_unknown_warning_option=no
13862fi
13863rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13864fi
13865{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13866printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13867	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13868	CFLAGS="$xorg_testset_save_CFLAGS"
13869fi
13870
13871if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13872	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13873		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13874	fi
13875	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13876	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13877printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13878if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13879then :
13880  printf %s "(cached) " >&6
13881else $as_nop
13882  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13883/* end confdefs.h.  */
13884int i;
13885_ACEOF
13886if ac_fn_c_try_compile "$LINENO"
13887then :
13888  xorg_cv_cc_flag_unused_command_line_argument=yes
13889else $as_nop
13890  xorg_cv_cc_flag_unused_command_line_argument=no
13891fi
13892rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13893fi
13894{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13895printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13896	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13897	CFLAGS="$xorg_testset_save_CFLAGS"
13898fi
13899
13900found="no"
13901
13902	if test $found = "no" ; then
13903		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13904			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13905		fi
13906
13907		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13908			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13909		fi
13910
13911		CFLAGS="$CFLAGS -Wnested-externs"
13912
13913		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
13914printf %s "checking if $CC supports -Wnested-externs... " >&6; }
13915		cacheid=xorg_cv_cc_flag__Wnested_externs
13916		if eval test \${$cacheid+y}
13917then :
13918  printf %s "(cached) " >&6
13919else $as_nop
13920  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13921/* end confdefs.h.  */
13922int i;
13923int
13924main (void)
13925{
13926
13927  ;
13928  return 0;
13929}
13930_ACEOF
13931if ac_fn_c_try_link "$LINENO"
13932then :
13933  eval $cacheid=yes
13934else $as_nop
13935  eval $cacheid=no
13936fi
13937rm -f core conftest.err conftest.$ac_objext conftest.beam \
13938    conftest$ac_exeext conftest.$ac_ext
13939fi
13940
13941
13942		CFLAGS="$xorg_testset_save_CFLAGS"
13943
13944		eval supported=\$$cacheid
13945		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13946printf "%s\n" "$supported" >&6; }
13947		if test "$supported" = "yes" ; then
13948			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
13949			found="yes"
13950		fi
13951	fi
13952
13953
13954
13955
13956
13957
13958
13959
13960
13961
13962
13963
13964
13965
13966
13967xorg_testset_save_CFLAGS="$CFLAGS"
13968
13969if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13970	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13971	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13972printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13973if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13974then :
13975  printf %s "(cached) " >&6
13976else $as_nop
13977  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13978/* end confdefs.h.  */
13979int i;
13980_ACEOF
13981if ac_fn_c_try_compile "$LINENO"
13982then :
13983  xorg_cv_cc_flag_unknown_warning_option=yes
13984else $as_nop
13985  xorg_cv_cc_flag_unknown_warning_option=no
13986fi
13987rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13988fi
13989{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13990printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13991	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13992	CFLAGS="$xorg_testset_save_CFLAGS"
13993fi
13994
13995if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13996	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13997		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13998	fi
13999	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14000	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14001printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14002if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14003then :
14004  printf %s "(cached) " >&6
14005else $as_nop
14006  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14007/* end confdefs.h.  */
14008int i;
14009_ACEOF
14010if ac_fn_c_try_compile "$LINENO"
14011then :
14012  xorg_cv_cc_flag_unused_command_line_argument=yes
14013else $as_nop
14014  xorg_cv_cc_flag_unused_command_line_argument=no
14015fi
14016rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14017fi
14018{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14019printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14020	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14021	CFLAGS="$xorg_testset_save_CFLAGS"
14022fi
14023
14024found="no"
14025
14026	if test $found = "no" ; then
14027		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14028			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14029		fi
14030
14031		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14032			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14033		fi
14034
14035		CFLAGS="$CFLAGS -Wbad-function-cast"
14036
14037		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
14038printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
14039		cacheid=xorg_cv_cc_flag__Wbad_function_cast
14040		if eval test \${$cacheid+y}
14041then :
14042  printf %s "(cached) " >&6
14043else $as_nop
14044  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14045/* end confdefs.h.  */
14046int i;
14047int
14048main (void)
14049{
14050
14051  ;
14052  return 0;
14053}
14054_ACEOF
14055if ac_fn_c_try_link "$LINENO"
14056then :
14057  eval $cacheid=yes
14058else $as_nop
14059  eval $cacheid=no
14060fi
14061rm -f core conftest.err conftest.$ac_objext conftest.beam \
14062    conftest$ac_exeext conftest.$ac_ext
14063fi
14064
14065
14066		CFLAGS="$xorg_testset_save_CFLAGS"
14067
14068		eval supported=\$$cacheid
14069		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14070printf "%s\n" "$supported" >&6; }
14071		if test "$supported" = "yes" ; then
14072			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
14073			found="yes"
14074		fi
14075	fi
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088
14089
14090
14091xorg_testset_save_CFLAGS="$CFLAGS"
14092
14093if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14094	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14095	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14096printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14097if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14098then :
14099  printf %s "(cached) " >&6
14100else $as_nop
14101  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14102/* end confdefs.h.  */
14103int i;
14104_ACEOF
14105if ac_fn_c_try_compile "$LINENO"
14106then :
14107  xorg_cv_cc_flag_unknown_warning_option=yes
14108else $as_nop
14109  xorg_cv_cc_flag_unknown_warning_option=no
14110fi
14111rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14112fi
14113{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14114printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14115	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14116	CFLAGS="$xorg_testset_save_CFLAGS"
14117fi
14118
14119if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14120	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14121		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14122	fi
14123	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14124	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14125printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14126if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14127then :
14128  printf %s "(cached) " >&6
14129else $as_nop
14130  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14131/* end confdefs.h.  */
14132int i;
14133_ACEOF
14134if ac_fn_c_try_compile "$LINENO"
14135then :
14136  xorg_cv_cc_flag_unused_command_line_argument=yes
14137else $as_nop
14138  xorg_cv_cc_flag_unused_command_line_argument=no
14139fi
14140rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14141fi
14142{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14143printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14144	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14145	CFLAGS="$xorg_testset_save_CFLAGS"
14146fi
14147
14148found="no"
14149
14150	if test $found = "no" ; then
14151		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14152			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14153		fi
14154
14155		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14156			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14157		fi
14158
14159		CFLAGS="$CFLAGS -Wold-style-definition"
14160
14161		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
14162printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
14163		cacheid=xorg_cv_cc_flag__Wold_style_definition
14164		if eval test \${$cacheid+y}
14165then :
14166  printf %s "(cached) " >&6
14167else $as_nop
14168  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14169/* end confdefs.h.  */
14170int i;
14171int
14172main (void)
14173{
14174
14175  ;
14176  return 0;
14177}
14178_ACEOF
14179if ac_fn_c_try_link "$LINENO"
14180then :
14181  eval $cacheid=yes
14182else $as_nop
14183  eval $cacheid=no
14184fi
14185rm -f core conftest.err conftest.$ac_objext conftest.beam \
14186    conftest$ac_exeext conftest.$ac_ext
14187fi
14188
14189
14190		CFLAGS="$xorg_testset_save_CFLAGS"
14191
14192		eval supported=\$$cacheid
14193		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14194printf "%s\n" "$supported" >&6; }
14195		if test "$supported" = "yes" ; then
14196			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
14197			found="yes"
14198		fi
14199	fi
14200
14201	if test $found = "no" ; then
14202		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14203			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14204		fi
14205
14206		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14207			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14208		fi
14209
14210		CFLAGS="$CFLAGS -fd"
14211
14212		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
14213printf %s "checking if $CC supports -fd... " >&6; }
14214		cacheid=xorg_cv_cc_flag__fd
14215		if eval test \${$cacheid+y}
14216then :
14217  printf %s "(cached) " >&6
14218else $as_nop
14219  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14220/* end confdefs.h.  */
14221int i;
14222int
14223main (void)
14224{
14225
14226  ;
14227  return 0;
14228}
14229_ACEOF
14230if ac_fn_c_try_link "$LINENO"
14231then :
14232  eval $cacheid=yes
14233else $as_nop
14234  eval $cacheid=no
14235fi
14236rm -f core conftest.err conftest.$ac_objext conftest.beam \
14237    conftest$ac_exeext conftest.$ac_ext
14238fi
14239
14240
14241		CFLAGS="$xorg_testset_save_CFLAGS"
14242
14243		eval supported=\$$cacheid
14244		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14245printf "%s\n" "$supported" >&6; }
14246		if test "$supported" = "yes" ; then
14247			BASE_CFLAGS="$BASE_CFLAGS -fd"
14248			found="yes"
14249		fi
14250	fi
14251
14252
14253
14254
14255
14256
14257
14258
14259
14260
14261
14262
14263
14264
14265
14266xorg_testset_save_CFLAGS="$CFLAGS"
14267
14268if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14269	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14270	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14271printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14272if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14273then :
14274  printf %s "(cached) " >&6
14275else $as_nop
14276  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14277/* end confdefs.h.  */
14278int i;
14279_ACEOF
14280if ac_fn_c_try_compile "$LINENO"
14281then :
14282  xorg_cv_cc_flag_unknown_warning_option=yes
14283else $as_nop
14284  xorg_cv_cc_flag_unknown_warning_option=no
14285fi
14286rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14287fi
14288{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14289printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14290	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14291	CFLAGS="$xorg_testset_save_CFLAGS"
14292fi
14293
14294if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14295	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14296		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14297	fi
14298	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14299	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14300printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14301if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14302then :
14303  printf %s "(cached) " >&6
14304else $as_nop
14305  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14306/* end confdefs.h.  */
14307int i;
14308_ACEOF
14309if ac_fn_c_try_compile "$LINENO"
14310then :
14311  xorg_cv_cc_flag_unused_command_line_argument=yes
14312else $as_nop
14313  xorg_cv_cc_flag_unused_command_line_argument=no
14314fi
14315rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14316fi
14317{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14318printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14319	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14320	CFLAGS="$xorg_testset_save_CFLAGS"
14321fi
14322
14323found="no"
14324
14325	if test $found = "no" ; then
14326		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14327			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14328		fi
14329
14330		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14331			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14332		fi
14333
14334		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
14335
14336		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
14337printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
14338		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
14339		if eval test \${$cacheid+y}
14340then :
14341  printf %s "(cached) " >&6
14342else $as_nop
14343  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14344/* end confdefs.h.  */
14345int i;
14346int
14347main (void)
14348{
14349
14350  ;
14351  return 0;
14352}
14353_ACEOF
14354if ac_fn_c_try_link "$LINENO"
14355then :
14356  eval $cacheid=yes
14357else $as_nop
14358  eval $cacheid=no
14359fi
14360rm -f core conftest.err conftest.$ac_objext conftest.beam \
14361    conftest$ac_exeext conftest.$ac_ext
14362fi
14363
14364
14365		CFLAGS="$xorg_testset_save_CFLAGS"
14366
14367		eval supported=\$$cacheid
14368		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14369printf "%s\n" "$supported" >&6; }
14370		if test "$supported" = "yes" ; then
14371			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
14372			found="yes"
14373		fi
14374	fi
14375
14376
14377
14378
14379
14380# This chunk adds additional warnings that could catch undesired effects.
14381
14382
14383
14384
14385
14386
14387
14388
14389
14390
14391
14392
14393
14394xorg_testset_save_CFLAGS="$CFLAGS"
14395
14396if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14397	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14398	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14399printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14400if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14401then :
14402  printf %s "(cached) " >&6
14403else $as_nop
14404  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14405/* end confdefs.h.  */
14406int i;
14407_ACEOF
14408if ac_fn_c_try_compile "$LINENO"
14409then :
14410  xorg_cv_cc_flag_unknown_warning_option=yes
14411else $as_nop
14412  xorg_cv_cc_flag_unknown_warning_option=no
14413fi
14414rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14415fi
14416{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14417printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14418	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14419	CFLAGS="$xorg_testset_save_CFLAGS"
14420fi
14421
14422if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14423	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14424		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14425	fi
14426	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14427	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14428printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14429if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14430then :
14431  printf %s "(cached) " >&6
14432else $as_nop
14433  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14434/* end confdefs.h.  */
14435int i;
14436_ACEOF
14437if ac_fn_c_try_compile "$LINENO"
14438then :
14439  xorg_cv_cc_flag_unused_command_line_argument=yes
14440else $as_nop
14441  xorg_cv_cc_flag_unused_command_line_argument=no
14442fi
14443rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14444fi
14445{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14446printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14447	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14448	CFLAGS="$xorg_testset_save_CFLAGS"
14449fi
14450
14451found="no"
14452
14453	if test $found = "no" ; then
14454		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14455			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14456		fi
14457
14458		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14459			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14460		fi
14461
14462		CFLAGS="$CFLAGS -Wunused"
14463
14464		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
14465printf %s "checking if $CC supports -Wunused... " >&6; }
14466		cacheid=xorg_cv_cc_flag__Wunused
14467		if eval test \${$cacheid+y}
14468then :
14469  printf %s "(cached) " >&6
14470else $as_nop
14471  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14472/* end confdefs.h.  */
14473int i;
14474int
14475main (void)
14476{
14477
14478  ;
14479  return 0;
14480}
14481_ACEOF
14482if ac_fn_c_try_link "$LINENO"
14483then :
14484  eval $cacheid=yes
14485else $as_nop
14486  eval $cacheid=no
14487fi
14488rm -f core conftest.err conftest.$ac_objext conftest.beam \
14489    conftest$ac_exeext conftest.$ac_ext
14490fi
14491
14492
14493		CFLAGS="$xorg_testset_save_CFLAGS"
14494
14495		eval supported=\$$cacheid
14496		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14497printf "%s\n" "$supported" >&6; }
14498		if test "$supported" = "yes" ; then
14499			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
14500			found="yes"
14501		fi
14502	fi
14503
14504
14505
14506
14507
14508
14509
14510
14511
14512
14513
14514
14515
14516
14517
14518xorg_testset_save_CFLAGS="$CFLAGS"
14519
14520if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14521	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14522	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14523printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14524if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14525then :
14526  printf %s "(cached) " >&6
14527else $as_nop
14528  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14529/* end confdefs.h.  */
14530int i;
14531_ACEOF
14532if ac_fn_c_try_compile "$LINENO"
14533then :
14534  xorg_cv_cc_flag_unknown_warning_option=yes
14535else $as_nop
14536  xorg_cv_cc_flag_unknown_warning_option=no
14537fi
14538rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14539fi
14540{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14541printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14542	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14543	CFLAGS="$xorg_testset_save_CFLAGS"
14544fi
14545
14546if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14547	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14548		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14549	fi
14550	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14551	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14552printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14553if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14554then :
14555  printf %s "(cached) " >&6
14556else $as_nop
14557  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14558/* end confdefs.h.  */
14559int i;
14560_ACEOF
14561if ac_fn_c_try_compile "$LINENO"
14562then :
14563  xorg_cv_cc_flag_unused_command_line_argument=yes
14564else $as_nop
14565  xorg_cv_cc_flag_unused_command_line_argument=no
14566fi
14567rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14568fi
14569{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14570printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14571	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14572	CFLAGS="$xorg_testset_save_CFLAGS"
14573fi
14574
14575found="no"
14576
14577	if test $found = "no" ; then
14578		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14579			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14580		fi
14581
14582		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14583			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14584		fi
14585
14586		CFLAGS="$CFLAGS -Wuninitialized"
14587
14588		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
14589printf %s "checking if $CC supports -Wuninitialized... " >&6; }
14590		cacheid=xorg_cv_cc_flag__Wuninitialized
14591		if eval test \${$cacheid+y}
14592then :
14593  printf %s "(cached) " >&6
14594else $as_nop
14595  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14596/* end confdefs.h.  */
14597int i;
14598int
14599main (void)
14600{
14601
14602  ;
14603  return 0;
14604}
14605_ACEOF
14606if ac_fn_c_try_link "$LINENO"
14607then :
14608  eval $cacheid=yes
14609else $as_nop
14610  eval $cacheid=no
14611fi
14612rm -f core conftest.err conftest.$ac_objext conftest.beam \
14613    conftest$ac_exeext conftest.$ac_ext
14614fi
14615
14616
14617		CFLAGS="$xorg_testset_save_CFLAGS"
14618
14619		eval supported=\$$cacheid
14620		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14621printf "%s\n" "$supported" >&6; }
14622		if test "$supported" = "yes" ; then
14623			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
14624			found="yes"
14625		fi
14626	fi
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642xorg_testset_save_CFLAGS="$CFLAGS"
14643
14644if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14645	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14646	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14647printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14648if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14649then :
14650  printf %s "(cached) " >&6
14651else $as_nop
14652  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14653/* end confdefs.h.  */
14654int i;
14655_ACEOF
14656if ac_fn_c_try_compile "$LINENO"
14657then :
14658  xorg_cv_cc_flag_unknown_warning_option=yes
14659else $as_nop
14660  xorg_cv_cc_flag_unknown_warning_option=no
14661fi
14662rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14663fi
14664{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14665printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14666	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14667	CFLAGS="$xorg_testset_save_CFLAGS"
14668fi
14669
14670if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14671	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14672		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14673	fi
14674	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14675	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14676printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14677if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14678then :
14679  printf %s "(cached) " >&6
14680else $as_nop
14681  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14682/* end confdefs.h.  */
14683int i;
14684_ACEOF
14685if ac_fn_c_try_compile "$LINENO"
14686then :
14687  xorg_cv_cc_flag_unused_command_line_argument=yes
14688else $as_nop
14689  xorg_cv_cc_flag_unused_command_line_argument=no
14690fi
14691rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14692fi
14693{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14694printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14695	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14696	CFLAGS="$xorg_testset_save_CFLAGS"
14697fi
14698
14699found="no"
14700
14701	if test $found = "no" ; then
14702		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14703			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14704		fi
14705
14706		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14707			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14708		fi
14709
14710		CFLAGS="$CFLAGS -Wshadow"
14711
14712		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
14713printf %s "checking if $CC supports -Wshadow... " >&6; }
14714		cacheid=xorg_cv_cc_flag__Wshadow
14715		if eval test \${$cacheid+y}
14716then :
14717  printf %s "(cached) " >&6
14718else $as_nop
14719  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14720/* end confdefs.h.  */
14721int i;
14722int
14723main (void)
14724{
14725
14726  ;
14727  return 0;
14728}
14729_ACEOF
14730if ac_fn_c_try_link "$LINENO"
14731then :
14732  eval $cacheid=yes
14733else $as_nop
14734  eval $cacheid=no
14735fi
14736rm -f core conftest.err conftest.$ac_objext conftest.beam \
14737    conftest$ac_exeext conftest.$ac_ext
14738fi
14739
14740
14741		CFLAGS="$xorg_testset_save_CFLAGS"
14742
14743		eval supported=\$$cacheid
14744		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14745printf "%s\n" "$supported" >&6; }
14746		if test "$supported" = "yes" ; then
14747			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
14748			found="yes"
14749		fi
14750	fi
14751
14752
14753
14754
14755
14756
14757
14758
14759
14760
14761
14762
14763
14764
14765
14766xorg_testset_save_CFLAGS="$CFLAGS"
14767
14768if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14769	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14770	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14771printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14772if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14773then :
14774  printf %s "(cached) " >&6
14775else $as_nop
14776  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14777/* end confdefs.h.  */
14778int i;
14779_ACEOF
14780if ac_fn_c_try_compile "$LINENO"
14781then :
14782  xorg_cv_cc_flag_unknown_warning_option=yes
14783else $as_nop
14784  xorg_cv_cc_flag_unknown_warning_option=no
14785fi
14786rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14787fi
14788{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14789printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14790	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14791	CFLAGS="$xorg_testset_save_CFLAGS"
14792fi
14793
14794if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14795	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14796		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14797	fi
14798	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14799	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14800printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14801if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14802then :
14803  printf %s "(cached) " >&6
14804else $as_nop
14805  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14806/* end confdefs.h.  */
14807int i;
14808_ACEOF
14809if ac_fn_c_try_compile "$LINENO"
14810then :
14811  xorg_cv_cc_flag_unused_command_line_argument=yes
14812else $as_nop
14813  xorg_cv_cc_flag_unused_command_line_argument=no
14814fi
14815rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14816fi
14817{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14818printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14819	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14820	CFLAGS="$xorg_testset_save_CFLAGS"
14821fi
14822
14823found="no"
14824
14825	if test $found = "no" ; then
14826		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14827			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14828		fi
14829
14830		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14831			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14832		fi
14833
14834		CFLAGS="$CFLAGS -Wmissing-noreturn"
14835
14836		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
14837printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
14838		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
14839		if eval test \${$cacheid+y}
14840then :
14841  printf %s "(cached) " >&6
14842else $as_nop
14843  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14844/* end confdefs.h.  */
14845int i;
14846int
14847main (void)
14848{
14849
14850  ;
14851  return 0;
14852}
14853_ACEOF
14854if ac_fn_c_try_link "$LINENO"
14855then :
14856  eval $cacheid=yes
14857else $as_nop
14858  eval $cacheid=no
14859fi
14860rm -f core conftest.err conftest.$ac_objext conftest.beam \
14861    conftest$ac_exeext conftest.$ac_ext
14862fi
14863
14864
14865		CFLAGS="$xorg_testset_save_CFLAGS"
14866
14867		eval supported=\$$cacheid
14868		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14869printf "%s\n" "$supported" >&6; }
14870		if test "$supported" = "yes" ; then
14871			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
14872			found="yes"
14873		fi
14874	fi
14875
14876
14877
14878
14879
14880
14881
14882
14883
14884
14885
14886
14887
14888
14889
14890xorg_testset_save_CFLAGS="$CFLAGS"
14891
14892if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14893	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14894	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14895printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14896if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14897then :
14898  printf %s "(cached) " >&6
14899else $as_nop
14900  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14901/* end confdefs.h.  */
14902int i;
14903_ACEOF
14904if ac_fn_c_try_compile "$LINENO"
14905then :
14906  xorg_cv_cc_flag_unknown_warning_option=yes
14907else $as_nop
14908  xorg_cv_cc_flag_unknown_warning_option=no
14909fi
14910rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14911fi
14912{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14913printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14914	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14915	CFLAGS="$xorg_testset_save_CFLAGS"
14916fi
14917
14918if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14919	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14920		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14921	fi
14922	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14923	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14924printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14925if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14926then :
14927  printf %s "(cached) " >&6
14928else $as_nop
14929  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14930/* end confdefs.h.  */
14931int i;
14932_ACEOF
14933if ac_fn_c_try_compile "$LINENO"
14934then :
14935  xorg_cv_cc_flag_unused_command_line_argument=yes
14936else $as_nop
14937  xorg_cv_cc_flag_unused_command_line_argument=no
14938fi
14939rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14940fi
14941{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14942printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14943	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14944	CFLAGS="$xorg_testset_save_CFLAGS"
14945fi
14946
14947found="no"
14948
14949	if test $found = "no" ; then
14950		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14951			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14952		fi
14953
14954		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14955			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14956		fi
14957
14958		CFLAGS="$CFLAGS -Wmissing-format-attribute"
14959
14960		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
14961printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
14962		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
14963		if eval test \${$cacheid+y}
14964then :
14965  printf %s "(cached) " >&6
14966else $as_nop
14967  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14968/* end confdefs.h.  */
14969int i;
14970int
14971main (void)
14972{
14973
14974  ;
14975  return 0;
14976}
14977_ACEOF
14978if ac_fn_c_try_link "$LINENO"
14979then :
14980  eval $cacheid=yes
14981else $as_nop
14982  eval $cacheid=no
14983fi
14984rm -f core conftest.err conftest.$ac_objext conftest.beam \
14985    conftest$ac_exeext conftest.$ac_ext
14986fi
14987
14988
14989		CFLAGS="$xorg_testset_save_CFLAGS"
14990
14991		eval supported=\$$cacheid
14992		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14993printf "%s\n" "$supported" >&6; }
14994		if test "$supported" = "yes" ; then
14995			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
14996			found="yes"
14997		fi
14998	fi
14999
15000
15001
15002
15003
15004
15005
15006
15007
15008
15009
15010
15011
15012
15013
15014xorg_testset_save_CFLAGS="$CFLAGS"
15015
15016if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15017	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15018	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15019printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15020if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15021then :
15022  printf %s "(cached) " >&6
15023else $as_nop
15024  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15025/* end confdefs.h.  */
15026int i;
15027_ACEOF
15028if ac_fn_c_try_compile "$LINENO"
15029then :
15030  xorg_cv_cc_flag_unknown_warning_option=yes
15031else $as_nop
15032  xorg_cv_cc_flag_unknown_warning_option=no
15033fi
15034rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15035fi
15036{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15037printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15038	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15039	CFLAGS="$xorg_testset_save_CFLAGS"
15040fi
15041
15042if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15043	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15044		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15045	fi
15046	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15047	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15048printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15049if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15050then :
15051  printf %s "(cached) " >&6
15052else $as_nop
15053  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15054/* end confdefs.h.  */
15055int i;
15056_ACEOF
15057if ac_fn_c_try_compile "$LINENO"
15058then :
15059  xorg_cv_cc_flag_unused_command_line_argument=yes
15060else $as_nop
15061  xorg_cv_cc_flag_unused_command_line_argument=no
15062fi
15063rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15064fi
15065{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15066printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15067	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15068	CFLAGS="$xorg_testset_save_CFLAGS"
15069fi
15070
15071found="no"
15072
15073	if test $found = "no" ; then
15074		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15075			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15076		fi
15077
15078		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15079			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15080		fi
15081
15082		CFLAGS="$CFLAGS -Wredundant-decls"
15083
15084		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
15085printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
15086		cacheid=xorg_cv_cc_flag__Wredundant_decls
15087		if eval test \${$cacheid+y}
15088then :
15089  printf %s "(cached) " >&6
15090else $as_nop
15091  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15092/* end confdefs.h.  */
15093int i;
15094int
15095main (void)
15096{
15097
15098  ;
15099  return 0;
15100}
15101_ACEOF
15102if ac_fn_c_try_link "$LINENO"
15103then :
15104  eval $cacheid=yes
15105else $as_nop
15106  eval $cacheid=no
15107fi
15108rm -f core conftest.err conftest.$ac_objext conftest.beam \
15109    conftest$ac_exeext conftest.$ac_ext
15110fi
15111
15112
15113		CFLAGS="$xorg_testset_save_CFLAGS"
15114
15115		eval supported=\$$cacheid
15116		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15117printf "%s\n" "$supported" >&6; }
15118		if test "$supported" = "yes" ; then
15119			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
15120			found="yes"
15121		fi
15122	fi
15123
15124
15125
15126
15127
15128
15129
15130
15131
15132
15133
15134
15135
15136
15137
15138xorg_testset_save_CFLAGS="$CFLAGS"
15139
15140if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15141	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15142	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15143printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15144if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15145then :
15146  printf %s "(cached) " >&6
15147else $as_nop
15148  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15149/* end confdefs.h.  */
15150int i;
15151_ACEOF
15152if ac_fn_c_try_compile "$LINENO"
15153then :
15154  xorg_cv_cc_flag_unknown_warning_option=yes
15155else $as_nop
15156  xorg_cv_cc_flag_unknown_warning_option=no
15157fi
15158rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15159fi
15160{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15161printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15162	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15163	CFLAGS="$xorg_testset_save_CFLAGS"
15164fi
15165
15166if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15167	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15168		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15169	fi
15170	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15171	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15172printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15173if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15174then :
15175  printf %s "(cached) " >&6
15176else $as_nop
15177  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15178/* end confdefs.h.  */
15179int i;
15180_ACEOF
15181if ac_fn_c_try_compile "$LINENO"
15182then :
15183  xorg_cv_cc_flag_unused_command_line_argument=yes
15184else $as_nop
15185  xorg_cv_cc_flag_unused_command_line_argument=no
15186fi
15187rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15188fi
15189{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15190printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15191	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15192	CFLAGS="$xorg_testset_save_CFLAGS"
15193fi
15194
15195found="no"
15196
15197	if test $found = "no" ; then
15198		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15199			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15200		fi
15201
15202		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15203			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15204		fi
15205
15206		CFLAGS="$CFLAGS -Wlogical-op"
15207
15208		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
15209printf %s "checking if $CC supports -Wlogical-op... " >&6; }
15210		cacheid=xorg_cv_cc_flag__Wlogical_op
15211		if eval test \${$cacheid+y}
15212then :
15213  printf %s "(cached) " >&6
15214else $as_nop
15215  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15216/* end confdefs.h.  */
15217int i;
15218int
15219main (void)
15220{
15221
15222  ;
15223  return 0;
15224}
15225_ACEOF
15226if ac_fn_c_try_link "$LINENO"
15227then :
15228  eval $cacheid=yes
15229else $as_nop
15230  eval $cacheid=no
15231fi
15232rm -f core conftest.err conftest.$ac_objext conftest.beam \
15233    conftest$ac_exeext conftest.$ac_ext
15234fi
15235
15236
15237		CFLAGS="$xorg_testset_save_CFLAGS"
15238
15239		eval supported=\$$cacheid
15240		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15241printf "%s\n" "$supported" >&6; }
15242		if test "$supported" = "yes" ; then
15243			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
15244			found="yes"
15245		fi
15246	fi
15247
15248
15249
15250# These are currently disabled because they are noisy.  They will be enabled
15251# in the future once the codebase is sufficiently modernized to silence
15252# them.  For now, I don't want them to drown out the other warnings.
15253# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
15254# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
15255# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
15256
15257# Turn some warnings into errors, so we don't accidentally get successful builds
15258# when there are problems that should be fixed.
15259
15260if test "x$SELECTIVE_WERROR" = "xyes" ; then
15261
15262
15263
15264
15265
15266
15267
15268
15269
15270
15271
15272
15273
15274xorg_testset_save_CFLAGS="$CFLAGS"
15275
15276if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15277	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15278	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15279printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15280if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15281then :
15282  printf %s "(cached) " >&6
15283else $as_nop
15284  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15285/* end confdefs.h.  */
15286int i;
15287_ACEOF
15288if ac_fn_c_try_compile "$LINENO"
15289then :
15290  xorg_cv_cc_flag_unknown_warning_option=yes
15291else $as_nop
15292  xorg_cv_cc_flag_unknown_warning_option=no
15293fi
15294rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15295fi
15296{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15297printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15298	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15299	CFLAGS="$xorg_testset_save_CFLAGS"
15300fi
15301
15302if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15303	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15304		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15305	fi
15306	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15307	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15308printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15309if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15310then :
15311  printf %s "(cached) " >&6
15312else $as_nop
15313  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15314/* end confdefs.h.  */
15315int i;
15316_ACEOF
15317if ac_fn_c_try_compile "$LINENO"
15318then :
15319  xorg_cv_cc_flag_unused_command_line_argument=yes
15320else $as_nop
15321  xorg_cv_cc_flag_unused_command_line_argument=no
15322fi
15323rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15324fi
15325{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15326printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15327	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15328	CFLAGS="$xorg_testset_save_CFLAGS"
15329fi
15330
15331found="no"
15332
15333	if test $found = "no" ; then
15334		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15335			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15336		fi
15337
15338		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15339			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15340		fi
15341
15342		CFLAGS="$CFLAGS -Werror=implicit"
15343
15344		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
15345printf %s "checking if $CC supports -Werror=implicit... " >&6; }
15346		cacheid=xorg_cv_cc_flag__Werror_implicit
15347		if eval test \${$cacheid+y}
15348then :
15349  printf %s "(cached) " >&6
15350else $as_nop
15351  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15352/* end confdefs.h.  */
15353int i;
15354int
15355main (void)
15356{
15357
15358  ;
15359  return 0;
15360}
15361_ACEOF
15362if ac_fn_c_try_link "$LINENO"
15363then :
15364  eval $cacheid=yes
15365else $as_nop
15366  eval $cacheid=no
15367fi
15368rm -f core conftest.err conftest.$ac_objext conftest.beam \
15369    conftest$ac_exeext conftest.$ac_ext
15370fi
15371
15372
15373		CFLAGS="$xorg_testset_save_CFLAGS"
15374
15375		eval supported=\$$cacheid
15376		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15377printf "%s\n" "$supported" >&6; }
15378		if test "$supported" = "yes" ; then
15379			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
15380			found="yes"
15381		fi
15382	fi
15383
15384	if test $found = "no" ; then
15385		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15386			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15387		fi
15388
15389		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15390			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15391		fi
15392
15393		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15394
15395		{ 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
15396printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
15397		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
15398		if eval test \${$cacheid+y}
15399then :
15400  printf %s "(cached) " >&6
15401else $as_nop
15402  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15403/* end confdefs.h.  */
15404int i;
15405int
15406main (void)
15407{
15408
15409  ;
15410  return 0;
15411}
15412_ACEOF
15413if ac_fn_c_try_link "$LINENO"
15414then :
15415  eval $cacheid=yes
15416else $as_nop
15417  eval $cacheid=no
15418fi
15419rm -f core conftest.err conftest.$ac_objext conftest.beam \
15420    conftest$ac_exeext conftest.$ac_ext
15421fi
15422
15423
15424		CFLAGS="$xorg_testset_save_CFLAGS"
15425
15426		eval supported=\$$cacheid
15427		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15428printf "%s\n" "$supported" >&6; }
15429		if test "$supported" = "yes" ; then
15430			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15431			found="yes"
15432		fi
15433	fi
15434
15435
15436
15437
15438
15439
15440
15441
15442
15443
15444
15445
15446
15447
15448
15449xorg_testset_save_CFLAGS="$CFLAGS"
15450
15451if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15452	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15453	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15454printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15455if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15456then :
15457  printf %s "(cached) " >&6
15458else $as_nop
15459  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15460/* end confdefs.h.  */
15461int i;
15462_ACEOF
15463if ac_fn_c_try_compile "$LINENO"
15464then :
15465  xorg_cv_cc_flag_unknown_warning_option=yes
15466else $as_nop
15467  xorg_cv_cc_flag_unknown_warning_option=no
15468fi
15469rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15470fi
15471{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15472printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15473	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15474	CFLAGS="$xorg_testset_save_CFLAGS"
15475fi
15476
15477if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15478	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15479		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15480	fi
15481	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15482	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15483printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15484if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15485then :
15486  printf %s "(cached) " >&6
15487else $as_nop
15488  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15489/* end confdefs.h.  */
15490int i;
15491_ACEOF
15492if ac_fn_c_try_compile "$LINENO"
15493then :
15494  xorg_cv_cc_flag_unused_command_line_argument=yes
15495else $as_nop
15496  xorg_cv_cc_flag_unused_command_line_argument=no
15497fi
15498rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15499fi
15500{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15501printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15502	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15503	CFLAGS="$xorg_testset_save_CFLAGS"
15504fi
15505
15506found="no"
15507
15508	if test $found = "no" ; then
15509		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15510			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15511		fi
15512
15513		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15514			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15515		fi
15516
15517		CFLAGS="$CFLAGS -Werror=nonnull"
15518
15519		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
15520printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
15521		cacheid=xorg_cv_cc_flag__Werror_nonnull
15522		if eval test \${$cacheid+y}
15523then :
15524  printf %s "(cached) " >&6
15525else $as_nop
15526  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15527/* end confdefs.h.  */
15528int i;
15529int
15530main (void)
15531{
15532
15533  ;
15534  return 0;
15535}
15536_ACEOF
15537if ac_fn_c_try_link "$LINENO"
15538then :
15539  eval $cacheid=yes
15540else $as_nop
15541  eval $cacheid=no
15542fi
15543rm -f core conftest.err conftest.$ac_objext conftest.beam \
15544    conftest$ac_exeext conftest.$ac_ext
15545fi
15546
15547
15548		CFLAGS="$xorg_testset_save_CFLAGS"
15549
15550		eval supported=\$$cacheid
15551		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15552printf "%s\n" "$supported" >&6; }
15553		if test "$supported" = "yes" ; then
15554			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
15555			found="yes"
15556		fi
15557	fi
15558
15559
15560
15561
15562
15563
15564
15565
15566
15567
15568
15569
15570
15571
15572
15573xorg_testset_save_CFLAGS="$CFLAGS"
15574
15575if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15576	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15577	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15578printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15579if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15580then :
15581  printf %s "(cached) " >&6
15582else $as_nop
15583  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15584/* end confdefs.h.  */
15585int i;
15586_ACEOF
15587if ac_fn_c_try_compile "$LINENO"
15588then :
15589  xorg_cv_cc_flag_unknown_warning_option=yes
15590else $as_nop
15591  xorg_cv_cc_flag_unknown_warning_option=no
15592fi
15593rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15594fi
15595{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15596printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15597	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15598	CFLAGS="$xorg_testset_save_CFLAGS"
15599fi
15600
15601if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15602	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15603		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15604	fi
15605	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15606	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15607printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15608if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15609then :
15610  printf %s "(cached) " >&6
15611else $as_nop
15612  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15613/* end confdefs.h.  */
15614int i;
15615_ACEOF
15616if ac_fn_c_try_compile "$LINENO"
15617then :
15618  xorg_cv_cc_flag_unused_command_line_argument=yes
15619else $as_nop
15620  xorg_cv_cc_flag_unused_command_line_argument=no
15621fi
15622rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15623fi
15624{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15625printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15626	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15627	CFLAGS="$xorg_testset_save_CFLAGS"
15628fi
15629
15630found="no"
15631
15632	if test $found = "no" ; then
15633		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15634			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15635		fi
15636
15637		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15638			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15639		fi
15640
15641		CFLAGS="$CFLAGS -Werror=init-self"
15642
15643		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
15644printf %s "checking if $CC supports -Werror=init-self... " >&6; }
15645		cacheid=xorg_cv_cc_flag__Werror_init_self
15646		if eval test \${$cacheid+y}
15647then :
15648  printf %s "(cached) " >&6
15649else $as_nop
15650  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15651/* end confdefs.h.  */
15652int i;
15653int
15654main (void)
15655{
15656
15657  ;
15658  return 0;
15659}
15660_ACEOF
15661if ac_fn_c_try_link "$LINENO"
15662then :
15663  eval $cacheid=yes
15664else $as_nop
15665  eval $cacheid=no
15666fi
15667rm -f core conftest.err conftest.$ac_objext conftest.beam \
15668    conftest$ac_exeext conftest.$ac_ext
15669fi
15670
15671
15672		CFLAGS="$xorg_testset_save_CFLAGS"
15673
15674		eval supported=\$$cacheid
15675		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15676printf "%s\n" "$supported" >&6; }
15677		if test "$supported" = "yes" ; then
15678			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
15679			found="yes"
15680		fi
15681	fi
15682
15683
15684
15685
15686
15687
15688
15689
15690
15691
15692
15693
15694
15695
15696
15697xorg_testset_save_CFLAGS="$CFLAGS"
15698
15699if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15700	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15701	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15702printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15703if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15704then :
15705  printf %s "(cached) " >&6
15706else $as_nop
15707  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15708/* end confdefs.h.  */
15709int i;
15710_ACEOF
15711if ac_fn_c_try_compile "$LINENO"
15712then :
15713  xorg_cv_cc_flag_unknown_warning_option=yes
15714else $as_nop
15715  xorg_cv_cc_flag_unknown_warning_option=no
15716fi
15717rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15718fi
15719{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15720printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15721	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15722	CFLAGS="$xorg_testset_save_CFLAGS"
15723fi
15724
15725if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15726	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15727		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15728	fi
15729	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15730	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15731printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15732if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15733then :
15734  printf %s "(cached) " >&6
15735else $as_nop
15736  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15737/* end confdefs.h.  */
15738int i;
15739_ACEOF
15740if ac_fn_c_try_compile "$LINENO"
15741then :
15742  xorg_cv_cc_flag_unused_command_line_argument=yes
15743else $as_nop
15744  xorg_cv_cc_flag_unused_command_line_argument=no
15745fi
15746rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15747fi
15748{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15749printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15750	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15751	CFLAGS="$xorg_testset_save_CFLAGS"
15752fi
15753
15754found="no"
15755
15756	if test $found = "no" ; then
15757		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15758			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15759		fi
15760
15761		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15762			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15763		fi
15764
15765		CFLAGS="$CFLAGS -Werror=main"
15766
15767		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
15768printf %s "checking if $CC supports -Werror=main... " >&6; }
15769		cacheid=xorg_cv_cc_flag__Werror_main
15770		if eval test \${$cacheid+y}
15771then :
15772  printf %s "(cached) " >&6
15773else $as_nop
15774  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15775/* end confdefs.h.  */
15776int i;
15777int
15778main (void)
15779{
15780
15781  ;
15782  return 0;
15783}
15784_ACEOF
15785if ac_fn_c_try_link "$LINENO"
15786then :
15787  eval $cacheid=yes
15788else $as_nop
15789  eval $cacheid=no
15790fi
15791rm -f core conftest.err conftest.$ac_objext conftest.beam \
15792    conftest$ac_exeext conftest.$ac_ext
15793fi
15794
15795
15796		CFLAGS="$xorg_testset_save_CFLAGS"
15797
15798		eval supported=\$$cacheid
15799		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15800printf "%s\n" "$supported" >&6; }
15801		if test "$supported" = "yes" ; then
15802			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
15803			found="yes"
15804		fi
15805	fi
15806
15807
15808
15809
15810
15811
15812
15813
15814
15815
15816
15817
15818
15819
15820
15821xorg_testset_save_CFLAGS="$CFLAGS"
15822
15823if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15824	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15825	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15826printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15827if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15828then :
15829  printf %s "(cached) " >&6
15830else $as_nop
15831  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15832/* end confdefs.h.  */
15833int i;
15834_ACEOF
15835if ac_fn_c_try_compile "$LINENO"
15836then :
15837  xorg_cv_cc_flag_unknown_warning_option=yes
15838else $as_nop
15839  xorg_cv_cc_flag_unknown_warning_option=no
15840fi
15841rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15842fi
15843{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15844printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15845	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15846	CFLAGS="$xorg_testset_save_CFLAGS"
15847fi
15848
15849if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15850	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15851		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15852	fi
15853	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15854	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15855printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15856if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15857then :
15858  printf %s "(cached) " >&6
15859else $as_nop
15860  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15861/* end confdefs.h.  */
15862int i;
15863_ACEOF
15864if ac_fn_c_try_compile "$LINENO"
15865then :
15866  xorg_cv_cc_flag_unused_command_line_argument=yes
15867else $as_nop
15868  xorg_cv_cc_flag_unused_command_line_argument=no
15869fi
15870rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15871fi
15872{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15873printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15874	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15875	CFLAGS="$xorg_testset_save_CFLAGS"
15876fi
15877
15878found="no"
15879
15880	if test $found = "no" ; then
15881		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15882			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15883		fi
15884
15885		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15886			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15887		fi
15888
15889		CFLAGS="$CFLAGS -Werror=missing-braces"
15890
15891		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
15892printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
15893		cacheid=xorg_cv_cc_flag__Werror_missing_braces
15894		if eval test \${$cacheid+y}
15895then :
15896  printf %s "(cached) " >&6
15897else $as_nop
15898  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15899/* end confdefs.h.  */
15900int i;
15901int
15902main (void)
15903{
15904
15905  ;
15906  return 0;
15907}
15908_ACEOF
15909if ac_fn_c_try_link "$LINENO"
15910then :
15911  eval $cacheid=yes
15912else $as_nop
15913  eval $cacheid=no
15914fi
15915rm -f core conftest.err conftest.$ac_objext conftest.beam \
15916    conftest$ac_exeext conftest.$ac_ext
15917fi
15918
15919
15920		CFLAGS="$xorg_testset_save_CFLAGS"
15921
15922		eval supported=\$$cacheid
15923		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15924printf "%s\n" "$supported" >&6; }
15925		if test "$supported" = "yes" ; then
15926			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
15927			found="yes"
15928		fi
15929	fi
15930
15931
15932
15933
15934
15935
15936
15937
15938
15939
15940
15941
15942
15943
15944
15945xorg_testset_save_CFLAGS="$CFLAGS"
15946
15947if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15948	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15949	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15950printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15951if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15952then :
15953  printf %s "(cached) " >&6
15954else $as_nop
15955  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15956/* end confdefs.h.  */
15957int i;
15958_ACEOF
15959if ac_fn_c_try_compile "$LINENO"
15960then :
15961  xorg_cv_cc_flag_unknown_warning_option=yes
15962else $as_nop
15963  xorg_cv_cc_flag_unknown_warning_option=no
15964fi
15965rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15966fi
15967{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15968printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15969	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15970	CFLAGS="$xorg_testset_save_CFLAGS"
15971fi
15972
15973if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15974	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15975		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15976	fi
15977	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15978	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15979printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15980if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15981then :
15982  printf %s "(cached) " >&6
15983else $as_nop
15984  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15985/* end confdefs.h.  */
15986int i;
15987_ACEOF
15988if ac_fn_c_try_compile "$LINENO"
15989then :
15990  xorg_cv_cc_flag_unused_command_line_argument=yes
15991else $as_nop
15992  xorg_cv_cc_flag_unused_command_line_argument=no
15993fi
15994rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15995fi
15996{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15997printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15998	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15999	CFLAGS="$xorg_testset_save_CFLAGS"
16000fi
16001
16002found="no"
16003
16004	if test $found = "no" ; then
16005		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16006			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16007		fi
16008
16009		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16010			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16011		fi
16012
16013		CFLAGS="$CFLAGS -Werror=sequence-point"
16014
16015		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
16016printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
16017		cacheid=xorg_cv_cc_flag__Werror_sequence_point
16018		if eval test \${$cacheid+y}
16019then :
16020  printf %s "(cached) " >&6
16021else $as_nop
16022  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16023/* end confdefs.h.  */
16024int i;
16025int
16026main (void)
16027{
16028
16029  ;
16030  return 0;
16031}
16032_ACEOF
16033if ac_fn_c_try_link "$LINENO"
16034then :
16035  eval $cacheid=yes
16036else $as_nop
16037  eval $cacheid=no
16038fi
16039rm -f core conftest.err conftest.$ac_objext conftest.beam \
16040    conftest$ac_exeext conftest.$ac_ext
16041fi
16042
16043
16044		CFLAGS="$xorg_testset_save_CFLAGS"
16045
16046		eval supported=\$$cacheid
16047		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16048printf "%s\n" "$supported" >&6; }
16049		if test "$supported" = "yes" ; then
16050			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
16051			found="yes"
16052		fi
16053	fi
16054
16055
16056
16057
16058
16059
16060
16061
16062
16063
16064
16065
16066
16067
16068
16069xorg_testset_save_CFLAGS="$CFLAGS"
16070
16071if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16072	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16073	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16074printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16075if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16076then :
16077  printf %s "(cached) " >&6
16078else $as_nop
16079  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16080/* end confdefs.h.  */
16081int i;
16082_ACEOF
16083if ac_fn_c_try_compile "$LINENO"
16084then :
16085  xorg_cv_cc_flag_unknown_warning_option=yes
16086else $as_nop
16087  xorg_cv_cc_flag_unknown_warning_option=no
16088fi
16089rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16090fi
16091{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16092printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16093	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16094	CFLAGS="$xorg_testset_save_CFLAGS"
16095fi
16096
16097if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16098	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16099		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16100	fi
16101	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16102	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16103printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16104if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16105then :
16106  printf %s "(cached) " >&6
16107else $as_nop
16108  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16109/* end confdefs.h.  */
16110int i;
16111_ACEOF
16112if ac_fn_c_try_compile "$LINENO"
16113then :
16114  xorg_cv_cc_flag_unused_command_line_argument=yes
16115else $as_nop
16116  xorg_cv_cc_flag_unused_command_line_argument=no
16117fi
16118rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16119fi
16120{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16121printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16122	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16123	CFLAGS="$xorg_testset_save_CFLAGS"
16124fi
16125
16126found="no"
16127
16128	if test $found = "no" ; then
16129		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16130			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16131		fi
16132
16133		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16134			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16135		fi
16136
16137		CFLAGS="$CFLAGS -Werror=return-type"
16138
16139		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
16140printf %s "checking if $CC supports -Werror=return-type... " >&6; }
16141		cacheid=xorg_cv_cc_flag__Werror_return_type
16142		if eval test \${$cacheid+y}
16143then :
16144  printf %s "(cached) " >&6
16145else $as_nop
16146  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16147/* end confdefs.h.  */
16148int i;
16149int
16150main (void)
16151{
16152
16153  ;
16154  return 0;
16155}
16156_ACEOF
16157if ac_fn_c_try_link "$LINENO"
16158then :
16159  eval $cacheid=yes
16160else $as_nop
16161  eval $cacheid=no
16162fi
16163rm -f core conftest.err conftest.$ac_objext conftest.beam \
16164    conftest$ac_exeext conftest.$ac_ext
16165fi
16166
16167
16168		CFLAGS="$xorg_testset_save_CFLAGS"
16169
16170		eval supported=\$$cacheid
16171		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16172printf "%s\n" "$supported" >&6; }
16173		if test "$supported" = "yes" ; then
16174			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
16175			found="yes"
16176		fi
16177	fi
16178
16179	if test $found = "no" ; then
16180		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16181			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16182		fi
16183
16184		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16185			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16186		fi
16187
16188		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16189
16190		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
16191printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
16192		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
16193		if eval test \${$cacheid+y}
16194then :
16195  printf %s "(cached) " >&6
16196else $as_nop
16197  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16198/* end confdefs.h.  */
16199int i;
16200int
16201main (void)
16202{
16203
16204  ;
16205  return 0;
16206}
16207_ACEOF
16208if ac_fn_c_try_link "$LINENO"
16209then :
16210  eval $cacheid=yes
16211else $as_nop
16212  eval $cacheid=no
16213fi
16214rm -f core conftest.err conftest.$ac_objext conftest.beam \
16215    conftest$ac_exeext conftest.$ac_ext
16216fi
16217
16218
16219		CFLAGS="$xorg_testset_save_CFLAGS"
16220
16221		eval supported=\$$cacheid
16222		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16223printf "%s\n" "$supported" >&6; }
16224		if test "$supported" = "yes" ; then
16225			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16226			found="yes"
16227		fi
16228	fi
16229
16230
16231
16232
16233
16234
16235
16236
16237
16238
16239
16240
16241
16242
16243
16244xorg_testset_save_CFLAGS="$CFLAGS"
16245
16246if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16247	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16248	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16249printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16250if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16251then :
16252  printf %s "(cached) " >&6
16253else $as_nop
16254  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16255/* end confdefs.h.  */
16256int i;
16257_ACEOF
16258if ac_fn_c_try_compile "$LINENO"
16259then :
16260  xorg_cv_cc_flag_unknown_warning_option=yes
16261else $as_nop
16262  xorg_cv_cc_flag_unknown_warning_option=no
16263fi
16264rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16265fi
16266{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16267printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16268	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16269	CFLAGS="$xorg_testset_save_CFLAGS"
16270fi
16271
16272if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16273	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16274		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16275	fi
16276	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16277	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16278printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16279if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16280then :
16281  printf %s "(cached) " >&6
16282else $as_nop
16283  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16284/* end confdefs.h.  */
16285int i;
16286_ACEOF
16287if ac_fn_c_try_compile "$LINENO"
16288then :
16289  xorg_cv_cc_flag_unused_command_line_argument=yes
16290else $as_nop
16291  xorg_cv_cc_flag_unused_command_line_argument=no
16292fi
16293rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16294fi
16295{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16296printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16297	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16298	CFLAGS="$xorg_testset_save_CFLAGS"
16299fi
16300
16301found="no"
16302
16303	if test $found = "no" ; then
16304		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16305			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16306		fi
16307
16308		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16309			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16310		fi
16311
16312		CFLAGS="$CFLAGS -Werror=trigraphs"
16313
16314		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
16315printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
16316		cacheid=xorg_cv_cc_flag__Werror_trigraphs
16317		if eval test \${$cacheid+y}
16318then :
16319  printf %s "(cached) " >&6
16320else $as_nop
16321  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16322/* end confdefs.h.  */
16323int i;
16324int
16325main (void)
16326{
16327
16328  ;
16329  return 0;
16330}
16331_ACEOF
16332if ac_fn_c_try_link "$LINENO"
16333then :
16334  eval $cacheid=yes
16335else $as_nop
16336  eval $cacheid=no
16337fi
16338rm -f core conftest.err conftest.$ac_objext conftest.beam \
16339    conftest$ac_exeext conftest.$ac_ext
16340fi
16341
16342
16343		CFLAGS="$xorg_testset_save_CFLAGS"
16344
16345		eval supported=\$$cacheid
16346		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16347printf "%s\n" "$supported" >&6; }
16348		if test "$supported" = "yes" ; then
16349			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
16350			found="yes"
16351		fi
16352	fi
16353
16354
16355
16356
16357
16358
16359
16360
16361
16362
16363
16364
16365
16366
16367
16368xorg_testset_save_CFLAGS="$CFLAGS"
16369
16370if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16371	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16372	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16373printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16374if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16375then :
16376  printf %s "(cached) " >&6
16377else $as_nop
16378  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16379/* end confdefs.h.  */
16380int i;
16381_ACEOF
16382if ac_fn_c_try_compile "$LINENO"
16383then :
16384  xorg_cv_cc_flag_unknown_warning_option=yes
16385else $as_nop
16386  xorg_cv_cc_flag_unknown_warning_option=no
16387fi
16388rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16389fi
16390{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16391printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16392	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16393	CFLAGS="$xorg_testset_save_CFLAGS"
16394fi
16395
16396if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16397	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16398		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16399	fi
16400	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16401	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16402printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16403if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16404then :
16405  printf %s "(cached) " >&6
16406else $as_nop
16407  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16408/* end confdefs.h.  */
16409int i;
16410_ACEOF
16411if ac_fn_c_try_compile "$LINENO"
16412then :
16413  xorg_cv_cc_flag_unused_command_line_argument=yes
16414else $as_nop
16415  xorg_cv_cc_flag_unused_command_line_argument=no
16416fi
16417rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16418fi
16419{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16420printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16421	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16422	CFLAGS="$xorg_testset_save_CFLAGS"
16423fi
16424
16425found="no"
16426
16427	if test $found = "no" ; then
16428		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16429			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16430		fi
16431
16432		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16433			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16434		fi
16435
16436		CFLAGS="$CFLAGS -Werror=array-bounds"
16437
16438		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
16439printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
16440		cacheid=xorg_cv_cc_flag__Werror_array_bounds
16441		if eval test \${$cacheid+y}
16442then :
16443  printf %s "(cached) " >&6
16444else $as_nop
16445  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16446/* end confdefs.h.  */
16447int i;
16448int
16449main (void)
16450{
16451
16452  ;
16453  return 0;
16454}
16455_ACEOF
16456if ac_fn_c_try_link "$LINENO"
16457then :
16458  eval $cacheid=yes
16459else $as_nop
16460  eval $cacheid=no
16461fi
16462rm -f core conftest.err conftest.$ac_objext conftest.beam \
16463    conftest$ac_exeext conftest.$ac_ext
16464fi
16465
16466
16467		CFLAGS="$xorg_testset_save_CFLAGS"
16468
16469		eval supported=\$$cacheid
16470		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16471printf "%s\n" "$supported" >&6; }
16472		if test "$supported" = "yes" ; then
16473			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
16474			found="yes"
16475		fi
16476	fi
16477
16478
16479
16480
16481
16482
16483
16484
16485
16486
16487
16488
16489
16490
16491
16492xorg_testset_save_CFLAGS="$CFLAGS"
16493
16494if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16495	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16496	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16497printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16498if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16499then :
16500  printf %s "(cached) " >&6
16501else $as_nop
16502  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16503/* end confdefs.h.  */
16504int i;
16505_ACEOF
16506if ac_fn_c_try_compile "$LINENO"
16507then :
16508  xorg_cv_cc_flag_unknown_warning_option=yes
16509else $as_nop
16510  xorg_cv_cc_flag_unknown_warning_option=no
16511fi
16512rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16513fi
16514{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16515printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16516	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16517	CFLAGS="$xorg_testset_save_CFLAGS"
16518fi
16519
16520if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16521	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16522		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16523	fi
16524	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16525	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16526printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16527if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16528then :
16529  printf %s "(cached) " >&6
16530else $as_nop
16531  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16532/* end confdefs.h.  */
16533int i;
16534_ACEOF
16535if ac_fn_c_try_compile "$LINENO"
16536then :
16537  xorg_cv_cc_flag_unused_command_line_argument=yes
16538else $as_nop
16539  xorg_cv_cc_flag_unused_command_line_argument=no
16540fi
16541rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16542fi
16543{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16544printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16545	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16546	CFLAGS="$xorg_testset_save_CFLAGS"
16547fi
16548
16549found="no"
16550
16551	if test $found = "no" ; then
16552		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16553			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16554		fi
16555
16556		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16557			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16558		fi
16559
16560		CFLAGS="$CFLAGS -Werror=write-strings"
16561
16562		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
16563printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
16564		cacheid=xorg_cv_cc_flag__Werror_write_strings
16565		if eval test \${$cacheid+y}
16566then :
16567  printf %s "(cached) " >&6
16568else $as_nop
16569  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16570/* end confdefs.h.  */
16571int i;
16572int
16573main (void)
16574{
16575
16576  ;
16577  return 0;
16578}
16579_ACEOF
16580if ac_fn_c_try_link "$LINENO"
16581then :
16582  eval $cacheid=yes
16583else $as_nop
16584  eval $cacheid=no
16585fi
16586rm -f core conftest.err conftest.$ac_objext conftest.beam \
16587    conftest$ac_exeext conftest.$ac_ext
16588fi
16589
16590
16591		CFLAGS="$xorg_testset_save_CFLAGS"
16592
16593		eval supported=\$$cacheid
16594		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16595printf "%s\n" "$supported" >&6; }
16596		if test "$supported" = "yes" ; then
16597			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
16598			found="yes"
16599		fi
16600	fi
16601
16602
16603
16604
16605
16606
16607
16608
16609
16610
16611
16612
16613
16614
16615
16616xorg_testset_save_CFLAGS="$CFLAGS"
16617
16618if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16619	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16620	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16621printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16622if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16623then :
16624  printf %s "(cached) " >&6
16625else $as_nop
16626  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16627/* end confdefs.h.  */
16628int i;
16629_ACEOF
16630if ac_fn_c_try_compile "$LINENO"
16631then :
16632  xorg_cv_cc_flag_unknown_warning_option=yes
16633else $as_nop
16634  xorg_cv_cc_flag_unknown_warning_option=no
16635fi
16636rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16637fi
16638{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16639printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16640	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16641	CFLAGS="$xorg_testset_save_CFLAGS"
16642fi
16643
16644if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16645	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16646		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16647	fi
16648	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16649	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16650printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16651if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16652then :
16653  printf %s "(cached) " >&6
16654else $as_nop
16655  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16656/* end confdefs.h.  */
16657int i;
16658_ACEOF
16659if ac_fn_c_try_compile "$LINENO"
16660then :
16661  xorg_cv_cc_flag_unused_command_line_argument=yes
16662else $as_nop
16663  xorg_cv_cc_flag_unused_command_line_argument=no
16664fi
16665rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16666fi
16667{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16668printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16669	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16670	CFLAGS="$xorg_testset_save_CFLAGS"
16671fi
16672
16673found="no"
16674
16675	if test $found = "no" ; then
16676		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16677			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16678		fi
16679
16680		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16681			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16682		fi
16683
16684		CFLAGS="$CFLAGS -Werror=address"
16685
16686		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
16687printf %s "checking if $CC supports -Werror=address... " >&6; }
16688		cacheid=xorg_cv_cc_flag__Werror_address
16689		if eval test \${$cacheid+y}
16690then :
16691  printf %s "(cached) " >&6
16692else $as_nop
16693  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16694/* end confdefs.h.  */
16695int i;
16696int
16697main (void)
16698{
16699
16700  ;
16701  return 0;
16702}
16703_ACEOF
16704if ac_fn_c_try_link "$LINENO"
16705then :
16706  eval $cacheid=yes
16707else $as_nop
16708  eval $cacheid=no
16709fi
16710rm -f core conftest.err conftest.$ac_objext conftest.beam \
16711    conftest$ac_exeext conftest.$ac_ext
16712fi
16713
16714
16715		CFLAGS="$xorg_testset_save_CFLAGS"
16716
16717		eval supported=\$$cacheid
16718		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16719printf "%s\n" "$supported" >&6; }
16720		if test "$supported" = "yes" ; then
16721			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
16722			found="yes"
16723		fi
16724	fi
16725
16726
16727
16728
16729
16730
16731
16732
16733
16734
16735
16736
16737
16738
16739
16740xorg_testset_save_CFLAGS="$CFLAGS"
16741
16742if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16743	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16744	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16745printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16746if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16747then :
16748  printf %s "(cached) " >&6
16749else $as_nop
16750  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16751/* end confdefs.h.  */
16752int i;
16753_ACEOF
16754if ac_fn_c_try_compile "$LINENO"
16755then :
16756  xorg_cv_cc_flag_unknown_warning_option=yes
16757else $as_nop
16758  xorg_cv_cc_flag_unknown_warning_option=no
16759fi
16760rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16761fi
16762{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16763printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16764	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16765	CFLAGS="$xorg_testset_save_CFLAGS"
16766fi
16767
16768if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16769	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16770		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16771	fi
16772	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16773	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16774printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16775if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16776then :
16777  printf %s "(cached) " >&6
16778else $as_nop
16779  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16780/* end confdefs.h.  */
16781int i;
16782_ACEOF
16783if ac_fn_c_try_compile "$LINENO"
16784then :
16785  xorg_cv_cc_flag_unused_command_line_argument=yes
16786else $as_nop
16787  xorg_cv_cc_flag_unused_command_line_argument=no
16788fi
16789rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16790fi
16791{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16792printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16793	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16794	CFLAGS="$xorg_testset_save_CFLAGS"
16795fi
16796
16797found="no"
16798
16799	if test $found = "no" ; then
16800		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16801			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16802		fi
16803
16804		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16805			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16806		fi
16807
16808		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
16809
16810		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
16811printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
16812		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
16813		if eval test \${$cacheid+y}
16814then :
16815  printf %s "(cached) " >&6
16816else $as_nop
16817  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16818/* end confdefs.h.  */
16819int i;
16820int
16821main (void)
16822{
16823
16824  ;
16825  return 0;
16826}
16827_ACEOF
16828if ac_fn_c_try_link "$LINENO"
16829then :
16830  eval $cacheid=yes
16831else $as_nop
16832  eval $cacheid=no
16833fi
16834rm -f core conftest.err conftest.$ac_objext conftest.beam \
16835    conftest$ac_exeext conftest.$ac_ext
16836fi
16837
16838
16839		CFLAGS="$xorg_testset_save_CFLAGS"
16840
16841		eval supported=\$$cacheid
16842		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16843printf "%s\n" "$supported" >&6; }
16844		if test "$supported" = "yes" ; then
16845			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
16846			found="yes"
16847		fi
16848	fi
16849
16850	if test $found = "no" ; then
16851		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16852			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16853		fi
16854
16855		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16856			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16857		fi
16858
16859		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16860
16861		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
16862printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
16863		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
16864		if eval test \${$cacheid+y}
16865then :
16866  printf %s "(cached) " >&6
16867else $as_nop
16868  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16869/* end confdefs.h.  */
16870int i;
16871int
16872main (void)
16873{
16874
16875  ;
16876  return 0;
16877}
16878_ACEOF
16879if ac_fn_c_try_link "$LINENO"
16880then :
16881  eval $cacheid=yes
16882else $as_nop
16883  eval $cacheid=no
16884fi
16885rm -f core conftest.err conftest.$ac_objext conftest.beam \
16886    conftest$ac_exeext conftest.$ac_ext
16887fi
16888
16889
16890		CFLAGS="$xorg_testset_save_CFLAGS"
16891
16892		eval supported=\$$cacheid
16893		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16894printf "%s\n" "$supported" >&6; }
16895		if test "$supported" = "yes" ; then
16896			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16897			found="yes"
16898		fi
16899	fi
16900
16901
16902
16903
16904
16905
16906
16907
16908
16909
16910
16911
16912
16913
16914
16915xorg_testset_save_CFLAGS="$CFLAGS"
16916
16917if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16918	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16919	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16920printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16921if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16922then :
16923  printf %s "(cached) " >&6
16924else $as_nop
16925  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16926/* end confdefs.h.  */
16927int i;
16928_ACEOF
16929if ac_fn_c_try_compile "$LINENO"
16930then :
16931  xorg_cv_cc_flag_unknown_warning_option=yes
16932else $as_nop
16933  xorg_cv_cc_flag_unknown_warning_option=no
16934fi
16935rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16936fi
16937{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16938printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16939	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16940	CFLAGS="$xorg_testset_save_CFLAGS"
16941fi
16942
16943if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16944	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16945		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16946	fi
16947	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16948	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16949printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16950if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16951then :
16952  printf %s "(cached) " >&6
16953else $as_nop
16954  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16955/* end confdefs.h.  */
16956int i;
16957_ACEOF
16958if ac_fn_c_try_compile "$LINENO"
16959then :
16960  xorg_cv_cc_flag_unused_command_line_argument=yes
16961else $as_nop
16962  xorg_cv_cc_flag_unused_command_line_argument=no
16963fi
16964rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16965fi
16966{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16967printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16968	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16969	CFLAGS="$xorg_testset_save_CFLAGS"
16970fi
16971
16972found="no"
16973
16974	if test $found = "no" ; then
16975		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16976			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16977		fi
16978
16979		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16980			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16981		fi
16982
16983		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
16984
16985		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
16986printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
16987		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
16988		if eval test \${$cacheid+y}
16989then :
16990  printf %s "(cached) " >&6
16991else $as_nop
16992  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16993/* end confdefs.h.  */
16994int i;
16995int
16996main (void)
16997{
16998
16999  ;
17000  return 0;
17001}
17002_ACEOF
17003if ac_fn_c_try_link "$LINENO"
17004then :
17005  eval $cacheid=yes
17006else $as_nop
17007  eval $cacheid=no
17008fi
17009rm -f core conftest.err conftest.$ac_objext conftest.beam \
17010    conftest$ac_exeext conftest.$ac_ext
17011fi
17012
17013
17014		CFLAGS="$xorg_testset_save_CFLAGS"
17015
17016		eval supported=\$$cacheid
17017		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17018printf "%s\n" "$supported" >&6; }
17019		if test "$supported" = "yes" ; then
17020			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
17021			found="yes"
17022		fi
17023	fi
17024
17025 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
17026else
17027{ 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
17028printf "%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;}
17029
17030
17031
17032
17033
17034
17035
17036
17037
17038
17039
17040
17041
17042xorg_testset_save_CFLAGS="$CFLAGS"
17043
17044if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17045	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17046	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17047printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17048if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17049then :
17050  printf %s "(cached) " >&6
17051else $as_nop
17052  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17053/* end confdefs.h.  */
17054int i;
17055_ACEOF
17056if ac_fn_c_try_compile "$LINENO"
17057then :
17058  xorg_cv_cc_flag_unknown_warning_option=yes
17059else $as_nop
17060  xorg_cv_cc_flag_unknown_warning_option=no
17061fi
17062rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17063fi
17064{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17065printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17066	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17067	CFLAGS="$xorg_testset_save_CFLAGS"
17068fi
17069
17070if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17071	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17072		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17073	fi
17074	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17075	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17076printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17077if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17078then :
17079  printf %s "(cached) " >&6
17080else $as_nop
17081  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17082/* end confdefs.h.  */
17083int i;
17084_ACEOF
17085if ac_fn_c_try_compile "$LINENO"
17086then :
17087  xorg_cv_cc_flag_unused_command_line_argument=yes
17088else $as_nop
17089  xorg_cv_cc_flag_unused_command_line_argument=no
17090fi
17091rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17092fi
17093{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17094printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17095	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17096	CFLAGS="$xorg_testset_save_CFLAGS"
17097fi
17098
17099found="no"
17100
17101	if test $found = "no" ; then
17102		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17103			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17104		fi
17105
17106		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17107			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17108		fi
17109
17110		CFLAGS="$CFLAGS -Wimplicit"
17111
17112		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
17113printf %s "checking if $CC supports -Wimplicit... " >&6; }
17114		cacheid=xorg_cv_cc_flag__Wimplicit
17115		if eval test \${$cacheid+y}
17116then :
17117  printf %s "(cached) " >&6
17118else $as_nop
17119  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17120/* end confdefs.h.  */
17121int i;
17122int
17123main (void)
17124{
17125
17126  ;
17127  return 0;
17128}
17129_ACEOF
17130if ac_fn_c_try_link "$LINENO"
17131then :
17132  eval $cacheid=yes
17133else $as_nop
17134  eval $cacheid=no
17135fi
17136rm -f core conftest.err conftest.$ac_objext conftest.beam \
17137    conftest$ac_exeext conftest.$ac_ext
17138fi
17139
17140
17141		CFLAGS="$xorg_testset_save_CFLAGS"
17142
17143		eval supported=\$$cacheid
17144		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17145printf "%s\n" "$supported" >&6; }
17146		if test "$supported" = "yes" ; then
17147			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
17148			found="yes"
17149		fi
17150	fi
17151
17152
17153
17154
17155
17156
17157
17158
17159
17160
17161
17162
17163
17164
17165
17166xorg_testset_save_CFLAGS="$CFLAGS"
17167
17168if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17169	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17170	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17171printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17172if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17173then :
17174  printf %s "(cached) " >&6
17175else $as_nop
17176  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17177/* end confdefs.h.  */
17178int i;
17179_ACEOF
17180if ac_fn_c_try_compile "$LINENO"
17181then :
17182  xorg_cv_cc_flag_unknown_warning_option=yes
17183else $as_nop
17184  xorg_cv_cc_flag_unknown_warning_option=no
17185fi
17186rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17187fi
17188{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17189printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17190	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17191	CFLAGS="$xorg_testset_save_CFLAGS"
17192fi
17193
17194if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17195	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17196		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17197	fi
17198	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17199	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17200printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17201if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17202then :
17203  printf %s "(cached) " >&6
17204else $as_nop
17205  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17206/* end confdefs.h.  */
17207int i;
17208_ACEOF
17209if ac_fn_c_try_compile "$LINENO"
17210then :
17211  xorg_cv_cc_flag_unused_command_line_argument=yes
17212else $as_nop
17213  xorg_cv_cc_flag_unused_command_line_argument=no
17214fi
17215rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17216fi
17217{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17218printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17219	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17220	CFLAGS="$xorg_testset_save_CFLAGS"
17221fi
17222
17223found="no"
17224
17225	if test $found = "no" ; then
17226		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17227			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17228		fi
17229
17230		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17231			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17232		fi
17233
17234		CFLAGS="$CFLAGS -Wnonnull"
17235
17236		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
17237printf %s "checking if $CC supports -Wnonnull... " >&6; }
17238		cacheid=xorg_cv_cc_flag__Wnonnull
17239		if eval test \${$cacheid+y}
17240then :
17241  printf %s "(cached) " >&6
17242else $as_nop
17243  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17244/* end confdefs.h.  */
17245int i;
17246int
17247main (void)
17248{
17249
17250  ;
17251  return 0;
17252}
17253_ACEOF
17254if ac_fn_c_try_link "$LINENO"
17255then :
17256  eval $cacheid=yes
17257else $as_nop
17258  eval $cacheid=no
17259fi
17260rm -f core conftest.err conftest.$ac_objext conftest.beam \
17261    conftest$ac_exeext conftest.$ac_ext
17262fi
17263
17264
17265		CFLAGS="$xorg_testset_save_CFLAGS"
17266
17267		eval supported=\$$cacheid
17268		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17269printf "%s\n" "$supported" >&6; }
17270		if test "$supported" = "yes" ; then
17271			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
17272			found="yes"
17273		fi
17274	fi
17275
17276
17277
17278
17279
17280
17281
17282
17283
17284
17285
17286
17287
17288
17289
17290xorg_testset_save_CFLAGS="$CFLAGS"
17291
17292if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17293	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17294	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17295printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17296if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17297then :
17298  printf %s "(cached) " >&6
17299else $as_nop
17300  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17301/* end confdefs.h.  */
17302int i;
17303_ACEOF
17304if ac_fn_c_try_compile "$LINENO"
17305then :
17306  xorg_cv_cc_flag_unknown_warning_option=yes
17307else $as_nop
17308  xorg_cv_cc_flag_unknown_warning_option=no
17309fi
17310rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17311fi
17312{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17313printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17314	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17315	CFLAGS="$xorg_testset_save_CFLAGS"
17316fi
17317
17318if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17319	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17320		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17321	fi
17322	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17323	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17324printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17325if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17326then :
17327  printf %s "(cached) " >&6
17328else $as_nop
17329  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17330/* end confdefs.h.  */
17331int i;
17332_ACEOF
17333if ac_fn_c_try_compile "$LINENO"
17334then :
17335  xorg_cv_cc_flag_unused_command_line_argument=yes
17336else $as_nop
17337  xorg_cv_cc_flag_unused_command_line_argument=no
17338fi
17339rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17340fi
17341{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17342printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17343	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17344	CFLAGS="$xorg_testset_save_CFLAGS"
17345fi
17346
17347found="no"
17348
17349	if test $found = "no" ; then
17350		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17351			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17352		fi
17353
17354		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17355			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17356		fi
17357
17358		CFLAGS="$CFLAGS -Winit-self"
17359
17360		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
17361printf %s "checking if $CC supports -Winit-self... " >&6; }
17362		cacheid=xorg_cv_cc_flag__Winit_self
17363		if eval test \${$cacheid+y}
17364then :
17365  printf %s "(cached) " >&6
17366else $as_nop
17367  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17368/* end confdefs.h.  */
17369int i;
17370int
17371main (void)
17372{
17373
17374  ;
17375  return 0;
17376}
17377_ACEOF
17378if ac_fn_c_try_link "$LINENO"
17379then :
17380  eval $cacheid=yes
17381else $as_nop
17382  eval $cacheid=no
17383fi
17384rm -f core conftest.err conftest.$ac_objext conftest.beam \
17385    conftest$ac_exeext conftest.$ac_ext
17386fi
17387
17388
17389		CFLAGS="$xorg_testset_save_CFLAGS"
17390
17391		eval supported=\$$cacheid
17392		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17393printf "%s\n" "$supported" >&6; }
17394		if test "$supported" = "yes" ; then
17395			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
17396			found="yes"
17397		fi
17398	fi
17399
17400
17401
17402
17403
17404
17405
17406
17407
17408
17409
17410
17411
17412
17413
17414xorg_testset_save_CFLAGS="$CFLAGS"
17415
17416if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17417	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17418	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17419printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17420if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17421then :
17422  printf %s "(cached) " >&6
17423else $as_nop
17424  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17425/* end confdefs.h.  */
17426int i;
17427_ACEOF
17428if ac_fn_c_try_compile "$LINENO"
17429then :
17430  xorg_cv_cc_flag_unknown_warning_option=yes
17431else $as_nop
17432  xorg_cv_cc_flag_unknown_warning_option=no
17433fi
17434rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17435fi
17436{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17437printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17438	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17439	CFLAGS="$xorg_testset_save_CFLAGS"
17440fi
17441
17442if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17443	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17444		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17445	fi
17446	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17447	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17448printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17449if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17450then :
17451  printf %s "(cached) " >&6
17452else $as_nop
17453  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17454/* end confdefs.h.  */
17455int i;
17456_ACEOF
17457if ac_fn_c_try_compile "$LINENO"
17458then :
17459  xorg_cv_cc_flag_unused_command_line_argument=yes
17460else $as_nop
17461  xorg_cv_cc_flag_unused_command_line_argument=no
17462fi
17463rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17464fi
17465{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17466printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17467	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17468	CFLAGS="$xorg_testset_save_CFLAGS"
17469fi
17470
17471found="no"
17472
17473	if test $found = "no" ; then
17474		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17475			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17476		fi
17477
17478		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17479			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17480		fi
17481
17482		CFLAGS="$CFLAGS -Wmain"
17483
17484		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
17485printf %s "checking if $CC supports -Wmain... " >&6; }
17486		cacheid=xorg_cv_cc_flag__Wmain
17487		if eval test \${$cacheid+y}
17488then :
17489  printf %s "(cached) " >&6
17490else $as_nop
17491  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17492/* end confdefs.h.  */
17493int i;
17494int
17495main (void)
17496{
17497
17498  ;
17499  return 0;
17500}
17501_ACEOF
17502if ac_fn_c_try_link "$LINENO"
17503then :
17504  eval $cacheid=yes
17505else $as_nop
17506  eval $cacheid=no
17507fi
17508rm -f core conftest.err conftest.$ac_objext conftest.beam \
17509    conftest$ac_exeext conftest.$ac_ext
17510fi
17511
17512
17513		CFLAGS="$xorg_testset_save_CFLAGS"
17514
17515		eval supported=\$$cacheid
17516		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17517printf "%s\n" "$supported" >&6; }
17518		if test "$supported" = "yes" ; then
17519			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
17520			found="yes"
17521		fi
17522	fi
17523
17524
17525
17526
17527
17528
17529
17530
17531
17532
17533
17534
17535
17536
17537
17538xorg_testset_save_CFLAGS="$CFLAGS"
17539
17540if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17541	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17542	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17543printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17544if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17545then :
17546  printf %s "(cached) " >&6
17547else $as_nop
17548  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17549/* end confdefs.h.  */
17550int i;
17551_ACEOF
17552if ac_fn_c_try_compile "$LINENO"
17553then :
17554  xorg_cv_cc_flag_unknown_warning_option=yes
17555else $as_nop
17556  xorg_cv_cc_flag_unknown_warning_option=no
17557fi
17558rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17559fi
17560{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17561printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17562	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17563	CFLAGS="$xorg_testset_save_CFLAGS"
17564fi
17565
17566if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17567	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17568		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17569	fi
17570	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17571	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17572printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17573if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17574then :
17575  printf %s "(cached) " >&6
17576else $as_nop
17577  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17578/* end confdefs.h.  */
17579int i;
17580_ACEOF
17581if ac_fn_c_try_compile "$LINENO"
17582then :
17583  xorg_cv_cc_flag_unused_command_line_argument=yes
17584else $as_nop
17585  xorg_cv_cc_flag_unused_command_line_argument=no
17586fi
17587rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17588fi
17589{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17590printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17591	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17592	CFLAGS="$xorg_testset_save_CFLAGS"
17593fi
17594
17595found="no"
17596
17597	if test $found = "no" ; then
17598		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17599			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17600		fi
17601
17602		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17603			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17604		fi
17605
17606		CFLAGS="$CFLAGS -Wmissing-braces"
17607
17608		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
17609printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
17610		cacheid=xorg_cv_cc_flag__Wmissing_braces
17611		if eval test \${$cacheid+y}
17612then :
17613  printf %s "(cached) " >&6
17614else $as_nop
17615  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17616/* end confdefs.h.  */
17617int i;
17618int
17619main (void)
17620{
17621
17622  ;
17623  return 0;
17624}
17625_ACEOF
17626if ac_fn_c_try_link "$LINENO"
17627then :
17628  eval $cacheid=yes
17629else $as_nop
17630  eval $cacheid=no
17631fi
17632rm -f core conftest.err conftest.$ac_objext conftest.beam \
17633    conftest$ac_exeext conftest.$ac_ext
17634fi
17635
17636
17637		CFLAGS="$xorg_testset_save_CFLAGS"
17638
17639		eval supported=\$$cacheid
17640		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17641printf "%s\n" "$supported" >&6; }
17642		if test "$supported" = "yes" ; then
17643			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
17644			found="yes"
17645		fi
17646	fi
17647
17648
17649
17650
17651
17652
17653
17654
17655
17656
17657
17658
17659
17660
17661
17662xorg_testset_save_CFLAGS="$CFLAGS"
17663
17664if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17665	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17666	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17667printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17668if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17669then :
17670  printf %s "(cached) " >&6
17671else $as_nop
17672  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17673/* end confdefs.h.  */
17674int i;
17675_ACEOF
17676if ac_fn_c_try_compile "$LINENO"
17677then :
17678  xorg_cv_cc_flag_unknown_warning_option=yes
17679else $as_nop
17680  xorg_cv_cc_flag_unknown_warning_option=no
17681fi
17682rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17683fi
17684{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17685printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17686	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17687	CFLAGS="$xorg_testset_save_CFLAGS"
17688fi
17689
17690if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17691	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17692		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17693	fi
17694	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17695	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17696printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17697if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17698then :
17699  printf %s "(cached) " >&6
17700else $as_nop
17701  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17702/* end confdefs.h.  */
17703int i;
17704_ACEOF
17705if ac_fn_c_try_compile "$LINENO"
17706then :
17707  xorg_cv_cc_flag_unused_command_line_argument=yes
17708else $as_nop
17709  xorg_cv_cc_flag_unused_command_line_argument=no
17710fi
17711rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17712fi
17713{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17714printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17715	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17716	CFLAGS="$xorg_testset_save_CFLAGS"
17717fi
17718
17719found="no"
17720
17721	if test $found = "no" ; then
17722		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17723			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17724		fi
17725
17726		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17727			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17728		fi
17729
17730		CFLAGS="$CFLAGS -Wsequence-point"
17731
17732		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
17733printf %s "checking if $CC supports -Wsequence-point... " >&6; }
17734		cacheid=xorg_cv_cc_flag__Wsequence_point
17735		if eval test \${$cacheid+y}
17736then :
17737  printf %s "(cached) " >&6
17738else $as_nop
17739  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17740/* end confdefs.h.  */
17741int i;
17742int
17743main (void)
17744{
17745
17746  ;
17747  return 0;
17748}
17749_ACEOF
17750if ac_fn_c_try_link "$LINENO"
17751then :
17752  eval $cacheid=yes
17753else $as_nop
17754  eval $cacheid=no
17755fi
17756rm -f core conftest.err conftest.$ac_objext conftest.beam \
17757    conftest$ac_exeext conftest.$ac_ext
17758fi
17759
17760
17761		CFLAGS="$xorg_testset_save_CFLAGS"
17762
17763		eval supported=\$$cacheid
17764		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17765printf "%s\n" "$supported" >&6; }
17766		if test "$supported" = "yes" ; then
17767			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
17768			found="yes"
17769		fi
17770	fi
17771
17772
17773
17774
17775
17776
17777
17778
17779
17780
17781
17782
17783
17784
17785
17786xorg_testset_save_CFLAGS="$CFLAGS"
17787
17788if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17789	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17790	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17791printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17792if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17793then :
17794  printf %s "(cached) " >&6
17795else $as_nop
17796  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17797/* end confdefs.h.  */
17798int i;
17799_ACEOF
17800if ac_fn_c_try_compile "$LINENO"
17801then :
17802  xorg_cv_cc_flag_unknown_warning_option=yes
17803else $as_nop
17804  xorg_cv_cc_flag_unknown_warning_option=no
17805fi
17806rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17807fi
17808{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17809printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17810	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17811	CFLAGS="$xorg_testset_save_CFLAGS"
17812fi
17813
17814if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17815	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17816		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17817	fi
17818	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17819	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17820printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17821if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17822then :
17823  printf %s "(cached) " >&6
17824else $as_nop
17825  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17826/* end confdefs.h.  */
17827int i;
17828_ACEOF
17829if ac_fn_c_try_compile "$LINENO"
17830then :
17831  xorg_cv_cc_flag_unused_command_line_argument=yes
17832else $as_nop
17833  xorg_cv_cc_flag_unused_command_line_argument=no
17834fi
17835rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17836fi
17837{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17838printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17839	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17840	CFLAGS="$xorg_testset_save_CFLAGS"
17841fi
17842
17843found="no"
17844
17845	if test $found = "no" ; then
17846		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17847			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17848		fi
17849
17850		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17851			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17852		fi
17853
17854		CFLAGS="$CFLAGS -Wreturn-type"
17855
17856		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
17857printf %s "checking if $CC supports -Wreturn-type... " >&6; }
17858		cacheid=xorg_cv_cc_flag__Wreturn_type
17859		if eval test \${$cacheid+y}
17860then :
17861  printf %s "(cached) " >&6
17862else $as_nop
17863  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17864/* end confdefs.h.  */
17865int i;
17866int
17867main (void)
17868{
17869
17870  ;
17871  return 0;
17872}
17873_ACEOF
17874if ac_fn_c_try_link "$LINENO"
17875then :
17876  eval $cacheid=yes
17877else $as_nop
17878  eval $cacheid=no
17879fi
17880rm -f core conftest.err conftest.$ac_objext conftest.beam \
17881    conftest$ac_exeext conftest.$ac_ext
17882fi
17883
17884
17885		CFLAGS="$xorg_testset_save_CFLAGS"
17886
17887		eval supported=\$$cacheid
17888		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17889printf "%s\n" "$supported" >&6; }
17890		if test "$supported" = "yes" ; then
17891			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
17892			found="yes"
17893		fi
17894	fi
17895
17896
17897
17898
17899
17900
17901
17902
17903
17904
17905
17906
17907
17908
17909
17910xorg_testset_save_CFLAGS="$CFLAGS"
17911
17912if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17913	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17914	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17915printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17916if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17917then :
17918  printf %s "(cached) " >&6
17919else $as_nop
17920  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17921/* end confdefs.h.  */
17922int i;
17923_ACEOF
17924if ac_fn_c_try_compile "$LINENO"
17925then :
17926  xorg_cv_cc_flag_unknown_warning_option=yes
17927else $as_nop
17928  xorg_cv_cc_flag_unknown_warning_option=no
17929fi
17930rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17931fi
17932{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17933printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17934	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17935	CFLAGS="$xorg_testset_save_CFLAGS"
17936fi
17937
17938if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17939	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17940		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17941	fi
17942	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17943	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17944printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17945if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17946then :
17947  printf %s "(cached) " >&6
17948else $as_nop
17949  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17950/* end confdefs.h.  */
17951int i;
17952_ACEOF
17953if ac_fn_c_try_compile "$LINENO"
17954then :
17955  xorg_cv_cc_flag_unused_command_line_argument=yes
17956else $as_nop
17957  xorg_cv_cc_flag_unused_command_line_argument=no
17958fi
17959rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17960fi
17961{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17962printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17963	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17964	CFLAGS="$xorg_testset_save_CFLAGS"
17965fi
17966
17967found="no"
17968
17969	if test $found = "no" ; then
17970		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17971			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17972		fi
17973
17974		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17975			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17976		fi
17977
17978		CFLAGS="$CFLAGS -Wtrigraphs"
17979
17980		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
17981printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
17982		cacheid=xorg_cv_cc_flag__Wtrigraphs
17983		if eval test \${$cacheid+y}
17984then :
17985  printf %s "(cached) " >&6
17986else $as_nop
17987  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17988/* end confdefs.h.  */
17989int i;
17990int
17991main (void)
17992{
17993
17994  ;
17995  return 0;
17996}
17997_ACEOF
17998if ac_fn_c_try_link "$LINENO"
17999then :
18000  eval $cacheid=yes
18001else $as_nop
18002  eval $cacheid=no
18003fi
18004rm -f core conftest.err conftest.$ac_objext conftest.beam \
18005    conftest$ac_exeext conftest.$ac_ext
18006fi
18007
18008
18009		CFLAGS="$xorg_testset_save_CFLAGS"
18010
18011		eval supported=\$$cacheid
18012		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18013printf "%s\n" "$supported" >&6; }
18014		if test "$supported" = "yes" ; then
18015			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
18016			found="yes"
18017		fi
18018	fi
18019
18020
18021
18022
18023
18024
18025
18026
18027
18028
18029
18030
18031
18032
18033
18034xorg_testset_save_CFLAGS="$CFLAGS"
18035
18036if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18037	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18038	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18039printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18040if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18041then :
18042  printf %s "(cached) " >&6
18043else $as_nop
18044  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18045/* end confdefs.h.  */
18046int i;
18047_ACEOF
18048if ac_fn_c_try_compile "$LINENO"
18049then :
18050  xorg_cv_cc_flag_unknown_warning_option=yes
18051else $as_nop
18052  xorg_cv_cc_flag_unknown_warning_option=no
18053fi
18054rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18055fi
18056{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18057printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18058	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18059	CFLAGS="$xorg_testset_save_CFLAGS"
18060fi
18061
18062if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18063	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18064		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18065	fi
18066	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18067	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18068printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18069if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18070then :
18071  printf %s "(cached) " >&6
18072else $as_nop
18073  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18074/* end confdefs.h.  */
18075int i;
18076_ACEOF
18077if ac_fn_c_try_compile "$LINENO"
18078then :
18079  xorg_cv_cc_flag_unused_command_line_argument=yes
18080else $as_nop
18081  xorg_cv_cc_flag_unused_command_line_argument=no
18082fi
18083rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18084fi
18085{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18086printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18087	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18088	CFLAGS="$xorg_testset_save_CFLAGS"
18089fi
18090
18091found="no"
18092
18093	if test $found = "no" ; then
18094		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18095			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18096		fi
18097
18098		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18099			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18100		fi
18101
18102		CFLAGS="$CFLAGS -Warray-bounds"
18103
18104		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
18105printf %s "checking if $CC supports -Warray-bounds... " >&6; }
18106		cacheid=xorg_cv_cc_flag__Warray_bounds
18107		if eval test \${$cacheid+y}
18108then :
18109  printf %s "(cached) " >&6
18110else $as_nop
18111  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18112/* end confdefs.h.  */
18113int i;
18114int
18115main (void)
18116{
18117
18118  ;
18119  return 0;
18120}
18121_ACEOF
18122if ac_fn_c_try_link "$LINENO"
18123then :
18124  eval $cacheid=yes
18125else $as_nop
18126  eval $cacheid=no
18127fi
18128rm -f core conftest.err conftest.$ac_objext conftest.beam \
18129    conftest$ac_exeext conftest.$ac_ext
18130fi
18131
18132
18133		CFLAGS="$xorg_testset_save_CFLAGS"
18134
18135		eval supported=\$$cacheid
18136		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18137printf "%s\n" "$supported" >&6; }
18138		if test "$supported" = "yes" ; then
18139			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
18140			found="yes"
18141		fi
18142	fi
18143
18144
18145
18146
18147
18148
18149
18150
18151
18152
18153
18154
18155
18156
18157
18158xorg_testset_save_CFLAGS="$CFLAGS"
18159
18160if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18161	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18162	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18163printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18164if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18165then :
18166  printf %s "(cached) " >&6
18167else $as_nop
18168  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18169/* end confdefs.h.  */
18170int i;
18171_ACEOF
18172if ac_fn_c_try_compile "$LINENO"
18173then :
18174  xorg_cv_cc_flag_unknown_warning_option=yes
18175else $as_nop
18176  xorg_cv_cc_flag_unknown_warning_option=no
18177fi
18178rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18179fi
18180{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18181printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18182	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18183	CFLAGS="$xorg_testset_save_CFLAGS"
18184fi
18185
18186if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18187	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18188		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18189	fi
18190	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18191	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18192printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18193if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18194then :
18195  printf %s "(cached) " >&6
18196else $as_nop
18197  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18198/* end confdefs.h.  */
18199int i;
18200_ACEOF
18201if ac_fn_c_try_compile "$LINENO"
18202then :
18203  xorg_cv_cc_flag_unused_command_line_argument=yes
18204else $as_nop
18205  xorg_cv_cc_flag_unused_command_line_argument=no
18206fi
18207rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18208fi
18209{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18210printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18211	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18212	CFLAGS="$xorg_testset_save_CFLAGS"
18213fi
18214
18215found="no"
18216
18217	if test $found = "no" ; then
18218		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18219			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18220		fi
18221
18222		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18223			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18224		fi
18225
18226		CFLAGS="$CFLAGS -Wwrite-strings"
18227
18228		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
18229printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
18230		cacheid=xorg_cv_cc_flag__Wwrite_strings
18231		if eval test \${$cacheid+y}
18232then :
18233  printf %s "(cached) " >&6
18234else $as_nop
18235  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18236/* end confdefs.h.  */
18237int i;
18238int
18239main (void)
18240{
18241
18242  ;
18243  return 0;
18244}
18245_ACEOF
18246if ac_fn_c_try_link "$LINENO"
18247then :
18248  eval $cacheid=yes
18249else $as_nop
18250  eval $cacheid=no
18251fi
18252rm -f core conftest.err conftest.$ac_objext conftest.beam \
18253    conftest$ac_exeext conftest.$ac_ext
18254fi
18255
18256
18257		CFLAGS="$xorg_testset_save_CFLAGS"
18258
18259		eval supported=\$$cacheid
18260		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18261printf "%s\n" "$supported" >&6; }
18262		if test "$supported" = "yes" ; then
18263			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
18264			found="yes"
18265		fi
18266	fi
18267
18268
18269
18270
18271
18272
18273
18274
18275
18276
18277
18278
18279
18280
18281
18282xorg_testset_save_CFLAGS="$CFLAGS"
18283
18284if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18285	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18286	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18287printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18288if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18289then :
18290  printf %s "(cached) " >&6
18291else $as_nop
18292  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18293/* end confdefs.h.  */
18294int i;
18295_ACEOF
18296if ac_fn_c_try_compile "$LINENO"
18297then :
18298  xorg_cv_cc_flag_unknown_warning_option=yes
18299else $as_nop
18300  xorg_cv_cc_flag_unknown_warning_option=no
18301fi
18302rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18303fi
18304{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18305printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18306	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18307	CFLAGS="$xorg_testset_save_CFLAGS"
18308fi
18309
18310if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18311	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18312		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18313	fi
18314	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18315	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18316printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18317if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18318then :
18319  printf %s "(cached) " >&6
18320else $as_nop
18321  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18322/* end confdefs.h.  */
18323int i;
18324_ACEOF
18325if ac_fn_c_try_compile "$LINENO"
18326then :
18327  xorg_cv_cc_flag_unused_command_line_argument=yes
18328else $as_nop
18329  xorg_cv_cc_flag_unused_command_line_argument=no
18330fi
18331rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18332fi
18333{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18334printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18335	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18336	CFLAGS="$xorg_testset_save_CFLAGS"
18337fi
18338
18339found="no"
18340
18341	if test $found = "no" ; then
18342		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18343			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18344		fi
18345
18346		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18347			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18348		fi
18349
18350		CFLAGS="$CFLAGS -Waddress"
18351
18352		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
18353printf %s "checking if $CC supports -Waddress... " >&6; }
18354		cacheid=xorg_cv_cc_flag__Waddress
18355		if eval test \${$cacheid+y}
18356then :
18357  printf %s "(cached) " >&6
18358else $as_nop
18359  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18360/* end confdefs.h.  */
18361int i;
18362int
18363main (void)
18364{
18365
18366  ;
18367  return 0;
18368}
18369_ACEOF
18370if ac_fn_c_try_link "$LINENO"
18371then :
18372  eval $cacheid=yes
18373else $as_nop
18374  eval $cacheid=no
18375fi
18376rm -f core conftest.err conftest.$ac_objext conftest.beam \
18377    conftest$ac_exeext conftest.$ac_ext
18378fi
18379
18380
18381		CFLAGS="$xorg_testset_save_CFLAGS"
18382
18383		eval supported=\$$cacheid
18384		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18385printf "%s\n" "$supported" >&6; }
18386		if test "$supported" = "yes" ; then
18387			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
18388			found="yes"
18389		fi
18390	fi
18391
18392
18393
18394
18395
18396
18397
18398
18399
18400
18401
18402
18403
18404
18405
18406xorg_testset_save_CFLAGS="$CFLAGS"
18407
18408if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18409	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18410	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18411printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18412if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18413then :
18414  printf %s "(cached) " >&6
18415else $as_nop
18416  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18417/* end confdefs.h.  */
18418int i;
18419_ACEOF
18420if ac_fn_c_try_compile "$LINENO"
18421then :
18422  xorg_cv_cc_flag_unknown_warning_option=yes
18423else $as_nop
18424  xorg_cv_cc_flag_unknown_warning_option=no
18425fi
18426rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18427fi
18428{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18429printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18430	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18431	CFLAGS="$xorg_testset_save_CFLAGS"
18432fi
18433
18434if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18435	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18436		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18437	fi
18438	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18439	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18440printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18441if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18442then :
18443  printf %s "(cached) " >&6
18444else $as_nop
18445  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18446/* end confdefs.h.  */
18447int i;
18448_ACEOF
18449if ac_fn_c_try_compile "$LINENO"
18450then :
18451  xorg_cv_cc_flag_unused_command_line_argument=yes
18452else $as_nop
18453  xorg_cv_cc_flag_unused_command_line_argument=no
18454fi
18455rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18456fi
18457{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18458printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18459	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18460	CFLAGS="$xorg_testset_save_CFLAGS"
18461fi
18462
18463found="no"
18464
18465	if test $found = "no" ; then
18466		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18467			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18468		fi
18469
18470		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18471			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18472		fi
18473
18474		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
18475
18476		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
18477printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
18478		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
18479		if eval test \${$cacheid+y}
18480then :
18481  printf %s "(cached) " >&6
18482else $as_nop
18483  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18484/* end confdefs.h.  */
18485int i;
18486int
18487main (void)
18488{
18489
18490  ;
18491  return 0;
18492}
18493_ACEOF
18494if ac_fn_c_try_link "$LINENO"
18495then :
18496  eval $cacheid=yes
18497else $as_nop
18498  eval $cacheid=no
18499fi
18500rm -f core conftest.err conftest.$ac_objext conftest.beam \
18501    conftest$ac_exeext conftest.$ac_ext
18502fi
18503
18504
18505		CFLAGS="$xorg_testset_save_CFLAGS"
18506
18507		eval supported=\$$cacheid
18508		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18509printf "%s\n" "$supported" >&6; }
18510		if test "$supported" = "yes" ; then
18511			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
18512			found="yes"
18513		fi
18514	fi
18515
18516
18517
18518
18519
18520
18521
18522
18523
18524
18525
18526
18527
18528
18529
18530xorg_testset_save_CFLAGS="$CFLAGS"
18531
18532if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18533	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18534	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18535printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18536if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18537then :
18538  printf %s "(cached) " >&6
18539else $as_nop
18540  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18541/* end confdefs.h.  */
18542int i;
18543_ACEOF
18544if ac_fn_c_try_compile "$LINENO"
18545then :
18546  xorg_cv_cc_flag_unknown_warning_option=yes
18547else $as_nop
18548  xorg_cv_cc_flag_unknown_warning_option=no
18549fi
18550rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18551fi
18552{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18553printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18554	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18555	CFLAGS="$xorg_testset_save_CFLAGS"
18556fi
18557
18558if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18559	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18560		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18561	fi
18562	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18563	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18564printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18565if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18566then :
18567  printf %s "(cached) " >&6
18568else $as_nop
18569  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18570/* end confdefs.h.  */
18571int i;
18572_ACEOF
18573if ac_fn_c_try_compile "$LINENO"
18574then :
18575  xorg_cv_cc_flag_unused_command_line_argument=yes
18576else $as_nop
18577  xorg_cv_cc_flag_unused_command_line_argument=no
18578fi
18579rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18580fi
18581{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18582printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18583	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18584	CFLAGS="$xorg_testset_save_CFLAGS"
18585fi
18586
18587found="no"
18588
18589	if test $found = "no" ; then
18590		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18591			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18592		fi
18593
18594		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18595			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18596		fi
18597
18598		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
18599
18600		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
18601printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
18602		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
18603		if eval test \${$cacheid+y}
18604then :
18605  printf %s "(cached) " >&6
18606else $as_nop
18607  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18608/* end confdefs.h.  */
18609int i;
18610int
18611main (void)
18612{
18613
18614  ;
18615  return 0;
18616}
18617_ACEOF
18618if ac_fn_c_try_link "$LINENO"
18619then :
18620  eval $cacheid=yes
18621else $as_nop
18622  eval $cacheid=no
18623fi
18624rm -f core conftest.err conftest.$ac_objext conftest.beam \
18625    conftest$ac_exeext conftest.$ac_ext
18626fi
18627
18628
18629		CFLAGS="$xorg_testset_save_CFLAGS"
18630
18631		eval supported=\$$cacheid
18632		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18633printf "%s\n" "$supported" >&6; }
18634		if test "$supported" = "yes" ; then
18635			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
18636			found="yes"
18637		fi
18638	fi
18639
18640
18641fi
18642
18643
18644
18645
18646
18647
18648
18649		CWARNFLAGS="$BASE_CFLAGS"
18650		if  test "x$GCC" = xyes ; then
18651		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
18652		fi
18653
18654
18655
18656
18657
18658
18659
18660
18661# Check whether --enable-strict-compilation was given.
18662if test ${enable_strict_compilation+y}
18663then :
18664  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
18665else $as_nop
18666  STRICT_COMPILE=no
18667fi
18668
18669
18670
18671
18672
18673
18674STRICT_CFLAGS=""
18675
18676
18677
18678
18679
18680
18681
18682
18683
18684
18685
18686
18687
18688xorg_testset_save_CFLAGS="$CFLAGS"
18689
18690if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18691	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18692	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18693printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18694if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18695then :
18696  printf %s "(cached) " >&6
18697else $as_nop
18698  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18699/* end confdefs.h.  */
18700int i;
18701_ACEOF
18702if ac_fn_c_try_compile "$LINENO"
18703then :
18704  xorg_cv_cc_flag_unknown_warning_option=yes
18705else $as_nop
18706  xorg_cv_cc_flag_unknown_warning_option=no
18707fi
18708rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18709fi
18710{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18711printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18712	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18713	CFLAGS="$xorg_testset_save_CFLAGS"
18714fi
18715
18716if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18717	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18718		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18719	fi
18720	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18721	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18722printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18723if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18724then :
18725  printf %s "(cached) " >&6
18726else $as_nop
18727  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18728/* end confdefs.h.  */
18729int i;
18730_ACEOF
18731if ac_fn_c_try_compile "$LINENO"
18732then :
18733  xorg_cv_cc_flag_unused_command_line_argument=yes
18734else $as_nop
18735  xorg_cv_cc_flag_unused_command_line_argument=no
18736fi
18737rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18738fi
18739{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18740printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18741	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18742	CFLAGS="$xorg_testset_save_CFLAGS"
18743fi
18744
18745found="no"
18746
18747	if test $found = "no" ; then
18748		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18749			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18750		fi
18751
18752		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18753			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18754		fi
18755
18756		CFLAGS="$CFLAGS -pedantic"
18757
18758		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
18759printf %s "checking if $CC supports -pedantic... " >&6; }
18760		cacheid=xorg_cv_cc_flag__pedantic
18761		if eval test \${$cacheid+y}
18762then :
18763  printf %s "(cached) " >&6
18764else $as_nop
18765  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18766/* end confdefs.h.  */
18767int i;
18768int
18769main (void)
18770{
18771
18772  ;
18773  return 0;
18774}
18775_ACEOF
18776if ac_fn_c_try_link "$LINENO"
18777then :
18778  eval $cacheid=yes
18779else $as_nop
18780  eval $cacheid=no
18781fi
18782rm -f core conftest.err conftest.$ac_objext conftest.beam \
18783    conftest$ac_exeext conftest.$ac_ext
18784fi
18785
18786
18787		CFLAGS="$xorg_testset_save_CFLAGS"
18788
18789		eval supported=\$$cacheid
18790		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18791printf "%s\n" "$supported" >&6; }
18792		if test "$supported" = "yes" ; then
18793			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
18794			found="yes"
18795		fi
18796	fi
18797
18798
18799
18800
18801
18802
18803
18804
18805
18806
18807
18808
18809
18810
18811
18812xorg_testset_save_CFLAGS="$CFLAGS"
18813
18814if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18815	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18816	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18817printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18818if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18819then :
18820  printf %s "(cached) " >&6
18821else $as_nop
18822  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18823/* end confdefs.h.  */
18824int i;
18825_ACEOF
18826if ac_fn_c_try_compile "$LINENO"
18827then :
18828  xorg_cv_cc_flag_unknown_warning_option=yes
18829else $as_nop
18830  xorg_cv_cc_flag_unknown_warning_option=no
18831fi
18832rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18833fi
18834{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18835printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18836	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18837	CFLAGS="$xorg_testset_save_CFLAGS"
18838fi
18839
18840if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18841	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18842		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18843	fi
18844	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18845	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18846printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18847if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18848then :
18849  printf %s "(cached) " >&6
18850else $as_nop
18851  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18852/* end confdefs.h.  */
18853int i;
18854_ACEOF
18855if ac_fn_c_try_compile "$LINENO"
18856then :
18857  xorg_cv_cc_flag_unused_command_line_argument=yes
18858else $as_nop
18859  xorg_cv_cc_flag_unused_command_line_argument=no
18860fi
18861rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18862fi
18863{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18864printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18865	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18866	CFLAGS="$xorg_testset_save_CFLAGS"
18867fi
18868
18869found="no"
18870
18871	if test $found = "no" ; then
18872		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18873			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18874		fi
18875
18876		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18877			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18878		fi
18879
18880		CFLAGS="$CFLAGS -Werror"
18881
18882		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
18883printf %s "checking if $CC supports -Werror... " >&6; }
18884		cacheid=xorg_cv_cc_flag__Werror
18885		if eval test \${$cacheid+y}
18886then :
18887  printf %s "(cached) " >&6
18888else $as_nop
18889  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18890/* end confdefs.h.  */
18891int i;
18892int
18893main (void)
18894{
18895
18896  ;
18897  return 0;
18898}
18899_ACEOF
18900if ac_fn_c_try_link "$LINENO"
18901then :
18902  eval $cacheid=yes
18903else $as_nop
18904  eval $cacheid=no
18905fi
18906rm -f core conftest.err conftest.$ac_objext conftest.beam \
18907    conftest$ac_exeext conftest.$ac_ext
18908fi
18909
18910
18911		CFLAGS="$xorg_testset_save_CFLAGS"
18912
18913		eval supported=\$$cacheid
18914		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18915printf "%s\n" "$supported" >&6; }
18916		if test "$supported" = "yes" ; then
18917			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
18918			found="yes"
18919		fi
18920	fi
18921
18922	if test $found = "no" ; then
18923		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18924			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18925		fi
18926
18927		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18928			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18929		fi
18930
18931		CFLAGS="$CFLAGS -errwarn"
18932
18933		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
18934printf %s "checking if $CC supports -errwarn... " >&6; }
18935		cacheid=xorg_cv_cc_flag__errwarn
18936		if eval test \${$cacheid+y}
18937then :
18938  printf %s "(cached) " >&6
18939else $as_nop
18940  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18941/* end confdefs.h.  */
18942int i;
18943int
18944main (void)
18945{
18946
18947  ;
18948  return 0;
18949}
18950_ACEOF
18951if ac_fn_c_try_link "$LINENO"
18952then :
18953  eval $cacheid=yes
18954else $as_nop
18955  eval $cacheid=no
18956fi
18957rm -f core conftest.err conftest.$ac_objext conftest.beam \
18958    conftest$ac_exeext conftest.$ac_ext
18959fi
18960
18961
18962		CFLAGS="$xorg_testset_save_CFLAGS"
18963
18964		eval supported=\$$cacheid
18965		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18966printf "%s\n" "$supported" >&6; }
18967		if test "$supported" = "yes" ; then
18968			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
18969			found="yes"
18970		fi
18971	fi
18972
18973
18974
18975# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
18976# activate it with -Werror, so we add it here explicitly.
18977
18978
18979
18980
18981
18982
18983
18984
18985
18986
18987
18988
18989
18990xorg_testset_save_CFLAGS="$CFLAGS"
18991
18992if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18993	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18994	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18995printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18996if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18997then :
18998  printf %s "(cached) " >&6
18999else $as_nop
19000  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19001/* end confdefs.h.  */
19002int i;
19003_ACEOF
19004if ac_fn_c_try_compile "$LINENO"
19005then :
19006  xorg_cv_cc_flag_unknown_warning_option=yes
19007else $as_nop
19008  xorg_cv_cc_flag_unknown_warning_option=no
19009fi
19010rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19011fi
19012{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19013printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19014	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19015	CFLAGS="$xorg_testset_save_CFLAGS"
19016fi
19017
19018if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19019	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19020		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19021	fi
19022	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19023	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19024printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19025if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19026then :
19027  printf %s "(cached) " >&6
19028else $as_nop
19029  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19030/* end confdefs.h.  */
19031int i;
19032_ACEOF
19033if ac_fn_c_try_compile "$LINENO"
19034then :
19035  xorg_cv_cc_flag_unused_command_line_argument=yes
19036else $as_nop
19037  xorg_cv_cc_flag_unused_command_line_argument=no
19038fi
19039rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19040fi
19041{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19042printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19043	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19044	CFLAGS="$xorg_testset_save_CFLAGS"
19045fi
19046
19047found="no"
19048
19049	if test $found = "no" ; then
19050		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19051			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19052		fi
19053
19054		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19055			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19056		fi
19057
19058		CFLAGS="$CFLAGS -Werror=attributes"
19059
19060		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
19061printf %s "checking if $CC supports -Werror=attributes... " >&6; }
19062		cacheid=xorg_cv_cc_flag__Werror_attributes
19063		if eval test \${$cacheid+y}
19064then :
19065  printf %s "(cached) " >&6
19066else $as_nop
19067  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19068/* end confdefs.h.  */
19069int i;
19070int
19071main (void)
19072{
19073
19074  ;
19075  return 0;
19076}
19077_ACEOF
19078if ac_fn_c_try_link "$LINENO"
19079then :
19080  eval $cacheid=yes
19081else $as_nop
19082  eval $cacheid=no
19083fi
19084rm -f core conftest.err conftest.$ac_objext conftest.beam \
19085    conftest$ac_exeext conftest.$ac_ext
19086fi
19087
19088
19089		CFLAGS="$xorg_testset_save_CFLAGS"
19090
19091		eval supported=\$$cacheid
19092		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19093printf "%s\n" "$supported" >&6; }
19094		if test "$supported" = "yes" ; then
19095			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
19096			found="yes"
19097		fi
19098	fi
19099
19100
19101
19102if test "x$STRICT_COMPILE" = "xyes"; then
19103    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
19104    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
19105fi
19106
19107
19108
19109
19110
19111
19112
19113
19114cat >>confdefs.h <<_ACEOF
19115#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
19116_ACEOF
19117
19118	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
19119	if test "x$PVM" = "x"; then
19120		PVM="0"
19121	fi
19122
19123printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
19124
19125	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
19126	if test "x$PVP" = "x"; then
19127		PVP="0"
19128	fi
19129
19130printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
19131
19132
19133
19134CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
19135mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
19136|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
19137touch \$(top_srcdir)/ChangeLog; \
19138echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
19139
19140
19141
19142
19143macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
19144INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
19145mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
19146|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
19147touch \$(top_srcdir)/INSTALL; \
19148echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
19149
19150
19151
19152
19153
19154
19155case $host_os in
19156    solaris*)
19157        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
19158        # check for a man page file found in later versions that use
19159        # traditional section numbers instead
19160        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
19161printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
19162if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
19163then :
19164  printf %s "(cached) " >&6
19165else $as_nop
19166  test "$cross_compiling" = yes &&
19167  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
19168if test -r "/usr/share/man/man7/attributes.7"; then
19169  ac_cv_file__usr_share_man_man7_attributes_7=yes
19170else
19171  ac_cv_file__usr_share_man_man7_attributes_7=no
19172fi
19173fi
19174{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
19175printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
19176if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
19177then :
19178  SYSV_MAN_SECTIONS=false
19179else $as_nop
19180  SYSV_MAN_SECTIONS=true
19181fi
19182
19183        ;;
19184    *) SYSV_MAN_SECTIONS=false ;;
19185esac
19186
19187if test x$APP_MAN_SUFFIX = x    ; then
19188    APP_MAN_SUFFIX=1
19189fi
19190if test x$APP_MAN_DIR = x    ; then
19191    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
19192fi
19193
19194if test x$LIB_MAN_SUFFIX = x    ; then
19195    LIB_MAN_SUFFIX=3
19196fi
19197if test x$LIB_MAN_DIR = x    ; then
19198    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
19199fi
19200
19201if test x$FILE_MAN_SUFFIX = x    ; then
19202    case $SYSV_MAN_SECTIONS in
19203	true)				FILE_MAN_SUFFIX=4  ;;
19204	*)				FILE_MAN_SUFFIX=5  ;;
19205    esac
19206fi
19207if test x$FILE_MAN_DIR = x    ; then
19208    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
19209fi
19210
19211if test x$MISC_MAN_SUFFIX = x    ; then
19212    case $SYSV_MAN_SECTIONS in
19213	true)				MISC_MAN_SUFFIX=5  ;;
19214	*)				MISC_MAN_SUFFIX=7  ;;
19215    esac
19216fi
19217if test x$MISC_MAN_DIR = x    ; then
19218    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
19219fi
19220
19221if test x$DRIVER_MAN_SUFFIX = x    ; then
19222    case $SYSV_MAN_SECTIONS in
19223	true)				DRIVER_MAN_SUFFIX=7  ;;
19224	*)				DRIVER_MAN_SUFFIX=4  ;;
19225    esac
19226fi
19227if test x$DRIVER_MAN_DIR = x    ; then
19228    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
19229fi
19230
19231if test x$ADMIN_MAN_SUFFIX = x    ; then
19232    case $SYSV_MAN_SECTIONS in
19233	true)				ADMIN_MAN_SUFFIX=1m ;;
19234	*)				ADMIN_MAN_SUFFIX=8  ;;
19235    esac
19236fi
19237if test x$ADMIN_MAN_DIR = x    ; then
19238    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
19239fi
19240
19241
19242
19243
19244
19245
19246
19247
19248
19249
19250
19251
19252
19253
19254
19255XORG_MAN_PAGE="X Version 11"
19256
19257MAN_SUBSTS="\
19258	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19259	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19260	-e 's|__xservername__|Xorg|g' \
19261	-e 's|__xconfigfile__|xorg.conf|g' \
19262	-e 's|__projectroot__|\$(prefix)|g' \
19263	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
19264	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
19265	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
19266	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
19267	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
19268	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
19269	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
19270
19271
19272
19273# Check whether --enable-silent-rules was given.
19274if test ${enable_silent_rules+y}
19275then :
19276  enableval=$enable_silent_rules;
19277fi
19278
19279case $enable_silent_rules in # (((
19280  yes) AM_DEFAULT_VERBOSITY=0;;
19281   no) AM_DEFAULT_VERBOSITY=1;;
19282    *) AM_DEFAULT_VERBOSITY=0;;
19283esac
19284am_make=${MAKE-make}
19285{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
19286printf %s "checking whether $am_make supports nested variables... " >&6; }
19287if test ${am_cv_make_support_nested_variables+y}
19288then :
19289  printf %s "(cached) " >&6
19290else $as_nop
19291  if printf "%s\n" 'TRUE=$(BAR$(V))
19292BAR0=false
19293BAR1=true
19294V=1
19295am__doit:
19296	@$(TRUE)
19297.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
19298  am_cv_make_support_nested_variables=yes
19299else
19300  am_cv_make_support_nested_variables=no
19301fi
19302fi
19303{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
19304printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
19305if test $am_cv_make_support_nested_variables = yes; then
19306    AM_V='$(V)'
19307  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
19308else
19309  AM_V=$AM_DEFAULT_VERBOSITY
19310  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
19311fi
19312AM_BACKSLASH='\'
19313
19314
19315
19316
19317
19318# Check whether --enable-specs was given.
19319if test ${enable_specs+y}
19320then :
19321  enableval=$enable_specs; build_specs=$enableval
19322else $as_nop
19323  build_specs=yes
19324fi
19325
19326
19327 if test x$build_specs = xyes; then
19328  ENABLE_SPECS_TRUE=
19329  ENABLE_SPECS_FALSE='#'
19330else
19331  ENABLE_SPECS_TRUE='#'
19332  ENABLE_SPECS_FALSE=
19333fi
19334
19335{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build functional specifications" >&5
19336printf %s "checking whether to build functional specifications... " >&6; }
19337{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $build_specs" >&5
19338printf "%s\n" "$build_specs" >&6; }
19339
19340
19341
19342
19343
19344# Check whether --with-xmlto was given.
19345if test ${with_xmlto+y}
19346then :
19347  withval=$with_xmlto; use_xmlto=$withval
19348else $as_nop
19349  use_xmlto=auto
19350fi
19351
19352
19353
19354if test "x$use_xmlto" = x"auto"; then
19355   # Extract the first word of "xmlto", so it can be a program name with args.
19356set dummy xmlto; ac_word=$2
19357{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19358printf %s "checking for $ac_word... " >&6; }
19359if test ${ac_cv_path_XMLTO+y}
19360then :
19361  printf %s "(cached) " >&6
19362else $as_nop
19363  case $XMLTO in
19364  [\\/]* | ?:[\\/]*)
19365  ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
19366  ;;
19367  *)
19368  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19369for as_dir in $PATH
19370do
19371  IFS=$as_save_IFS
19372  case $as_dir in #(((
19373    '') as_dir=./ ;;
19374    */) ;;
19375    *) as_dir=$as_dir/ ;;
19376  esac
19377    for ac_exec_ext in '' $ac_executable_extensions; do
19378  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19379    ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext"
19380    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19381    break 2
19382  fi
19383done
19384  done
19385IFS=$as_save_IFS
19386
19387  ;;
19388esac
19389fi
19390XMLTO=$ac_cv_path_XMLTO
19391if test -n "$XMLTO"; then
19392  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
19393printf "%s\n" "$XMLTO" >&6; }
19394else
19395  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19396printf "%s\n" "no" >&6; }
19397fi
19398
19399
19400   if test "x$XMLTO" = "x"; then
19401        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5
19402printf "%s\n" "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;}
19403	have_xmlto=no
19404   else
19405        have_xmlto=yes
19406   fi
19407elif test "x$use_xmlto" = x"yes" ; then
19408   # Extract the first word of "xmlto", so it can be a program name with args.
19409set dummy xmlto; ac_word=$2
19410{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19411printf %s "checking for $ac_word... " >&6; }
19412if test ${ac_cv_path_XMLTO+y}
19413then :
19414  printf %s "(cached) " >&6
19415else $as_nop
19416  case $XMLTO in
19417  [\\/]* | ?:[\\/]*)
19418  ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
19419  ;;
19420  *)
19421  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19422for as_dir in $PATH
19423do
19424  IFS=$as_save_IFS
19425  case $as_dir in #(((
19426    '') as_dir=./ ;;
19427    */) ;;
19428    *) as_dir=$as_dir/ ;;
19429  esac
19430    for ac_exec_ext in '' $ac_executable_extensions; do
19431  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19432    ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext"
19433    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19434    break 2
19435  fi
19436done
19437  done
19438IFS=$as_save_IFS
19439
19440  ;;
19441esac
19442fi
19443XMLTO=$ac_cv_path_XMLTO
19444if test -n "$XMLTO"; then
19445  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
19446printf "%s\n" "$XMLTO" >&6; }
19447else
19448  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19449printf "%s\n" "no" >&6; }
19450fi
19451
19452
19453   if test "x$XMLTO" = "x"; then
19454        as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5
19455   fi
19456   have_xmlto=yes
19457elif test "x$use_xmlto" = x"no" ; then
19458   if test "x$XMLTO" != "x"; then
19459      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5
19460printf "%s\n" "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;}
19461   fi
19462   have_xmlto=no
19463else
19464   as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5
19465fi
19466
19467# Test for a minimum version of xmlto, if provided.
19468if test "$have_xmlto" = yes; then
19469    # scrape the xmlto version
19470    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5
19471printf %s "checking the xmlto version... " >&6; }
19472    xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3`
19473    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5
19474printf "%s\n" "$xmlto_version" >&6; }
19475    as_arg_v1=$xmlto_version
19476as_arg_v2=0.0.22
19477awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
19478case $? in #(
19479  1) :
19480    if test "x$use_xmlto" = xauto; then
19481            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5
19482printf "%s\n" "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;}
19483            have_xmlto=no
19484        else
19485            as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5
19486        fi ;; #(
19487  0) :
19488     ;; #(
19489  2) :
19490     ;; #(
19491  *) :
19492     ;;
19493esac
19494fi
19495
19496# Test for the ability of xmlto to generate a text target
19497#
19498# NOTE: xmlto 0.0.27 or higher return a non-zero return code in the
19499# following test for empty XML docbook files.
19500# For compatibility reasons use the following empty XML docbook file and if
19501# it fails try it again with a non-empty XML file.
19502have_xmlto_text=no
19503cat > conftest.xml << "EOF"
19504EOF
19505if test "$have_xmlto" = yes
19506then :
19507  if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1
19508then :
19509  have_xmlto_text=yes
19510else $as_nop
19511  # Try it again with a non-empty XML file.
19512              cat > conftest.xml << "EOF"
19513<x></x>
19514EOF
19515              if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1
19516then :
19517  have_xmlto_text=yes
19518else $as_nop
19519  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5
19520printf "%s\n" "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;}
19521fi
19522fi
19523fi
19524rm -f conftest.xml
19525 if test $have_xmlto_text = yes; then
19526  HAVE_XMLTO_TEXT_TRUE=
19527  HAVE_XMLTO_TEXT_FALSE='#'
19528else
19529  HAVE_XMLTO_TEXT_TRUE='#'
19530  HAVE_XMLTO_TEXT_FALSE=
19531fi
19532
19533 if test "$have_xmlto" = yes; then
19534  HAVE_XMLTO_TRUE=
19535  HAVE_XMLTO_FALSE='#'
19536else
19537  HAVE_XMLTO_TRUE='#'
19538  HAVE_XMLTO_FALSE=
19539fi
19540
19541
19542
19543
19544
19545
19546# Check whether --with-fop was given.
19547if test ${with_fop+y}
19548then :
19549  withval=$with_fop; use_fop=$withval
19550else $as_nop
19551  use_fop=auto
19552fi
19553
19554
19555
19556if test "x$use_fop" = x"auto"; then
19557   # Extract the first word of "fop", so it can be a program name with args.
19558set dummy fop; ac_word=$2
19559{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19560printf %s "checking for $ac_word... " >&6; }
19561if test ${ac_cv_path_FOP+y}
19562then :
19563  printf %s "(cached) " >&6
19564else $as_nop
19565  case $FOP in
19566  [\\/]* | ?:[\\/]*)
19567  ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
19568  ;;
19569  *)
19570  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19571for as_dir in $PATH
19572do
19573  IFS=$as_save_IFS
19574  case $as_dir in #(((
19575    '') as_dir=./ ;;
19576    */) ;;
19577    *) as_dir=$as_dir/ ;;
19578  esac
19579    for ac_exec_ext in '' $ac_executable_extensions; do
19580  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19581    ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext"
19582    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19583    break 2
19584  fi
19585done
19586  done
19587IFS=$as_save_IFS
19588
19589  ;;
19590esac
19591fi
19592FOP=$ac_cv_path_FOP
19593if test -n "$FOP"; then
19594  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
19595printf "%s\n" "$FOP" >&6; }
19596else
19597  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19598printf "%s\n" "no" >&6; }
19599fi
19600
19601
19602   if test "x$FOP" = "x"; then
19603        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5
19604printf "%s\n" "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;}
19605	have_fop=no
19606   else
19607        have_fop=yes
19608   fi
19609elif test "x$use_fop" = x"yes" ; then
19610   # Extract the first word of "fop", so it can be a program name with args.
19611set dummy fop; ac_word=$2
19612{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19613printf %s "checking for $ac_word... " >&6; }
19614if test ${ac_cv_path_FOP+y}
19615then :
19616  printf %s "(cached) " >&6
19617else $as_nop
19618  case $FOP in
19619  [\\/]* | ?:[\\/]*)
19620  ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
19621  ;;
19622  *)
19623  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19624for as_dir in $PATH
19625do
19626  IFS=$as_save_IFS
19627  case $as_dir in #(((
19628    '') as_dir=./ ;;
19629    */) ;;
19630    *) as_dir=$as_dir/ ;;
19631  esac
19632    for ac_exec_ext in '' $ac_executable_extensions; do
19633  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19634    ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext"
19635    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19636    break 2
19637  fi
19638done
19639  done
19640IFS=$as_save_IFS
19641
19642  ;;
19643esac
19644fi
19645FOP=$ac_cv_path_FOP
19646if test -n "$FOP"; then
19647  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
19648printf "%s\n" "$FOP" >&6; }
19649else
19650  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19651printf "%s\n" "no" >&6; }
19652fi
19653
19654
19655   if test "x$FOP" = "x"; then
19656        as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5
19657   fi
19658   have_fop=yes
19659elif test "x$use_fop" = x"no" ; then
19660   if test "x$FOP" != "x"; then
19661      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5
19662printf "%s\n" "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;}
19663   fi
19664   have_fop=no
19665else
19666   as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5
19667fi
19668
19669# Test for a minimum version of fop, if provided.
19670
19671 if test "$have_fop" = yes; then
19672  HAVE_FOP_TRUE=
19673  HAVE_FOP_FALSE='#'
19674else
19675  HAVE_FOP_TRUE='#'
19676  HAVE_FOP_FALSE=
19677fi
19678
19679
19680
19681
19682# Preserves the interface, should it be implemented later
19683
19684
19685
19686# Check whether --with-xsltproc was given.
19687if test ${with_xsltproc+y}
19688then :
19689  withval=$with_xsltproc; use_xsltproc=$withval
19690else $as_nop
19691  use_xsltproc=auto
19692fi
19693
19694
19695
19696if test "x$use_xsltproc" = x"auto"; then
19697   # Extract the first word of "xsltproc", so it can be a program name with args.
19698set dummy xsltproc; ac_word=$2
19699{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19700printf %s "checking for $ac_word... " >&6; }
19701if test ${ac_cv_path_XSLTPROC+y}
19702then :
19703  printf %s "(cached) " >&6
19704else $as_nop
19705  case $XSLTPROC in
19706  [\\/]* | ?:[\\/]*)
19707  ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
19708  ;;
19709  *)
19710  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19711for as_dir in $PATH
19712do
19713  IFS=$as_save_IFS
19714  case $as_dir in #(((
19715    '') as_dir=./ ;;
19716    */) ;;
19717    *) as_dir=$as_dir/ ;;
19718  esac
19719    for ac_exec_ext in '' $ac_executable_extensions; do
19720  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19721    ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext"
19722    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19723    break 2
19724  fi
19725done
19726  done
19727IFS=$as_save_IFS
19728
19729  ;;
19730esac
19731fi
19732XSLTPROC=$ac_cv_path_XSLTPROC
19733if test -n "$XSLTPROC"; then
19734  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
19735printf "%s\n" "$XSLTPROC" >&6; }
19736else
19737  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19738printf "%s\n" "no" >&6; }
19739fi
19740
19741
19742   if test "x$XSLTPROC" = "x"; then
19743        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5
19744printf "%s\n" "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;}
19745	have_xsltproc=no
19746   else
19747        have_xsltproc=yes
19748   fi
19749elif test "x$use_xsltproc" = x"yes" ; then
19750   # Extract the first word of "xsltproc", so it can be a program name with args.
19751set dummy xsltproc; ac_word=$2
19752{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19753printf %s "checking for $ac_word... " >&6; }
19754if test ${ac_cv_path_XSLTPROC+y}
19755then :
19756  printf %s "(cached) " >&6
19757else $as_nop
19758  case $XSLTPROC in
19759  [\\/]* | ?:[\\/]*)
19760  ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
19761  ;;
19762  *)
19763  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19764for as_dir in $PATH
19765do
19766  IFS=$as_save_IFS
19767  case $as_dir in #(((
19768    '') as_dir=./ ;;
19769    */) ;;
19770    *) as_dir=$as_dir/ ;;
19771  esac
19772    for ac_exec_ext in '' $ac_executable_extensions; do
19773  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19774    ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext"
19775    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19776    break 2
19777  fi
19778done
19779  done
19780IFS=$as_save_IFS
19781
19782  ;;
19783esac
19784fi
19785XSLTPROC=$ac_cv_path_XSLTPROC
19786if test -n "$XSLTPROC"; then
19787  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
19788printf "%s\n" "$XSLTPROC" >&6; }
19789else
19790  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19791printf "%s\n" "no" >&6; }
19792fi
19793
19794
19795   if test "x$XSLTPROC" = "x"; then
19796        as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5
19797   fi
19798   have_xsltproc=yes
19799elif test "x$use_xsltproc" = x"no" ; then
19800   if test "x$XSLTPROC" != "x"; then
19801      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5
19802printf "%s\n" "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;}
19803   fi
19804   have_xsltproc=no
19805else
19806   as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5
19807fi
19808
19809 if test "$have_xsltproc" = yes; then
19810  HAVE_XSLTPROC_TRUE=
19811  HAVE_XSLTPROC_FALSE='#'
19812else
19813  HAVE_XSLTPROC_TRUE='#'
19814  HAVE_XSLTPROC_FALSE=
19815fi
19816
19817
19818
19819{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.8" >&5
19820printf %s "checking for X.Org SGML entities >= 1.8... " >&6; }
19821XORG_SGML_PATH=
19822if test -n "$PKG_CONFIG" && \
19823    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.8\""; } >&5
19824  ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.8") 2>&5
19825  ac_status=$?
19826  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19827  test $ac_status = 0; }; then
19828  XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools`
19829else
19830  :
19831
19832fi
19833
19834# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing
19835# the path and the name of the doc stylesheet
19836if test "x$XORG_SGML_PATH" != "x" ; then
19837   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5
19838printf "%s\n" "$XORG_SGML_PATH" >&6; }
19839   STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11
19840   XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl
19841else
19842   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19843printf "%s\n" "no" >&6; }
19844fi
19845
19846
19847
19848
19849 if test "x$XSL_STYLESHEET" != "x"; then
19850  HAVE_STYLESHEETS_TRUE=
19851  HAVE_STYLESHEETS_FALSE='#'
19852else
19853  HAVE_STYLESHEETS_TRUE='#'
19854  HAVE_STYLESHEETS_FALSE=
19855fi
19856
19857
19858
19859# Some compilers do not support per target -c and -o flags
19860
19861
19862# Checks for programs.
19863for ac_prog in gawk mawk nawk awk
19864do
19865  # Extract the first word of "$ac_prog", so it can be a program name with args.
19866set dummy $ac_prog; ac_word=$2
19867{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19868printf %s "checking for $ac_word... " >&6; }
19869if test ${ac_cv_prog_AWK+y}
19870then :
19871  printf %s "(cached) " >&6
19872else $as_nop
19873  if test -n "$AWK"; then
19874  ac_cv_prog_AWK="$AWK" # Let the user override the test.
19875else
19876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19877for as_dir in $PATH
19878do
19879  IFS=$as_save_IFS
19880  case $as_dir in #(((
19881    '') as_dir=./ ;;
19882    */) ;;
19883    *) as_dir=$as_dir/ ;;
19884  esac
19885    for ac_exec_ext in '' $ac_executable_extensions; do
19886  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19887    ac_cv_prog_AWK="$ac_prog"
19888    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19889    break 2
19890  fi
19891done
19892  done
19893IFS=$as_save_IFS
19894
19895fi
19896fi
19897AWK=$ac_cv_prog_AWK
19898if test -n "$AWK"; then
19899  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
19900printf "%s\n" "$AWK" >&6; }
19901else
19902  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19903printf "%s\n" "no" >&6; }
19904fi
19905
19906
19907  test -n "$AWK" && break
19908done
19909
19910
19911# Need to call this explicitly since the first call to PKG_CHECK_MODULES
19912# is in an if statement, and later calls would break if it's skipped.
19913
19914
19915
19916
19917
19918
19919
19920if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
19921	if test -n "$ac_tool_prefix"; then
19922  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19923set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19924{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19925printf %s "checking for $ac_word... " >&6; }
19926if test ${ac_cv_path_PKG_CONFIG+y}
19927then :
19928  printf %s "(cached) " >&6
19929else $as_nop
19930  case $PKG_CONFIG in
19931  [\\/]* | ?:[\\/]*)
19932  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19933  ;;
19934  *)
19935  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19936for as_dir in $PATH
19937do
19938  IFS=$as_save_IFS
19939  case $as_dir in #(((
19940    '') as_dir=./ ;;
19941    */) ;;
19942    *) as_dir=$as_dir/ ;;
19943  esac
19944    for ac_exec_ext in '' $ac_executable_extensions; do
19945  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19946    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
19947    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19948    break 2
19949  fi
19950done
19951  done
19952IFS=$as_save_IFS
19953
19954  ;;
19955esac
19956fi
19957PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19958if test -n "$PKG_CONFIG"; then
19959  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19960printf "%s\n" "$PKG_CONFIG" >&6; }
19961else
19962  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19963printf "%s\n" "no" >&6; }
19964fi
19965
19966
19967fi
19968if test -z "$ac_cv_path_PKG_CONFIG"; then
19969  ac_pt_PKG_CONFIG=$PKG_CONFIG
19970  # Extract the first word of "pkg-config", so it can be a program name with args.
19971set dummy pkg-config; ac_word=$2
19972{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19973printf %s "checking for $ac_word... " >&6; }
19974if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
19975then :
19976  printf %s "(cached) " >&6
19977else $as_nop
19978  case $ac_pt_PKG_CONFIG in
19979  [\\/]* | ?:[\\/]*)
19980  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19981  ;;
19982  *)
19983  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19984for as_dir in $PATH
19985do
19986  IFS=$as_save_IFS
19987  case $as_dir in #(((
19988    '') as_dir=./ ;;
19989    */) ;;
19990    *) as_dir=$as_dir/ ;;
19991  esac
19992    for ac_exec_ext in '' $ac_executable_extensions; do
19993  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19994    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
19995    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19996    break 2
19997  fi
19998done
19999  done
20000IFS=$as_save_IFS
20001
20002  ;;
20003esac
20004fi
20005ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
20006if test -n "$ac_pt_PKG_CONFIG"; then
20007  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
20008printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
20009else
20010  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20011printf "%s\n" "no" >&6; }
20012fi
20013
20014  if test "x$ac_pt_PKG_CONFIG" = x; then
20015    PKG_CONFIG=""
20016  else
20017    case $cross_compiling:$ac_tool_warned in
20018yes:)
20019{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20020printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20021ac_tool_warned=yes ;;
20022esac
20023    PKG_CONFIG=$ac_pt_PKG_CONFIG
20024  fi
20025else
20026  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
20027fi
20028
20029fi
20030if test -n "$PKG_CONFIG"; then
20031	_pkg_min_version=0.9.0
20032	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
20033printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
20034	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
20035		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20036printf "%s\n" "yes" >&6; }
20037	else
20038		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20039printf "%s\n" "no" >&6; }
20040		PKG_CONFIG=""
20041	fi
20042fi
20043
20044#
20045# fix libtool to set SONAME to libXaw.so.$major
20046#
20047ac_config_commands="$ac_config_commands libtool_hack"
20048
20049
20050# OSX/Win32 rules are different.
20051platform_win32=no
20052platform_darwin=no
20053LIBEXT=so
20054case $host_os in
20055    cygwin*|mingw*)
20056	LIBEXT=dll.a
20057	platform_win32=yes
20058	;;
20059    darwin*)
20060	LIBEXT=dylib
20061	platform_darwin=yes
20062	;;
20063esac
20064
20065 if test "x$platform_win32" = "xyes"; then
20066  PLATFORM_WIN32_TRUE=
20067  PLATFORM_WIN32_FALSE='#'
20068else
20069  PLATFORM_WIN32_TRUE='#'
20070  PLATFORM_WIN32_FALSE=
20071fi
20072
20073 if test "x$platform_darwin" = "xyes"; then
20074  PLATFORM_DARWIN_TRUE=
20075  PLATFORM_DARWIN_FALSE='#'
20076else
20077  PLATFORM_DARWIN_TRUE='#'
20078  PLATFORM_DARWIN_FALSE=
20079fi
20080
20081
20082# Whether to build Xaw6
20083
20084# Check whether --enable-xaw6 was given.
20085if test ${enable_xaw6+y}
20086then :
20087  enableval=$enable_xaw6; build_v6=$enableval
20088else $as_nop
20089  build_v6=yes
20090fi
20091
20092
20093if test "x$build_v6" = xyes; then
20094
20095pkg_failed=no
20096{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XAW6" >&5
20097printf %s "checking for XAW6... " >&6; }
20098
20099if test -n "$XAW6_CFLAGS"; then
20100    pkg_cv_XAW6_CFLAGS="$XAW6_CFLAGS"
20101 elif test -n "$PKG_CONFIG"; then
20102    if test -n "$PKG_CONFIG" && \
20103    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto x11 xext xextproto xt xmu\""; } >&5
20104  ($PKG_CONFIG --exists --print-errors "xproto x11 xext xextproto xt xmu") 2>&5
20105  ac_status=$?
20106  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20107  test $ac_status = 0; }; then
20108  pkg_cv_XAW6_CFLAGS=`$PKG_CONFIG --cflags "xproto x11 xext xextproto xt xmu" 2>/dev/null`
20109		      test "x$?" != "x0" && pkg_failed=yes
20110else
20111  pkg_failed=yes
20112fi
20113 else
20114    pkg_failed=untried
20115fi
20116if test -n "$XAW6_LIBS"; then
20117    pkg_cv_XAW6_LIBS="$XAW6_LIBS"
20118 elif test -n "$PKG_CONFIG"; then
20119    if test -n "$PKG_CONFIG" && \
20120    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto x11 xext xextproto xt xmu\""; } >&5
20121  ($PKG_CONFIG --exists --print-errors "xproto x11 xext xextproto xt xmu") 2>&5
20122  ac_status=$?
20123  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20124  test $ac_status = 0; }; then
20125  pkg_cv_XAW6_LIBS=`$PKG_CONFIG --libs "xproto x11 xext xextproto xt xmu" 2>/dev/null`
20126		      test "x$?" != "x0" && pkg_failed=yes
20127else
20128  pkg_failed=yes
20129fi
20130 else
20131    pkg_failed=untried
20132fi
20133
20134
20135
20136if test $pkg_failed = yes; then
20137   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20138printf "%s\n" "no" >&6; }
20139
20140if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20141        _pkg_short_errors_supported=yes
20142else
20143        _pkg_short_errors_supported=no
20144fi
20145        if test $_pkg_short_errors_supported = yes; then
20146	        XAW6_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto x11 xext xextproto xt xmu" 2>&1`
20147        else
20148	        XAW6_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto x11 xext xextproto xt xmu" 2>&1`
20149        fi
20150	# Put the nasty error message in config.log where it belongs
20151	echo "$XAW6_PKG_ERRORS" >&5
20152
20153	as_fn_error $? "Package requirements (xproto x11 xext xextproto xt xmu) were not met:
20154
20155$XAW6_PKG_ERRORS
20156
20157Consider adjusting the PKG_CONFIG_PATH environment variable if you
20158installed software in a non-standard prefix.
20159
20160Alternatively, you may set the environment variables XAW6_CFLAGS
20161and XAW6_LIBS to avoid the need to call pkg-config.
20162See the pkg-config man page for more details." "$LINENO" 5
20163elif test $pkg_failed = untried; then
20164     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20165printf "%s\n" "no" >&6; }
20166	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20167printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
20168as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
20169is in your PATH or set the PKG_CONFIG environment variable to the full
20170path to pkg-config.
20171
20172Alternatively, you may set the environment variables XAW6_CFLAGS
20173and XAW6_LIBS to avoid the need to call pkg-config.
20174See the pkg-config man page for more details.
20175
20176To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20177See \`config.log' for more details" "$LINENO" 5; }
20178else
20179	XAW6_CFLAGS=$pkg_cv_XAW6_CFLAGS
20180	XAW6_LIBS=$pkg_cv_XAW6_LIBS
20181        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20182printf "%s\n" "yes" >&6; }
20183
20184fi
20185fi
20186
20187
20188# Whether to build Xaw7
20189
20190# Check whether --enable-xaw7 was given.
20191if test ${enable_xaw7+y}
20192then :
20193  enableval=$enable_xaw7; build_v7=$enableval
20194else $as_nop
20195  build_v7=yes
20196fi
20197
20198
20199if test "x$build_v7" = xyes; then
20200
20201pkg_failed=no
20202{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XAW7" >&5
20203printf %s "checking for XAW7... " >&6; }
20204
20205if test -n "$XAW7_CFLAGS"; then
20206    pkg_cv_XAW7_CFLAGS="$XAW7_CFLAGS"
20207 elif test -n "$PKG_CONFIG"; then
20208    if test -n "$PKG_CONFIG" && \
20209    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto x11 xext xextproto xt xmu xpm\""; } >&5
20210  ($PKG_CONFIG --exists --print-errors "xproto x11 xext xextproto xt xmu xpm") 2>&5
20211  ac_status=$?
20212  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20213  test $ac_status = 0; }; then
20214  pkg_cv_XAW7_CFLAGS=`$PKG_CONFIG --cflags "xproto x11 xext xextproto xt xmu xpm" 2>/dev/null`
20215		      test "x$?" != "x0" && pkg_failed=yes
20216else
20217  pkg_failed=yes
20218fi
20219 else
20220    pkg_failed=untried
20221fi
20222if test -n "$XAW7_LIBS"; then
20223    pkg_cv_XAW7_LIBS="$XAW7_LIBS"
20224 elif test -n "$PKG_CONFIG"; then
20225    if test -n "$PKG_CONFIG" && \
20226    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto x11 xext xextproto xt xmu xpm\""; } >&5
20227  ($PKG_CONFIG --exists --print-errors "xproto x11 xext xextproto xt xmu xpm") 2>&5
20228  ac_status=$?
20229  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20230  test $ac_status = 0; }; then
20231  pkg_cv_XAW7_LIBS=`$PKG_CONFIG --libs "xproto x11 xext xextproto xt xmu xpm" 2>/dev/null`
20232		      test "x$?" != "x0" && pkg_failed=yes
20233else
20234  pkg_failed=yes
20235fi
20236 else
20237    pkg_failed=untried
20238fi
20239
20240
20241
20242if test $pkg_failed = yes; then
20243   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20244printf "%s\n" "no" >&6; }
20245
20246if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20247        _pkg_short_errors_supported=yes
20248else
20249        _pkg_short_errors_supported=no
20250fi
20251        if test $_pkg_short_errors_supported = yes; then
20252	        XAW7_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto x11 xext xextproto xt xmu xpm" 2>&1`
20253        else
20254	        XAW7_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto x11 xext xextproto xt xmu xpm" 2>&1`
20255        fi
20256	# Put the nasty error message in config.log where it belongs
20257	echo "$XAW7_PKG_ERRORS" >&5
20258
20259	as_fn_error $? "Package requirements (xproto x11 xext xextproto xt xmu xpm) were not met:
20260
20261$XAW7_PKG_ERRORS
20262
20263Consider adjusting the PKG_CONFIG_PATH environment variable if you
20264installed software in a non-standard prefix.
20265
20266Alternatively, you may set the environment variables XAW7_CFLAGS
20267and XAW7_LIBS to avoid the need to call pkg-config.
20268See the pkg-config man page for more details." "$LINENO" 5
20269elif test $pkg_failed = untried; then
20270     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20271printf "%s\n" "no" >&6; }
20272	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20273printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
20274as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
20275is in your PATH or set the PKG_CONFIG environment variable to the full
20276path to pkg-config.
20277
20278Alternatively, you may set the environment variables XAW7_CFLAGS
20279and XAW7_LIBS to avoid the need to call pkg-config.
20280See the pkg-config man page for more details.
20281
20282To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20283See \`config.log' for more details" "$LINENO" 5; }
20284else
20285	XAW7_CFLAGS=$pkg_cv_XAW7_CFLAGS
20286	XAW7_LIBS=$pkg_cv_XAW7_LIBS
20287        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20288printf "%s\n" "yes" >&6; }
20289
20290fi
20291fi
20292
20293
20294 if test x$build_v6 = xyes; then
20295  BUILD_XAW6_TRUE=
20296  BUILD_XAW6_FALSE='#'
20297else
20298  BUILD_XAW6_TRUE='#'
20299  BUILD_XAW6_FALSE=
20300fi
20301
20302 if test x$build_v7 = xyes; then
20303  BUILD_XAW7_TRUE=
20304  BUILD_XAW7_FALSE='#'
20305else
20306  BUILD_XAW7_TRUE='#'
20307  BUILD_XAW7_FALSE=
20308fi
20309
20310
20311# Checks for header files.
20312ac_fn_c_check_header_compile "$LINENO" "wctype.h" "ac_cv_header_wctype_h" "$ac_includes_default"
20313if test "x$ac_cv_header_wctype_h" = xyes
20314then :
20315  printf "%s\n" "#define HAVE_WCTYPE_H 1" >>confdefs.h
20316
20317fi
20318ac_fn_c_check_header_compile "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
20319if test "x$ac_cv_header_wchar_h" = xyes
20320then :
20321  printf "%s\n" "#define HAVE_WCHAR_H 1" >>confdefs.h
20322
20323fi
20324ac_fn_c_check_header_compile "$LINENO" "widec.h" "ac_cv_header_widec_h" "$ac_includes_default"
20325if test "x$ac_cv_header_widec_h" = xyes
20326then :
20327  printf "%s\n" "#define HAVE_WIDEC_H 1" >>confdefs.h
20328
20329fi
20330
20331
20332# Checks for functions
20333ac_fn_c_check_func "$LINENO" "iswalnum" "ac_cv_func_iswalnum"
20334if test "x$ac_cv_func_iswalnum" = xyes
20335then :
20336  printf "%s\n" "#define HAVE_ISWALNUM 1" >>confdefs.h
20337
20338fi
20339ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
20340if test "x$ac_cv_func_getpagesize" = xyes
20341then :
20342  printf "%s\n" "#define HAVE_GETPAGESIZE 1" >>confdefs.h
20343
20344fi
20345
20346
20347# Link with winsock if mingw target
20348case $host_os in
20349	*mingw*)
20350		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5
20351printf %s "checking for main in -lws2_32... " >&6; }
20352if test ${ac_cv_lib_ws2_32_main+y}
20353then :
20354  printf %s "(cached) " >&6
20355else $as_nop
20356  ac_check_lib_save_LIBS=$LIBS
20357LIBS="-lws2_32  $LIBS"
20358cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20359/* end confdefs.h.  */
20360
20361
20362int
20363main (void)
20364{
20365return main ();
20366  ;
20367  return 0;
20368}
20369_ACEOF
20370if ac_fn_c_try_link "$LINENO"
20371then :
20372  ac_cv_lib_ws2_32_main=yes
20373else $as_nop
20374  ac_cv_lib_ws2_32_main=no
20375fi
20376rm -f core conftest.err conftest.$ac_objext conftest.beam \
20377    conftest$ac_exeext conftest.$ac_ext
20378LIBS=$ac_check_lib_save_LIBS
20379fi
20380{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5
20381printf "%s\n" "$ac_cv_lib_ws2_32_main" >&6; }
20382if test "x$ac_cv_lib_ws2_32_main" = xyes
20383then :
20384  printf "%s\n" "#define HAVE_LIBWS2_32 1" >>confdefs.h
20385
20386  LIBS="-lws2_32 $LIBS"
20387
20388fi
20389
20390	;;
20391	*)
20392	;;
20393esac
20394
20395{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C const-support is wanted" >&5
20396printf %s "checking if C const-support is wanted... " >&6; }
20397# Check whether --enable-const was given.
20398if test ${enable_const+y}
20399then :
20400  enableval=$enable_const; USE_CONST="$enableval"
20401else $as_nop
20402  USE_CONST="yes"
20403fi
20404
20405{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_CONST" >&5
20406printf "%s\n" "$USE_CONST" >&6; }
20407if test "x$USE_CONST" = "xyes" ; then
20408
20409printf "%s\n" "#define _CONST_X_STRING 1" >>confdefs.h
20410
20411fi
20412
20413ac_config_files="$ac_config_files Makefile include/Makefile man/Makefile specs/Makefile specs/libXaw.ent src/Makefile"
20414
20415
20416if test "x$build_v6" = xyes; then
20417   ac_config_files="$ac_config_files xaw6.pc"
20418
20419fi
20420
20421if test "x$build_v7" = xyes; then
20422   ac_config_files="$ac_config_files xaw7.pc"
20423
20424fi
20425
20426cat >confcache <<\_ACEOF
20427# This file is a shell script that caches the results of configure
20428# tests run on this system so they can be shared between configure
20429# scripts and configure runs, see configure's option --config-cache.
20430# It is not useful on other systems.  If it contains results you don't
20431# want to keep, you may remove or edit it.
20432#
20433# config.status only pays attention to the cache file if you give it
20434# the --recheck option to rerun configure.
20435#
20436# `ac_cv_env_foo' variables (set or unset) will be overridden when
20437# loading this file, other *unset* `ac_cv_foo' will be assigned the
20438# following values.
20439
20440_ACEOF
20441
20442# The following way of writing the cache mishandles newlines in values,
20443# but we know of no workaround that is simple, portable, and efficient.
20444# So, we kill variables containing newlines.
20445# Ultrix sh set writes to stderr and can't be redirected directly,
20446# and sets the high bit in the cache file unless we assign to the vars.
20447(
20448  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20449    eval ac_val=\$$ac_var
20450    case $ac_val in #(
20451    *${as_nl}*)
20452      case $ac_var in #(
20453      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20454printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20455      esac
20456      case $ac_var in #(
20457      _ | IFS | as_nl) ;; #(
20458      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20459      *) { eval $ac_var=; unset $ac_var;} ;;
20460      esac ;;
20461    esac
20462  done
20463
20464  (set) 2>&1 |
20465    case $as_nl`(ac_space=' '; set) 2>&1` in #(
20466    *${as_nl}ac_space=\ *)
20467      # `set' does not quote correctly, so add quotes: double-quote
20468      # substitution turns \\\\ into \\, and sed turns \\ into \.
20469      sed -n \
20470	"s/'/'\\\\''/g;
20471	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20472      ;; #(
20473    *)
20474      # `set' quotes correctly as required by POSIX, so do not add quotes.
20475      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20476      ;;
20477    esac |
20478    sort
20479) |
20480  sed '
20481     /^ac_cv_env_/b end
20482     t clear
20483     :clear
20484     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
20485     t end
20486     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20487     :end' >>confcache
20488if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20489  if test -w "$cache_file"; then
20490    if test "x$cache_file" != "x/dev/null"; then
20491      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20492printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
20493      if test ! -f "$cache_file" || test -h "$cache_file"; then
20494	cat confcache >"$cache_file"
20495      else
20496        case $cache_file in #(
20497        */* | ?:*)
20498	  mv -f confcache "$cache_file"$$ &&
20499	  mv -f "$cache_file"$$ "$cache_file" ;; #(
20500        *)
20501	  mv -f confcache "$cache_file" ;;
20502	esac
20503      fi
20504    fi
20505  else
20506    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20507printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
20508  fi
20509fi
20510rm -f confcache
20511
20512test "x$prefix" = xNONE && prefix=$ac_default_prefix
20513# Let make expand exec_prefix.
20514test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20515
20516DEFS=-DHAVE_CONFIG_H
20517
20518ac_libobjs=
20519ac_ltlibobjs=
20520U=
20521for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20522  # 1. Remove the extension, and $U if already installed.
20523  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20524  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
20525  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20526  #    will be set to the directory where LIBOBJS objects are built.
20527  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20528  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20529done
20530LIBOBJS=$ac_libobjs
20531
20532LTLIBOBJS=$ac_ltlibobjs
20533
20534
20535{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20536printf %s "checking that generated files are newer than configure... " >&6; }
20537   if test -n "$am_sleep_pid"; then
20538     # Hide warnings about reused PIDs.
20539     wait $am_sleep_pid 2>/dev/null
20540   fi
20541   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
20542printf "%s\n" "done" >&6; }
20543 if test -n "$EXEEXT"; then
20544  am__EXEEXT_TRUE=
20545  am__EXEEXT_FALSE='#'
20546else
20547  am__EXEEXT_TRUE='#'
20548  am__EXEEXT_FALSE=
20549fi
20550
20551if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20552  as_fn_error $? "conditional \"AMDEP\" was never defined.
20553Usually this means the macro was only invoked conditionally." "$LINENO" 5
20554fi
20555if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20556  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20557Usually this means the macro was only invoked conditionally." "$LINENO" 5
20558fi
20559if test -z "${ENABLE_SPECS_TRUE}" && test -z "${ENABLE_SPECS_FALSE}"; then
20560  as_fn_error $? "conditional \"ENABLE_SPECS\" was never defined.
20561Usually this means the macro was only invoked conditionally." "$LINENO" 5
20562fi
20563if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then
20564  as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined.
20565Usually this means the macro was only invoked conditionally." "$LINENO" 5
20566fi
20567if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
20568  as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined.
20569Usually this means the macro was only invoked conditionally." "$LINENO" 5
20570fi
20571if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then
20572  as_fn_error $? "conditional \"HAVE_FOP\" was never defined.
20573Usually this means the macro was only invoked conditionally." "$LINENO" 5
20574fi
20575if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then
20576  as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined.
20577Usually this means the macro was only invoked conditionally." "$LINENO" 5
20578fi
20579if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then
20580  as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined.
20581Usually this means the macro was only invoked conditionally." "$LINENO" 5
20582fi
20583if test -z "${PLATFORM_WIN32_TRUE}" && test -z "${PLATFORM_WIN32_FALSE}"; then
20584  as_fn_error $? "conditional \"PLATFORM_WIN32\" was never defined.
20585Usually this means the macro was only invoked conditionally." "$LINENO" 5
20586fi
20587if test -z "${PLATFORM_DARWIN_TRUE}" && test -z "${PLATFORM_DARWIN_FALSE}"; then
20588  as_fn_error $? "conditional \"PLATFORM_DARWIN\" was never defined.
20589Usually this means the macro was only invoked conditionally." "$LINENO" 5
20590fi
20591if test -z "${BUILD_XAW6_TRUE}" && test -z "${BUILD_XAW6_FALSE}"; then
20592  as_fn_error $? "conditional \"BUILD_XAW6\" was never defined.
20593Usually this means the macro was only invoked conditionally." "$LINENO" 5
20594fi
20595if test -z "${BUILD_XAW7_TRUE}" && test -z "${BUILD_XAW7_FALSE}"; then
20596  as_fn_error $? "conditional \"BUILD_XAW7\" was never defined.
20597Usually this means the macro was only invoked conditionally." "$LINENO" 5
20598fi
20599
20600: "${CONFIG_STATUS=./config.status}"
20601ac_write_fail=0
20602ac_clean_files_save=$ac_clean_files
20603ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20604{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20605printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
20606as_write_fail=0
20607cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20608#! $SHELL
20609# Generated by $as_me.
20610# Run this file to recreate the current configuration.
20611# Compiler output produced by configure, useful for debugging
20612# configure, is in config.log if it exists.
20613
20614debug=false
20615ac_cs_recheck=false
20616ac_cs_silent=false
20617
20618SHELL=\${CONFIG_SHELL-$SHELL}
20619export SHELL
20620_ASEOF
20621cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20622## -------------------- ##
20623## M4sh Initialization. ##
20624## -------------------- ##
20625
20626# Be more Bourne compatible
20627DUALCASE=1; export DUALCASE # for MKS sh
20628as_nop=:
20629if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
20630then :
20631  emulate sh
20632  NULLCMD=:
20633  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20634  # is contrary to our usage.  Disable this feature.
20635  alias -g '${1+"$@"}'='"$@"'
20636  setopt NO_GLOB_SUBST
20637else $as_nop
20638  case `(set -o) 2>/dev/null` in #(
20639  *posix*) :
20640    set -o posix ;; #(
20641  *) :
20642     ;;
20643esac
20644fi
20645
20646
20647
20648# Reset variables that may have inherited troublesome values from
20649# the environment.
20650
20651# IFS needs to be set, to space, tab, and newline, in precisely that order.
20652# (If _AS_PATH_WALK were called with IFS unset, it would have the
20653# side effect of setting IFS to empty, thus disabling word splitting.)
20654# Quoting is to prevent editors from complaining about space-tab.
20655as_nl='
20656'
20657export as_nl
20658IFS=" ""	$as_nl"
20659
20660PS1='$ '
20661PS2='> '
20662PS4='+ '
20663
20664# Ensure predictable behavior from utilities with locale-dependent output.
20665LC_ALL=C
20666export LC_ALL
20667LANGUAGE=C
20668export LANGUAGE
20669
20670# We cannot yet rely on "unset" to work, but we need these variables
20671# to be unset--not just set to an empty or harmless value--now, to
20672# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
20673# also avoids known problems related to "unset" and subshell syntax
20674# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
20675for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
20676do eval test \${$as_var+y} \
20677  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20678done
20679
20680# Ensure that fds 0, 1, and 2 are open.
20681if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
20682if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
20683if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
20684
20685# The user is always right.
20686if ${PATH_SEPARATOR+false} :; then
20687  PATH_SEPARATOR=:
20688  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20689    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20690      PATH_SEPARATOR=';'
20691  }
20692fi
20693
20694
20695# Find who we are.  Look in the path if we contain no directory separator.
20696as_myself=
20697case $0 in #((
20698  *[\\/]* ) as_myself=$0 ;;
20699  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20700for as_dir in $PATH
20701do
20702  IFS=$as_save_IFS
20703  case $as_dir in #(((
20704    '') as_dir=./ ;;
20705    */) ;;
20706    *) as_dir=$as_dir/ ;;
20707  esac
20708    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
20709  done
20710IFS=$as_save_IFS
20711
20712     ;;
20713esac
20714# We did not find ourselves, most probably we were run as `sh COMMAND'
20715# in which case we are not to be found in the path.
20716if test "x$as_myself" = x; then
20717  as_myself=$0
20718fi
20719if test ! -f "$as_myself"; then
20720  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20721  exit 1
20722fi
20723
20724
20725
20726# as_fn_error STATUS ERROR [LINENO LOG_FD]
20727# ----------------------------------------
20728# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20729# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20730# script with STATUS, using 1 if that was 0.
20731as_fn_error ()
20732{
20733  as_status=$1; test $as_status -eq 0 && as_status=1
20734  if test "$4"; then
20735    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20736    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20737  fi
20738  printf "%s\n" "$as_me: error: $2" >&2
20739  as_fn_exit $as_status
20740} # as_fn_error
20741
20742
20743
20744# as_fn_set_status STATUS
20745# -----------------------
20746# Set $? to STATUS, without forking.
20747as_fn_set_status ()
20748{
20749  return $1
20750} # as_fn_set_status
20751
20752# as_fn_exit STATUS
20753# -----------------
20754# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20755as_fn_exit ()
20756{
20757  set +e
20758  as_fn_set_status $1
20759  exit $1
20760} # as_fn_exit
20761
20762# as_fn_unset VAR
20763# ---------------
20764# Portably unset VAR.
20765as_fn_unset ()
20766{
20767  { eval $1=; unset $1;}
20768}
20769as_unset=as_fn_unset
20770
20771# as_fn_append VAR VALUE
20772# ----------------------
20773# Append the text in VALUE to the end of the definition contained in VAR. Take
20774# advantage of any shell optimizations that allow amortized linear growth over
20775# repeated appends, instead of the typical quadratic growth present in naive
20776# implementations.
20777if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
20778then :
20779  eval 'as_fn_append ()
20780  {
20781    eval $1+=\$2
20782  }'
20783else $as_nop
20784  as_fn_append ()
20785  {
20786    eval $1=\$$1\$2
20787  }
20788fi # as_fn_append
20789
20790# as_fn_arith ARG...
20791# ------------------
20792# Perform arithmetic evaluation on the ARGs, and store the result in the
20793# global $as_val. Take advantage of shells that can avoid forks. The arguments
20794# must be portable across $(()) and expr.
20795if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
20796then :
20797  eval 'as_fn_arith ()
20798  {
20799    as_val=$(( $* ))
20800  }'
20801else $as_nop
20802  as_fn_arith ()
20803  {
20804    as_val=`expr "$@" || test $? -eq 1`
20805  }
20806fi # as_fn_arith
20807
20808
20809if expr a : '\(a\)' >/dev/null 2>&1 &&
20810   test "X`expr 00001 : '.*\(...\)'`" = X001; then
20811  as_expr=expr
20812else
20813  as_expr=false
20814fi
20815
20816if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20817  as_basename=basename
20818else
20819  as_basename=false
20820fi
20821
20822if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20823  as_dirname=dirname
20824else
20825  as_dirname=false
20826fi
20827
20828as_me=`$as_basename -- "$0" ||
20829$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20830	 X"$0" : 'X\(//\)$' \| \
20831	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20832printf "%s\n" X/"$0" |
20833    sed '/^.*\/\([^/][^/]*\)\/*$/{
20834	    s//\1/
20835	    q
20836	  }
20837	  /^X\/\(\/\/\)$/{
20838	    s//\1/
20839	    q
20840	  }
20841	  /^X\/\(\/\).*/{
20842	    s//\1/
20843	    q
20844	  }
20845	  s/.*/./; q'`
20846
20847# Avoid depending upon Character Ranges.
20848as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20849as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20850as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20851as_cr_digits='0123456789'
20852as_cr_alnum=$as_cr_Letters$as_cr_digits
20853
20854
20855# Determine whether it's possible to make 'echo' print without a newline.
20856# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
20857# for compatibility with existing Makefiles.
20858ECHO_C= ECHO_N= ECHO_T=
20859case `echo -n x` in #(((((
20860-n*)
20861  case `echo 'xy\c'` in
20862  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
20863  xy)  ECHO_C='\c';;
20864  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
20865       ECHO_T='	';;
20866  esac;;
20867*)
20868  ECHO_N='-n';;
20869esac
20870
20871# For backward compatibility with old third-party macros, we provide
20872# the shell variables $as_echo and $as_echo_n.  New code should use
20873# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
20874as_echo='printf %s\n'
20875as_echo_n='printf %s'
20876
20877rm -f conf$$ conf$$.exe conf$$.file
20878if test -d conf$$.dir; then
20879  rm -f conf$$.dir/conf$$.file
20880else
20881  rm -f conf$$.dir
20882  mkdir conf$$.dir 2>/dev/null
20883fi
20884if (echo >conf$$.file) 2>/dev/null; then
20885  if ln -s conf$$.file conf$$ 2>/dev/null; then
20886    as_ln_s='ln -s'
20887    # ... but there are two gotchas:
20888    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20889    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20890    # In both cases, we have to default to `cp -pR'.
20891    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20892      as_ln_s='cp -pR'
20893  elif ln conf$$.file conf$$ 2>/dev/null; then
20894    as_ln_s=ln
20895  else
20896    as_ln_s='cp -pR'
20897  fi
20898else
20899  as_ln_s='cp -pR'
20900fi
20901rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20902rmdir conf$$.dir 2>/dev/null
20903
20904
20905# as_fn_mkdir_p
20906# -------------
20907# Create "$as_dir" as a directory, including parents if necessary.
20908as_fn_mkdir_p ()
20909{
20910
20911  case $as_dir in #(
20912  -*) as_dir=./$as_dir;;
20913  esac
20914  test -d "$as_dir" || eval $as_mkdir_p || {
20915    as_dirs=
20916    while :; do
20917      case $as_dir in #(
20918      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20919      *) as_qdir=$as_dir;;
20920      esac
20921      as_dirs="'$as_qdir' $as_dirs"
20922      as_dir=`$as_dirname -- "$as_dir" ||
20923$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20924	 X"$as_dir" : 'X\(//\)[^/]' \| \
20925	 X"$as_dir" : 'X\(//\)$' \| \
20926	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20927printf "%s\n" X"$as_dir" |
20928    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20929	    s//\1/
20930	    q
20931	  }
20932	  /^X\(\/\/\)[^/].*/{
20933	    s//\1/
20934	    q
20935	  }
20936	  /^X\(\/\/\)$/{
20937	    s//\1/
20938	    q
20939	  }
20940	  /^X\(\/\).*/{
20941	    s//\1/
20942	    q
20943	  }
20944	  s/.*/./; q'`
20945      test -d "$as_dir" && break
20946    done
20947    test -z "$as_dirs" || eval "mkdir $as_dirs"
20948  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20949
20950
20951} # as_fn_mkdir_p
20952if mkdir -p . 2>/dev/null; then
20953  as_mkdir_p='mkdir -p "$as_dir"'
20954else
20955  test -d ./-p && rmdir ./-p
20956  as_mkdir_p=false
20957fi
20958
20959
20960# as_fn_executable_p FILE
20961# -----------------------
20962# Test if FILE is an executable regular file.
20963as_fn_executable_p ()
20964{
20965  test -f "$1" && test -x "$1"
20966} # as_fn_executable_p
20967as_test_x='test -x'
20968as_executable_p=as_fn_executable_p
20969
20970# Sed expression to map a string onto a valid CPP name.
20971as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20972
20973# Sed expression to map a string onto a valid variable name.
20974as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20975
20976
20977exec 6>&1
20978## ----------------------------------- ##
20979## Main body of $CONFIG_STATUS script. ##
20980## ----------------------------------- ##
20981_ASEOF
20982test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20983
20984cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20985# Save the log message, to keep $0 and so on meaningful, and to
20986# report actual input values of CONFIG_FILES etc. instead of their
20987# values after options handling.
20988ac_log="
20989This file was extended by libXaw $as_me 1.0.15, which was
20990generated by GNU Autoconf 2.71.  Invocation command line was
20991
20992  CONFIG_FILES    = $CONFIG_FILES
20993  CONFIG_HEADERS  = $CONFIG_HEADERS
20994  CONFIG_LINKS    = $CONFIG_LINKS
20995  CONFIG_COMMANDS = $CONFIG_COMMANDS
20996  $ $0 $@
20997
20998on `(hostname || uname -n) 2>/dev/null | sed 1q`
20999"
21000
21001_ACEOF
21002
21003case $ac_config_files in *"
21004"*) set x $ac_config_files; shift; ac_config_files=$*;;
21005esac
21006
21007case $ac_config_headers in *"
21008"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21009esac
21010
21011
21012cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21013# Files that config.status was made for.
21014config_files="$ac_config_files"
21015config_headers="$ac_config_headers"
21016config_commands="$ac_config_commands"
21017
21018_ACEOF
21019
21020cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21021ac_cs_usage="\
21022\`$as_me' instantiates files and other configuration actions
21023from templates according to the current configuration.  Unless the files
21024and actions are specified as TAGs, all are instantiated by default.
21025
21026Usage: $0 [OPTION]... [TAG]...
21027
21028  -h, --help       print this help, then exit
21029  -V, --version    print version number and configuration settings, then exit
21030      --config     print configuration, then exit
21031  -q, --quiet, --silent
21032                   do not print progress messages
21033  -d, --debug      don't remove temporary files
21034      --recheck    update $as_me by reconfiguring in the same conditions
21035      --file=FILE[:TEMPLATE]
21036                   instantiate the configuration file FILE
21037      --header=FILE[:TEMPLATE]
21038                   instantiate the configuration header FILE
21039
21040Configuration files:
21041$config_files
21042
21043Configuration headers:
21044$config_headers
21045
21046Configuration commands:
21047$config_commands
21048
21049Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxaw/-/issues>."
21050
21051_ACEOF
21052ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
21053ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
21054cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21055ac_cs_config='$ac_cs_config_escaped'
21056ac_cs_version="\\
21057libXaw config.status 1.0.15
21058configured by $0, generated by GNU Autoconf 2.71,
21059  with options \\"\$ac_cs_config\\"
21060
21061Copyright (C) 2021 Free Software Foundation, Inc.
21062This config.status script is free software; the Free Software Foundation
21063gives unlimited permission to copy, distribute and modify it."
21064
21065ac_pwd='$ac_pwd'
21066srcdir='$srcdir'
21067INSTALL='$INSTALL'
21068MKDIR_P='$MKDIR_P'
21069AWK='$AWK'
21070test -n "\$AWK" || AWK=awk
21071_ACEOF
21072
21073cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21074# The default lists apply if the user does not specify any file.
21075ac_need_defaults=:
21076while test $# != 0
21077do
21078  case $1 in
21079  --*=?*)
21080    ac_option=`expr "X$1" : 'X\([^=]*\)='`
21081    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21082    ac_shift=:
21083    ;;
21084  --*=)
21085    ac_option=`expr "X$1" : 'X\([^=]*\)='`
21086    ac_optarg=
21087    ac_shift=:
21088    ;;
21089  *)
21090    ac_option=$1
21091    ac_optarg=$2
21092    ac_shift=shift
21093    ;;
21094  esac
21095
21096  case $ac_option in
21097  # Handling of the options.
21098  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21099    ac_cs_recheck=: ;;
21100  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21101    printf "%s\n" "$ac_cs_version"; exit ;;
21102  --config | --confi | --conf | --con | --co | --c )
21103    printf "%s\n" "$ac_cs_config"; exit ;;
21104  --debug | --debu | --deb | --de | --d | -d )
21105    debug=: ;;
21106  --file | --fil | --fi | --f )
21107    $ac_shift
21108    case $ac_optarg in
21109    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21110    '') as_fn_error $? "missing file argument" ;;
21111    esac
21112    as_fn_append CONFIG_FILES " '$ac_optarg'"
21113    ac_need_defaults=false;;
21114  --header | --heade | --head | --hea )
21115    $ac_shift
21116    case $ac_optarg in
21117    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21118    esac
21119    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21120    ac_need_defaults=false;;
21121  --he | --h)
21122    # Conflict between --help and --header
21123    as_fn_error $? "ambiguous option: \`$1'
21124Try \`$0 --help' for more information.";;
21125  --help | --hel | -h )
21126    printf "%s\n" "$ac_cs_usage"; exit ;;
21127  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21128  | -silent | --silent | --silen | --sile | --sil | --si | --s)
21129    ac_cs_silent=: ;;
21130
21131  # This is an error.
21132  -*) as_fn_error $? "unrecognized option: \`$1'
21133Try \`$0 --help' for more information." ;;
21134
21135  *) as_fn_append ac_config_targets " $1"
21136     ac_need_defaults=false ;;
21137
21138  esac
21139  shift
21140done
21141
21142ac_configure_extra_args=
21143
21144if $ac_cs_silent; then
21145  exec 6>/dev/null
21146  ac_configure_extra_args="$ac_configure_extra_args --silent"
21147fi
21148
21149_ACEOF
21150cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21151if \$ac_cs_recheck; then
21152  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21153  shift
21154  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
21155  CONFIG_SHELL='$SHELL'
21156  export CONFIG_SHELL
21157  exec "\$@"
21158fi
21159
21160_ACEOF
21161cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21162exec 5>>config.log
21163{
21164  echo
21165  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21166## Running $as_me. ##
21167_ASBOX
21168  printf "%s\n" "$ac_log"
21169} >&5
21170
21171_ACEOF
21172cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21173#
21174# INIT-COMMANDS
21175#
21176AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
21177
21178
21179# The HP-UX ksh and POSIX shell print the target directory to stdout
21180# if CDPATH is set.
21181(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21182
21183sed_quote_subst='$sed_quote_subst'
21184double_quote_subst='$double_quote_subst'
21185delay_variable_subst='$delay_variable_subst'
21186macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21187macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21188enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21189enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21190pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21191enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21192shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
21193SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21194ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
21195PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
21196host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21197host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21198host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21199build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21200build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21201build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21202SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21203Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21204GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21205EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21206FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21207LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21208NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21209LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21210max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21211ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21212exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21213lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21214lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21215lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21216lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21217lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21218reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21219reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21220FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
21221OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21222deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21223file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21224file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21225want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21226DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21227sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21228AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21229lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
21230AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21231archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
21232STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21233RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21234old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21235old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21236old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21237lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21238CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21239CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21240compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21241GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21242lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
21243lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
21244lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
21245lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
21246lt_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"`'
21247lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
21248nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
21249lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
21250lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
21251objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
21252MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
21253lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
21254lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
21255lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
21256lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
21257lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
21258need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
21259MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
21260DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21261NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21262LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21263OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21264OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21265libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21266shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21267extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21268archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21269enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21270export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21271whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21272compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21273old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21274old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21275archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21276archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21277module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21278module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21279with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21280allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21281no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21282hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
21283hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21284hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21285hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21286hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21287hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21288hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21289inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21290link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21291always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21292export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21293exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21294include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21295prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21296postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
21297file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21298variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21299need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21300need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21301version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21302runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21303shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21304shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21305libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21306library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21307soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21308install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21309postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21310postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21311finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21312finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21313hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21314sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21315configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
21316configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
21317hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21318enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21319enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21320enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21321old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21322striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21323
21324LTCC='$LTCC'
21325LTCFLAGS='$LTCFLAGS'
21326compiler='$compiler_DEFAULT'
21327
21328# A function that is used when there is no print builtin or printf.
21329func_fallback_echo ()
21330{
21331  eval 'cat <<_LTECHO_EOF
21332\$1
21333_LTECHO_EOF'
21334}
21335
21336# Quote evaled strings.
21337for var in SHELL \
21338ECHO \
21339PATH_SEPARATOR \
21340SED \
21341GREP \
21342EGREP \
21343FGREP \
21344LD \
21345NM \
21346LN_S \
21347lt_SP2NL \
21348lt_NL2SP \
21349reload_flag \
21350FILECMD \
21351OBJDUMP \
21352deplibs_check_method \
21353file_magic_cmd \
21354file_magic_glob \
21355want_nocaseglob \
21356DLLTOOL \
21357sharedlib_from_linklib_cmd \
21358AR \
21359archiver_list_spec \
21360STRIP \
21361RANLIB \
21362CC \
21363CFLAGS \
21364compiler \
21365lt_cv_sys_global_symbol_pipe \
21366lt_cv_sys_global_symbol_to_cdecl \
21367lt_cv_sys_global_symbol_to_import \
21368lt_cv_sys_global_symbol_to_c_name_address \
21369lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21370lt_cv_nm_interface \
21371nm_file_list_spec \
21372lt_cv_truncate_bin \
21373lt_prog_compiler_no_builtin_flag \
21374lt_prog_compiler_pic \
21375lt_prog_compiler_wl \
21376lt_prog_compiler_static \
21377lt_cv_prog_compiler_c_o \
21378need_locks \
21379MANIFEST_TOOL \
21380DSYMUTIL \
21381NMEDIT \
21382LIPO \
21383OTOOL \
21384OTOOL64 \
21385shrext_cmds \
21386export_dynamic_flag_spec \
21387whole_archive_flag_spec \
21388compiler_needs_object \
21389with_gnu_ld \
21390allow_undefined_flag \
21391no_undefined_flag \
21392hardcode_libdir_flag_spec \
21393hardcode_libdir_separator \
21394exclude_expsyms \
21395include_expsyms \
21396file_list_spec \
21397variables_saved_for_relink \
21398libname_spec \
21399library_names_spec \
21400soname_spec \
21401install_override_mode \
21402finish_eval \
21403old_striplib \
21404striplib; do
21405    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21406    *[\\\\\\\`\\"\\\$]*)
21407      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21408      ;;
21409    *)
21410      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21411      ;;
21412    esac
21413done
21414
21415# Double-quote double-evaled strings.
21416for var in reload_cmds \
21417old_postinstall_cmds \
21418old_postuninstall_cmds \
21419old_archive_cmds \
21420extract_expsyms_cmds \
21421old_archive_from_new_cmds \
21422old_archive_from_expsyms_cmds \
21423archive_cmds \
21424archive_expsym_cmds \
21425module_cmds \
21426module_expsym_cmds \
21427export_symbols_cmds \
21428prelink_cmds \
21429postlink_cmds \
21430postinstall_cmds \
21431postuninstall_cmds \
21432finish_cmds \
21433sys_lib_search_path_spec \
21434configure_time_dlsearch_path \
21435configure_time_lt_sys_library_path; do
21436    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21437    *[\\\\\\\`\\"\\\$]*)
21438      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21439      ;;
21440    *)
21441      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21442      ;;
21443    esac
21444done
21445
21446ac_aux_dir='$ac_aux_dir'
21447
21448# See if we are running on zsh, and set the options that allow our
21449# commands through without removal of \ escapes INIT.
21450if test -n "\${ZSH_VERSION+set}"; then
21451   setopt NO_GLOB_SUBST
21452fi
21453
21454
21455    PACKAGE='$PACKAGE'
21456    VERSION='$VERSION'
21457    RM='$RM'
21458    ofile='$ofile'
21459
21460
21461
21462
21463_ACEOF
21464
21465cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21466
21467# Handling of arguments.
21468for ac_config_target in $ac_config_targets
21469do
21470  case $ac_config_target in
21471    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21472    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21473    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21474    "libtool_hack") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool_hack" ;;
21475    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21476    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
21477    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
21478    "specs/Makefile") CONFIG_FILES="$CONFIG_FILES specs/Makefile" ;;
21479    "specs/libXaw.ent") CONFIG_FILES="$CONFIG_FILES specs/libXaw.ent" ;;
21480    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21481    "xaw6.pc") CONFIG_FILES="$CONFIG_FILES xaw6.pc" ;;
21482    "xaw7.pc") CONFIG_FILES="$CONFIG_FILES xaw7.pc" ;;
21483
21484  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21485  esac
21486done
21487
21488
21489# If the user did not use the arguments to specify the items to instantiate,
21490# then the envvar interface is used.  Set only those that are not.
21491# We use the long form for the default assignment because of an extremely
21492# bizarre bug on SunOS 4.1.3.
21493if $ac_need_defaults; then
21494  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
21495  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
21496  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
21497fi
21498
21499# Have a temporary directory for convenience.  Make it in the build tree
21500# simply because there is no reason against having it here, and in addition,
21501# creating and moving files from /tmp can sometimes cause problems.
21502# Hook for its removal unless debugging.
21503# Note that there is a small window in which the directory will not be cleaned:
21504# after its creation but before its name has been assigned to `$tmp'.
21505$debug ||
21506{
21507  tmp= ac_tmp=
21508  trap 'exit_status=$?
21509  : "${ac_tmp:=$tmp}"
21510  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21511' 0
21512  trap 'as_fn_exit 1' 1 2 13 15
21513}
21514# Create a (secure) tmp directory for tmp files.
21515
21516{
21517  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21518  test -d "$tmp"
21519}  ||
21520{
21521  tmp=./conf$$-$RANDOM
21522  (umask 077 && mkdir "$tmp")
21523} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21524ac_tmp=$tmp
21525
21526# Set up the scripts for CONFIG_FILES section.
21527# No need to generate them if there are no CONFIG_FILES.
21528# This happens for instance with `./config.status config.h'.
21529if test -n "$CONFIG_FILES"; then
21530
21531
21532ac_cr=`echo X | tr X '\015'`
21533# On cygwin, bash can eat \r inside `` if the user requested igncr.
21534# But we know of no other shell where ac_cr would be empty at this
21535# point, so we can use a bashism as a fallback.
21536if test "x$ac_cr" = x; then
21537  eval ac_cr=\$\'\\r\'
21538fi
21539ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21540if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21541  ac_cs_awk_cr='\\r'
21542else
21543  ac_cs_awk_cr=$ac_cr
21544fi
21545
21546echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21547_ACEOF
21548
21549
21550{
21551  echo "cat >conf$$subs.awk <<_ACEOF" &&
21552  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21553  echo "_ACEOF"
21554} >conf$$subs.sh ||
21555  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21556ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21557ac_delim='%!_!# '
21558for ac_last_try in false false false false false :; do
21559  . ./conf$$subs.sh ||
21560    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21561
21562  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21563  if test $ac_delim_n = $ac_delim_num; then
21564    break
21565  elif $ac_last_try; then
21566    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21567  else
21568    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21569  fi
21570done
21571rm -f conf$$subs.sh
21572
21573cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21574cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21575_ACEOF
21576sed -n '
21577h
21578s/^/S["/; s/!.*/"]=/
21579p
21580g
21581s/^[^!]*!//
21582:repl
21583t repl
21584s/'"$ac_delim"'$//
21585t delim
21586:nl
21587h
21588s/\(.\{148\}\)..*/\1/
21589t more1
21590s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21591p
21592n
21593b repl
21594:more1
21595s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21596p
21597g
21598s/.\{148\}//
21599t nl
21600:delim
21601h
21602s/\(.\{148\}\)..*/\1/
21603t more2
21604s/["\\]/\\&/g; s/^/"/; s/$/"/
21605p
21606b
21607:more2
21608s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21609p
21610g
21611s/.\{148\}//
21612t delim
21613' <conf$$subs.awk | sed '
21614/^[^""]/{
21615  N
21616  s/\n//
21617}
21618' >>$CONFIG_STATUS || ac_write_fail=1
21619rm -f conf$$subs.awk
21620cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21621_ACAWK
21622cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21623  for (key in S) S_is_set[key] = 1
21624  FS = ""
21625
21626}
21627{
21628  line = $ 0
21629  nfields = split(line, field, "@")
21630  substed = 0
21631  len = length(field[1])
21632  for (i = 2; i < nfields; i++) {
21633    key = field[i]
21634    keylen = length(key)
21635    if (S_is_set[key]) {
21636      value = S[key]
21637      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21638      len += length(value) + length(field[++i])
21639      substed = 1
21640    } else
21641      len += 1 + keylen
21642  }
21643
21644  print line
21645}
21646
21647_ACAWK
21648_ACEOF
21649cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21650if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21651  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21652else
21653  cat
21654fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21655  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21656_ACEOF
21657
21658# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21659# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21660# trailing colons and then remove the whole line if VPATH becomes empty
21661# (actually we leave an empty line to preserve line numbers).
21662if test "x$srcdir" = x.; then
21663  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
21664h
21665s///
21666s/^/:/
21667s/[	 ]*$/:/
21668s/:\$(srcdir):/:/g
21669s/:\${srcdir}:/:/g
21670s/:@srcdir@:/:/g
21671s/^:*//
21672s/:*$//
21673x
21674s/\(=[	 ]*\).*/\1/
21675G
21676s/\n//
21677s/^[^=]*=[	 ]*$//
21678}'
21679fi
21680
21681cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21682fi # test -n "$CONFIG_FILES"
21683
21684# Set up the scripts for CONFIG_HEADERS section.
21685# No need to generate them if there are no CONFIG_HEADERS.
21686# This happens for instance with `./config.status Makefile'.
21687if test -n "$CONFIG_HEADERS"; then
21688cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21689BEGIN {
21690_ACEOF
21691
21692# Transform confdefs.h into an awk script `defines.awk', embedded as
21693# here-document in config.status, that substitutes the proper values into
21694# config.h.in to produce config.h.
21695
21696# Create a delimiter string that does not exist in confdefs.h, to ease
21697# handling of long lines.
21698ac_delim='%!_!# '
21699for ac_last_try in false false :; do
21700  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21701  if test -z "$ac_tt"; then
21702    break
21703  elif $ac_last_try; then
21704    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21705  else
21706    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21707  fi
21708done
21709
21710# For the awk script, D is an array of macro values keyed by name,
21711# likewise P contains macro parameters if any.  Preserve backslash
21712# newline sequences.
21713
21714ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21715sed -n '
21716s/.\{148\}/&'"$ac_delim"'/g
21717t rset
21718:rset
21719s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
21720t def
21721d
21722:def
21723s/\\$//
21724t bsnl
21725s/["\\]/\\&/g
21726s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
21727D["\1"]=" \3"/p
21728s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
21729d
21730:bsnl
21731s/["\\]/\\&/g
21732s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
21733D["\1"]=" \3\\\\\\n"\\/p
21734t cont
21735s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21736t cont
21737d
21738:cont
21739n
21740s/.\{148\}/&'"$ac_delim"'/g
21741t clear
21742:clear
21743s/\\$//
21744t bsnlc
21745s/["\\]/\\&/g; s/^/"/; s/$/"/p
21746d
21747:bsnlc
21748s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21749b cont
21750' <confdefs.h | sed '
21751s/'"$ac_delim"'/"\\\
21752"/g' >>$CONFIG_STATUS || ac_write_fail=1
21753
21754cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21755  for (key in D) D_is_set[key] = 1
21756  FS = ""
21757}
21758/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21759  line = \$ 0
21760  split(line, arg, " ")
21761  if (arg[1] == "#") {
21762    defundef = arg[2]
21763    mac1 = arg[3]
21764  } else {
21765    defundef = substr(arg[1], 2)
21766    mac1 = arg[2]
21767  }
21768  split(mac1, mac2, "(") #)
21769  macro = mac2[1]
21770  prefix = substr(line, 1, index(line, defundef) - 1)
21771  if (D_is_set[macro]) {
21772    # Preserve the white space surrounding the "#".
21773    print prefix "define", macro P[macro] D[macro]
21774    next
21775  } else {
21776    # Replace #undef with comments.  This is necessary, for example,
21777    # in the case of _POSIX_SOURCE, which is predefined and required
21778    # on some systems where configure will not decide to define it.
21779    if (defundef == "undef") {
21780      print "/*", prefix defundef, macro, "*/"
21781      next
21782    }
21783  }
21784}
21785{ print }
21786_ACAWK
21787_ACEOF
21788cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21789  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21790fi # test -n "$CONFIG_HEADERS"
21791
21792
21793eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
21794shift
21795for ac_tag
21796do
21797  case $ac_tag in
21798  :[FHLC]) ac_mode=$ac_tag; continue;;
21799  esac
21800  case $ac_mode$ac_tag in
21801  :[FHL]*:*);;
21802  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21803  :[FH]-) ac_tag=-:-;;
21804  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21805  esac
21806  ac_save_IFS=$IFS
21807  IFS=:
21808  set x $ac_tag
21809  IFS=$ac_save_IFS
21810  shift
21811  ac_file=$1
21812  shift
21813
21814  case $ac_mode in
21815  :L) ac_source=$1;;
21816  :[FH])
21817    ac_file_inputs=
21818    for ac_f
21819    do
21820      case $ac_f in
21821      -) ac_f="$ac_tmp/stdin";;
21822      *) # Look for the file first in the build tree, then in the source tree
21823	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
21824	 # because $ac_f cannot contain `:'.
21825	 test -f "$ac_f" ||
21826	   case $ac_f in
21827	   [\\/$]*) false;;
21828	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21829	   esac ||
21830	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21831      esac
21832      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21833      as_fn_append ac_file_inputs " '$ac_f'"
21834    done
21835
21836    # Let's still pretend it is `configure' which instantiates (i.e., don't
21837    # use $as_me), people would be surprised to read:
21838    #    /* config.h.  Generated by config.status.  */
21839    configure_input='Generated from '`
21840	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21841	`' by configure.'
21842    if test x"$ac_file" != x-; then
21843      configure_input="$ac_file.  $configure_input"
21844      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21845printf "%s\n" "$as_me: creating $ac_file" >&6;}
21846    fi
21847    # Neutralize special characters interpreted by sed in replacement strings.
21848    case $configure_input in #(
21849    *\&* | *\|* | *\\* )
21850       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
21851       sed 's/[\\\\&|]/\\\\&/g'`;; #(
21852    *) ac_sed_conf_input=$configure_input;;
21853    esac
21854
21855    case $ac_tag in
21856    *:-:* | *:-) cat >"$ac_tmp/stdin" \
21857      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21858    esac
21859    ;;
21860  esac
21861
21862  ac_dir=`$as_dirname -- "$ac_file" ||
21863$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21864	 X"$ac_file" : 'X\(//\)[^/]' \| \
21865	 X"$ac_file" : 'X\(//\)$' \| \
21866	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21867printf "%s\n" X"$ac_file" |
21868    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21869	    s//\1/
21870	    q
21871	  }
21872	  /^X\(\/\/\)[^/].*/{
21873	    s//\1/
21874	    q
21875	  }
21876	  /^X\(\/\/\)$/{
21877	    s//\1/
21878	    q
21879	  }
21880	  /^X\(\/\).*/{
21881	    s//\1/
21882	    q
21883	  }
21884	  s/.*/./; q'`
21885  as_dir="$ac_dir"; as_fn_mkdir_p
21886  ac_builddir=.
21887
21888case "$ac_dir" in
21889.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21890*)
21891  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
21892  # A ".." for each directory in $ac_dir_suffix.
21893  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21894  case $ac_top_builddir_sub in
21895  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21896  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21897  esac ;;
21898esac
21899ac_abs_top_builddir=$ac_pwd
21900ac_abs_builddir=$ac_pwd$ac_dir_suffix
21901# for backward compatibility:
21902ac_top_builddir=$ac_top_build_prefix
21903
21904case $srcdir in
21905  .)  # We are building in place.
21906    ac_srcdir=.
21907    ac_top_srcdir=$ac_top_builddir_sub
21908    ac_abs_top_srcdir=$ac_pwd ;;
21909  [\\/]* | ?:[\\/]* )  # Absolute name.
21910    ac_srcdir=$srcdir$ac_dir_suffix;
21911    ac_top_srcdir=$srcdir
21912    ac_abs_top_srcdir=$srcdir ;;
21913  *) # Relative name.
21914    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21915    ac_top_srcdir=$ac_top_build_prefix$srcdir
21916    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21917esac
21918ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21919
21920
21921  case $ac_mode in
21922  :F)
21923  #
21924  # CONFIG_FILE
21925  #
21926
21927  case $INSTALL in
21928  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21929  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21930  esac
21931  ac_MKDIR_P=$MKDIR_P
21932  case $MKDIR_P in
21933  [\\/$]* | ?:[\\/]* ) ;;
21934  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21935  esac
21936_ACEOF
21937
21938cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21939# If the template does not know about datarootdir, expand it.
21940# FIXME: This hack should be removed a few years after 2.60.
21941ac_datarootdir_hack=; ac_datarootdir_seen=
21942ac_sed_dataroot='
21943/datarootdir/ {
21944  p
21945  q
21946}
21947/@datadir@/p
21948/@docdir@/p
21949/@infodir@/p
21950/@localedir@/p
21951/@mandir@/p'
21952case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21953*datarootdir*) ac_datarootdir_seen=yes;;
21954*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21955  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21956printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21957_ACEOF
21958cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21959  ac_datarootdir_hack='
21960  s&@datadir@&$datadir&g
21961  s&@docdir@&$docdir&g
21962  s&@infodir@&$infodir&g
21963  s&@localedir@&$localedir&g
21964  s&@mandir@&$mandir&g
21965  s&\\\${datarootdir}&$datarootdir&g' ;;
21966esac
21967_ACEOF
21968
21969# Neutralize VPATH when `$srcdir' = `.'.
21970# Shell code in configure.ac might set extrasub.
21971# FIXME: do we really want to maintain this feature?
21972cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21973ac_sed_extra="$ac_vpsub
21974$extrasub
21975_ACEOF
21976cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21977:t
21978/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21979s|@configure_input@|$ac_sed_conf_input|;t t
21980s&@top_builddir@&$ac_top_builddir_sub&;t t
21981s&@top_build_prefix@&$ac_top_build_prefix&;t t
21982s&@srcdir@&$ac_srcdir&;t t
21983s&@abs_srcdir@&$ac_abs_srcdir&;t t
21984s&@top_srcdir@&$ac_top_srcdir&;t t
21985s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21986s&@builddir@&$ac_builddir&;t t
21987s&@abs_builddir@&$ac_abs_builddir&;t t
21988s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21989s&@INSTALL@&$ac_INSTALL&;t t
21990s&@MKDIR_P@&$ac_MKDIR_P&;t t
21991$ac_datarootdir_hack
21992"
21993eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21994  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21995
21996test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21997  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21998  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
21999      "$ac_tmp/out"`; test -z "$ac_out"; } &&
22000  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22001which seems to be undefined.  Please make sure it is defined" >&5
22002printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22003which seems to be undefined.  Please make sure it is defined" >&2;}
22004
22005  rm -f "$ac_tmp/stdin"
22006  case $ac_file in
22007  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22008  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
22009  esac \
22010  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22011 ;;
22012  :H)
22013  #
22014  # CONFIG_HEADER
22015  #
22016  if test x"$ac_file" != x-; then
22017    {
22018      printf "%s\n" "/* $configure_input  */" >&1 \
22019      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22020    } >"$ac_tmp/config.h" \
22021      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22022    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22023      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22024printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
22025    else
22026      rm -f "$ac_file"
22027      mv "$ac_tmp/config.h" "$ac_file" \
22028	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
22029    fi
22030  else
22031    printf "%s\n" "/* $configure_input  */" >&1 \
22032      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22033      || as_fn_error $? "could not create -" "$LINENO" 5
22034  fi
22035# Compute "$ac_file"'s index in $config_headers.
22036_am_arg="$ac_file"
22037_am_stamp_count=1
22038for _am_header in $config_headers :; do
22039  case $_am_header in
22040    $_am_arg | $_am_arg:* )
22041      break ;;
22042    * )
22043      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22044  esac
22045done
22046echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22047$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22048	 X"$_am_arg" : 'X\(//\)[^/]' \| \
22049	 X"$_am_arg" : 'X\(//\)$' \| \
22050	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22051printf "%s\n" X"$_am_arg" |
22052    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22053	    s//\1/
22054	    q
22055	  }
22056	  /^X\(\/\/\)[^/].*/{
22057	    s//\1/
22058	    q
22059	  }
22060	  /^X\(\/\/\)$/{
22061	    s//\1/
22062	    q
22063	  }
22064	  /^X\(\/\).*/{
22065	    s//\1/
22066	    q
22067	  }
22068	  s/.*/./; q'`/stamp-h$_am_stamp_count
22069 ;;
22070
22071  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22072printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
22073 ;;
22074  esac
22075
22076
22077  case $ac_file$ac_mode in
22078    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22079  # Older Autoconf quotes --file arguments for eval, but not when files
22080  # are listed without --file.  Let's play safe and only enable the eval
22081  # if we detect the quoting.
22082  # TODO: see whether this extra hack can be removed once we start
22083  # requiring Autoconf 2.70 or later.
22084  case $CONFIG_FILES in #(
22085  *\'*) :
22086    eval set x "$CONFIG_FILES" ;; #(
22087  *) :
22088    set x $CONFIG_FILES ;; #(
22089  *) :
22090     ;;
22091esac
22092  shift
22093  # Used to flag and report bootstrapping failures.
22094  am_rc=0
22095  for am_mf
22096  do
22097    # Strip MF so we end up with the name of the file.
22098    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
22099    # Check whether this is an Automake generated Makefile which includes
22100    # dependency-tracking related rules and includes.
22101    # Grep'ing the whole file directly is not great: AIX grep has a line
22102    # limit of 2048, but all sed's we know have understand at least 4000.
22103    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
22104      || continue
22105    am_dirpart=`$as_dirname -- "$am_mf" ||
22106$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22107	 X"$am_mf" : 'X\(//\)[^/]' \| \
22108	 X"$am_mf" : 'X\(//\)$' \| \
22109	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22110printf "%s\n" X"$am_mf" |
22111    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22112	    s//\1/
22113	    q
22114	  }
22115	  /^X\(\/\/\)[^/].*/{
22116	    s//\1/
22117	    q
22118	  }
22119	  /^X\(\/\/\)$/{
22120	    s//\1/
22121	    q
22122	  }
22123	  /^X\(\/\).*/{
22124	    s//\1/
22125	    q
22126	  }
22127	  s/.*/./; q'`
22128    am_filepart=`$as_basename -- "$am_mf" ||
22129$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
22130	 X"$am_mf" : 'X\(//\)$' \| \
22131	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22132printf "%s\n" X/"$am_mf" |
22133    sed '/^.*\/\([^/][^/]*\)\/*$/{
22134	    s//\1/
22135	    q
22136	  }
22137	  /^X\/\(\/\/\)$/{
22138	    s//\1/
22139	    q
22140	  }
22141	  /^X\/\(\/\).*/{
22142	    s//\1/
22143	    q
22144	  }
22145	  s/.*/./; q'`
22146    { echo "$as_me:$LINENO: cd "$am_dirpart" \
22147      && sed -e '/# am--include-marker/d' "$am_filepart" \
22148        | $MAKE -f - am--depfiles" >&5
22149   (cd "$am_dirpart" \
22150      && sed -e '/# am--include-marker/d' "$am_filepart" \
22151        | $MAKE -f - am--depfiles) >&5 2>&5
22152   ac_status=$?
22153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22154   (exit $ac_status); } || am_rc=$?
22155  done
22156  if test $am_rc -ne 0; then
22157    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22158printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22159as_fn_error $? "Something went wrong bootstrapping makefile fragments
22160    for automatic dependency tracking.  If GNU make was not used, consider
22161    re-running the configure script with MAKE=\"gmake\" (or whatever is
22162    necessary).  You can also try re-running configure with the
22163    '--disable-dependency-tracking' option to at least be able to build
22164    the package (albeit without support for automatic dependency tracking).
22165See \`config.log' for more details" "$LINENO" 5; }
22166  fi
22167  { am_dirpart=; unset am_dirpart;}
22168  { am_filepart=; unset am_filepart;}
22169  { am_mf=; unset am_mf;}
22170  { am_rc=; unset am_rc;}
22171  rm -f conftest-deps.mk
22172}
22173 ;;
22174    "libtool":C)
22175
22176    # See if we are running on zsh, and set the options that allow our
22177    # commands through without removal of \ escapes.
22178    if test -n "${ZSH_VERSION+set}"; then
22179      setopt NO_GLOB_SUBST
22180    fi
22181
22182    cfgfile=${ofile}T
22183    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22184    $RM "$cfgfile"
22185
22186    cat <<_LT_EOF >> "$cfgfile"
22187#! $SHELL
22188# Generated automatically by $as_me ($PACKAGE) $VERSION
22189# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22190# NOTE: Changes made to this file will be lost: look at ltmain.sh.
22191
22192# Provide generalized library-building support services.
22193# Written by Gordon Matzigkeit, 1996
22194
22195# Copyright (C) 2014 Free Software Foundation, Inc.
22196# This is free software; see the source for copying conditions.  There is NO
22197# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
22198
22199# GNU Libtool is free software; you can redistribute it and/or modify
22200# it under the terms of the GNU General Public License as published by
22201# the Free Software Foundation; either version 2 of of the License, or
22202# (at your option) any later version.
22203#
22204# As a special exception to the GNU General Public License, if you
22205# distribute this file as part of a program or library that is built
22206# using GNU Libtool, you may include this file under the  same
22207# distribution terms that you use for the rest of that program.
22208#
22209# GNU Libtool is distributed in the hope that it will be useful, but
22210# WITHOUT ANY WARRANTY; without even the implied warranty of
22211# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22212# GNU General Public License for more details.
22213#
22214# You should have received a copy of the GNU General Public License
22215# along with this program.  If not, see <http://www.gnu.org/licenses/>.
22216
22217
22218# The names of the tagged configurations supported by this script.
22219available_tags=''
22220
22221# Configured defaults for sys_lib_dlsearch_path munging.
22222: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
22223
22224# ### BEGIN LIBTOOL CONFIG
22225
22226# Which release of libtool.m4 was used?
22227macro_version=$macro_version
22228macro_revision=$macro_revision
22229
22230# Whether or not to build shared libraries.
22231build_libtool_libs=$enable_shared
22232
22233# Whether or not to build static libraries.
22234build_old_libs=$enable_static
22235
22236# What type of objects to build.
22237pic_mode=$pic_mode
22238
22239# Whether or not to optimize for fast installation.
22240fast_install=$enable_fast_install
22241
22242# Shared archive member basename,for filename based shared library versioning on AIX.
22243shared_archive_member_spec=$shared_archive_member_spec
22244
22245# Shell to use when invoking shell scripts.
22246SHELL=$lt_SHELL
22247
22248# An echo program that protects backslashes.
22249ECHO=$lt_ECHO
22250
22251# The PATH separator for the build system.
22252PATH_SEPARATOR=$lt_PATH_SEPARATOR
22253
22254# The host system.
22255host_alias=$host_alias
22256host=$host
22257host_os=$host_os
22258
22259# The build system.
22260build_alias=$build_alias
22261build=$build
22262build_os=$build_os
22263
22264# A sed program that does not truncate output.
22265SED=$lt_SED
22266
22267# Sed that helps us avoid accidentally triggering echo(1) options like -n.
22268Xsed="\$SED -e 1s/^X//"
22269
22270# A grep program that handles long lines.
22271GREP=$lt_GREP
22272
22273# An ERE matcher.
22274EGREP=$lt_EGREP
22275
22276# A literal string matcher.
22277FGREP=$lt_FGREP
22278
22279# A BSD- or MS-compatible name lister.
22280NM=$lt_NM
22281
22282# Whether we need soft or hard links.
22283LN_S=$lt_LN_S
22284
22285# What is the maximum length of a command?
22286max_cmd_len=$max_cmd_len
22287
22288# Object file suffix (normally "o").
22289objext=$ac_objext
22290
22291# Executable file suffix (normally "").
22292exeext=$exeext
22293
22294# whether the shell understands "unset".
22295lt_unset=$lt_unset
22296
22297# turn spaces into newlines.
22298SP2NL=$lt_lt_SP2NL
22299
22300# turn newlines into spaces.
22301NL2SP=$lt_lt_NL2SP
22302
22303# convert \$build file names to \$host format.
22304to_host_file_cmd=$lt_cv_to_host_file_cmd
22305
22306# convert \$build files to toolchain format.
22307to_tool_file_cmd=$lt_cv_to_tool_file_cmd
22308
22309# A file(cmd) program that detects file types.
22310FILECMD=$lt_FILECMD
22311
22312# An object symbol dumper.
22313OBJDUMP=$lt_OBJDUMP
22314
22315# Method to check whether dependent libraries are shared objects.
22316deplibs_check_method=$lt_deplibs_check_method
22317
22318# Command to use when deplibs_check_method = "file_magic".
22319file_magic_cmd=$lt_file_magic_cmd
22320
22321# How to find potential files when deplibs_check_method = "file_magic".
22322file_magic_glob=$lt_file_magic_glob
22323
22324# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
22325want_nocaseglob=$lt_want_nocaseglob
22326
22327# DLL creation program.
22328DLLTOOL=$lt_DLLTOOL
22329
22330# Command to associate shared and link libraries.
22331sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
22332
22333# The archiver.
22334AR=$lt_AR
22335
22336# Flags to create an archive (by configure).
22337lt_ar_flags=$lt_ar_flags
22338
22339# Flags to create an archive.
22340AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
22341
22342# How to feed a file listing to the archiver.
22343archiver_list_spec=$lt_archiver_list_spec
22344
22345# A symbol stripping program.
22346STRIP=$lt_STRIP
22347
22348# Commands used to install an old-style archive.
22349RANLIB=$lt_RANLIB
22350old_postinstall_cmds=$lt_old_postinstall_cmds
22351old_postuninstall_cmds=$lt_old_postuninstall_cmds
22352
22353# Whether to use a lock for old archive extraction.
22354lock_old_archive_extraction=$lock_old_archive_extraction
22355
22356# A C compiler.
22357LTCC=$lt_CC
22358
22359# LTCC compiler flags.
22360LTCFLAGS=$lt_CFLAGS
22361
22362# Take the output of nm and produce a listing of raw symbols and C names.
22363global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22364
22365# Transform the output of nm in a proper C declaration.
22366global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22367
22368# Transform the output of nm into a list of symbols to manually relocate.
22369global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
22370
22371# Transform the output of nm in a C name address pair.
22372global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22373
22374# Transform the output of nm in a C name address pair when lib prefix is needed.
22375global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22376
22377# The name lister interface.
22378nm_interface=$lt_lt_cv_nm_interface
22379
22380# Specify filename containing input files for \$NM.
22381nm_file_list_spec=$lt_nm_file_list_spec
22382
22383# The root where to search for dependent libraries,and where our libraries should be installed.
22384lt_sysroot=$lt_sysroot
22385
22386# Command to truncate a binary pipe.
22387lt_truncate_bin=$lt_lt_cv_truncate_bin
22388
22389# The name of the directory that contains temporary libtool files.
22390objdir=$objdir
22391
22392# Used to examine libraries when file_magic_cmd begins with "file".
22393MAGIC_CMD=$MAGIC_CMD
22394
22395# Must we lock files when doing compilation?
22396need_locks=$lt_need_locks
22397
22398# Manifest tool.
22399MANIFEST_TOOL=$lt_MANIFEST_TOOL
22400
22401# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22402DSYMUTIL=$lt_DSYMUTIL
22403
22404# Tool to change global to local symbols on Mac OS X.
22405NMEDIT=$lt_NMEDIT
22406
22407# Tool to manipulate fat objects and archives on Mac OS X.
22408LIPO=$lt_LIPO
22409
22410# ldd/readelf like tool for Mach-O binaries on Mac OS X.
22411OTOOL=$lt_OTOOL
22412
22413# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22414OTOOL64=$lt_OTOOL64
22415
22416# Old archive suffix (normally "a").
22417libext=$libext
22418
22419# Shared library suffix (normally ".so").
22420shrext_cmds=$lt_shrext_cmds
22421
22422# The commands to extract the exported symbol list from a shared archive.
22423extract_expsyms_cmds=$lt_extract_expsyms_cmds
22424
22425# Variables whose values should be saved in libtool wrapper scripts and
22426# restored at link time.
22427variables_saved_for_relink=$lt_variables_saved_for_relink
22428
22429# Do we need the "lib" prefix for modules?
22430need_lib_prefix=$need_lib_prefix
22431
22432# Do we need a version for libraries?
22433need_version=$need_version
22434
22435# Library versioning type.
22436version_type=$version_type
22437
22438# Shared library runtime path variable.
22439runpath_var=$runpath_var
22440
22441# Shared library path variable.
22442shlibpath_var=$shlibpath_var
22443
22444# Is shlibpath searched before the hard-coded library search path?
22445shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22446
22447# Format of library name prefix.
22448libname_spec=$lt_libname_spec
22449
22450# List of archive names.  First name is the real one, the rest are links.
22451# The last name is the one that the linker finds with -lNAME
22452library_names_spec=$lt_library_names_spec
22453
22454# The coded name of the library, if different from the real name.
22455soname_spec=$lt_soname_spec
22456
22457# Permission mode override for installation of shared libraries.
22458install_override_mode=$lt_install_override_mode
22459
22460# Command to use after installation of a shared archive.
22461postinstall_cmds=$lt_postinstall_cmds
22462
22463# Command to use after uninstallation of a shared archive.
22464postuninstall_cmds=$lt_postuninstall_cmds
22465
22466# Commands used to finish a libtool library installation in a directory.
22467finish_cmds=$lt_finish_cmds
22468
22469# As "finish_cmds", except a single script fragment to be evaled but
22470# not shown.
22471finish_eval=$lt_finish_eval
22472
22473# Whether we should hardcode library paths into libraries.
22474hardcode_into_libs=$hardcode_into_libs
22475
22476# Compile-time system search path for libraries.
22477sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22478
22479# Detected run-time system search path for libraries.
22480sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
22481
22482# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
22483configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
22484
22485# Whether dlopen is supported.
22486dlopen_support=$enable_dlopen
22487
22488# Whether dlopen of programs is supported.
22489dlopen_self=$enable_dlopen_self
22490
22491# Whether dlopen of statically linked programs is supported.
22492dlopen_self_static=$enable_dlopen_self_static
22493
22494# Commands to strip libraries.
22495old_striplib=$lt_old_striplib
22496striplib=$lt_striplib
22497
22498
22499# The linker used to build libraries.
22500LD=$lt_LD
22501
22502# How to create reloadable object files.
22503reload_flag=$lt_reload_flag
22504reload_cmds=$lt_reload_cmds
22505
22506# Commands used to build an old-style archive.
22507old_archive_cmds=$lt_old_archive_cmds
22508
22509# A language specific compiler.
22510CC=$lt_compiler
22511
22512# Is the compiler the GNU compiler?
22513with_gcc=$GCC
22514
22515# Compiler flag to turn off builtin functions.
22516no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22517
22518# Additional compiler flags for building library objects.
22519pic_flag=$lt_lt_prog_compiler_pic
22520
22521# How to pass a linker flag through the compiler.
22522wl=$lt_lt_prog_compiler_wl
22523
22524# Compiler flag to prevent dynamic linking.
22525link_static_flag=$lt_lt_prog_compiler_static
22526
22527# Does compiler simultaneously support -c and -o options?
22528compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22529
22530# Whether or not to add -lc for building shared libraries.
22531build_libtool_need_lc=$archive_cmds_need_lc
22532
22533# Whether or not to disallow shared libs when runtime libs are static.
22534allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22535
22536# Compiler flag to allow reflexive dlopens.
22537export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22538
22539# Compiler flag to generate shared objects directly from archives.
22540whole_archive_flag_spec=$lt_whole_archive_flag_spec
22541
22542# Whether the compiler copes with passing no objects directly.
22543compiler_needs_object=$lt_compiler_needs_object
22544
22545# Create an old-style archive from a shared archive.
22546old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22547
22548# Create a temporary old-style archive to link instead of a shared archive.
22549old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22550
22551# Commands used to build a shared archive.
22552archive_cmds=$lt_archive_cmds
22553archive_expsym_cmds=$lt_archive_expsym_cmds
22554
22555# Commands used to build a loadable module if different from building
22556# a shared archive.
22557module_cmds=$lt_module_cmds
22558module_expsym_cmds=$lt_module_expsym_cmds
22559
22560# Whether we are building with GNU ld or not.
22561with_gnu_ld=$lt_with_gnu_ld
22562
22563# Flag that allows shared libraries with undefined symbols to be built.
22564allow_undefined_flag=$lt_allow_undefined_flag
22565
22566# Flag that enforces no undefined symbols.
22567no_undefined_flag=$lt_no_undefined_flag
22568
22569# Flag to hardcode \$libdir into a binary during linking.
22570# This must work even if \$libdir does not exist
22571hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22572
22573# Whether we need a single "-rpath" flag with a separated argument.
22574hardcode_libdir_separator=$lt_hardcode_libdir_separator
22575
22576# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22577# DIR into the resulting binary.
22578hardcode_direct=$hardcode_direct
22579
22580# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22581# DIR into the resulting binary and the resulting library dependency is
22582# "absolute",i.e impossible to change by setting \$shlibpath_var if the
22583# library is relocated.
22584hardcode_direct_absolute=$hardcode_direct_absolute
22585
22586# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22587# into the resulting binary.
22588hardcode_minus_L=$hardcode_minus_L
22589
22590# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22591# into the resulting binary.
22592hardcode_shlibpath_var=$hardcode_shlibpath_var
22593
22594# Set to "yes" if building a shared library automatically hardcodes DIR
22595# into the library and all subsequent libraries and executables linked
22596# against it.
22597hardcode_automatic=$hardcode_automatic
22598
22599# Set to yes if linker adds runtime paths of dependent libraries
22600# to runtime path list.
22601inherit_rpath=$inherit_rpath
22602
22603# Whether libtool must link a program against all its dependency libraries.
22604link_all_deplibs=$link_all_deplibs
22605
22606# Set to "yes" if exported symbols are required.
22607always_export_symbols=$always_export_symbols
22608
22609# The commands to list exported symbols.
22610export_symbols_cmds=$lt_export_symbols_cmds
22611
22612# Symbols that should not be listed in the preloaded symbols.
22613exclude_expsyms=$lt_exclude_expsyms
22614
22615# Symbols that must always be exported.
22616include_expsyms=$lt_include_expsyms
22617
22618# Commands necessary for linking programs (against libraries) with templates.
22619prelink_cmds=$lt_prelink_cmds
22620
22621# Commands necessary for finishing linking programs.
22622postlink_cmds=$lt_postlink_cmds
22623
22624# Specify filename containing input files.
22625file_list_spec=$lt_file_list_spec
22626
22627# How to hardcode a shared library path into an executable.
22628hardcode_action=$hardcode_action
22629
22630# ### END LIBTOOL CONFIG
22631
22632_LT_EOF
22633
22634    cat <<'_LT_EOF' >> "$cfgfile"
22635
22636# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
22637
22638# func_munge_path_list VARIABLE PATH
22639# -----------------------------------
22640# VARIABLE is name of variable containing _space_ separated list of
22641# directories to be munged by the contents of PATH, which is string
22642# having a format:
22643# "DIR[:DIR]:"
22644#       string "DIR[ DIR]" will be prepended to VARIABLE
22645# ":DIR[:DIR]"
22646#       string "DIR[ DIR]" will be appended to VARIABLE
22647# "DIRP[:DIRP]::[DIRA:]DIRA"
22648#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
22649#       "DIRA[ DIRA]" will be appended to VARIABLE
22650# "DIR[:DIR]"
22651#       VARIABLE will be replaced by "DIR[ DIR]"
22652func_munge_path_list ()
22653{
22654    case x$2 in
22655    x)
22656        ;;
22657    *:)
22658        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
22659        ;;
22660    x:*)
22661        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
22662        ;;
22663    *::*)
22664        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
22665        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
22666        ;;
22667    *)
22668        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
22669        ;;
22670    esac
22671}
22672
22673
22674# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
22675func_cc_basename ()
22676{
22677    for cc_temp in $*""; do
22678      case $cc_temp in
22679        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22680        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22681        \-*) ;;
22682        *) break;;
22683      esac
22684    done
22685    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
22686}
22687
22688
22689# ### END FUNCTIONS SHARED WITH CONFIGURE
22690
22691_LT_EOF
22692
22693  case $host_os in
22694  aix3*)
22695    cat <<\_LT_EOF >> "$cfgfile"
22696# AIX sometimes has problems with the GCC collect2 program.  For some
22697# reason, if we set the COLLECT_NAMES environment variable, the problems
22698# vanish in a puff of smoke.
22699if test set != "${COLLECT_NAMES+set}"; then
22700  COLLECT_NAMES=
22701  export COLLECT_NAMES
22702fi
22703_LT_EOF
22704    ;;
22705  esac
22706
22707
22708
22709ltmain=$ac_aux_dir/ltmain.sh
22710
22711
22712  # We use sed instead of cat because bash on DJGPP gets confused if
22713  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
22714  # text mode, it properly converts lines to CR/LF.  This bash problem
22715  # is reportedly fixed, but why not run on old versions too?
22716  $SED '$q' "$ltmain" >> "$cfgfile" \
22717     || (rm -f "$cfgfile"; exit 1)
22718
22719   mv -f "$cfgfile" "$ofile" ||
22720    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22721  chmod +x "$ofile"
22722
22723 ;;
22724    "libtool_hack":C)
22725	cp -f libtool libtool_
22726	test -z "$SED" && SED=sed
22727	$SED '1,/^soname_spec/{
22728/^soname_spec/i\
22729# X.Org hack to match monolithic Xaw SONAME\
22730xorglibxawname="libXaw"
22731/^soname_spec/s/libname/xorglibxawname/
22732}' libtool_ > libtool
22733	rm -f libtool_
22734 ;;
22735
22736  esac
22737done # for ac_tag
22738
22739
22740as_fn_exit 0
22741_ACEOF
22742ac_clean_files=$ac_clean_files_save
22743
22744test $ac_write_fail = 0 ||
22745  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22746
22747
22748# configure is writing to config.log, and then calls config.status.
22749# config.status does its own redirection, appending to config.log.
22750# Unfortunately, on DOS this fails, as config.log is still kept open
22751# by configure, so config.status won't be able to write to it; its
22752# output is simply discarded.  So we exec the FD to /dev/null,
22753# effectively closing config.log, so it can be properly (re)opened and
22754# appended to by config.status.  When coming back to configure, we
22755# need to make the FD available again.
22756if test "$no_create" != yes; then
22757  ac_cs_success=:
22758  ac_config_status_args=
22759  test "$silent" = yes &&
22760    ac_config_status_args="$ac_config_status_args --quiet"
22761  exec 5>/dev/null
22762  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22763  exec 5>>config.log
22764  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22765  # would make configure fail if this is the last instruction.
22766  $ac_cs_success || as_fn_exit 1
22767fi
22768if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22769  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22770printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22771fi
22772
22773
22774