configure revision 515ec619
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.71 for libXdmcp 1.1.4.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxdmcp/-/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/libxdmcp/-/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='libXdmcp'
684PACKAGE_TARNAME='libXdmcp'
685PACKAGE_VERSION='1.1.4'
686PACKAGE_STRING='libXdmcp 1.1.4'
687PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libxdmcp/-/issues'
688PACKAGE_URL=''
689
690ac_unique_file="Makefile.am"
691# Factoring default headers for most tests.
692ac_includes_default="\
693#include <stddef.h>
694#ifdef HAVE_STDIO_H
695# include <stdio.h>
696#endif
697#ifdef HAVE_STDLIB_H
698# include <stdlib.h>
699#endif
700#ifdef HAVE_STRING_H
701# include <string.h>
702#endif
703#ifdef HAVE_INTTYPES_H
704# include <inttypes.h>
705#endif
706#ifdef HAVE_STDINT_H
707# include <stdint.h>
708#endif
709#ifdef HAVE_STRINGS_H
710# include <strings.h>
711#endif
712#ifdef HAVE_SYS_TYPES_H
713# include <sys/types.h>
714#endif
715#ifdef HAVE_SYS_STAT_H
716# include <sys/stat.h>
717#endif
718#ifdef HAVE_UNISTD_H
719# include <unistd.h>
720#endif"
721
722ac_header_c_list=
723ac_subst_vars='am__EXEEXT_FALSE
724am__EXEEXT_TRUE
725LTLIBOBJS
726LIBOBJS
727ENABLE_UNIT_TESTS_FALSE
728ENABLE_UNIT_TESTS_TRUE
729XORG_MALLOC_DEBUG_ENV
730MAKE_LINT_LIB_FALSE
731MAKE_LINT_LIB_TRUE
732LINTLIB
733LINT_FALSE
734LINT_TRUE
735LINT_FLAGS
736LINT
737HASXDMAUTH_FALSE
738HASXDMAUTH_TRUE
739XDMCP_LIBS
740XDMCP_CFLAGS
741LIBBSD_LIBS
742LIBBSD_CFLAGS
743HAVE_STYLESHEETS_FALSE
744HAVE_STYLESHEETS_TRUE
745XSL_STYLESHEET
746STYLESHEET_SRCDIR
747XORG_SGML_PATH
748HAVE_XSLTPROC_FALSE
749HAVE_XSLTPROC_TRUE
750XSLTPROC
751HAVE_FOP_FALSE
752HAVE_FOP_TRUE
753FOP
754HAVE_XMLTO_FALSE
755HAVE_XMLTO_TRUE
756HAVE_XMLTO_TEXT_FALSE
757HAVE_XMLTO_TEXT_TRUE
758XMLTO
759ENABLE_DOCS_FALSE
760ENABLE_DOCS_TRUE
761MAN_SUBSTS
762XORG_MAN_PAGE
763ADMIN_MAN_DIR
764DRIVER_MAN_DIR
765MISC_MAN_DIR
766FILE_MAN_DIR
767LIB_MAN_DIR
768APP_MAN_DIR
769ADMIN_MAN_SUFFIX
770DRIVER_MAN_SUFFIX
771MISC_MAN_SUFFIX
772FILE_MAN_SUFFIX
773LIB_MAN_SUFFIX
774APP_MAN_SUFFIX
775INSTALL_CMD
776PKG_CONFIG_LIBDIR
777PKG_CONFIG_PATH
778PKG_CONFIG
779CHANGELOG_CMD
780STRICT_CFLAGS
781CWARNFLAGS
782BASE_CFLAGS
783LT_SYS_LIBRARY_PATH
784OTOOL64
785OTOOL
786LIPO
787NMEDIT
788DSYMUTIL
789MANIFEST_TOOL
790RANLIB
791ac_ct_AR
792AR
793FILECMD
794LN_S
795NM
796ac_ct_DUMPBIN
797DUMPBIN
798LD
799FGREP
800EGREP
801GREP
802SED
803LIBTOOL
804OBJDUMP
805DLLTOOL
806AS
807host_os
808host_vendor
809host_cpu
810host
811build_os
812build_vendor
813build_cpu
814build
815AM_BACKSLASH
816AM_DEFAULT_VERBOSITY
817AM_DEFAULT_V
818AM_V
819CSCOPE
820ETAGS
821CTAGS
822am__fastdepCC_FALSE
823am__fastdepCC_TRUE
824CCDEPMODE
825am__nodep
826AMDEPBACKSLASH
827AMDEP_FALSE
828AMDEP_TRUE
829am__include
830DEPDIR
831am__untar
832am__tar
833AMTAR
834am__leading_dot
835SET_MAKE
836AWK
837mkdir_p
838MKDIR_P
839INSTALL_STRIP_PROGRAM
840STRIP
841install_sh
842MAKEINFO
843AUTOHEADER
844AUTOMAKE
845AUTOCONF
846ACLOCAL
847VERSION
848PACKAGE
849CYGPATH_W
850am__isrc
851INSTALL_DATA
852INSTALL_SCRIPT
853INSTALL_PROGRAM
854OBJEXT
855EXEEXT
856ac_ct_CC
857CPPFLAGS
858LDFLAGS
859CFLAGS
860CC
861target_alias
862host_alias
863build_alias
864LIBS
865ECHO_T
866ECHO_N
867ECHO_C
868DEFS
869mandir
870localedir
871libdir
872psdir
873pdfdir
874dvidir
875htmldir
876infodir
877docdir
878oldincludedir
879includedir
880runstatedir
881localstatedir
882sharedstatedir
883sysconfdir
884datadir
885datarootdir
886libexecdir
887sbindir
888bindir
889program_transform_name
890prefix
891exec_prefix
892PACKAGE_URL
893PACKAGE_BUGREPORT
894PACKAGE_STRING
895PACKAGE_VERSION
896PACKAGE_TARNAME
897PACKAGE_NAME
898PATH_SEPARATOR
899SHELL
900am__quote'
901ac_subst_files=''
902ac_user_opts='
903enable_option_checking
904enable_dependency_tracking
905enable_silent_rules
906enable_shared
907enable_static
908with_pic
909enable_fast_install
910with_aix_soname
911with_gnu_ld
912with_sysroot
913enable_libtool_lock
914enable_selective_werror
915enable_strict_compilation
916enable_docs
917with_xmlto
918with_fop
919with_xsltproc
920with_lint
921enable_lint_library
922enable_unit_tests
923'
924      ac_precious_vars='build_alias
925host_alias
926target_alias
927CC
928CFLAGS
929LDFLAGS
930LIBS
931CPPFLAGS
932LT_SYS_LIBRARY_PATH
933PKG_CONFIG
934PKG_CONFIG_PATH
935PKG_CONFIG_LIBDIR
936XMLTO
937FOP
938XSLTPROC
939LIBBSD_CFLAGS
940LIBBSD_LIBS
941XDMCP_CFLAGS
942XDMCP_LIBS
943LINT
944LINT_FLAGS
945XORG_MALLOC_DEBUG_ENV'
946
947
948# Initialize some variables set by options.
949ac_init_help=
950ac_init_version=false
951ac_unrecognized_opts=
952ac_unrecognized_sep=
953# The variables have the same names as the options, with
954# dashes changed to underlines.
955cache_file=/dev/null
956exec_prefix=NONE
957no_create=
958no_recursion=
959prefix=NONE
960program_prefix=NONE
961program_suffix=NONE
962program_transform_name=s,x,x,
963silent=
964site=
965srcdir=
966verbose=
967x_includes=NONE
968x_libraries=NONE
969
970# Installation directory options.
971# These are left unexpanded so users can "make install exec_prefix=/foo"
972# and all the variables that are supposed to be based on exec_prefix
973# by default will actually change.
974# Use braces instead of parens because sh, perl, etc. also accept them.
975# (The list follows the same order as the GNU Coding Standards.)
976bindir='${exec_prefix}/bin'
977sbindir='${exec_prefix}/sbin'
978libexecdir='${exec_prefix}/libexec'
979datarootdir='${prefix}/share'
980datadir='${datarootdir}'
981sysconfdir='${prefix}/etc'
982sharedstatedir='${prefix}/com'
983localstatedir='${prefix}/var'
984runstatedir='${localstatedir}/run'
985includedir='${prefix}/include'
986oldincludedir='/usr/include'
987docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
988infodir='${datarootdir}/info'
989htmldir='${docdir}'
990dvidir='${docdir}'
991pdfdir='${docdir}'
992psdir='${docdir}'
993libdir='${exec_prefix}/lib'
994localedir='${datarootdir}/locale'
995mandir='${datarootdir}/man'
996
997ac_prev=
998ac_dashdash=
999for ac_option
1000do
1001  # If the previous option needs an argument, assign it.
1002  if test -n "$ac_prev"; then
1003    eval $ac_prev=\$ac_option
1004    ac_prev=
1005    continue
1006  fi
1007
1008  case $ac_option in
1009  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1010  *=)   ac_optarg= ;;
1011  *)    ac_optarg=yes ;;
1012  esac
1013
1014  case $ac_dashdash$ac_option in
1015  --)
1016    ac_dashdash=yes ;;
1017
1018  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1019    ac_prev=bindir ;;
1020  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1021    bindir=$ac_optarg ;;
1022
1023  -build | --build | --buil | --bui | --bu)
1024    ac_prev=build_alias ;;
1025  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1026    build_alias=$ac_optarg ;;
1027
1028  -cache-file | --cache-file | --cache-fil | --cache-fi \
1029  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1030    ac_prev=cache_file ;;
1031  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1032  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1033    cache_file=$ac_optarg ;;
1034
1035  --config-cache | -C)
1036    cache_file=config.cache ;;
1037
1038  -datadir | --datadir | --datadi | --datad)
1039    ac_prev=datadir ;;
1040  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1041    datadir=$ac_optarg ;;
1042
1043  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1044  | --dataroo | --dataro | --datar)
1045    ac_prev=datarootdir ;;
1046  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1047  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1048    datarootdir=$ac_optarg ;;
1049
1050  -disable-* | --disable-*)
1051    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1052    # Reject names that are not valid shell variable names.
1053    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1054      as_fn_error $? "invalid feature name: \`$ac_useropt'"
1055    ac_useropt_orig=$ac_useropt
1056    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1057    case $ac_user_opts in
1058      *"
1059"enable_$ac_useropt"
1060"*) ;;
1061      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1062	 ac_unrecognized_sep=', ';;
1063    esac
1064    eval enable_$ac_useropt=no ;;
1065
1066  -docdir | --docdir | --docdi | --doc | --do)
1067    ac_prev=docdir ;;
1068  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1069    docdir=$ac_optarg ;;
1070
1071  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1072    ac_prev=dvidir ;;
1073  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1074    dvidir=$ac_optarg ;;
1075
1076  -enable-* | --enable-*)
1077    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1078    # Reject names that are not valid shell variable names.
1079    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1080      as_fn_error $? "invalid feature name: \`$ac_useropt'"
1081    ac_useropt_orig=$ac_useropt
1082    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1083    case $ac_user_opts in
1084      *"
1085"enable_$ac_useropt"
1086"*) ;;
1087      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1088	 ac_unrecognized_sep=', ';;
1089    esac
1090    eval enable_$ac_useropt=\$ac_optarg ;;
1091
1092  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1093  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1094  | --exec | --exe | --ex)
1095    ac_prev=exec_prefix ;;
1096  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1097  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1098  | --exec=* | --exe=* | --ex=*)
1099    exec_prefix=$ac_optarg ;;
1100
1101  -gas | --gas | --ga | --g)
1102    # Obsolete; use --with-gas.
1103    with_gas=yes ;;
1104
1105  -help | --help | --hel | --he | -h)
1106    ac_init_help=long ;;
1107  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1108    ac_init_help=recursive ;;
1109  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1110    ac_init_help=short ;;
1111
1112  -host | --host | --hos | --ho)
1113    ac_prev=host_alias ;;
1114  -host=* | --host=* | --hos=* | --ho=*)
1115    host_alias=$ac_optarg ;;
1116
1117  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1118    ac_prev=htmldir ;;
1119  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1120  | --ht=*)
1121    htmldir=$ac_optarg ;;
1122
1123  -includedir | --includedir | --includedi | --included | --include \
1124  | --includ | --inclu | --incl | --inc)
1125    ac_prev=includedir ;;
1126  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1127  | --includ=* | --inclu=* | --incl=* | --inc=*)
1128    includedir=$ac_optarg ;;
1129
1130  -infodir | --infodir | --infodi | --infod | --info | --inf)
1131    ac_prev=infodir ;;
1132  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1133    infodir=$ac_optarg ;;
1134
1135  -libdir | --libdir | --libdi | --libd)
1136    ac_prev=libdir ;;
1137  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1138    libdir=$ac_optarg ;;
1139
1140  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1141  | --libexe | --libex | --libe)
1142    ac_prev=libexecdir ;;
1143  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1144  | --libexe=* | --libex=* | --libe=*)
1145    libexecdir=$ac_optarg ;;
1146
1147  -localedir | --localedir | --localedi | --localed | --locale)
1148    ac_prev=localedir ;;
1149  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1150    localedir=$ac_optarg ;;
1151
1152  -localstatedir | --localstatedir | --localstatedi | --localstated \
1153  | --localstate | --localstat | --localsta | --localst | --locals)
1154    ac_prev=localstatedir ;;
1155  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1156  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1157    localstatedir=$ac_optarg ;;
1158
1159  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1160    ac_prev=mandir ;;
1161  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1162    mandir=$ac_optarg ;;
1163
1164  -nfp | --nfp | --nf)
1165    # Obsolete; use --without-fp.
1166    with_fp=no ;;
1167
1168  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1169  | --no-cr | --no-c | -n)
1170    no_create=yes ;;
1171
1172  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1173  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1174    no_recursion=yes ;;
1175
1176  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1177  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1178  | --oldin | --oldi | --old | --ol | --o)
1179    ac_prev=oldincludedir ;;
1180  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1181  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1182  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1183    oldincludedir=$ac_optarg ;;
1184
1185  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1186    ac_prev=prefix ;;
1187  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1188    prefix=$ac_optarg ;;
1189
1190  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1191  | --program-pre | --program-pr | --program-p)
1192    ac_prev=program_prefix ;;
1193  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1194  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1195    program_prefix=$ac_optarg ;;
1196
1197  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1198  | --program-suf | --program-su | --program-s)
1199    ac_prev=program_suffix ;;
1200  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1201  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1202    program_suffix=$ac_optarg ;;
1203
1204  -program-transform-name | --program-transform-name \
1205  | --program-transform-nam | --program-transform-na \
1206  | --program-transform-n | --program-transform- \
1207  | --program-transform | --program-transfor \
1208  | --program-transfo | --program-transf \
1209  | --program-trans | --program-tran \
1210  | --progr-tra | --program-tr | --program-t)
1211    ac_prev=program_transform_name ;;
1212  -program-transform-name=* | --program-transform-name=* \
1213  | --program-transform-nam=* | --program-transform-na=* \
1214  | --program-transform-n=* | --program-transform-=* \
1215  | --program-transform=* | --program-transfor=* \
1216  | --program-transfo=* | --program-transf=* \
1217  | --program-trans=* | --program-tran=* \
1218  | --progr-tra=* | --program-tr=* | --program-t=*)
1219    program_transform_name=$ac_optarg ;;
1220
1221  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1222    ac_prev=pdfdir ;;
1223  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1224    pdfdir=$ac_optarg ;;
1225
1226  -psdir | --psdir | --psdi | --psd | --ps)
1227    ac_prev=psdir ;;
1228  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1229    psdir=$ac_optarg ;;
1230
1231  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1232  | -silent | --silent | --silen | --sile | --sil)
1233    silent=yes ;;
1234
1235  -runstatedir | --runstatedir | --runstatedi | --runstated \
1236  | --runstate | --runstat | --runsta | --runst | --runs \
1237  | --run | --ru | --r)
1238    ac_prev=runstatedir ;;
1239  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1240  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1241  | --run=* | --ru=* | --r=*)
1242    runstatedir=$ac_optarg ;;
1243
1244  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1245    ac_prev=sbindir ;;
1246  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1247  | --sbi=* | --sb=*)
1248    sbindir=$ac_optarg ;;
1249
1250  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1251  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1252  | --sharedst | --shareds | --shared | --share | --shar \
1253  | --sha | --sh)
1254    ac_prev=sharedstatedir ;;
1255  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1256  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1257  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1258  | --sha=* | --sh=*)
1259    sharedstatedir=$ac_optarg ;;
1260
1261  -site | --site | --sit)
1262    ac_prev=site ;;
1263  -site=* | --site=* | --sit=*)
1264    site=$ac_optarg ;;
1265
1266  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1267    ac_prev=srcdir ;;
1268  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1269    srcdir=$ac_optarg ;;
1270
1271  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1272  | --syscon | --sysco | --sysc | --sys | --sy)
1273    ac_prev=sysconfdir ;;
1274  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1275  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1276    sysconfdir=$ac_optarg ;;
1277
1278  -target | --target | --targe | --targ | --tar | --ta | --t)
1279    ac_prev=target_alias ;;
1280  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1281    target_alias=$ac_optarg ;;
1282
1283  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1284    verbose=yes ;;
1285
1286  -version | --version | --versio | --versi | --vers | -V)
1287    ac_init_version=: ;;
1288
1289  -with-* | --with-*)
1290    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1291    # Reject names that are not valid shell variable names.
1292    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1293      as_fn_error $? "invalid package name: \`$ac_useropt'"
1294    ac_useropt_orig=$ac_useropt
1295    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1296    case $ac_user_opts in
1297      *"
1298"with_$ac_useropt"
1299"*) ;;
1300      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1301	 ac_unrecognized_sep=', ';;
1302    esac
1303    eval with_$ac_useropt=\$ac_optarg ;;
1304
1305  -without-* | --without-*)
1306    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1307    # Reject names that are not valid shell variable names.
1308    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1309      as_fn_error $? "invalid package name: \`$ac_useropt'"
1310    ac_useropt_orig=$ac_useropt
1311    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1312    case $ac_user_opts in
1313      *"
1314"with_$ac_useropt"
1315"*) ;;
1316      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1317	 ac_unrecognized_sep=', ';;
1318    esac
1319    eval with_$ac_useropt=no ;;
1320
1321  --x)
1322    # Obsolete; use --with-x.
1323    with_x=yes ;;
1324
1325  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1326  | --x-incl | --x-inc | --x-in | --x-i)
1327    ac_prev=x_includes ;;
1328  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1329  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1330    x_includes=$ac_optarg ;;
1331
1332  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1333  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1334    ac_prev=x_libraries ;;
1335  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1336  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1337    x_libraries=$ac_optarg ;;
1338
1339  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1340Try \`$0 --help' for more information"
1341    ;;
1342
1343  *=*)
1344    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1345    # Reject names that are not valid shell variable names.
1346    case $ac_envvar in #(
1347      '' | [0-9]* | *[!_$as_cr_alnum]* )
1348      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1349    esac
1350    eval $ac_envvar=\$ac_optarg
1351    export $ac_envvar ;;
1352
1353  *)
1354    # FIXME: should be removed in autoconf 3.0.
1355    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1356    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1357      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1358    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1359    ;;
1360
1361  esac
1362done
1363
1364if test -n "$ac_prev"; then
1365  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1366  as_fn_error $? "missing argument to $ac_option"
1367fi
1368
1369if test -n "$ac_unrecognized_opts"; then
1370  case $enable_option_checking in
1371    no) ;;
1372    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1373    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1374  esac
1375fi
1376
1377# Check all directory arguments for consistency.
1378for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1379		datadir sysconfdir sharedstatedir localstatedir includedir \
1380		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1381		libdir localedir mandir runstatedir
1382do
1383  eval ac_val=\$$ac_var
1384  # Remove trailing slashes.
1385  case $ac_val in
1386    */ )
1387      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1388      eval $ac_var=\$ac_val;;
1389  esac
1390  # Be sure to have absolute directory names.
1391  case $ac_val in
1392    [\\/$]* | ?:[\\/]* )  continue;;
1393    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1394  esac
1395  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1396done
1397
1398# There might be people who depend on the old broken behavior: `$host'
1399# used to hold the argument of --host etc.
1400# FIXME: To remove some day.
1401build=$build_alias
1402host=$host_alias
1403target=$target_alias
1404
1405# FIXME: To remove some day.
1406if test "x$host_alias" != x; then
1407  if test "x$build_alias" = x; then
1408    cross_compiling=maybe
1409  elif test "x$build_alias" != "x$host_alias"; then
1410    cross_compiling=yes
1411  fi
1412fi
1413
1414ac_tool_prefix=
1415test -n "$host_alias" && ac_tool_prefix=$host_alias-
1416
1417test "$silent" = yes && exec 6>/dev/null
1418
1419
1420ac_pwd=`pwd` && test -n "$ac_pwd" &&
1421ac_ls_di=`ls -di .` &&
1422ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1423  as_fn_error $? "working directory cannot be determined"
1424test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1425  as_fn_error $? "pwd does not report name of working directory"
1426
1427
1428# Find the source files, if location was not specified.
1429if test -z "$srcdir"; then
1430  ac_srcdir_defaulted=yes
1431  # Try the directory containing this script, then the parent directory.
1432  ac_confdir=`$as_dirname -- "$as_myself" ||
1433$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1434	 X"$as_myself" : 'X\(//\)[^/]' \| \
1435	 X"$as_myself" : 'X\(//\)$' \| \
1436	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1437printf "%s\n" X"$as_myself" |
1438    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1439	    s//\1/
1440	    q
1441	  }
1442	  /^X\(\/\/\)[^/].*/{
1443	    s//\1/
1444	    q
1445	  }
1446	  /^X\(\/\/\)$/{
1447	    s//\1/
1448	    q
1449	  }
1450	  /^X\(\/\).*/{
1451	    s//\1/
1452	    q
1453	  }
1454	  s/.*/./; q'`
1455  srcdir=$ac_confdir
1456  if test ! -r "$srcdir/$ac_unique_file"; then
1457    srcdir=..
1458  fi
1459else
1460  ac_srcdir_defaulted=no
1461fi
1462if test ! -r "$srcdir/$ac_unique_file"; then
1463  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1464  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1465fi
1466ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1467ac_abs_confdir=`(
1468	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1469	pwd)`
1470# When building in place, set srcdir=.
1471if test "$ac_abs_confdir" = "$ac_pwd"; then
1472  srcdir=.
1473fi
1474# Remove unnecessary trailing slashes from srcdir.
1475# Double slashes in file names in object file debugging info
1476# mess up M-x gdb in Emacs.
1477case $srcdir in
1478*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1479esac
1480for ac_var in $ac_precious_vars; do
1481  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1482  eval ac_env_${ac_var}_value=\$${ac_var}
1483  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1484  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1485done
1486
1487#
1488# Report the --help message.
1489#
1490if test "$ac_init_help" = "long"; then
1491  # Omit some internal or obsolete options to make the list less imposing.
1492  # This message is too long to be a string in the A/UX 3.1 sh.
1493  cat <<_ACEOF
1494\`configure' configures libXdmcp 1.1.4 to adapt to many kinds of systems.
1495
1496Usage: $0 [OPTION]... [VAR=VALUE]...
1497
1498To assign environment variables (e.g., CC, CFLAGS...), specify them as
1499VAR=VALUE.  See below for descriptions of some of the useful variables.
1500
1501Defaults for the options are specified in brackets.
1502
1503Configuration:
1504  -h, --help              display this help and exit
1505      --help=short        display options specific to this package
1506      --help=recursive    display the short help of all the included packages
1507  -V, --version           display version information and exit
1508  -q, --quiet, --silent   do not print \`checking ...' messages
1509      --cache-file=FILE   cache test results in FILE [disabled]
1510  -C, --config-cache      alias for \`--cache-file=config.cache'
1511  -n, --no-create         do not create output files
1512      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1513
1514Installation directories:
1515  --prefix=PREFIX         install architecture-independent files in PREFIX
1516                          [$ac_default_prefix]
1517  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1518                          [PREFIX]
1519
1520By default, \`make install' will install all the files in
1521\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1522an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1523for instance \`--prefix=\$HOME'.
1524
1525For better control, use the options below.
1526
1527Fine tuning of the installation directories:
1528  --bindir=DIR            user executables [EPREFIX/bin]
1529  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1530  --libexecdir=DIR        program executables [EPREFIX/libexec]
1531  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1532  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1533  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1534  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1535  --libdir=DIR            object code libraries [EPREFIX/lib]
1536  --includedir=DIR        C header files [PREFIX/include]
1537  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1538  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1539  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1540  --infodir=DIR           info documentation [DATAROOTDIR/info]
1541  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1542  --mandir=DIR            man documentation [DATAROOTDIR/man]
1543  --docdir=DIR            documentation root [DATAROOTDIR/doc/libXdmcp]
1544  --htmldir=DIR           html documentation [DOCDIR]
1545  --dvidir=DIR            dvi documentation [DOCDIR]
1546  --pdfdir=DIR            pdf documentation [DOCDIR]
1547  --psdir=DIR             ps documentation [DOCDIR]
1548_ACEOF
1549
1550  cat <<\_ACEOF
1551
1552Program names:
1553  --program-prefix=PREFIX            prepend PREFIX to installed program names
1554  --program-suffix=SUFFIX            append SUFFIX to installed program names
1555  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1556
1557System types:
1558  --build=BUILD     configure for building on BUILD [guessed]
1559  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1560_ACEOF
1561fi
1562
1563if test -n "$ac_init_help"; then
1564  case $ac_init_help in
1565     short | recursive ) echo "Configuration of libXdmcp 1.1.4:";;
1566   esac
1567  cat <<\_ACEOF
1568
1569Optional Features:
1570  --disable-option-checking  ignore unrecognized --enable/--with options
1571  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1572  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1573  --enable-dependency-tracking
1574                          do not reject slow dependency extractors
1575  --disable-dependency-tracking
1576                          speeds up one-time build
1577  --enable-silent-rules   less verbose build output (undo: "make V=1")
1578  --disable-silent-rules  verbose build output (undo: "make V=0")
1579  --enable-shared[=PKGS]  build shared libraries [default=yes]
1580  --enable-static[=PKGS]  build static libraries [default=yes]
1581  --enable-fast-install[=PKGS]
1582                          optimize for fast installation [default=yes]
1583  --disable-libtool-lock  avoid locking (might break parallel builds)
1584  --disable-selective-werror
1585                          Turn off selective compiler errors. (default:
1586                          enabled)
1587  --enable-strict-compilation
1588                          Enable all warnings from compiler and make them
1589                          errors (default: disabled)
1590  --enable-docs           Enable building the documentation (default: yes)
1591  --enable-lint-library   Create lint library (default: disabled)
1592  --enable-unit-tests     Enable building unit test cases (default: yes)
1593
1594Optional Packages:
1595  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1596  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1597  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1598                          both]
1599  --with-aix-soname=aix|svr4|both
1600                          shared library versioning (aka "SONAME") variant to
1601                          provide on AIX, [default=aix].
1602  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1603  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1604                          compiler's sysroot if not specified).
1605  --with-xmlto            Use xmlto to regenerate documentation (default:
1606                          auto)
1607  --with-fop              Use fop to regenerate documentation (default: auto)
1608  --with-xsltproc         Use xsltproc for the transformation of XML documents
1609                          (default: auto)
1610  --with-lint             Use a lint-style source code checker (default:
1611                          disabled)
1612
1613Some influential environment variables:
1614  CC          C compiler command
1615  CFLAGS      C compiler flags
1616  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1617              nonstandard directory <lib dir>
1618  LIBS        libraries to pass to the linker, e.g. -l<library>
1619  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1620              you have headers in a nonstandard directory <include dir>
1621  LT_SYS_LIBRARY_PATH
1622              User-defined run-time library search path.
1623  PKG_CONFIG  path to pkg-config utility
1624  PKG_CONFIG_PATH
1625              directories to add to pkg-config's search path
1626  PKG_CONFIG_LIBDIR
1627              path overriding pkg-config's built-in search path
1628  XMLTO       Path to xmlto command
1629  FOP         Path to fop command
1630  XSLTPROC    Path to xsltproc command
1631  LIBBSD_CFLAGS
1632              C compiler flags for LIBBSD, overriding pkg-config
1633  LIBBSD_LIBS linker flags for LIBBSD, overriding pkg-config
1634  XDMCP_CFLAGS
1635              C compiler flags for XDMCP, overriding pkg-config
1636  XDMCP_LIBS  linker flags for XDMCP, overriding pkg-config
1637  LINT        Path to a lint-style command
1638  LINT_FLAGS  Flags for the lint-style command
1639  XORG_MALLOC_DEBUG_ENV
1640              Environment variables to enable memory checking in tests
1641
1642Use these variables to override the choices made by `configure' or to help
1643it to find libraries and programs with nonstandard names/locations.
1644
1645Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxdmcp/-/issues>.
1646_ACEOF
1647ac_status=$?
1648fi
1649
1650if test "$ac_init_help" = "recursive"; then
1651  # If there are subdirs, report their specific --help.
1652  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1653    test -d "$ac_dir" ||
1654      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1655      continue
1656    ac_builddir=.
1657
1658case "$ac_dir" in
1659.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1660*)
1661  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1662  # A ".." for each directory in $ac_dir_suffix.
1663  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1664  case $ac_top_builddir_sub in
1665  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1666  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1667  esac ;;
1668esac
1669ac_abs_top_builddir=$ac_pwd
1670ac_abs_builddir=$ac_pwd$ac_dir_suffix
1671# for backward compatibility:
1672ac_top_builddir=$ac_top_build_prefix
1673
1674case $srcdir in
1675  .)  # We are building in place.
1676    ac_srcdir=.
1677    ac_top_srcdir=$ac_top_builddir_sub
1678    ac_abs_top_srcdir=$ac_pwd ;;
1679  [\\/]* | ?:[\\/]* )  # Absolute name.
1680    ac_srcdir=$srcdir$ac_dir_suffix;
1681    ac_top_srcdir=$srcdir
1682    ac_abs_top_srcdir=$srcdir ;;
1683  *) # Relative name.
1684    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1685    ac_top_srcdir=$ac_top_build_prefix$srcdir
1686    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1687esac
1688ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1689
1690    cd "$ac_dir" || { ac_status=$?; continue; }
1691    # Check for configure.gnu first; this name is used for a wrapper for
1692    # Metaconfig's "Configure" on case-insensitive file systems.
1693    if test -f "$ac_srcdir/configure.gnu"; then
1694      echo &&
1695      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1696    elif test -f "$ac_srcdir/configure"; then
1697      echo &&
1698      $SHELL "$ac_srcdir/configure" --help=recursive
1699    else
1700      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1701    fi || ac_status=$?
1702    cd "$ac_pwd" || { ac_status=$?; break; }
1703  done
1704fi
1705
1706test -n "$ac_init_help" && exit $ac_status
1707if $ac_init_version; then
1708  cat <<\_ACEOF
1709libXdmcp configure 1.1.4
1710generated by GNU Autoconf 2.71
1711
1712Copyright (C) 2021 Free Software Foundation, Inc.
1713This configure script is free software; the Free Software Foundation
1714gives unlimited permission to copy, distribute and modify it.
1715_ACEOF
1716  exit
1717fi
1718
1719## ------------------------ ##
1720## Autoconf initialization. ##
1721## ------------------------ ##
1722
1723# ac_fn_c_try_compile LINENO
1724# --------------------------
1725# Try to compile conftest.$ac_ext, and return whether this succeeded.
1726ac_fn_c_try_compile ()
1727{
1728  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1729  rm -f conftest.$ac_objext conftest.beam
1730  if { { ac_try="$ac_compile"
1731case "(($ac_try" in
1732  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1733  *) ac_try_echo=$ac_try;;
1734esac
1735eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1736printf "%s\n" "$ac_try_echo"; } >&5
1737  (eval "$ac_compile") 2>conftest.err
1738  ac_status=$?
1739  if test -s conftest.err; then
1740    grep -v '^ *+' conftest.err >conftest.er1
1741    cat conftest.er1 >&5
1742    mv -f conftest.er1 conftest.err
1743  fi
1744  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1745  test $ac_status = 0; } && {
1746	 test -z "$ac_c_werror_flag" ||
1747	 test ! -s conftest.err
1748       } && test -s conftest.$ac_objext
1749then :
1750  ac_retval=0
1751else $as_nop
1752  printf "%s\n" "$as_me: failed program was:" >&5
1753sed 's/^/| /' conftest.$ac_ext >&5
1754
1755	ac_retval=1
1756fi
1757  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1758  as_fn_set_status $ac_retval
1759
1760} # ac_fn_c_try_compile
1761
1762# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1763# -------------------------------------------------------
1764# Tests whether HEADER exists and can be compiled using the include files in
1765# INCLUDES, setting the cache variable VAR accordingly.
1766ac_fn_c_check_header_compile ()
1767{
1768  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1770printf %s "checking for $2... " >&6; }
1771if eval test \${$3+y}
1772then :
1773  printf %s "(cached) " >&6
1774else $as_nop
1775  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1776/* end confdefs.h.  */
1777$4
1778#include <$2>
1779_ACEOF
1780if ac_fn_c_try_compile "$LINENO"
1781then :
1782  eval "$3=yes"
1783else $as_nop
1784  eval "$3=no"
1785fi
1786rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1787fi
1788eval ac_res=\$$3
1789	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1790printf "%s\n" "$ac_res" >&6; }
1791  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1792
1793} # ac_fn_c_check_header_compile
1794
1795# ac_fn_c_try_link LINENO
1796# -----------------------
1797# Try to link conftest.$ac_ext, and return whether this succeeded.
1798ac_fn_c_try_link ()
1799{
1800  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1801  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1802  if { { ac_try="$ac_link"
1803case "(($ac_try" in
1804  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1805  *) ac_try_echo=$ac_try;;
1806esac
1807eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1808printf "%s\n" "$ac_try_echo"; } >&5
1809  (eval "$ac_link") 2>conftest.err
1810  ac_status=$?
1811  if test -s conftest.err; then
1812    grep -v '^ *+' conftest.err >conftest.er1
1813    cat conftest.er1 >&5
1814    mv -f conftest.er1 conftest.err
1815  fi
1816  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1817  test $ac_status = 0; } && {
1818	 test -z "$ac_c_werror_flag" ||
1819	 test ! -s conftest.err
1820       } && test -s conftest$ac_exeext && {
1821	 test "$cross_compiling" = yes ||
1822	 test -x conftest$ac_exeext
1823       }
1824then :
1825  ac_retval=0
1826else $as_nop
1827  printf "%s\n" "$as_me: failed program was:" >&5
1828sed 's/^/| /' conftest.$ac_ext >&5
1829
1830	ac_retval=1
1831fi
1832  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1833  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1834  # interfere with the next link command; also delete a directory that is
1835  # left behind by Apple's compiler.  We do this before executing the actions.
1836  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1837  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1838  as_fn_set_status $ac_retval
1839
1840} # ac_fn_c_try_link
1841
1842# ac_fn_c_check_func LINENO FUNC VAR
1843# ----------------------------------
1844# Tests whether FUNC exists, setting the cache variable VAR accordingly
1845ac_fn_c_check_func ()
1846{
1847  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1848  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1849printf %s "checking for $2... " >&6; }
1850if eval test \${$3+y}
1851then :
1852  printf %s "(cached) " >&6
1853else $as_nop
1854  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1855/* end confdefs.h.  */
1856/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1857   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1858#define $2 innocuous_$2
1859
1860/* System header to define __stub macros and hopefully few prototypes,
1861   which can conflict with char $2 (); below.  */
1862
1863#include <limits.h>
1864#undef $2
1865
1866/* Override any GCC internal prototype to avoid an error.
1867   Use char because int might match the return type of a GCC
1868   builtin and then its argument prototype would still apply.  */
1869#ifdef __cplusplus
1870extern "C"
1871#endif
1872char $2 ();
1873/* The GNU C library defines this for functions which it implements
1874    to always fail with ENOSYS.  Some functions are actually named
1875    something starting with __ and the normal name is an alias.  */
1876#if defined __stub_$2 || defined __stub___$2
1877choke me
1878#endif
1879
1880int
1881main (void)
1882{
1883return $2 ();
1884  ;
1885  return 0;
1886}
1887_ACEOF
1888if ac_fn_c_try_link "$LINENO"
1889then :
1890  eval "$3=yes"
1891else $as_nop
1892  eval "$3=no"
1893fi
1894rm -f core conftest.err conftest.$ac_objext conftest.beam \
1895    conftest$ac_exeext conftest.$ac_ext
1896fi
1897eval ac_res=\$$3
1898	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1899printf "%s\n" "$ac_res" >&6; }
1900  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1901
1902} # ac_fn_c_check_func
1903
1904# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1905# ------------------------------------------------------------------
1906# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1907# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1908ac_fn_check_decl ()
1909{
1910  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1911  as_decl_name=`echo $2|sed 's/ *(.*//'`
1912  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1913printf %s "checking whether $as_decl_name is declared... " >&6; }
1914if eval test \${$3+y}
1915then :
1916  printf %s "(cached) " >&6
1917else $as_nop
1918  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1919  eval ac_save_FLAGS=\$$6
1920  as_fn_append $6 " $5"
1921  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1922/* end confdefs.h.  */
1923$4
1924int
1925main (void)
1926{
1927#ifndef $as_decl_name
1928#ifdef __cplusplus
1929  (void) $as_decl_use;
1930#else
1931  (void) $as_decl_name;
1932#endif
1933#endif
1934
1935  ;
1936  return 0;
1937}
1938_ACEOF
1939if ac_fn_c_try_compile "$LINENO"
1940then :
1941  eval "$3=yes"
1942else $as_nop
1943  eval "$3=no"
1944fi
1945rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1946  eval $6=\$ac_save_FLAGS
1947
1948fi
1949eval ac_res=\$$3
1950	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1951printf "%s\n" "$ac_res" >&6; }
1952  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1953
1954} # ac_fn_check_decl
1955ac_configure_args_raw=
1956for ac_arg
1957do
1958  case $ac_arg in
1959  *\'*)
1960    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1961  esac
1962  as_fn_append ac_configure_args_raw " '$ac_arg'"
1963done
1964
1965case $ac_configure_args_raw in
1966  *$as_nl*)
1967    ac_safe_unquote= ;;
1968  *)
1969    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
1970    ac_unsafe_a="$ac_unsafe_z#~"
1971    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1972    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1973esac
1974
1975cat >config.log <<_ACEOF
1976This file contains any messages produced by compilers while
1977running configure, to aid debugging if configure makes a mistake.
1978
1979It was created by libXdmcp $as_me 1.1.4, which was
1980generated by GNU Autoconf 2.71.  Invocation command line was
1981
1982  $ $0$ac_configure_args_raw
1983
1984_ACEOF
1985exec 5>>config.log
1986{
1987cat <<_ASUNAME
1988## --------- ##
1989## Platform. ##
1990## --------- ##
1991
1992hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1993uname -m = `(uname -m) 2>/dev/null || echo unknown`
1994uname -r = `(uname -r) 2>/dev/null || echo unknown`
1995uname -s = `(uname -s) 2>/dev/null || echo unknown`
1996uname -v = `(uname -v) 2>/dev/null || echo unknown`
1997
1998/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1999/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2000
2001/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2002/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2003/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2004/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2005/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2006/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2007/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2008
2009_ASUNAME
2010
2011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2012for as_dir in $PATH
2013do
2014  IFS=$as_save_IFS
2015  case $as_dir in #(((
2016    '') as_dir=./ ;;
2017    */) ;;
2018    *) as_dir=$as_dir/ ;;
2019  esac
2020    printf "%s\n" "PATH: $as_dir"
2021  done
2022IFS=$as_save_IFS
2023
2024} >&5
2025
2026cat >&5 <<_ACEOF
2027
2028
2029## ----------- ##
2030## Core tests. ##
2031## ----------- ##
2032
2033_ACEOF
2034
2035
2036# Keep a trace of the command line.
2037# Strip out --no-create and --no-recursion so they do not pile up.
2038# Strip out --silent because we don't want to record it for future runs.
2039# Also quote any args containing shell meta-characters.
2040# Make two passes to allow for proper duplicate-argument suppression.
2041ac_configure_args=
2042ac_configure_args0=
2043ac_configure_args1=
2044ac_must_keep_next=false
2045for ac_pass in 1 2
2046do
2047  for ac_arg
2048  do
2049    case $ac_arg in
2050    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2051    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2052    | -silent | --silent | --silen | --sile | --sil)
2053      continue ;;
2054    *\'*)
2055      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2056    esac
2057    case $ac_pass in
2058    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2059    2)
2060      as_fn_append ac_configure_args1 " '$ac_arg'"
2061      if test $ac_must_keep_next = true; then
2062	ac_must_keep_next=false # Got value, back to normal.
2063      else
2064	case $ac_arg in
2065	  *=* | --config-cache | -C | -disable-* | --disable-* \
2066	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2067	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2068	  | -with-* | --with-* | -without-* | --without-* | --x)
2069	    case "$ac_configure_args0 " in
2070	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2071	    esac
2072	    ;;
2073	  -* ) ac_must_keep_next=true ;;
2074	esac
2075      fi
2076      as_fn_append ac_configure_args " '$ac_arg'"
2077      ;;
2078    esac
2079  done
2080done
2081{ ac_configure_args0=; unset ac_configure_args0;}
2082{ ac_configure_args1=; unset ac_configure_args1;}
2083
2084# When interrupted or exit'd, cleanup temporary files, and complete
2085# config.log.  We remove comments because anyway the quotes in there
2086# would cause problems or look ugly.
2087# WARNING: Use '\'' to represent an apostrophe within the trap.
2088# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2089trap 'exit_status=$?
2090  # Sanitize IFS.
2091  IFS=" ""	$as_nl"
2092  # Save into config.log some information that might help in debugging.
2093  {
2094    echo
2095
2096    printf "%s\n" "## ---------------- ##
2097## Cache variables. ##
2098## ---------------- ##"
2099    echo
2100    # The following way of writing the cache mishandles newlines in values,
2101(
2102  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2103    eval ac_val=\$$ac_var
2104    case $ac_val in #(
2105    *${as_nl}*)
2106      case $ac_var in #(
2107      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2108printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2109      esac
2110      case $ac_var in #(
2111      _ | IFS | as_nl) ;; #(
2112      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2113      *) { eval $ac_var=; unset $ac_var;} ;;
2114      esac ;;
2115    esac
2116  done
2117  (set) 2>&1 |
2118    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2119    *${as_nl}ac_space=\ *)
2120      sed -n \
2121	"s/'\''/'\''\\\\'\'''\''/g;
2122	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2123      ;; #(
2124    *)
2125      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2126      ;;
2127    esac |
2128    sort
2129)
2130    echo
2131
2132    printf "%s\n" "## ----------------- ##
2133## Output variables. ##
2134## ----------------- ##"
2135    echo
2136    for ac_var in $ac_subst_vars
2137    do
2138      eval ac_val=\$$ac_var
2139      case $ac_val in
2140      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2141      esac
2142      printf "%s\n" "$ac_var='\''$ac_val'\''"
2143    done | sort
2144    echo
2145
2146    if test -n "$ac_subst_files"; then
2147      printf "%s\n" "## ------------------- ##
2148## File substitutions. ##
2149## ------------------- ##"
2150      echo
2151      for ac_var in $ac_subst_files
2152      do
2153	eval ac_val=\$$ac_var
2154	case $ac_val in
2155	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2156	esac
2157	printf "%s\n" "$ac_var='\''$ac_val'\''"
2158      done | sort
2159      echo
2160    fi
2161
2162    if test -s confdefs.h; then
2163      printf "%s\n" "## ----------- ##
2164## confdefs.h. ##
2165## ----------- ##"
2166      echo
2167      cat confdefs.h
2168      echo
2169    fi
2170    test "$ac_signal" != 0 &&
2171      printf "%s\n" "$as_me: caught signal $ac_signal"
2172    printf "%s\n" "$as_me: exit $exit_status"
2173  } >&5
2174  rm -f core *.core core.conftest.* &&
2175    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2176    exit $exit_status
2177' 0
2178for ac_signal in 1 2 13 15; do
2179  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2180done
2181ac_signal=0
2182
2183# confdefs.h avoids OS command line length limits that DEFS can exceed.
2184rm -f -r conftest* confdefs.h
2185
2186printf "%s\n" "/* confdefs.h */" > confdefs.h
2187
2188# Predefined preprocessor variables.
2189
2190printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2191
2192printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2193
2194printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2195
2196printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2197
2198printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2199
2200printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2201
2202
2203# Let the site file select an alternate cache file if it wants to.
2204# Prefer an explicitly selected file to automatically selected ones.
2205if test -n "$CONFIG_SITE"; then
2206  ac_site_files="$CONFIG_SITE"
2207elif test "x$prefix" != xNONE; then
2208  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2209else
2210  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2211fi
2212
2213for ac_site_file in $ac_site_files
2214do
2215  case $ac_site_file in #(
2216  */*) :
2217     ;; #(
2218  *) :
2219    ac_site_file=./$ac_site_file ;;
2220esac
2221  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2222    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2223printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2224    sed 's/^/| /' "$ac_site_file" >&5
2225    . "$ac_site_file" \
2226      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2227printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2228as_fn_error $? "failed to load site script $ac_site_file
2229See \`config.log' for more details" "$LINENO" 5; }
2230  fi
2231done
2232
2233if test -r "$cache_file"; then
2234  # Some versions of bash will fail to source /dev/null (special files
2235  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2236  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2237    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2238printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2239    case $cache_file in
2240      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2241      *)                      . "./$cache_file";;
2242    esac
2243  fi
2244else
2245  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2246printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2247  >$cache_file
2248fi
2249
2250as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2251# Test code for whether the C compiler supports C89 (global declarations)
2252ac_c_conftest_c89_globals='
2253/* Does the compiler advertise C89 conformance?
2254   Do not test the value of __STDC__, because some compilers set it to 0
2255   while being otherwise adequately conformant. */
2256#if !defined __STDC__
2257# error "Compiler does not advertise C89 conformance"
2258#endif
2259
2260#include <stddef.h>
2261#include <stdarg.h>
2262struct stat;
2263/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2264struct buf { int x; };
2265struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2266static char *e (p, i)
2267     char **p;
2268     int i;
2269{
2270  return p[i];
2271}
2272static char *f (char * (*g) (char **, int), char **p, ...)
2273{
2274  char *s;
2275  va_list v;
2276  va_start (v,p);
2277  s = g (p, va_arg (v,int));
2278  va_end (v);
2279  return s;
2280}
2281
2282/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2283   function prototypes and stuff, but not \xHH hex character constants.
2284   These do not provoke an error unfortunately, instead are silently treated
2285   as an "x".  The following induces an error, until -std is added to get
2286   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2287   array size at least.  It is necessary to write \x00 == 0 to get something
2288   that is true only with -std.  */
2289int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2290
2291/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2292   inside strings and character constants.  */
2293#define FOO(x) '\''x'\''
2294int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2295
2296int test (int i, double x);
2297struct s1 {int (*f) (int a);};
2298struct s2 {int (*f) (double a);};
2299int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2300               int, int);'
2301
2302# Test code for whether the C compiler supports C89 (body of main).
2303ac_c_conftest_c89_main='
2304ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2305'
2306
2307# Test code for whether the C compiler supports C99 (global declarations)
2308ac_c_conftest_c99_globals='
2309// Does the compiler advertise C99 conformance?
2310#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2311# error "Compiler does not advertise C99 conformance"
2312#endif
2313
2314#include <stdbool.h>
2315extern int puts (const char *);
2316extern int printf (const char *, ...);
2317extern int dprintf (int, const char *, ...);
2318extern void *malloc (size_t);
2319
2320// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2321// dprintf is used instead of fprintf to avoid needing to declare
2322// FILE and stderr.
2323#define debug(...) dprintf (2, __VA_ARGS__)
2324#define showlist(...) puts (#__VA_ARGS__)
2325#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2326static void
2327test_varargs_macros (void)
2328{
2329  int x = 1234;
2330  int y = 5678;
2331  debug ("Flag");
2332  debug ("X = %d\n", x);
2333  showlist (The first, second, and third items.);
2334  report (x>y, "x is %d but y is %d", x, y);
2335}
2336
2337// Check long long types.
2338#define BIG64 18446744073709551615ull
2339#define BIG32 4294967295ul
2340#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2341#if !BIG_OK
2342  #error "your preprocessor is broken"
2343#endif
2344#if BIG_OK
2345#else
2346  #error "your preprocessor is broken"
2347#endif
2348static long long int bignum = -9223372036854775807LL;
2349static unsigned long long int ubignum = BIG64;
2350
2351struct incomplete_array
2352{
2353  int datasize;
2354  double data[];
2355};
2356
2357struct named_init {
2358  int number;
2359  const wchar_t *name;
2360  double average;
2361};
2362
2363typedef const char *ccp;
2364
2365static inline int
2366test_restrict (ccp restrict text)
2367{
2368  // See if C++-style comments work.
2369  // Iterate through items via the restricted pointer.
2370  // Also check for declarations in for loops.
2371  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2372    continue;
2373  return 0;
2374}
2375
2376// Check varargs and va_copy.
2377static bool
2378test_varargs (const char *format, ...)
2379{
2380  va_list args;
2381  va_start (args, format);
2382  va_list args_copy;
2383  va_copy (args_copy, args);
2384
2385  const char *str = "";
2386  int number = 0;
2387  float fnumber = 0;
2388
2389  while (*format)
2390    {
2391      switch (*format++)
2392	{
2393	case '\''s'\'': // string
2394	  str = va_arg (args_copy, const char *);
2395	  break;
2396	case '\''d'\'': // int
2397	  number = va_arg (args_copy, int);
2398	  break;
2399	case '\''f'\'': // float
2400	  fnumber = va_arg (args_copy, double);
2401	  break;
2402	default:
2403	  break;
2404	}
2405    }
2406  va_end (args_copy);
2407  va_end (args);
2408
2409  return *str && number && fnumber;
2410}
2411'
2412
2413# Test code for whether the C compiler supports C99 (body of main).
2414ac_c_conftest_c99_main='
2415  // Check bool.
2416  _Bool success = false;
2417  success |= (argc != 0);
2418
2419  // Check restrict.
2420  if (test_restrict ("String literal") == 0)
2421    success = true;
2422  char *restrict newvar = "Another string";
2423
2424  // Check varargs.
2425  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2426  test_varargs_macros ();
2427
2428  // Check flexible array members.
2429  struct incomplete_array *ia =
2430    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2431  ia->datasize = 10;
2432  for (int i = 0; i < ia->datasize; ++i)
2433    ia->data[i] = i * 1.234;
2434
2435  // Check named initializers.
2436  struct named_init ni = {
2437    .number = 34,
2438    .name = L"Test wide string",
2439    .average = 543.34343,
2440  };
2441
2442  ni.number = 58;
2443
2444  int dynamic_array[ni.number];
2445  dynamic_array[0] = argv[0][0];
2446  dynamic_array[ni.number - 1] = 543;
2447
2448  // work around unused variable warnings
2449  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2450	 || dynamic_array[ni.number - 1] != 543);
2451'
2452
2453# Test code for whether the C compiler supports C11 (global declarations)
2454ac_c_conftest_c11_globals='
2455// Does the compiler advertise C11 conformance?
2456#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2457# error "Compiler does not advertise C11 conformance"
2458#endif
2459
2460// Check _Alignas.
2461char _Alignas (double) aligned_as_double;
2462char _Alignas (0) no_special_alignment;
2463extern char aligned_as_int;
2464char _Alignas (0) _Alignas (int) aligned_as_int;
2465
2466// Check _Alignof.
2467enum
2468{
2469  int_alignment = _Alignof (int),
2470  int_array_alignment = _Alignof (int[100]),
2471  char_alignment = _Alignof (char)
2472};
2473_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2474
2475// Check _Noreturn.
2476int _Noreturn does_not_return (void) { for (;;) continue; }
2477
2478// Check _Static_assert.
2479struct test_static_assert
2480{
2481  int x;
2482  _Static_assert (sizeof (int) <= sizeof (long int),
2483                  "_Static_assert does not work in struct");
2484  long int y;
2485};
2486
2487// Check UTF-8 literals.
2488#define u8 syntax error!
2489char const utf8_literal[] = u8"happens to be ASCII" "another string";
2490
2491// Check duplicate typedefs.
2492typedef long *long_ptr;
2493typedef long int *long_ptr;
2494typedef long_ptr long_ptr;
2495
2496// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2497struct anonymous
2498{
2499  union {
2500    struct { int i; int j; };
2501    struct { int k; long int l; } w;
2502  };
2503  int m;
2504} v1;
2505'
2506
2507# Test code for whether the C compiler supports C11 (body of main).
2508ac_c_conftest_c11_main='
2509  _Static_assert ((offsetof (struct anonymous, i)
2510		   == offsetof (struct anonymous, w.k)),
2511		  "Anonymous union alignment botch");
2512  v1.i = 2;
2513  v1.w.k = 5;
2514  ok |= v1.i != 5;
2515'
2516
2517# Test code for whether the C compiler supports C11 (complete).
2518ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2519${ac_c_conftest_c99_globals}
2520${ac_c_conftest_c11_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  ${ac_c_conftest_c11_main}
2529  return ok;
2530}
2531"
2532
2533# Test code for whether the C compiler supports C99 (complete).
2534ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2535${ac_c_conftest_c99_globals}
2536
2537int
2538main (int argc, char **argv)
2539{
2540  int ok = 0;
2541  ${ac_c_conftest_c89_main}
2542  ${ac_c_conftest_c99_main}
2543  return ok;
2544}
2545"
2546
2547# Test code for whether the C compiler supports C89 (complete).
2548ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2549
2550int
2551main (int argc, char **argv)
2552{
2553  int ok = 0;
2554  ${ac_c_conftest_c89_main}
2555  return ok;
2556}
2557"
2558
2559as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2560as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2561as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2562as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2563as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2564as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2565as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2566as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2567as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2568as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2569
2570# Auxiliary files required by this configure script.
2571ac_aux_files="ltmain.sh config.guess config.sub missing install-sh compile"
2572
2573# Locations in which to look for auxiliary files.
2574ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2575
2576# Search for a directory containing all of the required auxiliary files,
2577# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2578# If we don't find one directory that contains all the files we need,
2579# we report the set of missing files from the *first* directory in
2580# $ac_aux_dir_candidates and give up.
2581ac_missing_aux_files=""
2582ac_first_candidate=:
2583printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2585as_found=false
2586for as_dir in $ac_aux_dir_candidates
2587do
2588  IFS=$as_save_IFS
2589  case $as_dir in #(((
2590    '') as_dir=./ ;;
2591    */) ;;
2592    *) as_dir=$as_dir/ ;;
2593  esac
2594  as_found=:
2595
2596  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2597  ac_aux_dir_found=yes
2598  ac_install_sh=
2599  for ac_aux in $ac_aux_files
2600  do
2601    # As a special case, if "install-sh" is required, that requirement
2602    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2603    # and $ac_install_sh is set appropriately for whichever one is found.
2604    if test x"$ac_aux" = x"install-sh"
2605    then
2606      if test -f "${as_dir}install-sh"; then
2607        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2608        ac_install_sh="${as_dir}install-sh -c"
2609      elif test -f "${as_dir}install.sh"; then
2610        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2611        ac_install_sh="${as_dir}install.sh -c"
2612      elif test -f "${as_dir}shtool"; then
2613        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2614        ac_install_sh="${as_dir}shtool install -c"
2615      else
2616        ac_aux_dir_found=no
2617        if $ac_first_candidate; then
2618          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2619        else
2620          break
2621        fi
2622      fi
2623    else
2624      if test -f "${as_dir}${ac_aux}"; then
2625        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2626      else
2627        ac_aux_dir_found=no
2628        if $ac_first_candidate; then
2629          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2630        else
2631          break
2632        fi
2633      fi
2634    fi
2635  done
2636  if test "$ac_aux_dir_found" = yes; then
2637    ac_aux_dir="$as_dir"
2638    break
2639  fi
2640  ac_first_candidate=false
2641
2642  as_found=false
2643done
2644IFS=$as_save_IFS
2645if $as_found
2646then :
2647
2648else $as_nop
2649  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2650fi
2651
2652
2653# These three variables are undocumented and unsupported,
2654# and are intended to be withdrawn in a future Autoconf release.
2655# They can cause serious problems if a builder's source tree is in a directory
2656# whose full name contains unusual characters.
2657if test -f "${ac_aux_dir}config.guess"; then
2658  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2659fi
2660if test -f "${ac_aux_dir}config.sub"; then
2661  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2662fi
2663if test -f "$ac_aux_dir/configure"; then
2664  ac_configure="$SHELL ${ac_aux_dir}configure"
2665fi
2666
2667# Check that the precious variables saved in the cache have kept the same
2668# value.
2669ac_cache_corrupted=false
2670for ac_var in $ac_precious_vars; do
2671  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2672  eval ac_new_set=\$ac_env_${ac_var}_set
2673  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2674  eval ac_new_val=\$ac_env_${ac_var}_value
2675  case $ac_old_set,$ac_new_set in
2676    set,)
2677      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2678printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2679      ac_cache_corrupted=: ;;
2680    ,set)
2681      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2682printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2683      ac_cache_corrupted=: ;;
2684    ,);;
2685    *)
2686      if test "x$ac_old_val" != "x$ac_new_val"; then
2687	# differences in whitespace do not lead to failure.
2688	ac_old_val_w=`echo x $ac_old_val`
2689	ac_new_val_w=`echo x $ac_new_val`
2690	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2691	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2692printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2693	  ac_cache_corrupted=:
2694	else
2695	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2696printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2697	  eval $ac_var=\$ac_old_val
2698	fi
2699	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2700printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
2701	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2702printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
2703      fi;;
2704  esac
2705  # Pass precious variables to config.status.
2706  if test "$ac_new_set" = set; then
2707    case $ac_new_val in
2708    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2709    *) ac_arg=$ac_var=$ac_new_val ;;
2710    esac
2711    case " $ac_configure_args " in
2712      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2713      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2714    esac
2715  fi
2716done
2717if $ac_cache_corrupted; then
2718  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2719printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2720  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2721printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2722  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2723	    and start over" "$LINENO" 5
2724fi
2725## -------------------- ##
2726## Main body of script. ##
2727## -------------------- ##
2728
2729ac_ext=c
2730ac_cpp='$CPP $CPPFLAGS'
2731ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2732ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2733ac_compiler_gnu=$ac_cv_c_compiler_gnu
2734
2735
2736
2737ac_config_headers="$ac_config_headers config.h"
2738
2739# Set common system defines for POSIX extensions, such as _GNU_SOURCE
2740# Must be called before any macros that run the compiler (like AC_PROG_LIBTOOL)
2741# to avoid autoconf errors.
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753# Expand $ac_aux_dir to an absolute path.
2754am_aux_dir=`cd "$ac_aux_dir" && pwd`
2755
2756ac_ext=c
2757ac_cpp='$CPP $CPPFLAGS'
2758ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2759ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2760ac_compiler_gnu=$ac_cv_c_compiler_gnu
2761if test -n "$ac_tool_prefix"; then
2762  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2763set dummy ${ac_tool_prefix}gcc; ac_word=$2
2764{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2765printf %s "checking for $ac_word... " >&6; }
2766if test ${ac_cv_prog_CC+y}
2767then :
2768  printf %s "(cached) " >&6
2769else $as_nop
2770  if test -n "$CC"; then
2771  ac_cv_prog_CC="$CC" # Let the user override the test.
2772else
2773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2774for as_dir in $PATH
2775do
2776  IFS=$as_save_IFS
2777  case $as_dir in #(((
2778    '') as_dir=./ ;;
2779    */) ;;
2780    *) as_dir=$as_dir/ ;;
2781  esac
2782    for ac_exec_ext in '' $ac_executable_extensions; do
2783  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2784    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2785    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2786    break 2
2787  fi
2788done
2789  done
2790IFS=$as_save_IFS
2791
2792fi
2793fi
2794CC=$ac_cv_prog_CC
2795if test -n "$CC"; then
2796  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2797printf "%s\n" "$CC" >&6; }
2798else
2799  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2800printf "%s\n" "no" >&6; }
2801fi
2802
2803
2804fi
2805if test -z "$ac_cv_prog_CC"; then
2806  ac_ct_CC=$CC
2807  # Extract the first word of "gcc", so it can be a program name with args.
2808set dummy gcc; ac_word=$2
2809{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2810printf %s "checking for $ac_word... " >&6; }
2811if test ${ac_cv_prog_ac_ct_CC+y}
2812then :
2813  printf %s "(cached) " >&6
2814else $as_nop
2815  if test -n "$ac_ct_CC"; then
2816  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2817else
2818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2819for as_dir in $PATH
2820do
2821  IFS=$as_save_IFS
2822  case $as_dir in #(((
2823    '') as_dir=./ ;;
2824    */) ;;
2825    *) as_dir=$as_dir/ ;;
2826  esac
2827    for ac_exec_ext in '' $ac_executable_extensions; do
2828  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2829    ac_cv_prog_ac_ct_CC="gcc"
2830    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2831    break 2
2832  fi
2833done
2834  done
2835IFS=$as_save_IFS
2836
2837fi
2838fi
2839ac_ct_CC=$ac_cv_prog_ac_ct_CC
2840if test -n "$ac_ct_CC"; then
2841  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2842printf "%s\n" "$ac_ct_CC" >&6; }
2843else
2844  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2845printf "%s\n" "no" >&6; }
2846fi
2847
2848  if test "x$ac_ct_CC" = x; then
2849    CC=""
2850  else
2851    case $cross_compiling:$ac_tool_warned in
2852yes:)
2853{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2854printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2855ac_tool_warned=yes ;;
2856esac
2857    CC=$ac_ct_CC
2858  fi
2859else
2860  CC="$ac_cv_prog_CC"
2861fi
2862
2863if test -z "$CC"; then
2864          if test -n "$ac_tool_prefix"; then
2865    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2866set dummy ${ac_tool_prefix}cc; ac_word=$2
2867{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2868printf %s "checking for $ac_word... " >&6; }
2869if test ${ac_cv_prog_CC+y}
2870then :
2871  printf %s "(cached) " >&6
2872else $as_nop
2873  if test -n "$CC"; then
2874  ac_cv_prog_CC="$CC" # Let the user override the test.
2875else
2876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2877for as_dir in $PATH
2878do
2879  IFS=$as_save_IFS
2880  case $as_dir in #(((
2881    '') as_dir=./ ;;
2882    */) ;;
2883    *) as_dir=$as_dir/ ;;
2884  esac
2885    for ac_exec_ext in '' $ac_executable_extensions; do
2886  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2887    ac_cv_prog_CC="${ac_tool_prefix}cc"
2888    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2889    break 2
2890  fi
2891done
2892  done
2893IFS=$as_save_IFS
2894
2895fi
2896fi
2897CC=$ac_cv_prog_CC
2898if test -n "$CC"; then
2899  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2900printf "%s\n" "$CC" >&6; }
2901else
2902  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2903printf "%s\n" "no" >&6; }
2904fi
2905
2906
2907  fi
2908fi
2909if test -z "$CC"; then
2910  # Extract the first word of "cc", so it can be a program name with args.
2911set dummy cc; ac_word=$2
2912{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2913printf %s "checking for $ac_word... " >&6; }
2914if test ${ac_cv_prog_CC+y}
2915then :
2916  printf %s "(cached) " >&6
2917else $as_nop
2918  if test -n "$CC"; then
2919  ac_cv_prog_CC="$CC" # Let the user override the test.
2920else
2921  ac_prog_rejected=no
2922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2923for as_dir in $PATH
2924do
2925  IFS=$as_save_IFS
2926  case $as_dir in #(((
2927    '') as_dir=./ ;;
2928    */) ;;
2929    *) as_dir=$as_dir/ ;;
2930  esac
2931    for ac_exec_ext in '' $ac_executable_extensions; do
2932  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2933    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2934       ac_prog_rejected=yes
2935       continue
2936     fi
2937    ac_cv_prog_CC="cc"
2938    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2939    break 2
2940  fi
2941done
2942  done
2943IFS=$as_save_IFS
2944
2945if test $ac_prog_rejected = yes; then
2946  # We found a bogon in the path, so make sure we never use it.
2947  set dummy $ac_cv_prog_CC
2948  shift
2949  if test $# != 0; then
2950    # We chose a different compiler from the bogus one.
2951    # However, it has the same basename, so the bogon will be chosen
2952    # first if we set CC to just the basename; use the full file name.
2953    shift
2954    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
2955  fi
2956fi
2957fi
2958fi
2959CC=$ac_cv_prog_CC
2960if test -n "$CC"; then
2961  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2962printf "%s\n" "$CC" >&6; }
2963else
2964  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2965printf "%s\n" "no" >&6; }
2966fi
2967
2968
2969fi
2970if test -z "$CC"; then
2971  if test -n "$ac_tool_prefix"; then
2972  for ac_prog in cl.exe
2973  do
2974    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2975set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2976{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2977printf %s "checking for $ac_word... " >&6; }
2978if test ${ac_cv_prog_CC+y}
2979then :
2980  printf %s "(cached) " >&6
2981else $as_nop
2982  if test -n "$CC"; then
2983  ac_cv_prog_CC="$CC" # Let the user override the test.
2984else
2985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2986for as_dir in $PATH
2987do
2988  IFS=$as_save_IFS
2989  case $as_dir in #(((
2990    '') as_dir=./ ;;
2991    */) ;;
2992    *) as_dir=$as_dir/ ;;
2993  esac
2994    for ac_exec_ext in '' $ac_executable_extensions; do
2995  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2996    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2997    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2998    break 2
2999  fi
3000done
3001  done
3002IFS=$as_save_IFS
3003
3004fi
3005fi
3006CC=$ac_cv_prog_CC
3007if test -n "$CC"; then
3008  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3009printf "%s\n" "$CC" >&6; }
3010else
3011  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3012printf "%s\n" "no" >&6; }
3013fi
3014
3015
3016    test -n "$CC" && break
3017  done
3018fi
3019if test -z "$CC"; then
3020  ac_ct_CC=$CC
3021  for ac_prog in cl.exe
3022do
3023  # Extract the first word of "$ac_prog", so it can be a program name with args.
3024set dummy $ac_prog; ac_word=$2
3025{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3026printf %s "checking for $ac_word... " >&6; }
3027if test ${ac_cv_prog_ac_ct_CC+y}
3028then :
3029  printf %s "(cached) " >&6
3030else $as_nop
3031  if test -n "$ac_ct_CC"; then
3032  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3033else
3034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3035for as_dir in $PATH
3036do
3037  IFS=$as_save_IFS
3038  case $as_dir in #(((
3039    '') as_dir=./ ;;
3040    */) ;;
3041    *) as_dir=$as_dir/ ;;
3042  esac
3043    for ac_exec_ext in '' $ac_executable_extensions; do
3044  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3045    ac_cv_prog_ac_ct_CC="$ac_prog"
3046    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3047    break 2
3048  fi
3049done
3050  done
3051IFS=$as_save_IFS
3052
3053fi
3054fi
3055ac_ct_CC=$ac_cv_prog_ac_ct_CC
3056if test -n "$ac_ct_CC"; then
3057  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3058printf "%s\n" "$ac_ct_CC" >&6; }
3059else
3060  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3061printf "%s\n" "no" >&6; }
3062fi
3063
3064
3065  test -n "$ac_ct_CC" && break
3066done
3067
3068  if test "x$ac_ct_CC" = x; then
3069    CC=""
3070  else
3071    case $cross_compiling:$ac_tool_warned in
3072yes:)
3073{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3074printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3075ac_tool_warned=yes ;;
3076esac
3077    CC=$ac_ct_CC
3078  fi
3079fi
3080
3081fi
3082if test -z "$CC"; then
3083  if test -n "$ac_tool_prefix"; then
3084  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3085set dummy ${ac_tool_prefix}clang; ac_word=$2
3086{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3087printf %s "checking for $ac_word... " >&6; }
3088if test ${ac_cv_prog_CC+y}
3089then :
3090  printf %s "(cached) " >&6
3091else $as_nop
3092  if test -n "$CC"; then
3093  ac_cv_prog_CC="$CC" # Let the user override the test.
3094else
3095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3096for as_dir in $PATH
3097do
3098  IFS=$as_save_IFS
3099  case $as_dir in #(((
3100    '') as_dir=./ ;;
3101    */) ;;
3102    *) as_dir=$as_dir/ ;;
3103  esac
3104    for ac_exec_ext in '' $ac_executable_extensions; do
3105  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3106    ac_cv_prog_CC="${ac_tool_prefix}clang"
3107    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3108    break 2
3109  fi
3110done
3111  done
3112IFS=$as_save_IFS
3113
3114fi
3115fi
3116CC=$ac_cv_prog_CC
3117if test -n "$CC"; then
3118  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3119printf "%s\n" "$CC" >&6; }
3120else
3121  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3122printf "%s\n" "no" >&6; }
3123fi
3124
3125
3126fi
3127if test -z "$ac_cv_prog_CC"; then
3128  ac_ct_CC=$CC
3129  # Extract the first word of "clang", so it can be a program name with args.
3130set dummy clang; ac_word=$2
3131{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3132printf %s "checking for $ac_word... " >&6; }
3133if test ${ac_cv_prog_ac_ct_CC+y}
3134then :
3135  printf %s "(cached) " >&6
3136else $as_nop
3137  if test -n "$ac_ct_CC"; then
3138  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3139else
3140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3141for as_dir in $PATH
3142do
3143  IFS=$as_save_IFS
3144  case $as_dir in #(((
3145    '') as_dir=./ ;;
3146    */) ;;
3147    *) as_dir=$as_dir/ ;;
3148  esac
3149    for ac_exec_ext in '' $ac_executable_extensions; do
3150  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3151    ac_cv_prog_ac_ct_CC="clang"
3152    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3153    break 2
3154  fi
3155done
3156  done
3157IFS=$as_save_IFS
3158
3159fi
3160fi
3161ac_ct_CC=$ac_cv_prog_ac_ct_CC
3162if test -n "$ac_ct_CC"; then
3163  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3164printf "%s\n" "$ac_ct_CC" >&6; }
3165else
3166  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3167printf "%s\n" "no" >&6; }
3168fi
3169
3170  if test "x$ac_ct_CC" = x; then
3171    CC=""
3172  else
3173    case $cross_compiling:$ac_tool_warned in
3174yes:)
3175{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3176printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3177ac_tool_warned=yes ;;
3178esac
3179    CC=$ac_ct_CC
3180  fi
3181else
3182  CC="$ac_cv_prog_CC"
3183fi
3184
3185fi
3186
3187
3188test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3189printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3190as_fn_error $? "no acceptable C compiler found in \$PATH
3191See \`config.log' for more details" "$LINENO" 5; }
3192
3193# Provide some information about the compiler.
3194printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3195set X $ac_compile
3196ac_compiler=$2
3197for ac_option in --version -v -V -qversion -version; do
3198  { { ac_try="$ac_compiler $ac_option >&5"
3199case "(($ac_try" in
3200  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3201  *) ac_try_echo=$ac_try;;
3202esac
3203eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3204printf "%s\n" "$ac_try_echo"; } >&5
3205  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3206  ac_status=$?
3207  if test -s conftest.err; then
3208    sed '10a\
3209... rest of stderr output deleted ...
3210         10q' conftest.err >conftest.er1
3211    cat conftest.er1 >&5
3212  fi
3213  rm -f conftest.er1 conftest.err
3214  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3215  test $ac_status = 0; }
3216done
3217
3218cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3219/* end confdefs.h.  */
3220
3221int
3222main (void)
3223{
3224
3225  ;
3226  return 0;
3227}
3228_ACEOF
3229ac_clean_files_save=$ac_clean_files
3230ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3231# Try to create an executable without -o first, disregard a.out.
3232# It will help us diagnose broken compilers, and finding out an intuition
3233# of exeext.
3234{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3235printf %s "checking whether the C compiler works... " >&6; }
3236ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3237
3238# The possible output files:
3239ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3240
3241ac_rmfiles=
3242for ac_file in $ac_files
3243do
3244  case $ac_file in
3245    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3246    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3247  esac
3248done
3249rm -f $ac_rmfiles
3250
3251if { { ac_try="$ac_link_default"
3252case "(($ac_try" in
3253  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3254  *) ac_try_echo=$ac_try;;
3255esac
3256eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3257printf "%s\n" "$ac_try_echo"; } >&5
3258  (eval "$ac_link_default") 2>&5
3259  ac_status=$?
3260  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3261  test $ac_status = 0; }
3262then :
3263  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3264# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3265# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3266# so that the user can short-circuit this test for compilers unknown to
3267# Autoconf.
3268for ac_file in $ac_files ''
3269do
3270  test -f "$ac_file" || continue
3271  case $ac_file in
3272    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3273	;;
3274    [ab].out )
3275	# We found the default executable, but exeext='' is most
3276	# certainly right.
3277	break;;
3278    *.* )
3279	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3280	then :; else
3281	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3282	fi
3283	# We set ac_cv_exeext here because the later test for it is not
3284	# safe: cross compilers may not add the suffix if given an `-o'
3285	# argument, so we may need to know it at that point already.
3286	# Even if this section looks crufty: it has the advantage of
3287	# actually working.
3288	break;;
3289    * )
3290	break;;
3291  esac
3292done
3293test "$ac_cv_exeext" = no && ac_cv_exeext=
3294
3295else $as_nop
3296  ac_file=''
3297fi
3298if test -z "$ac_file"
3299then :
3300  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3301printf "%s\n" "no" >&6; }
3302printf "%s\n" "$as_me: failed program was:" >&5
3303sed 's/^/| /' conftest.$ac_ext >&5
3304
3305{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3306printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3307as_fn_error 77 "C compiler cannot create executables
3308See \`config.log' for more details" "$LINENO" 5; }
3309else $as_nop
3310  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3311printf "%s\n" "yes" >&6; }
3312fi
3313{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3314printf %s "checking for C compiler default output file name... " >&6; }
3315{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3316printf "%s\n" "$ac_file" >&6; }
3317ac_exeext=$ac_cv_exeext
3318
3319rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3320ac_clean_files=$ac_clean_files_save
3321{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3322printf %s "checking for suffix of executables... " >&6; }
3323if { { ac_try="$ac_link"
3324case "(($ac_try" in
3325  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3326  *) ac_try_echo=$ac_try;;
3327esac
3328eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3329printf "%s\n" "$ac_try_echo"; } >&5
3330  (eval "$ac_link") 2>&5
3331  ac_status=$?
3332  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3333  test $ac_status = 0; }
3334then :
3335  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3336# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3337# work properly (i.e., refer to `conftest.exe'), while it won't with
3338# `rm'.
3339for ac_file in conftest.exe conftest conftest.*; do
3340  test -f "$ac_file" || continue
3341  case $ac_file in
3342    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3343    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3344	  break;;
3345    * ) break;;
3346  esac
3347done
3348else $as_nop
3349  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3350printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3351as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3352See \`config.log' for more details" "$LINENO" 5; }
3353fi
3354rm -f conftest conftest$ac_cv_exeext
3355{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3356printf "%s\n" "$ac_cv_exeext" >&6; }
3357
3358rm -f conftest.$ac_ext
3359EXEEXT=$ac_cv_exeext
3360ac_exeext=$EXEEXT
3361cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3362/* end confdefs.h.  */
3363#include <stdio.h>
3364int
3365main (void)
3366{
3367FILE *f = fopen ("conftest.out", "w");
3368 return ferror (f) || fclose (f) != 0;
3369
3370  ;
3371  return 0;
3372}
3373_ACEOF
3374ac_clean_files="$ac_clean_files conftest.out"
3375# Check that the compiler produces executables we can run.  If not, either
3376# the compiler is broken, or we cross compile.
3377{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3378printf %s "checking whether we are cross compiling... " >&6; }
3379if test "$cross_compiling" != yes; then
3380  { { ac_try="$ac_link"
3381case "(($ac_try" in
3382  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3383  *) ac_try_echo=$ac_try;;
3384esac
3385eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3386printf "%s\n" "$ac_try_echo"; } >&5
3387  (eval "$ac_link") 2>&5
3388  ac_status=$?
3389  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3390  test $ac_status = 0; }
3391  if { ac_try='./conftest$ac_cv_exeext'
3392  { { case "(($ac_try" in
3393  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3394  *) ac_try_echo=$ac_try;;
3395esac
3396eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3397printf "%s\n" "$ac_try_echo"; } >&5
3398  (eval "$ac_try") 2>&5
3399  ac_status=$?
3400  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3401  test $ac_status = 0; }; }; then
3402    cross_compiling=no
3403  else
3404    if test "$cross_compiling" = maybe; then
3405	cross_compiling=yes
3406    else
3407	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3408printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3409as_fn_error 77 "cannot run C compiled programs.
3410If you meant to cross compile, use \`--host'.
3411See \`config.log' for more details" "$LINENO" 5; }
3412    fi
3413  fi
3414fi
3415{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3416printf "%s\n" "$cross_compiling" >&6; }
3417
3418rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3419ac_clean_files=$ac_clean_files_save
3420{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3421printf %s "checking for suffix of object files... " >&6; }
3422if test ${ac_cv_objext+y}
3423then :
3424  printf %s "(cached) " >&6
3425else $as_nop
3426  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3427/* end confdefs.h.  */
3428
3429int
3430main (void)
3431{
3432
3433  ;
3434  return 0;
3435}
3436_ACEOF
3437rm -f conftest.o conftest.obj
3438if { { ac_try="$ac_compile"
3439case "(($ac_try" in
3440  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3441  *) ac_try_echo=$ac_try;;
3442esac
3443eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3444printf "%s\n" "$ac_try_echo"; } >&5
3445  (eval "$ac_compile") 2>&5
3446  ac_status=$?
3447  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3448  test $ac_status = 0; }
3449then :
3450  for ac_file in conftest.o conftest.obj conftest.*; do
3451  test -f "$ac_file" || continue;
3452  case $ac_file in
3453    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3454    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3455       break;;
3456  esac
3457done
3458else $as_nop
3459  printf "%s\n" "$as_me: failed program was:" >&5
3460sed 's/^/| /' conftest.$ac_ext >&5
3461
3462{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3463printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3464as_fn_error $? "cannot compute suffix of object files: cannot compile
3465See \`config.log' for more details" "$LINENO" 5; }
3466fi
3467rm -f conftest.$ac_cv_objext conftest.$ac_ext
3468fi
3469{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3470printf "%s\n" "$ac_cv_objext" >&6; }
3471OBJEXT=$ac_cv_objext
3472ac_objext=$OBJEXT
3473{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3474printf %s "checking whether the compiler supports GNU C... " >&6; }
3475if test ${ac_cv_c_compiler_gnu+y}
3476then :
3477  printf %s "(cached) " >&6
3478else $as_nop
3479  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3480/* end confdefs.h.  */
3481
3482int
3483main (void)
3484{
3485#ifndef __GNUC__
3486       choke me
3487#endif
3488
3489  ;
3490  return 0;
3491}
3492_ACEOF
3493if ac_fn_c_try_compile "$LINENO"
3494then :
3495  ac_compiler_gnu=yes
3496else $as_nop
3497  ac_compiler_gnu=no
3498fi
3499rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3500ac_cv_c_compiler_gnu=$ac_compiler_gnu
3501
3502fi
3503{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3504printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3505ac_compiler_gnu=$ac_cv_c_compiler_gnu
3506
3507if test $ac_compiler_gnu = yes; then
3508  GCC=yes
3509else
3510  GCC=
3511fi
3512ac_test_CFLAGS=${CFLAGS+y}
3513ac_save_CFLAGS=$CFLAGS
3514{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3515printf %s "checking whether $CC accepts -g... " >&6; }
3516if test ${ac_cv_prog_cc_g+y}
3517then :
3518  printf %s "(cached) " >&6
3519else $as_nop
3520  ac_save_c_werror_flag=$ac_c_werror_flag
3521   ac_c_werror_flag=yes
3522   ac_cv_prog_cc_g=no
3523   CFLAGS="-g"
3524   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3525/* end confdefs.h.  */
3526
3527int
3528main (void)
3529{
3530
3531  ;
3532  return 0;
3533}
3534_ACEOF
3535if ac_fn_c_try_compile "$LINENO"
3536then :
3537  ac_cv_prog_cc_g=yes
3538else $as_nop
3539  CFLAGS=""
3540      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3541/* end confdefs.h.  */
3542
3543int
3544main (void)
3545{
3546
3547  ;
3548  return 0;
3549}
3550_ACEOF
3551if ac_fn_c_try_compile "$LINENO"
3552then :
3553
3554else $as_nop
3555  ac_c_werror_flag=$ac_save_c_werror_flag
3556	 CFLAGS="-g"
3557	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3558/* end confdefs.h.  */
3559
3560int
3561main (void)
3562{
3563
3564  ;
3565  return 0;
3566}
3567_ACEOF
3568if ac_fn_c_try_compile "$LINENO"
3569then :
3570  ac_cv_prog_cc_g=yes
3571fi
3572rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3573fi
3574rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3575fi
3576rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3577   ac_c_werror_flag=$ac_save_c_werror_flag
3578fi
3579{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3580printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3581if test $ac_test_CFLAGS; then
3582  CFLAGS=$ac_save_CFLAGS
3583elif test $ac_cv_prog_cc_g = yes; then
3584  if test "$GCC" = yes; then
3585    CFLAGS="-g -O2"
3586  else
3587    CFLAGS="-g"
3588  fi
3589else
3590  if test "$GCC" = yes; then
3591    CFLAGS="-O2"
3592  else
3593    CFLAGS=
3594  fi
3595fi
3596ac_prog_cc_stdc=no
3597if test x$ac_prog_cc_stdc = xno
3598then :
3599  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3600printf %s "checking for $CC option to enable C11 features... " >&6; }
3601if test ${ac_cv_prog_cc_c11+y}
3602then :
3603  printf %s "(cached) " >&6
3604else $as_nop
3605  ac_cv_prog_cc_c11=no
3606ac_save_CC=$CC
3607cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3608/* end confdefs.h.  */
3609$ac_c_conftest_c11_program
3610_ACEOF
3611for ac_arg in '' -std=gnu11
3612do
3613  CC="$ac_save_CC $ac_arg"
3614  if ac_fn_c_try_compile "$LINENO"
3615then :
3616  ac_cv_prog_cc_c11=$ac_arg
3617fi
3618rm -f core conftest.err conftest.$ac_objext conftest.beam
3619  test "x$ac_cv_prog_cc_c11" != "xno" && break
3620done
3621rm -f conftest.$ac_ext
3622CC=$ac_save_CC
3623fi
3624
3625if test "x$ac_cv_prog_cc_c11" = xno
3626then :
3627  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3628printf "%s\n" "unsupported" >&6; }
3629else $as_nop
3630  if test "x$ac_cv_prog_cc_c11" = x
3631then :
3632  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3633printf "%s\n" "none needed" >&6; }
3634else $as_nop
3635  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3636printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3637     CC="$CC $ac_cv_prog_cc_c11"
3638fi
3639  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3640  ac_prog_cc_stdc=c11
3641fi
3642fi
3643if test x$ac_prog_cc_stdc = xno
3644then :
3645  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3646printf %s "checking for $CC option to enable C99 features... " >&6; }
3647if test ${ac_cv_prog_cc_c99+y}
3648then :
3649  printf %s "(cached) " >&6
3650else $as_nop
3651  ac_cv_prog_cc_c99=no
3652ac_save_CC=$CC
3653cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3654/* end confdefs.h.  */
3655$ac_c_conftest_c99_program
3656_ACEOF
3657for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3658do
3659  CC="$ac_save_CC $ac_arg"
3660  if ac_fn_c_try_compile "$LINENO"
3661then :
3662  ac_cv_prog_cc_c99=$ac_arg
3663fi
3664rm -f core conftest.err conftest.$ac_objext conftest.beam
3665  test "x$ac_cv_prog_cc_c99" != "xno" && break
3666done
3667rm -f conftest.$ac_ext
3668CC=$ac_save_CC
3669fi
3670
3671if test "x$ac_cv_prog_cc_c99" = xno
3672then :
3673  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3674printf "%s\n" "unsupported" >&6; }
3675else $as_nop
3676  if test "x$ac_cv_prog_cc_c99" = x
3677then :
3678  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3679printf "%s\n" "none needed" >&6; }
3680else $as_nop
3681  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3682printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3683     CC="$CC $ac_cv_prog_cc_c99"
3684fi
3685  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3686  ac_prog_cc_stdc=c99
3687fi
3688fi
3689if test x$ac_prog_cc_stdc = xno
3690then :
3691  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3692printf %s "checking for $CC option to enable C89 features... " >&6; }
3693if test ${ac_cv_prog_cc_c89+y}
3694then :
3695  printf %s "(cached) " >&6
3696else $as_nop
3697  ac_cv_prog_cc_c89=no
3698ac_save_CC=$CC
3699cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3700/* end confdefs.h.  */
3701$ac_c_conftest_c89_program
3702_ACEOF
3703for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3704do
3705  CC="$ac_save_CC $ac_arg"
3706  if ac_fn_c_try_compile "$LINENO"
3707then :
3708  ac_cv_prog_cc_c89=$ac_arg
3709fi
3710rm -f core conftest.err conftest.$ac_objext conftest.beam
3711  test "x$ac_cv_prog_cc_c89" != "xno" && break
3712done
3713rm -f conftest.$ac_ext
3714CC=$ac_save_CC
3715fi
3716
3717if test "x$ac_cv_prog_cc_c89" = xno
3718then :
3719  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3720printf "%s\n" "unsupported" >&6; }
3721else $as_nop
3722  if test "x$ac_cv_prog_cc_c89" = x
3723then :
3724  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3725printf "%s\n" "none needed" >&6; }
3726else $as_nop
3727  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3728printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3729     CC="$CC $ac_cv_prog_cc_c89"
3730fi
3731  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3732  ac_prog_cc_stdc=c89
3733fi
3734fi
3735
3736ac_ext=c
3737ac_cpp='$CPP $CPPFLAGS'
3738ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3739ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3740ac_compiler_gnu=$ac_cv_c_compiler_gnu
3741
3742
3743  ac_ext=c
3744ac_cpp='$CPP $CPPFLAGS'
3745ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3746ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3747ac_compiler_gnu=$ac_cv_c_compiler_gnu
3748{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3749printf %s "checking whether $CC understands -c and -o together... " >&6; }
3750if test ${am_cv_prog_cc_c_o+y}
3751then :
3752  printf %s "(cached) " >&6
3753else $as_nop
3754  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3755/* end confdefs.h.  */
3756
3757int
3758main (void)
3759{
3760
3761  ;
3762  return 0;
3763}
3764_ACEOF
3765  # Make sure it works both with $CC and with simple cc.
3766  # Following AC_PROG_CC_C_O, we do the test twice because some
3767  # compilers refuse to overwrite an existing .o file with -o,
3768  # though they will create one.
3769  am_cv_prog_cc_c_o=yes
3770  for am_i in 1 2; do
3771    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3772   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3773   ac_status=$?
3774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3775   (exit $ac_status); } \
3776         && test -f conftest2.$ac_objext; then
3777      : OK
3778    else
3779      am_cv_prog_cc_c_o=no
3780      break
3781    fi
3782  done
3783  rm -f core conftest*
3784  unset am_i
3785fi
3786{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3787printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
3788if test "$am_cv_prog_cc_c_o" != yes; then
3789   # Losing compiler, so override with the script.
3790   # FIXME: It is wrong to rewrite CC.
3791   # But if we don't then we get into trouble of one sort or another.
3792   # A longer-term fix would be to have automake use am__CC in this case,
3793   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3794   CC="$am_aux_dir/compile $CC"
3795fi
3796ac_ext=c
3797ac_cpp='$CPP $CPPFLAGS'
3798ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3799ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3800ac_compiler_gnu=$ac_cv_c_compiler_gnu
3801
3802
3803
3804ac_header= ac_cache=
3805for ac_item in $ac_header_c_list
3806do
3807  if test $ac_cache; then
3808    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
3809    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
3810      printf "%s\n" "#define $ac_item 1" >> confdefs.h
3811    fi
3812    ac_header= ac_cache=
3813  elif test $ac_header; then
3814    ac_cache=$ac_item
3815  else
3816    ac_header=$ac_item
3817  fi
3818done
3819
3820
3821
3822
3823
3824
3825
3826
3827if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
3828then :
3829
3830printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
3831
3832fi
3833
3834
3835
3836
3837
3838
3839  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3840printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3841if test ${ac_cv_safe_to_define___extensions__+y}
3842then :
3843  printf %s "(cached) " >&6
3844else $as_nop
3845  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3846/* end confdefs.h.  */
3847
3848#         define __EXTENSIONS__ 1
3849          $ac_includes_default
3850int
3851main (void)
3852{
3853
3854  ;
3855  return 0;
3856}
3857_ACEOF
3858if ac_fn_c_try_compile "$LINENO"
3859then :
3860  ac_cv_safe_to_define___extensions__=yes
3861else $as_nop
3862  ac_cv_safe_to_define___extensions__=no
3863fi
3864rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3865fi
3866{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3867printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
3868
3869  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
3870printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
3871if test ${ac_cv_should_define__xopen_source+y}
3872then :
3873  printf %s "(cached) " >&6
3874else $as_nop
3875  ac_cv_should_define__xopen_source=no
3876    if test $ac_cv_header_wchar_h = yes
3877then :
3878  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3879/* end confdefs.h.  */
3880
3881          #include <wchar.h>
3882          mbstate_t x;
3883int
3884main (void)
3885{
3886
3887  ;
3888  return 0;
3889}
3890_ACEOF
3891if ac_fn_c_try_compile "$LINENO"
3892then :
3893
3894else $as_nop
3895  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3896/* end confdefs.h.  */
3897
3898            #define _XOPEN_SOURCE 500
3899            #include <wchar.h>
3900            mbstate_t x;
3901int
3902main (void)
3903{
3904
3905  ;
3906  return 0;
3907}
3908_ACEOF
3909if ac_fn_c_try_compile "$LINENO"
3910then :
3911  ac_cv_should_define__xopen_source=yes
3912fi
3913rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3914fi
3915rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3916fi
3917fi
3918{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
3919printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
3920
3921  printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
3922
3923  printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
3924
3925  printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
3926
3927  printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
3928
3929  printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
3930
3931  printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
3932
3933  printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3934
3935  printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
3936
3937  printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
3938
3939  printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
3940
3941  printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
3942
3943  printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
3944
3945  printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
3946
3947  printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
3948
3949  printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
3950
3951  if test $ac_cv_header_minix_config_h = yes
3952then :
3953  MINIX=yes
3954    printf "%s\n" "#define _MINIX 1" >>confdefs.h
3955
3956    printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
3957
3958    printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
3959
3960else $as_nop
3961  MINIX=
3962fi
3963  if test $ac_cv_safe_to_define___extensions__ = yes
3964then :
3965  printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
3966
3967fi
3968  if test $ac_cv_should_define__xopen_source = yes
3969then :
3970  printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
3971
3972fi
3973
3974
3975# Initialize Automake
3976am__api_version='1.16'
3977
3978
3979  # Find a good install program.  We prefer a C program (faster),
3980# so one script is as good as another.  But avoid the broken or
3981# incompatible versions:
3982# SysV /etc/install, /usr/sbin/install
3983# SunOS /usr/etc/install
3984# IRIX /sbin/install
3985# AIX /bin/install
3986# AmigaOS /C/install, which installs bootblocks on floppy discs
3987# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3988# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3989# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3990# OS/2's system install, which has a completely different semantic
3991# ./install, which can be erroneously created by make from ./install.sh.
3992# Reject install programs that cannot install multiple files.
3993{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3994printf %s "checking for a BSD-compatible install... " >&6; }
3995if test -z "$INSTALL"; then
3996if test ${ac_cv_path_install+y}
3997then :
3998  printf %s "(cached) " >&6
3999else $as_nop
4000  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4001for as_dir in $PATH
4002do
4003  IFS=$as_save_IFS
4004  case $as_dir in #(((
4005    '') as_dir=./ ;;
4006    */) ;;
4007    *) as_dir=$as_dir/ ;;
4008  esac
4009    # Account for fact that we put trailing slashes in our PATH walk.
4010case $as_dir in #((
4011  ./ | /[cC]/* | \
4012  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4013  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4014  /usr/ucb/* ) ;;
4015  *)
4016    # OSF1 and SCO ODT 3.0 have their own names for install.
4017    # Don't use installbsd from OSF since it installs stuff as root
4018    # by default.
4019    for ac_prog in ginstall scoinst install; do
4020      for ac_exec_ext in '' $ac_executable_extensions; do
4021	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
4022	  if test $ac_prog = install &&
4023	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4024	    # AIX install.  It has an incompatible calling convention.
4025	    :
4026	  elif test $ac_prog = install &&
4027	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4028	    # program-specific install script used by HP pwplus--don't use.
4029	    :
4030	  else
4031	    rm -rf conftest.one conftest.two conftest.dir
4032	    echo one > conftest.one
4033	    echo two > conftest.two
4034	    mkdir conftest.dir
4035	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
4036	      test -s conftest.one && test -s conftest.two &&
4037	      test -s conftest.dir/conftest.one &&
4038	      test -s conftest.dir/conftest.two
4039	    then
4040	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
4041	      break 3
4042	    fi
4043	  fi
4044	fi
4045      done
4046    done
4047    ;;
4048esac
4049
4050  done
4051IFS=$as_save_IFS
4052
4053rm -rf conftest.one conftest.two conftest.dir
4054
4055fi
4056  if test ${ac_cv_path_install+y}; then
4057    INSTALL=$ac_cv_path_install
4058  else
4059    # As a last resort, use the slow shell script.  Don't cache a
4060    # value for INSTALL within a source directory, because that will
4061    # break other packages using the cache if that directory is
4062    # removed, or if the value is a relative name.
4063    INSTALL=$ac_install_sh
4064  fi
4065fi
4066{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4067printf "%s\n" "$INSTALL" >&6; }
4068
4069# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4070# It thinks the first close brace ends the variable substitution.
4071test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4072
4073test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4074
4075test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4076
4077{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4078printf %s "checking whether build environment is sane... " >&6; }
4079# Reject unsafe characters in $srcdir or the absolute working directory
4080# name.  Accept space and tab only in the latter.
4081am_lf='
4082'
4083case `pwd` in
4084  *[\\\"\#\$\&\'\`$am_lf]*)
4085    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4086esac
4087case $srcdir in
4088  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
4089    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4090esac
4091
4092# Do 'set' in a subshell so we don't clobber the current shell's
4093# arguments.  Must try -L first in case configure is actually a
4094# symlink; some systems play weird games with the mod time of symlinks
4095# (eg FreeBSD returns the mod time of the symlink's containing
4096# directory).
4097if (
4098   am_has_slept=no
4099   for am_try in 1 2; do
4100     echo "timestamp, slept: $am_has_slept" > conftest.file
4101     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4102     if test "$*" = "X"; then
4103	# -L didn't work.
4104	set X `ls -t "$srcdir/configure" conftest.file`
4105     fi
4106     if test "$*" != "X $srcdir/configure conftest.file" \
4107	&& test "$*" != "X conftest.file $srcdir/configure"; then
4108
4109	# If neither matched, then we have a broken ls.  This can happen
4110	# if, for instance, CONFIG_SHELL is bash and it inherits a
4111	# broken ls alias from the environment.  This has actually
4112	# happened.  Such a system could not be considered "sane".
4113	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
4114  alias in your environment" "$LINENO" 5
4115     fi
4116     if test "$2" = conftest.file || test $am_try -eq 2; then
4117       break
4118     fi
4119     # Just in case.
4120     sleep 1
4121     am_has_slept=yes
4122   done
4123   test "$2" = conftest.file
4124   )
4125then
4126   # Ok.
4127   :
4128else
4129   as_fn_error $? "newly created file is older than distributed files!
4130Check your system clock" "$LINENO" 5
4131fi
4132{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4133printf "%s\n" "yes" >&6; }
4134# If we didn't sleep, we still need to ensure time stamps of config.status and
4135# generated files are strictly newer.
4136am_sleep_pid=
4137if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4138  ( sleep 1 ) &
4139  am_sleep_pid=$!
4140fi
4141
4142rm -f conftest.file
4143
4144test "$program_prefix" != NONE &&
4145  program_transform_name="s&^&$program_prefix&;$program_transform_name"
4146# Use a double $ so make ignores it.
4147test "$program_suffix" != NONE &&
4148  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4149# Double any \ or $.
4150# By default was `s,x,x', remove it if useless.
4151ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4152program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
4153
4154
4155  if test x"${MISSING+set}" != xset; then
4156  MISSING="\${SHELL} '$am_aux_dir/missing'"
4157fi
4158# Use eval to expand $SHELL
4159if eval "$MISSING --is-lightweight"; then
4160  am_missing_run="$MISSING "
4161else
4162  am_missing_run=
4163  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4164printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4165fi
4166
4167if test x"${install_sh+set}" != xset; then
4168  case $am_aux_dir in
4169  *\ * | *\	*)
4170    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4171  *)
4172    install_sh="\${SHELL} $am_aux_dir/install-sh"
4173  esac
4174fi
4175
4176# Installed binaries are usually stripped using 'strip' when the user
4177# run "make install-strip".  However 'strip' might not be the right
4178# tool to use in cross-compilation environments, therefore Automake
4179# will honor the 'STRIP' environment variable to overrule this program.
4180if test "$cross_compiling" != no; then
4181  if test -n "$ac_tool_prefix"; then
4182  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4183set dummy ${ac_tool_prefix}strip; ac_word=$2
4184{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4185printf %s "checking for $ac_word... " >&6; }
4186if test ${ac_cv_prog_STRIP+y}
4187then :
4188  printf %s "(cached) " >&6
4189else $as_nop
4190  if test -n "$STRIP"; then
4191  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4192else
4193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4194for as_dir in $PATH
4195do
4196  IFS=$as_save_IFS
4197  case $as_dir in #(((
4198    '') as_dir=./ ;;
4199    */) ;;
4200    *) as_dir=$as_dir/ ;;
4201  esac
4202    for ac_exec_ext in '' $ac_executable_extensions; do
4203  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4204    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4205    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4206    break 2
4207  fi
4208done
4209  done
4210IFS=$as_save_IFS
4211
4212fi
4213fi
4214STRIP=$ac_cv_prog_STRIP
4215if test -n "$STRIP"; then
4216  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4217printf "%s\n" "$STRIP" >&6; }
4218else
4219  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4220printf "%s\n" "no" >&6; }
4221fi
4222
4223
4224fi
4225if test -z "$ac_cv_prog_STRIP"; then
4226  ac_ct_STRIP=$STRIP
4227  # Extract the first word of "strip", so it can be a program name with args.
4228set dummy strip; ac_word=$2
4229{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4230printf %s "checking for $ac_word... " >&6; }
4231if test ${ac_cv_prog_ac_ct_STRIP+y}
4232then :
4233  printf %s "(cached) " >&6
4234else $as_nop
4235  if test -n "$ac_ct_STRIP"; then
4236  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4237else
4238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4239for as_dir in $PATH
4240do
4241  IFS=$as_save_IFS
4242  case $as_dir in #(((
4243    '') as_dir=./ ;;
4244    */) ;;
4245    *) as_dir=$as_dir/ ;;
4246  esac
4247    for ac_exec_ext in '' $ac_executable_extensions; do
4248  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4249    ac_cv_prog_ac_ct_STRIP="strip"
4250    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4251    break 2
4252  fi
4253done
4254  done
4255IFS=$as_save_IFS
4256
4257fi
4258fi
4259ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4260if test -n "$ac_ct_STRIP"; then
4261  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4262printf "%s\n" "$ac_ct_STRIP" >&6; }
4263else
4264  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4265printf "%s\n" "no" >&6; }
4266fi
4267
4268  if test "x$ac_ct_STRIP" = x; then
4269    STRIP=":"
4270  else
4271    case $cross_compiling:$ac_tool_warned in
4272yes:)
4273{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4274printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4275ac_tool_warned=yes ;;
4276esac
4277    STRIP=$ac_ct_STRIP
4278  fi
4279else
4280  STRIP="$ac_cv_prog_STRIP"
4281fi
4282
4283fi
4284INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4285
4286
4287  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
4288printf %s "checking for a race-free mkdir -p... " >&6; }
4289if test -z "$MKDIR_P"; then
4290  if test ${ac_cv_path_mkdir+y}
4291then :
4292  printf %s "(cached) " >&6
4293else $as_nop
4294  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4295for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4296do
4297  IFS=$as_save_IFS
4298  case $as_dir in #(((
4299    '') as_dir=./ ;;
4300    */) ;;
4301    *) as_dir=$as_dir/ ;;
4302  esac
4303    for ac_prog in mkdir gmkdir; do
4304	 for ac_exec_ext in '' $ac_executable_extensions; do
4305	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
4306	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
4307	     'mkdir ('*'coreutils) '* | \
4308	     'BusyBox '* | \
4309	     'mkdir (fileutils) '4.1*)
4310	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
4311	       break 3;;
4312	   esac
4313	 done
4314       done
4315  done
4316IFS=$as_save_IFS
4317
4318fi
4319
4320  test -d ./--version && rmdir ./--version
4321  if test ${ac_cv_path_mkdir+y}; then
4322    MKDIR_P="$ac_cv_path_mkdir -p"
4323  else
4324    # As a last resort, use the slow shell script.  Don't cache a
4325    # value for MKDIR_P within a source directory, because that will
4326    # break other packages using the cache if that directory is
4327    # removed, or if the value is a relative name.
4328    MKDIR_P="$ac_install_sh -d"
4329  fi
4330fi
4331{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4332printf "%s\n" "$MKDIR_P" >&6; }
4333
4334for ac_prog in gawk mawk nawk awk
4335do
4336  # Extract the first word of "$ac_prog", so it can be a program name with args.
4337set dummy $ac_prog; ac_word=$2
4338{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4339printf %s "checking for $ac_word... " >&6; }
4340if test ${ac_cv_prog_AWK+y}
4341then :
4342  printf %s "(cached) " >&6
4343else $as_nop
4344  if test -n "$AWK"; then
4345  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4346else
4347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4348for as_dir in $PATH
4349do
4350  IFS=$as_save_IFS
4351  case $as_dir in #(((
4352    '') as_dir=./ ;;
4353    */) ;;
4354    *) as_dir=$as_dir/ ;;
4355  esac
4356    for ac_exec_ext in '' $ac_executable_extensions; do
4357  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4358    ac_cv_prog_AWK="$ac_prog"
4359    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4360    break 2
4361  fi
4362done
4363  done
4364IFS=$as_save_IFS
4365
4366fi
4367fi
4368AWK=$ac_cv_prog_AWK
4369if test -n "$AWK"; then
4370  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4371printf "%s\n" "$AWK" >&6; }
4372else
4373  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4374printf "%s\n" "no" >&6; }
4375fi
4376
4377
4378  test -n "$AWK" && break
4379done
4380
4381{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4382printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4383set x ${MAKE-make}
4384ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4385if eval test \${ac_cv_prog_make_${ac_make}_set+y}
4386then :
4387  printf %s "(cached) " >&6
4388else $as_nop
4389  cat >conftest.make <<\_ACEOF
4390SHELL = /bin/sh
4391all:
4392	@echo '@@@%%%=$(MAKE)=@@@%%%'
4393_ACEOF
4394# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4395case `${MAKE-make} -f conftest.make 2>/dev/null` in
4396  *@@@%%%=?*=@@@%%%*)
4397    eval ac_cv_prog_make_${ac_make}_set=yes;;
4398  *)
4399    eval ac_cv_prog_make_${ac_make}_set=no;;
4400esac
4401rm -f conftest.make
4402fi
4403if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4404  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4405printf "%s\n" "yes" >&6; }
4406  SET_MAKE=
4407else
4408  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4409printf "%s\n" "no" >&6; }
4410  SET_MAKE="MAKE=${MAKE-make}"
4411fi
4412
4413rm -rf .tst 2>/dev/null
4414mkdir .tst 2>/dev/null
4415if test -d .tst; then
4416  am__leading_dot=.
4417else
4418  am__leading_dot=_
4419fi
4420rmdir .tst 2>/dev/null
4421
4422DEPDIR="${am__leading_dot}deps"
4423
4424ac_config_commands="$ac_config_commands depfiles"
4425
4426{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4427printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4428cat > confinc.mk << 'END'
4429am__doit:
4430	@echo this is the am__doit target >confinc.out
4431.PHONY: am__doit
4432END
4433am__include="#"
4434am__quote=
4435# BSD make does it like this.
4436echo '.include "confinc.mk" # ignored' > confmf.BSD
4437# Other make implementations (GNU, Solaris 10, AIX) do it like this.
4438echo 'include confinc.mk # ignored' > confmf.GNU
4439_am_result=no
4440for s in GNU BSD; do
4441  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4442   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4443   ac_status=$?
4444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4445   (exit $ac_status); }
4446  case $?:`cat confinc.out 2>/dev/null` in #(
4447  '0:this is the am__doit target') :
4448    case $s in #(
4449  BSD) :
4450    am__include='.include' am__quote='"' ;; #(
4451  *) :
4452    am__include='include' am__quote='' ;;
4453esac ;; #(
4454  *) :
4455     ;;
4456esac
4457  if test "$am__include" != "#"; then
4458    _am_result="yes ($s style)"
4459    break
4460  fi
4461done
4462rm -f confinc.* confmf.*
4463{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4464printf "%s\n" "${_am_result}" >&6; }
4465
4466# Check whether --enable-dependency-tracking was given.
4467if test ${enable_dependency_tracking+y}
4468then :
4469  enableval=$enable_dependency_tracking;
4470fi
4471
4472if test "x$enable_dependency_tracking" != xno; then
4473  am_depcomp="$ac_aux_dir/depcomp"
4474  AMDEPBACKSLASH='\'
4475  am__nodep='_no'
4476fi
4477 if test "x$enable_dependency_tracking" != xno; then
4478  AMDEP_TRUE=
4479  AMDEP_FALSE='#'
4480else
4481  AMDEP_TRUE='#'
4482  AMDEP_FALSE=
4483fi
4484
4485
4486# Check whether --enable-silent-rules was given.
4487if test ${enable_silent_rules+y}
4488then :
4489  enableval=$enable_silent_rules;
4490fi
4491
4492case $enable_silent_rules in # (((
4493  yes) AM_DEFAULT_VERBOSITY=0;;
4494   no) AM_DEFAULT_VERBOSITY=1;;
4495    *) AM_DEFAULT_VERBOSITY=1;;
4496esac
4497am_make=${MAKE-make}
4498{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4499printf %s "checking whether $am_make supports nested variables... " >&6; }
4500if test ${am_cv_make_support_nested_variables+y}
4501then :
4502  printf %s "(cached) " >&6
4503else $as_nop
4504  if printf "%s\n" 'TRUE=$(BAR$(V))
4505BAR0=false
4506BAR1=true
4507V=1
4508am__doit:
4509	@$(TRUE)
4510.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4511  am_cv_make_support_nested_variables=yes
4512else
4513  am_cv_make_support_nested_variables=no
4514fi
4515fi
4516{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4517printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4518if test $am_cv_make_support_nested_variables = yes; then
4519    AM_V='$(V)'
4520  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4521else
4522  AM_V=$AM_DEFAULT_VERBOSITY
4523  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4524fi
4525AM_BACKSLASH='\'
4526
4527if test "`cd $srcdir && pwd`" != "`pwd`"; then
4528  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4529  # is not polluted with repeated "-I."
4530  am__isrc=' -I$(srcdir)'
4531  # test to see if srcdir already configured
4532  if test -f $srcdir/config.status; then
4533    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4534  fi
4535fi
4536
4537# test whether we have cygpath
4538if test -z "$CYGPATH_W"; then
4539  if (cygpath --version) >/dev/null 2>/dev/null; then
4540    CYGPATH_W='cygpath -w'
4541  else
4542    CYGPATH_W=echo
4543  fi
4544fi
4545
4546
4547# Define the identity of the package.
4548 PACKAGE='libXdmcp'
4549 VERSION='1.1.4'
4550
4551
4552printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
4553
4554
4555printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
4556
4557# Some tools Automake needs.
4558
4559ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4560
4561
4562AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4563
4564
4565AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4566
4567
4568AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4569
4570
4571MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4572
4573# For better backward compatibility.  To be removed once Automake 1.9.x
4574# dies out for good.  For more background, see:
4575# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4576# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4577mkdir_p='$(MKDIR_P)'
4578
4579# We need awk for the "check" target (and possibly the TAP driver).  The
4580# system "awk" is bad on some platforms.
4581# Always define AMTAR for backward compatibility.  Yes, it's still used
4582# in the wild :-(  We should find a proper way to deprecate it ...
4583AMTAR='$${TAR-tar}'
4584
4585
4586# We'll loop over all known methods to create a tar archive until one works.
4587_am_tools='gnutar  pax cpio none'
4588
4589am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4590
4591
4592
4593
4594
4595depcc="$CC"   am_compiler_list=
4596
4597{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4598printf %s "checking dependency style of $depcc... " >&6; }
4599if test ${am_cv_CC_dependencies_compiler_type+y}
4600then :
4601  printf %s "(cached) " >&6
4602else $as_nop
4603  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4604  # We make a subdir and do the tests there.  Otherwise we can end up
4605  # making bogus files that we don't know about and never remove.  For
4606  # instance it was reported that on HP-UX the gcc test will end up
4607  # making a dummy file named 'D' -- because '-MD' means "put the output
4608  # in D".
4609  rm -rf conftest.dir
4610  mkdir conftest.dir
4611  # Copy depcomp to subdir because otherwise we won't find it if we're
4612  # using a relative directory.
4613  cp "$am_depcomp" conftest.dir
4614  cd conftest.dir
4615  # We will build objects and dependencies in a subdirectory because
4616  # it helps to detect inapplicable dependency modes.  For instance
4617  # both Tru64's cc and ICC support -MD to output dependencies as a
4618  # side effect of compilation, but ICC will put the dependencies in
4619  # the current directory while Tru64 will put them in the object
4620  # directory.
4621  mkdir sub
4622
4623  am_cv_CC_dependencies_compiler_type=none
4624  if test "$am_compiler_list" = ""; then
4625     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4626  fi
4627  am__universal=false
4628  case " $depcc " in #(
4629     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4630     esac
4631
4632  for depmode in $am_compiler_list; do
4633    # Setup a source with many dependencies, because some compilers
4634    # like to wrap large dependency lists on column 80 (with \), and
4635    # we should not choose a depcomp mode which is confused by this.
4636    #
4637    # We need to recreate these files for each test, as the compiler may
4638    # overwrite some of them when testing with obscure command lines.
4639    # This happens at least with the AIX C compiler.
4640    : > sub/conftest.c
4641    for i in 1 2 3 4 5 6; do
4642      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4643      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4644      # Solaris 10 /bin/sh.
4645      echo '/* dummy */' > sub/conftst$i.h
4646    done
4647    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4648
4649    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4650    # mode.  It turns out that the SunPro C++ compiler does not properly
4651    # handle '-M -o', and we need to detect this.  Also, some Intel
4652    # versions had trouble with output in subdirs.
4653    am__obj=sub/conftest.${OBJEXT-o}
4654    am__minus_obj="-o $am__obj"
4655    case $depmode in
4656    gcc)
4657      # This depmode causes a compiler race in universal mode.
4658      test "$am__universal" = false || continue
4659      ;;
4660    nosideeffect)
4661      # After this tag, mechanisms are not by side-effect, so they'll
4662      # only be used when explicitly requested.
4663      if test "x$enable_dependency_tracking" = xyes; then
4664	continue
4665      else
4666	break
4667      fi
4668      ;;
4669    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4670      # This compiler won't grok '-c -o', but also, the minuso test has
4671      # not run yet.  These depmodes are late enough in the game, and
4672      # so weak that their functioning should not be impacted.
4673      am__obj=conftest.${OBJEXT-o}
4674      am__minus_obj=
4675      ;;
4676    none) break ;;
4677    esac
4678    if depmode=$depmode \
4679       source=sub/conftest.c object=$am__obj \
4680       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4681       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4682         >/dev/null 2>conftest.err &&
4683       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4684       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4685       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4686       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4687      # icc doesn't choke on unknown options, it will just issue warnings
4688      # or remarks (even with -Werror).  So we grep stderr for any message
4689      # that says an option was ignored or not supported.
4690      # When given -MP, icc 7.0 and 7.1 complain thusly:
4691      #   icc: Command line warning: ignoring option '-M'; no argument required
4692      # The diagnosis changed in icc 8.0:
4693      #   icc: Command line remark: option '-MP' not supported
4694      if (grep 'ignoring option' conftest.err ||
4695          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4696        am_cv_CC_dependencies_compiler_type=$depmode
4697        break
4698      fi
4699    fi
4700  done
4701
4702  cd ..
4703  rm -rf conftest.dir
4704else
4705  am_cv_CC_dependencies_compiler_type=none
4706fi
4707
4708fi
4709{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4710printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4711CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4712
4713 if
4714  test "x$enable_dependency_tracking" != xno \
4715  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4716  am__fastdepCC_TRUE=
4717  am__fastdepCC_FALSE='#'
4718else
4719  am__fastdepCC_TRUE='#'
4720  am__fastdepCC_FALSE=
4721fi
4722
4723
4724# Variables for tags utilities; see am/tags.am
4725if test -z "$CTAGS"; then
4726  CTAGS=ctags
4727fi
4728
4729if test -z "$ETAGS"; then
4730  ETAGS=etags
4731fi
4732
4733if test -z "$CSCOPE"; then
4734  CSCOPE=cscope
4735fi
4736
4737
4738
4739# POSIX will say in a future version that running "rm -f" with no argument
4740# is OK; and we want to be able to make that assumption in our Makefile
4741# recipes.  So use an aggressive probe to check that the usage we want is
4742# actually supported "in the wild" to an acceptable degree.
4743# See automake bug#10828.
4744# To make any issue more visible, cause the running configure to be aborted
4745# by default if the 'rm' program in use doesn't match our expectations; the
4746# user can still override this though.
4747if rm -f && rm -fr && rm -rf; then : OK; else
4748  cat >&2 <<'END'
4749Oops!
4750
4751Your 'rm' program seems unable to run without file operands specified
4752on the command line, even when the '-f' option is present.  This is contrary
4753to the behaviour of most rm programs out there, and not conforming with
4754the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4755
4756Please tell bug-automake@gnu.org about your system, including the value
4757of your $PATH and any error possibly output before this message.  This
4758can help us improve future automake versions.
4759
4760END
4761  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4762    echo 'Configuration will proceed anyway, since you have set the' >&2
4763    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4764    echo >&2
4765  else
4766    cat >&2 <<'END'
4767Aborting the configuration process, to ensure you take notice of the issue.
4768
4769You can download and install GNU coreutils to get an 'rm' implementation
4770that behaves properly: <https://www.gnu.org/software/coreutils/>.
4771
4772If you want to complete the configuration process using your problematic
4773'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4774to "yes", and re-run configure.
4775
4776END
4777    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4778  fi
4779fi
4780
4781
4782# Initialize libtool
4783
4784
4785  # Make sure we can run config.sub.
4786$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4787  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4788
4789{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4790printf %s "checking build system type... " >&6; }
4791if test ${ac_cv_build+y}
4792then :
4793  printf %s "(cached) " >&6
4794else $as_nop
4795  ac_build_alias=$build_alias
4796test "x$ac_build_alias" = x &&
4797  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4798test "x$ac_build_alias" = x &&
4799  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4800ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4801  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4802
4803fi
4804{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4805printf "%s\n" "$ac_cv_build" >&6; }
4806case $ac_cv_build in
4807*-*-*) ;;
4808*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4809esac
4810build=$ac_cv_build
4811ac_save_IFS=$IFS; IFS='-'
4812set x $ac_cv_build
4813shift
4814build_cpu=$1
4815build_vendor=$2
4816shift; shift
4817# Remember, the first character of IFS is used to create $*,
4818# except with old shells:
4819build_os=$*
4820IFS=$ac_save_IFS
4821case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4822
4823
4824{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4825printf %s "checking host system type... " >&6; }
4826if test ${ac_cv_host+y}
4827then :
4828  printf %s "(cached) " >&6
4829else $as_nop
4830  if test "x$host_alias" = x; then
4831  ac_cv_host=$ac_cv_build
4832else
4833  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4834    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4835fi
4836
4837fi
4838{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4839printf "%s\n" "$ac_cv_host" >&6; }
4840case $ac_cv_host in
4841*-*-*) ;;
4842*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4843esac
4844host=$ac_cv_host
4845ac_save_IFS=$IFS; IFS='-'
4846set x $ac_cv_host
4847shift
4848host_cpu=$1
4849host_vendor=$2
4850shift; shift
4851# Remember, the first character of IFS is used to create $*,
4852# except with old shells:
4853host_os=$*
4854IFS=$ac_save_IFS
4855case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4856
4857
4858enable_win32_dll=yes
4859
4860case $host in
4861*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
4862  if test -n "$ac_tool_prefix"; then
4863  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4864set dummy ${ac_tool_prefix}as; ac_word=$2
4865{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4866printf %s "checking for $ac_word... " >&6; }
4867if test ${ac_cv_prog_AS+y}
4868then :
4869  printf %s "(cached) " >&6
4870else $as_nop
4871  if test -n "$AS"; then
4872  ac_cv_prog_AS="$AS" # Let the user override the test.
4873else
4874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4875for as_dir in $PATH
4876do
4877  IFS=$as_save_IFS
4878  case $as_dir in #(((
4879    '') as_dir=./ ;;
4880    */) ;;
4881    *) as_dir=$as_dir/ ;;
4882  esac
4883    for ac_exec_ext in '' $ac_executable_extensions; do
4884  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4885    ac_cv_prog_AS="${ac_tool_prefix}as"
4886    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4887    break 2
4888  fi
4889done
4890  done
4891IFS=$as_save_IFS
4892
4893fi
4894fi
4895AS=$ac_cv_prog_AS
4896if test -n "$AS"; then
4897  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
4898printf "%s\n" "$AS" >&6; }
4899else
4900  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4901printf "%s\n" "no" >&6; }
4902fi
4903
4904
4905fi
4906if test -z "$ac_cv_prog_AS"; then
4907  ac_ct_AS=$AS
4908  # Extract the first word of "as", so it can be a program name with args.
4909set dummy as; ac_word=$2
4910{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4911printf %s "checking for $ac_word... " >&6; }
4912if test ${ac_cv_prog_ac_ct_AS+y}
4913then :
4914  printf %s "(cached) " >&6
4915else $as_nop
4916  if test -n "$ac_ct_AS"; then
4917  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4918else
4919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4920for as_dir in $PATH
4921do
4922  IFS=$as_save_IFS
4923  case $as_dir in #(((
4924    '') as_dir=./ ;;
4925    */) ;;
4926    *) as_dir=$as_dir/ ;;
4927  esac
4928    for ac_exec_ext in '' $ac_executable_extensions; do
4929  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4930    ac_cv_prog_ac_ct_AS="as"
4931    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4932    break 2
4933  fi
4934done
4935  done
4936IFS=$as_save_IFS
4937
4938fi
4939fi
4940ac_ct_AS=$ac_cv_prog_ac_ct_AS
4941if test -n "$ac_ct_AS"; then
4942  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
4943printf "%s\n" "$ac_ct_AS" >&6; }
4944else
4945  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4946printf "%s\n" "no" >&6; }
4947fi
4948
4949  if test "x$ac_ct_AS" = x; then
4950    AS="false"
4951  else
4952    case $cross_compiling:$ac_tool_warned in
4953yes:)
4954{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4955printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4956ac_tool_warned=yes ;;
4957esac
4958    AS=$ac_ct_AS
4959  fi
4960else
4961  AS="$ac_cv_prog_AS"
4962fi
4963
4964  if test -n "$ac_tool_prefix"; then
4965  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4966set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4967{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4968printf %s "checking for $ac_word... " >&6; }
4969if test ${ac_cv_prog_DLLTOOL+y}
4970then :
4971  printf %s "(cached) " >&6
4972else $as_nop
4973  if test -n "$DLLTOOL"; then
4974  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4975else
4976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4977for as_dir in $PATH
4978do
4979  IFS=$as_save_IFS
4980  case $as_dir in #(((
4981    '') as_dir=./ ;;
4982    */) ;;
4983    *) as_dir=$as_dir/ ;;
4984  esac
4985    for ac_exec_ext in '' $ac_executable_extensions; do
4986  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4987    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4988    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4989    break 2
4990  fi
4991done
4992  done
4993IFS=$as_save_IFS
4994
4995fi
4996fi
4997DLLTOOL=$ac_cv_prog_DLLTOOL
4998if test -n "$DLLTOOL"; then
4999  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5000printf "%s\n" "$DLLTOOL" >&6; }
5001else
5002  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5003printf "%s\n" "no" >&6; }
5004fi
5005
5006
5007fi
5008if test -z "$ac_cv_prog_DLLTOOL"; then
5009  ac_ct_DLLTOOL=$DLLTOOL
5010  # Extract the first word of "dlltool", so it can be a program name with args.
5011set dummy dlltool; ac_word=$2
5012{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5013printf %s "checking for $ac_word... " >&6; }
5014if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
5015then :
5016  printf %s "(cached) " >&6
5017else $as_nop
5018  if test -n "$ac_ct_DLLTOOL"; then
5019  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5020else
5021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5022for as_dir in $PATH
5023do
5024  IFS=$as_save_IFS
5025  case $as_dir in #(((
5026    '') as_dir=./ ;;
5027    */) ;;
5028    *) as_dir=$as_dir/ ;;
5029  esac
5030    for ac_exec_ext in '' $ac_executable_extensions; do
5031  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5032    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5033    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5034    break 2
5035  fi
5036done
5037  done
5038IFS=$as_save_IFS
5039
5040fi
5041fi
5042ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5043if test -n "$ac_ct_DLLTOOL"; then
5044  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5045printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
5046else
5047  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5048printf "%s\n" "no" >&6; }
5049fi
5050
5051  if test "x$ac_ct_DLLTOOL" = x; then
5052    DLLTOOL="false"
5053  else
5054    case $cross_compiling:$ac_tool_warned in
5055yes:)
5056{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5057printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5058ac_tool_warned=yes ;;
5059esac
5060    DLLTOOL=$ac_ct_DLLTOOL
5061  fi
5062else
5063  DLLTOOL="$ac_cv_prog_DLLTOOL"
5064fi
5065
5066  if test -n "$ac_tool_prefix"; then
5067  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5068set dummy ${ac_tool_prefix}objdump; ac_word=$2
5069{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5070printf %s "checking for $ac_word... " >&6; }
5071if test ${ac_cv_prog_OBJDUMP+y}
5072then :
5073  printf %s "(cached) " >&6
5074else $as_nop
5075  if test -n "$OBJDUMP"; then
5076  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5077else
5078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5079for as_dir in $PATH
5080do
5081  IFS=$as_save_IFS
5082  case $as_dir in #(((
5083    '') as_dir=./ ;;
5084    */) ;;
5085    *) as_dir=$as_dir/ ;;
5086  esac
5087    for ac_exec_ext in '' $ac_executable_extensions; do
5088  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5089    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5090    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5091    break 2
5092  fi
5093done
5094  done
5095IFS=$as_save_IFS
5096
5097fi
5098fi
5099OBJDUMP=$ac_cv_prog_OBJDUMP
5100if test -n "$OBJDUMP"; then
5101  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5102printf "%s\n" "$OBJDUMP" >&6; }
5103else
5104  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5105printf "%s\n" "no" >&6; }
5106fi
5107
5108
5109fi
5110if test -z "$ac_cv_prog_OBJDUMP"; then
5111  ac_ct_OBJDUMP=$OBJDUMP
5112  # Extract the first word of "objdump", so it can be a program name with args.
5113set dummy objdump; ac_word=$2
5114{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5115printf %s "checking for $ac_word... " >&6; }
5116if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
5117then :
5118  printf %s "(cached) " >&6
5119else $as_nop
5120  if test -n "$ac_ct_OBJDUMP"; then
5121  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5122else
5123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5124for as_dir in $PATH
5125do
5126  IFS=$as_save_IFS
5127  case $as_dir in #(((
5128    '') as_dir=./ ;;
5129    */) ;;
5130    *) as_dir=$as_dir/ ;;
5131  esac
5132    for ac_exec_ext in '' $ac_executable_extensions; do
5133  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5134    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5135    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5136    break 2
5137  fi
5138done
5139  done
5140IFS=$as_save_IFS
5141
5142fi
5143fi
5144ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5145if test -n "$ac_ct_OBJDUMP"; then
5146  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5147printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
5148else
5149  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5150printf "%s\n" "no" >&6; }
5151fi
5152
5153  if test "x$ac_ct_OBJDUMP" = x; then
5154    OBJDUMP="false"
5155  else
5156    case $cross_compiling:$ac_tool_warned in
5157yes:)
5158{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5159printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5160ac_tool_warned=yes ;;
5161esac
5162    OBJDUMP=$ac_ct_OBJDUMP
5163  fi
5164else
5165  OBJDUMP="$ac_cv_prog_OBJDUMP"
5166fi
5167
5168  ;;
5169esac
5170
5171test -z "$AS" && AS=as
5172
5173
5174
5175
5176
5177test -z "$DLLTOOL" && DLLTOOL=dlltool
5178
5179
5180
5181
5182
5183test -z "$OBJDUMP" && OBJDUMP=objdump
5184
5185
5186
5187
5188
5189
5190
5191case `pwd` in
5192  *\ * | *\	*)
5193    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5194printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5195esac
5196
5197
5198
5199macro_version='2.4.7'
5200macro_revision='2.4.7'
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215ltmain=$ac_aux_dir/ltmain.sh
5216
5217# Backslashify metacharacters that are still active within
5218# double-quoted strings.
5219sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5220
5221# Same as above, but do not quote variable references.
5222double_quote_subst='s/\(["`\\]\)/\\\1/g'
5223
5224# Sed substitution to delay expansion of an escaped shell variable in a
5225# double_quote_subst'ed string.
5226delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5227
5228# Sed substitution to delay expansion of an escaped single quote.
5229delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5230
5231# Sed substitution to avoid accidental globbing in evaled expressions
5232no_glob_subst='s/\*/\\\*/g'
5233
5234ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5235ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5236ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5237
5238{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5239printf %s "checking how to print strings... " >&6; }
5240# Test print first, because it will be a builtin if present.
5241if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5242   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5243  ECHO='print -r --'
5244elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5245  ECHO='printf %s\n'
5246else
5247  # Use this function as a fallback that always works.
5248  func_fallback_echo ()
5249  {
5250    eval 'cat <<_LTECHO_EOF
5251$1
5252_LTECHO_EOF'
5253  }
5254  ECHO='func_fallback_echo'
5255fi
5256
5257# func_echo_all arg...
5258# Invoke $ECHO with all args, space-separated.
5259func_echo_all ()
5260{
5261    $ECHO ""
5262}
5263
5264case $ECHO in
5265  printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5266printf "%s\n" "printf" >&6; } ;;
5267  print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5268printf "%s\n" "print -r" >&6; } ;;
5269  *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5270printf "%s\n" "cat" >&6; } ;;
5271esac
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5287printf %s "checking for a sed that does not truncate output... " >&6; }
5288if test ${ac_cv_path_SED+y}
5289then :
5290  printf %s "(cached) " >&6
5291else $as_nop
5292            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5293     for ac_i in 1 2 3 4 5 6 7; do
5294       ac_script="$ac_script$as_nl$ac_script"
5295     done
5296     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5297     { ac_script=; unset ac_script;}
5298     if test -z "$SED"; then
5299  ac_path_SED_found=false
5300  # Loop through the user's path and test for each of PROGNAME-LIST
5301  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5302for as_dir in $PATH
5303do
5304  IFS=$as_save_IFS
5305  case $as_dir in #(((
5306    '') as_dir=./ ;;
5307    */) ;;
5308    *) as_dir=$as_dir/ ;;
5309  esac
5310    for ac_prog in sed gsed
5311   do
5312    for ac_exec_ext in '' $ac_executable_extensions; do
5313      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5314      as_fn_executable_p "$ac_path_SED" || continue
5315# Check for GNU ac_path_SED and select it if it is found.
5316  # Check for GNU $ac_path_SED
5317case `"$ac_path_SED" --version 2>&1` in
5318*GNU*)
5319  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5320*)
5321  ac_count=0
5322  printf %s 0123456789 >"conftest.in"
5323  while :
5324  do
5325    cat "conftest.in" "conftest.in" >"conftest.tmp"
5326    mv "conftest.tmp" "conftest.in"
5327    cp "conftest.in" "conftest.nl"
5328    printf "%s\n" '' >> "conftest.nl"
5329    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5330    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5331    as_fn_arith $ac_count + 1 && ac_count=$as_val
5332    if test $ac_count -gt ${ac_path_SED_max-0}; then
5333      # Best one so far, save it but keep looking for a better one
5334      ac_cv_path_SED="$ac_path_SED"
5335      ac_path_SED_max=$ac_count
5336    fi
5337    # 10*(2^10) chars as input seems more than enough
5338    test $ac_count -gt 10 && break
5339  done
5340  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5341esac
5342
5343      $ac_path_SED_found && break 3
5344    done
5345  done
5346  done
5347IFS=$as_save_IFS
5348  if test -z "$ac_cv_path_SED"; then
5349    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5350  fi
5351else
5352  ac_cv_path_SED=$SED
5353fi
5354
5355fi
5356{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5357printf "%s\n" "$ac_cv_path_SED" >&6; }
5358 SED="$ac_cv_path_SED"
5359  rm -f conftest.sed
5360
5361test -z "$SED" && SED=sed
5362Xsed="$SED -e 1s/^X//"
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5375printf %s "checking for grep that handles long lines and -e... " >&6; }
5376if test ${ac_cv_path_GREP+y}
5377then :
5378  printf %s "(cached) " >&6
5379else $as_nop
5380  if test -z "$GREP"; then
5381  ac_path_GREP_found=false
5382  # Loop through the user's path and test for each of PROGNAME-LIST
5383  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5384for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5385do
5386  IFS=$as_save_IFS
5387  case $as_dir in #(((
5388    '') as_dir=./ ;;
5389    */) ;;
5390    *) as_dir=$as_dir/ ;;
5391  esac
5392    for ac_prog in grep ggrep
5393   do
5394    for ac_exec_ext in '' $ac_executable_extensions; do
5395      ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5396      as_fn_executable_p "$ac_path_GREP" || continue
5397# Check for GNU ac_path_GREP and select it if it is found.
5398  # Check for GNU $ac_path_GREP
5399case `"$ac_path_GREP" --version 2>&1` in
5400*GNU*)
5401  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5402*)
5403  ac_count=0
5404  printf %s 0123456789 >"conftest.in"
5405  while :
5406  do
5407    cat "conftest.in" "conftest.in" >"conftest.tmp"
5408    mv "conftest.tmp" "conftest.in"
5409    cp "conftest.in" "conftest.nl"
5410    printf "%s\n" 'GREP' >> "conftest.nl"
5411    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5412    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5413    as_fn_arith $ac_count + 1 && ac_count=$as_val
5414    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5415      # Best one so far, save it but keep looking for a better one
5416      ac_cv_path_GREP="$ac_path_GREP"
5417      ac_path_GREP_max=$ac_count
5418    fi
5419    # 10*(2^10) chars as input seems more than enough
5420    test $ac_count -gt 10 && break
5421  done
5422  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5423esac
5424
5425      $ac_path_GREP_found && break 3
5426    done
5427  done
5428  done
5429IFS=$as_save_IFS
5430  if test -z "$ac_cv_path_GREP"; then
5431    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5432  fi
5433else
5434  ac_cv_path_GREP=$GREP
5435fi
5436
5437fi
5438{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5439printf "%s\n" "$ac_cv_path_GREP" >&6; }
5440 GREP="$ac_cv_path_GREP"
5441
5442
5443{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5444printf %s "checking for egrep... " >&6; }
5445if test ${ac_cv_path_EGREP+y}
5446then :
5447  printf %s "(cached) " >&6
5448else $as_nop
5449  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5450   then ac_cv_path_EGREP="$GREP -E"
5451   else
5452     if test -z "$EGREP"; then
5453  ac_path_EGREP_found=false
5454  # Loop through the user's path and test for each of PROGNAME-LIST
5455  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5456for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5457do
5458  IFS=$as_save_IFS
5459  case $as_dir in #(((
5460    '') as_dir=./ ;;
5461    */) ;;
5462    *) as_dir=$as_dir/ ;;
5463  esac
5464    for ac_prog in egrep
5465   do
5466    for ac_exec_ext in '' $ac_executable_extensions; do
5467      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5468      as_fn_executable_p "$ac_path_EGREP" || continue
5469# Check for GNU ac_path_EGREP and select it if it is found.
5470  # Check for GNU $ac_path_EGREP
5471case `"$ac_path_EGREP" --version 2>&1` in
5472*GNU*)
5473  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5474*)
5475  ac_count=0
5476  printf %s 0123456789 >"conftest.in"
5477  while :
5478  do
5479    cat "conftest.in" "conftest.in" >"conftest.tmp"
5480    mv "conftest.tmp" "conftest.in"
5481    cp "conftest.in" "conftest.nl"
5482    printf "%s\n" 'EGREP' >> "conftest.nl"
5483    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5484    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5485    as_fn_arith $ac_count + 1 && ac_count=$as_val
5486    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5487      # Best one so far, save it but keep looking for a better one
5488      ac_cv_path_EGREP="$ac_path_EGREP"
5489      ac_path_EGREP_max=$ac_count
5490    fi
5491    # 10*(2^10) chars as input seems more than enough
5492    test $ac_count -gt 10 && break
5493  done
5494  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5495esac
5496
5497      $ac_path_EGREP_found && break 3
5498    done
5499  done
5500  done
5501IFS=$as_save_IFS
5502  if test -z "$ac_cv_path_EGREP"; then
5503    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5504  fi
5505else
5506  ac_cv_path_EGREP=$EGREP
5507fi
5508
5509   fi
5510fi
5511{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5512printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5513 EGREP="$ac_cv_path_EGREP"
5514
5515
5516{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5517printf %s "checking for fgrep... " >&6; }
5518if test ${ac_cv_path_FGREP+y}
5519then :
5520  printf %s "(cached) " >&6
5521else $as_nop
5522  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5523   then ac_cv_path_FGREP="$GREP -F"
5524   else
5525     if test -z "$FGREP"; then
5526  ac_path_FGREP_found=false
5527  # Loop through the user's path and test for each of PROGNAME-LIST
5528  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5529for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5530do
5531  IFS=$as_save_IFS
5532  case $as_dir in #(((
5533    '') as_dir=./ ;;
5534    */) ;;
5535    *) as_dir=$as_dir/ ;;
5536  esac
5537    for ac_prog in fgrep
5538   do
5539    for ac_exec_ext in '' $ac_executable_extensions; do
5540      ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5541      as_fn_executable_p "$ac_path_FGREP" || continue
5542# Check for GNU ac_path_FGREP and select it if it is found.
5543  # Check for GNU $ac_path_FGREP
5544case `"$ac_path_FGREP" --version 2>&1` in
5545*GNU*)
5546  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5547*)
5548  ac_count=0
5549  printf %s 0123456789 >"conftest.in"
5550  while :
5551  do
5552    cat "conftest.in" "conftest.in" >"conftest.tmp"
5553    mv "conftest.tmp" "conftest.in"
5554    cp "conftest.in" "conftest.nl"
5555    printf "%s\n" 'FGREP' >> "conftest.nl"
5556    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5557    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5558    as_fn_arith $ac_count + 1 && ac_count=$as_val
5559    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5560      # Best one so far, save it but keep looking for a better one
5561      ac_cv_path_FGREP="$ac_path_FGREP"
5562      ac_path_FGREP_max=$ac_count
5563    fi
5564    # 10*(2^10) chars as input seems more than enough
5565    test $ac_count -gt 10 && break
5566  done
5567  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5568esac
5569
5570      $ac_path_FGREP_found && break 3
5571    done
5572  done
5573  done
5574IFS=$as_save_IFS
5575  if test -z "$ac_cv_path_FGREP"; then
5576    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5577  fi
5578else
5579  ac_cv_path_FGREP=$FGREP
5580fi
5581
5582   fi
5583fi
5584{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5585printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5586 FGREP="$ac_cv_path_FGREP"
5587
5588
5589test -z "$GREP" && GREP=grep
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609# Check whether --with-gnu-ld was given.
5610if test ${with_gnu_ld+y}
5611then :
5612  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5613else $as_nop
5614  with_gnu_ld=no
5615fi
5616
5617ac_prog=ld
5618if test yes = "$GCC"; then
5619  # Check if gcc -print-prog-name=ld gives a path.
5620  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5621printf %s "checking for ld used by $CC... " >&6; }
5622  case $host in
5623  *-*-mingw*)
5624    # gcc leaves a trailing carriage return, which upsets mingw
5625    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5626  *)
5627    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5628  esac
5629  case $ac_prog in
5630    # Accept absolute paths.
5631    [\\/]* | ?:[\\/]*)
5632      re_direlt='/[^/][^/]*/\.\./'
5633      # Canonicalize the pathname of ld
5634      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5635      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5636	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5637      done
5638      test -z "$LD" && LD=$ac_prog
5639      ;;
5640  "")
5641    # If it fails, then pretend we aren't using GCC.
5642    ac_prog=ld
5643    ;;
5644  *)
5645    # If it is relative, then search for the first ld in PATH.
5646    with_gnu_ld=unknown
5647    ;;
5648  esac
5649elif test yes = "$with_gnu_ld"; then
5650  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5651printf %s "checking for GNU ld... " >&6; }
5652else
5653  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5654printf %s "checking for non-GNU ld... " >&6; }
5655fi
5656if test ${lt_cv_path_LD+y}
5657then :
5658  printf %s "(cached) " >&6
5659else $as_nop
5660  if test -z "$LD"; then
5661  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5662  for ac_dir in $PATH; do
5663    IFS=$lt_save_ifs
5664    test -z "$ac_dir" && ac_dir=.
5665    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5666      lt_cv_path_LD=$ac_dir/$ac_prog
5667      # Check to see if the program is GNU ld.  I'd rather use --version,
5668      # but apparently some variants of GNU ld only accept -v.
5669      # Break only if it was the GNU/non-GNU ld that we prefer.
5670      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5671      *GNU* | *'with BFD'*)
5672	test no != "$with_gnu_ld" && break
5673	;;
5674      *)
5675	test yes != "$with_gnu_ld" && break
5676	;;
5677      esac
5678    fi
5679  done
5680  IFS=$lt_save_ifs
5681else
5682  lt_cv_path_LD=$LD # Let the user override the test with a path.
5683fi
5684fi
5685
5686LD=$lt_cv_path_LD
5687if test -n "$LD"; then
5688  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5689printf "%s\n" "$LD" >&6; }
5690else
5691  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5692printf "%s\n" "no" >&6; }
5693fi
5694test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5695{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5696printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5697if test ${lt_cv_prog_gnu_ld+y}
5698then :
5699  printf %s "(cached) " >&6
5700else $as_nop
5701  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5702case `$LD -v 2>&1 </dev/null` in
5703*GNU* | *'with BFD'*)
5704  lt_cv_prog_gnu_ld=yes
5705  ;;
5706*)
5707  lt_cv_prog_gnu_ld=no
5708  ;;
5709esac
5710fi
5711{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5712printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5713with_gnu_ld=$lt_cv_prog_gnu_ld
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5724printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5725if test ${lt_cv_path_NM+y}
5726then :
5727  printf %s "(cached) " >&6
5728else $as_nop
5729  if test -n "$NM"; then
5730  # Let the user override the test.
5731  lt_cv_path_NM=$NM
5732else
5733  lt_nm_to_check=${ac_tool_prefix}nm
5734  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5735    lt_nm_to_check="$lt_nm_to_check nm"
5736  fi
5737  for lt_tmp_nm in $lt_nm_to_check; do
5738    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5739    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5740      IFS=$lt_save_ifs
5741      test -z "$ac_dir" && ac_dir=.
5742      tmp_nm=$ac_dir/$lt_tmp_nm
5743      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5744	# Check to see if the nm accepts a BSD-compat flag.
5745	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5746	#   nm: unknown option "B" ignored
5747	# Tru64's nm complains that /dev/null is an invalid object file
5748	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5749	case $build_os in
5750	mingw*) lt_bad_file=conftest.nm/nofile ;;
5751	*) lt_bad_file=/dev/null ;;
5752	esac
5753	case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5754	*$lt_bad_file* | *'Invalid file or object type'*)
5755	  lt_cv_path_NM="$tmp_nm -B"
5756	  break 2
5757	  ;;
5758	*)
5759	  case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5760	  */dev/null*)
5761	    lt_cv_path_NM="$tmp_nm -p"
5762	    break 2
5763	    ;;
5764	  *)
5765	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5766	    continue # so that we can try to find one that supports BSD flags
5767	    ;;
5768	  esac
5769	  ;;
5770	esac
5771      fi
5772    done
5773    IFS=$lt_save_ifs
5774  done
5775  : ${lt_cv_path_NM=no}
5776fi
5777fi
5778{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5779printf "%s\n" "$lt_cv_path_NM" >&6; }
5780if test no != "$lt_cv_path_NM"; then
5781  NM=$lt_cv_path_NM
5782else
5783  # Didn't find any BSD compatible name lister, look for dumpbin.
5784  if test -n "$DUMPBIN"; then :
5785    # Let the user override the test.
5786  else
5787    if test -n "$ac_tool_prefix"; then
5788  for ac_prog in dumpbin "link -dump"
5789  do
5790    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5791set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5792{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5793printf %s "checking for $ac_word... " >&6; }
5794if test ${ac_cv_prog_DUMPBIN+y}
5795then :
5796  printf %s "(cached) " >&6
5797else $as_nop
5798  if test -n "$DUMPBIN"; then
5799  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5800else
5801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5802for as_dir in $PATH
5803do
5804  IFS=$as_save_IFS
5805  case $as_dir in #(((
5806    '') as_dir=./ ;;
5807    */) ;;
5808    *) as_dir=$as_dir/ ;;
5809  esac
5810    for ac_exec_ext in '' $ac_executable_extensions; do
5811  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5812    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5813    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5814    break 2
5815  fi
5816done
5817  done
5818IFS=$as_save_IFS
5819
5820fi
5821fi
5822DUMPBIN=$ac_cv_prog_DUMPBIN
5823if test -n "$DUMPBIN"; then
5824  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5825printf "%s\n" "$DUMPBIN" >&6; }
5826else
5827  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5828printf "%s\n" "no" >&6; }
5829fi
5830
5831
5832    test -n "$DUMPBIN" && break
5833  done
5834fi
5835if test -z "$DUMPBIN"; then
5836  ac_ct_DUMPBIN=$DUMPBIN
5837  for ac_prog in dumpbin "link -dump"
5838do
5839  # Extract the first word of "$ac_prog", so it can be a program name with args.
5840set dummy $ac_prog; ac_word=$2
5841{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5842printf %s "checking for $ac_word... " >&6; }
5843if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5844then :
5845  printf %s "(cached) " >&6
5846else $as_nop
5847  if test -n "$ac_ct_DUMPBIN"; then
5848  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5849else
5850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5851for as_dir in $PATH
5852do
5853  IFS=$as_save_IFS
5854  case $as_dir in #(((
5855    '') as_dir=./ ;;
5856    */) ;;
5857    *) as_dir=$as_dir/ ;;
5858  esac
5859    for ac_exec_ext in '' $ac_executable_extensions; do
5860  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5861    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5862    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5863    break 2
5864  fi
5865done
5866  done
5867IFS=$as_save_IFS
5868
5869fi
5870fi
5871ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5872if test -n "$ac_ct_DUMPBIN"; then
5873  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5874printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5875else
5876  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5877printf "%s\n" "no" >&6; }
5878fi
5879
5880
5881  test -n "$ac_ct_DUMPBIN" && break
5882done
5883
5884  if test "x$ac_ct_DUMPBIN" = x; then
5885    DUMPBIN=":"
5886  else
5887    case $cross_compiling:$ac_tool_warned in
5888yes:)
5889{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5890printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5891ac_tool_warned=yes ;;
5892esac
5893    DUMPBIN=$ac_ct_DUMPBIN
5894  fi
5895fi
5896
5897    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5898    *COFF*)
5899      DUMPBIN="$DUMPBIN -symbols -headers"
5900      ;;
5901    *)
5902      DUMPBIN=:
5903      ;;
5904    esac
5905  fi
5906
5907  if test : != "$DUMPBIN"; then
5908    NM=$DUMPBIN
5909  fi
5910fi
5911test -z "$NM" && NM=nm
5912
5913
5914
5915
5916
5917
5918{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5919printf %s "checking the name lister ($NM) interface... " >&6; }
5920if test ${lt_cv_nm_interface+y}
5921then :
5922  printf %s "(cached) " >&6
5923else $as_nop
5924  lt_cv_nm_interface="BSD nm"
5925  echo "int some_variable = 0;" > conftest.$ac_ext
5926  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5927  (eval "$ac_compile" 2>conftest.err)
5928  cat conftest.err >&5
5929  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5930  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5931  cat conftest.err >&5
5932  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5933  cat conftest.out >&5
5934  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5935    lt_cv_nm_interface="MS dumpbin"
5936  fi
5937  rm -f conftest*
5938fi
5939{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5940printf "%s\n" "$lt_cv_nm_interface" >&6; }
5941
5942{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5943printf %s "checking whether ln -s works... " >&6; }
5944LN_S=$as_ln_s
5945if test "$LN_S" = "ln -s"; then
5946  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5947printf "%s\n" "yes" >&6; }
5948else
5949  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5950printf "%s\n" "no, using $LN_S" >&6; }
5951fi
5952
5953# find the maximum length of command line arguments
5954{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5955printf %s "checking the maximum length of command line arguments... " >&6; }
5956if test ${lt_cv_sys_max_cmd_len+y}
5957then :
5958  printf %s "(cached) " >&6
5959else $as_nop
5960    i=0
5961  teststring=ABCD
5962
5963  case $build_os in
5964  msdosdjgpp*)
5965    # On DJGPP, this test can blow up pretty badly due to problems in libc
5966    # (any single argument exceeding 2000 bytes causes a buffer overrun
5967    # during glob expansion).  Even if it were fixed, the result of this
5968    # check would be larger than it should be.
5969    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5970    ;;
5971
5972  gnu*)
5973    # Under GNU Hurd, this test is not required because there is
5974    # no limit to the length of command line arguments.
5975    # Libtool will interpret -1 as no limit whatsoever
5976    lt_cv_sys_max_cmd_len=-1;
5977    ;;
5978
5979  cygwin* | mingw* | cegcc*)
5980    # On Win9x/ME, this test blows up -- it succeeds, but takes
5981    # about 5 minutes as the teststring grows exponentially.
5982    # Worse, since 9x/ME are not pre-emptively multitasking,
5983    # you end up with a "frozen" computer, even though with patience
5984    # the test eventually succeeds (with a max line length of 256k).
5985    # Instead, let's just punt: use the minimum linelength reported by
5986    # all of the supported platforms: 8192 (on NT/2K/XP).
5987    lt_cv_sys_max_cmd_len=8192;
5988    ;;
5989
5990  mint*)
5991    # On MiNT this can take a long time and run out of memory.
5992    lt_cv_sys_max_cmd_len=8192;
5993    ;;
5994
5995  amigaos*)
5996    # On AmigaOS with pdksh, this test takes hours, literally.
5997    # So we just punt and use a minimum line length of 8192.
5998    lt_cv_sys_max_cmd_len=8192;
5999    ;;
6000
6001  bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
6002    # This has been around since 386BSD, at least.  Likely further.
6003    if test -x /sbin/sysctl; then
6004      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6005    elif test -x /usr/sbin/sysctl; then
6006      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6007    else
6008      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6009    fi
6010    # And add a safety zone
6011    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6012    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6013    ;;
6014
6015  interix*)
6016    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6017    lt_cv_sys_max_cmd_len=196608
6018    ;;
6019
6020  os2*)
6021    # The test takes a long time on OS/2.
6022    lt_cv_sys_max_cmd_len=8192
6023    ;;
6024
6025  osf*)
6026    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6027    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6028    # nice to cause kernel panics so lets avoid the loop below.
6029    # First set a reasonable default.
6030    lt_cv_sys_max_cmd_len=16384
6031    #
6032    if test -x /sbin/sysconfig; then
6033      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6034        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6035      esac
6036    fi
6037    ;;
6038  sco3.2v5*)
6039    lt_cv_sys_max_cmd_len=102400
6040    ;;
6041  sysv5* | sco5v6* | sysv4.2uw2*)
6042    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6043    if test -n "$kargmax"; then
6044      lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[	 ]//'`
6045    else
6046      lt_cv_sys_max_cmd_len=32768
6047    fi
6048    ;;
6049  *)
6050    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6051    if test -n "$lt_cv_sys_max_cmd_len" && \
6052       test undefined != "$lt_cv_sys_max_cmd_len"; then
6053      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6054      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6055    else
6056      # Make teststring a little bigger before we do anything with it.
6057      # a 1K string should be a reasonable start.
6058      for i in 1 2 3 4 5 6 7 8; do
6059        teststring=$teststring$teststring
6060      done
6061      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6062      # If test is not a shell built-in, we'll probably end up computing a
6063      # maximum length that is only half of the actual maximum length, but
6064      # we can't tell.
6065      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6066	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6067	      test 17 != "$i" # 1/2 MB should be enough
6068      do
6069        i=`expr $i + 1`
6070        teststring=$teststring$teststring
6071      done
6072      # Only check the string length outside the loop.
6073      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6074      teststring=
6075      # Add a significant safety factor because C++ compilers can tack on
6076      # massive amounts of additional arguments before passing them to the
6077      # linker.  It appears as though 1/2 is a usable value.
6078      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6079    fi
6080    ;;
6081  esac
6082
6083fi
6084
6085if test -n "$lt_cv_sys_max_cmd_len"; then
6086  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6087printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
6088else
6089  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
6090printf "%s\n" "none" >&6; }
6091fi
6092max_cmd_len=$lt_cv_sys_max_cmd_len
6093
6094
6095
6096
6097
6098
6099: ${CP="cp -f"}
6100: ${MV="mv -f"}
6101: ${RM="rm -f"}
6102
6103if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6104  lt_unset=unset
6105else
6106  lt_unset=false
6107fi
6108
6109
6110
6111
6112
6113# test EBCDIC or ASCII
6114case `echo X|tr X '\101'` in
6115 A) # ASCII based system
6116    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6117  lt_SP2NL='tr \040 \012'
6118  lt_NL2SP='tr \015\012 \040\040'
6119  ;;
6120 *) # EBCDIC based system
6121  lt_SP2NL='tr \100 \n'
6122  lt_NL2SP='tr \r\n \100\100'
6123  ;;
6124esac
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6135printf %s "checking how to convert $build file names to $host format... " >&6; }
6136if test ${lt_cv_to_host_file_cmd+y}
6137then :
6138  printf %s "(cached) " >&6
6139else $as_nop
6140  case $host in
6141  *-*-mingw* )
6142    case $build in
6143      *-*-mingw* ) # actually msys
6144        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6145        ;;
6146      *-*-cygwin* )
6147        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6148        ;;
6149      * ) # otherwise, assume *nix
6150        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6151        ;;
6152    esac
6153    ;;
6154  *-*-cygwin* )
6155    case $build in
6156      *-*-mingw* ) # actually msys
6157        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6158        ;;
6159      *-*-cygwin* )
6160        lt_cv_to_host_file_cmd=func_convert_file_noop
6161        ;;
6162      * ) # otherwise, assume *nix
6163        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6164        ;;
6165    esac
6166    ;;
6167  * ) # unhandled hosts (and "normal" native builds)
6168    lt_cv_to_host_file_cmd=func_convert_file_noop
6169    ;;
6170esac
6171
6172fi
6173
6174to_host_file_cmd=$lt_cv_to_host_file_cmd
6175{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6176printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
6177
6178
6179
6180
6181
6182{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6183printf %s "checking how to convert $build file names to toolchain format... " >&6; }
6184if test ${lt_cv_to_tool_file_cmd+y}
6185then :
6186  printf %s "(cached) " >&6
6187else $as_nop
6188  #assume ordinary cross tools, or native build.
6189lt_cv_to_tool_file_cmd=func_convert_file_noop
6190case $host in
6191  *-*-mingw* )
6192    case $build in
6193      *-*-mingw* ) # actually msys
6194        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6195        ;;
6196    esac
6197    ;;
6198esac
6199
6200fi
6201
6202to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6203{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6204printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6205
6206
6207
6208
6209
6210{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6211printf %s "checking for $LD option to reload object files... " >&6; }
6212if test ${lt_cv_ld_reload_flag+y}
6213then :
6214  printf %s "(cached) " >&6
6215else $as_nop
6216  lt_cv_ld_reload_flag='-r'
6217fi
6218{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6219printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6220reload_flag=$lt_cv_ld_reload_flag
6221case $reload_flag in
6222"" | " "*) ;;
6223*) reload_flag=" $reload_flag" ;;
6224esac
6225reload_cmds='$LD$reload_flag -o $output$reload_objs'
6226case $host_os in
6227  cygwin* | mingw* | pw32* | cegcc*)
6228    if test yes != "$GCC"; then
6229      reload_cmds=false
6230    fi
6231    ;;
6232  darwin*)
6233    if test yes = "$GCC"; then
6234      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6235    else
6236      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6237    fi
6238    ;;
6239esac
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249if test -n "$ac_tool_prefix"; then
6250  # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
6251set dummy ${ac_tool_prefix}file; ac_word=$2
6252{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6253printf %s "checking for $ac_word... " >&6; }
6254if test ${ac_cv_prog_FILECMD+y}
6255then :
6256  printf %s "(cached) " >&6
6257else $as_nop
6258  if test -n "$FILECMD"; then
6259  ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
6260else
6261as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6262for as_dir in $PATH
6263do
6264  IFS=$as_save_IFS
6265  case $as_dir in #(((
6266    '') as_dir=./ ;;
6267    */) ;;
6268    *) as_dir=$as_dir/ ;;
6269  esac
6270    for ac_exec_ext in '' $ac_executable_extensions; do
6271  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6272    ac_cv_prog_FILECMD="${ac_tool_prefix}file"
6273    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6274    break 2
6275  fi
6276done
6277  done
6278IFS=$as_save_IFS
6279
6280fi
6281fi
6282FILECMD=$ac_cv_prog_FILECMD
6283if test -n "$FILECMD"; then
6284  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
6285printf "%s\n" "$FILECMD" >&6; }
6286else
6287  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6288printf "%s\n" "no" >&6; }
6289fi
6290
6291
6292fi
6293if test -z "$ac_cv_prog_FILECMD"; then
6294  ac_ct_FILECMD=$FILECMD
6295  # Extract the first word of "file", so it can be a program name with args.
6296set dummy file; ac_word=$2
6297{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6298printf %s "checking for $ac_word... " >&6; }
6299if test ${ac_cv_prog_ac_ct_FILECMD+y}
6300then :
6301  printf %s "(cached) " >&6
6302else $as_nop
6303  if test -n "$ac_ct_FILECMD"; then
6304  ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
6305else
6306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6307for as_dir in $PATH
6308do
6309  IFS=$as_save_IFS
6310  case $as_dir in #(((
6311    '') as_dir=./ ;;
6312    */) ;;
6313    *) as_dir=$as_dir/ ;;
6314  esac
6315    for ac_exec_ext in '' $ac_executable_extensions; do
6316  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6317    ac_cv_prog_ac_ct_FILECMD="file"
6318    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6319    break 2
6320  fi
6321done
6322  done
6323IFS=$as_save_IFS
6324
6325fi
6326fi
6327ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
6328if test -n "$ac_ct_FILECMD"; then
6329  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
6330printf "%s\n" "$ac_ct_FILECMD" >&6; }
6331else
6332  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6333printf "%s\n" "no" >&6; }
6334fi
6335
6336  if test "x$ac_ct_FILECMD" = x; then
6337    FILECMD=":"
6338  else
6339    case $cross_compiling:$ac_tool_warned in
6340yes:)
6341{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6342printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6343ac_tool_warned=yes ;;
6344esac
6345    FILECMD=$ac_ct_FILECMD
6346  fi
6347else
6348  FILECMD="$ac_cv_prog_FILECMD"
6349fi
6350
6351
6352
6353
6354
6355
6356
6357if test -n "$ac_tool_prefix"; then
6358  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6359set dummy ${ac_tool_prefix}objdump; ac_word=$2
6360{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6361printf %s "checking for $ac_word... " >&6; }
6362if test ${ac_cv_prog_OBJDUMP+y}
6363then :
6364  printf %s "(cached) " >&6
6365else $as_nop
6366  if test -n "$OBJDUMP"; then
6367  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6368else
6369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6370for as_dir in $PATH
6371do
6372  IFS=$as_save_IFS
6373  case $as_dir in #(((
6374    '') as_dir=./ ;;
6375    */) ;;
6376    *) as_dir=$as_dir/ ;;
6377  esac
6378    for ac_exec_ext in '' $ac_executable_extensions; do
6379  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6380    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6381    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6382    break 2
6383  fi
6384done
6385  done
6386IFS=$as_save_IFS
6387
6388fi
6389fi
6390OBJDUMP=$ac_cv_prog_OBJDUMP
6391if test -n "$OBJDUMP"; then
6392  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6393printf "%s\n" "$OBJDUMP" >&6; }
6394else
6395  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6396printf "%s\n" "no" >&6; }
6397fi
6398
6399
6400fi
6401if test -z "$ac_cv_prog_OBJDUMP"; then
6402  ac_ct_OBJDUMP=$OBJDUMP
6403  # Extract the first word of "objdump", so it can be a program name with args.
6404set dummy objdump; ac_word=$2
6405{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6406printf %s "checking for $ac_word... " >&6; }
6407if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6408then :
6409  printf %s "(cached) " >&6
6410else $as_nop
6411  if test -n "$ac_ct_OBJDUMP"; then
6412  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6413else
6414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6415for as_dir in $PATH
6416do
6417  IFS=$as_save_IFS
6418  case $as_dir in #(((
6419    '') as_dir=./ ;;
6420    */) ;;
6421    *) as_dir=$as_dir/ ;;
6422  esac
6423    for ac_exec_ext in '' $ac_executable_extensions; do
6424  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6425    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6426    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6427    break 2
6428  fi
6429done
6430  done
6431IFS=$as_save_IFS
6432
6433fi
6434fi
6435ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6436if test -n "$ac_ct_OBJDUMP"; then
6437  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6438printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6439else
6440  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6441printf "%s\n" "no" >&6; }
6442fi
6443
6444  if test "x$ac_ct_OBJDUMP" = x; then
6445    OBJDUMP="false"
6446  else
6447    case $cross_compiling:$ac_tool_warned in
6448yes:)
6449{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6450printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6451ac_tool_warned=yes ;;
6452esac
6453    OBJDUMP=$ac_ct_OBJDUMP
6454  fi
6455else
6456  OBJDUMP="$ac_cv_prog_OBJDUMP"
6457fi
6458
6459test -z "$OBJDUMP" && OBJDUMP=objdump
6460
6461
6462
6463
6464
6465
6466{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6467printf %s "checking how to recognize dependent libraries... " >&6; }
6468if test ${lt_cv_deplibs_check_method+y}
6469then :
6470  printf %s "(cached) " >&6
6471else $as_nop
6472  lt_cv_file_magic_cmd='$MAGIC_CMD'
6473lt_cv_file_magic_test_file=
6474lt_cv_deplibs_check_method='unknown'
6475# Need to set the preceding variable on all platforms that support
6476# interlibrary dependencies.
6477# 'none' -- dependencies not supported.
6478# 'unknown' -- same as none, but documents that we really don't know.
6479# 'pass_all' -- all dependencies passed with no checks.
6480# 'test_compile' -- check by making test program.
6481# 'file_magic [[regex]]' -- check by looking for files in library path
6482# that responds to the $file_magic_cmd with a given extended regex.
6483# If you have 'file' or equivalent on your system and you're not sure
6484# whether 'pass_all' will *always* work, you probably want this one.
6485
6486case $host_os in
6487aix[4-9]*)
6488  lt_cv_deplibs_check_method=pass_all
6489  ;;
6490
6491beos*)
6492  lt_cv_deplibs_check_method=pass_all
6493  ;;
6494
6495bsdi[45]*)
6496  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6497  lt_cv_file_magic_cmd='$FILECMD -L'
6498  lt_cv_file_magic_test_file=/shlib/libc.so
6499  ;;
6500
6501cygwin*)
6502  # func_win32_libid is a shell function defined in ltmain.sh
6503  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6504  lt_cv_file_magic_cmd='func_win32_libid'
6505  ;;
6506
6507mingw* | pw32*)
6508  # Base MSYS/MinGW do not provide the 'file' command needed by
6509  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6510  # unless we find 'file', for example because we are cross-compiling.
6511  if ( file / ) >/dev/null 2>&1; then
6512    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6513    lt_cv_file_magic_cmd='func_win32_libid'
6514  else
6515    # Keep this pattern in sync with the one in func_win32_libid.
6516    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6517    lt_cv_file_magic_cmd='$OBJDUMP -f'
6518  fi
6519  ;;
6520
6521cegcc*)
6522  # use the weaker test based on 'objdump'. See mingw*.
6523  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6524  lt_cv_file_magic_cmd='$OBJDUMP -f'
6525  ;;
6526
6527darwin* | rhapsody*)
6528  lt_cv_deplibs_check_method=pass_all
6529  ;;
6530
6531freebsd* | dragonfly* | midnightbsd*)
6532  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6533    case $host_cpu in
6534    i*86 )
6535      # Not sure whether the presence of OpenBSD here was a mistake.
6536      # Let's accept both of them until this is cleared up.
6537      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6538      lt_cv_file_magic_cmd=$FILECMD
6539      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6540      ;;
6541    esac
6542  else
6543    lt_cv_deplibs_check_method=pass_all
6544  fi
6545  ;;
6546
6547haiku*)
6548  lt_cv_deplibs_check_method=pass_all
6549  ;;
6550
6551hpux10.20* | hpux11*)
6552  lt_cv_file_magic_cmd=$FILECMD
6553  case $host_cpu in
6554  ia64*)
6555    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6556    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6557    ;;
6558  hppa*64*)
6559    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]'
6560    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6561    ;;
6562  *)
6563    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6564    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6565    ;;
6566  esac
6567  ;;
6568
6569interix[3-9]*)
6570  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6571  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6572  ;;
6573
6574irix5* | irix6* | nonstopux*)
6575  case $LD in
6576  *-32|*"-32 ") libmagic=32-bit;;
6577  *-n32|*"-n32 ") libmagic=N32;;
6578  *-64|*"-64 ") libmagic=64-bit;;
6579  *) libmagic=never-match;;
6580  esac
6581  lt_cv_deplibs_check_method=pass_all
6582  ;;
6583
6584# This must be glibc/ELF.
6585linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6586  lt_cv_deplibs_check_method=pass_all
6587  ;;
6588
6589netbsd*)
6590  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6591    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6592  else
6593    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6594  fi
6595  ;;
6596
6597newos6*)
6598  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6599  lt_cv_file_magic_cmd=$FILECMD
6600  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6601  ;;
6602
6603*nto* | *qnx*)
6604  lt_cv_deplibs_check_method=pass_all
6605  ;;
6606
6607openbsd* | bitrig*)
6608  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6609    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6610  else
6611    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6612  fi
6613  ;;
6614
6615osf3* | osf4* | osf5*)
6616  lt_cv_deplibs_check_method=pass_all
6617  ;;
6618
6619rdos*)
6620  lt_cv_deplibs_check_method=pass_all
6621  ;;
6622
6623solaris*)
6624  lt_cv_deplibs_check_method=pass_all
6625  ;;
6626
6627sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6628  lt_cv_deplibs_check_method=pass_all
6629  ;;
6630
6631sysv4 | sysv4.3*)
6632  case $host_vendor in
6633  motorola)
6634    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]'
6635    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6636    ;;
6637  ncr)
6638    lt_cv_deplibs_check_method=pass_all
6639    ;;
6640  sequent)
6641    lt_cv_file_magic_cmd='/bin/file'
6642    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6643    ;;
6644  sni)
6645    lt_cv_file_magic_cmd='/bin/file'
6646    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6647    lt_cv_file_magic_test_file=/lib/libc.so
6648    ;;
6649  siemens)
6650    lt_cv_deplibs_check_method=pass_all
6651    ;;
6652  pc)
6653    lt_cv_deplibs_check_method=pass_all
6654    ;;
6655  esac
6656  ;;
6657
6658tpf*)
6659  lt_cv_deplibs_check_method=pass_all
6660  ;;
6661os2*)
6662  lt_cv_deplibs_check_method=pass_all
6663  ;;
6664esac
6665
6666fi
6667{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6668printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6669
6670file_magic_glob=
6671want_nocaseglob=no
6672if test "$build" = "$host"; then
6673  case $host_os in
6674  mingw* | pw32*)
6675    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6676      want_nocaseglob=yes
6677    else
6678      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6679    fi
6680    ;;
6681  esac
6682fi
6683
6684file_magic_cmd=$lt_cv_file_magic_cmd
6685deplibs_check_method=$lt_cv_deplibs_check_method
6686test -z "$deplibs_check_method" && deplibs_check_method=unknown
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709if test -n "$ac_tool_prefix"; then
6710  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6711set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6712{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6713printf %s "checking for $ac_word... " >&6; }
6714if test ${ac_cv_prog_DLLTOOL+y}
6715then :
6716  printf %s "(cached) " >&6
6717else $as_nop
6718  if test -n "$DLLTOOL"; then
6719  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6720else
6721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6722for as_dir in $PATH
6723do
6724  IFS=$as_save_IFS
6725  case $as_dir in #(((
6726    '') as_dir=./ ;;
6727    */) ;;
6728    *) as_dir=$as_dir/ ;;
6729  esac
6730    for ac_exec_ext in '' $ac_executable_extensions; do
6731  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6732    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6733    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6734    break 2
6735  fi
6736done
6737  done
6738IFS=$as_save_IFS
6739
6740fi
6741fi
6742DLLTOOL=$ac_cv_prog_DLLTOOL
6743if test -n "$DLLTOOL"; then
6744  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6745printf "%s\n" "$DLLTOOL" >&6; }
6746else
6747  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6748printf "%s\n" "no" >&6; }
6749fi
6750
6751
6752fi
6753if test -z "$ac_cv_prog_DLLTOOL"; then
6754  ac_ct_DLLTOOL=$DLLTOOL
6755  # Extract the first word of "dlltool", so it can be a program name with args.
6756set dummy dlltool; ac_word=$2
6757{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6758printf %s "checking for $ac_word... " >&6; }
6759if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6760then :
6761  printf %s "(cached) " >&6
6762else $as_nop
6763  if test -n "$ac_ct_DLLTOOL"; then
6764  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6765else
6766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6767for as_dir in $PATH
6768do
6769  IFS=$as_save_IFS
6770  case $as_dir in #(((
6771    '') as_dir=./ ;;
6772    */) ;;
6773    *) as_dir=$as_dir/ ;;
6774  esac
6775    for ac_exec_ext in '' $ac_executable_extensions; do
6776  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6777    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6778    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6779    break 2
6780  fi
6781done
6782  done
6783IFS=$as_save_IFS
6784
6785fi
6786fi
6787ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6788if test -n "$ac_ct_DLLTOOL"; then
6789  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6790printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6791else
6792  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6793printf "%s\n" "no" >&6; }
6794fi
6795
6796  if test "x$ac_ct_DLLTOOL" = x; then
6797    DLLTOOL="false"
6798  else
6799    case $cross_compiling:$ac_tool_warned in
6800yes:)
6801{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6802printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6803ac_tool_warned=yes ;;
6804esac
6805    DLLTOOL=$ac_ct_DLLTOOL
6806  fi
6807else
6808  DLLTOOL="$ac_cv_prog_DLLTOOL"
6809fi
6810
6811test -z "$DLLTOOL" && DLLTOOL=dlltool
6812
6813
6814
6815
6816
6817
6818
6819{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6820printf %s "checking how to associate runtime and link libraries... " >&6; }
6821if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6822then :
6823  printf %s "(cached) " >&6
6824else $as_nop
6825  lt_cv_sharedlib_from_linklib_cmd='unknown'
6826
6827case $host_os in
6828cygwin* | mingw* | pw32* | cegcc*)
6829  # two different shell functions defined in ltmain.sh;
6830  # decide which one to use based on capabilities of $DLLTOOL
6831  case `$DLLTOOL --help 2>&1` in
6832  *--identify-strict*)
6833    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6834    ;;
6835  *)
6836    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6837    ;;
6838  esac
6839  ;;
6840*)
6841  # fallback: assume linklib IS sharedlib
6842  lt_cv_sharedlib_from_linklib_cmd=$ECHO
6843  ;;
6844esac
6845
6846fi
6847{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6848printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6849sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6850test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6851
6852
6853
6854
6855
6856
6857
6858if test -n "$ac_tool_prefix"; then
6859  for ac_prog in ar
6860  do
6861    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6862set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6863{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6864printf %s "checking for $ac_word... " >&6; }
6865if test ${ac_cv_prog_AR+y}
6866then :
6867  printf %s "(cached) " >&6
6868else $as_nop
6869  if test -n "$AR"; then
6870  ac_cv_prog_AR="$AR" # Let the user override the test.
6871else
6872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6873for as_dir in $PATH
6874do
6875  IFS=$as_save_IFS
6876  case $as_dir in #(((
6877    '') as_dir=./ ;;
6878    */) ;;
6879    *) as_dir=$as_dir/ ;;
6880  esac
6881    for ac_exec_ext in '' $ac_executable_extensions; do
6882  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6883    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6884    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6885    break 2
6886  fi
6887done
6888  done
6889IFS=$as_save_IFS
6890
6891fi
6892fi
6893AR=$ac_cv_prog_AR
6894if test -n "$AR"; then
6895  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6896printf "%s\n" "$AR" >&6; }
6897else
6898  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6899printf "%s\n" "no" >&6; }
6900fi
6901
6902
6903    test -n "$AR" && break
6904  done
6905fi
6906if test -z "$AR"; then
6907  ac_ct_AR=$AR
6908  for ac_prog in ar
6909do
6910  # Extract the first word of "$ac_prog", so it can be a program name with args.
6911set dummy $ac_prog; ac_word=$2
6912{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6913printf %s "checking for $ac_word... " >&6; }
6914if test ${ac_cv_prog_ac_ct_AR+y}
6915then :
6916  printf %s "(cached) " >&6
6917else $as_nop
6918  if test -n "$ac_ct_AR"; then
6919  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6920else
6921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6922for as_dir in $PATH
6923do
6924  IFS=$as_save_IFS
6925  case $as_dir in #(((
6926    '') as_dir=./ ;;
6927    */) ;;
6928    *) as_dir=$as_dir/ ;;
6929  esac
6930    for ac_exec_ext in '' $ac_executable_extensions; do
6931  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6932    ac_cv_prog_ac_ct_AR="$ac_prog"
6933    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6934    break 2
6935  fi
6936done
6937  done
6938IFS=$as_save_IFS
6939
6940fi
6941fi
6942ac_ct_AR=$ac_cv_prog_ac_ct_AR
6943if test -n "$ac_ct_AR"; then
6944  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6945printf "%s\n" "$ac_ct_AR" >&6; }
6946else
6947  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6948printf "%s\n" "no" >&6; }
6949fi
6950
6951
6952  test -n "$ac_ct_AR" && break
6953done
6954
6955  if test "x$ac_ct_AR" = x; then
6956    AR="false"
6957  else
6958    case $cross_compiling:$ac_tool_warned in
6959yes:)
6960{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6961printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6962ac_tool_warned=yes ;;
6963esac
6964    AR=$ac_ct_AR
6965  fi
6966fi
6967
6968: ${AR=ar}
6969
6970
6971
6972
6973
6974
6975# Use ARFLAGS variable as AR's operation code to sync the variable naming with
6976# Automake.  If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6977# higher priority because thats what people were doing historically (setting
6978# ARFLAGS for automake and AR_FLAGS for libtool).  FIXME: Make the AR_FLAGS
6979# variable obsoleted/removed.
6980
6981test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6982lt_ar_flags=$AR_FLAGS
6983
6984
6985
6986
6987
6988
6989# Make AR_FLAGS overridable by 'make ARFLAGS='.  Don't try to run-time override
6990# by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6991
6992
6993
6994
6995
6996
6997{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6998printf %s "checking for archiver @FILE support... " >&6; }
6999if test ${lt_cv_ar_at_file+y}
7000then :
7001  printf %s "(cached) " >&6
7002else $as_nop
7003  lt_cv_ar_at_file=no
7004   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7005/* end confdefs.h.  */
7006
7007int
7008main (void)
7009{
7010
7011  ;
7012  return 0;
7013}
7014_ACEOF
7015if ac_fn_c_try_compile "$LINENO"
7016then :
7017  echo conftest.$ac_objext > conftest.lst
7018      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7019      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7020  (eval $lt_ar_try) 2>&5
7021  ac_status=$?
7022  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7023  test $ac_status = 0; }
7024      if test 0 -eq "$ac_status"; then
7025	# Ensure the archiver fails upon bogus file names.
7026	rm -f conftest.$ac_objext libconftest.a
7027	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7028  (eval $lt_ar_try) 2>&5
7029  ac_status=$?
7030  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7031  test $ac_status = 0; }
7032	if test 0 -ne "$ac_status"; then
7033          lt_cv_ar_at_file=@
7034        fi
7035      fi
7036      rm -f conftest.* libconftest.a
7037
7038fi
7039rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7040
7041fi
7042{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7043printf "%s\n" "$lt_cv_ar_at_file" >&6; }
7044
7045if test no = "$lt_cv_ar_at_file"; then
7046  archiver_list_spec=
7047else
7048  archiver_list_spec=$lt_cv_ar_at_file
7049fi
7050
7051
7052
7053
7054
7055
7056
7057if test -n "$ac_tool_prefix"; then
7058  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7059set dummy ${ac_tool_prefix}strip; ac_word=$2
7060{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7061printf %s "checking for $ac_word... " >&6; }
7062if test ${ac_cv_prog_STRIP+y}
7063then :
7064  printf %s "(cached) " >&6
7065else $as_nop
7066  if test -n "$STRIP"; then
7067  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7068else
7069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7070for as_dir in $PATH
7071do
7072  IFS=$as_save_IFS
7073  case $as_dir in #(((
7074    '') as_dir=./ ;;
7075    */) ;;
7076    *) as_dir=$as_dir/ ;;
7077  esac
7078    for ac_exec_ext in '' $ac_executable_extensions; do
7079  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7080    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7081    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7082    break 2
7083  fi
7084done
7085  done
7086IFS=$as_save_IFS
7087
7088fi
7089fi
7090STRIP=$ac_cv_prog_STRIP
7091if test -n "$STRIP"; then
7092  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7093printf "%s\n" "$STRIP" >&6; }
7094else
7095  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7096printf "%s\n" "no" >&6; }
7097fi
7098
7099
7100fi
7101if test -z "$ac_cv_prog_STRIP"; then
7102  ac_ct_STRIP=$STRIP
7103  # Extract the first word of "strip", so it can be a program name with args.
7104set dummy strip; ac_word=$2
7105{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7106printf %s "checking for $ac_word... " >&6; }
7107if test ${ac_cv_prog_ac_ct_STRIP+y}
7108then :
7109  printf %s "(cached) " >&6
7110else $as_nop
7111  if test -n "$ac_ct_STRIP"; then
7112  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7113else
7114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7115for as_dir in $PATH
7116do
7117  IFS=$as_save_IFS
7118  case $as_dir in #(((
7119    '') as_dir=./ ;;
7120    */) ;;
7121    *) as_dir=$as_dir/ ;;
7122  esac
7123    for ac_exec_ext in '' $ac_executable_extensions; do
7124  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7125    ac_cv_prog_ac_ct_STRIP="strip"
7126    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7127    break 2
7128  fi
7129done
7130  done
7131IFS=$as_save_IFS
7132
7133fi
7134fi
7135ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7136if test -n "$ac_ct_STRIP"; then
7137  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7138printf "%s\n" "$ac_ct_STRIP" >&6; }
7139else
7140  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7141printf "%s\n" "no" >&6; }
7142fi
7143
7144  if test "x$ac_ct_STRIP" = x; then
7145    STRIP=":"
7146  else
7147    case $cross_compiling:$ac_tool_warned in
7148yes:)
7149{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7150printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7151ac_tool_warned=yes ;;
7152esac
7153    STRIP=$ac_ct_STRIP
7154  fi
7155else
7156  STRIP="$ac_cv_prog_STRIP"
7157fi
7158
7159test -z "$STRIP" && STRIP=:
7160
7161
7162
7163
7164
7165
7166if test -n "$ac_tool_prefix"; then
7167  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7168set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7169{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7170printf %s "checking for $ac_word... " >&6; }
7171if test ${ac_cv_prog_RANLIB+y}
7172then :
7173  printf %s "(cached) " >&6
7174else $as_nop
7175  if test -n "$RANLIB"; then
7176  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7177else
7178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7179for as_dir in $PATH
7180do
7181  IFS=$as_save_IFS
7182  case $as_dir in #(((
7183    '') as_dir=./ ;;
7184    */) ;;
7185    *) as_dir=$as_dir/ ;;
7186  esac
7187    for ac_exec_ext in '' $ac_executable_extensions; do
7188  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7189    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7190    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7191    break 2
7192  fi
7193done
7194  done
7195IFS=$as_save_IFS
7196
7197fi
7198fi
7199RANLIB=$ac_cv_prog_RANLIB
7200if test -n "$RANLIB"; then
7201  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7202printf "%s\n" "$RANLIB" >&6; }
7203else
7204  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7205printf "%s\n" "no" >&6; }
7206fi
7207
7208
7209fi
7210if test -z "$ac_cv_prog_RANLIB"; then
7211  ac_ct_RANLIB=$RANLIB
7212  # Extract the first word of "ranlib", so it can be a program name with args.
7213set dummy ranlib; ac_word=$2
7214{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7215printf %s "checking for $ac_word... " >&6; }
7216if test ${ac_cv_prog_ac_ct_RANLIB+y}
7217then :
7218  printf %s "(cached) " >&6
7219else $as_nop
7220  if test -n "$ac_ct_RANLIB"; then
7221  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7222else
7223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7224for as_dir in $PATH
7225do
7226  IFS=$as_save_IFS
7227  case $as_dir in #(((
7228    '') as_dir=./ ;;
7229    */) ;;
7230    *) as_dir=$as_dir/ ;;
7231  esac
7232    for ac_exec_ext in '' $ac_executable_extensions; do
7233  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7234    ac_cv_prog_ac_ct_RANLIB="ranlib"
7235    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7236    break 2
7237  fi
7238done
7239  done
7240IFS=$as_save_IFS
7241
7242fi
7243fi
7244ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7245if test -n "$ac_ct_RANLIB"; then
7246  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7247printf "%s\n" "$ac_ct_RANLIB" >&6; }
7248else
7249  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7250printf "%s\n" "no" >&6; }
7251fi
7252
7253  if test "x$ac_ct_RANLIB" = x; then
7254    RANLIB=":"
7255  else
7256    case $cross_compiling:$ac_tool_warned in
7257yes:)
7258{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7259printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7260ac_tool_warned=yes ;;
7261esac
7262    RANLIB=$ac_ct_RANLIB
7263  fi
7264else
7265  RANLIB="$ac_cv_prog_RANLIB"
7266fi
7267
7268test -z "$RANLIB" && RANLIB=:
7269
7270
7271
7272
7273
7274
7275# Determine commands to create old-style static archives.
7276old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7277old_postinstall_cmds='chmod 644 $oldlib'
7278old_postuninstall_cmds=
7279
7280if test -n "$RANLIB"; then
7281  case $host_os in
7282  bitrig* | openbsd*)
7283    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7284    ;;
7285  *)
7286    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7287    ;;
7288  esac
7289  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7290fi
7291
7292case $host_os in
7293  darwin*)
7294    lock_old_archive_extraction=yes ;;
7295  *)
7296    lock_old_archive_extraction=no ;;
7297esac
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337# If no C compiler was specified, use CC.
7338LTCC=${LTCC-"$CC"}
7339
7340# If no C compiler flags were specified, use CFLAGS.
7341LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7342
7343# Allow CC to be a program name with arguments.
7344compiler=$CC
7345
7346
7347# Check for command to grab the raw symbol name followed by C symbol from nm.
7348{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7349printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7350if test ${lt_cv_sys_global_symbol_pipe+y}
7351then :
7352  printf %s "(cached) " >&6
7353else $as_nop
7354
7355# These are sane defaults that work on at least a few old systems.
7356# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7357
7358# Character class describing NM global symbol codes.
7359symcode='[BCDEGRST]'
7360
7361# Regexp to match symbols that can be accessed directly from C.
7362sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7363
7364# Define system-specific variables.
7365case $host_os in
7366aix*)
7367  symcode='[BCDT]'
7368  ;;
7369cygwin* | mingw* | pw32* | cegcc*)
7370  symcode='[ABCDGISTW]'
7371  ;;
7372hpux*)
7373  if test ia64 = "$host_cpu"; then
7374    symcode='[ABCDEGRST]'
7375  fi
7376  ;;
7377irix* | nonstopux*)
7378  symcode='[BCDEGRST]'
7379  ;;
7380osf*)
7381  symcode='[BCDEGQRST]'
7382  ;;
7383solaris*)
7384  symcode='[BDRT]'
7385  ;;
7386sco3.2v5*)
7387  symcode='[DT]'
7388  ;;
7389sysv4.2uw2*)
7390  symcode='[DT]'
7391  ;;
7392sysv5* | sco5v6* | unixware* | OpenUNIX*)
7393  symcode='[ABDT]'
7394  ;;
7395sysv4)
7396  symcode='[DFNSTU]'
7397  ;;
7398esac
7399
7400# If we're using GNU nm, then use its standard symbol codes.
7401case `$NM -V 2>&1` in
7402*GNU* | *'with BFD'*)
7403  symcode='[ABCDGIRSTW]' ;;
7404esac
7405
7406if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7407  # Gets list of data symbols to import.
7408  lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7409  # Adjust the below global symbol transforms to fixup imported variables.
7410  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7411  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
7412  lt_c_name_lib_hook="\
7413  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
7414  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
7415else
7416  # Disable hooks by default.
7417  lt_cv_sys_global_symbol_to_import=
7418  lt_cdecl_hook=
7419  lt_c_name_hook=
7420  lt_c_name_lib_hook=
7421fi
7422
7423# Transform an extracted symbol line into a proper C declaration.
7424# Some systems (esp. on ia64) link data and code symbols differently,
7425# so use this general approach.
7426lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7427$lt_cdecl_hook\
7428" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7429" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7430
7431# Transform an extracted symbol line into symbol name and symbol address
7432lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7433$lt_c_name_hook\
7434" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7435" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
7436
7437# Transform an extracted symbol line into symbol name with lib prefix and
7438# symbol address.
7439lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7440$lt_c_name_lib_hook\
7441" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7442" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
7443" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
7444
7445# Handle CRLF in mingw tool chain
7446opt_cr=
7447case $build_os in
7448mingw*)
7449  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7450  ;;
7451esac
7452
7453# Try without a prefix underscore, then with it.
7454for ac_symprfx in "" "_"; do
7455
7456  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7457  symxfrm="\\1 $ac_symprfx\\2 \\2"
7458
7459  # Write the raw and C identifiers.
7460  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7461    # Fake it for dumpbin and say T for any non-static function,
7462    # D for any global variable and I for any imported variable.
7463    # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7464    # which start with @ or ?.
7465    lt_cv_sys_global_symbol_pipe="$AWK '"\
7466"     {last_section=section; section=\$ 3};"\
7467"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7468"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7469"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7470"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7471"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7472"     \$ 0!~/External *\|/{next};"\
7473"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7474"     {if(hide[section]) next};"\
7475"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7476"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7477"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7478"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7479"     ' prfx=^$ac_symprfx"
7480  else
7481    lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7482  fi
7483  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7484
7485  # Check to see that the pipe works correctly.
7486  pipe_works=no
7487
7488  rm -f conftest*
7489  cat > conftest.$ac_ext <<_LT_EOF
7490#ifdef __cplusplus
7491extern "C" {
7492#endif
7493char nm_test_var;
7494void nm_test_func(void);
7495void nm_test_func(void){}
7496#ifdef __cplusplus
7497}
7498#endif
7499int main(){nm_test_var='a';nm_test_func();return(0);}
7500_LT_EOF
7501
7502  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7503  (eval $ac_compile) 2>&5
7504  ac_status=$?
7505  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7506  test $ac_status = 0; }; then
7507    # Now try to grab the symbols.
7508    nlist=conftest.nm
7509    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7510  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7511  ac_status=$?
7512  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7513  test $ac_status = 0; } && test -s "$nlist"; then
7514      # Try sorting and uniquifying the output.
7515      if sort "$nlist" | uniq > "$nlist"T; then
7516	mv -f "$nlist"T "$nlist"
7517      else
7518	rm -f "$nlist"T
7519      fi
7520
7521      # Make sure that we snagged all the symbols we need.
7522      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7523	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7524	  cat <<_LT_EOF > conftest.$ac_ext
7525/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7526#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7527/* DATA imports from DLLs on WIN32 can't be const, because runtime
7528   relocations are performed -- see ld's documentation on pseudo-relocs.  */
7529# define LT_DLSYM_CONST
7530#elif defined __osf__
7531/* This system does not cope well with relocations in const data.  */
7532# define LT_DLSYM_CONST
7533#else
7534# define LT_DLSYM_CONST const
7535#endif
7536
7537#ifdef __cplusplus
7538extern "C" {
7539#endif
7540
7541_LT_EOF
7542	  # Now generate the symbol file.
7543	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7544
7545	  cat <<_LT_EOF >> conftest.$ac_ext
7546
7547/* The mapping between symbol names and symbols.  */
7548LT_DLSYM_CONST struct {
7549  const char *name;
7550  void       *address;
7551}
7552lt__PROGRAM__LTX_preloaded_symbols[] =
7553{
7554  { "@PROGRAM@", (void *) 0 },
7555_LT_EOF
7556	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7557	  cat <<\_LT_EOF >> conftest.$ac_ext
7558  {0, (void *) 0}
7559};
7560
7561/* This works around a problem in FreeBSD linker */
7562#ifdef FREEBSD_WORKAROUND
7563static const void *lt_preloaded_setup() {
7564  return lt__PROGRAM__LTX_preloaded_symbols;
7565}
7566#endif
7567
7568#ifdef __cplusplus
7569}
7570#endif
7571_LT_EOF
7572	  # Now try linking the two files.
7573	  mv conftest.$ac_objext conftstm.$ac_objext
7574	  lt_globsym_save_LIBS=$LIBS
7575	  lt_globsym_save_CFLAGS=$CFLAGS
7576	  LIBS=conftstm.$ac_objext
7577	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7578	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7579  (eval $ac_link) 2>&5
7580  ac_status=$?
7581  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7582  test $ac_status = 0; } && test -s conftest$ac_exeext; then
7583	    pipe_works=yes
7584	  fi
7585	  LIBS=$lt_globsym_save_LIBS
7586	  CFLAGS=$lt_globsym_save_CFLAGS
7587	else
7588	  echo "cannot find nm_test_func in $nlist" >&5
7589	fi
7590      else
7591	echo "cannot find nm_test_var in $nlist" >&5
7592      fi
7593    else
7594      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7595    fi
7596  else
7597    echo "$progname: failed program was:" >&5
7598    cat conftest.$ac_ext >&5
7599  fi
7600  rm -rf conftest* conftst*
7601
7602  # Do not use the global_symbol_pipe unless it works.
7603  if test yes = "$pipe_works"; then
7604    break
7605  else
7606    lt_cv_sys_global_symbol_pipe=
7607  fi
7608done
7609
7610fi
7611
7612if test -z "$lt_cv_sys_global_symbol_pipe"; then
7613  lt_cv_sys_global_symbol_to_cdecl=
7614fi
7615if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7616  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7617printf "%s\n" "failed" >&6; }
7618else
7619  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7620printf "%s\n" "ok" >&6; }
7621fi
7622
7623# Response file support.
7624if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7625  nm_file_list_spec='@'
7626elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7627  nm_file_list_spec='@'
7628fi
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7667printf %s "checking for sysroot... " >&6; }
7668
7669# Check whether --with-sysroot was given.
7670if test ${with_sysroot+y}
7671then :
7672  withval=$with_sysroot;
7673else $as_nop
7674  with_sysroot=no
7675fi
7676
7677
7678lt_sysroot=
7679case $with_sysroot in #(
7680 yes)
7681   if test yes = "$GCC"; then
7682     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7683   fi
7684   ;; #(
7685 /*)
7686   lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7687   ;; #(
7688 no|'')
7689   ;; #(
7690 *)
7691   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7692printf "%s\n" "$with_sysroot" >&6; }
7693   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7694   ;;
7695esac
7696
7697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7698printf "%s\n" "${lt_sysroot:-no}" >&6; }
7699
7700
7701
7702
7703
7704{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7705printf %s "checking for a working dd... " >&6; }
7706if test ${ac_cv_path_lt_DD+y}
7707then :
7708  printf %s "(cached) " >&6
7709else $as_nop
7710  printf 0123456789abcdef0123456789abcdef >conftest.i
7711cat conftest.i conftest.i >conftest2.i
7712: ${lt_DD:=$DD}
7713if test -z "$lt_DD"; then
7714  ac_path_lt_DD_found=false
7715  # Loop through the user's path and test for each of PROGNAME-LIST
7716  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7717for as_dir in $PATH
7718do
7719  IFS=$as_save_IFS
7720  case $as_dir in #(((
7721    '') as_dir=./ ;;
7722    */) ;;
7723    *) as_dir=$as_dir/ ;;
7724  esac
7725    for ac_prog in dd
7726   do
7727    for ac_exec_ext in '' $ac_executable_extensions; do
7728      ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7729      as_fn_executable_p "$ac_path_lt_DD" || continue
7730if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7731  cmp -s conftest.i conftest.out \
7732  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7733fi
7734      $ac_path_lt_DD_found && break 3
7735    done
7736  done
7737  done
7738IFS=$as_save_IFS
7739  if test -z "$ac_cv_path_lt_DD"; then
7740    :
7741  fi
7742else
7743  ac_cv_path_lt_DD=$lt_DD
7744fi
7745
7746rm -f conftest.i conftest2.i conftest.out
7747fi
7748{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7749printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7750
7751
7752{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7753printf %s "checking how to truncate binary pipes... " >&6; }
7754if test ${lt_cv_truncate_bin+y}
7755then :
7756  printf %s "(cached) " >&6
7757else $as_nop
7758  printf 0123456789abcdef0123456789abcdef >conftest.i
7759cat conftest.i conftest.i >conftest2.i
7760lt_cv_truncate_bin=
7761if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7762  cmp -s conftest.i conftest.out \
7763  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7764fi
7765rm -f conftest.i conftest2.i conftest.out
7766test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7767fi
7768{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7769printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7770
7771
7772
7773
7774
7775
7776
7777# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7778func_cc_basename ()
7779{
7780    for cc_temp in $*""; do
7781      case $cc_temp in
7782        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7783        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7784        \-*) ;;
7785        *) break;;
7786      esac
7787    done
7788    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7789}
7790
7791# Check whether --enable-libtool-lock was given.
7792if test ${enable_libtool_lock+y}
7793then :
7794  enableval=$enable_libtool_lock;
7795fi
7796
7797test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7798
7799# Some flags need to be propagated to the compiler or linker for good
7800# libtool support.
7801case $host in
7802ia64-*-hpux*)
7803  # Find out what ABI is being produced by ac_compile, and set mode
7804  # options accordingly.
7805  echo 'int i;' > conftest.$ac_ext
7806  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7807  (eval $ac_compile) 2>&5
7808  ac_status=$?
7809  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7810  test $ac_status = 0; }; then
7811    case `$FILECMD conftest.$ac_objext` in
7812      *ELF-32*)
7813	HPUX_IA64_MODE=32
7814	;;
7815      *ELF-64*)
7816	HPUX_IA64_MODE=64
7817	;;
7818    esac
7819  fi
7820  rm -rf conftest*
7821  ;;
7822*-*-irix6*)
7823  # Find out what ABI is being produced by ac_compile, and set linker
7824  # options accordingly.
7825  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7826  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7827  (eval $ac_compile) 2>&5
7828  ac_status=$?
7829  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7830  test $ac_status = 0; }; then
7831    if test yes = "$lt_cv_prog_gnu_ld"; then
7832      case `$FILECMD conftest.$ac_objext` in
7833	*32-bit*)
7834	  LD="${LD-ld} -melf32bsmip"
7835	  ;;
7836	*N32*)
7837	  LD="${LD-ld} -melf32bmipn32"
7838	  ;;
7839	*64-bit*)
7840	  LD="${LD-ld} -melf64bmip"
7841	;;
7842      esac
7843    else
7844      case `$FILECMD conftest.$ac_objext` in
7845	*32-bit*)
7846	  LD="${LD-ld} -32"
7847	  ;;
7848	*N32*)
7849	  LD="${LD-ld} -n32"
7850	  ;;
7851	*64-bit*)
7852	  LD="${LD-ld} -64"
7853	  ;;
7854      esac
7855    fi
7856  fi
7857  rm -rf conftest*
7858  ;;
7859
7860mips64*-*linux*)
7861  # Find out what ABI is being produced by ac_compile, and set linker
7862  # options accordingly.
7863  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7864  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7865  (eval $ac_compile) 2>&5
7866  ac_status=$?
7867  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7868  test $ac_status = 0; }; then
7869    emul=elf
7870    case `$FILECMD conftest.$ac_objext` in
7871      *32-bit*)
7872	emul="${emul}32"
7873	;;
7874      *64-bit*)
7875	emul="${emul}64"
7876	;;
7877    esac
7878    case `$FILECMD conftest.$ac_objext` in
7879      *MSB*)
7880	emul="${emul}btsmip"
7881	;;
7882      *LSB*)
7883	emul="${emul}ltsmip"
7884	;;
7885    esac
7886    case `$FILECMD conftest.$ac_objext` in
7887      *N32*)
7888	emul="${emul}n32"
7889	;;
7890    esac
7891    LD="${LD-ld} -m $emul"
7892  fi
7893  rm -rf conftest*
7894  ;;
7895
7896x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7897s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7898  # Find out what ABI is being produced by ac_compile, and set linker
7899  # options accordingly.  Note that the listed cases only cover the
7900  # situations where additional linker options are needed (such as when
7901  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7902  # vice versa); the common cases where no linker options are needed do
7903  # not appear in the list.
7904  echo 'int i;' > conftest.$ac_ext
7905  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7906  (eval $ac_compile) 2>&5
7907  ac_status=$?
7908  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7909  test $ac_status = 0; }; then
7910    case `$FILECMD conftest.o` in
7911      *32-bit*)
7912	case $host in
7913	  x86_64-*kfreebsd*-gnu)
7914	    LD="${LD-ld} -m elf_i386_fbsd"
7915	    ;;
7916	  x86_64-*linux*)
7917	    case `$FILECMD conftest.o` in
7918	      *x86-64*)
7919		LD="${LD-ld} -m elf32_x86_64"
7920		;;
7921	      *)
7922		LD="${LD-ld} -m elf_i386"
7923		;;
7924	    esac
7925	    ;;
7926	  powerpc64le-*linux*)
7927	    LD="${LD-ld} -m elf32lppclinux"
7928	    ;;
7929	  powerpc64-*linux*)
7930	    LD="${LD-ld} -m elf32ppclinux"
7931	    ;;
7932	  s390x-*linux*)
7933	    LD="${LD-ld} -m elf_s390"
7934	    ;;
7935	  sparc64-*linux*)
7936	    LD="${LD-ld} -m elf32_sparc"
7937	    ;;
7938	esac
7939	;;
7940      *64-bit*)
7941	case $host in
7942	  x86_64-*kfreebsd*-gnu)
7943	    LD="${LD-ld} -m elf_x86_64_fbsd"
7944	    ;;
7945	  x86_64-*linux*)
7946	    LD="${LD-ld} -m elf_x86_64"
7947	    ;;
7948	  powerpcle-*linux*)
7949	    LD="${LD-ld} -m elf64lppc"
7950	    ;;
7951	  powerpc-*linux*)
7952	    LD="${LD-ld} -m elf64ppc"
7953	    ;;
7954	  s390*-*linux*|s390*-*tpf*)
7955	    LD="${LD-ld} -m elf64_s390"
7956	    ;;
7957	  sparc*-*linux*)
7958	    LD="${LD-ld} -m elf64_sparc"
7959	    ;;
7960	esac
7961	;;
7962    esac
7963  fi
7964  rm -rf conftest*
7965  ;;
7966
7967*-*-sco3.2v5*)
7968  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7969  SAVE_CFLAGS=$CFLAGS
7970  CFLAGS="$CFLAGS -belf"
7971  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7972printf %s "checking whether the C compiler needs -belf... " >&6; }
7973if test ${lt_cv_cc_needs_belf+y}
7974then :
7975  printf %s "(cached) " >&6
7976else $as_nop
7977  ac_ext=c
7978ac_cpp='$CPP $CPPFLAGS'
7979ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7980ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7981ac_compiler_gnu=$ac_cv_c_compiler_gnu
7982
7983     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7984/* end confdefs.h.  */
7985
7986int
7987main (void)
7988{
7989
7990  ;
7991  return 0;
7992}
7993_ACEOF
7994if ac_fn_c_try_link "$LINENO"
7995then :
7996  lt_cv_cc_needs_belf=yes
7997else $as_nop
7998  lt_cv_cc_needs_belf=no
7999fi
8000rm -f core conftest.err conftest.$ac_objext conftest.beam \
8001    conftest$ac_exeext conftest.$ac_ext
8002     ac_ext=c
8003ac_cpp='$CPP $CPPFLAGS'
8004ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8005ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8006ac_compiler_gnu=$ac_cv_c_compiler_gnu
8007
8008fi
8009{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8010printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
8011  if test yes != "$lt_cv_cc_needs_belf"; then
8012    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8013    CFLAGS=$SAVE_CFLAGS
8014  fi
8015  ;;
8016*-*solaris*)
8017  # Find out what ABI is being produced by ac_compile, and set linker
8018  # options accordingly.
8019  echo 'int i;' > conftest.$ac_ext
8020  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8021  (eval $ac_compile) 2>&5
8022  ac_status=$?
8023  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8024  test $ac_status = 0; }; then
8025    case `$FILECMD conftest.o` in
8026    *64-bit*)
8027      case $lt_cv_prog_gnu_ld in
8028      yes*)
8029        case $host in
8030        i?86-*-solaris*|x86_64-*-solaris*)
8031          LD="${LD-ld} -m elf_x86_64"
8032          ;;
8033        sparc*-*-solaris*)
8034          LD="${LD-ld} -m elf64_sparc"
8035          ;;
8036        esac
8037        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
8038        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8039          LD=${LD-ld}_sol2
8040        fi
8041        ;;
8042      *)
8043	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8044	  LD="${LD-ld} -64"
8045	fi
8046	;;
8047      esac
8048      ;;
8049    esac
8050  fi
8051  rm -rf conftest*
8052  ;;
8053esac
8054
8055need_locks=$enable_libtool_lock
8056
8057if test -n "$ac_tool_prefix"; then
8058  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8059set dummy ${ac_tool_prefix}mt; ac_word=$2
8060{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8061printf %s "checking for $ac_word... " >&6; }
8062if test ${ac_cv_prog_MANIFEST_TOOL+y}
8063then :
8064  printf %s "(cached) " >&6
8065else $as_nop
8066  if test -n "$MANIFEST_TOOL"; then
8067  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8068else
8069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8070for as_dir in $PATH
8071do
8072  IFS=$as_save_IFS
8073  case $as_dir in #(((
8074    '') as_dir=./ ;;
8075    */) ;;
8076    *) as_dir=$as_dir/ ;;
8077  esac
8078    for ac_exec_ext in '' $ac_executable_extensions; do
8079  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8080    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8081    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8082    break 2
8083  fi
8084done
8085  done
8086IFS=$as_save_IFS
8087
8088fi
8089fi
8090MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8091if test -n "$MANIFEST_TOOL"; then
8092  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8093printf "%s\n" "$MANIFEST_TOOL" >&6; }
8094else
8095  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8096printf "%s\n" "no" >&6; }
8097fi
8098
8099
8100fi
8101if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8102  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8103  # Extract the first word of "mt", so it can be a program name with args.
8104set dummy mt; ac_word=$2
8105{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8106printf %s "checking for $ac_word... " >&6; }
8107if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
8108then :
8109  printf %s "(cached) " >&6
8110else $as_nop
8111  if test -n "$ac_ct_MANIFEST_TOOL"; then
8112  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8113else
8114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8115for as_dir in $PATH
8116do
8117  IFS=$as_save_IFS
8118  case $as_dir in #(((
8119    '') as_dir=./ ;;
8120    */) ;;
8121    *) as_dir=$as_dir/ ;;
8122  esac
8123    for ac_exec_ext in '' $ac_executable_extensions; do
8124  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8125    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8126    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8127    break 2
8128  fi
8129done
8130  done
8131IFS=$as_save_IFS
8132
8133fi
8134fi
8135ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8136if test -n "$ac_ct_MANIFEST_TOOL"; then
8137  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8138printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
8139else
8140  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8141printf "%s\n" "no" >&6; }
8142fi
8143
8144  if test "x$ac_ct_MANIFEST_TOOL" = x; then
8145    MANIFEST_TOOL=":"
8146  else
8147    case $cross_compiling:$ac_tool_warned in
8148yes:)
8149{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8150printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8151ac_tool_warned=yes ;;
8152esac
8153    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8154  fi
8155else
8156  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8157fi
8158
8159test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8160{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8161printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8162if test ${lt_cv_path_mainfest_tool+y}
8163then :
8164  printf %s "(cached) " >&6
8165else $as_nop
8166  lt_cv_path_mainfest_tool=no
8167  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8168  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8169  cat conftest.err >&5
8170  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8171    lt_cv_path_mainfest_tool=yes
8172  fi
8173  rm -f conftest*
8174fi
8175{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8176printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
8177if test yes != "$lt_cv_path_mainfest_tool"; then
8178  MANIFEST_TOOL=:
8179fi
8180
8181
8182
8183
8184
8185
8186  case $host_os in
8187    rhapsody* | darwin*)
8188    if test -n "$ac_tool_prefix"; then
8189  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8190set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8191{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8192printf %s "checking for $ac_word... " >&6; }
8193if test ${ac_cv_prog_DSYMUTIL+y}
8194then :
8195  printf %s "(cached) " >&6
8196else $as_nop
8197  if test -n "$DSYMUTIL"; then
8198  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8199else
8200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8201for as_dir in $PATH
8202do
8203  IFS=$as_save_IFS
8204  case $as_dir in #(((
8205    '') as_dir=./ ;;
8206    */) ;;
8207    *) as_dir=$as_dir/ ;;
8208  esac
8209    for ac_exec_ext in '' $ac_executable_extensions; do
8210  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8211    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8212    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8213    break 2
8214  fi
8215done
8216  done
8217IFS=$as_save_IFS
8218
8219fi
8220fi
8221DSYMUTIL=$ac_cv_prog_DSYMUTIL
8222if test -n "$DSYMUTIL"; then
8223  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8224printf "%s\n" "$DSYMUTIL" >&6; }
8225else
8226  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8227printf "%s\n" "no" >&6; }
8228fi
8229
8230
8231fi
8232if test -z "$ac_cv_prog_DSYMUTIL"; then
8233  ac_ct_DSYMUTIL=$DSYMUTIL
8234  # Extract the first word of "dsymutil", so it can be a program name with args.
8235set dummy dsymutil; ac_word=$2
8236{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8237printf %s "checking for $ac_word... " >&6; }
8238if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8239then :
8240  printf %s "(cached) " >&6
8241else $as_nop
8242  if test -n "$ac_ct_DSYMUTIL"; then
8243  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8244else
8245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8246for as_dir in $PATH
8247do
8248  IFS=$as_save_IFS
8249  case $as_dir in #(((
8250    '') as_dir=./ ;;
8251    */) ;;
8252    *) as_dir=$as_dir/ ;;
8253  esac
8254    for ac_exec_ext in '' $ac_executable_extensions; do
8255  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8256    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8257    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8258    break 2
8259  fi
8260done
8261  done
8262IFS=$as_save_IFS
8263
8264fi
8265fi
8266ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8267if test -n "$ac_ct_DSYMUTIL"; then
8268  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8269printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8270else
8271  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8272printf "%s\n" "no" >&6; }
8273fi
8274
8275  if test "x$ac_ct_DSYMUTIL" = x; then
8276    DSYMUTIL=":"
8277  else
8278    case $cross_compiling:$ac_tool_warned in
8279yes:)
8280{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8281printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8282ac_tool_warned=yes ;;
8283esac
8284    DSYMUTIL=$ac_ct_DSYMUTIL
8285  fi
8286else
8287  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8288fi
8289
8290    if test -n "$ac_tool_prefix"; then
8291  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8292set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8293{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8294printf %s "checking for $ac_word... " >&6; }
8295if test ${ac_cv_prog_NMEDIT+y}
8296then :
8297  printf %s "(cached) " >&6
8298else $as_nop
8299  if test -n "$NMEDIT"; then
8300  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8301else
8302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8303for as_dir in $PATH
8304do
8305  IFS=$as_save_IFS
8306  case $as_dir in #(((
8307    '') as_dir=./ ;;
8308    */) ;;
8309    *) as_dir=$as_dir/ ;;
8310  esac
8311    for ac_exec_ext in '' $ac_executable_extensions; do
8312  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8313    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8314    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8315    break 2
8316  fi
8317done
8318  done
8319IFS=$as_save_IFS
8320
8321fi
8322fi
8323NMEDIT=$ac_cv_prog_NMEDIT
8324if test -n "$NMEDIT"; then
8325  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8326printf "%s\n" "$NMEDIT" >&6; }
8327else
8328  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8329printf "%s\n" "no" >&6; }
8330fi
8331
8332
8333fi
8334if test -z "$ac_cv_prog_NMEDIT"; then
8335  ac_ct_NMEDIT=$NMEDIT
8336  # Extract the first word of "nmedit", so it can be a program name with args.
8337set dummy nmedit; ac_word=$2
8338{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8339printf %s "checking for $ac_word... " >&6; }
8340if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8341then :
8342  printf %s "(cached) " >&6
8343else $as_nop
8344  if test -n "$ac_ct_NMEDIT"; then
8345  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8346else
8347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8348for as_dir in $PATH
8349do
8350  IFS=$as_save_IFS
8351  case $as_dir in #(((
8352    '') as_dir=./ ;;
8353    */) ;;
8354    *) as_dir=$as_dir/ ;;
8355  esac
8356    for ac_exec_ext in '' $ac_executable_extensions; do
8357  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8358    ac_cv_prog_ac_ct_NMEDIT="nmedit"
8359    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8360    break 2
8361  fi
8362done
8363  done
8364IFS=$as_save_IFS
8365
8366fi
8367fi
8368ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8369if test -n "$ac_ct_NMEDIT"; then
8370  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8371printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8372else
8373  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8374printf "%s\n" "no" >&6; }
8375fi
8376
8377  if test "x$ac_ct_NMEDIT" = x; then
8378    NMEDIT=":"
8379  else
8380    case $cross_compiling:$ac_tool_warned in
8381yes:)
8382{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8383printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8384ac_tool_warned=yes ;;
8385esac
8386    NMEDIT=$ac_ct_NMEDIT
8387  fi
8388else
8389  NMEDIT="$ac_cv_prog_NMEDIT"
8390fi
8391
8392    if test -n "$ac_tool_prefix"; then
8393  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8394set dummy ${ac_tool_prefix}lipo; ac_word=$2
8395{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8396printf %s "checking for $ac_word... " >&6; }
8397if test ${ac_cv_prog_LIPO+y}
8398then :
8399  printf %s "(cached) " >&6
8400else $as_nop
8401  if test -n "$LIPO"; then
8402  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8403else
8404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8405for as_dir in $PATH
8406do
8407  IFS=$as_save_IFS
8408  case $as_dir in #(((
8409    '') as_dir=./ ;;
8410    */) ;;
8411    *) as_dir=$as_dir/ ;;
8412  esac
8413    for ac_exec_ext in '' $ac_executable_extensions; do
8414  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8415    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8416    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8417    break 2
8418  fi
8419done
8420  done
8421IFS=$as_save_IFS
8422
8423fi
8424fi
8425LIPO=$ac_cv_prog_LIPO
8426if test -n "$LIPO"; then
8427  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8428printf "%s\n" "$LIPO" >&6; }
8429else
8430  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8431printf "%s\n" "no" >&6; }
8432fi
8433
8434
8435fi
8436if test -z "$ac_cv_prog_LIPO"; then
8437  ac_ct_LIPO=$LIPO
8438  # Extract the first word of "lipo", so it can be a program name with args.
8439set dummy lipo; ac_word=$2
8440{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8441printf %s "checking for $ac_word... " >&6; }
8442if test ${ac_cv_prog_ac_ct_LIPO+y}
8443then :
8444  printf %s "(cached) " >&6
8445else $as_nop
8446  if test -n "$ac_ct_LIPO"; then
8447  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8448else
8449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8450for as_dir in $PATH
8451do
8452  IFS=$as_save_IFS
8453  case $as_dir in #(((
8454    '') as_dir=./ ;;
8455    */) ;;
8456    *) as_dir=$as_dir/ ;;
8457  esac
8458    for ac_exec_ext in '' $ac_executable_extensions; do
8459  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8460    ac_cv_prog_ac_ct_LIPO="lipo"
8461    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8462    break 2
8463  fi
8464done
8465  done
8466IFS=$as_save_IFS
8467
8468fi
8469fi
8470ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8471if test -n "$ac_ct_LIPO"; then
8472  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8473printf "%s\n" "$ac_ct_LIPO" >&6; }
8474else
8475  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8476printf "%s\n" "no" >&6; }
8477fi
8478
8479  if test "x$ac_ct_LIPO" = x; then
8480    LIPO=":"
8481  else
8482    case $cross_compiling:$ac_tool_warned in
8483yes:)
8484{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8485printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8486ac_tool_warned=yes ;;
8487esac
8488    LIPO=$ac_ct_LIPO
8489  fi
8490else
8491  LIPO="$ac_cv_prog_LIPO"
8492fi
8493
8494    if test -n "$ac_tool_prefix"; then
8495  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8496set dummy ${ac_tool_prefix}otool; ac_word=$2
8497{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8498printf %s "checking for $ac_word... " >&6; }
8499if test ${ac_cv_prog_OTOOL+y}
8500then :
8501  printf %s "(cached) " >&6
8502else $as_nop
8503  if test -n "$OTOOL"; then
8504  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8505else
8506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8507for as_dir in $PATH
8508do
8509  IFS=$as_save_IFS
8510  case $as_dir in #(((
8511    '') as_dir=./ ;;
8512    */) ;;
8513    *) as_dir=$as_dir/ ;;
8514  esac
8515    for ac_exec_ext in '' $ac_executable_extensions; do
8516  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8517    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8518    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8519    break 2
8520  fi
8521done
8522  done
8523IFS=$as_save_IFS
8524
8525fi
8526fi
8527OTOOL=$ac_cv_prog_OTOOL
8528if test -n "$OTOOL"; then
8529  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8530printf "%s\n" "$OTOOL" >&6; }
8531else
8532  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8533printf "%s\n" "no" >&6; }
8534fi
8535
8536
8537fi
8538if test -z "$ac_cv_prog_OTOOL"; then
8539  ac_ct_OTOOL=$OTOOL
8540  # Extract the first word of "otool", so it can be a program name with args.
8541set dummy otool; ac_word=$2
8542{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8543printf %s "checking for $ac_word... " >&6; }
8544if test ${ac_cv_prog_ac_ct_OTOOL+y}
8545then :
8546  printf %s "(cached) " >&6
8547else $as_nop
8548  if test -n "$ac_ct_OTOOL"; then
8549  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8550else
8551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8552for as_dir in $PATH
8553do
8554  IFS=$as_save_IFS
8555  case $as_dir in #(((
8556    '') as_dir=./ ;;
8557    */) ;;
8558    *) as_dir=$as_dir/ ;;
8559  esac
8560    for ac_exec_ext in '' $ac_executable_extensions; do
8561  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8562    ac_cv_prog_ac_ct_OTOOL="otool"
8563    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8564    break 2
8565  fi
8566done
8567  done
8568IFS=$as_save_IFS
8569
8570fi
8571fi
8572ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8573if test -n "$ac_ct_OTOOL"; then
8574  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8575printf "%s\n" "$ac_ct_OTOOL" >&6; }
8576else
8577  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8578printf "%s\n" "no" >&6; }
8579fi
8580
8581  if test "x$ac_ct_OTOOL" = x; then
8582    OTOOL=":"
8583  else
8584    case $cross_compiling:$ac_tool_warned in
8585yes:)
8586{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8587printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8588ac_tool_warned=yes ;;
8589esac
8590    OTOOL=$ac_ct_OTOOL
8591  fi
8592else
8593  OTOOL="$ac_cv_prog_OTOOL"
8594fi
8595
8596    if test -n "$ac_tool_prefix"; then
8597  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8598set dummy ${ac_tool_prefix}otool64; ac_word=$2
8599{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8600printf %s "checking for $ac_word... " >&6; }
8601if test ${ac_cv_prog_OTOOL64+y}
8602then :
8603  printf %s "(cached) " >&6
8604else $as_nop
8605  if test -n "$OTOOL64"; then
8606  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8607else
8608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8609for as_dir in $PATH
8610do
8611  IFS=$as_save_IFS
8612  case $as_dir in #(((
8613    '') as_dir=./ ;;
8614    */) ;;
8615    *) as_dir=$as_dir/ ;;
8616  esac
8617    for ac_exec_ext in '' $ac_executable_extensions; do
8618  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8619    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8620    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8621    break 2
8622  fi
8623done
8624  done
8625IFS=$as_save_IFS
8626
8627fi
8628fi
8629OTOOL64=$ac_cv_prog_OTOOL64
8630if test -n "$OTOOL64"; then
8631  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8632printf "%s\n" "$OTOOL64" >&6; }
8633else
8634  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8635printf "%s\n" "no" >&6; }
8636fi
8637
8638
8639fi
8640if test -z "$ac_cv_prog_OTOOL64"; then
8641  ac_ct_OTOOL64=$OTOOL64
8642  # Extract the first word of "otool64", so it can be a program name with args.
8643set dummy otool64; ac_word=$2
8644{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8645printf %s "checking for $ac_word... " >&6; }
8646if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8647then :
8648  printf %s "(cached) " >&6
8649else $as_nop
8650  if test -n "$ac_ct_OTOOL64"; then
8651  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8652else
8653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8654for as_dir in $PATH
8655do
8656  IFS=$as_save_IFS
8657  case $as_dir in #(((
8658    '') as_dir=./ ;;
8659    */) ;;
8660    *) as_dir=$as_dir/ ;;
8661  esac
8662    for ac_exec_ext in '' $ac_executable_extensions; do
8663  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8664    ac_cv_prog_ac_ct_OTOOL64="otool64"
8665    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8666    break 2
8667  fi
8668done
8669  done
8670IFS=$as_save_IFS
8671
8672fi
8673fi
8674ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8675if test -n "$ac_ct_OTOOL64"; then
8676  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8677printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8678else
8679  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8680printf "%s\n" "no" >&6; }
8681fi
8682
8683  if test "x$ac_ct_OTOOL64" = x; then
8684    OTOOL64=":"
8685  else
8686    case $cross_compiling:$ac_tool_warned in
8687yes:)
8688{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8689printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8690ac_tool_warned=yes ;;
8691esac
8692    OTOOL64=$ac_ct_OTOOL64
8693  fi
8694else
8695  OTOOL64="$ac_cv_prog_OTOOL64"
8696fi
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8725printf %s "checking for -single_module linker flag... " >&6; }
8726if test ${lt_cv_apple_cc_single_mod+y}
8727then :
8728  printf %s "(cached) " >&6
8729else $as_nop
8730  lt_cv_apple_cc_single_mod=no
8731      if test -z "$LT_MULTI_MODULE"; then
8732	# By default we will add the -single_module flag. You can override
8733	# by either setting the environment variable LT_MULTI_MODULE
8734	# non-empty at configure time, or by adding -multi_module to the
8735	# link flags.
8736	rm -rf libconftest.dylib*
8737	echo "int foo(void){return 1;}" > conftest.c
8738	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8739-dynamiclib -Wl,-single_module conftest.c" >&5
8740	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8741	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8742        _lt_result=$?
8743	# If there is a non-empty error log, and "single_module"
8744	# appears in it, assume the flag caused a linker warning
8745        if test -s conftest.err && $GREP single_module conftest.err; then
8746	  cat conftest.err >&5
8747	# Otherwise, if the output was created with a 0 exit code from
8748	# the compiler, it worked.
8749	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8750	  lt_cv_apple_cc_single_mod=yes
8751	else
8752	  cat conftest.err >&5
8753	fi
8754	rm -rf libconftest.dylib*
8755	rm -f conftest.*
8756      fi
8757fi
8758{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8759printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8760
8761    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8762printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8763if test ${lt_cv_ld_exported_symbols_list+y}
8764then :
8765  printf %s "(cached) " >&6
8766else $as_nop
8767  lt_cv_ld_exported_symbols_list=no
8768      save_LDFLAGS=$LDFLAGS
8769      echo "_main" > conftest.sym
8770      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8771      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8772/* end confdefs.h.  */
8773
8774int
8775main (void)
8776{
8777
8778  ;
8779  return 0;
8780}
8781_ACEOF
8782if ac_fn_c_try_link "$LINENO"
8783then :
8784  lt_cv_ld_exported_symbols_list=yes
8785else $as_nop
8786  lt_cv_ld_exported_symbols_list=no
8787fi
8788rm -f core conftest.err conftest.$ac_objext conftest.beam \
8789    conftest$ac_exeext conftest.$ac_ext
8790	LDFLAGS=$save_LDFLAGS
8791
8792fi
8793{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8794printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8795
8796    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8797printf %s "checking for -force_load linker flag... " >&6; }
8798if test ${lt_cv_ld_force_load+y}
8799then :
8800  printf %s "(cached) " >&6
8801else $as_nop
8802  lt_cv_ld_force_load=no
8803      cat > conftest.c << _LT_EOF
8804int forced_loaded() { return 2;}
8805_LT_EOF
8806      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8807      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8808      echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8809      $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8810      echo "$RANLIB libconftest.a" >&5
8811      $RANLIB libconftest.a 2>&5
8812      cat > conftest.c << _LT_EOF
8813int main() { return 0;}
8814_LT_EOF
8815      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8816      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8817      _lt_result=$?
8818      if test -s conftest.err && $GREP force_load conftest.err; then
8819	cat conftest.err >&5
8820      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8821	lt_cv_ld_force_load=yes
8822      else
8823	cat conftest.err >&5
8824      fi
8825        rm -f conftest.err libconftest.a conftest conftest.c
8826        rm -rf conftest.dSYM
8827
8828fi
8829{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8830printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8831    case $host_os in
8832    rhapsody* | darwin1.[012])
8833      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8834    darwin1.*)
8835      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8836    darwin*)
8837      case $MACOSX_DEPLOYMENT_TARGET,$host in
8838        10.[012],*|,*powerpc*-darwin[5-8]*)
8839          _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8840        *)
8841          _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8842      esac
8843    ;;
8844  esac
8845    if test yes = "$lt_cv_apple_cc_single_mod"; then
8846      _lt_dar_single_mod='$single_module'
8847    fi
8848    if test yes = "$lt_cv_ld_exported_symbols_list"; then
8849      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8850    else
8851      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8852    fi
8853    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8854      _lt_dsymutil='~$DSYMUTIL $lib || :'
8855    else
8856      _lt_dsymutil=
8857    fi
8858    ;;
8859  esac
8860
8861# func_munge_path_list VARIABLE PATH
8862# -----------------------------------
8863# VARIABLE is name of variable containing _space_ separated list of
8864# directories to be munged by the contents of PATH, which is string
8865# having a format:
8866# "DIR[:DIR]:"
8867#       string "DIR[ DIR]" will be prepended to VARIABLE
8868# ":DIR[:DIR]"
8869#       string "DIR[ DIR]" will be appended to VARIABLE
8870# "DIRP[:DIRP]::[DIRA:]DIRA"
8871#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8872#       "DIRA[ DIRA]" will be appended to VARIABLE
8873# "DIR[:DIR]"
8874#       VARIABLE will be replaced by "DIR[ DIR]"
8875func_munge_path_list ()
8876{
8877    case x$2 in
8878    x)
8879        ;;
8880    *:)
8881        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8882        ;;
8883    x:*)
8884        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8885        ;;
8886    *::*)
8887        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8888        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8889        ;;
8890    *)
8891        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8892        ;;
8893    esac
8894}
8895
8896ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8897"
8898if test "x$ac_cv_header_dlfcn_h" = xyes
8899then :
8900  printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8901
8902fi
8903
8904
8905
8906
8907
8908# Set options
8909
8910
8911
8912        enable_dlopen=no
8913
8914
8915
8916            # Check whether --enable-shared was given.
8917if test ${enable_shared+y}
8918then :
8919  enableval=$enable_shared; p=${PACKAGE-default}
8920    case $enableval in
8921    yes) enable_shared=yes ;;
8922    no) enable_shared=no ;;
8923    *)
8924      enable_shared=no
8925      # Look at the argument we got.  We use all the common list separators.
8926      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8927      for pkg in $enableval; do
8928	IFS=$lt_save_ifs
8929	if test "X$pkg" = "X$p"; then
8930	  enable_shared=yes
8931	fi
8932      done
8933      IFS=$lt_save_ifs
8934      ;;
8935    esac
8936else $as_nop
8937  enable_shared=yes
8938fi
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948  # Check whether --enable-static was given.
8949if test ${enable_static+y}
8950then :
8951  enableval=$enable_static; p=${PACKAGE-default}
8952    case $enableval in
8953    yes) enable_static=yes ;;
8954    no) enable_static=no ;;
8955    *)
8956     enable_static=no
8957      # Look at the argument we got.  We use all the common list separators.
8958      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8959      for pkg in $enableval; do
8960	IFS=$lt_save_ifs
8961	if test "X$pkg" = "X$p"; then
8962	  enable_static=yes
8963	fi
8964      done
8965      IFS=$lt_save_ifs
8966      ;;
8967    esac
8968else $as_nop
8969  enable_static=yes
8970fi
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981# Check whether --with-pic was given.
8982if test ${with_pic+y}
8983then :
8984  withval=$with_pic; lt_p=${PACKAGE-default}
8985    case $withval in
8986    yes|no) pic_mode=$withval ;;
8987    *)
8988      pic_mode=default
8989      # Look at the argument we got.  We use all the common list separators.
8990      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8991      for lt_pkg in $withval; do
8992	IFS=$lt_save_ifs
8993	if test "X$lt_pkg" = "X$lt_p"; then
8994	  pic_mode=yes
8995	fi
8996      done
8997      IFS=$lt_save_ifs
8998      ;;
8999    esac
9000else $as_nop
9001  pic_mode=default
9002fi
9003
9004
9005
9006
9007
9008
9009
9010
9011  # Check whether --enable-fast-install was given.
9012if test ${enable_fast_install+y}
9013then :
9014  enableval=$enable_fast_install; p=${PACKAGE-default}
9015    case $enableval in
9016    yes) enable_fast_install=yes ;;
9017    no) enable_fast_install=no ;;
9018    *)
9019      enable_fast_install=no
9020      # Look at the argument we got.  We use all the common list separators.
9021      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9022      for pkg in $enableval; do
9023	IFS=$lt_save_ifs
9024	if test "X$pkg" = "X$p"; then
9025	  enable_fast_install=yes
9026	fi
9027      done
9028      IFS=$lt_save_ifs
9029      ;;
9030    esac
9031else $as_nop
9032  enable_fast_install=yes
9033fi
9034
9035
9036
9037
9038
9039
9040
9041
9042  shared_archive_member_spec=
9043case $host,$enable_shared in
9044power*-*-aix[5-9]*,yes)
9045  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9046printf %s "checking which variant of shared library versioning to provide... " >&6; }
9047
9048# Check whether --with-aix-soname was given.
9049if test ${with_aix_soname+y}
9050then :
9051  withval=$with_aix_soname; case $withval in
9052    aix|svr4|both)
9053      ;;
9054    *)
9055      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9056      ;;
9057    esac
9058    lt_cv_with_aix_soname=$with_aix_soname
9059else $as_nop
9060  if test ${lt_cv_with_aix_soname+y}
9061then :
9062  printf %s "(cached) " >&6
9063else $as_nop
9064  lt_cv_with_aix_soname=aix
9065fi
9066
9067    with_aix_soname=$lt_cv_with_aix_soname
9068fi
9069
9070  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9071printf "%s\n" "$with_aix_soname" >&6; }
9072  if test aix != "$with_aix_soname"; then
9073    # For the AIX way of multilib, we name the shared archive member
9074    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9075    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9076    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9077    # the AIX toolchain works better with OBJECT_MODE set (default 32).
9078    if test 64 = "${OBJECT_MODE-32}"; then
9079      shared_archive_member_spec=shr_64
9080    else
9081      shared_archive_member_spec=shr
9082    fi
9083  fi
9084  ;;
9085*)
9086  with_aix_soname=aix
9087  ;;
9088esac
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099# This can be used to rebuild libtool when needed
9100LIBTOOL_DEPS=$ltmain
9101
9102# Always use our own libtool.
9103LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134test -z "$LN_S" && LN_S="ln -s"
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149if test -n "${ZSH_VERSION+set}"; then
9150   setopt NO_GLOB_SUBST
9151fi
9152
9153{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9154printf %s "checking for objdir... " >&6; }
9155if test ${lt_cv_objdir+y}
9156then :
9157  printf %s "(cached) " >&6
9158else $as_nop
9159  rm -f .libs 2>/dev/null
9160mkdir .libs 2>/dev/null
9161if test -d .libs; then
9162  lt_cv_objdir=.libs
9163else
9164  # MS-DOS does not allow filenames that begin with a dot.
9165  lt_cv_objdir=_libs
9166fi
9167rmdir .libs 2>/dev/null
9168fi
9169{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9170printf "%s\n" "$lt_cv_objdir" >&6; }
9171objdir=$lt_cv_objdir
9172
9173
9174
9175
9176
9177printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
9178
9179
9180
9181
9182case $host_os in
9183aix3*)
9184  # AIX sometimes has problems with the GCC collect2 program.  For some
9185  # reason, if we set the COLLECT_NAMES environment variable, the problems
9186  # vanish in a puff of smoke.
9187  if test set != "${COLLECT_NAMES+set}"; then
9188    COLLECT_NAMES=
9189    export COLLECT_NAMES
9190  fi
9191  ;;
9192esac
9193
9194# Global variables:
9195ofile=libtool
9196can_build_shared=yes
9197
9198# All known linkers require a '.a' archive for static linking (except MSVC and
9199# ICC, which need '.lib').
9200libext=a
9201
9202with_gnu_ld=$lt_cv_prog_gnu_ld
9203
9204old_CC=$CC
9205old_CFLAGS=$CFLAGS
9206
9207# Set sane defaults for various variables
9208test -z "$CC" && CC=cc
9209test -z "$LTCC" && LTCC=$CC
9210test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9211test -z "$LD" && LD=ld
9212test -z "$ac_objext" && ac_objext=o
9213
9214func_cc_basename $compiler
9215cc_basename=$func_cc_basename_result
9216
9217
9218# Only perform the check for file, if the check method requires it
9219test -z "$MAGIC_CMD" && MAGIC_CMD=file
9220case $deplibs_check_method in
9221file_magic*)
9222  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9223    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9224printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9225if test ${lt_cv_path_MAGIC_CMD+y}
9226then :
9227  printf %s "(cached) " >&6
9228else $as_nop
9229  case $MAGIC_CMD in
9230[\\/*] |  ?:[\\/]*)
9231  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9232  ;;
9233*)
9234  lt_save_MAGIC_CMD=$MAGIC_CMD
9235  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9236  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9237  for ac_dir in $ac_dummy; do
9238    IFS=$lt_save_ifs
9239    test -z "$ac_dir" && ac_dir=.
9240    if test -f "$ac_dir/${ac_tool_prefix}file"; then
9241      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9242      if test -n "$file_magic_test_file"; then
9243	case $deplibs_check_method in
9244	"file_magic "*)
9245	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9246	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9247	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9248	    $EGREP "$file_magic_regex" > /dev/null; then
9249	    :
9250	  else
9251	    cat <<_LT_EOF 1>&2
9252
9253*** Warning: the command libtool uses to detect shared libraries,
9254*** $file_magic_cmd, produces output that libtool cannot recognize.
9255*** The result is that libtool may fail to recognize shared libraries
9256*** as such.  This will affect the creation of libtool libraries that
9257*** depend on shared libraries, but programs linked with such libtool
9258*** libraries will work regardless of this problem.  Nevertheless, you
9259*** may want to report the problem to your system manager and/or to
9260*** bug-libtool@gnu.org
9261
9262_LT_EOF
9263	  fi ;;
9264	esac
9265      fi
9266      break
9267    fi
9268  done
9269  IFS=$lt_save_ifs
9270  MAGIC_CMD=$lt_save_MAGIC_CMD
9271  ;;
9272esac
9273fi
9274
9275MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9276if test -n "$MAGIC_CMD"; then
9277  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9278printf "%s\n" "$MAGIC_CMD" >&6; }
9279else
9280  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9281printf "%s\n" "no" >&6; }
9282fi
9283
9284
9285
9286
9287
9288if test -z "$lt_cv_path_MAGIC_CMD"; then
9289  if test -n "$ac_tool_prefix"; then
9290    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9291printf %s "checking for file... " >&6; }
9292if test ${lt_cv_path_MAGIC_CMD+y}
9293then :
9294  printf %s "(cached) " >&6
9295else $as_nop
9296  case $MAGIC_CMD in
9297[\\/*] |  ?:[\\/]*)
9298  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9299  ;;
9300*)
9301  lt_save_MAGIC_CMD=$MAGIC_CMD
9302  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9303  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9304  for ac_dir in $ac_dummy; do
9305    IFS=$lt_save_ifs
9306    test -z "$ac_dir" && ac_dir=.
9307    if test -f "$ac_dir/file"; then
9308      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9309      if test -n "$file_magic_test_file"; then
9310	case $deplibs_check_method in
9311	"file_magic "*)
9312	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9313	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9314	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9315	    $EGREP "$file_magic_regex" > /dev/null; then
9316	    :
9317	  else
9318	    cat <<_LT_EOF 1>&2
9319
9320*** Warning: the command libtool uses to detect shared libraries,
9321*** $file_magic_cmd, produces output that libtool cannot recognize.
9322*** The result is that libtool may fail to recognize shared libraries
9323*** as such.  This will affect the creation of libtool libraries that
9324*** depend on shared libraries, but programs linked with such libtool
9325*** libraries will work regardless of this problem.  Nevertheless, you
9326*** may want to report the problem to your system manager and/or to
9327*** bug-libtool@gnu.org
9328
9329_LT_EOF
9330	  fi ;;
9331	esac
9332      fi
9333      break
9334    fi
9335  done
9336  IFS=$lt_save_ifs
9337  MAGIC_CMD=$lt_save_MAGIC_CMD
9338  ;;
9339esac
9340fi
9341
9342MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9343if test -n "$MAGIC_CMD"; then
9344  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9345printf "%s\n" "$MAGIC_CMD" >&6; }
9346else
9347  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9348printf "%s\n" "no" >&6; }
9349fi
9350
9351
9352  else
9353    MAGIC_CMD=:
9354  fi
9355fi
9356
9357  fi
9358  ;;
9359esac
9360
9361# Use C for the default configuration in the libtool script
9362
9363lt_save_CC=$CC
9364ac_ext=c
9365ac_cpp='$CPP $CPPFLAGS'
9366ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9367ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9368ac_compiler_gnu=$ac_cv_c_compiler_gnu
9369
9370
9371# Source file extension for C test sources.
9372ac_ext=c
9373
9374# Object file extension for compiled C test sources.
9375objext=o
9376objext=$objext
9377
9378# Code to be used in simple compile tests
9379lt_simple_compile_test_code="int some_variable = 0;"
9380
9381# Code to be used in simple link tests
9382lt_simple_link_test_code='int main(){return(0);}'
9383
9384
9385
9386
9387
9388
9389
9390# If no C compiler was specified, use CC.
9391LTCC=${LTCC-"$CC"}
9392
9393# If no C compiler flags were specified, use CFLAGS.
9394LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9395
9396# Allow CC to be a program name with arguments.
9397compiler=$CC
9398
9399# Save the default compiler, since it gets overwritten when the other
9400# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9401compiler_DEFAULT=$CC
9402
9403# save warnings/boilerplate of simple test code
9404ac_outfile=conftest.$ac_objext
9405echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9406eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9407_lt_compiler_boilerplate=`cat conftest.err`
9408$RM conftest*
9409
9410ac_outfile=conftest.$ac_objext
9411echo "$lt_simple_link_test_code" >conftest.$ac_ext
9412eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9413_lt_linker_boilerplate=`cat conftest.err`
9414$RM -r conftest*
9415
9416
9417if test -n "$compiler"; then
9418
9419lt_prog_compiler_no_builtin_flag=
9420
9421if test yes = "$GCC"; then
9422  case $cc_basename in
9423  nvcc*)
9424    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9425  *)
9426    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9427  esac
9428
9429  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9430printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9431if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9432then :
9433  printf %s "(cached) " >&6
9434else $as_nop
9435  lt_cv_prog_compiler_rtti_exceptions=no
9436   ac_outfile=conftest.$ac_objext
9437   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9438   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
9439   # Insert the option either (1) after the last *FLAGS variable, or
9440   # (2) before a word containing "conftest.", or (3) at the end.
9441   # Note that $ac_compile itself does not contain backslashes and begins
9442   # with a dollar sign (not a hyphen), so the echo should work correctly.
9443   # The option is referenced via a variable to avoid confusing sed.
9444   lt_compile=`echo "$ac_compile" | $SED \
9445   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9446   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9447   -e 's:$: $lt_compiler_flag:'`
9448   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9449   (eval "$lt_compile" 2>conftest.err)
9450   ac_status=$?
9451   cat conftest.err >&5
9452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9453   if (exit $ac_status) && test -s "$ac_outfile"; then
9454     # The compiler can only warn and ignore the option if not recognized
9455     # So say no if there are warnings other than the usual output.
9456     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9457     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9458     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9459       lt_cv_prog_compiler_rtti_exceptions=yes
9460     fi
9461   fi
9462   $RM conftest*
9463
9464fi
9465{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9466printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9467
9468if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9469    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9470else
9471    :
9472fi
9473
9474fi
9475
9476
9477
9478
9479
9480
9481  lt_prog_compiler_wl=
9482lt_prog_compiler_pic=
9483lt_prog_compiler_static=
9484
9485
9486  if test yes = "$GCC"; then
9487    lt_prog_compiler_wl='-Wl,'
9488    lt_prog_compiler_static='-static'
9489
9490    case $host_os in
9491      aix*)
9492      # All AIX code is PIC.
9493      if test ia64 = "$host_cpu"; then
9494	# AIX 5 now supports IA64 processor
9495	lt_prog_compiler_static='-Bstatic'
9496      fi
9497      lt_prog_compiler_pic='-fPIC'
9498      ;;
9499
9500    amigaos*)
9501      case $host_cpu in
9502      powerpc)
9503            # see comment about AmigaOS4 .so support
9504            lt_prog_compiler_pic='-fPIC'
9505        ;;
9506      m68k)
9507            # FIXME: we need at least 68020 code to build shared libraries, but
9508            # adding the '-m68020' flag to GCC prevents building anything better,
9509            # like '-m68040'.
9510            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9511        ;;
9512      esac
9513      ;;
9514
9515    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9516      # PIC is the default for these OSes.
9517      ;;
9518
9519    mingw* | cygwin* | pw32* | os2* | cegcc*)
9520      # This hack is so that the source file can tell whether it is being
9521      # built for inclusion in a dll (and should export symbols for example).
9522      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9523      # (--disable-auto-import) libraries
9524      lt_prog_compiler_pic='-DDLL_EXPORT'
9525      case $host_os in
9526      os2*)
9527	lt_prog_compiler_static='$wl-static'
9528	;;
9529      esac
9530      ;;
9531
9532    darwin* | rhapsody*)
9533      # PIC is the default on this platform
9534      # Common symbols not allowed in MH_DYLIB files
9535      lt_prog_compiler_pic='-fno-common'
9536      ;;
9537
9538    haiku*)
9539      # PIC is the default for Haiku.
9540      # The "-static" flag exists, but is broken.
9541      lt_prog_compiler_static=
9542      ;;
9543
9544    hpux*)
9545      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9546      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9547      # sets the default TLS model and affects inlining.
9548      case $host_cpu in
9549      hppa*64*)
9550	# +Z the default
9551	;;
9552      *)
9553	lt_prog_compiler_pic='-fPIC'
9554	;;
9555      esac
9556      ;;
9557
9558    interix[3-9]*)
9559      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9560      # Instead, we relocate shared libraries at runtime.
9561      ;;
9562
9563    msdosdjgpp*)
9564      # Just because we use GCC doesn't mean we suddenly get shared libraries
9565      # on systems that don't support them.
9566      lt_prog_compiler_can_build_shared=no
9567      enable_shared=no
9568      ;;
9569
9570    *nto* | *qnx*)
9571      # QNX uses GNU C++, but need to define -shared option too, otherwise
9572      # it will coredump.
9573      lt_prog_compiler_pic='-fPIC -shared'
9574      ;;
9575
9576    sysv4*MP*)
9577      if test -d /usr/nec; then
9578	lt_prog_compiler_pic=-Kconform_pic
9579      fi
9580      ;;
9581
9582    *)
9583      lt_prog_compiler_pic='-fPIC'
9584      ;;
9585    esac
9586
9587    case $cc_basename in
9588    nvcc*) # Cuda Compiler Driver 2.2
9589      lt_prog_compiler_wl='-Xlinker '
9590      if test -n "$lt_prog_compiler_pic"; then
9591        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9592      fi
9593      ;;
9594    esac
9595  else
9596    # PORTME Check for flag to pass linker flags through the system compiler.
9597    case $host_os in
9598    aix*)
9599      lt_prog_compiler_wl='-Wl,'
9600      if test ia64 = "$host_cpu"; then
9601	# AIX 5 now supports IA64 processor
9602	lt_prog_compiler_static='-Bstatic'
9603      else
9604	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9605      fi
9606      ;;
9607
9608    darwin* | rhapsody*)
9609      # PIC is the default on this platform
9610      # Common symbols not allowed in MH_DYLIB files
9611      lt_prog_compiler_pic='-fno-common'
9612      case $cc_basename in
9613      nagfor*)
9614        # NAG Fortran compiler
9615        lt_prog_compiler_wl='-Wl,-Wl,,'
9616        lt_prog_compiler_pic='-PIC'
9617        lt_prog_compiler_static='-Bstatic'
9618        ;;
9619      esac
9620      ;;
9621
9622    mingw* | cygwin* | pw32* | os2* | cegcc*)
9623      # This hack is so that the source file can tell whether it is being
9624      # built for inclusion in a dll (and should export symbols for example).
9625      lt_prog_compiler_pic='-DDLL_EXPORT'
9626      case $host_os in
9627      os2*)
9628	lt_prog_compiler_static='$wl-static'
9629	;;
9630      esac
9631      ;;
9632
9633    hpux9* | hpux10* | hpux11*)
9634      lt_prog_compiler_wl='-Wl,'
9635      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9636      # not for PA HP-UX.
9637      case $host_cpu in
9638      hppa*64*|ia64*)
9639	# +Z the default
9640	;;
9641      *)
9642	lt_prog_compiler_pic='+Z'
9643	;;
9644      esac
9645      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9646      lt_prog_compiler_static='$wl-a ${wl}archive'
9647      ;;
9648
9649    irix5* | irix6* | nonstopux*)
9650      lt_prog_compiler_wl='-Wl,'
9651      # PIC (with -KPIC) is the default.
9652      lt_prog_compiler_static='-non_shared'
9653      ;;
9654
9655    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9656      case $cc_basename in
9657      # old Intel for x86_64, which still supported -KPIC.
9658      ecc*)
9659	lt_prog_compiler_wl='-Wl,'
9660	lt_prog_compiler_pic='-KPIC'
9661	lt_prog_compiler_static='-static'
9662        ;;
9663      # icc used to be incompatible with GCC.
9664      # ICC 10 doesn't accept -KPIC any more.
9665      icc* | ifort*)
9666	lt_prog_compiler_wl='-Wl,'
9667	lt_prog_compiler_pic='-fPIC'
9668	lt_prog_compiler_static='-static'
9669        ;;
9670      # Lahey Fortran 8.1.
9671      lf95*)
9672	lt_prog_compiler_wl='-Wl,'
9673	lt_prog_compiler_pic='--shared'
9674	lt_prog_compiler_static='--static'
9675	;;
9676      nagfor*)
9677	# NAG Fortran compiler
9678	lt_prog_compiler_wl='-Wl,-Wl,,'
9679	lt_prog_compiler_pic='-PIC'
9680	lt_prog_compiler_static='-Bstatic'
9681	;;
9682      tcc*)
9683	# Fabrice Bellard et al's Tiny C Compiler
9684	lt_prog_compiler_wl='-Wl,'
9685	lt_prog_compiler_pic='-fPIC'
9686	lt_prog_compiler_static='-static'
9687	;;
9688      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9689        # Portland Group compilers (*not* the Pentium gcc compiler,
9690	# which looks to be a dead project)
9691	lt_prog_compiler_wl='-Wl,'
9692	lt_prog_compiler_pic='-fpic'
9693	lt_prog_compiler_static='-Bstatic'
9694        ;;
9695      ccc*)
9696        lt_prog_compiler_wl='-Wl,'
9697        # All Alpha code is PIC.
9698        lt_prog_compiler_static='-non_shared'
9699        ;;
9700      xl* | bgxl* | bgf* | mpixl*)
9701	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9702	lt_prog_compiler_wl='-Wl,'
9703	lt_prog_compiler_pic='-qpic'
9704	lt_prog_compiler_static='-qstaticlink'
9705	;;
9706      *)
9707	case `$CC -V 2>&1 | $SED 5q` in
9708	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9709	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9710	  lt_prog_compiler_pic='-KPIC'
9711	  lt_prog_compiler_static='-Bstatic'
9712	  lt_prog_compiler_wl=''
9713	  ;;
9714	*Sun\ F* | *Sun*Fortran*)
9715	  lt_prog_compiler_pic='-KPIC'
9716	  lt_prog_compiler_static='-Bstatic'
9717	  lt_prog_compiler_wl='-Qoption ld '
9718	  ;;
9719	*Sun\ C*)
9720	  # Sun C 5.9
9721	  lt_prog_compiler_pic='-KPIC'
9722	  lt_prog_compiler_static='-Bstatic'
9723	  lt_prog_compiler_wl='-Wl,'
9724	  ;;
9725        *Intel*\ [CF]*Compiler*)
9726	  lt_prog_compiler_wl='-Wl,'
9727	  lt_prog_compiler_pic='-fPIC'
9728	  lt_prog_compiler_static='-static'
9729	  ;;
9730	*Portland\ Group*)
9731	  lt_prog_compiler_wl='-Wl,'
9732	  lt_prog_compiler_pic='-fpic'
9733	  lt_prog_compiler_static='-Bstatic'
9734	  ;;
9735	esac
9736	;;
9737      esac
9738      ;;
9739
9740    newsos6)
9741      lt_prog_compiler_pic='-KPIC'
9742      lt_prog_compiler_static='-Bstatic'
9743      ;;
9744
9745    *nto* | *qnx*)
9746      # QNX uses GNU C++, but need to define -shared option too, otherwise
9747      # it will coredump.
9748      lt_prog_compiler_pic='-fPIC -shared'
9749      ;;
9750
9751    osf3* | osf4* | osf5*)
9752      lt_prog_compiler_wl='-Wl,'
9753      # All OSF/1 code is PIC.
9754      lt_prog_compiler_static='-non_shared'
9755      ;;
9756
9757    rdos*)
9758      lt_prog_compiler_static='-non_shared'
9759      ;;
9760
9761    solaris*)
9762      lt_prog_compiler_pic='-KPIC'
9763      lt_prog_compiler_static='-Bstatic'
9764      case $cc_basename in
9765      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9766	lt_prog_compiler_wl='-Qoption ld ';;
9767      *)
9768	lt_prog_compiler_wl='-Wl,';;
9769      esac
9770      ;;
9771
9772    sunos4*)
9773      lt_prog_compiler_wl='-Qoption ld '
9774      lt_prog_compiler_pic='-PIC'
9775      lt_prog_compiler_static='-Bstatic'
9776      ;;
9777
9778    sysv4 | sysv4.2uw2* | sysv4.3*)
9779      lt_prog_compiler_wl='-Wl,'
9780      lt_prog_compiler_pic='-KPIC'
9781      lt_prog_compiler_static='-Bstatic'
9782      ;;
9783
9784    sysv4*MP*)
9785      if test -d /usr/nec; then
9786	lt_prog_compiler_pic='-Kconform_pic'
9787	lt_prog_compiler_static='-Bstatic'
9788      fi
9789      ;;
9790
9791    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9792      lt_prog_compiler_wl='-Wl,'
9793      lt_prog_compiler_pic='-KPIC'
9794      lt_prog_compiler_static='-Bstatic'
9795      ;;
9796
9797    unicos*)
9798      lt_prog_compiler_wl='-Wl,'
9799      lt_prog_compiler_can_build_shared=no
9800      ;;
9801
9802    uts4*)
9803      lt_prog_compiler_pic='-pic'
9804      lt_prog_compiler_static='-Bstatic'
9805      ;;
9806
9807    *)
9808      lt_prog_compiler_can_build_shared=no
9809      ;;
9810    esac
9811  fi
9812
9813case $host_os in
9814  # For platforms that do not support PIC, -DPIC is meaningless:
9815  *djgpp*)
9816    lt_prog_compiler_pic=
9817    ;;
9818  *)
9819    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9820    ;;
9821esac
9822
9823{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9824printf %s "checking for $compiler option to produce PIC... " >&6; }
9825if test ${lt_cv_prog_compiler_pic+y}
9826then :
9827  printf %s "(cached) " >&6
9828else $as_nop
9829  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9830fi
9831{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9832printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9833lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9834
9835#
9836# Check to make sure the PIC flag actually works.
9837#
9838if test -n "$lt_prog_compiler_pic"; then
9839  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9840printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9841if test ${lt_cv_prog_compiler_pic_works+y}
9842then :
9843  printf %s "(cached) " >&6
9844else $as_nop
9845  lt_cv_prog_compiler_pic_works=no
9846   ac_outfile=conftest.$ac_objext
9847   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9848   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9849   # Insert the option either (1) after the last *FLAGS variable, or
9850   # (2) before a word containing "conftest.", or (3) at the end.
9851   # Note that $ac_compile itself does not contain backslashes and begins
9852   # with a dollar sign (not a hyphen), so the echo should work correctly.
9853   # The option is referenced via a variable to avoid confusing sed.
9854   lt_compile=`echo "$ac_compile" | $SED \
9855   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9856   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9857   -e 's:$: $lt_compiler_flag:'`
9858   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9859   (eval "$lt_compile" 2>conftest.err)
9860   ac_status=$?
9861   cat conftest.err >&5
9862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9863   if (exit $ac_status) && test -s "$ac_outfile"; then
9864     # The compiler can only warn and ignore the option if not recognized
9865     # So say no if there are warnings other than the usual output.
9866     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9867     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9868     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9869       lt_cv_prog_compiler_pic_works=yes
9870     fi
9871   fi
9872   $RM conftest*
9873
9874fi
9875{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9876printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9877
9878if test yes = "$lt_cv_prog_compiler_pic_works"; then
9879    case $lt_prog_compiler_pic in
9880     "" | " "*) ;;
9881     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9882     esac
9883else
9884    lt_prog_compiler_pic=
9885     lt_prog_compiler_can_build_shared=no
9886fi
9887
9888fi
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900#
9901# Check to make sure the static flag actually works.
9902#
9903wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9904{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9905printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9906if test ${lt_cv_prog_compiler_static_works+y}
9907then :
9908  printf %s "(cached) " >&6
9909else $as_nop
9910  lt_cv_prog_compiler_static_works=no
9911   save_LDFLAGS=$LDFLAGS
9912   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9913   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9914   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9915     # The linker can only warn and ignore the option if not recognized
9916     # So say no if there are warnings
9917     if test -s conftest.err; then
9918       # Append any errors to the config.log.
9919       cat conftest.err 1>&5
9920       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9921       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9922       if diff conftest.exp conftest.er2 >/dev/null; then
9923         lt_cv_prog_compiler_static_works=yes
9924       fi
9925     else
9926       lt_cv_prog_compiler_static_works=yes
9927     fi
9928   fi
9929   $RM -r conftest*
9930   LDFLAGS=$save_LDFLAGS
9931
9932fi
9933{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9934printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9935
9936if test yes = "$lt_cv_prog_compiler_static_works"; then
9937    :
9938else
9939    lt_prog_compiler_static=
9940fi
9941
9942
9943
9944
9945
9946
9947
9948  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9949printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9950if test ${lt_cv_prog_compiler_c_o+y}
9951then :
9952  printf %s "(cached) " >&6
9953else $as_nop
9954  lt_cv_prog_compiler_c_o=no
9955   $RM -r conftest 2>/dev/null
9956   mkdir conftest
9957   cd conftest
9958   mkdir out
9959   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9960
9961   lt_compiler_flag="-o out/conftest2.$ac_objext"
9962   # Insert the option either (1) after the last *FLAGS variable, or
9963   # (2) before a word containing "conftest.", or (3) at the end.
9964   # Note that $ac_compile itself does not contain backslashes and begins
9965   # with a dollar sign (not a hyphen), so the echo should work correctly.
9966   lt_compile=`echo "$ac_compile" | $SED \
9967   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9968   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9969   -e 's:$: $lt_compiler_flag:'`
9970   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9971   (eval "$lt_compile" 2>out/conftest.err)
9972   ac_status=$?
9973   cat out/conftest.err >&5
9974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9975   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9976   then
9977     # The compiler can only warn and ignore the option if not recognized
9978     # So say no if there are warnings
9979     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9980     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9981     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9982       lt_cv_prog_compiler_c_o=yes
9983     fi
9984   fi
9985   chmod u+w . 2>&5
9986   $RM conftest*
9987   # SGI C++ compiler will create directory out/ii_files/ for
9988   # template instantiation
9989   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9990   $RM out/* && rmdir out
9991   cd ..
9992   $RM -r conftest
9993   $RM conftest*
9994
9995fi
9996{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9997printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9998
9999
10000
10001
10002
10003
10004  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10005printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10006if test ${lt_cv_prog_compiler_c_o+y}
10007then :
10008  printf %s "(cached) " >&6
10009else $as_nop
10010  lt_cv_prog_compiler_c_o=no
10011   $RM -r conftest 2>/dev/null
10012   mkdir conftest
10013   cd conftest
10014   mkdir out
10015   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10016
10017   lt_compiler_flag="-o out/conftest2.$ac_objext"
10018   # Insert the option either (1) after the last *FLAGS variable, or
10019   # (2) before a word containing "conftest.", or (3) at the end.
10020   # Note that $ac_compile itself does not contain backslashes and begins
10021   # with a dollar sign (not a hyphen), so the echo should work correctly.
10022   lt_compile=`echo "$ac_compile" | $SED \
10023   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10024   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10025   -e 's:$: $lt_compiler_flag:'`
10026   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10027   (eval "$lt_compile" 2>out/conftest.err)
10028   ac_status=$?
10029   cat out/conftest.err >&5
10030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10031   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10032   then
10033     # The compiler can only warn and ignore the option if not recognized
10034     # So say no if there are warnings
10035     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10036     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10037     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10038       lt_cv_prog_compiler_c_o=yes
10039     fi
10040   fi
10041   chmod u+w . 2>&5
10042   $RM conftest*
10043   # SGI C++ compiler will create directory out/ii_files/ for
10044   # template instantiation
10045   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10046   $RM out/* && rmdir out
10047   cd ..
10048   $RM -r conftest
10049   $RM conftest*
10050
10051fi
10052{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10053printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10054
10055
10056
10057
10058hard_links=nottested
10059if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10060  # do not overwrite the value of need_locks provided by the user
10061  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10062printf %s "checking if we can lock with hard links... " >&6; }
10063  hard_links=yes
10064  $RM conftest*
10065  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10066  touch conftest.a
10067  ln conftest.a conftest.b 2>&5 || hard_links=no
10068  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10069  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10070printf "%s\n" "$hard_links" >&6; }
10071  if test no = "$hard_links"; then
10072    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10073printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10074    need_locks=warn
10075  fi
10076else
10077  need_locks=no
10078fi
10079
10080
10081
10082
10083
10084
10085  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10086printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10087
10088  runpath_var=
10089  allow_undefined_flag=
10090  always_export_symbols=no
10091  archive_cmds=
10092  archive_expsym_cmds=
10093  compiler_needs_object=no
10094  enable_shared_with_static_runtimes=no
10095  export_dynamic_flag_spec=
10096  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10097  hardcode_automatic=no
10098  hardcode_direct=no
10099  hardcode_direct_absolute=no
10100  hardcode_libdir_flag_spec=
10101  hardcode_libdir_separator=
10102  hardcode_minus_L=no
10103  hardcode_shlibpath_var=unsupported
10104  inherit_rpath=no
10105  link_all_deplibs=unknown
10106  module_cmds=
10107  module_expsym_cmds=
10108  old_archive_from_new_cmds=
10109  old_archive_from_expsyms_cmds=
10110  thread_safe_flag_spec=
10111  whole_archive_flag_spec=
10112  # include_expsyms should be a list of space-separated symbols to be *always*
10113  # included in the symbol list
10114  include_expsyms=
10115  # exclude_expsyms can be an extended regexp of symbols to exclude
10116  # it will be wrapped by ' (' and ')$', so one must not match beginning or
10117  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10118  # as well as any symbol that contains 'd'.
10119  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10120  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10121  # platforms (ab)use it in PIC code, but their linkers get confused if
10122  # the symbol is explicitly referenced.  Since portable code cannot
10123  # rely on this symbol name, it's probably fine to never include it in
10124  # preloaded symbol tables.
10125  # Exclude shared library initialization/finalization symbols.
10126  extract_expsyms_cmds=
10127
10128  case $host_os in
10129  cygwin* | mingw* | pw32* | cegcc*)
10130    # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
10131    # When not using gcc, we currently assume that we are using
10132    # Microsoft Visual C++ or Intel C++ Compiler.
10133    if test yes != "$GCC"; then
10134      with_gnu_ld=no
10135    fi
10136    ;;
10137  interix*)
10138    # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
10139    with_gnu_ld=yes
10140    ;;
10141  openbsd* | bitrig*)
10142    with_gnu_ld=no
10143    ;;
10144  esac
10145
10146  ld_shlibs=yes
10147
10148  # On some targets, GNU ld is compatible enough with the native linker
10149  # that we're better off using the native interface for both.
10150  lt_use_gnu_ld_interface=no
10151  if test yes = "$with_gnu_ld"; then
10152    case $host_os in
10153      aix*)
10154	# The AIX port of GNU ld has always aspired to compatibility
10155	# with the native linker.  However, as the warning in the GNU ld
10156	# block says, versions before 2.19.5* couldn't really create working
10157	# shared libraries, regardless of the interface used.
10158	case `$LD -v 2>&1` in
10159	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10160	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10161	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10162	  *)
10163	    lt_use_gnu_ld_interface=yes
10164	    ;;
10165	esac
10166	;;
10167      *)
10168	lt_use_gnu_ld_interface=yes
10169	;;
10170    esac
10171  fi
10172
10173  if test yes = "$lt_use_gnu_ld_interface"; then
10174    # If archive_cmds runs LD, not CC, wlarc should be empty
10175    wlarc='$wl'
10176
10177    # Set some defaults for GNU ld with shared library support. These
10178    # are reset later if shared libraries are not supported. Putting them
10179    # here allows them to be overridden if necessary.
10180    runpath_var=LD_RUN_PATH
10181    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10182    export_dynamic_flag_spec='$wl--export-dynamic'
10183    # ancient GNU ld didn't support --whole-archive et. al.
10184    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10185      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10186    else
10187      whole_archive_flag_spec=
10188    fi
10189    supports_anon_versioning=no
10190    case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
10191      *GNU\ gold*) supports_anon_versioning=yes ;;
10192      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10193      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10194      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10195      *\ 2.11.*) ;; # other 2.11 versions
10196      *) supports_anon_versioning=yes ;;
10197    esac
10198
10199    # See if GNU ld supports shared libraries.
10200    case $host_os in
10201    aix[3-9]*)
10202      # On AIX/PPC, the GNU linker is very broken
10203      if test ia64 != "$host_cpu"; then
10204	ld_shlibs=no
10205	cat <<_LT_EOF 1>&2
10206
10207*** Warning: the GNU linker, at least up to release 2.19, is reported
10208*** to be unable to reliably create shared libraries on AIX.
10209*** Therefore, libtool is disabling shared libraries support.  If you
10210*** really care for shared libraries, you may want to install binutils
10211*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10212*** You will then need to restart the configuration process.
10213
10214_LT_EOF
10215      fi
10216      ;;
10217
10218    amigaos*)
10219      case $host_cpu in
10220      powerpc)
10221            # see comment about AmigaOS4 .so support
10222            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10223            archive_expsym_cmds=''
10224        ;;
10225      m68k)
10226            archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
10227            hardcode_libdir_flag_spec='-L$libdir'
10228            hardcode_minus_L=yes
10229        ;;
10230      esac
10231      ;;
10232
10233    beos*)
10234      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10235	allow_undefined_flag=unsupported
10236	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10237	# support --undefined.  This deserves some investigation.  FIXME
10238	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10239      else
10240	ld_shlibs=no
10241      fi
10242      ;;
10243
10244    cygwin* | mingw* | pw32* | cegcc*)
10245      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10246      # as there is no search path for DLLs.
10247      hardcode_libdir_flag_spec='-L$libdir'
10248      export_dynamic_flag_spec='$wl--export-all-symbols'
10249      allow_undefined_flag=unsupported
10250      always_export_symbols=no
10251      enable_shared_with_static_runtimes=yes
10252      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'
10253      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10254
10255      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10256        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10257	# If the export-symbols file already is a .def file, use it as
10258	# is; otherwise, prepend EXPORTS...
10259	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10260          cp $export_symbols $output_objdir/$soname.def;
10261        else
10262          echo EXPORTS > $output_objdir/$soname.def;
10263          cat $export_symbols >> $output_objdir/$soname.def;
10264        fi~
10265        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10266      else
10267	ld_shlibs=no
10268      fi
10269      ;;
10270
10271    haiku*)
10272      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10273      link_all_deplibs=yes
10274      ;;
10275
10276    os2*)
10277      hardcode_libdir_flag_spec='-L$libdir'
10278      hardcode_minus_L=yes
10279      allow_undefined_flag=unsupported
10280      shrext_cmds=.dll
10281      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10282	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10283	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10284	$ECHO EXPORTS >> $output_objdir/$libname.def~
10285	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10286	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10287	emximp -o $lib $output_objdir/$libname.def'
10288      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10289	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10290	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10291	$ECHO EXPORTS >> $output_objdir/$libname.def~
10292	prefix_cmds="$SED"~
10293	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10294	  prefix_cmds="$prefix_cmds -e 1d";
10295	fi~
10296	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10297	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10298	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10299	emximp -o $lib $output_objdir/$libname.def'
10300      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10301      enable_shared_with_static_runtimes=yes
10302      file_list_spec='@'
10303      ;;
10304
10305    interix[3-9]*)
10306      hardcode_direct=no
10307      hardcode_shlibpath_var=no
10308      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10309      export_dynamic_flag_spec='$wl-E'
10310      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10311      # Instead, shared libraries are loaded at an image base (0x10000000 by
10312      # default) and relocated if they conflict, which is a slow very memory
10313      # consuming and fragmenting process.  To avoid this, we pick a random,
10314      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10315      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10316      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10317      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'
10318      ;;
10319
10320    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10321      tmp_diet=no
10322      if test linux-dietlibc = "$host_os"; then
10323	case $cc_basename in
10324	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
10325	esac
10326      fi
10327      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10328	 && test no = "$tmp_diet"
10329      then
10330	tmp_addflag=' $pic_flag'
10331	tmp_sharedflag='-shared'
10332	case $cc_basename,$host_cpu in
10333        pgcc*)				# Portland Group C compiler
10334	  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'
10335	  tmp_addflag=' $pic_flag'
10336	  ;;
10337	pgf77* | pgf90* | pgf95* | pgfortran*)
10338					# Portland Group f77 and f90 compilers
10339	  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'
10340	  tmp_addflag=' $pic_flag -Mnomain' ;;
10341	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
10342	  tmp_addflag=' -i_dynamic' ;;
10343	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
10344	  tmp_addflag=' -i_dynamic -nofor_main' ;;
10345	ifc* | ifort*)			# Intel Fortran compiler
10346	  tmp_addflag=' -nofor_main' ;;
10347	lf95*)				# Lahey Fortran 8.1
10348	  whole_archive_flag_spec=
10349	  tmp_sharedflag='--shared' ;;
10350        nagfor*)                        # NAGFOR 5.3
10351          tmp_sharedflag='-Wl,-shared' ;;
10352	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10353	  tmp_sharedflag='-qmkshrobj'
10354	  tmp_addflag= ;;
10355	nvcc*)	# Cuda Compiler Driver 2.2
10356	  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'
10357	  compiler_needs_object=yes
10358	  ;;
10359	esac
10360	case `$CC -V 2>&1 | $SED 5q` in
10361	*Sun\ C*)			# Sun C 5.9
10362	  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'
10363	  compiler_needs_object=yes
10364	  tmp_sharedflag='-G' ;;
10365	*Sun\ F*)			# Sun Fortran 8.3
10366	  tmp_sharedflag='-G' ;;
10367	esac
10368	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10369
10370        if test yes = "$supports_anon_versioning"; then
10371          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10372            cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10373            echo "local: *; };" >> $output_objdir/$libname.ver~
10374            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10375        fi
10376
10377	case $cc_basename in
10378	tcc*)
10379	  export_dynamic_flag_spec='-rdynamic'
10380	  ;;
10381	xlf* | bgf* | bgxlf* | mpixlf*)
10382	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10383	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10384	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10385	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10386	  if test yes = "$supports_anon_versioning"; then
10387	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10388              cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10389              echo "local: *; };" >> $output_objdir/$libname.ver~
10390              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10391	  fi
10392	  ;;
10393	esac
10394      else
10395        ld_shlibs=no
10396      fi
10397      ;;
10398
10399    netbsd*)
10400      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10401	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10402	wlarc=
10403      else
10404	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10405	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10406      fi
10407      ;;
10408
10409    solaris*)
10410      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10411	ld_shlibs=no
10412	cat <<_LT_EOF 1>&2
10413
10414*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10415*** create shared libraries on Solaris systems.  Therefore, libtool
10416*** is disabling shared libraries support.  We urge you to upgrade GNU
10417*** binutils to release 2.9.1 or newer.  Another option is to modify
10418*** your PATH or compiler configuration so that the native linker is
10419*** used, and then restart.
10420
10421_LT_EOF
10422      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10423	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10424	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10425      else
10426	ld_shlibs=no
10427      fi
10428      ;;
10429
10430    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10431      case `$LD -v 2>&1` in
10432        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10433	ld_shlibs=no
10434	cat <<_LT_EOF 1>&2
10435
10436*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10437*** reliably create shared libraries on SCO systems.  Therefore, libtool
10438*** is disabling shared libraries support.  We urge you to upgrade GNU
10439*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10440*** your PATH or compiler configuration so that the native linker is
10441*** used, and then restart.
10442
10443_LT_EOF
10444	;;
10445	*)
10446	  # For security reasons, it is highly recommended that you always
10447	  # use absolute paths for naming shared libraries, and exclude the
10448	  # DT_RUNPATH tag from executables and libraries.  But doing so
10449	  # requires that you compile everything twice, which is a pain.
10450	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10451	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10452	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10453	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10454	  else
10455	    ld_shlibs=no
10456	  fi
10457	;;
10458      esac
10459      ;;
10460
10461    sunos4*)
10462      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10463      wlarc=
10464      hardcode_direct=yes
10465      hardcode_shlibpath_var=no
10466      ;;
10467
10468    *)
10469      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10470	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10471	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10472      else
10473	ld_shlibs=no
10474      fi
10475      ;;
10476    esac
10477
10478    if test no = "$ld_shlibs"; then
10479      runpath_var=
10480      hardcode_libdir_flag_spec=
10481      export_dynamic_flag_spec=
10482      whole_archive_flag_spec=
10483    fi
10484  else
10485    # PORTME fill in a description of your system's linker (not GNU ld)
10486    case $host_os in
10487    aix3*)
10488      allow_undefined_flag=unsupported
10489      always_export_symbols=yes
10490      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'
10491      # Note: this linker hardcodes the directories in LIBPATH if there
10492      # are no directories specified by -L.
10493      hardcode_minus_L=yes
10494      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10495	# Neither direct hardcoding nor static linking is supported with a
10496	# broken collect2.
10497	hardcode_direct=unsupported
10498      fi
10499      ;;
10500
10501    aix[4-9]*)
10502      if test ia64 = "$host_cpu"; then
10503	# On IA64, the linker does run time linking by default, so we don't
10504	# have to do anything special.
10505	aix_use_runtimelinking=no
10506	exp_sym_flag='-Bexport'
10507	no_entry_flag=
10508      else
10509	# If we're using GNU nm, then we don't want the "-C" option.
10510	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
10511	# Without the "-l" option, or with the "-B" option, AIX nm treats
10512	# weak defined symbols like other global defined symbols, whereas
10513	# GNU nm marks them as "W".
10514	# While the 'weak' keyword is ignored in the Export File, we need
10515	# it in the Import File for the 'aix-soname' feature, so we have
10516	# to replace the "-B" option with "-P" for AIX nm.
10517	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10518	  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'
10519	else
10520	  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'
10521	fi
10522	aix_use_runtimelinking=no
10523
10524	# Test if we are trying to use run time linking or normal
10525	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10526	# have runtime linking enabled, and use it for executables.
10527	# For shared libraries, we enable/disable runtime linking
10528	# depending on the kind of the shared library created -
10529	# when "with_aix_soname,aix_use_runtimelinking" is:
10530	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
10531	# "aix,yes"  lib.so          shared, rtl:yes, for executables
10532	#            lib.a           static archive
10533	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
10534	#            lib.a(lib.so.V) shared, rtl:no,  for executables
10535	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10536	#            lib.a(lib.so.V) shared, rtl:no
10537	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
10538	#            lib.a           static archive
10539	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10540	  for ld_flag in $LDFLAGS; do
10541	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10542	    aix_use_runtimelinking=yes
10543	    break
10544	  fi
10545	  done
10546	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10547	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
10548	    # so we don't have lib.a shared libs to link our executables.
10549	    # We have to force runtime linking in this case.
10550	    aix_use_runtimelinking=yes
10551	    LDFLAGS="$LDFLAGS -Wl,-brtl"
10552	  fi
10553	  ;;
10554	esac
10555
10556	exp_sym_flag='-bexport'
10557	no_entry_flag='-bnoentry'
10558      fi
10559
10560      # When large executables or shared objects are built, AIX ld can
10561      # have problems creating the table of contents.  If linking a library
10562      # or program results in "error TOC overflow" add -mminimal-toc to
10563      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10564      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10565
10566      archive_cmds=''
10567      hardcode_direct=yes
10568      hardcode_direct_absolute=yes
10569      hardcode_libdir_separator=':'
10570      link_all_deplibs=yes
10571      file_list_spec='$wl-f,'
10572      case $with_aix_soname,$aix_use_runtimelinking in
10573      aix,*) ;; # traditional, no import file
10574      svr4,* | *,yes) # use import file
10575	# The Import File defines what to hardcode.
10576	hardcode_direct=no
10577	hardcode_direct_absolute=no
10578	;;
10579      esac
10580
10581      if test yes = "$GCC"; then
10582	case $host_os in aix4.[012]|aix4.[012].*)
10583	# We only want to do this on AIX 4.2 and lower, the check
10584	# below for broken collect2 doesn't work under 4.3+
10585	  collect2name=`$CC -print-prog-name=collect2`
10586	  if test -f "$collect2name" &&
10587	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10588	  then
10589	  # We have reworked collect2
10590	  :
10591	  else
10592	  # We have old collect2
10593	  hardcode_direct=unsupported
10594	  # It fails to find uninstalled libraries when the uninstalled
10595	  # path is not listed in the libpath.  Setting hardcode_minus_L
10596	  # to unsupported forces relinking
10597	  hardcode_minus_L=yes
10598	  hardcode_libdir_flag_spec='-L$libdir'
10599	  hardcode_libdir_separator=
10600	  fi
10601	  ;;
10602	esac
10603	shared_flag='-shared'
10604	if test yes = "$aix_use_runtimelinking"; then
10605	  shared_flag="$shared_flag "'$wl-G'
10606	fi
10607	# Need to ensure runtime linking is disabled for the traditional
10608	# shared library, or the linker may eventually find shared libraries
10609	# /with/ Import File - we do not want to mix them.
10610	shared_flag_aix='-shared'
10611	shared_flag_svr4='-shared $wl-G'
10612      else
10613	# not using gcc
10614	if test ia64 = "$host_cpu"; then
10615	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10616	# chokes on -Wl,-G. The following line is correct:
10617	  shared_flag='-G'
10618	else
10619	  if test yes = "$aix_use_runtimelinking"; then
10620	    shared_flag='$wl-G'
10621	  else
10622	    shared_flag='$wl-bM:SRE'
10623	  fi
10624	  shared_flag_aix='$wl-bM:SRE'
10625	  shared_flag_svr4='$wl-G'
10626	fi
10627      fi
10628
10629      export_dynamic_flag_spec='$wl-bexpall'
10630      # It seems that -bexpall does not export symbols beginning with
10631      # underscore (_), so it is better to generate a list of symbols to export.
10632      always_export_symbols=yes
10633      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10634	# Warning - without using the other runtime loading flags (-brtl),
10635	# -berok will link without error, but may produce a broken library.
10636	allow_undefined_flag='-berok'
10637        # Determine the default libpath from the value encoded in an
10638        # empty executable.
10639        if test set = "${lt_cv_aix_libpath+set}"; then
10640  aix_libpath=$lt_cv_aix_libpath
10641else
10642  if test ${lt_cv_aix_libpath_+y}
10643then :
10644  printf %s "(cached) " >&6
10645else $as_nop
10646  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10647/* end confdefs.h.  */
10648
10649int
10650main (void)
10651{
10652
10653  ;
10654  return 0;
10655}
10656_ACEOF
10657if ac_fn_c_try_link "$LINENO"
10658then :
10659
10660  lt_aix_libpath_sed='
10661      /Import File Strings/,/^$/ {
10662	  /^0/ {
10663	      s/^0  *\([^ ]*\) *$/\1/
10664	      p
10665	  }
10666      }'
10667  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10668  # Check for a 64-bit object if we didn't find anything.
10669  if test -z "$lt_cv_aix_libpath_"; then
10670    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10671  fi
10672fi
10673rm -f core conftest.err conftest.$ac_objext conftest.beam \
10674    conftest$ac_exeext conftest.$ac_ext
10675  if test -z "$lt_cv_aix_libpath_"; then
10676    lt_cv_aix_libpath_=/usr/lib:/lib
10677  fi
10678
10679fi
10680
10681  aix_libpath=$lt_cv_aix_libpath_
10682fi
10683
10684        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10685        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
10686      else
10687	if test ia64 = "$host_cpu"; then
10688	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10689	  allow_undefined_flag="-z nodefs"
10690	  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"
10691	else
10692	 # Determine the default libpath from the value encoded in an
10693	 # empty executable.
10694	 if test set = "${lt_cv_aix_libpath+set}"; then
10695  aix_libpath=$lt_cv_aix_libpath
10696else
10697  if test ${lt_cv_aix_libpath_+y}
10698then :
10699  printf %s "(cached) " >&6
10700else $as_nop
10701  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10702/* end confdefs.h.  */
10703
10704int
10705main (void)
10706{
10707
10708  ;
10709  return 0;
10710}
10711_ACEOF
10712if ac_fn_c_try_link "$LINENO"
10713then :
10714
10715  lt_aix_libpath_sed='
10716      /Import File Strings/,/^$/ {
10717	  /^0/ {
10718	      s/^0  *\([^ ]*\) *$/\1/
10719	      p
10720	  }
10721      }'
10722  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10723  # Check for a 64-bit object if we didn't find anything.
10724  if test -z "$lt_cv_aix_libpath_"; then
10725    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10726  fi
10727fi
10728rm -f core conftest.err conftest.$ac_objext conftest.beam \
10729    conftest$ac_exeext conftest.$ac_ext
10730  if test -z "$lt_cv_aix_libpath_"; then
10731    lt_cv_aix_libpath_=/usr/lib:/lib
10732  fi
10733
10734fi
10735
10736  aix_libpath=$lt_cv_aix_libpath_
10737fi
10738
10739	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10740	  # Warning - without using the other run time loading flags,
10741	  # -berok will link without error, but may produce a broken library.
10742	  no_undefined_flag=' $wl-bernotok'
10743	  allow_undefined_flag=' $wl-berok'
10744	  if test yes = "$with_gnu_ld"; then
10745	    # We only use this code for GNU lds that support --whole-archive.
10746	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10747	  else
10748	    # Exported symbols can be pulled into shared objects from archives
10749	    whole_archive_flag_spec='$convenience'
10750	  fi
10751	  archive_cmds_need_lc=yes
10752	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10753	  # -brtl affects multiple linker settings, -berok does not and is overridden later
10754	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10755	  if test svr4 != "$with_aix_soname"; then
10756	    # This is similar to how AIX traditionally builds its shared libraries.
10757	    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'
10758	  fi
10759	  if test aix != "$with_aix_soname"; then
10760	    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'
10761	  else
10762	    # used by -dlpreopen to get the symbols
10763	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10764	  fi
10765	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10766	fi
10767      fi
10768      ;;
10769
10770    amigaos*)
10771      case $host_cpu in
10772      powerpc)
10773            # see comment about AmigaOS4 .so support
10774            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10775            archive_expsym_cmds=''
10776        ;;
10777      m68k)
10778            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)'
10779            hardcode_libdir_flag_spec='-L$libdir'
10780            hardcode_minus_L=yes
10781        ;;
10782      esac
10783      ;;
10784
10785    bsdi[45]*)
10786      export_dynamic_flag_spec=-rdynamic
10787      ;;
10788
10789    cygwin* | mingw* | pw32* | cegcc*)
10790      # When not using gcc, we currently assume that we are using
10791      # Microsoft Visual C++ or Intel C++ Compiler.
10792      # hardcode_libdir_flag_spec is actually meaningless, as there is
10793      # no search path for DLLs.
10794      case $cc_basename in
10795      cl* | icl*)
10796	# Native MSVC or ICC
10797	hardcode_libdir_flag_spec=' '
10798	allow_undefined_flag=unsupported
10799	always_export_symbols=yes
10800	file_list_spec='@'
10801	# Tell ltmain to make .lib files, not .a files.
10802	libext=lib
10803	# Tell ltmain to make .dll files, not .so files.
10804	shrext_cmds=.dll
10805	# FIXME: Setting linknames here is a bad hack.
10806	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10807	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10808            cp "$export_symbols" "$output_objdir/$soname.def";
10809            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10810          else
10811            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10812          fi~
10813          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10814          linknames='
10815	# The linker will not automatically build a static lib if we build a DLL.
10816	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10817	enable_shared_with_static_runtimes=yes
10818	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10819	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10820	# Don't use ranlib
10821	old_postinstall_cmds='chmod 644 $oldlib'
10822	postlink_cmds='lt_outputfile="@OUTPUT@"~
10823          lt_tool_outputfile="@TOOL_OUTPUT@"~
10824          case $lt_outputfile in
10825            *.exe|*.EXE) ;;
10826            *)
10827              lt_outputfile=$lt_outputfile.exe
10828              lt_tool_outputfile=$lt_tool_outputfile.exe
10829              ;;
10830          esac~
10831          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10832            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10833            $RM "$lt_outputfile.manifest";
10834          fi'
10835	;;
10836      *)
10837	# Assume MSVC and ICC wrapper
10838	hardcode_libdir_flag_spec=' '
10839	allow_undefined_flag=unsupported
10840	# Tell ltmain to make .lib files, not .a files.
10841	libext=lib
10842	# Tell ltmain to make .dll files, not .so files.
10843	shrext_cmds=.dll
10844	# FIXME: Setting linknames here is a bad hack.
10845	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10846	# The linker will automatically build a .lib file if we build a DLL.
10847	old_archive_from_new_cmds='true'
10848	# FIXME: Should let the user specify the lib program.
10849	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10850	enable_shared_with_static_runtimes=yes
10851	;;
10852      esac
10853      ;;
10854
10855    darwin* | rhapsody*)
10856
10857
10858  archive_cmds_need_lc=no
10859  hardcode_direct=no
10860  hardcode_automatic=yes
10861  hardcode_shlibpath_var=unsupported
10862  if test yes = "$lt_cv_ld_force_load"; then
10863    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\"`'
10864
10865  else
10866    whole_archive_flag_spec=''
10867  fi
10868  link_all_deplibs=yes
10869  allow_undefined_flag=$_lt_dar_allow_undefined
10870  case $cc_basename in
10871     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10872     *) _lt_dar_can_shared=$GCC ;;
10873  esac
10874  if test yes = "$_lt_dar_can_shared"; then
10875    output_verbose_link_cmd=func_echo_all
10876    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10877    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10878    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"
10879    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"
10880
10881  else
10882  ld_shlibs=no
10883  fi
10884
10885      ;;
10886
10887    dgux*)
10888      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10889      hardcode_libdir_flag_spec='-L$libdir'
10890      hardcode_shlibpath_var=no
10891      ;;
10892
10893    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10894    # support.  Future versions do this automatically, but an explicit c++rt0.o
10895    # does not break anything, and helps significantly (at the cost of a little
10896    # extra space).
10897    freebsd2.2*)
10898      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10899      hardcode_libdir_flag_spec='-R$libdir'
10900      hardcode_direct=yes
10901      hardcode_shlibpath_var=no
10902      ;;
10903
10904    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10905    freebsd2.*)
10906      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10907      hardcode_direct=yes
10908      hardcode_minus_L=yes
10909      hardcode_shlibpath_var=no
10910      ;;
10911
10912    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10913    freebsd* | dragonfly* | midnightbsd*)
10914      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10915      hardcode_libdir_flag_spec='-R$libdir'
10916      hardcode_direct=yes
10917      hardcode_shlibpath_var=no
10918      ;;
10919
10920    hpux9*)
10921      if test yes = "$GCC"; then
10922	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'
10923      else
10924	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'
10925      fi
10926      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10927      hardcode_libdir_separator=:
10928      hardcode_direct=yes
10929
10930      # hardcode_minus_L: Not really in the search PATH,
10931      # but as the default location of the library.
10932      hardcode_minus_L=yes
10933      export_dynamic_flag_spec='$wl-E'
10934      ;;
10935
10936    hpux10*)
10937      if test yes,no = "$GCC,$with_gnu_ld"; then
10938	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10939      else
10940	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10941      fi
10942      if test no = "$with_gnu_ld"; then
10943	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10944	hardcode_libdir_separator=:
10945	hardcode_direct=yes
10946	hardcode_direct_absolute=yes
10947	export_dynamic_flag_spec='$wl-E'
10948	# hardcode_minus_L: Not really in the search PATH,
10949	# but as the default location of the library.
10950	hardcode_minus_L=yes
10951      fi
10952      ;;
10953
10954    hpux11*)
10955      if test yes,no = "$GCC,$with_gnu_ld"; then
10956	case $host_cpu in
10957	hppa*64*)
10958	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10959	  ;;
10960	ia64*)
10961	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10962	  ;;
10963	*)
10964	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10965	  ;;
10966	esac
10967      else
10968	case $host_cpu in
10969	hppa*64*)
10970	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10971	  ;;
10972	ia64*)
10973	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10974	  ;;
10975	*)
10976
10977	  # Older versions of the 11.00 compiler do not understand -b yet
10978	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10979	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10980printf %s "checking if $CC understands -b... " >&6; }
10981if test ${lt_cv_prog_compiler__b+y}
10982then :
10983  printf %s "(cached) " >&6
10984else $as_nop
10985  lt_cv_prog_compiler__b=no
10986   save_LDFLAGS=$LDFLAGS
10987   LDFLAGS="$LDFLAGS -b"
10988   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10989   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10990     # The linker can only warn and ignore the option if not recognized
10991     # So say no if there are warnings
10992     if test -s conftest.err; then
10993       # Append any errors to the config.log.
10994       cat conftest.err 1>&5
10995       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10996       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10997       if diff conftest.exp conftest.er2 >/dev/null; then
10998         lt_cv_prog_compiler__b=yes
10999       fi
11000     else
11001       lt_cv_prog_compiler__b=yes
11002     fi
11003   fi
11004   $RM -r conftest*
11005   LDFLAGS=$save_LDFLAGS
11006
11007fi
11008{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11009printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
11010
11011if test yes = "$lt_cv_prog_compiler__b"; then
11012    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11013else
11014    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11015fi
11016
11017	  ;;
11018	esac
11019      fi
11020      if test no = "$with_gnu_ld"; then
11021	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11022	hardcode_libdir_separator=:
11023
11024	case $host_cpu in
11025	hppa*64*|ia64*)
11026	  hardcode_direct=no
11027	  hardcode_shlibpath_var=no
11028	  ;;
11029	*)
11030	  hardcode_direct=yes
11031	  hardcode_direct_absolute=yes
11032	  export_dynamic_flag_spec='$wl-E'
11033
11034	  # hardcode_minus_L: Not really in the search PATH,
11035	  # but as the default location of the library.
11036	  hardcode_minus_L=yes
11037	  ;;
11038	esac
11039      fi
11040      ;;
11041
11042    irix5* | irix6* | nonstopux*)
11043      if test yes = "$GCC"; then
11044	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'
11045	# Try to use the -exported_symbol ld option, if it does not
11046	# work, assume that -exports_file does not work either and
11047	# implicitly export all symbols.
11048	# This should be the same for all languages, so no per-tag cache variable.
11049	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11050printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11051if test ${lt_cv_irix_exported_symbol+y}
11052then :
11053  printf %s "(cached) " >&6
11054else $as_nop
11055  save_LDFLAGS=$LDFLAGS
11056	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11057	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11058/* end confdefs.h.  */
11059int foo (void) { return 0; }
11060_ACEOF
11061if ac_fn_c_try_link "$LINENO"
11062then :
11063  lt_cv_irix_exported_symbol=yes
11064else $as_nop
11065  lt_cv_irix_exported_symbol=no
11066fi
11067rm -f core conftest.err conftest.$ac_objext conftest.beam \
11068    conftest$ac_exeext conftest.$ac_ext
11069           LDFLAGS=$save_LDFLAGS
11070fi
11071{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11072printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
11073	if test yes = "$lt_cv_irix_exported_symbol"; then
11074          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'
11075	fi
11076      else
11077	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'
11078	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'
11079      fi
11080      archive_cmds_need_lc='no'
11081      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11082      hardcode_libdir_separator=:
11083      inherit_rpath=yes
11084      link_all_deplibs=yes
11085      ;;
11086
11087    linux*)
11088      case $cc_basename in
11089      tcc*)
11090	# Fabrice Bellard et al's Tiny C Compiler
11091	ld_shlibs=yes
11092	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11093	;;
11094      esac
11095      ;;
11096
11097    netbsd*)
11098      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11099	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11100      else
11101	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11102      fi
11103      hardcode_libdir_flag_spec='-R$libdir'
11104      hardcode_direct=yes
11105      hardcode_shlibpath_var=no
11106      ;;
11107
11108    newsos6)
11109      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11110      hardcode_direct=yes
11111      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11112      hardcode_libdir_separator=:
11113      hardcode_shlibpath_var=no
11114      ;;
11115
11116    *nto* | *qnx*)
11117      ;;
11118
11119    openbsd* | bitrig*)
11120      if test -f /usr/libexec/ld.so; then
11121	hardcode_direct=yes
11122	hardcode_shlibpath_var=no
11123	hardcode_direct_absolute=yes
11124	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11125	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11126	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11127	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11128	  export_dynamic_flag_spec='$wl-E'
11129	else
11130	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11131	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11132	fi
11133      else
11134	ld_shlibs=no
11135      fi
11136      ;;
11137
11138    os2*)
11139      hardcode_libdir_flag_spec='-L$libdir'
11140      hardcode_minus_L=yes
11141      allow_undefined_flag=unsupported
11142      shrext_cmds=.dll
11143      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11144	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11145	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11146	$ECHO EXPORTS >> $output_objdir/$libname.def~
11147	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11148	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11149	emximp -o $lib $output_objdir/$libname.def'
11150      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11151	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11152	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11153	$ECHO EXPORTS >> $output_objdir/$libname.def~
11154	prefix_cmds="$SED"~
11155	if test EXPORTS = "`$SED 1q $export_symbols`"; then
11156	  prefix_cmds="$prefix_cmds -e 1d";
11157	fi~
11158	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11159	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11160	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11161	emximp -o $lib $output_objdir/$libname.def'
11162      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11163      enable_shared_with_static_runtimes=yes
11164      file_list_spec='@'
11165      ;;
11166
11167    osf3*)
11168      if test yes = "$GCC"; then
11169	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11170	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'
11171      else
11172	allow_undefined_flag=' -expect_unresolved \*'
11173	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'
11174      fi
11175      archive_cmds_need_lc='no'
11176      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11177      hardcode_libdir_separator=:
11178      ;;
11179
11180    osf4* | osf5*)	# as osf3* with the addition of -msym flag
11181      if test yes = "$GCC"; then
11182	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11183	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'
11184	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11185      else
11186	allow_undefined_flag=' -expect_unresolved \*'
11187	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'
11188	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~
11189          $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'
11190
11191	# Both c and cxx compiler support -rpath directly
11192	hardcode_libdir_flag_spec='-rpath $libdir'
11193      fi
11194      archive_cmds_need_lc='no'
11195      hardcode_libdir_separator=:
11196      ;;
11197
11198    solaris*)
11199      no_undefined_flag=' -z defs'
11200      if test yes = "$GCC"; then
11201	wlarc='$wl'
11202	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11203	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11204          $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'
11205      else
11206	case `$CC -V 2>&1` in
11207	*"Compilers 5.0"*)
11208	  wlarc=''
11209	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11210	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11211            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11212	  ;;
11213	*)
11214	  wlarc='$wl'
11215	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11216	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11217            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11218	  ;;
11219	esac
11220      fi
11221      hardcode_libdir_flag_spec='-R$libdir'
11222      hardcode_shlibpath_var=no
11223      case $host_os in
11224      solaris2.[0-5] | solaris2.[0-5].*) ;;
11225      *)
11226	# The compiler driver will combine and reorder linker options,
11227	# but understands '-z linker_flag'.  GCC discards it without '$wl',
11228	# but is careful enough not to reorder.
11229	# Supported since Solaris 2.6 (maybe 2.5.1?)
11230	if test yes = "$GCC"; then
11231	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11232	else
11233	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11234	fi
11235	;;
11236      esac
11237      link_all_deplibs=yes
11238      ;;
11239
11240    sunos4*)
11241      if test sequent = "$host_vendor"; then
11242	# Use $CC to link under sequent, because it throws in some extra .o
11243	# files that make .init and .fini sections work.
11244	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11245      else
11246	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11247      fi
11248      hardcode_libdir_flag_spec='-L$libdir'
11249      hardcode_direct=yes
11250      hardcode_minus_L=yes
11251      hardcode_shlibpath_var=no
11252      ;;
11253
11254    sysv4)
11255      case $host_vendor in
11256	sni)
11257	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11258	  hardcode_direct=yes # is this really true???
11259	;;
11260	siemens)
11261	  ## LD is ld it makes a PLAMLIB
11262	  ## CC just makes a GrossModule.
11263	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11264	  reload_cmds='$CC -r -o $output$reload_objs'
11265	  hardcode_direct=no
11266        ;;
11267	motorola)
11268	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11269	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11270	;;
11271      esac
11272      runpath_var='LD_RUN_PATH'
11273      hardcode_shlibpath_var=no
11274      ;;
11275
11276    sysv4.3*)
11277      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11278      hardcode_shlibpath_var=no
11279      export_dynamic_flag_spec='-Bexport'
11280      ;;
11281
11282    sysv4*MP*)
11283      if test -d /usr/nec; then
11284	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11285	hardcode_shlibpath_var=no
11286	runpath_var=LD_RUN_PATH
11287	hardcode_runpath_var=yes
11288	ld_shlibs=yes
11289      fi
11290      ;;
11291
11292    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11293      no_undefined_flag='$wl-z,text'
11294      archive_cmds_need_lc=no
11295      hardcode_shlibpath_var=no
11296      runpath_var='LD_RUN_PATH'
11297
11298      if test yes = "$GCC"; then
11299	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11300	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11301      else
11302	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11303	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11304      fi
11305      ;;
11306
11307    sysv5* | sco3.2v5* | sco5v6*)
11308      # Note: We CANNOT use -z defs as we might desire, because we do not
11309      # link with -lc, and that would cause any symbols used from libc to
11310      # always be unresolved, which means just about no library would
11311      # ever link correctly.  If we're not using GNU ld we use -z text
11312      # though, which does catch some bad symbols but isn't as heavy-handed
11313      # as -z defs.
11314      no_undefined_flag='$wl-z,text'
11315      allow_undefined_flag='$wl-z,nodefs'
11316      archive_cmds_need_lc=no
11317      hardcode_shlibpath_var=no
11318      hardcode_libdir_flag_spec='$wl-R,$libdir'
11319      hardcode_libdir_separator=':'
11320      link_all_deplibs=yes
11321      export_dynamic_flag_spec='$wl-Bexport'
11322      runpath_var='LD_RUN_PATH'
11323
11324      if test yes = "$GCC"; then
11325	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11326	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11327      else
11328	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11329	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11330      fi
11331      ;;
11332
11333    uts4*)
11334      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11335      hardcode_libdir_flag_spec='-L$libdir'
11336      hardcode_shlibpath_var=no
11337      ;;
11338
11339    *)
11340      ld_shlibs=no
11341      ;;
11342    esac
11343
11344    if test sni = "$host_vendor"; then
11345      case $host in
11346      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11347	export_dynamic_flag_spec='$wl-Blargedynsym'
11348	;;
11349      esac
11350    fi
11351  fi
11352
11353{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11354printf "%s\n" "$ld_shlibs" >&6; }
11355test no = "$ld_shlibs" && can_build_shared=no
11356
11357with_gnu_ld=$with_gnu_ld
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373#
11374# Do we need to explicitly link libc?
11375#
11376case "x$archive_cmds_need_lc" in
11377x|xyes)
11378  # Assume -lc should be added
11379  archive_cmds_need_lc=yes
11380
11381  if test yes,yes = "$GCC,$enable_shared"; then
11382    case $archive_cmds in
11383    *'~'*)
11384      # FIXME: we may have to deal with multi-command sequences.
11385      ;;
11386    '$CC '*)
11387      # Test whether the compiler implicitly links with -lc since on some
11388      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11389      # to ld, don't add -lc before -lgcc.
11390      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11391printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11392if test ${lt_cv_archive_cmds_need_lc+y}
11393then :
11394  printf %s "(cached) " >&6
11395else $as_nop
11396  $RM conftest*
11397	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11398
11399	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11400  (eval $ac_compile) 2>&5
11401  ac_status=$?
11402  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11403  test $ac_status = 0; } 2>conftest.err; then
11404	  soname=conftest
11405	  lib=conftest
11406	  libobjs=conftest.$ac_objext
11407	  deplibs=
11408	  wl=$lt_prog_compiler_wl
11409	  pic_flag=$lt_prog_compiler_pic
11410	  compiler_flags=-v
11411	  linker_flags=-v
11412	  verstring=
11413	  output_objdir=.
11414	  libname=conftest
11415	  lt_save_allow_undefined_flag=$allow_undefined_flag
11416	  allow_undefined_flag=
11417	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11418  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11419  ac_status=$?
11420  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11421  test $ac_status = 0; }
11422	  then
11423	    lt_cv_archive_cmds_need_lc=no
11424	  else
11425	    lt_cv_archive_cmds_need_lc=yes
11426	  fi
11427	  allow_undefined_flag=$lt_save_allow_undefined_flag
11428	else
11429	  cat conftest.err 1>&5
11430	fi
11431	$RM conftest*
11432
11433fi
11434{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11435printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11436      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11437      ;;
11438    esac
11439  fi
11440  ;;
11441esac
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11595printf %s "checking dynamic linker characteristics... " >&6; }
11596
11597if test yes = "$GCC"; then
11598  case $host_os in
11599    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11600    *) lt_awk_arg='/^libraries:/' ;;
11601  esac
11602  case $host_os in
11603    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11604    *) lt_sed_strip_eq='s|=/|/|g' ;;
11605  esac
11606  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11607  case $lt_search_path_spec in
11608  *\;*)
11609    # if the path contains ";" then we assume it to be the separator
11610    # otherwise default to the standard path separator (i.e. ":") - it is
11611    # assumed that no part of a normal pathname contains ";" but that should
11612    # okay in the real world where ";" in dirpaths is itself problematic.
11613    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11614    ;;
11615  *)
11616    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11617    ;;
11618  esac
11619  # Ok, now we have the path, separated by spaces, we can step through it
11620  # and add multilib dir if necessary...
11621  lt_tmp_lt_search_path_spec=
11622  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11623  # ...but if some path component already ends with the multilib dir we assume
11624  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11625  case "$lt_multi_os_dir; $lt_search_path_spec " in
11626  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11627    lt_multi_os_dir=
11628    ;;
11629  esac
11630  for lt_sys_path in $lt_search_path_spec; do
11631    if test -d "$lt_sys_path$lt_multi_os_dir"; then
11632      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11633    elif test -n "$lt_multi_os_dir"; then
11634      test -d "$lt_sys_path" && \
11635	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11636    fi
11637  done
11638  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11639BEGIN {RS = " "; FS = "/|\n";} {
11640  lt_foo = "";
11641  lt_count = 0;
11642  for (lt_i = NF; lt_i > 0; lt_i--) {
11643    if ($lt_i != "" && $lt_i != ".") {
11644      if ($lt_i == "..") {
11645        lt_count++;
11646      } else {
11647        if (lt_count == 0) {
11648          lt_foo = "/" $lt_i lt_foo;
11649        } else {
11650          lt_count--;
11651        }
11652      }
11653    }
11654  }
11655  if (lt_foo != "") { lt_freq[lt_foo]++; }
11656  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11657}'`
11658  # AWK program above erroneously prepends '/' to C:/dos/paths
11659  # for these hosts.
11660  case $host_os in
11661    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11662      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11663  esac
11664  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11665else
11666  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11667fi
11668library_names_spec=
11669libname_spec='lib$name'
11670soname_spec=
11671shrext_cmds=.so
11672postinstall_cmds=
11673postuninstall_cmds=
11674finish_cmds=
11675finish_eval=
11676shlibpath_var=
11677shlibpath_overrides_runpath=unknown
11678version_type=none
11679dynamic_linker="$host_os ld.so"
11680sys_lib_dlsearch_path_spec="/lib /usr/lib"
11681need_lib_prefix=unknown
11682hardcode_into_libs=no
11683
11684# when you set need_version to no, make sure it does not cause -set_version
11685# flags to be left without arguments
11686need_version=unknown
11687
11688
11689
11690case $host_os in
11691aix3*)
11692  version_type=linux # correct to gnu/linux during the next big refactor
11693  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11694  shlibpath_var=LIBPATH
11695
11696  # AIX 3 has no versioning support, so we append a major version to the name.
11697  soname_spec='$libname$release$shared_ext$major'
11698  ;;
11699
11700aix[4-9]*)
11701  version_type=linux # correct to gnu/linux during the next big refactor
11702  need_lib_prefix=no
11703  need_version=no
11704  hardcode_into_libs=yes
11705  if test ia64 = "$host_cpu"; then
11706    # AIX 5 supports IA64
11707    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11708    shlibpath_var=LD_LIBRARY_PATH
11709  else
11710    # With GCC up to 2.95.x, collect2 would create an import file
11711    # for dependence libraries.  The import file would start with
11712    # the line '#! .'.  This would cause the generated library to
11713    # depend on '.', always an invalid library.  This was fixed in
11714    # development snapshots of GCC prior to 3.0.
11715    case $host_os in
11716      aix4 | aix4.[01] | aix4.[01].*)
11717      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11718	   echo ' yes '
11719	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11720	:
11721      else
11722	can_build_shared=no
11723      fi
11724      ;;
11725    esac
11726    # Using Import Files as archive members, it is possible to support
11727    # filename-based versioning of shared library archives on AIX. While
11728    # this would work for both with and without runtime linking, it will
11729    # prevent static linking of such archives. So we do filename-based
11730    # shared library versioning with .so extension only, which is used
11731    # when both runtime linking and shared linking is enabled.
11732    # Unfortunately, runtime linking may impact performance, so we do
11733    # not want this to be the default eventually. Also, we use the
11734    # versioned .so libs for executables only if there is the -brtl
11735    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11736    # To allow for filename-based versioning support, we need to create
11737    # libNAME.so.V as an archive file, containing:
11738    # *) an Import File, referring to the versioned filename of the
11739    #    archive as well as the shared archive member, telling the
11740    #    bitwidth (32 or 64) of that shared object, and providing the
11741    #    list of exported symbols of that shared object, eventually
11742    #    decorated with the 'weak' keyword
11743    # *) the shared object with the F_LOADONLY flag set, to really avoid
11744    #    it being seen by the linker.
11745    # At run time we better use the real file rather than another symlink,
11746    # but for link time we create the symlink libNAME.so -> libNAME.so.V
11747
11748    case $with_aix_soname,$aix_use_runtimelinking in
11749    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11750    # soname into executable. Probably we can add versioning support to
11751    # collect2, so additional links can be useful in future.
11752    aix,yes) # traditional libtool
11753      dynamic_linker='AIX unversionable lib.so'
11754      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11755      # instead of lib<name>.a to let people know that these are not
11756      # typical AIX shared libraries.
11757      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11758      ;;
11759    aix,no) # traditional AIX only
11760      dynamic_linker='AIX lib.a(lib.so.V)'
11761      # We preserve .a as extension for shared libraries through AIX4.2
11762      # and later when we are not doing run time linking.
11763      library_names_spec='$libname$release.a $libname.a'
11764      soname_spec='$libname$release$shared_ext$major'
11765      ;;
11766    svr4,*) # full svr4 only
11767      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11768      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11769      # We do not specify a path in Import Files, so LIBPATH fires.
11770      shlibpath_overrides_runpath=yes
11771      ;;
11772    *,yes) # both, prefer svr4
11773      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11774      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11775      # unpreferred sharedlib libNAME.a needs extra handling
11776      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"'
11777      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"'
11778      # We do not specify a path in Import Files, so LIBPATH fires.
11779      shlibpath_overrides_runpath=yes
11780      ;;
11781    *,no) # both, prefer aix
11782      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11783      library_names_spec='$libname$release.a $libname.a'
11784      soname_spec='$libname$release$shared_ext$major'
11785      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11786      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)'
11787      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"'
11788      ;;
11789    esac
11790    shlibpath_var=LIBPATH
11791  fi
11792  ;;
11793
11794amigaos*)
11795  case $host_cpu in
11796  powerpc)
11797    # Since July 2007 AmigaOS4 officially supports .so libraries.
11798    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11799    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11800    ;;
11801  m68k)
11802    library_names_spec='$libname.ixlibrary $libname.a'
11803    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11804    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'
11805    ;;
11806  esac
11807  ;;
11808
11809beos*)
11810  library_names_spec='$libname$shared_ext'
11811  dynamic_linker="$host_os ld.so"
11812  shlibpath_var=LIBRARY_PATH
11813  ;;
11814
11815bsdi[45]*)
11816  version_type=linux # correct to gnu/linux during the next big refactor
11817  need_version=no
11818  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11819  soname_spec='$libname$release$shared_ext$major'
11820  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11821  shlibpath_var=LD_LIBRARY_PATH
11822  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11823  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11824  # the default ld.so.conf also contains /usr/contrib/lib and
11825  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11826  # libtool to hard-code these into programs
11827  ;;
11828
11829cygwin* | mingw* | pw32* | cegcc*)
11830  version_type=windows
11831  shrext_cmds=.dll
11832  need_version=no
11833  need_lib_prefix=no
11834
11835  case $GCC,$cc_basename in
11836  yes,*)
11837    # gcc
11838    library_names_spec='$libname.dll.a'
11839    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11840    postinstall_cmds='base_file=`basename \$file`~
11841      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11842      dldir=$destdir/`dirname \$dlpath`~
11843      test -d \$dldir || mkdir -p \$dldir~
11844      $install_prog $dir/$dlname \$dldir/$dlname~
11845      chmod a+x \$dldir/$dlname~
11846      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11847        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11848      fi'
11849    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11850      dlpath=$dir/\$dldll~
11851       $RM \$dlpath'
11852    shlibpath_overrides_runpath=yes
11853
11854    case $host_os in
11855    cygwin*)
11856      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11857      soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11858
11859      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11860      ;;
11861    mingw* | cegcc*)
11862      # MinGW DLLs use traditional 'lib' prefix
11863      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11864      ;;
11865    pw32*)
11866      # pw32 DLLs use 'pw' prefix rather than 'lib'
11867      library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11868      ;;
11869    esac
11870    dynamic_linker='Win32 ld.exe'
11871    ;;
11872
11873  *,cl* | *,icl*)
11874    # Native MSVC or ICC
11875    libname_spec='$name'
11876    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11877    library_names_spec='$libname.dll.lib'
11878
11879    case $build_os in
11880    mingw*)
11881      sys_lib_search_path_spec=
11882      lt_save_ifs=$IFS
11883      IFS=';'
11884      for lt_path in $LIB
11885      do
11886        IFS=$lt_save_ifs
11887        # Let DOS variable expansion print the short 8.3 style file name.
11888        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11889        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11890      done
11891      IFS=$lt_save_ifs
11892      # Convert to MSYS style.
11893      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11894      ;;
11895    cygwin*)
11896      # Convert to unix form, then to dos form, then back to unix form
11897      # but this time dos style (no spaces!) so that the unix form looks
11898      # like /cygdrive/c/PROGRA~1:/cygdr...
11899      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11900      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11901      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11902      ;;
11903    *)
11904      sys_lib_search_path_spec=$LIB
11905      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11906        # It is most probably a Windows format PATH.
11907        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11908      else
11909        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11910      fi
11911      # FIXME: find the short name or the path components, as spaces are
11912      # common. (e.g. "Program Files" -> "PROGRA~1")
11913      ;;
11914    esac
11915
11916    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11917    postinstall_cmds='base_file=`basename \$file`~
11918      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11919      dldir=$destdir/`dirname \$dlpath`~
11920      test -d \$dldir || mkdir -p \$dldir~
11921      $install_prog $dir/$dlname \$dldir/$dlname'
11922    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11923      dlpath=$dir/\$dldll~
11924       $RM \$dlpath'
11925    shlibpath_overrides_runpath=yes
11926    dynamic_linker='Win32 link.exe'
11927    ;;
11928
11929  *)
11930    # Assume MSVC and ICC wrapper
11931    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11932    dynamic_linker='Win32 ld.exe'
11933    ;;
11934  esac
11935  # FIXME: first we should search . and the directory the executable is in
11936  shlibpath_var=PATH
11937  ;;
11938
11939darwin* | rhapsody*)
11940  dynamic_linker="$host_os dyld"
11941  version_type=darwin
11942  need_lib_prefix=no
11943  need_version=no
11944  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11945  soname_spec='$libname$release$major$shared_ext'
11946  shlibpath_overrides_runpath=yes
11947  shlibpath_var=DYLD_LIBRARY_PATH
11948  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11949
11950  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11951  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11952  ;;
11953
11954dgux*)
11955  version_type=linux # correct to gnu/linux during the next big refactor
11956  need_lib_prefix=no
11957  need_version=no
11958  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11959  soname_spec='$libname$release$shared_ext$major'
11960  shlibpath_var=LD_LIBRARY_PATH
11961  ;;
11962
11963freebsd* | dragonfly* | midnightbsd*)
11964  # DragonFly does not have aout.  When/if they implement a new
11965  # versioning mechanism, adjust this.
11966  if test -x /usr/bin/objformat; then
11967    objformat=`/usr/bin/objformat`
11968  else
11969    case $host_os in
11970    freebsd[23].*) objformat=aout ;;
11971    *) objformat=elf ;;
11972    esac
11973  fi
11974  version_type=freebsd-$objformat
11975  case $version_type in
11976    freebsd-elf*)
11977      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11978      soname_spec='$libname$release$shared_ext$major'
11979      need_version=no
11980      need_lib_prefix=no
11981      ;;
11982    freebsd-*)
11983      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11984      need_version=yes
11985      ;;
11986  esac
11987  shlibpath_var=LD_LIBRARY_PATH
11988  case $host_os in
11989  freebsd2.*)
11990    shlibpath_overrides_runpath=yes
11991    ;;
11992  freebsd3.[01]* | freebsdelf3.[01]*)
11993    shlibpath_overrides_runpath=yes
11994    hardcode_into_libs=yes
11995    ;;
11996  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11997  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11998    shlibpath_overrides_runpath=no
11999    hardcode_into_libs=yes
12000    ;;
12001  *) # from 4.6 on, and DragonFly
12002    shlibpath_overrides_runpath=yes
12003    hardcode_into_libs=yes
12004    ;;
12005  esac
12006  ;;
12007
12008haiku*)
12009  version_type=linux # correct to gnu/linux during the next big refactor
12010  need_lib_prefix=no
12011  need_version=no
12012  dynamic_linker="$host_os runtime_loader"
12013  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12014  soname_spec='$libname$release$shared_ext$major'
12015  shlibpath_var=LIBRARY_PATH
12016  shlibpath_overrides_runpath=no
12017  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12018  hardcode_into_libs=yes
12019  ;;
12020
12021hpux9* | hpux10* | hpux11*)
12022  # Give a soname corresponding to the major version so that dld.sl refuses to
12023  # link against other versions.
12024  version_type=sunos
12025  need_lib_prefix=no
12026  need_version=no
12027  case $host_cpu in
12028  ia64*)
12029    shrext_cmds='.so'
12030    hardcode_into_libs=yes
12031    dynamic_linker="$host_os dld.so"
12032    shlibpath_var=LD_LIBRARY_PATH
12033    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12034    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12035    soname_spec='$libname$release$shared_ext$major'
12036    if test 32 = "$HPUX_IA64_MODE"; then
12037      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12038      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12039    else
12040      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12041      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12042    fi
12043    ;;
12044  hppa*64*)
12045    shrext_cmds='.sl'
12046    hardcode_into_libs=yes
12047    dynamic_linker="$host_os dld.sl"
12048    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12049    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12050    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12051    soname_spec='$libname$release$shared_ext$major'
12052    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12053    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12054    ;;
12055  *)
12056    shrext_cmds='.sl'
12057    dynamic_linker="$host_os dld.sl"
12058    shlibpath_var=SHLIB_PATH
12059    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12060    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12061    soname_spec='$libname$release$shared_ext$major'
12062    ;;
12063  esac
12064  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12065  postinstall_cmds='chmod 555 $lib'
12066  # or fails outright, so override atomically:
12067  install_override_mode=555
12068  ;;
12069
12070interix[3-9]*)
12071  version_type=linux # correct to gnu/linux during the next big refactor
12072  need_lib_prefix=no
12073  need_version=no
12074  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12075  soname_spec='$libname$release$shared_ext$major'
12076  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12077  shlibpath_var=LD_LIBRARY_PATH
12078  shlibpath_overrides_runpath=no
12079  hardcode_into_libs=yes
12080  ;;
12081
12082irix5* | irix6* | nonstopux*)
12083  case $host_os in
12084    nonstopux*) version_type=nonstopux ;;
12085    *)
12086	if test yes = "$lt_cv_prog_gnu_ld"; then
12087		version_type=linux # correct to gnu/linux during the next big refactor
12088	else
12089		version_type=irix
12090	fi ;;
12091  esac
12092  need_lib_prefix=no
12093  need_version=no
12094  soname_spec='$libname$release$shared_ext$major'
12095  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12096  case $host_os in
12097  irix5* | nonstopux*)
12098    libsuff= shlibsuff=
12099    ;;
12100  *)
12101    case $LD in # libtool.m4 will add one of these switches to LD
12102    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12103      libsuff= shlibsuff= libmagic=32-bit;;
12104    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12105      libsuff=32 shlibsuff=N32 libmagic=N32;;
12106    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12107      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12108    *) libsuff= shlibsuff= libmagic=never-match;;
12109    esac
12110    ;;
12111  esac
12112  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12113  shlibpath_overrides_runpath=no
12114  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12115  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12116  hardcode_into_libs=yes
12117  ;;
12118
12119# No shared lib support for Linux oldld, aout, or coff.
12120linux*oldld* | linux*aout* | linux*coff*)
12121  dynamic_linker=no
12122  ;;
12123
12124linux*android*)
12125  version_type=none # Android doesn't support versioned libraries.
12126  need_lib_prefix=no
12127  need_version=no
12128  library_names_spec='$libname$release$shared_ext'
12129  soname_spec='$libname$release$shared_ext'
12130  finish_cmds=
12131  shlibpath_var=LD_LIBRARY_PATH
12132  shlibpath_overrides_runpath=yes
12133
12134  # This implies no fast_install, which is unacceptable.
12135  # Some rework will be needed to allow for fast_install
12136  # before this can be enabled.
12137  hardcode_into_libs=yes
12138
12139  dynamic_linker='Android linker'
12140  # Don't embed -rpath directories since the linker doesn't support them.
12141  hardcode_libdir_flag_spec='-L$libdir'
12142  ;;
12143
12144# This must be glibc/ELF.
12145linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12146  version_type=linux # correct to gnu/linux during the next big refactor
12147  need_lib_prefix=no
12148  need_version=no
12149  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12150  soname_spec='$libname$release$shared_ext$major'
12151  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12152  shlibpath_var=LD_LIBRARY_PATH
12153  shlibpath_overrides_runpath=no
12154
12155  # Some binutils ld are patched to set DT_RUNPATH
12156  if test ${lt_cv_shlibpath_overrides_runpath+y}
12157then :
12158  printf %s "(cached) " >&6
12159else $as_nop
12160  lt_cv_shlibpath_overrides_runpath=no
12161    save_LDFLAGS=$LDFLAGS
12162    save_libdir=$libdir
12163    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12164	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12165    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12166/* end confdefs.h.  */
12167
12168int
12169main (void)
12170{
12171
12172  ;
12173  return 0;
12174}
12175_ACEOF
12176if ac_fn_c_try_link "$LINENO"
12177then :
12178  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
12179then :
12180  lt_cv_shlibpath_overrides_runpath=yes
12181fi
12182fi
12183rm -f core conftest.err conftest.$ac_objext conftest.beam \
12184    conftest$ac_exeext conftest.$ac_ext
12185    LDFLAGS=$save_LDFLAGS
12186    libdir=$save_libdir
12187
12188fi
12189
12190  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12191
12192  # This implies no fast_install, which is unacceptable.
12193  # Some rework will be needed to allow for fast_install
12194  # before this can be enabled.
12195  hardcode_into_libs=yes
12196
12197  # Ideally, we could use ldconfig to report *all* directores which are
12198  # searched for libraries, however this is still not possible.  Aside from not
12199  # being certain /sbin/ldconfig is available, command
12200  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12201  # even though it is searched at run-time.  Try to do the best guess by
12202  # appending ld.so.conf contents (and includes) to the search path.
12203  if test -f /etc/ld.so.conf; then
12204    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' ' '`
12205    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12206  fi
12207
12208  # We used to test for /lib/ld.so.1 and disable shared libraries on
12209  # powerpc, because MkLinux only supported shared libraries with the
12210  # GNU dynamic linker.  Since this was broken with cross compilers,
12211  # most powerpc-linux boxes support dynamic linking these days and
12212  # people can always --disable-shared, the test was removed, and we
12213  # assume the GNU/Linux dynamic linker is in use.
12214  dynamic_linker='GNU/Linux ld.so'
12215  ;;
12216
12217netbsd*)
12218  version_type=sunos
12219  need_lib_prefix=no
12220  need_version=no
12221  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12222    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12223    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12224    dynamic_linker='NetBSD (a.out) ld.so'
12225  else
12226    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12227    soname_spec='$libname$release$shared_ext$major'
12228    dynamic_linker='NetBSD ld.elf_so'
12229  fi
12230  shlibpath_var=LD_LIBRARY_PATH
12231  shlibpath_overrides_runpath=yes
12232  hardcode_into_libs=yes
12233  ;;
12234
12235newsos6)
12236  version_type=linux # correct to gnu/linux during the next big refactor
12237  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12238  shlibpath_var=LD_LIBRARY_PATH
12239  shlibpath_overrides_runpath=yes
12240  ;;
12241
12242*nto* | *qnx*)
12243  version_type=qnx
12244  need_lib_prefix=no
12245  need_version=no
12246  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12247  soname_spec='$libname$release$shared_ext$major'
12248  shlibpath_var=LD_LIBRARY_PATH
12249  shlibpath_overrides_runpath=no
12250  hardcode_into_libs=yes
12251  dynamic_linker='ldqnx.so'
12252  ;;
12253
12254openbsd* | bitrig*)
12255  version_type=sunos
12256  sys_lib_dlsearch_path_spec=/usr/lib
12257  need_lib_prefix=no
12258  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12259    need_version=no
12260  else
12261    need_version=yes
12262  fi
12263  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12264  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12265  shlibpath_var=LD_LIBRARY_PATH
12266  shlibpath_overrides_runpath=yes
12267  ;;
12268
12269os2*)
12270  libname_spec='$name'
12271  version_type=windows
12272  shrext_cmds=.dll
12273  need_version=no
12274  need_lib_prefix=no
12275  # OS/2 can only load a DLL with a base name of 8 characters or less.
12276  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12277    v=$($ECHO $release$versuffix | tr -d .-);
12278    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12279    $ECHO $n$v`$shared_ext'
12280  library_names_spec='${libname}_dll.$libext'
12281  dynamic_linker='OS/2 ld.exe'
12282  shlibpath_var=BEGINLIBPATH
12283  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12284  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12285  postinstall_cmds='base_file=`basename \$file`~
12286    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12287    dldir=$destdir/`dirname \$dlpath`~
12288    test -d \$dldir || mkdir -p \$dldir~
12289    $install_prog $dir/$dlname \$dldir/$dlname~
12290    chmod a+x \$dldir/$dlname~
12291    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12292      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12293    fi'
12294  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12295    dlpath=$dir/\$dldll~
12296    $RM \$dlpath'
12297  ;;
12298
12299osf3* | osf4* | osf5*)
12300  version_type=osf
12301  need_lib_prefix=no
12302  need_version=no
12303  soname_spec='$libname$release$shared_ext$major'
12304  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12305  shlibpath_var=LD_LIBRARY_PATH
12306  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12307  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12308  ;;
12309
12310rdos*)
12311  dynamic_linker=no
12312  ;;
12313
12314solaris*)
12315  version_type=linux # correct to gnu/linux during the next big refactor
12316  need_lib_prefix=no
12317  need_version=no
12318  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12319  soname_spec='$libname$release$shared_ext$major'
12320  shlibpath_var=LD_LIBRARY_PATH
12321  shlibpath_overrides_runpath=yes
12322  hardcode_into_libs=yes
12323  # ldd complains unless libraries are executable
12324  postinstall_cmds='chmod +x $lib'
12325  ;;
12326
12327sunos4*)
12328  version_type=sunos
12329  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12330  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12331  shlibpath_var=LD_LIBRARY_PATH
12332  shlibpath_overrides_runpath=yes
12333  if test yes = "$with_gnu_ld"; then
12334    need_lib_prefix=no
12335  fi
12336  need_version=yes
12337  ;;
12338
12339sysv4 | sysv4.3*)
12340  version_type=linux # correct to gnu/linux during the next big refactor
12341  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12342  soname_spec='$libname$release$shared_ext$major'
12343  shlibpath_var=LD_LIBRARY_PATH
12344  case $host_vendor in
12345    sni)
12346      shlibpath_overrides_runpath=no
12347      need_lib_prefix=no
12348      runpath_var=LD_RUN_PATH
12349      ;;
12350    siemens)
12351      need_lib_prefix=no
12352      ;;
12353    motorola)
12354      need_lib_prefix=no
12355      need_version=no
12356      shlibpath_overrides_runpath=no
12357      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12358      ;;
12359  esac
12360  ;;
12361
12362sysv4*MP*)
12363  if test -d /usr/nec; then
12364    version_type=linux # correct to gnu/linux during the next big refactor
12365    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12366    soname_spec='$libname$shared_ext.$major'
12367    shlibpath_var=LD_LIBRARY_PATH
12368  fi
12369  ;;
12370
12371sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12372  version_type=sco
12373  need_lib_prefix=no
12374  need_version=no
12375  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12376  soname_spec='$libname$release$shared_ext$major'
12377  shlibpath_var=LD_LIBRARY_PATH
12378  shlibpath_overrides_runpath=yes
12379  hardcode_into_libs=yes
12380  if test yes = "$with_gnu_ld"; then
12381    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12382  else
12383    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12384    case $host_os in
12385      sco3.2v5*)
12386        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12387	;;
12388    esac
12389  fi
12390  sys_lib_dlsearch_path_spec='/usr/lib'
12391  ;;
12392
12393tpf*)
12394  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12395  version_type=linux # correct to gnu/linux during the next big refactor
12396  need_lib_prefix=no
12397  need_version=no
12398  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12399  shlibpath_var=LD_LIBRARY_PATH
12400  shlibpath_overrides_runpath=no
12401  hardcode_into_libs=yes
12402  ;;
12403
12404uts4*)
12405  version_type=linux # correct to gnu/linux during the next big refactor
12406  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12407  soname_spec='$libname$release$shared_ext$major'
12408  shlibpath_var=LD_LIBRARY_PATH
12409  ;;
12410
12411*)
12412  dynamic_linker=no
12413  ;;
12414esac
12415{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12416printf "%s\n" "$dynamic_linker" >&6; }
12417test no = "$dynamic_linker" && can_build_shared=no
12418
12419variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12420if test yes = "$GCC"; then
12421  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12422fi
12423
12424if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12425  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12426fi
12427
12428if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12429  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12430fi
12431
12432# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12433configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12434
12435# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12436func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12437
12438# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12439configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12440
12441
12442
12443
12444
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455
12456
12457
12458
12459
12460
12461
12462
12463
12464
12465
12466
12467
12468
12469
12470
12471
12472
12473
12474
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498
12499
12500
12501
12502
12503
12504
12505
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517
12518
12519
12520
12521
12522
12523
12524
12525
12526
12527
12528
12529
12530
12531
12532
12533
12534
12535
12536
12537  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12538printf %s "checking how to hardcode library paths into programs... " >&6; }
12539hardcode_action=
12540if test -n "$hardcode_libdir_flag_spec" ||
12541   test -n "$runpath_var" ||
12542   test yes = "$hardcode_automatic"; then
12543
12544  # We can hardcode non-existent directories.
12545  if test no != "$hardcode_direct" &&
12546     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12547     # have to relink, otherwise we might link with an installed library
12548     # when we should be linking with a yet-to-be-installed one
12549     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12550     test no != "$hardcode_minus_L"; then
12551    # Linking always hardcodes the temporary library directory.
12552    hardcode_action=relink
12553  else
12554    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12555    hardcode_action=immediate
12556  fi
12557else
12558  # We cannot hardcode anything, or else we can only hardcode existing
12559  # directories.
12560  hardcode_action=unsupported
12561fi
12562{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12563printf "%s\n" "$hardcode_action" >&6; }
12564
12565if test relink = "$hardcode_action" ||
12566   test yes = "$inherit_rpath"; then
12567  # Fast installation is not supported
12568  enable_fast_install=no
12569elif test yes = "$shlibpath_overrides_runpath" ||
12570     test no = "$enable_shared"; then
12571  # Fast installation is not necessary
12572  enable_fast_install=needless
12573fi
12574
12575
12576
12577
12578
12579
12580  if test yes != "$enable_dlopen"; then
12581  enable_dlopen=unknown
12582  enable_dlopen_self=unknown
12583  enable_dlopen_self_static=unknown
12584else
12585  lt_cv_dlopen=no
12586  lt_cv_dlopen_libs=
12587
12588  case $host_os in
12589  beos*)
12590    lt_cv_dlopen=load_add_on
12591    lt_cv_dlopen_libs=
12592    lt_cv_dlopen_self=yes
12593    ;;
12594
12595  mingw* | pw32* | cegcc*)
12596    lt_cv_dlopen=LoadLibrary
12597    lt_cv_dlopen_libs=
12598    ;;
12599
12600  cygwin*)
12601    lt_cv_dlopen=dlopen
12602    lt_cv_dlopen_libs=
12603    ;;
12604
12605  darwin*)
12606    # if libdl is installed we need to link against it
12607    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12608printf %s "checking for dlopen in -ldl... " >&6; }
12609if test ${ac_cv_lib_dl_dlopen+y}
12610then :
12611  printf %s "(cached) " >&6
12612else $as_nop
12613  ac_check_lib_save_LIBS=$LIBS
12614LIBS="-ldl  $LIBS"
12615cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12616/* end confdefs.h.  */
12617
12618/* Override any GCC internal prototype to avoid an error.
12619   Use char because int might match the return type of a GCC
12620   builtin and then its argument prototype would still apply.  */
12621char dlopen ();
12622int
12623main (void)
12624{
12625return dlopen ();
12626  ;
12627  return 0;
12628}
12629_ACEOF
12630if ac_fn_c_try_link "$LINENO"
12631then :
12632  ac_cv_lib_dl_dlopen=yes
12633else $as_nop
12634  ac_cv_lib_dl_dlopen=no
12635fi
12636rm -f core conftest.err conftest.$ac_objext conftest.beam \
12637    conftest$ac_exeext conftest.$ac_ext
12638LIBS=$ac_check_lib_save_LIBS
12639fi
12640{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12641printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12642if test "x$ac_cv_lib_dl_dlopen" = xyes
12643then :
12644  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12645else $as_nop
12646
12647    lt_cv_dlopen=dyld
12648    lt_cv_dlopen_libs=
12649    lt_cv_dlopen_self=yes
12650
12651fi
12652
12653    ;;
12654
12655  tpf*)
12656    # Don't try to run any link tests for TPF.  We know it's impossible
12657    # because TPF is a cross-compiler, and we know how we open DSOs.
12658    lt_cv_dlopen=dlopen
12659    lt_cv_dlopen_libs=
12660    lt_cv_dlopen_self=no
12661    ;;
12662
12663  *)
12664    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12665if test "x$ac_cv_func_shl_load" = xyes
12666then :
12667  lt_cv_dlopen=shl_load
12668else $as_nop
12669  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12670printf %s "checking for shl_load in -ldld... " >&6; }
12671if test ${ac_cv_lib_dld_shl_load+y}
12672then :
12673  printf %s "(cached) " >&6
12674else $as_nop
12675  ac_check_lib_save_LIBS=$LIBS
12676LIBS="-ldld  $LIBS"
12677cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12678/* end confdefs.h.  */
12679
12680/* Override any GCC internal prototype to avoid an error.
12681   Use char because int might match the return type of a GCC
12682   builtin and then its argument prototype would still apply.  */
12683char shl_load ();
12684int
12685main (void)
12686{
12687return shl_load ();
12688  ;
12689  return 0;
12690}
12691_ACEOF
12692if ac_fn_c_try_link "$LINENO"
12693then :
12694  ac_cv_lib_dld_shl_load=yes
12695else $as_nop
12696  ac_cv_lib_dld_shl_load=no
12697fi
12698rm -f core conftest.err conftest.$ac_objext conftest.beam \
12699    conftest$ac_exeext conftest.$ac_ext
12700LIBS=$ac_check_lib_save_LIBS
12701fi
12702{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12703printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12704if test "x$ac_cv_lib_dld_shl_load" = xyes
12705then :
12706  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12707else $as_nop
12708  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12709if test "x$ac_cv_func_dlopen" = xyes
12710then :
12711  lt_cv_dlopen=dlopen
12712else $as_nop
12713  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12714printf %s "checking for dlopen in -ldl... " >&6; }
12715if test ${ac_cv_lib_dl_dlopen+y}
12716then :
12717  printf %s "(cached) " >&6
12718else $as_nop
12719  ac_check_lib_save_LIBS=$LIBS
12720LIBS="-ldl  $LIBS"
12721cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12722/* end confdefs.h.  */
12723
12724/* Override any GCC internal prototype to avoid an error.
12725   Use char because int might match the return type of a GCC
12726   builtin and then its argument prototype would still apply.  */
12727char dlopen ();
12728int
12729main (void)
12730{
12731return dlopen ();
12732  ;
12733  return 0;
12734}
12735_ACEOF
12736if ac_fn_c_try_link "$LINENO"
12737then :
12738  ac_cv_lib_dl_dlopen=yes
12739else $as_nop
12740  ac_cv_lib_dl_dlopen=no
12741fi
12742rm -f core conftest.err conftest.$ac_objext conftest.beam \
12743    conftest$ac_exeext conftest.$ac_ext
12744LIBS=$ac_check_lib_save_LIBS
12745fi
12746{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12747printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12748if test "x$ac_cv_lib_dl_dlopen" = xyes
12749then :
12750  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12751else $as_nop
12752  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12753printf %s "checking for dlopen in -lsvld... " >&6; }
12754if test ${ac_cv_lib_svld_dlopen+y}
12755then :
12756  printf %s "(cached) " >&6
12757else $as_nop
12758  ac_check_lib_save_LIBS=$LIBS
12759LIBS="-lsvld  $LIBS"
12760cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12761/* end confdefs.h.  */
12762
12763/* Override any GCC internal prototype to avoid an error.
12764   Use char because int might match the return type of a GCC
12765   builtin and then its argument prototype would still apply.  */
12766char dlopen ();
12767int
12768main (void)
12769{
12770return dlopen ();
12771  ;
12772  return 0;
12773}
12774_ACEOF
12775if ac_fn_c_try_link "$LINENO"
12776then :
12777  ac_cv_lib_svld_dlopen=yes
12778else $as_nop
12779  ac_cv_lib_svld_dlopen=no
12780fi
12781rm -f core conftest.err conftest.$ac_objext conftest.beam \
12782    conftest$ac_exeext conftest.$ac_ext
12783LIBS=$ac_check_lib_save_LIBS
12784fi
12785{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12786printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12787if test "x$ac_cv_lib_svld_dlopen" = xyes
12788then :
12789  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12790else $as_nop
12791  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12792printf %s "checking for dld_link in -ldld... " >&6; }
12793if test ${ac_cv_lib_dld_dld_link+y}
12794then :
12795  printf %s "(cached) " >&6
12796else $as_nop
12797  ac_check_lib_save_LIBS=$LIBS
12798LIBS="-ldld  $LIBS"
12799cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12800/* end confdefs.h.  */
12801
12802/* Override any GCC internal prototype to avoid an error.
12803   Use char because int might match the return type of a GCC
12804   builtin and then its argument prototype would still apply.  */
12805char dld_link ();
12806int
12807main (void)
12808{
12809return dld_link ();
12810  ;
12811  return 0;
12812}
12813_ACEOF
12814if ac_fn_c_try_link "$LINENO"
12815then :
12816  ac_cv_lib_dld_dld_link=yes
12817else $as_nop
12818  ac_cv_lib_dld_dld_link=no
12819fi
12820rm -f core conftest.err conftest.$ac_objext conftest.beam \
12821    conftest$ac_exeext conftest.$ac_ext
12822LIBS=$ac_check_lib_save_LIBS
12823fi
12824{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12825printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12826if test "x$ac_cv_lib_dld_dld_link" = xyes
12827then :
12828  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12829fi
12830
12831
12832fi
12833
12834
12835fi
12836
12837
12838fi
12839
12840
12841fi
12842
12843
12844fi
12845
12846    ;;
12847  esac
12848
12849  if test no = "$lt_cv_dlopen"; then
12850    enable_dlopen=no
12851  else
12852    enable_dlopen=yes
12853  fi
12854
12855  case $lt_cv_dlopen in
12856  dlopen)
12857    save_CPPFLAGS=$CPPFLAGS
12858    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12859
12860    save_LDFLAGS=$LDFLAGS
12861    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12862
12863    save_LIBS=$LIBS
12864    LIBS="$lt_cv_dlopen_libs $LIBS"
12865
12866    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12867printf %s "checking whether a program can dlopen itself... " >&6; }
12868if test ${lt_cv_dlopen_self+y}
12869then :
12870  printf %s "(cached) " >&6
12871else $as_nop
12872  	  if test yes = "$cross_compiling"; then :
12873  lt_cv_dlopen_self=cross
12874else
12875  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12876  lt_status=$lt_dlunknown
12877  cat > conftest.$ac_ext <<_LT_EOF
12878#line $LINENO "configure"
12879#include "confdefs.h"
12880
12881#if HAVE_DLFCN_H
12882#include <dlfcn.h>
12883#endif
12884
12885#include <stdio.h>
12886
12887#ifdef RTLD_GLOBAL
12888#  define LT_DLGLOBAL		RTLD_GLOBAL
12889#else
12890#  ifdef DL_GLOBAL
12891#    define LT_DLGLOBAL		DL_GLOBAL
12892#  else
12893#    define LT_DLGLOBAL		0
12894#  endif
12895#endif
12896
12897/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12898   find out it does not work in some platform. */
12899#ifndef LT_DLLAZY_OR_NOW
12900#  ifdef RTLD_LAZY
12901#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12902#  else
12903#    ifdef DL_LAZY
12904#      define LT_DLLAZY_OR_NOW		DL_LAZY
12905#    else
12906#      ifdef RTLD_NOW
12907#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12908#      else
12909#        ifdef DL_NOW
12910#          define LT_DLLAZY_OR_NOW	DL_NOW
12911#        else
12912#          define LT_DLLAZY_OR_NOW	0
12913#        endif
12914#      endif
12915#    endif
12916#  endif
12917#endif
12918
12919/* When -fvisibility=hidden is used, assume the code has been annotated
12920   correspondingly for the symbols needed.  */
12921#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12922int fnord () __attribute__((visibility("default")));
12923#endif
12924
12925int fnord () { return 42; }
12926int main ()
12927{
12928  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12929  int status = $lt_dlunknown;
12930
12931  if (self)
12932    {
12933      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12934      else
12935        {
12936	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12937          else puts (dlerror ());
12938	}
12939      /* dlclose (self); */
12940    }
12941  else
12942    puts (dlerror ());
12943
12944  return status;
12945}
12946_LT_EOF
12947  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12948  (eval $ac_link) 2>&5
12949  ac_status=$?
12950  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12951  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12952    (./conftest; exit; ) >&5 2>/dev/null
12953    lt_status=$?
12954    case x$lt_status in
12955      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12956      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12957      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12958    esac
12959  else :
12960    # compilation failed
12961    lt_cv_dlopen_self=no
12962  fi
12963fi
12964rm -fr conftest*
12965
12966
12967fi
12968{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12969printf "%s\n" "$lt_cv_dlopen_self" >&6; }
12970
12971    if test yes = "$lt_cv_dlopen_self"; then
12972      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12973      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12974printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
12975if test ${lt_cv_dlopen_self_static+y}
12976then :
12977  printf %s "(cached) " >&6
12978else $as_nop
12979  	  if test yes = "$cross_compiling"; then :
12980  lt_cv_dlopen_self_static=cross
12981else
12982  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12983  lt_status=$lt_dlunknown
12984  cat > conftest.$ac_ext <<_LT_EOF
12985#line $LINENO "configure"
12986#include "confdefs.h"
12987
12988#if HAVE_DLFCN_H
12989#include <dlfcn.h>
12990#endif
12991
12992#include <stdio.h>
12993
12994#ifdef RTLD_GLOBAL
12995#  define LT_DLGLOBAL		RTLD_GLOBAL
12996#else
12997#  ifdef DL_GLOBAL
12998#    define LT_DLGLOBAL		DL_GLOBAL
12999#  else
13000#    define LT_DLGLOBAL		0
13001#  endif
13002#endif
13003
13004/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13005   find out it does not work in some platform. */
13006#ifndef LT_DLLAZY_OR_NOW
13007#  ifdef RTLD_LAZY
13008#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13009#  else
13010#    ifdef DL_LAZY
13011#      define LT_DLLAZY_OR_NOW		DL_LAZY
13012#    else
13013#      ifdef RTLD_NOW
13014#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13015#      else
13016#        ifdef DL_NOW
13017#          define LT_DLLAZY_OR_NOW	DL_NOW
13018#        else
13019#          define LT_DLLAZY_OR_NOW	0
13020#        endif
13021#      endif
13022#    endif
13023#  endif
13024#endif
13025
13026/* When -fvisibility=hidden is used, assume the code has been annotated
13027   correspondingly for the symbols needed.  */
13028#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13029int fnord () __attribute__((visibility("default")));
13030#endif
13031
13032int fnord () { return 42; }
13033int main ()
13034{
13035  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13036  int status = $lt_dlunknown;
13037
13038  if (self)
13039    {
13040      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13041      else
13042        {
13043	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13044          else puts (dlerror ());
13045	}
13046      /* dlclose (self); */
13047    }
13048  else
13049    puts (dlerror ());
13050
13051  return status;
13052}
13053_LT_EOF
13054  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13055  (eval $ac_link) 2>&5
13056  ac_status=$?
13057  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13058  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13059    (./conftest; exit; ) >&5 2>/dev/null
13060    lt_status=$?
13061    case x$lt_status in
13062      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13063      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13064      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13065    esac
13066  else :
13067    # compilation failed
13068    lt_cv_dlopen_self_static=no
13069  fi
13070fi
13071rm -fr conftest*
13072
13073
13074fi
13075{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13076printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
13077    fi
13078
13079    CPPFLAGS=$save_CPPFLAGS
13080    LDFLAGS=$save_LDFLAGS
13081    LIBS=$save_LIBS
13082    ;;
13083  esac
13084
13085  case $lt_cv_dlopen_self in
13086  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13087  *) enable_dlopen_self=unknown ;;
13088  esac
13089
13090  case $lt_cv_dlopen_self_static in
13091  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13092  *) enable_dlopen_self_static=unknown ;;
13093  esac
13094fi
13095
13096
13097
13098
13099
13100
13101
13102
13103
13104
13105
13106
13107
13108
13109
13110
13111
13112striplib=
13113old_striplib=
13114{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13115printf %s "checking whether stripping libraries is possible... " >&6; }
13116if test -z "$STRIP"; then
13117  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13118printf "%s\n" "no" >&6; }
13119else
13120  if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13121    old_striplib="$STRIP --strip-debug"
13122    striplib="$STRIP --strip-unneeded"
13123    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13124printf "%s\n" "yes" >&6; }
13125  else
13126    case $host_os in
13127    darwin*)
13128      # FIXME - insert some real tests, host_os isn't really good enough
13129      striplib="$STRIP -x"
13130      old_striplib="$STRIP -S"
13131      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13132printf "%s\n" "yes" >&6; }
13133      ;;
13134    freebsd*)
13135      if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
13136        old_striplib="$STRIP --strip-debug"
13137        striplib="$STRIP --strip-unneeded"
13138        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13139printf "%s\n" "yes" >&6; }
13140      else
13141        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13142printf "%s\n" "no" >&6; }
13143      fi
13144      ;;
13145    *)
13146      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13147printf "%s\n" "no" >&6; }
13148      ;;
13149    esac
13150  fi
13151fi
13152
13153
13154
13155
13156
13157
13158
13159
13160
13161
13162
13163
13164  # Report what library types will actually be built
13165  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13166printf %s "checking if libtool supports shared libraries... " >&6; }
13167  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13168printf "%s\n" "$can_build_shared" >&6; }
13169
13170  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13171printf %s "checking whether to build shared libraries... " >&6; }
13172  test no = "$can_build_shared" && enable_shared=no
13173
13174  # On AIX, shared libraries and static libraries use the same namespace, and
13175  # are all built from PIC.
13176  case $host_os in
13177  aix3*)
13178    test yes = "$enable_shared" && enable_static=no
13179    if test -n "$RANLIB"; then
13180      archive_cmds="$archive_cmds~\$RANLIB \$lib"
13181      postinstall_cmds='$RANLIB $lib'
13182    fi
13183    ;;
13184
13185  aix[4-9]*)
13186    if test ia64 != "$host_cpu"; then
13187      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13188      yes,aix,yes) ;;			# shared object as lib.so file only
13189      yes,svr4,*) ;;			# shared object as lib.so archive member only
13190      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
13191      esac
13192    fi
13193    ;;
13194  esac
13195  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13196printf "%s\n" "$enable_shared" >&6; }
13197
13198  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13199printf %s "checking whether to build static libraries... " >&6; }
13200  # Make sure either enable_shared or enable_static is yes.
13201  test yes = "$enable_shared" || enable_static=yes
13202  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13203printf "%s\n" "$enable_static" >&6; }
13204
13205
13206
13207
13208fi
13209ac_ext=c
13210ac_cpp='$CPP $CPPFLAGS'
13211ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13212ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13213ac_compiler_gnu=$ac_cv_c_compiler_gnu
13214
13215CC=$lt_save_CC
13216
13217
13218
13219
13220
13221
13222
13223
13224
13225
13226
13227
13228
13229
13230
13231        ac_config_commands="$ac_config_commands libtool"
13232
13233
13234
13235
13236# Only expand once:
13237
13238
13239
13240# Require xorg-macros minimum of 1.16 for unit testing with memory checks
13241
13242
13243
13244
13245
13246
13247
13248
13249
13250
13251
13252
13253{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
13254printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
13255if test ${ac_cv_c_undeclared_builtin_options+y}
13256then :
13257  printf %s "(cached) " >&6
13258else $as_nop
13259  ac_save_CFLAGS=$CFLAGS
13260   ac_cv_c_undeclared_builtin_options='cannot detect'
13261   for ac_arg in '' -fno-builtin; do
13262     CFLAGS="$ac_save_CFLAGS $ac_arg"
13263     # This test program should *not* compile successfully.
13264     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13265/* end confdefs.h.  */
13266
13267int
13268main (void)
13269{
13270(void) strchr;
13271  ;
13272  return 0;
13273}
13274_ACEOF
13275if ac_fn_c_try_compile "$LINENO"
13276then :
13277
13278else $as_nop
13279  # This test program should compile successfully.
13280        # No library function is consistently available on
13281        # freestanding implementations, so test against a dummy
13282        # declaration.  Include always-available headers on the
13283        # off chance that they somehow elicit warnings.
13284        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13285/* end confdefs.h.  */
13286#include <float.h>
13287#include <limits.h>
13288#include <stdarg.h>
13289#include <stddef.h>
13290extern void ac_decl (int, char *);
13291
13292int
13293main (void)
13294{
13295(void) ac_decl (0, (char *) 0);
13296  (void) ac_decl;
13297
13298  ;
13299  return 0;
13300}
13301_ACEOF
13302if ac_fn_c_try_compile "$LINENO"
13303then :
13304  if test x"$ac_arg" = x
13305then :
13306  ac_cv_c_undeclared_builtin_options='none needed'
13307else $as_nop
13308  ac_cv_c_undeclared_builtin_options=$ac_arg
13309fi
13310          break
13311fi
13312rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13313fi
13314rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13315    done
13316    CFLAGS=$ac_save_CFLAGS
13317
13318fi
13319{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
13320printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
13321  case $ac_cv_c_undeclared_builtin_options in #(
13322  'cannot detect') :
13323    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13324printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13325as_fn_error $? "cannot make $CC report undeclared builtins
13326See \`config.log' for more details" "$LINENO" 5; } ;; #(
13327  'none needed') :
13328    ac_c_undeclared_builtin_options='' ;; #(
13329  *) :
13330    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
13331esac
13332
13333
13334
13335
13336
13337ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
13338if test "x$ac_cv_have_decl___clang__" = xyes
13339then :
13340  CLANGCC="yes"
13341else $as_nop
13342  CLANGCC="no"
13343fi
13344ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
13345if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
13346then :
13347  INTELCC="yes"
13348else $as_nop
13349  INTELCC="no"
13350fi
13351ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
13352if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
13353then :
13354  SUNCC="yes"
13355else $as_nop
13356  SUNCC="no"
13357fi
13358
13359
13360
13361
13362
13363
13364
13365
13366if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13367	if test -n "$ac_tool_prefix"; then
13368  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13369set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13370{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13371printf %s "checking for $ac_word... " >&6; }
13372if test ${ac_cv_path_PKG_CONFIG+y}
13373then :
13374  printf %s "(cached) " >&6
13375else $as_nop
13376  case $PKG_CONFIG in
13377  [\\/]* | ?:[\\/]*)
13378  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13379  ;;
13380  *)
13381  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13382for as_dir in $PATH
13383do
13384  IFS=$as_save_IFS
13385  case $as_dir in #(((
13386    '') as_dir=./ ;;
13387    */) ;;
13388    *) as_dir=$as_dir/ ;;
13389  esac
13390    for ac_exec_ext in '' $ac_executable_extensions; do
13391  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13392    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13393    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13394    break 2
13395  fi
13396done
13397  done
13398IFS=$as_save_IFS
13399
13400  ;;
13401esac
13402fi
13403PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13404if test -n "$PKG_CONFIG"; then
13405  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13406printf "%s\n" "$PKG_CONFIG" >&6; }
13407else
13408  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13409printf "%s\n" "no" >&6; }
13410fi
13411
13412
13413fi
13414if test -z "$ac_cv_path_PKG_CONFIG"; then
13415  ac_pt_PKG_CONFIG=$PKG_CONFIG
13416  # Extract the first word of "pkg-config", so it can be a program name with args.
13417set dummy pkg-config; ac_word=$2
13418{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13419printf %s "checking for $ac_word... " >&6; }
13420if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
13421then :
13422  printf %s "(cached) " >&6
13423else $as_nop
13424  case $ac_pt_PKG_CONFIG in
13425  [\\/]* | ?:[\\/]*)
13426  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13427  ;;
13428  *)
13429  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13430for as_dir in $PATH
13431do
13432  IFS=$as_save_IFS
13433  case $as_dir in #(((
13434    '') as_dir=./ ;;
13435    */) ;;
13436    *) as_dir=$as_dir/ ;;
13437  esac
13438    for ac_exec_ext in '' $ac_executable_extensions; do
13439  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13440    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13441    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13442    break 2
13443  fi
13444done
13445  done
13446IFS=$as_save_IFS
13447
13448  ;;
13449esac
13450fi
13451ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13452if test -n "$ac_pt_PKG_CONFIG"; then
13453  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13454printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
13455else
13456  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13457printf "%s\n" "no" >&6; }
13458fi
13459
13460  if test "x$ac_pt_PKG_CONFIG" = x; then
13461    PKG_CONFIG=""
13462  else
13463    case $cross_compiling:$ac_tool_warned in
13464yes:)
13465{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13466printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13467ac_tool_warned=yes ;;
13468esac
13469    PKG_CONFIG=$ac_pt_PKG_CONFIG
13470  fi
13471else
13472  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13473fi
13474
13475fi
13476if test -n "$PKG_CONFIG"; then
13477	_pkg_min_version=0.9.0
13478	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13479printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13480	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13481		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13482printf "%s\n" "yes" >&6; }
13483	else
13484		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13485printf "%s\n" "no" >&6; }
13486		PKG_CONFIG=""
13487	fi
13488fi
13489
13490
13491
13492
13493
13494# Check whether --enable-selective-werror was given.
13495if test ${enable_selective_werror+y}
13496then :
13497  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
13498else $as_nop
13499  SELECTIVE_WERROR=yes
13500fi
13501
13502
13503
13504
13505
13506# -v is too short to test reliably with XORG_TESTSET_CFLAG
13507if test "x$SUNCC" = "xyes"; then
13508    BASE_CFLAGS="-v"
13509else
13510    BASE_CFLAGS=""
13511fi
13512
13513# This chunk of warnings were those that existed in the legacy CWARNFLAGS
13514
13515
13516
13517
13518
13519
13520
13521
13522
13523
13524
13525
13526
13527xorg_testset_save_CFLAGS="$CFLAGS"
13528
13529if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13530	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13531	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13532printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13533if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13534then :
13535  printf %s "(cached) " >&6
13536else $as_nop
13537  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13538/* end confdefs.h.  */
13539int i;
13540_ACEOF
13541if ac_fn_c_try_compile "$LINENO"
13542then :
13543  xorg_cv_cc_flag_unknown_warning_option=yes
13544else $as_nop
13545  xorg_cv_cc_flag_unknown_warning_option=no
13546fi
13547rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13548fi
13549{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13550printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13551	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13552	CFLAGS="$xorg_testset_save_CFLAGS"
13553fi
13554
13555if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13556	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13557		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13558	fi
13559	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13560	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13561printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13562if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13563then :
13564  printf %s "(cached) " >&6
13565else $as_nop
13566  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13567/* end confdefs.h.  */
13568int i;
13569_ACEOF
13570if ac_fn_c_try_compile "$LINENO"
13571then :
13572  xorg_cv_cc_flag_unused_command_line_argument=yes
13573else $as_nop
13574  xorg_cv_cc_flag_unused_command_line_argument=no
13575fi
13576rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13577fi
13578{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13579printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13580	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13581	CFLAGS="$xorg_testset_save_CFLAGS"
13582fi
13583
13584found="no"
13585
13586	if test $found = "no" ; then
13587		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13588			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13589		fi
13590
13591		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13592			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13593		fi
13594
13595		CFLAGS="$CFLAGS -Wall"
13596
13597		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
13598printf %s "checking if $CC supports -Wall... " >&6; }
13599		cacheid=xorg_cv_cc_flag__Wall
13600		if eval test \${$cacheid+y}
13601then :
13602  printf %s "(cached) " >&6
13603else $as_nop
13604  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13605/* end confdefs.h.  */
13606int i;
13607int
13608main (void)
13609{
13610
13611  ;
13612  return 0;
13613}
13614_ACEOF
13615if ac_fn_c_try_link "$LINENO"
13616then :
13617  eval $cacheid=yes
13618else $as_nop
13619  eval $cacheid=no
13620fi
13621rm -f core conftest.err conftest.$ac_objext conftest.beam \
13622    conftest$ac_exeext conftest.$ac_ext
13623fi
13624
13625
13626		CFLAGS="$xorg_testset_save_CFLAGS"
13627
13628		eval supported=\$$cacheid
13629		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13630printf "%s\n" "$supported" >&6; }
13631		if test "$supported" = "yes" ; then
13632			BASE_CFLAGS="$BASE_CFLAGS -Wall"
13633			found="yes"
13634		fi
13635	fi
13636
13637
13638
13639
13640
13641
13642
13643
13644
13645
13646
13647
13648
13649
13650
13651xorg_testset_save_CFLAGS="$CFLAGS"
13652
13653if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13654	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13655	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13656printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13657if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13658then :
13659  printf %s "(cached) " >&6
13660else $as_nop
13661  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13662/* end confdefs.h.  */
13663int i;
13664_ACEOF
13665if ac_fn_c_try_compile "$LINENO"
13666then :
13667  xorg_cv_cc_flag_unknown_warning_option=yes
13668else $as_nop
13669  xorg_cv_cc_flag_unknown_warning_option=no
13670fi
13671rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13672fi
13673{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13674printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13675	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13676	CFLAGS="$xorg_testset_save_CFLAGS"
13677fi
13678
13679if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13680	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13681		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13682	fi
13683	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13684	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13685printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13686if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13687then :
13688  printf %s "(cached) " >&6
13689else $as_nop
13690  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13691/* end confdefs.h.  */
13692int i;
13693_ACEOF
13694if ac_fn_c_try_compile "$LINENO"
13695then :
13696  xorg_cv_cc_flag_unused_command_line_argument=yes
13697else $as_nop
13698  xorg_cv_cc_flag_unused_command_line_argument=no
13699fi
13700rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13701fi
13702{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13703printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13704	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13705	CFLAGS="$xorg_testset_save_CFLAGS"
13706fi
13707
13708found="no"
13709
13710	if test $found = "no" ; then
13711		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13712			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13713		fi
13714
13715		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13716			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13717		fi
13718
13719		CFLAGS="$CFLAGS -Wpointer-arith"
13720
13721		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
13722printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
13723		cacheid=xorg_cv_cc_flag__Wpointer_arith
13724		if eval test \${$cacheid+y}
13725then :
13726  printf %s "(cached) " >&6
13727else $as_nop
13728  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13729/* end confdefs.h.  */
13730int i;
13731int
13732main (void)
13733{
13734
13735  ;
13736  return 0;
13737}
13738_ACEOF
13739if ac_fn_c_try_link "$LINENO"
13740then :
13741  eval $cacheid=yes
13742else $as_nop
13743  eval $cacheid=no
13744fi
13745rm -f core conftest.err conftest.$ac_objext conftest.beam \
13746    conftest$ac_exeext conftest.$ac_ext
13747fi
13748
13749
13750		CFLAGS="$xorg_testset_save_CFLAGS"
13751
13752		eval supported=\$$cacheid
13753		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13754printf "%s\n" "$supported" >&6; }
13755		if test "$supported" = "yes" ; then
13756			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
13757			found="yes"
13758		fi
13759	fi
13760
13761
13762
13763
13764
13765
13766
13767
13768
13769
13770
13771
13772
13773
13774
13775xorg_testset_save_CFLAGS="$CFLAGS"
13776
13777if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13778	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13779	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13780printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13781if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13782then :
13783  printf %s "(cached) " >&6
13784else $as_nop
13785  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13786/* end confdefs.h.  */
13787int i;
13788_ACEOF
13789if ac_fn_c_try_compile "$LINENO"
13790then :
13791  xorg_cv_cc_flag_unknown_warning_option=yes
13792else $as_nop
13793  xorg_cv_cc_flag_unknown_warning_option=no
13794fi
13795rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13796fi
13797{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13798printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13799	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13800	CFLAGS="$xorg_testset_save_CFLAGS"
13801fi
13802
13803if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13804	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13805		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13806	fi
13807	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13808	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13809printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13810if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13811then :
13812  printf %s "(cached) " >&6
13813else $as_nop
13814  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13815/* end confdefs.h.  */
13816int i;
13817_ACEOF
13818if ac_fn_c_try_compile "$LINENO"
13819then :
13820  xorg_cv_cc_flag_unused_command_line_argument=yes
13821else $as_nop
13822  xorg_cv_cc_flag_unused_command_line_argument=no
13823fi
13824rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13825fi
13826{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13827printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13828	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13829	CFLAGS="$xorg_testset_save_CFLAGS"
13830fi
13831
13832found="no"
13833
13834	if test $found = "no" ; then
13835		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13836			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13837		fi
13838
13839		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13840			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13841		fi
13842
13843		CFLAGS="$CFLAGS -Wmissing-declarations"
13844
13845		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
13846printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
13847		cacheid=xorg_cv_cc_flag__Wmissing_declarations
13848		if eval test \${$cacheid+y}
13849then :
13850  printf %s "(cached) " >&6
13851else $as_nop
13852  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13853/* end confdefs.h.  */
13854int i;
13855int
13856main (void)
13857{
13858
13859  ;
13860  return 0;
13861}
13862_ACEOF
13863if ac_fn_c_try_link "$LINENO"
13864then :
13865  eval $cacheid=yes
13866else $as_nop
13867  eval $cacheid=no
13868fi
13869rm -f core conftest.err conftest.$ac_objext conftest.beam \
13870    conftest$ac_exeext conftest.$ac_ext
13871fi
13872
13873
13874		CFLAGS="$xorg_testset_save_CFLAGS"
13875
13876		eval supported=\$$cacheid
13877		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13878printf "%s\n" "$supported" >&6; }
13879		if test "$supported" = "yes" ; then
13880			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
13881			found="yes"
13882		fi
13883	fi
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894
13895
13896
13897
13898
13899xorg_testset_save_CFLAGS="$CFLAGS"
13900
13901if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13902	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13903	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13904printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13905if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13906then :
13907  printf %s "(cached) " >&6
13908else $as_nop
13909  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13910/* end confdefs.h.  */
13911int i;
13912_ACEOF
13913if ac_fn_c_try_compile "$LINENO"
13914then :
13915  xorg_cv_cc_flag_unknown_warning_option=yes
13916else $as_nop
13917  xorg_cv_cc_flag_unknown_warning_option=no
13918fi
13919rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13920fi
13921{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13922printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13923	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13924	CFLAGS="$xorg_testset_save_CFLAGS"
13925fi
13926
13927if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13928	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13929		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13930	fi
13931	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13932	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13933printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13934if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13935then :
13936  printf %s "(cached) " >&6
13937else $as_nop
13938  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13939/* end confdefs.h.  */
13940int i;
13941_ACEOF
13942if ac_fn_c_try_compile "$LINENO"
13943then :
13944  xorg_cv_cc_flag_unused_command_line_argument=yes
13945else $as_nop
13946  xorg_cv_cc_flag_unused_command_line_argument=no
13947fi
13948rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13949fi
13950{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13951printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13952	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13953	CFLAGS="$xorg_testset_save_CFLAGS"
13954fi
13955
13956found="no"
13957
13958	if test $found = "no" ; then
13959		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13960			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13961		fi
13962
13963		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13964			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13965		fi
13966
13967		CFLAGS="$CFLAGS -Wformat=2"
13968
13969		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
13970printf %s "checking if $CC supports -Wformat=2... " >&6; }
13971		cacheid=xorg_cv_cc_flag__Wformat_2
13972		if eval test \${$cacheid+y}
13973then :
13974  printf %s "(cached) " >&6
13975else $as_nop
13976  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13977/* end confdefs.h.  */
13978int i;
13979int
13980main (void)
13981{
13982
13983  ;
13984  return 0;
13985}
13986_ACEOF
13987if ac_fn_c_try_link "$LINENO"
13988then :
13989  eval $cacheid=yes
13990else $as_nop
13991  eval $cacheid=no
13992fi
13993rm -f core conftest.err conftest.$ac_objext conftest.beam \
13994    conftest$ac_exeext conftest.$ac_ext
13995fi
13996
13997
13998		CFLAGS="$xorg_testset_save_CFLAGS"
13999
14000		eval supported=\$$cacheid
14001		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14002printf "%s\n" "$supported" >&6; }
14003		if test "$supported" = "yes" ; then
14004			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
14005			found="yes"
14006		fi
14007	fi
14008
14009	if test $found = "no" ; then
14010		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14011			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14012		fi
14013
14014		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14015			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14016		fi
14017
14018		CFLAGS="$CFLAGS -Wformat"
14019
14020		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
14021printf %s "checking if $CC supports -Wformat... " >&6; }
14022		cacheid=xorg_cv_cc_flag__Wformat
14023		if eval test \${$cacheid+y}
14024then :
14025  printf %s "(cached) " >&6
14026else $as_nop
14027  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14028/* end confdefs.h.  */
14029int i;
14030int
14031main (void)
14032{
14033
14034  ;
14035  return 0;
14036}
14037_ACEOF
14038if ac_fn_c_try_link "$LINENO"
14039then :
14040  eval $cacheid=yes
14041else $as_nop
14042  eval $cacheid=no
14043fi
14044rm -f core conftest.err conftest.$ac_objext conftest.beam \
14045    conftest$ac_exeext conftest.$ac_ext
14046fi
14047
14048
14049		CFLAGS="$xorg_testset_save_CFLAGS"
14050
14051		eval supported=\$$cacheid
14052		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14053printf "%s\n" "$supported" >&6; }
14054		if test "$supported" = "yes" ; then
14055			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
14056			found="yes"
14057		fi
14058	fi
14059
14060
14061
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076xorg_testset_save_CFLAGS="$CFLAGS"
14077
14078if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14079	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14080	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14081printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14082if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14083then :
14084  printf %s "(cached) " >&6
14085else $as_nop
14086  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14087/* end confdefs.h.  */
14088int i;
14089_ACEOF
14090if ac_fn_c_try_compile "$LINENO"
14091then :
14092  xorg_cv_cc_flag_unknown_warning_option=yes
14093else $as_nop
14094  xorg_cv_cc_flag_unknown_warning_option=no
14095fi
14096rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14097fi
14098{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14099printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14100	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14101	CFLAGS="$xorg_testset_save_CFLAGS"
14102fi
14103
14104if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14105	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14106		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14107	fi
14108	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14109	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14110printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14111if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14112then :
14113  printf %s "(cached) " >&6
14114else $as_nop
14115  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14116/* end confdefs.h.  */
14117int i;
14118_ACEOF
14119if ac_fn_c_try_compile "$LINENO"
14120then :
14121  xorg_cv_cc_flag_unused_command_line_argument=yes
14122else $as_nop
14123  xorg_cv_cc_flag_unused_command_line_argument=no
14124fi
14125rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14126fi
14127{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14128printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14129	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14130	CFLAGS="$xorg_testset_save_CFLAGS"
14131fi
14132
14133found="no"
14134
14135	if test $found = "no" ; then
14136		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14137			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14138		fi
14139
14140		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14141			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14142		fi
14143
14144		CFLAGS="$CFLAGS -Wstrict-prototypes"
14145
14146		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
14147printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
14148		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
14149		if eval test \${$cacheid+y}
14150then :
14151  printf %s "(cached) " >&6
14152else $as_nop
14153  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14154/* end confdefs.h.  */
14155int i;
14156int
14157main (void)
14158{
14159
14160  ;
14161  return 0;
14162}
14163_ACEOF
14164if ac_fn_c_try_link "$LINENO"
14165then :
14166  eval $cacheid=yes
14167else $as_nop
14168  eval $cacheid=no
14169fi
14170rm -f core conftest.err conftest.$ac_objext conftest.beam \
14171    conftest$ac_exeext conftest.$ac_ext
14172fi
14173
14174
14175		CFLAGS="$xorg_testset_save_CFLAGS"
14176
14177		eval supported=\$$cacheid
14178		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14179printf "%s\n" "$supported" >&6; }
14180		if test "$supported" = "yes" ; then
14181			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
14182			found="yes"
14183		fi
14184	fi
14185
14186
14187
14188
14189
14190
14191
14192
14193
14194
14195
14196
14197
14198
14199
14200xorg_testset_save_CFLAGS="$CFLAGS"
14201
14202if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14203	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14204	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14205printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14206if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14207then :
14208  printf %s "(cached) " >&6
14209else $as_nop
14210  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14211/* end confdefs.h.  */
14212int i;
14213_ACEOF
14214if ac_fn_c_try_compile "$LINENO"
14215then :
14216  xorg_cv_cc_flag_unknown_warning_option=yes
14217else $as_nop
14218  xorg_cv_cc_flag_unknown_warning_option=no
14219fi
14220rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14221fi
14222{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14223printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14224	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14225	CFLAGS="$xorg_testset_save_CFLAGS"
14226fi
14227
14228if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14229	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14230		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14231	fi
14232	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14233	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14234printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14235if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14236then :
14237  printf %s "(cached) " >&6
14238else $as_nop
14239  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14240/* end confdefs.h.  */
14241int i;
14242_ACEOF
14243if ac_fn_c_try_compile "$LINENO"
14244then :
14245  xorg_cv_cc_flag_unused_command_line_argument=yes
14246else $as_nop
14247  xorg_cv_cc_flag_unused_command_line_argument=no
14248fi
14249rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14250fi
14251{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14252printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14253	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14254	CFLAGS="$xorg_testset_save_CFLAGS"
14255fi
14256
14257found="no"
14258
14259	if test $found = "no" ; then
14260		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14261			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14262		fi
14263
14264		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14265			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14266		fi
14267
14268		CFLAGS="$CFLAGS -Wmissing-prototypes"
14269
14270		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
14271printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
14272		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
14273		if eval test \${$cacheid+y}
14274then :
14275  printf %s "(cached) " >&6
14276else $as_nop
14277  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14278/* end confdefs.h.  */
14279int i;
14280int
14281main (void)
14282{
14283
14284  ;
14285  return 0;
14286}
14287_ACEOF
14288if ac_fn_c_try_link "$LINENO"
14289then :
14290  eval $cacheid=yes
14291else $as_nop
14292  eval $cacheid=no
14293fi
14294rm -f core conftest.err conftest.$ac_objext conftest.beam \
14295    conftest$ac_exeext conftest.$ac_ext
14296fi
14297
14298
14299		CFLAGS="$xorg_testset_save_CFLAGS"
14300
14301		eval supported=\$$cacheid
14302		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14303printf "%s\n" "$supported" >&6; }
14304		if test "$supported" = "yes" ; then
14305			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
14306			found="yes"
14307		fi
14308	fi
14309
14310
14311
14312
14313
14314
14315
14316
14317
14318
14319
14320
14321
14322
14323
14324xorg_testset_save_CFLAGS="$CFLAGS"
14325
14326if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14327	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14328	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14329printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14330if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14331then :
14332  printf %s "(cached) " >&6
14333else $as_nop
14334  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14335/* end confdefs.h.  */
14336int i;
14337_ACEOF
14338if ac_fn_c_try_compile "$LINENO"
14339then :
14340  xorg_cv_cc_flag_unknown_warning_option=yes
14341else $as_nop
14342  xorg_cv_cc_flag_unknown_warning_option=no
14343fi
14344rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14345fi
14346{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14347printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14348	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14349	CFLAGS="$xorg_testset_save_CFLAGS"
14350fi
14351
14352if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14353	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14354		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14355	fi
14356	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14357	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14358printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14359if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14360then :
14361  printf %s "(cached) " >&6
14362else $as_nop
14363  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14364/* end confdefs.h.  */
14365int i;
14366_ACEOF
14367if ac_fn_c_try_compile "$LINENO"
14368then :
14369  xorg_cv_cc_flag_unused_command_line_argument=yes
14370else $as_nop
14371  xorg_cv_cc_flag_unused_command_line_argument=no
14372fi
14373rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14374fi
14375{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14376printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14377	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14378	CFLAGS="$xorg_testset_save_CFLAGS"
14379fi
14380
14381found="no"
14382
14383	if test $found = "no" ; then
14384		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14385			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14386		fi
14387
14388		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14389			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14390		fi
14391
14392		CFLAGS="$CFLAGS -Wnested-externs"
14393
14394		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
14395printf %s "checking if $CC supports -Wnested-externs... " >&6; }
14396		cacheid=xorg_cv_cc_flag__Wnested_externs
14397		if eval test \${$cacheid+y}
14398then :
14399  printf %s "(cached) " >&6
14400else $as_nop
14401  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14402/* end confdefs.h.  */
14403int i;
14404int
14405main (void)
14406{
14407
14408  ;
14409  return 0;
14410}
14411_ACEOF
14412if ac_fn_c_try_link "$LINENO"
14413then :
14414  eval $cacheid=yes
14415else $as_nop
14416  eval $cacheid=no
14417fi
14418rm -f core conftest.err conftest.$ac_objext conftest.beam \
14419    conftest$ac_exeext conftest.$ac_ext
14420fi
14421
14422
14423		CFLAGS="$xorg_testset_save_CFLAGS"
14424
14425		eval supported=\$$cacheid
14426		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14427printf "%s\n" "$supported" >&6; }
14428		if test "$supported" = "yes" ; then
14429			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
14430			found="yes"
14431		fi
14432	fi
14433
14434
14435
14436
14437
14438
14439
14440
14441
14442
14443
14444
14445
14446
14447
14448xorg_testset_save_CFLAGS="$CFLAGS"
14449
14450if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14451	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14452	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14453printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14454if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14455then :
14456  printf %s "(cached) " >&6
14457else $as_nop
14458  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14459/* end confdefs.h.  */
14460int i;
14461_ACEOF
14462if ac_fn_c_try_compile "$LINENO"
14463then :
14464  xorg_cv_cc_flag_unknown_warning_option=yes
14465else $as_nop
14466  xorg_cv_cc_flag_unknown_warning_option=no
14467fi
14468rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14469fi
14470{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14471printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14472	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14473	CFLAGS="$xorg_testset_save_CFLAGS"
14474fi
14475
14476if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14477	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14478		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14479	fi
14480	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14481	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14482printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14483if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14484then :
14485  printf %s "(cached) " >&6
14486else $as_nop
14487  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14488/* end confdefs.h.  */
14489int i;
14490_ACEOF
14491if ac_fn_c_try_compile "$LINENO"
14492then :
14493  xorg_cv_cc_flag_unused_command_line_argument=yes
14494else $as_nop
14495  xorg_cv_cc_flag_unused_command_line_argument=no
14496fi
14497rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14498fi
14499{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14500printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14501	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14502	CFLAGS="$xorg_testset_save_CFLAGS"
14503fi
14504
14505found="no"
14506
14507	if test $found = "no" ; then
14508		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14509			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14510		fi
14511
14512		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14513			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14514		fi
14515
14516		CFLAGS="$CFLAGS -Wbad-function-cast"
14517
14518		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
14519printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
14520		cacheid=xorg_cv_cc_flag__Wbad_function_cast
14521		if eval test \${$cacheid+y}
14522then :
14523  printf %s "(cached) " >&6
14524else $as_nop
14525  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14526/* end confdefs.h.  */
14527int i;
14528int
14529main (void)
14530{
14531
14532  ;
14533  return 0;
14534}
14535_ACEOF
14536if ac_fn_c_try_link "$LINENO"
14537then :
14538  eval $cacheid=yes
14539else $as_nop
14540  eval $cacheid=no
14541fi
14542rm -f core conftest.err conftest.$ac_objext conftest.beam \
14543    conftest$ac_exeext conftest.$ac_ext
14544fi
14545
14546
14547		CFLAGS="$xorg_testset_save_CFLAGS"
14548
14549		eval supported=\$$cacheid
14550		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14551printf "%s\n" "$supported" >&6; }
14552		if test "$supported" = "yes" ; then
14553			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
14554			found="yes"
14555		fi
14556	fi
14557
14558
14559
14560
14561
14562
14563
14564
14565
14566
14567
14568
14569
14570
14571
14572xorg_testset_save_CFLAGS="$CFLAGS"
14573
14574if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14575	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14576	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14577printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14578if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14579then :
14580  printf %s "(cached) " >&6
14581else $as_nop
14582  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14583/* end confdefs.h.  */
14584int i;
14585_ACEOF
14586if ac_fn_c_try_compile "$LINENO"
14587then :
14588  xorg_cv_cc_flag_unknown_warning_option=yes
14589else $as_nop
14590  xorg_cv_cc_flag_unknown_warning_option=no
14591fi
14592rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14593fi
14594{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14595printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14596	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14597	CFLAGS="$xorg_testset_save_CFLAGS"
14598fi
14599
14600if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14601	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14602		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14603	fi
14604	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14605	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14606printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14607if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14608then :
14609  printf %s "(cached) " >&6
14610else $as_nop
14611  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14612/* end confdefs.h.  */
14613int i;
14614_ACEOF
14615if ac_fn_c_try_compile "$LINENO"
14616then :
14617  xorg_cv_cc_flag_unused_command_line_argument=yes
14618else $as_nop
14619  xorg_cv_cc_flag_unused_command_line_argument=no
14620fi
14621rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14622fi
14623{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14624printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14625	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14626	CFLAGS="$xorg_testset_save_CFLAGS"
14627fi
14628
14629found="no"
14630
14631	if test $found = "no" ; then
14632		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14633			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14634		fi
14635
14636		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14637			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14638		fi
14639
14640		CFLAGS="$CFLAGS -Wold-style-definition"
14641
14642		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
14643printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
14644		cacheid=xorg_cv_cc_flag__Wold_style_definition
14645		if eval test \${$cacheid+y}
14646then :
14647  printf %s "(cached) " >&6
14648else $as_nop
14649  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14650/* end confdefs.h.  */
14651int i;
14652int
14653main (void)
14654{
14655
14656  ;
14657  return 0;
14658}
14659_ACEOF
14660if ac_fn_c_try_link "$LINENO"
14661then :
14662  eval $cacheid=yes
14663else $as_nop
14664  eval $cacheid=no
14665fi
14666rm -f core conftest.err conftest.$ac_objext conftest.beam \
14667    conftest$ac_exeext conftest.$ac_ext
14668fi
14669
14670
14671		CFLAGS="$xorg_testset_save_CFLAGS"
14672
14673		eval supported=\$$cacheid
14674		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14675printf "%s\n" "$supported" >&6; }
14676		if test "$supported" = "yes" ; then
14677			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
14678			found="yes"
14679		fi
14680	fi
14681
14682	if test $found = "no" ; then
14683		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14684			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14685		fi
14686
14687		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14688			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14689		fi
14690
14691		CFLAGS="$CFLAGS -fd"
14692
14693		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
14694printf %s "checking if $CC supports -fd... " >&6; }
14695		cacheid=xorg_cv_cc_flag__fd
14696		if eval test \${$cacheid+y}
14697then :
14698  printf %s "(cached) " >&6
14699else $as_nop
14700  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14701/* end confdefs.h.  */
14702int i;
14703int
14704main (void)
14705{
14706
14707  ;
14708  return 0;
14709}
14710_ACEOF
14711if ac_fn_c_try_link "$LINENO"
14712then :
14713  eval $cacheid=yes
14714else $as_nop
14715  eval $cacheid=no
14716fi
14717rm -f core conftest.err conftest.$ac_objext conftest.beam \
14718    conftest$ac_exeext conftest.$ac_ext
14719fi
14720
14721
14722		CFLAGS="$xorg_testset_save_CFLAGS"
14723
14724		eval supported=\$$cacheid
14725		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14726printf "%s\n" "$supported" >&6; }
14727		if test "$supported" = "yes" ; then
14728			BASE_CFLAGS="$BASE_CFLAGS -fd"
14729			found="yes"
14730		fi
14731	fi
14732
14733
14734
14735
14736
14737
14738
14739
14740
14741
14742
14743
14744
14745
14746
14747xorg_testset_save_CFLAGS="$CFLAGS"
14748
14749if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14750	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14751	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14752printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14753if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14754then :
14755  printf %s "(cached) " >&6
14756else $as_nop
14757  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14758/* end confdefs.h.  */
14759int i;
14760_ACEOF
14761if ac_fn_c_try_compile "$LINENO"
14762then :
14763  xorg_cv_cc_flag_unknown_warning_option=yes
14764else $as_nop
14765  xorg_cv_cc_flag_unknown_warning_option=no
14766fi
14767rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14768fi
14769{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14770printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14771	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14772	CFLAGS="$xorg_testset_save_CFLAGS"
14773fi
14774
14775if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14776	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14777		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14778	fi
14779	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14780	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14781printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14782if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14783then :
14784  printf %s "(cached) " >&6
14785else $as_nop
14786  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14787/* end confdefs.h.  */
14788int i;
14789_ACEOF
14790if ac_fn_c_try_compile "$LINENO"
14791then :
14792  xorg_cv_cc_flag_unused_command_line_argument=yes
14793else $as_nop
14794  xorg_cv_cc_flag_unused_command_line_argument=no
14795fi
14796rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14797fi
14798{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14799printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14800	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14801	CFLAGS="$xorg_testset_save_CFLAGS"
14802fi
14803
14804found="no"
14805
14806	if test $found = "no" ; then
14807		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14808			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14809		fi
14810
14811		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14812			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14813		fi
14814
14815		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
14816
14817		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
14818printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
14819		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
14820		if eval test \${$cacheid+y}
14821then :
14822  printf %s "(cached) " >&6
14823else $as_nop
14824  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14825/* end confdefs.h.  */
14826int i;
14827int
14828main (void)
14829{
14830
14831  ;
14832  return 0;
14833}
14834_ACEOF
14835if ac_fn_c_try_link "$LINENO"
14836then :
14837  eval $cacheid=yes
14838else $as_nop
14839  eval $cacheid=no
14840fi
14841rm -f core conftest.err conftest.$ac_objext conftest.beam \
14842    conftest$ac_exeext conftest.$ac_ext
14843fi
14844
14845
14846		CFLAGS="$xorg_testset_save_CFLAGS"
14847
14848		eval supported=\$$cacheid
14849		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14850printf "%s\n" "$supported" >&6; }
14851		if test "$supported" = "yes" ; then
14852			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
14853			found="yes"
14854		fi
14855	fi
14856
14857
14858
14859
14860
14861# This chunk adds additional warnings that could catch undesired effects.
14862
14863
14864
14865
14866
14867
14868
14869
14870
14871
14872
14873
14874
14875xorg_testset_save_CFLAGS="$CFLAGS"
14876
14877if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14878	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14879	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14880printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14881if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14882then :
14883  printf %s "(cached) " >&6
14884else $as_nop
14885  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14886/* end confdefs.h.  */
14887int i;
14888_ACEOF
14889if ac_fn_c_try_compile "$LINENO"
14890then :
14891  xorg_cv_cc_flag_unknown_warning_option=yes
14892else $as_nop
14893  xorg_cv_cc_flag_unknown_warning_option=no
14894fi
14895rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14896fi
14897{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14898printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14899	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14900	CFLAGS="$xorg_testset_save_CFLAGS"
14901fi
14902
14903if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14904	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14905		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14906	fi
14907	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14908	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14909printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14910if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14911then :
14912  printf %s "(cached) " >&6
14913else $as_nop
14914  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14915/* end confdefs.h.  */
14916int i;
14917_ACEOF
14918if ac_fn_c_try_compile "$LINENO"
14919then :
14920  xorg_cv_cc_flag_unused_command_line_argument=yes
14921else $as_nop
14922  xorg_cv_cc_flag_unused_command_line_argument=no
14923fi
14924rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14925fi
14926{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14927printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14928	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14929	CFLAGS="$xorg_testset_save_CFLAGS"
14930fi
14931
14932found="no"
14933
14934	if test $found = "no" ; then
14935		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14936			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14937		fi
14938
14939		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14940			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14941		fi
14942
14943		CFLAGS="$CFLAGS -Wunused"
14944
14945		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
14946printf %s "checking if $CC supports -Wunused... " >&6; }
14947		cacheid=xorg_cv_cc_flag__Wunused
14948		if eval test \${$cacheid+y}
14949then :
14950  printf %s "(cached) " >&6
14951else $as_nop
14952  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14953/* end confdefs.h.  */
14954int i;
14955int
14956main (void)
14957{
14958
14959  ;
14960  return 0;
14961}
14962_ACEOF
14963if ac_fn_c_try_link "$LINENO"
14964then :
14965  eval $cacheid=yes
14966else $as_nop
14967  eval $cacheid=no
14968fi
14969rm -f core conftest.err conftest.$ac_objext conftest.beam \
14970    conftest$ac_exeext conftest.$ac_ext
14971fi
14972
14973
14974		CFLAGS="$xorg_testset_save_CFLAGS"
14975
14976		eval supported=\$$cacheid
14977		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14978printf "%s\n" "$supported" >&6; }
14979		if test "$supported" = "yes" ; then
14980			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
14981			found="yes"
14982		fi
14983	fi
14984
14985
14986
14987
14988
14989
14990
14991
14992
14993
14994
14995
14996
14997
14998
14999xorg_testset_save_CFLAGS="$CFLAGS"
15000
15001if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15002	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15003	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15004printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15005if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15006then :
15007  printf %s "(cached) " >&6
15008else $as_nop
15009  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15010/* end confdefs.h.  */
15011int i;
15012_ACEOF
15013if ac_fn_c_try_compile "$LINENO"
15014then :
15015  xorg_cv_cc_flag_unknown_warning_option=yes
15016else $as_nop
15017  xorg_cv_cc_flag_unknown_warning_option=no
15018fi
15019rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15020fi
15021{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15022printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15023	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15024	CFLAGS="$xorg_testset_save_CFLAGS"
15025fi
15026
15027if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15028	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15029		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15030	fi
15031	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15032	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15033printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15034if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15035then :
15036  printf %s "(cached) " >&6
15037else $as_nop
15038  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15039/* end confdefs.h.  */
15040int i;
15041_ACEOF
15042if ac_fn_c_try_compile "$LINENO"
15043then :
15044  xorg_cv_cc_flag_unused_command_line_argument=yes
15045else $as_nop
15046  xorg_cv_cc_flag_unused_command_line_argument=no
15047fi
15048rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15049fi
15050{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15051printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15052	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15053	CFLAGS="$xorg_testset_save_CFLAGS"
15054fi
15055
15056found="no"
15057
15058	if test $found = "no" ; then
15059		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15060			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15061		fi
15062
15063		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15064			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15065		fi
15066
15067		CFLAGS="$CFLAGS -Wuninitialized"
15068
15069		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
15070printf %s "checking if $CC supports -Wuninitialized... " >&6; }
15071		cacheid=xorg_cv_cc_flag__Wuninitialized
15072		if eval test \${$cacheid+y}
15073then :
15074  printf %s "(cached) " >&6
15075else $as_nop
15076  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15077/* end confdefs.h.  */
15078int i;
15079int
15080main (void)
15081{
15082
15083  ;
15084  return 0;
15085}
15086_ACEOF
15087if ac_fn_c_try_link "$LINENO"
15088then :
15089  eval $cacheid=yes
15090else $as_nop
15091  eval $cacheid=no
15092fi
15093rm -f core conftest.err conftest.$ac_objext conftest.beam \
15094    conftest$ac_exeext conftest.$ac_ext
15095fi
15096
15097
15098		CFLAGS="$xorg_testset_save_CFLAGS"
15099
15100		eval supported=\$$cacheid
15101		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15102printf "%s\n" "$supported" >&6; }
15103		if test "$supported" = "yes" ; then
15104			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
15105			found="yes"
15106		fi
15107	fi
15108
15109
15110
15111
15112
15113
15114
15115
15116
15117
15118
15119
15120
15121
15122
15123xorg_testset_save_CFLAGS="$CFLAGS"
15124
15125if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15126	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15127	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15128printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15129if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15130then :
15131  printf %s "(cached) " >&6
15132else $as_nop
15133  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15134/* end confdefs.h.  */
15135int i;
15136_ACEOF
15137if ac_fn_c_try_compile "$LINENO"
15138then :
15139  xorg_cv_cc_flag_unknown_warning_option=yes
15140else $as_nop
15141  xorg_cv_cc_flag_unknown_warning_option=no
15142fi
15143rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15144fi
15145{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15146printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15147	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15148	CFLAGS="$xorg_testset_save_CFLAGS"
15149fi
15150
15151if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15152	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15153		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15154	fi
15155	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15156	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15157printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15158if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15159then :
15160  printf %s "(cached) " >&6
15161else $as_nop
15162  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15163/* end confdefs.h.  */
15164int i;
15165_ACEOF
15166if ac_fn_c_try_compile "$LINENO"
15167then :
15168  xorg_cv_cc_flag_unused_command_line_argument=yes
15169else $as_nop
15170  xorg_cv_cc_flag_unused_command_line_argument=no
15171fi
15172rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15173fi
15174{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15175printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15176	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15177	CFLAGS="$xorg_testset_save_CFLAGS"
15178fi
15179
15180found="no"
15181
15182	if test $found = "no" ; then
15183		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15184			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15185		fi
15186
15187		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15188			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15189		fi
15190
15191		CFLAGS="$CFLAGS -Wshadow"
15192
15193		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
15194printf %s "checking if $CC supports -Wshadow... " >&6; }
15195		cacheid=xorg_cv_cc_flag__Wshadow
15196		if eval test \${$cacheid+y}
15197then :
15198  printf %s "(cached) " >&6
15199else $as_nop
15200  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15201/* end confdefs.h.  */
15202int i;
15203int
15204main (void)
15205{
15206
15207  ;
15208  return 0;
15209}
15210_ACEOF
15211if ac_fn_c_try_link "$LINENO"
15212then :
15213  eval $cacheid=yes
15214else $as_nop
15215  eval $cacheid=no
15216fi
15217rm -f core conftest.err conftest.$ac_objext conftest.beam \
15218    conftest$ac_exeext conftest.$ac_ext
15219fi
15220
15221
15222		CFLAGS="$xorg_testset_save_CFLAGS"
15223
15224		eval supported=\$$cacheid
15225		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15226printf "%s\n" "$supported" >&6; }
15227		if test "$supported" = "yes" ; then
15228			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
15229			found="yes"
15230		fi
15231	fi
15232
15233
15234
15235
15236
15237
15238
15239
15240
15241
15242
15243
15244
15245
15246
15247xorg_testset_save_CFLAGS="$CFLAGS"
15248
15249if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15250	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15251	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15252printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15253if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15254then :
15255  printf %s "(cached) " >&6
15256else $as_nop
15257  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15258/* end confdefs.h.  */
15259int i;
15260_ACEOF
15261if ac_fn_c_try_compile "$LINENO"
15262then :
15263  xorg_cv_cc_flag_unknown_warning_option=yes
15264else $as_nop
15265  xorg_cv_cc_flag_unknown_warning_option=no
15266fi
15267rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15268fi
15269{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15270printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15271	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15272	CFLAGS="$xorg_testset_save_CFLAGS"
15273fi
15274
15275if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15276	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15277		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15278	fi
15279	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15280	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15281printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15282if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15283then :
15284  printf %s "(cached) " >&6
15285else $as_nop
15286  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15287/* end confdefs.h.  */
15288int i;
15289_ACEOF
15290if ac_fn_c_try_compile "$LINENO"
15291then :
15292  xorg_cv_cc_flag_unused_command_line_argument=yes
15293else $as_nop
15294  xorg_cv_cc_flag_unused_command_line_argument=no
15295fi
15296rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15297fi
15298{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15299printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15300	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15301	CFLAGS="$xorg_testset_save_CFLAGS"
15302fi
15303
15304found="no"
15305
15306	if test $found = "no" ; then
15307		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15308			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15309		fi
15310
15311		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15312			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15313		fi
15314
15315		CFLAGS="$CFLAGS -Wmissing-noreturn"
15316
15317		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
15318printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
15319		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
15320		if eval test \${$cacheid+y}
15321then :
15322  printf %s "(cached) " >&6
15323else $as_nop
15324  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15325/* end confdefs.h.  */
15326int i;
15327int
15328main (void)
15329{
15330
15331  ;
15332  return 0;
15333}
15334_ACEOF
15335if ac_fn_c_try_link "$LINENO"
15336then :
15337  eval $cacheid=yes
15338else $as_nop
15339  eval $cacheid=no
15340fi
15341rm -f core conftest.err conftest.$ac_objext conftest.beam \
15342    conftest$ac_exeext conftest.$ac_ext
15343fi
15344
15345
15346		CFLAGS="$xorg_testset_save_CFLAGS"
15347
15348		eval supported=\$$cacheid
15349		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15350printf "%s\n" "$supported" >&6; }
15351		if test "$supported" = "yes" ; then
15352			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
15353			found="yes"
15354		fi
15355	fi
15356
15357
15358
15359
15360
15361
15362
15363
15364
15365
15366
15367
15368
15369
15370
15371xorg_testset_save_CFLAGS="$CFLAGS"
15372
15373if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15374	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15375	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15376printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15377if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15378then :
15379  printf %s "(cached) " >&6
15380else $as_nop
15381  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15382/* end confdefs.h.  */
15383int i;
15384_ACEOF
15385if ac_fn_c_try_compile "$LINENO"
15386then :
15387  xorg_cv_cc_flag_unknown_warning_option=yes
15388else $as_nop
15389  xorg_cv_cc_flag_unknown_warning_option=no
15390fi
15391rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15392fi
15393{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15394printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15395	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15396	CFLAGS="$xorg_testset_save_CFLAGS"
15397fi
15398
15399if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15400	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15401		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15402	fi
15403	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15404	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15405printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15406if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15407then :
15408  printf %s "(cached) " >&6
15409else $as_nop
15410  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15411/* end confdefs.h.  */
15412int i;
15413_ACEOF
15414if ac_fn_c_try_compile "$LINENO"
15415then :
15416  xorg_cv_cc_flag_unused_command_line_argument=yes
15417else $as_nop
15418  xorg_cv_cc_flag_unused_command_line_argument=no
15419fi
15420rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15421fi
15422{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15423printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15424	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15425	CFLAGS="$xorg_testset_save_CFLAGS"
15426fi
15427
15428found="no"
15429
15430	if test $found = "no" ; then
15431		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15432			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15433		fi
15434
15435		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15436			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15437		fi
15438
15439		CFLAGS="$CFLAGS -Wmissing-format-attribute"
15440
15441		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
15442printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
15443		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
15444		if eval test \${$cacheid+y}
15445then :
15446  printf %s "(cached) " >&6
15447else $as_nop
15448  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15449/* end confdefs.h.  */
15450int i;
15451int
15452main (void)
15453{
15454
15455  ;
15456  return 0;
15457}
15458_ACEOF
15459if ac_fn_c_try_link "$LINENO"
15460then :
15461  eval $cacheid=yes
15462else $as_nop
15463  eval $cacheid=no
15464fi
15465rm -f core conftest.err conftest.$ac_objext conftest.beam \
15466    conftest$ac_exeext conftest.$ac_ext
15467fi
15468
15469
15470		CFLAGS="$xorg_testset_save_CFLAGS"
15471
15472		eval supported=\$$cacheid
15473		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15474printf "%s\n" "$supported" >&6; }
15475		if test "$supported" = "yes" ; then
15476			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
15477			found="yes"
15478		fi
15479	fi
15480
15481
15482
15483
15484
15485
15486
15487
15488
15489
15490
15491
15492
15493
15494
15495xorg_testset_save_CFLAGS="$CFLAGS"
15496
15497if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15498	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15499	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15500printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15501if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15502then :
15503  printf %s "(cached) " >&6
15504else $as_nop
15505  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15506/* end confdefs.h.  */
15507int i;
15508_ACEOF
15509if ac_fn_c_try_compile "$LINENO"
15510then :
15511  xorg_cv_cc_flag_unknown_warning_option=yes
15512else $as_nop
15513  xorg_cv_cc_flag_unknown_warning_option=no
15514fi
15515rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15516fi
15517{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15518printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15519	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15520	CFLAGS="$xorg_testset_save_CFLAGS"
15521fi
15522
15523if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15524	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15525		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15526	fi
15527	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15528	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15529printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15530if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15531then :
15532  printf %s "(cached) " >&6
15533else $as_nop
15534  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15535/* end confdefs.h.  */
15536int i;
15537_ACEOF
15538if ac_fn_c_try_compile "$LINENO"
15539then :
15540  xorg_cv_cc_flag_unused_command_line_argument=yes
15541else $as_nop
15542  xorg_cv_cc_flag_unused_command_line_argument=no
15543fi
15544rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15545fi
15546{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15547printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15548	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15549	CFLAGS="$xorg_testset_save_CFLAGS"
15550fi
15551
15552found="no"
15553
15554	if test $found = "no" ; then
15555		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15556			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15557		fi
15558
15559		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15560			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15561		fi
15562
15563		CFLAGS="$CFLAGS -Wredundant-decls"
15564
15565		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
15566printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
15567		cacheid=xorg_cv_cc_flag__Wredundant_decls
15568		if eval test \${$cacheid+y}
15569then :
15570  printf %s "(cached) " >&6
15571else $as_nop
15572  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15573/* end confdefs.h.  */
15574int i;
15575int
15576main (void)
15577{
15578
15579  ;
15580  return 0;
15581}
15582_ACEOF
15583if ac_fn_c_try_link "$LINENO"
15584then :
15585  eval $cacheid=yes
15586else $as_nop
15587  eval $cacheid=no
15588fi
15589rm -f core conftest.err conftest.$ac_objext conftest.beam \
15590    conftest$ac_exeext conftest.$ac_ext
15591fi
15592
15593
15594		CFLAGS="$xorg_testset_save_CFLAGS"
15595
15596		eval supported=\$$cacheid
15597		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15598printf "%s\n" "$supported" >&6; }
15599		if test "$supported" = "yes" ; then
15600			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
15601			found="yes"
15602		fi
15603	fi
15604
15605
15606
15607
15608
15609
15610
15611
15612
15613
15614
15615
15616
15617
15618
15619xorg_testset_save_CFLAGS="$CFLAGS"
15620
15621if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15622	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15623	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15624printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15625if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15626then :
15627  printf %s "(cached) " >&6
15628else $as_nop
15629  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15630/* end confdefs.h.  */
15631int i;
15632_ACEOF
15633if ac_fn_c_try_compile "$LINENO"
15634then :
15635  xorg_cv_cc_flag_unknown_warning_option=yes
15636else $as_nop
15637  xorg_cv_cc_flag_unknown_warning_option=no
15638fi
15639rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15640fi
15641{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15642printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15643	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15644	CFLAGS="$xorg_testset_save_CFLAGS"
15645fi
15646
15647if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15648	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15649		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15650	fi
15651	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15652	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15653printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15654if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15655then :
15656  printf %s "(cached) " >&6
15657else $as_nop
15658  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15659/* end confdefs.h.  */
15660int i;
15661_ACEOF
15662if ac_fn_c_try_compile "$LINENO"
15663then :
15664  xorg_cv_cc_flag_unused_command_line_argument=yes
15665else $as_nop
15666  xorg_cv_cc_flag_unused_command_line_argument=no
15667fi
15668rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15669fi
15670{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15671printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15672	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15673	CFLAGS="$xorg_testset_save_CFLAGS"
15674fi
15675
15676found="no"
15677
15678	if test $found = "no" ; then
15679		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15680			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15681		fi
15682
15683		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15684			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15685		fi
15686
15687		CFLAGS="$CFLAGS -Wlogical-op"
15688
15689		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
15690printf %s "checking if $CC supports -Wlogical-op... " >&6; }
15691		cacheid=xorg_cv_cc_flag__Wlogical_op
15692		if eval test \${$cacheid+y}
15693then :
15694  printf %s "(cached) " >&6
15695else $as_nop
15696  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15697/* end confdefs.h.  */
15698int i;
15699int
15700main (void)
15701{
15702
15703  ;
15704  return 0;
15705}
15706_ACEOF
15707if ac_fn_c_try_link "$LINENO"
15708then :
15709  eval $cacheid=yes
15710else $as_nop
15711  eval $cacheid=no
15712fi
15713rm -f core conftest.err conftest.$ac_objext conftest.beam \
15714    conftest$ac_exeext conftest.$ac_ext
15715fi
15716
15717
15718		CFLAGS="$xorg_testset_save_CFLAGS"
15719
15720		eval supported=\$$cacheid
15721		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15722printf "%s\n" "$supported" >&6; }
15723		if test "$supported" = "yes" ; then
15724			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
15725			found="yes"
15726		fi
15727	fi
15728
15729
15730
15731# These are currently disabled because they are noisy.  They will be enabled
15732# in the future once the codebase is sufficiently modernized to silence
15733# them.  For now, I don't want them to drown out the other warnings.
15734# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
15735# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
15736# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
15737
15738# Turn some warnings into errors, so we don't accidently get successful builds
15739# when there are problems that should be fixed.
15740
15741if test "x$SELECTIVE_WERROR" = "xyes" ; then
15742
15743
15744
15745
15746
15747
15748
15749
15750
15751
15752
15753
15754
15755xorg_testset_save_CFLAGS="$CFLAGS"
15756
15757if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15758	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15759	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15760printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15761if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15762then :
15763  printf %s "(cached) " >&6
15764else $as_nop
15765  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15766/* end confdefs.h.  */
15767int i;
15768_ACEOF
15769if ac_fn_c_try_compile "$LINENO"
15770then :
15771  xorg_cv_cc_flag_unknown_warning_option=yes
15772else $as_nop
15773  xorg_cv_cc_flag_unknown_warning_option=no
15774fi
15775rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15776fi
15777{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15778printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15779	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15780	CFLAGS="$xorg_testset_save_CFLAGS"
15781fi
15782
15783if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15784	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15785		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15786	fi
15787	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15788	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15789printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15790if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15791then :
15792  printf %s "(cached) " >&6
15793else $as_nop
15794  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15795/* end confdefs.h.  */
15796int i;
15797_ACEOF
15798if ac_fn_c_try_compile "$LINENO"
15799then :
15800  xorg_cv_cc_flag_unused_command_line_argument=yes
15801else $as_nop
15802  xorg_cv_cc_flag_unused_command_line_argument=no
15803fi
15804rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15805fi
15806{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15807printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15808	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15809	CFLAGS="$xorg_testset_save_CFLAGS"
15810fi
15811
15812found="no"
15813
15814	if test $found = "no" ; then
15815		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15816			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15817		fi
15818
15819		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15820			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15821		fi
15822
15823		CFLAGS="$CFLAGS -Werror=implicit"
15824
15825		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
15826printf %s "checking if $CC supports -Werror=implicit... " >&6; }
15827		cacheid=xorg_cv_cc_flag__Werror_implicit
15828		if eval test \${$cacheid+y}
15829then :
15830  printf %s "(cached) " >&6
15831else $as_nop
15832  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15833/* end confdefs.h.  */
15834int i;
15835int
15836main (void)
15837{
15838
15839  ;
15840  return 0;
15841}
15842_ACEOF
15843if ac_fn_c_try_link "$LINENO"
15844then :
15845  eval $cacheid=yes
15846else $as_nop
15847  eval $cacheid=no
15848fi
15849rm -f core conftest.err conftest.$ac_objext conftest.beam \
15850    conftest$ac_exeext conftest.$ac_ext
15851fi
15852
15853
15854		CFLAGS="$xorg_testset_save_CFLAGS"
15855
15856		eval supported=\$$cacheid
15857		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15858printf "%s\n" "$supported" >&6; }
15859		if test "$supported" = "yes" ; then
15860			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
15861			found="yes"
15862		fi
15863	fi
15864
15865	if test $found = "no" ; then
15866		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15867			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15868		fi
15869
15870		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15871			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15872		fi
15873
15874		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15875
15876		{ 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
15877printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
15878		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
15879		if eval test \${$cacheid+y}
15880then :
15881  printf %s "(cached) " >&6
15882else $as_nop
15883  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15884/* end confdefs.h.  */
15885int i;
15886int
15887main (void)
15888{
15889
15890  ;
15891  return 0;
15892}
15893_ACEOF
15894if ac_fn_c_try_link "$LINENO"
15895then :
15896  eval $cacheid=yes
15897else $as_nop
15898  eval $cacheid=no
15899fi
15900rm -f core conftest.err conftest.$ac_objext conftest.beam \
15901    conftest$ac_exeext conftest.$ac_ext
15902fi
15903
15904
15905		CFLAGS="$xorg_testset_save_CFLAGS"
15906
15907		eval supported=\$$cacheid
15908		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15909printf "%s\n" "$supported" >&6; }
15910		if test "$supported" = "yes" ; then
15911			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15912			found="yes"
15913		fi
15914	fi
15915
15916
15917
15918
15919
15920
15921
15922
15923
15924
15925
15926
15927
15928
15929
15930xorg_testset_save_CFLAGS="$CFLAGS"
15931
15932if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15933	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15934	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15935printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15936if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15937then :
15938  printf %s "(cached) " >&6
15939else $as_nop
15940  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15941/* end confdefs.h.  */
15942int i;
15943_ACEOF
15944if ac_fn_c_try_compile "$LINENO"
15945then :
15946  xorg_cv_cc_flag_unknown_warning_option=yes
15947else $as_nop
15948  xorg_cv_cc_flag_unknown_warning_option=no
15949fi
15950rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15951fi
15952{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15953printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15954	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15955	CFLAGS="$xorg_testset_save_CFLAGS"
15956fi
15957
15958if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15959	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15960		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15961	fi
15962	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15963	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15964printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15965if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15966then :
15967  printf %s "(cached) " >&6
15968else $as_nop
15969  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15970/* end confdefs.h.  */
15971int i;
15972_ACEOF
15973if ac_fn_c_try_compile "$LINENO"
15974then :
15975  xorg_cv_cc_flag_unused_command_line_argument=yes
15976else $as_nop
15977  xorg_cv_cc_flag_unused_command_line_argument=no
15978fi
15979rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15980fi
15981{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15982printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15983	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15984	CFLAGS="$xorg_testset_save_CFLAGS"
15985fi
15986
15987found="no"
15988
15989	if test $found = "no" ; then
15990		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15991			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15992		fi
15993
15994		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15995			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15996		fi
15997
15998		CFLAGS="$CFLAGS -Werror=nonnull"
15999
16000		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
16001printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
16002		cacheid=xorg_cv_cc_flag__Werror_nonnull
16003		if eval test \${$cacheid+y}
16004then :
16005  printf %s "(cached) " >&6
16006else $as_nop
16007  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16008/* end confdefs.h.  */
16009int i;
16010int
16011main (void)
16012{
16013
16014  ;
16015  return 0;
16016}
16017_ACEOF
16018if ac_fn_c_try_link "$LINENO"
16019then :
16020  eval $cacheid=yes
16021else $as_nop
16022  eval $cacheid=no
16023fi
16024rm -f core conftest.err conftest.$ac_objext conftest.beam \
16025    conftest$ac_exeext conftest.$ac_ext
16026fi
16027
16028
16029		CFLAGS="$xorg_testset_save_CFLAGS"
16030
16031		eval supported=\$$cacheid
16032		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16033printf "%s\n" "$supported" >&6; }
16034		if test "$supported" = "yes" ; then
16035			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
16036			found="yes"
16037		fi
16038	fi
16039
16040
16041
16042
16043
16044
16045
16046
16047
16048
16049
16050
16051
16052
16053
16054xorg_testset_save_CFLAGS="$CFLAGS"
16055
16056if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16057	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16058	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16059printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16060if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16061then :
16062  printf %s "(cached) " >&6
16063else $as_nop
16064  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16065/* end confdefs.h.  */
16066int i;
16067_ACEOF
16068if ac_fn_c_try_compile "$LINENO"
16069then :
16070  xorg_cv_cc_flag_unknown_warning_option=yes
16071else $as_nop
16072  xorg_cv_cc_flag_unknown_warning_option=no
16073fi
16074rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16075fi
16076{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16077printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16078	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16079	CFLAGS="$xorg_testset_save_CFLAGS"
16080fi
16081
16082if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16083	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16084		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16085	fi
16086	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16087	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16088printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16089if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16090then :
16091  printf %s "(cached) " >&6
16092else $as_nop
16093  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16094/* end confdefs.h.  */
16095int i;
16096_ACEOF
16097if ac_fn_c_try_compile "$LINENO"
16098then :
16099  xorg_cv_cc_flag_unused_command_line_argument=yes
16100else $as_nop
16101  xorg_cv_cc_flag_unused_command_line_argument=no
16102fi
16103rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16104fi
16105{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16106printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16107	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16108	CFLAGS="$xorg_testset_save_CFLAGS"
16109fi
16110
16111found="no"
16112
16113	if test $found = "no" ; then
16114		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16115			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16116		fi
16117
16118		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16119			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16120		fi
16121
16122		CFLAGS="$CFLAGS -Werror=init-self"
16123
16124		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
16125printf %s "checking if $CC supports -Werror=init-self... " >&6; }
16126		cacheid=xorg_cv_cc_flag__Werror_init_self
16127		if eval test \${$cacheid+y}
16128then :
16129  printf %s "(cached) " >&6
16130else $as_nop
16131  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16132/* end confdefs.h.  */
16133int i;
16134int
16135main (void)
16136{
16137
16138  ;
16139  return 0;
16140}
16141_ACEOF
16142if ac_fn_c_try_link "$LINENO"
16143then :
16144  eval $cacheid=yes
16145else $as_nop
16146  eval $cacheid=no
16147fi
16148rm -f core conftest.err conftest.$ac_objext conftest.beam \
16149    conftest$ac_exeext conftest.$ac_ext
16150fi
16151
16152
16153		CFLAGS="$xorg_testset_save_CFLAGS"
16154
16155		eval supported=\$$cacheid
16156		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16157printf "%s\n" "$supported" >&6; }
16158		if test "$supported" = "yes" ; then
16159			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
16160			found="yes"
16161		fi
16162	fi
16163
16164
16165
16166
16167
16168
16169
16170
16171
16172
16173
16174
16175
16176
16177
16178xorg_testset_save_CFLAGS="$CFLAGS"
16179
16180if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16181	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16182	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16183printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16184if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16185then :
16186  printf %s "(cached) " >&6
16187else $as_nop
16188  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16189/* end confdefs.h.  */
16190int i;
16191_ACEOF
16192if ac_fn_c_try_compile "$LINENO"
16193then :
16194  xorg_cv_cc_flag_unknown_warning_option=yes
16195else $as_nop
16196  xorg_cv_cc_flag_unknown_warning_option=no
16197fi
16198rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16199fi
16200{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16201printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16202	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16203	CFLAGS="$xorg_testset_save_CFLAGS"
16204fi
16205
16206if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16207	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16208		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16209	fi
16210	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16211	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16212printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16213if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16214then :
16215  printf %s "(cached) " >&6
16216else $as_nop
16217  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16218/* end confdefs.h.  */
16219int i;
16220_ACEOF
16221if ac_fn_c_try_compile "$LINENO"
16222then :
16223  xorg_cv_cc_flag_unused_command_line_argument=yes
16224else $as_nop
16225  xorg_cv_cc_flag_unused_command_line_argument=no
16226fi
16227rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16228fi
16229{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16230printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16231	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16232	CFLAGS="$xorg_testset_save_CFLAGS"
16233fi
16234
16235found="no"
16236
16237	if test $found = "no" ; then
16238		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16239			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16240		fi
16241
16242		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16243			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16244		fi
16245
16246		CFLAGS="$CFLAGS -Werror=main"
16247
16248		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
16249printf %s "checking if $CC supports -Werror=main... " >&6; }
16250		cacheid=xorg_cv_cc_flag__Werror_main
16251		if eval test \${$cacheid+y}
16252then :
16253  printf %s "(cached) " >&6
16254else $as_nop
16255  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16256/* end confdefs.h.  */
16257int i;
16258int
16259main (void)
16260{
16261
16262  ;
16263  return 0;
16264}
16265_ACEOF
16266if ac_fn_c_try_link "$LINENO"
16267then :
16268  eval $cacheid=yes
16269else $as_nop
16270  eval $cacheid=no
16271fi
16272rm -f core conftest.err conftest.$ac_objext conftest.beam \
16273    conftest$ac_exeext conftest.$ac_ext
16274fi
16275
16276
16277		CFLAGS="$xorg_testset_save_CFLAGS"
16278
16279		eval supported=\$$cacheid
16280		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16281printf "%s\n" "$supported" >&6; }
16282		if test "$supported" = "yes" ; then
16283			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
16284			found="yes"
16285		fi
16286	fi
16287
16288
16289
16290
16291
16292
16293
16294
16295
16296
16297
16298
16299
16300
16301
16302xorg_testset_save_CFLAGS="$CFLAGS"
16303
16304if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16305	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16306	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16307printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16308if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16309then :
16310  printf %s "(cached) " >&6
16311else $as_nop
16312  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16313/* end confdefs.h.  */
16314int i;
16315_ACEOF
16316if ac_fn_c_try_compile "$LINENO"
16317then :
16318  xorg_cv_cc_flag_unknown_warning_option=yes
16319else $as_nop
16320  xorg_cv_cc_flag_unknown_warning_option=no
16321fi
16322rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16323fi
16324{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16325printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16326	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16327	CFLAGS="$xorg_testset_save_CFLAGS"
16328fi
16329
16330if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16331	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16332		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16333	fi
16334	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16335	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16336printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16337if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16338then :
16339  printf %s "(cached) " >&6
16340else $as_nop
16341  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16342/* end confdefs.h.  */
16343int i;
16344_ACEOF
16345if ac_fn_c_try_compile "$LINENO"
16346then :
16347  xorg_cv_cc_flag_unused_command_line_argument=yes
16348else $as_nop
16349  xorg_cv_cc_flag_unused_command_line_argument=no
16350fi
16351rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16352fi
16353{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16354printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16355	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16356	CFLAGS="$xorg_testset_save_CFLAGS"
16357fi
16358
16359found="no"
16360
16361	if test $found = "no" ; then
16362		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16363			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16364		fi
16365
16366		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16367			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16368		fi
16369
16370		CFLAGS="$CFLAGS -Werror=missing-braces"
16371
16372		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
16373printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
16374		cacheid=xorg_cv_cc_flag__Werror_missing_braces
16375		if eval test \${$cacheid+y}
16376then :
16377  printf %s "(cached) " >&6
16378else $as_nop
16379  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16380/* end confdefs.h.  */
16381int i;
16382int
16383main (void)
16384{
16385
16386  ;
16387  return 0;
16388}
16389_ACEOF
16390if ac_fn_c_try_link "$LINENO"
16391then :
16392  eval $cacheid=yes
16393else $as_nop
16394  eval $cacheid=no
16395fi
16396rm -f core conftest.err conftest.$ac_objext conftest.beam \
16397    conftest$ac_exeext conftest.$ac_ext
16398fi
16399
16400
16401		CFLAGS="$xorg_testset_save_CFLAGS"
16402
16403		eval supported=\$$cacheid
16404		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16405printf "%s\n" "$supported" >&6; }
16406		if test "$supported" = "yes" ; then
16407			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
16408			found="yes"
16409		fi
16410	fi
16411
16412
16413
16414
16415
16416
16417
16418
16419
16420
16421
16422
16423
16424
16425
16426xorg_testset_save_CFLAGS="$CFLAGS"
16427
16428if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16429	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16430	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16431printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16432if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16433then :
16434  printf %s "(cached) " >&6
16435else $as_nop
16436  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16437/* end confdefs.h.  */
16438int i;
16439_ACEOF
16440if ac_fn_c_try_compile "$LINENO"
16441then :
16442  xorg_cv_cc_flag_unknown_warning_option=yes
16443else $as_nop
16444  xorg_cv_cc_flag_unknown_warning_option=no
16445fi
16446rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16447fi
16448{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16449printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16450	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16451	CFLAGS="$xorg_testset_save_CFLAGS"
16452fi
16453
16454if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16455	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16456		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16457	fi
16458	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16459	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16460printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16461if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16462then :
16463  printf %s "(cached) " >&6
16464else $as_nop
16465  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16466/* end confdefs.h.  */
16467int i;
16468_ACEOF
16469if ac_fn_c_try_compile "$LINENO"
16470then :
16471  xorg_cv_cc_flag_unused_command_line_argument=yes
16472else $as_nop
16473  xorg_cv_cc_flag_unused_command_line_argument=no
16474fi
16475rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16476fi
16477{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16478printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16479	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16480	CFLAGS="$xorg_testset_save_CFLAGS"
16481fi
16482
16483found="no"
16484
16485	if test $found = "no" ; then
16486		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16487			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16488		fi
16489
16490		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16491			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16492		fi
16493
16494		CFLAGS="$CFLAGS -Werror=sequence-point"
16495
16496		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
16497printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
16498		cacheid=xorg_cv_cc_flag__Werror_sequence_point
16499		if eval test \${$cacheid+y}
16500then :
16501  printf %s "(cached) " >&6
16502else $as_nop
16503  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16504/* end confdefs.h.  */
16505int i;
16506int
16507main (void)
16508{
16509
16510  ;
16511  return 0;
16512}
16513_ACEOF
16514if ac_fn_c_try_link "$LINENO"
16515then :
16516  eval $cacheid=yes
16517else $as_nop
16518  eval $cacheid=no
16519fi
16520rm -f core conftest.err conftest.$ac_objext conftest.beam \
16521    conftest$ac_exeext conftest.$ac_ext
16522fi
16523
16524
16525		CFLAGS="$xorg_testset_save_CFLAGS"
16526
16527		eval supported=\$$cacheid
16528		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16529printf "%s\n" "$supported" >&6; }
16530		if test "$supported" = "yes" ; then
16531			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
16532			found="yes"
16533		fi
16534	fi
16535
16536
16537
16538
16539
16540
16541
16542
16543
16544
16545
16546
16547
16548
16549
16550xorg_testset_save_CFLAGS="$CFLAGS"
16551
16552if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16553	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16554	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16555printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16556if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16557then :
16558  printf %s "(cached) " >&6
16559else $as_nop
16560  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16561/* end confdefs.h.  */
16562int i;
16563_ACEOF
16564if ac_fn_c_try_compile "$LINENO"
16565then :
16566  xorg_cv_cc_flag_unknown_warning_option=yes
16567else $as_nop
16568  xorg_cv_cc_flag_unknown_warning_option=no
16569fi
16570rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16571fi
16572{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16573printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16574	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16575	CFLAGS="$xorg_testset_save_CFLAGS"
16576fi
16577
16578if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16579	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16580		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16581	fi
16582	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16583	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16584printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16585if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16586then :
16587  printf %s "(cached) " >&6
16588else $as_nop
16589  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16590/* end confdefs.h.  */
16591int i;
16592_ACEOF
16593if ac_fn_c_try_compile "$LINENO"
16594then :
16595  xorg_cv_cc_flag_unused_command_line_argument=yes
16596else $as_nop
16597  xorg_cv_cc_flag_unused_command_line_argument=no
16598fi
16599rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16600fi
16601{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16602printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16603	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16604	CFLAGS="$xorg_testset_save_CFLAGS"
16605fi
16606
16607found="no"
16608
16609	if test $found = "no" ; then
16610		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16611			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16612		fi
16613
16614		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16615			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16616		fi
16617
16618		CFLAGS="$CFLAGS -Werror=return-type"
16619
16620		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
16621printf %s "checking if $CC supports -Werror=return-type... " >&6; }
16622		cacheid=xorg_cv_cc_flag__Werror_return_type
16623		if eval test \${$cacheid+y}
16624then :
16625  printf %s "(cached) " >&6
16626else $as_nop
16627  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16628/* end confdefs.h.  */
16629int i;
16630int
16631main (void)
16632{
16633
16634  ;
16635  return 0;
16636}
16637_ACEOF
16638if ac_fn_c_try_link "$LINENO"
16639then :
16640  eval $cacheid=yes
16641else $as_nop
16642  eval $cacheid=no
16643fi
16644rm -f core conftest.err conftest.$ac_objext conftest.beam \
16645    conftest$ac_exeext conftest.$ac_ext
16646fi
16647
16648
16649		CFLAGS="$xorg_testset_save_CFLAGS"
16650
16651		eval supported=\$$cacheid
16652		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16653printf "%s\n" "$supported" >&6; }
16654		if test "$supported" = "yes" ; then
16655			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
16656			found="yes"
16657		fi
16658	fi
16659
16660	if test $found = "no" ; then
16661		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16662			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16663		fi
16664
16665		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16666			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16667		fi
16668
16669		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16670
16671		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
16672printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
16673		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
16674		if eval test \${$cacheid+y}
16675then :
16676  printf %s "(cached) " >&6
16677else $as_nop
16678  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16679/* end confdefs.h.  */
16680int i;
16681int
16682main (void)
16683{
16684
16685  ;
16686  return 0;
16687}
16688_ACEOF
16689if ac_fn_c_try_link "$LINENO"
16690then :
16691  eval $cacheid=yes
16692else $as_nop
16693  eval $cacheid=no
16694fi
16695rm -f core conftest.err conftest.$ac_objext conftest.beam \
16696    conftest$ac_exeext conftest.$ac_ext
16697fi
16698
16699
16700		CFLAGS="$xorg_testset_save_CFLAGS"
16701
16702		eval supported=\$$cacheid
16703		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16704printf "%s\n" "$supported" >&6; }
16705		if test "$supported" = "yes" ; then
16706			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16707			found="yes"
16708		fi
16709	fi
16710
16711
16712
16713
16714
16715
16716
16717
16718
16719
16720
16721
16722
16723
16724
16725xorg_testset_save_CFLAGS="$CFLAGS"
16726
16727if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16728	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16729	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16730printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16731if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16732then :
16733  printf %s "(cached) " >&6
16734else $as_nop
16735  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16736/* end confdefs.h.  */
16737int i;
16738_ACEOF
16739if ac_fn_c_try_compile "$LINENO"
16740then :
16741  xorg_cv_cc_flag_unknown_warning_option=yes
16742else $as_nop
16743  xorg_cv_cc_flag_unknown_warning_option=no
16744fi
16745rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16746fi
16747{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16748printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16749	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16750	CFLAGS="$xorg_testset_save_CFLAGS"
16751fi
16752
16753if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16754	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16755		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16756	fi
16757	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16758	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16759printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16760if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16761then :
16762  printf %s "(cached) " >&6
16763else $as_nop
16764  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16765/* end confdefs.h.  */
16766int i;
16767_ACEOF
16768if ac_fn_c_try_compile "$LINENO"
16769then :
16770  xorg_cv_cc_flag_unused_command_line_argument=yes
16771else $as_nop
16772  xorg_cv_cc_flag_unused_command_line_argument=no
16773fi
16774rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16775fi
16776{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16777printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16778	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16779	CFLAGS="$xorg_testset_save_CFLAGS"
16780fi
16781
16782found="no"
16783
16784	if test $found = "no" ; then
16785		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16786			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16787		fi
16788
16789		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16790			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16791		fi
16792
16793		CFLAGS="$CFLAGS -Werror=trigraphs"
16794
16795		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
16796printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
16797		cacheid=xorg_cv_cc_flag__Werror_trigraphs
16798		if eval test \${$cacheid+y}
16799then :
16800  printf %s "(cached) " >&6
16801else $as_nop
16802  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16803/* end confdefs.h.  */
16804int i;
16805int
16806main (void)
16807{
16808
16809  ;
16810  return 0;
16811}
16812_ACEOF
16813if ac_fn_c_try_link "$LINENO"
16814then :
16815  eval $cacheid=yes
16816else $as_nop
16817  eval $cacheid=no
16818fi
16819rm -f core conftest.err conftest.$ac_objext conftest.beam \
16820    conftest$ac_exeext conftest.$ac_ext
16821fi
16822
16823
16824		CFLAGS="$xorg_testset_save_CFLAGS"
16825
16826		eval supported=\$$cacheid
16827		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16828printf "%s\n" "$supported" >&6; }
16829		if test "$supported" = "yes" ; then
16830			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
16831			found="yes"
16832		fi
16833	fi
16834
16835
16836
16837
16838
16839
16840
16841
16842
16843
16844
16845
16846
16847
16848
16849xorg_testset_save_CFLAGS="$CFLAGS"
16850
16851if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16852	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16853	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16854printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16855if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16856then :
16857  printf %s "(cached) " >&6
16858else $as_nop
16859  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16860/* end confdefs.h.  */
16861int i;
16862_ACEOF
16863if ac_fn_c_try_compile "$LINENO"
16864then :
16865  xorg_cv_cc_flag_unknown_warning_option=yes
16866else $as_nop
16867  xorg_cv_cc_flag_unknown_warning_option=no
16868fi
16869rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16870fi
16871{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16872printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16873	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16874	CFLAGS="$xorg_testset_save_CFLAGS"
16875fi
16876
16877if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16878	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16879		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16880	fi
16881	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16882	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16883printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16884if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16885then :
16886  printf %s "(cached) " >&6
16887else $as_nop
16888  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16889/* end confdefs.h.  */
16890int i;
16891_ACEOF
16892if ac_fn_c_try_compile "$LINENO"
16893then :
16894  xorg_cv_cc_flag_unused_command_line_argument=yes
16895else $as_nop
16896  xorg_cv_cc_flag_unused_command_line_argument=no
16897fi
16898rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16899fi
16900{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16901printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16902	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16903	CFLAGS="$xorg_testset_save_CFLAGS"
16904fi
16905
16906found="no"
16907
16908	if test $found = "no" ; then
16909		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16910			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16911		fi
16912
16913		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16914			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16915		fi
16916
16917		CFLAGS="$CFLAGS -Werror=array-bounds"
16918
16919		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
16920printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
16921		cacheid=xorg_cv_cc_flag__Werror_array_bounds
16922		if eval test \${$cacheid+y}
16923then :
16924  printf %s "(cached) " >&6
16925else $as_nop
16926  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16927/* end confdefs.h.  */
16928int i;
16929int
16930main (void)
16931{
16932
16933  ;
16934  return 0;
16935}
16936_ACEOF
16937if ac_fn_c_try_link "$LINENO"
16938then :
16939  eval $cacheid=yes
16940else $as_nop
16941  eval $cacheid=no
16942fi
16943rm -f core conftest.err conftest.$ac_objext conftest.beam \
16944    conftest$ac_exeext conftest.$ac_ext
16945fi
16946
16947
16948		CFLAGS="$xorg_testset_save_CFLAGS"
16949
16950		eval supported=\$$cacheid
16951		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16952printf "%s\n" "$supported" >&6; }
16953		if test "$supported" = "yes" ; then
16954			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
16955			found="yes"
16956		fi
16957	fi
16958
16959
16960
16961
16962
16963
16964
16965
16966
16967
16968
16969
16970
16971
16972
16973xorg_testset_save_CFLAGS="$CFLAGS"
16974
16975if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16976	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16977	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16978printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16979if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16980then :
16981  printf %s "(cached) " >&6
16982else $as_nop
16983  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16984/* end confdefs.h.  */
16985int i;
16986_ACEOF
16987if ac_fn_c_try_compile "$LINENO"
16988then :
16989  xorg_cv_cc_flag_unknown_warning_option=yes
16990else $as_nop
16991  xorg_cv_cc_flag_unknown_warning_option=no
16992fi
16993rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16994fi
16995{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16996printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16997	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16998	CFLAGS="$xorg_testset_save_CFLAGS"
16999fi
17000
17001if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17002	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17003		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17004	fi
17005	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17006	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17007printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17008if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17009then :
17010  printf %s "(cached) " >&6
17011else $as_nop
17012  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17013/* end confdefs.h.  */
17014int i;
17015_ACEOF
17016if ac_fn_c_try_compile "$LINENO"
17017then :
17018  xorg_cv_cc_flag_unused_command_line_argument=yes
17019else $as_nop
17020  xorg_cv_cc_flag_unused_command_line_argument=no
17021fi
17022rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17023fi
17024{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17025printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17026	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17027	CFLAGS="$xorg_testset_save_CFLAGS"
17028fi
17029
17030found="no"
17031
17032	if test $found = "no" ; then
17033		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17034			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17035		fi
17036
17037		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17038			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17039		fi
17040
17041		CFLAGS="$CFLAGS -Werror=write-strings"
17042
17043		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
17044printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
17045		cacheid=xorg_cv_cc_flag__Werror_write_strings
17046		if eval test \${$cacheid+y}
17047then :
17048  printf %s "(cached) " >&6
17049else $as_nop
17050  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17051/* end confdefs.h.  */
17052int i;
17053int
17054main (void)
17055{
17056
17057  ;
17058  return 0;
17059}
17060_ACEOF
17061if ac_fn_c_try_link "$LINENO"
17062then :
17063  eval $cacheid=yes
17064else $as_nop
17065  eval $cacheid=no
17066fi
17067rm -f core conftest.err conftest.$ac_objext conftest.beam \
17068    conftest$ac_exeext conftest.$ac_ext
17069fi
17070
17071
17072		CFLAGS="$xorg_testset_save_CFLAGS"
17073
17074		eval supported=\$$cacheid
17075		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17076printf "%s\n" "$supported" >&6; }
17077		if test "$supported" = "yes" ; then
17078			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
17079			found="yes"
17080		fi
17081	fi
17082
17083
17084
17085
17086
17087
17088
17089
17090
17091
17092
17093
17094
17095
17096
17097xorg_testset_save_CFLAGS="$CFLAGS"
17098
17099if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17100	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17101	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17102printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17103if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17104then :
17105  printf %s "(cached) " >&6
17106else $as_nop
17107  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17108/* end confdefs.h.  */
17109int i;
17110_ACEOF
17111if ac_fn_c_try_compile "$LINENO"
17112then :
17113  xorg_cv_cc_flag_unknown_warning_option=yes
17114else $as_nop
17115  xorg_cv_cc_flag_unknown_warning_option=no
17116fi
17117rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17118fi
17119{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17120printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17121	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17122	CFLAGS="$xorg_testset_save_CFLAGS"
17123fi
17124
17125if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17126	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17127		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17128	fi
17129	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17130	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17131printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17132if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17133then :
17134  printf %s "(cached) " >&6
17135else $as_nop
17136  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17137/* end confdefs.h.  */
17138int i;
17139_ACEOF
17140if ac_fn_c_try_compile "$LINENO"
17141then :
17142  xorg_cv_cc_flag_unused_command_line_argument=yes
17143else $as_nop
17144  xorg_cv_cc_flag_unused_command_line_argument=no
17145fi
17146rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17147fi
17148{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17149printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17150	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17151	CFLAGS="$xorg_testset_save_CFLAGS"
17152fi
17153
17154found="no"
17155
17156	if test $found = "no" ; then
17157		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17158			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17159		fi
17160
17161		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17162			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17163		fi
17164
17165		CFLAGS="$CFLAGS -Werror=address"
17166
17167		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
17168printf %s "checking if $CC supports -Werror=address... " >&6; }
17169		cacheid=xorg_cv_cc_flag__Werror_address
17170		if eval test \${$cacheid+y}
17171then :
17172  printf %s "(cached) " >&6
17173else $as_nop
17174  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17175/* end confdefs.h.  */
17176int i;
17177int
17178main (void)
17179{
17180
17181  ;
17182  return 0;
17183}
17184_ACEOF
17185if ac_fn_c_try_link "$LINENO"
17186then :
17187  eval $cacheid=yes
17188else $as_nop
17189  eval $cacheid=no
17190fi
17191rm -f core conftest.err conftest.$ac_objext conftest.beam \
17192    conftest$ac_exeext conftest.$ac_ext
17193fi
17194
17195
17196		CFLAGS="$xorg_testset_save_CFLAGS"
17197
17198		eval supported=\$$cacheid
17199		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17200printf "%s\n" "$supported" >&6; }
17201		if test "$supported" = "yes" ; then
17202			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
17203			found="yes"
17204		fi
17205	fi
17206
17207
17208
17209
17210
17211
17212
17213
17214
17215
17216
17217
17218
17219
17220
17221xorg_testset_save_CFLAGS="$CFLAGS"
17222
17223if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17224	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17225	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17226printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17227if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17228then :
17229  printf %s "(cached) " >&6
17230else $as_nop
17231  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17232/* end confdefs.h.  */
17233int i;
17234_ACEOF
17235if ac_fn_c_try_compile "$LINENO"
17236then :
17237  xorg_cv_cc_flag_unknown_warning_option=yes
17238else $as_nop
17239  xorg_cv_cc_flag_unknown_warning_option=no
17240fi
17241rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17242fi
17243{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17244printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17245	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17246	CFLAGS="$xorg_testset_save_CFLAGS"
17247fi
17248
17249if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17250	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17251		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17252	fi
17253	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17254	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17255printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17256if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17257then :
17258  printf %s "(cached) " >&6
17259else $as_nop
17260  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17261/* end confdefs.h.  */
17262int i;
17263_ACEOF
17264if ac_fn_c_try_compile "$LINENO"
17265then :
17266  xorg_cv_cc_flag_unused_command_line_argument=yes
17267else $as_nop
17268  xorg_cv_cc_flag_unused_command_line_argument=no
17269fi
17270rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17271fi
17272{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17273printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17274	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17275	CFLAGS="$xorg_testset_save_CFLAGS"
17276fi
17277
17278found="no"
17279
17280	if test $found = "no" ; then
17281		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17282			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17283		fi
17284
17285		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17286			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17287		fi
17288
17289		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
17290
17291		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
17292printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
17293		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
17294		if eval test \${$cacheid+y}
17295then :
17296  printf %s "(cached) " >&6
17297else $as_nop
17298  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17299/* end confdefs.h.  */
17300int i;
17301int
17302main (void)
17303{
17304
17305  ;
17306  return 0;
17307}
17308_ACEOF
17309if ac_fn_c_try_link "$LINENO"
17310then :
17311  eval $cacheid=yes
17312else $as_nop
17313  eval $cacheid=no
17314fi
17315rm -f core conftest.err conftest.$ac_objext conftest.beam \
17316    conftest$ac_exeext conftest.$ac_ext
17317fi
17318
17319
17320		CFLAGS="$xorg_testset_save_CFLAGS"
17321
17322		eval supported=\$$cacheid
17323		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17324printf "%s\n" "$supported" >&6; }
17325		if test "$supported" = "yes" ; then
17326			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
17327			found="yes"
17328		fi
17329	fi
17330
17331	if test $found = "no" ; then
17332		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17333			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17334		fi
17335
17336		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17337			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17338		fi
17339
17340		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
17341
17342		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
17343printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
17344		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
17345		if eval test \${$cacheid+y}
17346then :
17347  printf %s "(cached) " >&6
17348else $as_nop
17349  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17350/* end confdefs.h.  */
17351int i;
17352int
17353main (void)
17354{
17355
17356  ;
17357  return 0;
17358}
17359_ACEOF
17360if ac_fn_c_try_link "$LINENO"
17361then :
17362  eval $cacheid=yes
17363else $as_nop
17364  eval $cacheid=no
17365fi
17366rm -f core conftest.err conftest.$ac_objext conftest.beam \
17367    conftest$ac_exeext conftest.$ac_ext
17368fi
17369
17370
17371		CFLAGS="$xorg_testset_save_CFLAGS"
17372
17373		eval supported=\$$cacheid
17374		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17375printf "%s\n" "$supported" >&6; }
17376		if test "$supported" = "yes" ; then
17377			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
17378			found="yes"
17379		fi
17380	fi
17381
17382
17383
17384
17385
17386
17387
17388
17389
17390
17391
17392
17393
17394
17395
17396xorg_testset_save_CFLAGS="$CFLAGS"
17397
17398if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17399	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17400	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17401printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17402if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17403then :
17404  printf %s "(cached) " >&6
17405else $as_nop
17406  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17407/* end confdefs.h.  */
17408int i;
17409_ACEOF
17410if ac_fn_c_try_compile "$LINENO"
17411then :
17412  xorg_cv_cc_flag_unknown_warning_option=yes
17413else $as_nop
17414  xorg_cv_cc_flag_unknown_warning_option=no
17415fi
17416rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17417fi
17418{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17419printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17420	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17421	CFLAGS="$xorg_testset_save_CFLAGS"
17422fi
17423
17424if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17425	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17426		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17427	fi
17428	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17429	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17430printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17431if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17432then :
17433  printf %s "(cached) " >&6
17434else $as_nop
17435  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17436/* end confdefs.h.  */
17437int i;
17438_ACEOF
17439if ac_fn_c_try_compile "$LINENO"
17440then :
17441  xorg_cv_cc_flag_unused_command_line_argument=yes
17442else $as_nop
17443  xorg_cv_cc_flag_unused_command_line_argument=no
17444fi
17445rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17446fi
17447{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17448printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17449	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17450	CFLAGS="$xorg_testset_save_CFLAGS"
17451fi
17452
17453found="no"
17454
17455	if test $found = "no" ; then
17456		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17457			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17458		fi
17459
17460		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17461			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17462		fi
17463
17464		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
17465
17466		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
17467printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
17468		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
17469		if eval test \${$cacheid+y}
17470then :
17471  printf %s "(cached) " >&6
17472else $as_nop
17473  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17474/* end confdefs.h.  */
17475int i;
17476int
17477main (void)
17478{
17479
17480  ;
17481  return 0;
17482}
17483_ACEOF
17484if ac_fn_c_try_link "$LINENO"
17485then :
17486  eval $cacheid=yes
17487else $as_nop
17488  eval $cacheid=no
17489fi
17490rm -f core conftest.err conftest.$ac_objext conftest.beam \
17491    conftest$ac_exeext conftest.$ac_ext
17492fi
17493
17494
17495		CFLAGS="$xorg_testset_save_CFLAGS"
17496
17497		eval supported=\$$cacheid
17498		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17499printf "%s\n" "$supported" >&6; }
17500		if test "$supported" = "yes" ; then
17501			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
17502			found="yes"
17503		fi
17504	fi
17505
17506 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
17507else
17508{ 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
17509printf "%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;}
17510
17511
17512
17513
17514
17515
17516
17517
17518
17519
17520
17521
17522
17523xorg_testset_save_CFLAGS="$CFLAGS"
17524
17525if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17526	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17527	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17528printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17529if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17530then :
17531  printf %s "(cached) " >&6
17532else $as_nop
17533  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17534/* end confdefs.h.  */
17535int i;
17536_ACEOF
17537if ac_fn_c_try_compile "$LINENO"
17538then :
17539  xorg_cv_cc_flag_unknown_warning_option=yes
17540else $as_nop
17541  xorg_cv_cc_flag_unknown_warning_option=no
17542fi
17543rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17544fi
17545{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17546printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17547	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17548	CFLAGS="$xorg_testset_save_CFLAGS"
17549fi
17550
17551if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17552	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17553		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17554	fi
17555	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17556	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17557printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17558if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17559then :
17560  printf %s "(cached) " >&6
17561else $as_nop
17562  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17563/* end confdefs.h.  */
17564int i;
17565_ACEOF
17566if ac_fn_c_try_compile "$LINENO"
17567then :
17568  xorg_cv_cc_flag_unused_command_line_argument=yes
17569else $as_nop
17570  xorg_cv_cc_flag_unused_command_line_argument=no
17571fi
17572rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17573fi
17574{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17575printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17576	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17577	CFLAGS="$xorg_testset_save_CFLAGS"
17578fi
17579
17580found="no"
17581
17582	if test $found = "no" ; then
17583		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17584			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17585		fi
17586
17587		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17588			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17589		fi
17590
17591		CFLAGS="$CFLAGS -Wimplicit"
17592
17593		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
17594printf %s "checking if $CC supports -Wimplicit... " >&6; }
17595		cacheid=xorg_cv_cc_flag__Wimplicit
17596		if eval test \${$cacheid+y}
17597then :
17598  printf %s "(cached) " >&6
17599else $as_nop
17600  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17601/* end confdefs.h.  */
17602int i;
17603int
17604main (void)
17605{
17606
17607  ;
17608  return 0;
17609}
17610_ACEOF
17611if ac_fn_c_try_link "$LINENO"
17612then :
17613  eval $cacheid=yes
17614else $as_nop
17615  eval $cacheid=no
17616fi
17617rm -f core conftest.err conftest.$ac_objext conftest.beam \
17618    conftest$ac_exeext conftest.$ac_ext
17619fi
17620
17621
17622		CFLAGS="$xorg_testset_save_CFLAGS"
17623
17624		eval supported=\$$cacheid
17625		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17626printf "%s\n" "$supported" >&6; }
17627		if test "$supported" = "yes" ; then
17628			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
17629			found="yes"
17630		fi
17631	fi
17632
17633
17634
17635
17636
17637
17638
17639
17640
17641
17642
17643
17644
17645
17646
17647xorg_testset_save_CFLAGS="$CFLAGS"
17648
17649if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17650	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17651	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17652printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17653if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17654then :
17655  printf %s "(cached) " >&6
17656else $as_nop
17657  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17658/* end confdefs.h.  */
17659int i;
17660_ACEOF
17661if ac_fn_c_try_compile "$LINENO"
17662then :
17663  xorg_cv_cc_flag_unknown_warning_option=yes
17664else $as_nop
17665  xorg_cv_cc_flag_unknown_warning_option=no
17666fi
17667rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17668fi
17669{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17670printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17671	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17672	CFLAGS="$xorg_testset_save_CFLAGS"
17673fi
17674
17675if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17676	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17677		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17678	fi
17679	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17680	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17681printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17682if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17683then :
17684  printf %s "(cached) " >&6
17685else $as_nop
17686  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17687/* end confdefs.h.  */
17688int i;
17689_ACEOF
17690if ac_fn_c_try_compile "$LINENO"
17691then :
17692  xorg_cv_cc_flag_unused_command_line_argument=yes
17693else $as_nop
17694  xorg_cv_cc_flag_unused_command_line_argument=no
17695fi
17696rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17697fi
17698{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17699printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17700	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17701	CFLAGS="$xorg_testset_save_CFLAGS"
17702fi
17703
17704found="no"
17705
17706	if test $found = "no" ; then
17707		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17708			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17709		fi
17710
17711		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17712			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17713		fi
17714
17715		CFLAGS="$CFLAGS -Wnonnull"
17716
17717		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
17718printf %s "checking if $CC supports -Wnonnull... " >&6; }
17719		cacheid=xorg_cv_cc_flag__Wnonnull
17720		if eval test \${$cacheid+y}
17721then :
17722  printf %s "(cached) " >&6
17723else $as_nop
17724  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17725/* end confdefs.h.  */
17726int i;
17727int
17728main (void)
17729{
17730
17731  ;
17732  return 0;
17733}
17734_ACEOF
17735if ac_fn_c_try_link "$LINENO"
17736then :
17737  eval $cacheid=yes
17738else $as_nop
17739  eval $cacheid=no
17740fi
17741rm -f core conftest.err conftest.$ac_objext conftest.beam \
17742    conftest$ac_exeext conftest.$ac_ext
17743fi
17744
17745
17746		CFLAGS="$xorg_testset_save_CFLAGS"
17747
17748		eval supported=\$$cacheid
17749		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17750printf "%s\n" "$supported" >&6; }
17751		if test "$supported" = "yes" ; then
17752			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
17753			found="yes"
17754		fi
17755	fi
17756
17757
17758
17759
17760
17761
17762
17763
17764
17765
17766
17767
17768
17769
17770
17771xorg_testset_save_CFLAGS="$CFLAGS"
17772
17773if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17774	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17775	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17776printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17777if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17778then :
17779  printf %s "(cached) " >&6
17780else $as_nop
17781  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17782/* end confdefs.h.  */
17783int i;
17784_ACEOF
17785if ac_fn_c_try_compile "$LINENO"
17786then :
17787  xorg_cv_cc_flag_unknown_warning_option=yes
17788else $as_nop
17789  xorg_cv_cc_flag_unknown_warning_option=no
17790fi
17791rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17792fi
17793{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17794printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17795	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17796	CFLAGS="$xorg_testset_save_CFLAGS"
17797fi
17798
17799if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17800	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17801		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17802	fi
17803	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17804	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17805printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17806if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17807then :
17808  printf %s "(cached) " >&6
17809else $as_nop
17810  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17811/* end confdefs.h.  */
17812int i;
17813_ACEOF
17814if ac_fn_c_try_compile "$LINENO"
17815then :
17816  xorg_cv_cc_flag_unused_command_line_argument=yes
17817else $as_nop
17818  xorg_cv_cc_flag_unused_command_line_argument=no
17819fi
17820rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17821fi
17822{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17823printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17824	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17825	CFLAGS="$xorg_testset_save_CFLAGS"
17826fi
17827
17828found="no"
17829
17830	if test $found = "no" ; then
17831		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17832			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17833		fi
17834
17835		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17836			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17837		fi
17838
17839		CFLAGS="$CFLAGS -Winit-self"
17840
17841		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
17842printf %s "checking if $CC supports -Winit-self... " >&6; }
17843		cacheid=xorg_cv_cc_flag__Winit_self
17844		if eval test \${$cacheid+y}
17845then :
17846  printf %s "(cached) " >&6
17847else $as_nop
17848  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17849/* end confdefs.h.  */
17850int i;
17851int
17852main (void)
17853{
17854
17855  ;
17856  return 0;
17857}
17858_ACEOF
17859if ac_fn_c_try_link "$LINENO"
17860then :
17861  eval $cacheid=yes
17862else $as_nop
17863  eval $cacheid=no
17864fi
17865rm -f core conftest.err conftest.$ac_objext conftest.beam \
17866    conftest$ac_exeext conftest.$ac_ext
17867fi
17868
17869
17870		CFLAGS="$xorg_testset_save_CFLAGS"
17871
17872		eval supported=\$$cacheid
17873		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17874printf "%s\n" "$supported" >&6; }
17875		if test "$supported" = "yes" ; then
17876			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
17877			found="yes"
17878		fi
17879	fi
17880
17881
17882
17883
17884
17885
17886
17887
17888
17889
17890
17891
17892
17893
17894
17895xorg_testset_save_CFLAGS="$CFLAGS"
17896
17897if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17898	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17899	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17900printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17901if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17902then :
17903  printf %s "(cached) " >&6
17904else $as_nop
17905  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17906/* end confdefs.h.  */
17907int i;
17908_ACEOF
17909if ac_fn_c_try_compile "$LINENO"
17910then :
17911  xorg_cv_cc_flag_unknown_warning_option=yes
17912else $as_nop
17913  xorg_cv_cc_flag_unknown_warning_option=no
17914fi
17915rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17916fi
17917{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17918printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17919	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17920	CFLAGS="$xorg_testset_save_CFLAGS"
17921fi
17922
17923if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17924	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17925		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17926	fi
17927	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17928	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17929printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17930if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17931then :
17932  printf %s "(cached) " >&6
17933else $as_nop
17934  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17935/* end confdefs.h.  */
17936int i;
17937_ACEOF
17938if ac_fn_c_try_compile "$LINENO"
17939then :
17940  xorg_cv_cc_flag_unused_command_line_argument=yes
17941else $as_nop
17942  xorg_cv_cc_flag_unused_command_line_argument=no
17943fi
17944rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17945fi
17946{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17947printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17948	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17949	CFLAGS="$xorg_testset_save_CFLAGS"
17950fi
17951
17952found="no"
17953
17954	if test $found = "no" ; then
17955		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17956			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17957		fi
17958
17959		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17960			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17961		fi
17962
17963		CFLAGS="$CFLAGS -Wmain"
17964
17965		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
17966printf %s "checking if $CC supports -Wmain... " >&6; }
17967		cacheid=xorg_cv_cc_flag__Wmain
17968		if eval test \${$cacheid+y}
17969then :
17970  printf %s "(cached) " >&6
17971else $as_nop
17972  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17973/* end confdefs.h.  */
17974int i;
17975int
17976main (void)
17977{
17978
17979  ;
17980  return 0;
17981}
17982_ACEOF
17983if ac_fn_c_try_link "$LINENO"
17984then :
17985  eval $cacheid=yes
17986else $as_nop
17987  eval $cacheid=no
17988fi
17989rm -f core conftest.err conftest.$ac_objext conftest.beam \
17990    conftest$ac_exeext conftest.$ac_ext
17991fi
17992
17993
17994		CFLAGS="$xorg_testset_save_CFLAGS"
17995
17996		eval supported=\$$cacheid
17997		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17998printf "%s\n" "$supported" >&6; }
17999		if test "$supported" = "yes" ; then
18000			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
18001			found="yes"
18002		fi
18003	fi
18004
18005
18006
18007
18008
18009
18010
18011
18012
18013
18014
18015
18016
18017
18018
18019xorg_testset_save_CFLAGS="$CFLAGS"
18020
18021if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18022	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18023	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18024printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18025if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18026then :
18027  printf %s "(cached) " >&6
18028else $as_nop
18029  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18030/* end confdefs.h.  */
18031int i;
18032_ACEOF
18033if ac_fn_c_try_compile "$LINENO"
18034then :
18035  xorg_cv_cc_flag_unknown_warning_option=yes
18036else $as_nop
18037  xorg_cv_cc_flag_unknown_warning_option=no
18038fi
18039rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18040fi
18041{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18042printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18043	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18044	CFLAGS="$xorg_testset_save_CFLAGS"
18045fi
18046
18047if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18048	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18049		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18050	fi
18051	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18052	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18053printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18054if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18055then :
18056  printf %s "(cached) " >&6
18057else $as_nop
18058  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18059/* end confdefs.h.  */
18060int i;
18061_ACEOF
18062if ac_fn_c_try_compile "$LINENO"
18063then :
18064  xorg_cv_cc_flag_unused_command_line_argument=yes
18065else $as_nop
18066  xorg_cv_cc_flag_unused_command_line_argument=no
18067fi
18068rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18069fi
18070{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18071printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18072	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18073	CFLAGS="$xorg_testset_save_CFLAGS"
18074fi
18075
18076found="no"
18077
18078	if test $found = "no" ; then
18079		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18080			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18081		fi
18082
18083		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18084			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18085		fi
18086
18087		CFLAGS="$CFLAGS -Wmissing-braces"
18088
18089		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
18090printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
18091		cacheid=xorg_cv_cc_flag__Wmissing_braces
18092		if eval test \${$cacheid+y}
18093then :
18094  printf %s "(cached) " >&6
18095else $as_nop
18096  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18097/* end confdefs.h.  */
18098int i;
18099int
18100main (void)
18101{
18102
18103  ;
18104  return 0;
18105}
18106_ACEOF
18107if ac_fn_c_try_link "$LINENO"
18108then :
18109  eval $cacheid=yes
18110else $as_nop
18111  eval $cacheid=no
18112fi
18113rm -f core conftest.err conftest.$ac_objext conftest.beam \
18114    conftest$ac_exeext conftest.$ac_ext
18115fi
18116
18117
18118		CFLAGS="$xorg_testset_save_CFLAGS"
18119
18120		eval supported=\$$cacheid
18121		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18122printf "%s\n" "$supported" >&6; }
18123		if test "$supported" = "yes" ; then
18124			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
18125			found="yes"
18126		fi
18127	fi
18128
18129
18130
18131
18132
18133
18134
18135
18136
18137
18138
18139
18140
18141
18142
18143xorg_testset_save_CFLAGS="$CFLAGS"
18144
18145if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18146	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18147	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18148printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18149if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18150then :
18151  printf %s "(cached) " >&6
18152else $as_nop
18153  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18154/* end confdefs.h.  */
18155int i;
18156_ACEOF
18157if ac_fn_c_try_compile "$LINENO"
18158then :
18159  xorg_cv_cc_flag_unknown_warning_option=yes
18160else $as_nop
18161  xorg_cv_cc_flag_unknown_warning_option=no
18162fi
18163rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18164fi
18165{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18166printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18167	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18168	CFLAGS="$xorg_testset_save_CFLAGS"
18169fi
18170
18171if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18172	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18173		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18174	fi
18175	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18176	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18177printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18178if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18179then :
18180  printf %s "(cached) " >&6
18181else $as_nop
18182  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18183/* end confdefs.h.  */
18184int i;
18185_ACEOF
18186if ac_fn_c_try_compile "$LINENO"
18187then :
18188  xorg_cv_cc_flag_unused_command_line_argument=yes
18189else $as_nop
18190  xorg_cv_cc_flag_unused_command_line_argument=no
18191fi
18192rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18193fi
18194{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18195printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18196	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18197	CFLAGS="$xorg_testset_save_CFLAGS"
18198fi
18199
18200found="no"
18201
18202	if test $found = "no" ; then
18203		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18204			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18205		fi
18206
18207		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18208			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18209		fi
18210
18211		CFLAGS="$CFLAGS -Wsequence-point"
18212
18213		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
18214printf %s "checking if $CC supports -Wsequence-point... " >&6; }
18215		cacheid=xorg_cv_cc_flag__Wsequence_point
18216		if eval test \${$cacheid+y}
18217then :
18218  printf %s "(cached) " >&6
18219else $as_nop
18220  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18221/* end confdefs.h.  */
18222int i;
18223int
18224main (void)
18225{
18226
18227  ;
18228  return 0;
18229}
18230_ACEOF
18231if ac_fn_c_try_link "$LINENO"
18232then :
18233  eval $cacheid=yes
18234else $as_nop
18235  eval $cacheid=no
18236fi
18237rm -f core conftest.err conftest.$ac_objext conftest.beam \
18238    conftest$ac_exeext conftest.$ac_ext
18239fi
18240
18241
18242		CFLAGS="$xorg_testset_save_CFLAGS"
18243
18244		eval supported=\$$cacheid
18245		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18246printf "%s\n" "$supported" >&6; }
18247		if test "$supported" = "yes" ; then
18248			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
18249			found="yes"
18250		fi
18251	fi
18252
18253
18254
18255
18256
18257
18258
18259
18260
18261
18262
18263
18264
18265
18266
18267xorg_testset_save_CFLAGS="$CFLAGS"
18268
18269if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18270	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18271	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18272printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18273if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18274then :
18275  printf %s "(cached) " >&6
18276else $as_nop
18277  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18278/* end confdefs.h.  */
18279int i;
18280_ACEOF
18281if ac_fn_c_try_compile "$LINENO"
18282then :
18283  xorg_cv_cc_flag_unknown_warning_option=yes
18284else $as_nop
18285  xorg_cv_cc_flag_unknown_warning_option=no
18286fi
18287rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18288fi
18289{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18290printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18291	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18292	CFLAGS="$xorg_testset_save_CFLAGS"
18293fi
18294
18295if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18296	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18297		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18298	fi
18299	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18300	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18301printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18302if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18303then :
18304  printf %s "(cached) " >&6
18305else $as_nop
18306  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18307/* end confdefs.h.  */
18308int i;
18309_ACEOF
18310if ac_fn_c_try_compile "$LINENO"
18311then :
18312  xorg_cv_cc_flag_unused_command_line_argument=yes
18313else $as_nop
18314  xorg_cv_cc_flag_unused_command_line_argument=no
18315fi
18316rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18317fi
18318{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18319printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18320	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18321	CFLAGS="$xorg_testset_save_CFLAGS"
18322fi
18323
18324found="no"
18325
18326	if test $found = "no" ; then
18327		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18328			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18329		fi
18330
18331		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18332			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18333		fi
18334
18335		CFLAGS="$CFLAGS -Wreturn-type"
18336
18337		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
18338printf %s "checking if $CC supports -Wreturn-type... " >&6; }
18339		cacheid=xorg_cv_cc_flag__Wreturn_type
18340		if eval test \${$cacheid+y}
18341then :
18342  printf %s "(cached) " >&6
18343else $as_nop
18344  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18345/* end confdefs.h.  */
18346int i;
18347int
18348main (void)
18349{
18350
18351  ;
18352  return 0;
18353}
18354_ACEOF
18355if ac_fn_c_try_link "$LINENO"
18356then :
18357  eval $cacheid=yes
18358else $as_nop
18359  eval $cacheid=no
18360fi
18361rm -f core conftest.err conftest.$ac_objext conftest.beam \
18362    conftest$ac_exeext conftest.$ac_ext
18363fi
18364
18365
18366		CFLAGS="$xorg_testset_save_CFLAGS"
18367
18368		eval supported=\$$cacheid
18369		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18370printf "%s\n" "$supported" >&6; }
18371		if test "$supported" = "yes" ; then
18372			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
18373			found="yes"
18374		fi
18375	fi
18376
18377
18378
18379
18380
18381
18382
18383
18384
18385
18386
18387
18388
18389
18390
18391xorg_testset_save_CFLAGS="$CFLAGS"
18392
18393if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18394	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18395	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18396printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18397if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18398then :
18399  printf %s "(cached) " >&6
18400else $as_nop
18401  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18402/* end confdefs.h.  */
18403int i;
18404_ACEOF
18405if ac_fn_c_try_compile "$LINENO"
18406then :
18407  xorg_cv_cc_flag_unknown_warning_option=yes
18408else $as_nop
18409  xorg_cv_cc_flag_unknown_warning_option=no
18410fi
18411rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18412fi
18413{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18414printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18415	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18416	CFLAGS="$xorg_testset_save_CFLAGS"
18417fi
18418
18419if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18420	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18421		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18422	fi
18423	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18424	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18425printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18426if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18427then :
18428  printf %s "(cached) " >&6
18429else $as_nop
18430  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18431/* end confdefs.h.  */
18432int i;
18433_ACEOF
18434if ac_fn_c_try_compile "$LINENO"
18435then :
18436  xorg_cv_cc_flag_unused_command_line_argument=yes
18437else $as_nop
18438  xorg_cv_cc_flag_unused_command_line_argument=no
18439fi
18440rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18441fi
18442{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18443printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18444	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18445	CFLAGS="$xorg_testset_save_CFLAGS"
18446fi
18447
18448found="no"
18449
18450	if test $found = "no" ; then
18451		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18452			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18453		fi
18454
18455		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18456			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18457		fi
18458
18459		CFLAGS="$CFLAGS -Wtrigraphs"
18460
18461		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
18462printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
18463		cacheid=xorg_cv_cc_flag__Wtrigraphs
18464		if eval test \${$cacheid+y}
18465then :
18466  printf %s "(cached) " >&6
18467else $as_nop
18468  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18469/* end confdefs.h.  */
18470int i;
18471int
18472main (void)
18473{
18474
18475  ;
18476  return 0;
18477}
18478_ACEOF
18479if ac_fn_c_try_link "$LINENO"
18480then :
18481  eval $cacheid=yes
18482else $as_nop
18483  eval $cacheid=no
18484fi
18485rm -f core conftest.err conftest.$ac_objext conftest.beam \
18486    conftest$ac_exeext conftest.$ac_ext
18487fi
18488
18489
18490		CFLAGS="$xorg_testset_save_CFLAGS"
18491
18492		eval supported=\$$cacheid
18493		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18494printf "%s\n" "$supported" >&6; }
18495		if test "$supported" = "yes" ; then
18496			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
18497			found="yes"
18498		fi
18499	fi
18500
18501
18502
18503
18504
18505
18506
18507
18508
18509
18510
18511
18512
18513
18514
18515xorg_testset_save_CFLAGS="$CFLAGS"
18516
18517if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18518	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18519	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18520printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18521if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18522then :
18523  printf %s "(cached) " >&6
18524else $as_nop
18525  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18526/* end confdefs.h.  */
18527int i;
18528_ACEOF
18529if ac_fn_c_try_compile "$LINENO"
18530then :
18531  xorg_cv_cc_flag_unknown_warning_option=yes
18532else $as_nop
18533  xorg_cv_cc_flag_unknown_warning_option=no
18534fi
18535rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18536fi
18537{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18538printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18539	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18540	CFLAGS="$xorg_testset_save_CFLAGS"
18541fi
18542
18543if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18544	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18545		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18546	fi
18547	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18548	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18549printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18550if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18551then :
18552  printf %s "(cached) " >&6
18553else $as_nop
18554  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18555/* end confdefs.h.  */
18556int i;
18557_ACEOF
18558if ac_fn_c_try_compile "$LINENO"
18559then :
18560  xorg_cv_cc_flag_unused_command_line_argument=yes
18561else $as_nop
18562  xorg_cv_cc_flag_unused_command_line_argument=no
18563fi
18564rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18565fi
18566{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18567printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18568	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18569	CFLAGS="$xorg_testset_save_CFLAGS"
18570fi
18571
18572found="no"
18573
18574	if test $found = "no" ; then
18575		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18576			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18577		fi
18578
18579		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18580			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18581		fi
18582
18583		CFLAGS="$CFLAGS -Warray-bounds"
18584
18585		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
18586printf %s "checking if $CC supports -Warray-bounds... " >&6; }
18587		cacheid=xorg_cv_cc_flag__Warray_bounds
18588		if eval test \${$cacheid+y}
18589then :
18590  printf %s "(cached) " >&6
18591else $as_nop
18592  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18593/* end confdefs.h.  */
18594int i;
18595int
18596main (void)
18597{
18598
18599  ;
18600  return 0;
18601}
18602_ACEOF
18603if ac_fn_c_try_link "$LINENO"
18604then :
18605  eval $cacheid=yes
18606else $as_nop
18607  eval $cacheid=no
18608fi
18609rm -f core conftest.err conftest.$ac_objext conftest.beam \
18610    conftest$ac_exeext conftest.$ac_ext
18611fi
18612
18613
18614		CFLAGS="$xorg_testset_save_CFLAGS"
18615
18616		eval supported=\$$cacheid
18617		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18618printf "%s\n" "$supported" >&6; }
18619		if test "$supported" = "yes" ; then
18620			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
18621			found="yes"
18622		fi
18623	fi
18624
18625
18626
18627
18628
18629
18630
18631
18632
18633
18634
18635
18636
18637
18638
18639xorg_testset_save_CFLAGS="$CFLAGS"
18640
18641if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18642	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18643	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18644printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18645if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18646then :
18647  printf %s "(cached) " >&6
18648else $as_nop
18649  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18650/* end confdefs.h.  */
18651int i;
18652_ACEOF
18653if ac_fn_c_try_compile "$LINENO"
18654then :
18655  xorg_cv_cc_flag_unknown_warning_option=yes
18656else $as_nop
18657  xorg_cv_cc_flag_unknown_warning_option=no
18658fi
18659rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18660fi
18661{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18662printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18663	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18664	CFLAGS="$xorg_testset_save_CFLAGS"
18665fi
18666
18667if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18668	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18669		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18670	fi
18671	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18672	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18673printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18674if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18675then :
18676  printf %s "(cached) " >&6
18677else $as_nop
18678  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18679/* end confdefs.h.  */
18680int i;
18681_ACEOF
18682if ac_fn_c_try_compile "$LINENO"
18683then :
18684  xorg_cv_cc_flag_unused_command_line_argument=yes
18685else $as_nop
18686  xorg_cv_cc_flag_unused_command_line_argument=no
18687fi
18688rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18689fi
18690{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18691printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18692	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18693	CFLAGS="$xorg_testset_save_CFLAGS"
18694fi
18695
18696found="no"
18697
18698	if test $found = "no" ; then
18699		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18700			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18701		fi
18702
18703		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18704			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18705		fi
18706
18707		CFLAGS="$CFLAGS -Wwrite-strings"
18708
18709		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
18710printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
18711		cacheid=xorg_cv_cc_flag__Wwrite_strings
18712		if eval test \${$cacheid+y}
18713then :
18714  printf %s "(cached) " >&6
18715else $as_nop
18716  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18717/* end confdefs.h.  */
18718int i;
18719int
18720main (void)
18721{
18722
18723  ;
18724  return 0;
18725}
18726_ACEOF
18727if ac_fn_c_try_link "$LINENO"
18728then :
18729  eval $cacheid=yes
18730else $as_nop
18731  eval $cacheid=no
18732fi
18733rm -f core conftest.err conftest.$ac_objext conftest.beam \
18734    conftest$ac_exeext conftest.$ac_ext
18735fi
18736
18737
18738		CFLAGS="$xorg_testset_save_CFLAGS"
18739
18740		eval supported=\$$cacheid
18741		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18742printf "%s\n" "$supported" >&6; }
18743		if test "$supported" = "yes" ; then
18744			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
18745			found="yes"
18746		fi
18747	fi
18748
18749
18750
18751
18752
18753
18754
18755
18756
18757
18758
18759
18760
18761
18762
18763xorg_testset_save_CFLAGS="$CFLAGS"
18764
18765if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18766	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18767	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18768printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18769if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18770then :
18771  printf %s "(cached) " >&6
18772else $as_nop
18773  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18774/* end confdefs.h.  */
18775int i;
18776_ACEOF
18777if ac_fn_c_try_compile "$LINENO"
18778then :
18779  xorg_cv_cc_flag_unknown_warning_option=yes
18780else $as_nop
18781  xorg_cv_cc_flag_unknown_warning_option=no
18782fi
18783rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18784fi
18785{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18786printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18787	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18788	CFLAGS="$xorg_testset_save_CFLAGS"
18789fi
18790
18791if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18792	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18793		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18794	fi
18795	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18796	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18797printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18798if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18799then :
18800  printf %s "(cached) " >&6
18801else $as_nop
18802  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18803/* end confdefs.h.  */
18804int i;
18805_ACEOF
18806if ac_fn_c_try_compile "$LINENO"
18807then :
18808  xorg_cv_cc_flag_unused_command_line_argument=yes
18809else $as_nop
18810  xorg_cv_cc_flag_unused_command_line_argument=no
18811fi
18812rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18813fi
18814{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18815printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18816	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18817	CFLAGS="$xorg_testset_save_CFLAGS"
18818fi
18819
18820found="no"
18821
18822	if test $found = "no" ; then
18823		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18824			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18825		fi
18826
18827		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18828			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18829		fi
18830
18831		CFLAGS="$CFLAGS -Waddress"
18832
18833		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
18834printf %s "checking if $CC supports -Waddress... " >&6; }
18835		cacheid=xorg_cv_cc_flag__Waddress
18836		if eval test \${$cacheid+y}
18837then :
18838  printf %s "(cached) " >&6
18839else $as_nop
18840  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18841/* end confdefs.h.  */
18842int i;
18843int
18844main (void)
18845{
18846
18847  ;
18848  return 0;
18849}
18850_ACEOF
18851if ac_fn_c_try_link "$LINENO"
18852then :
18853  eval $cacheid=yes
18854else $as_nop
18855  eval $cacheid=no
18856fi
18857rm -f core conftest.err conftest.$ac_objext conftest.beam \
18858    conftest$ac_exeext conftest.$ac_ext
18859fi
18860
18861
18862		CFLAGS="$xorg_testset_save_CFLAGS"
18863
18864		eval supported=\$$cacheid
18865		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18866printf "%s\n" "$supported" >&6; }
18867		if test "$supported" = "yes" ; then
18868			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
18869			found="yes"
18870		fi
18871	fi
18872
18873
18874
18875
18876
18877
18878
18879
18880
18881
18882
18883
18884
18885
18886
18887xorg_testset_save_CFLAGS="$CFLAGS"
18888
18889if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18890	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18891	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18892printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18893if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18894then :
18895  printf %s "(cached) " >&6
18896else $as_nop
18897  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18898/* end confdefs.h.  */
18899int i;
18900_ACEOF
18901if ac_fn_c_try_compile "$LINENO"
18902then :
18903  xorg_cv_cc_flag_unknown_warning_option=yes
18904else $as_nop
18905  xorg_cv_cc_flag_unknown_warning_option=no
18906fi
18907rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18908fi
18909{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18910printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18911	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18912	CFLAGS="$xorg_testset_save_CFLAGS"
18913fi
18914
18915if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18916	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18917		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18918	fi
18919	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18920	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18921printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18922if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18923then :
18924  printf %s "(cached) " >&6
18925else $as_nop
18926  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18927/* end confdefs.h.  */
18928int i;
18929_ACEOF
18930if ac_fn_c_try_compile "$LINENO"
18931then :
18932  xorg_cv_cc_flag_unused_command_line_argument=yes
18933else $as_nop
18934  xorg_cv_cc_flag_unused_command_line_argument=no
18935fi
18936rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18937fi
18938{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18939printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18940	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18941	CFLAGS="$xorg_testset_save_CFLAGS"
18942fi
18943
18944found="no"
18945
18946	if test $found = "no" ; then
18947		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18948			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18949		fi
18950
18951		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18952			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18953		fi
18954
18955		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
18956
18957		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
18958printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
18959		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
18960		if eval test \${$cacheid+y}
18961then :
18962  printf %s "(cached) " >&6
18963else $as_nop
18964  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18965/* end confdefs.h.  */
18966int i;
18967int
18968main (void)
18969{
18970
18971  ;
18972  return 0;
18973}
18974_ACEOF
18975if ac_fn_c_try_link "$LINENO"
18976then :
18977  eval $cacheid=yes
18978else $as_nop
18979  eval $cacheid=no
18980fi
18981rm -f core conftest.err conftest.$ac_objext conftest.beam \
18982    conftest$ac_exeext conftest.$ac_ext
18983fi
18984
18985
18986		CFLAGS="$xorg_testset_save_CFLAGS"
18987
18988		eval supported=\$$cacheid
18989		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18990printf "%s\n" "$supported" >&6; }
18991		if test "$supported" = "yes" ; then
18992			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
18993			found="yes"
18994		fi
18995	fi
18996
18997
18998
18999
19000
19001
19002
19003
19004
19005
19006
19007
19008
19009
19010
19011xorg_testset_save_CFLAGS="$CFLAGS"
19012
19013if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19014	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19015	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19016printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19017if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19018then :
19019  printf %s "(cached) " >&6
19020else $as_nop
19021  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19022/* end confdefs.h.  */
19023int i;
19024_ACEOF
19025if ac_fn_c_try_compile "$LINENO"
19026then :
19027  xorg_cv_cc_flag_unknown_warning_option=yes
19028else $as_nop
19029  xorg_cv_cc_flag_unknown_warning_option=no
19030fi
19031rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19032fi
19033{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19034printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19035	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19036	CFLAGS="$xorg_testset_save_CFLAGS"
19037fi
19038
19039if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19040	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19041		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19042	fi
19043	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19044	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19045printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19046if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19047then :
19048  printf %s "(cached) " >&6
19049else $as_nop
19050  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19051/* end confdefs.h.  */
19052int i;
19053_ACEOF
19054if ac_fn_c_try_compile "$LINENO"
19055then :
19056  xorg_cv_cc_flag_unused_command_line_argument=yes
19057else $as_nop
19058  xorg_cv_cc_flag_unused_command_line_argument=no
19059fi
19060rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19061fi
19062{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19063printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19064	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19065	CFLAGS="$xorg_testset_save_CFLAGS"
19066fi
19067
19068found="no"
19069
19070	if test $found = "no" ; then
19071		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19072			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19073		fi
19074
19075		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19076			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19077		fi
19078
19079		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
19080
19081		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
19082printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
19083		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
19084		if eval test \${$cacheid+y}
19085then :
19086  printf %s "(cached) " >&6
19087else $as_nop
19088  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19089/* end confdefs.h.  */
19090int i;
19091int
19092main (void)
19093{
19094
19095  ;
19096  return 0;
19097}
19098_ACEOF
19099if ac_fn_c_try_link "$LINENO"
19100then :
19101  eval $cacheid=yes
19102else $as_nop
19103  eval $cacheid=no
19104fi
19105rm -f core conftest.err conftest.$ac_objext conftest.beam \
19106    conftest$ac_exeext conftest.$ac_ext
19107fi
19108
19109
19110		CFLAGS="$xorg_testset_save_CFLAGS"
19111
19112		eval supported=\$$cacheid
19113		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19114printf "%s\n" "$supported" >&6; }
19115		if test "$supported" = "yes" ; then
19116			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
19117			found="yes"
19118		fi
19119	fi
19120
19121
19122fi
19123
19124
19125
19126
19127
19128
19129
19130		CWARNFLAGS="$BASE_CFLAGS"
19131		if  test "x$GCC" = xyes ; then
19132		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
19133		fi
19134
19135
19136
19137
19138
19139
19140
19141
19142# Check whether --enable-strict-compilation was given.
19143if test ${enable_strict_compilation+y}
19144then :
19145  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
19146else $as_nop
19147  STRICT_COMPILE=no
19148fi
19149
19150
19151
19152
19153
19154
19155STRICT_CFLAGS=""
19156
19157
19158
19159
19160
19161
19162
19163
19164
19165
19166
19167
19168
19169xorg_testset_save_CFLAGS="$CFLAGS"
19170
19171if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19172	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19173	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19174printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19175if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19176then :
19177  printf %s "(cached) " >&6
19178else $as_nop
19179  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19180/* end confdefs.h.  */
19181int i;
19182_ACEOF
19183if ac_fn_c_try_compile "$LINENO"
19184then :
19185  xorg_cv_cc_flag_unknown_warning_option=yes
19186else $as_nop
19187  xorg_cv_cc_flag_unknown_warning_option=no
19188fi
19189rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19190fi
19191{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19192printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19193	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19194	CFLAGS="$xorg_testset_save_CFLAGS"
19195fi
19196
19197if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19198	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19199		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19200	fi
19201	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19202	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19203printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19204if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19205then :
19206  printf %s "(cached) " >&6
19207else $as_nop
19208  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19209/* end confdefs.h.  */
19210int i;
19211_ACEOF
19212if ac_fn_c_try_compile "$LINENO"
19213then :
19214  xorg_cv_cc_flag_unused_command_line_argument=yes
19215else $as_nop
19216  xorg_cv_cc_flag_unused_command_line_argument=no
19217fi
19218rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19219fi
19220{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19221printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19222	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19223	CFLAGS="$xorg_testset_save_CFLAGS"
19224fi
19225
19226found="no"
19227
19228	if test $found = "no" ; then
19229		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19230			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19231		fi
19232
19233		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19234			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19235		fi
19236
19237		CFLAGS="$CFLAGS -pedantic"
19238
19239		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
19240printf %s "checking if $CC supports -pedantic... " >&6; }
19241		cacheid=xorg_cv_cc_flag__pedantic
19242		if eval test \${$cacheid+y}
19243then :
19244  printf %s "(cached) " >&6
19245else $as_nop
19246  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19247/* end confdefs.h.  */
19248int i;
19249int
19250main (void)
19251{
19252
19253  ;
19254  return 0;
19255}
19256_ACEOF
19257if ac_fn_c_try_link "$LINENO"
19258then :
19259  eval $cacheid=yes
19260else $as_nop
19261  eval $cacheid=no
19262fi
19263rm -f core conftest.err conftest.$ac_objext conftest.beam \
19264    conftest$ac_exeext conftest.$ac_ext
19265fi
19266
19267
19268		CFLAGS="$xorg_testset_save_CFLAGS"
19269
19270		eval supported=\$$cacheid
19271		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19272printf "%s\n" "$supported" >&6; }
19273		if test "$supported" = "yes" ; then
19274			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
19275			found="yes"
19276		fi
19277	fi
19278
19279
19280
19281
19282
19283
19284
19285
19286
19287
19288
19289
19290
19291
19292
19293xorg_testset_save_CFLAGS="$CFLAGS"
19294
19295if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19296	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19297	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19298printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19299if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19300then :
19301  printf %s "(cached) " >&6
19302else $as_nop
19303  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19304/* end confdefs.h.  */
19305int i;
19306_ACEOF
19307if ac_fn_c_try_compile "$LINENO"
19308then :
19309  xorg_cv_cc_flag_unknown_warning_option=yes
19310else $as_nop
19311  xorg_cv_cc_flag_unknown_warning_option=no
19312fi
19313rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19314fi
19315{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19316printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19317	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19318	CFLAGS="$xorg_testset_save_CFLAGS"
19319fi
19320
19321if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19322	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19323		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19324	fi
19325	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19326	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19327printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19328if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19329then :
19330  printf %s "(cached) " >&6
19331else $as_nop
19332  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19333/* end confdefs.h.  */
19334int i;
19335_ACEOF
19336if ac_fn_c_try_compile "$LINENO"
19337then :
19338  xorg_cv_cc_flag_unused_command_line_argument=yes
19339else $as_nop
19340  xorg_cv_cc_flag_unused_command_line_argument=no
19341fi
19342rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19343fi
19344{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19345printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19346	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19347	CFLAGS="$xorg_testset_save_CFLAGS"
19348fi
19349
19350found="no"
19351
19352	if test $found = "no" ; then
19353		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19354			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19355		fi
19356
19357		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19358			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19359		fi
19360
19361		CFLAGS="$CFLAGS -Werror"
19362
19363		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
19364printf %s "checking if $CC supports -Werror... " >&6; }
19365		cacheid=xorg_cv_cc_flag__Werror
19366		if eval test \${$cacheid+y}
19367then :
19368  printf %s "(cached) " >&6
19369else $as_nop
19370  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19371/* end confdefs.h.  */
19372int i;
19373int
19374main (void)
19375{
19376
19377  ;
19378  return 0;
19379}
19380_ACEOF
19381if ac_fn_c_try_link "$LINENO"
19382then :
19383  eval $cacheid=yes
19384else $as_nop
19385  eval $cacheid=no
19386fi
19387rm -f core conftest.err conftest.$ac_objext conftest.beam \
19388    conftest$ac_exeext conftest.$ac_ext
19389fi
19390
19391
19392		CFLAGS="$xorg_testset_save_CFLAGS"
19393
19394		eval supported=\$$cacheid
19395		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19396printf "%s\n" "$supported" >&6; }
19397		if test "$supported" = "yes" ; then
19398			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
19399			found="yes"
19400		fi
19401	fi
19402
19403	if test $found = "no" ; then
19404		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19405			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19406		fi
19407
19408		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19409			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19410		fi
19411
19412		CFLAGS="$CFLAGS -errwarn"
19413
19414		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
19415printf %s "checking if $CC supports -errwarn... " >&6; }
19416		cacheid=xorg_cv_cc_flag__errwarn
19417		if eval test \${$cacheid+y}
19418then :
19419  printf %s "(cached) " >&6
19420else $as_nop
19421  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19422/* end confdefs.h.  */
19423int i;
19424int
19425main (void)
19426{
19427
19428  ;
19429  return 0;
19430}
19431_ACEOF
19432if ac_fn_c_try_link "$LINENO"
19433then :
19434  eval $cacheid=yes
19435else $as_nop
19436  eval $cacheid=no
19437fi
19438rm -f core conftest.err conftest.$ac_objext conftest.beam \
19439    conftest$ac_exeext conftest.$ac_ext
19440fi
19441
19442
19443		CFLAGS="$xorg_testset_save_CFLAGS"
19444
19445		eval supported=\$$cacheid
19446		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19447printf "%s\n" "$supported" >&6; }
19448		if test "$supported" = "yes" ; then
19449			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
19450			found="yes"
19451		fi
19452	fi
19453
19454
19455
19456# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
19457# activate it with -Werror, so we add it here explicitly.
19458
19459
19460
19461
19462
19463
19464
19465
19466
19467
19468
19469
19470
19471xorg_testset_save_CFLAGS="$CFLAGS"
19472
19473if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19474	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19475	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19476printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19477if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19478then :
19479  printf %s "(cached) " >&6
19480else $as_nop
19481  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19482/* end confdefs.h.  */
19483int i;
19484_ACEOF
19485if ac_fn_c_try_compile "$LINENO"
19486then :
19487  xorg_cv_cc_flag_unknown_warning_option=yes
19488else $as_nop
19489  xorg_cv_cc_flag_unknown_warning_option=no
19490fi
19491rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19492fi
19493{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19494printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19495	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19496	CFLAGS="$xorg_testset_save_CFLAGS"
19497fi
19498
19499if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19500	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19501		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19502	fi
19503	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19504	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19505printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19506if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19507then :
19508  printf %s "(cached) " >&6
19509else $as_nop
19510  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19511/* end confdefs.h.  */
19512int i;
19513_ACEOF
19514if ac_fn_c_try_compile "$LINENO"
19515then :
19516  xorg_cv_cc_flag_unused_command_line_argument=yes
19517else $as_nop
19518  xorg_cv_cc_flag_unused_command_line_argument=no
19519fi
19520rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19521fi
19522{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19523printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19524	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19525	CFLAGS="$xorg_testset_save_CFLAGS"
19526fi
19527
19528found="no"
19529
19530	if test $found = "no" ; then
19531		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19532			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19533		fi
19534
19535		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19536			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19537		fi
19538
19539		CFLAGS="$CFLAGS -Werror=attributes"
19540
19541		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
19542printf %s "checking if $CC supports -Werror=attributes... " >&6; }
19543		cacheid=xorg_cv_cc_flag__Werror_attributes
19544		if eval test \${$cacheid+y}
19545then :
19546  printf %s "(cached) " >&6
19547else $as_nop
19548  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19549/* end confdefs.h.  */
19550int i;
19551int
19552main (void)
19553{
19554
19555  ;
19556  return 0;
19557}
19558_ACEOF
19559if ac_fn_c_try_link "$LINENO"
19560then :
19561  eval $cacheid=yes
19562else $as_nop
19563  eval $cacheid=no
19564fi
19565rm -f core conftest.err conftest.$ac_objext conftest.beam \
19566    conftest$ac_exeext conftest.$ac_ext
19567fi
19568
19569
19570		CFLAGS="$xorg_testset_save_CFLAGS"
19571
19572		eval supported=\$$cacheid
19573		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19574printf "%s\n" "$supported" >&6; }
19575		if test "$supported" = "yes" ; then
19576			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
19577			found="yes"
19578		fi
19579	fi
19580
19581
19582
19583if test "x$STRICT_COMPILE" = "xyes"; then
19584    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
19585    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
19586fi
19587
19588
19589
19590
19591
19592
19593cat >>confdefs.h <<_ACEOF
19594#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
19595_ACEOF
19596
19597	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
19598	if test "x$PVM" = "x"; then
19599		PVM="0"
19600	fi
19601
19602printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
19603
19604	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
19605	if test "x$PVP" = "x"; then
19606		PVP="0"
19607	fi
19608
19609printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
19610
19611
19612
19613CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
19614mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
19615|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
19616touch \$(top_srcdir)/ChangeLog; \
19617echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
19618
19619
19620
19621
19622macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
19623INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
19624mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
19625|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
19626touch \$(top_srcdir)/INSTALL; \
19627echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
19628
19629
19630
19631
19632
19633
19634case $host_os in
19635    solaris*)
19636        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
19637        # check for a man page file found in later versions that use
19638        # traditional section numbers instead
19639        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
19640printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
19641if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
19642then :
19643  printf %s "(cached) " >&6
19644else $as_nop
19645  test "$cross_compiling" = yes &&
19646  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
19647if test -r "/usr/share/man/man7/attributes.7"; then
19648  ac_cv_file__usr_share_man_man7_attributes_7=yes
19649else
19650  ac_cv_file__usr_share_man_man7_attributes_7=no
19651fi
19652fi
19653{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
19654printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
19655if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
19656then :
19657  SYSV_MAN_SECTIONS=false
19658else $as_nop
19659  SYSV_MAN_SECTIONS=true
19660fi
19661
19662        ;;
19663    *) SYSV_MAN_SECTIONS=false ;;
19664esac
19665
19666if test x$APP_MAN_SUFFIX = x    ; then
19667    APP_MAN_SUFFIX=1
19668fi
19669if test x$APP_MAN_DIR = x    ; then
19670    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
19671fi
19672
19673if test x$LIB_MAN_SUFFIX = x    ; then
19674    LIB_MAN_SUFFIX=3
19675fi
19676if test x$LIB_MAN_DIR = x    ; then
19677    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
19678fi
19679
19680if test x$FILE_MAN_SUFFIX = x    ; then
19681    case $SYSV_MAN_SECTIONS in
19682	true)				FILE_MAN_SUFFIX=4  ;;
19683	*)				FILE_MAN_SUFFIX=5  ;;
19684    esac
19685fi
19686if test x$FILE_MAN_DIR = x    ; then
19687    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
19688fi
19689
19690if test x$MISC_MAN_SUFFIX = x    ; then
19691    case $SYSV_MAN_SECTIONS in
19692	true)				MISC_MAN_SUFFIX=5  ;;
19693	*)				MISC_MAN_SUFFIX=7  ;;
19694    esac
19695fi
19696if test x$MISC_MAN_DIR = x    ; then
19697    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
19698fi
19699
19700if test x$DRIVER_MAN_SUFFIX = x    ; then
19701    case $SYSV_MAN_SECTIONS in
19702	true)				DRIVER_MAN_SUFFIX=7  ;;
19703	*)				DRIVER_MAN_SUFFIX=4  ;;
19704    esac
19705fi
19706if test x$DRIVER_MAN_DIR = x    ; then
19707    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
19708fi
19709
19710if test x$ADMIN_MAN_SUFFIX = x    ; then
19711    case $SYSV_MAN_SECTIONS in
19712	true)				ADMIN_MAN_SUFFIX=1m ;;
19713	*)				ADMIN_MAN_SUFFIX=8  ;;
19714    esac
19715fi
19716if test x$ADMIN_MAN_DIR = x    ; then
19717    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
19718fi
19719
19720
19721
19722
19723
19724
19725
19726
19727
19728
19729
19730
19731
19732
19733
19734XORG_MAN_PAGE="X Version 11"
19735
19736MAN_SUBSTS="\
19737	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19738	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19739	-e 's|__xservername__|Xorg|g' \
19740	-e 's|__xconfigfile__|xorg.conf|g' \
19741	-e 's|__projectroot__|\$(prefix)|g' \
19742	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
19743	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
19744	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
19745	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
19746	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
19747	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
19748	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
19749
19750
19751
19752# Check whether --enable-silent-rules was given.
19753if test ${enable_silent_rules+y}
19754then :
19755  enableval=$enable_silent_rules;
19756fi
19757
19758case $enable_silent_rules in # (((
19759  yes) AM_DEFAULT_VERBOSITY=0;;
19760   no) AM_DEFAULT_VERBOSITY=1;;
19761    *) AM_DEFAULT_VERBOSITY=0;;
19762esac
19763am_make=${MAKE-make}
19764{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
19765printf %s "checking whether $am_make supports nested variables... " >&6; }
19766if test ${am_cv_make_support_nested_variables+y}
19767then :
19768  printf %s "(cached) " >&6
19769else $as_nop
19770  if printf "%s\n" 'TRUE=$(BAR$(V))
19771BAR0=false
19772BAR1=true
19773V=1
19774am__doit:
19775	@$(TRUE)
19776.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
19777  am_cv_make_support_nested_variables=yes
19778else
19779  am_cv_make_support_nested_variables=no
19780fi
19781fi
19782{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
19783printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
19784if test $am_cv_make_support_nested_variables = yes; then
19785    AM_V='$(V)'
19786  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
19787else
19788  AM_V=$AM_DEFAULT_VERBOSITY
19789  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
19790fi
19791AM_BACKSLASH='\'
19792
19793
19794
19795
19796# Check whether --enable-docs was given.
19797if test ${enable_docs+y}
19798then :
19799  enableval=$enable_docs; build_docs=$enableval
19800else $as_nop
19801  build_docs=yes
19802fi
19803
19804
19805 if test x$build_docs = xyes; then
19806  ENABLE_DOCS_TRUE=
19807  ENABLE_DOCS_FALSE='#'
19808else
19809  ENABLE_DOCS_TRUE='#'
19810  ENABLE_DOCS_FALSE=
19811fi
19812
19813{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build documentation" >&5
19814printf %s "checking whether to build documentation... " >&6; }
19815{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $build_docs" >&5
19816printf "%s\n" "$build_docs" >&6; }
19817
19818
19819
19820
19821
19822# Check whether --with-xmlto was given.
19823if test ${with_xmlto+y}
19824then :
19825  withval=$with_xmlto; use_xmlto=$withval
19826else $as_nop
19827  use_xmlto=auto
19828fi
19829
19830
19831
19832if test "x$use_xmlto" = x"auto"; then
19833   # Extract the first word of "xmlto", so it can be a program name with args.
19834set dummy xmlto; ac_word=$2
19835{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19836printf %s "checking for $ac_word... " >&6; }
19837if test ${ac_cv_path_XMLTO+y}
19838then :
19839  printf %s "(cached) " >&6
19840else $as_nop
19841  case $XMLTO in
19842  [\\/]* | ?:[\\/]*)
19843  ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
19844  ;;
19845  *)
19846  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19847for as_dir in $PATH
19848do
19849  IFS=$as_save_IFS
19850  case $as_dir in #(((
19851    '') as_dir=./ ;;
19852    */) ;;
19853    *) as_dir=$as_dir/ ;;
19854  esac
19855    for ac_exec_ext in '' $ac_executable_extensions; do
19856  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19857    ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext"
19858    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19859    break 2
19860  fi
19861done
19862  done
19863IFS=$as_save_IFS
19864
19865  ;;
19866esac
19867fi
19868XMLTO=$ac_cv_path_XMLTO
19869if test -n "$XMLTO"; then
19870  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
19871printf "%s\n" "$XMLTO" >&6; }
19872else
19873  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19874printf "%s\n" "no" >&6; }
19875fi
19876
19877
19878   if test "x$XMLTO" = "x"; then
19879        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5
19880printf "%s\n" "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;}
19881	have_xmlto=no
19882   else
19883        have_xmlto=yes
19884   fi
19885elif test "x$use_xmlto" = x"yes" ; then
19886   # Extract the first word of "xmlto", so it can be a program name with args.
19887set dummy xmlto; ac_word=$2
19888{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19889printf %s "checking for $ac_word... " >&6; }
19890if test ${ac_cv_path_XMLTO+y}
19891then :
19892  printf %s "(cached) " >&6
19893else $as_nop
19894  case $XMLTO in
19895  [\\/]* | ?:[\\/]*)
19896  ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
19897  ;;
19898  *)
19899  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19900for as_dir in $PATH
19901do
19902  IFS=$as_save_IFS
19903  case $as_dir in #(((
19904    '') as_dir=./ ;;
19905    */) ;;
19906    *) as_dir=$as_dir/ ;;
19907  esac
19908    for ac_exec_ext in '' $ac_executable_extensions; do
19909  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19910    ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext"
19911    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19912    break 2
19913  fi
19914done
19915  done
19916IFS=$as_save_IFS
19917
19918  ;;
19919esac
19920fi
19921XMLTO=$ac_cv_path_XMLTO
19922if test -n "$XMLTO"; then
19923  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
19924printf "%s\n" "$XMLTO" >&6; }
19925else
19926  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19927printf "%s\n" "no" >&6; }
19928fi
19929
19930
19931   if test "x$XMLTO" = "x"; then
19932        as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5
19933   fi
19934   have_xmlto=yes
19935elif test "x$use_xmlto" = x"no" ; then
19936   if test "x$XMLTO" != "x"; then
19937      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5
19938printf "%s\n" "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;}
19939   fi
19940   have_xmlto=no
19941else
19942   as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5
19943fi
19944
19945# Test for a minimum version of xmlto, if provided.
19946if test "$have_xmlto" = yes; then
19947    # scrape the xmlto version
19948    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5
19949printf %s "checking the xmlto version... " >&6; }
19950    xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3`
19951    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5
19952printf "%s\n" "$xmlto_version" >&6; }
19953    as_arg_v1=$xmlto_version
19954as_arg_v2=0.0.22
19955awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
19956case $? in #(
19957  1) :
19958    if test "x$use_xmlto" = xauto; then
19959            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5
19960printf "%s\n" "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;}
19961            have_xmlto=no
19962        else
19963            as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5
19964        fi ;; #(
19965  0) :
19966     ;; #(
19967  2) :
19968     ;; #(
19969  *) :
19970     ;;
19971esac
19972fi
19973
19974# Test for the ability of xmlto to generate a text target
19975#
19976# NOTE: xmlto 0.0.27 or higher return a non-zero return code in the
19977# following test for empty XML docbook files.
19978# For compatibility reasons use the following empty XML docbook file and if
19979# it fails try it again with a non-empty XML file.
19980have_xmlto_text=no
19981cat > conftest.xml << "EOF"
19982EOF
19983if test "$have_xmlto" = yes
19984then :
19985  if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1
19986then :
19987  have_xmlto_text=yes
19988else $as_nop
19989  # Try it again with a non-empty XML file.
19990              cat > conftest.xml << "EOF"
19991<x></x>
19992EOF
19993              if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1
19994then :
19995  have_xmlto_text=yes
19996else $as_nop
19997  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5
19998printf "%s\n" "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;}
19999fi
20000fi
20001fi
20002rm -f conftest.xml
20003 if test $have_xmlto_text = yes; then
20004  HAVE_XMLTO_TEXT_TRUE=
20005  HAVE_XMLTO_TEXT_FALSE='#'
20006else
20007  HAVE_XMLTO_TEXT_TRUE='#'
20008  HAVE_XMLTO_TEXT_FALSE=
20009fi
20010
20011 if test "$have_xmlto" = yes; then
20012  HAVE_XMLTO_TRUE=
20013  HAVE_XMLTO_FALSE='#'
20014else
20015  HAVE_XMLTO_TRUE='#'
20016  HAVE_XMLTO_FALSE=
20017fi
20018
20019
20020
20021
20022
20023
20024# Check whether --with-fop was given.
20025if test ${with_fop+y}
20026then :
20027  withval=$with_fop; use_fop=$withval
20028else $as_nop
20029  use_fop=auto
20030fi
20031
20032
20033
20034if test "x$use_fop" = x"auto"; then
20035   # Extract the first word of "fop", so it can be a program name with args.
20036set dummy fop; ac_word=$2
20037{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20038printf %s "checking for $ac_word... " >&6; }
20039if test ${ac_cv_path_FOP+y}
20040then :
20041  printf %s "(cached) " >&6
20042else $as_nop
20043  case $FOP in
20044  [\\/]* | ?:[\\/]*)
20045  ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
20046  ;;
20047  *)
20048  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20049for as_dir in $PATH
20050do
20051  IFS=$as_save_IFS
20052  case $as_dir in #(((
20053    '') as_dir=./ ;;
20054    */) ;;
20055    *) as_dir=$as_dir/ ;;
20056  esac
20057    for ac_exec_ext in '' $ac_executable_extensions; do
20058  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20059    ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext"
20060    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20061    break 2
20062  fi
20063done
20064  done
20065IFS=$as_save_IFS
20066
20067  ;;
20068esac
20069fi
20070FOP=$ac_cv_path_FOP
20071if test -n "$FOP"; then
20072  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
20073printf "%s\n" "$FOP" >&6; }
20074else
20075  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20076printf "%s\n" "no" >&6; }
20077fi
20078
20079
20080   if test "x$FOP" = "x"; then
20081        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5
20082printf "%s\n" "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;}
20083	have_fop=no
20084   else
20085        have_fop=yes
20086   fi
20087elif test "x$use_fop" = x"yes" ; then
20088   # Extract the first word of "fop", so it can be a program name with args.
20089set dummy fop; ac_word=$2
20090{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20091printf %s "checking for $ac_word... " >&6; }
20092if test ${ac_cv_path_FOP+y}
20093then :
20094  printf %s "(cached) " >&6
20095else $as_nop
20096  case $FOP in
20097  [\\/]* | ?:[\\/]*)
20098  ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
20099  ;;
20100  *)
20101  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20102for as_dir in $PATH
20103do
20104  IFS=$as_save_IFS
20105  case $as_dir in #(((
20106    '') as_dir=./ ;;
20107    */) ;;
20108    *) as_dir=$as_dir/ ;;
20109  esac
20110    for ac_exec_ext in '' $ac_executable_extensions; do
20111  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20112    ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext"
20113    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20114    break 2
20115  fi
20116done
20117  done
20118IFS=$as_save_IFS
20119
20120  ;;
20121esac
20122fi
20123FOP=$ac_cv_path_FOP
20124if test -n "$FOP"; then
20125  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
20126printf "%s\n" "$FOP" >&6; }
20127else
20128  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20129printf "%s\n" "no" >&6; }
20130fi
20131
20132
20133   if test "x$FOP" = "x"; then
20134        as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5
20135   fi
20136   have_fop=yes
20137elif test "x$use_fop" = x"no" ; then
20138   if test "x$FOP" != "x"; then
20139      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5
20140printf "%s\n" "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;}
20141   fi
20142   have_fop=no
20143else
20144   as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5
20145fi
20146
20147# Test for a minimum version of fop, if provided.
20148
20149 if test "$have_fop" = yes; then
20150  HAVE_FOP_TRUE=
20151  HAVE_FOP_FALSE='#'
20152else
20153  HAVE_FOP_TRUE='#'
20154  HAVE_FOP_FALSE=
20155fi
20156
20157
20158
20159
20160# Preserves the interface, should it be implemented later
20161
20162
20163
20164# Check whether --with-xsltproc was given.
20165if test ${with_xsltproc+y}
20166then :
20167  withval=$with_xsltproc; use_xsltproc=$withval
20168else $as_nop
20169  use_xsltproc=auto
20170fi
20171
20172
20173
20174if test "x$use_xsltproc" = x"auto"; then
20175   # Extract the first word of "xsltproc", so it can be a program name with args.
20176set dummy xsltproc; ac_word=$2
20177{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20178printf %s "checking for $ac_word... " >&6; }
20179if test ${ac_cv_path_XSLTPROC+y}
20180then :
20181  printf %s "(cached) " >&6
20182else $as_nop
20183  case $XSLTPROC in
20184  [\\/]* | ?:[\\/]*)
20185  ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
20186  ;;
20187  *)
20188  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20189for as_dir in $PATH
20190do
20191  IFS=$as_save_IFS
20192  case $as_dir in #(((
20193    '') as_dir=./ ;;
20194    */) ;;
20195    *) as_dir=$as_dir/ ;;
20196  esac
20197    for ac_exec_ext in '' $ac_executable_extensions; do
20198  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20199    ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext"
20200    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20201    break 2
20202  fi
20203done
20204  done
20205IFS=$as_save_IFS
20206
20207  ;;
20208esac
20209fi
20210XSLTPROC=$ac_cv_path_XSLTPROC
20211if test -n "$XSLTPROC"; then
20212  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
20213printf "%s\n" "$XSLTPROC" >&6; }
20214else
20215  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20216printf "%s\n" "no" >&6; }
20217fi
20218
20219
20220   if test "x$XSLTPROC" = "x"; then
20221        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5
20222printf "%s\n" "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;}
20223	have_xsltproc=no
20224   else
20225        have_xsltproc=yes
20226   fi
20227elif test "x$use_xsltproc" = x"yes" ; then
20228   # Extract the first word of "xsltproc", so it can be a program name with args.
20229set dummy xsltproc; ac_word=$2
20230{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20231printf %s "checking for $ac_word... " >&6; }
20232if test ${ac_cv_path_XSLTPROC+y}
20233then :
20234  printf %s "(cached) " >&6
20235else $as_nop
20236  case $XSLTPROC in
20237  [\\/]* | ?:[\\/]*)
20238  ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
20239  ;;
20240  *)
20241  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20242for as_dir in $PATH
20243do
20244  IFS=$as_save_IFS
20245  case $as_dir in #(((
20246    '') as_dir=./ ;;
20247    */) ;;
20248    *) as_dir=$as_dir/ ;;
20249  esac
20250    for ac_exec_ext in '' $ac_executable_extensions; do
20251  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20252    ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext"
20253    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20254    break 2
20255  fi
20256done
20257  done
20258IFS=$as_save_IFS
20259
20260  ;;
20261esac
20262fi
20263XSLTPROC=$ac_cv_path_XSLTPROC
20264if test -n "$XSLTPROC"; then
20265  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
20266printf "%s\n" "$XSLTPROC" >&6; }
20267else
20268  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20269printf "%s\n" "no" >&6; }
20270fi
20271
20272
20273   if test "x$XSLTPROC" = "x"; then
20274        as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5
20275   fi
20276   have_xsltproc=yes
20277elif test "x$use_xsltproc" = x"no" ; then
20278   if test "x$XSLTPROC" != "x"; then
20279      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5
20280printf "%s\n" "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;}
20281   fi
20282   have_xsltproc=no
20283else
20284   as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5
20285fi
20286
20287 if test "$have_xsltproc" = yes; then
20288  HAVE_XSLTPROC_TRUE=
20289  HAVE_XSLTPROC_FALSE='#'
20290else
20291  HAVE_XSLTPROC_TRUE='#'
20292  HAVE_XSLTPROC_FALSE=
20293fi
20294
20295
20296
20297{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.8" >&5
20298printf %s "checking for X.Org SGML entities >= 1.8... " >&6; }
20299XORG_SGML_PATH=
20300if test -n "$PKG_CONFIG" && \
20301    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.8\""; } >&5
20302  ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.8") 2>&5
20303  ac_status=$?
20304  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20305  test $ac_status = 0; }; then
20306  XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools`
20307else
20308  :
20309
20310fi
20311
20312# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing
20313# the path and the name of the doc stylesheet
20314if test "x$XORG_SGML_PATH" != "x" ; then
20315   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5
20316printf "%s\n" "$XORG_SGML_PATH" >&6; }
20317   STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11
20318   XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl
20319else
20320   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20321printf "%s\n" "no" >&6; }
20322fi
20323
20324
20325
20326
20327 if test "x$XSL_STYLESHEET" != "x"; then
20328  HAVE_STYLESHEETS_TRUE=
20329  HAVE_STYLESHEETS_FALSE='#'
20330else
20331  HAVE_STYLESHEETS_TRUE='#'
20332  HAVE_STYLESHEETS_FALSE=
20333fi
20334
20335
20336
20337# Checks for programs.
20338{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
20339printf %s "checking whether ln -s works... " >&6; }
20340LN_S=$as_ln_s
20341if test "$LN_S" = "ln -s"; then
20342  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20343printf "%s\n" "yes" >&6; }
20344else
20345  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
20346printf "%s\n" "no, using $LN_S" >&6; }
20347fi
20348
20349
20350# Checks for header files.
20351ac_fn_c_check_header_compile "$LINENO" "sys/random.h" "ac_cv_header_sys_random_h" "$ac_includes_default"
20352if test "x$ac_cv_header_sys_random_h" = xyes
20353then :
20354  printf "%s\n" "#define HAVE_SYS_RANDOM_H 1" >>confdefs.h
20355
20356fi
20357
20358
20359# Checks for libraries.
20360{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing recvfrom" >&5
20361printf %s "checking for library containing recvfrom... " >&6; }
20362if test ${ac_cv_search_recvfrom+y}
20363then :
20364  printf %s "(cached) " >&6
20365else $as_nop
20366  ac_func_search_save_LIBS=$LIBS
20367cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20368/* end confdefs.h.  */
20369
20370/* Override any GCC internal prototype to avoid an error.
20371   Use char because int might match the return type of a GCC
20372   builtin and then its argument prototype would still apply.  */
20373char recvfrom ();
20374int
20375main (void)
20376{
20377return recvfrom ();
20378  ;
20379  return 0;
20380}
20381_ACEOF
20382for ac_lib in '' socket
20383do
20384  if test -z "$ac_lib"; then
20385    ac_res="none required"
20386  else
20387    ac_res=-l$ac_lib
20388    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20389  fi
20390  if ac_fn_c_try_link "$LINENO"
20391then :
20392  ac_cv_search_recvfrom=$ac_res
20393fi
20394rm -f core conftest.err conftest.$ac_objext conftest.beam \
20395    conftest$ac_exeext
20396  if test ${ac_cv_search_recvfrom+y}
20397then :
20398  break
20399fi
20400done
20401if test ${ac_cv_search_recvfrom+y}
20402then :
20403
20404else $as_nop
20405  ac_cv_search_recvfrom=no
20406fi
20407rm conftest.$ac_ext
20408LIBS=$ac_func_search_save_LIBS
20409fi
20410{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_recvfrom" >&5
20411printf "%s\n" "$ac_cv_search_recvfrom" >&6; }
20412ac_res=$ac_cv_search_recvfrom
20413if test "$ac_res" != no
20414then :
20415  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20416
20417fi
20418
20419
20420case $host_os in
20421     *mingw*)
20422        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5
20423printf %s "checking for main in -lws2_32... " >&6; }
20424if test ${ac_cv_lib_ws2_32_main+y}
20425then :
20426  printf %s "(cached) " >&6
20427else $as_nop
20428  ac_check_lib_save_LIBS=$LIBS
20429LIBS="-lws2_32  $LIBS"
20430cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20431/* end confdefs.h.  */
20432
20433
20434int
20435main (void)
20436{
20437return main ();
20438  ;
20439  return 0;
20440}
20441_ACEOF
20442if ac_fn_c_try_link "$LINENO"
20443then :
20444  ac_cv_lib_ws2_32_main=yes
20445else $as_nop
20446  ac_cv_lib_ws2_32_main=no
20447fi
20448rm -f core conftest.err conftest.$ac_objext conftest.beam \
20449    conftest$ac_exeext conftest.$ac_ext
20450LIBS=$ac_check_lib_save_LIBS
20451fi
20452{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5
20453printf "%s\n" "$ac_cv_lib_ws2_32_main" >&6; }
20454if test "x$ac_cv_lib_ws2_32_main" = xyes
20455then :
20456  printf "%s\n" "#define HAVE_LIBWS2_32 1" >>confdefs.h
20457
20458  LIBS="-lws2_32 $LIBS"
20459
20460fi
20461
20462        ;;
20463     *)
20464        ;;
20465esac
20466
20467# Checks for non-standard functions and fallback to libbsd if we can
20468# We only check for arc4random_buf, because if we have that, we don't
20469# need/use getentropy.
20470cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20471/* end confdefs.h.  */
20472
20473/* Override any GCC internal prototype to avoid an error.
20474   Use char because int might match the return type of a GCC
20475   builtin and then its argument prototype would still apply.  */
20476char arc4random_buf ();
20477int
20478main (void)
20479{
20480return arc4random_buf ();
20481  ;
20482  return 0;
20483}
20484_ACEOF
20485if ac_fn_c_try_link "$LINENO"
20486then :
20487  TRY_LIBBSD="no"
20488else $as_nop
20489  TRY_LIBBSD="yes"
20490fi
20491rm -f core conftest.err conftest.$ac_objext conftest.beam \
20492    conftest$ac_exeext conftest.$ac_ext
20493if test "x$TRY_LIBBSD" = "xyes"
20494then :
20495
20496pkg_failed=no
20497{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LIBBSD" >&5
20498printf %s "checking for LIBBSD... " >&6; }
20499
20500if test -n "$LIBBSD_CFLAGS"; then
20501    pkg_cv_LIBBSD_CFLAGS="$LIBBSD_CFLAGS"
20502 elif test -n "$PKG_CONFIG"; then
20503    if test -n "$PKG_CONFIG" && \
20504    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libbsd-overlay\""; } >&5
20505  ($PKG_CONFIG --exists --print-errors "libbsd-overlay") 2>&5
20506  ac_status=$?
20507  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20508  test $ac_status = 0; }; then
20509  pkg_cv_LIBBSD_CFLAGS=`$PKG_CONFIG --cflags "libbsd-overlay" 2>/dev/null`
20510		      test "x$?" != "x0" && pkg_failed=yes
20511else
20512  pkg_failed=yes
20513fi
20514 else
20515    pkg_failed=untried
20516fi
20517if test -n "$LIBBSD_LIBS"; then
20518    pkg_cv_LIBBSD_LIBS="$LIBBSD_LIBS"
20519 elif test -n "$PKG_CONFIG"; then
20520    if test -n "$PKG_CONFIG" && \
20521    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libbsd-overlay\""; } >&5
20522  ($PKG_CONFIG --exists --print-errors "libbsd-overlay") 2>&5
20523  ac_status=$?
20524  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20525  test $ac_status = 0; }; then
20526  pkg_cv_LIBBSD_LIBS=`$PKG_CONFIG --libs "libbsd-overlay" 2>/dev/null`
20527		      test "x$?" != "x0" && pkg_failed=yes
20528else
20529  pkg_failed=yes
20530fi
20531 else
20532    pkg_failed=untried
20533fi
20534
20535
20536
20537if test $pkg_failed = yes; then
20538   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20539printf "%s\n" "no" >&6; }
20540
20541if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20542        _pkg_short_errors_supported=yes
20543else
20544        _pkg_short_errors_supported=no
20545fi
20546        if test $_pkg_short_errors_supported = yes; then
20547	        LIBBSD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libbsd-overlay" 2>&1`
20548        else
20549	        LIBBSD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libbsd-overlay" 2>&1`
20550        fi
20551	# Put the nasty error message in config.log where it belongs
20552	echo "$LIBBSD_PKG_ERRORS" >&5
20553
20554	:
20555elif test $pkg_failed = untried; then
20556     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20557printf "%s\n" "no" >&6; }
20558	:
20559else
20560	LIBBSD_CFLAGS=$pkg_cv_LIBBSD_CFLAGS
20561	LIBBSD_LIBS=$pkg_cv_LIBBSD_LIBS
20562        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20563printf "%s\n" "yes" >&6; }
20564
20565	CFLAGS="$CFLAGS $LIBBSD_CFLAGS"
20566	LIBS="$LIBS $LIBBSD_LIBS"
20567
20568fi
20569fi
20570
20571# Checks for library functions.
20572ac_fn_c_check_func "$LINENO" "srand48" "ac_cv_func_srand48"
20573if test "x$ac_cv_func_srand48" = xyes
20574then :
20575  printf "%s\n" "#define HAVE_SRAND48 1" >>confdefs.h
20576
20577fi
20578ac_fn_c_check_func "$LINENO" "lrand48" "ac_cv_func_lrand48"
20579if test "x$ac_cv_func_lrand48" = xyes
20580then :
20581  printf "%s\n" "#define HAVE_LRAND48 1" >>confdefs.h
20582
20583fi
20584ac_fn_c_check_func "$LINENO" "arc4random_buf" "ac_cv_func_arc4random_buf"
20585if test "x$ac_cv_func_arc4random_buf" = xyes
20586then :
20587  printf "%s\n" "#define HAVE_ARC4RANDOM_BUF 1" >>confdefs.h
20588
20589fi
20590ac_fn_c_check_func "$LINENO" "getentropy" "ac_cv_func_getentropy"
20591if test "x$ac_cv_func_getentropy" = xyes
20592then :
20593  printf "%s\n" "#define HAVE_GETENTROPY 1" >>confdefs.h
20594
20595fi
20596
20597
20598# Obtain compiler/linker options for dependencies
20599
20600pkg_failed=no
20601{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XDMCP" >&5
20602printf %s "checking for XDMCP... " >&6; }
20603
20604if test -n "$XDMCP_CFLAGS"; then
20605    pkg_cv_XDMCP_CFLAGS="$XDMCP_CFLAGS"
20606 elif test -n "$PKG_CONFIG"; then
20607    if test -n "$PKG_CONFIG" && \
20608    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5
20609  ($PKG_CONFIG --exists --print-errors "xproto") 2>&5
20610  ac_status=$?
20611  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20612  test $ac_status = 0; }; then
20613  pkg_cv_XDMCP_CFLAGS=`$PKG_CONFIG --cflags "xproto" 2>/dev/null`
20614		      test "x$?" != "x0" && pkg_failed=yes
20615else
20616  pkg_failed=yes
20617fi
20618 else
20619    pkg_failed=untried
20620fi
20621if test -n "$XDMCP_LIBS"; then
20622    pkg_cv_XDMCP_LIBS="$XDMCP_LIBS"
20623 elif test -n "$PKG_CONFIG"; then
20624    if test -n "$PKG_CONFIG" && \
20625    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5
20626  ($PKG_CONFIG --exists --print-errors "xproto") 2>&5
20627  ac_status=$?
20628  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20629  test $ac_status = 0; }; then
20630  pkg_cv_XDMCP_LIBS=`$PKG_CONFIG --libs "xproto" 2>/dev/null`
20631		      test "x$?" != "x0" && pkg_failed=yes
20632else
20633  pkg_failed=yes
20634fi
20635 else
20636    pkg_failed=untried
20637fi
20638
20639
20640
20641if test $pkg_failed = yes; then
20642   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20643printf "%s\n" "no" >&6; }
20644
20645if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20646        _pkg_short_errors_supported=yes
20647else
20648        _pkg_short_errors_supported=no
20649fi
20650        if test $_pkg_short_errors_supported = yes; then
20651	        XDMCP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto" 2>&1`
20652        else
20653	        XDMCP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto" 2>&1`
20654        fi
20655	# Put the nasty error message in config.log where it belongs
20656	echo "$XDMCP_PKG_ERRORS" >&5
20657
20658	as_fn_error $? "Package requirements (xproto) were not met:
20659
20660$XDMCP_PKG_ERRORS
20661
20662Consider adjusting the PKG_CONFIG_PATH environment variable if you
20663installed software in a non-standard prefix.
20664
20665Alternatively, you may set the environment variables XDMCP_CFLAGS
20666and XDMCP_LIBS to avoid the need to call pkg-config.
20667See the pkg-config man page for more details." "$LINENO" 5
20668elif test $pkg_failed = untried; then
20669     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20670printf "%s\n" "no" >&6; }
20671	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20672printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
20673as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
20674is in your PATH or set the PKG_CONFIG environment variable to the full
20675path to pkg-config.
20676
20677Alternatively, you may set the environment variables XDMCP_CFLAGS
20678and XDMCP_LIBS to avoid the need to call pkg-config.
20679See the pkg-config man page for more details.
20680
20681To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20682See \`config.log' for more details" "$LINENO" 5; }
20683else
20684	XDMCP_CFLAGS=$pkg_cv_XDMCP_CFLAGS
20685	XDMCP_LIBS=$pkg_cv_XDMCP_LIBS
20686        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20687printf "%s\n" "yes" >&6; }
20688
20689fi
20690
20691if test -f ${srcdir}/Wraphelp.c; then
20692
20693printf "%s\n" "#define HASXDMAUTH 1" >>confdefs.h
20694
20695	HASXDMAUTH=yes
20696else
20697	HASXDMAUTH=no
20698fi
20699
20700 if test x$HASXDMAUTH = xyes; then
20701  HASXDMAUTH_TRUE=
20702  HASXDMAUTH_FALSE='#'
20703else
20704  HASXDMAUTH_TRUE='#'
20705  HASXDMAUTH_FALSE=
20706fi
20707
20708
20709# Allow checking code with lint, sparse, etc.
20710
20711
20712
20713
20714
20715# Check whether --with-lint was given.
20716if test ${with_lint+y}
20717then :
20718  withval=$with_lint; use_lint=$withval
20719else $as_nop
20720  use_lint=no
20721fi
20722
20723
20724# Obtain platform specific info like program name and options
20725# The lint program on FreeBSD and NetBSD is different from the one on Solaris
20726case $host_os in
20727  *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
20728	lint_name=splint
20729	lint_options="-badflag"
20730	;;
20731  *freebsd* | *netbsd*)
20732	lint_name=lint
20733	lint_options="-u -b"
20734	;;
20735  *solaris*)
20736	lint_name=lint
20737	lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
20738	;;
20739esac
20740
20741# Test for the presence of the program (either guessed by the code or spelled out by the user)
20742if test "x$use_lint" = x"yes" ; then
20743   # Extract the first word of "$lint_name", so it can be a program name with args.
20744set dummy $lint_name; ac_word=$2
20745{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20746printf %s "checking for $ac_word... " >&6; }
20747if test ${ac_cv_path_LINT+y}
20748then :
20749  printf %s "(cached) " >&6
20750else $as_nop
20751  case $LINT in
20752  [\\/]* | ?:[\\/]*)
20753  ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
20754  ;;
20755  *)
20756  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20757for as_dir in $PATH
20758do
20759  IFS=$as_save_IFS
20760  case $as_dir in #(((
20761    '') as_dir=./ ;;
20762    */) ;;
20763    *) as_dir=$as_dir/ ;;
20764  esac
20765    for ac_exec_ext in '' $ac_executable_extensions; do
20766  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20767    ac_cv_path_LINT="$as_dir$ac_word$ac_exec_ext"
20768    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20769    break 2
20770  fi
20771done
20772  done
20773IFS=$as_save_IFS
20774
20775  ;;
20776esac
20777fi
20778LINT=$ac_cv_path_LINT
20779if test -n "$LINT"; then
20780  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
20781printf "%s\n" "$LINT" >&6; }
20782else
20783  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20784printf "%s\n" "no" >&6; }
20785fi
20786
20787
20788   if test "x$LINT" = "x"; then
20789        as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
20790   fi
20791elif test "x$use_lint" = x"no" ; then
20792   if test "x$LINT" != "x"; then
20793      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
20794printf "%s\n" "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
20795   fi
20796else
20797   as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
20798fi
20799
20800# User supplied flags override default flags
20801if test "x$LINT_FLAGS" != "x"; then
20802   lint_options=$LINT_FLAGS
20803fi
20804
20805LINT_FLAGS=$lint_options
20806
20807 if test "x$LINT" != x; then
20808  LINT_TRUE=
20809  LINT_FALSE='#'
20810else
20811  LINT_TRUE='#'
20812  LINT_FALSE=
20813fi
20814
20815
20816
20817
20818
20819# Check whether --enable-lint-library was given.
20820if test ${enable_lint_library+y}
20821then :
20822  enableval=$enable_lint_library; make_lint_lib=$enableval
20823else $as_nop
20824  make_lint_lib=no
20825fi
20826
20827
20828if test "x$make_lint_lib" = x"yes" ; then
20829   LINTLIB=llib-lXdmcp.ln
20830   if test "x$LINT" = "x"; then
20831        as_fn_error $? "Cannot make lint library without --with-lint" "$LINENO" 5
20832   fi
20833elif test "x$make_lint_lib" != x"no" ; then
20834   as_fn_error $? "--enable-lint-library expects 'yes' or 'no'." "$LINENO" 5
20835fi
20836
20837
20838 if test x$make_lint_lib != xno; then
20839  MAKE_LINT_LIB_TRUE=
20840  MAKE_LINT_LIB_FALSE='#'
20841else
20842  MAKE_LINT_LIB_TRUE='#'
20843  MAKE_LINT_LIB_FALSE=
20844fi
20845
20846
20847
20848
20849#  --enable-unit-tests
20850
20851
20852
20853
20854
20855# Check for different types of support on different platforms
20856case $host_os in
20857    solaris*)
20858        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
20859printf %s "checking for umem_alloc in -lumem... " >&6; }
20860if test ${ac_cv_lib_umem_umem_alloc+y}
20861then :
20862  printf %s "(cached) " >&6
20863else $as_nop
20864  ac_check_lib_save_LIBS=$LIBS
20865LIBS="-lumem  $LIBS"
20866cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20867/* end confdefs.h.  */
20868
20869/* Override any GCC internal prototype to avoid an error.
20870   Use char because int might match the return type of a GCC
20871   builtin and then its argument prototype would still apply.  */
20872char umem_alloc ();
20873int
20874main (void)
20875{
20876return umem_alloc ();
20877  ;
20878  return 0;
20879}
20880_ACEOF
20881if ac_fn_c_try_link "$LINENO"
20882then :
20883  ac_cv_lib_umem_umem_alloc=yes
20884else $as_nop
20885  ac_cv_lib_umem_umem_alloc=no
20886fi
20887rm -f core conftest.err conftest.$ac_objext conftest.beam \
20888    conftest$ac_exeext conftest.$ac_ext
20889LIBS=$ac_check_lib_save_LIBS
20890fi
20891{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
20892printf "%s\n" "$ac_cv_lib_umem_umem_alloc" >&6; }
20893if test "x$ac_cv_lib_umem_umem_alloc" = xyes
20894then :
20895  malloc_debug_env='LD_PRELOAD=libumem.so UMEM_DEBUG=default'
20896fi
20897
20898        ;;
20899    *-gnu*) # GNU libc - Value is used as a single byte bit pattern,
20900        # both directly and inverted, so should not be 0 or 255.
20901        malloc_debug_env='MALLOC_PERTURB_=15'
20902        ;;
20903    darwin*)
20904        malloc_debug_env='MallocPreScribble=1 MallocScribble=1 DYLD_INSERT_LIBRARIES=/usr/lib/libgmalloc.dylib'
20905        ;;
20906    *bsd*)
20907        malloc_debug_env='MallocPreScribble=1 MallocScribble=1'
20908        ;;
20909esac
20910
20911# User supplied flags override default flags
20912if test "x$XORG_MALLOC_DEBUG_ENV" != "x"; then
20913    malloc_debug_env="$XORG_MALLOC_DEBUG_ENV"
20914fi
20915
20916XORG_MALLOC_DEBUG_ENV=$malloc_debug_env
20917
20918
20919
20920
20921
20922
20923
20924# Check whether --enable-unit-tests was given.
20925if test ${enable_unit_tests+y}
20926then :
20927  enableval=$enable_unit_tests; enable_unit_tests=$enableval
20928else $as_nop
20929  enable_unit_tests=yes
20930fi
20931
20932
20933 if test "x$enable_unit_tests" != xno; then
20934  ENABLE_UNIT_TESTS_TRUE=
20935  ENABLE_UNIT_TESTS_FALSE='#'
20936else
20937  ENABLE_UNIT_TESTS_TRUE='#'
20938  ENABLE_UNIT_TESTS_FALSE=
20939fi
20940
20941{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build unit test cases" >&5
20942printf %s "checking whether to build unit test cases... " >&6; }
20943{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_unit_tests" >&5
20944printf "%s\n" "$enable_unit_tests" >&6; }
20945
20946
20947ac_config_files="$ac_config_files Makefile doc/Makefile test/Makefile xdmcp.pc"
20948
20949cat >confcache <<\_ACEOF
20950# This file is a shell script that caches the results of configure
20951# tests run on this system so they can be shared between configure
20952# scripts and configure runs, see configure's option --config-cache.
20953# It is not useful on other systems.  If it contains results you don't
20954# want to keep, you may remove or edit it.
20955#
20956# config.status only pays attention to the cache file if you give it
20957# the --recheck option to rerun configure.
20958#
20959# `ac_cv_env_foo' variables (set or unset) will be overridden when
20960# loading this file, other *unset* `ac_cv_foo' will be assigned the
20961# following values.
20962
20963_ACEOF
20964
20965# The following way of writing the cache mishandles newlines in values,
20966# but we know of no workaround that is simple, portable, and efficient.
20967# So, we kill variables containing newlines.
20968# Ultrix sh set writes to stderr and can't be redirected directly,
20969# and sets the high bit in the cache file unless we assign to the vars.
20970(
20971  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20972    eval ac_val=\$$ac_var
20973    case $ac_val in #(
20974    *${as_nl}*)
20975      case $ac_var in #(
20976      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20977printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20978      esac
20979      case $ac_var in #(
20980      _ | IFS | as_nl) ;; #(
20981      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20982      *) { eval $ac_var=; unset $ac_var;} ;;
20983      esac ;;
20984    esac
20985  done
20986
20987  (set) 2>&1 |
20988    case $as_nl`(ac_space=' '; set) 2>&1` in #(
20989    *${as_nl}ac_space=\ *)
20990      # `set' does not quote correctly, so add quotes: double-quote
20991      # substitution turns \\\\ into \\, and sed turns \\ into \.
20992      sed -n \
20993	"s/'/'\\\\''/g;
20994	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20995      ;; #(
20996    *)
20997      # `set' quotes correctly as required by POSIX, so do not add quotes.
20998      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20999      ;;
21000    esac |
21001    sort
21002) |
21003  sed '
21004     /^ac_cv_env_/b end
21005     t clear
21006     :clear
21007     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
21008     t end
21009     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21010     :end' >>confcache
21011if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21012  if test -w "$cache_file"; then
21013    if test "x$cache_file" != "x/dev/null"; then
21014      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21015printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
21016      if test ! -f "$cache_file" || test -h "$cache_file"; then
21017	cat confcache >"$cache_file"
21018      else
21019        case $cache_file in #(
21020        */* | ?:*)
21021	  mv -f confcache "$cache_file"$$ &&
21022	  mv -f "$cache_file"$$ "$cache_file" ;; #(
21023        *)
21024	  mv -f confcache "$cache_file" ;;
21025	esac
21026      fi
21027    fi
21028  else
21029    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21030printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
21031  fi
21032fi
21033rm -f confcache
21034
21035test "x$prefix" = xNONE && prefix=$ac_default_prefix
21036# Let make expand exec_prefix.
21037test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21038
21039DEFS=-DHAVE_CONFIG_H
21040
21041ac_libobjs=
21042ac_ltlibobjs=
21043U=
21044for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21045  # 1. Remove the extension, and $U if already installed.
21046  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21047  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
21048  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21049  #    will be set to the directory where LIBOBJS objects are built.
21050  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21051  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
21052done
21053LIBOBJS=$ac_libobjs
21054
21055LTLIBOBJS=$ac_ltlibobjs
21056
21057
21058{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
21059printf %s "checking that generated files are newer than configure... " >&6; }
21060   if test -n "$am_sleep_pid"; then
21061     # Hide warnings about reused PIDs.
21062     wait $am_sleep_pid 2>/dev/null
21063   fi
21064   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
21065printf "%s\n" "done" >&6; }
21066if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21067  as_fn_error $? "conditional \"AMDEP\" was never defined.
21068Usually this means the macro was only invoked conditionally." "$LINENO" 5
21069fi
21070if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21071  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21072Usually this means the macro was only invoked conditionally." "$LINENO" 5
21073fi
21074 if test -n "$EXEEXT"; then
21075  am__EXEEXT_TRUE=
21076  am__EXEEXT_FALSE='#'
21077else
21078  am__EXEEXT_TRUE='#'
21079  am__EXEEXT_FALSE=
21080fi
21081
21082if test -z "${ENABLE_DOCS_TRUE}" && test -z "${ENABLE_DOCS_FALSE}"; then
21083  as_fn_error $? "conditional \"ENABLE_DOCS\" was never defined.
21084Usually this means the macro was only invoked conditionally." "$LINENO" 5
21085fi
21086if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then
21087  as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined.
21088Usually this means the macro was only invoked conditionally." "$LINENO" 5
21089fi
21090if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
21091  as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined.
21092Usually this means the macro was only invoked conditionally." "$LINENO" 5
21093fi
21094if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then
21095  as_fn_error $? "conditional \"HAVE_FOP\" was never defined.
21096Usually this means the macro was only invoked conditionally." "$LINENO" 5
21097fi
21098if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then
21099  as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined.
21100Usually this means the macro was only invoked conditionally." "$LINENO" 5
21101fi
21102if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then
21103  as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined.
21104Usually this means the macro was only invoked conditionally." "$LINENO" 5
21105fi
21106if test -z "${HASXDMAUTH_TRUE}" && test -z "${HASXDMAUTH_FALSE}"; then
21107  as_fn_error $? "conditional \"HASXDMAUTH\" was never defined.
21108Usually this means the macro was only invoked conditionally." "$LINENO" 5
21109fi
21110if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
21111  as_fn_error $? "conditional \"LINT\" was never defined.
21112Usually this means the macro was only invoked conditionally." "$LINENO" 5
21113fi
21114if test -z "${MAKE_LINT_LIB_TRUE}" && test -z "${MAKE_LINT_LIB_FALSE}"; then
21115  as_fn_error $? "conditional \"MAKE_LINT_LIB\" was never defined.
21116Usually this means the macro was only invoked conditionally." "$LINENO" 5
21117fi
21118if test -z "${ENABLE_UNIT_TESTS_TRUE}" && test -z "${ENABLE_UNIT_TESTS_FALSE}"; then
21119  as_fn_error $? "conditional \"ENABLE_UNIT_TESTS\" was never defined.
21120Usually this means the macro was only invoked conditionally." "$LINENO" 5
21121fi
21122
21123: "${CONFIG_STATUS=./config.status}"
21124ac_write_fail=0
21125ac_clean_files_save=$ac_clean_files
21126ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21127{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21128printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
21129as_write_fail=0
21130cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21131#! $SHELL
21132# Generated by $as_me.
21133# Run this file to recreate the current configuration.
21134# Compiler output produced by configure, useful for debugging
21135# configure, is in config.log if it exists.
21136
21137debug=false
21138ac_cs_recheck=false
21139ac_cs_silent=false
21140
21141SHELL=\${CONFIG_SHELL-$SHELL}
21142export SHELL
21143_ASEOF
21144cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
21145## -------------------- ##
21146## M4sh Initialization. ##
21147## -------------------- ##
21148
21149# Be more Bourne compatible
21150DUALCASE=1; export DUALCASE # for MKS sh
21151as_nop=:
21152if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21153then :
21154  emulate sh
21155  NULLCMD=:
21156  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21157  # is contrary to our usage.  Disable this feature.
21158  alias -g '${1+"$@"}'='"$@"'
21159  setopt NO_GLOB_SUBST
21160else $as_nop
21161  case `(set -o) 2>/dev/null` in #(
21162  *posix*) :
21163    set -o posix ;; #(
21164  *) :
21165     ;;
21166esac
21167fi
21168
21169
21170
21171# Reset variables that may have inherited troublesome values from
21172# the environment.
21173
21174# IFS needs to be set, to space, tab, and newline, in precisely that order.
21175# (If _AS_PATH_WALK were called with IFS unset, it would have the
21176# side effect of setting IFS to empty, thus disabling word splitting.)
21177# Quoting is to prevent editors from complaining about space-tab.
21178as_nl='
21179'
21180export as_nl
21181IFS=" ""	$as_nl"
21182
21183PS1='$ '
21184PS2='> '
21185PS4='+ '
21186
21187# Ensure predictable behavior from utilities with locale-dependent output.
21188LC_ALL=C
21189export LC_ALL
21190LANGUAGE=C
21191export LANGUAGE
21192
21193# We cannot yet rely on "unset" to work, but we need these variables
21194# to be unset--not just set to an empty or harmless value--now, to
21195# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
21196# also avoids known problems related to "unset" and subshell syntax
21197# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
21198for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
21199do eval test \${$as_var+y} \
21200  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21201done
21202
21203# Ensure that fds 0, 1, and 2 are open.
21204if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
21205if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
21206if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
21207
21208# The user is always right.
21209if ${PATH_SEPARATOR+false} :; then
21210  PATH_SEPARATOR=:
21211  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21212    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21213      PATH_SEPARATOR=';'
21214  }
21215fi
21216
21217
21218# Find who we are.  Look in the path if we contain no directory separator.
21219as_myself=
21220case $0 in #((
21221  *[\\/]* ) as_myself=$0 ;;
21222  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21223for as_dir in $PATH
21224do
21225  IFS=$as_save_IFS
21226  case $as_dir in #(((
21227    '') as_dir=./ ;;
21228    */) ;;
21229    *) as_dir=$as_dir/ ;;
21230  esac
21231    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
21232  done
21233IFS=$as_save_IFS
21234
21235     ;;
21236esac
21237# We did not find ourselves, most probably we were run as `sh COMMAND'
21238# in which case we are not to be found in the path.
21239if test "x$as_myself" = x; then
21240  as_myself=$0
21241fi
21242if test ! -f "$as_myself"; then
21243  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21244  exit 1
21245fi
21246
21247
21248
21249# as_fn_error STATUS ERROR [LINENO LOG_FD]
21250# ----------------------------------------
21251# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21252# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21253# script with STATUS, using 1 if that was 0.
21254as_fn_error ()
21255{
21256  as_status=$1; test $as_status -eq 0 && as_status=1
21257  if test "$4"; then
21258    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21259    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
21260  fi
21261  printf "%s\n" "$as_me: error: $2" >&2
21262  as_fn_exit $as_status
21263} # as_fn_error
21264
21265
21266
21267# as_fn_set_status STATUS
21268# -----------------------
21269# Set $? to STATUS, without forking.
21270as_fn_set_status ()
21271{
21272  return $1
21273} # as_fn_set_status
21274
21275# as_fn_exit STATUS
21276# -----------------
21277# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21278as_fn_exit ()
21279{
21280  set +e
21281  as_fn_set_status $1
21282  exit $1
21283} # as_fn_exit
21284
21285# as_fn_unset VAR
21286# ---------------
21287# Portably unset VAR.
21288as_fn_unset ()
21289{
21290  { eval $1=; unset $1;}
21291}
21292as_unset=as_fn_unset
21293
21294# as_fn_append VAR VALUE
21295# ----------------------
21296# Append the text in VALUE to the end of the definition contained in VAR. Take
21297# advantage of any shell optimizations that allow amortized linear growth over
21298# repeated appends, instead of the typical quadratic growth present in naive
21299# implementations.
21300if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
21301then :
21302  eval 'as_fn_append ()
21303  {
21304    eval $1+=\$2
21305  }'
21306else $as_nop
21307  as_fn_append ()
21308  {
21309    eval $1=\$$1\$2
21310  }
21311fi # as_fn_append
21312
21313# as_fn_arith ARG...
21314# ------------------
21315# Perform arithmetic evaluation on the ARGs, and store the result in the
21316# global $as_val. Take advantage of shells that can avoid forks. The arguments
21317# must be portable across $(()) and expr.
21318if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
21319then :
21320  eval 'as_fn_arith ()
21321  {
21322    as_val=$(( $* ))
21323  }'
21324else $as_nop
21325  as_fn_arith ()
21326  {
21327    as_val=`expr "$@" || test $? -eq 1`
21328  }
21329fi # as_fn_arith
21330
21331
21332if expr a : '\(a\)' >/dev/null 2>&1 &&
21333   test "X`expr 00001 : '.*\(...\)'`" = X001; then
21334  as_expr=expr
21335else
21336  as_expr=false
21337fi
21338
21339if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21340  as_basename=basename
21341else
21342  as_basename=false
21343fi
21344
21345if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21346  as_dirname=dirname
21347else
21348  as_dirname=false
21349fi
21350
21351as_me=`$as_basename -- "$0" ||
21352$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21353	 X"$0" : 'X\(//\)$' \| \
21354	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21355printf "%s\n" X/"$0" |
21356    sed '/^.*\/\([^/][^/]*\)\/*$/{
21357	    s//\1/
21358	    q
21359	  }
21360	  /^X\/\(\/\/\)$/{
21361	    s//\1/
21362	    q
21363	  }
21364	  /^X\/\(\/\).*/{
21365	    s//\1/
21366	    q
21367	  }
21368	  s/.*/./; q'`
21369
21370# Avoid depending upon Character Ranges.
21371as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21372as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21373as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21374as_cr_digits='0123456789'
21375as_cr_alnum=$as_cr_Letters$as_cr_digits
21376
21377
21378# Determine whether it's possible to make 'echo' print without a newline.
21379# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
21380# for compatibility with existing Makefiles.
21381ECHO_C= ECHO_N= ECHO_T=
21382case `echo -n x` in #(((((
21383-n*)
21384  case `echo 'xy\c'` in
21385  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
21386  xy)  ECHO_C='\c';;
21387  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
21388       ECHO_T='	';;
21389  esac;;
21390*)
21391  ECHO_N='-n';;
21392esac
21393
21394# For backward compatibility with old third-party macros, we provide
21395# the shell variables $as_echo and $as_echo_n.  New code should use
21396# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
21397as_echo='printf %s\n'
21398as_echo_n='printf %s'
21399
21400rm -f conf$$ conf$$.exe conf$$.file
21401if test -d conf$$.dir; then
21402  rm -f conf$$.dir/conf$$.file
21403else
21404  rm -f conf$$.dir
21405  mkdir conf$$.dir 2>/dev/null
21406fi
21407if (echo >conf$$.file) 2>/dev/null; then
21408  if ln -s conf$$.file conf$$ 2>/dev/null; then
21409    as_ln_s='ln -s'
21410    # ... but there are two gotchas:
21411    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21412    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21413    # In both cases, we have to default to `cp -pR'.
21414    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21415      as_ln_s='cp -pR'
21416  elif ln conf$$.file conf$$ 2>/dev/null; then
21417    as_ln_s=ln
21418  else
21419    as_ln_s='cp -pR'
21420  fi
21421else
21422  as_ln_s='cp -pR'
21423fi
21424rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21425rmdir conf$$.dir 2>/dev/null
21426
21427
21428# as_fn_mkdir_p
21429# -------------
21430# Create "$as_dir" as a directory, including parents if necessary.
21431as_fn_mkdir_p ()
21432{
21433
21434  case $as_dir in #(
21435  -*) as_dir=./$as_dir;;
21436  esac
21437  test -d "$as_dir" || eval $as_mkdir_p || {
21438    as_dirs=
21439    while :; do
21440      case $as_dir in #(
21441      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21442      *) as_qdir=$as_dir;;
21443      esac
21444      as_dirs="'$as_qdir' $as_dirs"
21445      as_dir=`$as_dirname -- "$as_dir" ||
21446$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21447	 X"$as_dir" : 'X\(//\)[^/]' \| \
21448	 X"$as_dir" : 'X\(//\)$' \| \
21449	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21450printf "%s\n" X"$as_dir" |
21451    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21452	    s//\1/
21453	    q
21454	  }
21455	  /^X\(\/\/\)[^/].*/{
21456	    s//\1/
21457	    q
21458	  }
21459	  /^X\(\/\/\)$/{
21460	    s//\1/
21461	    q
21462	  }
21463	  /^X\(\/\).*/{
21464	    s//\1/
21465	    q
21466	  }
21467	  s/.*/./; q'`
21468      test -d "$as_dir" && break
21469    done
21470    test -z "$as_dirs" || eval "mkdir $as_dirs"
21471  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21472
21473
21474} # as_fn_mkdir_p
21475if mkdir -p . 2>/dev/null; then
21476  as_mkdir_p='mkdir -p "$as_dir"'
21477else
21478  test -d ./-p && rmdir ./-p
21479  as_mkdir_p=false
21480fi
21481
21482
21483# as_fn_executable_p FILE
21484# -----------------------
21485# Test if FILE is an executable regular file.
21486as_fn_executable_p ()
21487{
21488  test -f "$1" && test -x "$1"
21489} # as_fn_executable_p
21490as_test_x='test -x'
21491as_executable_p=as_fn_executable_p
21492
21493# Sed expression to map a string onto a valid CPP name.
21494as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21495
21496# Sed expression to map a string onto a valid variable name.
21497as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21498
21499
21500exec 6>&1
21501## ----------------------------------- ##
21502## Main body of $CONFIG_STATUS script. ##
21503## ----------------------------------- ##
21504_ASEOF
21505test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21506
21507cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21508# Save the log message, to keep $0 and so on meaningful, and to
21509# report actual input values of CONFIG_FILES etc. instead of their
21510# values after options handling.
21511ac_log="
21512This file was extended by libXdmcp $as_me 1.1.4, which was
21513generated by GNU Autoconf 2.71.  Invocation command line was
21514
21515  CONFIG_FILES    = $CONFIG_FILES
21516  CONFIG_HEADERS  = $CONFIG_HEADERS
21517  CONFIG_LINKS    = $CONFIG_LINKS
21518  CONFIG_COMMANDS = $CONFIG_COMMANDS
21519  $ $0 $@
21520
21521on `(hostname || uname -n) 2>/dev/null | sed 1q`
21522"
21523
21524_ACEOF
21525
21526case $ac_config_files in *"
21527"*) set x $ac_config_files; shift; ac_config_files=$*;;
21528esac
21529
21530case $ac_config_headers in *"
21531"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21532esac
21533
21534
21535cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21536# Files that config.status was made for.
21537config_files="$ac_config_files"
21538config_headers="$ac_config_headers"
21539config_commands="$ac_config_commands"
21540
21541_ACEOF
21542
21543cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21544ac_cs_usage="\
21545\`$as_me' instantiates files and other configuration actions
21546from templates according to the current configuration.  Unless the files
21547and actions are specified as TAGs, all are instantiated by default.
21548
21549Usage: $0 [OPTION]... [TAG]...
21550
21551  -h, --help       print this help, then exit
21552  -V, --version    print version number and configuration settings, then exit
21553      --config     print configuration, then exit
21554  -q, --quiet, --silent
21555                   do not print progress messages
21556  -d, --debug      don't remove temporary files
21557      --recheck    update $as_me by reconfiguring in the same conditions
21558      --file=FILE[:TEMPLATE]
21559                   instantiate the configuration file FILE
21560      --header=FILE[:TEMPLATE]
21561                   instantiate the configuration header FILE
21562
21563Configuration files:
21564$config_files
21565
21566Configuration headers:
21567$config_headers
21568
21569Configuration commands:
21570$config_commands
21571
21572Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxdmcp/-/issues>."
21573
21574_ACEOF
21575ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
21576ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
21577cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21578ac_cs_config='$ac_cs_config_escaped'
21579ac_cs_version="\\
21580libXdmcp config.status 1.1.4
21581configured by $0, generated by GNU Autoconf 2.71,
21582  with options \\"\$ac_cs_config\\"
21583
21584Copyright (C) 2021 Free Software Foundation, Inc.
21585This config.status script is free software; the Free Software Foundation
21586gives unlimited permission to copy, distribute and modify it."
21587
21588ac_pwd='$ac_pwd'
21589srcdir='$srcdir'
21590INSTALL='$INSTALL'
21591MKDIR_P='$MKDIR_P'
21592AWK='$AWK'
21593test -n "\$AWK" || AWK=awk
21594_ACEOF
21595
21596cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21597# The default lists apply if the user does not specify any file.
21598ac_need_defaults=:
21599while test $# != 0
21600do
21601  case $1 in
21602  --*=?*)
21603    ac_option=`expr "X$1" : 'X\([^=]*\)='`
21604    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21605    ac_shift=:
21606    ;;
21607  --*=)
21608    ac_option=`expr "X$1" : 'X\([^=]*\)='`
21609    ac_optarg=
21610    ac_shift=:
21611    ;;
21612  *)
21613    ac_option=$1
21614    ac_optarg=$2
21615    ac_shift=shift
21616    ;;
21617  esac
21618
21619  case $ac_option in
21620  # Handling of the options.
21621  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21622    ac_cs_recheck=: ;;
21623  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21624    printf "%s\n" "$ac_cs_version"; exit ;;
21625  --config | --confi | --conf | --con | --co | --c )
21626    printf "%s\n" "$ac_cs_config"; exit ;;
21627  --debug | --debu | --deb | --de | --d | -d )
21628    debug=: ;;
21629  --file | --fil | --fi | --f )
21630    $ac_shift
21631    case $ac_optarg in
21632    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21633    '') as_fn_error $? "missing file argument" ;;
21634    esac
21635    as_fn_append CONFIG_FILES " '$ac_optarg'"
21636    ac_need_defaults=false;;
21637  --header | --heade | --head | --hea )
21638    $ac_shift
21639    case $ac_optarg in
21640    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21641    esac
21642    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21643    ac_need_defaults=false;;
21644  --he | --h)
21645    # Conflict between --help and --header
21646    as_fn_error $? "ambiguous option: \`$1'
21647Try \`$0 --help' for more information.";;
21648  --help | --hel | -h )
21649    printf "%s\n" "$ac_cs_usage"; exit ;;
21650  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21651  | -silent | --silent | --silen | --sile | --sil | --si | --s)
21652    ac_cs_silent=: ;;
21653
21654  # This is an error.
21655  -*) as_fn_error $? "unrecognized option: \`$1'
21656Try \`$0 --help' for more information." ;;
21657
21658  *) as_fn_append ac_config_targets " $1"
21659     ac_need_defaults=false ;;
21660
21661  esac
21662  shift
21663done
21664
21665ac_configure_extra_args=
21666
21667if $ac_cs_silent; then
21668  exec 6>/dev/null
21669  ac_configure_extra_args="$ac_configure_extra_args --silent"
21670fi
21671
21672_ACEOF
21673cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21674if \$ac_cs_recheck; then
21675  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21676  shift
21677  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
21678  CONFIG_SHELL='$SHELL'
21679  export CONFIG_SHELL
21680  exec "\$@"
21681fi
21682
21683_ACEOF
21684cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21685exec 5>>config.log
21686{
21687  echo
21688  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21689## Running $as_me. ##
21690_ASBOX
21691  printf "%s\n" "$ac_log"
21692} >&5
21693
21694_ACEOF
21695cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21696#
21697# INIT-COMMANDS
21698#
21699AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
21700
21701
21702# The HP-UX ksh and POSIX shell print the target directory to stdout
21703# if CDPATH is set.
21704(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21705
21706sed_quote_subst='$sed_quote_subst'
21707double_quote_subst='$double_quote_subst'
21708delay_variable_subst='$delay_variable_subst'
21709AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
21710DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21711OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21712macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21713macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21714enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21715enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21716pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21717enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21718shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
21719SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21720ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
21721PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
21722host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21723host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21724host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21725build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21726build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21727build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21728SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21729Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21730GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21731EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21732FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21733LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21734NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21735LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21736max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21737ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21738exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21739lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21740lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21741lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21742lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21743lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21744reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21745reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21746FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
21747deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21748file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21749file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21750want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21751sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21752AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21753lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
21754AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21755archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
21756STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21757RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21758old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21759old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21760old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21761lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21762CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21763CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21764compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21765GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21766lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
21767lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
21768lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
21769lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
21770lt_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"`'
21771lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
21772nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
21773lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
21774lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
21775objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
21776MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
21777lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
21778lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
21779lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
21780lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
21781lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
21782need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
21783MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
21784DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21785NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21786LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21787OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21788OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21789libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21790shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21791extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21792archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21793enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21794export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21795whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21796compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21797old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21798old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21799archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21800archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21801module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21802module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21803with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21804allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21805no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21806hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
21807hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21808hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21809hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21810hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21811hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21812hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21813inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21814link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21815always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21816export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21817exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21818include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21819prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21820postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
21821file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21822variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21823need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21824need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21825version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21826runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21827shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21828shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21829libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21830library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21831soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21832install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21833postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21834postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21835finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21836finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21837hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21838sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21839configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
21840configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
21841hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21842enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21843enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21844enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21845old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21846striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21847
21848LTCC='$LTCC'
21849LTCFLAGS='$LTCFLAGS'
21850compiler='$compiler_DEFAULT'
21851
21852# A function that is used when there is no print builtin or printf.
21853func_fallback_echo ()
21854{
21855  eval 'cat <<_LTECHO_EOF
21856\$1
21857_LTECHO_EOF'
21858}
21859
21860# Quote evaled strings.
21861for var in AS \
21862DLLTOOL \
21863OBJDUMP \
21864SHELL \
21865ECHO \
21866PATH_SEPARATOR \
21867SED \
21868GREP \
21869EGREP \
21870FGREP \
21871LD \
21872NM \
21873LN_S \
21874lt_SP2NL \
21875lt_NL2SP \
21876reload_flag \
21877FILECMD \
21878deplibs_check_method \
21879file_magic_cmd \
21880file_magic_glob \
21881want_nocaseglob \
21882sharedlib_from_linklib_cmd \
21883AR \
21884archiver_list_spec \
21885STRIP \
21886RANLIB \
21887CC \
21888CFLAGS \
21889compiler \
21890lt_cv_sys_global_symbol_pipe \
21891lt_cv_sys_global_symbol_to_cdecl \
21892lt_cv_sys_global_symbol_to_import \
21893lt_cv_sys_global_symbol_to_c_name_address \
21894lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21895lt_cv_nm_interface \
21896nm_file_list_spec \
21897lt_cv_truncate_bin \
21898lt_prog_compiler_no_builtin_flag \
21899lt_prog_compiler_pic \
21900lt_prog_compiler_wl \
21901lt_prog_compiler_static \
21902lt_cv_prog_compiler_c_o \
21903need_locks \
21904MANIFEST_TOOL \
21905DSYMUTIL \
21906NMEDIT \
21907LIPO \
21908OTOOL \
21909OTOOL64 \
21910shrext_cmds \
21911export_dynamic_flag_spec \
21912whole_archive_flag_spec \
21913compiler_needs_object \
21914with_gnu_ld \
21915allow_undefined_flag \
21916no_undefined_flag \
21917hardcode_libdir_flag_spec \
21918hardcode_libdir_separator \
21919exclude_expsyms \
21920include_expsyms \
21921file_list_spec \
21922variables_saved_for_relink \
21923libname_spec \
21924library_names_spec \
21925soname_spec \
21926install_override_mode \
21927finish_eval \
21928old_striplib \
21929striplib; do
21930    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21931    *[\\\\\\\`\\"\\\$]*)
21932      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21933      ;;
21934    *)
21935      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21936      ;;
21937    esac
21938done
21939
21940# Double-quote double-evaled strings.
21941for var in reload_cmds \
21942old_postinstall_cmds \
21943old_postuninstall_cmds \
21944old_archive_cmds \
21945extract_expsyms_cmds \
21946old_archive_from_new_cmds \
21947old_archive_from_expsyms_cmds \
21948archive_cmds \
21949archive_expsym_cmds \
21950module_cmds \
21951module_expsym_cmds \
21952export_symbols_cmds \
21953prelink_cmds \
21954postlink_cmds \
21955postinstall_cmds \
21956postuninstall_cmds \
21957finish_cmds \
21958sys_lib_search_path_spec \
21959configure_time_dlsearch_path \
21960configure_time_lt_sys_library_path; do
21961    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21962    *[\\\\\\\`\\"\\\$]*)
21963      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21964      ;;
21965    *)
21966      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21967      ;;
21968    esac
21969done
21970
21971ac_aux_dir='$ac_aux_dir'
21972
21973# See if we are running on zsh, and set the options that allow our
21974# commands through without removal of \ escapes INIT.
21975if test -n "\${ZSH_VERSION+set}"; then
21976   setopt NO_GLOB_SUBST
21977fi
21978
21979
21980    PACKAGE='$PACKAGE'
21981    VERSION='$VERSION'
21982    RM='$RM'
21983    ofile='$ofile'
21984
21985
21986
21987
21988_ACEOF
21989
21990cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21991
21992# Handling of arguments.
21993for ac_config_target in $ac_config_targets
21994do
21995  case $ac_config_target in
21996    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21997    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21998    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21999    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22000    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
22001    "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
22002    "xdmcp.pc") CONFIG_FILES="$CONFIG_FILES xdmcp.pc" ;;
22003
22004  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
22005  esac
22006done
22007
22008
22009# If the user did not use the arguments to specify the items to instantiate,
22010# then the envvar interface is used.  Set only those that are not.
22011# We use the long form for the default assignment because of an extremely
22012# bizarre bug on SunOS 4.1.3.
22013if $ac_need_defaults; then
22014  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
22015  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
22016  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
22017fi
22018
22019# Have a temporary directory for convenience.  Make it in the build tree
22020# simply because there is no reason against having it here, and in addition,
22021# creating and moving files from /tmp can sometimes cause problems.
22022# Hook for its removal unless debugging.
22023# Note that there is a small window in which the directory will not be cleaned:
22024# after its creation but before its name has been assigned to `$tmp'.
22025$debug ||
22026{
22027  tmp= ac_tmp=
22028  trap 'exit_status=$?
22029  : "${ac_tmp:=$tmp}"
22030  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
22031' 0
22032  trap 'as_fn_exit 1' 1 2 13 15
22033}
22034# Create a (secure) tmp directory for tmp files.
22035
22036{
22037  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22038  test -d "$tmp"
22039}  ||
22040{
22041  tmp=./conf$$-$RANDOM
22042  (umask 077 && mkdir "$tmp")
22043} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
22044ac_tmp=$tmp
22045
22046# Set up the scripts for CONFIG_FILES section.
22047# No need to generate them if there are no CONFIG_FILES.
22048# This happens for instance with `./config.status config.h'.
22049if test -n "$CONFIG_FILES"; then
22050
22051
22052ac_cr=`echo X | tr X '\015'`
22053# On cygwin, bash can eat \r inside `` if the user requested igncr.
22054# But we know of no other shell where ac_cr would be empty at this
22055# point, so we can use a bashism as a fallback.
22056if test "x$ac_cr" = x; then
22057  eval ac_cr=\$\'\\r\'
22058fi
22059ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22060if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22061  ac_cs_awk_cr='\\r'
22062else
22063  ac_cs_awk_cr=$ac_cr
22064fi
22065
22066echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
22067_ACEOF
22068
22069
22070{
22071  echo "cat >conf$$subs.awk <<_ACEOF" &&
22072  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22073  echo "_ACEOF"
22074} >conf$$subs.sh ||
22075  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22076ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
22077ac_delim='%!_!# '
22078for ac_last_try in false false false false false :; do
22079  . ./conf$$subs.sh ||
22080    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22081
22082  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22083  if test $ac_delim_n = $ac_delim_num; then
22084    break
22085  elif $ac_last_try; then
22086    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22087  else
22088    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22089  fi
22090done
22091rm -f conf$$subs.sh
22092
22093cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22094cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
22095_ACEOF
22096sed -n '
22097h
22098s/^/S["/; s/!.*/"]=/
22099p
22100g
22101s/^[^!]*!//
22102:repl
22103t repl
22104s/'"$ac_delim"'$//
22105t delim
22106:nl
22107h
22108s/\(.\{148\}\)..*/\1/
22109t more1
22110s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22111p
22112n
22113b repl
22114:more1
22115s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22116p
22117g
22118s/.\{148\}//
22119t nl
22120:delim
22121h
22122s/\(.\{148\}\)..*/\1/
22123t more2
22124s/["\\]/\\&/g; s/^/"/; s/$/"/
22125p
22126b
22127:more2
22128s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22129p
22130g
22131s/.\{148\}//
22132t delim
22133' <conf$$subs.awk | sed '
22134/^[^""]/{
22135  N
22136  s/\n//
22137}
22138' >>$CONFIG_STATUS || ac_write_fail=1
22139rm -f conf$$subs.awk
22140cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22141_ACAWK
22142cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
22143  for (key in S) S_is_set[key] = 1
22144  FS = ""
22145
22146}
22147{
22148  line = $ 0
22149  nfields = split(line, field, "@")
22150  substed = 0
22151  len = length(field[1])
22152  for (i = 2; i < nfields; i++) {
22153    key = field[i]
22154    keylen = length(key)
22155    if (S_is_set[key]) {
22156      value = S[key]
22157      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22158      len += length(value) + length(field[++i])
22159      substed = 1
22160    } else
22161      len += 1 + keylen
22162  }
22163
22164  print line
22165}
22166
22167_ACAWK
22168_ACEOF
22169cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22170if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22171  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22172else
22173  cat
22174fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
22175  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
22176_ACEOF
22177
22178# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
22179# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
22180# trailing colons and then remove the whole line if VPATH becomes empty
22181# (actually we leave an empty line to preserve line numbers).
22182if test "x$srcdir" = x.; then
22183  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
22184h
22185s///
22186s/^/:/
22187s/[	 ]*$/:/
22188s/:\$(srcdir):/:/g
22189s/:\${srcdir}:/:/g
22190s/:@srcdir@:/:/g
22191s/^:*//
22192s/:*$//
22193x
22194s/\(=[	 ]*\).*/\1/
22195G
22196s/\n//
22197s/^[^=]*=[	 ]*$//
22198}'
22199fi
22200
22201cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22202fi # test -n "$CONFIG_FILES"
22203
22204# Set up the scripts for CONFIG_HEADERS section.
22205# No need to generate them if there are no CONFIG_HEADERS.
22206# This happens for instance with `./config.status Makefile'.
22207if test -n "$CONFIG_HEADERS"; then
22208cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
22209BEGIN {
22210_ACEOF
22211
22212# Transform confdefs.h into an awk script `defines.awk', embedded as
22213# here-document in config.status, that substitutes the proper values into
22214# config.h.in to produce config.h.
22215
22216# Create a delimiter string that does not exist in confdefs.h, to ease
22217# handling of long lines.
22218ac_delim='%!_!# '
22219for ac_last_try in false false :; do
22220  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
22221  if test -z "$ac_tt"; then
22222    break
22223  elif $ac_last_try; then
22224    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
22225  else
22226    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22227  fi
22228done
22229
22230# For the awk script, D is an array of macro values keyed by name,
22231# likewise P contains macro parameters if any.  Preserve backslash
22232# newline sequences.
22233
22234ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22235sed -n '
22236s/.\{148\}/&'"$ac_delim"'/g
22237t rset
22238:rset
22239s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
22240t def
22241d
22242:def
22243s/\\$//
22244t bsnl
22245s/["\\]/\\&/g
22246s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
22247D["\1"]=" \3"/p
22248s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
22249d
22250:bsnl
22251s/["\\]/\\&/g
22252s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
22253D["\1"]=" \3\\\\\\n"\\/p
22254t cont
22255s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22256t cont
22257d
22258:cont
22259n
22260s/.\{148\}/&'"$ac_delim"'/g
22261t clear
22262:clear
22263s/\\$//
22264t bsnlc
22265s/["\\]/\\&/g; s/^/"/; s/$/"/p
22266d
22267:bsnlc
22268s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22269b cont
22270' <confdefs.h | sed '
22271s/'"$ac_delim"'/"\\\
22272"/g' >>$CONFIG_STATUS || ac_write_fail=1
22273
22274cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22275  for (key in D) D_is_set[key] = 1
22276  FS = ""
22277}
22278/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22279  line = \$ 0
22280  split(line, arg, " ")
22281  if (arg[1] == "#") {
22282    defundef = arg[2]
22283    mac1 = arg[3]
22284  } else {
22285    defundef = substr(arg[1], 2)
22286    mac1 = arg[2]
22287  }
22288  split(mac1, mac2, "(") #)
22289  macro = mac2[1]
22290  prefix = substr(line, 1, index(line, defundef) - 1)
22291  if (D_is_set[macro]) {
22292    # Preserve the white space surrounding the "#".
22293    print prefix "define", macro P[macro] D[macro]
22294    next
22295  } else {
22296    # Replace #undef with comments.  This is necessary, for example,
22297    # in the case of _POSIX_SOURCE, which is predefined and required
22298    # on some systems where configure will not decide to define it.
22299    if (defundef == "undef") {
22300      print "/*", prefix defundef, macro, "*/"
22301      next
22302    }
22303  }
22304}
22305{ print }
22306_ACAWK
22307_ACEOF
22308cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22309  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
22310fi # test -n "$CONFIG_HEADERS"
22311
22312
22313eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
22314shift
22315for ac_tag
22316do
22317  case $ac_tag in
22318  :[FHLC]) ac_mode=$ac_tag; continue;;
22319  esac
22320  case $ac_mode$ac_tag in
22321  :[FHL]*:*);;
22322  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
22323  :[FH]-) ac_tag=-:-;;
22324  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22325  esac
22326  ac_save_IFS=$IFS
22327  IFS=:
22328  set x $ac_tag
22329  IFS=$ac_save_IFS
22330  shift
22331  ac_file=$1
22332  shift
22333
22334  case $ac_mode in
22335  :L) ac_source=$1;;
22336  :[FH])
22337    ac_file_inputs=
22338    for ac_f
22339    do
22340      case $ac_f in
22341      -) ac_f="$ac_tmp/stdin";;
22342      *) # Look for the file first in the build tree, then in the source tree
22343	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
22344	 # because $ac_f cannot contain `:'.
22345	 test -f "$ac_f" ||
22346	   case $ac_f in
22347	   [\\/$]*) false;;
22348	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22349	   esac ||
22350	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
22351      esac
22352      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22353      as_fn_append ac_file_inputs " '$ac_f'"
22354    done
22355
22356    # Let's still pretend it is `configure' which instantiates (i.e., don't
22357    # use $as_me), people would be surprised to read:
22358    #    /* config.h.  Generated by config.status.  */
22359    configure_input='Generated from '`
22360	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22361	`' by configure.'
22362    if test x"$ac_file" != x-; then
22363      configure_input="$ac_file.  $configure_input"
22364      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22365printf "%s\n" "$as_me: creating $ac_file" >&6;}
22366    fi
22367    # Neutralize special characters interpreted by sed in replacement strings.
22368    case $configure_input in #(
22369    *\&* | *\|* | *\\* )
22370       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
22371       sed 's/[\\\\&|]/\\\\&/g'`;; #(
22372    *) ac_sed_conf_input=$configure_input;;
22373    esac
22374
22375    case $ac_tag in
22376    *:-:* | *:-) cat >"$ac_tmp/stdin" \
22377      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
22378    esac
22379    ;;
22380  esac
22381
22382  ac_dir=`$as_dirname -- "$ac_file" ||
22383$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22384	 X"$ac_file" : 'X\(//\)[^/]' \| \
22385	 X"$ac_file" : 'X\(//\)$' \| \
22386	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22387printf "%s\n" X"$ac_file" |
22388    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22389	    s//\1/
22390	    q
22391	  }
22392	  /^X\(\/\/\)[^/].*/{
22393	    s//\1/
22394	    q
22395	  }
22396	  /^X\(\/\/\)$/{
22397	    s//\1/
22398	    q
22399	  }
22400	  /^X\(\/\).*/{
22401	    s//\1/
22402	    q
22403	  }
22404	  s/.*/./; q'`
22405  as_dir="$ac_dir"; as_fn_mkdir_p
22406  ac_builddir=.
22407
22408case "$ac_dir" in
22409.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22410*)
22411  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
22412  # A ".." for each directory in $ac_dir_suffix.
22413  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22414  case $ac_top_builddir_sub in
22415  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22416  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22417  esac ;;
22418esac
22419ac_abs_top_builddir=$ac_pwd
22420ac_abs_builddir=$ac_pwd$ac_dir_suffix
22421# for backward compatibility:
22422ac_top_builddir=$ac_top_build_prefix
22423
22424case $srcdir in
22425  .)  # We are building in place.
22426    ac_srcdir=.
22427    ac_top_srcdir=$ac_top_builddir_sub
22428    ac_abs_top_srcdir=$ac_pwd ;;
22429  [\\/]* | ?:[\\/]* )  # Absolute name.
22430    ac_srcdir=$srcdir$ac_dir_suffix;
22431    ac_top_srcdir=$srcdir
22432    ac_abs_top_srcdir=$srcdir ;;
22433  *) # Relative name.
22434    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22435    ac_top_srcdir=$ac_top_build_prefix$srcdir
22436    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22437esac
22438ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22439
22440
22441  case $ac_mode in
22442  :F)
22443  #
22444  # CONFIG_FILE
22445  #
22446
22447  case $INSTALL in
22448  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22449  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22450  esac
22451  ac_MKDIR_P=$MKDIR_P
22452  case $MKDIR_P in
22453  [\\/$]* | ?:[\\/]* ) ;;
22454  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22455  esac
22456_ACEOF
22457
22458cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22459# If the template does not know about datarootdir, expand it.
22460# FIXME: This hack should be removed a few years after 2.60.
22461ac_datarootdir_hack=; ac_datarootdir_seen=
22462ac_sed_dataroot='
22463/datarootdir/ {
22464  p
22465  q
22466}
22467/@datadir@/p
22468/@docdir@/p
22469/@infodir@/p
22470/@localedir@/p
22471/@mandir@/p'
22472case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22473*datarootdir*) ac_datarootdir_seen=yes;;
22474*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22475  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22476printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22477_ACEOF
22478cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22479  ac_datarootdir_hack='
22480  s&@datadir@&$datadir&g
22481  s&@docdir@&$docdir&g
22482  s&@infodir@&$infodir&g
22483  s&@localedir@&$localedir&g
22484  s&@mandir@&$mandir&g
22485  s&\\\${datarootdir}&$datarootdir&g' ;;
22486esac
22487_ACEOF
22488
22489# Neutralize VPATH when `$srcdir' = `.'.
22490# Shell code in configure.ac might set extrasub.
22491# FIXME: do we really want to maintain this feature?
22492cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22493ac_sed_extra="$ac_vpsub
22494$extrasub
22495_ACEOF
22496cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22497:t
22498/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22499s|@configure_input@|$ac_sed_conf_input|;t t
22500s&@top_builddir@&$ac_top_builddir_sub&;t t
22501s&@top_build_prefix@&$ac_top_build_prefix&;t t
22502s&@srcdir@&$ac_srcdir&;t t
22503s&@abs_srcdir@&$ac_abs_srcdir&;t t
22504s&@top_srcdir@&$ac_top_srcdir&;t t
22505s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22506s&@builddir@&$ac_builddir&;t t
22507s&@abs_builddir@&$ac_abs_builddir&;t t
22508s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22509s&@INSTALL@&$ac_INSTALL&;t t
22510s&@MKDIR_P@&$ac_MKDIR_P&;t t
22511$ac_datarootdir_hack
22512"
22513eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22514  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22515
22516test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22517  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22518  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
22519      "$ac_tmp/out"`; test -z "$ac_out"; } &&
22520  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22521which seems to be undefined.  Please make sure it is defined" >&5
22522printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22523which seems to be undefined.  Please make sure it is defined" >&2;}
22524
22525  rm -f "$ac_tmp/stdin"
22526  case $ac_file in
22527  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22528  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
22529  esac \
22530  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22531 ;;
22532  :H)
22533  #
22534  # CONFIG_HEADER
22535  #
22536  if test x"$ac_file" != x-; then
22537    {
22538      printf "%s\n" "/* $configure_input  */" >&1 \
22539      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22540    } >"$ac_tmp/config.h" \
22541      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22542    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22543      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22544printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
22545    else
22546      rm -f "$ac_file"
22547      mv "$ac_tmp/config.h" "$ac_file" \
22548	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
22549    fi
22550  else
22551    printf "%s\n" "/* $configure_input  */" >&1 \
22552      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22553      || as_fn_error $? "could not create -" "$LINENO" 5
22554  fi
22555# Compute "$ac_file"'s index in $config_headers.
22556_am_arg="$ac_file"
22557_am_stamp_count=1
22558for _am_header in $config_headers :; do
22559  case $_am_header in
22560    $_am_arg | $_am_arg:* )
22561      break ;;
22562    * )
22563      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22564  esac
22565done
22566echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22567$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22568	 X"$_am_arg" : 'X\(//\)[^/]' \| \
22569	 X"$_am_arg" : 'X\(//\)$' \| \
22570	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22571printf "%s\n" X"$_am_arg" |
22572    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22573	    s//\1/
22574	    q
22575	  }
22576	  /^X\(\/\/\)[^/].*/{
22577	    s//\1/
22578	    q
22579	  }
22580	  /^X\(\/\/\)$/{
22581	    s//\1/
22582	    q
22583	  }
22584	  /^X\(\/\).*/{
22585	    s//\1/
22586	    q
22587	  }
22588	  s/.*/./; q'`/stamp-h$_am_stamp_count
22589 ;;
22590
22591  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22592printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
22593 ;;
22594  esac
22595
22596
22597  case $ac_file$ac_mode in
22598    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22599  # Older Autoconf quotes --file arguments for eval, but not when files
22600  # are listed without --file.  Let's play safe and only enable the eval
22601  # if we detect the quoting.
22602  # TODO: see whether this extra hack can be removed once we start
22603  # requiring Autoconf 2.70 or later.
22604  case $CONFIG_FILES in #(
22605  *\'*) :
22606    eval set x "$CONFIG_FILES" ;; #(
22607  *) :
22608    set x $CONFIG_FILES ;; #(
22609  *) :
22610     ;;
22611esac
22612  shift
22613  # Used to flag and report bootstrapping failures.
22614  am_rc=0
22615  for am_mf
22616  do
22617    # Strip MF so we end up with the name of the file.
22618    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
22619    # Check whether this is an Automake generated Makefile which includes
22620    # dependency-tracking related rules and includes.
22621    # Grep'ing the whole file directly is not great: AIX grep has a line
22622    # limit of 2048, but all sed's we know have understand at least 4000.
22623    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
22624      || continue
22625    am_dirpart=`$as_dirname -- "$am_mf" ||
22626$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22627	 X"$am_mf" : 'X\(//\)[^/]' \| \
22628	 X"$am_mf" : 'X\(//\)$' \| \
22629	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22630printf "%s\n" X"$am_mf" |
22631    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22632	    s//\1/
22633	    q
22634	  }
22635	  /^X\(\/\/\)[^/].*/{
22636	    s//\1/
22637	    q
22638	  }
22639	  /^X\(\/\/\)$/{
22640	    s//\1/
22641	    q
22642	  }
22643	  /^X\(\/\).*/{
22644	    s//\1/
22645	    q
22646	  }
22647	  s/.*/./; q'`
22648    am_filepart=`$as_basename -- "$am_mf" ||
22649$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
22650	 X"$am_mf" : 'X\(//\)$' \| \
22651	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22652printf "%s\n" X/"$am_mf" |
22653    sed '/^.*\/\([^/][^/]*\)\/*$/{
22654	    s//\1/
22655	    q
22656	  }
22657	  /^X\/\(\/\/\)$/{
22658	    s//\1/
22659	    q
22660	  }
22661	  /^X\/\(\/\).*/{
22662	    s//\1/
22663	    q
22664	  }
22665	  s/.*/./; q'`
22666    { echo "$as_me:$LINENO: cd "$am_dirpart" \
22667      && sed -e '/# am--include-marker/d' "$am_filepart" \
22668        | $MAKE -f - am--depfiles" >&5
22669   (cd "$am_dirpart" \
22670      && sed -e '/# am--include-marker/d' "$am_filepart" \
22671        | $MAKE -f - am--depfiles) >&5 2>&5
22672   ac_status=$?
22673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22674   (exit $ac_status); } || am_rc=$?
22675  done
22676  if test $am_rc -ne 0; then
22677    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22678printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22679as_fn_error $? "Something went wrong bootstrapping makefile fragments
22680    for automatic dependency tracking.  If GNU make was not used, consider
22681    re-running the configure script with MAKE=\"gmake\" (or whatever is
22682    necessary).  You can also try re-running configure with the
22683    '--disable-dependency-tracking' option to at least be able to build
22684    the package (albeit without support for automatic dependency tracking).
22685See \`config.log' for more details" "$LINENO" 5; }
22686  fi
22687  { am_dirpart=; unset am_dirpart;}
22688  { am_filepart=; unset am_filepart;}
22689  { am_mf=; unset am_mf;}
22690  { am_rc=; unset am_rc;}
22691  rm -f conftest-deps.mk
22692}
22693 ;;
22694    "libtool":C)
22695
22696    # See if we are running on zsh, and set the options that allow our
22697    # commands through without removal of \ escapes.
22698    if test -n "${ZSH_VERSION+set}"; then
22699      setopt NO_GLOB_SUBST
22700    fi
22701
22702    cfgfile=${ofile}T
22703    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22704    $RM "$cfgfile"
22705
22706    cat <<_LT_EOF >> "$cfgfile"
22707#! $SHELL
22708# Generated automatically by $as_me ($PACKAGE) $VERSION
22709# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22710# NOTE: Changes made to this file will be lost: look at ltmain.sh.
22711
22712# Provide generalized library-building support services.
22713# Written by Gordon Matzigkeit, 1996
22714
22715# Copyright (C) 2014 Free Software Foundation, Inc.
22716# This is free software; see the source for copying conditions.  There is NO
22717# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
22718
22719# GNU Libtool is free software; you can redistribute it and/or modify
22720# it under the terms of the GNU General Public License as published by
22721# the Free Software Foundation; either version 2 of of the License, or
22722# (at your option) any later version.
22723#
22724# As a special exception to the GNU General Public License, if you
22725# distribute this file as part of a program or library that is built
22726# using GNU Libtool, you may include this file under the  same
22727# distribution terms that you use for the rest of that program.
22728#
22729# GNU Libtool is distributed in the hope that it will be useful, but
22730# WITHOUT ANY WARRANTY; without even the implied warranty of
22731# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22732# GNU General Public License for more details.
22733#
22734# You should have received a copy of the GNU General Public License
22735# along with this program.  If not, see <http://www.gnu.org/licenses/>.
22736
22737
22738# The names of the tagged configurations supported by this script.
22739available_tags=''
22740
22741# Configured defaults for sys_lib_dlsearch_path munging.
22742: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
22743
22744# ### BEGIN LIBTOOL CONFIG
22745
22746# Assembler program.
22747AS=$lt_AS
22748
22749# DLL creation program.
22750DLLTOOL=$lt_DLLTOOL
22751
22752# Object dumper program.
22753OBJDUMP=$lt_OBJDUMP
22754
22755# Which release of libtool.m4 was used?
22756macro_version=$macro_version
22757macro_revision=$macro_revision
22758
22759# Whether or not to build shared libraries.
22760build_libtool_libs=$enable_shared
22761
22762# Whether or not to build static libraries.
22763build_old_libs=$enable_static
22764
22765# What type of objects to build.
22766pic_mode=$pic_mode
22767
22768# Whether or not to optimize for fast installation.
22769fast_install=$enable_fast_install
22770
22771# Shared archive member basename,for filename based shared library versioning on AIX.
22772shared_archive_member_spec=$shared_archive_member_spec
22773
22774# Shell to use when invoking shell scripts.
22775SHELL=$lt_SHELL
22776
22777# An echo program that protects backslashes.
22778ECHO=$lt_ECHO
22779
22780# The PATH separator for the build system.
22781PATH_SEPARATOR=$lt_PATH_SEPARATOR
22782
22783# The host system.
22784host_alias=$host_alias
22785host=$host
22786host_os=$host_os
22787
22788# The build system.
22789build_alias=$build_alias
22790build=$build
22791build_os=$build_os
22792
22793# A sed program that does not truncate output.
22794SED=$lt_SED
22795
22796# Sed that helps us avoid accidentally triggering echo(1) options like -n.
22797Xsed="\$SED -e 1s/^X//"
22798
22799# A grep program that handles long lines.
22800GREP=$lt_GREP
22801
22802# An ERE matcher.
22803EGREP=$lt_EGREP
22804
22805# A literal string matcher.
22806FGREP=$lt_FGREP
22807
22808# A BSD- or MS-compatible name lister.
22809NM=$lt_NM
22810
22811# Whether we need soft or hard links.
22812LN_S=$lt_LN_S
22813
22814# What is the maximum length of a command?
22815max_cmd_len=$max_cmd_len
22816
22817# Object file suffix (normally "o").
22818objext=$ac_objext
22819
22820# Executable file suffix (normally "").
22821exeext=$exeext
22822
22823# whether the shell understands "unset".
22824lt_unset=$lt_unset
22825
22826# turn spaces into newlines.
22827SP2NL=$lt_lt_SP2NL
22828
22829# turn newlines into spaces.
22830NL2SP=$lt_lt_NL2SP
22831
22832# convert \$build file names to \$host format.
22833to_host_file_cmd=$lt_cv_to_host_file_cmd
22834
22835# convert \$build files to toolchain format.
22836to_tool_file_cmd=$lt_cv_to_tool_file_cmd
22837
22838# A file(cmd) program that detects file types.
22839FILECMD=$lt_FILECMD
22840
22841# Method to check whether dependent libraries are shared objects.
22842deplibs_check_method=$lt_deplibs_check_method
22843
22844# Command to use when deplibs_check_method = "file_magic".
22845file_magic_cmd=$lt_file_magic_cmd
22846
22847# How to find potential files when deplibs_check_method = "file_magic".
22848file_magic_glob=$lt_file_magic_glob
22849
22850# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
22851want_nocaseglob=$lt_want_nocaseglob
22852
22853# Command to associate shared and link libraries.
22854sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
22855
22856# The archiver.
22857AR=$lt_AR
22858
22859# Flags to create an archive (by configure).
22860lt_ar_flags=$lt_ar_flags
22861
22862# Flags to create an archive.
22863AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
22864
22865# How to feed a file listing to the archiver.
22866archiver_list_spec=$lt_archiver_list_spec
22867
22868# A symbol stripping program.
22869STRIP=$lt_STRIP
22870
22871# Commands used to install an old-style archive.
22872RANLIB=$lt_RANLIB
22873old_postinstall_cmds=$lt_old_postinstall_cmds
22874old_postuninstall_cmds=$lt_old_postuninstall_cmds
22875
22876# Whether to use a lock for old archive extraction.
22877lock_old_archive_extraction=$lock_old_archive_extraction
22878
22879# A C compiler.
22880LTCC=$lt_CC
22881
22882# LTCC compiler flags.
22883LTCFLAGS=$lt_CFLAGS
22884
22885# Take the output of nm and produce a listing of raw symbols and C names.
22886global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22887
22888# Transform the output of nm in a proper C declaration.
22889global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22890
22891# Transform the output of nm into a list of symbols to manually relocate.
22892global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
22893
22894# Transform the output of nm in a C name address pair.
22895global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22896
22897# Transform the output of nm in a C name address pair when lib prefix is needed.
22898global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22899
22900# The name lister interface.
22901nm_interface=$lt_lt_cv_nm_interface
22902
22903# Specify filename containing input files for \$NM.
22904nm_file_list_spec=$lt_nm_file_list_spec
22905
22906# The root where to search for dependent libraries,and where our libraries should be installed.
22907lt_sysroot=$lt_sysroot
22908
22909# Command to truncate a binary pipe.
22910lt_truncate_bin=$lt_lt_cv_truncate_bin
22911
22912# The name of the directory that contains temporary libtool files.
22913objdir=$objdir
22914
22915# Used to examine libraries when file_magic_cmd begins with "file".
22916MAGIC_CMD=$MAGIC_CMD
22917
22918# Must we lock files when doing compilation?
22919need_locks=$lt_need_locks
22920
22921# Manifest tool.
22922MANIFEST_TOOL=$lt_MANIFEST_TOOL
22923
22924# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22925DSYMUTIL=$lt_DSYMUTIL
22926
22927# Tool to change global to local symbols on Mac OS X.
22928NMEDIT=$lt_NMEDIT
22929
22930# Tool to manipulate fat objects and archives on Mac OS X.
22931LIPO=$lt_LIPO
22932
22933# ldd/readelf like tool for Mach-O binaries on Mac OS X.
22934OTOOL=$lt_OTOOL
22935
22936# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22937OTOOL64=$lt_OTOOL64
22938
22939# Old archive suffix (normally "a").
22940libext=$libext
22941
22942# Shared library suffix (normally ".so").
22943shrext_cmds=$lt_shrext_cmds
22944
22945# The commands to extract the exported symbol list from a shared archive.
22946extract_expsyms_cmds=$lt_extract_expsyms_cmds
22947
22948# Variables whose values should be saved in libtool wrapper scripts and
22949# restored at link time.
22950variables_saved_for_relink=$lt_variables_saved_for_relink
22951
22952# Do we need the "lib" prefix for modules?
22953need_lib_prefix=$need_lib_prefix
22954
22955# Do we need a version for libraries?
22956need_version=$need_version
22957
22958# Library versioning type.
22959version_type=$version_type
22960
22961# Shared library runtime path variable.
22962runpath_var=$runpath_var
22963
22964# Shared library path variable.
22965shlibpath_var=$shlibpath_var
22966
22967# Is shlibpath searched before the hard-coded library search path?
22968shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22969
22970# Format of library name prefix.
22971libname_spec=$lt_libname_spec
22972
22973# List of archive names.  First name is the real one, the rest are links.
22974# The last name is the one that the linker finds with -lNAME
22975library_names_spec=$lt_library_names_spec
22976
22977# The coded name of the library, if different from the real name.
22978soname_spec=$lt_soname_spec
22979
22980# Permission mode override for installation of shared libraries.
22981install_override_mode=$lt_install_override_mode
22982
22983# Command to use after installation of a shared archive.
22984postinstall_cmds=$lt_postinstall_cmds
22985
22986# Command to use after uninstallation of a shared archive.
22987postuninstall_cmds=$lt_postuninstall_cmds
22988
22989# Commands used to finish a libtool library installation in a directory.
22990finish_cmds=$lt_finish_cmds
22991
22992# As "finish_cmds", except a single script fragment to be evaled but
22993# not shown.
22994finish_eval=$lt_finish_eval
22995
22996# Whether we should hardcode library paths into libraries.
22997hardcode_into_libs=$hardcode_into_libs
22998
22999# Compile-time system search path for libraries.
23000sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23001
23002# Detected run-time system search path for libraries.
23003sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
23004
23005# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
23006configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
23007
23008# Whether dlopen is supported.
23009dlopen_support=$enable_dlopen
23010
23011# Whether dlopen of programs is supported.
23012dlopen_self=$enable_dlopen_self
23013
23014# Whether dlopen of statically linked programs is supported.
23015dlopen_self_static=$enable_dlopen_self_static
23016
23017# Commands to strip libraries.
23018old_striplib=$lt_old_striplib
23019striplib=$lt_striplib
23020
23021
23022# The linker used to build libraries.
23023LD=$lt_LD
23024
23025# How to create reloadable object files.
23026reload_flag=$lt_reload_flag
23027reload_cmds=$lt_reload_cmds
23028
23029# Commands used to build an old-style archive.
23030old_archive_cmds=$lt_old_archive_cmds
23031
23032# A language specific compiler.
23033CC=$lt_compiler
23034
23035# Is the compiler the GNU compiler?
23036with_gcc=$GCC
23037
23038# Compiler flag to turn off builtin functions.
23039no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23040
23041# Additional compiler flags for building library objects.
23042pic_flag=$lt_lt_prog_compiler_pic
23043
23044# How to pass a linker flag through the compiler.
23045wl=$lt_lt_prog_compiler_wl
23046
23047# Compiler flag to prevent dynamic linking.
23048link_static_flag=$lt_lt_prog_compiler_static
23049
23050# Does compiler simultaneously support -c and -o options?
23051compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23052
23053# Whether or not to add -lc for building shared libraries.
23054build_libtool_need_lc=$archive_cmds_need_lc
23055
23056# Whether or not to disallow shared libs when runtime libs are static.
23057allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23058
23059# Compiler flag to allow reflexive dlopens.
23060export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23061
23062# Compiler flag to generate shared objects directly from archives.
23063whole_archive_flag_spec=$lt_whole_archive_flag_spec
23064
23065# Whether the compiler copes with passing no objects directly.
23066compiler_needs_object=$lt_compiler_needs_object
23067
23068# Create an old-style archive from a shared archive.
23069old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23070
23071# Create a temporary old-style archive to link instead of a shared archive.
23072old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23073
23074# Commands used to build a shared archive.
23075archive_cmds=$lt_archive_cmds
23076archive_expsym_cmds=$lt_archive_expsym_cmds
23077
23078# Commands used to build a loadable module if different from building
23079# a shared archive.
23080module_cmds=$lt_module_cmds
23081module_expsym_cmds=$lt_module_expsym_cmds
23082
23083# Whether we are building with GNU ld or not.
23084with_gnu_ld=$lt_with_gnu_ld
23085
23086# Flag that allows shared libraries with undefined symbols to be built.
23087allow_undefined_flag=$lt_allow_undefined_flag
23088
23089# Flag that enforces no undefined symbols.
23090no_undefined_flag=$lt_no_undefined_flag
23091
23092# Flag to hardcode \$libdir into a binary during linking.
23093# This must work even if \$libdir does not exist
23094hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23095
23096# Whether we need a single "-rpath" flag with a separated argument.
23097hardcode_libdir_separator=$lt_hardcode_libdir_separator
23098
23099# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23100# DIR into the resulting binary.
23101hardcode_direct=$hardcode_direct
23102
23103# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23104# DIR into the resulting binary and the resulting library dependency is
23105# "absolute",i.e impossible to change by setting \$shlibpath_var if the
23106# library is relocated.
23107hardcode_direct_absolute=$hardcode_direct_absolute
23108
23109# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23110# into the resulting binary.
23111hardcode_minus_L=$hardcode_minus_L
23112
23113# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23114# into the resulting binary.
23115hardcode_shlibpath_var=$hardcode_shlibpath_var
23116
23117# Set to "yes" if building a shared library automatically hardcodes DIR
23118# into the library and all subsequent libraries and executables linked
23119# against it.
23120hardcode_automatic=$hardcode_automatic
23121
23122# Set to yes if linker adds runtime paths of dependent libraries
23123# to runtime path list.
23124inherit_rpath=$inherit_rpath
23125
23126# Whether libtool must link a program against all its dependency libraries.
23127link_all_deplibs=$link_all_deplibs
23128
23129# Set to "yes" if exported symbols are required.
23130always_export_symbols=$always_export_symbols
23131
23132# The commands to list exported symbols.
23133export_symbols_cmds=$lt_export_symbols_cmds
23134
23135# Symbols that should not be listed in the preloaded symbols.
23136exclude_expsyms=$lt_exclude_expsyms
23137
23138# Symbols that must always be exported.
23139include_expsyms=$lt_include_expsyms
23140
23141# Commands necessary for linking programs (against libraries) with templates.
23142prelink_cmds=$lt_prelink_cmds
23143
23144# Commands necessary for finishing linking programs.
23145postlink_cmds=$lt_postlink_cmds
23146
23147# Specify filename containing input files.
23148file_list_spec=$lt_file_list_spec
23149
23150# How to hardcode a shared library path into an executable.
23151hardcode_action=$hardcode_action
23152
23153# ### END LIBTOOL CONFIG
23154
23155_LT_EOF
23156
23157    cat <<'_LT_EOF' >> "$cfgfile"
23158
23159# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
23160
23161# func_munge_path_list VARIABLE PATH
23162# -----------------------------------
23163# VARIABLE is name of variable containing _space_ separated list of
23164# directories to be munged by the contents of PATH, which is string
23165# having a format:
23166# "DIR[:DIR]:"
23167#       string "DIR[ DIR]" will be prepended to VARIABLE
23168# ":DIR[:DIR]"
23169#       string "DIR[ DIR]" will be appended to VARIABLE
23170# "DIRP[:DIRP]::[DIRA:]DIRA"
23171#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
23172#       "DIRA[ DIRA]" will be appended to VARIABLE
23173# "DIR[:DIR]"
23174#       VARIABLE will be replaced by "DIR[ DIR]"
23175func_munge_path_list ()
23176{
23177    case x$2 in
23178    x)
23179        ;;
23180    *:)
23181        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
23182        ;;
23183    x:*)
23184        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
23185        ;;
23186    *::*)
23187        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
23188        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
23189        ;;
23190    *)
23191        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
23192        ;;
23193    esac
23194}
23195
23196
23197# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
23198func_cc_basename ()
23199{
23200    for cc_temp in $*""; do
23201      case $cc_temp in
23202        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23203        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23204        \-*) ;;
23205        *) break;;
23206      esac
23207    done
23208    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
23209}
23210
23211
23212# ### END FUNCTIONS SHARED WITH CONFIGURE
23213
23214_LT_EOF
23215
23216  case $host_os in
23217  aix3*)
23218    cat <<\_LT_EOF >> "$cfgfile"
23219# AIX sometimes has problems with the GCC collect2 program.  For some
23220# reason, if we set the COLLECT_NAMES environment variable, the problems
23221# vanish in a puff of smoke.
23222if test set != "${COLLECT_NAMES+set}"; then
23223  COLLECT_NAMES=
23224  export COLLECT_NAMES
23225fi
23226_LT_EOF
23227    ;;
23228  esac
23229
23230
23231
23232ltmain=$ac_aux_dir/ltmain.sh
23233
23234
23235  # We use sed instead of cat because bash on DJGPP gets confused if
23236  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
23237  # text mode, it properly converts lines to CR/LF.  This bash problem
23238  # is reportedly fixed, but why not run on old versions too?
23239  $SED '$q' "$ltmain" >> "$cfgfile" \
23240     || (rm -f "$cfgfile"; exit 1)
23241
23242   mv -f "$cfgfile" "$ofile" ||
23243    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23244  chmod +x "$ofile"
23245
23246 ;;
23247
23248  esac
23249done # for ac_tag
23250
23251
23252as_fn_exit 0
23253_ACEOF
23254ac_clean_files=$ac_clean_files_save
23255
23256test $ac_write_fail = 0 ||
23257  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
23258
23259
23260# configure is writing to config.log, and then calls config.status.
23261# config.status does its own redirection, appending to config.log.
23262# Unfortunately, on DOS this fails, as config.log is still kept open
23263# by configure, so config.status won't be able to write to it; its
23264# output is simply discarded.  So we exec the FD to /dev/null,
23265# effectively closing config.log, so it can be properly (re)opened and
23266# appended to by config.status.  When coming back to configure, we
23267# need to make the FD available again.
23268if test "$no_create" != yes; then
23269  ac_cs_success=:
23270  ac_config_status_args=
23271  test "$silent" = yes &&
23272    ac_config_status_args="$ac_config_status_args --quiet"
23273  exec 5>/dev/null
23274  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23275  exec 5>>config.log
23276  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23277  # would make configure fail if this is the last instruction.
23278  $ac_cs_success || as_fn_exit 1
23279fi
23280if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23281  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23282printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23283fi
23284
23285
23286