configure revision 03ea5dc6
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.71 for libX11 1.7.2.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libx11/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/libx11/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='libX11'
684PACKAGE_TARNAME='libX11'
685PACKAGE_VERSION='1.7.2'
686PACKAGE_STRING='libX11 1.7.2'
687PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libx11/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_func_c_list=
724ac_subst_vars='am__EXEEXT_FALSE
725am__EXEEXT_TRUE
726LTLIBOBJS
727XTMALLOC_ZERO_CFLAGS
728XMALLOC_ZERO_CFLAGS
729MALLOC_ZERO_CFLAGS
730XERRORDB
731XKEYSYMDB
732locales
733X11_LOCALEDIR
734XLOCALEDIR
735X11_LOCALELIBDIR
736XLOCALELIBDIR
737X11_LOCALEDATADIR
738XLOCALEDATADIR
739X11_LIBS
740X11_CFLAGS
741X11_LIBDIR
742X11_DATADIR
743MAKE_LINT_LIB_FALSE
744MAKE_LINT_LIB_TRUE
745LINTLIB
746LINT_FALSE
747LINT_TRUE
748LINT_FLAGS
749LINT
750XKBPROTO_REQUIRES
751XKB_FALSE
752XKB_TRUE
753BIGFONT_LIBS
754BIGFONT_CFLAGS
755XLOCALE_FALSE
756XLOCALE_TRUE
757XCMS_FALSE
758XCMS_TRUE
759KEYSYMDEFS
760XTHREAD_CFLAGS
761XTHREADLIB
762THRSTUBS_FALSE
763THRSTUBS_TRUE
764LAUNCHD
765OS2_FALSE
766OS2_TRUE
767WCHAR32
768LIBOBJS
769XLIB_LOADABLE_I18N_FALSE
770XLIB_LOADABLE_I18N_TRUE
771I18N_MODULE_LIBS
772X11_EXTRA_DEPS
773EXEEXT_FOR_BUILD
774LDFLAGS_FOR_BUILD
775CFLAGS_FOR_BUILD
776CPPFLAGS_FOR_BUILD
777CC_FOR_BUILD
778HAVE_PERL_FALSE
779HAVE_PERL_TRUE
780PERL
781TRADITIONALCPPFLAGS
782RAWCPPFLAGS
783RAWCPP
784CPP
785HAVE_STYLESHEETS_FALSE
786HAVE_STYLESHEETS_TRUE
787XSL_STYLESHEET
788STYLESHEET_SRCDIR
789XORG_SGML_PATH
790HAVE_XSLTPROC_FALSE
791HAVE_XSLTPROC_TRUE
792XSLTPROC
793HAVE_FOP_FALSE
794HAVE_FOP_TRUE
795FOP
796HAVE_XMLTO_FALSE
797HAVE_XMLTO_TRUE
798HAVE_XMLTO_TEXT_FALSE
799HAVE_XMLTO_TEXT_TRUE
800XMLTO
801ENABLE_SPECS_FALSE
802ENABLE_SPECS_TRUE
803MAN_SUBSTS
804XORG_MAN_PAGE
805ADMIN_MAN_DIR
806DRIVER_MAN_DIR
807MISC_MAN_DIR
808FILE_MAN_DIR
809LIB_MAN_DIR
810APP_MAN_DIR
811ADMIN_MAN_SUFFIX
812DRIVER_MAN_SUFFIX
813MISC_MAN_SUFFIX
814FILE_MAN_SUFFIX
815LIB_MAN_SUFFIX
816APP_MAN_SUFFIX
817INSTALL_CMD
818PKG_CONFIG_LIBDIR
819PKG_CONFIG_PATH
820PKG_CONFIG
821CHANGELOG_CMD
822STRICT_CFLAGS
823CWARNFLAGS
824BASE_CFLAGS
825LT_SYS_LIBRARY_PATH
826OTOOL64
827OTOOL
828LIPO
829NMEDIT
830DSYMUTIL
831MANIFEST_TOOL
832RANLIB
833ac_ct_AR
834AR
835DLLTOOL
836OBJDUMP
837LN_S
838NM
839ac_ct_DUMPBIN
840DUMPBIN
841LD
842FGREP
843EGREP
844GREP
845SED
846LIBTOOL
847AM_BACKSLASH
848AM_DEFAULT_VERBOSITY
849AM_DEFAULT_V
850AM_V
851am__fastdepCC_FALSE
852am__fastdepCC_TRUE
853CCDEPMODE
854am__nodep
855AMDEPBACKSLASH
856AMDEP_FALSE
857AMDEP_TRUE
858am__include
859DEPDIR
860am__untar
861am__tar
862AMTAR
863am__leading_dot
864SET_MAKE
865AWK
866mkdir_p
867MKDIR_P
868INSTALL_STRIP_PROGRAM
869STRIP
870install_sh
871MAKEINFO
872AUTOHEADER
873AUTOMAKE
874AUTOCONF
875ACLOCAL
876VERSION
877PACKAGE
878CYGPATH_W
879am__isrc
880INSTALL_DATA
881INSTALL_SCRIPT
882INSTALL_PROGRAM
883OBJEXT
884EXEEXT
885ac_ct_CC
886CPPFLAGS
887LDFLAGS
888CFLAGS
889CC
890host_os
891host_vendor
892host_cpu
893host
894build_os
895build_vendor
896build_cpu
897build
898target_alias
899host_alias
900build_alias
901LIBS
902ECHO_T
903ECHO_N
904ECHO_C
905DEFS
906mandir
907localedir
908libdir
909psdir
910pdfdir
911dvidir
912htmldir
913infodir
914docdir
915oldincludedir
916includedir
917runstatedir
918localstatedir
919sharedstatedir
920sysconfdir
921datadir
922datarootdir
923libexecdir
924sbindir
925bindir
926program_transform_name
927prefix
928exec_prefix
929PACKAGE_URL
930PACKAGE_BUGREPORT
931PACKAGE_STRING
932PACKAGE_VERSION
933PACKAGE_TARNAME
934PACKAGE_NAME
935PATH_SEPARATOR
936SHELL
937am__quote'
938ac_subst_files=''
939ac_user_opts='
940enable_option_checking
941enable_dependency_tracking
942enable_silent_rules
943enable_shared
944enable_static
945with_pic
946enable_fast_install
947with_aix_soname
948with_gnu_ld
949with_sysroot
950enable_libtool_lock
951enable_largefile
952enable_selective_werror
953enable_strict_compilation
954enable_specs
955with_xmlto
956with_fop
957with_xsltproc
958with_perl
959enable_unix_transport
960enable_tcp_transport
961enable_ipv6
962enable_local_transport
963enable_loadable_i18n
964enable_loadable_xcursor
965with_launchd
966enable_xthreads
967with_keysymdefdir
968enable_xcms
969enable_xlocale
970enable_xlocaledir
971enable_xf86bigfont
972enable_xkb
973enable_composecache
974with_lint
975enable_lint_library
976with_locale_lib_dir
977enable_malloc0returnsnull
978'
979      ac_precious_vars='build_alias
980host_alias
981target_alias
982CC
983CFLAGS
984LDFLAGS
985LIBS
986CPPFLAGS
987LT_SYS_LIBRARY_PATH
988PKG_CONFIG
989PKG_CONFIG_PATH
990PKG_CONFIG_LIBDIR
991XMLTO
992FOP
993XSLTPROC
994CPP
995PERL
996BIGFONT_CFLAGS
997BIGFONT_LIBS
998LINT
999LINT_FLAGS
1000X11_CFLAGS
1001X11_LIBS'
1002
1003
1004# Initialize some variables set by options.
1005ac_init_help=
1006ac_init_version=false
1007ac_unrecognized_opts=
1008ac_unrecognized_sep=
1009# The variables have the same names as the options, with
1010# dashes changed to underlines.
1011cache_file=/dev/null
1012exec_prefix=NONE
1013no_create=
1014no_recursion=
1015prefix=NONE
1016program_prefix=NONE
1017program_suffix=NONE
1018program_transform_name=s,x,x,
1019silent=
1020site=
1021srcdir=
1022verbose=
1023x_includes=NONE
1024x_libraries=NONE
1025
1026# Installation directory options.
1027# These are left unexpanded so users can "make install exec_prefix=/foo"
1028# and all the variables that are supposed to be based on exec_prefix
1029# by default will actually change.
1030# Use braces instead of parens because sh, perl, etc. also accept them.
1031# (The list follows the same order as the GNU Coding Standards.)
1032bindir='${exec_prefix}/bin'
1033sbindir='${exec_prefix}/sbin'
1034libexecdir='${exec_prefix}/libexec'
1035datarootdir='${prefix}/share'
1036datadir='${datarootdir}'
1037sysconfdir='${prefix}/etc'
1038sharedstatedir='${prefix}/com'
1039localstatedir='${prefix}/var'
1040runstatedir='${localstatedir}/run'
1041includedir='${prefix}/include'
1042oldincludedir='/usr/include'
1043docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1044infodir='${datarootdir}/info'
1045htmldir='${docdir}'
1046dvidir='${docdir}'
1047pdfdir='${docdir}'
1048psdir='${docdir}'
1049libdir='${exec_prefix}/lib'
1050localedir='${datarootdir}/locale'
1051mandir='${datarootdir}/man'
1052
1053ac_prev=
1054ac_dashdash=
1055for ac_option
1056do
1057  # If the previous option needs an argument, assign it.
1058  if test -n "$ac_prev"; then
1059    eval $ac_prev=\$ac_option
1060    ac_prev=
1061    continue
1062  fi
1063
1064  case $ac_option in
1065  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1066  *=)   ac_optarg= ;;
1067  *)    ac_optarg=yes ;;
1068  esac
1069
1070  case $ac_dashdash$ac_option in
1071  --)
1072    ac_dashdash=yes ;;
1073
1074  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1075    ac_prev=bindir ;;
1076  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1077    bindir=$ac_optarg ;;
1078
1079  -build | --build | --buil | --bui | --bu)
1080    ac_prev=build_alias ;;
1081  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1082    build_alias=$ac_optarg ;;
1083
1084  -cache-file | --cache-file | --cache-fil | --cache-fi \
1085  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1086    ac_prev=cache_file ;;
1087  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1088  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1089    cache_file=$ac_optarg ;;
1090
1091  --config-cache | -C)
1092    cache_file=config.cache ;;
1093
1094  -datadir | --datadir | --datadi | --datad)
1095    ac_prev=datadir ;;
1096  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1097    datadir=$ac_optarg ;;
1098
1099  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1100  | --dataroo | --dataro | --datar)
1101    ac_prev=datarootdir ;;
1102  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1103  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1104    datarootdir=$ac_optarg ;;
1105
1106  -disable-* | --disable-*)
1107    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1108    # Reject names that are not valid shell variable names.
1109    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1110      as_fn_error $? "invalid feature name: \`$ac_useropt'"
1111    ac_useropt_orig=$ac_useropt
1112    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1113    case $ac_user_opts in
1114      *"
1115"enable_$ac_useropt"
1116"*) ;;
1117      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1118	 ac_unrecognized_sep=', ';;
1119    esac
1120    eval enable_$ac_useropt=no ;;
1121
1122  -docdir | --docdir | --docdi | --doc | --do)
1123    ac_prev=docdir ;;
1124  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1125    docdir=$ac_optarg ;;
1126
1127  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1128    ac_prev=dvidir ;;
1129  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1130    dvidir=$ac_optarg ;;
1131
1132  -enable-* | --enable-*)
1133    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1134    # Reject names that are not valid shell variable names.
1135    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1136      as_fn_error $? "invalid feature name: \`$ac_useropt'"
1137    ac_useropt_orig=$ac_useropt
1138    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1139    case $ac_user_opts in
1140      *"
1141"enable_$ac_useropt"
1142"*) ;;
1143      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1144	 ac_unrecognized_sep=', ';;
1145    esac
1146    eval enable_$ac_useropt=\$ac_optarg ;;
1147
1148  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1149  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1150  | --exec | --exe | --ex)
1151    ac_prev=exec_prefix ;;
1152  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1153  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1154  | --exec=* | --exe=* | --ex=*)
1155    exec_prefix=$ac_optarg ;;
1156
1157  -gas | --gas | --ga | --g)
1158    # Obsolete; use --with-gas.
1159    with_gas=yes ;;
1160
1161  -help | --help | --hel | --he | -h)
1162    ac_init_help=long ;;
1163  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1164    ac_init_help=recursive ;;
1165  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1166    ac_init_help=short ;;
1167
1168  -host | --host | --hos | --ho)
1169    ac_prev=host_alias ;;
1170  -host=* | --host=* | --hos=* | --ho=*)
1171    host_alias=$ac_optarg ;;
1172
1173  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1174    ac_prev=htmldir ;;
1175  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1176  | --ht=*)
1177    htmldir=$ac_optarg ;;
1178
1179  -includedir | --includedir | --includedi | --included | --include \
1180  | --includ | --inclu | --incl | --inc)
1181    ac_prev=includedir ;;
1182  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1183  | --includ=* | --inclu=* | --incl=* | --inc=*)
1184    includedir=$ac_optarg ;;
1185
1186  -infodir | --infodir | --infodi | --infod | --info | --inf)
1187    ac_prev=infodir ;;
1188  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1189    infodir=$ac_optarg ;;
1190
1191  -libdir | --libdir | --libdi | --libd)
1192    ac_prev=libdir ;;
1193  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1194    libdir=$ac_optarg ;;
1195
1196  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1197  | --libexe | --libex | --libe)
1198    ac_prev=libexecdir ;;
1199  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1200  | --libexe=* | --libex=* | --libe=*)
1201    libexecdir=$ac_optarg ;;
1202
1203  -localedir | --localedir | --localedi | --localed | --locale)
1204    ac_prev=localedir ;;
1205  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1206    localedir=$ac_optarg ;;
1207
1208  -localstatedir | --localstatedir | --localstatedi | --localstated \
1209  | --localstate | --localstat | --localsta | --localst | --locals)
1210    ac_prev=localstatedir ;;
1211  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1212  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1213    localstatedir=$ac_optarg ;;
1214
1215  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1216    ac_prev=mandir ;;
1217  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1218    mandir=$ac_optarg ;;
1219
1220  -nfp | --nfp | --nf)
1221    # Obsolete; use --without-fp.
1222    with_fp=no ;;
1223
1224  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1225  | --no-cr | --no-c | -n)
1226    no_create=yes ;;
1227
1228  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1229  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1230    no_recursion=yes ;;
1231
1232  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1233  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1234  | --oldin | --oldi | --old | --ol | --o)
1235    ac_prev=oldincludedir ;;
1236  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1237  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1238  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1239    oldincludedir=$ac_optarg ;;
1240
1241  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1242    ac_prev=prefix ;;
1243  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1244    prefix=$ac_optarg ;;
1245
1246  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1247  | --program-pre | --program-pr | --program-p)
1248    ac_prev=program_prefix ;;
1249  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1250  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1251    program_prefix=$ac_optarg ;;
1252
1253  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1254  | --program-suf | --program-su | --program-s)
1255    ac_prev=program_suffix ;;
1256  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1257  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1258    program_suffix=$ac_optarg ;;
1259
1260  -program-transform-name | --program-transform-name \
1261  | --program-transform-nam | --program-transform-na \
1262  | --program-transform-n | --program-transform- \
1263  | --program-transform | --program-transfor \
1264  | --program-transfo | --program-transf \
1265  | --program-trans | --program-tran \
1266  | --progr-tra | --program-tr | --program-t)
1267    ac_prev=program_transform_name ;;
1268  -program-transform-name=* | --program-transform-name=* \
1269  | --program-transform-nam=* | --program-transform-na=* \
1270  | --program-transform-n=* | --program-transform-=* \
1271  | --program-transform=* | --program-transfor=* \
1272  | --program-transfo=* | --program-transf=* \
1273  | --program-trans=* | --program-tran=* \
1274  | --progr-tra=* | --program-tr=* | --program-t=*)
1275    program_transform_name=$ac_optarg ;;
1276
1277  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1278    ac_prev=pdfdir ;;
1279  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1280    pdfdir=$ac_optarg ;;
1281
1282  -psdir | --psdir | --psdi | --psd | --ps)
1283    ac_prev=psdir ;;
1284  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1285    psdir=$ac_optarg ;;
1286
1287  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1288  | -silent | --silent | --silen | --sile | --sil)
1289    silent=yes ;;
1290
1291  -runstatedir | --runstatedir | --runstatedi | --runstated \
1292  | --runstate | --runstat | --runsta | --runst | --runs \
1293  | --run | --ru | --r)
1294    ac_prev=runstatedir ;;
1295  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1296  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1297  | --run=* | --ru=* | --r=*)
1298    runstatedir=$ac_optarg ;;
1299
1300  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1301    ac_prev=sbindir ;;
1302  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1303  | --sbi=* | --sb=*)
1304    sbindir=$ac_optarg ;;
1305
1306  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1307  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1308  | --sharedst | --shareds | --shared | --share | --shar \
1309  | --sha | --sh)
1310    ac_prev=sharedstatedir ;;
1311  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1312  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1313  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1314  | --sha=* | --sh=*)
1315    sharedstatedir=$ac_optarg ;;
1316
1317  -site | --site | --sit)
1318    ac_prev=site ;;
1319  -site=* | --site=* | --sit=*)
1320    site=$ac_optarg ;;
1321
1322  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1323    ac_prev=srcdir ;;
1324  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1325    srcdir=$ac_optarg ;;
1326
1327  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1328  | --syscon | --sysco | --sysc | --sys | --sy)
1329    ac_prev=sysconfdir ;;
1330  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1331  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1332    sysconfdir=$ac_optarg ;;
1333
1334  -target | --target | --targe | --targ | --tar | --ta | --t)
1335    ac_prev=target_alias ;;
1336  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1337    target_alias=$ac_optarg ;;
1338
1339  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1340    verbose=yes ;;
1341
1342  -version | --version | --versio | --versi | --vers | -V)
1343    ac_init_version=: ;;
1344
1345  -with-* | --with-*)
1346    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1347    # Reject names that are not valid shell variable names.
1348    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1349      as_fn_error $? "invalid package name: \`$ac_useropt'"
1350    ac_useropt_orig=$ac_useropt
1351    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1352    case $ac_user_opts in
1353      *"
1354"with_$ac_useropt"
1355"*) ;;
1356      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1357	 ac_unrecognized_sep=', ';;
1358    esac
1359    eval with_$ac_useropt=\$ac_optarg ;;
1360
1361  -without-* | --without-*)
1362    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1363    # Reject names that are not valid shell variable names.
1364    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1365      as_fn_error $? "invalid package name: \`$ac_useropt'"
1366    ac_useropt_orig=$ac_useropt
1367    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1368    case $ac_user_opts in
1369      *"
1370"with_$ac_useropt"
1371"*) ;;
1372      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1373	 ac_unrecognized_sep=', ';;
1374    esac
1375    eval with_$ac_useropt=no ;;
1376
1377  --x)
1378    # Obsolete; use --with-x.
1379    with_x=yes ;;
1380
1381  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1382  | --x-incl | --x-inc | --x-in | --x-i)
1383    ac_prev=x_includes ;;
1384  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1385  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1386    x_includes=$ac_optarg ;;
1387
1388  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1389  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1390    ac_prev=x_libraries ;;
1391  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1392  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1393    x_libraries=$ac_optarg ;;
1394
1395  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1396Try \`$0 --help' for more information"
1397    ;;
1398
1399  *=*)
1400    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1401    # Reject names that are not valid shell variable names.
1402    case $ac_envvar in #(
1403      '' | [0-9]* | *[!_$as_cr_alnum]* )
1404      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1405    esac
1406    eval $ac_envvar=\$ac_optarg
1407    export $ac_envvar ;;
1408
1409  *)
1410    # FIXME: should be removed in autoconf 3.0.
1411    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1412    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1413      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1414    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1415    ;;
1416
1417  esac
1418done
1419
1420if test -n "$ac_prev"; then
1421  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1422  as_fn_error $? "missing argument to $ac_option"
1423fi
1424
1425if test -n "$ac_unrecognized_opts"; then
1426  case $enable_option_checking in
1427    no) ;;
1428    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1429    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1430  esac
1431fi
1432
1433# Check all directory arguments for consistency.
1434for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1435		datadir sysconfdir sharedstatedir localstatedir includedir \
1436		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1437		libdir localedir mandir runstatedir
1438do
1439  eval ac_val=\$$ac_var
1440  # Remove trailing slashes.
1441  case $ac_val in
1442    */ )
1443      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1444      eval $ac_var=\$ac_val;;
1445  esac
1446  # Be sure to have absolute directory names.
1447  case $ac_val in
1448    [\\/$]* | ?:[\\/]* )  continue;;
1449    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1450  esac
1451  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1452done
1453
1454# There might be people who depend on the old broken behavior: `$host'
1455# used to hold the argument of --host etc.
1456# FIXME: To remove some day.
1457build=$build_alias
1458host=$host_alias
1459target=$target_alias
1460
1461# FIXME: To remove some day.
1462if test "x$host_alias" != x; then
1463  if test "x$build_alias" = x; then
1464    cross_compiling=maybe
1465  elif test "x$build_alias" != "x$host_alias"; then
1466    cross_compiling=yes
1467  fi
1468fi
1469
1470ac_tool_prefix=
1471test -n "$host_alias" && ac_tool_prefix=$host_alias-
1472
1473test "$silent" = yes && exec 6>/dev/null
1474
1475
1476ac_pwd=`pwd` && test -n "$ac_pwd" &&
1477ac_ls_di=`ls -di .` &&
1478ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1479  as_fn_error $? "working directory cannot be determined"
1480test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1481  as_fn_error $? "pwd does not report name of working directory"
1482
1483
1484# Find the source files, if location was not specified.
1485if test -z "$srcdir"; then
1486  ac_srcdir_defaulted=yes
1487  # Try the directory containing this script, then the parent directory.
1488  ac_confdir=`$as_dirname -- "$as_myself" ||
1489$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1490	 X"$as_myself" : 'X\(//\)[^/]' \| \
1491	 X"$as_myself" : 'X\(//\)$' \| \
1492	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1493printf "%s\n" X"$as_myself" |
1494    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1495	    s//\1/
1496	    q
1497	  }
1498	  /^X\(\/\/\)[^/].*/{
1499	    s//\1/
1500	    q
1501	  }
1502	  /^X\(\/\/\)$/{
1503	    s//\1/
1504	    q
1505	  }
1506	  /^X\(\/\).*/{
1507	    s//\1/
1508	    q
1509	  }
1510	  s/.*/./; q'`
1511  srcdir=$ac_confdir
1512  if test ! -r "$srcdir/$ac_unique_file"; then
1513    srcdir=..
1514  fi
1515else
1516  ac_srcdir_defaulted=no
1517fi
1518if test ! -r "$srcdir/$ac_unique_file"; then
1519  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1520  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1521fi
1522ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1523ac_abs_confdir=`(
1524	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1525	pwd)`
1526# When building in place, set srcdir=.
1527if test "$ac_abs_confdir" = "$ac_pwd"; then
1528  srcdir=.
1529fi
1530# Remove unnecessary trailing slashes from srcdir.
1531# Double slashes in file names in object file debugging info
1532# mess up M-x gdb in Emacs.
1533case $srcdir in
1534*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1535esac
1536for ac_var in $ac_precious_vars; do
1537  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1538  eval ac_env_${ac_var}_value=\$${ac_var}
1539  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1540  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1541done
1542
1543#
1544# Report the --help message.
1545#
1546if test "$ac_init_help" = "long"; then
1547  # Omit some internal or obsolete options to make the list less imposing.
1548  # This message is too long to be a string in the A/UX 3.1 sh.
1549  cat <<_ACEOF
1550\`configure' configures libX11 1.7.2 to adapt to many kinds of systems.
1551
1552Usage: $0 [OPTION]... [VAR=VALUE]...
1553
1554To assign environment variables (e.g., CC, CFLAGS...), specify them as
1555VAR=VALUE.  See below for descriptions of some of the useful variables.
1556
1557Defaults for the options are specified in brackets.
1558
1559Configuration:
1560  -h, --help              display this help and exit
1561      --help=short        display options specific to this package
1562      --help=recursive    display the short help of all the included packages
1563  -V, --version           display version information and exit
1564  -q, --quiet, --silent   do not print \`checking ...' messages
1565      --cache-file=FILE   cache test results in FILE [disabled]
1566  -C, --config-cache      alias for \`--cache-file=config.cache'
1567  -n, --no-create         do not create output files
1568      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1569
1570Installation directories:
1571  --prefix=PREFIX         install architecture-independent files in PREFIX
1572                          [$ac_default_prefix]
1573  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1574                          [PREFIX]
1575
1576By default, \`make install' will install all the files in
1577\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1578an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1579for instance \`--prefix=\$HOME'.
1580
1581For better control, use the options below.
1582
1583Fine tuning of the installation directories:
1584  --bindir=DIR            user executables [EPREFIX/bin]
1585  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1586  --libexecdir=DIR        program executables [EPREFIX/libexec]
1587  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1588  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1589  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1590  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1591  --libdir=DIR            object code libraries [EPREFIX/lib]
1592  --includedir=DIR        C header files [PREFIX/include]
1593  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1594  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1595  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1596  --infodir=DIR           info documentation [DATAROOTDIR/info]
1597  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1598  --mandir=DIR            man documentation [DATAROOTDIR/man]
1599  --docdir=DIR            documentation root [DATAROOTDIR/doc/libX11]
1600  --htmldir=DIR           html documentation [DOCDIR]
1601  --dvidir=DIR            dvi documentation [DOCDIR]
1602  --pdfdir=DIR            pdf documentation [DOCDIR]
1603  --psdir=DIR             ps documentation [DOCDIR]
1604_ACEOF
1605
1606  cat <<\_ACEOF
1607
1608Program names:
1609  --program-prefix=PREFIX            prepend PREFIX to installed program names
1610  --program-suffix=SUFFIX            append SUFFIX to installed program names
1611  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1612
1613System types:
1614  --build=BUILD     configure for building on BUILD [guessed]
1615  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1616_ACEOF
1617fi
1618
1619if test -n "$ac_init_help"; then
1620  case $ac_init_help in
1621     short | recursive ) echo "Configuration of libX11 1.7.2:";;
1622   esac
1623  cat <<\_ACEOF
1624
1625Optional Features:
1626  --disable-option-checking  ignore unrecognized --enable/--with options
1627  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1628  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1629  --enable-dependency-tracking
1630                          do not reject slow dependency extractors
1631  --disable-dependency-tracking
1632                          speeds up one-time build
1633  --enable-silent-rules   less verbose build output (undo: "make V=1")
1634  --disable-silent-rules  verbose build output (undo: "make V=0")
1635  --enable-shared[=PKGS]  build shared libraries [default=yes]
1636  --enable-static[=PKGS]  build static libraries [default=yes]
1637  --enable-fast-install[=PKGS]
1638                          optimize for fast installation [default=yes]
1639  --disable-libtool-lock  avoid locking (might break parallel builds)
1640  --disable-largefile     omit support for large files
1641  --disable-selective-werror
1642                          Turn off selective compiler errors. (default:
1643                          enabled)
1644  --enable-strict-compilation
1645                          Enable all warnings from compiler and make them
1646                          errors (default: disabled)
1647  --enable-specs          Enable building the specs (default: yes)
1648  --enable-unix-transport Enable UNIX domain socket transport
1649  --enable-tcp-transport  Enable TCP socket transport
1650  --enable-ipv6           Enable IPv6 support
1651  --enable-local-transport
1652                          Enable os-specific local transport
1653  --enable-loadable-i18n  Controls loadable i18n module support
1654  --disable-loadable-xcursor
1655                          Controls loadable xcursor library support
1656  --disable-xthreads      Disable Xlib support for Multithreading
1657  --disable-xcms          Disable Xlib support for CMS *EXPERIMENTAL*
1658  --disable-xlocale       Disable Xlib locale implementation *EXPERIMENTAL*
1659  --enable-xlocaledir     Enable XLOCALEDIR environment variable support
1660  --disable-xf86bigfont   Disable XF86BigFont extension support
1661  --disable-xkb           Disable XKB support *EXPERIMENTAL*
1662  --disable-composecache  Disable compose table cache support
1663  --enable-lint-library   Create lint library (default: disabled)
1664  --enable-malloc0returnsnull
1665                          malloc(0) returns NULL (default: auto)
1666
1667Optional Packages:
1668  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1669  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1670  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1671                          both]
1672  --with-aix-soname=aix|svr4|both
1673                          shared library versioning (aka "SONAME") variant to
1674                          provide on AIX, [default=aix].
1675  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1676  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1677                          compiler's sysroot if not specified).
1678  --with-xmlto            Use xmlto to regenerate documentation (default:
1679                          auto)
1680  --with-fop              Use fop to regenerate documentation (default: no)
1681  --with-xsltproc         Use xsltproc for the transformation of XML documents
1682                          (default: auto)
1683  --with-perl             Use perl for extracting information from files
1684                          (default: auto)
1685  --with-launchd          Build with support for Apple's launchd (default:
1686                          auto)
1687  --with-keysymdefdir=DIR The location of keysymdef.h (defaults to xproto
1688                          include dir)
1689  --with-lint             Use a lint-style source code checker (default:
1690                          disabled)
1691  --with-locale-lib-dir=DIR
1692                          Directory where locale libraries files are installed
1693                          (default: $libdir/X11/locale)
1694
1695Some influential environment variables:
1696  CC          C compiler command
1697  CFLAGS      C compiler flags
1698  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1699              nonstandard directory <lib dir>
1700  LIBS        libraries to pass to the linker, e.g. -l<library>
1701  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1702              you have headers in a nonstandard directory <include dir>
1703  LT_SYS_LIBRARY_PATH
1704              User-defined run-time library search path.
1705  PKG_CONFIG  path to pkg-config utility
1706  PKG_CONFIG_PATH
1707              directories to add to pkg-config's search path
1708  PKG_CONFIG_LIBDIR
1709              path overriding pkg-config's built-in search path
1710  XMLTO       Path to xmlto command
1711  FOP         Path to fop command
1712  XSLTPROC    Path to xsltproc command
1713  CPP         C preprocessor
1714  PERL        Path to perl command
1715  BIGFONT_CFLAGS
1716              C compiler flags for BIGFONT, overriding pkg-config
1717  BIGFONT_LIBS
1718              linker flags for BIGFONT, overriding pkg-config
1719  LINT        Path to a lint-style command
1720  LINT_FLAGS  Flags for the lint-style command
1721  X11_CFLAGS  C compiler flags for X11, overriding pkg-config
1722  X11_LIBS    linker flags for X11, overriding pkg-config
1723
1724Use these variables to override the choices made by `configure' or to help
1725it to find libraries and programs with nonstandard names/locations.
1726
1727Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libx11/issues>.
1728_ACEOF
1729ac_status=$?
1730fi
1731
1732if test "$ac_init_help" = "recursive"; then
1733  # If there are subdirs, report their specific --help.
1734  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1735    test -d "$ac_dir" ||
1736      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1737      continue
1738    ac_builddir=.
1739
1740case "$ac_dir" in
1741.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1742*)
1743  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1744  # A ".." for each directory in $ac_dir_suffix.
1745  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1746  case $ac_top_builddir_sub in
1747  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1748  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1749  esac ;;
1750esac
1751ac_abs_top_builddir=$ac_pwd
1752ac_abs_builddir=$ac_pwd$ac_dir_suffix
1753# for backward compatibility:
1754ac_top_builddir=$ac_top_build_prefix
1755
1756case $srcdir in
1757  .)  # We are building in place.
1758    ac_srcdir=.
1759    ac_top_srcdir=$ac_top_builddir_sub
1760    ac_abs_top_srcdir=$ac_pwd ;;
1761  [\\/]* | ?:[\\/]* )  # Absolute name.
1762    ac_srcdir=$srcdir$ac_dir_suffix;
1763    ac_top_srcdir=$srcdir
1764    ac_abs_top_srcdir=$srcdir ;;
1765  *) # Relative name.
1766    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1767    ac_top_srcdir=$ac_top_build_prefix$srcdir
1768    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1769esac
1770ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1771
1772    cd "$ac_dir" || { ac_status=$?; continue; }
1773    # Check for configure.gnu first; this name is used for a wrapper for
1774    # Metaconfig's "Configure" on case-insensitive file systems.
1775    if test -f "$ac_srcdir/configure.gnu"; then
1776      echo &&
1777      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1778    elif test -f "$ac_srcdir/configure"; then
1779      echo &&
1780      $SHELL "$ac_srcdir/configure" --help=recursive
1781    else
1782      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1783    fi || ac_status=$?
1784    cd "$ac_pwd" || { ac_status=$?; break; }
1785  done
1786fi
1787
1788test -n "$ac_init_help" && exit $ac_status
1789if $ac_init_version; then
1790  cat <<\_ACEOF
1791libX11 configure 1.7.2
1792generated by GNU Autoconf 2.71
1793
1794Copyright (C) 2021 Free Software Foundation, Inc.
1795This configure script is free software; the Free Software Foundation
1796gives unlimited permission to copy, distribute and modify it.
1797_ACEOF
1798  exit
1799fi
1800
1801## ------------------------ ##
1802## Autoconf initialization. ##
1803## ------------------------ ##
1804
1805# ac_fn_c_try_compile LINENO
1806# --------------------------
1807# Try to compile conftest.$ac_ext, and return whether this succeeded.
1808ac_fn_c_try_compile ()
1809{
1810  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1811  rm -f conftest.$ac_objext conftest.beam
1812  if { { ac_try="$ac_compile"
1813case "(($ac_try" in
1814  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1815  *) ac_try_echo=$ac_try;;
1816esac
1817eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1818printf "%s\n" "$ac_try_echo"; } >&5
1819  (eval "$ac_compile") 2>conftest.err
1820  ac_status=$?
1821  if test -s conftest.err; then
1822    grep -v '^ *+' conftest.err >conftest.er1
1823    cat conftest.er1 >&5
1824    mv -f conftest.er1 conftest.err
1825  fi
1826  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1827  test $ac_status = 0; } && {
1828	 test -z "$ac_c_werror_flag" ||
1829	 test ! -s conftest.err
1830       } && test -s conftest.$ac_objext
1831then :
1832  ac_retval=0
1833else $as_nop
1834  printf "%s\n" "$as_me: failed program was:" >&5
1835sed 's/^/| /' conftest.$ac_ext >&5
1836
1837	ac_retval=1
1838fi
1839  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1840  as_fn_set_status $ac_retval
1841
1842} # ac_fn_c_try_compile
1843
1844# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1845# -------------------------------------------------------
1846# Tests whether HEADER exists and can be compiled using the include files in
1847# INCLUDES, setting the cache variable VAR accordingly.
1848ac_fn_c_check_header_compile ()
1849{
1850  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1851  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1852printf %s "checking for $2... " >&6; }
1853if eval test \${$3+y}
1854then :
1855  printf %s "(cached) " >&6
1856else $as_nop
1857  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1858/* end confdefs.h.  */
1859$4
1860#include <$2>
1861_ACEOF
1862if ac_fn_c_try_compile "$LINENO"
1863then :
1864  eval "$3=yes"
1865else $as_nop
1866  eval "$3=no"
1867fi
1868rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1869fi
1870eval ac_res=\$$3
1871	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1872printf "%s\n" "$ac_res" >&6; }
1873  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1874
1875} # ac_fn_c_check_header_compile
1876
1877# ac_fn_c_try_link LINENO
1878# -----------------------
1879# Try to link conftest.$ac_ext, and return whether this succeeded.
1880ac_fn_c_try_link ()
1881{
1882  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1883  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1884  if { { ac_try="$ac_link"
1885case "(($ac_try" in
1886  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1887  *) ac_try_echo=$ac_try;;
1888esac
1889eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1890printf "%s\n" "$ac_try_echo"; } >&5
1891  (eval "$ac_link") 2>conftest.err
1892  ac_status=$?
1893  if test -s conftest.err; then
1894    grep -v '^ *+' conftest.err >conftest.er1
1895    cat conftest.er1 >&5
1896    mv -f conftest.er1 conftest.err
1897  fi
1898  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1899  test $ac_status = 0; } && {
1900	 test -z "$ac_c_werror_flag" ||
1901	 test ! -s conftest.err
1902       } && test -s conftest$ac_exeext && {
1903	 test "$cross_compiling" = yes ||
1904	 test -x conftest$ac_exeext
1905       }
1906then :
1907  ac_retval=0
1908else $as_nop
1909  printf "%s\n" "$as_me: failed program was:" >&5
1910sed 's/^/| /' conftest.$ac_ext >&5
1911
1912	ac_retval=1
1913fi
1914  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1915  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1916  # interfere with the next link command; also delete a directory that is
1917  # left behind by Apple's compiler.  We do this before executing the actions.
1918  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1919  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1920  as_fn_set_status $ac_retval
1921
1922} # ac_fn_c_try_link
1923
1924# ac_fn_c_check_func LINENO FUNC VAR
1925# ----------------------------------
1926# Tests whether FUNC exists, setting the cache variable VAR accordingly
1927ac_fn_c_check_func ()
1928{
1929  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1930  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1931printf %s "checking for $2... " >&6; }
1932if eval test \${$3+y}
1933then :
1934  printf %s "(cached) " >&6
1935else $as_nop
1936  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1937/* end confdefs.h.  */
1938/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1939   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1940#define $2 innocuous_$2
1941
1942/* System header to define __stub macros and hopefully few prototypes,
1943   which can conflict with char $2 (); below.  */
1944
1945#include <limits.h>
1946#undef $2
1947
1948/* Override any GCC internal prototype to avoid an error.
1949   Use char because int might match the return type of a GCC
1950   builtin and then its argument prototype would still apply.  */
1951#ifdef __cplusplus
1952extern "C"
1953#endif
1954char $2 ();
1955/* The GNU C library defines this for functions which it implements
1956    to always fail with ENOSYS.  Some functions are actually named
1957    something starting with __ and the normal name is an alias.  */
1958#if defined __stub_$2 || defined __stub___$2
1959choke me
1960#endif
1961
1962int
1963main (void)
1964{
1965return $2 ();
1966  ;
1967  return 0;
1968}
1969_ACEOF
1970if ac_fn_c_try_link "$LINENO"
1971then :
1972  eval "$3=yes"
1973else $as_nop
1974  eval "$3=no"
1975fi
1976rm -f core conftest.err conftest.$ac_objext conftest.beam \
1977    conftest$ac_exeext conftest.$ac_ext
1978fi
1979eval ac_res=\$$3
1980	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1981printf "%s\n" "$ac_res" >&6; }
1982  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1983
1984} # ac_fn_c_check_func
1985
1986# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1987# ------------------------------------------------------------------
1988# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1989# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1990ac_fn_check_decl ()
1991{
1992  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1993  as_decl_name=`echo $2|sed 's/ *(.*//'`
1994  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1995printf %s "checking whether $as_decl_name is declared... " >&6; }
1996if eval test \${$3+y}
1997then :
1998  printf %s "(cached) " >&6
1999else $as_nop
2000  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2001  eval ac_save_FLAGS=\$$6
2002  as_fn_append $6 " $5"
2003  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2004/* end confdefs.h.  */
2005$4
2006int
2007main (void)
2008{
2009#ifndef $as_decl_name
2010#ifdef __cplusplus
2011  (void) $as_decl_use;
2012#else
2013  (void) $as_decl_name;
2014#endif
2015#endif
2016
2017  ;
2018  return 0;
2019}
2020_ACEOF
2021if ac_fn_c_try_compile "$LINENO"
2022then :
2023  eval "$3=yes"
2024else $as_nop
2025  eval "$3=no"
2026fi
2027rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2028  eval $6=\$ac_save_FLAGS
2029
2030fi
2031eval ac_res=\$$3
2032	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2033printf "%s\n" "$ac_res" >&6; }
2034  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2035
2036} # ac_fn_check_decl
2037
2038# ac_fn_c_try_cpp LINENO
2039# ----------------------
2040# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2041ac_fn_c_try_cpp ()
2042{
2043  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2044  if { { ac_try="$ac_cpp conftest.$ac_ext"
2045case "(($ac_try" in
2046  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2047  *) ac_try_echo=$ac_try;;
2048esac
2049eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2050printf "%s\n" "$ac_try_echo"; } >&5
2051  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2052  ac_status=$?
2053  if test -s conftest.err; then
2054    grep -v '^ *+' conftest.err >conftest.er1
2055    cat conftest.er1 >&5
2056    mv -f conftest.er1 conftest.err
2057  fi
2058  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2059  test $ac_status = 0; } > conftest.i && {
2060	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2061	 test ! -s conftest.err
2062       }
2063then :
2064  ac_retval=0
2065else $as_nop
2066  printf "%s\n" "$as_me: failed program was:" >&5
2067sed 's/^/| /' conftest.$ac_ext >&5
2068
2069    ac_retval=1
2070fi
2071  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2072  as_fn_set_status $ac_retval
2073
2074} # ac_fn_c_try_cpp
2075
2076# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2077# ----------------------------------------------------
2078# Tries to find if the field MEMBER exists in type AGGR, after including
2079# INCLUDES, setting cache variable VAR accordingly.
2080ac_fn_c_check_member ()
2081{
2082  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2083  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2084printf %s "checking for $2.$3... " >&6; }
2085if eval test \${$4+y}
2086then :
2087  printf %s "(cached) " >&6
2088else $as_nop
2089  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2090/* end confdefs.h.  */
2091$5
2092int
2093main (void)
2094{
2095static $2 ac_aggr;
2096if (ac_aggr.$3)
2097return 0;
2098  ;
2099  return 0;
2100}
2101_ACEOF
2102if ac_fn_c_try_compile "$LINENO"
2103then :
2104  eval "$4=yes"
2105else $as_nop
2106  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2107/* end confdefs.h.  */
2108$5
2109int
2110main (void)
2111{
2112static $2 ac_aggr;
2113if (sizeof ac_aggr.$3)
2114return 0;
2115  ;
2116  return 0;
2117}
2118_ACEOF
2119if ac_fn_c_try_compile "$LINENO"
2120then :
2121  eval "$4=yes"
2122else $as_nop
2123  eval "$4=no"
2124fi
2125rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2126fi
2127rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2128fi
2129eval ac_res=\$$4
2130	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2131printf "%s\n" "$ac_res" >&6; }
2132  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2133
2134} # ac_fn_c_check_member
2135
2136# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2137# -------------------------------------------
2138# Tests whether TYPE exists after having included INCLUDES, setting cache
2139# variable VAR accordingly.
2140ac_fn_c_check_type ()
2141{
2142  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2143  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2144printf %s "checking for $2... " >&6; }
2145if eval test \${$3+y}
2146then :
2147  printf %s "(cached) " >&6
2148else $as_nop
2149  eval "$3=no"
2150  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2151/* end confdefs.h.  */
2152$4
2153int
2154main (void)
2155{
2156if (sizeof ($2))
2157	 return 0;
2158  ;
2159  return 0;
2160}
2161_ACEOF
2162if ac_fn_c_try_compile "$LINENO"
2163then :
2164  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2165/* end confdefs.h.  */
2166$4
2167int
2168main (void)
2169{
2170if (sizeof (($2)))
2171	    return 0;
2172  ;
2173  return 0;
2174}
2175_ACEOF
2176if ac_fn_c_try_compile "$LINENO"
2177then :
2178
2179else $as_nop
2180  eval "$3=yes"
2181fi
2182rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2183fi
2184rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2185fi
2186eval ac_res=\$$3
2187	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2188printf "%s\n" "$ac_res" >&6; }
2189  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2190
2191} # ac_fn_c_check_type
2192
2193# ac_fn_c_try_run LINENO
2194# ----------------------
2195# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
2196# executables *can* be run.
2197ac_fn_c_try_run ()
2198{
2199  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2200  if { { ac_try="$ac_link"
2201case "(($ac_try" in
2202  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2203  *) ac_try_echo=$ac_try;;
2204esac
2205eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2206printf "%s\n" "$ac_try_echo"; } >&5
2207  (eval "$ac_link") 2>&5
2208  ac_status=$?
2209  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2210  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2211  { { case "(($ac_try" in
2212  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2213  *) ac_try_echo=$ac_try;;
2214esac
2215eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2216printf "%s\n" "$ac_try_echo"; } >&5
2217  (eval "$ac_try") 2>&5
2218  ac_status=$?
2219  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2220  test $ac_status = 0; }; }
2221then :
2222  ac_retval=0
2223else $as_nop
2224  printf "%s\n" "$as_me: program exited with status $ac_status" >&5
2225       printf "%s\n" "$as_me: failed program was:" >&5
2226sed 's/^/| /' conftest.$ac_ext >&5
2227
2228       ac_retval=$ac_status
2229fi
2230  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2231  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2232  as_fn_set_status $ac_retval
2233
2234} # ac_fn_c_try_run
2235ac_configure_args_raw=
2236for ac_arg
2237do
2238  case $ac_arg in
2239  *\'*)
2240    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2241  esac
2242  as_fn_append ac_configure_args_raw " '$ac_arg'"
2243done
2244
2245case $ac_configure_args_raw in
2246  *$as_nl*)
2247    ac_safe_unquote= ;;
2248  *)
2249    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
2250    ac_unsafe_a="$ac_unsafe_z#~"
2251    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2252    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2253esac
2254
2255cat >config.log <<_ACEOF
2256This file contains any messages produced by compilers while
2257running configure, to aid debugging if configure makes a mistake.
2258
2259It was created by libX11 $as_me 1.7.2, which was
2260generated by GNU Autoconf 2.71.  Invocation command line was
2261
2262  $ $0$ac_configure_args_raw
2263
2264_ACEOF
2265exec 5>>config.log
2266{
2267cat <<_ASUNAME
2268## --------- ##
2269## Platform. ##
2270## --------- ##
2271
2272hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2273uname -m = `(uname -m) 2>/dev/null || echo unknown`
2274uname -r = `(uname -r) 2>/dev/null || echo unknown`
2275uname -s = `(uname -s) 2>/dev/null || echo unknown`
2276uname -v = `(uname -v) 2>/dev/null || echo unknown`
2277
2278/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2279/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2280
2281/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2282/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2283/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2284/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2285/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2286/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2287/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2288
2289_ASUNAME
2290
2291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2292for as_dir in $PATH
2293do
2294  IFS=$as_save_IFS
2295  case $as_dir in #(((
2296    '') as_dir=./ ;;
2297    */) ;;
2298    *) as_dir=$as_dir/ ;;
2299  esac
2300    printf "%s\n" "PATH: $as_dir"
2301  done
2302IFS=$as_save_IFS
2303
2304} >&5
2305
2306cat >&5 <<_ACEOF
2307
2308
2309## ----------- ##
2310## Core tests. ##
2311## ----------- ##
2312
2313_ACEOF
2314
2315
2316# Keep a trace of the command line.
2317# Strip out --no-create and --no-recursion so they do not pile up.
2318# Strip out --silent because we don't want to record it for future runs.
2319# Also quote any args containing shell meta-characters.
2320# Make two passes to allow for proper duplicate-argument suppression.
2321ac_configure_args=
2322ac_configure_args0=
2323ac_configure_args1=
2324ac_must_keep_next=false
2325for ac_pass in 1 2
2326do
2327  for ac_arg
2328  do
2329    case $ac_arg in
2330    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2331    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2332    | -silent | --silent | --silen | --sile | --sil)
2333      continue ;;
2334    *\'*)
2335      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2336    esac
2337    case $ac_pass in
2338    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2339    2)
2340      as_fn_append ac_configure_args1 " '$ac_arg'"
2341      if test $ac_must_keep_next = true; then
2342	ac_must_keep_next=false # Got value, back to normal.
2343      else
2344	case $ac_arg in
2345	  *=* | --config-cache | -C | -disable-* | --disable-* \
2346	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2347	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2348	  | -with-* | --with-* | -without-* | --without-* | --x)
2349	    case "$ac_configure_args0 " in
2350	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2351	    esac
2352	    ;;
2353	  -* ) ac_must_keep_next=true ;;
2354	esac
2355      fi
2356      as_fn_append ac_configure_args " '$ac_arg'"
2357      ;;
2358    esac
2359  done
2360done
2361{ ac_configure_args0=; unset ac_configure_args0;}
2362{ ac_configure_args1=; unset ac_configure_args1;}
2363
2364# When interrupted or exit'd, cleanup temporary files, and complete
2365# config.log.  We remove comments because anyway the quotes in there
2366# would cause problems or look ugly.
2367# WARNING: Use '\'' to represent an apostrophe within the trap.
2368# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2369trap 'exit_status=$?
2370  # Sanitize IFS.
2371  IFS=" ""	$as_nl"
2372  # Save into config.log some information that might help in debugging.
2373  {
2374    echo
2375
2376    printf "%s\n" "## ---------------- ##
2377## Cache variables. ##
2378## ---------------- ##"
2379    echo
2380    # The following way of writing the cache mishandles newlines in values,
2381(
2382  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2383    eval ac_val=\$$ac_var
2384    case $ac_val in #(
2385    *${as_nl}*)
2386      case $ac_var in #(
2387      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2388printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2389      esac
2390      case $ac_var in #(
2391      _ | IFS | as_nl) ;; #(
2392      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2393      *) { eval $ac_var=; unset $ac_var;} ;;
2394      esac ;;
2395    esac
2396  done
2397  (set) 2>&1 |
2398    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2399    *${as_nl}ac_space=\ *)
2400      sed -n \
2401	"s/'\''/'\''\\\\'\'''\''/g;
2402	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2403      ;; #(
2404    *)
2405      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2406      ;;
2407    esac |
2408    sort
2409)
2410    echo
2411
2412    printf "%s\n" "## ----------------- ##
2413## Output variables. ##
2414## ----------------- ##"
2415    echo
2416    for ac_var in $ac_subst_vars
2417    do
2418      eval ac_val=\$$ac_var
2419      case $ac_val in
2420      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2421      esac
2422      printf "%s\n" "$ac_var='\''$ac_val'\''"
2423    done | sort
2424    echo
2425
2426    if test -n "$ac_subst_files"; then
2427      printf "%s\n" "## ------------------- ##
2428## File substitutions. ##
2429## ------------------- ##"
2430      echo
2431      for ac_var in $ac_subst_files
2432      do
2433	eval ac_val=\$$ac_var
2434	case $ac_val in
2435	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2436	esac
2437	printf "%s\n" "$ac_var='\''$ac_val'\''"
2438      done | sort
2439      echo
2440    fi
2441
2442    if test -s confdefs.h; then
2443      printf "%s\n" "## ----------- ##
2444## confdefs.h. ##
2445## ----------- ##"
2446      echo
2447      cat confdefs.h
2448      echo
2449    fi
2450    test "$ac_signal" != 0 &&
2451      printf "%s\n" "$as_me: caught signal $ac_signal"
2452    printf "%s\n" "$as_me: exit $exit_status"
2453  } >&5
2454  rm -f core *.core core.conftest.* &&
2455    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2456    exit $exit_status
2457' 0
2458for ac_signal in 1 2 13 15; do
2459  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2460done
2461ac_signal=0
2462
2463# confdefs.h avoids OS command line length limits that DEFS can exceed.
2464rm -f -r conftest* confdefs.h
2465
2466printf "%s\n" "/* confdefs.h */" > confdefs.h
2467
2468# Predefined preprocessor variables.
2469
2470printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2471
2472printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2473
2474printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2475
2476printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2477
2478printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2479
2480printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2481
2482
2483# Let the site file select an alternate cache file if it wants to.
2484# Prefer an explicitly selected file to automatically selected ones.
2485if test -n "$CONFIG_SITE"; then
2486  ac_site_files="$CONFIG_SITE"
2487elif test "x$prefix" != xNONE; then
2488  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2489else
2490  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2491fi
2492
2493for ac_site_file in $ac_site_files
2494do
2495  case $ac_site_file in #(
2496  */*) :
2497     ;; #(
2498  *) :
2499    ac_site_file=./$ac_site_file ;;
2500esac
2501  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2502    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2503printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2504    sed 's/^/| /' "$ac_site_file" >&5
2505    . "$ac_site_file" \
2506      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2507printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2508as_fn_error $? "failed to load site script $ac_site_file
2509See \`config.log' for more details" "$LINENO" 5; }
2510  fi
2511done
2512
2513if test -r "$cache_file"; then
2514  # Some versions of bash will fail to source /dev/null (special files
2515  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2516  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2517    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2518printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2519    case $cache_file in
2520      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2521      *)                      . "./$cache_file";;
2522    esac
2523  fi
2524else
2525  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2526printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2527  >$cache_file
2528fi
2529
2530as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2531# Test code for whether the C compiler supports C89 (global declarations)
2532ac_c_conftest_c89_globals='
2533/* Does the compiler advertise C89 conformance?
2534   Do not test the value of __STDC__, because some compilers set it to 0
2535   while being otherwise adequately conformant. */
2536#if !defined __STDC__
2537# error "Compiler does not advertise C89 conformance"
2538#endif
2539
2540#include <stddef.h>
2541#include <stdarg.h>
2542struct stat;
2543/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2544struct buf { int x; };
2545struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2546static char *e (p, i)
2547     char **p;
2548     int i;
2549{
2550  return p[i];
2551}
2552static char *f (char * (*g) (char **, int), char **p, ...)
2553{
2554  char *s;
2555  va_list v;
2556  va_start (v,p);
2557  s = g (p, va_arg (v,int));
2558  va_end (v);
2559  return s;
2560}
2561
2562/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2563   function prototypes and stuff, but not \xHH hex character constants.
2564   These do not provoke an error unfortunately, instead are silently treated
2565   as an "x".  The following induces an error, until -std is added to get
2566   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2567   array size at least.  It is necessary to write \x00 == 0 to get something
2568   that is true only with -std.  */
2569int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2570
2571/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2572   inside strings and character constants.  */
2573#define FOO(x) '\''x'\''
2574int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2575
2576int test (int i, double x);
2577struct s1 {int (*f) (int a);};
2578struct s2 {int (*f) (double a);};
2579int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2580               int, int);'
2581
2582# Test code for whether the C compiler supports C89 (body of main).
2583ac_c_conftest_c89_main='
2584ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2585'
2586
2587# Test code for whether the C compiler supports C99 (global declarations)
2588ac_c_conftest_c99_globals='
2589// Does the compiler advertise C99 conformance?
2590#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2591# error "Compiler does not advertise C99 conformance"
2592#endif
2593
2594#include <stdbool.h>
2595extern int puts (const char *);
2596extern int printf (const char *, ...);
2597extern int dprintf (int, const char *, ...);
2598extern void *malloc (size_t);
2599
2600// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2601// dprintf is used instead of fprintf to avoid needing to declare
2602// FILE and stderr.
2603#define debug(...) dprintf (2, __VA_ARGS__)
2604#define showlist(...) puts (#__VA_ARGS__)
2605#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2606static void
2607test_varargs_macros (void)
2608{
2609  int x = 1234;
2610  int y = 5678;
2611  debug ("Flag");
2612  debug ("X = %d\n", x);
2613  showlist (The first, second, and third items.);
2614  report (x>y, "x is %d but y is %d", x, y);
2615}
2616
2617// Check long long types.
2618#define BIG64 18446744073709551615ull
2619#define BIG32 4294967295ul
2620#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2621#if !BIG_OK
2622  #error "your preprocessor is broken"
2623#endif
2624#if BIG_OK
2625#else
2626  #error "your preprocessor is broken"
2627#endif
2628static long long int bignum = -9223372036854775807LL;
2629static unsigned long long int ubignum = BIG64;
2630
2631struct incomplete_array
2632{
2633  int datasize;
2634  double data[];
2635};
2636
2637struct named_init {
2638  int number;
2639  const wchar_t *name;
2640  double average;
2641};
2642
2643typedef const char *ccp;
2644
2645static inline int
2646test_restrict (ccp restrict text)
2647{
2648  // See if C++-style comments work.
2649  // Iterate through items via the restricted pointer.
2650  // Also check for declarations in for loops.
2651  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2652    continue;
2653  return 0;
2654}
2655
2656// Check varargs and va_copy.
2657static bool
2658test_varargs (const char *format, ...)
2659{
2660  va_list args;
2661  va_start (args, format);
2662  va_list args_copy;
2663  va_copy (args_copy, args);
2664
2665  const char *str = "";
2666  int number = 0;
2667  float fnumber = 0;
2668
2669  while (*format)
2670    {
2671      switch (*format++)
2672	{
2673	case '\''s'\'': // string
2674	  str = va_arg (args_copy, const char *);
2675	  break;
2676	case '\''d'\'': // int
2677	  number = va_arg (args_copy, int);
2678	  break;
2679	case '\''f'\'': // float
2680	  fnumber = va_arg (args_copy, double);
2681	  break;
2682	default:
2683	  break;
2684	}
2685    }
2686  va_end (args_copy);
2687  va_end (args);
2688
2689  return *str && number && fnumber;
2690}
2691'
2692
2693# Test code for whether the C compiler supports C99 (body of main).
2694ac_c_conftest_c99_main='
2695  // Check bool.
2696  _Bool success = false;
2697  success |= (argc != 0);
2698
2699  // Check restrict.
2700  if (test_restrict ("String literal") == 0)
2701    success = true;
2702  char *restrict newvar = "Another string";
2703
2704  // Check varargs.
2705  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2706  test_varargs_macros ();
2707
2708  // Check flexible array members.
2709  struct incomplete_array *ia =
2710    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2711  ia->datasize = 10;
2712  for (int i = 0; i < ia->datasize; ++i)
2713    ia->data[i] = i * 1.234;
2714
2715  // Check named initializers.
2716  struct named_init ni = {
2717    .number = 34,
2718    .name = L"Test wide string",
2719    .average = 543.34343,
2720  };
2721
2722  ni.number = 58;
2723
2724  int dynamic_array[ni.number];
2725  dynamic_array[0] = argv[0][0];
2726  dynamic_array[ni.number - 1] = 543;
2727
2728  // work around unused variable warnings
2729  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2730	 || dynamic_array[ni.number - 1] != 543);
2731'
2732
2733# Test code for whether the C compiler supports C11 (global declarations)
2734ac_c_conftest_c11_globals='
2735// Does the compiler advertise C11 conformance?
2736#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2737# error "Compiler does not advertise C11 conformance"
2738#endif
2739
2740// Check _Alignas.
2741char _Alignas (double) aligned_as_double;
2742char _Alignas (0) no_special_alignment;
2743extern char aligned_as_int;
2744char _Alignas (0) _Alignas (int) aligned_as_int;
2745
2746// Check _Alignof.
2747enum
2748{
2749  int_alignment = _Alignof (int),
2750  int_array_alignment = _Alignof (int[100]),
2751  char_alignment = _Alignof (char)
2752};
2753_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2754
2755// Check _Noreturn.
2756int _Noreturn does_not_return (void) { for (;;) continue; }
2757
2758// Check _Static_assert.
2759struct test_static_assert
2760{
2761  int x;
2762  _Static_assert (sizeof (int) <= sizeof (long int),
2763                  "_Static_assert does not work in struct");
2764  long int y;
2765};
2766
2767// Check UTF-8 literals.
2768#define u8 syntax error!
2769char const utf8_literal[] = u8"happens to be ASCII" "another string";
2770
2771// Check duplicate typedefs.
2772typedef long *long_ptr;
2773typedef long int *long_ptr;
2774typedef long_ptr long_ptr;
2775
2776// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2777struct anonymous
2778{
2779  union {
2780    struct { int i; int j; };
2781    struct { int k; long int l; } w;
2782  };
2783  int m;
2784} v1;
2785'
2786
2787# Test code for whether the C compiler supports C11 (body of main).
2788ac_c_conftest_c11_main='
2789  _Static_assert ((offsetof (struct anonymous, i)
2790		   == offsetof (struct anonymous, w.k)),
2791		  "Anonymous union alignment botch");
2792  v1.i = 2;
2793  v1.w.k = 5;
2794  ok |= v1.i != 5;
2795'
2796
2797# Test code for whether the C compiler supports C11 (complete).
2798ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2799${ac_c_conftest_c99_globals}
2800${ac_c_conftest_c11_globals}
2801
2802int
2803main (int argc, char **argv)
2804{
2805  int ok = 0;
2806  ${ac_c_conftest_c89_main}
2807  ${ac_c_conftest_c99_main}
2808  ${ac_c_conftest_c11_main}
2809  return ok;
2810}
2811"
2812
2813# Test code for whether the C compiler supports C99 (complete).
2814ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2815${ac_c_conftest_c99_globals}
2816
2817int
2818main (int argc, char **argv)
2819{
2820  int ok = 0;
2821  ${ac_c_conftest_c89_main}
2822  ${ac_c_conftest_c99_main}
2823  return ok;
2824}
2825"
2826
2827# Test code for whether the C compiler supports C89 (complete).
2828ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2829
2830int
2831main (int argc, char **argv)
2832{
2833  int ok = 0;
2834  ${ac_c_conftest_c89_main}
2835  return ok;
2836}
2837"
2838
2839as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2840as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2841as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2842as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2843as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2844as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2845as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2846as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2847as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2848as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2849as_fn_append ac_header_c_list " sys/param.h sys_param_h HAVE_SYS_PARAM_H"
2850as_fn_append ac_func_c_list " getpagesize HAVE_GETPAGESIZE"
2851
2852# Auxiliary files required by this configure script.
2853ac_aux_files="ltmain.sh missing install-sh compile config.guess config.sub"
2854
2855# Locations in which to look for auxiliary files.
2856ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2857
2858# Search for a directory containing all of the required auxiliary files,
2859# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2860# If we don't find one directory that contains all the files we need,
2861# we report the set of missing files from the *first* directory in
2862# $ac_aux_dir_candidates and give up.
2863ac_missing_aux_files=""
2864ac_first_candidate=:
2865printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2867as_found=false
2868for as_dir in $ac_aux_dir_candidates
2869do
2870  IFS=$as_save_IFS
2871  case $as_dir in #(((
2872    '') as_dir=./ ;;
2873    */) ;;
2874    *) as_dir=$as_dir/ ;;
2875  esac
2876  as_found=:
2877
2878  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2879  ac_aux_dir_found=yes
2880  ac_install_sh=
2881  for ac_aux in $ac_aux_files
2882  do
2883    # As a special case, if "install-sh" is required, that requirement
2884    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2885    # and $ac_install_sh is set appropriately for whichever one is found.
2886    if test x"$ac_aux" = x"install-sh"
2887    then
2888      if test -f "${as_dir}install-sh"; then
2889        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2890        ac_install_sh="${as_dir}install-sh -c"
2891      elif test -f "${as_dir}install.sh"; then
2892        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2893        ac_install_sh="${as_dir}install.sh -c"
2894      elif test -f "${as_dir}shtool"; then
2895        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2896        ac_install_sh="${as_dir}shtool install -c"
2897      else
2898        ac_aux_dir_found=no
2899        if $ac_first_candidate; then
2900          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2901        else
2902          break
2903        fi
2904      fi
2905    else
2906      if test -f "${as_dir}${ac_aux}"; then
2907        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2908      else
2909        ac_aux_dir_found=no
2910        if $ac_first_candidate; then
2911          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2912        else
2913          break
2914        fi
2915      fi
2916    fi
2917  done
2918  if test "$ac_aux_dir_found" = yes; then
2919    ac_aux_dir="$as_dir"
2920    break
2921  fi
2922  ac_first_candidate=false
2923
2924  as_found=false
2925done
2926IFS=$as_save_IFS
2927if $as_found
2928then :
2929
2930else $as_nop
2931  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2932fi
2933
2934
2935# These three variables are undocumented and unsupported,
2936# and are intended to be withdrawn in a future Autoconf release.
2937# They can cause serious problems if a builder's source tree is in a directory
2938# whose full name contains unusual characters.
2939if test -f "${ac_aux_dir}config.guess"; then
2940  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2941fi
2942if test -f "${ac_aux_dir}config.sub"; then
2943  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2944fi
2945if test -f "$ac_aux_dir/configure"; then
2946  ac_configure="$SHELL ${ac_aux_dir}configure"
2947fi
2948
2949# Check that the precious variables saved in the cache have kept the same
2950# value.
2951ac_cache_corrupted=false
2952for ac_var in $ac_precious_vars; do
2953  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2954  eval ac_new_set=\$ac_env_${ac_var}_set
2955  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2956  eval ac_new_val=\$ac_env_${ac_var}_value
2957  case $ac_old_set,$ac_new_set in
2958    set,)
2959      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2960printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2961      ac_cache_corrupted=: ;;
2962    ,set)
2963      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2964printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2965      ac_cache_corrupted=: ;;
2966    ,);;
2967    *)
2968      if test "x$ac_old_val" != "x$ac_new_val"; then
2969	# differences in whitespace do not lead to failure.
2970	ac_old_val_w=`echo x $ac_old_val`
2971	ac_new_val_w=`echo x $ac_new_val`
2972	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2973	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2974printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2975	  ac_cache_corrupted=:
2976	else
2977	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2978printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2979	  eval $ac_var=\$ac_old_val
2980	fi
2981	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2982printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
2983	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2984printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
2985      fi;;
2986  esac
2987  # Pass precious variables to config.status.
2988  if test "$ac_new_set" = set; then
2989    case $ac_new_val in
2990    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2991    *) ac_arg=$ac_var=$ac_new_val ;;
2992    esac
2993    case " $ac_configure_args " in
2994      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2995      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2996    esac
2997  fi
2998done
2999if $ac_cache_corrupted; then
3000  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3001printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3002  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3003printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3004  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
3005	    and start over" "$LINENO" 5
3006fi
3007## -------------------- ##
3008## Main body of script. ##
3009## -------------------- ##
3010
3011ac_ext=c
3012ac_cpp='$CPP $CPPFLAGS'
3013ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3014ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3015ac_compiler_gnu=$ac_cv_c_compiler_gnu
3016
3017
3018
3019ac_config_headers="$ac_config_headers src/config.h include/X11/XlibConf.h"
3020
3021
3022
3023
3024
3025  # Make sure we can run config.sub.
3026$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3027  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3028
3029{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3030printf %s "checking build system type... " >&6; }
3031if test ${ac_cv_build+y}
3032then :
3033  printf %s "(cached) " >&6
3034else $as_nop
3035  ac_build_alias=$build_alias
3036test "x$ac_build_alias" = x &&
3037  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3038test "x$ac_build_alias" = x &&
3039  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3040ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3041  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3042
3043fi
3044{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3045printf "%s\n" "$ac_cv_build" >&6; }
3046case $ac_cv_build in
3047*-*-*) ;;
3048*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3049esac
3050build=$ac_cv_build
3051ac_save_IFS=$IFS; IFS='-'
3052set x $ac_cv_build
3053shift
3054build_cpu=$1
3055build_vendor=$2
3056shift; shift
3057# Remember, the first character of IFS is used to create $*,
3058# except with old shells:
3059build_os=$*
3060IFS=$ac_save_IFS
3061case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3062
3063
3064{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3065printf %s "checking host system type... " >&6; }
3066if test ${ac_cv_host+y}
3067then :
3068  printf %s "(cached) " >&6
3069else $as_nop
3070  if test "x$host_alias" = x; then
3071  ac_cv_host=$ac_cv_build
3072else
3073  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3074    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3075fi
3076
3077fi
3078{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3079printf "%s\n" "$ac_cv_host" >&6; }
3080case $ac_cv_host in
3081*-*-*) ;;
3082*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3083esac
3084host=$ac_cv_host
3085ac_save_IFS=$IFS; IFS='-'
3086set x $ac_cv_host
3087shift
3088host_cpu=$1
3089host_vendor=$2
3090shift; shift
3091# Remember, the first character of IFS is used to create $*,
3092# except with old shells:
3093host_os=$*
3094IFS=$ac_save_IFS
3095case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3096
3097
3098# Set common system defines for POSIX extensions, such as _GNU_SOURCE
3099# Must be called before any macros that run the compiler (like AC_PROG_LIBTOOL)
3100# to avoid autoconf errors.
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111# Expand $ac_aux_dir to an absolute path.
3112am_aux_dir=`cd "$ac_aux_dir" && pwd`
3113
3114ac_ext=c
3115ac_cpp='$CPP $CPPFLAGS'
3116ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3117ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3118ac_compiler_gnu=$ac_cv_c_compiler_gnu
3119if test -n "$ac_tool_prefix"; then
3120  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3121set dummy ${ac_tool_prefix}gcc; ac_word=$2
3122{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3123printf %s "checking for $ac_word... " >&6; }
3124if test ${ac_cv_prog_CC+y}
3125then :
3126  printf %s "(cached) " >&6
3127else $as_nop
3128  if test -n "$CC"; then
3129  ac_cv_prog_CC="$CC" # Let the user override the test.
3130else
3131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3132for as_dir in $PATH
3133do
3134  IFS=$as_save_IFS
3135  case $as_dir in #(((
3136    '') as_dir=./ ;;
3137    */) ;;
3138    *) as_dir=$as_dir/ ;;
3139  esac
3140    for ac_exec_ext in '' $ac_executable_extensions; do
3141  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3142    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3143    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3144    break 2
3145  fi
3146done
3147  done
3148IFS=$as_save_IFS
3149
3150fi
3151fi
3152CC=$ac_cv_prog_CC
3153if test -n "$CC"; then
3154  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3155printf "%s\n" "$CC" >&6; }
3156else
3157  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3158printf "%s\n" "no" >&6; }
3159fi
3160
3161
3162fi
3163if test -z "$ac_cv_prog_CC"; then
3164  ac_ct_CC=$CC
3165  # Extract the first word of "gcc", so it can be a program name with args.
3166set dummy gcc; ac_word=$2
3167{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3168printf %s "checking for $ac_word... " >&6; }
3169if test ${ac_cv_prog_ac_ct_CC+y}
3170then :
3171  printf %s "(cached) " >&6
3172else $as_nop
3173  if test -n "$ac_ct_CC"; then
3174  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3175else
3176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3177for as_dir in $PATH
3178do
3179  IFS=$as_save_IFS
3180  case $as_dir in #(((
3181    '') as_dir=./ ;;
3182    */) ;;
3183    *) as_dir=$as_dir/ ;;
3184  esac
3185    for ac_exec_ext in '' $ac_executable_extensions; do
3186  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3187    ac_cv_prog_ac_ct_CC="gcc"
3188    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3189    break 2
3190  fi
3191done
3192  done
3193IFS=$as_save_IFS
3194
3195fi
3196fi
3197ac_ct_CC=$ac_cv_prog_ac_ct_CC
3198if test -n "$ac_ct_CC"; then
3199  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3200printf "%s\n" "$ac_ct_CC" >&6; }
3201else
3202  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3203printf "%s\n" "no" >&6; }
3204fi
3205
3206  if test "x$ac_ct_CC" = x; then
3207    CC=""
3208  else
3209    case $cross_compiling:$ac_tool_warned in
3210yes:)
3211{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3212printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3213ac_tool_warned=yes ;;
3214esac
3215    CC=$ac_ct_CC
3216  fi
3217else
3218  CC="$ac_cv_prog_CC"
3219fi
3220
3221if test -z "$CC"; then
3222          if test -n "$ac_tool_prefix"; then
3223    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3224set dummy ${ac_tool_prefix}cc; ac_word=$2
3225{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3226printf %s "checking for $ac_word... " >&6; }
3227if test ${ac_cv_prog_CC+y}
3228then :
3229  printf %s "(cached) " >&6
3230else $as_nop
3231  if test -n "$CC"; then
3232  ac_cv_prog_CC="$CC" # Let the user override the test.
3233else
3234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3235for as_dir in $PATH
3236do
3237  IFS=$as_save_IFS
3238  case $as_dir in #(((
3239    '') as_dir=./ ;;
3240    */) ;;
3241    *) as_dir=$as_dir/ ;;
3242  esac
3243    for ac_exec_ext in '' $ac_executable_extensions; do
3244  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3245    ac_cv_prog_CC="${ac_tool_prefix}cc"
3246    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3247    break 2
3248  fi
3249done
3250  done
3251IFS=$as_save_IFS
3252
3253fi
3254fi
3255CC=$ac_cv_prog_CC
3256if test -n "$CC"; then
3257  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3258printf "%s\n" "$CC" >&6; }
3259else
3260  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3261printf "%s\n" "no" >&6; }
3262fi
3263
3264
3265  fi
3266fi
3267if test -z "$CC"; then
3268  # Extract the first word of "cc", so it can be a program name with args.
3269set dummy cc; ac_word=$2
3270{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3271printf %s "checking for $ac_word... " >&6; }
3272if test ${ac_cv_prog_CC+y}
3273then :
3274  printf %s "(cached) " >&6
3275else $as_nop
3276  if test -n "$CC"; then
3277  ac_cv_prog_CC="$CC" # Let the user override the test.
3278else
3279  ac_prog_rejected=no
3280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3281for as_dir in $PATH
3282do
3283  IFS=$as_save_IFS
3284  case $as_dir in #(((
3285    '') as_dir=./ ;;
3286    */) ;;
3287    *) as_dir=$as_dir/ ;;
3288  esac
3289    for ac_exec_ext in '' $ac_executable_extensions; do
3290  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3291    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3292       ac_prog_rejected=yes
3293       continue
3294     fi
3295    ac_cv_prog_CC="cc"
3296    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3297    break 2
3298  fi
3299done
3300  done
3301IFS=$as_save_IFS
3302
3303if test $ac_prog_rejected = yes; then
3304  # We found a bogon in the path, so make sure we never use it.
3305  set dummy $ac_cv_prog_CC
3306  shift
3307  if test $# != 0; then
3308    # We chose a different compiler from the bogus one.
3309    # However, it has the same basename, so the bogon will be chosen
3310    # first if we set CC to just the basename; use the full file name.
3311    shift
3312    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3313  fi
3314fi
3315fi
3316fi
3317CC=$ac_cv_prog_CC
3318if test -n "$CC"; then
3319  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3320printf "%s\n" "$CC" >&6; }
3321else
3322  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3323printf "%s\n" "no" >&6; }
3324fi
3325
3326
3327fi
3328if test -z "$CC"; then
3329  if test -n "$ac_tool_prefix"; then
3330  for ac_prog in cl.exe
3331  do
3332    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3333set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3334{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3335printf %s "checking for $ac_word... " >&6; }
3336if test ${ac_cv_prog_CC+y}
3337then :
3338  printf %s "(cached) " >&6
3339else $as_nop
3340  if test -n "$CC"; then
3341  ac_cv_prog_CC="$CC" # Let the user override the test.
3342else
3343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3344for as_dir in $PATH
3345do
3346  IFS=$as_save_IFS
3347  case $as_dir in #(((
3348    '') as_dir=./ ;;
3349    */) ;;
3350    *) as_dir=$as_dir/ ;;
3351  esac
3352    for ac_exec_ext in '' $ac_executable_extensions; do
3353  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3354    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3355    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3356    break 2
3357  fi
3358done
3359  done
3360IFS=$as_save_IFS
3361
3362fi
3363fi
3364CC=$ac_cv_prog_CC
3365if test -n "$CC"; then
3366  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3367printf "%s\n" "$CC" >&6; }
3368else
3369  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3370printf "%s\n" "no" >&6; }
3371fi
3372
3373
3374    test -n "$CC" && break
3375  done
3376fi
3377if test -z "$CC"; then
3378  ac_ct_CC=$CC
3379  for ac_prog in cl.exe
3380do
3381  # Extract the first word of "$ac_prog", so it can be a program name with args.
3382set dummy $ac_prog; ac_word=$2
3383{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3384printf %s "checking for $ac_word... " >&6; }
3385if test ${ac_cv_prog_ac_ct_CC+y}
3386then :
3387  printf %s "(cached) " >&6
3388else $as_nop
3389  if test -n "$ac_ct_CC"; then
3390  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3391else
3392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3393for as_dir in $PATH
3394do
3395  IFS=$as_save_IFS
3396  case $as_dir in #(((
3397    '') as_dir=./ ;;
3398    */) ;;
3399    *) as_dir=$as_dir/ ;;
3400  esac
3401    for ac_exec_ext in '' $ac_executable_extensions; do
3402  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3403    ac_cv_prog_ac_ct_CC="$ac_prog"
3404    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3405    break 2
3406  fi
3407done
3408  done
3409IFS=$as_save_IFS
3410
3411fi
3412fi
3413ac_ct_CC=$ac_cv_prog_ac_ct_CC
3414if test -n "$ac_ct_CC"; then
3415  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3416printf "%s\n" "$ac_ct_CC" >&6; }
3417else
3418  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3419printf "%s\n" "no" >&6; }
3420fi
3421
3422
3423  test -n "$ac_ct_CC" && break
3424done
3425
3426  if test "x$ac_ct_CC" = x; then
3427    CC=""
3428  else
3429    case $cross_compiling:$ac_tool_warned in
3430yes:)
3431{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3432printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3433ac_tool_warned=yes ;;
3434esac
3435    CC=$ac_ct_CC
3436  fi
3437fi
3438
3439fi
3440if test -z "$CC"; then
3441  if test -n "$ac_tool_prefix"; then
3442  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3443set dummy ${ac_tool_prefix}clang; ac_word=$2
3444{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3445printf %s "checking for $ac_word... " >&6; }
3446if test ${ac_cv_prog_CC+y}
3447then :
3448  printf %s "(cached) " >&6
3449else $as_nop
3450  if test -n "$CC"; then
3451  ac_cv_prog_CC="$CC" # Let the user override the test.
3452else
3453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3454for as_dir in $PATH
3455do
3456  IFS=$as_save_IFS
3457  case $as_dir in #(((
3458    '') as_dir=./ ;;
3459    */) ;;
3460    *) as_dir=$as_dir/ ;;
3461  esac
3462    for ac_exec_ext in '' $ac_executable_extensions; do
3463  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3464    ac_cv_prog_CC="${ac_tool_prefix}clang"
3465    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3466    break 2
3467  fi
3468done
3469  done
3470IFS=$as_save_IFS
3471
3472fi
3473fi
3474CC=$ac_cv_prog_CC
3475if test -n "$CC"; then
3476  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3477printf "%s\n" "$CC" >&6; }
3478else
3479  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3480printf "%s\n" "no" >&6; }
3481fi
3482
3483
3484fi
3485if test -z "$ac_cv_prog_CC"; then
3486  ac_ct_CC=$CC
3487  # Extract the first word of "clang", so it can be a program name with args.
3488set dummy clang; ac_word=$2
3489{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3490printf %s "checking for $ac_word... " >&6; }
3491if test ${ac_cv_prog_ac_ct_CC+y}
3492then :
3493  printf %s "(cached) " >&6
3494else $as_nop
3495  if test -n "$ac_ct_CC"; then
3496  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3497else
3498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3499for as_dir in $PATH
3500do
3501  IFS=$as_save_IFS
3502  case $as_dir in #(((
3503    '') as_dir=./ ;;
3504    */) ;;
3505    *) as_dir=$as_dir/ ;;
3506  esac
3507    for ac_exec_ext in '' $ac_executable_extensions; do
3508  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3509    ac_cv_prog_ac_ct_CC="clang"
3510    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3511    break 2
3512  fi
3513done
3514  done
3515IFS=$as_save_IFS
3516
3517fi
3518fi
3519ac_ct_CC=$ac_cv_prog_ac_ct_CC
3520if test -n "$ac_ct_CC"; then
3521  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3522printf "%s\n" "$ac_ct_CC" >&6; }
3523else
3524  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3525printf "%s\n" "no" >&6; }
3526fi
3527
3528  if test "x$ac_ct_CC" = x; then
3529    CC=""
3530  else
3531    case $cross_compiling:$ac_tool_warned in
3532yes:)
3533{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3534printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3535ac_tool_warned=yes ;;
3536esac
3537    CC=$ac_ct_CC
3538  fi
3539else
3540  CC="$ac_cv_prog_CC"
3541fi
3542
3543fi
3544
3545
3546test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3547printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3548as_fn_error $? "no acceptable C compiler found in \$PATH
3549See \`config.log' for more details" "$LINENO" 5; }
3550
3551# Provide some information about the compiler.
3552printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3553set X $ac_compile
3554ac_compiler=$2
3555for ac_option in --version -v -V -qversion -version; do
3556  { { ac_try="$ac_compiler $ac_option >&5"
3557case "(($ac_try" in
3558  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3559  *) ac_try_echo=$ac_try;;
3560esac
3561eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3562printf "%s\n" "$ac_try_echo"; } >&5
3563  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3564  ac_status=$?
3565  if test -s conftest.err; then
3566    sed '10a\
3567... rest of stderr output deleted ...
3568         10q' conftest.err >conftest.er1
3569    cat conftest.er1 >&5
3570  fi
3571  rm -f conftest.er1 conftest.err
3572  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3573  test $ac_status = 0; }
3574done
3575
3576cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3577/* end confdefs.h.  */
3578
3579int
3580main (void)
3581{
3582
3583  ;
3584  return 0;
3585}
3586_ACEOF
3587ac_clean_files_save=$ac_clean_files
3588ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3589# Try to create an executable without -o first, disregard a.out.
3590# It will help us diagnose broken compilers, and finding out an intuition
3591# of exeext.
3592{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3593printf %s "checking whether the C compiler works... " >&6; }
3594ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3595
3596# The possible output files:
3597ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3598
3599ac_rmfiles=
3600for ac_file in $ac_files
3601do
3602  case $ac_file in
3603    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3604    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3605  esac
3606done
3607rm -f $ac_rmfiles
3608
3609if { { ac_try="$ac_link_default"
3610case "(($ac_try" in
3611  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3612  *) ac_try_echo=$ac_try;;
3613esac
3614eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3615printf "%s\n" "$ac_try_echo"; } >&5
3616  (eval "$ac_link_default") 2>&5
3617  ac_status=$?
3618  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3619  test $ac_status = 0; }
3620then :
3621  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3622# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3623# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3624# so that the user can short-circuit this test for compilers unknown to
3625# Autoconf.
3626for ac_file in $ac_files ''
3627do
3628  test -f "$ac_file" || continue
3629  case $ac_file in
3630    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3631	;;
3632    [ab].out )
3633	# We found the default executable, but exeext='' is most
3634	# certainly right.
3635	break;;
3636    *.* )
3637	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3638	then :; else
3639	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3640	fi
3641	# We set ac_cv_exeext here because the later test for it is not
3642	# safe: cross compilers may not add the suffix if given an `-o'
3643	# argument, so we may need to know it at that point already.
3644	# Even if this section looks crufty: it has the advantage of
3645	# actually working.
3646	break;;
3647    * )
3648	break;;
3649  esac
3650done
3651test "$ac_cv_exeext" = no && ac_cv_exeext=
3652
3653else $as_nop
3654  ac_file=''
3655fi
3656if test -z "$ac_file"
3657then :
3658  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3659printf "%s\n" "no" >&6; }
3660printf "%s\n" "$as_me: failed program was:" >&5
3661sed 's/^/| /' conftest.$ac_ext >&5
3662
3663{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3664printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3665as_fn_error 77 "C compiler cannot create executables
3666See \`config.log' for more details" "$LINENO" 5; }
3667else $as_nop
3668  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3669printf "%s\n" "yes" >&6; }
3670fi
3671{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3672printf %s "checking for C compiler default output file name... " >&6; }
3673{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3674printf "%s\n" "$ac_file" >&6; }
3675ac_exeext=$ac_cv_exeext
3676
3677rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3678ac_clean_files=$ac_clean_files_save
3679{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3680printf %s "checking for suffix of executables... " >&6; }
3681if { { ac_try="$ac_link"
3682case "(($ac_try" in
3683  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3684  *) ac_try_echo=$ac_try;;
3685esac
3686eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3687printf "%s\n" "$ac_try_echo"; } >&5
3688  (eval "$ac_link") 2>&5
3689  ac_status=$?
3690  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3691  test $ac_status = 0; }
3692then :
3693  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3694# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3695# work properly (i.e., refer to `conftest.exe'), while it won't with
3696# `rm'.
3697for ac_file in conftest.exe conftest conftest.*; do
3698  test -f "$ac_file" || continue
3699  case $ac_file in
3700    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3701    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3702	  break;;
3703    * ) break;;
3704  esac
3705done
3706else $as_nop
3707  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3708printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3709as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3710See \`config.log' for more details" "$LINENO" 5; }
3711fi
3712rm -f conftest conftest$ac_cv_exeext
3713{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3714printf "%s\n" "$ac_cv_exeext" >&6; }
3715
3716rm -f conftest.$ac_ext
3717EXEEXT=$ac_cv_exeext
3718ac_exeext=$EXEEXT
3719cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3720/* end confdefs.h.  */
3721#include <stdio.h>
3722int
3723main (void)
3724{
3725FILE *f = fopen ("conftest.out", "w");
3726 return ferror (f) || fclose (f) != 0;
3727
3728  ;
3729  return 0;
3730}
3731_ACEOF
3732ac_clean_files="$ac_clean_files conftest.out"
3733# Check that the compiler produces executables we can run.  If not, either
3734# the compiler is broken, or we cross compile.
3735{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3736printf %s "checking whether we are cross compiling... " >&6; }
3737if test "$cross_compiling" != yes; then
3738  { { ac_try="$ac_link"
3739case "(($ac_try" in
3740  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3741  *) ac_try_echo=$ac_try;;
3742esac
3743eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3744printf "%s\n" "$ac_try_echo"; } >&5
3745  (eval "$ac_link") 2>&5
3746  ac_status=$?
3747  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3748  test $ac_status = 0; }
3749  if { ac_try='./conftest$ac_cv_exeext'
3750  { { case "(($ac_try" in
3751  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3752  *) ac_try_echo=$ac_try;;
3753esac
3754eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3755printf "%s\n" "$ac_try_echo"; } >&5
3756  (eval "$ac_try") 2>&5
3757  ac_status=$?
3758  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3759  test $ac_status = 0; }; }; then
3760    cross_compiling=no
3761  else
3762    if test "$cross_compiling" = maybe; then
3763	cross_compiling=yes
3764    else
3765	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3766printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3767as_fn_error 77 "cannot run C compiled programs.
3768If you meant to cross compile, use \`--host'.
3769See \`config.log' for more details" "$LINENO" 5; }
3770    fi
3771  fi
3772fi
3773{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3774printf "%s\n" "$cross_compiling" >&6; }
3775
3776rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3777ac_clean_files=$ac_clean_files_save
3778{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3779printf %s "checking for suffix of object files... " >&6; }
3780if test ${ac_cv_objext+y}
3781then :
3782  printf %s "(cached) " >&6
3783else $as_nop
3784  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3785/* end confdefs.h.  */
3786
3787int
3788main (void)
3789{
3790
3791  ;
3792  return 0;
3793}
3794_ACEOF
3795rm -f conftest.o conftest.obj
3796if { { ac_try="$ac_compile"
3797case "(($ac_try" in
3798  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3799  *) ac_try_echo=$ac_try;;
3800esac
3801eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3802printf "%s\n" "$ac_try_echo"; } >&5
3803  (eval "$ac_compile") 2>&5
3804  ac_status=$?
3805  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3806  test $ac_status = 0; }
3807then :
3808  for ac_file in conftest.o conftest.obj conftest.*; do
3809  test -f "$ac_file" || continue;
3810  case $ac_file in
3811    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3812    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3813       break;;
3814  esac
3815done
3816else $as_nop
3817  printf "%s\n" "$as_me: failed program was:" >&5
3818sed 's/^/| /' conftest.$ac_ext >&5
3819
3820{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3821printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3822as_fn_error $? "cannot compute suffix of object files: cannot compile
3823See \`config.log' for more details" "$LINENO" 5; }
3824fi
3825rm -f conftest.$ac_cv_objext conftest.$ac_ext
3826fi
3827{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3828printf "%s\n" "$ac_cv_objext" >&6; }
3829OBJEXT=$ac_cv_objext
3830ac_objext=$OBJEXT
3831{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3832printf %s "checking whether the compiler supports GNU C... " >&6; }
3833if test ${ac_cv_c_compiler_gnu+y}
3834then :
3835  printf %s "(cached) " >&6
3836else $as_nop
3837  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3838/* end confdefs.h.  */
3839
3840int
3841main (void)
3842{
3843#ifndef __GNUC__
3844       choke me
3845#endif
3846
3847  ;
3848  return 0;
3849}
3850_ACEOF
3851if ac_fn_c_try_compile "$LINENO"
3852then :
3853  ac_compiler_gnu=yes
3854else $as_nop
3855  ac_compiler_gnu=no
3856fi
3857rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3858ac_cv_c_compiler_gnu=$ac_compiler_gnu
3859
3860fi
3861{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3862printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3863ac_compiler_gnu=$ac_cv_c_compiler_gnu
3864
3865if test $ac_compiler_gnu = yes; then
3866  GCC=yes
3867else
3868  GCC=
3869fi
3870ac_test_CFLAGS=${CFLAGS+y}
3871ac_save_CFLAGS=$CFLAGS
3872{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3873printf %s "checking whether $CC accepts -g... " >&6; }
3874if test ${ac_cv_prog_cc_g+y}
3875then :
3876  printf %s "(cached) " >&6
3877else $as_nop
3878  ac_save_c_werror_flag=$ac_c_werror_flag
3879   ac_c_werror_flag=yes
3880   ac_cv_prog_cc_g=no
3881   CFLAGS="-g"
3882   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3883/* end confdefs.h.  */
3884
3885int
3886main (void)
3887{
3888
3889  ;
3890  return 0;
3891}
3892_ACEOF
3893if ac_fn_c_try_compile "$LINENO"
3894then :
3895  ac_cv_prog_cc_g=yes
3896else $as_nop
3897  CFLAGS=""
3898      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3899/* end confdefs.h.  */
3900
3901int
3902main (void)
3903{
3904
3905  ;
3906  return 0;
3907}
3908_ACEOF
3909if ac_fn_c_try_compile "$LINENO"
3910then :
3911
3912else $as_nop
3913  ac_c_werror_flag=$ac_save_c_werror_flag
3914	 CFLAGS="-g"
3915	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3916/* end confdefs.h.  */
3917
3918int
3919main (void)
3920{
3921
3922  ;
3923  return 0;
3924}
3925_ACEOF
3926if ac_fn_c_try_compile "$LINENO"
3927then :
3928  ac_cv_prog_cc_g=yes
3929fi
3930rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3931fi
3932rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3933fi
3934rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3935   ac_c_werror_flag=$ac_save_c_werror_flag
3936fi
3937{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3938printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3939if test $ac_test_CFLAGS; then
3940  CFLAGS=$ac_save_CFLAGS
3941elif test $ac_cv_prog_cc_g = yes; then
3942  if test "$GCC" = yes; then
3943    CFLAGS="-g -O2"
3944  else
3945    CFLAGS="-g"
3946  fi
3947else
3948  if test "$GCC" = yes; then
3949    CFLAGS="-O2"
3950  else
3951    CFLAGS=
3952  fi
3953fi
3954ac_prog_cc_stdc=no
3955if test x$ac_prog_cc_stdc = xno
3956then :
3957  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3958printf %s "checking for $CC option to enable C11 features... " >&6; }
3959if test ${ac_cv_prog_cc_c11+y}
3960then :
3961  printf %s "(cached) " >&6
3962else $as_nop
3963  ac_cv_prog_cc_c11=no
3964ac_save_CC=$CC
3965cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3966/* end confdefs.h.  */
3967$ac_c_conftest_c11_program
3968_ACEOF
3969for ac_arg in '' -std=gnu11
3970do
3971  CC="$ac_save_CC $ac_arg"
3972  if ac_fn_c_try_compile "$LINENO"
3973then :
3974  ac_cv_prog_cc_c11=$ac_arg
3975fi
3976rm -f core conftest.err conftest.$ac_objext conftest.beam
3977  test "x$ac_cv_prog_cc_c11" != "xno" && break
3978done
3979rm -f conftest.$ac_ext
3980CC=$ac_save_CC
3981fi
3982
3983if test "x$ac_cv_prog_cc_c11" = xno
3984then :
3985  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3986printf "%s\n" "unsupported" >&6; }
3987else $as_nop
3988  if test "x$ac_cv_prog_cc_c11" = x
3989then :
3990  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3991printf "%s\n" "none needed" >&6; }
3992else $as_nop
3993  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3994printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3995     CC="$CC $ac_cv_prog_cc_c11"
3996fi
3997  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3998  ac_prog_cc_stdc=c11
3999fi
4000fi
4001if test x$ac_prog_cc_stdc = xno
4002then :
4003  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4004printf %s "checking for $CC option to enable C99 features... " >&6; }
4005if test ${ac_cv_prog_cc_c99+y}
4006then :
4007  printf %s "(cached) " >&6
4008else $as_nop
4009  ac_cv_prog_cc_c99=no
4010ac_save_CC=$CC
4011cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4012/* end confdefs.h.  */
4013$ac_c_conftest_c99_program
4014_ACEOF
4015for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4016do
4017  CC="$ac_save_CC $ac_arg"
4018  if ac_fn_c_try_compile "$LINENO"
4019then :
4020  ac_cv_prog_cc_c99=$ac_arg
4021fi
4022rm -f core conftest.err conftest.$ac_objext conftest.beam
4023  test "x$ac_cv_prog_cc_c99" != "xno" && break
4024done
4025rm -f conftest.$ac_ext
4026CC=$ac_save_CC
4027fi
4028
4029if test "x$ac_cv_prog_cc_c99" = xno
4030then :
4031  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4032printf "%s\n" "unsupported" >&6; }
4033else $as_nop
4034  if test "x$ac_cv_prog_cc_c99" = x
4035then :
4036  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4037printf "%s\n" "none needed" >&6; }
4038else $as_nop
4039  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4040printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4041     CC="$CC $ac_cv_prog_cc_c99"
4042fi
4043  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4044  ac_prog_cc_stdc=c99
4045fi
4046fi
4047if test x$ac_prog_cc_stdc = xno
4048then :
4049  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4050printf %s "checking for $CC option to enable C89 features... " >&6; }
4051if test ${ac_cv_prog_cc_c89+y}
4052then :
4053  printf %s "(cached) " >&6
4054else $as_nop
4055  ac_cv_prog_cc_c89=no
4056ac_save_CC=$CC
4057cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4058/* end confdefs.h.  */
4059$ac_c_conftest_c89_program
4060_ACEOF
4061for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4062do
4063  CC="$ac_save_CC $ac_arg"
4064  if ac_fn_c_try_compile "$LINENO"
4065then :
4066  ac_cv_prog_cc_c89=$ac_arg
4067fi
4068rm -f core conftest.err conftest.$ac_objext conftest.beam
4069  test "x$ac_cv_prog_cc_c89" != "xno" && break
4070done
4071rm -f conftest.$ac_ext
4072CC=$ac_save_CC
4073fi
4074
4075if test "x$ac_cv_prog_cc_c89" = xno
4076then :
4077  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4078printf "%s\n" "unsupported" >&6; }
4079else $as_nop
4080  if test "x$ac_cv_prog_cc_c89" = x
4081then :
4082  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4083printf "%s\n" "none needed" >&6; }
4084else $as_nop
4085  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4086printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4087     CC="$CC $ac_cv_prog_cc_c89"
4088fi
4089  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4090  ac_prog_cc_stdc=c89
4091fi
4092fi
4093
4094ac_ext=c
4095ac_cpp='$CPP $CPPFLAGS'
4096ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4097ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4098ac_compiler_gnu=$ac_cv_c_compiler_gnu
4099
4100
4101  ac_ext=c
4102ac_cpp='$CPP $CPPFLAGS'
4103ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4104ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4105ac_compiler_gnu=$ac_cv_c_compiler_gnu
4106{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4107printf %s "checking whether $CC understands -c and -o together... " >&6; }
4108if test ${am_cv_prog_cc_c_o+y}
4109then :
4110  printf %s "(cached) " >&6
4111else $as_nop
4112  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4113/* end confdefs.h.  */
4114
4115int
4116main (void)
4117{
4118
4119  ;
4120  return 0;
4121}
4122_ACEOF
4123  # Make sure it works both with $CC and with simple cc.
4124  # Following AC_PROG_CC_C_O, we do the test twice because some
4125  # compilers refuse to overwrite an existing .o file with -o,
4126  # though they will create one.
4127  am_cv_prog_cc_c_o=yes
4128  for am_i in 1 2; do
4129    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4130   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4131   ac_status=$?
4132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4133   (exit $ac_status); } \
4134         && test -f conftest2.$ac_objext; then
4135      : OK
4136    else
4137      am_cv_prog_cc_c_o=no
4138      break
4139    fi
4140  done
4141  rm -f core conftest*
4142  unset am_i
4143fi
4144{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4145printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4146if test "$am_cv_prog_cc_c_o" != yes; then
4147   # Losing compiler, so override with the script.
4148   # FIXME: It is wrong to rewrite CC.
4149   # But if we don't then we get into trouble of one sort or another.
4150   # A longer-term fix would be to have automake use am__CC in this case,
4151   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4152   CC="$am_aux_dir/compile $CC"
4153fi
4154ac_ext=c
4155ac_cpp='$CPP $CPPFLAGS'
4156ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4157ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4158ac_compiler_gnu=$ac_cv_c_compiler_gnu
4159
4160
4161
4162ac_header= ac_cache=
4163for ac_item in $ac_header_c_list
4164do
4165  if test $ac_cache; then
4166    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4167    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4168      printf "%s\n" "#define $ac_item 1" >> confdefs.h
4169    fi
4170    ac_header= ac_cache=
4171  elif test $ac_header; then
4172    ac_cache=$ac_item
4173  else
4174    ac_header=$ac_item
4175  fi
4176done
4177
4178
4179
4180
4181
4182
4183
4184
4185if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4186then :
4187
4188printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4189
4190fi
4191
4192
4193
4194
4195
4196
4197  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4198printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4199if test ${ac_cv_safe_to_define___extensions__+y}
4200then :
4201  printf %s "(cached) " >&6
4202else $as_nop
4203  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4204/* end confdefs.h.  */
4205
4206#         define __EXTENSIONS__ 1
4207          $ac_includes_default
4208int
4209main (void)
4210{
4211
4212  ;
4213  return 0;
4214}
4215_ACEOF
4216if ac_fn_c_try_compile "$LINENO"
4217then :
4218  ac_cv_safe_to_define___extensions__=yes
4219else $as_nop
4220  ac_cv_safe_to_define___extensions__=no
4221fi
4222rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4223fi
4224{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4225printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
4226
4227  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4228printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4229if test ${ac_cv_should_define__xopen_source+y}
4230then :
4231  printf %s "(cached) " >&6
4232else $as_nop
4233  ac_cv_should_define__xopen_source=no
4234    if test $ac_cv_header_wchar_h = yes
4235then :
4236  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4237/* end confdefs.h.  */
4238
4239          #include <wchar.h>
4240          mbstate_t x;
4241int
4242main (void)
4243{
4244
4245  ;
4246  return 0;
4247}
4248_ACEOF
4249if ac_fn_c_try_compile "$LINENO"
4250then :
4251
4252else $as_nop
4253  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4254/* end confdefs.h.  */
4255
4256            #define _XOPEN_SOURCE 500
4257            #include <wchar.h>
4258            mbstate_t x;
4259int
4260main (void)
4261{
4262
4263  ;
4264  return 0;
4265}
4266_ACEOF
4267if ac_fn_c_try_compile "$LINENO"
4268then :
4269  ac_cv_should_define__xopen_source=yes
4270fi
4271rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4272fi
4273rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4274fi
4275fi
4276{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
4277printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
4278
4279  printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
4280
4281  printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4282
4283  printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
4284
4285  printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
4286
4287  printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
4288
4289  printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
4290
4291  printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4292
4293  printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
4294
4295  printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
4296
4297  printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
4298
4299  printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
4300
4301  printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
4302
4303  printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
4304
4305  printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
4306
4307  printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
4308
4309  if test $ac_cv_header_minix_config_h = yes
4310then :
4311  MINIX=yes
4312    printf "%s\n" "#define _MINIX 1" >>confdefs.h
4313
4314    printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
4315
4316    printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
4317
4318else $as_nop
4319  MINIX=
4320fi
4321  if test $ac_cv_safe_to_define___extensions__ = yes
4322then :
4323  printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
4324
4325fi
4326  if test $ac_cv_should_define__xopen_source = yes
4327then :
4328  printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
4329
4330fi
4331
4332
4333# Initialize Automake
4334am__api_version='1.16'
4335
4336
4337  # Find a good install program.  We prefer a C program (faster),
4338# so one script is as good as another.  But avoid the broken or
4339# incompatible versions:
4340# SysV /etc/install, /usr/sbin/install
4341# SunOS /usr/etc/install
4342# IRIX /sbin/install
4343# AIX /bin/install
4344# AmigaOS /C/install, which installs bootblocks on floppy discs
4345# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4346# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4347# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4348# OS/2's system install, which has a completely different semantic
4349# ./install, which can be erroneously created by make from ./install.sh.
4350# Reject install programs that cannot install multiple files.
4351{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4352printf %s "checking for a BSD-compatible install... " >&6; }
4353if test -z "$INSTALL"; then
4354if test ${ac_cv_path_install+y}
4355then :
4356  printf %s "(cached) " >&6
4357else $as_nop
4358  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4359for as_dir in $PATH
4360do
4361  IFS=$as_save_IFS
4362  case $as_dir in #(((
4363    '') as_dir=./ ;;
4364    */) ;;
4365    *) as_dir=$as_dir/ ;;
4366  esac
4367    # Account for fact that we put trailing slashes in our PATH walk.
4368case $as_dir in #((
4369  ./ | /[cC]/* | \
4370  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4371  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4372  /usr/ucb/* ) ;;
4373  *)
4374    # OSF1 and SCO ODT 3.0 have their own names for install.
4375    # Don't use installbsd from OSF since it installs stuff as root
4376    # by default.
4377    for ac_prog in ginstall scoinst install; do
4378      for ac_exec_ext in '' $ac_executable_extensions; do
4379	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
4380	  if test $ac_prog = install &&
4381	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4382	    # AIX install.  It has an incompatible calling convention.
4383	    :
4384	  elif test $ac_prog = install &&
4385	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4386	    # program-specific install script used by HP pwplus--don't use.
4387	    :
4388	  else
4389	    rm -rf conftest.one conftest.two conftest.dir
4390	    echo one > conftest.one
4391	    echo two > conftest.two
4392	    mkdir conftest.dir
4393	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
4394	      test -s conftest.one && test -s conftest.two &&
4395	      test -s conftest.dir/conftest.one &&
4396	      test -s conftest.dir/conftest.two
4397	    then
4398	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
4399	      break 3
4400	    fi
4401	  fi
4402	fi
4403      done
4404    done
4405    ;;
4406esac
4407
4408  done
4409IFS=$as_save_IFS
4410
4411rm -rf conftest.one conftest.two conftest.dir
4412
4413fi
4414  if test ${ac_cv_path_install+y}; then
4415    INSTALL=$ac_cv_path_install
4416  else
4417    # As a last resort, use the slow shell script.  Don't cache a
4418    # value for INSTALL within a source directory, because that will
4419    # break other packages using the cache if that directory is
4420    # removed, or if the value is a relative name.
4421    INSTALL=$ac_install_sh
4422  fi
4423fi
4424{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4425printf "%s\n" "$INSTALL" >&6; }
4426
4427# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4428# It thinks the first close brace ends the variable substitution.
4429test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4430
4431test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4432
4433test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4434
4435{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4436printf %s "checking whether build environment is sane... " >&6; }
4437# Reject unsafe characters in $srcdir or the absolute working directory
4438# name.  Accept space and tab only in the latter.
4439am_lf='
4440'
4441case `pwd` in
4442  *[\\\"\#\$\&\'\`$am_lf]*)
4443    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4444esac
4445case $srcdir in
4446  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
4447    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4448esac
4449
4450# Do 'set' in a subshell so we don't clobber the current shell's
4451# arguments.  Must try -L first in case configure is actually a
4452# symlink; some systems play weird games with the mod time of symlinks
4453# (eg FreeBSD returns the mod time of the symlink's containing
4454# directory).
4455if (
4456   am_has_slept=no
4457   for am_try in 1 2; do
4458     echo "timestamp, slept: $am_has_slept" > conftest.file
4459     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4460     if test "$*" = "X"; then
4461	# -L didn't work.
4462	set X `ls -t "$srcdir/configure" conftest.file`
4463     fi
4464     if test "$*" != "X $srcdir/configure conftest.file" \
4465	&& test "$*" != "X conftest.file $srcdir/configure"; then
4466
4467	# If neither matched, then we have a broken ls.  This can happen
4468	# if, for instance, CONFIG_SHELL is bash and it inherits a
4469	# broken ls alias from the environment.  This has actually
4470	# happened.  Such a system could not be considered "sane".
4471	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
4472  alias in your environment" "$LINENO" 5
4473     fi
4474     if test "$2" = conftest.file || test $am_try -eq 2; then
4475       break
4476     fi
4477     # Just in case.
4478     sleep 1
4479     am_has_slept=yes
4480   done
4481   test "$2" = conftest.file
4482   )
4483then
4484   # Ok.
4485   :
4486else
4487   as_fn_error $? "newly created file is older than distributed files!
4488Check your system clock" "$LINENO" 5
4489fi
4490{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4491printf "%s\n" "yes" >&6; }
4492# If we didn't sleep, we still need to ensure time stamps of config.status and
4493# generated files are strictly newer.
4494am_sleep_pid=
4495if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4496  ( sleep 1 ) &
4497  am_sleep_pid=$!
4498fi
4499
4500rm -f conftest.file
4501
4502test "$program_prefix" != NONE &&
4503  program_transform_name="s&^&$program_prefix&;$program_transform_name"
4504# Use a double $ so make ignores it.
4505test "$program_suffix" != NONE &&
4506  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4507# Double any \ or $.
4508# By default was `s,x,x', remove it if useless.
4509ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4510program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
4511
4512
4513  if test x"${MISSING+set}" != xset; then
4514  MISSING="\${SHELL} '$am_aux_dir/missing'"
4515fi
4516# Use eval to expand $SHELL
4517if eval "$MISSING --is-lightweight"; then
4518  am_missing_run="$MISSING "
4519else
4520  am_missing_run=
4521  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4522printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4523fi
4524
4525if test x"${install_sh+set}" != xset; then
4526  case $am_aux_dir in
4527  *\ * | *\	*)
4528    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4529  *)
4530    install_sh="\${SHELL} $am_aux_dir/install-sh"
4531  esac
4532fi
4533
4534# Installed binaries are usually stripped using 'strip' when the user
4535# run "make install-strip".  However 'strip' might not be the right
4536# tool to use in cross-compilation environments, therefore Automake
4537# will honor the 'STRIP' environment variable to overrule this program.
4538if test "$cross_compiling" != no; then
4539  if test -n "$ac_tool_prefix"; then
4540  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4541set dummy ${ac_tool_prefix}strip; ac_word=$2
4542{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4543printf %s "checking for $ac_word... " >&6; }
4544if test ${ac_cv_prog_STRIP+y}
4545then :
4546  printf %s "(cached) " >&6
4547else $as_nop
4548  if test -n "$STRIP"; then
4549  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4550else
4551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4552for as_dir in $PATH
4553do
4554  IFS=$as_save_IFS
4555  case $as_dir in #(((
4556    '') as_dir=./ ;;
4557    */) ;;
4558    *) as_dir=$as_dir/ ;;
4559  esac
4560    for ac_exec_ext in '' $ac_executable_extensions; do
4561  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4562    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4563    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4564    break 2
4565  fi
4566done
4567  done
4568IFS=$as_save_IFS
4569
4570fi
4571fi
4572STRIP=$ac_cv_prog_STRIP
4573if test -n "$STRIP"; then
4574  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4575printf "%s\n" "$STRIP" >&6; }
4576else
4577  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4578printf "%s\n" "no" >&6; }
4579fi
4580
4581
4582fi
4583if test -z "$ac_cv_prog_STRIP"; then
4584  ac_ct_STRIP=$STRIP
4585  # Extract the first word of "strip", so it can be a program name with args.
4586set dummy strip; ac_word=$2
4587{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4588printf %s "checking for $ac_word... " >&6; }
4589if test ${ac_cv_prog_ac_ct_STRIP+y}
4590then :
4591  printf %s "(cached) " >&6
4592else $as_nop
4593  if test -n "$ac_ct_STRIP"; then
4594  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4595else
4596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4597for as_dir in $PATH
4598do
4599  IFS=$as_save_IFS
4600  case $as_dir in #(((
4601    '') as_dir=./ ;;
4602    */) ;;
4603    *) as_dir=$as_dir/ ;;
4604  esac
4605    for ac_exec_ext in '' $ac_executable_extensions; do
4606  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4607    ac_cv_prog_ac_ct_STRIP="strip"
4608    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4609    break 2
4610  fi
4611done
4612  done
4613IFS=$as_save_IFS
4614
4615fi
4616fi
4617ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4618if test -n "$ac_ct_STRIP"; then
4619  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4620printf "%s\n" "$ac_ct_STRIP" >&6; }
4621else
4622  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4623printf "%s\n" "no" >&6; }
4624fi
4625
4626  if test "x$ac_ct_STRIP" = x; then
4627    STRIP=":"
4628  else
4629    case $cross_compiling:$ac_tool_warned in
4630yes:)
4631{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4632printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4633ac_tool_warned=yes ;;
4634esac
4635    STRIP=$ac_ct_STRIP
4636  fi
4637else
4638  STRIP="$ac_cv_prog_STRIP"
4639fi
4640
4641fi
4642INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4643
4644
4645  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
4646printf %s "checking for a race-free mkdir -p... " >&6; }
4647if test -z "$MKDIR_P"; then
4648  if test ${ac_cv_path_mkdir+y}
4649then :
4650  printf %s "(cached) " >&6
4651else $as_nop
4652  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4653for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4654do
4655  IFS=$as_save_IFS
4656  case $as_dir in #(((
4657    '') as_dir=./ ;;
4658    */) ;;
4659    *) as_dir=$as_dir/ ;;
4660  esac
4661    for ac_prog in mkdir gmkdir; do
4662	 for ac_exec_ext in '' $ac_executable_extensions; do
4663	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
4664	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
4665	     'mkdir ('*'coreutils) '* | \
4666	     'BusyBox '* | \
4667	     'mkdir (fileutils) '4.1*)
4668	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
4669	       break 3;;
4670	   esac
4671	 done
4672       done
4673  done
4674IFS=$as_save_IFS
4675
4676fi
4677
4678  test -d ./--version && rmdir ./--version
4679  if test ${ac_cv_path_mkdir+y}; then
4680    MKDIR_P="$ac_cv_path_mkdir -p"
4681  else
4682    # As a last resort, use the slow shell script.  Don't cache a
4683    # value for MKDIR_P within a source directory, because that will
4684    # break other packages using the cache if that directory is
4685    # removed, or if the value is a relative name.
4686    MKDIR_P="$ac_install_sh -d"
4687  fi
4688fi
4689{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4690printf "%s\n" "$MKDIR_P" >&6; }
4691
4692for ac_prog in gawk mawk nawk awk
4693do
4694  # Extract the first word of "$ac_prog", so it can be a program name with args.
4695set dummy $ac_prog; ac_word=$2
4696{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4697printf %s "checking for $ac_word... " >&6; }
4698if test ${ac_cv_prog_AWK+y}
4699then :
4700  printf %s "(cached) " >&6
4701else $as_nop
4702  if test -n "$AWK"; then
4703  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4704else
4705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4706for as_dir in $PATH
4707do
4708  IFS=$as_save_IFS
4709  case $as_dir in #(((
4710    '') as_dir=./ ;;
4711    */) ;;
4712    *) as_dir=$as_dir/ ;;
4713  esac
4714    for ac_exec_ext in '' $ac_executable_extensions; do
4715  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4716    ac_cv_prog_AWK="$ac_prog"
4717    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4718    break 2
4719  fi
4720done
4721  done
4722IFS=$as_save_IFS
4723
4724fi
4725fi
4726AWK=$ac_cv_prog_AWK
4727if test -n "$AWK"; then
4728  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4729printf "%s\n" "$AWK" >&6; }
4730else
4731  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4732printf "%s\n" "no" >&6; }
4733fi
4734
4735
4736  test -n "$AWK" && break
4737done
4738
4739{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4740printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4741set x ${MAKE-make}
4742ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4743if eval test \${ac_cv_prog_make_${ac_make}_set+y}
4744then :
4745  printf %s "(cached) " >&6
4746else $as_nop
4747  cat >conftest.make <<\_ACEOF
4748SHELL = /bin/sh
4749all:
4750	@echo '@@@%%%=$(MAKE)=@@@%%%'
4751_ACEOF
4752# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4753case `${MAKE-make} -f conftest.make 2>/dev/null` in
4754  *@@@%%%=?*=@@@%%%*)
4755    eval ac_cv_prog_make_${ac_make}_set=yes;;
4756  *)
4757    eval ac_cv_prog_make_${ac_make}_set=no;;
4758esac
4759rm -f conftest.make
4760fi
4761if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4762  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4763printf "%s\n" "yes" >&6; }
4764  SET_MAKE=
4765else
4766  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4767printf "%s\n" "no" >&6; }
4768  SET_MAKE="MAKE=${MAKE-make}"
4769fi
4770
4771rm -rf .tst 2>/dev/null
4772mkdir .tst 2>/dev/null
4773if test -d .tst; then
4774  am__leading_dot=.
4775else
4776  am__leading_dot=_
4777fi
4778rmdir .tst 2>/dev/null
4779
4780DEPDIR="${am__leading_dot}deps"
4781
4782ac_config_commands="$ac_config_commands depfiles"
4783
4784{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4785printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4786cat > confinc.mk << 'END'
4787am__doit:
4788	@echo this is the am__doit target >confinc.out
4789.PHONY: am__doit
4790END
4791am__include="#"
4792am__quote=
4793# BSD make does it like this.
4794echo '.include "confinc.mk" # ignored' > confmf.BSD
4795# Other make implementations (GNU, Solaris 10, AIX) do it like this.
4796echo 'include confinc.mk # ignored' > confmf.GNU
4797_am_result=no
4798for s in GNU BSD; do
4799  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4800   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4801   ac_status=$?
4802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803   (exit $ac_status); }
4804  case $?:`cat confinc.out 2>/dev/null` in #(
4805  '0:this is the am__doit target') :
4806    case $s in #(
4807  BSD) :
4808    am__include='.include' am__quote='"' ;; #(
4809  *) :
4810    am__include='include' am__quote='' ;;
4811esac ;; #(
4812  *) :
4813     ;;
4814esac
4815  if test "$am__include" != "#"; then
4816    _am_result="yes ($s style)"
4817    break
4818  fi
4819done
4820rm -f confinc.* confmf.*
4821{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4822printf "%s\n" "${_am_result}" >&6; }
4823
4824# Check whether --enable-dependency-tracking was given.
4825if test ${enable_dependency_tracking+y}
4826then :
4827  enableval=$enable_dependency_tracking;
4828fi
4829
4830if test "x$enable_dependency_tracking" != xno; then
4831  am_depcomp="$ac_aux_dir/depcomp"
4832  AMDEPBACKSLASH='\'
4833  am__nodep='_no'
4834fi
4835 if test "x$enable_dependency_tracking" != xno; then
4836  AMDEP_TRUE=
4837  AMDEP_FALSE='#'
4838else
4839  AMDEP_TRUE='#'
4840  AMDEP_FALSE=
4841fi
4842
4843
4844# Check whether --enable-silent-rules was given.
4845if test ${enable_silent_rules+y}
4846then :
4847  enableval=$enable_silent_rules;
4848fi
4849
4850case $enable_silent_rules in # (((
4851  yes) AM_DEFAULT_VERBOSITY=0;;
4852   no) AM_DEFAULT_VERBOSITY=1;;
4853    *) AM_DEFAULT_VERBOSITY=1;;
4854esac
4855am_make=${MAKE-make}
4856{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4857printf %s "checking whether $am_make supports nested variables... " >&6; }
4858if test ${am_cv_make_support_nested_variables+y}
4859then :
4860  printf %s "(cached) " >&6
4861else $as_nop
4862  if printf "%s\n" 'TRUE=$(BAR$(V))
4863BAR0=false
4864BAR1=true
4865V=1
4866am__doit:
4867	@$(TRUE)
4868.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4869  am_cv_make_support_nested_variables=yes
4870else
4871  am_cv_make_support_nested_variables=no
4872fi
4873fi
4874{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4875printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4876if test $am_cv_make_support_nested_variables = yes; then
4877    AM_V='$(V)'
4878  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4879else
4880  AM_V=$AM_DEFAULT_VERBOSITY
4881  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4882fi
4883AM_BACKSLASH='\'
4884
4885if test "`cd $srcdir && pwd`" != "`pwd`"; then
4886  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4887  # is not polluted with repeated "-I."
4888  am__isrc=' -I$(srcdir)'
4889  # test to see if srcdir already configured
4890  if test -f $srcdir/config.status; then
4891    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4892  fi
4893fi
4894
4895# test whether we have cygpath
4896if test -z "$CYGPATH_W"; then
4897  if (cygpath --version) >/dev/null 2>/dev/null; then
4898    CYGPATH_W='cygpath -w'
4899  else
4900    CYGPATH_W=echo
4901  fi
4902fi
4903
4904
4905# Define the identity of the package.
4906 PACKAGE='libX11'
4907 VERSION='1.7.2'
4908
4909
4910printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
4911
4912
4913printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
4914
4915# Some tools Automake needs.
4916
4917ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4918
4919
4920AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4921
4922
4923AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4924
4925
4926AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4927
4928
4929MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4930
4931# For better backward compatibility.  To be removed once Automake 1.9.x
4932# dies out for good.  For more background, see:
4933# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4934# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4935mkdir_p='$(MKDIR_P)'
4936
4937# We need awk for the "check" target (and possibly the TAP driver).  The
4938# system "awk" is bad on some platforms.
4939# Always define AMTAR for backward compatibility.  Yes, it's still used
4940# in the wild :-(  We should find a proper way to deprecate it ...
4941AMTAR='$${TAR-tar}'
4942
4943
4944# We'll loop over all known methods to create a tar archive until one works.
4945_am_tools='gnutar  pax cpio none'
4946
4947am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4948
4949
4950
4951
4952
4953depcc="$CC"   am_compiler_list=
4954
4955{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4956printf %s "checking dependency style of $depcc... " >&6; }
4957if test ${am_cv_CC_dependencies_compiler_type+y}
4958then :
4959  printf %s "(cached) " >&6
4960else $as_nop
4961  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4962  # We make a subdir and do the tests there.  Otherwise we can end up
4963  # making bogus files that we don't know about and never remove.  For
4964  # instance it was reported that on HP-UX the gcc test will end up
4965  # making a dummy file named 'D' -- because '-MD' means "put the output
4966  # in D".
4967  rm -rf conftest.dir
4968  mkdir conftest.dir
4969  # Copy depcomp to subdir because otherwise we won't find it if we're
4970  # using a relative directory.
4971  cp "$am_depcomp" conftest.dir
4972  cd conftest.dir
4973  # We will build objects and dependencies in a subdirectory because
4974  # it helps to detect inapplicable dependency modes.  For instance
4975  # both Tru64's cc and ICC support -MD to output dependencies as a
4976  # side effect of compilation, but ICC will put the dependencies in
4977  # the current directory while Tru64 will put them in the object
4978  # directory.
4979  mkdir sub
4980
4981  am_cv_CC_dependencies_compiler_type=none
4982  if test "$am_compiler_list" = ""; then
4983     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4984  fi
4985  am__universal=false
4986  case " $depcc " in #(
4987     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4988     esac
4989
4990  for depmode in $am_compiler_list; do
4991    # Setup a source with many dependencies, because some compilers
4992    # like to wrap large dependency lists on column 80 (with \), and
4993    # we should not choose a depcomp mode which is confused by this.
4994    #
4995    # We need to recreate these files for each test, as the compiler may
4996    # overwrite some of them when testing with obscure command lines.
4997    # This happens at least with the AIX C compiler.
4998    : > sub/conftest.c
4999    for i in 1 2 3 4 5 6; do
5000      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5001      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5002      # Solaris 10 /bin/sh.
5003      echo '/* dummy */' > sub/conftst$i.h
5004    done
5005    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5006
5007    # We check with '-c' and '-o' for the sake of the "dashmstdout"
5008    # mode.  It turns out that the SunPro C++ compiler does not properly
5009    # handle '-M -o', and we need to detect this.  Also, some Intel
5010    # versions had trouble with output in subdirs.
5011    am__obj=sub/conftest.${OBJEXT-o}
5012    am__minus_obj="-o $am__obj"
5013    case $depmode in
5014    gcc)
5015      # This depmode causes a compiler race in universal mode.
5016      test "$am__universal" = false || continue
5017      ;;
5018    nosideeffect)
5019      # After this tag, mechanisms are not by side-effect, so they'll
5020      # only be used when explicitly requested.
5021      if test "x$enable_dependency_tracking" = xyes; then
5022	continue
5023      else
5024	break
5025      fi
5026      ;;
5027    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5028      # This compiler won't grok '-c -o', but also, the minuso test has
5029      # not run yet.  These depmodes are late enough in the game, and
5030      # so weak that their functioning should not be impacted.
5031      am__obj=conftest.${OBJEXT-o}
5032      am__minus_obj=
5033      ;;
5034    none) break ;;
5035    esac
5036    if depmode=$depmode \
5037       source=sub/conftest.c object=$am__obj \
5038       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5039       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5040         >/dev/null 2>conftest.err &&
5041       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5042       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5043       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5044       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5045      # icc doesn't choke on unknown options, it will just issue warnings
5046      # or remarks (even with -Werror).  So we grep stderr for any message
5047      # that says an option was ignored or not supported.
5048      # When given -MP, icc 7.0 and 7.1 complain thusly:
5049      #   icc: Command line warning: ignoring option '-M'; no argument required
5050      # The diagnosis changed in icc 8.0:
5051      #   icc: Command line remark: option '-MP' not supported
5052      if (grep 'ignoring option' conftest.err ||
5053          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5054        am_cv_CC_dependencies_compiler_type=$depmode
5055        break
5056      fi
5057    fi
5058  done
5059
5060  cd ..
5061  rm -rf conftest.dir
5062else
5063  am_cv_CC_dependencies_compiler_type=none
5064fi
5065
5066fi
5067{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5068printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5069CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5070
5071 if
5072  test "x$enable_dependency_tracking" != xno \
5073  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5074  am__fastdepCC_TRUE=
5075  am__fastdepCC_FALSE='#'
5076else
5077  am__fastdepCC_TRUE='#'
5078  am__fastdepCC_FALSE=
5079fi
5080
5081
5082
5083# POSIX will say in a future version that running "rm -f" with no argument
5084# is OK; and we want to be able to make that assumption in our Makefile
5085# recipes.  So use an aggressive probe to check that the usage we want is
5086# actually supported "in the wild" to an acceptable degree.
5087# See automake bug#10828.
5088# To make any issue more visible, cause the running configure to be aborted
5089# by default if the 'rm' program in use doesn't match our expectations; the
5090# user can still override this though.
5091if rm -f && rm -fr && rm -rf; then : OK; else
5092  cat >&2 <<'END'
5093Oops!
5094
5095Your 'rm' program seems unable to run without file operands specified
5096on the command line, even when the '-f' option is present.  This is contrary
5097to the behaviour of most rm programs out there, and not conforming with
5098the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
5099
5100Please tell bug-automake@gnu.org about your system, including the value
5101of your $PATH and any error possibly output before this message.  This
5102can help us improve future automake versions.
5103
5104END
5105  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
5106    echo 'Configuration will proceed anyway, since you have set the' >&2
5107    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
5108    echo >&2
5109  else
5110    cat >&2 <<'END'
5111Aborting the configuration process, to ensure you take notice of the issue.
5112
5113You can download and install GNU coreutils to get an 'rm' implementation
5114that behaves properly: <https://www.gnu.org/software/coreutils/>.
5115
5116If you want to complete the configuration process using your problematic
5117'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
5118to "yes", and re-run configure.
5119
5120END
5121    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
5122  fi
5123fi
5124
5125
5126# Initialize libtool
5127case `pwd` in
5128  *\ * | *\	*)
5129    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5130printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5131esac
5132
5133
5134
5135macro_version='2.4.6'
5136macro_revision='2.4.6'
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151ltmain=$ac_aux_dir/ltmain.sh
5152
5153# Backslashify metacharacters that are still active within
5154# double-quoted strings.
5155sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5156
5157# Same as above, but do not quote variable references.
5158double_quote_subst='s/\(["`\\]\)/\\\1/g'
5159
5160# Sed substitution to delay expansion of an escaped shell variable in a
5161# double_quote_subst'ed string.
5162delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5163
5164# Sed substitution to delay expansion of an escaped single quote.
5165delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5166
5167# Sed substitution to avoid accidental globbing in evaled expressions
5168no_glob_subst='s/\*/\\\*/g'
5169
5170ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5171ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5172ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5173
5174{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5175printf %s "checking how to print strings... " >&6; }
5176# Test print first, because it will be a builtin if present.
5177if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5178   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5179  ECHO='print -r --'
5180elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5181  ECHO='printf %s\n'
5182else
5183  # Use this function as a fallback that always works.
5184  func_fallback_echo ()
5185  {
5186    eval 'cat <<_LTECHO_EOF
5187$1
5188_LTECHO_EOF'
5189  }
5190  ECHO='func_fallback_echo'
5191fi
5192
5193# func_echo_all arg...
5194# Invoke $ECHO with all args, space-separated.
5195func_echo_all ()
5196{
5197    $ECHO ""
5198}
5199
5200case $ECHO in
5201  printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5202printf "%s\n" "printf" >&6; } ;;
5203  print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5204printf "%s\n" "print -r" >&6; } ;;
5205  *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5206printf "%s\n" "cat" >&6; } ;;
5207esac
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5223printf %s "checking for a sed that does not truncate output... " >&6; }
5224if test ${ac_cv_path_SED+y}
5225then :
5226  printf %s "(cached) " >&6
5227else $as_nop
5228            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5229     for ac_i in 1 2 3 4 5 6 7; do
5230       ac_script="$ac_script$as_nl$ac_script"
5231     done
5232     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5233     { ac_script=; unset ac_script;}
5234     if test -z "$SED"; then
5235  ac_path_SED_found=false
5236  # Loop through the user's path and test for each of PROGNAME-LIST
5237  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5238for as_dir in $PATH
5239do
5240  IFS=$as_save_IFS
5241  case $as_dir in #(((
5242    '') as_dir=./ ;;
5243    */) ;;
5244    *) as_dir=$as_dir/ ;;
5245  esac
5246    for ac_prog in sed gsed
5247   do
5248    for ac_exec_ext in '' $ac_executable_extensions; do
5249      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5250      as_fn_executable_p "$ac_path_SED" || continue
5251# Check for GNU ac_path_SED and select it if it is found.
5252  # Check for GNU $ac_path_SED
5253case `"$ac_path_SED" --version 2>&1` in
5254*GNU*)
5255  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5256*)
5257  ac_count=0
5258  printf %s 0123456789 >"conftest.in"
5259  while :
5260  do
5261    cat "conftest.in" "conftest.in" >"conftest.tmp"
5262    mv "conftest.tmp" "conftest.in"
5263    cp "conftest.in" "conftest.nl"
5264    printf "%s\n" '' >> "conftest.nl"
5265    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5266    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5267    as_fn_arith $ac_count + 1 && ac_count=$as_val
5268    if test $ac_count -gt ${ac_path_SED_max-0}; then
5269      # Best one so far, save it but keep looking for a better one
5270      ac_cv_path_SED="$ac_path_SED"
5271      ac_path_SED_max=$ac_count
5272    fi
5273    # 10*(2^10) chars as input seems more than enough
5274    test $ac_count -gt 10 && break
5275  done
5276  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5277esac
5278
5279      $ac_path_SED_found && break 3
5280    done
5281  done
5282  done
5283IFS=$as_save_IFS
5284  if test -z "$ac_cv_path_SED"; then
5285    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5286  fi
5287else
5288  ac_cv_path_SED=$SED
5289fi
5290
5291fi
5292{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5293printf "%s\n" "$ac_cv_path_SED" >&6; }
5294 SED="$ac_cv_path_SED"
5295  rm -f conftest.sed
5296
5297test -z "$SED" && SED=sed
5298Xsed="$SED -e 1s/^X//"
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5311printf %s "checking for grep that handles long lines and -e... " >&6; }
5312if test ${ac_cv_path_GREP+y}
5313then :
5314  printf %s "(cached) " >&6
5315else $as_nop
5316  if test -z "$GREP"; then
5317  ac_path_GREP_found=false
5318  # Loop through the user's path and test for each of PROGNAME-LIST
5319  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5320for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5321do
5322  IFS=$as_save_IFS
5323  case $as_dir in #(((
5324    '') as_dir=./ ;;
5325    */) ;;
5326    *) as_dir=$as_dir/ ;;
5327  esac
5328    for ac_prog in grep ggrep
5329   do
5330    for ac_exec_ext in '' $ac_executable_extensions; do
5331      ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5332      as_fn_executable_p "$ac_path_GREP" || continue
5333# Check for GNU ac_path_GREP and select it if it is found.
5334  # Check for GNU $ac_path_GREP
5335case `"$ac_path_GREP" --version 2>&1` in
5336*GNU*)
5337  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5338*)
5339  ac_count=0
5340  printf %s 0123456789 >"conftest.in"
5341  while :
5342  do
5343    cat "conftest.in" "conftest.in" >"conftest.tmp"
5344    mv "conftest.tmp" "conftest.in"
5345    cp "conftest.in" "conftest.nl"
5346    printf "%s\n" 'GREP' >> "conftest.nl"
5347    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5348    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5349    as_fn_arith $ac_count + 1 && ac_count=$as_val
5350    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5351      # Best one so far, save it but keep looking for a better one
5352      ac_cv_path_GREP="$ac_path_GREP"
5353      ac_path_GREP_max=$ac_count
5354    fi
5355    # 10*(2^10) chars as input seems more than enough
5356    test $ac_count -gt 10 && break
5357  done
5358  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5359esac
5360
5361      $ac_path_GREP_found && break 3
5362    done
5363  done
5364  done
5365IFS=$as_save_IFS
5366  if test -z "$ac_cv_path_GREP"; then
5367    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5368  fi
5369else
5370  ac_cv_path_GREP=$GREP
5371fi
5372
5373fi
5374{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5375printf "%s\n" "$ac_cv_path_GREP" >&6; }
5376 GREP="$ac_cv_path_GREP"
5377
5378
5379{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5380printf %s "checking for egrep... " >&6; }
5381if test ${ac_cv_path_EGREP+y}
5382then :
5383  printf %s "(cached) " >&6
5384else $as_nop
5385  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5386   then ac_cv_path_EGREP="$GREP -E"
5387   else
5388     if test -z "$EGREP"; then
5389  ac_path_EGREP_found=false
5390  # Loop through the user's path and test for each of PROGNAME-LIST
5391  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5392for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5393do
5394  IFS=$as_save_IFS
5395  case $as_dir in #(((
5396    '') as_dir=./ ;;
5397    */) ;;
5398    *) as_dir=$as_dir/ ;;
5399  esac
5400    for ac_prog in egrep
5401   do
5402    for ac_exec_ext in '' $ac_executable_extensions; do
5403      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5404      as_fn_executable_p "$ac_path_EGREP" || continue
5405# Check for GNU ac_path_EGREP and select it if it is found.
5406  # Check for GNU $ac_path_EGREP
5407case `"$ac_path_EGREP" --version 2>&1` in
5408*GNU*)
5409  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5410*)
5411  ac_count=0
5412  printf %s 0123456789 >"conftest.in"
5413  while :
5414  do
5415    cat "conftest.in" "conftest.in" >"conftest.tmp"
5416    mv "conftest.tmp" "conftest.in"
5417    cp "conftest.in" "conftest.nl"
5418    printf "%s\n" 'EGREP' >> "conftest.nl"
5419    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5420    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5421    as_fn_arith $ac_count + 1 && ac_count=$as_val
5422    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5423      # Best one so far, save it but keep looking for a better one
5424      ac_cv_path_EGREP="$ac_path_EGREP"
5425      ac_path_EGREP_max=$ac_count
5426    fi
5427    # 10*(2^10) chars as input seems more than enough
5428    test $ac_count -gt 10 && break
5429  done
5430  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5431esac
5432
5433      $ac_path_EGREP_found && break 3
5434    done
5435  done
5436  done
5437IFS=$as_save_IFS
5438  if test -z "$ac_cv_path_EGREP"; then
5439    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5440  fi
5441else
5442  ac_cv_path_EGREP=$EGREP
5443fi
5444
5445   fi
5446fi
5447{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5448printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5449 EGREP="$ac_cv_path_EGREP"
5450
5451
5452{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5453printf %s "checking for fgrep... " >&6; }
5454if test ${ac_cv_path_FGREP+y}
5455then :
5456  printf %s "(cached) " >&6
5457else $as_nop
5458  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5459   then ac_cv_path_FGREP="$GREP -F"
5460   else
5461     if test -z "$FGREP"; then
5462  ac_path_FGREP_found=false
5463  # Loop through the user's path and test for each of PROGNAME-LIST
5464  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5465for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5466do
5467  IFS=$as_save_IFS
5468  case $as_dir in #(((
5469    '') as_dir=./ ;;
5470    */) ;;
5471    *) as_dir=$as_dir/ ;;
5472  esac
5473    for ac_prog in fgrep
5474   do
5475    for ac_exec_ext in '' $ac_executable_extensions; do
5476      ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5477      as_fn_executable_p "$ac_path_FGREP" || continue
5478# Check for GNU ac_path_FGREP and select it if it is found.
5479  # Check for GNU $ac_path_FGREP
5480case `"$ac_path_FGREP" --version 2>&1` in
5481*GNU*)
5482  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5483*)
5484  ac_count=0
5485  printf %s 0123456789 >"conftest.in"
5486  while :
5487  do
5488    cat "conftest.in" "conftest.in" >"conftest.tmp"
5489    mv "conftest.tmp" "conftest.in"
5490    cp "conftest.in" "conftest.nl"
5491    printf "%s\n" 'FGREP' >> "conftest.nl"
5492    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5493    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5494    as_fn_arith $ac_count + 1 && ac_count=$as_val
5495    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5496      # Best one so far, save it but keep looking for a better one
5497      ac_cv_path_FGREP="$ac_path_FGREP"
5498      ac_path_FGREP_max=$ac_count
5499    fi
5500    # 10*(2^10) chars as input seems more than enough
5501    test $ac_count -gt 10 && break
5502  done
5503  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5504esac
5505
5506      $ac_path_FGREP_found && break 3
5507    done
5508  done
5509  done
5510IFS=$as_save_IFS
5511  if test -z "$ac_cv_path_FGREP"; then
5512    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5513  fi
5514else
5515  ac_cv_path_FGREP=$FGREP
5516fi
5517
5518   fi
5519fi
5520{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5521printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5522 FGREP="$ac_cv_path_FGREP"
5523
5524
5525test -z "$GREP" && GREP=grep
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545# Check whether --with-gnu-ld was given.
5546if test ${with_gnu_ld+y}
5547then :
5548  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5549else $as_nop
5550  with_gnu_ld=no
5551fi
5552
5553ac_prog=ld
5554if test yes = "$GCC"; then
5555  # Check if gcc -print-prog-name=ld gives a path.
5556  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5557printf %s "checking for ld used by $CC... " >&6; }
5558  case $host in
5559  *-*-mingw*)
5560    # gcc leaves a trailing carriage return, which upsets mingw
5561    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5562  *)
5563    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5564  esac
5565  case $ac_prog in
5566    # Accept absolute paths.
5567    [\\/]* | ?:[\\/]*)
5568      re_direlt='/[^/][^/]*/\.\./'
5569      # Canonicalize the pathname of ld
5570      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5571      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5572	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5573      done
5574      test -z "$LD" && LD=$ac_prog
5575      ;;
5576  "")
5577    # If it fails, then pretend we aren't using GCC.
5578    ac_prog=ld
5579    ;;
5580  *)
5581    # If it is relative, then search for the first ld in PATH.
5582    with_gnu_ld=unknown
5583    ;;
5584  esac
5585elif test yes = "$with_gnu_ld"; then
5586  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5587printf %s "checking for GNU ld... " >&6; }
5588else
5589  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5590printf %s "checking for non-GNU ld... " >&6; }
5591fi
5592if test ${lt_cv_path_LD+y}
5593then :
5594  printf %s "(cached) " >&6
5595else $as_nop
5596  if test -z "$LD"; then
5597  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5598  for ac_dir in $PATH; do
5599    IFS=$lt_save_ifs
5600    test -z "$ac_dir" && ac_dir=.
5601    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5602      lt_cv_path_LD=$ac_dir/$ac_prog
5603      # Check to see if the program is GNU ld.  I'd rather use --version,
5604      # but apparently some variants of GNU ld only accept -v.
5605      # Break only if it was the GNU/non-GNU ld that we prefer.
5606      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5607      *GNU* | *'with BFD'*)
5608	test no != "$with_gnu_ld" && break
5609	;;
5610      *)
5611	test yes != "$with_gnu_ld" && break
5612	;;
5613      esac
5614    fi
5615  done
5616  IFS=$lt_save_ifs
5617else
5618  lt_cv_path_LD=$LD # Let the user override the test with a path.
5619fi
5620fi
5621
5622LD=$lt_cv_path_LD
5623if test -n "$LD"; then
5624  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5625printf "%s\n" "$LD" >&6; }
5626else
5627  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5628printf "%s\n" "no" >&6; }
5629fi
5630test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5631{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5632printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5633if test ${lt_cv_prog_gnu_ld+y}
5634then :
5635  printf %s "(cached) " >&6
5636else $as_nop
5637  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5638case `$LD -v 2>&1 </dev/null` in
5639*GNU* | *'with BFD'*)
5640  lt_cv_prog_gnu_ld=yes
5641  ;;
5642*)
5643  lt_cv_prog_gnu_ld=no
5644  ;;
5645esac
5646fi
5647{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5648printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5649with_gnu_ld=$lt_cv_prog_gnu_ld
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5660printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5661if test ${lt_cv_path_NM+y}
5662then :
5663  printf %s "(cached) " >&6
5664else $as_nop
5665  if test -n "$NM"; then
5666  # Let the user override the test.
5667  lt_cv_path_NM=$NM
5668else
5669  lt_nm_to_check=${ac_tool_prefix}nm
5670  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5671    lt_nm_to_check="$lt_nm_to_check nm"
5672  fi
5673  for lt_tmp_nm in $lt_nm_to_check; do
5674    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5675    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5676      IFS=$lt_save_ifs
5677      test -z "$ac_dir" && ac_dir=.
5678      tmp_nm=$ac_dir/$lt_tmp_nm
5679      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5680	# Check to see if the nm accepts a BSD-compat flag.
5681	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5682	#   nm: unknown option "B" ignored
5683	# Tru64's nm complains that /dev/null is an invalid object file
5684	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5685	case $build_os in
5686	mingw*) lt_bad_file=conftest.nm/nofile ;;
5687	*) lt_bad_file=/dev/null ;;
5688	esac
5689	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5690	*$lt_bad_file* | *'Invalid file or object type'*)
5691	  lt_cv_path_NM="$tmp_nm -B"
5692	  break 2
5693	  ;;
5694	*)
5695	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5696	  */dev/null*)
5697	    lt_cv_path_NM="$tmp_nm -p"
5698	    break 2
5699	    ;;
5700	  *)
5701	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5702	    continue # so that we can try to find one that supports BSD flags
5703	    ;;
5704	  esac
5705	  ;;
5706	esac
5707      fi
5708    done
5709    IFS=$lt_save_ifs
5710  done
5711  : ${lt_cv_path_NM=no}
5712fi
5713fi
5714{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5715printf "%s\n" "$lt_cv_path_NM" >&6; }
5716if test no != "$lt_cv_path_NM"; then
5717  NM=$lt_cv_path_NM
5718else
5719  # Didn't find any BSD compatible name lister, look for dumpbin.
5720  if test -n "$DUMPBIN"; then :
5721    # Let the user override the test.
5722  else
5723    if test -n "$ac_tool_prefix"; then
5724  for ac_prog in dumpbin "link -dump"
5725  do
5726    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5727set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5728{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5729printf %s "checking for $ac_word... " >&6; }
5730if test ${ac_cv_prog_DUMPBIN+y}
5731then :
5732  printf %s "(cached) " >&6
5733else $as_nop
5734  if test -n "$DUMPBIN"; then
5735  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5736else
5737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5738for as_dir in $PATH
5739do
5740  IFS=$as_save_IFS
5741  case $as_dir in #(((
5742    '') as_dir=./ ;;
5743    */) ;;
5744    *) as_dir=$as_dir/ ;;
5745  esac
5746    for ac_exec_ext in '' $ac_executable_extensions; do
5747  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5748    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5749    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5750    break 2
5751  fi
5752done
5753  done
5754IFS=$as_save_IFS
5755
5756fi
5757fi
5758DUMPBIN=$ac_cv_prog_DUMPBIN
5759if test -n "$DUMPBIN"; then
5760  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5761printf "%s\n" "$DUMPBIN" >&6; }
5762else
5763  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5764printf "%s\n" "no" >&6; }
5765fi
5766
5767
5768    test -n "$DUMPBIN" && break
5769  done
5770fi
5771if test -z "$DUMPBIN"; then
5772  ac_ct_DUMPBIN=$DUMPBIN
5773  for ac_prog in dumpbin "link -dump"
5774do
5775  # Extract the first word of "$ac_prog", so it can be a program name with args.
5776set dummy $ac_prog; ac_word=$2
5777{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5778printf %s "checking for $ac_word... " >&6; }
5779if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5780then :
5781  printf %s "(cached) " >&6
5782else $as_nop
5783  if test -n "$ac_ct_DUMPBIN"; then
5784  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5785else
5786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5787for as_dir in $PATH
5788do
5789  IFS=$as_save_IFS
5790  case $as_dir in #(((
5791    '') as_dir=./ ;;
5792    */) ;;
5793    *) as_dir=$as_dir/ ;;
5794  esac
5795    for ac_exec_ext in '' $ac_executable_extensions; do
5796  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5797    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5798    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5799    break 2
5800  fi
5801done
5802  done
5803IFS=$as_save_IFS
5804
5805fi
5806fi
5807ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5808if test -n "$ac_ct_DUMPBIN"; then
5809  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5810printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5811else
5812  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5813printf "%s\n" "no" >&6; }
5814fi
5815
5816
5817  test -n "$ac_ct_DUMPBIN" && break
5818done
5819
5820  if test "x$ac_ct_DUMPBIN" = x; then
5821    DUMPBIN=":"
5822  else
5823    case $cross_compiling:$ac_tool_warned in
5824yes:)
5825{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5826printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5827ac_tool_warned=yes ;;
5828esac
5829    DUMPBIN=$ac_ct_DUMPBIN
5830  fi
5831fi
5832
5833    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5834    *COFF*)
5835      DUMPBIN="$DUMPBIN -symbols -headers"
5836      ;;
5837    *)
5838      DUMPBIN=:
5839      ;;
5840    esac
5841  fi
5842
5843  if test : != "$DUMPBIN"; then
5844    NM=$DUMPBIN
5845  fi
5846fi
5847test -z "$NM" && NM=nm
5848
5849
5850
5851
5852
5853
5854{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5855printf %s "checking the name lister ($NM) interface... " >&6; }
5856if test ${lt_cv_nm_interface+y}
5857then :
5858  printf %s "(cached) " >&6
5859else $as_nop
5860  lt_cv_nm_interface="BSD nm"
5861  echo "int some_variable = 0;" > conftest.$ac_ext
5862  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5863  (eval "$ac_compile" 2>conftest.err)
5864  cat conftest.err >&5
5865  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5866  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5867  cat conftest.err >&5
5868  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5869  cat conftest.out >&5
5870  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5871    lt_cv_nm_interface="MS dumpbin"
5872  fi
5873  rm -f conftest*
5874fi
5875{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5876printf "%s\n" "$lt_cv_nm_interface" >&6; }
5877
5878{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5879printf %s "checking whether ln -s works... " >&6; }
5880LN_S=$as_ln_s
5881if test "$LN_S" = "ln -s"; then
5882  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5883printf "%s\n" "yes" >&6; }
5884else
5885  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5886printf "%s\n" "no, using $LN_S" >&6; }
5887fi
5888
5889# find the maximum length of command line arguments
5890{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5891printf %s "checking the maximum length of command line arguments... " >&6; }
5892if test ${lt_cv_sys_max_cmd_len+y}
5893then :
5894  printf %s "(cached) " >&6
5895else $as_nop
5896    i=0
5897  teststring=ABCD
5898
5899  case $build_os in
5900  msdosdjgpp*)
5901    # On DJGPP, this test can blow up pretty badly due to problems in libc
5902    # (any single argument exceeding 2000 bytes causes a buffer overrun
5903    # during glob expansion).  Even if it were fixed, the result of this
5904    # check would be larger than it should be.
5905    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5906    ;;
5907
5908  gnu*)
5909    # Under GNU Hurd, this test is not required because there is
5910    # no limit to the length of command line arguments.
5911    # Libtool will interpret -1 as no limit whatsoever
5912    lt_cv_sys_max_cmd_len=-1;
5913    ;;
5914
5915  cygwin* | mingw* | cegcc*)
5916    # On Win9x/ME, this test blows up -- it succeeds, but takes
5917    # about 5 minutes as the teststring grows exponentially.
5918    # Worse, since 9x/ME are not pre-emptively multitasking,
5919    # you end up with a "frozen" computer, even though with patience
5920    # the test eventually succeeds (with a max line length of 256k).
5921    # Instead, let's just punt: use the minimum linelength reported by
5922    # all of the supported platforms: 8192 (on NT/2K/XP).
5923    lt_cv_sys_max_cmd_len=8192;
5924    ;;
5925
5926  mint*)
5927    # On MiNT this can take a long time and run out of memory.
5928    lt_cv_sys_max_cmd_len=8192;
5929    ;;
5930
5931  amigaos*)
5932    # On AmigaOS with pdksh, this test takes hours, literally.
5933    # So we just punt and use a minimum line length of 8192.
5934    lt_cv_sys_max_cmd_len=8192;
5935    ;;
5936
5937  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5938    # This has been around since 386BSD, at least.  Likely further.
5939    if test -x /sbin/sysctl; then
5940      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5941    elif test -x /usr/sbin/sysctl; then
5942      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5943    else
5944      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5945    fi
5946    # And add a safety zone
5947    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5948    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5949    ;;
5950
5951  interix*)
5952    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5953    lt_cv_sys_max_cmd_len=196608
5954    ;;
5955
5956  os2*)
5957    # The test takes a long time on OS/2.
5958    lt_cv_sys_max_cmd_len=8192
5959    ;;
5960
5961  osf*)
5962    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5963    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5964    # nice to cause kernel panics so lets avoid the loop below.
5965    # First set a reasonable default.
5966    lt_cv_sys_max_cmd_len=16384
5967    #
5968    if test -x /sbin/sysconfig; then
5969      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5970        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5971      esac
5972    fi
5973    ;;
5974  sco3.2v5*)
5975    lt_cv_sys_max_cmd_len=102400
5976    ;;
5977  sysv5* | sco5v6* | sysv4.2uw2*)
5978    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5979    if test -n "$kargmax"; then
5980      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5981    else
5982      lt_cv_sys_max_cmd_len=32768
5983    fi
5984    ;;
5985  *)
5986    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5987    if test -n "$lt_cv_sys_max_cmd_len" && \
5988       test undefined != "$lt_cv_sys_max_cmd_len"; then
5989      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5990      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5991    else
5992      # Make teststring a little bigger before we do anything with it.
5993      # a 1K string should be a reasonable start.
5994      for i in 1 2 3 4 5 6 7 8; do
5995        teststring=$teststring$teststring
5996      done
5997      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5998      # If test is not a shell built-in, we'll probably end up computing a
5999      # maximum length that is only half of the actual maximum length, but
6000      # we can't tell.
6001      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6002	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6003	      test 17 != "$i" # 1/2 MB should be enough
6004      do
6005        i=`expr $i + 1`
6006        teststring=$teststring$teststring
6007      done
6008      # Only check the string length outside the loop.
6009      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6010      teststring=
6011      # Add a significant safety factor because C++ compilers can tack on
6012      # massive amounts of additional arguments before passing them to the
6013      # linker.  It appears as though 1/2 is a usable value.
6014      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6015    fi
6016    ;;
6017  esac
6018
6019fi
6020
6021if test -n "$lt_cv_sys_max_cmd_len"; then
6022  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6023printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
6024else
6025  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
6026printf "%s\n" "none" >&6; }
6027fi
6028max_cmd_len=$lt_cv_sys_max_cmd_len
6029
6030
6031
6032
6033
6034
6035: ${CP="cp -f"}
6036: ${MV="mv -f"}
6037: ${RM="rm -f"}
6038
6039if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6040  lt_unset=unset
6041else
6042  lt_unset=false
6043fi
6044
6045
6046
6047
6048
6049# test EBCDIC or ASCII
6050case `echo X|tr X '\101'` in
6051 A) # ASCII based system
6052    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6053  lt_SP2NL='tr \040 \012'
6054  lt_NL2SP='tr \015\012 \040\040'
6055  ;;
6056 *) # EBCDIC based system
6057  lt_SP2NL='tr \100 \n'
6058  lt_NL2SP='tr \r\n \100\100'
6059  ;;
6060esac
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6071printf %s "checking how to convert $build file names to $host format... " >&6; }
6072if test ${lt_cv_to_host_file_cmd+y}
6073then :
6074  printf %s "(cached) " >&6
6075else $as_nop
6076  case $host in
6077  *-*-mingw* )
6078    case $build in
6079      *-*-mingw* ) # actually msys
6080        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6081        ;;
6082      *-*-cygwin* )
6083        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6084        ;;
6085      * ) # otherwise, assume *nix
6086        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6087        ;;
6088    esac
6089    ;;
6090  *-*-cygwin* )
6091    case $build in
6092      *-*-mingw* ) # actually msys
6093        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6094        ;;
6095      *-*-cygwin* )
6096        lt_cv_to_host_file_cmd=func_convert_file_noop
6097        ;;
6098      * ) # otherwise, assume *nix
6099        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6100        ;;
6101    esac
6102    ;;
6103  * ) # unhandled hosts (and "normal" native builds)
6104    lt_cv_to_host_file_cmd=func_convert_file_noop
6105    ;;
6106esac
6107
6108fi
6109
6110to_host_file_cmd=$lt_cv_to_host_file_cmd
6111{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6112printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
6113
6114
6115
6116
6117
6118{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6119printf %s "checking how to convert $build file names to toolchain format... " >&6; }
6120if test ${lt_cv_to_tool_file_cmd+y}
6121then :
6122  printf %s "(cached) " >&6
6123else $as_nop
6124  #assume ordinary cross tools, or native build.
6125lt_cv_to_tool_file_cmd=func_convert_file_noop
6126case $host in
6127  *-*-mingw* )
6128    case $build in
6129      *-*-mingw* ) # actually msys
6130        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6131        ;;
6132    esac
6133    ;;
6134esac
6135
6136fi
6137
6138to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6139{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6140printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6141
6142
6143
6144
6145
6146{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6147printf %s "checking for $LD option to reload object files... " >&6; }
6148if test ${lt_cv_ld_reload_flag+y}
6149then :
6150  printf %s "(cached) " >&6
6151else $as_nop
6152  lt_cv_ld_reload_flag='-r'
6153fi
6154{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6155printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6156reload_flag=$lt_cv_ld_reload_flag
6157case $reload_flag in
6158"" | " "*) ;;
6159*) reload_flag=" $reload_flag" ;;
6160esac
6161reload_cmds='$LD$reload_flag -o $output$reload_objs'
6162case $host_os in
6163  cygwin* | mingw* | pw32* | cegcc*)
6164    if test yes != "$GCC"; then
6165      reload_cmds=false
6166    fi
6167    ;;
6168  darwin*)
6169    if test yes = "$GCC"; then
6170      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6171    else
6172      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6173    fi
6174    ;;
6175esac
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185if test -n "$ac_tool_prefix"; then
6186  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6187set dummy ${ac_tool_prefix}objdump; ac_word=$2
6188{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6189printf %s "checking for $ac_word... " >&6; }
6190if test ${ac_cv_prog_OBJDUMP+y}
6191then :
6192  printf %s "(cached) " >&6
6193else $as_nop
6194  if test -n "$OBJDUMP"; then
6195  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6196else
6197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6198for as_dir in $PATH
6199do
6200  IFS=$as_save_IFS
6201  case $as_dir in #(((
6202    '') as_dir=./ ;;
6203    */) ;;
6204    *) as_dir=$as_dir/ ;;
6205  esac
6206    for ac_exec_ext in '' $ac_executable_extensions; do
6207  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6208    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6209    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6210    break 2
6211  fi
6212done
6213  done
6214IFS=$as_save_IFS
6215
6216fi
6217fi
6218OBJDUMP=$ac_cv_prog_OBJDUMP
6219if test -n "$OBJDUMP"; then
6220  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6221printf "%s\n" "$OBJDUMP" >&6; }
6222else
6223  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6224printf "%s\n" "no" >&6; }
6225fi
6226
6227
6228fi
6229if test -z "$ac_cv_prog_OBJDUMP"; then
6230  ac_ct_OBJDUMP=$OBJDUMP
6231  # Extract the first word of "objdump", so it can be a program name with args.
6232set dummy objdump; ac_word=$2
6233{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6234printf %s "checking for $ac_word... " >&6; }
6235if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6236then :
6237  printf %s "(cached) " >&6
6238else $as_nop
6239  if test -n "$ac_ct_OBJDUMP"; then
6240  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6241else
6242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6243for as_dir in $PATH
6244do
6245  IFS=$as_save_IFS
6246  case $as_dir in #(((
6247    '') as_dir=./ ;;
6248    */) ;;
6249    *) as_dir=$as_dir/ ;;
6250  esac
6251    for ac_exec_ext in '' $ac_executable_extensions; do
6252  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6253    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6254    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6255    break 2
6256  fi
6257done
6258  done
6259IFS=$as_save_IFS
6260
6261fi
6262fi
6263ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6264if test -n "$ac_ct_OBJDUMP"; then
6265  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6266printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6267else
6268  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6269printf "%s\n" "no" >&6; }
6270fi
6271
6272  if test "x$ac_ct_OBJDUMP" = x; then
6273    OBJDUMP="false"
6274  else
6275    case $cross_compiling:$ac_tool_warned in
6276yes:)
6277{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6278printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6279ac_tool_warned=yes ;;
6280esac
6281    OBJDUMP=$ac_ct_OBJDUMP
6282  fi
6283else
6284  OBJDUMP="$ac_cv_prog_OBJDUMP"
6285fi
6286
6287test -z "$OBJDUMP" && OBJDUMP=objdump
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6298printf %s "checking how to recognize dependent libraries... " >&6; }
6299if test ${lt_cv_deplibs_check_method+y}
6300then :
6301  printf %s "(cached) " >&6
6302else $as_nop
6303  lt_cv_file_magic_cmd='$MAGIC_CMD'
6304lt_cv_file_magic_test_file=
6305lt_cv_deplibs_check_method='unknown'
6306# Need to set the preceding variable on all platforms that support
6307# interlibrary dependencies.
6308# 'none' -- dependencies not supported.
6309# 'unknown' -- same as none, but documents that we really don't know.
6310# 'pass_all' -- all dependencies passed with no checks.
6311# 'test_compile' -- check by making test program.
6312# 'file_magic [[regex]]' -- check by looking for files in library path
6313# that responds to the $file_magic_cmd with a given extended regex.
6314# If you have 'file' or equivalent on your system and you're not sure
6315# whether 'pass_all' will *always* work, you probably want this one.
6316
6317case $host_os in
6318aix[4-9]*)
6319  lt_cv_deplibs_check_method=pass_all
6320  ;;
6321
6322beos*)
6323  lt_cv_deplibs_check_method=pass_all
6324  ;;
6325
6326bsdi[45]*)
6327  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6328  lt_cv_file_magic_cmd='/usr/bin/file -L'
6329  lt_cv_file_magic_test_file=/shlib/libc.so
6330  ;;
6331
6332cygwin*)
6333  # func_win32_libid is a shell function defined in ltmain.sh
6334  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6335  lt_cv_file_magic_cmd='func_win32_libid'
6336  ;;
6337
6338mingw* | pw32*)
6339  # Base MSYS/MinGW do not provide the 'file' command needed by
6340  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6341  # unless we find 'file', for example because we are cross-compiling.
6342  if ( file / ) >/dev/null 2>&1; then
6343    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6344    lt_cv_file_magic_cmd='func_win32_libid'
6345  else
6346    # Keep this pattern in sync with the one in func_win32_libid.
6347    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6348    lt_cv_file_magic_cmd='$OBJDUMP -f'
6349  fi
6350  ;;
6351
6352cegcc*)
6353  # use the weaker test based on 'objdump'. See mingw*.
6354  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6355  lt_cv_file_magic_cmd='$OBJDUMP -f'
6356  ;;
6357
6358darwin* | rhapsody*)
6359  lt_cv_deplibs_check_method=pass_all
6360  ;;
6361
6362freebsd* | dragonfly*)
6363  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6364    case $host_cpu in
6365    i*86 )
6366      # Not sure whether the presence of OpenBSD here was a mistake.
6367      # Let's accept both of them until this is cleared up.
6368      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6369      lt_cv_file_magic_cmd=/usr/bin/file
6370      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6371      ;;
6372    esac
6373  else
6374    lt_cv_deplibs_check_method=pass_all
6375  fi
6376  ;;
6377
6378haiku*)
6379  lt_cv_deplibs_check_method=pass_all
6380  ;;
6381
6382hpux10.20* | hpux11*)
6383  lt_cv_file_magic_cmd=/usr/bin/file
6384  case $host_cpu in
6385  ia64*)
6386    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6387    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6388    ;;
6389  hppa*64*)
6390    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]'
6391    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6392    ;;
6393  *)
6394    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6395    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6396    ;;
6397  esac
6398  ;;
6399
6400interix[3-9]*)
6401  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6402  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6403  ;;
6404
6405irix5* | irix6* | nonstopux*)
6406  case $LD in
6407  *-32|*"-32 ") libmagic=32-bit;;
6408  *-n32|*"-n32 ") libmagic=N32;;
6409  *-64|*"-64 ") libmagic=64-bit;;
6410  *) libmagic=never-match;;
6411  esac
6412  lt_cv_deplibs_check_method=pass_all
6413  ;;
6414
6415# This must be glibc/ELF.
6416linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6417  lt_cv_deplibs_check_method=pass_all
6418  ;;
6419
6420netbsd*)
6421  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6422    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6423  else
6424    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6425  fi
6426  ;;
6427
6428newos6*)
6429  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6430  lt_cv_file_magic_cmd=/usr/bin/file
6431  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6432  ;;
6433
6434*nto* | *qnx*)
6435  lt_cv_deplibs_check_method=pass_all
6436  ;;
6437
6438openbsd* | bitrig*)
6439  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6440    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6441  else
6442    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6443  fi
6444  ;;
6445
6446osf3* | osf4* | osf5*)
6447  lt_cv_deplibs_check_method=pass_all
6448  ;;
6449
6450rdos*)
6451  lt_cv_deplibs_check_method=pass_all
6452  ;;
6453
6454solaris*)
6455  lt_cv_deplibs_check_method=pass_all
6456  ;;
6457
6458sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6459  lt_cv_deplibs_check_method=pass_all
6460  ;;
6461
6462sysv4 | sysv4.3*)
6463  case $host_vendor in
6464  motorola)
6465    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]'
6466    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6467    ;;
6468  ncr)
6469    lt_cv_deplibs_check_method=pass_all
6470    ;;
6471  sequent)
6472    lt_cv_file_magic_cmd='/bin/file'
6473    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6474    ;;
6475  sni)
6476    lt_cv_file_magic_cmd='/bin/file'
6477    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6478    lt_cv_file_magic_test_file=/lib/libc.so
6479    ;;
6480  siemens)
6481    lt_cv_deplibs_check_method=pass_all
6482    ;;
6483  pc)
6484    lt_cv_deplibs_check_method=pass_all
6485    ;;
6486  esac
6487  ;;
6488
6489tpf*)
6490  lt_cv_deplibs_check_method=pass_all
6491  ;;
6492os2*)
6493  lt_cv_deplibs_check_method=pass_all
6494  ;;
6495esac
6496
6497fi
6498{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6499printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6500
6501file_magic_glob=
6502want_nocaseglob=no
6503if test "$build" = "$host"; then
6504  case $host_os in
6505  mingw* | pw32*)
6506    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6507      want_nocaseglob=yes
6508    else
6509      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6510    fi
6511    ;;
6512  esac
6513fi
6514
6515file_magic_cmd=$lt_cv_file_magic_cmd
6516deplibs_check_method=$lt_cv_deplibs_check_method
6517test -z "$deplibs_check_method" && deplibs_check_method=unknown
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540if test -n "$ac_tool_prefix"; then
6541  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6542set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6543{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6544printf %s "checking for $ac_word... " >&6; }
6545if test ${ac_cv_prog_DLLTOOL+y}
6546then :
6547  printf %s "(cached) " >&6
6548else $as_nop
6549  if test -n "$DLLTOOL"; then
6550  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6551else
6552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6553for as_dir in $PATH
6554do
6555  IFS=$as_save_IFS
6556  case $as_dir in #(((
6557    '') as_dir=./ ;;
6558    */) ;;
6559    *) as_dir=$as_dir/ ;;
6560  esac
6561    for ac_exec_ext in '' $ac_executable_extensions; do
6562  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6563    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6564    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6565    break 2
6566  fi
6567done
6568  done
6569IFS=$as_save_IFS
6570
6571fi
6572fi
6573DLLTOOL=$ac_cv_prog_DLLTOOL
6574if test -n "$DLLTOOL"; then
6575  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6576printf "%s\n" "$DLLTOOL" >&6; }
6577else
6578  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6579printf "%s\n" "no" >&6; }
6580fi
6581
6582
6583fi
6584if test -z "$ac_cv_prog_DLLTOOL"; then
6585  ac_ct_DLLTOOL=$DLLTOOL
6586  # Extract the first word of "dlltool", so it can be a program name with args.
6587set dummy dlltool; ac_word=$2
6588{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6589printf %s "checking for $ac_word... " >&6; }
6590if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6591then :
6592  printf %s "(cached) " >&6
6593else $as_nop
6594  if test -n "$ac_ct_DLLTOOL"; then
6595  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6596else
6597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6598for as_dir in $PATH
6599do
6600  IFS=$as_save_IFS
6601  case $as_dir in #(((
6602    '') as_dir=./ ;;
6603    */) ;;
6604    *) as_dir=$as_dir/ ;;
6605  esac
6606    for ac_exec_ext in '' $ac_executable_extensions; do
6607  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6608    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6609    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6610    break 2
6611  fi
6612done
6613  done
6614IFS=$as_save_IFS
6615
6616fi
6617fi
6618ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6619if test -n "$ac_ct_DLLTOOL"; then
6620  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6621printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6622else
6623  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6624printf "%s\n" "no" >&6; }
6625fi
6626
6627  if test "x$ac_ct_DLLTOOL" = x; then
6628    DLLTOOL="false"
6629  else
6630    case $cross_compiling:$ac_tool_warned in
6631yes:)
6632{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6633printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6634ac_tool_warned=yes ;;
6635esac
6636    DLLTOOL=$ac_ct_DLLTOOL
6637  fi
6638else
6639  DLLTOOL="$ac_cv_prog_DLLTOOL"
6640fi
6641
6642test -z "$DLLTOOL" && DLLTOOL=dlltool
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6654printf %s "checking how to associate runtime and link libraries... " >&6; }
6655if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6656then :
6657  printf %s "(cached) " >&6
6658else $as_nop
6659  lt_cv_sharedlib_from_linklib_cmd='unknown'
6660
6661case $host_os in
6662cygwin* | mingw* | pw32* | cegcc*)
6663  # two different shell functions defined in ltmain.sh;
6664  # decide which one to use based on capabilities of $DLLTOOL
6665  case `$DLLTOOL --help 2>&1` in
6666  *--identify-strict*)
6667    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6668    ;;
6669  *)
6670    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6671    ;;
6672  esac
6673  ;;
6674*)
6675  # fallback: assume linklib IS sharedlib
6676  lt_cv_sharedlib_from_linklib_cmd=$ECHO
6677  ;;
6678esac
6679
6680fi
6681{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6682printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6683sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6684test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6685
6686
6687
6688
6689
6690
6691
6692if test -n "$ac_tool_prefix"; then
6693  for ac_prog in ar
6694  do
6695    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6696set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6697{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6698printf %s "checking for $ac_word... " >&6; }
6699if test ${ac_cv_prog_AR+y}
6700then :
6701  printf %s "(cached) " >&6
6702else $as_nop
6703  if test -n "$AR"; then
6704  ac_cv_prog_AR="$AR" # Let the user override the test.
6705else
6706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6707for as_dir in $PATH
6708do
6709  IFS=$as_save_IFS
6710  case $as_dir in #(((
6711    '') as_dir=./ ;;
6712    */) ;;
6713    *) as_dir=$as_dir/ ;;
6714  esac
6715    for ac_exec_ext in '' $ac_executable_extensions; do
6716  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6717    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6718    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6719    break 2
6720  fi
6721done
6722  done
6723IFS=$as_save_IFS
6724
6725fi
6726fi
6727AR=$ac_cv_prog_AR
6728if test -n "$AR"; then
6729  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6730printf "%s\n" "$AR" >&6; }
6731else
6732  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6733printf "%s\n" "no" >&6; }
6734fi
6735
6736
6737    test -n "$AR" && break
6738  done
6739fi
6740if test -z "$AR"; then
6741  ac_ct_AR=$AR
6742  for ac_prog in ar
6743do
6744  # Extract the first word of "$ac_prog", so it can be a program name with args.
6745set dummy $ac_prog; ac_word=$2
6746{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6747printf %s "checking for $ac_word... " >&6; }
6748if test ${ac_cv_prog_ac_ct_AR+y}
6749then :
6750  printf %s "(cached) " >&6
6751else $as_nop
6752  if test -n "$ac_ct_AR"; then
6753  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6754else
6755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6756for as_dir in $PATH
6757do
6758  IFS=$as_save_IFS
6759  case $as_dir in #(((
6760    '') as_dir=./ ;;
6761    */) ;;
6762    *) as_dir=$as_dir/ ;;
6763  esac
6764    for ac_exec_ext in '' $ac_executable_extensions; do
6765  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6766    ac_cv_prog_ac_ct_AR="$ac_prog"
6767    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6768    break 2
6769  fi
6770done
6771  done
6772IFS=$as_save_IFS
6773
6774fi
6775fi
6776ac_ct_AR=$ac_cv_prog_ac_ct_AR
6777if test -n "$ac_ct_AR"; then
6778  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6779printf "%s\n" "$ac_ct_AR" >&6; }
6780else
6781  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6782printf "%s\n" "no" >&6; }
6783fi
6784
6785
6786  test -n "$ac_ct_AR" && break
6787done
6788
6789  if test "x$ac_ct_AR" = x; then
6790    AR="false"
6791  else
6792    case $cross_compiling:$ac_tool_warned in
6793yes:)
6794{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6795printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6796ac_tool_warned=yes ;;
6797esac
6798    AR=$ac_ct_AR
6799  fi
6800fi
6801
6802: ${AR=ar}
6803: ${AR_FLAGS=cru}
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6816printf %s "checking for archiver @FILE support... " >&6; }
6817if test ${lt_cv_ar_at_file+y}
6818then :
6819  printf %s "(cached) " >&6
6820else $as_nop
6821  lt_cv_ar_at_file=no
6822   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6823/* end confdefs.h.  */
6824
6825int
6826main (void)
6827{
6828
6829  ;
6830  return 0;
6831}
6832_ACEOF
6833if ac_fn_c_try_compile "$LINENO"
6834then :
6835  echo conftest.$ac_objext > conftest.lst
6836      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6837      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6838  (eval $lt_ar_try) 2>&5
6839  ac_status=$?
6840  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6841  test $ac_status = 0; }
6842      if test 0 -eq "$ac_status"; then
6843	# Ensure the archiver fails upon bogus file names.
6844	rm -f conftest.$ac_objext libconftest.a
6845	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6846  (eval $lt_ar_try) 2>&5
6847  ac_status=$?
6848  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6849  test $ac_status = 0; }
6850	if test 0 -ne "$ac_status"; then
6851          lt_cv_ar_at_file=@
6852        fi
6853      fi
6854      rm -f conftest.* libconftest.a
6855
6856fi
6857rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6858
6859fi
6860{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6861printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6862
6863if test no = "$lt_cv_ar_at_file"; then
6864  archiver_list_spec=
6865else
6866  archiver_list_spec=$lt_cv_ar_at_file
6867fi
6868
6869
6870
6871
6872
6873
6874
6875if test -n "$ac_tool_prefix"; then
6876  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6877set dummy ${ac_tool_prefix}strip; ac_word=$2
6878{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6879printf %s "checking for $ac_word... " >&6; }
6880if test ${ac_cv_prog_STRIP+y}
6881then :
6882  printf %s "(cached) " >&6
6883else $as_nop
6884  if test -n "$STRIP"; then
6885  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6886else
6887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6888for as_dir in $PATH
6889do
6890  IFS=$as_save_IFS
6891  case $as_dir in #(((
6892    '') as_dir=./ ;;
6893    */) ;;
6894    *) as_dir=$as_dir/ ;;
6895  esac
6896    for ac_exec_ext in '' $ac_executable_extensions; do
6897  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6898    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6899    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6900    break 2
6901  fi
6902done
6903  done
6904IFS=$as_save_IFS
6905
6906fi
6907fi
6908STRIP=$ac_cv_prog_STRIP
6909if test -n "$STRIP"; then
6910  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6911printf "%s\n" "$STRIP" >&6; }
6912else
6913  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6914printf "%s\n" "no" >&6; }
6915fi
6916
6917
6918fi
6919if test -z "$ac_cv_prog_STRIP"; then
6920  ac_ct_STRIP=$STRIP
6921  # Extract the first word of "strip", so it can be a program name with args.
6922set dummy strip; ac_word=$2
6923{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6924printf %s "checking for $ac_word... " >&6; }
6925if test ${ac_cv_prog_ac_ct_STRIP+y}
6926then :
6927  printf %s "(cached) " >&6
6928else $as_nop
6929  if test -n "$ac_ct_STRIP"; then
6930  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6931else
6932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6933for as_dir in $PATH
6934do
6935  IFS=$as_save_IFS
6936  case $as_dir in #(((
6937    '') as_dir=./ ;;
6938    */) ;;
6939    *) as_dir=$as_dir/ ;;
6940  esac
6941    for ac_exec_ext in '' $ac_executable_extensions; do
6942  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6943    ac_cv_prog_ac_ct_STRIP="strip"
6944    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6945    break 2
6946  fi
6947done
6948  done
6949IFS=$as_save_IFS
6950
6951fi
6952fi
6953ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6954if test -n "$ac_ct_STRIP"; then
6955  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6956printf "%s\n" "$ac_ct_STRIP" >&6; }
6957else
6958  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6959printf "%s\n" "no" >&6; }
6960fi
6961
6962  if test "x$ac_ct_STRIP" = x; then
6963    STRIP=":"
6964  else
6965    case $cross_compiling:$ac_tool_warned in
6966yes:)
6967{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6968printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6969ac_tool_warned=yes ;;
6970esac
6971    STRIP=$ac_ct_STRIP
6972  fi
6973else
6974  STRIP="$ac_cv_prog_STRIP"
6975fi
6976
6977test -z "$STRIP" && STRIP=:
6978
6979
6980
6981
6982
6983
6984if test -n "$ac_tool_prefix"; then
6985  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6986set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6987{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6988printf %s "checking for $ac_word... " >&6; }
6989if test ${ac_cv_prog_RANLIB+y}
6990then :
6991  printf %s "(cached) " >&6
6992else $as_nop
6993  if test -n "$RANLIB"; then
6994  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6995else
6996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6997for as_dir in $PATH
6998do
6999  IFS=$as_save_IFS
7000  case $as_dir in #(((
7001    '') as_dir=./ ;;
7002    */) ;;
7003    *) as_dir=$as_dir/ ;;
7004  esac
7005    for ac_exec_ext in '' $ac_executable_extensions; do
7006  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7007    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7008    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7009    break 2
7010  fi
7011done
7012  done
7013IFS=$as_save_IFS
7014
7015fi
7016fi
7017RANLIB=$ac_cv_prog_RANLIB
7018if test -n "$RANLIB"; then
7019  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7020printf "%s\n" "$RANLIB" >&6; }
7021else
7022  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7023printf "%s\n" "no" >&6; }
7024fi
7025
7026
7027fi
7028if test -z "$ac_cv_prog_RANLIB"; then
7029  ac_ct_RANLIB=$RANLIB
7030  # Extract the first word of "ranlib", so it can be a program name with args.
7031set dummy ranlib; ac_word=$2
7032{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7033printf %s "checking for $ac_word... " >&6; }
7034if test ${ac_cv_prog_ac_ct_RANLIB+y}
7035then :
7036  printf %s "(cached) " >&6
7037else $as_nop
7038  if test -n "$ac_ct_RANLIB"; then
7039  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7040else
7041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7042for as_dir in $PATH
7043do
7044  IFS=$as_save_IFS
7045  case $as_dir in #(((
7046    '') as_dir=./ ;;
7047    */) ;;
7048    *) as_dir=$as_dir/ ;;
7049  esac
7050    for ac_exec_ext in '' $ac_executable_extensions; do
7051  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7052    ac_cv_prog_ac_ct_RANLIB="ranlib"
7053    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7054    break 2
7055  fi
7056done
7057  done
7058IFS=$as_save_IFS
7059
7060fi
7061fi
7062ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7063if test -n "$ac_ct_RANLIB"; then
7064  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7065printf "%s\n" "$ac_ct_RANLIB" >&6; }
7066else
7067  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7068printf "%s\n" "no" >&6; }
7069fi
7070
7071  if test "x$ac_ct_RANLIB" = x; then
7072    RANLIB=":"
7073  else
7074    case $cross_compiling:$ac_tool_warned in
7075yes:)
7076{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7077printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7078ac_tool_warned=yes ;;
7079esac
7080    RANLIB=$ac_ct_RANLIB
7081  fi
7082else
7083  RANLIB="$ac_cv_prog_RANLIB"
7084fi
7085
7086test -z "$RANLIB" && RANLIB=:
7087
7088
7089
7090
7091
7092
7093# Determine commands to create old-style static archives.
7094old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7095old_postinstall_cmds='chmod 644 $oldlib'
7096old_postuninstall_cmds=
7097
7098if test -n "$RANLIB"; then
7099  case $host_os in
7100  bitrig* | openbsd*)
7101    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7102    ;;
7103  *)
7104    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7105    ;;
7106  esac
7107  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7108fi
7109
7110case $host_os in
7111  darwin*)
7112    lock_old_archive_extraction=yes ;;
7113  *)
7114    lock_old_archive_extraction=no ;;
7115esac
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155# If no C compiler was specified, use CC.
7156LTCC=${LTCC-"$CC"}
7157
7158# If no C compiler flags were specified, use CFLAGS.
7159LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7160
7161# Allow CC to be a program name with arguments.
7162compiler=$CC
7163
7164
7165# Check for command to grab the raw symbol name followed by C symbol from nm.
7166{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7167printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7168if test ${lt_cv_sys_global_symbol_pipe+y}
7169then :
7170  printf %s "(cached) " >&6
7171else $as_nop
7172
7173# These are sane defaults that work on at least a few old systems.
7174# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7175
7176# Character class describing NM global symbol codes.
7177symcode='[BCDEGRST]'
7178
7179# Regexp to match symbols that can be accessed directly from C.
7180sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7181
7182# Define system-specific variables.
7183case $host_os in
7184aix*)
7185  symcode='[BCDT]'
7186  ;;
7187cygwin* | mingw* | pw32* | cegcc*)
7188  symcode='[ABCDGISTW]'
7189  ;;
7190hpux*)
7191  if test ia64 = "$host_cpu"; then
7192    symcode='[ABCDEGRST]'
7193  fi
7194  ;;
7195irix* | nonstopux*)
7196  symcode='[BCDEGRST]'
7197  ;;
7198osf*)
7199  symcode='[BCDEGQRST]'
7200  ;;
7201solaris*)
7202  symcode='[BDRT]'
7203  ;;
7204sco3.2v5*)
7205  symcode='[DT]'
7206  ;;
7207sysv4.2uw2*)
7208  symcode='[DT]'
7209  ;;
7210sysv5* | sco5v6* | unixware* | OpenUNIX*)
7211  symcode='[ABDT]'
7212  ;;
7213sysv4)
7214  symcode='[DFNSTU]'
7215  ;;
7216esac
7217
7218# If we're using GNU nm, then use its standard symbol codes.
7219case `$NM -V 2>&1` in
7220*GNU* | *'with BFD'*)
7221  symcode='[ABCDGIRSTW]' ;;
7222esac
7223
7224if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7225  # Gets list of data symbols to import.
7226  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7227  # Adjust the below global symbol transforms to fixup imported variables.
7228  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7229  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
7230  lt_c_name_lib_hook="\
7231  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
7232  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
7233else
7234  # Disable hooks by default.
7235  lt_cv_sys_global_symbol_to_import=
7236  lt_cdecl_hook=
7237  lt_c_name_hook=
7238  lt_c_name_lib_hook=
7239fi
7240
7241# Transform an extracted symbol line into a proper C declaration.
7242# Some systems (esp. on ia64) link data and code symbols differently,
7243# so use this general approach.
7244lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7245$lt_cdecl_hook\
7246" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7247" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7248
7249# Transform an extracted symbol line into symbol name and symbol address
7250lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7251$lt_c_name_hook\
7252" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7253" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
7254
7255# Transform an extracted symbol line into symbol name with lib prefix and
7256# symbol address.
7257lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7258$lt_c_name_lib_hook\
7259" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7260" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
7261" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
7262
7263# Handle CRLF in mingw tool chain
7264opt_cr=
7265case $build_os in
7266mingw*)
7267  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7268  ;;
7269esac
7270
7271# Try without a prefix underscore, then with it.
7272for ac_symprfx in "" "_"; do
7273
7274  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7275  symxfrm="\\1 $ac_symprfx\\2 \\2"
7276
7277  # Write the raw and C identifiers.
7278  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7279    # Fake it for dumpbin and say T for any non-static function,
7280    # D for any global variable and I for any imported variable.
7281    # Also find C++ and __fastcall symbols from MSVC++,
7282    # which start with @ or ?.
7283    lt_cv_sys_global_symbol_pipe="$AWK '"\
7284"     {last_section=section; section=\$ 3};"\
7285"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7286"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7287"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7288"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7289"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7290"     \$ 0!~/External *\|/{next};"\
7291"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7292"     {if(hide[section]) next};"\
7293"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7294"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7295"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7296"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7297"     ' prfx=^$ac_symprfx"
7298  else
7299    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7300  fi
7301  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7302
7303  # Check to see that the pipe works correctly.
7304  pipe_works=no
7305
7306  rm -f conftest*
7307  cat > conftest.$ac_ext <<_LT_EOF
7308#ifdef __cplusplus
7309extern "C" {
7310#endif
7311char nm_test_var;
7312void nm_test_func(void);
7313void nm_test_func(void){}
7314#ifdef __cplusplus
7315}
7316#endif
7317int main(){nm_test_var='a';nm_test_func();return(0);}
7318_LT_EOF
7319
7320  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7321  (eval $ac_compile) 2>&5
7322  ac_status=$?
7323  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7324  test $ac_status = 0; }; then
7325    # Now try to grab the symbols.
7326    nlist=conftest.nm
7327    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7328  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7329  ac_status=$?
7330  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7331  test $ac_status = 0; } && test -s "$nlist"; then
7332      # Try sorting and uniquifying the output.
7333      if sort "$nlist" | uniq > "$nlist"T; then
7334	mv -f "$nlist"T "$nlist"
7335      else
7336	rm -f "$nlist"T
7337      fi
7338
7339      # Make sure that we snagged all the symbols we need.
7340      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7341	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7342	  cat <<_LT_EOF > conftest.$ac_ext
7343/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7344#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7345/* DATA imports from DLLs on WIN32 can't be const, because runtime
7346   relocations are performed -- see ld's documentation on pseudo-relocs.  */
7347# define LT_DLSYM_CONST
7348#elif defined __osf__
7349/* This system does not cope well with relocations in const data.  */
7350# define LT_DLSYM_CONST
7351#else
7352# define LT_DLSYM_CONST const
7353#endif
7354
7355#ifdef __cplusplus
7356extern "C" {
7357#endif
7358
7359_LT_EOF
7360	  # Now generate the symbol file.
7361	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7362
7363	  cat <<_LT_EOF >> conftest.$ac_ext
7364
7365/* The mapping between symbol names and symbols.  */
7366LT_DLSYM_CONST struct {
7367  const char *name;
7368  void       *address;
7369}
7370lt__PROGRAM__LTX_preloaded_symbols[] =
7371{
7372  { "@PROGRAM@", (void *) 0 },
7373_LT_EOF
7374	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7375	  cat <<\_LT_EOF >> conftest.$ac_ext
7376  {0, (void *) 0}
7377};
7378
7379/* This works around a problem in FreeBSD linker */
7380#ifdef FREEBSD_WORKAROUND
7381static const void *lt_preloaded_setup() {
7382  return lt__PROGRAM__LTX_preloaded_symbols;
7383}
7384#endif
7385
7386#ifdef __cplusplus
7387}
7388#endif
7389_LT_EOF
7390	  # Now try linking the two files.
7391	  mv conftest.$ac_objext conftstm.$ac_objext
7392	  lt_globsym_save_LIBS=$LIBS
7393	  lt_globsym_save_CFLAGS=$CFLAGS
7394	  LIBS=conftstm.$ac_objext
7395	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7396	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7397  (eval $ac_link) 2>&5
7398  ac_status=$?
7399  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7400  test $ac_status = 0; } && test -s conftest$ac_exeext; then
7401	    pipe_works=yes
7402	  fi
7403	  LIBS=$lt_globsym_save_LIBS
7404	  CFLAGS=$lt_globsym_save_CFLAGS
7405	else
7406	  echo "cannot find nm_test_func in $nlist" >&5
7407	fi
7408      else
7409	echo "cannot find nm_test_var in $nlist" >&5
7410      fi
7411    else
7412      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7413    fi
7414  else
7415    echo "$progname: failed program was:" >&5
7416    cat conftest.$ac_ext >&5
7417  fi
7418  rm -rf conftest* conftst*
7419
7420  # Do not use the global_symbol_pipe unless it works.
7421  if test yes = "$pipe_works"; then
7422    break
7423  else
7424    lt_cv_sys_global_symbol_pipe=
7425  fi
7426done
7427
7428fi
7429
7430if test -z "$lt_cv_sys_global_symbol_pipe"; then
7431  lt_cv_sys_global_symbol_to_cdecl=
7432fi
7433if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7434  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7435printf "%s\n" "failed" >&6; }
7436else
7437  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7438printf "%s\n" "ok" >&6; }
7439fi
7440
7441# Response file support.
7442if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7443  nm_file_list_spec='@'
7444elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7445  nm_file_list_spec='@'
7446fi
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7485printf %s "checking for sysroot... " >&6; }
7486
7487# Check whether --with-sysroot was given.
7488if test ${with_sysroot+y}
7489then :
7490  withval=$with_sysroot;
7491else $as_nop
7492  with_sysroot=no
7493fi
7494
7495
7496lt_sysroot=
7497case $with_sysroot in #(
7498 yes)
7499   if test yes = "$GCC"; then
7500     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7501   fi
7502   ;; #(
7503 /*)
7504   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7505   ;; #(
7506 no|'')
7507   ;; #(
7508 *)
7509   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7510printf "%s\n" "$with_sysroot" >&6; }
7511   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7512   ;;
7513esac
7514
7515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7516printf "%s\n" "${lt_sysroot:-no}" >&6; }
7517
7518
7519
7520
7521
7522{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7523printf %s "checking for a working dd... " >&6; }
7524if test ${ac_cv_path_lt_DD+y}
7525then :
7526  printf %s "(cached) " >&6
7527else $as_nop
7528  printf 0123456789abcdef0123456789abcdef >conftest.i
7529cat conftest.i conftest.i >conftest2.i
7530: ${lt_DD:=$DD}
7531if test -z "$lt_DD"; then
7532  ac_path_lt_DD_found=false
7533  # Loop through the user's path and test for each of PROGNAME-LIST
7534  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7535for as_dir in $PATH
7536do
7537  IFS=$as_save_IFS
7538  case $as_dir in #(((
7539    '') as_dir=./ ;;
7540    */) ;;
7541    *) as_dir=$as_dir/ ;;
7542  esac
7543    for ac_prog in dd
7544   do
7545    for ac_exec_ext in '' $ac_executable_extensions; do
7546      ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7547      as_fn_executable_p "$ac_path_lt_DD" || continue
7548if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7549  cmp -s conftest.i conftest.out \
7550  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7551fi
7552      $ac_path_lt_DD_found && break 3
7553    done
7554  done
7555  done
7556IFS=$as_save_IFS
7557  if test -z "$ac_cv_path_lt_DD"; then
7558    :
7559  fi
7560else
7561  ac_cv_path_lt_DD=$lt_DD
7562fi
7563
7564rm -f conftest.i conftest2.i conftest.out
7565fi
7566{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7567printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7568
7569
7570{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7571printf %s "checking how to truncate binary pipes... " >&6; }
7572if test ${lt_cv_truncate_bin+y}
7573then :
7574  printf %s "(cached) " >&6
7575else $as_nop
7576  printf 0123456789abcdef0123456789abcdef >conftest.i
7577cat conftest.i conftest.i >conftest2.i
7578lt_cv_truncate_bin=
7579if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7580  cmp -s conftest.i conftest.out \
7581  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7582fi
7583rm -f conftest.i conftest2.i conftest.out
7584test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7585fi
7586{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7587printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7588
7589
7590
7591
7592
7593
7594
7595# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7596func_cc_basename ()
7597{
7598    for cc_temp in $*""; do
7599      case $cc_temp in
7600        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7601        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7602        \-*) ;;
7603        *) break;;
7604      esac
7605    done
7606    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7607}
7608
7609# Check whether --enable-libtool-lock was given.
7610if test ${enable_libtool_lock+y}
7611then :
7612  enableval=$enable_libtool_lock;
7613fi
7614
7615test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7616
7617# Some flags need to be propagated to the compiler or linker for good
7618# libtool support.
7619case $host in
7620ia64-*-hpux*)
7621  # Find out what ABI is being produced by ac_compile, and set mode
7622  # options accordingly.
7623  echo 'int i;' > conftest.$ac_ext
7624  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7625  (eval $ac_compile) 2>&5
7626  ac_status=$?
7627  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7628  test $ac_status = 0; }; then
7629    case `/usr/bin/file conftest.$ac_objext` in
7630      *ELF-32*)
7631	HPUX_IA64_MODE=32
7632	;;
7633      *ELF-64*)
7634	HPUX_IA64_MODE=64
7635	;;
7636    esac
7637  fi
7638  rm -rf conftest*
7639  ;;
7640*-*-irix6*)
7641  # Find out what ABI is being produced by ac_compile, and set linker
7642  # options accordingly.
7643  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7644  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7645  (eval $ac_compile) 2>&5
7646  ac_status=$?
7647  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7648  test $ac_status = 0; }; then
7649    if test yes = "$lt_cv_prog_gnu_ld"; then
7650      case `/usr/bin/file conftest.$ac_objext` in
7651	*32-bit*)
7652	  LD="${LD-ld} -melf32bsmip"
7653	  ;;
7654	*N32*)
7655	  LD="${LD-ld} -melf32bmipn32"
7656	  ;;
7657	*64-bit*)
7658	  LD="${LD-ld} -melf64bmip"
7659	;;
7660      esac
7661    else
7662      case `/usr/bin/file conftest.$ac_objext` in
7663	*32-bit*)
7664	  LD="${LD-ld} -32"
7665	  ;;
7666	*N32*)
7667	  LD="${LD-ld} -n32"
7668	  ;;
7669	*64-bit*)
7670	  LD="${LD-ld} -64"
7671	  ;;
7672      esac
7673    fi
7674  fi
7675  rm -rf conftest*
7676  ;;
7677
7678mips64*-*linux*)
7679  # Find out what ABI is being produced by ac_compile, and set linker
7680  # options accordingly.
7681  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7682  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7683  (eval $ac_compile) 2>&5
7684  ac_status=$?
7685  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7686  test $ac_status = 0; }; then
7687    emul=elf
7688    case `/usr/bin/file conftest.$ac_objext` in
7689      *32-bit*)
7690	emul="${emul}32"
7691	;;
7692      *64-bit*)
7693	emul="${emul}64"
7694	;;
7695    esac
7696    case `/usr/bin/file conftest.$ac_objext` in
7697      *MSB*)
7698	emul="${emul}btsmip"
7699	;;
7700      *LSB*)
7701	emul="${emul}ltsmip"
7702	;;
7703    esac
7704    case `/usr/bin/file conftest.$ac_objext` in
7705      *N32*)
7706	emul="${emul}n32"
7707	;;
7708    esac
7709    LD="${LD-ld} -m $emul"
7710  fi
7711  rm -rf conftest*
7712  ;;
7713
7714x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7715s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7716  # Find out what ABI is being produced by ac_compile, and set linker
7717  # options accordingly.  Note that the listed cases only cover the
7718  # situations where additional linker options are needed (such as when
7719  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7720  # vice versa); the common cases where no linker options are needed do
7721  # not appear in the list.
7722  echo 'int i;' > conftest.$ac_ext
7723  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7724  (eval $ac_compile) 2>&5
7725  ac_status=$?
7726  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7727  test $ac_status = 0; }; then
7728    case `/usr/bin/file conftest.o` in
7729      *32-bit*)
7730	case $host in
7731	  x86_64-*kfreebsd*-gnu)
7732	    LD="${LD-ld} -m elf_i386_fbsd"
7733	    ;;
7734	  x86_64-*linux*)
7735	    case `/usr/bin/file conftest.o` in
7736	      *x86-64*)
7737		LD="${LD-ld} -m elf32_x86_64"
7738		;;
7739	      *)
7740		LD="${LD-ld} -m elf_i386"
7741		;;
7742	    esac
7743	    ;;
7744	  powerpc64le-*linux*)
7745	    LD="${LD-ld} -m elf32lppclinux"
7746	    ;;
7747	  powerpc64-*linux*)
7748	    LD="${LD-ld} -m elf32ppclinux"
7749	    ;;
7750	  s390x-*linux*)
7751	    LD="${LD-ld} -m elf_s390"
7752	    ;;
7753	  sparc64-*linux*)
7754	    LD="${LD-ld} -m elf32_sparc"
7755	    ;;
7756	esac
7757	;;
7758      *64-bit*)
7759	case $host in
7760	  x86_64-*kfreebsd*-gnu)
7761	    LD="${LD-ld} -m elf_x86_64_fbsd"
7762	    ;;
7763	  x86_64-*linux*)
7764	    LD="${LD-ld} -m elf_x86_64"
7765	    ;;
7766	  powerpcle-*linux*)
7767	    LD="${LD-ld} -m elf64lppc"
7768	    ;;
7769	  powerpc-*linux*)
7770	    LD="${LD-ld} -m elf64ppc"
7771	    ;;
7772	  s390*-*linux*|s390*-*tpf*)
7773	    LD="${LD-ld} -m elf64_s390"
7774	    ;;
7775	  sparc*-*linux*)
7776	    LD="${LD-ld} -m elf64_sparc"
7777	    ;;
7778	esac
7779	;;
7780    esac
7781  fi
7782  rm -rf conftest*
7783  ;;
7784
7785*-*-sco3.2v5*)
7786  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7787  SAVE_CFLAGS=$CFLAGS
7788  CFLAGS="$CFLAGS -belf"
7789  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7790printf %s "checking whether the C compiler needs -belf... " >&6; }
7791if test ${lt_cv_cc_needs_belf+y}
7792then :
7793  printf %s "(cached) " >&6
7794else $as_nop
7795  ac_ext=c
7796ac_cpp='$CPP $CPPFLAGS'
7797ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7798ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7799ac_compiler_gnu=$ac_cv_c_compiler_gnu
7800
7801     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7802/* end confdefs.h.  */
7803
7804int
7805main (void)
7806{
7807
7808  ;
7809  return 0;
7810}
7811_ACEOF
7812if ac_fn_c_try_link "$LINENO"
7813then :
7814  lt_cv_cc_needs_belf=yes
7815else $as_nop
7816  lt_cv_cc_needs_belf=no
7817fi
7818rm -f core conftest.err conftest.$ac_objext conftest.beam \
7819    conftest$ac_exeext conftest.$ac_ext
7820     ac_ext=c
7821ac_cpp='$CPP $CPPFLAGS'
7822ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7823ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7824ac_compiler_gnu=$ac_cv_c_compiler_gnu
7825
7826fi
7827{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7828printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7829  if test yes != "$lt_cv_cc_needs_belf"; then
7830    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7831    CFLAGS=$SAVE_CFLAGS
7832  fi
7833  ;;
7834*-*solaris*)
7835  # Find out what ABI is being produced by ac_compile, and set linker
7836  # options accordingly.
7837  echo 'int i;' > conftest.$ac_ext
7838  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7839  (eval $ac_compile) 2>&5
7840  ac_status=$?
7841  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7842  test $ac_status = 0; }; then
7843    case `/usr/bin/file conftest.o` in
7844    *64-bit*)
7845      SOLARIS_ISA_BITS=64
7846      case $lt_cv_prog_gnu_ld in
7847      yes*)
7848        case $host in
7849        i?86-*-solaris*|x86_64-*-solaris*)
7850          LD="${LD-ld} -m elf_x86_64"
7851          ;;
7852        sparc*-*-solaris*)
7853          LD="${LD-ld} -m elf64_sparc"
7854          ;;
7855        esac
7856        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7857        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7858          LD=${LD-ld}_sol2
7859        fi
7860        ;;
7861      *)
7862	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7863	  LD="${LD-ld} -64"
7864	fi
7865	;;
7866      esac
7867      ;;
7868    *32-bit*)
7869      SOLARIS_ISA_BITS=32
7870      ;;
7871    esac
7872  fi
7873  rm -rf conftest*
7874  ;;
7875esac
7876
7877need_locks=$enable_libtool_lock
7878
7879if test -n "$ac_tool_prefix"; then
7880  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7881set dummy ${ac_tool_prefix}mt; ac_word=$2
7882{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7883printf %s "checking for $ac_word... " >&6; }
7884if test ${ac_cv_prog_MANIFEST_TOOL+y}
7885then :
7886  printf %s "(cached) " >&6
7887else $as_nop
7888  if test -n "$MANIFEST_TOOL"; then
7889  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7890else
7891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7892for as_dir in $PATH
7893do
7894  IFS=$as_save_IFS
7895  case $as_dir in #(((
7896    '') as_dir=./ ;;
7897    */) ;;
7898    *) as_dir=$as_dir/ ;;
7899  esac
7900    for ac_exec_ext in '' $ac_executable_extensions; do
7901  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7902    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7903    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7904    break 2
7905  fi
7906done
7907  done
7908IFS=$as_save_IFS
7909
7910fi
7911fi
7912MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7913if test -n "$MANIFEST_TOOL"; then
7914  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7915printf "%s\n" "$MANIFEST_TOOL" >&6; }
7916else
7917  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7918printf "%s\n" "no" >&6; }
7919fi
7920
7921
7922fi
7923if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7924  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7925  # Extract the first word of "mt", so it can be a program name with args.
7926set dummy mt; ac_word=$2
7927{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7928printf %s "checking for $ac_word... " >&6; }
7929if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7930then :
7931  printf %s "(cached) " >&6
7932else $as_nop
7933  if test -n "$ac_ct_MANIFEST_TOOL"; then
7934  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7935else
7936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7937for as_dir in $PATH
7938do
7939  IFS=$as_save_IFS
7940  case $as_dir in #(((
7941    '') as_dir=./ ;;
7942    */) ;;
7943    *) as_dir=$as_dir/ ;;
7944  esac
7945    for ac_exec_ext in '' $ac_executable_extensions; do
7946  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7947    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7948    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7949    break 2
7950  fi
7951done
7952  done
7953IFS=$as_save_IFS
7954
7955fi
7956fi
7957ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7958if test -n "$ac_ct_MANIFEST_TOOL"; then
7959  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7960printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7961else
7962  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7963printf "%s\n" "no" >&6; }
7964fi
7965
7966  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7967    MANIFEST_TOOL=":"
7968  else
7969    case $cross_compiling:$ac_tool_warned in
7970yes:)
7971{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7972printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7973ac_tool_warned=yes ;;
7974esac
7975    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7976  fi
7977else
7978  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7979fi
7980
7981test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7982{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7983printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7984if test ${lt_cv_path_mainfest_tool+y}
7985then :
7986  printf %s "(cached) " >&6
7987else $as_nop
7988  lt_cv_path_mainfest_tool=no
7989  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7990  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7991  cat conftest.err >&5
7992  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7993    lt_cv_path_mainfest_tool=yes
7994  fi
7995  rm -f conftest*
7996fi
7997{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7998printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
7999if test yes != "$lt_cv_path_mainfest_tool"; then
8000  MANIFEST_TOOL=:
8001fi
8002
8003
8004
8005
8006
8007
8008  case $host_os in
8009    rhapsody* | darwin*)
8010    if test -n "$ac_tool_prefix"; then
8011  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8012set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8013{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8014printf %s "checking for $ac_word... " >&6; }
8015if test ${ac_cv_prog_DSYMUTIL+y}
8016then :
8017  printf %s "(cached) " >&6
8018else $as_nop
8019  if test -n "$DSYMUTIL"; then
8020  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8021else
8022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8023for as_dir in $PATH
8024do
8025  IFS=$as_save_IFS
8026  case $as_dir in #(((
8027    '') as_dir=./ ;;
8028    */) ;;
8029    *) as_dir=$as_dir/ ;;
8030  esac
8031    for ac_exec_ext in '' $ac_executable_extensions; do
8032  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8033    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8034    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8035    break 2
8036  fi
8037done
8038  done
8039IFS=$as_save_IFS
8040
8041fi
8042fi
8043DSYMUTIL=$ac_cv_prog_DSYMUTIL
8044if test -n "$DSYMUTIL"; then
8045  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8046printf "%s\n" "$DSYMUTIL" >&6; }
8047else
8048  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8049printf "%s\n" "no" >&6; }
8050fi
8051
8052
8053fi
8054if test -z "$ac_cv_prog_DSYMUTIL"; then
8055  ac_ct_DSYMUTIL=$DSYMUTIL
8056  # Extract the first word of "dsymutil", so it can be a program name with args.
8057set dummy dsymutil; ac_word=$2
8058{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8059printf %s "checking for $ac_word... " >&6; }
8060if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8061then :
8062  printf %s "(cached) " >&6
8063else $as_nop
8064  if test -n "$ac_ct_DSYMUTIL"; then
8065  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8066else
8067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8068for as_dir in $PATH
8069do
8070  IFS=$as_save_IFS
8071  case $as_dir in #(((
8072    '') as_dir=./ ;;
8073    */) ;;
8074    *) as_dir=$as_dir/ ;;
8075  esac
8076    for ac_exec_ext in '' $ac_executable_extensions; do
8077  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8078    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8079    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8080    break 2
8081  fi
8082done
8083  done
8084IFS=$as_save_IFS
8085
8086fi
8087fi
8088ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8089if test -n "$ac_ct_DSYMUTIL"; then
8090  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8091printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8092else
8093  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8094printf "%s\n" "no" >&6; }
8095fi
8096
8097  if test "x$ac_ct_DSYMUTIL" = x; then
8098    DSYMUTIL=":"
8099  else
8100    case $cross_compiling:$ac_tool_warned in
8101yes:)
8102{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8103printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8104ac_tool_warned=yes ;;
8105esac
8106    DSYMUTIL=$ac_ct_DSYMUTIL
8107  fi
8108else
8109  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8110fi
8111
8112    if test -n "$ac_tool_prefix"; then
8113  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8114set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8115{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8116printf %s "checking for $ac_word... " >&6; }
8117if test ${ac_cv_prog_NMEDIT+y}
8118then :
8119  printf %s "(cached) " >&6
8120else $as_nop
8121  if test -n "$NMEDIT"; then
8122  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8123else
8124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8125for as_dir in $PATH
8126do
8127  IFS=$as_save_IFS
8128  case $as_dir in #(((
8129    '') as_dir=./ ;;
8130    */) ;;
8131    *) as_dir=$as_dir/ ;;
8132  esac
8133    for ac_exec_ext in '' $ac_executable_extensions; do
8134  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8135    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8136    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8137    break 2
8138  fi
8139done
8140  done
8141IFS=$as_save_IFS
8142
8143fi
8144fi
8145NMEDIT=$ac_cv_prog_NMEDIT
8146if test -n "$NMEDIT"; then
8147  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8148printf "%s\n" "$NMEDIT" >&6; }
8149else
8150  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8151printf "%s\n" "no" >&6; }
8152fi
8153
8154
8155fi
8156if test -z "$ac_cv_prog_NMEDIT"; then
8157  ac_ct_NMEDIT=$NMEDIT
8158  # Extract the first word of "nmedit", so it can be a program name with args.
8159set dummy nmedit; ac_word=$2
8160{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8161printf %s "checking for $ac_word... " >&6; }
8162if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8163then :
8164  printf %s "(cached) " >&6
8165else $as_nop
8166  if test -n "$ac_ct_NMEDIT"; then
8167  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8168else
8169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8170for as_dir in $PATH
8171do
8172  IFS=$as_save_IFS
8173  case $as_dir in #(((
8174    '') as_dir=./ ;;
8175    */) ;;
8176    *) as_dir=$as_dir/ ;;
8177  esac
8178    for ac_exec_ext in '' $ac_executable_extensions; do
8179  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8180    ac_cv_prog_ac_ct_NMEDIT="nmedit"
8181    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8182    break 2
8183  fi
8184done
8185  done
8186IFS=$as_save_IFS
8187
8188fi
8189fi
8190ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8191if test -n "$ac_ct_NMEDIT"; then
8192  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8193printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8194else
8195  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8196printf "%s\n" "no" >&6; }
8197fi
8198
8199  if test "x$ac_ct_NMEDIT" = x; then
8200    NMEDIT=":"
8201  else
8202    case $cross_compiling:$ac_tool_warned in
8203yes:)
8204{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8205printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8206ac_tool_warned=yes ;;
8207esac
8208    NMEDIT=$ac_ct_NMEDIT
8209  fi
8210else
8211  NMEDIT="$ac_cv_prog_NMEDIT"
8212fi
8213
8214    if test -n "$ac_tool_prefix"; then
8215  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8216set dummy ${ac_tool_prefix}lipo; ac_word=$2
8217{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8218printf %s "checking for $ac_word... " >&6; }
8219if test ${ac_cv_prog_LIPO+y}
8220then :
8221  printf %s "(cached) " >&6
8222else $as_nop
8223  if test -n "$LIPO"; then
8224  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8225else
8226as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8227for as_dir in $PATH
8228do
8229  IFS=$as_save_IFS
8230  case $as_dir in #(((
8231    '') as_dir=./ ;;
8232    */) ;;
8233    *) as_dir=$as_dir/ ;;
8234  esac
8235    for ac_exec_ext in '' $ac_executable_extensions; do
8236  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8237    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8238    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8239    break 2
8240  fi
8241done
8242  done
8243IFS=$as_save_IFS
8244
8245fi
8246fi
8247LIPO=$ac_cv_prog_LIPO
8248if test -n "$LIPO"; then
8249  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8250printf "%s\n" "$LIPO" >&6; }
8251else
8252  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8253printf "%s\n" "no" >&6; }
8254fi
8255
8256
8257fi
8258if test -z "$ac_cv_prog_LIPO"; then
8259  ac_ct_LIPO=$LIPO
8260  # Extract the first word of "lipo", so it can be a program name with args.
8261set dummy lipo; ac_word=$2
8262{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8263printf %s "checking for $ac_word... " >&6; }
8264if test ${ac_cv_prog_ac_ct_LIPO+y}
8265then :
8266  printf %s "(cached) " >&6
8267else $as_nop
8268  if test -n "$ac_ct_LIPO"; then
8269  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8270else
8271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8272for as_dir in $PATH
8273do
8274  IFS=$as_save_IFS
8275  case $as_dir in #(((
8276    '') as_dir=./ ;;
8277    */) ;;
8278    *) as_dir=$as_dir/ ;;
8279  esac
8280    for ac_exec_ext in '' $ac_executable_extensions; do
8281  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8282    ac_cv_prog_ac_ct_LIPO="lipo"
8283    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8284    break 2
8285  fi
8286done
8287  done
8288IFS=$as_save_IFS
8289
8290fi
8291fi
8292ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8293if test -n "$ac_ct_LIPO"; then
8294  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8295printf "%s\n" "$ac_ct_LIPO" >&6; }
8296else
8297  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8298printf "%s\n" "no" >&6; }
8299fi
8300
8301  if test "x$ac_ct_LIPO" = x; then
8302    LIPO=":"
8303  else
8304    case $cross_compiling:$ac_tool_warned in
8305yes:)
8306{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8307printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8308ac_tool_warned=yes ;;
8309esac
8310    LIPO=$ac_ct_LIPO
8311  fi
8312else
8313  LIPO="$ac_cv_prog_LIPO"
8314fi
8315
8316    if test -n "$ac_tool_prefix"; then
8317  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8318set dummy ${ac_tool_prefix}otool; ac_word=$2
8319{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8320printf %s "checking for $ac_word... " >&6; }
8321if test ${ac_cv_prog_OTOOL+y}
8322then :
8323  printf %s "(cached) " >&6
8324else $as_nop
8325  if test -n "$OTOOL"; then
8326  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8327else
8328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8329for as_dir in $PATH
8330do
8331  IFS=$as_save_IFS
8332  case $as_dir in #(((
8333    '') as_dir=./ ;;
8334    */) ;;
8335    *) as_dir=$as_dir/ ;;
8336  esac
8337    for ac_exec_ext in '' $ac_executable_extensions; do
8338  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8339    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8340    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8341    break 2
8342  fi
8343done
8344  done
8345IFS=$as_save_IFS
8346
8347fi
8348fi
8349OTOOL=$ac_cv_prog_OTOOL
8350if test -n "$OTOOL"; then
8351  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8352printf "%s\n" "$OTOOL" >&6; }
8353else
8354  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8355printf "%s\n" "no" >&6; }
8356fi
8357
8358
8359fi
8360if test -z "$ac_cv_prog_OTOOL"; then
8361  ac_ct_OTOOL=$OTOOL
8362  # Extract the first word of "otool", so it can be a program name with args.
8363set dummy otool; ac_word=$2
8364{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8365printf %s "checking for $ac_word... " >&6; }
8366if test ${ac_cv_prog_ac_ct_OTOOL+y}
8367then :
8368  printf %s "(cached) " >&6
8369else $as_nop
8370  if test -n "$ac_ct_OTOOL"; then
8371  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8372else
8373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8374for as_dir in $PATH
8375do
8376  IFS=$as_save_IFS
8377  case $as_dir in #(((
8378    '') as_dir=./ ;;
8379    */) ;;
8380    *) as_dir=$as_dir/ ;;
8381  esac
8382    for ac_exec_ext in '' $ac_executable_extensions; do
8383  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8384    ac_cv_prog_ac_ct_OTOOL="otool"
8385    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8386    break 2
8387  fi
8388done
8389  done
8390IFS=$as_save_IFS
8391
8392fi
8393fi
8394ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8395if test -n "$ac_ct_OTOOL"; then
8396  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8397printf "%s\n" "$ac_ct_OTOOL" >&6; }
8398else
8399  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8400printf "%s\n" "no" >&6; }
8401fi
8402
8403  if test "x$ac_ct_OTOOL" = x; then
8404    OTOOL=":"
8405  else
8406    case $cross_compiling:$ac_tool_warned in
8407yes:)
8408{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8409printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8410ac_tool_warned=yes ;;
8411esac
8412    OTOOL=$ac_ct_OTOOL
8413  fi
8414else
8415  OTOOL="$ac_cv_prog_OTOOL"
8416fi
8417
8418    if test -n "$ac_tool_prefix"; then
8419  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8420set dummy ${ac_tool_prefix}otool64; ac_word=$2
8421{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8422printf %s "checking for $ac_word... " >&6; }
8423if test ${ac_cv_prog_OTOOL64+y}
8424then :
8425  printf %s "(cached) " >&6
8426else $as_nop
8427  if test -n "$OTOOL64"; then
8428  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8429else
8430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8431for as_dir in $PATH
8432do
8433  IFS=$as_save_IFS
8434  case $as_dir in #(((
8435    '') as_dir=./ ;;
8436    */) ;;
8437    *) as_dir=$as_dir/ ;;
8438  esac
8439    for ac_exec_ext in '' $ac_executable_extensions; do
8440  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8441    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8442    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8443    break 2
8444  fi
8445done
8446  done
8447IFS=$as_save_IFS
8448
8449fi
8450fi
8451OTOOL64=$ac_cv_prog_OTOOL64
8452if test -n "$OTOOL64"; then
8453  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8454printf "%s\n" "$OTOOL64" >&6; }
8455else
8456  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8457printf "%s\n" "no" >&6; }
8458fi
8459
8460
8461fi
8462if test -z "$ac_cv_prog_OTOOL64"; then
8463  ac_ct_OTOOL64=$OTOOL64
8464  # Extract the first word of "otool64", so it can be a program name with args.
8465set dummy otool64; ac_word=$2
8466{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8467printf %s "checking for $ac_word... " >&6; }
8468if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8469then :
8470  printf %s "(cached) " >&6
8471else $as_nop
8472  if test -n "$ac_ct_OTOOL64"; then
8473  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8474else
8475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8476for as_dir in $PATH
8477do
8478  IFS=$as_save_IFS
8479  case $as_dir in #(((
8480    '') as_dir=./ ;;
8481    */) ;;
8482    *) as_dir=$as_dir/ ;;
8483  esac
8484    for ac_exec_ext in '' $ac_executable_extensions; do
8485  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8486    ac_cv_prog_ac_ct_OTOOL64="otool64"
8487    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8488    break 2
8489  fi
8490done
8491  done
8492IFS=$as_save_IFS
8493
8494fi
8495fi
8496ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8497if test -n "$ac_ct_OTOOL64"; then
8498  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8499printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8500else
8501  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8502printf "%s\n" "no" >&6; }
8503fi
8504
8505  if test "x$ac_ct_OTOOL64" = x; then
8506    OTOOL64=":"
8507  else
8508    case $cross_compiling:$ac_tool_warned in
8509yes:)
8510{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8511printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8512ac_tool_warned=yes ;;
8513esac
8514    OTOOL64=$ac_ct_OTOOL64
8515  fi
8516else
8517  OTOOL64="$ac_cv_prog_OTOOL64"
8518fi
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8547printf %s "checking for -single_module linker flag... " >&6; }
8548if test ${lt_cv_apple_cc_single_mod+y}
8549then :
8550  printf %s "(cached) " >&6
8551else $as_nop
8552  lt_cv_apple_cc_single_mod=no
8553      if test -z "$LT_MULTI_MODULE"; then
8554	# By default we will add the -single_module flag. You can override
8555	# by either setting the environment variable LT_MULTI_MODULE
8556	# non-empty at configure time, or by adding -multi_module to the
8557	# link flags.
8558	rm -rf libconftest.dylib*
8559	echo "int foo(void){return 1;}" > conftest.c
8560	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8561-dynamiclib -Wl,-single_module conftest.c" >&5
8562	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8563	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8564        _lt_result=$?
8565	# If there is a non-empty error log, and "single_module"
8566	# appears in it, assume the flag caused a linker warning
8567        if test -s conftest.err && $GREP single_module conftest.err; then
8568	  cat conftest.err >&5
8569	# Otherwise, if the output was created with a 0 exit code from
8570	# the compiler, it worked.
8571	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8572	  lt_cv_apple_cc_single_mod=yes
8573	else
8574	  cat conftest.err >&5
8575	fi
8576	rm -rf libconftest.dylib*
8577	rm -f conftest.*
8578      fi
8579fi
8580{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8581printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8582
8583    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8584printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8585if test ${lt_cv_ld_exported_symbols_list+y}
8586then :
8587  printf %s "(cached) " >&6
8588else $as_nop
8589  lt_cv_ld_exported_symbols_list=no
8590      save_LDFLAGS=$LDFLAGS
8591      echo "_main" > conftest.sym
8592      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8593      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8594/* end confdefs.h.  */
8595
8596int
8597main (void)
8598{
8599
8600  ;
8601  return 0;
8602}
8603_ACEOF
8604if ac_fn_c_try_link "$LINENO"
8605then :
8606  lt_cv_ld_exported_symbols_list=yes
8607else $as_nop
8608  lt_cv_ld_exported_symbols_list=no
8609fi
8610rm -f core conftest.err conftest.$ac_objext conftest.beam \
8611    conftest$ac_exeext conftest.$ac_ext
8612	LDFLAGS=$save_LDFLAGS
8613
8614fi
8615{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8616printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8617
8618    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8619printf %s "checking for -force_load linker flag... " >&6; }
8620if test ${lt_cv_ld_force_load+y}
8621then :
8622  printf %s "(cached) " >&6
8623else $as_nop
8624  lt_cv_ld_force_load=no
8625      cat > conftest.c << _LT_EOF
8626int forced_loaded() { return 2;}
8627_LT_EOF
8628      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8629      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8630      echo "$AR cru libconftest.a conftest.o" >&5
8631      $AR cru libconftest.a conftest.o 2>&5
8632      echo "$RANLIB libconftest.a" >&5
8633      $RANLIB libconftest.a 2>&5
8634      cat > conftest.c << _LT_EOF
8635int main() { return 0;}
8636_LT_EOF
8637      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8638      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8639      _lt_result=$?
8640      if test -s conftest.err && $GREP force_load conftest.err; then
8641	cat conftest.err >&5
8642      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8643	lt_cv_ld_force_load=yes
8644      else
8645	cat conftest.err >&5
8646      fi
8647        rm -f conftest.err libconftest.a conftest conftest.c
8648        rm -rf conftest.dSYM
8649
8650fi
8651{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8652printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8653    case $host_os in
8654    rhapsody* | darwin1.[012])
8655      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8656    darwin1.*)
8657      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8658    darwin*) # darwin 5.x on
8659      # if running on 10.5 or later, the deployment target defaults
8660      # to the OS version, if on x86, and 10.4, the deployment
8661      # target defaults to 10.4. Don't you love it?
8662      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8663	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8664	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8665	10.[012][,.]*)
8666	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8667	10.*)
8668	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8669      esac
8670    ;;
8671  esac
8672    if test yes = "$lt_cv_apple_cc_single_mod"; then
8673      _lt_dar_single_mod='$single_module'
8674    fi
8675    if test yes = "$lt_cv_ld_exported_symbols_list"; then
8676      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8677    else
8678      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8679    fi
8680    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8681      _lt_dsymutil='~$DSYMUTIL $lib || :'
8682    else
8683      _lt_dsymutil=
8684    fi
8685    ;;
8686  esac
8687
8688# func_munge_path_list VARIABLE PATH
8689# -----------------------------------
8690# VARIABLE is name of variable containing _space_ separated list of
8691# directories to be munged by the contents of PATH, which is string
8692# having a format:
8693# "DIR[:DIR]:"
8694#       string "DIR[ DIR]" will be prepended to VARIABLE
8695# ":DIR[:DIR]"
8696#       string "DIR[ DIR]" will be appended to VARIABLE
8697# "DIRP[:DIRP]::[DIRA:]DIRA"
8698#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8699#       "DIRA[ DIRA]" will be appended to VARIABLE
8700# "DIR[:DIR]"
8701#       VARIABLE will be replaced by "DIR[ DIR]"
8702func_munge_path_list ()
8703{
8704    case x$2 in
8705    x)
8706        ;;
8707    *:)
8708        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8709        ;;
8710    x:*)
8711        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8712        ;;
8713    *::*)
8714        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8715        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8716        ;;
8717    *)
8718        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8719        ;;
8720    esac
8721}
8722
8723ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8724"
8725if test "x$ac_cv_header_dlfcn_h" = xyes
8726then :
8727  printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8728
8729fi
8730
8731
8732
8733
8734
8735# Set options
8736
8737
8738
8739        enable_dlopen=no
8740
8741
8742  enable_win32_dll=no
8743
8744
8745            # Check whether --enable-shared was given.
8746if test ${enable_shared+y}
8747then :
8748  enableval=$enable_shared; p=${PACKAGE-default}
8749    case $enableval in
8750    yes) enable_shared=yes ;;
8751    no) enable_shared=no ;;
8752    *)
8753      enable_shared=no
8754      # Look at the argument we got.  We use all the common list separators.
8755      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8756      for pkg in $enableval; do
8757	IFS=$lt_save_ifs
8758	if test "X$pkg" = "X$p"; then
8759	  enable_shared=yes
8760	fi
8761      done
8762      IFS=$lt_save_ifs
8763      ;;
8764    esac
8765else $as_nop
8766  enable_shared=yes
8767fi
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777  # Check whether --enable-static was given.
8778if test ${enable_static+y}
8779then :
8780  enableval=$enable_static; p=${PACKAGE-default}
8781    case $enableval in
8782    yes) enable_static=yes ;;
8783    no) enable_static=no ;;
8784    *)
8785     enable_static=no
8786      # Look at the argument we got.  We use all the common list separators.
8787      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8788      for pkg in $enableval; do
8789	IFS=$lt_save_ifs
8790	if test "X$pkg" = "X$p"; then
8791	  enable_static=yes
8792	fi
8793      done
8794      IFS=$lt_save_ifs
8795      ;;
8796    esac
8797else $as_nop
8798  enable_static=yes
8799fi
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810# Check whether --with-pic was given.
8811if test ${with_pic+y}
8812then :
8813  withval=$with_pic; lt_p=${PACKAGE-default}
8814    case $withval in
8815    yes|no) pic_mode=$withval ;;
8816    *)
8817      pic_mode=default
8818      # Look at the argument we got.  We use all the common list separators.
8819      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8820      for lt_pkg in $withval; do
8821	IFS=$lt_save_ifs
8822	if test "X$lt_pkg" = "X$lt_p"; then
8823	  pic_mode=yes
8824	fi
8825      done
8826      IFS=$lt_save_ifs
8827      ;;
8828    esac
8829else $as_nop
8830  pic_mode=default
8831fi
8832
8833
8834
8835
8836
8837
8838
8839
8840  # Check whether --enable-fast-install was given.
8841if test ${enable_fast_install+y}
8842then :
8843  enableval=$enable_fast_install; p=${PACKAGE-default}
8844    case $enableval in
8845    yes) enable_fast_install=yes ;;
8846    no) enable_fast_install=no ;;
8847    *)
8848      enable_fast_install=no
8849      # Look at the argument we got.  We use all the common list separators.
8850      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8851      for pkg in $enableval; do
8852	IFS=$lt_save_ifs
8853	if test "X$pkg" = "X$p"; then
8854	  enable_fast_install=yes
8855	fi
8856      done
8857      IFS=$lt_save_ifs
8858      ;;
8859    esac
8860else $as_nop
8861  enable_fast_install=yes
8862fi
8863
8864
8865
8866
8867
8868
8869
8870
8871  shared_archive_member_spec=
8872case $host,$enable_shared in
8873power*-*-aix[5-9]*,yes)
8874  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8875printf %s "checking which variant of shared library versioning to provide... " >&6; }
8876
8877# Check whether --with-aix-soname was given.
8878if test ${with_aix_soname+y}
8879then :
8880  withval=$with_aix_soname; case $withval in
8881    aix|svr4|both)
8882      ;;
8883    *)
8884      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8885      ;;
8886    esac
8887    lt_cv_with_aix_soname=$with_aix_soname
8888else $as_nop
8889  if test ${lt_cv_with_aix_soname+y}
8890then :
8891  printf %s "(cached) " >&6
8892else $as_nop
8893  lt_cv_with_aix_soname=aix
8894fi
8895
8896    with_aix_soname=$lt_cv_with_aix_soname
8897fi
8898
8899  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8900printf "%s\n" "$with_aix_soname" >&6; }
8901  if test aix != "$with_aix_soname"; then
8902    # For the AIX way of multilib, we name the shared archive member
8903    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8904    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8905    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8906    # the AIX toolchain works better with OBJECT_MODE set (default 32).
8907    if test 64 = "${OBJECT_MODE-32}"; then
8908      shared_archive_member_spec=shr_64
8909    else
8910      shared_archive_member_spec=shr
8911    fi
8912  fi
8913  ;;
8914*)
8915  with_aix_soname=aix
8916  ;;
8917esac
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928# This can be used to rebuild libtool when needed
8929LIBTOOL_DEPS=$ltmain
8930
8931# Always use our own libtool.
8932LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963test -z "$LN_S" && LN_S="ln -s"
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978if test -n "${ZSH_VERSION+set}"; then
8979   setopt NO_GLOB_SUBST
8980fi
8981
8982{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8983printf %s "checking for objdir... " >&6; }
8984if test ${lt_cv_objdir+y}
8985then :
8986  printf %s "(cached) " >&6
8987else $as_nop
8988  rm -f .libs 2>/dev/null
8989mkdir .libs 2>/dev/null
8990if test -d .libs; then
8991  lt_cv_objdir=.libs
8992else
8993  # MS-DOS does not allow filenames that begin with a dot.
8994  lt_cv_objdir=_libs
8995fi
8996rmdir .libs 2>/dev/null
8997fi
8998{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8999printf "%s\n" "$lt_cv_objdir" >&6; }
9000objdir=$lt_cv_objdir
9001
9002
9003
9004
9005
9006printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
9007
9008
9009
9010
9011case $host_os in
9012aix3*)
9013  # AIX sometimes has problems with the GCC collect2 program.  For some
9014  # reason, if we set the COLLECT_NAMES environment variable, the problems
9015  # vanish in a puff of smoke.
9016  if test set != "${COLLECT_NAMES+set}"; then
9017    COLLECT_NAMES=
9018    export COLLECT_NAMES
9019  fi
9020  ;;
9021esac
9022
9023# Global variables:
9024ofile=libtool
9025can_build_shared=yes
9026
9027# All known linkers require a '.a' archive for static linking (except MSVC,
9028# which needs '.lib').
9029libext=a
9030
9031with_gnu_ld=$lt_cv_prog_gnu_ld
9032
9033old_CC=$CC
9034old_CFLAGS=$CFLAGS
9035
9036# Set sane defaults for various variables
9037test -z "$CC" && CC=cc
9038test -z "$LTCC" && LTCC=$CC
9039test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9040test -z "$LD" && LD=ld
9041test -z "$ac_objext" && ac_objext=o
9042
9043func_cc_basename $compiler
9044cc_basename=$func_cc_basename_result
9045
9046
9047# Only perform the check for file, if the check method requires it
9048test -z "$MAGIC_CMD" && MAGIC_CMD=file
9049case $deplibs_check_method in
9050file_magic*)
9051  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9052    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9053printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9054if test ${lt_cv_path_MAGIC_CMD+y}
9055then :
9056  printf %s "(cached) " >&6
9057else $as_nop
9058  case $MAGIC_CMD in
9059[\\/*] |  ?:[\\/]*)
9060  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9061  ;;
9062*)
9063  lt_save_MAGIC_CMD=$MAGIC_CMD
9064  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9065  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9066  for ac_dir in $ac_dummy; do
9067    IFS=$lt_save_ifs
9068    test -z "$ac_dir" && ac_dir=.
9069    if test -f "$ac_dir/${ac_tool_prefix}file"; then
9070      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9071      if test -n "$file_magic_test_file"; then
9072	case $deplibs_check_method in
9073	"file_magic "*)
9074	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9075	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9076	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9077	    $EGREP "$file_magic_regex" > /dev/null; then
9078	    :
9079	  else
9080	    cat <<_LT_EOF 1>&2
9081
9082*** Warning: the command libtool uses to detect shared libraries,
9083*** $file_magic_cmd, produces output that libtool cannot recognize.
9084*** The result is that libtool may fail to recognize shared libraries
9085*** as such.  This will affect the creation of libtool libraries that
9086*** depend on shared libraries, but programs linked with such libtool
9087*** libraries will work regardless of this problem.  Nevertheless, you
9088*** may want to report the problem to your system manager and/or to
9089*** bug-libtool@gnu.org
9090
9091_LT_EOF
9092	  fi ;;
9093	esac
9094      fi
9095      break
9096    fi
9097  done
9098  IFS=$lt_save_ifs
9099  MAGIC_CMD=$lt_save_MAGIC_CMD
9100  ;;
9101esac
9102fi
9103
9104MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9105if test -n "$MAGIC_CMD"; then
9106  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9107printf "%s\n" "$MAGIC_CMD" >&6; }
9108else
9109  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9110printf "%s\n" "no" >&6; }
9111fi
9112
9113
9114
9115
9116
9117if test -z "$lt_cv_path_MAGIC_CMD"; then
9118  if test -n "$ac_tool_prefix"; then
9119    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9120printf %s "checking for file... " >&6; }
9121if test ${lt_cv_path_MAGIC_CMD+y}
9122then :
9123  printf %s "(cached) " >&6
9124else $as_nop
9125  case $MAGIC_CMD in
9126[\\/*] |  ?:[\\/]*)
9127  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9128  ;;
9129*)
9130  lt_save_MAGIC_CMD=$MAGIC_CMD
9131  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9132  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9133  for ac_dir in $ac_dummy; do
9134    IFS=$lt_save_ifs
9135    test -z "$ac_dir" && ac_dir=.
9136    if test -f "$ac_dir/file"; then
9137      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9138      if test -n "$file_magic_test_file"; then
9139	case $deplibs_check_method in
9140	"file_magic "*)
9141	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9142	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9143	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9144	    $EGREP "$file_magic_regex" > /dev/null; then
9145	    :
9146	  else
9147	    cat <<_LT_EOF 1>&2
9148
9149*** Warning: the command libtool uses to detect shared libraries,
9150*** $file_magic_cmd, produces output that libtool cannot recognize.
9151*** The result is that libtool may fail to recognize shared libraries
9152*** as such.  This will affect the creation of libtool libraries that
9153*** depend on shared libraries, but programs linked with such libtool
9154*** libraries will work regardless of this problem.  Nevertheless, you
9155*** may want to report the problem to your system manager and/or to
9156*** bug-libtool@gnu.org
9157
9158_LT_EOF
9159	  fi ;;
9160	esac
9161      fi
9162      break
9163    fi
9164  done
9165  IFS=$lt_save_ifs
9166  MAGIC_CMD=$lt_save_MAGIC_CMD
9167  ;;
9168esac
9169fi
9170
9171MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9172if test -n "$MAGIC_CMD"; then
9173  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9174printf "%s\n" "$MAGIC_CMD" >&6; }
9175else
9176  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9177printf "%s\n" "no" >&6; }
9178fi
9179
9180
9181  else
9182    MAGIC_CMD=:
9183  fi
9184fi
9185
9186  fi
9187  ;;
9188esac
9189
9190# Use C for the default configuration in the libtool script
9191
9192lt_save_CC=$CC
9193ac_ext=c
9194ac_cpp='$CPP $CPPFLAGS'
9195ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9196ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9197ac_compiler_gnu=$ac_cv_c_compiler_gnu
9198
9199
9200# Source file extension for C test sources.
9201ac_ext=c
9202
9203# Object file extension for compiled C test sources.
9204objext=o
9205objext=$objext
9206
9207# Code to be used in simple compile tests
9208lt_simple_compile_test_code="int some_variable = 0;"
9209
9210# Code to be used in simple link tests
9211lt_simple_link_test_code='int main(){return(0);}'
9212
9213
9214
9215
9216
9217
9218
9219# If no C compiler was specified, use CC.
9220LTCC=${LTCC-"$CC"}
9221
9222# If no C compiler flags were specified, use CFLAGS.
9223LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9224
9225# Allow CC to be a program name with arguments.
9226compiler=$CC
9227
9228# Save the default compiler, since it gets overwritten when the other
9229# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9230compiler_DEFAULT=$CC
9231
9232# save warnings/boilerplate of simple test code
9233ac_outfile=conftest.$ac_objext
9234echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9235eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9236_lt_compiler_boilerplate=`cat conftest.err`
9237$RM conftest*
9238
9239ac_outfile=conftest.$ac_objext
9240echo "$lt_simple_link_test_code" >conftest.$ac_ext
9241eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9242_lt_linker_boilerplate=`cat conftest.err`
9243$RM -r conftest*
9244
9245
9246if test -n "$compiler"; then
9247
9248lt_prog_compiler_no_builtin_flag=
9249
9250if test yes = "$GCC"; then
9251  case $cc_basename in
9252  nvcc*)
9253    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9254  *)
9255    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9256  esac
9257
9258  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9259printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9260if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9261then :
9262  printf %s "(cached) " >&6
9263else $as_nop
9264  lt_cv_prog_compiler_rtti_exceptions=no
9265   ac_outfile=conftest.$ac_objext
9266   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9267   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
9268   # Insert the option either (1) after the last *FLAGS variable, or
9269   # (2) before a word containing "conftest.", or (3) at the end.
9270   # Note that $ac_compile itself does not contain backslashes and begins
9271   # with a dollar sign (not a hyphen), so the echo should work correctly.
9272   # The option is referenced via a variable to avoid confusing sed.
9273   lt_compile=`echo "$ac_compile" | $SED \
9274   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9275   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9276   -e 's:$: $lt_compiler_flag:'`
9277   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9278   (eval "$lt_compile" 2>conftest.err)
9279   ac_status=$?
9280   cat conftest.err >&5
9281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9282   if (exit $ac_status) && test -s "$ac_outfile"; then
9283     # The compiler can only warn and ignore the option if not recognized
9284     # So say no if there are warnings other than the usual output.
9285     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9286     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9287     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9288       lt_cv_prog_compiler_rtti_exceptions=yes
9289     fi
9290   fi
9291   $RM conftest*
9292
9293fi
9294{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9295printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9296
9297if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9298    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9299else
9300    :
9301fi
9302
9303fi
9304
9305
9306
9307
9308
9309
9310  lt_prog_compiler_wl=
9311lt_prog_compiler_pic=
9312lt_prog_compiler_static=
9313
9314
9315  if test yes = "$GCC"; then
9316    lt_prog_compiler_wl='-Wl,'
9317    lt_prog_compiler_static='-static'
9318
9319    case $host_os in
9320      aix*)
9321      # All AIX code is PIC.
9322      if test ia64 = "$host_cpu"; then
9323	# AIX 5 now supports IA64 processor
9324	lt_prog_compiler_static='-Bstatic'
9325      fi
9326      lt_prog_compiler_pic='-fPIC'
9327      ;;
9328
9329    amigaos*)
9330      case $host_cpu in
9331      powerpc)
9332            # see comment about AmigaOS4 .so support
9333            lt_prog_compiler_pic='-fPIC'
9334        ;;
9335      m68k)
9336            # FIXME: we need at least 68020 code to build shared libraries, but
9337            # adding the '-m68020' flag to GCC prevents building anything better,
9338            # like '-m68040'.
9339            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9340        ;;
9341      esac
9342      ;;
9343
9344    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9345      # PIC is the default for these OSes.
9346      ;;
9347
9348    mingw* | cygwin* | pw32* | os2* | cegcc*)
9349      # This hack is so that the source file can tell whether it is being
9350      # built for inclusion in a dll (and should export symbols for example).
9351      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9352      # (--disable-auto-import) libraries
9353      lt_prog_compiler_pic='-DDLL_EXPORT'
9354      case $host_os in
9355      os2*)
9356	lt_prog_compiler_static='$wl-static'
9357	;;
9358      esac
9359      ;;
9360
9361    darwin* | rhapsody*)
9362      # PIC is the default on this platform
9363      # Common symbols not allowed in MH_DYLIB files
9364      lt_prog_compiler_pic='-fno-common'
9365      ;;
9366
9367    haiku*)
9368      # PIC is the default for Haiku.
9369      # The "-static" flag exists, but is broken.
9370      lt_prog_compiler_static=
9371      ;;
9372
9373    hpux*)
9374      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9375      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9376      # sets the default TLS model and affects inlining.
9377      case $host_cpu in
9378      hppa*64*)
9379	# +Z the default
9380	;;
9381      *)
9382	lt_prog_compiler_pic='-fPIC'
9383	;;
9384      esac
9385      ;;
9386
9387    interix[3-9]*)
9388      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9389      # Instead, we relocate shared libraries at runtime.
9390      ;;
9391
9392    msdosdjgpp*)
9393      # Just because we use GCC doesn't mean we suddenly get shared libraries
9394      # on systems that don't support them.
9395      lt_prog_compiler_can_build_shared=no
9396      enable_shared=no
9397      ;;
9398
9399    *nto* | *qnx*)
9400      # QNX uses GNU C++, but need to define -shared option too, otherwise
9401      # it will coredump.
9402      lt_prog_compiler_pic='-fPIC -shared'
9403      ;;
9404
9405    sysv4*MP*)
9406      if test -d /usr/nec; then
9407	lt_prog_compiler_pic=-Kconform_pic
9408      fi
9409      ;;
9410
9411    *)
9412      lt_prog_compiler_pic='-fPIC'
9413      ;;
9414    esac
9415
9416    case $cc_basename in
9417    nvcc*) # Cuda Compiler Driver 2.2
9418      lt_prog_compiler_wl='-Xlinker '
9419      if test -n "$lt_prog_compiler_pic"; then
9420        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9421      fi
9422      ;;
9423    esac
9424  else
9425    # PORTME Check for flag to pass linker flags through the system compiler.
9426    case $host_os in
9427    aix*)
9428      lt_prog_compiler_wl='-Wl,'
9429      if test ia64 = "$host_cpu"; then
9430	# AIX 5 now supports IA64 processor
9431	lt_prog_compiler_static='-Bstatic'
9432      else
9433	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9434      fi
9435      ;;
9436
9437    darwin* | rhapsody*)
9438      # PIC is the default on this platform
9439      # Common symbols not allowed in MH_DYLIB files
9440      lt_prog_compiler_pic='-fno-common'
9441      case $cc_basename in
9442      nagfor*)
9443        # NAG Fortran compiler
9444        lt_prog_compiler_wl='-Wl,-Wl,,'
9445        lt_prog_compiler_pic='-PIC'
9446        lt_prog_compiler_static='-Bstatic'
9447        ;;
9448      esac
9449      ;;
9450
9451    mingw* | cygwin* | pw32* | os2* | cegcc*)
9452      # This hack is so that the source file can tell whether it is being
9453      # built for inclusion in a dll (and should export symbols for example).
9454      lt_prog_compiler_pic='-DDLL_EXPORT'
9455      case $host_os in
9456      os2*)
9457	lt_prog_compiler_static='$wl-static'
9458	;;
9459      esac
9460      ;;
9461
9462    hpux9* | hpux10* | hpux11*)
9463      lt_prog_compiler_wl='-Wl,'
9464      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9465      # not for PA HP-UX.
9466      case $host_cpu in
9467      hppa*64*|ia64*)
9468	# +Z the default
9469	;;
9470      *)
9471	lt_prog_compiler_pic='+Z'
9472	;;
9473      esac
9474      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9475      lt_prog_compiler_static='$wl-a ${wl}archive'
9476      ;;
9477
9478    irix5* | irix6* | nonstopux*)
9479      lt_prog_compiler_wl='-Wl,'
9480      # PIC (with -KPIC) is the default.
9481      lt_prog_compiler_static='-non_shared'
9482      ;;
9483
9484    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9485      case $cc_basename in
9486      # old Intel for x86_64, which still supported -KPIC.
9487      ecc*)
9488	lt_prog_compiler_wl='-Wl,'
9489	lt_prog_compiler_pic='-KPIC'
9490	lt_prog_compiler_static='-static'
9491        ;;
9492      # icc used to be incompatible with GCC.
9493      # ICC 10 doesn't accept -KPIC any more.
9494      icc* | ifort*)
9495	lt_prog_compiler_wl='-Wl,'
9496	lt_prog_compiler_pic='-fPIC'
9497	lt_prog_compiler_static='-static'
9498        ;;
9499      # Lahey Fortran 8.1.
9500      lf95*)
9501	lt_prog_compiler_wl='-Wl,'
9502	lt_prog_compiler_pic='--shared'
9503	lt_prog_compiler_static='--static'
9504	;;
9505      nagfor*)
9506	# NAG Fortran compiler
9507	lt_prog_compiler_wl='-Wl,-Wl,,'
9508	lt_prog_compiler_pic='-PIC'
9509	lt_prog_compiler_static='-Bstatic'
9510	;;
9511      tcc*)
9512	# Fabrice Bellard et al's Tiny C Compiler
9513	lt_prog_compiler_wl='-Wl,'
9514	lt_prog_compiler_pic='-fPIC'
9515	lt_prog_compiler_static='-static'
9516	;;
9517      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9518        # Portland Group compilers (*not* the Pentium gcc compiler,
9519	# which looks to be a dead project)
9520	lt_prog_compiler_wl='-Wl,'
9521	lt_prog_compiler_pic='-fpic'
9522	lt_prog_compiler_static='-Bstatic'
9523        ;;
9524      ccc*)
9525        lt_prog_compiler_wl='-Wl,'
9526        # All Alpha code is PIC.
9527        lt_prog_compiler_static='-non_shared'
9528        ;;
9529      xl* | bgxl* | bgf* | mpixl*)
9530	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9531	lt_prog_compiler_wl='-Wl,'
9532	lt_prog_compiler_pic='-qpic'
9533	lt_prog_compiler_static='-qstaticlink'
9534	;;
9535      *)
9536	case `$CC -V 2>&1 | sed 5q` in
9537	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9538	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9539	  lt_prog_compiler_pic='-KPIC'
9540	  lt_prog_compiler_static='-Bstatic'
9541	  lt_prog_compiler_wl=''
9542	  ;;
9543	*Sun\ F* | *Sun*Fortran*)
9544	  lt_prog_compiler_pic='-KPIC'
9545	  lt_prog_compiler_static='-Bstatic'
9546	  lt_prog_compiler_wl='-Qoption ld '
9547	  ;;
9548	*Sun\ C*)
9549	  # Sun C 5.9
9550	  lt_prog_compiler_pic='-KPIC'
9551	  lt_prog_compiler_static='-Bstatic'
9552	  lt_prog_compiler_wl='-Wl,'
9553	  ;;
9554        *Intel*\ [CF]*Compiler*)
9555	  lt_prog_compiler_wl='-Wl,'
9556	  lt_prog_compiler_pic='-fPIC'
9557	  lt_prog_compiler_static='-static'
9558	  ;;
9559	*Portland\ Group*)
9560	  lt_prog_compiler_wl='-Wl,'
9561	  lt_prog_compiler_pic='-fpic'
9562	  lt_prog_compiler_static='-Bstatic'
9563	  ;;
9564	esac
9565	;;
9566      esac
9567      ;;
9568
9569    newsos6)
9570      lt_prog_compiler_pic='-KPIC'
9571      lt_prog_compiler_static='-Bstatic'
9572      ;;
9573
9574    *nto* | *qnx*)
9575      # QNX uses GNU C++, but need to define -shared option too, otherwise
9576      # it will coredump.
9577      lt_prog_compiler_pic='-fPIC -shared'
9578      ;;
9579
9580    osf3* | osf4* | osf5*)
9581      lt_prog_compiler_wl='-Wl,'
9582      # All OSF/1 code is PIC.
9583      lt_prog_compiler_static='-non_shared'
9584      ;;
9585
9586    rdos*)
9587      lt_prog_compiler_static='-non_shared'
9588      ;;
9589
9590    solaris*)
9591      lt_prog_compiler_pic='-KPIC'
9592      lt_prog_compiler_static='-Bstatic'
9593      case $cc_basename in
9594      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9595	lt_prog_compiler_wl='-Qoption ld ';;
9596      *)
9597	lt_prog_compiler_wl='-Wl,';;
9598      esac
9599      ;;
9600
9601    sunos4*)
9602      lt_prog_compiler_wl='-Qoption ld '
9603      lt_prog_compiler_pic='-PIC'
9604      lt_prog_compiler_static='-Bstatic'
9605      ;;
9606
9607    sysv4 | sysv4.2uw2* | sysv4.3*)
9608      lt_prog_compiler_wl='-Wl,'
9609      lt_prog_compiler_pic='-KPIC'
9610      lt_prog_compiler_static='-Bstatic'
9611      ;;
9612
9613    sysv4*MP*)
9614      if test -d /usr/nec; then
9615	lt_prog_compiler_pic='-Kconform_pic'
9616	lt_prog_compiler_static='-Bstatic'
9617      fi
9618      ;;
9619
9620    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9621      lt_prog_compiler_wl='-Wl,'
9622      lt_prog_compiler_pic='-KPIC'
9623      lt_prog_compiler_static='-Bstatic'
9624      ;;
9625
9626    unicos*)
9627      lt_prog_compiler_wl='-Wl,'
9628      lt_prog_compiler_can_build_shared=no
9629      ;;
9630
9631    uts4*)
9632      lt_prog_compiler_pic='-pic'
9633      lt_prog_compiler_static='-Bstatic'
9634      ;;
9635
9636    *)
9637      lt_prog_compiler_can_build_shared=no
9638      ;;
9639    esac
9640  fi
9641
9642case $host_os in
9643  # For platforms that do not support PIC, -DPIC is meaningless:
9644  *djgpp*)
9645    lt_prog_compiler_pic=
9646    ;;
9647  *)
9648    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9649    ;;
9650esac
9651
9652{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9653printf %s "checking for $compiler option to produce PIC... " >&6; }
9654if test ${lt_cv_prog_compiler_pic+y}
9655then :
9656  printf %s "(cached) " >&6
9657else $as_nop
9658  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9659fi
9660{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9661printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9662lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9663
9664#
9665# Check to make sure the PIC flag actually works.
9666#
9667if test -n "$lt_prog_compiler_pic"; then
9668  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9669printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9670if test ${lt_cv_prog_compiler_pic_works+y}
9671then :
9672  printf %s "(cached) " >&6
9673else $as_nop
9674  lt_cv_prog_compiler_pic_works=no
9675   ac_outfile=conftest.$ac_objext
9676   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9677   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9678   # Insert the option either (1) after the last *FLAGS variable, or
9679   # (2) before a word containing "conftest.", or (3) at the end.
9680   # Note that $ac_compile itself does not contain backslashes and begins
9681   # with a dollar sign (not a hyphen), so the echo should work correctly.
9682   # The option is referenced via a variable to avoid confusing sed.
9683   lt_compile=`echo "$ac_compile" | $SED \
9684   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9685   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9686   -e 's:$: $lt_compiler_flag:'`
9687   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9688   (eval "$lt_compile" 2>conftest.err)
9689   ac_status=$?
9690   cat conftest.err >&5
9691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9692   if (exit $ac_status) && test -s "$ac_outfile"; then
9693     # The compiler can only warn and ignore the option if not recognized
9694     # So say no if there are warnings other than the usual output.
9695     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9696     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9697     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9698       lt_cv_prog_compiler_pic_works=yes
9699     fi
9700   fi
9701   $RM conftest*
9702
9703fi
9704{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9705printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9706
9707if test yes = "$lt_cv_prog_compiler_pic_works"; then
9708    case $lt_prog_compiler_pic in
9709     "" | " "*) ;;
9710     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9711     esac
9712else
9713    lt_prog_compiler_pic=
9714     lt_prog_compiler_can_build_shared=no
9715fi
9716
9717fi
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729#
9730# Check to make sure the static flag actually works.
9731#
9732wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9733{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9734printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9735if test ${lt_cv_prog_compiler_static_works+y}
9736then :
9737  printf %s "(cached) " >&6
9738else $as_nop
9739  lt_cv_prog_compiler_static_works=no
9740   save_LDFLAGS=$LDFLAGS
9741   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9742   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9743   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9744     # The linker can only warn and ignore the option if not recognized
9745     # So say no if there are warnings
9746     if test -s conftest.err; then
9747       # Append any errors to the config.log.
9748       cat conftest.err 1>&5
9749       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9750       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9751       if diff conftest.exp conftest.er2 >/dev/null; then
9752         lt_cv_prog_compiler_static_works=yes
9753       fi
9754     else
9755       lt_cv_prog_compiler_static_works=yes
9756     fi
9757   fi
9758   $RM -r conftest*
9759   LDFLAGS=$save_LDFLAGS
9760
9761fi
9762{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9763printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9764
9765if test yes = "$lt_cv_prog_compiler_static_works"; then
9766    :
9767else
9768    lt_prog_compiler_static=
9769fi
9770
9771
9772
9773
9774
9775
9776
9777  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9778printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9779if test ${lt_cv_prog_compiler_c_o+y}
9780then :
9781  printf %s "(cached) " >&6
9782else $as_nop
9783  lt_cv_prog_compiler_c_o=no
9784   $RM -r conftest 2>/dev/null
9785   mkdir conftest
9786   cd conftest
9787   mkdir out
9788   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9789
9790   lt_compiler_flag="-o out/conftest2.$ac_objext"
9791   # Insert the option either (1) after the last *FLAGS variable, or
9792   # (2) before a word containing "conftest.", or (3) at the end.
9793   # Note that $ac_compile itself does not contain backslashes and begins
9794   # with a dollar sign (not a hyphen), so the echo should work correctly.
9795   lt_compile=`echo "$ac_compile" | $SED \
9796   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9797   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9798   -e 's:$: $lt_compiler_flag:'`
9799   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9800   (eval "$lt_compile" 2>out/conftest.err)
9801   ac_status=$?
9802   cat out/conftest.err >&5
9803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9804   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9805   then
9806     # The compiler can only warn and ignore the option if not recognized
9807     # So say no if there are warnings
9808     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9809     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9810     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9811       lt_cv_prog_compiler_c_o=yes
9812     fi
9813   fi
9814   chmod u+w . 2>&5
9815   $RM conftest*
9816   # SGI C++ compiler will create directory out/ii_files/ for
9817   # template instantiation
9818   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9819   $RM out/* && rmdir out
9820   cd ..
9821   $RM -r conftest
9822   $RM conftest*
9823
9824fi
9825{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9826printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9827
9828
9829
9830
9831
9832
9833  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9834printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9835if test ${lt_cv_prog_compiler_c_o+y}
9836then :
9837  printf %s "(cached) " >&6
9838else $as_nop
9839  lt_cv_prog_compiler_c_o=no
9840   $RM -r conftest 2>/dev/null
9841   mkdir conftest
9842   cd conftest
9843   mkdir out
9844   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9845
9846   lt_compiler_flag="-o out/conftest2.$ac_objext"
9847   # Insert the option either (1) after the last *FLAGS variable, or
9848   # (2) before a word containing "conftest.", or (3) at the end.
9849   # Note that $ac_compile itself does not contain backslashes and begins
9850   # with a dollar sign (not a hyphen), so the echo should work correctly.
9851   lt_compile=`echo "$ac_compile" | $SED \
9852   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9853   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9854   -e 's:$: $lt_compiler_flag:'`
9855   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9856   (eval "$lt_compile" 2>out/conftest.err)
9857   ac_status=$?
9858   cat out/conftest.err >&5
9859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9860   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9861   then
9862     # The compiler can only warn and ignore the option if not recognized
9863     # So say no if there are warnings
9864     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9865     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9866     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9867       lt_cv_prog_compiler_c_o=yes
9868     fi
9869   fi
9870   chmod u+w . 2>&5
9871   $RM conftest*
9872   # SGI C++ compiler will create directory out/ii_files/ for
9873   # template instantiation
9874   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9875   $RM out/* && rmdir out
9876   cd ..
9877   $RM -r conftest
9878   $RM conftest*
9879
9880fi
9881{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9882printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9883
9884
9885
9886
9887hard_links=nottested
9888if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9889  # do not overwrite the value of need_locks provided by the user
9890  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9891printf %s "checking if we can lock with hard links... " >&6; }
9892  hard_links=yes
9893  $RM conftest*
9894  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9895  touch conftest.a
9896  ln conftest.a conftest.b 2>&5 || hard_links=no
9897  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9898  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9899printf "%s\n" "$hard_links" >&6; }
9900  if test no = "$hard_links"; then
9901    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9902printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9903    need_locks=warn
9904  fi
9905else
9906  need_locks=no
9907fi
9908
9909
9910
9911
9912
9913
9914  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9915printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9916
9917  runpath_var=
9918  allow_undefined_flag=
9919  always_export_symbols=no
9920  archive_cmds=
9921  archive_expsym_cmds=
9922  compiler_needs_object=no
9923  enable_shared_with_static_runtimes=no
9924  export_dynamic_flag_spec=
9925  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9926  hardcode_automatic=no
9927  hardcode_direct=no
9928  hardcode_direct_absolute=no
9929  hardcode_libdir_flag_spec=
9930  hardcode_libdir_separator=
9931  hardcode_minus_L=no
9932  hardcode_shlibpath_var=unsupported
9933  inherit_rpath=no
9934  link_all_deplibs=unknown
9935  module_cmds=
9936  module_expsym_cmds=
9937  old_archive_from_new_cmds=
9938  old_archive_from_expsyms_cmds=
9939  thread_safe_flag_spec=
9940  whole_archive_flag_spec=
9941  # include_expsyms should be a list of space-separated symbols to be *always*
9942  # included in the symbol list
9943  include_expsyms=
9944  # exclude_expsyms can be an extended regexp of symbols to exclude
9945  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9946  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9947  # as well as any symbol that contains 'd'.
9948  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9949  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9950  # platforms (ab)use it in PIC code, but their linkers get confused if
9951  # the symbol is explicitly referenced.  Since portable code cannot
9952  # rely on this symbol name, it's probably fine to never include it in
9953  # preloaded symbol tables.
9954  # Exclude shared library initialization/finalization symbols.
9955  extract_expsyms_cmds=
9956
9957  case $host_os in
9958  cygwin* | mingw* | pw32* | cegcc*)
9959    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9960    # When not using gcc, we currently assume that we are using
9961    # Microsoft Visual C++.
9962    if test yes != "$GCC"; then
9963      with_gnu_ld=no
9964    fi
9965    ;;
9966  interix*)
9967    # we just hope/assume this is gcc and not c89 (= MSVC++)
9968    with_gnu_ld=yes
9969    ;;
9970  openbsd* | bitrig*)
9971    with_gnu_ld=no
9972    ;;
9973  esac
9974
9975  ld_shlibs=yes
9976
9977  # On some targets, GNU ld is compatible enough with the native linker
9978  # that we're better off using the native interface for both.
9979  lt_use_gnu_ld_interface=no
9980  if test yes = "$with_gnu_ld"; then
9981    case $host_os in
9982      aix*)
9983	# The AIX port of GNU ld has always aspired to compatibility
9984	# with the native linker.  However, as the warning in the GNU ld
9985	# block says, versions before 2.19.5* couldn't really create working
9986	# shared libraries, regardless of the interface used.
9987	case `$LD -v 2>&1` in
9988	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9989	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9990	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9991	  *)
9992	    lt_use_gnu_ld_interface=yes
9993	    ;;
9994	esac
9995	;;
9996      *)
9997	lt_use_gnu_ld_interface=yes
9998	;;
9999    esac
10000  fi
10001
10002  if test yes = "$lt_use_gnu_ld_interface"; then
10003    # If archive_cmds runs LD, not CC, wlarc should be empty
10004    wlarc='$wl'
10005
10006    # Set some defaults for GNU ld with shared library support. These
10007    # are reset later if shared libraries are not supported. Putting them
10008    # here allows them to be overridden if necessary.
10009    runpath_var=LD_RUN_PATH
10010    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10011    export_dynamic_flag_spec='$wl--export-dynamic'
10012    # ancient GNU ld didn't support --whole-archive et. al.
10013    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10014      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10015    else
10016      whole_archive_flag_spec=
10017    fi
10018    supports_anon_versioning=no
10019    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10020      *GNU\ gold*) supports_anon_versioning=yes ;;
10021      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10022      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10023      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10024      *\ 2.11.*) ;; # other 2.11 versions
10025      *) supports_anon_versioning=yes ;;
10026    esac
10027
10028    # See if GNU ld supports shared libraries.
10029    case $host_os in
10030    aix[3-9]*)
10031      # On AIX/PPC, the GNU linker is very broken
10032      if test ia64 != "$host_cpu"; then
10033	ld_shlibs=no
10034	cat <<_LT_EOF 1>&2
10035
10036*** Warning: the GNU linker, at least up to release 2.19, is reported
10037*** to be unable to reliably create shared libraries on AIX.
10038*** Therefore, libtool is disabling shared libraries support.  If you
10039*** really care for shared libraries, you may want to install binutils
10040*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10041*** You will then need to restart the configuration process.
10042
10043_LT_EOF
10044      fi
10045      ;;
10046
10047    amigaos*)
10048      case $host_cpu in
10049      powerpc)
10050            # see comment about AmigaOS4 .so support
10051            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10052            archive_expsym_cmds=''
10053        ;;
10054      m68k)
10055            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)'
10056            hardcode_libdir_flag_spec='-L$libdir'
10057            hardcode_minus_L=yes
10058        ;;
10059      esac
10060      ;;
10061
10062    beos*)
10063      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10064	allow_undefined_flag=unsupported
10065	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10066	# support --undefined.  This deserves some investigation.  FIXME
10067	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10068      else
10069	ld_shlibs=no
10070      fi
10071      ;;
10072
10073    cygwin* | mingw* | pw32* | cegcc*)
10074      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10075      # as there is no search path for DLLs.
10076      hardcode_libdir_flag_spec='-L$libdir'
10077      export_dynamic_flag_spec='$wl--export-all-symbols'
10078      allow_undefined_flag=unsupported
10079      always_export_symbols=no
10080      enable_shared_with_static_runtimes=yes
10081      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'
10082      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10083
10084      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10085        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10086	# If the export-symbols file already is a .def file, use it as
10087	# is; otherwise, prepend EXPORTS...
10088	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10089          cp $export_symbols $output_objdir/$soname.def;
10090        else
10091          echo EXPORTS > $output_objdir/$soname.def;
10092          cat $export_symbols >> $output_objdir/$soname.def;
10093        fi~
10094        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10095      else
10096	ld_shlibs=no
10097      fi
10098      ;;
10099
10100    haiku*)
10101      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10102      link_all_deplibs=yes
10103      ;;
10104
10105    os2*)
10106      hardcode_libdir_flag_spec='-L$libdir'
10107      hardcode_minus_L=yes
10108      allow_undefined_flag=unsupported
10109      shrext_cmds=.dll
10110      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10111	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10112	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10113	$ECHO EXPORTS >> $output_objdir/$libname.def~
10114	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10115	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10116	emximp -o $lib $output_objdir/$libname.def'
10117      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10118	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10119	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10120	$ECHO EXPORTS >> $output_objdir/$libname.def~
10121	prefix_cmds="$SED"~
10122	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10123	  prefix_cmds="$prefix_cmds -e 1d";
10124	fi~
10125	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10126	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10127	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10128	emximp -o $lib $output_objdir/$libname.def'
10129      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10130      enable_shared_with_static_runtimes=yes
10131      ;;
10132
10133    interix[3-9]*)
10134      hardcode_direct=no
10135      hardcode_shlibpath_var=no
10136      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10137      export_dynamic_flag_spec='$wl-E'
10138      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10139      # Instead, shared libraries are loaded at an image base (0x10000000 by
10140      # default) and relocated if they conflict, which is a slow very memory
10141      # consuming and fragmenting process.  To avoid this, we pick a random,
10142      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10143      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10144      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10145      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'
10146      ;;
10147
10148    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10149      tmp_diet=no
10150      if test linux-dietlibc = "$host_os"; then
10151	case $cc_basename in
10152	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
10153	esac
10154      fi
10155      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10156	 && test no = "$tmp_diet"
10157      then
10158	tmp_addflag=' $pic_flag'
10159	tmp_sharedflag='-shared'
10160	case $cc_basename,$host_cpu in
10161        pgcc*)				# Portland Group C compiler
10162	  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'
10163	  tmp_addflag=' $pic_flag'
10164	  ;;
10165	pgf77* | pgf90* | pgf95* | pgfortran*)
10166					# Portland Group f77 and f90 compilers
10167	  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'
10168	  tmp_addflag=' $pic_flag -Mnomain' ;;
10169	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
10170	  tmp_addflag=' -i_dynamic' ;;
10171	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
10172	  tmp_addflag=' -i_dynamic -nofor_main' ;;
10173	ifc* | ifort*)			# Intel Fortran compiler
10174	  tmp_addflag=' -nofor_main' ;;
10175	lf95*)				# Lahey Fortran 8.1
10176	  whole_archive_flag_spec=
10177	  tmp_sharedflag='--shared' ;;
10178        nagfor*)                        # NAGFOR 5.3
10179          tmp_sharedflag='-Wl,-shared' ;;
10180	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10181	  tmp_sharedflag='-qmkshrobj'
10182	  tmp_addflag= ;;
10183	nvcc*)	# Cuda Compiler Driver 2.2
10184	  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'
10185	  compiler_needs_object=yes
10186	  ;;
10187	esac
10188	case `$CC -V 2>&1 | sed 5q` in
10189	*Sun\ C*)			# Sun C 5.9
10190	  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'
10191	  compiler_needs_object=yes
10192	  tmp_sharedflag='-G' ;;
10193	*Sun\ F*)			# Sun Fortran 8.3
10194	  tmp_sharedflag='-G' ;;
10195	esac
10196	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10197
10198        if test yes = "$supports_anon_versioning"; then
10199          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10200            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10201            echo "local: *; };" >> $output_objdir/$libname.ver~
10202            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10203        fi
10204
10205	case $cc_basename in
10206	tcc*)
10207	  export_dynamic_flag_spec='-rdynamic'
10208	  ;;
10209	xlf* | bgf* | bgxlf* | mpixlf*)
10210	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10211	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10212	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10213	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10214	  if test yes = "$supports_anon_versioning"; then
10215	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10216              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10217              echo "local: *; };" >> $output_objdir/$libname.ver~
10218              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10219	  fi
10220	  ;;
10221	esac
10222      else
10223        ld_shlibs=no
10224      fi
10225      ;;
10226
10227    netbsd*)
10228      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10229	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10230	wlarc=
10231      else
10232	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10233	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10234      fi
10235      ;;
10236
10237    solaris*)
10238      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10239	ld_shlibs=no
10240	cat <<_LT_EOF 1>&2
10241
10242*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10243*** create shared libraries on Solaris systems.  Therefore, libtool
10244*** is disabling shared libraries support.  We urge you to upgrade GNU
10245*** binutils to release 2.9.1 or newer.  Another option is to modify
10246*** your PATH or compiler configuration so that the native linker is
10247*** used, and then restart.
10248
10249_LT_EOF
10250      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10251	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10252	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10253      else
10254	ld_shlibs=no
10255      fi
10256      ;;
10257
10258    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10259      case `$LD -v 2>&1` in
10260        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10261	ld_shlibs=no
10262	cat <<_LT_EOF 1>&2
10263
10264*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10265*** reliably create shared libraries on SCO systems.  Therefore, libtool
10266*** is disabling shared libraries support.  We urge you to upgrade GNU
10267*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10268*** your PATH or compiler configuration so that the native linker is
10269*** used, and then restart.
10270
10271_LT_EOF
10272	;;
10273	*)
10274	  # For security reasons, it is highly recommended that you always
10275	  # use absolute paths for naming shared libraries, and exclude the
10276	  # DT_RUNPATH tag from executables and libraries.  But doing so
10277	  # requires that you compile everything twice, which is a pain.
10278	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10279	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10280	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10281	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10282	  else
10283	    ld_shlibs=no
10284	  fi
10285	;;
10286      esac
10287      ;;
10288
10289    sunos4*)
10290      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10291      wlarc=
10292      hardcode_direct=yes
10293      hardcode_shlibpath_var=no
10294      ;;
10295
10296    *)
10297      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10298	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10299	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10300      else
10301	ld_shlibs=no
10302      fi
10303      ;;
10304    esac
10305
10306    if test no = "$ld_shlibs"; then
10307      runpath_var=
10308      hardcode_libdir_flag_spec=
10309      export_dynamic_flag_spec=
10310      whole_archive_flag_spec=
10311    fi
10312  else
10313    # PORTME fill in a description of your system's linker (not GNU ld)
10314    case $host_os in
10315    aix3*)
10316      allow_undefined_flag=unsupported
10317      always_export_symbols=yes
10318      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'
10319      # Note: this linker hardcodes the directories in LIBPATH if there
10320      # are no directories specified by -L.
10321      hardcode_minus_L=yes
10322      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10323	# Neither direct hardcoding nor static linking is supported with a
10324	# broken collect2.
10325	hardcode_direct=unsupported
10326      fi
10327      ;;
10328
10329    aix[4-9]*)
10330      if test ia64 = "$host_cpu"; then
10331	# On IA64, the linker does run time linking by default, so we don't
10332	# have to do anything special.
10333	aix_use_runtimelinking=no
10334	exp_sym_flag='-Bexport'
10335	no_entry_flag=
10336      else
10337	# If we're using GNU nm, then we don't want the "-C" option.
10338	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
10339	# Without the "-l" option, or with the "-B" option, AIX nm treats
10340	# weak defined symbols like other global defined symbols, whereas
10341	# GNU nm marks them as "W".
10342	# While the 'weak' keyword is ignored in the Export File, we need
10343	# it in the Import File for the 'aix-soname' feature, so we have
10344	# to replace the "-B" option with "-P" for AIX nm.
10345	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10346	  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'
10347	else
10348	  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 == "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'
10349	fi
10350	aix_use_runtimelinking=no
10351
10352	# Test if we are trying to use run time linking or normal
10353	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10354	# have runtime linking enabled, and use it for executables.
10355	# For shared libraries, we enable/disable runtime linking
10356	# depending on the kind of the shared library created -
10357	# when "with_aix_soname,aix_use_runtimelinking" is:
10358	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
10359	# "aix,yes"  lib.so          shared, rtl:yes, for executables
10360	#            lib.a           static archive
10361	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
10362	#            lib.a(lib.so.V) shared, rtl:no,  for executables
10363	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10364	#            lib.a(lib.so.V) shared, rtl:no
10365	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
10366	#            lib.a           static archive
10367	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10368	  for ld_flag in $LDFLAGS; do
10369	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10370	    aix_use_runtimelinking=yes
10371	    break
10372	  fi
10373	  done
10374	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10375	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
10376	    # so we don't have lib.a shared libs to link our executables.
10377	    # We have to force runtime linking in this case.
10378	    aix_use_runtimelinking=yes
10379	    LDFLAGS="$LDFLAGS -Wl,-brtl"
10380	  fi
10381	  ;;
10382	esac
10383
10384	exp_sym_flag='-bexport'
10385	no_entry_flag='-bnoentry'
10386      fi
10387
10388      # When large executables or shared objects are built, AIX ld can
10389      # have problems creating the table of contents.  If linking a library
10390      # or program results in "error TOC overflow" add -mminimal-toc to
10391      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10392      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10393
10394      archive_cmds=''
10395      hardcode_direct=yes
10396      hardcode_direct_absolute=yes
10397      hardcode_libdir_separator=':'
10398      link_all_deplibs=yes
10399      file_list_spec='$wl-f,'
10400      case $with_aix_soname,$aix_use_runtimelinking in
10401      aix,*) ;; # traditional, no import file
10402      svr4,* | *,yes) # use import file
10403	# The Import File defines what to hardcode.
10404	hardcode_direct=no
10405	hardcode_direct_absolute=no
10406	;;
10407      esac
10408
10409      if test yes = "$GCC"; then
10410	case $host_os in aix4.[012]|aix4.[012].*)
10411	# We only want to do this on AIX 4.2 and lower, the check
10412	# below for broken collect2 doesn't work under 4.3+
10413	  collect2name=`$CC -print-prog-name=collect2`
10414	  if test -f "$collect2name" &&
10415	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10416	  then
10417	  # We have reworked collect2
10418	  :
10419	  else
10420	  # We have old collect2
10421	  hardcode_direct=unsupported
10422	  # It fails to find uninstalled libraries when the uninstalled
10423	  # path is not listed in the libpath.  Setting hardcode_minus_L
10424	  # to unsupported forces relinking
10425	  hardcode_minus_L=yes
10426	  hardcode_libdir_flag_spec='-L$libdir'
10427	  hardcode_libdir_separator=
10428	  fi
10429	  ;;
10430	esac
10431	shared_flag='-shared'
10432	if test yes = "$aix_use_runtimelinking"; then
10433	  shared_flag="$shared_flag "'$wl-G'
10434	fi
10435	# Need to ensure runtime linking is disabled for the traditional
10436	# shared library, or the linker may eventually find shared libraries
10437	# /with/ Import File - we do not want to mix them.
10438	shared_flag_aix='-shared'
10439	shared_flag_svr4='-shared $wl-G'
10440      else
10441	# not using gcc
10442	if test ia64 = "$host_cpu"; then
10443	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10444	# chokes on -Wl,-G. The following line is correct:
10445	  shared_flag='-G'
10446	else
10447	  if test yes = "$aix_use_runtimelinking"; then
10448	    shared_flag='$wl-G'
10449	  else
10450	    shared_flag='$wl-bM:SRE'
10451	  fi
10452	  shared_flag_aix='$wl-bM:SRE'
10453	  shared_flag_svr4='$wl-G'
10454	fi
10455      fi
10456
10457      export_dynamic_flag_spec='$wl-bexpall'
10458      # It seems that -bexpall does not export symbols beginning with
10459      # underscore (_), so it is better to generate a list of symbols to export.
10460      always_export_symbols=yes
10461      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10462	# Warning - without using the other runtime loading flags (-brtl),
10463	# -berok will link without error, but may produce a broken library.
10464	allow_undefined_flag='-berok'
10465        # Determine the default libpath from the value encoded in an
10466        # empty executable.
10467        if test set = "${lt_cv_aix_libpath+set}"; then
10468  aix_libpath=$lt_cv_aix_libpath
10469else
10470  if test ${lt_cv_aix_libpath_+y}
10471then :
10472  printf %s "(cached) " >&6
10473else $as_nop
10474  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10475/* end confdefs.h.  */
10476
10477int
10478main (void)
10479{
10480
10481  ;
10482  return 0;
10483}
10484_ACEOF
10485if ac_fn_c_try_link "$LINENO"
10486then :
10487
10488  lt_aix_libpath_sed='
10489      /Import File Strings/,/^$/ {
10490	  /^0/ {
10491	      s/^0  *\([^ ]*\) *$/\1/
10492	      p
10493	  }
10494      }'
10495  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10496  # Check for a 64-bit object if we didn't find anything.
10497  if test -z "$lt_cv_aix_libpath_"; then
10498    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10499  fi
10500fi
10501rm -f core conftest.err conftest.$ac_objext conftest.beam \
10502    conftest$ac_exeext conftest.$ac_ext
10503  if test -z "$lt_cv_aix_libpath_"; then
10504    lt_cv_aix_libpath_=/usr/lib:/lib
10505  fi
10506
10507fi
10508
10509  aix_libpath=$lt_cv_aix_libpath_
10510fi
10511
10512        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10513        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
10514      else
10515	if test ia64 = "$host_cpu"; then
10516	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10517	  allow_undefined_flag="-z nodefs"
10518	  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"
10519	else
10520	 # Determine the default libpath from the value encoded in an
10521	 # empty executable.
10522	 if test set = "${lt_cv_aix_libpath+set}"; then
10523  aix_libpath=$lt_cv_aix_libpath
10524else
10525  if test ${lt_cv_aix_libpath_+y}
10526then :
10527  printf %s "(cached) " >&6
10528else $as_nop
10529  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10530/* end confdefs.h.  */
10531
10532int
10533main (void)
10534{
10535
10536  ;
10537  return 0;
10538}
10539_ACEOF
10540if ac_fn_c_try_link "$LINENO"
10541then :
10542
10543  lt_aix_libpath_sed='
10544      /Import File Strings/,/^$/ {
10545	  /^0/ {
10546	      s/^0  *\([^ ]*\) *$/\1/
10547	      p
10548	  }
10549      }'
10550  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10551  # Check for a 64-bit object if we didn't find anything.
10552  if test -z "$lt_cv_aix_libpath_"; then
10553    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10554  fi
10555fi
10556rm -f core conftest.err conftest.$ac_objext conftest.beam \
10557    conftest$ac_exeext conftest.$ac_ext
10558  if test -z "$lt_cv_aix_libpath_"; then
10559    lt_cv_aix_libpath_=/usr/lib:/lib
10560  fi
10561
10562fi
10563
10564  aix_libpath=$lt_cv_aix_libpath_
10565fi
10566
10567	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10568	  # Warning - without using the other run time loading flags,
10569	  # -berok will link without error, but may produce a broken library.
10570	  no_undefined_flag=' $wl-bernotok'
10571	  allow_undefined_flag=' $wl-berok'
10572	  if test yes = "$with_gnu_ld"; then
10573	    # We only use this code for GNU lds that support --whole-archive.
10574	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10575	  else
10576	    # Exported symbols can be pulled into shared objects from archives
10577	    whole_archive_flag_spec='$convenience'
10578	  fi
10579	  archive_cmds_need_lc=yes
10580	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10581	  # -brtl affects multiple linker settings, -berok does not and is overridden later
10582	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10583	  if test svr4 != "$with_aix_soname"; then
10584	    # This is similar to how AIX traditionally builds its shared libraries.
10585	    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'
10586	  fi
10587	  if test aix != "$with_aix_soname"; then
10588	    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'
10589	  else
10590	    # used by -dlpreopen to get the symbols
10591	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10592	  fi
10593	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10594	fi
10595      fi
10596      ;;
10597
10598    amigaos*)
10599      case $host_cpu in
10600      powerpc)
10601            # see comment about AmigaOS4 .so support
10602            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10603            archive_expsym_cmds=''
10604        ;;
10605      m68k)
10606            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)'
10607            hardcode_libdir_flag_spec='-L$libdir'
10608            hardcode_minus_L=yes
10609        ;;
10610      esac
10611      ;;
10612
10613    bsdi[45]*)
10614      export_dynamic_flag_spec=-rdynamic
10615      ;;
10616
10617    cygwin* | mingw* | pw32* | cegcc*)
10618      # When not using gcc, we currently assume that we are using
10619      # Microsoft Visual C++.
10620      # hardcode_libdir_flag_spec is actually meaningless, as there is
10621      # no search path for DLLs.
10622      case $cc_basename in
10623      cl*)
10624	# Native MSVC
10625	hardcode_libdir_flag_spec=' '
10626	allow_undefined_flag=unsupported
10627	always_export_symbols=yes
10628	file_list_spec='@'
10629	# Tell ltmain to make .lib files, not .a files.
10630	libext=lib
10631	# Tell ltmain to make .dll files, not .so files.
10632	shrext_cmds=.dll
10633	# FIXME: Setting linknames here is a bad hack.
10634	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10635	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10636            cp "$export_symbols" "$output_objdir/$soname.def";
10637            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10638          else
10639            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10640          fi~
10641          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10642          linknames='
10643	# The linker will not automatically build a static lib if we build a DLL.
10644	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10645	enable_shared_with_static_runtimes=yes
10646	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10647	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10648	# Don't use ranlib
10649	old_postinstall_cmds='chmod 644 $oldlib'
10650	postlink_cmds='lt_outputfile="@OUTPUT@"~
10651          lt_tool_outputfile="@TOOL_OUTPUT@"~
10652          case $lt_outputfile in
10653            *.exe|*.EXE) ;;
10654            *)
10655              lt_outputfile=$lt_outputfile.exe
10656              lt_tool_outputfile=$lt_tool_outputfile.exe
10657              ;;
10658          esac~
10659          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10660            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10661            $RM "$lt_outputfile.manifest";
10662          fi'
10663	;;
10664      *)
10665	# Assume MSVC wrapper
10666	hardcode_libdir_flag_spec=' '
10667	allow_undefined_flag=unsupported
10668	# Tell ltmain to make .lib files, not .a files.
10669	libext=lib
10670	# Tell ltmain to make .dll files, not .so files.
10671	shrext_cmds=.dll
10672	# FIXME: Setting linknames here is a bad hack.
10673	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10674	# The linker will automatically build a .lib file if we build a DLL.
10675	old_archive_from_new_cmds='true'
10676	# FIXME: Should let the user specify the lib program.
10677	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10678	enable_shared_with_static_runtimes=yes
10679	;;
10680      esac
10681      ;;
10682
10683    darwin* | rhapsody*)
10684
10685
10686  archive_cmds_need_lc=no
10687  hardcode_direct=no
10688  hardcode_automatic=yes
10689  hardcode_shlibpath_var=unsupported
10690  if test yes = "$lt_cv_ld_force_load"; then
10691    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\"`'
10692
10693  else
10694    whole_archive_flag_spec=''
10695  fi
10696  link_all_deplibs=yes
10697  allow_undefined_flag=$_lt_dar_allow_undefined
10698  case $cc_basename in
10699     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10700     *) _lt_dar_can_shared=$GCC ;;
10701  esac
10702  if test yes = "$_lt_dar_can_shared"; then
10703    output_verbose_link_cmd=func_echo_all
10704    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10705    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10706    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"
10707    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"
10708
10709  else
10710  ld_shlibs=no
10711  fi
10712
10713      ;;
10714
10715    dgux*)
10716      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10717      hardcode_libdir_flag_spec='-L$libdir'
10718      hardcode_shlibpath_var=no
10719      ;;
10720
10721    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10722    # support.  Future versions do this automatically, but an explicit c++rt0.o
10723    # does not break anything, and helps significantly (at the cost of a little
10724    # extra space).
10725    freebsd2.2*)
10726      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10727      hardcode_libdir_flag_spec='-R$libdir'
10728      hardcode_direct=yes
10729      hardcode_shlibpath_var=no
10730      ;;
10731
10732    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10733    freebsd2.*)
10734      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10735      hardcode_direct=yes
10736      hardcode_minus_L=yes
10737      hardcode_shlibpath_var=no
10738      ;;
10739
10740    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10741    freebsd* | dragonfly*)
10742      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10743      hardcode_libdir_flag_spec='-R$libdir'
10744      hardcode_direct=yes
10745      hardcode_shlibpath_var=no
10746      ;;
10747
10748    hpux9*)
10749      if test yes = "$GCC"; then
10750	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'
10751      else
10752	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'
10753      fi
10754      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10755      hardcode_libdir_separator=:
10756      hardcode_direct=yes
10757
10758      # hardcode_minus_L: Not really in the search PATH,
10759      # but as the default location of the library.
10760      hardcode_minus_L=yes
10761      export_dynamic_flag_spec='$wl-E'
10762      ;;
10763
10764    hpux10*)
10765      if test yes,no = "$GCC,$with_gnu_ld"; then
10766	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10767      else
10768	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10769      fi
10770      if test no = "$with_gnu_ld"; then
10771	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10772	hardcode_libdir_separator=:
10773	hardcode_direct=yes
10774	hardcode_direct_absolute=yes
10775	export_dynamic_flag_spec='$wl-E'
10776	# hardcode_minus_L: Not really in the search PATH,
10777	# but as the default location of the library.
10778	hardcode_minus_L=yes
10779      fi
10780      ;;
10781
10782    hpux11*)
10783      if test yes,no = "$GCC,$with_gnu_ld"; then
10784	case $host_cpu in
10785	hppa*64*)
10786	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10787	  ;;
10788	ia64*)
10789	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10790	  ;;
10791	*)
10792	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10793	  ;;
10794	esac
10795      else
10796	case $host_cpu in
10797	hppa*64*)
10798	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10799	  ;;
10800	ia64*)
10801	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10802	  ;;
10803	*)
10804
10805	  # Older versions of the 11.00 compiler do not understand -b yet
10806	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10807	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10808printf %s "checking if $CC understands -b... " >&6; }
10809if test ${lt_cv_prog_compiler__b+y}
10810then :
10811  printf %s "(cached) " >&6
10812else $as_nop
10813  lt_cv_prog_compiler__b=no
10814   save_LDFLAGS=$LDFLAGS
10815   LDFLAGS="$LDFLAGS -b"
10816   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10817   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10818     # The linker can only warn and ignore the option if not recognized
10819     # So say no if there are warnings
10820     if test -s conftest.err; then
10821       # Append any errors to the config.log.
10822       cat conftest.err 1>&5
10823       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10824       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10825       if diff conftest.exp conftest.er2 >/dev/null; then
10826         lt_cv_prog_compiler__b=yes
10827       fi
10828     else
10829       lt_cv_prog_compiler__b=yes
10830     fi
10831   fi
10832   $RM -r conftest*
10833   LDFLAGS=$save_LDFLAGS
10834
10835fi
10836{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10837printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10838
10839if test yes = "$lt_cv_prog_compiler__b"; then
10840    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10841else
10842    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10843fi
10844
10845	  ;;
10846	esac
10847      fi
10848      if test no = "$with_gnu_ld"; then
10849	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10850	hardcode_libdir_separator=:
10851
10852	case $host_cpu in
10853	hppa*64*|ia64*)
10854	  hardcode_direct=no
10855	  hardcode_shlibpath_var=no
10856	  ;;
10857	*)
10858	  hardcode_direct=yes
10859	  hardcode_direct_absolute=yes
10860	  export_dynamic_flag_spec='$wl-E'
10861
10862	  # hardcode_minus_L: Not really in the search PATH,
10863	  # but as the default location of the library.
10864	  hardcode_minus_L=yes
10865	  ;;
10866	esac
10867      fi
10868      ;;
10869
10870    irix5* | irix6* | nonstopux*)
10871      if test yes = "$GCC"; then
10872	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'
10873	# Try to use the -exported_symbol ld option, if it does not
10874	# work, assume that -exports_file does not work either and
10875	# implicitly export all symbols.
10876	# This should be the same for all languages, so no per-tag cache variable.
10877	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10878printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10879if test ${lt_cv_irix_exported_symbol+y}
10880then :
10881  printf %s "(cached) " >&6
10882else $as_nop
10883  save_LDFLAGS=$LDFLAGS
10884	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10885	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10886/* end confdefs.h.  */
10887int foo (void) { return 0; }
10888_ACEOF
10889if ac_fn_c_try_link "$LINENO"
10890then :
10891  lt_cv_irix_exported_symbol=yes
10892else $as_nop
10893  lt_cv_irix_exported_symbol=no
10894fi
10895rm -f core conftest.err conftest.$ac_objext conftest.beam \
10896    conftest$ac_exeext conftest.$ac_ext
10897           LDFLAGS=$save_LDFLAGS
10898fi
10899{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10900printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
10901	if test yes = "$lt_cv_irix_exported_symbol"; then
10902          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'
10903	fi
10904      else
10905	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'
10906	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'
10907      fi
10908      archive_cmds_need_lc='no'
10909      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10910      hardcode_libdir_separator=:
10911      inherit_rpath=yes
10912      link_all_deplibs=yes
10913      ;;
10914
10915    linux*)
10916      case $cc_basename in
10917      tcc*)
10918	# Fabrice Bellard et al's Tiny C Compiler
10919	ld_shlibs=yes
10920	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10921	;;
10922      esac
10923      ;;
10924
10925    netbsd*)
10926      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10927	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10928      else
10929	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10930      fi
10931      hardcode_libdir_flag_spec='-R$libdir'
10932      hardcode_direct=yes
10933      hardcode_shlibpath_var=no
10934      ;;
10935
10936    newsos6)
10937      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10938      hardcode_direct=yes
10939      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10940      hardcode_libdir_separator=:
10941      hardcode_shlibpath_var=no
10942      ;;
10943
10944    *nto* | *qnx*)
10945      ;;
10946
10947    openbsd* | bitrig*)
10948      if test -f /usr/libexec/ld.so; then
10949	hardcode_direct=yes
10950	hardcode_shlibpath_var=no
10951	hardcode_direct_absolute=yes
10952	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10953	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10954	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10955	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10956	  export_dynamic_flag_spec='$wl-E'
10957	else
10958	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10959	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10960	fi
10961      else
10962	ld_shlibs=no
10963      fi
10964      ;;
10965
10966    os2*)
10967      hardcode_libdir_flag_spec='-L$libdir'
10968      hardcode_minus_L=yes
10969      allow_undefined_flag=unsupported
10970      shrext_cmds=.dll
10971      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10972	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10973	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10974	$ECHO EXPORTS >> $output_objdir/$libname.def~
10975	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10976	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10977	emximp -o $lib $output_objdir/$libname.def'
10978      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10979	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10980	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10981	$ECHO EXPORTS >> $output_objdir/$libname.def~
10982	prefix_cmds="$SED"~
10983	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10984	  prefix_cmds="$prefix_cmds -e 1d";
10985	fi~
10986	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10987	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10988	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10989	emximp -o $lib $output_objdir/$libname.def'
10990      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10991      enable_shared_with_static_runtimes=yes
10992      ;;
10993
10994    osf3*)
10995      if test yes = "$GCC"; then
10996	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10997	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'
10998      else
10999	allow_undefined_flag=' -expect_unresolved \*'
11000	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'
11001      fi
11002      archive_cmds_need_lc='no'
11003      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11004      hardcode_libdir_separator=:
11005      ;;
11006
11007    osf4* | osf5*)	# as osf3* with the addition of -msym flag
11008      if test yes = "$GCC"; then
11009	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11010	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'
11011	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11012      else
11013	allow_undefined_flag=' -expect_unresolved \*'
11014	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'
11015	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~
11016          $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'
11017
11018	# Both c and cxx compiler support -rpath directly
11019	hardcode_libdir_flag_spec='-rpath $libdir'
11020      fi
11021      archive_cmds_need_lc='no'
11022      hardcode_libdir_separator=:
11023      ;;
11024
11025    solaris*)
11026      no_undefined_flag=' -z defs'
11027      if test yes = "$GCC"; then
11028	wlarc='$wl'
11029	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11030	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11031          $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'
11032      else
11033	case `$CC -V 2>&1` in
11034	*"Compilers 5.0"*)
11035	  wlarc=''
11036	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11037	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11038            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11039	  ;;
11040	*)
11041	  wlarc='$wl'
11042	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11043	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11044            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11045	  ;;
11046	esac
11047      fi
11048      hardcode_libdir_flag_spec='-R$libdir'
11049      hardcode_shlibpath_var=no
11050      case $host_os in
11051      solaris2.[0-5] | solaris2.[0-5].*) ;;
11052      *)
11053	# The compiler driver will combine and reorder linker options,
11054	# but understands '-z linker_flag'.  GCC discards it without '$wl',
11055	# but is careful enough not to reorder.
11056	# Supported since Solaris 2.6 (maybe 2.5.1?)
11057	if test yes = "$GCC"; then
11058	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11059	else
11060	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11061	fi
11062	;;
11063      esac
11064      link_all_deplibs=yes
11065      ;;
11066
11067    sunos4*)
11068      if test sequent = "$host_vendor"; then
11069	# Use $CC to link under sequent, because it throws in some extra .o
11070	# files that make .init and .fini sections work.
11071	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11072      else
11073	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11074      fi
11075      hardcode_libdir_flag_spec='-L$libdir'
11076      hardcode_direct=yes
11077      hardcode_minus_L=yes
11078      hardcode_shlibpath_var=no
11079      ;;
11080
11081    sysv4)
11082      case $host_vendor in
11083	sni)
11084	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11085	  hardcode_direct=yes # is this really true???
11086	;;
11087	siemens)
11088	  ## LD is ld it makes a PLAMLIB
11089	  ## CC just makes a GrossModule.
11090	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11091	  reload_cmds='$CC -r -o $output$reload_objs'
11092	  hardcode_direct=no
11093        ;;
11094	motorola)
11095	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11096	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11097	;;
11098      esac
11099      runpath_var='LD_RUN_PATH'
11100      hardcode_shlibpath_var=no
11101      ;;
11102
11103    sysv4.3*)
11104      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11105      hardcode_shlibpath_var=no
11106      export_dynamic_flag_spec='-Bexport'
11107      ;;
11108
11109    sysv4*MP*)
11110      if test -d /usr/nec; then
11111	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11112	hardcode_shlibpath_var=no
11113	runpath_var=LD_RUN_PATH
11114	hardcode_runpath_var=yes
11115	ld_shlibs=yes
11116      fi
11117      ;;
11118
11119    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11120      no_undefined_flag='$wl-z,text'
11121      archive_cmds_need_lc=no
11122      hardcode_shlibpath_var=no
11123      runpath_var='LD_RUN_PATH'
11124
11125      if test yes = "$GCC"; then
11126	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11127	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11128      else
11129	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11130	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11131      fi
11132      ;;
11133
11134    sysv5* | sco3.2v5* | sco5v6*)
11135      # Note: We CANNOT use -z defs as we might desire, because we do not
11136      # link with -lc, and that would cause any symbols used from libc to
11137      # always be unresolved, which means just about no library would
11138      # ever link correctly.  If we're not using GNU ld we use -z text
11139      # though, which does catch some bad symbols but isn't as heavy-handed
11140      # as -z defs.
11141      no_undefined_flag='$wl-z,text'
11142      allow_undefined_flag='$wl-z,nodefs'
11143      archive_cmds_need_lc=no
11144      hardcode_shlibpath_var=no
11145      hardcode_libdir_flag_spec='$wl-R,$libdir'
11146      hardcode_libdir_separator=':'
11147      link_all_deplibs=yes
11148      export_dynamic_flag_spec='$wl-Bexport'
11149      runpath_var='LD_RUN_PATH'
11150
11151      if test yes = "$GCC"; then
11152	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11153	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11154      else
11155	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11156	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11157      fi
11158      ;;
11159
11160    uts4*)
11161      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11162      hardcode_libdir_flag_spec='-L$libdir'
11163      hardcode_shlibpath_var=no
11164      ;;
11165
11166    *)
11167      ld_shlibs=no
11168      ;;
11169    esac
11170
11171    if test sni = "$host_vendor"; then
11172      case $host in
11173      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11174	export_dynamic_flag_spec='$wl-Blargedynsym'
11175	;;
11176      esac
11177    fi
11178  fi
11179
11180{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11181printf "%s\n" "$ld_shlibs" >&6; }
11182test no = "$ld_shlibs" && can_build_shared=no
11183
11184with_gnu_ld=$with_gnu_ld
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200#
11201# Do we need to explicitly link libc?
11202#
11203case "x$archive_cmds_need_lc" in
11204x|xyes)
11205  # Assume -lc should be added
11206  archive_cmds_need_lc=yes
11207
11208  if test yes,yes = "$GCC,$enable_shared"; then
11209    case $archive_cmds in
11210    *'~'*)
11211      # FIXME: we may have to deal with multi-command sequences.
11212      ;;
11213    '$CC '*)
11214      # Test whether the compiler implicitly links with -lc since on some
11215      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11216      # to ld, don't add -lc before -lgcc.
11217      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11218printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11219if test ${lt_cv_archive_cmds_need_lc+y}
11220then :
11221  printf %s "(cached) " >&6
11222else $as_nop
11223  $RM conftest*
11224	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11225
11226	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11227  (eval $ac_compile) 2>&5
11228  ac_status=$?
11229  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11230  test $ac_status = 0; } 2>conftest.err; then
11231	  soname=conftest
11232	  lib=conftest
11233	  libobjs=conftest.$ac_objext
11234	  deplibs=
11235	  wl=$lt_prog_compiler_wl
11236	  pic_flag=$lt_prog_compiler_pic
11237	  compiler_flags=-v
11238	  linker_flags=-v
11239	  verstring=
11240	  output_objdir=.
11241	  libname=conftest
11242	  lt_save_allow_undefined_flag=$allow_undefined_flag
11243	  allow_undefined_flag=
11244	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11245  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11246  ac_status=$?
11247  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11248  test $ac_status = 0; }
11249	  then
11250	    lt_cv_archive_cmds_need_lc=no
11251	  else
11252	    lt_cv_archive_cmds_need_lc=yes
11253	  fi
11254	  allow_undefined_flag=$lt_save_allow_undefined_flag
11255	else
11256	  cat conftest.err 1>&5
11257	fi
11258	$RM conftest*
11259
11260fi
11261{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11262printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11263      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11264      ;;
11265    esac
11266  fi
11267  ;;
11268esac
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11422printf %s "checking dynamic linker characteristics... " >&6; }
11423
11424if test yes = "$GCC"; then
11425  case $host_os in
11426    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11427    *) lt_awk_arg='/^libraries:/' ;;
11428  esac
11429  case $host_os in
11430    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11431    *) lt_sed_strip_eq='s|=/|/|g' ;;
11432  esac
11433  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11434  case $lt_search_path_spec in
11435  *\;*)
11436    # if the path contains ";" then we assume it to be the separator
11437    # otherwise default to the standard path separator (i.e. ":") - it is
11438    # assumed that no part of a normal pathname contains ";" but that should
11439    # okay in the real world where ";" in dirpaths is itself problematic.
11440    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11441    ;;
11442  *)
11443    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11444    ;;
11445  esac
11446  # Ok, now we have the path, separated by spaces, we can step through it
11447  # and add multilib dir if necessary...
11448  lt_tmp_lt_search_path_spec=
11449  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11450  # ...but if some path component already ends with the multilib dir we assume
11451  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11452  case "$lt_multi_os_dir; $lt_search_path_spec " in
11453  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11454    lt_multi_os_dir=
11455    ;;
11456  esac
11457  for lt_sys_path in $lt_search_path_spec; do
11458    if test -d "$lt_sys_path$lt_multi_os_dir"; then
11459      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11460    elif test -n "$lt_multi_os_dir"; then
11461      test -d "$lt_sys_path" && \
11462	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11463    fi
11464  done
11465  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11466BEGIN {RS = " "; FS = "/|\n";} {
11467  lt_foo = "";
11468  lt_count = 0;
11469  for (lt_i = NF; lt_i > 0; lt_i--) {
11470    if ($lt_i != "" && $lt_i != ".") {
11471      if ($lt_i == "..") {
11472        lt_count++;
11473      } else {
11474        if (lt_count == 0) {
11475          lt_foo = "/" $lt_i lt_foo;
11476        } else {
11477          lt_count--;
11478        }
11479      }
11480    }
11481  }
11482  if (lt_foo != "") { lt_freq[lt_foo]++; }
11483  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11484}'`
11485  # AWK program above erroneously prepends '/' to C:/dos/paths
11486  # for these hosts.
11487  case $host_os in
11488    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11489      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11490  esac
11491  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11492else
11493  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11494fi
11495library_names_spec=
11496libname_spec='lib$name'
11497soname_spec=
11498shrext_cmds=.so
11499postinstall_cmds=
11500postuninstall_cmds=
11501finish_cmds=
11502finish_eval=
11503shlibpath_var=
11504shlibpath_overrides_runpath=unknown
11505version_type=none
11506dynamic_linker="$host_os ld.so"
11507sys_lib_dlsearch_path_spec="/lib /usr/lib"
11508need_lib_prefix=unknown
11509hardcode_into_libs=no
11510
11511# when you set need_version to no, make sure it does not cause -set_version
11512# flags to be left without arguments
11513need_version=unknown
11514
11515
11516
11517case $host_os in
11518aix3*)
11519  version_type=linux # correct to gnu/linux during the next big refactor
11520  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11521  shlibpath_var=LIBPATH
11522
11523  # AIX 3 has no versioning support, so we append a major version to the name.
11524  soname_spec='$libname$release$shared_ext$major'
11525  ;;
11526
11527aix[4-9]*)
11528  version_type=linux # correct to gnu/linux during the next big refactor
11529  need_lib_prefix=no
11530  need_version=no
11531  hardcode_into_libs=yes
11532  if test ia64 = "$host_cpu"; then
11533    # AIX 5 supports IA64
11534    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11535    shlibpath_var=LD_LIBRARY_PATH
11536  else
11537    # With GCC up to 2.95.x, collect2 would create an import file
11538    # for dependence libraries.  The import file would start with
11539    # the line '#! .'.  This would cause the generated library to
11540    # depend on '.', always an invalid library.  This was fixed in
11541    # development snapshots of GCC prior to 3.0.
11542    case $host_os in
11543      aix4 | aix4.[01] | aix4.[01].*)
11544      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11545	   echo ' yes '
11546	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11547	:
11548      else
11549	can_build_shared=no
11550      fi
11551      ;;
11552    esac
11553    # Using Import Files as archive members, it is possible to support
11554    # filename-based versioning of shared library archives on AIX. While
11555    # this would work for both with and without runtime linking, it will
11556    # prevent static linking of such archives. So we do filename-based
11557    # shared library versioning with .so extension only, which is used
11558    # when both runtime linking and shared linking is enabled.
11559    # Unfortunately, runtime linking may impact performance, so we do
11560    # not want this to be the default eventually. Also, we use the
11561    # versioned .so libs for executables only if there is the -brtl
11562    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11563    # To allow for filename-based versioning support, we need to create
11564    # libNAME.so.V as an archive file, containing:
11565    # *) an Import File, referring to the versioned filename of the
11566    #    archive as well as the shared archive member, telling the
11567    #    bitwidth (32 or 64) of that shared object, and providing the
11568    #    list of exported symbols of that shared object, eventually
11569    #    decorated with the 'weak' keyword
11570    # *) the shared object with the F_LOADONLY flag set, to really avoid
11571    #    it being seen by the linker.
11572    # At run time we better use the real file rather than another symlink,
11573    # but for link time we create the symlink libNAME.so -> libNAME.so.V
11574
11575    case $with_aix_soname,$aix_use_runtimelinking in
11576    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11577    # soname into executable. Probably we can add versioning support to
11578    # collect2, so additional links can be useful in future.
11579    aix,yes) # traditional libtool
11580      dynamic_linker='AIX unversionable lib.so'
11581      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11582      # instead of lib<name>.a to let people know that these are not
11583      # typical AIX shared libraries.
11584      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11585      ;;
11586    aix,no) # traditional AIX only
11587      dynamic_linker='AIX lib.a(lib.so.V)'
11588      # We preserve .a as extension for shared libraries through AIX4.2
11589      # and later when we are not doing run time linking.
11590      library_names_spec='$libname$release.a $libname.a'
11591      soname_spec='$libname$release$shared_ext$major'
11592      ;;
11593    svr4,*) # full svr4 only
11594      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11595      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11596      # We do not specify a path in Import Files, so LIBPATH fires.
11597      shlibpath_overrides_runpath=yes
11598      ;;
11599    *,yes) # both, prefer svr4
11600      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11601      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11602      # unpreferred sharedlib libNAME.a needs extra handling
11603      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"'
11604      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"'
11605      # We do not specify a path in Import Files, so LIBPATH fires.
11606      shlibpath_overrides_runpath=yes
11607      ;;
11608    *,no) # both, prefer aix
11609      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11610      library_names_spec='$libname$release.a $libname.a'
11611      soname_spec='$libname$release$shared_ext$major'
11612      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11613      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)'
11614      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"'
11615      ;;
11616    esac
11617    shlibpath_var=LIBPATH
11618  fi
11619  ;;
11620
11621amigaos*)
11622  case $host_cpu in
11623  powerpc)
11624    # Since July 2007 AmigaOS4 officially supports .so libraries.
11625    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11626    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11627    ;;
11628  m68k)
11629    library_names_spec='$libname.ixlibrary $libname.a'
11630    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11631    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'
11632    ;;
11633  esac
11634  ;;
11635
11636beos*)
11637  library_names_spec='$libname$shared_ext'
11638  dynamic_linker="$host_os ld.so"
11639  shlibpath_var=LIBRARY_PATH
11640  ;;
11641
11642bsdi[45]*)
11643  version_type=linux # correct to gnu/linux during the next big refactor
11644  need_version=no
11645  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11646  soname_spec='$libname$release$shared_ext$major'
11647  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11648  shlibpath_var=LD_LIBRARY_PATH
11649  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11650  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11651  # the default ld.so.conf also contains /usr/contrib/lib and
11652  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11653  # libtool to hard-code these into programs
11654  ;;
11655
11656cygwin* | mingw* | pw32* | cegcc*)
11657  version_type=windows
11658  shrext_cmds=.dll
11659  need_version=no
11660  need_lib_prefix=no
11661
11662  case $GCC,$cc_basename in
11663  yes,*)
11664    # gcc
11665    library_names_spec='$libname.dll.a'
11666    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11667    postinstall_cmds='base_file=`basename \$file`~
11668      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11669      dldir=$destdir/`dirname \$dlpath`~
11670      test -d \$dldir || mkdir -p \$dldir~
11671      $install_prog $dir/$dlname \$dldir/$dlname~
11672      chmod a+x \$dldir/$dlname~
11673      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11674        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11675      fi'
11676    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11677      dlpath=$dir/\$dldll~
11678       $RM \$dlpath'
11679    shlibpath_overrides_runpath=yes
11680
11681    case $host_os in
11682    cygwin*)
11683      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11684      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11685
11686      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11687      ;;
11688    mingw* | cegcc*)
11689      # MinGW DLLs use traditional 'lib' prefix
11690      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11691      ;;
11692    pw32*)
11693      # pw32 DLLs use 'pw' prefix rather than 'lib'
11694      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11695      ;;
11696    esac
11697    dynamic_linker='Win32 ld.exe'
11698    ;;
11699
11700  *,cl*)
11701    # Native MSVC
11702    libname_spec='$name'
11703    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11704    library_names_spec='$libname.dll.lib'
11705
11706    case $build_os in
11707    mingw*)
11708      sys_lib_search_path_spec=
11709      lt_save_ifs=$IFS
11710      IFS=';'
11711      for lt_path in $LIB
11712      do
11713        IFS=$lt_save_ifs
11714        # Let DOS variable expansion print the short 8.3 style file name.
11715        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11716        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11717      done
11718      IFS=$lt_save_ifs
11719      # Convert to MSYS style.
11720      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11721      ;;
11722    cygwin*)
11723      # Convert to unix form, then to dos form, then back to unix form
11724      # but this time dos style (no spaces!) so that the unix form looks
11725      # like /cygdrive/c/PROGRA~1:/cygdr...
11726      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11727      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11728      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11729      ;;
11730    *)
11731      sys_lib_search_path_spec=$LIB
11732      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11733        # It is most probably a Windows format PATH.
11734        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11735      else
11736        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11737      fi
11738      # FIXME: find the short name or the path components, as spaces are
11739      # common. (e.g. "Program Files" -> "PROGRA~1")
11740      ;;
11741    esac
11742
11743    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11744    postinstall_cmds='base_file=`basename \$file`~
11745      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11746      dldir=$destdir/`dirname \$dlpath`~
11747      test -d \$dldir || mkdir -p \$dldir~
11748      $install_prog $dir/$dlname \$dldir/$dlname'
11749    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11750      dlpath=$dir/\$dldll~
11751       $RM \$dlpath'
11752    shlibpath_overrides_runpath=yes
11753    dynamic_linker='Win32 link.exe'
11754    ;;
11755
11756  *)
11757    # Assume MSVC wrapper
11758    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11759    dynamic_linker='Win32 ld.exe'
11760    ;;
11761  esac
11762  # FIXME: first we should search . and the directory the executable is in
11763  shlibpath_var=PATH
11764  ;;
11765
11766darwin* | rhapsody*)
11767  dynamic_linker="$host_os dyld"
11768  version_type=darwin
11769  need_lib_prefix=no
11770  need_version=no
11771  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11772  soname_spec='$libname$release$major$shared_ext'
11773  shlibpath_overrides_runpath=yes
11774  shlibpath_var=DYLD_LIBRARY_PATH
11775  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11776
11777  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11778  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11779  ;;
11780
11781dgux*)
11782  version_type=linux # correct to gnu/linux during the next big refactor
11783  need_lib_prefix=no
11784  need_version=no
11785  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11786  soname_spec='$libname$release$shared_ext$major'
11787  shlibpath_var=LD_LIBRARY_PATH
11788  ;;
11789
11790freebsd* | dragonfly*)
11791  # DragonFly does not have aout.  When/if they implement a new
11792  # versioning mechanism, adjust this.
11793  if test -x /usr/bin/objformat; then
11794    objformat=`/usr/bin/objformat`
11795  else
11796    case $host_os in
11797    freebsd[23].*) objformat=aout ;;
11798    *) objformat=elf ;;
11799    esac
11800  fi
11801  version_type=freebsd-$objformat
11802  case $version_type in
11803    freebsd-elf*)
11804      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11805      soname_spec='$libname$release$shared_ext$major'
11806      need_version=no
11807      need_lib_prefix=no
11808      ;;
11809    freebsd-*)
11810      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11811      need_version=yes
11812      ;;
11813  esac
11814  shlibpath_var=LD_LIBRARY_PATH
11815  case $host_os in
11816  freebsd2.*)
11817    shlibpath_overrides_runpath=yes
11818    ;;
11819  freebsd3.[01]* | freebsdelf3.[01]*)
11820    shlibpath_overrides_runpath=yes
11821    hardcode_into_libs=yes
11822    ;;
11823  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11824  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11825    shlibpath_overrides_runpath=no
11826    hardcode_into_libs=yes
11827    ;;
11828  *) # from 4.6 on, and DragonFly
11829    shlibpath_overrides_runpath=yes
11830    hardcode_into_libs=yes
11831    ;;
11832  esac
11833  ;;
11834
11835haiku*)
11836  version_type=linux # correct to gnu/linux during the next big refactor
11837  need_lib_prefix=no
11838  need_version=no
11839  dynamic_linker="$host_os runtime_loader"
11840  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11841  soname_spec='$libname$release$shared_ext$major'
11842  shlibpath_var=LIBRARY_PATH
11843  shlibpath_overrides_runpath=no
11844  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11845  hardcode_into_libs=yes
11846  ;;
11847
11848hpux9* | hpux10* | hpux11*)
11849  # Give a soname corresponding to the major version so that dld.sl refuses to
11850  # link against other versions.
11851  version_type=sunos
11852  need_lib_prefix=no
11853  need_version=no
11854  case $host_cpu in
11855  ia64*)
11856    shrext_cmds='.so'
11857    hardcode_into_libs=yes
11858    dynamic_linker="$host_os dld.so"
11859    shlibpath_var=LD_LIBRARY_PATH
11860    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11861    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11862    soname_spec='$libname$release$shared_ext$major'
11863    if test 32 = "$HPUX_IA64_MODE"; then
11864      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11865      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11866    else
11867      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11868      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11869    fi
11870    ;;
11871  hppa*64*)
11872    shrext_cmds='.sl'
11873    hardcode_into_libs=yes
11874    dynamic_linker="$host_os dld.sl"
11875    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11876    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11877    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11878    soname_spec='$libname$release$shared_ext$major'
11879    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11880    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11881    ;;
11882  *)
11883    shrext_cmds='.sl'
11884    dynamic_linker="$host_os dld.sl"
11885    shlibpath_var=SHLIB_PATH
11886    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11887    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11888    soname_spec='$libname$release$shared_ext$major'
11889    ;;
11890  esac
11891  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11892  postinstall_cmds='chmod 555 $lib'
11893  # or fails outright, so override atomically:
11894  install_override_mode=555
11895  ;;
11896
11897interix[3-9]*)
11898  version_type=linux # correct to gnu/linux during the next big refactor
11899  need_lib_prefix=no
11900  need_version=no
11901  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11902  soname_spec='$libname$release$shared_ext$major'
11903  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11904  shlibpath_var=LD_LIBRARY_PATH
11905  shlibpath_overrides_runpath=no
11906  hardcode_into_libs=yes
11907  ;;
11908
11909irix5* | irix6* | nonstopux*)
11910  case $host_os in
11911    nonstopux*) version_type=nonstopux ;;
11912    *)
11913	if test yes = "$lt_cv_prog_gnu_ld"; then
11914		version_type=linux # correct to gnu/linux during the next big refactor
11915	else
11916		version_type=irix
11917	fi ;;
11918  esac
11919  need_lib_prefix=no
11920  need_version=no
11921  soname_spec='$libname$release$shared_ext$major'
11922  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11923  case $host_os in
11924  irix5* | nonstopux*)
11925    libsuff= shlibsuff=
11926    ;;
11927  *)
11928    case $LD in # libtool.m4 will add one of these switches to LD
11929    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11930      libsuff= shlibsuff= libmagic=32-bit;;
11931    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11932      libsuff=32 shlibsuff=N32 libmagic=N32;;
11933    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11934      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11935    *) libsuff= shlibsuff= libmagic=never-match;;
11936    esac
11937    ;;
11938  esac
11939  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11940  shlibpath_overrides_runpath=no
11941  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11942  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11943  hardcode_into_libs=yes
11944  ;;
11945
11946# No shared lib support for Linux oldld, aout, or coff.
11947linux*oldld* | linux*aout* | linux*coff*)
11948  dynamic_linker=no
11949  ;;
11950
11951linux*android*)
11952  version_type=none # Android doesn't support versioned libraries.
11953  need_lib_prefix=no
11954  need_version=no
11955  library_names_spec='$libname$release$shared_ext'
11956  soname_spec='$libname$release$shared_ext'
11957  finish_cmds=
11958  shlibpath_var=LD_LIBRARY_PATH
11959  shlibpath_overrides_runpath=yes
11960
11961  # This implies no fast_install, which is unacceptable.
11962  # Some rework will be needed to allow for fast_install
11963  # before this can be enabled.
11964  hardcode_into_libs=yes
11965
11966  dynamic_linker='Android linker'
11967  # Don't embed -rpath directories since the linker doesn't support them.
11968  hardcode_libdir_flag_spec='-L$libdir'
11969  ;;
11970
11971# This must be glibc/ELF.
11972linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11973  version_type=linux # correct to gnu/linux during the next big refactor
11974  need_lib_prefix=no
11975  need_version=no
11976  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11977  soname_spec='$libname$release$shared_ext$major'
11978  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11979  shlibpath_var=LD_LIBRARY_PATH
11980  shlibpath_overrides_runpath=no
11981
11982  # Some binutils ld are patched to set DT_RUNPATH
11983  if test ${lt_cv_shlibpath_overrides_runpath+y}
11984then :
11985  printf %s "(cached) " >&6
11986else $as_nop
11987  lt_cv_shlibpath_overrides_runpath=no
11988    save_LDFLAGS=$LDFLAGS
11989    save_libdir=$libdir
11990    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11991	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11992    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11993/* end confdefs.h.  */
11994
11995int
11996main (void)
11997{
11998
11999  ;
12000  return 0;
12001}
12002_ACEOF
12003if ac_fn_c_try_link "$LINENO"
12004then :
12005  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
12006then :
12007  lt_cv_shlibpath_overrides_runpath=yes
12008fi
12009fi
12010rm -f core conftest.err conftest.$ac_objext conftest.beam \
12011    conftest$ac_exeext conftest.$ac_ext
12012    LDFLAGS=$save_LDFLAGS
12013    libdir=$save_libdir
12014
12015fi
12016
12017  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12018
12019  # This implies no fast_install, which is unacceptable.
12020  # Some rework will be needed to allow for fast_install
12021  # before this can be enabled.
12022  hardcode_into_libs=yes
12023
12024  # Ideally, we could use ldconfig to report *all* directores which are
12025  # searched for libraries, however this is still not possible.  Aside from not
12026  # being certain /sbin/ldconfig is available, command
12027  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12028  # even though it is searched at run-time.  Try to do the best guess by
12029  # appending ld.so.conf contents (and includes) to the search path.
12030  if test -f /etc/ld.so.conf; then
12031    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' ' '`
12032    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12033  fi
12034
12035  # We used to test for /lib/ld.so.1 and disable shared libraries on
12036  # powerpc, because MkLinux only supported shared libraries with the
12037  # GNU dynamic linker.  Since this was broken with cross compilers,
12038  # most powerpc-linux boxes support dynamic linking these days and
12039  # people can always --disable-shared, the test was removed, and we
12040  # assume the GNU/Linux dynamic linker is in use.
12041  dynamic_linker='GNU/Linux ld.so'
12042  ;;
12043
12044netbsd*)
12045  version_type=sunos
12046  need_lib_prefix=no
12047  need_version=no
12048  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12049    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12050    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12051    dynamic_linker='NetBSD (a.out) ld.so'
12052  else
12053    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12054    soname_spec='$libname$release$shared_ext$major'
12055    dynamic_linker='NetBSD ld.elf_so'
12056  fi
12057  shlibpath_var=LD_LIBRARY_PATH
12058  shlibpath_overrides_runpath=yes
12059  hardcode_into_libs=yes
12060  ;;
12061
12062newsos6)
12063  version_type=linux # correct to gnu/linux during the next big refactor
12064  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12065  shlibpath_var=LD_LIBRARY_PATH
12066  shlibpath_overrides_runpath=yes
12067  ;;
12068
12069*nto* | *qnx*)
12070  version_type=qnx
12071  need_lib_prefix=no
12072  need_version=no
12073  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12074  soname_spec='$libname$release$shared_ext$major'
12075  shlibpath_var=LD_LIBRARY_PATH
12076  shlibpath_overrides_runpath=no
12077  hardcode_into_libs=yes
12078  dynamic_linker='ldqnx.so'
12079  ;;
12080
12081openbsd* | bitrig*)
12082  version_type=sunos
12083  sys_lib_dlsearch_path_spec=/usr/lib
12084  need_lib_prefix=no
12085  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12086    need_version=no
12087  else
12088    need_version=yes
12089  fi
12090  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12091  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12092  shlibpath_var=LD_LIBRARY_PATH
12093  shlibpath_overrides_runpath=yes
12094  ;;
12095
12096os2*)
12097  libname_spec='$name'
12098  version_type=windows
12099  shrext_cmds=.dll
12100  need_version=no
12101  need_lib_prefix=no
12102  # OS/2 can only load a DLL with a base name of 8 characters or less.
12103  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12104    v=$($ECHO $release$versuffix | tr -d .-);
12105    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12106    $ECHO $n$v`$shared_ext'
12107  library_names_spec='${libname}_dll.$libext'
12108  dynamic_linker='OS/2 ld.exe'
12109  shlibpath_var=BEGINLIBPATH
12110  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12111  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12112  postinstall_cmds='base_file=`basename \$file`~
12113    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12114    dldir=$destdir/`dirname \$dlpath`~
12115    test -d \$dldir || mkdir -p \$dldir~
12116    $install_prog $dir/$dlname \$dldir/$dlname~
12117    chmod a+x \$dldir/$dlname~
12118    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12119      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12120    fi'
12121  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12122    dlpath=$dir/\$dldll~
12123    $RM \$dlpath'
12124  ;;
12125
12126osf3* | osf4* | osf5*)
12127  version_type=osf
12128  need_lib_prefix=no
12129  need_version=no
12130  soname_spec='$libname$release$shared_ext$major'
12131  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12132  shlibpath_var=LD_LIBRARY_PATH
12133  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12134  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12135  ;;
12136
12137rdos*)
12138  dynamic_linker=no
12139  ;;
12140
12141solaris*)
12142  version_type=linux # correct to gnu/linux during the next big refactor
12143  need_lib_prefix=no
12144  need_version=no
12145  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12146  soname_spec='$libname$release$shared_ext$major'
12147  shlibpath_var=LD_LIBRARY_PATH
12148  shlibpath_overrides_runpath=yes
12149  hardcode_into_libs=yes
12150  # ldd complains unless libraries are executable
12151  postinstall_cmds='chmod +x $lib'
12152  if test 32 = "$SOLARIS_ISA_BITS"; then
12153    sys_lib_search_path_spec="/lib /usr/lib"
12154  else
12155    sys_lib_search_path_spec="/lib/64 /usr/lib/64"
12156  fi
12157  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12158  ;;
12159
12160sunos4*)
12161  version_type=sunos
12162  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12163  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12164  shlibpath_var=LD_LIBRARY_PATH
12165  shlibpath_overrides_runpath=yes
12166  if test yes = "$with_gnu_ld"; then
12167    need_lib_prefix=no
12168  fi
12169  need_version=yes
12170  ;;
12171
12172sysv4 | sysv4.3*)
12173  version_type=linux # correct to gnu/linux during the next big refactor
12174  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12175  soname_spec='$libname$release$shared_ext$major'
12176  shlibpath_var=LD_LIBRARY_PATH
12177  case $host_vendor in
12178    sni)
12179      shlibpath_overrides_runpath=no
12180      need_lib_prefix=no
12181      runpath_var=LD_RUN_PATH
12182      ;;
12183    siemens)
12184      need_lib_prefix=no
12185      ;;
12186    motorola)
12187      need_lib_prefix=no
12188      need_version=no
12189      shlibpath_overrides_runpath=no
12190      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12191      ;;
12192  esac
12193  ;;
12194
12195sysv4*MP*)
12196  if test -d /usr/nec; then
12197    version_type=linux # correct to gnu/linux during the next big refactor
12198    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12199    soname_spec='$libname$shared_ext.$major'
12200    shlibpath_var=LD_LIBRARY_PATH
12201  fi
12202  ;;
12203
12204sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12205  version_type=sco
12206  need_lib_prefix=no
12207  need_version=no
12208  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12209  soname_spec='$libname$release$shared_ext$major'
12210  shlibpath_var=LD_LIBRARY_PATH
12211  shlibpath_overrides_runpath=yes
12212  hardcode_into_libs=yes
12213  if test yes = "$with_gnu_ld"; then
12214    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12215  else
12216    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12217    case $host_os in
12218      sco3.2v5*)
12219        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12220	;;
12221    esac
12222  fi
12223  sys_lib_dlsearch_path_spec='/usr/lib'
12224  ;;
12225
12226tpf*)
12227  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12228  version_type=linux # correct to gnu/linux during the next big refactor
12229  need_lib_prefix=no
12230  need_version=no
12231  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12232  shlibpath_var=LD_LIBRARY_PATH
12233  shlibpath_overrides_runpath=no
12234  hardcode_into_libs=yes
12235  ;;
12236
12237uts4*)
12238  version_type=linux # correct to gnu/linux during the next big refactor
12239  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12240  soname_spec='$libname$release$shared_ext$major'
12241  shlibpath_var=LD_LIBRARY_PATH
12242  ;;
12243
12244*)
12245  dynamic_linker=no
12246  ;;
12247esac
12248{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12249printf "%s\n" "$dynamic_linker" >&6; }
12250test no = "$dynamic_linker" && can_build_shared=no
12251
12252variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12253if test yes = "$GCC"; then
12254  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12255fi
12256
12257if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12258  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12259fi
12260
12261if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12262  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12263fi
12264
12265# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12266configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12267
12268# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12269func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12270
12271# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12272configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12273
12274
12275
12276
12277
12278
12279
12280
12281
12282
12283
12284
12285
12286
12287
12288
12289
12290
12291
12292
12293
12294
12295
12296
12297
12298
12299
12300
12301
12302
12303
12304
12305
12306
12307
12308
12309
12310
12311
12312
12313
12314
12315
12316
12317
12318
12319
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340
12341
12342
12343
12344
12345
12346
12347
12348
12349
12350
12351
12352
12353
12354
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368
12369
12370  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12371printf %s "checking how to hardcode library paths into programs... " >&6; }
12372hardcode_action=
12373if test -n "$hardcode_libdir_flag_spec" ||
12374   test -n "$runpath_var" ||
12375   test yes = "$hardcode_automatic"; then
12376
12377  # We can hardcode non-existent directories.
12378  if test no != "$hardcode_direct" &&
12379     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12380     # have to relink, otherwise we might link with an installed library
12381     # when we should be linking with a yet-to-be-installed one
12382     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12383     test no != "$hardcode_minus_L"; then
12384    # Linking always hardcodes the temporary library directory.
12385    hardcode_action=relink
12386  else
12387    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12388    hardcode_action=immediate
12389  fi
12390else
12391  # We cannot hardcode anything, or else we can only hardcode existing
12392  # directories.
12393  hardcode_action=unsupported
12394fi
12395{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12396printf "%s\n" "$hardcode_action" >&6; }
12397
12398if test relink = "$hardcode_action" ||
12399   test yes = "$inherit_rpath"; then
12400  # Fast installation is not supported
12401  enable_fast_install=no
12402elif test yes = "$shlibpath_overrides_runpath" ||
12403     test no = "$enable_shared"; then
12404  # Fast installation is not necessary
12405  enable_fast_install=needless
12406fi
12407
12408
12409
12410
12411
12412
12413  if test yes != "$enable_dlopen"; then
12414  enable_dlopen=unknown
12415  enable_dlopen_self=unknown
12416  enable_dlopen_self_static=unknown
12417else
12418  lt_cv_dlopen=no
12419  lt_cv_dlopen_libs=
12420
12421  case $host_os in
12422  beos*)
12423    lt_cv_dlopen=load_add_on
12424    lt_cv_dlopen_libs=
12425    lt_cv_dlopen_self=yes
12426    ;;
12427
12428  mingw* | pw32* | cegcc*)
12429    lt_cv_dlopen=LoadLibrary
12430    lt_cv_dlopen_libs=
12431    ;;
12432
12433  cygwin*)
12434    lt_cv_dlopen=dlopen
12435    lt_cv_dlopen_libs=
12436    ;;
12437
12438  darwin*)
12439    # if libdl is installed we need to link against it
12440    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12441printf %s "checking for dlopen in -ldl... " >&6; }
12442if test ${ac_cv_lib_dl_dlopen+y}
12443then :
12444  printf %s "(cached) " >&6
12445else $as_nop
12446  ac_check_lib_save_LIBS=$LIBS
12447LIBS="-ldl  $LIBS"
12448cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12449/* end confdefs.h.  */
12450
12451/* Override any GCC internal prototype to avoid an error.
12452   Use char because int might match the return type of a GCC
12453   builtin and then its argument prototype would still apply.  */
12454char dlopen ();
12455int
12456main (void)
12457{
12458return dlopen ();
12459  ;
12460  return 0;
12461}
12462_ACEOF
12463if ac_fn_c_try_link "$LINENO"
12464then :
12465  ac_cv_lib_dl_dlopen=yes
12466else $as_nop
12467  ac_cv_lib_dl_dlopen=no
12468fi
12469rm -f core conftest.err conftest.$ac_objext conftest.beam \
12470    conftest$ac_exeext conftest.$ac_ext
12471LIBS=$ac_check_lib_save_LIBS
12472fi
12473{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12474printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12475if test "x$ac_cv_lib_dl_dlopen" = xyes
12476then :
12477  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12478else $as_nop
12479
12480    lt_cv_dlopen=dyld
12481    lt_cv_dlopen_libs=
12482    lt_cv_dlopen_self=yes
12483
12484fi
12485
12486    ;;
12487
12488  tpf*)
12489    # Don't try to run any link tests for TPF.  We know it's impossible
12490    # because TPF is a cross-compiler, and we know how we open DSOs.
12491    lt_cv_dlopen=dlopen
12492    lt_cv_dlopen_libs=
12493    lt_cv_dlopen_self=no
12494    ;;
12495
12496  *)
12497    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12498if test "x$ac_cv_func_shl_load" = xyes
12499then :
12500  lt_cv_dlopen=shl_load
12501else $as_nop
12502  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12503printf %s "checking for shl_load in -ldld... " >&6; }
12504if test ${ac_cv_lib_dld_shl_load+y}
12505then :
12506  printf %s "(cached) " >&6
12507else $as_nop
12508  ac_check_lib_save_LIBS=$LIBS
12509LIBS="-ldld  $LIBS"
12510cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12511/* end confdefs.h.  */
12512
12513/* Override any GCC internal prototype to avoid an error.
12514   Use char because int might match the return type of a GCC
12515   builtin and then its argument prototype would still apply.  */
12516char shl_load ();
12517int
12518main (void)
12519{
12520return shl_load ();
12521  ;
12522  return 0;
12523}
12524_ACEOF
12525if ac_fn_c_try_link "$LINENO"
12526then :
12527  ac_cv_lib_dld_shl_load=yes
12528else $as_nop
12529  ac_cv_lib_dld_shl_load=no
12530fi
12531rm -f core conftest.err conftest.$ac_objext conftest.beam \
12532    conftest$ac_exeext conftest.$ac_ext
12533LIBS=$ac_check_lib_save_LIBS
12534fi
12535{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12536printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12537if test "x$ac_cv_lib_dld_shl_load" = xyes
12538then :
12539  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12540else $as_nop
12541  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12542if test "x$ac_cv_func_dlopen" = xyes
12543then :
12544  lt_cv_dlopen=dlopen
12545else $as_nop
12546  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12547printf %s "checking for dlopen in -ldl... " >&6; }
12548if test ${ac_cv_lib_dl_dlopen+y}
12549then :
12550  printf %s "(cached) " >&6
12551else $as_nop
12552  ac_check_lib_save_LIBS=$LIBS
12553LIBS="-ldl  $LIBS"
12554cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12555/* end confdefs.h.  */
12556
12557/* Override any GCC internal prototype to avoid an error.
12558   Use char because int might match the return type of a GCC
12559   builtin and then its argument prototype would still apply.  */
12560char dlopen ();
12561int
12562main (void)
12563{
12564return dlopen ();
12565  ;
12566  return 0;
12567}
12568_ACEOF
12569if ac_fn_c_try_link "$LINENO"
12570then :
12571  ac_cv_lib_dl_dlopen=yes
12572else $as_nop
12573  ac_cv_lib_dl_dlopen=no
12574fi
12575rm -f core conftest.err conftest.$ac_objext conftest.beam \
12576    conftest$ac_exeext conftest.$ac_ext
12577LIBS=$ac_check_lib_save_LIBS
12578fi
12579{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12580printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12581if test "x$ac_cv_lib_dl_dlopen" = xyes
12582then :
12583  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12584else $as_nop
12585  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12586printf %s "checking for dlopen in -lsvld... " >&6; }
12587if test ${ac_cv_lib_svld_dlopen+y}
12588then :
12589  printf %s "(cached) " >&6
12590else $as_nop
12591  ac_check_lib_save_LIBS=$LIBS
12592LIBS="-lsvld  $LIBS"
12593cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12594/* end confdefs.h.  */
12595
12596/* Override any GCC internal prototype to avoid an error.
12597   Use char because int might match the return type of a GCC
12598   builtin and then its argument prototype would still apply.  */
12599char dlopen ();
12600int
12601main (void)
12602{
12603return dlopen ();
12604  ;
12605  return 0;
12606}
12607_ACEOF
12608if ac_fn_c_try_link "$LINENO"
12609then :
12610  ac_cv_lib_svld_dlopen=yes
12611else $as_nop
12612  ac_cv_lib_svld_dlopen=no
12613fi
12614rm -f core conftest.err conftest.$ac_objext conftest.beam \
12615    conftest$ac_exeext conftest.$ac_ext
12616LIBS=$ac_check_lib_save_LIBS
12617fi
12618{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12619printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12620if test "x$ac_cv_lib_svld_dlopen" = xyes
12621then :
12622  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12623else $as_nop
12624  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12625printf %s "checking for dld_link in -ldld... " >&6; }
12626if test ${ac_cv_lib_dld_dld_link+y}
12627then :
12628  printf %s "(cached) " >&6
12629else $as_nop
12630  ac_check_lib_save_LIBS=$LIBS
12631LIBS="-ldld  $LIBS"
12632cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12633/* end confdefs.h.  */
12634
12635/* Override any GCC internal prototype to avoid an error.
12636   Use char because int might match the return type of a GCC
12637   builtin and then its argument prototype would still apply.  */
12638char dld_link ();
12639int
12640main (void)
12641{
12642return dld_link ();
12643  ;
12644  return 0;
12645}
12646_ACEOF
12647if ac_fn_c_try_link "$LINENO"
12648then :
12649  ac_cv_lib_dld_dld_link=yes
12650else $as_nop
12651  ac_cv_lib_dld_dld_link=no
12652fi
12653rm -f core conftest.err conftest.$ac_objext conftest.beam \
12654    conftest$ac_exeext conftest.$ac_ext
12655LIBS=$ac_check_lib_save_LIBS
12656fi
12657{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12658printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12659if test "x$ac_cv_lib_dld_dld_link" = xyes
12660then :
12661  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12662fi
12663
12664
12665fi
12666
12667
12668fi
12669
12670
12671fi
12672
12673
12674fi
12675
12676
12677fi
12678
12679    ;;
12680  esac
12681
12682  if test no = "$lt_cv_dlopen"; then
12683    enable_dlopen=no
12684  else
12685    enable_dlopen=yes
12686  fi
12687
12688  case $lt_cv_dlopen in
12689  dlopen)
12690    save_CPPFLAGS=$CPPFLAGS
12691    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12692
12693    save_LDFLAGS=$LDFLAGS
12694    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12695
12696    save_LIBS=$LIBS
12697    LIBS="$lt_cv_dlopen_libs $LIBS"
12698
12699    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12700printf %s "checking whether a program can dlopen itself... " >&6; }
12701if test ${lt_cv_dlopen_self+y}
12702then :
12703  printf %s "(cached) " >&6
12704else $as_nop
12705  	  if test yes = "$cross_compiling"; then :
12706  lt_cv_dlopen_self=cross
12707else
12708  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12709  lt_status=$lt_dlunknown
12710  cat > conftest.$ac_ext <<_LT_EOF
12711#line $LINENO "configure"
12712#include "confdefs.h"
12713
12714#if HAVE_DLFCN_H
12715#include <dlfcn.h>
12716#endif
12717
12718#include <stdio.h>
12719
12720#ifdef RTLD_GLOBAL
12721#  define LT_DLGLOBAL		RTLD_GLOBAL
12722#else
12723#  ifdef DL_GLOBAL
12724#    define LT_DLGLOBAL		DL_GLOBAL
12725#  else
12726#    define LT_DLGLOBAL		0
12727#  endif
12728#endif
12729
12730/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12731   find out it does not work in some platform. */
12732#ifndef LT_DLLAZY_OR_NOW
12733#  ifdef RTLD_LAZY
12734#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12735#  else
12736#    ifdef DL_LAZY
12737#      define LT_DLLAZY_OR_NOW		DL_LAZY
12738#    else
12739#      ifdef RTLD_NOW
12740#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12741#      else
12742#        ifdef DL_NOW
12743#          define LT_DLLAZY_OR_NOW	DL_NOW
12744#        else
12745#          define LT_DLLAZY_OR_NOW	0
12746#        endif
12747#      endif
12748#    endif
12749#  endif
12750#endif
12751
12752/* When -fvisibility=hidden is used, assume the code has been annotated
12753   correspondingly for the symbols needed.  */
12754#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12755int fnord () __attribute__((visibility("default")));
12756#endif
12757
12758int fnord () { return 42; }
12759int main ()
12760{
12761  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12762  int status = $lt_dlunknown;
12763
12764  if (self)
12765    {
12766      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12767      else
12768        {
12769	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12770          else puts (dlerror ());
12771	}
12772      /* dlclose (self); */
12773    }
12774  else
12775    puts (dlerror ());
12776
12777  return status;
12778}
12779_LT_EOF
12780  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12781  (eval $ac_link) 2>&5
12782  ac_status=$?
12783  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12784  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12785    (./conftest; exit; ) >&5 2>/dev/null
12786    lt_status=$?
12787    case x$lt_status in
12788      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12789      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12790      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12791    esac
12792  else :
12793    # compilation failed
12794    lt_cv_dlopen_self=no
12795  fi
12796fi
12797rm -fr conftest*
12798
12799
12800fi
12801{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12802printf "%s\n" "$lt_cv_dlopen_self" >&6; }
12803
12804    if test yes = "$lt_cv_dlopen_self"; then
12805      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12806      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12807printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
12808if test ${lt_cv_dlopen_self_static+y}
12809then :
12810  printf %s "(cached) " >&6
12811else $as_nop
12812  	  if test yes = "$cross_compiling"; then :
12813  lt_cv_dlopen_self_static=cross
12814else
12815  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12816  lt_status=$lt_dlunknown
12817  cat > conftest.$ac_ext <<_LT_EOF
12818#line $LINENO "configure"
12819#include "confdefs.h"
12820
12821#if HAVE_DLFCN_H
12822#include <dlfcn.h>
12823#endif
12824
12825#include <stdio.h>
12826
12827#ifdef RTLD_GLOBAL
12828#  define LT_DLGLOBAL		RTLD_GLOBAL
12829#else
12830#  ifdef DL_GLOBAL
12831#    define LT_DLGLOBAL		DL_GLOBAL
12832#  else
12833#    define LT_DLGLOBAL		0
12834#  endif
12835#endif
12836
12837/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12838   find out it does not work in some platform. */
12839#ifndef LT_DLLAZY_OR_NOW
12840#  ifdef RTLD_LAZY
12841#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12842#  else
12843#    ifdef DL_LAZY
12844#      define LT_DLLAZY_OR_NOW		DL_LAZY
12845#    else
12846#      ifdef RTLD_NOW
12847#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12848#      else
12849#        ifdef DL_NOW
12850#          define LT_DLLAZY_OR_NOW	DL_NOW
12851#        else
12852#          define LT_DLLAZY_OR_NOW	0
12853#        endif
12854#      endif
12855#    endif
12856#  endif
12857#endif
12858
12859/* When -fvisibility=hidden is used, assume the code has been annotated
12860   correspondingly for the symbols needed.  */
12861#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12862int fnord () __attribute__((visibility("default")));
12863#endif
12864
12865int fnord () { return 42; }
12866int main ()
12867{
12868  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12869  int status = $lt_dlunknown;
12870
12871  if (self)
12872    {
12873      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12874      else
12875        {
12876	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12877          else puts (dlerror ());
12878	}
12879      /* dlclose (self); */
12880    }
12881  else
12882    puts (dlerror ());
12883
12884  return status;
12885}
12886_LT_EOF
12887  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12888  (eval $ac_link) 2>&5
12889  ac_status=$?
12890  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12891  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12892    (./conftest; exit; ) >&5 2>/dev/null
12893    lt_status=$?
12894    case x$lt_status in
12895      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12896      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12897      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12898    esac
12899  else :
12900    # compilation failed
12901    lt_cv_dlopen_self_static=no
12902  fi
12903fi
12904rm -fr conftest*
12905
12906
12907fi
12908{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12909printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
12910    fi
12911
12912    CPPFLAGS=$save_CPPFLAGS
12913    LDFLAGS=$save_LDFLAGS
12914    LIBS=$save_LIBS
12915    ;;
12916  esac
12917
12918  case $lt_cv_dlopen_self in
12919  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12920  *) enable_dlopen_self=unknown ;;
12921  esac
12922
12923  case $lt_cv_dlopen_self_static in
12924  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12925  *) enable_dlopen_self_static=unknown ;;
12926  esac
12927fi
12928
12929
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942
12943
12944
12945striplib=
12946old_striplib=
12947{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12948printf %s "checking whether stripping libraries is possible... " >&6; }
12949if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12950  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12951  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12952  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12953printf "%s\n" "yes" >&6; }
12954else
12955# FIXME - insert some real tests, host_os isn't really good enough
12956  case $host_os in
12957  darwin*)
12958    if test -n "$STRIP"; then
12959      striplib="$STRIP -x"
12960      old_striplib="$STRIP -S"
12961      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12962printf "%s\n" "yes" >&6; }
12963    else
12964      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12965printf "%s\n" "no" >&6; }
12966    fi
12967    ;;
12968  *)
12969    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12970printf "%s\n" "no" >&6; }
12971    ;;
12972  esac
12973fi
12974
12975
12976
12977
12978
12979
12980
12981
12982
12983
12984
12985
12986  # Report what library types will actually be built
12987  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12988printf %s "checking if libtool supports shared libraries... " >&6; }
12989  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12990printf "%s\n" "$can_build_shared" >&6; }
12991
12992  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12993printf %s "checking whether to build shared libraries... " >&6; }
12994  test no = "$can_build_shared" && enable_shared=no
12995
12996  # On AIX, shared libraries and static libraries use the same namespace, and
12997  # are all built from PIC.
12998  case $host_os in
12999  aix3*)
13000    test yes = "$enable_shared" && enable_static=no
13001    if test -n "$RANLIB"; then
13002      archive_cmds="$archive_cmds~\$RANLIB \$lib"
13003      postinstall_cmds='$RANLIB $lib'
13004    fi
13005    ;;
13006
13007  aix[4-9]*)
13008    if test ia64 != "$host_cpu"; then
13009      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13010      yes,aix,yes) ;;			# shared object as lib.so file only
13011      yes,svr4,*) ;;			# shared object as lib.so archive member only
13012      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
13013      esac
13014    fi
13015    ;;
13016  esac
13017  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13018printf "%s\n" "$enable_shared" >&6; }
13019
13020  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13021printf %s "checking whether to build static libraries... " >&6; }
13022  # Make sure either enable_shared or enable_static is yes.
13023  test yes = "$enable_shared" || enable_static=yes
13024  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13025printf "%s\n" "$enable_static" >&6; }
13026
13027
13028
13029
13030fi
13031ac_ext=c
13032ac_cpp='$CPP $CPPFLAGS'
13033ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13034ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13035ac_compiler_gnu=$ac_cv_c_compiler_gnu
13036
13037CC=$lt_save_CC
13038
13039
13040
13041
13042
13043
13044
13045
13046
13047
13048
13049
13050
13051
13052
13053        ac_config_commands="$ac_config_commands libtool"
13054
13055
13056
13057
13058# Only expand once:
13059
13060
13061
13062# Check whether --enable-largefile was given.
13063if test ${enable_largefile+y}
13064then :
13065  enableval=$enable_largefile;
13066fi
13067
13068if test "$enable_largefile" != no; then
13069
13070  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
13071printf %s "checking for special C compiler options needed for large files... " >&6; }
13072if test ${ac_cv_sys_largefile_CC+y}
13073then :
13074  printf %s "(cached) " >&6
13075else $as_nop
13076  ac_cv_sys_largefile_CC=no
13077     if test "$GCC" != yes; then
13078       ac_save_CC=$CC
13079       while :; do
13080	 # IRIX 6.2 and later do not support large files by default,
13081	 # so use the C compiler's -n32 option if that helps.
13082	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13083/* end confdefs.h.  */
13084#include <sys/types.h>
13085 /* Check that off_t can represent 2**63 - 1 correctly.
13086    We can't simply define LARGE_OFF_T to be 9223372036854775807,
13087    since some C++ compilers masquerading as C compilers
13088    incorrectly reject 9223372036854775807.  */
13089#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
13090  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13091		       && LARGE_OFF_T % 2147483647 == 1)
13092		      ? 1 : -1];
13093int
13094main (void)
13095{
13096
13097  ;
13098  return 0;
13099}
13100_ACEOF
13101	 if ac_fn_c_try_compile "$LINENO"
13102then :
13103  break
13104fi
13105rm -f core conftest.err conftest.$ac_objext conftest.beam
13106	 CC="$CC -n32"
13107	 if ac_fn_c_try_compile "$LINENO"
13108then :
13109  ac_cv_sys_largefile_CC=' -n32'; break
13110fi
13111rm -f core conftest.err conftest.$ac_objext conftest.beam
13112	 break
13113       done
13114       CC=$ac_save_CC
13115       rm -f conftest.$ac_ext
13116    fi
13117fi
13118{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
13119printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
13120  if test "$ac_cv_sys_largefile_CC" != no; then
13121    CC=$CC$ac_cv_sys_largefile_CC
13122  fi
13123
13124  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
13125printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
13126if test ${ac_cv_sys_file_offset_bits+y}
13127then :
13128  printf %s "(cached) " >&6
13129else $as_nop
13130  while :; do
13131  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13132/* end confdefs.h.  */
13133#include <sys/types.h>
13134 /* Check that off_t can represent 2**63 - 1 correctly.
13135    We can't simply define LARGE_OFF_T to be 9223372036854775807,
13136    since some C++ compilers masquerading as C compilers
13137    incorrectly reject 9223372036854775807.  */
13138#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
13139  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13140		       && LARGE_OFF_T % 2147483647 == 1)
13141		      ? 1 : -1];
13142int
13143main (void)
13144{
13145
13146  ;
13147  return 0;
13148}
13149_ACEOF
13150if ac_fn_c_try_compile "$LINENO"
13151then :
13152  ac_cv_sys_file_offset_bits=no; break
13153fi
13154rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13155  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13156/* end confdefs.h.  */
13157#define _FILE_OFFSET_BITS 64
13158#include <sys/types.h>
13159 /* Check that off_t can represent 2**63 - 1 correctly.
13160    We can't simply define LARGE_OFF_T to be 9223372036854775807,
13161    since some C++ compilers masquerading as C compilers
13162    incorrectly reject 9223372036854775807.  */
13163#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
13164  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13165		       && LARGE_OFF_T % 2147483647 == 1)
13166		      ? 1 : -1];
13167int
13168main (void)
13169{
13170
13171  ;
13172  return 0;
13173}
13174_ACEOF
13175if ac_fn_c_try_compile "$LINENO"
13176then :
13177  ac_cv_sys_file_offset_bits=64; break
13178fi
13179rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13180  ac_cv_sys_file_offset_bits=unknown
13181  break
13182done
13183fi
13184{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
13185printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
13186case $ac_cv_sys_file_offset_bits in #(
13187  no | unknown) ;;
13188  *)
13189printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
13190;;
13191esac
13192rm -rf conftest*
13193  if test $ac_cv_sys_file_offset_bits = unknown; then
13194    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
13195printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
13196if test ${ac_cv_sys_large_files+y}
13197then :
13198  printf %s "(cached) " >&6
13199else $as_nop
13200  while :; do
13201  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13202/* end confdefs.h.  */
13203#include <sys/types.h>
13204 /* Check that off_t can represent 2**63 - 1 correctly.
13205    We can't simply define LARGE_OFF_T to be 9223372036854775807,
13206    since some C++ compilers masquerading as C compilers
13207    incorrectly reject 9223372036854775807.  */
13208#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
13209  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13210		       && LARGE_OFF_T % 2147483647 == 1)
13211		      ? 1 : -1];
13212int
13213main (void)
13214{
13215
13216  ;
13217  return 0;
13218}
13219_ACEOF
13220if ac_fn_c_try_compile "$LINENO"
13221then :
13222  ac_cv_sys_large_files=no; break
13223fi
13224rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13225  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13226/* end confdefs.h.  */
13227#define _LARGE_FILES 1
13228#include <sys/types.h>
13229 /* Check that off_t can represent 2**63 - 1 correctly.
13230    We can't simply define LARGE_OFF_T to be 9223372036854775807,
13231    since some C++ compilers masquerading as C compilers
13232    incorrectly reject 9223372036854775807.  */
13233#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
13234  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13235		       && LARGE_OFF_T % 2147483647 == 1)
13236		      ? 1 : -1];
13237int
13238main (void)
13239{
13240
13241  ;
13242  return 0;
13243}
13244_ACEOF
13245if ac_fn_c_try_compile "$LINENO"
13246then :
13247  ac_cv_sys_large_files=1; break
13248fi
13249rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13250  ac_cv_sys_large_files=unknown
13251  break
13252done
13253fi
13254{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
13255printf "%s\n" "$ac_cv_sys_large_files" >&6; }
13256case $ac_cv_sys_large_files in #(
13257  no | unknown) ;;
13258  *)
13259printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
13260;;
13261esac
13262rm -rf conftest*
13263  fi
13264fi
13265
13266
13267# Require xorg-macros minimum of 1.15 for fop minimum version
13268
13269
13270
13271
13272
13273
13274
13275
13276
13277
13278
13279
13280{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
13281printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
13282if test ${ac_cv_c_undeclared_builtin_options+y}
13283then :
13284  printf %s "(cached) " >&6
13285else $as_nop
13286  ac_save_CFLAGS=$CFLAGS
13287   ac_cv_c_undeclared_builtin_options='cannot detect'
13288   for ac_arg in '' -fno-builtin; do
13289     CFLAGS="$ac_save_CFLAGS $ac_arg"
13290     # This test program should *not* compile successfully.
13291     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13292/* end confdefs.h.  */
13293
13294int
13295main (void)
13296{
13297(void) strchr;
13298  ;
13299  return 0;
13300}
13301_ACEOF
13302if ac_fn_c_try_compile "$LINENO"
13303then :
13304
13305else $as_nop
13306  # This test program should compile successfully.
13307        # No library function is consistently available on
13308        # freestanding implementations, so test against a dummy
13309        # declaration.  Include always-available headers on the
13310        # off chance that they somehow elicit warnings.
13311        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13312/* end confdefs.h.  */
13313#include <float.h>
13314#include <limits.h>
13315#include <stdarg.h>
13316#include <stddef.h>
13317extern void ac_decl (int, char *);
13318
13319int
13320main (void)
13321{
13322(void) ac_decl (0, (char *) 0);
13323  (void) ac_decl;
13324
13325  ;
13326  return 0;
13327}
13328_ACEOF
13329if ac_fn_c_try_compile "$LINENO"
13330then :
13331  if test x"$ac_arg" = x
13332then :
13333  ac_cv_c_undeclared_builtin_options='none needed'
13334else $as_nop
13335  ac_cv_c_undeclared_builtin_options=$ac_arg
13336fi
13337          break
13338fi
13339rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13340fi
13341rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13342    done
13343    CFLAGS=$ac_save_CFLAGS
13344
13345fi
13346{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
13347printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
13348  case $ac_cv_c_undeclared_builtin_options in #(
13349  'cannot detect') :
13350    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13351printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13352as_fn_error $? "cannot make $CC report undeclared builtins
13353See \`config.log' for more details" "$LINENO" 5; } ;; #(
13354  'none needed') :
13355    ac_c_undeclared_builtin_options='' ;; #(
13356  *) :
13357    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
13358esac
13359
13360
13361
13362
13363
13364ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
13365if test "x$ac_cv_have_decl___clang__" = xyes
13366then :
13367  CLANGCC="yes"
13368else $as_nop
13369  CLANGCC="no"
13370fi
13371ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
13372if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
13373then :
13374  INTELCC="yes"
13375else $as_nop
13376  INTELCC="no"
13377fi
13378ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
13379if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
13380then :
13381  SUNCC="yes"
13382else $as_nop
13383  SUNCC="no"
13384fi
13385
13386
13387
13388
13389
13390
13391
13392
13393if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13394	if test -n "$ac_tool_prefix"; then
13395  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13396set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13397{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13398printf %s "checking for $ac_word... " >&6; }
13399if test ${ac_cv_path_PKG_CONFIG+y}
13400then :
13401  printf %s "(cached) " >&6
13402else $as_nop
13403  case $PKG_CONFIG in
13404  [\\/]* | ?:[\\/]*)
13405  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13406  ;;
13407  *)
13408  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13409for as_dir in $PATH
13410do
13411  IFS=$as_save_IFS
13412  case $as_dir in #(((
13413    '') as_dir=./ ;;
13414    */) ;;
13415    *) as_dir=$as_dir/ ;;
13416  esac
13417    for ac_exec_ext in '' $ac_executable_extensions; do
13418  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13419    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13420    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13421    break 2
13422  fi
13423done
13424  done
13425IFS=$as_save_IFS
13426
13427  ;;
13428esac
13429fi
13430PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13431if test -n "$PKG_CONFIG"; then
13432  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13433printf "%s\n" "$PKG_CONFIG" >&6; }
13434else
13435  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13436printf "%s\n" "no" >&6; }
13437fi
13438
13439
13440fi
13441if test -z "$ac_cv_path_PKG_CONFIG"; then
13442  ac_pt_PKG_CONFIG=$PKG_CONFIG
13443  # Extract the first word of "pkg-config", so it can be a program name with args.
13444set dummy pkg-config; ac_word=$2
13445{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13446printf %s "checking for $ac_word... " >&6; }
13447if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
13448then :
13449  printf %s "(cached) " >&6
13450else $as_nop
13451  case $ac_pt_PKG_CONFIG in
13452  [\\/]* | ?:[\\/]*)
13453  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13454  ;;
13455  *)
13456  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13457for as_dir in $PATH
13458do
13459  IFS=$as_save_IFS
13460  case $as_dir in #(((
13461    '') as_dir=./ ;;
13462    */) ;;
13463    *) as_dir=$as_dir/ ;;
13464  esac
13465    for ac_exec_ext in '' $ac_executable_extensions; do
13466  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13467    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13468    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13469    break 2
13470  fi
13471done
13472  done
13473IFS=$as_save_IFS
13474
13475  ;;
13476esac
13477fi
13478ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13479if test -n "$ac_pt_PKG_CONFIG"; then
13480  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13481printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
13482else
13483  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13484printf "%s\n" "no" >&6; }
13485fi
13486
13487  if test "x$ac_pt_PKG_CONFIG" = x; then
13488    PKG_CONFIG=""
13489  else
13490    case $cross_compiling:$ac_tool_warned in
13491yes:)
13492{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13493printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13494ac_tool_warned=yes ;;
13495esac
13496    PKG_CONFIG=$ac_pt_PKG_CONFIG
13497  fi
13498else
13499  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13500fi
13501
13502fi
13503if test -n "$PKG_CONFIG"; then
13504	_pkg_min_version=0.9.0
13505	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13506printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13507	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13508		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13509printf "%s\n" "yes" >&6; }
13510	else
13511		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13512printf "%s\n" "no" >&6; }
13513		PKG_CONFIG=""
13514	fi
13515fi
13516
13517
13518
13519
13520
13521# Check whether --enable-selective-werror was given.
13522if test ${enable_selective_werror+y}
13523then :
13524  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
13525else $as_nop
13526  SELECTIVE_WERROR=yes
13527fi
13528
13529
13530
13531
13532
13533# -v is too short to test reliably with XORG_TESTSET_CFLAG
13534if test "x$SUNCC" = "xyes"; then
13535    BASE_CFLAGS="-v"
13536else
13537    BASE_CFLAGS=""
13538fi
13539
13540# This chunk of warnings were those that existed in the legacy CWARNFLAGS
13541
13542
13543
13544
13545
13546
13547
13548
13549
13550
13551
13552
13553
13554xorg_testset_save_CFLAGS="$CFLAGS"
13555
13556if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13557	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13558	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13559printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13560if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13561then :
13562  printf %s "(cached) " >&6
13563else $as_nop
13564  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13565/* end confdefs.h.  */
13566int i;
13567_ACEOF
13568if ac_fn_c_try_compile "$LINENO"
13569then :
13570  xorg_cv_cc_flag_unknown_warning_option=yes
13571else $as_nop
13572  xorg_cv_cc_flag_unknown_warning_option=no
13573fi
13574rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13575fi
13576{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13577printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13578	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13579	CFLAGS="$xorg_testset_save_CFLAGS"
13580fi
13581
13582if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13583	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13584		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13585	fi
13586	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13587	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13588printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13589if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13590then :
13591  printf %s "(cached) " >&6
13592else $as_nop
13593  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13594/* end confdefs.h.  */
13595int i;
13596_ACEOF
13597if ac_fn_c_try_compile "$LINENO"
13598then :
13599  xorg_cv_cc_flag_unused_command_line_argument=yes
13600else $as_nop
13601  xorg_cv_cc_flag_unused_command_line_argument=no
13602fi
13603rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13604fi
13605{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13606printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13607	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13608	CFLAGS="$xorg_testset_save_CFLAGS"
13609fi
13610
13611found="no"
13612
13613	if test $found = "no" ; then
13614		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13615			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13616		fi
13617
13618		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13619			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13620		fi
13621
13622		CFLAGS="$CFLAGS -Wall"
13623
13624		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
13625printf %s "checking if $CC supports -Wall... " >&6; }
13626		cacheid=xorg_cv_cc_flag__Wall
13627		if eval test \${$cacheid+y}
13628then :
13629  printf %s "(cached) " >&6
13630else $as_nop
13631  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13632/* end confdefs.h.  */
13633int i;
13634int
13635main (void)
13636{
13637
13638  ;
13639  return 0;
13640}
13641_ACEOF
13642if ac_fn_c_try_link "$LINENO"
13643then :
13644  eval $cacheid=yes
13645else $as_nop
13646  eval $cacheid=no
13647fi
13648rm -f core conftest.err conftest.$ac_objext conftest.beam \
13649    conftest$ac_exeext conftest.$ac_ext
13650fi
13651
13652
13653		CFLAGS="$xorg_testset_save_CFLAGS"
13654
13655		eval supported=\$$cacheid
13656		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13657printf "%s\n" "$supported" >&6; }
13658		if test "$supported" = "yes" ; then
13659			BASE_CFLAGS="$BASE_CFLAGS -Wall"
13660			found="yes"
13661		fi
13662	fi
13663
13664
13665
13666
13667
13668
13669
13670
13671
13672
13673
13674
13675
13676
13677
13678xorg_testset_save_CFLAGS="$CFLAGS"
13679
13680if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13681	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13682	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13683printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13684if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13685then :
13686  printf %s "(cached) " >&6
13687else $as_nop
13688  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13689/* end confdefs.h.  */
13690int i;
13691_ACEOF
13692if ac_fn_c_try_compile "$LINENO"
13693then :
13694  xorg_cv_cc_flag_unknown_warning_option=yes
13695else $as_nop
13696  xorg_cv_cc_flag_unknown_warning_option=no
13697fi
13698rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13699fi
13700{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13701printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13702	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13703	CFLAGS="$xorg_testset_save_CFLAGS"
13704fi
13705
13706if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13707	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13708		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13709	fi
13710	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13711	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13712printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13713if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13714then :
13715  printf %s "(cached) " >&6
13716else $as_nop
13717  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13718/* end confdefs.h.  */
13719int i;
13720_ACEOF
13721if ac_fn_c_try_compile "$LINENO"
13722then :
13723  xorg_cv_cc_flag_unused_command_line_argument=yes
13724else $as_nop
13725  xorg_cv_cc_flag_unused_command_line_argument=no
13726fi
13727rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13728fi
13729{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13730printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13731	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13732	CFLAGS="$xorg_testset_save_CFLAGS"
13733fi
13734
13735found="no"
13736
13737	if test $found = "no" ; then
13738		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13739			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13740		fi
13741
13742		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13743			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13744		fi
13745
13746		CFLAGS="$CFLAGS -Wpointer-arith"
13747
13748		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
13749printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
13750		cacheid=xorg_cv_cc_flag__Wpointer_arith
13751		if eval test \${$cacheid+y}
13752then :
13753  printf %s "(cached) " >&6
13754else $as_nop
13755  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13756/* end confdefs.h.  */
13757int i;
13758int
13759main (void)
13760{
13761
13762  ;
13763  return 0;
13764}
13765_ACEOF
13766if ac_fn_c_try_link "$LINENO"
13767then :
13768  eval $cacheid=yes
13769else $as_nop
13770  eval $cacheid=no
13771fi
13772rm -f core conftest.err conftest.$ac_objext conftest.beam \
13773    conftest$ac_exeext conftest.$ac_ext
13774fi
13775
13776
13777		CFLAGS="$xorg_testset_save_CFLAGS"
13778
13779		eval supported=\$$cacheid
13780		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13781printf "%s\n" "$supported" >&6; }
13782		if test "$supported" = "yes" ; then
13783			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
13784			found="yes"
13785		fi
13786	fi
13787
13788
13789
13790
13791
13792
13793
13794
13795
13796
13797
13798
13799
13800
13801
13802xorg_testset_save_CFLAGS="$CFLAGS"
13803
13804if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13805	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13806	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13807printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13808if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13809then :
13810  printf %s "(cached) " >&6
13811else $as_nop
13812  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13813/* end confdefs.h.  */
13814int i;
13815_ACEOF
13816if ac_fn_c_try_compile "$LINENO"
13817then :
13818  xorg_cv_cc_flag_unknown_warning_option=yes
13819else $as_nop
13820  xorg_cv_cc_flag_unknown_warning_option=no
13821fi
13822rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13823fi
13824{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13825printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13826	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13827	CFLAGS="$xorg_testset_save_CFLAGS"
13828fi
13829
13830if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13831	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13832		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13833	fi
13834	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13835	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13836printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13837if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13838then :
13839  printf %s "(cached) " >&6
13840else $as_nop
13841  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13842/* end confdefs.h.  */
13843int i;
13844_ACEOF
13845if ac_fn_c_try_compile "$LINENO"
13846then :
13847  xorg_cv_cc_flag_unused_command_line_argument=yes
13848else $as_nop
13849  xorg_cv_cc_flag_unused_command_line_argument=no
13850fi
13851rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13852fi
13853{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13854printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13855	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13856	CFLAGS="$xorg_testset_save_CFLAGS"
13857fi
13858
13859found="no"
13860
13861	if test $found = "no" ; then
13862		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13863			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13864		fi
13865
13866		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13867			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13868		fi
13869
13870		CFLAGS="$CFLAGS -Wmissing-declarations"
13871
13872		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
13873printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
13874		cacheid=xorg_cv_cc_flag__Wmissing_declarations
13875		if eval test \${$cacheid+y}
13876then :
13877  printf %s "(cached) " >&6
13878else $as_nop
13879  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13880/* end confdefs.h.  */
13881int i;
13882int
13883main (void)
13884{
13885
13886  ;
13887  return 0;
13888}
13889_ACEOF
13890if ac_fn_c_try_link "$LINENO"
13891then :
13892  eval $cacheid=yes
13893else $as_nop
13894  eval $cacheid=no
13895fi
13896rm -f core conftest.err conftest.$ac_objext conftest.beam \
13897    conftest$ac_exeext conftest.$ac_ext
13898fi
13899
13900
13901		CFLAGS="$xorg_testset_save_CFLAGS"
13902
13903		eval supported=\$$cacheid
13904		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13905printf "%s\n" "$supported" >&6; }
13906		if test "$supported" = "yes" ; then
13907			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
13908			found="yes"
13909		fi
13910	fi
13911
13912
13913
13914
13915
13916
13917
13918
13919
13920
13921
13922
13923
13924
13925
13926xorg_testset_save_CFLAGS="$CFLAGS"
13927
13928if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13929	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13930	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13931printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13932if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13933then :
13934  printf %s "(cached) " >&6
13935else $as_nop
13936  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13937/* end confdefs.h.  */
13938int i;
13939_ACEOF
13940if ac_fn_c_try_compile "$LINENO"
13941then :
13942  xorg_cv_cc_flag_unknown_warning_option=yes
13943else $as_nop
13944  xorg_cv_cc_flag_unknown_warning_option=no
13945fi
13946rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13947fi
13948{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13949printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13950	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13951	CFLAGS="$xorg_testset_save_CFLAGS"
13952fi
13953
13954if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13955	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13956		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13957	fi
13958	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13959	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13960printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13961if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13962then :
13963  printf %s "(cached) " >&6
13964else $as_nop
13965  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13966/* end confdefs.h.  */
13967int i;
13968_ACEOF
13969if ac_fn_c_try_compile "$LINENO"
13970then :
13971  xorg_cv_cc_flag_unused_command_line_argument=yes
13972else $as_nop
13973  xorg_cv_cc_flag_unused_command_line_argument=no
13974fi
13975rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13976fi
13977{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13978printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13979	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13980	CFLAGS="$xorg_testset_save_CFLAGS"
13981fi
13982
13983found="no"
13984
13985	if test $found = "no" ; then
13986		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13987			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13988		fi
13989
13990		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13991			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13992		fi
13993
13994		CFLAGS="$CFLAGS -Wformat=2"
13995
13996		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
13997printf %s "checking if $CC supports -Wformat=2... " >&6; }
13998		cacheid=xorg_cv_cc_flag__Wformat_2
13999		if eval test \${$cacheid+y}
14000then :
14001  printf %s "(cached) " >&6
14002else $as_nop
14003  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14004/* end confdefs.h.  */
14005int i;
14006int
14007main (void)
14008{
14009
14010  ;
14011  return 0;
14012}
14013_ACEOF
14014if ac_fn_c_try_link "$LINENO"
14015then :
14016  eval $cacheid=yes
14017else $as_nop
14018  eval $cacheid=no
14019fi
14020rm -f core conftest.err conftest.$ac_objext conftest.beam \
14021    conftest$ac_exeext conftest.$ac_ext
14022fi
14023
14024
14025		CFLAGS="$xorg_testset_save_CFLAGS"
14026
14027		eval supported=\$$cacheid
14028		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14029printf "%s\n" "$supported" >&6; }
14030		if test "$supported" = "yes" ; then
14031			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
14032			found="yes"
14033		fi
14034	fi
14035
14036	if test $found = "no" ; then
14037		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14038			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14039		fi
14040
14041		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14042			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14043		fi
14044
14045		CFLAGS="$CFLAGS -Wformat"
14046
14047		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
14048printf %s "checking if $CC supports -Wformat... " >&6; }
14049		cacheid=xorg_cv_cc_flag__Wformat
14050		if eval test \${$cacheid+y}
14051then :
14052  printf %s "(cached) " >&6
14053else $as_nop
14054  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14055/* end confdefs.h.  */
14056int i;
14057int
14058main (void)
14059{
14060
14061  ;
14062  return 0;
14063}
14064_ACEOF
14065if ac_fn_c_try_link "$LINENO"
14066then :
14067  eval $cacheid=yes
14068else $as_nop
14069  eval $cacheid=no
14070fi
14071rm -f core conftest.err conftest.$ac_objext conftest.beam \
14072    conftest$ac_exeext conftest.$ac_ext
14073fi
14074
14075
14076		CFLAGS="$xorg_testset_save_CFLAGS"
14077
14078		eval supported=\$$cacheid
14079		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14080printf "%s\n" "$supported" >&6; }
14081		if test "$supported" = "yes" ; then
14082			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
14083			found="yes"
14084		fi
14085	fi
14086
14087
14088
14089
14090
14091
14092
14093
14094
14095
14096
14097
14098
14099
14100
14101
14102
14103xorg_testset_save_CFLAGS="$CFLAGS"
14104
14105if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14106	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14107	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14108printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14109if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14110then :
14111  printf %s "(cached) " >&6
14112else $as_nop
14113  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14114/* end confdefs.h.  */
14115int i;
14116_ACEOF
14117if ac_fn_c_try_compile "$LINENO"
14118then :
14119  xorg_cv_cc_flag_unknown_warning_option=yes
14120else $as_nop
14121  xorg_cv_cc_flag_unknown_warning_option=no
14122fi
14123rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14124fi
14125{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14126printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14127	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14128	CFLAGS="$xorg_testset_save_CFLAGS"
14129fi
14130
14131if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14132	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14133		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14134	fi
14135	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14136	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14137printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14138if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14139then :
14140  printf %s "(cached) " >&6
14141else $as_nop
14142  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14143/* end confdefs.h.  */
14144int i;
14145_ACEOF
14146if ac_fn_c_try_compile "$LINENO"
14147then :
14148  xorg_cv_cc_flag_unused_command_line_argument=yes
14149else $as_nop
14150  xorg_cv_cc_flag_unused_command_line_argument=no
14151fi
14152rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14153fi
14154{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14155printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14156	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14157	CFLAGS="$xorg_testset_save_CFLAGS"
14158fi
14159
14160found="no"
14161
14162	if test $found = "no" ; then
14163		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14164			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14165		fi
14166
14167		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14168			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14169		fi
14170
14171		CFLAGS="$CFLAGS -Wstrict-prototypes"
14172
14173		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
14174printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
14175		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
14176		if eval test \${$cacheid+y}
14177then :
14178  printf %s "(cached) " >&6
14179else $as_nop
14180  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14181/* end confdefs.h.  */
14182int i;
14183int
14184main (void)
14185{
14186
14187  ;
14188  return 0;
14189}
14190_ACEOF
14191if ac_fn_c_try_link "$LINENO"
14192then :
14193  eval $cacheid=yes
14194else $as_nop
14195  eval $cacheid=no
14196fi
14197rm -f core conftest.err conftest.$ac_objext conftest.beam \
14198    conftest$ac_exeext conftest.$ac_ext
14199fi
14200
14201
14202		CFLAGS="$xorg_testset_save_CFLAGS"
14203
14204		eval supported=\$$cacheid
14205		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14206printf "%s\n" "$supported" >&6; }
14207		if test "$supported" = "yes" ; then
14208			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
14209			found="yes"
14210		fi
14211	fi
14212
14213
14214
14215
14216
14217
14218
14219
14220
14221
14222
14223
14224
14225
14226
14227xorg_testset_save_CFLAGS="$CFLAGS"
14228
14229if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14230	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14231	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14232printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14233if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14234then :
14235  printf %s "(cached) " >&6
14236else $as_nop
14237  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14238/* end confdefs.h.  */
14239int i;
14240_ACEOF
14241if ac_fn_c_try_compile "$LINENO"
14242then :
14243  xorg_cv_cc_flag_unknown_warning_option=yes
14244else $as_nop
14245  xorg_cv_cc_flag_unknown_warning_option=no
14246fi
14247rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14248fi
14249{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14250printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14251	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14252	CFLAGS="$xorg_testset_save_CFLAGS"
14253fi
14254
14255if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14256	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14257		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14258	fi
14259	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14260	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14261printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14262if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14263then :
14264  printf %s "(cached) " >&6
14265else $as_nop
14266  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14267/* end confdefs.h.  */
14268int i;
14269_ACEOF
14270if ac_fn_c_try_compile "$LINENO"
14271then :
14272  xorg_cv_cc_flag_unused_command_line_argument=yes
14273else $as_nop
14274  xorg_cv_cc_flag_unused_command_line_argument=no
14275fi
14276rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14277fi
14278{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14279printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14280	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14281	CFLAGS="$xorg_testset_save_CFLAGS"
14282fi
14283
14284found="no"
14285
14286	if test $found = "no" ; then
14287		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14288			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14289		fi
14290
14291		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14292			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14293		fi
14294
14295		CFLAGS="$CFLAGS -Wmissing-prototypes"
14296
14297		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
14298printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
14299		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
14300		if eval test \${$cacheid+y}
14301then :
14302  printf %s "(cached) " >&6
14303else $as_nop
14304  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14305/* end confdefs.h.  */
14306int i;
14307int
14308main (void)
14309{
14310
14311  ;
14312  return 0;
14313}
14314_ACEOF
14315if ac_fn_c_try_link "$LINENO"
14316then :
14317  eval $cacheid=yes
14318else $as_nop
14319  eval $cacheid=no
14320fi
14321rm -f core conftest.err conftest.$ac_objext conftest.beam \
14322    conftest$ac_exeext conftest.$ac_ext
14323fi
14324
14325
14326		CFLAGS="$xorg_testset_save_CFLAGS"
14327
14328		eval supported=\$$cacheid
14329		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14330printf "%s\n" "$supported" >&6; }
14331		if test "$supported" = "yes" ; then
14332			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
14333			found="yes"
14334		fi
14335	fi
14336
14337
14338
14339
14340
14341
14342
14343
14344
14345
14346
14347
14348
14349
14350
14351xorg_testset_save_CFLAGS="$CFLAGS"
14352
14353if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14354	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14355	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14356printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14357if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14358then :
14359  printf %s "(cached) " >&6
14360else $as_nop
14361  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14362/* end confdefs.h.  */
14363int i;
14364_ACEOF
14365if ac_fn_c_try_compile "$LINENO"
14366then :
14367  xorg_cv_cc_flag_unknown_warning_option=yes
14368else $as_nop
14369  xorg_cv_cc_flag_unknown_warning_option=no
14370fi
14371rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14372fi
14373{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14374printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14375	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14376	CFLAGS="$xorg_testset_save_CFLAGS"
14377fi
14378
14379if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14380	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14381		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14382	fi
14383	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14384	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14385printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14386if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14387then :
14388  printf %s "(cached) " >&6
14389else $as_nop
14390  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14391/* end confdefs.h.  */
14392int i;
14393_ACEOF
14394if ac_fn_c_try_compile "$LINENO"
14395then :
14396  xorg_cv_cc_flag_unused_command_line_argument=yes
14397else $as_nop
14398  xorg_cv_cc_flag_unused_command_line_argument=no
14399fi
14400rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14401fi
14402{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14403printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14404	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14405	CFLAGS="$xorg_testset_save_CFLAGS"
14406fi
14407
14408found="no"
14409
14410	if test $found = "no" ; then
14411		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14412			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14413		fi
14414
14415		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14416			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14417		fi
14418
14419		CFLAGS="$CFLAGS -Wnested-externs"
14420
14421		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
14422printf %s "checking if $CC supports -Wnested-externs... " >&6; }
14423		cacheid=xorg_cv_cc_flag__Wnested_externs
14424		if eval test \${$cacheid+y}
14425then :
14426  printf %s "(cached) " >&6
14427else $as_nop
14428  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14429/* end confdefs.h.  */
14430int i;
14431int
14432main (void)
14433{
14434
14435  ;
14436  return 0;
14437}
14438_ACEOF
14439if ac_fn_c_try_link "$LINENO"
14440then :
14441  eval $cacheid=yes
14442else $as_nop
14443  eval $cacheid=no
14444fi
14445rm -f core conftest.err conftest.$ac_objext conftest.beam \
14446    conftest$ac_exeext conftest.$ac_ext
14447fi
14448
14449
14450		CFLAGS="$xorg_testset_save_CFLAGS"
14451
14452		eval supported=\$$cacheid
14453		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14454printf "%s\n" "$supported" >&6; }
14455		if test "$supported" = "yes" ; then
14456			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
14457			found="yes"
14458		fi
14459	fi
14460
14461
14462
14463
14464
14465
14466
14467
14468
14469
14470
14471
14472
14473
14474
14475xorg_testset_save_CFLAGS="$CFLAGS"
14476
14477if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14478	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14479	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14480printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14481if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14482then :
14483  printf %s "(cached) " >&6
14484else $as_nop
14485  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14486/* end confdefs.h.  */
14487int i;
14488_ACEOF
14489if ac_fn_c_try_compile "$LINENO"
14490then :
14491  xorg_cv_cc_flag_unknown_warning_option=yes
14492else $as_nop
14493  xorg_cv_cc_flag_unknown_warning_option=no
14494fi
14495rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14496fi
14497{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14498printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14499	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14500	CFLAGS="$xorg_testset_save_CFLAGS"
14501fi
14502
14503if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14504	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14505		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14506	fi
14507	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14508	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14509printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14510if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14511then :
14512  printf %s "(cached) " >&6
14513else $as_nop
14514  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14515/* end confdefs.h.  */
14516int i;
14517_ACEOF
14518if ac_fn_c_try_compile "$LINENO"
14519then :
14520  xorg_cv_cc_flag_unused_command_line_argument=yes
14521else $as_nop
14522  xorg_cv_cc_flag_unused_command_line_argument=no
14523fi
14524rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14525fi
14526{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14527printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14528	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14529	CFLAGS="$xorg_testset_save_CFLAGS"
14530fi
14531
14532found="no"
14533
14534	if test $found = "no" ; then
14535		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14536			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14537		fi
14538
14539		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14540			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14541		fi
14542
14543		CFLAGS="$CFLAGS -Wbad-function-cast"
14544
14545		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
14546printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
14547		cacheid=xorg_cv_cc_flag__Wbad_function_cast
14548		if eval test \${$cacheid+y}
14549then :
14550  printf %s "(cached) " >&6
14551else $as_nop
14552  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14553/* end confdefs.h.  */
14554int i;
14555int
14556main (void)
14557{
14558
14559  ;
14560  return 0;
14561}
14562_ACEOF
14563if ac_fn_c_try_link "$LINENO"
14564then :
14565  eval $cacheid=yes
14566else $as_nop
14567  eval $cacheid=no
14568fi
14569rm -f core conftest.err conftest.$ac_objext conftest.beam \
14570    conftest$ac_exeext conftest.$ac_ext
14571fi
14572
14573
14574		CFLAGS="$xorg_testset_save_CFLAGS"
14575
14576		eval supported=\$$cacheid
14577		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14578printf "%s\n" "$supported" >&6; }
14579		if test "$supported" = "yes" ; then
14580			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
14581			found="yes"
14582		fi
14583	fi
14584
14585
14586
14587
14588
14589
14590
14591
14592
14593
14594
14595
14596
14597
14598
14599xorg_testset_save_CFLAGS="$CFLAGS"
14600
14601if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14602	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14603	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14604printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14605if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14606then :
14607  printf %s "(cached) " >&6
14608else $as_nop
14609  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14610/* end confdefs.h.  */
14611int i;
14612_ACEOF
14613if ac_fn_c_try_compile "$LINENO"
14614then :
14615  xorg_cv_cc_flag_unknown_warning_option=yes
14616else $as_nop
14617  xorg_cv_cc_flag_unknown_warning_option=no
14618fi
14619rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14620fi
14621{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14622printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14623	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14624	CFLAGS="$xorg_testset_save_CFLAGS"
14625fi
14626
14627if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14628	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14629		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14630	fi
14631	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14632	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14633printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14634if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14635then :
14636  printf %s "(cached) " >&6
14637else $as_nop
14638  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14639/* end confdefs.h.  */
14640int i;
14641_ACEOF
14642if ac_fn_c_try_compile "$LINENO"
14643then :
14644  xorg_cv_cc_flag_unused_command_line_argument=yes
14645else $as_nop
14646  xorg_cv_cc_flag_unused_command_line_argument=no
14647fi
14648rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14649fi
14650{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14651printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14652	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14653	CFLAGS="$xorg_testset_save_CFLAGS"
14654fi
14655
14656found="no"
14657
14658	if test $found = "no" ; then
14659		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14660			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14661		fi
14662
14663		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14664			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14665		fi
14666
14667		CFLAGS="$CFLAGS -Wold-style-definition"
14668
14669		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
14670printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
14671		cacheid=xorg_cv_cc_flag__Wold_style_definition
14672		if eval test \${$cacheid+y}
14673then :
14674  printf %s "(cached) " >&6
14675else $as_nop
14676  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14677/* end confdefs.h.  */
14678int i;
14679int
14680main (void)
14681{
14682
14683  ;
14684  return 0;
14685}
14686_ACEOF
14687if ac_fn_c_try_link "$LINENO"
14688then :
14689  eval $cacheid=yes
14690else $as_nop
14691  eval $cacheid=no
14692fi
14693rm -f core conftest.err conftest.$ac_objext conftest.beam \
14694    conftest$ac_exeext conftest.$ac_ext
14695fi
14696
14697
14698		CFLAGS="$xorg_testset_save_CFLAGS"
14699
14700		eval supported=\$$cacheid
14701		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14702printf "%s\n" "$supported" >&6; }
14703		if test "$supported" = "yes" ; then
14704			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
14705			found="yes"
14706		fi
14707	fi
14708
14709	if test $found = "no" ; then
14710		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14711			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14712		fi
14713
14714		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14715			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14716		fi
14717
14718		CFLAGS="$CFLAGS -fd"
14719
14720		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
14721printf %s "checking if $CC supports -fd... " >&6; }
14722		cacheid=xorg_cv_cc_flag__fd
14723		if eval test \${$cacheid+y}
14724then :
14725  printf %s "(cached) " >&6
14726else $as_nop
14727  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14728/* end confdefs.h.  */
14729int i;
14730int
14731main (void)
14732{
14733
14734  ;
14735  return 0;
14736}
14737_ACEOF
14738if ac_fn_c_try_link "$LINENO"
14739then :
14740  eval $cacheid=yes
14741else $as_nop
14742  eval $cacheid=no
14743fi
14744rm -f core conftest.err conftest.$ac_objext conftest.beam \
14745    conftest$ac_exeext conftest.$ac_ext
14746fi
14747
14748
14749		CFLAGS="$xorg_testset_save_CFLAGS"
14750
14751		eval supported=\$$cacheid
14752		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14753printf "%s\n" "$supported" >&6; }
14754		if test "$supported" = "yes" ; then
14755			BASE_CFLAGS="$BASE_CFLAGS -fd"
14756			found="yes"
14757		fi
14758	fi
14759
14760
14761
14762
14763
14764
14765
14766
14767
14768
14769
14770
14771
14772
14773
14774xorg_testset_save_CFLAGS="$CFLAGS"
14775
14776if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14777	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14778	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14779printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14780if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14781then :
14782  printf %s "(cached) " >&6
14783else $as_nop
14784  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14785/* end confdefs.h.  */
14786int i;
14787_ACEOF
14788if ac_fn_c_try_compile "$LINENO"
14789then :
14790  xorg_cv_cc_flag_unknown_warning_option=yes
14791else $as_nop
14792  xorg_cv_cc_flag_unknown_warning_option=no
14793fi
14794rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14795fi
14796{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14797printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14798	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14799	CFLAGS="$xorg_testset_save_CFLAGS"
14800fi
14801
14802if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14803	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14804		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14805	fi
14806	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14807	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14808printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14809if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14810then :
14811  printf %s "(cached) " >&6
14812else $as_nop
14813  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14814/* end confdefs.h.  */
14815int i;
14816_ACEOF
14817if ac_fn_c_try_compile "$LINENO"
14818then :
14819  xorg_cv_cc_flag_unused_command_line_argument=yes
14820else $as_nop
14821  xorg_cv_cc_flag_unused_command_line_argument=no
14822fi
14823rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14824fi
14825{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14826printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14827	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14828	CFLAGS="$xorg_testset_save_CFLAGS"
14829fi
14830
14831found="no"
14832
14833	if test $found = "no" ; then
14834		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14835			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14836		fi
14837
14838		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14839			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14840		fi
14841
14842		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
14843
14844		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
14845printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
14846		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
14847		if eval test \${$cacheid+y}
14848then :
14849  printf %s "(cached) " >&6
14850else $as_nop
14851  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14852/* end confdefs.h.  */
14853int i;
14854int
14855main (void)
14856{
14857
14858  ;
14859  return 0;
14860}
14861_ACEOF
14862if ac_fn_c_try_link "$LINENO"
14863then :
14864  eval $cacheid=yes
14865else $as_nop
14866  eval $cacheid=no
14867fi
14868rm -f core conftest.err conftest.$ac_objext conftest.beam \
14869    conftest$ac_exeext conftest.$ac_ext
14870fi
14871
14872
14873		CFLAGS="$xorg_testset_save_CFLAGS"
14874
14875		eval supported=\$$cacheid
14876		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14877printf "%s\n" "$supported" >&6; }
14878		if test "$supported" = "yes" ; then
14879			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
14880			found="yes"
14881		fi
14882	fi
14883
14884
14885
14886
14887
14888# This chunk adds additional warnings that could catch undesired effects.
14889
14890
14891
14892
14893
14894
14895
14896
14897
14898
14899
14900
14901
14902xorg_testset_save_CFLAGS="$CFLAGS"
14903
14904if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14905	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14906	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14907printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14908if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14909then :
14910  printf %s "(cached) " >&6
14911else $as_nop
14912  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14913/* end confdefs.h.  */
14914int i;
14915_ACEOF
14916if ac_fn_c_try_compile "$LINENO"
14917then :
14918  xorg_cv_cc_flag_unknown_warning_option=yes
14919else $as_nop
14920  xorg_cv_cc_flag_unknown_warning_option=no
14921fi
14922rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14923fi
14924{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14925printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14926	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14927	CFLAGS="$xorg_testset_save_CFLAGS"
14928fi
14929
14930if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14931	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14932		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14933	fi
14934	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14935	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14936printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14937if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14938then :
14939  printf %s "(cached) " >&6
14940else $as_nop
14941  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14942/* end confdefs.h.  */
14943int i;
14944_ACEOF
14945if ac_fn_c_try_compile "$LINENO"
14946then :
14947  xorg_cv_cc_flag_unused_command_line_argument=yes
14948else $as_nop
14949  xorg_cv_cc_flag_unused_command_line_argument=no
14950fi
14951rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14952fi
14953{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14954printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14955	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14956	CFLAGS="$xorg_testset_save_CFLAGS"
14957fi
14958
14959found="no"
14960
14961	if test $found = "no" ; then
14962		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14963			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14964		fi
14965
14966		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14967			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14968		fi
14969
14970		CFLAGS="$CFLAGS -Wunused"
14971
14972		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
14973printf %s "checking if $CC supports -Wunused... " >&6; }
14974		cacheid=xorg_cv_cc_flag__Wunused
14975		if eval test \${$cacheid+y}
14976then :
14977  printf %s "(cached) " >&6
14978else $as_nop
14979  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14980/* end confdefs.h.  */
14981int i;
14982int
14983main (void)
14984{
14985
14986  ;
14987  return 0;
14988}
14989_ACEOF
14990if ac_fn_c_try_link "$LINENO"
14991then :
14992  eval $cacheid=yes
14993else $as_nop
14994  eval $cacheid=no
14995fi
14996rm -f core conftest.err conftest.$ac_objext conftest.beam \
14997    conftest$ac_exeext conftest.$ac_ext
14998fi
14999
15000
15001		CFLAGS="$xorg_testset_save_CFLAGS"
15002
15003		eval supported=\$$cacheid
15004		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15005printf "%s\n" "$supported" >&6; }
15006		if test "$supported" = "yes" ; then
15007			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
15008			found="yes"
15009		fi
15010	fi
15011
15012
15013
15014
15015
15016
15017
15018
15019
15020
15021
15022
15023
15024
15025
15026xorg_testset_save_CFLAGS="$CFLAGS"
15027
15028if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15029	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15030	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15031printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15032if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15033then :
15034  printf %s "(cached) " >&6
15035else $as_nop
15036  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15037/* end confdefs.h.  */
15038int i;
15039_ACEOF
15040if ac_fn_c_try_compile "$LINENO"
15041then :
15042  xorg_cv_cc_flag_unknown_warning_option=yes
15043else $as_nop
15044  xorg_cv_cc_flag_unknown_warning_option=no
15045fi
15046rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15047fi
15048{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15049printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15050	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15051	CFLAGS="$xorg_testset_save_CFLAGS"
15052fi
15053
15054if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15055	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15056		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15057	fi
15058	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15059	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15060printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15061if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15062then :
15063  printf %s "(cached) " >&6
15064else $as_nop
15065  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15066/* end confdefs.h.  */
15067int i;
15068_ACEOF
15069if ac_fn_c_try_compile "$LINENO"
15070then :
15071  xorg_cv_cc_flag_unused_command_line_argument=yes
15072else $as_nop
15073  xorg_cv_cc_flag_unused_command_line_argument=no
15074fi
15075rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15076fi
15077{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15078printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15079	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15080	CFLAGS="$xorg_testset_save_CFLAGS"
15081fi
15082
15083found="no"
15084
15085	if test $found = "no" ; then
15086		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15087			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15088		fi
15089
15090		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15091			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15092		fi
15093
15094		CFLAGS="$CFLAGS -Wuninitialized"
15095
15096		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
15097printf %s "checking if $CC supports -Wuninitialized... " >&6; }
15098		cacheid=xorg_cv_cc_flag__Wuninitialized
15099		if eval test \${$cacheid+y}
15100then :
15101  printf %s "(cached) " >&6
15102else $as_nop
15103  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15104/* end confdefs.h.  */
15105int i;
15106int
15107main (void)
15108{
15109
15110  ;
15111  return 0;
15112}
15113_ACEOF
15114if ac_fn_c_try_link "$LINENO"
15115then :
15116  eval $cacheid=yes
15117else $as_nop
15118  eval $cacheid=no
15119fi
15120rm -f core conftest.err conftest.$ac_objext conftest.beam \
15121    conftest$ac_exeext conftest.$ac_ext
15122fi
15123
15124
15125		CFLAGS="$xorg_testset_save_CFLAGS"
15126
15127		eval supported=\$$cacheid
15128		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15129printf "%s\n" "$supported" >&6; }
15130		if test "$supported" = "yes" ; then
15131			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
15132			found="yes"
15133		fi
15134	fi
15135
15136
15137
15138
15139
15140
15141
15142
15143
15144
15145
15146
15147
15148
15149
15150xorg_testset_save_CFLAGS="$CFLAGS"
15151
15152if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15153	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15154	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15155printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15156if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15157then :
15158  printf %s "(cached) " >&6
15159else $as_nop
15160  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15161/* end confdefs.h.  */
15162int i;
15163_ACEOF
15164if ac_fn_c_try_compile "$LINENO"
15165then :
15166  xorg_cv_cc_flag_unknown_warning_option=yes
15167else $as_nop
15168  xorg_cv_cc_flag_unknown_warning_option=no
15169fi
15170rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15171fi
15172{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15173printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15174	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15175	CFLAGS="$xorg_testset_save_CFLAGS"
15176fi
15177
15178if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15179	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15180		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15181	fi
15182	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15183	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15184printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15185if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15186then :
15187  printf %s "(cached) " >&6
15188else $as_nop
15189  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15190/* end confdefs.h.  */
15191int i;
15192_ACEOF
15193if ac_fn_c_try_compile "$LINENO"
15194then :
15195  xorg_cv_cc_flag_unused_command_line_argument=yes
15196else $as_nop
15197  xorg_cv_cc_flag_unused_command_line_argument=no
15198fi
15199rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15200fi
15201{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15202printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15203	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15204	CFLAGS="$xorg_testset_save_CFLAGS"
15205fi
15206
15207found="no"
15208
15209	if test $found = "no" ; then
15210		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15211			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15212		fi
15213
15214		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15215			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15216		fi
15217
15218		CFLAGS="$CFLAGS -Wshadow"
15219
15220		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
15221printf %s "checking if $CC supports -Wshadow... " >&6; }
15222		cacheid=xorg_cv_cc_flag__Wshadow
15223		if eval test \${$cacheid+y}
15224then :
15225  printf %s "(cached) " >&6
15226else $as_nop
15227  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15228/* end confdefs.h.  */
15229int i;
15230int
15231main (void)
15232{
15233
15234  ;
15235  return 0;
15236}
15237_ACEOF
15238if ac_fn_c_try_link "$LINENO"
15239then :
15240  eval $cacheid=yes
15241else $as_nop
15242  eval $cacheid=no
15243fi
15244rm -f core conftest.err conftest.$ac_objext conftest.beam \
15245    conftest$ac_exeext conftest.$ac_ext
15246fi
15247
15248
15249		CFLAGS="$xorg_testset_save_CFLAGS"
15250
15251		eval supported=\$$cacheid
15252		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15253printf "%s\n" "$supported" >&6; }
15254		if test "$supported" = "yes" ; then
15255			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
15256			found="yes"
15257		fi
15258	fi
15259
15260
15261
15262
15263
15264
15265
15266
15267
15268
15269
15270
15271
15272
15273
15274xorg_testset_save_CFLAGS="$CFLAGS"
15275
15276if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15277	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15278	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15279printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15280if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15281then :
15282  printf %s "(cached) " >&6
15283else $as_nop
15284  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15285/* end confdefs.h.  */
15286int i;
15287_ACEOF
15288if ac_fn_c_try_compile "$LINENO"
15289then :
15290  xorg_cv_cc_flag_unknown_warning_option=yes
15291else $as_nop
15292  xorg_cv_cc_flag_unknown_warning_option=no
15293fi
15294rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15295fi
15296{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15297printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15298	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15299	CFLAGS="$xorg_testset_save_CFLAGS"
15300fi
15301
15302if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15303	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15304		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15305	fi
15306	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15307	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15308printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15309if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15310then :
15311  printf %s "(cached) " >&6
15312else $as_nop
15313  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15314/* end confdefs.h.  */
15315int i;
15316_ACEOF
15317if ac_fn_c_try_compile "$LINENO"
15318then :
15319  xorg_cv_cc_flag_unused_command_line_argument=yes
15320else $as_nop
15321  xorg_cv_cc_flag_unused_command_line_argument=no
15322fi
15323rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15324fi
15325{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15326printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15327	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15328	CFLAGS="$xorg_testset_save_CFLAGS"
15329fi
15330
15331found="no"
15332
15333	if test $found = "no" ; then
15334		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15335			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15336		fi
15337
15338		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15339			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15340		fi
15341
15342		CFLAGS="$CFLAGS -Wmissing-noreturn"
15343
15344		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
15345printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
15346		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
15347		if eval test \${$cacheid+y}
15348then :
15349  printf %s "(cached) " >&6
15350else $as_nop
15351  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15352/* end confdefs.h.  */
15353int i;
15354int
15355main (void)
15356{
15357
15358  ;
15359  return 0;
15360}
15361_ACEOF
15362if ac_fn_c_try_link "$LINENO"
15363then :
15364  eval $cacheid=yes
15365else $as_nop
15366  eval $cacheid=no
15367fi
15368rm -f core conftest.err conftest.$ac_objext conftest.beam \
15369    conftest$ac_exeext conftest.$ac_ext
15370fi
15371
15372
15373		CFLAGS="$xorg_testset_save_CFLAGS"
15374
15375		eval supported=\$$cacheid
15376		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15377printf "%s\n" "$supported" >&6; }
15378		if test "$supported" = "yes" ; then
15379			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
15380			found="yes"
15381		fi
15382	fi
15383
15384
15385
15386
15387
15388
15389
15390
15391
15392
15393
15394
15395
15396
15397
15398xorg_testset_save_CFLAGS="$CFLAGS"
15399
15400if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15401	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15402	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15403printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15404if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15405then :
15406  printf %s "(cached) " >&6
15407else $as_nop
15408  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15409/* end confdefs.h.  */
15410int i;
15411_ACEOF
15412if ac_fn_c_try_compile "$LINENO"
15413then :
15414  xorg_cv_cc_flag_unknown_warning_option=yes
15415else $as_nop
15416  xorg_cv_cc_flag_unknown_warning_option=no
15417fi
15418rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15419fi
15420{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15421printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15422	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15423	CFLAGS="$xorg_testset_save_CFLAGS"
15424fi
15425
15426if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15427	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15428		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15429	fi
15430	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15431	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15432printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15433if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15434then :
15435  printf %s "(cached) " >&6
15436else $as_nop
15437  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15438/* end confdefs.h.  */
15439int i;
15440_ACEOF
15441if ac_fn_c_try_compile "$LINENO"
15442then :
15443  xorg_cv_cc_flag_unused_command_line_argument=yes
15444else $as_nop
15445  xorg_cv_cc_flag_unused_command_line_argument=no
15446fi
15447rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15448fi
15449{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15450printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15451	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15452	CFLAGS="$xorg_testset_save_CFLAGS"
15453fi
15454
15455found="no"
15456
15457	if test $found = "no" ; then
15458		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15459			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15460		fi
15461
15462		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15463			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15464		fi
15465
15466		CFLAGS="$CFLAGS -Wmissing-format-attribute"
15467
15468		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
15469printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
15470		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
15471		if eval test \${$cacheid+y}
15472then :
15473  printf %s "(cached) " >&6
15474else $as_nop
15475  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15476/* end confdefs.h.  */
15477int i;
15478int
15479main (void)
15480{
15481
15482  ;
15483  return 0;
15484}
15485_ACEOF
15486if ac_fn_c_try_link "$LINENO"
15487then :
15488  eval $cacheid=yes
15489else $as_nop
15490  eval $cacheid=no
15491fi
15492rm -f core conftest.err conftest.$ac_objext conftest.beam \
15493    conftest$ac_exeext conftest.$ac_ext
15494fi
15495
15496
15497		CFLAGS="$xorg_testset_save_CFLAGS"
15498
15499		eval supported=\$$cacheid
15500		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15501printf "%s\n" "$supported" >&6; }
15502		if test "$supported" = "yes" ; then
15503			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
15504			found="yes"
15505		fi
15506	fi
15507
15508
15509
15510
15511
15512
15513
15514
15515
15516
15517
15518
15519
15520
15521
15522xorg_testset_save_CFLAGS="$CFLAGS"
15523
15524if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15525	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15526	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15527printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15528if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15529then :
15530  printf %s "(cached) " >&6
15531else $as_nop
15532  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15533/* end confdefs.h.  */
15534int i;
15535_ACEOF
15536if ac_fn_c_try_compile "$LINENO"
15537then :
15538  xorg_cv_cc_flag_unknown_warning_option=yes
15539else $as_nop
15540  xorg_cv_cc_flag_unknown_warning_option=no
15541fi
15542rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15543fi
15544{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15545printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15546	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15547	CFLAGS="$xorg_testset_save_CFLAGS"
15548fi
15549
15550if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15551	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15552		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15553	fi
15554	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15555	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15556printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15557if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15558then :
15559  printf %s "(cached) " >&6
15560else $as_nop
15561  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15562/* end confdefs.h.  */
15563int i;
15564_ACEOF
15565if ac_fn_c_try_compile "$LINENO"
15566then :
15567  xorg_cv_cc_flag_unused_command_line_argument=yes
15568else $as_nop
15569  xorg_cv_cc_flag_unused_command_line_argument=no
15570fi
15571rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15572fi
15573{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15574printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15575	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15576	CFLAGS="$xorg_testset_save_CFLAGS"
15577fi
15578
15579found="no"
15580
15581	if test $found = "no" ; then
15582		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15583			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15584		fi
15585
15586		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15587			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15588		fi
15589
15590		CFLAGS="$CFLAGS -Wredundant-decls"
15591
15592		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
15593printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
15594		cacheid=xorg_cv_cc_flag__Wredundant_decls
15595		if eval test \${$cacheid+y}
15596then :
15597  printf %s "(cached) " >&6
15598else $as_nop
15599  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15600/* end confdefs.h.  */
15601int i;
15602int
15603main (void)
15604{
15605
15606  ;
15607  return 0;
15608}
15609_ACEOF
15610if ac_fn_c_try_link "$LINENO"
15611then :
15612  eval $cacheid=yes
15613else $as_nop
15614  eval $cacheid=no
15615fi
15616rm -f core conftest.err conftest.$ac_objext conftest.beam \
15617    conftest$ac_exeext conftest.$ac_ext
15618fi
15619
15620
15621		CFLAGS="$xorg_testset_save_CFLAGS"
15622
15623		eval supported=\$$cacheid
15624		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15625printf "%s\n" "$supported" >&6; }
15626		if test "$supported" = "yes" ; then
15627			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
15628			found="yes"
15629		fi
15630	fi
15631
15632
15633
15634
15635
15636
15637
15638
15639
15640
15641
15642
15643
15644
15645
15646xorg_testset_save_CFLAGS="$CFLAGS"
15647
15648if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15649	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15650	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15651printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15652if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15653then :
15654  printf %s "(cached) " >&6
15655else $as_nop
15656  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15657/* end confdefs.h.  */
15658int i;
15659_ACEOF
15660if ac_fn_c_try_compile "$LINENO"
15661then :
15662  xorg_cv_cc_flag_unknown_warning_option=yes
15663else $as_nop
15664  xorg_cv_cc_flag_unknown_warning_option=no
15665fi
15666rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15667fi
15668{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15669printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15670	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15671	CFLAGS="$xorg_testset_save_CFLAGS"
15672fi
15673
15674if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15675	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15676		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15677	fi
15678	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15679	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15680printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15681if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15682then :
15683  printf %s "(cached) " >&6
15684else $as_nop
15685  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15686/* end confdefs.h.  */
15687int i;
15688_ACEOF
15689if ac_fn_c_try_compile "$LINENO"
15690then :
15691  xorg_cv_cc_flag_unused_command_line_argument=yes
15692else $as_nop
15693  xorg_cv_cc_flag_unused_command_line_argument=no
15694fi
15695rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15696fi
15697{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15698printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15699	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15700	CFLAGS="$xorg_testset_save_CFLAGS"
15701fi
15702
15703found="no"
15704
15705	if test $found = "no" ; then
15706		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15707			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15708		fi
15709
15710		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15711			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15712		fi
15713
15714		CFLAGS="$CFLAGS -Wlogical-op"
15715
15716		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
15717printf %s "checking if $CC supports -Wlogical-op... " >&6; }
15718		cacheid=xorg_cv_cc_flag__Wlogical_op
15719		if eval test \${$cacheid+y}
15720then :
15721  printf %s "(cached) " >&6
15722else $as_nop
15723  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15724/* end confdefs.h.  */
15725int i;
15726int
15727main (void)
15728{
15729
15730  ;
15731  return 0;
15732}
15733_ACEOF
15734if ac_fn_c_try_link "$LINENO"
15735then :
15736  eval $cacheid=yes
15737else $as_nop
15738  eval $cacheid=no
15739fi
15740rm -f core conftest.err conftest.$ac_objext conftest.beam \
15741    conftest$ac_exeext conftest.$ac_ext
15742fi
15743
15744
15745		CFLAGS="$xorg_testset_save_CFLAGS"
15746
15747		eval supported=\$$cacheid
15748		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15749printf "%s\n" "$supported" >&6; }
15750		if test "$supported" = "yes" ; then
15751			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
15752			found="yes"
15753		fi
15754	fi
15755
15756
15757
15758# These are currently disabled because they are noisy.  They will be enabled
15759# in the future once the codebase is sufficiently modernized to silence
15760# them.  For now, I don't want them to drown out the other warnings.
15761# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
15762# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
15763# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
15764
15765# Turn some warnings into errors, so we don't accidently get successful builds
15766# when there are problems that should be fixed.
15767
15768if test "x$SELECTIVE_WERROR" = "xyes" ; then
15769
15770
15771
15772
15773
15774
15775
15776
15777
15778
15779
15780
15781
15782xorg_testset_save_CFLAGS="$CFLAGS"
15783
15784if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15785	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15786	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15787printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15788if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15789then :
15790  printf %s "(cached) " >&6
15791else $as_nop
15792  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15793/* end confdefs.h.  */
15794int i;
15795_ACEOF
15796if ac_fn_c_try_compile "$LINENO"
15797then :
15798  xorg_cv_cc_flag_unknown_warning_option=yes
15799else $as_nop
15800  xorg_cv_cc_flag_unknown_warning_option=no
15801fi
15802rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15803fi
15804{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15805printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15806	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15807	CFLAGS="$xorg_testset_save_CFLAGS"
15808fi
15809
15810if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15811	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15812		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15813	fi
15814	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15815	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15816printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15817if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15818then :
15819  printf %s "(cached) " >&6
15820else $as_nop
15821  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15822/* end confdefs.h.  */
15823int i;
15824_ACEOF
15825if ac_fn_c_try_compile "$LINENO"
15826then :
15827  xorg_cv_cc_flag_unused_command_line_argument=yes
15828else $as_nop
15829  xorg_cv_cc_flag_unused_command_line_argument=no
15830fi
15831rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15832fi
15833{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15834printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15835	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15836	CFLAGS="$xorg_testset_save_CFLAGS"
15837fi
15838
15839found="no"
15840
15841	if test $found = "no" ; then
15842		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15843			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15844		fi
15845
15846		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15847			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15848		fi
15849
15850		CFLAGS="$CFLAGS -Werror=implicit"
15851
15852		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
15853printf %s "checking if $CC supports -Werror=implicit... " >&6; }
15854		cacheid=xorg_cv_cc_flag__Werror_implicit
15855		if eval test \${$cacheid+y}
15856then :
15857  printf %s "(cached) " >&6
15858else $as_nop
15859  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15860/* end confdefs.h.  */
15861int i;
15862int
15863main (void)
15864{
15865
15866  ;
15867  return 0;
15868}
15869_ACEOF
15870if ac_fn_c_try_link "$LINENO"
15871then :
15872  eval $cacheid=yes
15873else $as_nop
15874  eval $cacheid=no
15875fi
15876rm -f core conftest.err conftest.$ac_objext conftest.beam \
15877    conftest$ac_exeext conftest.$ac_ext
15878fi
15879
15880
15881		CFLAGS="$xorg_testset_save_CFLAGS"
15882
15883		eval supported=\$$cacheid
15884		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15885printf "%s\n" "$supported" >&6; }
15886		if test "$supported" = "yes" ; then
15887			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
15888			found="yes"
15889		fi
15890	fi
15891
15892	if test $found = "no" ; then
15893		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15894			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15895		fi
15896
15897		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15898			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15899		fi
15900
15901		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15902
15903		{ 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
15904printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
15905		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
15906		if eval test \${$cacheid+y}
15907then :
15908  printf %s "(cached) " >&6
15909else $as_nop
15910  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15911/* end confdefs.h.  */
15912int i;
15913int
15914main (void)
15915{
15916
15917  ;
15918  return 0;
15919}
15920_ACEOF
15921if ac_fn_c_try_link "$LINENO"
15922then :
15923  eval $cacheid=yes
15924else $as_nop
15925  eval $cacheid=no
15926fi
15927rm -f core conftest.err conftest.$ac_objext conftest.beam \
15928    conftest$ac_exeext conftest.$ac_ext
15929fi
15930
15931
15932		CFLAGS="$xorg_testset_save_CFLAGS"
15933
15934		eval supported=\$$cacheid
15935		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15936printf "%s\n" "$supported" >&6; }
15937		if test "$supported" = "yes" ; then
15938			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15939			found="yes"
15940		fi
15941	fi
15942
15943
15944
15945
15946
15947
15948
15949
15950
15951
15952
15953
15954
15955
15956
15957xorg_testset_save_CFLAGS="$CFLAGS"
15958
15959if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15960	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15961	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15962printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15963if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15964then :
15965  printf %s "(cached) " >&6
15966else $as_nop
15967  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15968/* end confdefs.h.  */
15969int i;
15970_ACEOF
15971if ac_fn_c_try_compile "$LINENO"
15972then :
15973  xorg_cv_cc_flag_unknown_warning_option=yes
15974else $as_nop
15975  xorg_cv_cc_flag_unknown_warning_option=no
15976fi
15977rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15978fi
15979{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15980printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15981	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15982	CFLAGS="$xorg_testset_save_CFLAGS"
15983fi
15984
15985if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15986	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15987		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15988	fi
15989	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15990	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15991printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15992if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15993then :
15994  printf %s "(cached) " >&6
15995else $as_nop
15996  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15997/* end confdefs.h.  */
15998int i;
15999_ACEOF
16000if ac_fn_c_try_compile "$LINENO"
16001then :
16002  xorg_cv_cc_flag_unused_command_line_argument=yes
16003else $as_nop
16004  xorg_cv_cc_flag_unused_command_line_argument=no
16005fi
16006rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16007fi
16008{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16009printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16010	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16011	CFLAGS="$xorg_testset_save_CFLAGS"
16012fi
16013
16014found="no"
16015
16016	if test $found = "no" ; then
16017		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16018			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16019		fi
16020
16021		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16022			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16023		fi
16024
16025		CFLAGS="$CFLAGS -Werror=nonnull"
16026
16027		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
16028printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
16029		cacheid=xorg_cv_cc_flag__Werror_nonnull
16030		if eval test \${$cacheid+y}
16031then :
16032  printf %s "(cached) " >&6
16033else $as_nop
16034  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16035/* end confdefs.h.  */
16036int i;
16037int
16038main (void)
16039{
16040
16041  ;
16042  return 0;
16043}
16044_ACEOF
16045if ac_fn_c_try_link "$LINENO"
16046then :
16047  eval $cacheid=yes
16048else $as_nop
16049  eval $cacheid=no
16050fi
16051rm -f core conftest.err conftest.$ac_objext conftest.beam \
16052    conftest$ac_exeext conftest.$ac_ext
16053fi
16054
16055
16056		CFLAGS="$xorg_testset_save_CFLAGS"
16057
16058		eval supported=\$$cacheid
16059		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16060printf "%s\n" "$supported" >&6; }
16061		if test "$supported" = "yes" ; then
16062			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
16063			found="yes"
16064		fi
16065	fi
16066
16067
16068
16069
16070
16071
16072
16073
16074
16075
16076
16077
16078
16079
16080
16081xorg_testset_save_CFLAGS="$CFLAGS"
16082
16083if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16084	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16085	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16086printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16087if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16088then :
16089  printf %s "(cached) " >&6
16090else $as_nop
16091  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16092/* end confdefs.h.  */
16093int i;
16094_ACEOF
16095if ac_fn_c_try_compile "$LINENO"
16096then :
16097  xorg_cv_cc_flag_unknown_warning_option=yes
16098else $as_nop
16099  xorg_cv_cc_flag_unknown_warning_option=no
16100fi
16101rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16102fi
16103{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16104printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16105	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16106	CFLAGS="$xorg_testset_save_CFLAGS"
16107fi
16108
16109if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16110	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16111		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16112	fi
16113	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16114	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16115printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16116if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16117then :
16118  printf %s "(cached) " >&6
16119else $as_nop
16120  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16121/* end confdefs.h.  */
16122int i;
16123_ACEOF
16124if ac_fn_c_try_compile "$LINENO"
16125then :
16126  xorg_cv_cc_flag_unused_command_line_argument=yes
16127else $as_nop
16128  xorg_cv_cc_flag_unused_command_line_argument=no
16129fi
16130rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16131fi
16132{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16133printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16134	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16135	CFLAGS="$xorg_testset_save_CFLAGS"
16136fi
16137
16138found="no"
16139
16140	if test $found = "no" ; then
16141		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16142			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16143		fi
16144
16145		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16146			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16147		fi
16148
16149		CFLAGS="$CFLAGS -Werror=init-self"
16150
16151		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
16152printf %s "checking if $CC supports -Werror=init-self... " >&6; }
16153		cacheid=xorg_cv_cc_flag__Werror_init_self
16154		if eval test \${$cacheid+y}
16155then :
16156  printf %s "(cached) " >&6
16157else $as_nop
16158  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16159/* end confdefs.h.  */
16160int i;
16161int
16162main (void)
16163{
16164
16165  ;
16166  return 0;
16167}
16168_ACEOF
16169if ac_fn_c_try_link "$LINENO"
16170then :
16171  eval $cacheid=yes
16172else $as_nop
16173  eval $cacheid=no
16174fi
16175rm -f core conftest.err conftest.$ac_objext conftest.beam \
16176    conftest$ac_exeext conftest.$ac_ext
16177fi
16178
16179
16180		CFLAGS="$xorg_testset_save_CFLAGS"
16181
16182		eval supported=\$$cacheid
16183		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16184printf "%s\n" "$supported" >&6; }
16185		if test "$supported" = "yes" ; then
16186			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
16187			found="yes"
16188		fi
16189	fi
16190
16191
16192
16193
16194
16195
16196
16197
16198
16199
16200
16201
16202
16203
16204
16205xorg_testset_save_CFLAGS="$CFLAGS"
16206
16207if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16208	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16209	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16210printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16211if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16212then :
16213  printf %s "(cached) " >&6
16214else $as_nop
16215  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16216/* end confdefs.h.  */
16217int i;
16218_ACEOF
16219if ac_fn_c_try_compile "$LINENO"
16220then :
16221  xorg_cv_cc_flag_unknown_warning_option=yes
16222else $as_nop
16223  xorg_cv_cc_flag_unknown_warning_option=no
16224fi
16225rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16226fi
16227{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16228printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16229	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16230	CFLAGS="$xorg_testset_save_CFLAGS"
16231fi
16232
16233if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16234	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16235		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16236	fi
16237	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16238	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16239printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16240if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16241then :
16242  printf %s "(cached) " >&6
16243else $as_nop
16244  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16245/* end confdefs.h.  */
16246int i;
16247_ACEOF
16248if ac_fn_c_try_compile "$LINENO"
16249then :
16250  xorg_cv_cc_flag_unused_command_line_argument=yes
16251else $as_nop
16252  xorg_cv_cc_flag_unused_command_line_argument=no
16253fi
16254rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16255fi
16256{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16257printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16258	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16259	CFLAGS="$xorg_testset_save_CFLAGS"
16260fi
16261
16262found="no"
16263
16264	if test $found = "no" ; then
16265		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16266			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16267		fi
16268
16269		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16270			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16271		fi
16272
16273		CFLAGS="$CFLAGS -Werror=main"
16274
16275		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
16276printf %s "checking if $CC supports -Werror=main... " >&6; }
16277		cacheid=xorg_cv_cc_flag__Werror_main
16278		if eval test \${$cacheid+y}
16279then :
16280  printf %s "(cached) " >&6
16281else $as_nop
16282  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16283/* end confdefs.h.  */
16284int i;
16285int
16286main (void)
16287{
16288
16289  ;
16290  return 0;
16291}
16292_ACEOF
16293if ac_fn_c_try_link "$LINENO"
16294then :
16295  eval $cacheid=yes
16296else $as_nop
16297  eval $cacheid=no
16298fi
16299rm -f core conftest.err conftest.$ac_objext conftest.beam \
16300    conftest$ac_exeext conftest.$ac_ext
16301fi
16302
16303
16304		CFLAGS="$xorg_testset_save_CFLAGS"
16305
16306		eval supported=\$$cacheid
16307		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16308printf "%s\n" "$supported" >&6; }
16309		if test "$supported" = "yes" ; then
16310			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
16311			found="yes"
16312		fi
16313	fi
16314
16315
16316
16317
16318
16319
16320
16321
16322
16323
16324
16325
16326
16327
16328
16329xorg_testset_save_CFLAGS="$CFLAGS"
16330
16331if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16332	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16333	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16334printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16335if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16336then :
16337  printf %s "(cached) " >&6
16338else $as_nop
16339  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16340/* end confdefs.h.  */
16341int i;
16342_ACEOF
16343if ac_fn_c_try_compile "$LINENO"
16344then :
16345  xorg_cv_cc_flag_unknown_warning_option=yes
16346else $as_nop
16347  xorg_cv_cc_flag_unknown_warning_option=no
16348fi
16349rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16350fi
16351{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16352printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16353	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16354	CFLAGS="$xorg_testset_save_CFLAGS"
16355fi
16356
16357if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16358	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16359		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16360	fi
16361	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16362	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16363printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16364if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16365then :
16366  printf %s "(cached) " >&6
16367else $as_nop
16368  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16369/* end confdefs.h.  */
16370int i;
16371_ACEOF
16372if ac_fn_c_try_compile "$LINENO"
16373then :
16374  xorg_cv_cc_flag_unused_command_line_argument=yes
16375else $as_nop
16376  xorg_cv_cc_flag_unused_command_line_argument=no
16377fi
16378rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16379fi
16380{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16381printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16382	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16383	CFLAGS="$xorg_testset_save_CFLAGS"
16384fi
16385
16386found="no"
16387
16388	if test $found = "no" ; then
16389		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16390			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16391		fi
16392
16393		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16394			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16395		fi
16396
16397		CFLAGS="$CFLAGS -Werror=missing-braces"
16398
16399		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
16400printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
16401		cacheid=xorg_cv_cc_flag__Werror_missing_braces
16402		if eval test \${$cacheid+y}
16403then :
16404  printf %s "(cached) " >&6
16405else $as_nop
16406  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16407/* end confdefs.h.  */
16408int i;
16409int
16410main (void)
16411{
16412
16413  ;
16414  return 0;
16415}
16416_ACEOF
16417if ac_fn_c_try_link "$LINENO"
16418then :
16419  eval $cacheid=yes
16420else $as_nop
16421  eval $cacheid=no
16422fi
16423rm -f core conftest.err conftest.$ac_objext conftest.beam \
16424    conftest$ac_exeext conftest.$ac_ext
16425fi
16426
16427
16428		CFLAGS="$xorg_testset_save_CFLAGS"
16429
16430		eval supported=\$$cacheid
16431		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16432printf "%s\n" "$supported" >&6; }
16433		if test "$supported" = "yes" ; then
16434			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
16435			found="yes"
16436		fi
16437	fi
16438
16439
16440
16441
16442
16443
16444
16445
16446
16447
16448
16449
16450
16451
16452
16453xorg_testset_save_CFLAGS="$CFLAGS"
16454
16455if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16456	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16457	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16458printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16459if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16460then :
16461  printf %s "(cached) " >&6
16462else $as_nop
16463  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16464/* end confdefs.h.  */
16465int i;
16466_ACEOF
16467if ac_fn_c_try_compile "$LINENO"
16468then :
16469  xorg_cv_cc_flag_unknown_warning_option=yes
16470else $as_nop
16471  xorg_cv_cc_flag_unknown_warning_option=no
16472fi
16473rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16474fi
16475{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16476printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16477	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16478	CFLAGS="$xorg_testset_save_CFLAGS"
16479fi
16480
16481if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16482	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16483		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16484	fi
16485	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16486	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16487printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16488if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16489then :
16490  printf %s "(cached) " >&6
16491else $as_nop
16492  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16493/* end confdefs.h.  */
16494int i;
16495_ACEOF
16496if ac_fn_c_try_compile "$LINENO"
16497then :
16498  xorg_cv_cc_flag_unused_command_line_argument=yes
16499else $as_nop
16500  xorg_cv_cc_flag_unused_command_line_argument=no
16501fi
16502rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16503fi
16504{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16505printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16506	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16507	CFLAGS="$xorg_testset_save_CFLAGS"
16508fi
16509
16510found="no"
16511
16512	if test $found = "no" ; then
16513		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16514			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16515		fi
16516
16517		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16518			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16519		fi
16520
16521		CFLAGS="$CFLAGS -Werror=sequence-point"
16522
16523		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
16524printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
16525		cacheid=xorg_cv_cc_flag__Werror_sequence_point
16526		if eval test \${$cacheid+y}
16527then :
16528  printf %s "(cached) " >&6
16529else $as_nop
16530  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16531/* end confdefs.h.  */
16532int i;
16533int
16534main (void)
16535{
16536
16537  ;
16538  return 0;
16539}
16540_ACEOF
16541if ac_fn_c_try_link "$LINENO"
16542then :
16543  eval $cacheid=yes
16544else $as_nop
16545  eval $cacheid=no
16546fi
16547rm -f core conftest.err conftest.$ac_objext conftest.beam \
16548    conftest$ac_exeext conftest.$ac_ext
16549fi
16550
16551
16552		CFLAGS="$xorg_testset_save_CFLAGS"
16553
16554		eval supported=\$$cacheid
16555		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16556printf "%s\n" "$supported" >&6; }
16557		if test "$supported" = "yes" ; then
16558			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
16559			found="yes"
16560		fi
16561	fi
16562
16563
16564
16565
16566
16567
16568
16569
16570
16571
16572
16573
16574
16575
16576
16577xorg_testset_save_CFLAGS="$CFLAGS"
16578
16579if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16580	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16581	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16582printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16583if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16584then :
16585  printf %s "(cached) " >&6
16586else $as_nop
16587  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16588/* end confdefs.h.  */
16589int i;
16590_ACEOF
16591if ac_fn_c_try_compile "$LINENO"
16592then :
16593  xorg_cv_cc_flag_unknown_warning_option=yes
16594else $as_nop
16595  xorg_cv_cc_flag_unknown_warning_option=no
16596fi
16597rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16598fi
16599{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16600printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16601	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16602	CFLAGS="$xorg_testset_save_CFLAGS"
16603fi
16604
16605if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16606	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16607		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16608	fi
16609	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16610	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16611printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16612if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16613then :
16614  printf %s "(cached) " >&6
16615else $as_nop
16616  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16617/* end confdefs.h.  */
16618int i;
16619_ACEOF
16620if ac_fn_c_try_compile "$LINENO"
16621then :
16622  xorg_cv_cc_flag_unused_command_line_argument=yes
16623else $as_nop
16624  xorg_cv_cc_flag_unused_command_line_argument=no
16625fi
16626rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16627fi
16628{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16629printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16630	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16631	CFLAGS="$xorg_testset_save_CFLAGS"
16632fi
16633
16634found="no"
16635
16636	if test $found = "no" ; then
16637		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16638			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16639		fi
16640
16641		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16642			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16643		fi
16644
16645		CFLAGS="$CFLAGS -Werror=return-type"
16646
16647		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
16648printf %s "checking if $CC supports -Werror=return-type... " >&6; }
16649		cacheid=xorg_cv_cc_flag__Werror_return_type
16650		if eval test \${$cacheid+y}
16651then :
16652  printf %s "(cached) " >&6
16653else $as_nop
16654  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16655/* end confdefs.h.  */
16656int i;
16657int
16658main (void)
16659{
16660
16661  ;
16662  return 0;
16663}
16664_ACEOF
16665if ac_fn_c_try_link "$LINENO"
16666then :
16667  eval $cacheid=yes
16668else $as_nop
16669  eval $cacheid=no
16670fi
16671rm -f core conftest.err conftest.$ac_objext conftest.beam \
16672    conftest$ac_exeext conftest.$ac_ext
16673fi
16674
16675
16676		CFLAGS="$xorg_testset_save_CFLAGS"
16677
16678		eval supported=\$$cacheid
16679		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16680printf "%s\n" "$supported" >&6; }
16681		if test "$supported" = "yes" ; then
16682			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
16683			found="yes"
16684		fi
16685	fi
16686
16687	if test $found = "no" ; then
16688		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16689			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16690		fi
16691
16692		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16693			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16694		fi
16695
16696		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16697
16698		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
16699printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
16700		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
16701		if eval test \${$cacheid+y}
16702then :
16703  printf %s "(cached) " >&6
16704else $as_nop
16705  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16706/* end confdefs.h.  */
16707int i;
16708int
16709main (void)
16710{
16711
16712  ;
16713  return 0;
16714}
16715_ACEOF
16716if ac_fn_c_try_link "$LINENO"
16717then :
16718  eval $cacheid=yes
16719else $as_nop
16720  eval $cacheid=no
16721fi
16722rm -f core conftest.err conftest.$ac_objext conftest.beam \
16723    conftest$ac_exeext conftest.$ac_ext
16724fi
16725
16726
16727		CFLAGS="$xorg_testset_save_CFLAGS"
16728
16729		eval supported=\$$cacheid
16730		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16731printf "%s\n" "$supported" >&6; }
16732		if test "$supported" = "yes" ; then
16733			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16734			found="yes"
16735		fi
16736	fi
16737
16738
16739
16740
16741
16742
16743
16744
16745
16746
16747
16748
16749
16750
16751
16752xorg_testset_save_CFLAGS="$CFLAGS"
16753
16754if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16755	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16756	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16757printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16758if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16759then :
16760  printf %s "(cached) " >&6
16761else $as_nop
16762  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16763/* end confdefs.h.  */
16764int i;
16765_ACEOF
16766if ac_fn_c_try_compile "$LINENO"
16767then :
16768  xorg_cv_cc_flag_unknown_warning_option=yes
16769else $as_nop
16770  xorg_cv_cc_flag_unknown_warning_option=no
16771fi
16772rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16773fi
16774{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16775printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16776	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16777	CFLAGS="$xorg_testset_save_CFLAGS"
16778fi
16779
16780if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16781	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16782		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16783	fi
16784	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16785	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16786printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16787if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16788then :
16789  printf %s "(cached) " >&6
16790else $as_nop
16791  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16792/* end confdefs.h.  */
16793int i;
16794_ACEOF
16795if ac_fn_c_try_compile "$LINENO"
16796then :
16797  xorg_cv_cc_flag_unused_command_line_argument=yes
16798else $as_nop
16799  xorg_cv_cc_flag_unused_command_line_argument=no
16800fi
16801rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16802fi
16803{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16804printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16805	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16806	CFLAGS="$xorg_testset_save_CFLAGS"
16807fi
16808
16809found="no"
16810
16811	if test $found = "no" ; then
16812		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16813			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16814		fi
16815
16816		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16817			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16818		fi
16819
16820		CFLAGS="$CFLAGS -Werror=trigraphs"
16821
16822		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
16823printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
16824		cacheid=xorg_cv_cc_flag__Werror_trigraphs
16825		if eval test \${$cacheid+y}
16826then :
16827  printf %s "(cached) " >&6
16828else $as_nop
16829  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16830/* end confdefs.h.  */
16831int i;
16832int
16833main (void)
16834{
16835
16836  ;
16837  return 0;
16838}
16839_ACEOF
16840if ac_fn_c_try_link "$LINENO"
16841then :
16842  eval $cacheid=yes
16843else $as_nop
16844  eval $cacheid=no
16845fi
16846rm -f core conftest.err conftest.$ac_objext conftest.beam \
16847    conftest$ac_exeext conftest.$ac_ext
16848fi
16849
16850
16851		CFLAGS="$xorg_testset_save_CFLAGS"
16852
16853		eval supported=\$$cacheid
16854		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16855printf "%s\n" "$supported" >&6; }
16856		if test "$supported" = "yes" ; then
16857			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
16858			found="yes"
16859		fi
16860	fi
16861
16862
16863
16864
16865
16866
16867
16868
16869
16870
16871
16872
16873
16874
16875
16876xorg_testset_save_CFLAGS="$CFLAGS"
16877
16878if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16879	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16880	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16881printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16882if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16883then :
16884  printf %s "(cached) " >&6
16885else $as_nop
16886  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16887/* end confdefs.h.  */
16888int i;
16889_ACEOF
16890if ac_fn_c_try_compile "$LINENO"
16891then :
16892  xorg_cv_cc_flag_unknown_warning_option=yes
16893else $as_nop
16894  xorg_cv_cc_flag_unknown_warning_option=no
16895fi
16896rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16897fi
16898{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16899printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16900	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16901	CFLAGS="$xorg_testset_save_CFLAGS"
16902fi
16903
16904if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16905	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16906		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16907	fi
16908	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16909	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16910printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16911if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16912then :
16913  printf %s "(cached) " >&6
16914else $as_nop
16915  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16916/* end confdefs.h.  */
16917int i;
16918_ACEOF
16919if ac_fn_c_try_compile "$LINENO"
16920then :
16921  xorg_cv_cc_flag_unused_command_line_argument=yes
16922else $as_nop
16923  xorg_cv_cc_flag_unused_command_line_argument=no
16924fi
16925rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16926fi
16927{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16928printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16929	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16930	CFLAGS="$xorg_testset_save_CFLAGS"
16931fi
16932
16933found="no"
16934
16935	if test $found = "no" ; then
16936		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16937			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16938		fi
16939
16940		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16941			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16942		fi
16943
16944		CFLAGS="$CFLAGS -Werror=array-bounds"
16945
16946		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
16947printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
16948		cacheid=xorg_cv_cc_flag__Werror_array_bounds
16949		if eval test \${$cacheid+y}
16950then :
16951  printf %s "(cached) " >&6
16952else $as_nop
16953  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16954/* end confdefs.h.  */
16955int i;
16956int
16957main (void)
16958{
16959
16960  ;
16961  return 0;
16962}
16963_ACEOF
16964if ac_fn_c_try_link "$LINENO"
16965then :
16966  eval $cacheid=yes
16967else $as_nop
16968  eval $cacheid=no
16969fi
16970rm -f core conftest.err conftest.$ac_objext conftest.beam \
16971    conftest$ac_exeext conftest.$ac_ext
16972fi
16973
16974
16975		CFLAGS="$xorg_testset_save_CFLAGS"
16976
16977		eval supported=\$$cacheid
16978		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16979printf "%s\n" "$supported" >&6; }
16980		if test "$supported" = "yes" ; then
16981			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
16982			found="yes"
16983		fi
16984	fi
16985
16986
16987
16988
16989
16990
16991
16992
16993
16994
16995
16996
16997
16998
16999
17000xorg_testset_save_CFLAGS="$CFLAGS"
17001
17002if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17003	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17004	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17005printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17006if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17007then :
17008  printf %s "(cached) " >&6
17009else $as_nop
17010  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17011/* end confdefs.h.  */
17012int i;
17013_ACEOF
17014if ac_fn_c_try_compile "$LINENO"
17015then :
17016  xorg_cv_cc_flag_unknown_warning_option=yes
17017else $as_nop
17018  xorg_cv_cc_flag_unknown_warning_option=no
17019fi
17020rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17021fi
17022{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17023printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17024	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17025	CFLAGS="$xorg_testset_save_CFLAGS"
17026fi
17027
17028if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17029	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17030		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17031	fi
17032	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17033	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17034printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17035if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17036then :
17037  printf %s "(cached) " >&6
17038else $as_nop
17039  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17040/* end confdefs.h.  */
17041int i;
17042_ACEOF
17043if ac_fn_c_try_compile "$LINENO"
17044then :
17045  xorg_cv_cc_flag_unused_command_line_argument=yes
17046else $as_nop
17047  xorg_cv_cc_flag_unused_command_line_argument=no
17048fi
17049rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17050fi
17051{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17052printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17053	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17054	CFLAGS="$xorg_testset_save_CFLAGS"
17055fi
17056
17057found="no"
17058
17059	if test $found = "no" ; then
17060		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17061			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17062		fi
17063
17064		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17065			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17066		fi
17067
17068		CFLAGS="$CFLAGS -Werror=write-strings"
17069
17070		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
17071printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
17072		cacheid=xorg_cv_cc_flag__Werror_write_strings
17073		if eval test \${$cacheid+y}
17074then :
17075  printf %s "(cached) " >&6
17076else $as_nop
17077  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17078/* end confdefs.h.  */
17079int i;
17080int
17081main (void)
17082{
17083
17084  ;
17085  return 0;
17086}
17087_ACEOF
17088if ac_fn_c_try_link "$LINENO"
17089then :
17090  eval $cacheid=yes
17091else $as_nop
17092  eval $cacheid=no
17093fi
17094rm -f core conftest.err conftest.$ac_objext conftest.beam \
17095    conftest$ac_exeext conftest.$ac_ext
17096fi
17097
17098
17099		CFLAGS="$xorg_testset_save_CFLAGS"
17100
17101		eval supported=\$$cacheid
17102		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17103printf "%s\n" "$supported" >&6; }
17104		if test "$supported" = "yes" ; then
17105			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
17106			found="yes"
17107		fi
17108	fi
17109
17110
17111
17112
17113
17114
17115
17116
17117
17118
17119
17120
17121
17122
17123
17124xorg_testset_save_CFLAGS="$CFLAGS"
17125
17126if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17127	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17128	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17129printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17130if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17131then :
17132  printf %s "(cached) " >&6
17133else $as_nop
17134  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17135/* end confdefs.h.  */
17136int i;
17137_ACEOF
17138if ac_fn_c_try_compile "$LINENO"
17139then :
17140  xorg_cv_cc_flag_unknown_warning_option=yes
17141else $as_nop
17142  xorg_cv_cc_flag_unknown_warning_option=no
17143fi
17144rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17145fi
17146{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17147printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17148	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17149	CFLAGS="$xorg_testset_save_CFLAGS"
17150fi
17151
17152if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17153	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17154		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17155	fi
17156	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17157	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17158printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17159if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17160then :
17161  printf %s "(cached) " >&6
17162else $as_nop
17163  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17164/* end confdefs.h.  */
17165int i;
17166_ACEOF
17167if ac_fn_c_try_compile "$LINENO"
17168then :
17169  xorg_cv_cc_flag_unused_command_line_argument=yes
17170else $as_nop
17171  xorg_cv_cc_flag_unused_command_line_argument=no
17172fi
17173rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17174fi
17175{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17176printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17177	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17178	CFLAGS="$xorg_testset_save_CFLAGS"
17179fi
17180
17181found="no"
17182
17183	if test $found = "no" ; then
17184		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17185			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17186		fi
17187
17188		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17189			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17190		fi
17191
17192		CFLAGS="$CFLAGS -Werror=address"
17193
17194		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
17195printf %s "checking if $CC supports -Werror=address... " >&6; }
17196		cacheid=xorg_cv_cc_flag__Werror_address
17197		if eval test \${$cacheid+y}
17198then :
17199  printf %s "(cached) " >&6
17200else $as_nop
17201  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17202/* end confdefs.h.  */
17203int i;
17204int
17205main (void)
17206{
17207
17208  ;
17209  return 0;
17210}
17211_ACEOF
17212if ac_fn_c_try_link "$LINENO"
17213then :
17214  eval $cacheid=yes
17215else $as_nop
17216  eval $cacheid=no
17217fi
17218rm -f core conftest.err conftest.$ac_objext conftest.beam \
17219    conftest$ac_exeext conftest.$ac_ext
17220fi
17221
17222
17223		CFLAGS="$xorg_testset_save_CFLAGS"
17224
17225		eval supported=\$$cacheid
17226		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17227printf "%s\n" "$supported" >&6; }
17228		if test "$supported" = "yes" ; then
17229			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
17230			found="yes"
17231		fi
17232	fi
17233
17234
17235
17236
17237
17238
17239
17240
17241
17242
17243
17244
17245
17246
17247
17248xorg_testset_save_CFLAGS="$CFLAGS"
17249
17250if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17251	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17252	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17253printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17254if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17255then :
17256  printf %s "(cached) " >&6
17257else $as_nop
17258  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17259/* end confdefs.h.  */
17260int i;
17261_ACEOF
17262if ac_fn_c_try_compile "$LINENO"
17263then :
17264  xorg_cv_cc_flag_unknown_warning_option=yes
17265else $as_nop
17266  xorg_cv_cc_flag_unknown_warning_option=no
17267fi
17268rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17269fi
17270{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17271printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17272	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17273	CFLAGS="$xorg_testset_save_CFLAGS"
17274fi
17275
17276if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17277	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17278		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17279	fi
17280	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17281	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17282printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17283if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17284then :
17285  printf %s "(cached) " >&6
17286else $as_nop
17287  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17288/* end confdefs.h.  */
17289int i;
17290_ACEOF
17291if ac_fn_c_try_compile "$LINENO"
17292then :
17293  xorg_cv_cc_flag_unused_command_line_argument=yes
17294else $as_nop
17295  xorg_cv_cc_flag_unused_command_line_argument=no
17296fi
17297rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17298fi
17299{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17300printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17301	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17302	CFLAGS="$xorg_testset_save_CFLAGS"
17303fi
17304
17305found="no"
17306
17307	if test $found = "no" ; then
17308		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17309			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17310		fi
17311
17312		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17313			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17314		fi
17315
17316		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
17317
17318		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
17319printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
17320		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
17321		if eval test \${$cacheid+y}
17322then :
17323  printf %s "(cached) " >&6
17324else $as_nop
17325  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17326/* end confdefs.h.  */
17327int i;
17328int
17329main (void)
17330{
17331
17332  ;
17333  return 0;
17334}
17335_ACEOF
17336if ac_fn_c_try_link "$LINENO"
17337then :
17338  eval $cacheid=yes
17339else $as_nop
17340  eval $cacheid=no
17341fi
17342rm -f core conftest.err conftest.$ac_objext conftest.beam \
17343    conftest$ac_exeext conftest.$ac_ext
17344fi
17345
17346
17347		CFLAGS="$xorg_testset_save_CFLAGS"
17348
17349		eval supported=\$$cacheid
17350		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17351printf "%s\n" "$supported" >&6; }
17352		if test "$supported" = "yes" ; then
17353			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
17354			found="yes"
17355		fi
17356	fi
17357
17358	if test $found = "no" ; then
17359		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17360			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17361		fi
17362
17363		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17364			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17365		fi
17366
17367		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
17368
17369		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
17370printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
17371		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
17372		if eval test \${$cacheid+y}
17373then :
17374  printf %s "(cached) " >&6
17375else $as_nop
17376  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17377/* end confdefs.h.  */
17378int i;
17379int
17380main (void)
17381{
17382
17383  ;
17384  return 0;
17385}
17386_ACEOF
17387if ac_fn_c_try_link "$LINENO"
17388then :
17389  eval $cacheid=yes
17390else $as_nop
17391  eval $cacheid=no
17392fi
17393rm -f core conftest.err conftest.$ac_objext conftest.beam \
17394    conftest$ac_exeext conftest.$ac_ext
17395fi
17396
17397
17398		CFLAGS="$xorg_testset_save_CFLAGS"
17399
17400		eval supported=\$$cacheid
17401		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17402printf "%s\n" "$supported" >&6; }
17403		if test "$supported" = "yes" ; then
17404			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
17405			found="yes"
17406		fi
17407	fi
17408
17409
17410
17411
17412
17413
17414
17415
17416
17417
17418
17419
17420
17421
17422
17423xorg_testset_save_CFLAGS="$CFLAGS"
17424
17425if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17426	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17427	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17428printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17429if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17430then :
17431  printf %s "(cached) " >&6
17432else $as_nop
17433  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17434/* end confdefs.h.  */
17435int i;
17436_ACEOF
17437if ac_fn_c_try_compile "$LINENO"
17438then :
17439  xorg_cv_cc_flag_unknown_warning_option=yes
17440else $as_nop
17441  xorg_cv_cc_flag_unknown_warning_option=no
17442fi
17443rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17444fi
17445{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17446printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17447	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17448	CFLAGS="$xorg_testset_save_CFLAGS"
17449fi
17450
17451if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17452	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17453		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17454	fi
17455	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17456	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17457printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17458if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17459then :
17460  printf %s "(cached) " >&6
17461else $as_nop
17462  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17463/* end confdefs.h.  */
17464int i;
17465_ACEOF
17466if ac_fn_c_try_compile "$LINENO"
17467then :
17468  xorg_cv_cc_flag_unused_command_line_argument=yes
17469else $as_nop
17470  xorg_cv_cc_flag_unused_command_line_argument=no
17471fi
17472rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17473fi
17474{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17475printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17476	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17477	CFLAGS="$xorg_testset_save_CFLAGS"
17478fi
17479
17480found="no"
17481
17482	if test $found = "no" ; then
17483		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17484			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17485		fi
17486
17487		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17488			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17489		fi
17490
17491		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
17492
17493		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
17494printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
17495		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
17496		if eval test \${$cacheid+y}
17497then :
17498  printf %s "(cached) " >&6
17499else $as_nop
17500  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17501/* end confdefs.h.  */
17502int i;
17503int
17504main (void)
17505{
17506
17507  ;
17508  return 0;
17509}
17510_ACEOF
17511if ac_fn_c_try_link "$LINENO"
17512then :
17513  eval $cacheid=yes
17514else $as_nop
17515  eval $cacheid=no
17516fi
17517rm -f core conftest.err conftest.$ac_objext conftest.beam \
17518    conftest$ac_exeext conftest.$ac_ext
17519fi
17520
17521
17522		CFLAGS="$xorg_testset_save_CFLAGS"
17523
17524		eval supported=\$$cacheid
17525		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17526printf "%s\n" "$supported" >&6; }
17527		if test "$supported" = "yes" ; then
17528			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
17529			found="yes"
17530		fi
17531	fi
17532
17533 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
17534else
17535{ 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
17536printf "%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;}
17537
17538
17539
17540
17541
17542
17543
17544
17545
17546
17547
17548
17549
17550xorg_testset_save_CFLAGS="$CFLAGS"
17551
17552if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17553	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17554	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17555printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17556if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17557then :
17558  printf %s "(cached) " >&6
17559else $as_nop
17560  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17561/* end confdefs.h.  */
17562int i;
17563_ACEOF
17564if ac_fn_c_try_compile "$LINENO"
17565then :
17566  xorg_cv_cc_flag_unknown_warning_option=yes
17567else $as_nop
17568  xorg_cv_cc_flag_unknown_warning_option=no
17569fi
17570rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17571fi
17572{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17573printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17574	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17575	CFLAGS="$xorg_testset_save_CFLAGS"
17576fi
17577
17578if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17579	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17580		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17581	fi
17582	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17583	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17584printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17585if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17586then :
17587  printf %s "(cached) " >&6
17588else $as_nop
17589  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17590/* end confdefs.h.  */
17591int i;
17592_ACEOF
17593if ac_fn_c_try_compile "$LINENO"
17594then :
17595  xorg_cv_cc_flag_unused_command_line_argument=yes
17596else $as_nop
17597  xorg_cv_cc_flag_unused_command_line_argument=no
17598fi
17599rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17600fi
17601{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17602printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17603	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17604	CFLAGS="$xorg_testset_save_CFLAGS"
17605fi
17606
17607found="no"
17608
17609	if test $found = "no" ; then
17610		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17611			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17612		fi
17613
17614		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17615			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17616		fi
17617
17618		CFLAGS="$CFLAGS -Wimplicit"
17619
17620		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
17621printf %s "checking if $CC supports -Wimplicit... " >&6; }
17622		cacheid=xorg_cv_cc_flag__Wimplicit
17623		if eval test \${$cacheid+y}
17624then :
17625  printf %s "(cached) " >&6
17626else $as_nop
17627  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17628/* end confdefs.h.  */
17629int i;
17630int
17631main (void)
17632{
17633
17634  ;
17635  return 0;
17636}
17637_ACEOF
17638if ac_fn_c_try_link "$LINENO"
17639then :
17640  eval $cacheid=yes
17641else $as_nop
17642  eval $cacheid=no
17643fi
17644rm -f core conftest.err conftest.$ac_objext conftest.beam \
17645    conftest$ac_exeext conftest.$ac_ext
17646fi
17647
17648
17649		CFLAGS="$xorg_testset_save_CFLAGS"
17650
17651		eval supported=\$$cacheid
17652		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17653printf "%s\n" "$supported" >&6; }
17654		if test "$supported" = "yes" ; then
17655			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
17656			found="yes"
17657		fi
17658	fi
17659
17660
17661
17662
17663
17664
17665
17666
17667
17668
17669
17670
17671
17672
17673
17674xorg_testset_save_CFLAGS="$CFLAGS"
17675
17676if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17677	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17678	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17679printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17680if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17681then :
17682  printf %s "(cached) " >&6
17683else $as_nop
17684  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17685/* end confdefs.h.  */
17686int i;
17687_ACEOF
17688if ac_fn_c_try_compile "$LINENO"
17689then :
17690  xorg_cv_cc_flag_unknown_warning_option=yes
17691else $as_nop
17692  xorg_cv_cc_flag_unknown_warning_option=no
17693fi
17694rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17695fi
17696{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17697printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17698	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17699	CFLAGS="$xorg_testset_save_CFLAGS"
17700fi
17701
17702if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17703	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17704		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17705	fi
17706	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17707	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17708printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17709if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17710then :
17711  printf %s "(cached) " >&6
17712else $as_nop
17713  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17714/* end confdefs.h.  */
17715int i;
17716_ACEOF
17717if ac_fn_c_try_compile "$LINENO"
17718then :
17719  xorg_cv_cc_flag_unused_command_line_argument=yes
17720else $as_nop
17721  xorg_cv_cc_flag_unused_command_line_argument=no
17722fi
17723rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17724fi
17725{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17726printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17727	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17728	CFLAGS="$xorg_testset_save_CFLAGS"
17729fi
17730
17731found="no"
17732
17733	if test $found = "no" ; then
17734		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17735			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17736		fi
17737
17738		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17739			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17740		fi
17741
17742		CFLAGS="$CFLAGS -Wnonnull"
17743
17744		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
17745printf %s "checking if $CC supports -Wnonnull... " >&6; }
17746		cacheid=xorg_cv_cc_flag__Wnonnull
17747		if eval test \${$cacheid+y}
17748then :
17749  printf %s "(cached) " >&6
17750else $as_nop
17751  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17752/* end confdefs.h.  */
17753int i;
17754int
17755main (void)
17756{
17757
17758  ;
17759  return 0;
17760}
17761_ACEOF
17762if ac_fn_c_try_link "$LINENO"
17763then :
17764  eval $cacheid=yes
17765else $as_nop
17766  eval $cacheid=no
17767fi
17768rm -f core conftest.err conftest.$ac_objext conftest.beam \
17769    conftest$ac_exeext conftest.$ac_ext
17770fi
17771
17772
17773		CFLAGS="$xorg_testset_save_CFLAGS"
17774
17775		eval supported=\$$cacheid
17776		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17777printf "%s\n" "$supported" >&6; }
17778		if test "$supported" = "yes" ; then
17779			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
17780			found="yes"
17781		fi
17782	fi
17783
17784
17785
17786
17787
17788
17789
17790
17791
17792
17793
17794
17795
17796
17797
17798xorg_testset_save_CFLAGS="$CFLAGS"
17799
17800if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17801	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17802	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17803printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17804if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17805then :
17806  printf %s "(cached) " >&6
17807else $as_nop
17808  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17809/* end confdefs.h.  */
17810int i;
17811_ACEOF
17812if ac_fn_c_try_compile "$LINENO"
17813then :
17814  xorg_cv_cc_flag_unknown_warning_option=yes
17815else $as_nop
17816  xorg_cv_cc_flag_unknown_warning_option=no
17817fi
17818rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17819fi
17820{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17821printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17822	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17823	CFLAGS="$xorg_testset_save_CFLAGS"
17824fi
17825
17826if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17827	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17828		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17829	fi
17830	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17831	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17832printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17833if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17834then :
17835  printf %s "(cached) " >&6
17836else $as_nop
17837  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17838/* end confdefs.h.  */
17839int i;
17840_ACEOF
17841if ac_fn_c_try_compile "$LINENO"
17842then :
17843  xorg_cv_cc_flag_unused_command_line_argument=yes
17844else $as_nop
17845  xorg_cv_cc_flag_unused_command_line_argument=no
17846fi
17847rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17848fi
17849{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17850printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17851	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17852	CFLAGS="$xorg_testset_save_CFLAGS"
17853fi
17854
17855found="no"
17856
17857	if test $found = "no" ; then
17858		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17859			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17860		fi
17861
17862		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17863			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17864		fi
17865
17866		CFLAGS="$CFLAGS -Winit-self"
17867
17868		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
17869printf %s "checking if $CC supports -Winit-self... " >&6; }
17870		cacheid=xorg_cv_cc_flag__Winit_self
17871		if eval test \${$cacheid+y}
17872then :
17873  printf %s "(cached) " >&6
17874else $as_nop
17875  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17876/* end confdefs.h.  */
17877int i;
17878int
17879main (void)
17880{
17881
17882  ;
17883  return 0;
17884}
17885_ACEOF
17886if ac_fn_c_try_link "$LINENO"
17887then :
17888  eval $cacheid=yes
17889else $as_nop
17890  eval $cacheid=no
17891fi
17892rm -f core conftest.err conftest.$ac_objext conftest.beam \
17893    conftest$ac_exeext conftest.$ac_ext
17894fi
17895
17896
17897		CFLAGS="$xorg_testset_save_CFLAGS"
17898
17899		eval supported=\$$cacheid
17900		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17901printf "%s\n" "$supported" >&6; }
17902		if test "$supported" = "yes" ; then
17903			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
17904			found="yes"
17905		fi
17906	fi
17907
17908
17909
17910
17911
17912
17913
17914
17915
17916
17917
17918
17919
17920
17921
17922xorg_testset_save_CFLAGS="$CFLAGS"
17923
17924if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17925	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17926	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17927printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17928if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17929then :
17930  printf %s "(cached) " >&6
17931else $as_nop
17932  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17933/* end confdefs.h.  */
17934int i;
17935_ACEOF
17936if ac_fn_c_try_compile "$LINENO"
17937then :
17938  xorg_cv_cc_flag_unknown_warning_option=yes
17939else $as_nop
17940  xorg_cv_cc_flag_unknown_warning_option=no
17941fi
17942rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17943fi
17944{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17945printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17946	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17947	CFLAGS="$xorg_testset_save_CFLAGS"
17948fi
17949
17950if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17951	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17952		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17953	fi
17954	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17955	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17956printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17957if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17958then :
17959  printf %s "(cached) " >&6
17960else $as_nop
17961  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17962/* end confdefs.h.  */
17963int i;
17964_ACEOF
17965if ac_fn_c_try_compile "$LINENO"
17966then :
17967  xorg_cv_cc_flag_unused_command_line_argument=yes
17968else $as_nop
17969  xorg_cv_cc_flag_unused_command_line_argument=no
17970fi
17971rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17972fi
17973{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17974printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17975	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17976	CFLAGS="$xorg_testset_save_CFLAGS"
17977fi
17978
17979found="no"
17980
17981	if test $found = "no" ; then
17982		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17983			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17984		fi
17985
17986		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17987			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17988		fi
17989
17990		CFLAGS="$CFLAGS -Wmain"
17991
17992		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
17993printf %s "checking if $CC supports -Wmain... " >&6; }
17994		cacheid=xorg_cv_cc_flag__Wmain
17995		if eval test \${$cacheid+y}
17996then :
17997  printf %s "(cached) " >&6
17998else $as_nop
17999  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18000/* end confdefs.h.  */
18001int i;
18002int
18003main (void)
18004{
18005
18006  ;
18007  return 0;
18008}
18009_ACEOF
18010if ac_fn_c_try_link "$LINENO"
18011then :
18012  eval $cacheid=yes
18013else $as_nop
18014  eval $cacheid=no
18015fi
18016rm -f core conftest.err conftest.$ac_objext conftest.beam \
18017    conftest$ac_exeext conftest.$ac_ext
18018fi
18019
18020
18021		CFLAGS="$xorg_testset_save_CFLAGS"
18022
18023		eval supported=\$$cacheid
18024		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18025printf "%s\n" "$supported" >&6; }
18026		if test "$supported" = "yes" ; then
18027			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
18028			found="yes"
18029		fi
18030	fi
18031
18032
18033
18034
18035
18036
18037
18038
18039
18040
18041
18042
18043
18044
18045
18046xorg_testset_save_CFLAGS="$CFLAGS"
18047
18048if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18049	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18050	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18051printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18052if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18053then :
18054  printf %s "(cached) " >&6
18055else $as_nop
18056  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18057/* end confdefs.h.  */
18058int i;
18059_ACEOF
18060if ac_fn_c_try_compile "$LINENO"
18061then :
18062  xorg_cv_cc_flag_unknown_warning_option=yes
18063else $as_nop
18064  xorg_cv_cc_flag_unknown_warning_option=no
18065fi
18066rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18067fi
18068{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18069printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18070	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18071	CFLAGS="$xorg_testset_save_CFLAGS"
18072fi
18073
18074if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18075	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18076		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18077	fi
18078	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18079	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18080printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18081if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18082then :
18083  printf %s "(cached) " >&6
18084else $as_nop
18085  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18086/* end confdefs.h.  */
18087int i;
18088_ACEOF
18089if ac_fn_c_try_compile "$LINENO"
18090then :
18091  xorg_cv_cc_flag_unused_command_line_argument=yes
18092else $as_nop
18093  xorg_cv_cc_flag_unused_command_line_argument=no
18094fi
18095rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18096fi
18097{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18098printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18099	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18100	CFLAGS="$xorg_testset_save_CFLAGS"
18101fi
18102
18103found="no"
18104
18105	if test $found = "no" ; then
18106		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18107			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18108		fi
18109
18110		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18111			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18112		fi
18113
18114		CFLAGS="$CFLAGS -Wmissing-braces"
18115
18116		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
18117printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
18118		cacheid=xorg_cv_cc_flag__Wmissing_braces
18119		if eval test \${$cacheid+y}
18120then :
18121  printf %s "(cached) " >&6
18122else $as_nop
18123  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18124/* end confdefs.h.  */
18125int i;
18126int
18127main (void)
18128{
18129
18130  ;
18131  return 0;
18132}
18133_ACEOF
18134if ac_fn_c_try_link "$LINENO"
18135then :
18136  eval $cacheid=yes
18137else $as_nop
18138  eval $cacheid=no
18139fi
18140rm -f core conftest.err conftest.$ac_objext conftest.beam \
18141    conftest$ac_exeext conftest.$ac_ext
18142fi
18143
18144
18145		CFLAGS="$xorg_testset_save_CFLAGS"
18146
18147		eval supported=\$$cacheid
18148		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18149printf "%s\n" "$supported" >&6; }
18150		if test "$supported" = "yes" ; then
18151			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
18152			found="yes"
18153		fi
18154	fi
18155
18156
18157
18158
18159
18160
18161
18162
18163
18164
18165
18166
18167
18168
18169
18170xorg_testset_save_CFLAGS="$CFLAGS"
18171
18172if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18173	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18174	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18175printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18176if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18177then :
18178  printf %s "(cached) " >&6
18179else $as_nop
18180  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18181/* end confdefs.h.  */
18182int i;
18183_ACEOF
18184if ac_fn_c_try_compile "$LINENO"
18185then :
18186  xorg_cv_cc_flag_unknown_warning_option=yes
18187else $as_nop
18188  xorg_cv_cc_flag_unknown_warning_option=no
18189fi
18190rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18191fi
18192{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18193printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18194	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18195	CFLAGS="$xorg_testset_save_CFLAGS"
18196fi
18197
18198if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18199	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18200		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18201	fi
18202	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18203	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18204printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18205if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18206then :
18207  printf %s "(cached) " >&6
18208else $as_nop
18209  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18210/* end confdefs.h.  */
18211int i;
18212_ACEOF
18213if ac_fn_c_try_compile "$LINENO"
18214then :
18215  xorg_cv_cc_flag_unused_command_line_argument=yes
18216else $as_nop
18217  xorg_cv_cc_flag_unused_command_line_argument=no
18218fi
18219rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18220fi
18221{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18222printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18223	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18224	CFLAGS="$xorg_testset_save_CFLAGS"
18225fi
18226
18227found="no"
18228
18229	if test $found = "no" ; then
18230		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18231			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18232		fi
18233
18234		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18235			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18236		fi
18237
18238		CFLAGS="$CFLAGS -Wsequence-point"
18239
18240		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
18241printf %s "checking if $CC supports -Wsequence-point... " >&6; }
18242		cacheid=xorg_cv_cc_flag__Wsequence_point
18243		if eval test \${$cacheid+y}
18244then :
18245  printf %s "(cached) " >&6
18246else $as_nop
18247  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18248/* end confdefs.h.  */
18249int i;
18250int
18251main (void)
18252{
18253
18254  ;
18255  return 0;
18256}
18257_ACEOF
18258if ac_fn_c_try_link "$LINENO"
18259then :
18260  eval $cacheid=yes
18261else $as_nop
18262  eval $cacheid=no
18263fi
18264rm -f core conftest.err conftest.$ac_objext conftest.beam \
18265    conftest$ac_exeext conftest.$ac_ext
18266fi
18267
18268
18269		CFLAGS="$xorg_testset_save_CFLAGS"
18270
18271		eval supported=\$$cacheid
18272		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18273printf "%s\n" "$supported" >&6; }
18274		if test "$supported" = "yes" ; then
18275			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
18276			found="yes"
18277		fi
18278	fi
18279
18280
18281
18282
18283
18284
18285
18286
18287
18288
18289
18290
18291
18292
18293
18294xorg_testset_save_CFLAGS="$CFLAGS"
18295
18296if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18297	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18298	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18299printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18300if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18301then :
18302  printf %s "(cached) " >&6
18303else $as_nop
18304  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18305/* end confdefs.h.  */
18306int i;
18307_ACEOF
18308if ac_fn_c_try_compile "$LINENO"
18309then :
18310  xorg_cv_cc_flag_unknown_warning_option=yes
18311else $as_nop
18312  xorg_cv_cc_flag_unknown_warning_option=no
18313fi
18314rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18315fi
18316{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18317printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18318	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18319	CFLAGS="$xorg_testset_save_CFLAGS"
18320fi
18321
18322if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18323	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18324		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18325	fi
18326	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18327	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18328printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18329if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18330then :
18331  printf %s "(cached) " >&6
18332else $as_nop
18333  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18334/* end confdefs.h.  */
18335int i;
18336_ACEOF
18337if ac_fn_c_try_compile "$LINENO"
18338then :
18339  xorg_cv_cc_flag_unused_command_line_argument=yes
18340else $as_nop
18341  xorg_cv_cc_flag_unused_command_line_argument=no
18342fi
18343rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18344fi
18345{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18346printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18347	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18348	CFLAGS="$xorg_testset_save_CFLAGS"
18349fi
18350
18351found="no"
18352
18353	if test $found = "no" ; then
18354		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18355			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18356		fi
18357
18358		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18359			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18360		fi
18361
18362		CFLAGS="$CFLAGS -Wreturn-type"
18363
18364		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
18365printf %s "checking if $CC supports -Wreturn-type... " >&6; }
18366		cacheid=xorg_cv_cc_flag__Wreturn_type
18367		if eval test \${$cacheid+y}
18368then :
18369  printf %s "(cached) " >&6
18370else $as_nop
18371  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18372/* end confdefs.h.  */
18373int i;
18374int
18375main (void)
18376{
18377
18378  ;
18379  return 0;
18380}
18381_ACEOF
18382if ac_fn_c_try_link "$LINENO"
18383then :
18384  eval $cacheid=yes
18385else $as_nop
18386  eval $cacheid=no
18387fi
18388rm -f core conftest.err conftest.$ac_objext conftest.beam \
18389    conftest$ac_exeext conftest.$ac_ext
18390fi
18391
18392
18393		CFLAGS="$xorg_testset_save_CFLAGS"
18394
18395		eval supported=\$$cacheid
18396		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18397printf "%s\n" "$supported" >&6; }
18398		if test "$supported" = "yes" ; then
18399			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
18400			found="yes"
18401		fi
18402	fi
18403
18404
18405
18406
18407
18408
18409
18410
18411
18412
18413
18414
18415
18416
18417
18418xorg_testset_save_CFLAGS="$CFLAGS"
18419
18420if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18421	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18422	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18423printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18424if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18425then :
18426  printf %s "(cached) " >&6
18427else $as_nop
18428  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18429/* end confdefs.h.  */
18430int i;
18431_ACEOF
18432if ac_fn_c_try_compile "$LINENO"
18433then :
18434  xorg_cv_cc_flag_unknown_warning_option=yes
18435else $as_nop
18436  xorg_cv_cc_flag_unknown_warning_option=no
18437fi
18438rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18439fi
18440{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18441printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18442	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18443	CFLAGS="$xorg_testset_save_CFLAGS"
18444fi
18445
18446if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18447	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18448		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18449	fi
18450	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18451	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18452printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18453if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18454then :
18455  printf %s "(cached) " >&6
18456else $as_nop
18457  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18458/* end confdefs.h.  */
18459int i;
18460_ACEOF
18461if ac_fn_c_try_compile "$LINENO"
18462then :
18463  xorg_cv_cc_flag_unused_command_line_argument=yes
18464else $as_nop
18465  xorg_cv_cc_flag_unused_command_line_argument=no
18466fi
18467rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18468fi
18469{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18470printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18471	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18472	CFLAGS="$xorg_testset_save_CFLAGS"
18473fi
18474
18475found="no"
18476
18477	if test $found = "no" ; then
18478		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18479			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18480		fi
18481
18482		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18483			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18484		fi
18485
18486		CFLAGS="$CFLAGS -Wtrigraphs"
18487
18488		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
18489printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
18490		cacheid=xorg_cv_cc_flag__Wtrigraphs
18491		if eval test \${$cacheid+y}
18492then :
18493  printf %s "(cached) " >&6
18494else $as_nop
18495  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18496/* end confdefs.h.  */
18497int i;
18498int
18499main (void)
18500{
18501
18502  ;
18503  return 0;
18504}
18505_ACEOF
18506if ac_fn_c_try_link "$LINENO"
18507then :
18508  eval $cacheid=yes
18509else $as_nop
18510  eval $cacheid=no
18511fi
18512rm -f core conftest.err conftest.$ac_objext conftest.beam \
18513    conftest$ac_exeext conftest.$ac_ext
18514fi
18515
18516
18517		CFLAGS="$xorg_testset_save_CFLAGS"
18518
18519		eval supported=\$$cacheid
18520		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18521printf "%s\n" "$supported" >&6; }
18522		if test "$supported" = "yes" ; then
18523			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
18524			found="yes"
18525		fi
18526	fi
18527
18528
18529
18530
18531
18532
18533
18534
18535
18536
18537
18538
18539
18540
18541
18542xorg_testset_save_CFLAGS="$CFLAGS"
18543
18544if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18545	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18546	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18547printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18548if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18549then :
18550  printf %s "(cached) " >&6
18551else $as_nop
18552  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18553/* end confdefs.h.  */
18554int i;
18555_ACEOF
18556if ac_fn_c_try_compile "$LINENO"
18557then :
18558  xorg_cv_cc_flag_unknown_warning_option=yes
18559else $as_nop
18560  xorg_cv_cc_flag_unknown_warning_option=no
18561fi
18562rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18563fi
18564{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18565printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18566	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18567	CFLAGS="$xorg_testset_save_CFLAGS"
18568fi
18569
18570if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18571	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18572		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18573	fi
18574	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18575	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18576printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18577if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18578then :
18579  printf %s "(cached) " >&6
18580else $as_nop
18581  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18582/* end confdefs.h.  */
18583int i;
18584_ACEOF
18585if ac_fn_c_try_compile "$LINENO"
18586then :
18587  xorg_cv_cc_flag_unused_command_line_argument=yes
18588else $as_nop
18589  xorg_cv_cc_flag_unused_command_line_argument=no
18590fi
18591rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18592fi
18593{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18594printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18595	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18596	CFLAGS="$xorg_testset_save_CFLAGS"
18597fi
18598
18599found="no"
18600
18601	if test $found = "no" ; then
18602		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18603			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18604		fi
18605
18606		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18607			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18608		fi
18609
18610		CFLAGS="$CFLAGS -Warray-bounds"
18611
18612		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
18613printf %s "checking if $CC supports -Warray-bounds... " >&6; }
18614		cacheid=xorg_cv_cc_flag__Warray_bounds
18615		if eval test \${$cacheid+y}
18616then :
18617  printf %s "(cached) " >&6
18618else $as_nop
18619  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18620/* end confdefs.h.  */
18621int i;
18622int
18623main (void)
18624{
18625
18626  ;
18627  return 0;
18628}
18629_ACEOF
18630if ac_fn_c_try_link "$LINENO"
18631then :
18632  eval $cacheid=yes
18633else $as_nop
18634  eval $cacheid=no
18635fi
18636rm -f core conftest.err conftest.$ac_objext conftest.beam \
18637    conftest$ac_exeext conftest.$ac_ext
18638fi
18639
18640
18641		CFLAGS="$xorg_testset_save_CFLAGS"
18642
18643		eval supported=\$$cacheid
18644		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18645printf "%s\n" "$supported" >&6; }
18646		if test "$supported" = "yes" ; then
18647			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
18648			found="yes"
18649		fi
18650	fi
18651
18652
18653
18654
18655
18656
18657
18658
18659
18660
18661
18662
18663
18664
18665
18666xorg_testset_save_CFLAGS="$CFLAGS"
18667
18668if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18669	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18670	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18671printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18672if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18673then :
18674  printf %s "(cached) " >&6
18675else $as_nop
18676  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18677/* end confdefs.h.  */
18678int i;
18679_ACEOF
18680if ac_fn_c_try_compile "$LINENO"
18681then :
18682  xorg_cv_cc_flag_unknown_warning_option=yes
18683else $as_nop
18684  xorg_cv_cc_flag_unknown_warning_option=no
18685fi
18686rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18687fi
18688{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18689printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18690	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18691	CFLAGS="$xorg_testset_save_CFLAGS"
18692fi
18693
18694if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18695	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18696		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18697	fi
18698	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18699	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18700printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18701if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18702then :
18703  printf %s "(cached) " >&6
18704else $as_nop
18705  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18706/* end confdefs.h.  */
18707int i;
18708_ACEOF
18709if ac_fn_c_try_compile "$LINENO"
18710then :
18711  xorg_cv_cc_flag_unused_command_line_argument=yes
18712else $as_nop
18713  xorg_cv_cc_flag_unused_command_line_argument=no
18714fi
18715rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18716fi
18717{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18718printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18719	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18720	CFLAGS="$xorg_testset_save_CFLAGS"
18721fi
18722
18723found="no"
18724
18725	if test $found = "no" ; then
18726		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18727			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18728		fi
18729
18730		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18731			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18732		fi
18733
18734		CFLAGS="$CFLAGS -Wwrite-strings"
18735
18736		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
18737printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
18738		cacheid=xorg_cv_cc_flag__Wwrite_strings
18739		if eval test \${$cacheid+y}
18740then :
18741  printf %s "(cached) " >&6
18742else $as_nop
18743  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18744/* end confdefs.h.  */
18745int i;
18746int
18747main (void)
18748{
18749
18750  ;
18751  return 0;
18752}
18753_ACEOF
18754if ac_fn_c_try_link "$LINENO"
18755then :
18756  eval $cacheid=yes
18757else $as_nop
18758  eval $cacheid=no
18759fi
18760rm -f core conftest.err conftest.$ac_objext conftest.beam \
18761    conftest$ac_exeext conftest.$ac_ext
18762fi
18763
18764
18765		CFLAGS="$xorg_testset_save_CFLAGS"
18766
18767		eval supported=\$$cacheid
18768		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18769printf "%s\n" "$supported" >&6; }
18770		if test "$supported" = "yes" ; then
18771			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
18772			found="yes"
18773		fi
18774	fi
18775
18776
18777
18778
18779
18780
18781
18782
18783
18784
18785
18786
18787
18788
18789
18790xorg_testset_save_CFLAGS="$CFLAGS"
18791
18792if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18793	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18794	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18795printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18796if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18797then :
18798  printf %s "(cached) " >&6
18799else $as_nop
18800  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18801/* end confdefs.h.  */
18802int i;
18803_ACEOF
18804if ac_fn_c_try_compile "$LINENO"
18805then :
18806  xorg_cv_cc_flag_unknown_warning_option=yes
18807else $as_nop
18808  xorg_cv_cc_flag_unknown_warning_option=no
18809fi
18810rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18811fi
18812{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18813printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18814	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18815	CFLAGS="$xorg_testset_save_CFLAGS"
18816fi
18817
18818if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18819	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18820		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18821	fi
18822	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18823	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18824printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18825if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18826then :
18827  printf %s "(cached) " >&6
18828else $as_nop
18829  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18830/* end confdefs.h.  */
18831int i;
18832_ACEOF
18833if ac_fn_c_try_compile "$LINENO"
18834then :
18835  xorg_cv_cc_flag_unused_command_line_argument=yes
18836else $as_nop
18837  xorg_cv_cc_flag_unused_command_line_argument=no
18838fi
18839rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18840fi
18841{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18842printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18843	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18844	CFLAGS="$xorg_testset_save_CFLAGS"
18845fi
18846
18847found="no"
18848
18849	if test $found = "no" ; then
18850		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18851			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18852		fi
18853
18854		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18855			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18856		fi
18857
18858		CFLAGS="$CFLAGS -Waddress"
18859
18860		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
18861printf %s "checking if $CC supports -Waddress... " >&6; }
18862		cacheid=xorg_cv_cc_flag__Waddress
18863		if eval test \${$cacheid+y}
18864then :
18865  printf %s "(cached) " >&6
18866else $as_nop
18867  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18868/* end confdefs.h.  */
18869int i;
18870int
18871main (void)
18872{
18873
18874  ;
18875  return 0;
18876}
18877_ACEOF
18878if ac_fn_c_try_link "$LINENO"
18879then :
18880  eval $cacheid=yes
18881else $as_nop
18882  eval $cacheid=no
18883fi
18884rm -f core conftest.err conftest.$ac_objext conftest.beam \
18885    conftest$ac_exeext conftest.$ac_ext
18886fi
18887
18888
18889		CFLAGS="$xorg_testset_save_CFLAGS"
18890
18891		eval supported=\$$cacheid
18892		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18893printf "%s\n" "$supported" >&6; }
18894		if test "$supported" = "yes" ; then
18895			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
18896			found="yes"
18897		fi
18898	fi
18899
18900
18901
18902
18903
18904
18905
18906
18907
18908
18909
18910
18911
18912
18913
18914xorg_testset_save_CFLAGS="$CFLAGS"
18915
18916if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18917	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18918	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18919printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18920if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18921then :
18922  printf %s "(cached) " >&6
18923else $as_nop
18924  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18925/* end confdefs.h.  */
18926int i;
18927_ACEOF
18928if ac_fn_c_try_compile "$LINENO"
18929then :
18930  xorg_cv_cc_flag_unknown_warning_option=yes
18931else $as_nop
18932  xorg_cv_cc_flag_unknown_warning_option=no
18933fi
18934rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18935fi
18936{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18937printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18938	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18939	CFLAGS="$xorg_testset_save_CFLAGS"
18940fi
18941
18942if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18943	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18944		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18945	fi
18946	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18947	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18948printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18949if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18950then :
18951  printf %s "(cached) " >&6
18952else $as_nop
18953  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18954/* end confdefs.h.  */
18955int i;
18956_ACEOF
18957if ac_fn_c_try_compile "$LINENO"
18958then :
18959  xorg_cv_cc_flag_unused_command_line_argument=yes
18960else $as_nop
18961  xorg_cv_cc_flag_unused_command_line_argument=no
18962fi
18963rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18964fi
18965{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18966printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18967	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18968	CFLAGS="$xorg_testset_save_CFLAGS"
18969fi
18970
18971found="no"
18972
18973	if test $found = "no" ; then
18974		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18975			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18976		fi
18977
18978		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18979			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18980		fi
18981
18982		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
18983
18984		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
18985printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
18986		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
18987		if eval test \${$cacheid+y}
18988then :
18989  printf %s "(cached) " >&6
18990else $as_nop
18991  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18992/* end confdefs.h.  */
18993int i;
18994int
18995main (void)
18996{
18997
18998  ;
18999  return 0;
19000}
19001_ACEOF
19002if ac_fn_c_try_link "$LINENO"
19003then :
19004  eval $cacheid=yes
19005else $as_nop
19006  eval $cacheid=no
19007fi
19008rm -f core conftest.err conftest.$ac_objext conftest.beam \
19009    conftest$ac_exeext conftest.$ac_ext
19010fi
19011
19012
19013		CFLAGS="$xorg_testset_save_CFLAGS"
19014
19015		eval supported=\$$cacheid
19016		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19017printf "%s\n" "$supported" >&6; }
19018		if test "$supported" = "yes" ; then
19019			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
19020			found="yes"
19021		fi
19022	fi
19023
19024
19025
19026
19027
19028
19029
19030
19031
19032
19033
19034
19035
19036
19037
19038xorg_testset_save_CFLAGS="$CFLAGS"
19039
19040if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19041	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19042	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19043printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19044if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19045then :
19046  printf %s "(cached) " >&6
19047else $as_nop
19048  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19049/* end confdefs.h.  */
19050int i;
19051_ACEOF
19052if ac_fn_c_try_compile "$LINENO"
19053then :
19054  xorg_cv_cc_flag_unknown_warning_option=yes
19055else $as_nop
19056  xorg_cv_cc_flag_unknown_warning_option=no
19057fi
19058rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19059fi
19060{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19061printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19062	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19063	CFLAGS="$xorg_testset_save_CFLAGS"
19064fi
19065
19066if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19067	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19068		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19069	fi
19070	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19071	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19072printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19073if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19074then :
19075  printf %s "(cached) " >&6
19076else $as_nop
19077  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19078/* end confdefs.h.  */
19079int i;
19080_ACEOF
19081if ac_fn_c_try_compile "$LINENO"
19082then :
19083  xorg_cv_cc_flag_unused_command_line_argument=yes
19084else $as_nop
19085  xorg_cv_cc_flag_unused_command_line_argument=no
19086fi
19087rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19088fi
19089{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19090printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19091	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19092	CFLAGS="$xorg_testset_save_CFLAGS"
19093fi
19094
19095found="no"
19096
19097	if test $found = "no" ; then
19098		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19099			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19100		fi
19101
19102		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19103			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19104		fi
19105
19106		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
19107
19108		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
19109printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
19110		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
19111		if eval test \${$cacheid+y}
19112then :
19113  printf %s "(cached) " >&6
19114else $as_nop
19115  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19116/* end confdefs.h.  */
19117int i;
19118int
19119main (void)
19120{
19121
19122  ;
19123  return 0;
19124}
19125_ACEOF
19126if ac_fn_c_try_link "$LINENO"
19127then :
19128  eval $cacheid=yes
19129else $as_nop
19130  eval $cacheid=no
19131fi
19132rm -f core conftest.err conftest.$ac_objext conftest.beam \
19133    conftest$ac_exeext conftest.$ac_ext
19134fi
19135
19136
19137		CFLAGS="$xorg_testset_save_CFLAGS"
19138
19139		eval supported=\$$cacheid
19140		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19141printf "%s\n" "$supported" >&6; }
19142		if test "$supported" = "yes" ; then
19143			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
19144			found="yes"
19145		fi
19146	fi
19147
19148
19149fi
19150
19151
19152
19153
19154
19155
19156
19157		CWARNFLAGS="$BASE_CFLAGS"
19158		if  test "x$GCC" = xyes ; then
19159		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
19160		fi
19161
19162
19163
19164
19165
19166
19167
19168
19169# Check whether --enable-strict-compilation was given.
19170if test ${enable_strict_compilation+y}
19171then :
19172  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
19173else $as_nop
19174  STRICT_COMPILE=no
19175fi
19176
19177
19178
19179
19180
19181
19182STRICT_CFLAGS=""
19183
19184
19185
19186
19187
19188
19189
19190
19191
19192
19193
19194
19195
19196xorg_testset_save_CFLAGS="$CFLAGS"
19197
19198if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19199	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19200	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19201printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19202if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19203then :
19204  printf %s "(cached) " >&6
19205else $as_nop
19206  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19207/* end confdefs.h.  */
19208int i;
19209_ACEOF
19210if ac_fn_c_try_compile "$LINENO"
19211then :
19212  xorg_cv_cc_flag_unknown_warning_option=yes
19213else $as_nop
19214  xorg_cv_cc_flag_unknown_warning_option=no
19215fi
19216rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19217fi
19218{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19219printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19220	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19221	CFLAGS="$xorg_testset_save_CFLAGS"
19222fi
19223
19224if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19225	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19226		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19227	fi
19228	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19229	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19230printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19231if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19232then :
19233  printf %s "(cached) " >&6
19234else $as_nop
19235  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19236/* end confdefs.h.  */
19237int i;
19238_ACEOF
19239if ac_fn_c_try_compile "$LINENO"
19240then :
19241  xorg_cv_cc_flag_unused_command_line_argument=yes
19242else $as_nop
19243  xorg_cv_cc_flag_unused_command_line_argument=no
19244fi
19245rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19246fi
19247{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19248printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19249	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19250	CFLAGS="$xorg_testset_save_CFLAGS"
19251fi
19252
19253found="no"
19254
19255	if test $found = "no" ; then
19256		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19257			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19258		fi
19259
19260		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19261			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19262		fi
19263
19264		CFLAGS="$CFLAGS -pedantic"
19265
19266		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
19267printf %s "checking if $CC supports -pedantic... " >&6; }
19268		cacheid=xorg_cv_cc_flag__pedantic
19269		if eval test \${$cacheid+y}
19270then :
19271  printf %s "(cached) " >&6
19272else $as_nop
19273  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19274/* end confdefs.h.  */
19275int i;
19276int
19277main (void)
19278{
19279
19280  ;
19281  return 0;
19282}
19283_ACEOF
19284if ac_fn_c_try_link "$LINENO"
19285then :
19286  eval $cacheid=yes
19287else $as_nop
19288  eval $cacheid=no
19289fi
19290rm -f core conftest.err conftest.$ac_objext conftest.beam \
19291    conftest$ac_exeext conftest.$ac_ext
19292fi
19293
19294
19295		CFLAGS="$xorg_testset_save_CFLAGS"
19296
19297		eval supported=\$$cacheid
19298		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19299printf "%s\n" "$supported" >&6; }
19300		if test "$supported" = "yes" ; then
19301			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
19302			found="yes"
19303		fi
19304	fi
19305
19306
19307
19308
19309
19310
19311
19312
19313
19314
19315
19316
19317
19318
19319
19320xorg_testset_save_CFLAGS="$CFLAGS"
19321
19322if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19323	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19324	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19325printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19326if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19327then :
19328  printf %s "(cached) " >&6
19329else $as_nop
19330  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19331/* end confdefs.h.  */
19332int i;
19333_ACEOF
19334if ac_fn_c_try_compile "$LINENO"
19335then :
19336  xorg_cv_cc_flag_unknown_warning_option=yes
19337else $as_nop
19338  xorg_cv_cc_flag_unknown_warning_option=no
19339fi
19340rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19341fi
19342{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19343printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19344	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19345	CFLAGS="$xorg_testset_save_CFLAGS"
19346fi
19347
19348if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19349	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19350		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19351	fi
19352	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19353	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19354printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19355if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19356then :
19357  printf %s "(cached) " >&6
19358else $as_nop
19359  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19360/* end confdefs.h.  */
19361int i;
19362_ACEOF
19363if ac_fn_c_try_compile "$LINENO"
19364then :
19365  xorg_cv_cc_flag_unused_command_line_argument=yes
19366else $as_nop
19367  xorg_cv_cc_flag_unused_command_line_argument=no
19368fi
19369rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19370fi
19371{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19372printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19373	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19374	CFLAGS="$xorg_testset_save_CFLAGS"
19375fi
19376
19377found="no"
19378
19379	if test $found = "no" ; then
19380		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19381			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19382		fi
19383
19384		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19385			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19386		fi
19387
19388		CFLAGS="$CFLAGS -Werror"
19389
19390		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
19391printf %s "checking if $CC supports -Werror... " >&6; }
19392		cacheid=xorg_cv_cc_flag__Werror
19393		if eval test \${$cacheid+y}
19394then :
19395  printf %s "(cached) " >&6
19396else $as_nop
19397  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19398/* end confdefs.h.  */
19399int i;
19400int
19401main (void)
19402{
19403
19404  ;
19405  return 0;
19406}
19407_ACEOF
19408if ac_fn_c_try_link "$LINENO"
19409then :
19410  eval $cacheid=yes
19411else $as_nop
19412  eval $cacheid=no
19413fi
19414rm -f core conftest.err conftest.$ac_objext conftest.beam \
19415    conftest$ac_exeext conftest.$ac_ext
19416fi
19417
19418
19419		CFLAGS="$xorg_testset_save_CFLAGS"
19420
19421		eval supported=\$$cacheid
19422		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19423printf "%s\n" "$supported" >&6; }
19424		if test "$supported" = "yes" ; then
19425			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
19426			found="yes"
19427		fi
19428	fi
19429
19430	if test $found = "no" ; then
19431		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19432			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19433		fi
19434
19435		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19436			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19437		fi
19438
19439		CFLAGS="$CFLAGS -errwarn"
19440
19441		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
19442printf %s "checking if $CC supports -errwarn... " >&6; }
19443		cacheid=xorg_cv_cc_flag__errwarn
19444		if eval test \${$cacheid+y}
19445then :
19446  printf %s "(cached) " >&6
19447else $as_nop
19448  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19449/* end confdefs.h.  */
19450int i;
19451int
19452main (void)
19453{
19454
19455  ;
19456  return 0;
19457}
19458_ACEOF
19459if ac_fn_c_try_link "$LINENO"
19460then :
19461  eval $cacheid=yes
19462else $as_nop
19463  eval $cacheid=no
19464fi
19465rm -f core conftest.err conftest.$ac_objext conftest.beam \
19466    conftest$ac_exeext conftest.$ac_ext
19467fi
19468
19469
19470		CFLAGS="$xorg_testset_save_CFLAGS"
19471
19472		eval supported=\$$cacheid
19473		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19474printf "%s\n" "$supported" >&6; }
19475		if test "$supported" = "yes" ; then
19476			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
19477			found="yes"
19478		fi
19479	fi
19480
19481
19482
19483# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
19484# activate it with -Werror, so we add it here explicitly.
19485
19486
19487
19488
19489
19490
19491
19492
19493
19494
19495
19496
19497
19498xorg_testset_save_CFLAGS="$CFLAGS"
19499
19500if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19501	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19502	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19503printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19504if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19505then :
19506  printf %s "(cached) " >&6
19507else $as_nop
19508  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19509/* end confdefs.h.  */
19510int i;
19511_ACEOF
19512if ac_fn_c_try_compile "$LINENO"
19513then :
19514  xorg_cv_cc_flag_unknown_warning_option=yes
19515else $as_nop
19516  xorg_cv_cc_flag_unknown_warning_option=no
19517fi
19518rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19519fi
19520{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19521printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19522	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19523	CFLAGS="$xorg_testset_save_CFLAGS"
19524fi
19525
19526if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19527	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19528		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19529	fi
19530	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19531	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19532printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19533if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19534then :
19535  printf %s "(cached) " >&6
19536else $as_nop
19537  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19538/* end confdefs.h.  */
19539int i;
19540_ACEOF
19541if ac_fn_c_try_compile "$LINENO"
19542then :
19543  xorg_cv_cc_flag_unused_command_line_argument=yes
19544else $as_nop
19545  xorg_cv_cc_flag_unused_command_line_argument=no
19546fi
19547rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19548fi
19549{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19550printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19551	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19552	CFLAGS="$xorg_testset_save_CFLAGS"
19553fi
19554
19555found="no"
19556
19557	if test $found = "no" ; then
19558		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19559			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19560		fi
19561
19562		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19563			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19564		fi
19565
19566		CFLAGS="$CFLAGS -Werror=attributes"
19567
19568		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
19569printf %s "checking if $CC supports -Werror=attributes... " >&6; }
19570		cacheid=xorg_cv_cc_flag__Werror_attributes
19571		if eval test \${$cacheid+y}
19572then :
19573  printf %s "(cached) " >&6
19574else $as_nop
19575  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19576/* end confdefs.h.  */
19577int i;
19578int
19579main (void)
19580{
19581
19582  ;
19583  return 0;
19584}
19585_ACEOF
19586if ac_fn_c_try_link "$LINENO"
19587then :
19588  eval $cacheid=yes
19589else $as_nop
19590  eval $cacheid=no
19591fi
19592rm -f core conftest.err conftest.$ac_objext conftest.beam \
19593    conftest$ac_exeext conftest.$ac_ext
19594fi
19595
19596
19597		CFLAGS="$xorg_testset_save_CFLAGS"
19598
19599		eval supported=\$$cacheid
19600		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19601printf "%s\n" "$supported" >&6; }
19602		if test "$supported" = "yes" ; then
19603			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
19604			found="yes"
19605		fi
19606	fi
19607
19608
19609
19610if test "x$STRICT_COMPILE" = "xyes"; then
19611    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
19612    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
19613fi
19614
19615
19616
19617
19618
19619
19620cat >>confdefs.h <<_ACEOF
19621#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
19622_ACEOF
19623
19624	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
19625	if test "x$PVM" = "x"; then
19626		PVM="0"
19627	fi
19628
19629printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
19630
19631	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
19632	if test "x$PVP" = "x"; then
19633		PVP="0"
19634	fi
19635
19636printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
19637
19638
19639
19640CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
19641mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
19642|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
19643touch \$(top_srcdir)/ChangeLog; \
19644echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
19645
19646
19647
19648
19649macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
19650INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
19651mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
19652|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
19653touch \$(top_srcdir)/INSTALL; \
19654echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
19655
19656
19657
19658
19659
19660
19661case $host_os in
19662    solaris*)
19663        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
19664        # check for a man page file found in later versions that use
19665        # traditional section numbers instead
19666        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
19667printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
19668if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
19669then :
19670  printf %s "(cached) " >&6
19671else $as_nop
19672  test "$cross_compiling" = yes &&
19673  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
19674if test -r "/usr/share/man/man7/attributes.7"; then
19675  ac_cv_file__usr_share_man_man7_attributes_7=yes
19676else
19677  ac_cv_file__usr_share_man_man7_attributes_7=no
19678fi
19679fi
19680{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
19681printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
19682if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
19683then :
19684  SYSV_MAN_SECTIONS=false
19685else $as_nop
19686  SYSV_MAN_SECTIONS=true
19687fi
19688
19689        ;;
19690    *) SYSV_MAN_SECTIONS=false ;;
19691esac
19692
19693if test x$APP_MAN_SUFFIX = x    ; then
19694    APP_MAN_SUFFIX=1
19695fi
19696if test x$APP_MAN_DIR = x    ; then
19697    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
19698fi
19699
19700if test x$LIB_MAN_SUFFIX = x    ; then
19701    LIB_MAN_SUFFIX=3
19702fi
19703if test x$LIB_MAN_DIR = x    ; then
19704    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
19705fi
19706
19707if test x$FILE_MAN_SUFFIX = x    ; then
19708    case $SYSV_MAN_SECTIONS in
19709	true)				FILE_MAN_SUFFIX=4  ;;
19710	*)				FILE_MAN_SUFFIX=5  ;;
19711    esac
19712fi
19713if test x$FILE_MAN_DIR = x    ; then
19714    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
19715fi
19716
19717if test x$MISC_MAN_SUFFIX = x    ; then
19718    case $SYSV_MAN_SECTIONS in
19719	true)				MISC_MAN_SUFFIX=5  ;;
19720	*)				MISC_MAN_SUFFIX=7  ;;
19721    esac
19722fi
19723if test x$MISC_MAN_DIR = x    ; then
19724    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
19725fi
19726
19727if test x$DRIVER_MAN_SUFFIX = x    ; then
19728    case $SYSV_MAN_SECTIONS in
19729	true)				DRIVER_MAN_SUFFIX=7  ;;
19730	*)				DRIVER_MAN_SUFFIX=4  ;;
19731    esac
19732fi
19733if test x$DRIVER_MAN_DIR = x    ; then
19734    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
19735fi
19736
19737if test x$ADMIN_MAN_SUFFIX = x    ; then
19738    case $SYSV_MAN_SECTIONS in
19739	true)				ADMIN_MAN_SUFFIX=1m ;;
19740	*)				ADMIN_MAN_SUFFIX=8  ;;
19741    esac
19742fi
19743if test x$ADMIN_MAN_DIR = x    ; then
19744    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
19745fi
19746
19747
19748
19749
19750
19751
19752
19753
19754
19755
19756
19757
19758
19759
19760
19761XORG_MAN_PAGE="X Version 11"
19762
19763MAN_SUBSTS="\
19764	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19765	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19766	-e 's|__xservername__|Xorg|g' \
19767	-e 's|__xconfigfile__|xorg.conf|g' \
19768	-e 's|__projectroot__|\$(prefix)|g' \
19769	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
19770	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
19771	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
19772	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
19773	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
19774	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
19775	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
19776
19777
19778
19779# Check whether --enable-silent-rules was given.
19780if test ${enable_silent_rules+y}
19781then :
19782  enableval=$enable_silent_rules;
19783fi
19784
19785case $enable_silent_rules in # (((
19786  yes) AM_DEFAULT_VERBOSITY=0;;
19787   no) AM_DEFAULT_VERBOSITY=1;;
19788    *) AM_DEFAULT_VERBOSITY=0;;
19789esac
19790am_make=${MAKE-make}
19791{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
19792printf %s "checking whether $am_make supports nested variables... " >&6; }
19793if test ${am_cv_make_support_nested_variables+y}
19794then :
19795  printf %s "(cached) " >&6
19796else $as_nop
19797  if printf "%s\n" 'TRUE=$(BAR$(V))
19798BAR0=false
19799BAR1=true
19800V=1
19801am__doit:
19802	@$(TRUE)
19803.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
19804  am_cv_make_support_nested_variables=yes
19805else
19806  am_cv_make_support_nested_variables=no
19807fi
19808fi
19809{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
19810printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
19811if test $am_cv_make_support_nested_variables = yes; then
19812    AM_V='$(V)'
19813  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
19814else
19815  AM_V=$AM_DEFAULT_VERBOSITY
19816  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
19817fi
19818AM_BACKSLASH='\'
19819
19820
19821
19822
19823# Check whether --enable-specs was given.
19824if test ${enable_specs+y}
19825then :
19826  enableval=$enable_specs; build_specs=$enableval
19827else $as_nop
19828  build_specs=yes
19829fi
19830
19831
19832 if test x$build_specs = xyes; then
19833  ENABLE_SPECS_TRUE=
19834  ENABLE_SPECS_FALSE='#'
19835else
19836  ENABLE_SPECS_TRUE='#'
19837  ENABLE_SPECS_FALSE=
19838fi
19839
19840{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build functional specifications" >&5
19841printf %s "checking whether to build functional specifications... " >&6; }
19842{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $build_specs" >&5
19843printf "%s\n" "$build_specs" >&6; }
19844
19845
19846
19847
19848
19849# Check whether --with-xmlto was given.
19850if test ${with_xmlto+y}
19851then :
19852  withval=$with_xmlto; use_xmlto=$withval
19853else $as_nop
19854  use_xmlto=auto
19855fi
19856
19857
19858
19859if test "x$use_xmlto" = x"auto"; then
19860   # Extract the first word of "xmlto", so it can be a program name with args.
19861set dummy xmlto; ac_word=$2
19862{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19863printf %s "checking for $ac_word... " >&6; }
19864if test ${ac_cv_path_XMLTO+y}
19865then :
19866  printf %s "(cached) " >&6
19867else $as_nop
19868  case $XMLTO in
19869  [\\/]* | ?:[\\/]*)
19870  ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
19871  ;;
19872  *)
19873  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19874for as_dir in $PATH
19875do
19876  IFS=$as_save_IFS
19877  case $as_dir in #(((
19878    '') as_dir=./ ;;
19879    */) ;;
19880    *) as_dir=$as_dir/ ;;
19881  esac
19882    for ac_exec_ext in '' $ac_executable_extensions; do
19883  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19884    ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext"
19885    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19886    break 2
19887  fi
19888done
19889  done
19890IFS=$as_save_IFS
19891
19892  ;;
19893esac
19894fi
19895XMLTO=$ac_cv_path_XMLTO
19896if test -n "$XMLTO"; then
19897  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
19898printf "%s\n" "$XMLTO" >&6; }
19899else
19900  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19901printf "%s\n" "no" >&6; }
19902fi
19903
19904
19905   if test "x$XMLTO" = "x"; then
19906        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5
19907printf "%s\n" "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;}
19908	have_xmlto=no
19909   else
19910        have_xmlto=yes
19911   fi
19912elif test "x$use_xmlto" = x"yes" ; then
19913   # Extract the first word of "xmlto", so it can be a program name with args.
19914set dummy xmlto; ac_word=$2
19915{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19916printf %s "checking for $ac_word... " >&6; }
19917if test ${ac_cv_path_XMLTO+y}
19918then :
19919  printf %s "(cached) " >&6
19920else $as_nop
19921  case $XMLTO in
19922  [\\/]* | ?:[\\/]*)
19923  ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
19924  ;;
19925  *)
19926  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19927for as_dir in $PATH
19928do
19929  IFS=$as_save_IFS
19930  case $as_dir in #(((
19931    '') as_dir=./ ;;
19932    */) ;;
19933    *) as_dir=$as_dir/ ;;
19934  esac
19935    for ac_exec_ext in '' $ac_executable_extensions; do
19936  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19937    ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext"
19938    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19939    break 2
19940  fi
19941done
19942  done
19943IFS=$as_save_IFS
19944
19945  ;;
19946esac
19947fi
19948XMLTO=$ac_cv_path_XMLTO
19949if test -n "$XMLTO"; then
19950  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
19951printf "%s\n" "$XMLTO" >&6; }
19952else
19953  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19954printf "%s\n" "no" >&6; }
19955fi
19956
19957
19958   if test "x$XMLTO" = "x"; then
19959        as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5
19960   fi
19961   have_xmlto=yes
19962elif test "x$use_xmlto" = x"no" ; then
19963   if test "x$XMLTO" != "x"; then
19964      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5
19965printf "%s\n" "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;}
19966   fi
19967   have_xmlto=no
19968else
19969   as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5
19970fi
19971
19972# Test for a minimum version of xmlto, if provided.
19973if test "$have_xmlto" = yes; then
19974    # scrape the xmlto version
19975    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5
19976printf %s "checking the xmlto version... " >&6; }
19977    xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3`
19978    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5
19979printf "%s\n" "$xmlto_version" >&6; }
19980    as_arg_v1=$xmlto_version
19981as_arg_v2=0.0.22
19982awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
19983case $? in #(
19984  1) :
19985    if test "x$use_xmlto" = xauto; then
19986            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5
19987printf "%s\n" "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;}
19988            have_xmlto=no
19989        else
19990            as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5
19991        fi ;; #(
19992  0) :
19993     ;; #(
19994  2) :
19995     ;; #(
19996  *) :
19997     ;;
19998esac
19999fi
20000
20001# Test for the ability of xmlto to generate a text target
20002#
20003# NOTE: xmlto 0.0.27 or higher return a non-zero return code in the
20004# following test for empty XML docbook files.
20005# For compatibility reasons use the following empty XML docbook file and if
20006# it fails try it again with a non-empty XML file.
20007have_xmlto_text=no
20008cat > conftest.xml << "EOF"
20009EOF
20010if test "$have_xmlto" = yes
20011then :
20012  if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1
20013then :
20014  have_xmlto_text=yes
20015else $as_nop
20016  # Try it again with a non-empty XML file.
20017              cat > conftest.xml << "EOF"
20018<x></x>
20019EOF
20020              if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1
20021then :
20022  have_xmlto_text=yes
20023else $as_nop
20024  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5
20025printf "%s\n" "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;}
20026fi
20027fi
20028fi
20029rm -f conftest.xml
20030 if test $have_xmlto_text = yes; then
20031  HAVE_XMLTO_TEXT_TRUE=
20032  HAVE_XMLTO_TEXT_FALSE='#'
20033else
20034  HAVE_XMLTO_TEXT_TRUE='#'
20035  HAVE_XMLTO_TEXT_FALSE=
20036fi
20037
20038 if test "$have_xmlto" = yes; then
20039  HAVE_XMLTO_TRUE=
20040  HAVE_XMLTO_FALSE='#'
20041else
20042  HAVE_XMLTO_TRUE='#'
20043  HAVE_XMLTO_FALSE=
20044fi
20045
20046
20047
20048
20049
20050
20051# Check whether --with-fop was given.
20052if test ${with_fop+y}
20053then :
20054  withval=$with_fop; use_fop=$withval
20055else $as_nop
20056  use_fop=no
20057fi
20058
20059
20060
20061if test "x$use_fop" = x"auto"; then
20062   # Extract the first word of "fop", so it can be a program name with args.
20063set dummy fop; ac_word=$2
20064{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20065printf %s "checking for $ac_word... " >&6; }
20066if test ${ac_cv_path_FOP+y}
20067then :
20068  printf %s "(cached) " >&6
20069else $as_nop
20070  case $FOP in
20071  [\\/]* | ?:[\\/]*)
20072  ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
20073  ;;
20074  *)
20075  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20076for as_dir in $PATH
20077do
20078  IFS=$as_save_IFS
20079  case $as_dir in #(((
20080    '') as_dir=./ ;;
20081    */) ;;
20082    *) as_dir=$as_dir/ ;;
20083  esac
20084    for ac_exec_ext in '' $ac_executable_extensions; do
20085  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20086    ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext"
20087    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20088    break 2
20089  fi
20090done
20091  done
20092IFS=$as_save_IFS
20093
20094  ;;
20095esac
20096fi
20097FOP=$ac_cv_path_FOP
20098if test -n "$FOP"; then
20099  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
20100printf "%s\n" "$FOP" >&6; }
20101else
20102  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20103printf "%s\n" "no" >&6; }
20104fi
20105
20106
20107   if test "x$FOP" = "x"; then
20108        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5
20109printf "%s\n" "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;}
20110	have_fop=no
20111   else
20112        have_fop=yes
20113   fi
20114elif test "x$use_fop" = x"yes" ; then
20115   # Extract the first word of "fop", so it can be a program name with args.
20116set dummy fop; ac_word=$2
20117{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20118printf %s "checking for $ac_word... " >&6; }
20119if test ${ac_cv_path_FOP+y}
20120then :
20121  printf %s "(cached) " >&6
20122else $as_nop
20123  case $FOP in
20124  [\\/]* | ?:[\\/]*)
20125  ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
20126  ;;
20127  *)
20128  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20129for as_dir in $PATH
20130do
20131  IFS=$as_save_IFS
20132  case $as_dir in #(((
20133    '') as_dir=./ ;;
20134    */) ;;
20135    *) as_dir=$as_dir/ ;;
20136  esac
20137    for ac_exec_ext in '' $ac_executable_extensions; do
20138  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20139    ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext"
20140    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20141    break 2
20142  fi
20143done
20144  done
20145IFS=$as_save_IFS
20146
20147  ;;
20148esac
20149fi
20150FOP=$ac_cv_path_FOP
20151if test -n "$FOP"; then
20152  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
20153printf "%s\n" "$FOP" >&6; }
20154else
20155  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20156printf "%s\n" "no" >&6; }
20157fi
20158
20159
20160   if test "x$FOP" = "x"; then
20161        as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5
20162   fi
20163   have_fop=yes
20164elif test "x$use_fop" = x"no" ; then
20165   if test "x$FOP" != "x"; then
20166      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5
20167printf "%s\n" "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;}
20168   fi
20169   have_fop=no
20170else
20171   as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5
20172fi
20173
20174# Test for a minimum version of fop, if provided.
20175
20176 if test "$have_fop" = yes; then
20177  HAVE_FOP_TRUE=
20178  HAVE_FOP_FALSE='#'
20179else
20180  HAVE_FOP_TRUE='#'
20181  HAVE_FOP_FALSE=
20182fi
20183
20184
20185
20186
20187# Preserves the interface, should it be implemented later
20188
20189
20190
20191# Check whether --with-xsltproc was given.
20192if test ${with_xsltproc+y}
20193then :
20194  withval=$with_xsltproc; use_xsltproc=$withval
20195else $as_nop
20196  use_xsltproc=auto
20197fi
20198
20199
20200
20201if test "x$use_xsltproc" = x"auto"; then
20202   # Extract the first word of "xsltproc", so it can be a program name with args.
20203set dummy xsltproc; ac_word=$2
20204{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20205printf %s "checking for $ac_word... " >&6; }
20206if test ${ac_cv_path_XSLTPROC+y}
20207then :
20208  printf %s "(cached) " >&6
20209else $as_nop
20210  case $XSLTPROC in
20211  [\\/]* | ?:[\\/]*)
20212  ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
20213  ;;
20214  *)
20215  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20216for as_dir in $PATH
20217do
20218  IFS=$as_save_IFS
20219  case $as_dir in #(((
20220    '') as_dir=./ ;;
20221    */) ;;
20222    *) as_dir=$as_dir/ ;;
20223  esac
20224    for ac_exec_ext in '' $ac_executable_extensions; do
20225  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20226    ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext"
20227    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20228    break 2
20229  fi
20230done
20231  done
20232IFS=$as_save_IFS
20233
20234  ;;
20235esac
20236fi
20237XSLTPROC=$ac_cv_path_XSLTPROC
20238if test -n "$XSLTPROC"; then
20239  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
20240printf "%s\n" "$XSLTPROC" >&6; }
20241else
20242  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20243printf "%s\n" "no" >&6; }
20244fi
20245
20246
20247   if test "x$XSLTPROC" = "x"; then
20248        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5
20249printf "%s\n" "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;}
20250	have_xsltproc=no
20251   else
20252        have_xsltproc=yes
20253   fi
20254elif test "x$use_xsltproc" = x"yes" ; then
20255   # Extract the first word of "xsltproc", so it can be a program name with args.
20256set dummy xsltproc; ac_word=$2
20257{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20258printf %s "checking for $ac_word... " >&6; }
20259if test ${ac_cv_path_XSLTPROC+y}
20260then :
20261  printf %s "(cached) " >&6
20262else $as_nop
20263  case $XSLTPROC in
20264  [\\/]* | ?:[\\/]*)
20265  ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
20266  ;;
20267  *)
20268  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20269for as_dir in $PATH
20270do
20271  IFS=$as_save_IFS
20272  case $as_dir in #(((
20273    '') as_dir=./ ;;
20274    */) ;;
20275    *) as_dir=$as_dir/ ;;
20276  esac
20277    for ac_exec_ext in '' $ac_executable_extensions; do
20278  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20279    ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext"
20280    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20281    break 2
20282  fi
20283done
20284  done
20285IFS=$as_save_IFS
20286
20287  ;;
20288esac
20289fi
20290XSLTPROC=$ac_cv_path_XSLTPROC
20291if test -n "$XSLTPROC"; then
20292  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
20293printf "%s\n" "$XSLTPROC" >&6; }
20294else
20295  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20296printf "%s\n" "no" >&6; }
20297fi
20298
20299
20300   if test "x$XSLTPROC" = "x"; then
20301        as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5
20302   fi
20303   have_xsltproc=yes
20304elif test "x$use_xsltproc" = x"no" ; then
20305   if test "x$XSLTPROC" != "x"; then
20306      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5
20307printf "%s\n" "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;}
20308   fi
20309   have_xsltproc=no
20310else
20311   as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5
20312fi
20313
20314 if test "$have_xsltproc" = yes; then
20315  HAVE_XSLTPROC_TRUE=
20316  HAVE_XSLTPROC_FALSE='#'
20317else
20318  HAVE_XSLTPROC_TRUE='#'
20319  HAVE_XSLTPROC_FALSE=
20320fi
20321
20322
20323
20324{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.10" >&5
20325printf %s "checking for X.Org SGML entities >= 1.10... " >&6; }
20326XORG_SGML_PATH=
20327if test -n "$PKG_CONFIG" && \
20328    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.10\""; } >&5
20329  ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.10") 2>&5
20330  ac_status=$?
20331  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20332  test $ac_status = 0; }; then
20333  XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools`
20334else
20335  :
20336
20337fi
20338
20339# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing
20340# the path and the name of the doc stylesheet
20341if test "x$XORG_SGML_PATH" != "x" ; then
20342   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5
20343printf "%s\n" "$XORG_SGML_PATH" >&6; }
20344   STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11
20345   XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl
20346else
20347   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20348printf "%s\n" "no" >&6; }
20349fi
20350
20351
20352
20353
20354 if test "x$XSL_STYLESHEET" != "x"; then
20355  HAVE_STYLESHEETS_TRUE=
20356  HAVE_STYLESHEETS_FALSE='#'
20357else
20358  HAVE_STYLESHEETS_TRUE='#'
20359  HAVE_STYLESHEETS_FALSE=
20360fi
20361
20362
20363ac_ext=c
20364ac_cpp='$CPP $CPPFLAGS'
20365ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20366ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20367ac_compiler_gnu=$ac_cv_c_compiler_gnu
20368{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
20369printf %s "checking how to run the C preprocessor... " >&6; }
20370# On Suns, sometimes $CPP names a directory.
20371if test -n "$CPP" && test -d "$CPP"; then
20372  CPP=
20373fi
20374if test -z "$CPP"; then
20375  if test ${ac_cv_prog_CPP+y}
20376then :
20377  printf %s "(cached) " >&6
20378else $as_nop
20379      # Double quotes because $CC needs to be expanded
20380    for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
20381    do
20382      ac_preproc_ok=false
20383for ac_c_preproc_warn_flag in '' yes
20384do
20385  # Use a header file that comes with gcc, so configuring glibc
20386  # with a fresh cross-compiler works.
20387  # On the NeXT, cc -E runs the code through the compiler's parser,
20388  # not just through cpp. "Syntax error" is here to catch this case.
20389  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20390/* end confdefs.h.  */
20391#include <limits.h>
20392		     Syntax error
20393_ACEOF
20394if ac_fn_c_try_cpp "$LINENO"
20395then :
20396
20397else $as_nop
20398  # Broken: fails on valid input.
20399continue
20400fi
20401rm -f conftest.err conftest.i conftest.$ac_ext
20402
20403  # OK, works on sane cases.  Now check whether nonexistent headers
20404  # can be detected and how.
20405  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20406/* end confdefs.h.  */
20407#include <ac_nonexistent.h>
20408_ACEOF
20409if ac_fn_c_try_cpp "$LINENO"
20410then :
20411  # Broken: success on invalid input.
20412continue
20413else $as_nop
20414  # Passes both tests.
20415ac_preproc_ok=:
20416break
20417fi
20418rm -f conftest.err conftest.i conftest.$ac_ext
20419
20420done
20421# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20422rm -f conftest.i conftest.err conftest.$ac_ext
20423if $ac_preproc_ok
20424then :
20425  break
20426fi
20427
20428    done
20429    ac_cv_prog_CPP=$CPP
20430
20431fi
20432  CPP=$ac_cv_prog_CPP
20433else
20434  ac_cv_prog_CPP=$CPP
20435fi
20436{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
20437printf "%s\n" "$CPP" >&6; }
20438ac_preproc_ok=false
20439for ac_c_preproc_warn_flag in '' yes
20440do
20441  # Use a header file that comes with gcc, so configuring glibc
20442  # with a fresh cross-compiler works.
20443  # On the NeXT, cc -E runs the code through the compiler's parser,
20444  # not just through cpp. "Syntax error" is here to catch this case.
20445  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20446/* end confdefs.h.  */
20447#include <limits.h>
20448		     Syntax error
20449_ACEOF
20450if ac_fn_c_try_cpp "$LINENO"
20451then :
20452
20453else $as_nop
20454  # Broken: fails on valid input.
20455continue
20456fi
20457rm -f conftest.err conftest.i conftest.$ac_ext
20458
20459  # OK, works on sane cases.  Now check whether nonexistent headers
20460  # can be detected and how.
20461  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20462/* end confdefs.h.  */
20463#include <ac_nonexistent.h>
20464_ACEOF
20465if ac_fn_c_try_cpp "$LINENO"
20466then :
20467  # Broken: success on invalid input.
20468continue
20469else $as_nop
20470  # Passes both tests.
20471ac_preproc_ok=:
20472break
20473fi
20474rm -f conftest.err conftest.i conftest.$ac_ext
20475
20476done
20477# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20478rm -f conftest.i conftest.err conftest.$ac_ext
20479if $ac_preproc_ok
20480then :
20481
20482else $as_nop
20483  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20484printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
20485as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
20486See \`config.log' for more details" "$LINENO" 5; }
20487fi
20488
20489ac_ext=c
20490ac_cpp='$CPP $CPPFLAGS'
20491ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20492ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20493ac_compiler_gnu=$ac_cv_c_compiler_gnu
20494
20495
20496
20497if test -n "$ac_tool_prefix"; then
20498  # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
20499set dummy ${ac_tool_prefix}cpp; ac_word=$2
20500{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20501printf %s "checking for $ac_word... " >&6; }
20502if test ${ac_cv_path_RAWCPP+y}
20503then :
20504  printf %s "(cached) " >&6
20505else $as_nop
20506  case $RAWCPP in
20507  [\\/]* | ?:[\\/]*)
20508  ac_cv_path_RAWCPP="$RAWCPP" # Let the user override the test with a path.
20509  ;;
20510  *)
20511  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20512as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib"
20513for as_dir in $as_dummy
20514do
20515  IFS=$as_save_IFS
20516  case $as_dir in #(((
20517    '') as_dir=./ ;;
20518    */) ;;
20519    *) as_dir=$as_dir/ ;;
20520  esac
20521    for ac_exec_ext in '' $ac_executable_extensions; do
20522  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20523    ac_cv_path_RAWCPP="$as_dir$ac_word$ac_exec_ext"
20524    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20525    break 2
20526  fi
20527done
20528  done
20529IFS=$as_save_IFS
20530
20531  ;;
20532esac
20533fi
20534RAWCPP=$ac_cv_path_RAWCPP
20535if test -n "$RAWCPP"; then
20536  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RAWCPP" >&5
20537printf "%s\n" "$RAWCPP" >&6; }
20538else
20539  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20540printf "%s\n" "no" >&6; }
20541fi
20542
20543
20544fi
20545if test -z "$ac_cv_path_RAWCPP"; then
20546  ac_pt_RAWCPP=$RAWCPP
20547  # Extract the first word of "cpp", so it can be a program name with args.
20548set dummy cpp; ac_word=$2
20549{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20550printf %s "checking for $ac_word... " >&6; }
20551if test ${ac_cv_path_ac_pt_RAWCPP+y}
20552then :
20553  printf %s "(cached) " >&6
20554else $as_nop
20555  case $ac_pt_RAWCPP in
20556  [\\/]* | ?:[\\/]*)
20557  ac_cv_path_ac_pt_RAWCPP="$ac_pt_RAWCPP" # Let the user override the test with a path.
20558  ;;
20559  *)
20560  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20561as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib"
20562for as_dir in $as_dummy
20563do
20564  IFS=$as_save_IFS
20565  case $as_dir in #(((
20566    '') as_dir=./ ;;
20567    */) ;;
20568    *) as_dir=$as_dir/ ;;
20569  esac
20570    for ac_exec_ext in '' $ac_executable_extensions; do
20571  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20572    ac_cv_path_ac_pt_RAWCPP="$as_dir$ac_word$ac_exec_ext"
20573    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20574    break 2
20575  fi
20576done
20577  done
20578IFS=$as_save_IFS
20579
20580  ;;
20581esac
20582fi
20583ac_pt_RAWCPP=$ac_cv_path_ac_pt_RAWCPP
20584if test -n "$ac_pt_RAWCPP"; then
20585  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_RAWCPP" >&5
20586printf "%s\n" "$ac_pt_RAWCPP" >&6; }
20587else
20588  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20589printf "%s\n" "no" >&6; }
20590fi
20591
20592  if test "x$ac_pt_RAWCPP" = x; then
20593    RAWCPP="${CPP}"
20594  else
20595    case $cross_compiling:$ac_tool_warned in
20596yes:)
20597{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20598printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20599ac_tool_warned=yes ;;
20600esac
20601    RAWCPP=$ac_pt_RAWCPP
20602  fi
20603else
20604  RAWCPP="$ac_cv_path_RAWCPP"
20605fi
20606
20607
20608# Check for flag to avoid builtin definitions - assumes unix is predefined,
20609# which is not the best choice for supporting other OS'es, but covers most
20610# of the ones we need for now.
20611{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -undef" >&5
20612printf %s "checking if $RAWCPP requires -undef... " >&6; }
20613cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20614/* end confdefs.h.  */
20615Does cpp redefine unix ?
20616_ACEOF
20617if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
20618	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20619printf "%s\n" "no" >&6; }
20620else
20621	if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
20622		RAWCPPFLAGS=-undef
20623		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20624printf "%s\n" "yes" >&6; }
20625	# under Cygwin unix is still defined even with -undef
20626	elif test `${RAWCPP} -undef -ansi < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
20627		RAWCPPFLAGS="-undef -ansi"
20628		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, with -ansi" >&5
20629printf "%s\n" "yes, with -ansi" >&6; }
20630	else
20631		as_fn_error $? "${RAWCPP} defines unix with or without -undef.  I don't know what to do." "$LINENO" 5
20632	fi
20633fi
20634rm -f conftest.$ac_ext
20635
20636{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -traditional" >&5
20637printf %s "checking if $RAWCPP requires -traditional... " >&6; }
20638cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20639/* end confdefs.h.  */
20640Does cpp preserve   "whitespace"?
20641_ACEOF
20642if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve   \"'` -eq 1 ; then
20643	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20644printf "%s\n" "no" >&6; }
20645else
20646	if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve   \"'` -eq 1 ; then
20647		TRADITIONALCPPFLAGS="-traditional"
20648		RAWCPPFLAGS="${RAWCPPFLAGS} -traditional"
20649		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20650printf "%s\n" "yes" >&6; }
20651	else
20652		as_fn_error $? "${RAWCPP} does not preserve whitespace with or without -traditional.  I don't know what to do." "$LINENO" 5
20653	fi
20654fi
20655rm -f conftest.$ac_ext
20656
20657
20658
20659
20660
20661# Preserves the interface, should it be implemented later
20662
20663
20664
20665# Check whether --with-perl was given.
20666if test ${with_perl+y}
20667then :
20668  withval=$with_perl; use_perl=$withval
20669else $as_nop
20670  use_perl=auto
20671fi
20672
20673
20674
20675if test "x$use_perl" = x"auto"; then
20676   # Extract the first word of "perl", so it can be a program name with args.
20677set dummy perl; ac_word=$2
20678{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20679printf %s "checking for $ac_word... " >&6; }
20680if test ${ac_cv_path_PERL+y}
20681then :
20682  printf %s "(cached) " >&6
20683else $as_nop
20684  case $PERL in
20685  [\\/]* | ?:[\\/]*)
20686  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
20687  ;;
20688  *)
20689  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20690for as_dir in $PATH
20691do
20692  IFS=$as_save_IFS
20693  case $as_dir in #(((
20694    '') as_dir=./ ;;
20695    */) ;;
20696    *) as_dir=$as_dir/ ;;
20697  esac
20698    for ac_exec_ext in '' $ac_executable_extensions; do
20699  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20700    ac_cv_path_PERL="$as_dir$ac_word$ac_exec_ext"
20701    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20702    break 2
20703  fi
20704done
20705  done
20706IFS=$as_save_IFS
20707
20708  ;;
20709esac
20710fi
20711PERL=$ac_cv_path_PERL
20712if test -n "$PERL"; then
20713  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
20714printf "%s\n" "$PERL" >&6; }
20715else
20716  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20717printf "%s\n" "no" >&6; }
20718fi
20719
20720
20721   if test "x$PERL" = "x"; then
20722        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: perl not found - cannot extract information and report" >&5
20723printf "%s\n" "$as_me: WARNING: perl not found - cannot extract information and report" >&2;}
20724	have_perl=no
20725   else
20726        have_perl=yes
20727   fi
20728elif test "x$use_perl" = x"yes" ; then
20729   # Extract the first word of "perl", so it can be a program name with args.
20730set dummy perl; ac_word=$2
20731{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20732printf %s "checking for $ac_word... " >&6; }
20733if test ${ac_cv_path_PERL+y}
20734then :
20735  printf %s "(cached) " >&6
20736else $as_nop
20737  case $PERL in
20738  [\\/]* | ?:[\\/]*)
20739  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
20740  ;;
20741  *)
20742  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20743for as_dir in $PATH
20744do
20745  IFS=$as_save_IFS
20746  case $as_dir in #(((
20747    '') as_dir=./ ;;
20748    */) ;;
20749    *) as_dir=$as_dir/ ;;
20750  esac
20751    for ac_exec_ext in '' $ac_executable_extensions; do
20752  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20753    ac_cv_path_PERL="$as_dir$ac_word$ac_exec_ext"
20754    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20755    break 2
20756  fi
20757done
20758  done
20759IFS=$as_save_IFS
20760
20761  ;;
20762esac
20763fi
20764PERL=$ac_cv_path_PERL
20765if test -n "$PERL"; then
20766  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
20767printf "%s\n" "$PERL" >&6; }
20768else
20769  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20770printf "%s\n" "no" >&6; }
20771fi
20772
20773
20774   if test "x$PERL" = "x"; then
20775        as_fn_error $? "--with-perl=yes specified but perl not found in PATH" "$LINENO" 5
20776   fi
20777   have_perl=yes
20778elif test "x$use_perl" = x"no" ; then
20779   if test "x$PERL" != "x"; then
20780      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring PERL environment variable since --with-perl=no was specified" >&5
20781printf "%s\n" "$as_me: WARNING: ignoring PERL environment variable since --with-perl=no was specified" >&2;}
20782   fi
20783   have_perl=no
20784else
20785   as_fn_error $? "--with-perl expects 'yes' or 'no'" "$LINENO" 5
20786fi
20787
20788 if test "$have_perl" = yes; then
20789  HAVE_PERL_TRUE=
20790  HAVE_PERL_FALSE='#'
20791else
20792  HAVE_PERL_TRUE='#'
20793  HAVE_PERL_FALSE=
20794fi
20795
20796
20797
20798# Required when PKG_CHECK_MODULES called within an if statement
20799
20800
20801
20802
20803
20804
20805
20806if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
20807	if test -n "$ac_tool_prefix"; then
20808  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20809set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20810{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20811printf %s "checking for $ac_word... " >&6; }
20812if test ${ac_cv_path_PKG_CONFIG+y}
20813then :
20814  printf %s "(cached) " >&6
20815else $as_nop
20816  case $PKG_CONFIG in
20817  [\\/]* | ?:[\\/]*)
20818  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20819  ;;
20820  *)
20821  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20822for as_dir in $PATH
20823do
20824  IFS=$as_save_IFS
20825  case $as_dir in #(((
20826    '') as_dir=./ ;;
20827    */) ;;
20828    *) as_dir=$as_dir/ ;;
20829  esac
20830    for ac_exec_ext in '' $ac_executable_extensions; do
20831  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20832    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
20833    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20834    break 2
20835  fi
20836done
20837  done
20838IFS=$as_save_IFS
20839
20840  ;;
20841esac
20842fi
20843PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20844if test -n "$PKG_CONFIG"; then
20845  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
20846printf "%s\n" "$PKG_CONFIG" >&6; }
20847else
20848  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20849printf "%s\n" "no" >&6; }
20850fi
20851
20852
20853fi
20854if test -z "$ac_cv_path_PKG_CONFIG"; then
20855  ac_pt_PKG_CONFIG=$PKG_CONFIG
20856  # Extract the first word of "pkg-config", so it can be a program name with args.
20857set dummy pkg-config; ac_word=$2
20858{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20859printf %s "checking for $ac_word... " >&6; }
20860if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
20861then :
20862  printf %s "(cached) " >&6
20863else $as_nop
20864  case $ac_pt_PKG_CONFIG in
20865  [\\/]* | ?:[\\/]*)
20866  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
20867  ;;
20868  *)
20869  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20870for as_dir in $PATH
20871do
20872  IFS=$as_save_IFS
20873  case $as_dir in #(((
20874    '') as_dir=./ ;;
20875    */) ;;
20876    *) as_dir=$as_dir/ ;;
20877  esac
20878    for ac_exec_ext in '' $ac_executable_extensions; do
20879  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20880    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
20881    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20882    break 2
20883  fi
20884done
20885  done
20886IFS=$as_save_IFS
20887
20888  ;;
20889esac
20890fi
20891ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
20892if test -n "$ac_pt_PKG_CONFIG"; then
20893  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
20894printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
20895else
20896  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20897printf "%s\n" "no" >&6; }
20898fi
20899
20900  if test "x$ac_pt_PKG_CONFIG" = x; then
20901    PKG_CONFIG=""
20902  else
20903    case $cross_compiling:$ac_tool_warned in
20904yes:)
20905{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20906printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20907ac_tool_warned=yes ;;
20908esac
20909    PKG_CONFIG=$ac_pt_PKG_CONFIG
20910  fi
20911else
20912  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
20913fi
20914
20915fi
20916if test -n "$PKG_CONFIG"; then
20917	_pkg_min_version=0.9.0
20918	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
20919printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
20920	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
20921		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20922printf "%s\n" "yes" >&6; }
20923	else
20924		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20925printf "%s\n" "no" >&6; }
20926		PKG_CONFIG=""
20927	fi
20928fi
20929
20930if test x"$CC_FOR_BUILD" = x; then
20931	if test x"$cross_compiling" = xyes; then
20932	       for ac_prog in gcc cc
20933do
20934  # Extract the first word of "$ac_prog", so it can be a program name with args.
20935set dummy $ac_prog; ac_word=$2
20936{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20937printf %s "checking for $ac_word... " >&6; }
20938if test ${ac_cv_prog_CC_FOR_BUILD+y}
20939then :
20940  printf %s "(cached) " >&6
20941else $as_nop
20942  if test -n "$CC_FOR_BUILD"; then
20943  ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
20944else
20945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20946for as_dir in $PATH
20947do
20948  IFS=$as_save_IFS
20949  case $as_dir in #(((
20950    '') as_dir=./ ;;
20951    */) ;;
20952    *) as_dir=$as_dir/ ;;
20953  esac
20954    for ac_exec_ext in '' $ac_executable_extensions; do
20955  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20956    ac_cv_prog_CC_FOR_BUILD="$ac_prog"
20957    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20958    break 2
20959  fi
20960done
20961  done
20962IFS=$as_save_IFS
20963
20964fi
20965fi
20966CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
20967if test -n "$CC_FOR_BUILD"; then
20968  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
20969printf "%s\n" "$CC_FOR_BUILD" >&6; }
20970else
20971  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20972printf "%s\n" "no" >&6; }
20973fi
20974
20975
20976  test -n "$CC_FOR_BUILD" && break
20977done
20978
20979	else
20980	       CC_FOR_BUILD="$CC"
20981	fi
20982fi
20983
20984
20985if test x"$CPPFLAGS_FOR_BUILD" = x; then
20986	if test ! x"$cross_compiling" = xyes; then
20987		CPPFLAGS_FOR_BUILD=${CPPFLAGS}
20988	fi
20989fi
20990
20991
20992if test x"$CFLAGS_FOR_BUILD" = x; then
20993	if test ! x"$cross_compiling" = xyes; then
20994		CFLAGS_FOR_BUILD=${CFLAGS}
20995	fi
20996fi
20997
20998
20999if test x"$LDFLAGS_FOR_BUILD" = x; then
21000	if test ! x"$cross_compiling" = xyes; then
21001		LDFLAGS_FOR_BUILD=${LDFLAGS}
21002	fi
21003fi
21004
21005
21006if test x"$EXEEXT_FOR_BUILD" = x; then
21007	if test x"$cross_compiling" = xno; then
21008		EXEEXT_FOR_BUILD=${EXEEXT}
21009	fi
21010	# If cross-compiling and not provided, assume EXEEXT_FOR_BUILD is empty
21011fi
21012
21013
21014# Checks for pkg-config packages
21015
21016# Always required
21017X11_REQUIRES='xproto >= 7.0.25 xextproto xtrans xcb >= 1.11.1'
21018X11_EXTRA_DEPS="xcb >= 1.11.1"
21019
21020
21021
21022
21023
21024
21025
21026
21027if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
21028	if test -n "$ac_tool_prefix"; then
21029  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
21030set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
21031{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21032printf %s "checking for $ac_word... " >&6; }
21033if test ${ac_cv_path_PKG_CONFIG+y}
21034then :
21035  printf %s "(cached) " >&6
21036else $as_nop
21037  case $PKG_CONFIG in
21038  [\\/]* | ?:[\\/]*)
21039  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21040  ;;
21041  *)
21042  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21043for as_dir in $PATH
21044do
21045  IFS=$as_save_IFS
21046  case $as_dir in #(((
21047    '') as_dir=./ ;;
21048    */) ;;
21049    *) as_dir=$as_dir/ ;;
21050  esac
21051    for ac_exec_ext in '' $ac_executable_extensions; do
21052  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21053    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
21054    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21055    break 2
21056  fi
21057done
21058  done
21059IFS=$as_save_IFS
21060
21061  ;;
21062esac
21063fi
21064PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21065if test -n "$PKG_CONFIG"; then
21066  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
21067printf "%s\n" "$PKG_CONFIG" >&6; }
21068else
21069  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21070printf "%s\n" "no" >&6; }
21071fi
21072
21073
21074fi
21075if test -z "$ac_cv_path_PKG_CONFIG"; then
21076  ac_pt_PKG_CONFIG=$PKG_CONFIG
21077  # Extract the first word of "pkg-config", so it can be a program name with args.
21078set dummy pkg-config; ac_word=$2
21079{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21080printf %s "checking for $ac_word... " >&6; }
21081if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
21082then :
21083  printf %s "(cached) " >&6
21084else $as_nop
21085  case $ac_pt_PKG_CONFIG in
21086  [\\/]* | ?:[\\/]*)
21087  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
21088  ;;
21089  *)
21090  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21091for as_dir in $PATH
21092do
21093  IFS=$as_save_IFS
21094  case $as_dir in #(((
21095    '') as_dir=./ ;;
21096    */) ;;
21097    *) as_dir=$as_dir/ ;;
21098  esac
21099    for ac_exec_ext in '' $ac_executable_extensions; do
21100  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21101    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
21102    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21103    break 2
21104  fi
21105done
21106  done
21107IFS=$as_save_IFS
21108
21109  ;;
21110esac
21111fi
21112ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
21113if test -n "$ac_pt_PKG_CONFIG"; then
21114  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
21115printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
21116else
21117  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21118printf "%s\n" "no" >&6; }
21119fi
21120
21121  if test "x$ac_pt_PKG_CONFIG" = x; then
21122    PKG_CONFIG=""
21123  else
21124    case $cross_compiling:$ac_tool_warned in
21125yes:)
21126{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21127printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21128ac_tool_warned=yes ;;
21129esac
21130    PKG_CONFIG=$ac_pt_PKG_CONFIG
21131  fi
21132else
21133  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
21134fi
21135
21136fi
21137if test -n "$PKG_CONFIG"; then
21138	_pkg_min_version=0.9.0
21139	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
21140printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
21141	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
21142		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21143printf "%s\n" "yes" >&6; }
21144	else
21145		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21146printf "%s\n" "no" >&6; }
21147		PKG_CONFIG=""
21148	fi
21149fi
21150
21151
21152
21153# Issue an error if xtrans.m4 was not found and XTRANS_CONNECTION_FLAGS macro
21154# was not expanded, since libX11 with no transport types is rather useless.
21155#
21156# If you're seeing an error here, be sure you installed the lib/xtrans module
21157# first and if it's not in the default location, that you set the ACLOCAL
21158# environment variable to find it, such as:
21159#	ACLOCAL="aclocal -I ${PREFIX}/share/aclocal"
21160
21161
21162# Transport selection macro from xtrans.m4
21163
21164
21165 case $host_os in
21166	mingw*)	unixdef="no"   ;;
21167	*)	unixdef="yes"  ;;
21168 esac
21169 # Check whether --enable-unix-transport was given.
21170if test ${enable_unix_transport+y}
21171then :
21172  enableval=$enable_unix_transport; UNIXCONN=$enableval
21173else $as_nop
21174  UNIXCONN=$unixdef
21175fi
21176
21177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5
21178printf %s "checking if Xtrans should support UNIX socket connections... " >&6; }
21179 if test "$UNIXCONN" = "yes"; then
21180
21181printf "%s\n" "#define UNIXCONN 1" >>confdefs.h
21182
21183 fi
21184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5
21185printf "%s\n" "$UNIXCONN" >&6; }
21186 # Check whether --enable-tcp-transport was given.
21187if test ${enable_tcp_transport+y}
21188then :
21189  enableval=$enable_tcp_transport; TCPCONN=$enableval
21190else $as_nop
21191  TCPCONN=yes
21192fi
21193
21194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5
21195printf %s "checking if Xtrans should support TCP socket connections... " >&6; }
21196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5
21197printf "%s\n" "$TCPCONN" >&6; }
21198 if test "$TCPCONN" = "yes"; then
21199
21200printf "%s\n" "#define TCPCONN 1" >>confdefs.h
21201
21202
21203 # SVR4 hides these in libraries other than libc
21204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
21205printf %s "checking for library containing socket... " >&6; }
21206if test ${ac_cv_search_socket+y}
21207then :
21208  printf %s "(cached) " >&6
21209else $as_nop
21210  ac_func_search_save_LIBS=$LIBS
21211cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21212/* end confdefs.h.  */
21213
21214/* Override any GCC internal prototype to avoid an error.
21215   Use char because int might match the return type of a GCC
21216   builtin and then its argument prototype would still apply.  */
21217char socket ();
21218int
21219main (void)
21220{
21221return socket ();
21222  ;
21223  return 0;
21224}
21225_ACEOF
21226for ac_lib in '' socket
21227do
21228  if test -z "$ac_lib"; then
21229    ac_res="none required"
21230  else
21231    ac_res=-l$ac_lib
21232    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21233  fi
21234  if ac_fn_c_try_link "$LINENO"
21235then :
21236  ac_cv_search_socket=$ac_res
21237fi
21238rm -f core conftest.err conftest.$ac_objext conftest.beam \
21239    conftest$ac_exeext
21240  if test ${ac_cv_search_socket+y}
21241then :
21242  break
21243fi
21244done
21245if test ${ac_cv_search_socket+y}
21246then :
21247
21248else $as_nop
21249  ac_cv_search_socket=no
21250fi
21251rm conftest.$ac_ext
21252LIBS=$ac_func_search_save_LIBS
21253fi
21254{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
21255printf "%s\n" "$ac_cv_search_socket" >&6; }
21256ac_res=$ac_cv_search_socket
21257if test "$ac_res" != no
21258then :
21259  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21260
21261fi
21262
21263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
21264printf %s "checking for library containing gethostbyname... " >&6; }
21265if test ${ac_cv_search_gethostbyname+y}
21266then :
21267  printf %s "(cached) " >&6
21268else $as_nop
21269  ac_func_search_save_LIBS=$LIBS
21270cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21271/* end confdefs.h.  */
21272
21273/* Override any GCC internal prototype to avoid an error.
21274   Use char because int might match the return type of a GCC
21275   builtin and then its argument prototype would still apply.  */
21276char gethostbyname ();
21277int
21278main (void)
21279{
21280return gethostbyname ();
21281  ;
21282  return 0;
21283}
21284_ACEOF
21285for ac_lib in '' nsl
21286do
21287  if test -z "$ac_lib"; then
21288    ac_res="none required"
21289  else
21290    ac_res=-l$ac_lib
21291    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21292  fi
21293  if ac_fn_c_try_link "$LINENO"
21294then :
21295  ac_cv_search_gethostbyname=$ac_res
21296fi
21297rm -f core conftest.err conftest.$ac_objext conftest.beam \
21298    conftest$ac_exeext
21299  if test ${ac_cv_search_gethostbyname+y}
21300then :
21301  break
21302fi
21303done
21304if test ${ac_cv_search_gethostbyname+y}
21305then :
21306
21307else $as_nop
21308  ac_cv_search_gethostbyname=no
21309fi
21310rm conftest.$ac_ext
21311LIBS=$ac_func_search_save_LIBS
21312fi
21313{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
21314printf "%s\n" "$ac_cv_search_gethostbyname" >&6; }
21315ac_res=$ac_cv_search_gethostbyname
21316if test "$ac_res" != no
21317then :
21318  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21319
21320fi
21321
21322 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then
21323   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5
21324printf %s "checking for main in -lws2_32... " >&6; }
21325if test ${ac_cv_lib_ws2_32_main+y}
21326then :
21327  printf %s "(cached) " >&6
21328else $as_nop
21329  ac_check_lib_save_LIBS=$LIBS
21330LIBS="-lws2_32  $LIBS"
21331cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21332/* end confdefs.h.  */
21333
21334
21335int
21336main (void)
21337{
21338return main ();
21339  ;
21340  return 0;
21341}
21342_ACEOF
21343if ac_fn_c_try_link "$LINENO"
21344then :
21345  ac_cv_lib_ws2_32_main=yes
21346else $as_nop
21347  ac_cv_lib_ws2_32_main=no
21348fi
21349rm -f core conftest.err conftest.$ac_objext conftest.beam \
21350    conftest$ac_exeext conftest.$ac_ext
21351LIBS=$ac_check_lib_save_LIBS
21352fi
21353{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5
21354printf "%s\n" "$ac_cv_lib_ws2_32_main" >&6; }
21355if test "x$ac_cv_lib_ws2_32_main" = xyes
21356then :
21357  printf "%s\n" "#define HAVE_LIBWS2_32 1" >>confdefs.h
21358
21359  LIBS="-lws2_32 $LIBS"
21360
21361fi
21362
21363 fi
21364
21365 # Needs to come after above checks for libsocket & libnsl for SVR4 systems
21366 # Check whether --enable-ipv6 was given.
21367if test ${enable_ipv6+y}
21368then :
21369  enableval=$enable_ipv6; IPV6CONN=$enableval
21370else $as_nop
21371  ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
21372if test "x$ac_cv_func_getaddrinfo" = xyes
21373then :
21374  IPV6CONN=yes
21375else $as_nop
21376  IPV6CONN=no
21377fi
21378
21379fi
21380
21381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5
21382printf %s "checking if IPv6 support should be built... " >&6; }
21383 if test "$IPV6CONN" = "yes"; then
21384
21385printf "%s\n" "#define IPv6 1" >>confdefs.h
21386
21387 fi
21388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5
21389printf "%s\n" "$IPV6CONN" >&6; }
21390
21391 # 4.3BSD-Reno added a new member to struct sockaddr_in
21392 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "
21393#include <sys/types.h>
21394#include <sys/socket.h>
21395#include <netinet/in.h>
21396
21397"
21398if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes
21399then :
21400
21401printf "%s\n" "#define BSD44SOCKETS 1" >>confdefs.h
21402
21403fi
21404
21405
21406 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc.
21407 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
21408$ac_includes_default
21409#include <sys/socket.h>
21410"
21411if test "x$ac_cv_type_socklen_t" = xyes
21412then :
21413
21414printf "%s\n" "#define HAVE_SOCKLEN_T 1" >>confdefs.h
21415
21416
21417fi
21418
21419
21420 # XPG4v2/UNIX95 added msg_control - check to see if we need to define
21421 # _XOPEN_SOURCE to get it (such as on Solaris)
21422 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
21423$ac_includes_default
21424#include <sys/socket.h>
21425
21426"
21427if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes
21428then :
21429
21430fi
21431
21432 # First try for Solaris in C99 compliant mode, which requires XPG6/UNIX03
21433 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
21434     unset ac_cv_member_struct_msghdr_msg_control
21435     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=600" >&5
21436printf "%s\n" "$as_me: trying again with _XOPEN_SOURCE=600" >&6;}
21437     ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
21438#define _XOPEN_SOURCE 600
21439$ac_includes_default
21440#include <sys/socket.h>
21441
21442"
21443if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes
21444then :
21445
21446printf "%s\n" "#define _XOPEN_SOURCE 600" >>confdefs.h
21447
21448
21449fi
21450
21451 fi
21452 # If that didn't work, fall back to XPG5/UNIX98 with C89
21453 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
21454     unset ac_cv_member_struct_msghdr_msg_control
21455     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=500" >&5
21456printf "%s\n" "$as_me: trying again with _XOPEN_SOURCE=500" >&6;}
21457     ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
21458#define _XOPEN_SOURCE 500
21459$ac_includes_default
21460#include <sys/socket.h>
21461
21462"
21463if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes
21464then :
21465
21466printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
21467
21468
21469fi
21470
21471 fi
21472
21473
21474
21475 fi
21476 case $host_os in
21477	solaris*|sco*|sysv4*)	localdef="yes" ;;
21478	*)			localdef="no"  ;;
21479 esac
21480 # Check whether --enable-local-transport was given.
21481if test ${enable_local_transport+y}
21482then :
21483  enableval=$enable_local_transport; LOCALCONN=$enableval
21484else $as_nop
21485  LOCALCONN=$localdef
21486fi
21487
21488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5
21489printf %s "checking if Xtrans should support os-specific local connections... " >&6; }
21490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5
21491printf "%s\n" "$LOCALCONN" >&6; }
21492 if test "$LOCALCONN" = "yes"; then
21493
21494printf "%s\n" "#define LOCALCONN 1" >>confdefs.h
21495
21496 fi
21497
21498 # Other functions Xtrans may need
21499 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
21500if test "x$ac_cv_func_strcasecmp" = xyes
21501then :
21502  printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
21503
21504fi
21505ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
21506if test "x$ac_cv_func_strlcpy" = xyes
21507then :
21508  printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
21509
21510fi
21511
21512
21513
21514
21515# Check for dlopen
21516{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if run-time linking is supported" >&5
21517printf %s "checking if run-time linking is supported... " >&6; }
21518{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
21519printf %s "checking for library containing dlopen... " >&6; }
21520if test ${ac_cv_search_dlopen+y}
21521then :
21522  printf %s "(cached) " >&6
21523else $as_nop
21524  ac_func_search_save_LIBS=$LIBS
21525cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21526/* end confdefs.h.  */
21527
21528/* Override any GCC internal prototype to avoid an error.
21529   Use char because int might match the return type of a GCC
21530   builtin and then its argument prototype would still apply.  */
21531char dlopen ();
21532int
21533main (void)
21534{
21535return dlopen ();
21536  ;
21537  return 0;
21538}
21539_ACEOF
21540for ac_lib in '' dl svld
21541do
21542  if test -z "$ac_lib"; then
21543    ac_res="none required"
21544  else
21545    ac_res=-l$ac_lib
21546    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21547  fi
21548  if ac_fn_c_try_link "$LINENO"
21549then :
21550  ac_cv_search_dlopen=$ac_res
21551fi
21552rm -f core conftest.err conftest.$ac_objext conftest.beam \
21553    conftest$ac_exeext
21554  if test ${ac_cv_search_dlopen+y}
21555then :
21556  break
21557fi
21558done
21559if test ${ac_cv_search_dlopen+y}
21560then :
21561
21562else $as_nop
21563  ac_cv_search_dlopen=no
21564fi
21565rm conftest.$ac_ext
21566LIBS=$ac_func_search_save_LIBS
21567fi
21568{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
21569printf "%s\n" "$ac_cv_search_dlopen" >&6; }
21570ac_res=$ac_cv_search_dlopen
21571if test "$ac_res" != no
21572then :
21573  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21574
21575fi
21576
21577if test "x$ac_cv_search_dlopen" = xno; then
21578	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing shl_load" >&5
21579printf %s "checking for library containing shl_load... " >&6; }
21580if test ${ac_cv_search_shl_load+y}
21581then :
21582  printf %s "(cached) " >&6
21583else $as_nop
21584  ac_func_search_save_LIBS=$LIBS
21585cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21586/* end confdefs.h.  */
21587
21588/* Override any GCC internal prototype to avoid an error.
21589   Use char because int might match the return type of a GCC
21590   builtin and then its argument prototype would still apply.  */
21591char shl_load ();
21592int
21593main (void)
21594{
21595return shl_load ();
21596  ;
21597  return 0;
21598}
21599_ACEOF
21600for ac_lib in '' dld
21601do
21602  if test -z "$ac_lib"; then
21603    ac_res="none required"
21604  else
21605    ac_res=-l$ac_lib
21606    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21607  fi
21608  if ac_fn_c_try_link "$LINENO"
21609then :
21610  ac_cv_search_shl_load=$ac_res
21611fi
21612rm -f core conftest.err conftest.$ac_objext conftest.beam \
21613    conftest$ac_exeext
21614  if test ${ac_cv_search_shl_load+y}
21615then :
21616  break
21617fi
21618done
21619if test ${ac_cv_search_shl_load+y}
21620then :
21621
21622else $as_nop
21623  ac_cv_search_shl_load=no
21624fi
21625rm conftest.$ac_ext
21626LIBS=$ac_func_search_save_LIBS
21627fi
21628{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shl_load" >&5
21629printf "%s\n" "$ac_cv_search_shl_load" >&6; }
21630ac_res=$ac_cv_search_shl_load
21631if test "$ac_res" != no
21632then :
21633  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21634
21635fi
21636
21637	if test "x$ac_cv_search_shl_load" != xno; then
21638
21639printf "%s\n" "#define HAVE_SHL_LOAD 1" >>confdefs.h
21640
21641		ac_fn_c_check_header_compile "$LINENO" "dl.h" "ac_cv_header_dl_h" "$ac_includes_default"
21642if test "x$ac_cv_header_dl_h" = xyes
21643then :
21644  printf "%s\n" "#define HAVE_DL_H 1" >>confdefs.h
21645
21646fi
21647
21648	fi
21649else
21650
21651printf "%s\n" "#define HAVE_DLOPEN 1" >>confdefs.h
21652
21653	ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
21654if test "x$ac_cv_header_dlfcn_h" = xyes
21655then :
21656  printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
21657
21658fi
21659
21660fi
21661if test "x$ac_cv_header_dlfcn_h" = xyes -o "x$ac_cv_header_dl_h" = xyes; then
21662	HAVE_LOADABLE_MODULES=yes
21663else
21664	HAVE_LOADABLE_MODULES=no
21665fi
21666{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HAVE_LOADABLE_MODULES" >&5
21667printf "%s\n" "$HAVE_LOADABLE_MODULES" >&6; }
21668
21669{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if loadable i18n module support should be enabled" >&5
21670printf %s "checking if loadable i18n module support should be enabled... " >&6; }
21671# Check whether --enable-loadable-i18n was given.
21672if test ${enable_loadable_i18n+y}
21673then :
21674  enableval=$enable_loadable_i18n; XLIB_LOADABLE_I18N=$enableval
21675else $as_nop
21676  XLIB_LOADABLE_I18N="no"
21677fi
21678
21679if test x$XLIB_LOADABLE_I18N = xyes; then
21680	if test x$HAVE_LOADABLE_MODULES = xno; then
21681		as_fn_error $? "Loadable module support is required to enable loadable i18n module support" "$LINENO" 5
21682	fi
21683
21684printf "%s\n" "#define USE_DYNAMIC_LC 1" >>confdefs.h
21685
21686	I18N_MODULE_LIBS='${top_builddir}/src/libX11.la'
21687
21688fi
21689{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XLIB_LOADABLE_I18N" >&5
21690printf "%s\n" "$XLIB_LOADABLE_I18N" >&6; }
21691
21692 if test x$XLIB_LOADABLE_I18N = xyes; then
21693  XLIB_LOADABLE_I18N_TRUE=
21694  XLIB_LOADABLE_I18N_FALSE='#'
21695else
21696  XLIB_LOADABLE_I18N_TRUE='#'
21697  XLIB_LOADABLE_I18N_FALSE=
21698fi
21699
21700
21701{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if loadable Xcursor library support should be enabled" >&5
21702printf %s "checking if loadable Xcursor library support should be enabled... " >&6; }
21703# Check whether --enable-loadable-xcursor was given.
21704if test ${enable_loadable_xcursor+y}
21705then :
21706  enableval=$enable_loadable_xcursor; XLIB_LOADABLE_XCURSOR=$enableval
21707else $as_nop
21708  XLIB_LOADABLE_XCURSOR=$HAVE_LOADABLE_MODULES
21709fi
21710
21711if test x$XLIB_LOADABLE_XCURSOR = xyes; then
21712
21713printf "%s\n" "#define USE_DYNAMIC_XCURSOR 1" >>confdefs.h
21714
21715fi
21716{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XLIB_LOADABLE_XCURSOR" >&5
21717printf "%s\n" "$XLIB_LOADABLE_XCURSOR" >&6; }
21718
21719# Checks for header files.
21720ac_fn_c_check_header_compile "$LINENO" "sys/filio.h" "ac_cv_header_sys_filio_h" "$ac_includes_default"
21721if test "x$ac_cv_header_sys_filio_h" = xyes
21722then :
21723  printf "%s\n" "#define HAVE_SYS_FILIO_H 1" >>confdefs.h
21724
21725fi
21726ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
21727if test "x$ac_cv_header_sys_select_h" = xyes
21728then :
21729  printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
21730
21731fi
21732ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
21733if test "x$ac_cv_header_sys_ioctl_h" = xyes
21734then :
21735  printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
21736
21737fi
21738ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
21739if test "x$ac_cv_header_sys_socket_h" = xyes
21740then :
21741  printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
21742
21743fi
21744
21745
21746# Checks for typedefs, structures, and compiler characteristics.
21747
21748
21749
21750    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_popcountl" >&5
21751printf %s "checking for __builtin_popcountl... " >&6; }
21752if test ${ax_cv_have___builtin_popcountl+y}
21753then :
21754  printf %s "(cached) " >&6
21755else $as_nop
21756
21757        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21758/* end confdefs.h.  */
21759
21760int
21761main (void)
21762{
21763
21764            __builtin_popcountl(0)
21765
21766  ;
21767  return 0;
21768}
21769_ACEOF
21770if ac_fn_c_try_link "$LINENO"
21771then :
21772  ax_cv_have___builtin_popcountl=yes
21773else $as_nop
21774  ax_cv_have___builtin_popcountl=no
21775fi
21776rm -f core conftest.err conftest.$ac_objext conftest.beam \
21777    conftest$ac_exeext conftest.$ac_ext
21778
21779fi
21780{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have___builtin_popcountl" >&5
21781printf "%s\n" "$ax_cv_have___builtin_popcountl" >&6; }
21782
21783    if test yes = $ax_cv_have___builtin_popcountl
21784then :
21785
21786printf "%s\n" "#define HAVE___BUILTIN_POPCOUNTL 1" >>confdefs.h
21787
21788fi
21789
21790
21791
21792
21793# Checks for library functions.
21794ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol"
21795if test "x$ac_cv_func_strtol" = xyes
21796then :
21797  printf "%s\n" "#define HAVE_STRTOL 1" >>confdefs.h
21798
21799fi
21800ac_fn_c_check_func "$LINENO" "seteuid" "ac_cv_func_seteuid"
21801if test "x$ac_cv_func_seteuid" = xyes
21802then :
21803  printf "%s\n" "#define HAVE_SETEUID 1" >>confdefs.h
21804
21805fi
21806
21807ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray"
21808if test "x$ac_cv_func_reallocarray" = xyes
21809then :
21810  printf "%s\n" "#define HAVE_REALLOCARRAY 1" >>confdefs.h
21811
21812else $as_nop
21813  case " $LIBOBJS " in
21814  *" reallocarray.$ac_objext "* ) ;;
21815  *) LIBOBJS="$LIBOBJS reallocarray.$ac_objext"
21816 ;;
21817esac
21818
21819fi
21820
21821# Used in lcFile.c (see also --enable-xlocaledir settings below)
21822XLOCALEDIR_IS_SAFE="no"
21823ac_fn_check_decl "$LINENO" "issetugid" "ac_cv_have_decl_issetugid" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
21824if test "x$ac_cv_have_decl_issetugid" = xyes
21825then :
21826
21827fi
21828ac_fn_c_check_func "$LINENO" "issetugid" "ac_cv_func_issetugid"
21829if test "x$ac_cv_func_issetugid" = xyes
21830then :
21831
21832fi
21833
21834if test "$ac_cv_have_decl_issetugid" = yes && test "$ac_cv_func_issetugid" = yes; then
21835    XLOCALEDIR_IS_SAFE="yes"
21836
21837printf "%s\n" "#define HASSETUGID 1" >>confdefs.h
21838
21839fi
21840ac_fn_c_check_func "$LINENO" "getresuid" "ac_cv_func_getresuid"
21841if test "x$ac_cv_func_getresuid" = xyes
21842then :
21843  XLOCALEDIR_IS_SAFE="yes"
21844
21845printf "%s\n" "#define HASGETRESUID 1" >>confdefs.h
21846
21847fi
21848
21849# Used in Font.c
21850ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
21851if test "x$ac_cv_func_shmat" = xyes
21852then :
21853
21854printf "%s\n" "#define HAS_SHM 1" >>confdefs.h
21855
21856fi
21857
21858
21859# Checks for system services
21860# AC_PATH_XTRA
21861
21862# arch specific things
21863WCHAR32="1"
21864case $host_os in
21865  os2*) os2="true" ; WCHAR32="0" ;;
21866  *) ;;
21867esac
21868
21869
21870 if test x$os2 = xtrue; then
21871  OS2_TRUE=
21872  OS2_FALSE='#'
21873else
21874  OS2_TRUE='#'
21875  OS2_FALSE=
21876fi
21877
21878
21879
21880# Check whether --with-launchd was given.
21881if test ${with_launchd+y}
21882then :
21883  withval=$with_launchd; LAUNCHD=$withval
21884else $as_nop
21885  LAUNCHD=auto
21886fi
21887
21888if test "x$LAUNCHD" = xauto; then
21889	unset LAUNCHD
21890	# Extract the first word of "launchd", so it can be a program name with args.
21891set dummy launchd; ac_word=$2
21892{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21893printf %s "checking for $ac_word... " >&6; }
21894if test ${ac_cv_prog_LAUNCHD+y}
21895then :
21896  printf %s "(cached) " >&6
21897else $as_nop
21898  if test -n "$LAUNCHD"; then
21899  ac_cv_prog_LAUNCHD="$LAUNCHD" # Let the user override the test.
21900else
21901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21902for as_dir in $PATH$PATH_SEPARATOR/sbin
21903do
21904  IFS=$as_save_IFS
21905  case $as_dir in #(((
21906    '') as_dir=./ ;;
21907    */) ;;
21908    *) as_dir=$as_dir/ ;;
21909  esac
21910    for ac_exec_ext in '' $ac_executable_extensions; do
21911  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21912    ac_cv_prog_LAUNCHD="yes"
21913    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21914    break 2
21915  fi
21916done
21917  done
21918IFS=$as_save_IFS
21919
21920  test -z "$ac_cv_prog_LAUNCHD" && ac_cv_prog_LAUNCHD="no"
21921fi
21922fi
21923LAUNCHD=$ac_cv_prog_LAUNCHD
21924if test -n "$LAUNCHD"; then
21925  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LAUNCHD" >&5
21926printf "%s\n" "$LAUNCHD" >&6; }
21927else
21928  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21929printf "%s\n" "no" >&6; }
21930fi
21931
21932
21933fi
21934
21935if test "x$LAUNCHD" = xyes ; then
21936
21937printf "%s\n" "#define HAVE_LAUNCHD 1" >>confdefs.h
21938
21939
21940printf "%s\n" "#define TRANS_REOPEN 1" >>confdefs.h
21941
21942fi
21943
21944# Check whether --enable-xthreads was given.
21945if test ${enable_xthreads+y}
21946then :
21947  enableval=$enable_xthreads; xthreads=$enableval
21948else $as_nop
21949  xthreads=yes
21950fi
21951
21952
21953{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getpwuid_r in -lc" >&5
21954printf %s "checking for getpwuid_r in -lc... " >&6; }
21955if test ${ac_cv_lib_c_getpwuid_r+y}
21956then :
21957  printf %s "(cached) " >&6
21958else $as_nop
21959  ac_check_lib_save_LIBS=$LIBS
21960LIBS="-lc  $LIBS"
21961cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21962/* end confdefs.h.  */
21963
21964/* Override any GCC internal prototype to avoid an error.
21965   Use char because int might match the return type of a GCC
21966   builtin and then its argument prototype would still apply.  */
21967char getpwuid_r ();
21968int
21969main (void)
21970{
21971return getpwuid_r ();
21972  ;
21973  return 0;
21974}
21975_ACEOF
21976if ac_fn_c_try_link "$LINENO"
21977then :
21978  ac_cv_lib_c_getpwuid_r=yes
21979else $as_nop
21980  ac_cv_lib_c_getpwuid_r=no
21981fi
21982rm -f core conftest.err conftest.$ac_objext conftest.beam \
21983    conftest$ac_exeext conftest.$ac_ext
21984LIBS=$ac_check_lib_save_LIBS
21985fi
21986{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getpwuid_r" >&5
21987printf "%s\n" "$ac_cv_lib_c_getpwuid_r" >&6; }
21988if test "x$ac_cv_lib_c_getpwuid_r" = xyes
21989then :
21990  mtsafeapi="yes"
21991else $as_nop
21992  mtsafeapi="no"
21993fi
21994
21995
21996case x$xthreads in
21997xyes)
21998
21999printf "%s\n" "#define XTHREADS 1" >>confdefs.h
22000
22001	if test x$mtsafeapi = xyes
22002	then
22003
22004printf "%s\n" "#define XUSE_MTSAFE_API 1" >>confdefs.h
22005
22006	fi
22007	;;
22008*)
22009	;;
22010esac
22011
22012{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lc" >&5
22013printf %s "checking for pthread_self in -lc... " >&6; }
22014if test ${ac_cv_lib_c_pthread_self+y}
22015then :
22016  printf %s "(cached) " >&6
22017else $as_nop
22018  ac_check_lib_save_LIBS=$LIBS
22019LIBS="-lc  $LIBS"
22020cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22021/* end confdefs.h.  */
22022
22023/* Override any GCC internal prototype to avoid an error.
22024   Use char because int might match the return type of a GCC
22025   builtin and then its argument prototype would still apply.  */
22026char pthread_self ();
22027int
22028main (void)
22029{
22030return pthread_self ();
22031  ;
22032  return 0;
22033}
22034_ACEOF
22035if ac_fn_c_try_link "$LINENO"
22036then :
22037  ac_cv_lib_c_pthread_self=yes
22038else $as_nop
22039  ac_cv_lib_c_pthread_self=no
22040fi
22041rm -f core conftest.err conftest.$ac_objext conftest.beam \
22042    conftest$ac_exeext conftest.$ac_ext
22043LIBS=$ac_check_lib_save_LIBS
22044fi
22045{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_pthread_self" >&5
22046printf "%s\n" "$ac_cv_lib_c_pthread_self" >&6; }
22047if test "x$ac_cv_lib_c_pthread_self" = xyes
22048then :
22049  thrstubs="no"
22050else $as_nop
22051  thrstubs="yes"
22052fi
22053
22054 if test x$thrstubs = xyes; then
22055  THRSTUBS_TRUE=
22056  THRSTUBS_FALSE='#'
22057else
22058  THRSTUBS_TRUE='#'
22059  THRSTUBS_FALSE=
22060fi
22061
22062
22063# XXX incomplete, please fill this in
22064if test x$xthreads = xyes ; then
22065    case $host_os in
22066    linux*|gnu*|k*bsd*-gnu)
22067        XTHREADLIB=-lpthread ;;
22068    netbsd*)
22069	XTHREAD_CFLAGS="-D_POSIX_THREAD_SAFE_FUNCTIONS"
22070	XTHREADLIB="-lpthread" ;;
22071    freebsd*)
22072        XTHREAD_CFLAGS="-D_THREAD_SAFE"
22073        XTHREADLIB="-pthread" ;;
22074    dragonfly*|openbsd*)
22075        XTHREADLIB="-pthread" ;;
22076    solaris*)
22077	XTHREAD_CFLAGS="-D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS" ;;
22078    esac
22079fi
22080
22081
22082
22083ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
22084if test "x$ac_cv_func_poll" = xyes
22085then :
22086
22087printf "%s\n" "#define USE_POLL 1" >>confdefs.h
22088
22089fi
22090
22091
22092#
22093# Find keysymdef.h
22094#
22095{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking keysym definitions" >&5
22096printf %s "checking keysym definitions... " >&6; }
22097
22098# Check whether --with-keysymdefdir was given.
22099if test ${with_keysymdefdir+y}
22100then :
22101  withval=$with_keysymdefdir; KEYSYMDEFDIR=$withval
22102else $as_nop
22103  KEYSYMDEFDIR=`$PKG_CONFIG --variable=includedir xproto`/X11
22104fi
22105
22106
22107if test ! -d "$KEYSYMDEFDIR"; then
22108	as_fn_error $? "$KEYSYMDEFDIR doesn't exist or isn't a directory" "$LINENO" 5
22109fi
22110
22111FILES="keysymdef.h XF86keysym.h Sunkeysym.h DECkeysym.h HPkeysym.h"
22112for i in $FILES; do
22113    if test -f "$KEYSYMDEFDIR/$i"; then
22114            KEYSYMDEFS="$KEYSYMDEFS $KEYSYMDEFDIR/$i"
22115    elif test "x$i" = "xkeysymdef.h"; then
22116	    as_fn_error $? "Cannot find keysymdef.h" "$LINENO" 5
22117    fi
22118done
22119{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $KEYSYMDEFS" >&5
22120printf "%s\n" "$KEYSYMDEFS" >&6; }
22121
22122
22123# Check whether --enable-xcms was given.
22124if test ${enable_xcms+y}
22125then :
22126  enableval=$enable_xcms; XCMS=$enableval
22127else $as_nop
22128  XCMS=yes
22129fi
22130
22131 if test x$XCMS = xyes ; then
22132  XCMS_TRUE=
22133  XCMS_FALSE='#'
22134else
22135  XCMS_TRUE='#'
22136  XCMS_FALSE=
22137fi
22138
22139if test x"$XCMS" = "xyes"; then
22140
22141printf "%s\n" "#define XCMS 1" >>confdefs.h
22142
22143fi
22144
22145# Check whether --enable-xlocale was given.
22146if test ${enable_xlocale+y}
22147then :
22148  enableval=$enable_xlocale; XLOCALE=$enableval
22149else $as_nop
22150  XLOCALE=yes
22151fi
22152
22153
22154 if  test x$XLOCALE = xyes ; then
22155  XLOCALE_TRUE=
22156  XLOCALE_FALSE='#'
22157else
22158  XLOCALE_TRUE='#'
22159  XLOCALE_FALSE=
22160fi
22161
22162if test x"$XLOCALE" = "xyes"; then
22163
22164printf "%s\n" "#define XLOCALE 1" >>confdefs.h
22165
22166fi
22167
22168# This disables XLOCALEDIR.  Set it if you're using BuildLoadableXlibI18n,
22169# don't have either issetugid() or getresuid(), and you need to protect
22170# clients that are setgid or setuid to an id other than 0.
22171{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if XLOCALEDIR support should be enabled" >&5
22172printf %s "checking if XLOCALEDIR support should be enabled... " >&6; }
22173# Check whether --enable-xlocaledir was given.
22174if test ${enable_xlocaledir+y}
22175then :
22176  enableval=$enable_xlocaledir; ENABLE_XLOCALEDIR=$enableval
22177else $as_nop
22178  ENABLE_XLOCALEDIR=$XLOCALEDIR_IS_SAFE
22179fi
22180
22181if test "x$ENABLE_XLOCALEDIR" = "xno"; then
22182
22183printf "%s\n" "#define NO_XLOCALEDIR 1" >>confdefs.h
22184
22185fi
22186{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ENABLE_XLOCALEDIR" >&5
22187printf "%s\n" "$ENABLE_XLOCALEDIR" >&6; }
22188
22189# Check whether --enable-xf86bigfont was given.
22190if test ${enable_xf86bigfont+y}
22191then :
22192  enableval=$enable_xf86bigfont; XF86BIGFONT=$enableval
22193else $as_nop
22194  XF86BIGFONT="yes"
22195fi
22196
22197if test "x$XF86BIGFONT" = "xyes"; then
22198
22199pkg_failed=no
22200{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BIGFONT" >&5
22201printf %s "checking for BIGFONT... " >&6; }
22202
22203if test -n "$BIGFONT_CFLAGS"; then
22204    pkg_cv_BIGFONT_CFLAGS="$BIGFONT_CFLAGS"
22205 elif test -n "$PKG_CONFIG"; then
22206    if test -n "$PKG_CONFIG" && \
22207    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xf86bigfontproto >= 1.2.0\""; } >&5
22208  ($PKG_CONFIG --exists --print-errors "xf86bigfontproto >= 1.2.0") 2>&5
22209  ac_status=$?
22210  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22211  test $ac_status = 0; }; then
22212  pkg_cv_BIGFONT_CFLAGS=`$PKG_CONFIG --cflags "xf86bigfontproto >= 1.2.0" 2>/dev/null`
22213		      test "x$?" != "x0" && pkg_failed=yes
22214else
22215  pkg_failed=yes
22216fi
22217 else
22218    pkg_failed=untried
22219fi
22220if test -n "$BIGFONT_LIBS"; then
22221    pkg_cv_BIGFONT_LIBS="$BIGFONT_LIBS"
22222 elif test -n "$PKG_CONFIG"; then
22223    if test -n "$PKG_CONFIG" && \
22224    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xf86bigfontproto >= 1.2.0\""; } >&5
22225  ($PKG_CONFIG --exists --print-errors "xf86bigfontproto >= 1.2.0") 2>&5
22226  ac_status=$?
22227  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22228  test $ac_status = 0; }; then
22229  pkg_cv_BIGFONT_LIBS=`$PKG_CONFIG --libs "xf86bigfontproto >= 1.2.0" 2>/dev/null`
22230		      test "x$?" != "x0" && pkg_failed=yes
22231else
22232  pkg_failed=yes
22233fi
22234 else
22235    pkg_failed=untried
22236fi
22237
22238
22239
22240if test $pkg_failed = yes; then
22241   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22242printf "%s\n" "no" >&6; }
22243
22244if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22245        _pkg_short_errors_supported=yes
22246else
22247        _pkg_short_errors_supported=no
22248fi
22249        if test $_pkg_short_errors_supported = yes; then
22250	        BIGFONT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xf86bigfontproto >= 1.2.0" 2>&1`
22251        else
22252	        BIGFONT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xf86bigfontproto >= 1.2.0" 2>&1`
22253        fi
22254	# Put the nasty error message in config.log where it belongs
22255	echo "$BIGFONT_PKG_ERRORS" >&5
22256
22257	XF86BIGFONT="no"
22258elif test $pkg_failed = untried; then
22259     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22260printf "%s\n" "no" >&6; }
22261	XF86BIGFONT="no"
22262else
22263	BIGFONT_CFLAGS=$pkg_cv_BIGFONT_CFLAGS
22264	BIGFONT_LIBS=$pkg_cv_BIGFONT_LIBS
22265        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22266printf "%s\n" "yes" >&6; }
22267
22268printf "%s\n" "#define XF86BIGFONT 1" >>confdefs.h
22269
22270fi
22271fi
22272
22273# Check whether --enable-xkb was given.
22274if test ${enable_xkb+y}
22275then :
22276  enableval=$enable_xkb; XKB=$enableval
22277else $as_nop
22278  XKB=yes
22279fi
22280
22281
22282 if  test x$XKB = xyes ; then
22283  XKB_TRUE=
22284  XKB_FALSE='#'
22285else
22286  XKB_TRUE='#'
22287  XKB_FALSE=
22288fi
22289
22290if test x"$XKB" = "xyes"; then
22291   XKBPROTO_REQUIRES="kbproto"
22292   X11_REQUIRES="${X11_REQUIRES} kbproto inputproto"
22293
22294printf "%s\n" "#define XKB 1" >>confdefs.h
22295
22296else
22297   XKBPROTO_REQUIRES=""
22298fi
22299
22300
22301
22302ac_func=
22303for ac_item in $ac_func_c_list
22304do
22305  if test $ac_func; then
22306    ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
22307    if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
22308      echo "#define $ac_item 1" >> confdefs.h
22309    fi
22310    ac_func=
22311  else
22312    ac_func=$ac_item
22313  fi
22314done
22315
22316
22317{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
22318printf %s "checking for working mmap... " >&6; }
22319if test ${ac_cv_func_mmap_fixed_mapped+y}
22320then :
22321  printf %s "(cached) " >&6
22322else $as_nop
22323  if test "$cross_compiling" = yes
22324then :
22325  case "$host_os" in # ((
22326			  # Guess yes on platforms where we know the result.
22327		  linux*) ac_cv_func_mmap_fixed_mapped=yes ;;
22328			  # If we don't know, assume the worst.
22329		  *)      ac_cv_func_mmap_fixed_mapped=no ;;
22330		esac
22331else $as_nop
22332  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22333/* end confdefs.h.  */
22334$ac_includes_default
22335/* malloc might have been renamed as rpl_malloc. */
22336#undef malloc
22337
22338/* Thanks to Mike Haertel and Jim Avera for this test.
22339   Here is a matrix of mmap possibilities:
22340	mmap private not fixed
22341	mmap private fixed at somewhere currently unmapped
22342	mmap private fixed at somewhere already mapped
22343	mmap shared not fixed
22344	mmap shared fixed at somewhere currently unmapped
22345	mmap shared fixed at somewhere already mapped
22346   For private mappings, we should verify that changes cannot be read()
22347   back from the file, nor mmap's back from the file at a different
22348   address.  (There have been systems where private was not correctly
22349   implemented like the infamous i386 svr4.0, and systems where the
22350   VM page cache was not coherent with the file system buffer cache
22351   like early versions of FreeBSD and possibly contemporary NetBSD.)
22352   For shared mappings, we should conversely verify that changes get
22353   propagated back to all the places they're supposed to be.
22354
22355   Grep wants private fixed already mapped.
22356   The main things grep needs to know about mmap are:
22357   * does it exist and is it safe to write into the mmap'd area
22358   * how to use it (BSD variants)  */
22359
22360#include <fcntl.h>
22361#include <sys/mman.h>
22362
22363/* This mess was copied from the GNU getpagesize.h.  */
22364#ifndef HAVE_GETPAGESIZE
22365# ifdef _SC_PAGESIZE
22366#  define getpagesize() sysconf(_SC_PAGESIZE)
22367# else /* no _SC_PAGESIZE */
22368#  ifdef HAVE_SYS_PARAM_H
22369#   include <sys/param.h>
22370#   ifdef EXEC_PAGESIZE
22371#    define getpagesize() EXEC_PAGESIZE
22372#   else /* no EXEC_PAGESIZE */
22373#    ifdef NBPG
22374#     define getpagesize() NBPG * CLSIZE
22375#     ifndef CLSIZE
22376#      define CLSIZE 1
22377#     endif /* no CLSIZE */
22378#    else /* no NBPG */
22379#     ifdef NBPC
22380#      define getpagesize() NBPC
22381#     else /* no NBPC */
22382#      ifdef PAGESIZE
22383#       define getpagesize() PAGESIZE
22384#      endif /* PAGESIZE */
22385#     endif /* no NBPC */
22386#    endif /* no NBPG */
22387#   endif /* no EXEC_PAGESIZE */
22388#  else /* no HAVE_SYS_PARAM_H */
22389#   define getpagesize() 8192	/* punt totally */
22390#  endif /* no HAVE_SYS_PARAM_H */
22391# endif /* no _SC_PAGESIZE */
22392
22393#endif /* no HAVE_GETPAGESIZE */
22394
22395int
22396main (void)
22397{
22398  char *data, *data2, *data3;
22399  const char *cdata2;
22400  int i, pagesize;
22401  int fd, fd2;
22402
22403  pagesize = getpagesize ();
22404
22405  /* First, make a file with some known garbage in it. */
22406  data = (char *) malloc (pagesize);
22407  if (!data)
22408    return 1;
22409  for (i = 0; i < pagesize; ++i)
22410    *(data + i) = rand ();
22411  umask (0);
22412  fd = creat ("conftest.mmap", 0600);
22413  if (fd < 0)
22414    return 2;
22415  if (write (fd, data, pagesize) != pagesize)
22416    return 3;
22417  close (fd);
22418
22419  /* Next, check that the tail of a page is zero-filled.  File must have
22420     non-zero length, otherwise we risk SIGBUS for entire page.  */
22421  fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
22422  if (fd2 < 0)
22423    return 4;
22424  cdata2 = "";
22425  if (write (fd2, cdata2, 1) != 1)
22426    return 5;
22427  data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
22428  if (data2 == MAP_FAILED)
22429    return 6;
22430  for (i = 0; i < pagesize; ++i)
22431    if (*(data2 + i))
22432      return 7;
22433  close (fd2);
22434  if (munmap (data2, pagesize))
22435    return 8;
22436
22437  /* Next, try to mmap the file at a fixed address which already has
22438     something else allocated at it.  If we can, also make sure that
22439     we see the same garbage.  */
22440  fd = open ("conftest.mmap", O_RDWR);
22441  if (fd < 0)
22442    return 9;
22443  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22444		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
22445    return 10;
22446  for (i = 0; i < pagesize; ++i)
22447    if (*(data + i) != *(data2 + i))
22448      return 11;
22449
22450  /* Finally, make sure that changes to the mapped area do not
22451     percolate back to the file as seen by read().  (This is a bug on
22452     some variants of i386 svr4.0.)  */
22453  for (i = 0; i < pagesize; ++i)
22454    *(data2 + i) = *(data2 + i) + 1;
22455  data3 = (char *) malloc (pagesize);
22456  if (!data3)
22457    return 12;
22458  if (read (fd, data3, pagesize) != pagesize)
22459    return 13;
22460  for (i = 0; i < pagesize; ++i)
22461    if (*(data + i) != *(data3 + i))
22462      return 14;
22463  close (fd);
22464  free (data);
22465  free (data3);
22466  return 0;
22467}
22468_ACEOF
22469if ac_fn_c_try_run "$LINENO"
22470then :
22471  ac_cv_func_mmap_fixed_mapped=yes
22472else $as_nop
22473  ac_cv_func_mmap_fixed_mapped=no
22474fi
22475rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22476  conftest.$ac_objext conftest.beam conftest.$ac_ext
22477fi
22478
22479fi
22480{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
22481printf "%s\n" "$ac_cv_func_mmap_fixed_mapped" >&6; }
22482if test $ac_cv_func_mmap_fixed_mapped = yes; then
22483
22484printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h
22485
22486fi
22487rm -f conftest.mmap conftest.txt
22488
22489composecache_default=$ac_cv_func_mmap_fixed_mapped
22490ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo"
22491if test "x$ac_cv_func_nl_langinfo" = xyes
22492then :
22493
22494else $as_nop
22495  composecache_default=no
22496fi
22497
22498# Check whether --enable-composecache was given.
22499if test ${enable_composecache+y}
22500then :
22501  enableval=$enable_composecache; COMPOSECACHE=$enableval
22502else $as_nop
22503  COMPOSECACHE=$composecache_default
22504fi
22505
22506if test x"$COMPOSECACHE" = "xyes"; then
22507
22508printf "%s\n" "#define COMPOSECACHE 1" >>confdefs.h
22509
22510fi
22511
22512# Allow checking code with lint, sparse, etc.
22513
22514
22515
22516
22517
22518# Check whether --with-lint was given.
22519if test ${with_lint+y}
22520then :
22521  withval=$with_lint; use_lint=$withval
22522else $as_nop
22523  use_lint=no
22524fi
22525
22526
22527# Obtain platform specific info like program name and options
22528# The lint program on FreeBSD and NetBSD is different from the one on Solaris
22529case $host_os in
22530  *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
22531	lint_name=splint
22532	lint_options="-badflag"
22533	;;
22534  *freebsd* | *netbsd*)
22535	lint_name=lint
22536	lint_options="-u -b"
22537	;;
22538  *solaris*)
22539	lint_name=lint
22540	lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
22541	;;
22542esac
22543
22544# Test for the presence of the program (either guessed by the code or spelled out by the user)
22545if test "x$use_lint" = x"yes" ; then
22546   # Extract the first word of "$lint_name", so it can be a program name with args.
22547set dummy $lint_name; ac_word=$2
22548{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22549printf %s "checking for $ac_word... " >&6; }
22550if test ${ac_cv_path_LINT+y}
22551then :
22552  printf %s "(cached) " >&6
22553else $as_nop
22554  case $LINT in
22555  [\\/]* | ?:[\\/]*)
22556  ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
22557  ;;
22558  *)
22559  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22560for as_dir in $PATH
22561do
22562  IFS=$as_save_IFS
22563  case $as_dir in #(((
22564    '') as_dir=./ ;;
22565    */) ;;
22566    *) as_dir=$as_dir/ ;;
22567  esac
22568    for ac_exec_ext in '' $ac_executable_extensions; do
22569  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
22570    ac_cv_path_LINT="$as_dir$ac_word$ac_exec_ext"
22571    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
22572    break 2
22573  fi
22574done
22575  done
22576IFS=$as_save_IFS
22577
22578  ;;
22579esac
22580fi
22581LINT=$ac_cv_path_LINT
22582if test -n "$LINT"; then
22583  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
22584printf "%s\n" "$LINT" >&6; }
22585else
22586  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22587printf "%s\n" "no" >&6; }
22588fi
22589
22590
22591   if test "x$LINT" = "x"; then
22592        as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
22593   fi
22594elif test "x$use_lint" = x"no" ; then
22595   if test "x$LINT" != "x"; then
22596      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
22597printf "%s\n" "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
22598   fi
22599else
22600   as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
22601fi
22602
22603# User supplied flags override default flags
22604if test "x$LINT_FLAGS" != "x"; then
22605   lint_options=$LINT_FLAGS
22606fi
22607
22608LINT_FLAGS=$lint_options
22609
22610 if test "x$LINT" != x; then
22611  LINT_TRUE=
22612  LINT_FALSE='#'
22613else
22614  LINT_TRUE='#'
22615  LINT_FALSE=
22616fi
22617
22618
22619
22620
22621
22622# Check whether --enable-lint-library was given.
22623if test ${enable_lint_library+y}
22624then :
22625  enableval=$enable_lint_library; make_lint_lib=$enableval
22626else $as_nop
22627  make_lint_lib=no
22628fi
22629
22630
22631if test "x$make_lint_lib" = x"yes" ; then
22632   LINTLIB=llib-lX11.ln
22633   if test "x$LINT" = "x"; then
22634        as_fn_error $? "Cannot make lint library without --with-lint" "$LINENO" 5
22635   fi
22636elif test "x$make_lint_lib" != x"no" ; then
22637   as_fn_error $? "--enable-lint-library expects 'yes' or 'no'." "$LINENO" 5
22638fi
22639
22640
22641 if test x$make_lint_lib != xno; then
22642  MAKE_LINT_LIB_TRUE=
22643  MAKE_LINT_LIB_FALSE='#'
22644else
22645  MAKE_LINT_LIB_TRUE='#'
22646  MAKE_LINT_LIB_FALSE=
22647fi
22648
22649
22650
22651
22652X11_DATADIR="${datadir}/X11"
22653
22654  prefix_NONE=
22655  exec_prefix_NONE=
22656  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
22657  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
22658  eval ax_define_dir="\"$X11_DATADIR\""
22659  eval ax_define_dir="\"$ax_define_dir\""
22660  X11_DATADIR="$ax_define_dir"
22661
22662
22663printf "%s\n" "#define X11_DATADIR \"$ax_define_dir\"" >>confdefs.h
22664
22665  test "$prefix_NONE" && prefix=NONE
22666  test "$exec_prefix_NONE" && exec_prefix=NONE
22667
22668
22669
22670X11_LIBDIR="${libdir}/X11"
22671
22672  prefix_NONE=
22673  exec_prefix_NONE=
22674  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
22675  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
22676  eval ax_define_dir="\"$X11_LIBDIR\""
22677  eval ax_define_dir="\"$ax_define_dir\""
22678  X11_LIBDIR="$ax_define_dir"
22679
22680
22681printf "%s\n" "#define X11_LIBDIR \"$ax_define_dir\"" >>confdefs.h
22682
22683  test "$prefix_NONE" && prefix=NONE
22684  test "$exec_prefix_NONE" && exec_prefix=NONE
22685
22686
22687
22688
22689pkg_failed=no
22690{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
22691printf %s "checking for X11... " >&6; }
22692
22693if test -n "$X11_CFLAGS"; then
22694    pkg_cv_X11_CFLAGS="$X11_CFLAGS"
22695 elif test -n "$PKG_CONFIG"; then
22696    if test -n "$PKG_CONFIG" && \
22697    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$X11_REQUIRES\""; } >&5
22698  ($PKG_CONFIG --exists --print-errors "$X11_REQUIRES") 2>&5
22699  ac_status=$?
22700  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22701  test $ac_status = 0; }; then
22702  pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "$X11_REQUIRES" 2>/dev/null`
22703		      test "x$?" != "x0" && pkg_failed=yes
22704else
22705  pkg_failed=yes
22706fi
22707 else
22708    pkg_failed=untried
22709fi
22710if test -n "$X11_LIBS"; then
22711    pkg_cv_X11_LIBS="$X11_LIBS"
22712 elif test -n "$PKG_CONFIG"; then
22713    if test -n "$PKG_CONFIG" && \
22714    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$X11_REQUIRES\""; } >&5
22715  ($PKG_CONFIG --exists --print-errors "$X11_REQUIRES") 2>&5
22716  ac_status=$?
22717  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22718  test $ac_status = 0; }; then
22719  pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "$X11_REQUIRES" 2>/dev/null`
22720		      test "x$?" != "x0" && pkg_failed=yes
22721else
22722  pkg_failed=yes
22723fi
22724 else
22725    pkg_failed=untried
22726fi
22727
22728
22729
22730if test $pkg_failed = yes; then
22731   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22732printf "%s\n" "no" >&6; }
22733
22734if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22735        _pkg_short_errors_supported=yes
22736else
22737        _pkg_short_errors_supported=no
22738fi
22739        if test $_pkg_short_errors_supported = yes; then
22740	        X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$X11_REQUIRES" 2>&1`
22741        else
22742	        X11_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$X11_REQUIRES" 2>&1`
22743        fi
22744	# Put the nasty error message in config.log where it belongs
22745	echo "$X11_PKG_ERRORS" >&5
22746
22747	as_fn_error $? "Package requirements ($X11_REQUIRES) were not met:
22748
22749$X11_PKG_ERRORS
22750
22751Consider adjusting the PKG_CONFIG_PATH environment variable if you
22752installed software in a non-standard prefix.
22753
22754Alternatively, you may set the environment variables X11_CFLAGS
22755and X11_LIBS to avoid the need to call pkg-config.
22756See the pkg-config man page for more details." "$LINENO" 5
22757elif test $pkg_failed = untried; then
22758     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22759printf "%s\n" "no" >&6; }
22760	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22761printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22762as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
22763is in your PATH or set the PKG_CONFIG environment variable to the full
22764path to pkg-config.
22765
22766Alternatively, you may set the environment variables X11_CFLAGS
22767and X11_LIBS to avoid the need to call pkg-config.
22768See the pkg-config man page for more details.
22769
22770To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22771See \`config.log' for more details" "$LINENO" 5; }
22772else
22773	X11_CFLAGS=$pkg_cv_X11_CFLAGS
22774	X11_LIBS=$pkg_cv_X11_LIBS
22775        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22776printf "%s\n" "yes" >&6; }
22777
22778fi
22779X11_CFLAGS="$X11_CFLAGS $XTHREAD_CFLAGS"
22780
22781#
22782# Yes, it would be nice to put the locale data in
22783# /usr/share, but the locale stuff includes loadable
22784# libraries which must be located in the same directory
22785# as the other locale data, so for now, everything lives
22786# in ${libdir}
22787#
22788
22789X11_LOCALEDATADIR="${X11_DATADIR}/locale"
22790
22791  prefix_NONE=
22792  exec_prefix_NONE=
22793  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
22794  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
22795  eval ax_define_dir="\"$X11_LOCALEDATADIR\""
22796  eval ax_define_dir="\"$ax_define_dir\""
22797  XLOCALEDATADIR="$ax_define_dir"
22798
22799
22800printf "%s\n" "#define XLOCALEDATADIR \"$ax_define_dir\"" >>confdefs.h
22801
22802  test "$prefix_NONE" && prefix=NONE
22803  test "$exec_prefix_NONE" && exec_prefix=NONE
22804
22805
22806
22807
22808# Check whether --with-locale-lib-dir was given.
22809if test ${with_locale_lib_dir+y}
22810then :
22811  withval=$with_locale_lib_dir;  X11_LOCALELIBDIR="$withval"
22812else $as_nop
22813   X11_LOCALELIBDIR="${X11_LIBDIR}/locale"
22814fi
22815
22816
22817  prefix_NONE=
22818  exec_prefix_NONE=
22819  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
22820  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
22821  eval ax_define_dir="\"$X11_LOCALELIBDIR\""
22822  eval ax_define_dir="\"$ax_define_dir\""
22823  XLOCALELIBDIR="$ax_define_dir"
22824
22825
22826printf "%s\n" "#define XLOCALELIBDIR \"$ax_define_dir\"" >>confdefs.h
22827
22828  test "$prefix_NONE" && prefix=NONE
22829  test "$exec_prefix_NONE" && exec_prefix=NONE
22830
22831
22832
22833X11_LOCALEDIR="${X11_LOCALEDATADIR}"
22834
22835  prefix_NONE=
22836  exec_prefix_NONE=
22837  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
22838  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
22839  eval ax_define_dir="\"$X11_LOCALEDIR\""
22840  eval ax_define_dir="\"$ax_define_dir\""
22841  XLOCALEDIR="$ax_define_dir"
22842
22843
22844printf "%s\n" "#define XLOCALEDIR \"$ax_define_dir\"" >>confdefs.h
22845
22846  test "$prefix_NONE" && prefix=NONE
22847  test "$exec_prefix_NONE" && exec_prefix=NONE
22848
22849
22850
22851locales="\
22852 am_ET.UTF-8  armscii-8   C           cs_CZ.UTF-8  el_GR.UTF-8  en_US.UTF-8 \
22853 fi_FI.UTF-8  georgian-academy        georgian-ps  ibm-cp1133   iscii-dev \
22854 isiri-3342   iso8859-1   iso8859-10  iso8859-11   iso8859-13   iso8859-14 \
22855 iso8859-15   iso8859-2   iso8859-3   iso8859-4    iso8859-5    iso8859-6 \
22856 iso8859-7    iso8859-8   iso8859-9   iso8859-9e   ja           ja.JIS \
22857 ja_JP.UTF-8  ja.SJIS     km_KH.UTF-8 ko           koi8-c       koi8-r \
22858 koi8-u       ko_KR.UTF-8 microsoft-cp1251         microsoft-cp1255 \
22859 microsoft-cp1256         mulelao-1   nokhchi-1    pt_BR.UTF-8  pt_PT.UTF-8 \
22860 ru_RU.UTF-8  sr_RS.UTF-8 tatar-cyr   th_TH        th_TH.UTF-8  tscii-0 \
22861 vi_VN.tcvn   vi_VN.viscii            zh_CN        zh_CN.gb18030 \
22862 zh_CN.gbk    zh_CN.UTF-8 zh_HK.big5  zh_HK.big5hkscs           zh_HK.UTF-8 \
22863 zh_TW        zh_TW.big5  zh_TW.UTF-8"
22864
22865
22866XKEYSYMDB="${X11_DATADIR}/XKeysymDB"
22867
22868  prefix_NONE=
22869  exec_prefix_NONE=
22870  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
22871  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
22872  eval ax_define_dir="\"$XKEYSYMDB\""
22873  eval ax_define_dir="\"$ax_define_dir\""
22874  XKEYSYMDB="$ax_define_dir"
22875
22876
22877printf "%s\n" "#define XKEYSYMDB \"$ax_define_dir\"" >>confdefs.h
22878
22879  test "$prefix_NONE" && prefix=NONE
22880  test "$exec_prefix_NONE" && exec_prefix=NONE
22881
22882
22883XERRORDB="${X11_DATADIR}/XErrorDB"
22884
22885  prefix_NONE=
22886  exec_prefix_NONE=
22887  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
22888  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
22889  eval ax_define_dir="\"$XERRORDB\""
22890  eval ax_define_dir="\"$ax_define_dir\""
22891  XERRORDB="$ax_define_dir"
22892
22893
22894printf "%s\n" "#define XERRORDB \"$ax_define_dir\"" >>confdefs.h
22895
22896  test "$prefix_NONE" && prefix=NONE
22897  test "$exec_prefix_NONE" && exec_prefix=NONE
22898
22899
22900
22901# Check whether --enable-malloc0returnsnull was given.
22902if test ${enable_malloc0returnsnull+y}
22903then :
22904  enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval
22905else $as_nop
22906  MALLOC_ZERO_RETURNS_NULL=auto
22907fi
22908
22909
22910{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5
22911printf %s "checking whether malloc(0) returns NULL... " >&6; }
22912if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
22913if test ${xorg_cv_malloc0_returns_null+y}
22914then :
22915  printf %s "(cached) " >&6
22916else $as_nop
22917  if test "$cross_compiling" = yes
22918then :
22919  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22920printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22921as_fn_error $? "cannot run test program while cross compiling
22922See \`config.log' for more details" "$LINENO" 5; }
22923else $as_nop
22924  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22925/* end confdefs.h.  */
22926
22927#include <stdlib.h>
22928
22929int
22930main (void)
22931{
22932
22933    char *m0, *r0, *c0, *p;
22934    m0 = malloc(0);
22935    p = malloc(10);
22936    r0 = realloc(p,0);
22937    c0 = calloc(0,10);
22938    exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1);
22939
22940  ;
22941  return 0;
22942}
22943_ACEOF
22944if ac_fn_c_try_run "$LINENO"
22945then :
22946  xorg_cv_malloc0_returns_null=yes
22947else $as_nop
22948  xorg_cv_malloc0_returns_null=no
22949fi
22950rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22951  conftest.$ac_objext conftest.beam conftest.$ac_ext
22952fi
22953
22954fi
22955
22956MALLOC_ZERO_RETURNS_NULL=$xorg_cv_malloc0_returns_null
22957fi
22958{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5
22959printf "%s\n" "$MALLOC_ZERO_RETURNS_NULL" >&6; }
22960
22961if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
22962	MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
22963	XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
22964	XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
22965else
22966	MALLOC_ZERO_CFLAGS=""
22967	XMALLOC_ZERO_CFLAGS=""
22968	XTMALLOC_ZERO_CFLAGS=""
22969fi
22970
22971
22972
22973
22974
22975
22976ac_config_files="$ac_config_files Makefile include/Makefile man/Makefile man/xkb/Makefile src/Makefile src/util/Makefile src/xcms/Makefile src/xlibi18n/Makefile modules/Makefile modules/im/Makefile modules/im/ximcp/Makefile modules/lc/Makefile modules/lc/def/Makefile modules/lc/gen/Makefile modules/lc/Utf8/Makefile modules/om/Makefile modules/om/generic/Makefile src/xkb/Makefile nls/Makefile specs/Makefile specs/i18n/Makefile specs/i18n/compose/Makefile specs/i18n/framework/Makefile specs/i18n/localedb/Makefile specs/i18n/trans/Makefile specs/libX11/Makefile specs/XIM/Makefile specs/XKB/Makefile x11.pc x11-xcb.pc"
22977
22978cat >confcache <<\_ACEOF
22979# This file is a shell script that caches the results of configure
22980# tests run on this system so they can be shared between configure
22981# scripts and configure runs, see configure's option --config-cache.
22982# It is not useful on other systems.  If it contains results you don't
22983# want to keep, you may remove or edit it.
22984#
22985# config.status only pays attention to the cache file if you give it
22986# the --recheck option to rerun configure.
22987#
22988# `ac_cv_env_foo' variables (set or unset) will be overridden when
22989# loading this file, other *unset* `ac_cv_foo' will be assigned the
22990# following values.
22991
22992_ACEOF
22993
22994# The following way of writing the cache mishandles newlines in values,
22995# but we know of no workaround that is simple, portable, and efficient.
22996# So, we kill variables containing newlines.
22997# Ultrix sh set writes to stderr and can't be redirected directly,
22998# and sets the high bit in the cache file unless we assign to the vars.
22999(
23000  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23001    eval ac_val=\$$ac_var
23002    case $ac_val in #(
23003    *${as_nl}*)
23004      case $ac_var in #(
23005      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
23006printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
23007      esac
23008      case $ac_var in #(
23009      _ | IFS | as_nl) ;; #(
23010      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
23011      *) { eval $ac_var=; unset $ac_var;} ;;
23012      esac ;;
23013    esac
23014  done
23015
23016  (set) 2>&1 |
23017    case $as_nl`(ac_space=' '; set) 2>&1` in #(
23018    *${as_nl}ac_space=\ *)
23019      # `set' does not quote correctly, so add quotes: double-quote
23020      # substitution turns \\\\ into \\, and sed turns \\ into \.
23021      sed -n \
23022	"s/'/'\\\\''/g;
23023	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23024      ;; #(
23025    *)
23026      # `set' quotes correctly as required by POSIX, so do not add quotes.
23027      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23028      ;;
23029    esac |
23030    sort
23031) |
23032  sed '
23033     /^ac_cv_env_/b end
23034     t clear
23035     :clear
23036     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
23037     t end
23038     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23039     :end' >>confcache
23040if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23041  if test -w "$cache_file"; then
23042    if test "x$cache_file" != "x/dev/null"; then
23043      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
23044printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
23045      if test ! -f "$cache_file" || test -h "$cache_file"; then
23046	cat confcache >"$cache_file"
23047      else
23048        case $cache_file in #(
23049        */* | ?:*)
23050	  mv -f confcache "$cache_file"$$ &&
23051	  mv -f "$cache_file"$$ "$cache_file" ;; #(
23052        *)
23053	  mv -f confcache "$cache_file" ;;
23054	esac
23055      fi
23056    fi
23057  else
23058    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
23059printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
23060  fi
23061fi
23062rm -f confcache
23063
23064test "x$prefix" = xNONE && prefix=$ac_default_prefix
23065# Let make expand exec_prefix.
23066test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23067
23068DEFS=-DHAVE_CONFIG_H
23069
23070ac_libobjs=
23071ac_ltlibobjs=
23072U=
23073for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23074  # 1. Remove the extension, and $U if already installed.
23075  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23076  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
23077  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
23078  #    will be set to the directory where LIBOBJS objects are built.
23079  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23080  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
23081done
23082LIBOBJS=$ac_libobjs
23083
23084LTLIBOBJS=$ac_ltlibobjs
23085
23086
23087{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
23088printf %s "checking that generated files are newer than configure... " >&6; }
23089   if test -n "$am_sleep_pid"; then
23090     # Hide warnings about reused PIDs.
23091     wait $am_sleep_pid 2>/dev/null
23092   fi
23093   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
23094printf "%s\n" "done" >&6; }
23095if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23096  as_fn_error $? "conditional \"AMDEP\" was never defined.
23097Usually this means the macro was only invoked conditionally." "$LINENO" 5
23098fi
23099if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23100  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
23101Usually this means the macro was only invoked conditionally." "$LINENO" 5
23102fi
23103 if test -n "$EXEEXT"; then
23104  am__EXEEXT_TRUE=
23105  am__EXEEXT_FALSE='#'
23106else
23107  am__EXEEXT_TRUE='#'
23108  am__EXEEXT_FALSE=
23109fi
23110
23111if test -z "${ENABLE_SPECS_TRUE}" && test -z "${ENABLE_SPECS_FALSE}"; then
23112  as_fn_error $? "conditional \"ENABLE_SPECS\" was never defined.
23113Usually this means the macro was only invoked conditionally." "$LINENO" 5
23114fi
23115if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then
23116  as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined.
23117Usually this means the macro was only invoked conditionally." "$LINENO" 5
23118fi
23119if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
23120  as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined.
23121Usually this means the macro was only invoked conditionally." "$LINENO" 5
23122fi
23123if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then
23124  as_fn_error $? "conditional \"HAVE_FOP\" was never defined.
23125Usually this means the macro was only invoked conditionally." "$LINENO" 5
23126fi
23127if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then
23128  as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined.
23129Usually this means the macro was only invoked conditionally." "$LINENO" 5
23130fi
23131if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then
23132  as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined.
23133Usually this means the macro was only invoked conditionally." "$LINENO" 5
23134fi
23135if test -z "${HAVE_PERL_TRUE}" && test -z "${HAVE_PERL_FALSE}"; then
23136  as_fn_error $? "conditional \"HAVE_PERL\" was never defined.
23137Usually this means the macro was only invoked conditionally." "$LINENO" 5
23138fi
23139if test -z "${XLIB_LOADABLE_I18N_TRUE}" && test -z "${XLIB_LOADABLE_I18N_FALSE}"; then
23140  as_fn_error $? "conditional \"XLIB_LOADABLE_I18N\" was never defined.
23141Usually this means the macro was only invoked conditionally." "$LINENO" 5
23142fi
23143if test -z "${OS2_TRUE}" && test -z "${OS2_FALSE}"; then
23144  as_fn_error $? "conditional \"OS2\" was never defined.
23145Usually this means the macro was only invoked conditionally." "$LINENO" 5
23146fi
23147if test -z "${THRSTUBS_TRUE}" && test -z "${THRSTUBS_FALSE}"; then
23148  as_fn_error $? "conditional \"THRSTUBS\" was never defined.
23149Usually this means the macro was only invoked conditionally." "$LINENO" 5
23150fi
23151if test -z "${XCMS_TRUE}" && test -z "${XCMS_FALSE}"; then
23152  as_fn_error $? "conditional \"XCMS\" was never defined.
23153Usually this means the macro was only invoked conditionally." "$LINENO" 5
23154fi
23155if test -z "${XLOCALE_TRUE}" && test -z "${XLOCALE_FALSE}"; then
23156  as_fn_error $? "conditional \"XLOCALE\" was never defined.
23157Usually this means the macro was only invoked conditionally." "$LINENO" 5
23158fi
23159if test -z "${XKB_TRUE}" && test -z "${XKB_FALSE}"; then
23160  as_fn_error $? "conditional \"XKB\" was never defined.
23161Usually this means the macro was only invoked conditionally." "$LINENO" 5
23162fi
23163if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
23164  as_fn_error $? "conditional \"LINT\" was never defined.
23165Usually this means the macro was only invoked conditionally." "$LINENO" 5
23166fi
23167if test -z "${MAKE_LINT_LIB_TRUE}" && test -z "${MAKE_LINT_LIB_FALSE}"; then
23168  as_fn_error $? "conditional \"MAKE_LINT_LIB\" was never defined.
23169Usually this means the macro was only invoked conditionally." "$LINENO" 5
23170fi
23171
23172: "${CONFIG_STATUS=./config.status}"
23173ac_write_fail=0
23174ac_clean_files_save=$ac_clean_files
23175ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23176{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
23177printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
23178as_write_fail=0
23179cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
23180#! $SHELL
23181# Generated by $as_me.
23182# Run this file to recreate the current configuration.
23183# Compiler output produced by configure, useful for debugging
23184# configure, is in config.log if it exists.
23185
23186debug=false
23187ac_cs_recheck=false
23188ac_cs_silent=false
23189
23190SHELL=\${CONFIG_SHELL-$SHELL}
23191export SHELL
23192_ASEOF
23193cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
23194## -------------------- ##
23195## M4sh Initialization. ##
23196## -------------------- ##
23197
23198# Be more Bourne compatible
23199DUALCASE=1; export DUALCASE # for MKS sh
23200as_nop=:
23201if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
23202then :
23203  emulate sh
23204  NULLCMD=:
23205  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23206  # is contrary to our usage.  Disable this feature.
23207  alias -g '${1+"$@"}'='"$@"'
23208  setopt NO_GLOB_SUBST
23209else $as_nop
23210  case `(set -o) 2>/dev/null` in #(
23211  *posix*) :
23212    set -o posix ;; #(
23213  *) :
23214     ;;
23215esac
23216fi
23217
23218
23219
23220# Reset variables that may have inherited troublesome values from
23221# the environment.
23222
23223# IFS needs to be set, to space, tab, and newline, in precisely that order.
23224# (If _AS_PATH_WALK were called with IFS unset, it would have the
23225# side effect of setting IFS to empty, thus disabling word splitting.)
23226# Quoting is to prevent editors from complaining about space-tab.
23227as_nl='
23228'
23229export as_nl
23230IFS=" ""	$as_nl"
23231
23232PS1='$ '
23233PS2='> '
23234PS4='+ '
23235
23236# Ensure predictable behavior from utilities with locale-dependent output.
23237LC_ALL=C
23238export LC_ALL
23239LANGUAGE=C
23240export LANGUAGE
23241
23242# We cannot yet rely on "unset" to work, but we need these variables
23243# to be unset--not just set to an empty or harmless value--now, to
23244# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
23245# also avoids known problems related to "unset" and subshell syntax
23246# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
23247for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
23248do eval test \${$as_var+y} \
23249  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
23250done
23251
23252# Ensure that fds 0, 1, and 2 are open.
23253if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
23254if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
23255if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
23256
23257# The user is always right.
23258if ${PATH_SEPARATOR+false} :; then
23259  PATH_SEPARATOR=:
23260  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
23261    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
23262      PATH_SEPARATOR=';'
23263  }
23264fi
23265
23266
23267# Find who we are.  Look in the path if we contain no directory separator.
23268as_myself=
23269case $0 in #((
23270  *[\\/]* ) as_myself=$0 ;;
23271  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23272for as_dir in $PATH
23273do
23274  IFS=$as_save_IFS
23275  case $as_dir in #(((
23276    '') as_dir=./ ;;
23277    */) ;;
23278    *) as_dir=$as_dir/ ;;
23279  esac
23280    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
23281  done
23282IFS=$as_save_IFS
23283
23284     ;;
23285esac
23286# We did not find ourselves, most probably we were run as `sh COMMAND'
23287# in which case we are not to be found in the path.
23288if test "x$as_myself" = x; then
23289  as_myself=$0
23290fi
23291if test ! -f "$as_myself"; then
23292  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23293  exit 1
23294fi
23295
23296
23297
23298# as_fn_error STATUS ERROR [LINENO LOG_FD]
23299# ----------------------------------------
23300# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
23301# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
23302# script with STATUS, using 1 if that was 0.
23303as_fn_error ()
23304{
23305  as_status=$1; test $as_status -eq 0 && as_status=1
23306  if test "$4"; then
23307    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
23308    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
23309  fi
23310  printf "%s\n" "$as_me: error: $2" >&2
23311  as_fn_exit $as_status
23312} # as_fn_error
23313
23314
23315
23316# as_fn_set_status STATUS
23317# -----------------------
23318# Set $? to STATUS, without forking.
23319as_fn_set_status ()
23320{
23321  return $1
23322} # as_fn_set_status
23323
23324# as_fn_exit STATUS
23325# -----------------
23326# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
23327as_fn_exit ()
23328{
23329  set +e
23330  as_fn_set_status $1
23331  exit $1
23332} # as_fn_exit
23333
23334# as_fn_unset VAR
23335# ---------------
23336# Portably unset VAR.
23337as_fn_unset ()
23338{
23339  { eval $1=; unset $1;}
23340}
23341as_unset=as_fn_unset
23342
23343# as_fn_append VAR VALUE
23344# ----------------------
23345# Append the text in VALUE to the end of the definition contained in VAR. Take
23346# advantage of any shell optimizations that allow amortized linear growth over
23347# repeated appends, instead of the typical quadratic growth present in naive
23348# implementations.
23349if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
23350then :
23351  eval 'as_fn_append ()
23352  {
23353    eval $1+=\$2
23354  }'
23355else $as_nop
23356  as_fn_append ()
23357  {
23358    eval $1=\$$1\$2
23359  }
23360fi # as_fn_append
23361
23362# as_fn_arith ARG...
23363# ------------------
23364# Perform arithmetic evaluation on the ARGs, and store the result in the
23365# global $as_val. Take advantage of shells that can avoid forks. The arguments
23366# must be portable across $(()) and expr.
23367if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
23368then :
23369  eval 'as_fn_arith ()
23370  {
23371    as_val=$(( $* ))
23372  }'
23373else $as_nop
23374  as_fn_arith ()
23375  {
23376    as_val=`expr "$@" || test $? -eq 1`
23377  }
23378fi # as_fn_arith
23379
23380
23381if expr a : '\(a\)' >/dev/null 2>&1 &&
23382   test "X`expr 00001 : '.*\(...\)'`" = X001; then
23383  as_expr=expr
23384else
23385  as_expr=false
23386fi
23387
23388if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23389  as_basename=basename
23390else
23391  as_basename=false
23392fi
23393
23394if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23395  as_dirname=dirname
23396else
23397  as_dirname=false
23398fi
23399
23400as_me=`$as_basename -- "$0" ||
23401$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23402	 X"$0" : 'X\(//\)$' \| \
23403	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23404printf "%s\n" X/"$0" |
23405    sed '/^.*\/\([^/][^/]*\)\/*$/{
23406	    s//\1/
23407	    q
23408	  }
23409	  /^X\/\(\/\/\)$/{
23410	    s//\1/
23411	    q
23412	  }
23413	  /^X\/\(\/\).*/{
23414	    s//\1/
23415	    q
23416	  }
23417	  s/.*/./; q'`
23418
23419# Avoid depending upon Character Ranges.
23420as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23421as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23422as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23423as_cr_digits='0123456789'
23424as_cr_alnum=$as_cr_Letters$as_cr_digits
23425
23426
23427# Determine whether it's possible to make 'echo' print without a newline.
23428# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
23429# for compatibility with existing Makefiles.
23430ECHO_C= ECHO_N= ECHO_T=
23431case `echo -n x` in #(((((
23432-n*)
23433  case `echo 'xy\c'` in
23434  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
23435  xy)  ECHO_C='\c';;
23436  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
23437       ECHO_T='	';;
23438  esac;;
23439*)
23440  ECHO_N='-n';;
23441esac
23442
23443# For backward compatibility with old third-party macros, we provide
23444# the shell variables $as_echo and $as_echo_n.  New code should use
23445# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
23446as_echo='printf %s\n'
23447as_echo_n='printf %s'
23448
23449rm -f conf$$ conf$$.exe conf$$.file
23450if test -d conf$$.dir; then
23451  rm -f conf$$.dir/conf$$.file
23452else
23453  rm -f conf$$.dir
23454  mkdir conf$$.dir 2>/dev/null
23455fi
23456if (echo >conf$$.file) 2>/dev/null; then
23457  if ln -s conf$$.file conf$$ 2>/dev/null; then
23458    as_ln_s='ln -s'
23459    # ... but there are two gotchas:
23460    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23461    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23462    # In both cases, we have to default to `cp -pR'.
23463    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23464      as_ln_s='cp -pR'
23465  elif ln conf$$.file conf$$ 2>/dev/null; then
23466    as_ln_s=ln
23467  else
23468    as_ln_s='cp -pR'
23469  fi
23470else
23471  as_ln_s='cp -pR'
23472fi
23473rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23474rmdir conf$$.dir 2>/dev/null
23475
23476
23477# as_fn_mkdir_p
23478# -------------
23479# Create "$as_dir" as a directory, including parents if necessary.
23480as_fn_mkdir_p ()
23481{
23482
23483  case $as_dir in #(
23484  -*) as_dir=./$as_dir;;
23485  esac
23486  test -d "$as_dir" || eval $as_mkdir_p || {
23487    as_dirs=
23488    while :; do
23489      case $as_dir in #(
23490      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23491      *) as_qdir=$as_dir;;
23492      esac
23493      as_dirs="'$as_qdir' $as_dirs"
23494      as_dir=`$as_dirname -- "$as_dir" ||
23495$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23496	 X"$as_dir" : 'X\(//\)[^/]' \| \
23497	 X"$as_dir" : 'X\(//\)$' \| \
23498	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23499printf "%s\n" X"$as_dir" |
23500    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23501	    s//\1/
23502	    q
23503	  }
23504	  /^X\(\/\/\)[^/].*/{
23505	    s//\1/
23506	    q
23507	  }
23508	  /^X\(\/\/\)$/{
23509	    s//\1/
23510	    q
23511	  }
23512	  /^X\(\/\).*/{
23513	    s//\1/
23514	    q
23515	  }
23516	  s/.*/./; q'`
23517      test -d "$as_dir" && break
23518    done
23519    test -z "$as_dirs" || eval "mkdir $as_dirs"
23520  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
23521
23522
23523} # as_fn_mkdir_p
23524if mkdir -p . 2>/dev/null; then
23525  as_mkdir_p='mkdir -p "$as_dir"'
23526else
23527  test -d ./-p && rmdir ./-p
23528  as_mkdir_p=false
23529fi
23530
23531
23532# as_fn_executable_p FILE
23533# -----------------------
23534# Test if FILE is an executable regular file.
23535as_fn_executable_p ()
23536{
23537  test -f "$1" && test -x "$1"
23538} # as_fn_executable_p
23539as_test_x='test -x'
23540as_executable_p=as_fn_executable_p
23541
23542# Sed expression to map a string onto a valid CPP name.
23543as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23544
23545# Sed expression to map a string onto a valid variable name.
23546as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23547
23548
23549exec 6>&1
23550## ----------------------------------- ##
23551## Main body of $CONFIG_STATUS script. ##
23552## ----------------------------------- ##
23553_ASEOF
23554test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
23555
23556cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23557# Save the log message, to keep $0 and so on meaningful, and to
23558# report actual input values of CONFIG_FILES etc. instead of their
23559# values after options handling.
23560ac_log="
23561This file was extended by libX11 $as_me 1.7.2, which was
23562generated by GNU Autoconf 2.71.  Invocation command line was
23563
23564  CONFIG_FILES    = $CONFIG_FILES
23565  CONFIG_HEADERS  = $CONFIG_HEADERS
23566  CONFIG_LINKS    = $CONFIG_LINKS
23567  CONFIG_COMMANDS = $CONFIG_COMMANDS
23568  $ $0 $@
23569
23570on `(hostname || uname -n) 2>/dev/null | sed 1q`
23571"
23572
23573_ACEOF
23574
23575case $ac_config_files in *"
23576"*) set x $ac_config_files; shift; ac_config_files=$*;;
23577esac
23578
23579case $ac_config_headers in *"
23580"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
23581esac
23582
23583
23584cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23585# Files that config.status was made for.
23586config_files="$ac_config_files"
23587config_headers="$ac_config_headers"
23588config_commands="$ac_config_commands"
23589
23590_ACEOF
23591
23592cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23593ac_cs_usage="\
23594\`$as_me' instantiates files and other configuration actions
23595from templates according to the current configuration.  Unless the files
23596and actions are specified as TAGs, all are instantiated by default.
23597
23598Usage: $0 [OPTION]... [TAG]...
23599
23600  -h, --help       print this help, then exit
23601  -V, --version    print version number and configuration settings, then exit
23602      --config     print configuration, then exit
23603  -q, --quiet, --silent
23604                   do not print progress messages
23605  -d, --debug      don't remove temporary files
23606      --recheck    update $as_me by reconfiguring in the same conditions
23607      --file=FILE[:TEMPLATE]
23608                   instantiate the configuration file FILE
23609      --header=FILE[:TEMPLATE]
23610                   instantiate the configuration header FILE
23611
23612Configuration files:
23613$config_files
23614
23615Configuration headers:
23616$config_headers
23617
23618Configuration commands:
23619$config_commands
23620
23621Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libx11/issues>."
23622
23623_ACEOF
23624ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
23625ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
23626cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23627ac_cs_config='$ac_cs_config_escaped'
23628ac_cs_version="\\
23629libX11 config.status 1.7.2
23630configured by $0, generated by GNU Autoconf 2.71,
23631  with options \\"\$ac_cs_config\\"
23632
23633Copyright (C) 2021 Free Software Foundation, Inc.
23634This config.status script is free software; the Free Software Foundation
23635gives unlimited permission to copy, distribute and modify it."
23636
23637ac_pwd='$ac_pwd'
23638srcdir='$srcdir'
23639INSTALL='$INSTALL'
23640MKDIR_P='$MKDIR_P'
23641AWK='$AWK'
23642test -n "\$AWK" || AWK=awk
23643_ACEOF
23644
23645cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23646# The default lists apply if the user does not specify any file.
23647ac_need_defaults=:
23648while test $# != 0
23649do
23650  case $1 in
23651  --*=?*)
23652    ac_option=`expr "X$1" : 'X\([^=]*\)='`
23653    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23654    ac_shift=:
23655    ;;
23656  --*=)
23657    ac_option=`expr "X$1" : 'X\([^=]*\)='`
23658    ac_optarg=
23659    ac_shift=:
23660    ;;
23661  *)
23662    ac_option=$1
23663    ac_optarg=$2
23664    ac_shift=shift
23665    ;;
23666  esac
23667
23668  case $ac_option in
23669  # Handling of the options.
23670  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23671    ac_cs_recheck=: ;;
23672  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23673    printf "%s\n" "$ac_cs_version"; exit ;;
23674  --config | --confi | --conf | --con | --co | --c )
23675    printf "%s\n" "$ac_cs_config"; exit ;;
23676  --debug | --debu | --deb | --de | --d | -d )
23677    debug=: ;;
23678  --file | --fil | --fi | --f )
23679    $ac_shift
23680    case $ac_optarg in
23681    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23682    '') as_fn_error $? "missing file argument" ;;
23683    esac
23684    as_fn_append CONFIG_FILES " '$ac_optarg'"
23685    ac_need_defaults=false;;
23686  --header | --heade | --head | --hea )
23687    $ac_shift
23688    case $ac_optarg in
23689    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23690    esac
23691    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
23692    ac_need_defaults=false;;
23693  --he | --h)
23694    # Conflict between --help and --header
23695    as_fn_error $? "ambiguous option: \`$1'
23696Try \`$0 --help' for more information.";;
23697  --help | --hel | -h )
23698    printf "%s\n" "$ac_cs_usage"; exit ;;
23699  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23700  | -silent | --silent | --silen | --sile | --sil | --si | --s)
23701    ac_cs_silent=: ;;
23702
23703  # This is an error.
23704  -*) as_fn_error $? "unrecognized option: \`$1'
23705Try \`$0 --help' for more information." ;;
23706
23707  *) as_fn_append ac_config_targets " $1"
23708     ac_need_defaults=false ;;
23709
23710  esac
23711  shift
23712done
23713
23714ac_configure_extra_args=
23715
23716if $ac_cs_silent; then
23717  exec 6>/dev/null
23718  ac_configure_extra_args="$ac_configure_extra_args --silent"
23719fi
23720
23721_ACEOF
23722cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23723if \$ac_cs_recheck; then
23724  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23725  shift
23726  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
23727  CONFIG_SHELL='$SHELL'
23728  export CONFIG_SHELL
23729  exec "\$@"
23730fi
23731
23732_ACEOF
23733cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23734exec 5>>config.log
23735{
23736  echo
23737  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23738## Running $as_me. ##
23739_ASBOX
23740  printf "%s\n" "$ac_log"
23741} >&5
23742
23743_ACEOF
23744cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23745#
23746# INIT-COMMANDS
23747#
23748AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
23749
23750
23751# The HP-UX ksh and POSIX shell print the target directory to stdout
23752# if CDPATH is set.
23753(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
23754
23755sed_quote_subst='$sed_quote_subst'
23756double_quote_subst='$double_quote_subst'
23757delay_variable_subst='$delay_variable_subst'
23758macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
23759macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
23760enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
23761enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
23762pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
23763enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
23764shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
23765SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
23766ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
23767PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
23768host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
23769host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
23770host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
23771build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
23772build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
23773build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
23774SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
23775Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
23776GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
23777EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
23778FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
23779LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
23780NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
23781LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
23782max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
23783ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
23784exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
23785lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
23786lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
23787lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
23788lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
23789lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
23790reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
23791reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
23792OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
23793deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
23794file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
23795file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
23796want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
23797DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
23798sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
23799AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
23800AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
23801archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
23802STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
23803RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
23804old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
23805old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
23806old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
23807lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
23808CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
23809CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
23810compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
23811GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
23812lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
23813lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
23814lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
23815lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
23816lt_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"`'
23817lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
23818nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
23819lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
23820lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
23821objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
23822MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
23823lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
23824lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
23825lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
23826lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
23827lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
23828need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
23829MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
23830DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
23831NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
23832LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
23833OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
23834OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
23835libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
23836shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
23837extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
23838archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
23839enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
23840export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
23841whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
23842compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
23843old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
23844old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
23845archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
23846archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
23847module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
23848module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
23849with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
23850allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
23851no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
23852hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
23853hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
23854hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
23855hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
23856hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
23857hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
23858hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
23859inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
23860link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
23861always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
23862export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
23863exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
23864include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
23865prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
23866postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
23867file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
23868variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
23869need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
23870need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
23871version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
23872runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
23873shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
23874shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
23875libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
23876library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
23877soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
23878install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
23879postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
23880postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
23881finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
23882finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
23883hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
23884sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
23885configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
23886configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
23887hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
23888enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
23889enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
23890enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
23891old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
23892striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
23893
23894LTCC='$LTCC'
23895LTCFLAGS='$LTCFLAGS'
23896compiler='$compiler_DEFAULT'
23897
23898# A function that is used when there is no print builtin or printf.
23899func_fallback_echo ()
23900{
23901  eval 'cat <<_LTECHO_EOF
23902\$1
23903_LTECHO_EOF'
23904}
23905
23906# Quote evaled strings.
23907for var in SHELL \
23908ECHO \
23909PATH_SEPARATOR \
23910SED \
23911GREP \
23912EGREP \
23913FGREP \
23914LD \
23915NM \
23916LN_S \
23917lt_SP2NL \
23918lt_NL2SP \
23919reload_flag \
23920OBJDUMP \
23921deplibs_check_method \
23922file_magic_cmd \
23923file_magic_glob \
23924want_nocaseglob \
23925DLLTOOL \
23926sharedlib_from_linklib_cmd \
23927AR \
23928AR_FLAGS \
23929archiver_list_spec \
23930STRIP \
23931RANLIB \
23932CC \
23933CFLAGS \
23934compiler \
23935lt_cv_sys_global_symbol_pipe \
23936lt_cv_sys_global_symbol_to_cdecl \
23937lt_cv_sys_global_symbol_to_import \
23938lt_cv_sys_global_symbol_to_c_name_address \
23939lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
23940lt_cv_nm_interface \
23941nm_file_list_spec \
23942lt_cv_truncate_bin \
23943lt_prog_compiler_no_builtin_flag \
23944lt_prog_compiler_pic \
23945lt_prog_compiler_wl \
23946lt_prog_compiler_static \
23947lt_cv_prog_compiler_c_o \
23948need_locks \
23949MANIFEST_TOOL \
23950DSYMUTIL \
23951NMEDIT \
23952LIPO \
23953OTOOL \
23954OTOOL64 \
23955shrext_cmds \
23956export_dynamic_flag_spec \
23957whole_archive_flag_spec \
23958compiler_needs_object \
23959with_gnu_ld \
23960allow_undefined_flag \
23961no_undefined_flag \
23962hardcode_libdir_flag_spec \
23963hardcode_libdir_separator \
23964exclude_expsyms \
23965include_expsyms \
23966file_list_spec \
23967variables_saved_for_relink \
23968libname_spec \
23969library_names_spec \
23970soname_spec \
23971install_override_mode \
23972finish_eval \
23973old_striplib \
23974striplib; do
23975    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
23976    *[\\\\\\\`\\"\\\$]*)
23977      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
23978      ;;
23979    *)
23980      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23981      ;;
23982    esac
23983done
23984
23985# Double-quote double-evaled strings.
23986for var in reload_cmds \
23987old_postinstall_cmds \
23988old_postuninstall_cmds \
23989old_archive_cmds \
23990extract_expsyms_cmds \
23991old_archive_from_new_cmds \
23992old_archive_from_expsyms_cmds \
23993archive_cmds \
23994archive_expsym_cmds \
23995module_cmds \
23996module_expsym_cmds \
23997export_symbols_cmds \
23998prelink_cmds \
23999postlink_cmds \
24000postinstall_cmds \
24001postuninstall_cmds \
24002finish_cmds \
24003sys_lib_search_path_spec \
24004configure_time_dlsearch_path \
24005configure_time_lt_sys_library_path; do
24006    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
24007    *[\\\\\\\`\\"\\\$]*)
24008      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
24009      ;;
24010    *)
24011      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
24012      ;;
24013    esac
24014done
24015
24016ac_aux_dir='$ac_aux_dir'
24017
24018# See if we are running on zsh, and set the options that allow our
24019# commands through without removal of \ escapes INIT.
24020if test -n "\${ZSH_VERSION+set}"; then
24021   setopt NO_GLOB_SUBST
24022fi
24023
24024
24025    PACKAGE='$PACKAGE'
24026    VERSION='$VERSION'
24027    RM='$RM'
24028    ofile='$ofile'
24029
24030
24031
24032
24033_ACEOF
24034
24035cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24036
24037# Handling of arguments.
24038for ac_config_target in $ac_config_targets
24039do
24040  case $ac_config_target in
24041    "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
24042    "include/X11/XlibConf.h") CONFIG_HEADERS="$CONFIG_HEADERS include/X11/XlibConf.h" ;;
24043    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
24044    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
24045    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24046    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
24047    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
24048    "man/xkb/Makefile") CONFIG_FILES="$CONFIG_FILES man/xkb/Makefile" ;;
24049    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
24050    "src/util/Makefile") CONFIG_FILES="$CONFIG_FILES src/util/Makefile" ;;
24051    "src/xcms/Makefile") CONFIG_FILES="$CONFIG_FILES src/xcms/Makefile" ;;
24052    "src/xlibi18n/Makefile") CONFIG_FILES="$CONFIG_FILES src/xlibi18n/Makefile" ;;
24053    "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
24054    "modules/im/Makefile") CONFIG_FILES="$CONFIG_FILES modules/im/Makefile" ;;
24055    "modules/im/ximcp/Makefile") CONFIG_FILES="$CONFIG_FILES modules/im/ximcp/Makefile" ;;
24056    "modules/lc/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/Makefile" ;;
24057    "modules/lc/def/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/def/Makefile" ;;
24058    "modules/lc/gen/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/gen/Makefile" ;;
24059    "modules/lc/Utf8/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/Utf8/Makefile" ;;
24060    "modules/om/Makefile") CONFIG_FILES="$CONFIG_FILES modules/om/Makefile" ;;
24061    "modules/om/generic/Makefile") CONFIG_FILES="$CONFIG_FILES modules/om/generic/Makefile" ;;
24062    "src/xkb/Makefile") CONFIG_FILES="$CONFIG_FILES src/xkb/Makefile" ;;
24063    "nls/Makefile") CONFIG_FILES="$CONFIG_FILES nls/Makefile" ;;
24064    "specs/Makefile") CONFIG_FILES="$CONFIG_FILES specs/Makefile" ;;
24065    "specs/i18n/Makefile") CONFIG_FILES="$CONFIG_FILES specs/i18n/Makefile" ;;
24066    "specs/i18n/compose/Makefile") CONFIG_FILES="$CONFIG_FILES specs/i18n/compose/Makefile" ;;
24067    "specs/i18n/framework/Makefile") CONFIG_FILES="$CONFIG_FILES specs/i18n/framework/Makefile" ;;
24068    "specs/i18n/localedb/Makefile") CONFIG_FILES="$CONFIG_FILES specs/i18n/localedb/Makefile" ;;
24069    "specs/i18n/trans/Makefile") CONFIG_FILES="$CONFIG_FILES specs/i18n/trans/Makefile" ;;
24070    "specs/libX11/Makefile") CONFIG_FILES="$CONFIG_FILES specs/libX11/Makefile" ;;
24071    "specs/XIM/Makefile") CONFIG_FILES="$CONFIG_FILES specs/XIM/Makefile" ;;
24072    "specs/XKB/Makefile") CONFIG_FILES="$CONFIG_FILES specs/XKB/Makefile" ;;
24073    "x11.pc") CONFIG_FILES="$CONFIG_FILES x11.pc" ;;
24074    "x11-xcb.pc") CONFIG_FILES="$CONFIG_FILES x11-xcb.pc" ;;
24075
24076  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
24077  esac
24078done
24079
24080
24081# If the user did not use the arguments to specify the items to instantiate,
24082# then the envvar interface is used.  Set only those that are not.
24083# We use the long form for the default assignment because of an extremely
24084# bizarre bug on SunOS 4.1.3.
24085if $ac_need_defaults; then
24086  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
24087  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
24088  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
24089fi
24090
24091# Have a temporary directory for convenience.  Make it in the build tree
24092# simply because there is no reason against having it here, and in addition,
24093# creating and moving files from /tmp can sometimes cause problems.
24094# Hook for its removal unless debugging.
24095# Note that there is a small window in which the directory will not be cleaned:
24096# after its creation but before its name has been assigned to `$tmp'.
24097$debug ||
24098{
24099  tmp= ac_tmp=
24100  trap 'exit_status=$?
24101  : "${ac_tmp:=$tmp}"
24102  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
24103' 0
24104  trap 'as_fn_exit 1' 1 2 13 15
24105}
24106# Create a (secure) tmp directory for tmp files.
24107
24108{
24109  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24110  test -d "$tmp"
24111}  ||
24112{
24113  tmp=./conf$$-$RANDOM
24114  (umask 077 && mkdir "$tmp")
24115} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
24116ac_tmp=$tmp
24117
24118# Set up the scripts for CONFIG_FILES section.
24119# No need to generate them if there are no CONFIG_FILES.
24120# This happens for instance with `./config.status config.h'.
24121if test -n "$CONFIG_FILES"; then
24122
24123
24124ac_cr=`echo X | tr X '\015'`
24125# On cygwin, bash can eat \r inside `` if the user requested igncr.
24126# But we know of no other shell where ac_cr would be empty at this
24127# point, so we can use a bashism as a fallback.
24128if test "x$ac_cr" = x; then
24129  eval ac_cr=\$\'\\r\'
24130fi
24131ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
24132if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
24133  ac_cs_awk_cr='\\r'
24134else
24135  ac_cs_awk_cr=$ac_cr
24136fi
24137
24138echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
24139_ACEOF
24140
24141
24142{
24143  echo "cat >conf$$subs.awk <<_ACEOF" &&
24144  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
24145  echo "_ACEOF"
24146} >conf$$subs.sh ||
24147  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24148ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
24149ac_delim='%!_!# '
24150for ac_last_try in false false false false false :; do
24151  . ./conf$$subs.sh ||
24152    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24153
24154  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
24155  if test $ac_delim_n = $ac_delim_num; then
24156    break
24157  elif $ac_last_try; then
24158    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24159  else
24160    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24161  fi
24162done
24163rm -f conf$$subs.sh
24164
24165cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24166cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
24167_ACEOF
24168sed -n '
24169h
24170s/^/S["/; s/!.*/"]=/
24171p
24172g
24173s/^[^!]*!//
24174:repl
24175t repl
24176s/'"$ac_delim"'$//
24177t delim
24178:nl
24179h
24180s/\(.\{148\}\)..*/\1/
24181t more1
24182s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
24183p
24184n
24185b repl
24186:more1
24187s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24188p
24189g
24190s/.\{148\}//
24191t nl
24192:delim
24193h
24194s/\(.\{148\}\)..*/\1/
24195t more2
24196s/["\\]/\\&/g; s/^/"/; s/$/"/
24197p
24198b
24199:more2
24200s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24201p
24202g
24203s/.\{148\}//
24204t delim
24205' <conf$$subs.awk | sed '
24206/^[^""]/{
24207  N
24208  s/\n//
24209}
24210' >>$CONFIG_STATUS || ac_write_fail=1
24211rm -f conf$$subs.awk
24212cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24213_ACAWK
24214cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
24215  for (key in S) S_is_set[key] = 1
24216  FS = ""
24217
24218}
24219{
24220  line = $ 0
24221  nfields = split(line, field, "@")
24222  substed = 0
24223  len = length(field[1])
24224  for (i = 2; i < nfields; i++) {
24225    key = field[i]
24226    keylen = length(key)
24227    if (S_is_set[key]) {
24228      value = S[key]
24229      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
24230      len += length(value) + length(field[++i])
24231      substed = 1
24232    } else
24233      len += 1 + keylen
24234  }
24235
24236  print line
24237}
24238
24239_ACAWK
24240_ACEOF
24241cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24242if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
24243  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
24244else
24245  cat
24246fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
24247  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
24248_ACEOF
24249
24250# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
24251# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
24252# trailing colons and then remove the whole line if VPATH becomes empty
24253# (actually we leave an empty line to preserve line numbers).
24254if test "x$srcdir" = x.; then
24255  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
24256h
24257s///
24258s/^/:/
24259s/[	 ]*$/:/
24260s/:\$(srcdir):/:/g
24261s/:\${srcdir}:/:/g
24262s/:@srcdir@:/:/g
24263s/^:*//
24264s/:*$//
24265x
24266s/\(=[	 ]*\).*/\1/
24267G
24268s/\n//
24269s/^[^=]*=[	 ]*$//
24270}'
24271fi
24272
24273cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24274fi # test -n "$CONFIG_FILES"
24275
24276# Set up the scripts for CONFIG_HEADERS section.
24277# No need to generate them if there are no CONFIG_HEADERS.
24278# This happens for instance with `./config.status Makefile'.
24279if test -n "$CONFIG_HEADERS"; then
24280cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
24281BEGIN {
24282_ACEOF
24283
24284# Transform confdefs.h into an awk script `defines.awk', embedded as
24285# here-document in config.status, that substitutes the proper values into
24286# config.h.in to produce config.h.
24287
24288# Create a delimiter string that does not exist in confdefs.h, to ease
24289# handling of long lines.
24290ac_delim='%!_!# '
24291for ac_last_try in false false :; do
24292  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
24293  if test -z "$ac_tt"; then
24294    break
24295  elif $ac_last_try; then
24296    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
24297  else
24298    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24299  fi
24300done
24301
24302# For the awk script, D is an array of macro values keyed by name,
24303# likewise P contains macro parameters if any.  Preserve backslash
24304# newline sequences.
24305
24306ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24307sed -n '
24308s/.\{148\}/&'"$ac_delim"'/g
24309t rset
24310:rset
24311s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
24312t def
24313d
24314:def
24315s/\\$//
24316t bsnl
24317s/["\\]/\\&/g
24318s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
24319D["\1"]=" \3"/p
24320s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
24321d
24322:bsnl
24323s/["\\]/\\&/g
24324s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
24325D["\1"]=" \3\\\\\\n"\\/p
24326t cont
24327s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
24328t cont
24329d
24330:cont
24331n
24332s/.\{148\}/&'"$ac_delim"'/g
24333t clear
24334:clear
24335s/\\$//
24336t bsnlc
24337s/["\\]/\\&/g; s/^/"/; s/$/"/p
24338d
24339:bsnlc
24340s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
24341b cont
24342' <confdefs.h | sed '
24343s/'"$ac_delim"'/"\\\
24344"/g' >>$CONFIG_STATUS || ac_write_fail=1
24345
24346cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24347  for (key in D) D_is_set[key] = 1
24348  FS = ""
24349}
24350/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
24351  line = \$ 0
24352  split(line, arg, " ")
24353  if (arg[1] == "#") {
24354    defundef = arg[2]
24355    mac1 = arg[3]
24356  } else {
24357    defundef = substr(arg[1], 2)
24358    mac1 = arg[2]
24359  }
24360  split(mac1, mac2, "(") #)
24361  macro = mac2[1]
24362  prefix = substr(line, 1, index(line, defundef) - 1)
24363  if (D_is_set[macro]) {
24364    # Preserve the white space surrounding the "#".
24365    print prefix "define", macro P[macro] D[macro]
24366    next
24367  } else {
24368    # Replace #undef with comments.  This is necessary, for example,
24369    # in the case of _POSIX_SOURCE, which is predefined and required
24370    # on some systems where configure will not decide to define it.
24371    if (defundef == "undef") {
24372      print "/*", prefix defundef, macro, "*/"
24373      next
24374    }
24375  }
24376}
24377{ print }
24378_ACAWK
24379_ACEOF
24380cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24381  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
24382fi # test -n "$CONFIG_HEADERS"
24383
24384
24385eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
24386shift
24387for ac_tag
24388do
24389  case $ac_tag in
24390  :[FHLC]) ac_mode=$ac_tag; continue;;
24391  esac
24392  case $ac_mode$ac_tag in
24393  :[FHL]*:*);;
24394  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
24395  :[FH]-) ac_tag=-:-;;
24396  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24397  esac
24398  ac_save_IFS=$IFS
24399  IFS=:
24400  set x $ac_tag
24401  IFS=$ac_save_IFS
24402  shift
24403  ac_file=$1
24404  shift
24405
24406  case $ac_mode in
24407  :L) ac_source=$1;;
24408  :[FH])
24409    ac_file_inputs=
24410    for ac_f
24411    do
24412      case $ac_f in
24413      -) ac_f="$ac_tmp/stdin";;
24414      *) # Look for the file first in the build tree, then in the source tree
24415	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
24416	 # because $ac_f cannot contain `:'.
24417	 test -f "$ac_f" ||
24418	   case $ac_f in
24419	   [\\/$]*) false;;
24420	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24421	   esac ||
24422	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
24423      esac
24424      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
24425      as_fn_append ac_file_inputs " '$ac_f'"
24426    done
24427
24428    # Let's still pretend it is `configure' which instantiates (i.e., don't
24429    # use $as_me), people would be surprised to read:
24430    #    /* config.h.  Generated by config.status.  */
24431    configure_input='Generated from '`
24432	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
24433	`' by configure.'
24434    if test x"$ac_file" != x-; then
24435      configure_input="$ac_file.  $configure_input"
24436      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
24437printf "%s\n" "$as_me: creating $ac_file" >&6;}
24438    fi
24439    # Neutralize special characters interpreted by sed in replacement strings.
24440    case $configure_input in #(
24441    *\&* | *\|* | *\\* )
24442       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
24443       sed 's/[\\\\&|]/\\\\&/g'`;; #(
24444    *) ac_sed_conf_input=$configure_input;;
24445    esac
24446
24447    case $ac_tag in
24448    *:-:* | *:-) cat >"$ac_tmp/stdin" \
24449      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
24450    esac
24451    ;;
24452  esac
24453
24454  ac_dir=`$as_dirname -- "$ac_file" ||
24455$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24456	 X"$ac_file" : 'X\(//\)[^/]' \| \
24457	 X"$ac_file" : 'X\(//\)$' \| \
24458	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24459printf "%s\n" X"$ac_file" |
24460    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24461	    s//\1/
24462	    q
24463	  }
24464	  /^X\(\/\/\)[^/].*/{
24465	    s//\1/
24466	    q
24467	  }
24468	  /^X\(\/\/\)$/{
24469	    s//\1/
24470	    q
24471	  }
24472	  /^X\(\/\).*/{
24473	    s//\1/
24474	    q
24475	  }
24476	  s/.*/./; q'`
24477  as_dir="$ac_dir"; as_fn_mkdir_p
24478  ac_builddir=.
24479
24480case "$ac_dir" in
24481.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24482*)
24483  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
24484  # A ".." for each directory in $ac_dir_suffix.
24485  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
24486  case $ac_top_builddir_sub in
24487  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24488  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24489  esac ;;
24490esac
24491ac_abs_top_builddir=$ac_pwd
24492ac_abs_builddir=$ac_pwd$ac_dir_suffix
24493# for backward compatibility:
24494ac_top_builddir=$ac_top_build_prefix
24495
24496case $srcdir in
24497  .)  # We are building in place.
24498    ac_srcdir=.
24499    ac_top_srcdir=$ac_top_builddir_sub
24500    ac_abs_top_srcdir=$ac_pwd ;;
24501  [\\/]* | ?:[\\/]* )  # Absolute name.
24502    ac_srcdir=$srcdir$ac_dir_suffix;
24503    ac_top_srcdir=$srcdir
24504    ac_abs_top_srcdir=$srcdir ;;
24505  *) # Relative name.
24506    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24507    ac_top_srcdir=$ac_top_build_prefix$srcdir
24508    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24509esac
24510ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24511
24512
24513  case $ac_mode in
24514  :F)
24515  #
24516  # CONFIG_FILE
24517  #
24518
24519  case $INSTALL in
24520  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24521  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24522  esac
24523  ac_MKDIR_P=$MKDIR_P
24524  case $MKDIR_P in
24525  [\\/$]* | ?:[\\/]* ) ;;
24526  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
24527  esac
24528_ACEOF
24529
24530cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24531# If the template does not know about datarootdir, expand it.
24532# FIXME: This hack should be removed a few years after 2.60.
24533ac_datarootdir_hack=; ac_datarootdir_seen=
24534ac_sed_dataroot='
24535/datarootdir/ {
24536  p
24537  q
24538}
24539/@datadir@/p
24540/@docdir@/p
24541/@infodir@/p
24542/@localedir@/p
24543/@mandir@/p'
24544case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
24545*datarootdir*) ac_datarootdir_seen=yes;;
24546*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24547  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24548printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24549_ACEOF
24550cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24551  ac_datarootdir_hack='
24552  s&@datadir@&$datadir&g
24553  s&@docdir@&$docdir&g
24554  s&@infodir@&$infodir&g
24555  s&@localedir@&$localedir&g
24556  s&@mandir@&$mandir&g
24557  s&\\\${datarootdir}&$datarootdir&g' ;;
24558esac
24559_ACEOF
24560
24561# Neutralize VPATH when `$srcdir' = `.'.
24562# Shell code in configure.ac might set extrasub.
24563# FIXME: do we really want to maintain this feature?
24564cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24565ac_sed_extra="$ac_vpsub
24566$extrasub
24567_ACEOF
24568cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24569:t
24570/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24571s|@configure_input@|$ac_sed_conf_input|;t t
24572s&@top_builddir@&$ac_top_builddir_sub&;t t
24573s&@top_build_prefix@&$ac_top_build_prefix&;t t
24574s&@srcdir@&$ac_srcdir&;t t
24575s&@abs_srcdir@&$ac_abs_srcdir&;t t
24576s&@top_srcdir@&$ac_top_srcdir&;t t
24577s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24578s&@builddir@&$ac_builddir&;t t
24579s&@abs_builddir@&$ac_abs_builddir&;t t
24580s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24581s&@INSTALL@&$ac_INSTALL&;t t
24582s&@MKDIR_P@&$ac_MKDIR_P&;t t
24583$ac_datarootdir_hack
24584"
24585eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
24586  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24587
24588test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24589  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
24590  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
24591      "$ac_tmp/out"`; test -z "$ac_out"; } &&
24592  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24593which seems to be undefined.  Please make sure it is defined" >&5
24594printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24595which seems to be undefined.  Please make sure it is defined" >&2;}
24596
24597  rm -f "$ac_tmp/stdin"
24598  case $ac_file in
24599  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
24600  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
24601  esac \
24602  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24603 ;;
24604  :H)
24605  #
24606  # CONFIG_HEADER
24607  #
24608  if test x"$ac_file" != x-; then
24609    {
24610      printf "%s\n" "/* $configure_input  */" >&1 \
24611      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
24612    } >"$ac_tmp/config.h" \
24613      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24614    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
24615      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
24616printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
24617    else
24618      rm -f "$ac_file"
24619      mv "$ac_tmp/config.h" "$ac_file" \
24620	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
24621    fi
24622  else
24623    printf "%s\n" "/* $configure_input  */" >&1 \
24624      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
24625      || as_fn_error $? "could not create -" "$LINENO" 5
24626  fi
24627# Compute "$ac_file"'s index in $config_headers.
24628_am_arg="$ac_file"
24629_am_stamp_count=1
24630for _am_header in $config_headers :; do
24631  case $_am_header in
24632    $_am_arg | $_am_arg:* )
24633      break ;;
24634    * )
24635      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24636  esac
24637done
24638echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
24639$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24640	 X"$_am_arg" : 'X\(//\)[^/]' \| \
24641	 X"$_am_arg" : 'X\(//\)$' \| \
24642	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
24643printf "%s\n" X"$_am_arg" |
24644    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24645	    s//\1/
24646	    q
24647	  }
24648	  /^X\(\/\/\)[^/].*/{
24649	    s//\1/
24650	    q
24651	  }
24652	  /^X\(\/\/\)$/{
24653	    s//\1/
24654	    q
24655	  }
24656	  /^X\(\/\).*/{
24657	    s//\1/
24658	    q
24659	  }
24660	  s/.*/./; q'`/stamp-h$_am_stamp_count
24661 ;;
24662
24663  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
24664printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
24665 ;;
24666  esac
24667
24668
24669  case $ac_file$ac_mode in
24670    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
24671  # Older Autoconf quotes --file arguments for eval, but not when files
24672  # are listed without --file.  Let's play safe and only enable the eval
24673  # if we detect the quoting.
24674  # TODO: see whether this extra hack can be removed once we start
24675  # requiring Autoconf 2.70 or later.
24676  case $CONFIG_FILES in #(
24677  *\'*) :
24678    eval set x "$CONFIG_FILES" ;; #(
24679  *) :
24680    set x $CONFIG_FILES ;; #(
24681  *) :
24682     ;;
24683esac
24684  shift
24685  # Used to flag and report bootstrapping failures.
24686  am_rc=0
24687  for am_mf
24688  do
24689    # Strip MF so we end up with the name of the file.
24690    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
24691    # Check whether this is an Automake generated Makefile which includes
24692    # dependency-tracking related rules and includes.
24693    # Grep'ing the whole file directly is not great: AIX grep has a line
24694    # limit of 2048, but all sed's we know have understand at least 4000.
24695    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
24696      || continue
24697    am_dirpart=`$as_dirname -- "$am_mf" ||
24698$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24699	 X"$am_mf" : 'X\(//\)[^/]' \| \
24700	 X"$am_mf" : 'X\(//\)$' \| \
24701	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
24702printf "%s\n" X"$am_mf" |
24703    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24704	    s//\1/
24705	    q
24706	  }
24707	  /^X\(\/\/\)[^/].*/{
24708	    s//\1/
24709	    q
24710	  }
24711	  /^X\(\/\/\)$/{
24712	    s//\1/
24713	    q
24714	  }
24715	  /^X\(\/\).*/{
24716	    s//\1/
24717	    q
24718	  }
24719	  s/.*/./; q'`
24720    am_filepart=`$as_basename -- "$am_mf" ||
24721$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
24722	 X"$am_mf" : 'X\(//\)$' \| \
24723	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
24724printf "%s\n" X/"$am_mf" |
24725    sed '/^.*\/\([^/][^/]*\)\/*$/{
24726	    s//\1/
24727	    q
24728	  }
24729	  /^X\/\(\/\/\)$/{
24730	    s//\1/
24731	    q
24732	  }
24733	  /^X\/\(\/\).*/{
24734	    s//\1/
24735	    q
24736	  }
24737	  s/.*/./; q'`
24738    { echo "$as_me:$LINENO: cd "$am_dirpart" \
24739      && sed -e '/# am--include-marker/d' "$am_filepart" \
24740        | $MAKE -f - am--depfiles" >&5
24741   (cd "$am_dirpart" \
24742      && sed -e '/# am--include-marker/d' "$am_filepart" \
24743        | $MAKE -f - am--depfiles) >&5 2>&5
24744   ac_status=$?
24745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24746   (exit $ac_status); } || am_rc=$?
24747  done
24748  if test $am_rc -ne 0; then
24749    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24750printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
24751as_fn_error $? "Something went wrong bootstrapping makefile fragments
24752    for automatic dependency tracking.  If GNU make was not used, consider
24753    re-running the configure script with MAKE=\"gmake\" (or whatever is
24754    necessary).  You can also try re-running configure with the
24755    '--disable-dependency-tracking' option to at least be able to build
24756    the package (albeit without support for automatic dependency tracking).
24757See \`config.log' for more details" "$LINENO" 5; }
24758  fi
24759  { am_dirpart=; unset am_dirpart;}
24760  { am_filepart=; unset am_filepart;}
24761  { am_mf=; unset am_mf;}
24762  { am_rc=; unset am_rc;}
24763  rm -f conftest-deps.mk
24764}
24765 ;;
24766    "libtool":C)
24767
24768    # See if we are running on zsh, and set the options that allow our
24769    # commands through without removal of \ escapes.
24770    if test -n "${ZSH_VERSION+set}"; then
24771      setopt NO_GLOB_SUBST
24772    fi
24773
24774    cfgfile=${ofile}T
24775    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
24776    $RM "$cfgfile"
24777
24778    cat <<_LT_EOF >> "$cfgfile"
24779#! $SHELL
24780# Generated automatically by $as_me ($PACKAGE) $VERSION
24781# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24782# NOTE: Changes made to this file will be lost: look at ltmain.sh.
24783
24784# Provide generalized library-building support services.
24785# Written by Gordon Matzigkeit, 1996
24786
24787# Copyright (C) 2014 Free Software Foundation, Inc.
24788# This is free software; see the source for copying conditions.  There is NO
24789# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
24790
24791# GNU Libtool is free software; you can redistribute it and/or modify
24792# it under the terms of the GNU General Public License as published by
24793# the Free Software Foundation; either version 2 of of the License, or
24794# (at your option) any later version.
24795#
24796# As a special exception to the GNU General Public License, if you
24797# distribute this file as part of a program or library that is built
24798# using GNU Libtool, you may include this file under the  same
24799# distribution terms that you use for the rest of that program.
24800#
24801# GNU Libtool is distributed in the hope that it will be useful, but
24802# WITHOUT ANY WARRANTY; without even the implied warranty of
24803# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
24804# GNU General Public License for more details.
24805#
24806# You should have received a copy of the GNU General Public License
24807# along with this program.  If not, see <http://www.gnu.org/licenses/>.
24808
24809
24810# The names of the tagged configurations supported by this script.
24811available_tags=''
24812
24813# Configured defaults for sys_lib_dlsearch_path munging.
24814: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
24815
24816# ### BEGIN LIBTOOL CONFIG
24817
24818# Which release of libtool.m4 was used?
24819macro_version=$macro_version
24820macro_revision=$macro_revision
24821
24822# Whether or not to build shared libraries.
24823build_libtool_libs=$enable_shared
24824
24825# Whether or not to build static libraries.
24826build_old_libs=$enable_static
24827
24828# What type of objects to build.
24829pic_mode=$pic_mode
24830
24831# Whether or not to optimize for fast installation.
24832fast_install=$enable_fast_install
24833
24834# Shared archive member basename,for filename based shared library versioning on AIX.
24835shared_archive_member_spec=$shared_archive_member_spec
24836
24837# Shell to use when invoking shell scripts.
24838SHELL=$lt_SHELL
24839
24840# An echo program that protects backslashes.
24841ECHO=$lt_ECHO
24842
24843# The PATH separator for the build system.
24844PATH_SEPARATOR=$lt_PATH_SEPARATOR
24845
24846# The host system.
24847host_alias=$host_alias
24848host=$host
24849host_os=$host_os
24850
24851# The build system.
24852build_alias=$build_alias
24853build=$build
24854build_os=$build_os
24855
24856# A sed program that does not truncate output.
24857SED=$lt_SED
24858
24859# Sed that helps us avoid accidentally triggering echo(1) options like -n.
24860Xsed="\$SED -e 1s/^X//"
24861
24862# A grep program that handles long lines.
24863GREP=$lt_GREP
24864
24865# An ERE matcher.
24866EGREP=$lt_EGREP
24867
24868# A literal string matcher.
24869FGREP=$lt_FGREP
24870
24871# A BSD- or MS-compatible name lister.
24872NM=$lt_NM
24873
24874# Whether we need soft or hard links.
24875LN_S=$lt_LN_S
24876
24877# What is the maximum length of a command?
24878max_cmd_len=$max_cmd_len
24879
24880# Object file suffix (normally "o").
24881objext=$ac_objext
24882
24883# Executable file suffix (normally "").
24884exeext=$exeext
24885
24886# whether the shell understands "unset".
24887lt_unset=$lt_unset
24888
24889# turn spaces into newlines.
24890SP2NL=$lt_lt_SP2NL
24891
24892# turn newlines into spaces.
24893NL2SP=$lt_lt_NL2SP
24894
24895# convert \$build file names to \$host format.
24896to_host_file_cmd=$lt_cv_to_host_file_cmd
24897
24898# convert \$build files to toolchain format.
24899to_tool_file_cmd=$lt_cv_to_tool_file_cmd
24900
24901# An object symbol dumper.
24902OBJDUMP=$lt_OBJDUMP
24903
24904# Method to check whether dependent libraries are shared objects.
24905deplibs_check_method=$lt_deplibs_check_method
24906
24907# Command to use when deplibs_check_method = "file_magic".
24908file_magic_cmd=$lt_file_magic_cmd
24909
24910# How to find potential files when deplibs_check_method = "file_magic".
24911file_magic_glob=$lt_file_magic_glob
24912
24913# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
24914want_nocaseglob=$lt_want_nocaseglob
24915
24916# DLL creation program.
24917DLLTOOL=$lt_DLLTOOL
24918
24919# Command to associate shared and link libraries.
24920sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
24921
24922# The archiver.
24923AR=$lt_AR
24924
24925# Flags to create an archive.
24926AR_FLAGS=$lt_AR_FLAGS
24927
24928# How to feed a file listing to the archiver.
24929archiver_list_spec=$lt_archiver_list_spec
24930
24931# A symbol stripping program.
24932STRIP=$lt_STRIP
24933
24934# Commands used to install an old-style archive.
24935RANLIB=$lt_RANLIB
24936old_postinstall_cmds=$lt_old_postinstall_cmds
24937old_postuninstall_cmds=$lt_old_postuninstall_cmds
24938
24939# Whether to use a lock for old archive extraction.
24940lock_old_archive_extraction=$lock_old_archive_extraction
24941
24942# A C compiler.
24943LTCC=$lt_CC
24944
24945# LTCC compiler flags.
24946LTCFLAGS=$lt_CFLAGS
24947
24948# Take the output of nm and produce a listing of raw symbols and C names.
24949global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24950
24951# Transform the output of nm in a proper C declaration.
24952global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24953
24954# Transform the output of nm into a list of symbols to manually relocate.
24955global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
24956
24957# Transform the output of nm in a C name address pair.
24958global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24959
24960# Transform the output of nm in a C name address pair when lib prefix is needed.
24961global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
24962
24963# The name lister interface.
24964nm_interface=$lt_lt_cv_nm_interface
24965
24966# Specify filename containing input files for \$NM.
24967nm_file_list_spec=$lt_nm_file_list_spec
24968
24969# The root where to search for dependent libraries,and where our libraries should be installed.
24970lt_sysroot=$lt_sysroot
24971
24972# Command to truncate a binary pipe.
24973lt_truncate_bin=$lt_lt_cv_truncate_bin
24974
24975# The name of the directory that contains temporary libtool files.
24976objdir=$objdir
24977
24978# Used to examine libraries when file_magic_cmd begins with "file".
24979MAGIC_CMD=$MAGIC_CMD
24980
24981# Must we lock files when doing compilation?
24982need_locks=$lt_need_locks
24983
24984# Manifest tool.
24985MANIFEST_TOOL=$lt_MANIFEST_TOOL
24986
24987# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
24988DSYMUTIL=$lt_DSYMUTIL
24989
24990# Tool to change global to local symbols on Mac OS X.
24991NMEDIT=$lt_NMEDIT
24992
24993# Tool to manipulate fat objects and archives on Mac OS X.
24994LIPO=$lt_LIPO
24995
24996# ldd/readelf like tool for Mach-O binaries on Mac OS X.
24997OTOOL=$lt_OTOOL
24998
24999# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
25000OTOOL64=$lt_OTOOL64
25001
25002# Old archive suffix (normally "a").
25003libext=$libext
25004
25005# Shared library suffix (normally ".so").
25006shrext_cmds=$lt_shrext_cmds
25007
25008# The commands to extract the exported symbol list from a shared archive.
25009extract_expsyms_cmds=$lt_extract_expsyms_cmds
25010
25011# Variables whose values should be saved in libtool wrapper scripts and
25012# restored at link time.
25013variables_saved_for_relink=$lt_variables_saved_for_relink
25014
25015# Do we need the "lib" prefix for modules?
25016need_lib_prefix=$need_lib_prefix
25017
25018# Do we need a version for libraries?
25019need_version=$need_version
25020
25021# Library versioning type.
25022version_type=$version_type
25023
25024# Shared library runtime path variable.
25025runpath_var=$runpath_var
25026
25027# Shared library path variable.
25028shlibpath_var=$shlibpath_var
25029
25030# Is shlibpath searched before the hard-coded library search path?
25031shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25032
25033# Format of library name prefix.
25034libname_spec=$lt_libname_spec
25035
25036# List of archive names.  First name is the real one, the rest are links.
25037# The last name is the one that the linker finds with -lNAME
25038library_names_spec=$lt_library_names_spec
25039
25040# The coded name of the library, if different from the real name.
25041soname_spec=$lt_soname_spec
25042
25043# Permission mode override for installation of shared libraries.
25044install_override_mode=$lt_install_override_mode
25045
25046# Command to use after installation of a shared archive.
25047postinstall_cmds=$lt_postinstall_cmds
25048
25049# Command to use after uninstallation of a shared archive.
25050postuninstall_cmds=$lt_postuninstall_cmds
25051
25052# Commands used to finish a libtool library installation in a directory.
25053finish_cmds=$lt_finish_cmds
25054
25055# As "finish_cmds", except a single script fragment to be evaled but
25056# not shown.
25057finish_eval=$lt_finish_eval
25058
25059# Whether we should hardcode library paths into libraries.
25060hardcode_into_libs=$hardcode_into_libs
25061
25062# Compile-time system search path for libraries.
25063sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25064
25065# Detected run-time system search path for libraries.
25066sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
25067
25068# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
25069configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
25070
25071# Whether dlopen is supported.
25072dlopen_support=$enable_dlopen
25073
25074# Whether dlopen of programs is supported.
25075dlopen_self=$enable_dlopen_self
25076
25077# Whether dlopen of statically linked programs is supported.
25078dlopen_self_static=$enable_dlopen_self_static
25079
25080# Commands to strip libraries.
25081old_striplib=$lt_old_striplib
25082striplib=$lt_striplib
25083
25084
25085# The linker used to build libraries.
25086LD=$lt_LD
25087
25088# How to create reloadable object files.
25089reload_flag=$lt_reload_flag
25090reload_cmds=$lt_reload_cmds
25091
25092# Commands used to build an old-style archive.
25093old_archive_cmds=$lt_old_archive_cmds
25094
25095# A language specific compiler.
25096CC=$lt_compiler
25097
25098# Is the compiler the GNU compiler?
25099with_gcc=$GCC
25100
25101# Compiler flag to turn off builtin functions.
25102no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
25103
25104# Additional compiler flags for building library objects.
25105pic_flag=$lt_lt_prog_compiler_pic
25106
25107# How to pass a linker flag through the compiler.
25108wl=$lt_lt_prog_compiler_wl
25109
25110# Compiler flag to prevent dynamic linking.
25111link_static_flag=$lt_lt_prog_compiler_static
25112
25113# Does compiler simultaneously support -c and -o options?
25114compiler_c_o=$lt_lt_cv_prog_compiler_c_o
25115
25116# Whether or not to add -lc for building shared libraries.
25117build_libtool_need_lc=$archive_cmds_need_lc
25118
25119# Whether or not to disallow shared libs when runtime libs are static.
25120allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
25121
25122# Compiler flag to allow reflexive dlopens.
25123export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
25124
25125# Compiler flag to generate shared objects directly from archives.
25126whole_archive_flag_spec=$lt_whole_archive_flag_spec
25127
25128# Whether the compiler copes with passing no objects directly.
25129compiler_needs_object=$lt_compiler_needs_object
25130
25131# Create an old-style archive from a shared archive.
25132old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
25133
25134# Create a temporary old-style archive to link instead of a shared archive.
25135old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
25136
25137# Commands used to build a shared archive.
25138archive_cmds=$lt_archive_cmds
25139archive_expsym_cmds=$lt_archive_expsym_cmds
25140
25141# Commands used to build a loadable module if different from building
25142# a shared archive.
25143module_cmds=$lt_module_cmds
25144module_expsym_cmds=$lt_module_expsym_cmds
25145
25146# Whether we are building with GNU ld or not.
25147with_gnu_ld=$lt_with_gnu_ld
25148
25149# Flag that allows shared libraries with undefined symbols to be built.
25150allow_undefined_flag=$lt_allow_undefined_flag
25151
25152# Flag that enforces no undefined symbols.
25153no_undefined_flag=$lt_no_undefined_flag
25154
25155# Flag to hardcode \$libdir into a binary during linking.
25156# This must work even if \$libdir does not exist
25157hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
25158
25159# Whether we need a single "-rpath" flag with a separated argument.
25160hardcode_libdir_separator=$lt_hardcode_libdir_separator
25161
25162# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
25163# DIR into the resulting binary.
25164hardcode_direct=$hardcode_direct
25165
25166# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
25167# DIR into the resulting binary and the resulting library dependency is
25168# "absolute",i.e impossible to change by setting \$shlibpath_var if the
25169# library is relocated.
25170hardcode_direct_absolute=$hardcode_direct_absolute
25171
25172# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
25173# into the resulting binary.
25174hardcode_minus_L=$hardcode_minus_L
25175
25176# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
25177# into the resulting binary.
25178hardcode_shlibpath_var=$hardcode_shlibpath_var
25179
25180# Set to "yes" if building a shared library automatically hardcodes DIR
25181# into the library and all subsequent libraries and executables linked
25182# against it.
25183hardcode_automatic=$hardcode_automatic
25184
25185# Set to yes if linker adds runtime paths of dependent libraries
25186# to runtime path list.
25187inherit_rpath=$inherit_rpath
25188
25189# Whether libtool must link a program against all its dependency libraries.
25190link_all_deplibs=$link_all_deplibs
25191
25192# Set to "yes" if exported symbols are required.
25193always_export_symbols=$always_export_symbols
25194
25195# The commands to list exported symbols.
25196export_symbols_cmds=$lt_export_symbols_cmds
25197
25198# Symbols that should not be listed in the preloaded symbols.
25199exclude_expsyms=$lt_exclude_expsyms
25200
25201# Symbols that must always be exported.
25202include_expsyms=$lt_include_expsyms
25203
25204# Commands necessary for linking programs (against libraries) with templates.
25205prelink_cmds=$lt_prelink_cmds
25206
25207# Commands necessary for finishing linking programs.
25208postlink_cmds=$lt_postlink_cmds
25209
25210# Specify filename containing input files.
25211file_list_spec=$lt_file_list_spec
25212
25213# How to hardcode a shared library path into an executable.
25214hardcode_action=$hardcode_action
25215
25216# ### END LIBTOOL CONFIG
25217
25218_LT_EOF
25219
25220    cat <<'_LT_EOF' >> "$cfgfile"
25221
25222# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
25223
25224# func_munge_path_list VARIABLE PATH
25225# -----------------------------------
25226# VARIABLE is name of variable containing _space_ separated list of
25227# directories to be munged by the contents of PATH, which is string
25228# having a format:
25229# "DIR[:DIR]:"
25230#       string "DIR[ DIR]" will be prepended to VARIABLE
25231# ":DIR[:DIR]"
25232#       string "DIR[ DIR]" will be appended to VARIABLE
25233# "DIRP[:DIRP]::[DIRA:]DIRA"
25234#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
25235#       "DIRA[ DIRA]" will be appended to VARIABLE
25236# "DIR[:DIR]"
25237#       VARIABLE will be replaced by "DIR[ DIR]"
25238func_munge_path_list ()
25239{
25240    case x$2 in
25241    x)
25242        ;;
25243    *:)
25244        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
25245        ;;
25246    x:*)
25247        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
25248        ;;
25249    *::*)
25250        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
25251        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
25252        ;;
25253    *)
25254        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
25255        ;;
25256    esac
25257}
25258
25259
25260# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
25261func_cc_basename ()
25262{
25263    for cc_temp in $*""; do
25264      case $cc_temp in
25265        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
25266        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
25267        \-*) ;;
25268        *) break;;
25269      esac
25270    done
25271    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
25272}
25273
25274
25275# ### END FUNCTIONS SHARED WITH CONFIGURE
25276
25277_LT_EOF
25278
25279  case $host_os in
25280  aix3*)
25281    cat <<\_LT_EOF >> "$cfgfile"
25282# AIX sometimes has problems with the GCC collect2 program.  For some
25283# reason, if we set the COLLECT_NAMES environment variable, the problems
25284# vanish in a puff of smoke.
25285if test set != "${COLLECT_NAMES+set}"; then
25286  COLLECT_NAMES=
25287  export COLLECT_NAMES
25288fi
25289_LT_EOF
25290    ;;
25291  esac
25292
25293
25294
25295ltmain=$ac_aux_dir/ltmain.sh
25296
25297
25298  # We use sed instead of cat because bash on DJGPP gets confused if
25299  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
25300  # text mode, it properly converts lines to CR/LF.  This bash problem
25301  # is reportedly fixed, but why not run on old versions too?
25302  sed '$q' "$ltmain" >> "$cfgfile" \
25303     || (rm -f "$cfgfile"; exit 1)
25304
25305   mv -f "$cfgfile" "$ofile" ||
25306    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
25307  chmod +x "$ofile"
25308
25309 ;;
25310
25311  esac
25312done # for ac_tag
25313
25314
25315as_fn_exit 0
25316_ACEOF
25317ac_clean_files=$ac_clean_files_save
25318
25319test $ac_write_fail = 0 ||
25320  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
25321
25322
25323# configure is writing to config.log, and then calls config.status.
25324# config.status does its own redirection, appending to config.log.
25325# Unfortunately, on DOS this fails, as config.log is still kept open
25326# by configure, so config.status won't be able to write to it; its
25327# output is simply discarded.  So we exec the FD to /dev/null,
25328# effectively closing config.log, so it can be properly (re)opened and
25329# appended to by config.status.  When coming back to configure, we
25330# need to make the FD available again.
25331if test "$no_create" != yes; then
25332  ac_cs_success=:
25333  ac_config_status_args=
25334  test "$silent" = yes &&
25335    ac_config_status_args="$ac_config_status_args --quiet"
25336  exec 5>/dev/null
25337  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25338  exec 5>>config.log
25339  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25340  # would make configure fail if this is the last instruction.
25341  $ac_cs_success || as_fn_exit 1
25342fi
25343if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
25344  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
25345printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
25346fi
25347
25348
25349echo ""
25350echo "X11 will be built with the following settings:"
25351echo " Loadable i18n module support:            "$XLIB_LOADABLE_I18N
25352echo " Loadable xcursor library support:        "$XLIB_LOADABLE_XCURSOR
25353echo " Threading support:                       "$xthreads
25354echo " Use Threads safe API:                    "$mtsafeapi
25355echo " Threads stubs in libX11:                 "$thrstubs
25356echo " XCMS:                                    "$XCMS
25357echo " Internationalization support:            "$XLOCALE
25358echo " XF86BigFont support:                     "$XF86BIGFONT
25359echo " XKB support:                             "$XKB
25360echo " XLOCALEDIR environment variable support: "$ENABLE_XLOCALEDIR
25361echo " Compose table cache enabled:             "$COMPOSECACHE
25362echo " Functional specs building enabled:       "$build_specs
25363echo ""
25364
25365