configure revision 3138c4c0
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.71 for xorg-server 21.1.7.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/xserver/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
186test \$(( 1 + 1 )) = 2 || exit 1
187
188  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
189    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
190    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
192    PATH=/empty FPATH=/empty; export PATH FPATH
193    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
194      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || 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/xserver/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
599as_awk_strverscmp='
600  # Use only awk features that work with 7th edition Unix awk (1978).
601  # My, what an old awk you have, Mr. Solaris!
602  END {
603    while (length(v1) && length(v2)) {
604      # Set d1 to be the next thing to compare from v1, and likewise for d2.
605      # Normally this is a single character, but if v1 and v2 contain digits,
606      # compare them as integers and fractions as strverscmp does.
607      if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) {
608	# Split v1 and v2 into their leading digit string components d1 and d2,
609	# and advance v1 and v2 past the leading digit strings.
610	for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue
611	for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue
612	d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
613	d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
614	if (d1 ~ /^0/) {
615	  if (d2 ~ /^0/) {
616	    # Compare two fractions.
617	    while (d1 ~ /^0/ && d2 ~ /^0/) {
618	      d1 = substr(d1, 2); len1--
619	      d2 = substr(d2, 2); len2--
620	    }
621	    if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
622	      # The two components differ in length, and the common prefix
623	      # contains only leading zeros.  Consider the longer to be less.
624	      d1 = -len1
625	      d2 = -len2
626	    } else {
627	      # Otherwise, compare as strings.
628	      d1 = "x" d1
629	      d2 = "x" d2
630	    }
631	  } else {
632	    # A fraction is less than an integer.
633	    exit 1
634	  }
635	} else {
636	  if (d2 ~ /^0/) {
637	    # An integer is greater than a fraction.
638	    exit 2
639	  } else {
640	    # Compare two integers.
641	    d1 += 0
642	    d2 += 0
643	  }
644	}
645      } else {
646	# The normal case, without worrying about digits.
647	d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
648	d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
649      }
650      if (d1 < d2) exit 1
651      if (d1 > d2) exit 2
652    }
653    # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
654    # which mishandles some comparisons of empty strings to integers.
655    if (length(v2)) exit 1
656    if (length(v1)) exit 2
657  }
658'
659SHELL=${CONFIG_SHELL-/bin/sh}
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='xorg-server'
684PACKAGE_TARNAME='xorg-server'
685PACKAGE_VERSION='21.1.7'
686PACKAGE_STRING='xorg-server 21.1.7'
687PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/xserver/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_config_libobj_dir=os
724ac_subst_vars='am__EXEEXT_FALSE
725am__EXEEXT_TRUE
726LTLIBOBJS
727DIX_CFLAGS
728RELEASE_DATE
729SYSCONFDIR
730PROJECTROOT
731XEPHYR_FALSE
732XEPHYR_TRUE
733KDRIVE_LIBS
734KDRIVE_LOCAL_LIBS
735KDRIVE_MAIN_LIB
736KDRIVE_PURE_LIBS
737KDRIVE_CFLAGS
738KDRIVE_PURE_INCS
739KDRIVE_INCS
740XEPHYR_INCS
741XEPHYR_LIBS
742XEPHYR_CFLAGS
743KDRIVE_FALSE
744KDRIVE_TRUE
745STANDALONE_XPBPROXY_FALSE
746STANDALONE_XPBPROXY_TRUE
747XQUARTZ_SPARKLE_FALSE
748XQUARTZ_SPARKLE_TRUE
749XQUARTZ_FALSE
750XQUARTZ_TRUE
751am__fastdepOBJC_FALSE
752am__fastdepOBJC_TRUE
753OBJCDEPMODE
754OBJCFLAGS
755OBJCLINK
756OBJCCLD
757OBJC
758PSEUDORAMIX_FALSE
759PSEUDORAMIX_TRUE
760XPBPROXY_LIBS
761XPBPROXY_CFLAGS
762XQUARTZ_LIBS
763XWIN_WINDOWS_DRI_FALSE
764XWIN_WINDOWS_DRI_TRUE
765XWIN_GLX_WINDOWS_FALSE
766XWIN_GLX_WINDOWS_TRUE
767XWIN_FALSE
768XWIN_TRUE
769KHRONOS_SPEC_DIR
770KHRONOS_OPENGL_REGISTRY_LIBS
771KHRONOS_OPENGL_REGISTRY_CFLAGS
772PYTHON3
773XWIN_SYS_LIBS
774XWIN_SERVER_NAME
775XWIN_LIBS
776WINDOWSDRI_LIBS
777WINDOWSDRI_CFLAGS
778XWINMODULES_LIBS
779XWINMODULES_CFLAGS
780WINDRES
781GLAMOR_EGL_FALSE
782GLAMOR_EGL_TRUE
783GBM_LIBS
784GBM_CFLAGS
785GLAMOR_LIBS
786GLAMOR_CFLAGS
787GLAMOR_FALSE
788GLAMOR_TRUE
789XORG_DRIVER_INPUT_INPUTTEST_FALSE
790XORG_DRIVER_INPUT_INPUTTEST_TRUE
791XORG_DRIVER_MODESETTING_FALSE
792XORG_DRIVER_MODESETTING_TRUE
793XORG_BUS_PLATFORM_FALSE
794XORG_BUS_PLATFORM_TRUE
795DGA_FALSE
796DGA_TRUE
797SOLARIS_VT_FALSE
798SOLARIS_VT_TRUE
799LNXAPM_FALSE
800LNXAPM_TRUE
801LNXACPI_FALSE
802LNXACPI_TRUE
803XORG_BUS_SPARC_FALSE
804XORG_BUS_SPARC_TRUE
805XORG_BUS_BSDPCI_FALSE
806XORG_BUS_BSDPCI_TRUE
807XORG_BUS_PCI_FALSE
808XORG_BUS_PCI_TRUE
809XORG_FALSE
810XORG_TRUE
811abi_extension
812abi_xinput
813abi_videodrv
814abi_ansic
815logdir
816sysconfigdir
817extdir
818sdkdir
819driverdir
820moduledir
821DEFAULT_XDG_DATA_HOME_LOGDIR
822DEFAULT_XDG_DATA_HOME
823DEFAULT_LOGPREFIX
824DEFAULT_LOGDIR
825DEFAULT_LIBRARY_PATH
826DEFAULT_MODULE_PATH
827XCONFIGDIR
828XF86CONFIGFILE
829XCONFIGFILE
830XF86CONFIGDIR
831XORG_CFLAGS
832XORG_OS_SUBDIR
833XORG_INCS
834XORG_SYS_LIBS
835XORG_LIBS
836XORG_MODULES_LIBS
837XORG_MODULES_CFLAGS
838DGA_LIBS
839DGA_CFLAGS
840SOLARIS_INOUT_ARCH
841PCI_TXT_IDS_PATH
842PCIACCESS_LIBS
843PCIACCESS_CFLAGS
844symbol_visibility
845LIBXCVT_LIBS
846LIBXCVT_CFLAGS
847XNEST_SYS_LIBS
848XNEST_LIBS
849XNEST_FALSE
850XNEST_TRUE
851XNESTMODULES_LIBS
852XNESTMODULES_CFLAGS
853XVFB_SYS_LIBS
854XVFB_LIBS
855XVFB_FALSE
856XVFB_TRUE
857NO_UNDEFINED_FALSE
858NO_UNDEFINED_TRUE
859CYGWIN_FALSE
860CYGWIN_TRUE
861XORG_DRIVER_LIBS
862LD_NO_UNDEFINED_FLAG
863LD_EXPORT_SYMBOLS_FLAG
864UTILS_SYS_LIBS
865XSERVER_SYS_LIBS
866XSERVER_LIBS
867HAVE_LIBUNWIND_FALSE
868HAVE_LIBUNWIND_TRUE
869LIBUNWIND_LIBS
870LIBUNWIND_CFLAGS
871XSERVERLIBS_LIBS
872XSERVERLIBS_CFLAGS
873XSERVERCFLAGS_LIBS
874XSERVERCFLAGS_CFLAGS
875SHA1_CFLAGS
876SHA1_LIBS
877OPENSSL_LIBS
878OPENSSL_CFLAGS
879LIBSHA1_LIBS
880LIBSHA1_CFLAGS
881MAIN_LIB
882OS_LIB
883DIX_LIB
884DEBUG_FALSE
885DEBUG_TRUE
886VENDOR_NAME_SHORT
887DRI_DRIVER_PATH
888BASE_FONT_PATH
889SERVER_MISC_CONFIG_PATH
890COMPILEDDEFAULTFONTPATH
891XF86VIDMODE_FALSE
892XF86VIDMODE_TRUE
893XDMAUTH_FALSE
894XDMAUTH_TRUE
895XDMCP_FALSE
896XDMCP_TRUE
897XDMCP_LIBS
898XDMCP_CFLAGS
899XKB_DFLT_OPTIONS
900XKB_DFLT_VARIANT
901XKB_DFLT_LAYOUT
902XKB_DFLT_MODEL
903XKB_DFLT_RULES
904XKB_COMPILED_DIR
905XKM_OUTPUT_DIR
906XKB_BIN_DIRECTORY
907XKB_BASE_DIRECTORY
908INT10MODULE_FALSE
909INT10MODULE_TRUE
910VGAHW_FALSE
911VGAHW_TRUE
912XF86UTILS_FALSE
913XF86UTILS_TRUE
914DPMSExtension_FALSE
915DPMSExtension_TRUE
916XF86BIGFONT_FALSE
917XF86BIGFONT_TRUE
918DBE_FALSE
919DBE_TRUE
920XCSECURITY_FALSE
921XCSECURITY_TRUE
922SELINUX_LIBS
923SELINUX_CFLAGS
924XSELINUX_FALSE
925XSELINUX_TRUE
926XACE_FALSE
927XACE_TRUE
928XINERAMA_FALSE
929XINERAMA_TRUE
930PRESENT_FALSE
931PRESENT_TRUE
932GLX_SYS_LIBS
933GLX_DEFINES
934HASHTABLE_FALSE
935HASHTABLE_TRUE
936GLX_FALSE
937GLX_TRUE
938GL_LIBS
939GL_CFLAGS
940XLIB_LIBS
941XLIB_CFLAGS
942LIBDRM_LIBS
943LIBDRM_CFLAGS
944DRI3_FALSE
945DRI3_TRUE
946XSHMFENCE_FALSE
947XSHMFENCE_TRUE
948XSHMFENCE_LIBS
949XSHMFENCE_CFLAGS
950BUSFAULT_FALSE
951BUSFAULT_TRUE
952DRI3PROTO_LIBS
953DRI3PROTO_CFLAGS
954DRI2_FALSE
955DRI2_TRUE
956DRI2PROTO_LIBS
957DRI2PROTO_CFLAGS
958DRI_FALSE
959DRI_TRUE
960CLIENTIDS_FALSE
961CLIENTIDS_TRUE
962RES_FALSE
963RES_TRUE
964SCREENSAVER_FALSE
965SCREENSAVER_TRUE
966RECORD_FALSE
967RECORD_TRUE
968MITSHM_FALSE
969MITSHM_TRUE
970COMPOSITE_FALSE
971COMPOSITE_TRUE
972XVMC_FALSE
973XVMC_TRUE
974XV_FALSE
975XV_TRUE
976CONFIG_WSCONS_FALSE
977CONFIG_WSCONS_TRUE
978NEED_DBUS_FALSE
979NEED_DBUS_TRUE
980SUID_WRAPPER_FALSE
981SUID_WRAPPER_TRUE
982SUID_WRAPPER_DIR
983SYSTEMD_LOGIND_FALSE
984SYSTEMD_LOGIND_TRUE
985CONFIG_HAL_FALSE
986CONFIG_HAL_TRUE
987HAL_LIBS
988HAL_CFLAGS
989HAVE_DBUS_FALSE
990HAVE_DBUS_TRUE
991DBUS_LIBS
992DBUS_CFLAGS
993CONFIG_UDEV_KMS_FALSE
994CONFIG_UDEV_KMS_TRUE
995CONFIG_UDEV_FALSE
996CONFIG_UDEV_TRUE
997UDEV_LIBS
998UDEV_CFLAGS
999HAVE_SYSTEMD_DAEMON_FALSE
1000HAVE_SYSTEMD_DAEMON_TRUE
1001SYSTEMD_DAEMON_LIBS
1002SYSTEMD_DAEMON_CFLAGS
1003PTHREAD_CFLAGS
1004PTHREAD_LIBS
1005PTHREAD_CC
1006ax_pthread_config
1007SDK_REQUIRED_MODULES
1008PIXMAN_LIBS
1009PIXMAN_CFLAGS
1010INT10_STUB_FALSE
1011INT10_STUB_TRUE
1012INT10_X86EMU_FALSE
1013INT10_X86EMU_TRUE
1014INT10_VM86_FALSE
1015INT10_VM86_TRUE
1016SECURE_RPC_FALSE
1017SECURE_RPC_TRUE
1018INSTALL_SETUID_FALSE
1019INSTALL_SETUID_TRUE
1020XQUARTZ_SPARKLE_FEED_URL
1021XQUARTZ_SPARKLE
1022BUNDLE_VERSION_STRING
1023BUNDLE_VERSION
1024BUNDLE_ID_PREFIX
1025APPLE_APPLICATION_NAME
1026APPLE_APPLICATIONS_DIR
1027FONT100DPIDIR
1028FONT75DPIDIR
1029FONTTYPE1DIR
1030FONTTTFDIR
1031FONTOTFDIR
1032FONTMISCDIR
1033FONTROOTDIR
1034SPARC64_VIDEO_FALSE
1035SPARC64_VIDEO_TRUE
1036PPC_VIDEO_FALSE
1037PPC_VIDEO_TRUE
1038I386_VIDEO_FALSE
1039I386_VIDEO_TRUE
1040ARM_VIDEO_FALSE
1041ARM_VIDEO_TRUE
1042ALPHA_VIDEO_FALSE
1043ALPHA_VIDEO_TRUE
1044GLX_ARCH_DEFINES
1045FREEBSD_KLDLOAD_FALSE
1046FREEBSD_KLDLOAD_TRUE
1047FBDEVHW_FALSE
1048FBDEVHW_TRUE
1049AGP_FALSE
1050AGP_TRUE
1051POLL_FALSE
1052POLL_TRUE
1053LIBOBJS
1054DLOPEN_LIBS
1055SPECIAL_DTRACE_OBJECTS_FALSE
1056SPECIAL_DTRACE_OBJECTS_TRUE
1057XSERVER_DTRACE_FALSE
1058XSERVER_DTRACE_TRUE
1059DTRACE
1060TRADITIONALCPPFLAGS
1061RAWCPPFLAGS
1062RAWCPP
1063CPP
1064YFLAGS
1065YACC
1066LEXLIB
1067LEX_OUTPUT_ROOT
1068LEX
1069LT_SYS_LIBRARY_PATH
1070OTOOL64
1071OTOOL
1072LIPO
1073NMEDIT
1074DSYMUTIL
1075MANIFEST_TOOL
1076RANLIB
1077ac_ct_AR
1078AR
1079FILECMD
1080NM
1081ac_ct_DUMPBIN
1082DUMPBIN
1083LD
1084FGREP
1085EGREP
1086GREP
1087LIBTOOL
1088OBJDUMP
1089DLLTOOL
1090AS
1091LN_S
1092am__fastdepCCAS_FALSE
1093am__fastdepCCAS_TRUE
1094CCASDEPMODE
1095CCASFLAGS
1096CCAS
1097HAVE_LD_WRAP_FALSE
1098HAVE_LD_WRAP_TRUE
1099ENABLE_UNIT_TESTS_FALSE
1100ENABLE_UNIT_TESTS_TRUE
1101XORG_MALLOC_DEBUG_ENV
1102HAVE_XSLTPROC_FALSE
1103HAVE_XSLTPROC_TRUE
1104XSLTPROC
1105HAVE_FOP_FALSE
1106HAVE_FOP_TRUE
1107FOP
1108HAVE_XMLTO_FALSE
1109HAVE_XMLTO_TRUE
1110HAVE_XMLTO_TEXT_FALSE
1111HAVE_XMLTO_TEXT_TRUE
1112XMLTO
1113ENABLE_DEVEL_DOCS_FALSE
1114ENABLE_DEVEL_DOCS_TRUE
1115ENABLE_DOCS_FALSE
1116ENABLE_DOCS_TRUE
1117HAVE_STYLESHEETS_FALSE
1118HAVE_STYLESHEETS_TRUE
1119XSL_STYLESHEET
1120STYLESHEET_SRCDIR
1121XORG_SGML_PATH
1122HAVE_DOXYGEN_FALSE
1123HAVE_DOXYGEN_TRUE
1124HAVE_DOT_FALSE
1125HAVE_DOT_TRUE
1126HAVE_DOT
1127DOT
1128DOXYGEN
1129MAN_SUBSTS
1130XORG_MAN_PAGE
1131ADMIN_MAN_DIR
1132DRIVER_MAN_DIR
1133MISC_MAN_DIR
1134FILE_MAN_DIR
1135LIB_MAN_DIR
1136APP_MAN_DIR
1137ADMIN_MAN_SUFFIX
1138DRIVER_MAN_SUFFIX
1139MISC_MAN_SUFFIX
1140FILE_MAN_SUFFIX
1141LIB_MAN_SUFFIX
1142APP_MAN_SUFFIX
1143SED
1144host_os
1145host_vendor
1146host_cpu
1147host
1148build_os
1149build_vendor
1150build_cpu
1151build
1152INSTALL_CMD
1153PKG_CONFIG_LIBDIR
1154PKG_CONFIG_PATH
1155PKG_CONFIG
1156CHANGELOG_CMD
1157STRICT_CFLAGS
1158CWARNFLAGS
1159BASE_CFLAGS
1160am__fastdepCC_FALSE
1161am__fastdepCC_TRUE
1162CCDEPMODE
1163am__nodep
1164AMDEPBACKSLASH
1165AMDEP_FALSE
1166AMDEP_TRUE
1167am__include
1168DEPDIR
1169OBJEXT
1170EXEEXT
1171ac_ct_CC
1172CPPFLAGS
1173LDFLAGS
1174CFLAGS
1175CC
1176AM_BACKSLASH
1177AM_DEFAULT_VERBOSITY
1178AM_DEFAULT_V
1179AM_V
1180CSCOPE
1181ETAGS
1182CTAGS
1183am__untar
1184am__tar
1185AMTAR
1186am__leading_dot
1187SET_MAKE
1188AWK
1189mkdir_p
1190MKDIR_P
1191INSTALL_STRIP_PROGRAM
1192STRIP
1193install_sh
1194MAKEINFO
1195AUTOHEADER
1196AUTOMAKE
1197AUTOCONF
1198ACLOCAL
1199VERSION
1200PACKAGE
1201CYGPATH_W
1202am__isrc
1203INSTALL_DATA
1204INSTALL_SCRIPT
1205INSTALL_PROGRAM
1206target_alias
1207host_alias
1208build_alias
1209LIBS
1210ECHO_T
1211ECHO_N
1212ECHO_C
1213DEFS
1214mandir
1215localedir
1216libdir
1217psdir
1218pdfdir
1219dvidir
1220htmldir
1221infodir
1222docdir
1223oldincludedir
1224includedir
1225runstatedir
1226localstatedir
1227sharedstatedir
1228sysconfdir
1229datadir
1230datarootdir
1231libexecdir
1232sbindir
1233bindir
1234program_transform_name
1235prefix
1236exec_prefix
1237PACKAGE_URL
1238PACKAGE_BUGREPORT
1239PACKAGE_STRING
1240PACKAGE_VERSION
1241PACKAGE_TARNAME
1242PACKAGE_NAME
1243PATH_SEPARATOR
1244SHELL
1245am__quote'
1246ac_subst_files=''
1247ac_user_opts='
1248enable_option_checking
1249enable_silent_rules
1250enable_dependency_tracking
1251enable_selective_werror
1252enable_strict_compilation
1253with_doxygen
1254enable_docs
1255enable_devel_docs
1256with_xmlto
1257with_fop
1258with_xsltproc
1259enable_unit_tests
1260enable_static
1261enable_shared
1262with_pic
1263enable_fast_install
1264with_aix_soname
1265with_gnu_ld
1266with_sysroot
1267enable_libtool_lock
1268enable_largefile
1269with_dtrace
1270enable_agp
1271enable_werror
1272enable_debug
1273with_int10
1274with_vendor_name
1275with_vendor_name_short
1276with_vendor_web
1277with_module_dir
1278with_log_dir
1279with_builder_addr
1280with_builderstring
1281enable_listen_tcp
1282enable_listen_unix
1283enable_listen_local
1284with_fallback_input_driver
1285with_fontrootdir
1286with_fontmiscdir
1287with_fontotfdir
1288with_fontttfdir
1289with_fonttype1dir
1290with_font75dpidir
1291with_font100dpidir
1292with_default_font_path
1293with_xkb_path
1294with_xkb_output
1295with_default_xkb_rules
1296with_default_xkb_model
1297with_default_xkb_layout
1298with_default_xkb_variant
1299with_default_xkb_options
1300with_serverconfig_path
1301with_apple_applications_dir
1302with_apple_application_name
1303with_bundle_id_prefix
1304with_bundle_version
1305with_bundle_version_string
1306enable_sparkle
1307with_sparkle_feed_url
1308enable_visibility
1309with_khronos_spec_dir
1310enable_composite
1311enable_mitshm
1312enable_xres
1313enable_record
1314enable_xv
1315enable_xvmc
1316enable_dga
1317enable_screensaver
1318enable_xdmcp
1319enable_xdm_auth_1
1320enable_glx
1321enable_dri
1322enable_dri2
1323enable_dri3
1324enable_present
1325enable_xinerama
1326enable_xf86vidmode
1327enable_xace
1328enable_xselinux
1329enable_xcsecurity
1330enable_dbe
1331enable_xf86bigfont
1332enable_dpms
1333enable_config_udev
1334enable_config_udev_kms
1335enable_config_hal
1336enable_config_wscons
1337enable_xfree86_utils
1338enable_vgahw
1339enable_int10_module
1340enable_windowsdri
1341enable_libdrm
1342enable_clientids
1343enable_pciaccess
1344enable_linux_acpi
1345enable_linux_apm
1346enable_systemd_logind
1347enable_suid_wrapper
1348enable_xorg
1349enable_xvfb
1350enable_xnest
1351enable_xquartz
1352enable_standalone_xpbproxy
1353enable_xwin
1354enable_glamor
1355enable_xf86_input_inputtest
1356enable_kdrive
1357enable_xephyr
1358enable_libunwind
1359enable_xshmfence
1360enable_install_setuid
1361enable_unix_transport
1362enable_tcp_transport
1363enable_ipv6
1364enable_local_transport
1365enable_secure_rpc
1366enable_input_thread
1367with_systemd_daemon
1368enable_xtrans_send_fds
1369with_xkb_bin_directory
1370with_sha1
1371'
1372      ac_precious_vars='build_alias
1373host_alias
1374target_alias
1375CC
1376CFLAGS
1377LDFLAGS
1378LIBS
1379CPPFLAGS
1380PKG_CONFIG
1381PKG_CONFIG_PATH
1382PKG_CONFIG_LIBDIR
1383DOXYGEN
1384DOT
1385XMLTO
1386FOP
1387XSLTPROC
1388XORG_MALLOC_DEBUG_ENV
1389CCAS
1390CCASFLAGS
1391LT_SYS_LIBRARY_PATH
1392YACC
1393YFLAGS
1394CPP
1395PIXMAN_CFLAGS
1396PIXMAN_LIBS
1397SYSTEMD_DAEMON_CFLAGS
1398SYSTEMD_DAEMON_LIBS
1399UDEV_CFLAGS
1400UDEV_LIBS
1401DBUS_CFLAGS
1402DBUS_LIBS
1403HAL_CFLAGS
1404HAL_LIBS
1405DRI2PROTO_CFLAGS
1406DRI2PROTO_LIBS
1407DRI3PROTO_CFLAGS
1408DRI3PROTO_LIBS
1409XSHMFENCE_CFLAGS
1410XSHMFENCE_LIBS
1411LIBDRM_CFLAGS
1412LIBDRM_LIBS
1413XLIB_CFLAGS
1414XLIB_LIBS
1415GL_CFLAGS
1416GL_LIBS
1417SELINUX_CFLAGS
1418SELINUX_LIBS
1419XDMCP_CFLAGS
1420XDMCP_LIBS
1421LIBSHA1_CFLAGS
1422LIBSHA1_LIBS
1423OPENSSL_CFLAGS
1424OPENSSL_LIBS
1425XSERVERCFLAGS_CFLAGS
1426XSERVERCFLAGS_LIBS
1427XSERVERLIBS_CFLAGS
1428XSERVERLIBS_LIBS
1429LIBUNWIND_CFLAGS
1430LIBUNWIND_LIBS
1431XNESTMODULES_CFLAGS
1432XNESTMODULES_LIBS
1433LIBXCVT_CFLAGS
1434LIBXCVT_LIBS
1435PCIACCESS_CFLAGS
1436PCIACCESS_LIBS
1437DGA_CFLAGS
1438DGA_LIBS
1439XORG_MODULES_CFLAGS
1440XORG_MODULES_LIBS
1441GLAMOR_CFLAGS
1442GLAMOR_LIBS
1443GBM_CFLAGS
1444GBM_LIBS
1445XWINMODULES_CFLAGS
1446XWINMODULES_LIBS
1447WINDOWSDRI_CFLAGS
1448WINDOWSDRI_LIBS
1449KHRONOS_OPENGL_REGISTRY_CFLAGS
1450KHRONOS_OPENGL_REGISTRY_LIBS
1451XPBPROXY_CFLAGS
1452XPBPROXY_LIBS
1453XEPHYR_CFLAGS
1454XEPHYR_LIBS'
1455
1456
1457# Initialize some variables set by options.
1458ac_init_help=
1459ac_init_version=false
1460ac_unrecognized_opts=
1461ac_unrecognized_sep=
1462# The variables have the same names as the options, with
1463# dashes changed to underlines.
1464cache_file=/dev/null
1465exec_prefix=NONE
1466no_create=
1467no_recursion=
1468prefix=NONE
1469program_prefix=NONE
1470program_suffix=NONE
1471program_transform_name=s,x,x,
1472silent=
1473site=
1474srcdir=
1475verbose=
1476x_includes=NONE
1477x_libraries=NONE
1478
1479# Installation directory options.
1480# These are left unexpanded so users can "make install exec_prefix=/foo"
1481# and all the variables that are supposed to be based on exec_prefix
1482# by default will actually change.
1483# Use braces instead of parens because sh, perl, etc. also accept them.
1484# (The list follows the same order as the GNU Coding Standards.)
1485bindir='${exec_prefix}/bin'
1486sbindir='${exec_prefix}/sbin'
1487libexecdir='${exec_prefix}/libexec'
1488datarootdir='${prefix}/share'
1489datadir='${datarootdir}'
1490sysconfdir='${prefix}/etc'
1491sharedstatedir='${prefix}/com'
1492localstatedir='${prefix}/var'
1493runstatedir='${localstatedir}/run'
1494includedir='${prefix}/include'
1495oldincludedir='/usr/include'
1496docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1497infodir='${datarootdir}/info'
1498htmldir='${docdir}'
1499dvidir='${docdir}'
1500pdfdir='${docdir}'
1501psdir='${docdir}'
1502libdir='${exec_prefix}/lib'
1503localedir='${datarootdir}/locale'
1504mandir='${datarootdir}/man'
1505
1506ac_prev=
1507ac_dashdash=
1508for ac_option
1509do
1510  # If the previous option needs an argument, assign it.
1511  if test -n "$ac_prev"; then
1512    eval $ac_prev=\$ac_option
1513    ac_prev=
1514    continue
1515  fi
1516
1517  case $ac_option in
1518  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1519  *=)   ac_optarg= ;;
1520  *)    ac_optarg=yes ;;
1521  esac
1522
1523  case $ac_dashdash$ac_option in
1524  --)
1525    ac_dashdash=yes ;;
1526
1527  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1528    ac_prev=bindir ;;
1529  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1530    bindir=$ac_optarg ;;
1531
1532  -build | --build | --buil | --bui | --bu)
1533    ac_prev=build_alias ;;
1534  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1535    build_alias=$ac_optarg ;;
1536
1537  -cache-file | --cache-file | --cache-fil | --cache-fi \
1538  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1539    ac_prev=cache_file ;;
1540  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1541  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1542    cache_file=$ac_optarg ;;
1543
1544  --config-cache | -C)
1545    cache_file=config.cache ;;
1546
1547  -datadir | --datadir | --datadi | --datad)
1548    ac_prev=datadir ;;
1549  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1550    datadir=$ac_optarg ;;
1551
1552  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1553  | --dataroo | --dataro | --datar)
1554    ac_prev=datarootdir ;;
1555  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1556  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1557    datarootdir=$ac_optarg ;;
1558
1559  -disable-* | --disable-*)
1560    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1561    # Reject names that are not valid shell variable names.
1562    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1563      as_fn_error $? "invalid feature name: \`$ac_useropt'"
1564    ac_useropt_orig=$ac_useropt
1565    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1566    case $ac_user_opts in
1567      *"
1568"enable_$ac_useropt"
1569"*) ;;
1570      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1571	 ac_unrecognized_sep=', ';;
1572    esac
1573    eval enable_$ac_useropt=no ;;
1574
1575  -docdir | --docdir | --docdi | --doc | --do)
1576    ac_prev=docdir ;;
1577  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1578    docdir=$ac_optarg ;;
1579
1580  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1581    ac_prev=dvidir ;;
1582  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1583    dvidir=$ac_optarg ;;
1584
1585  -enable-* | --enable-*)
1586    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1587    # Reject names that are not valid shell variable names.
1588    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1589      as_fn_error $? "invalid feature name: \`$ac_useropt'"
1590    ac_useropt_orig=$ac_useropt
1591    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1592    case $ac_user_opts in
1593      *"
1594"enable_$ac_useropt"
1595"*) ;;
1596      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1597	 ac_unrecognized_sep=', ';;
1598    esac
1599    eval enable_$ac_useropt=\$ac_optarg ;;
1600
1601  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1602  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1603  | --exec | --exe | --ex)
1604    ac_prev=exec_prefix ;;
1605  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1606  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1607  | --exec=* | --exe=* | --ex=*)
1608    exec_prefix=$ac_optarg ;;
1609
1610  -gas | --gas | --ga | --g)
1611    # Obsolete; use --with-gas.
1612    with_gas=yes ;;
1613
1614  -help | --help | --hel | --he | -h)
1615    ac_init_help=long ;;
1616  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1617    ac_init_help=recursive ;;
1618  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1619    ac_init_help=short ;;
1620
1621  -host | --host | --hos | --ho)
1622    ac_prev=host_alias ;;
1623  -host=* | --host=* | --hos=* | --ho=*)
1624    host_alias=$ac_optarg ;;
1625
1626  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1627    ac_prev=htmldir ;;
1628  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1629  | --ht=*)
1630    htmldir=$ac_optarg ;;
1631
1632  -includedir | --includedir | --includedi | --included | --include \
1633  | --includ | --inclu | --incl | --inc)
1634    ac_prev=includedir ;;
1635  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1636  | --includ=* | --inclu=* | --incl=* | --inc=*)
1637    includedir=$ac_optarg ;;
1638
1639  -infodir | --infodir | --infodi | --infod | --info | --inf)
1640    ac_prev=infodir ;;
1641  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1642    infodir=$ac_optarg ;;
1643
1644  -libdir | --libdir | --libdi | --libd)
1645    ac_prev=libdir ;;
1646  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1647    libdir=$ac_optarg ;;
1648
1649  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1650  | --libexe | --libex | --libe)
1651    ac_prev=libexecdir ;;
1652  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1653  | --libexe=* | --libex=* | --libe=*)
1654    libexecdir=$ac_optarg ;;
1655
1656  -localedir | --localedir | --localedi | --localed | --locale)
1657    ac_prev=localedir ;;
1658  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1659    localedir=$ac_optarg ;;
1660
1661  -localstatedir | --localstatedir | --localstatedi | --localstated \
1662  | --localstate | --localstat | --localsta | --localst | --locals)
1663    ac_prev=localstatedir ;;
1664  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1665  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1666    localstatedir=$ac_optarg ;;
1667
1668  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1669    ac_prev=mandir ;;
1670  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1671    mandir=$ac_optarg ;;
1672
1673  -nfp | --nfp | --nf)
1674    # Obsolete; use --without-fp.
1675    with_fp=no ;;
1676
1677  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1678  | --no-cr | --no-c | -n)
1679    no_create=yes ;;
1680
1681  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1682  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1683    no_recursion=yes ;;
1684
1685  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1686  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1687  | --oldin | --oldi | --old | --ol | --o)
1688    ac_prev=oldincludedir ;;
1689  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1690  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1691  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1692    oldincludedir=$ac_optarg ;;
1693
1694  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1695    ac_prev=prefix ;;
1696  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1697    prefix=$ac_optarg ;;
1698
1699  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1700  | --program-pre | --program-pr | --program-p)
1701    ac_prev=program_prefix ;;
1702  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1703  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1704    program_prefix=$ac_optarg ;;
1705
1706  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1707  | --program-suf | --program-su | --program-s)
1708    ac_prev=program_suffix ;;
1709  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1710  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1711    program_suffix=$ac_optarg ;;
1712
1713  -program-transform-name | --program-transform-name \
1714  | --program-transform-nam | --program-transform-na \
1715  | --program-transform-n | --program-transform- \
1716  | --program-transform | --program-transfor \
1717  | --program-transfo | --program-transf \
1718  | --program-trans | --program-tran \
1719  | --progr-tra | --program-tr | --program-t)
1720    ac_prev=program_transform_name ;;
1721  -program-transform-name=* | --program-transform-name=* \
1722  | --program-transform-nam=* | --program-transform-na=* \
1723  | --program-transform-n=* | --program-transform-=* \
1724  | --program-transform=* | --program-transfor=* \
1725  | --program-transfo=* | --program-transf=* \
1726  | --program-trans=* | --program-tran=* \
1727  | --progr-tra=* | --program-tr=* | --program-t=*)
1728    program_transform_name=$ac_optarg ;;
1729
1730  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1731    ac_prev=pdfdir ;;
1732  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1733    pdfdir=$ac_optarg ;;
1734
1735  -psdir | --psdir | --psdi | --psd | --ps)
1736    ac_prev=psdir ;;
1737  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1738    psdir=$ac_optarg ;;
1739
1740  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1741  | -silent | --silent | --silen | --sile | --sil)
1742    silent=yes ;;
1743
1744  -runstatedir | --runstatedir | --runstatedi | --runstated \
1745  | --runstate | --runstat | --runsta | --runst | --runs \
1746  | --run | --ru | --r)
1747    ac_prev=runstatedir ;;
1748  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1749  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1750  | --run=* | --ru=* | --r=*)
1751    runstatedir=$ac_optarg ;;
1752
1753  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1754    ac_prev=sbindir ;;
1755  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1756  | --sbi=* | --sb=*)
1757    sbindir=$ac_optarg ;;
1758
1759  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1760  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1761  | --sharedst | --shareds | --shared | --share | --shar \
1762  | --sha | --sh)
1763    ac_prev=sharedstatedir ;;
1764  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1765  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1766  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1767  | --sha=* | --sh=*)
1768    sharedstatedir=$ac_optarg ;;
1769
1770  -site | --site | --sit)
1771    ac_prev=site ;;
1772  -site=* | --site=* | --sit=*)
1773    site=$ac_optarg ;;
1774
1775  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1776    ac_prev=srcdir ;;
1777  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1778    srcdir=$ac_optarg ;;
1779
1780  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1781  | --syscon | --sysco | --sysc | --sys | --sy)
1782    ac_prev=sysconfdir ;;
1783  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1784  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1785    sysconfdir=$ac_optarg ;;
1786
1787  -target | --target | --targe | --targ | --tar | --ta | --t)
1788    ac_prev=target_alias ;;
1789  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1790    target_alias=$ac_optarg ;;
1791
1792  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1793    verbose=yes ;;
1794
1795  -version | --version | --versio | --versi | --vers | -V)
1796    ac_init_version=: ;;
1797
1798  -with-* | --with-*)
1799    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1800    # Reject names that are not valid shell variable names.
1801    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1802      as_fn_error $? "invalid package name: \`$ac_useropt'"
1803    ac_useropt_orig=$ac_useropt
1804    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1805    case $ac_user_opts in
1806      *"
1807"with_$ac_useropt"
1808"*) ;;
1809      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1810	 ac_unrecognized_sep=', ';;
1811    esac
1812    eval with_$ac_useropt=\$ac_optarg ;;
1813
1814  -without-* | --without-*)
1815    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1816    # Reject names that are not valid shell variable names.
1817    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1818      as_fn_error $? "invalid package name: \`$ac_useropt'"
1819    ac_useropt_orig=$ac_useropt
1820    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1821    case $ac_user_opts in
1822      *"
1823"with_$ac_useropt"
1824"*) ;;
1825      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1826	 ac_unrecognized_sep=', ';;
1827    esac
1828    eval with_$ac_useropt=no ;;
1829
1830  --x)
1831    # Obsolete; use --with-x.
1832    with_x=yes ;;
1833
1834  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1835  | --x-incl | --x-inc | --x-in | --x-i)
1836    ac_prev=x_includes ;;
1837  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1838  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1839    x_includes=$ac_optarg ;;
1840
1841  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1842  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1843    ac_prev=x_libraries ;;
1844  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1845  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1846    x_libraries=$ac_optarg ;;
1847
1848  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1849Try \`$0 --help' for more information"
1850    ;;
1851
1852  *=*)
1853    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1854    # Reject names that are not valid shell variable names.
1855    case $ac_envvar in #(
1856      '' | [0-9]* | *[!_$as_cr_alnum]* )
1857      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1858    esac
1859    eval $ac_envvar=\$ac_optarg
1860    export $ac_envvar ;;
1861
1862  *)
1863    # FIXME: should be removed in autoconf 3.0.
1864    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1865    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1866      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1867    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1868    ;;
1869
1870  esac
1871done
1872
1873if test -n "$ac_prev"; then
1874  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1875  as_fn_error $? "missing argument to $ac_option"
1876fi
1877
1878if test -n "$ac_unrecognized_opts"; then
1879  case $enable_option_checking in
1880    no) ;;
1881    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1882    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1883  esac
1884fi
1885
1886# Check all directory arguments for consistency.
1887for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1888		datadir sysconfdir sharedstatedir localstatedir includedir \
1889		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1890		libdir localedir mandir runstatedir
1891do
1892  eval ac_val=\$$ac_var
1893  # Remove trailing slashes.
1894  case $ac_val in
1895    */ )
1896      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1897      eval $ac_var=\$ac_val;;
1898  esac
1899  # Be sure to have absolute directory names.
1900  case $ac_val in
1901    [\\/$]* | ?:[\\/]* )  continue;;
1902    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1903  esac
1904  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1905done
1906
1907# There might be people who depend on the old broken behavior: `$host'
1908# used to hold the argument of --host etc.
1909# FIXME: To remove some day.
1910build=$build_alias
1911host=$host_alias
1912target=$target_alias
1913
1914# FIXME: To remove some day.
1915if test "x$host_alias" != x; then
1916  if test "x$build_alias" = x; then
1917    cross_compiling=maybe
1918  elif test "x$build_alias" != "x$host_alias"; then
1919    cross_compiling=yes
1920  fi
1921fi
1922
1923ac_tool_prefix=
1924test -n "$host_alias" && ac_tool_prefix=$host_alias-
1925
1926test "$silent" = yes && exec 6>/dev/null
1927
1928
1929ac_pwd=`pwd` && test -n "$ac_pwd" &&
1930ac_ls_di=`ls -di .` &&
1931ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1932  as_fn_error $? "working directory cannot be determined"
1933test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1934  as_fn_error $? "pwd does not report name of working directory"
1935
1936
1937# Find the source files, if location was not specified.
1938if test -z "$srcdir"; then
1939  ac_srcdir_defaulted=yes
1940  # Try the directory containing this script, then the parent directory.
1941  ac_confdir=`$as_dirname -- "$as_myself" ||
1942$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1943	 X"$as_myself" : 'X\(//\)[^/]' \| \
1944	 X"$as_myself" : 'X\(//\)$' \| \
1945	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1946printf "%s\n" X"$as_myself" |
1947    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1948	    s//\1/
1949	    q
1950	  }
1951	  /^X\(\/\/\)[^/].*/{
1952	    s//\1/
1953	    q
1954	  }
1955	  /^X\(\/\/\)$/{
1956	    s//\1/
1957	    q
1958	  }
1959	  /^X\(\/\).*/{
1960	    s//\1/
1961	    q
1962	  }
1963	  s/.*/./; q'`
1964  srcdir=$ac_confdir
1965  if test ! -r "$srcdir/$ac_unique_file"; then
1966    srcdir=..
1967  fi
1968else
1969  ac_srcdir_defaulted=no
1970fi
1971if test ! -r "$srcdir/$ac_unique_file"; then
1972  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1973  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1974fi
1975ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1976ac_abs_confdir=`(
1977	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1978	pwd)`
1979# When building in place, set srcdir=.
1980if test "$ac_abs_confdir" = "$ac_pwd"; then
1981  srcdir=.
1982fi
1983# Remove unnecessary trailing slashes from srcdir.
1984# Double slashes in file names in object file debugging info
1985# mess up M-x gdb in Emacs.
1986case $srcdir in
1987*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1988esac
1989for ac_var in $ac_precious_vars; do
1990  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1991  eval ac_env_${ac_var}_value=\$${ac_var}
1992  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1993  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1994done
1995
1996#
1997# Report the --help message.
1998#
1999if test "$ac_init_help" = "long"; then
2000  # Omit some internal or obsolete options to make the list less imposing.
2001  # This message is too long to be a string in the A/UX 3.1 sh.
2002  cat <<_ACEOF
2003\`configure' configures xorg-server 21.1.7 to adapt to many kinds of systems.
2004
2005Usage: $0 [OPTION]... [VAR=VALUE]...
2006
2007To assign environment variables (e.g., CC, CFLAGS...), specify them as
2008VAR=VALUE.  See below for descriptions of some of the useful variables.
2009
2010Defaults for the options are specified in brackets.
2011
2012Configuration:
2013  -h, --help              display this help and exit
2014      --help=short        display options specific to this package
2015      --help=recursive    display the short help of all the included packages
2016  -V, --version           display version information and exit
2017  -q, --quiet, --silent   do not print \`checking ...' messages
2018      --cache-file=FILE   cache test results in FILE [disabled]
2019  -C, --config-cache      alias for \`--cache-file=config.cache'
2020  -n, --no-create         do not create output files
2021      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
2022
2023Installation directories:
2024  --prefix=PREFIX         install architecture-independent files in PREFIX
2025                          [$ac_default_prefix]
2026  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
2027                          [PREFIX]
2028
2029By default, \`make install' will install all the files in
2030\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
2031an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2032for instance \`--prefix=\$HOME'.
2033
2034For better control, use the options below.
2035
2036Fine tuning of the installation directories:
2037  --bindir=DIR            user executables [EPREFIX/bin]
2038  --sbindir=DIR           system admin executables [EPREFIX/sbin]
2039  --libexecdir=DIR        program executables [EPREFIX/libexec]
2040  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
2041  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
2042  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
2043  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
2044  --libdir=DIR            object code libraries [EPREFIX/lib]
2045  --includedir=DIR        C header files [PREFIX/include]
2046  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
2047  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
2048  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
2049  --infodir=DIR           info documentation [DATAROOTDIR/info]
2050  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
2051  --mandir=DIR            man documentation [DATAROOTDIR/man]
2052  --docdir=DIR            documentation root [DATAROOTDIR/doc/xorg-server]
2053  --htmldir=DIR           html documentation [DOCDIR]
2054  --dvidir=DIR            dvi documentation [DOCDIR]
2055  --pdfdir=DIR            pdf documentation [DOCDIR]
2056  --psdir=DIR             ps documentation [DOCDIR]
2057_ACEOF
2058
2059  cat <<\_ACEOF
2060
2061Program names:
2062  --program-prefix=PREFIX            prepend PREFIX to installed program names
2063  --program-suffix=SUFFIX            append SUFFIX to installed program names
2064  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
2065
2066System types:
2067  --build=BUILD     configure for building on BUILD [guessed]
2068  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
2069_ACEOF
2070fi
2071
2072if test -n "$ac_init_help"; then
2073  case $ac_init_help in
2074     short | recursive ) echo "Configuration of xorg-server 21.1.7:";;
2075   esac
2076  cat <<\_ACEOF
2077
2078Optional Features:
2079  --disable-option-checking  ignore unrecognized --enable/--with options
2080  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
2081  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
2082  --enable-silent-rules   less verbose build output (undo: "make V=1")
2083  --disable-silent-rules  verbose build output (undo: "make V=0")
2084  --enable-dependency-tracking
2085                          do not reject slow dependency extractors
2086  --disable-dependency-tracking
2087                          speeds up one-time build
2088  --disable-selective-werror
2089                          Turn off selective compiler errors. (default:
2090                          enabled)
2091  --enable-strict-compilation
2092                          Enable all warnings from compiler and make them
2093                          errors (default: disabled)
2094  --enable-docs           Enable building the documentation (default: yes)
2095  --enable-devel-docs     Enable building the developer documentation
2096                          (default: yes)
2097  --enable-unit-tests     Enable building unit test cases (default: auto)
2098  --enable-static[=PKGS]  build static libraries [default=no]
2099  --enable-shared[=PKGS]  build shared libraries [default=yes]
2100  --enable-fast-install[=PKGS]
2101                          optimize for fast installation [default=yes]
2102  --disable-libtool-lock  avoid locking (might break parallel builds)
2103  --disable-largefile     omit support for large files
2104  --enable-agp            Enable AGP support (default: auto)
2105  --enable-werror         Obsolete - use --enable-strict-compilation instead
2106  --enable-debug          Enable debugging (default: disabled)
2107  --enable-listen-tcp     Listen on TCP by default (default:disabled)
2108  --disable-listen-unix   Listen on Unix by default (default:enabled)
2109  --disable-listen-local  Listen on local by default (default:enabled)
2110  --enable-sparkle        Enable updating of X11.app using the Sparkle
2111                          Framework (default: disabled)
2112  --enable-visibility     Enable symbol visibility (default: auto)
2113  --disable-composite     Build Composite extension (default: enabled)
2114  --disable-mitshm        Build SHM extension (default: auto)
2115  --disable-xres          Build XRes extension (default: enabled)
2116  --disable-record        Build Record extension (default: enabled)
2117  --disable-xv            Build Xv extension (default: enabled)
2118  --disable-xvmc          Build XvMC extension (default: enabled)
2119  --disable-dga           Build DGA extension (default: auto)
2120  --disable-screensaver   Build ScreenSaver extension (default: enabled)
2121  --disable-xdmcp         Build XDMCP extension (default: auto)
2122  --disable-xdm-auth-1    Build XDM-Auth-1 extension (default: auto)
2123  --disable-glx           Build GLX extension (default: enabled)
2124  --enable-dri            Build DRI extension (default: auto)
2125  --enable-dri2           Build DRI2 extension (default: auto)
2126  --enable-dri3           Build DRI3 extension (default: auto)
2127  --disable-present       Build Present extension (default: enabled)
2128  --disable-xinerama      Build Xinerama extension (default: enabled)
2129  --disable-xf86vidmode   Build XF86VidMode extension (default: auto)
2130  --disable-xace          Build X-ACE extension (default: enabled)
2131  --enable-xselinux       Build SELinux extension (default: disabled)
2132  --enable-xcsecurity     Build Security extension (default: disabled)
2133  --disable-dbe           Build DBE extension (default: enabled)
2134  --enable-xf86bigfont    Build XF86 Big Font extension (default: disabled)
2135  --disable-dpms          Build DPMS extension (default: enabled)
2136  --enable-config-udev    Build udev support (default: auto)
2137  --enable-config-udev-kms
2138                          Build udev kms support (default: auto)
2139  --disable-config-hal    Build HAL support (default: auto)
2140  --enable-config-wscons  Build wscons config support (default: auto)
2141  --enable-xfree86-utils  Build xfree86 DDX utilities (default: enabled)
2142  --enable-vgahw          Build Xorg with vga access (default: enabled)
2143  --enable-int10-module   Build Xorg with int10 module (default: enabled)
2144  --enable-windowsdri     Build XWin with WindowsDRI extension (default: auto)
2145  --enable-libdrm         Build Xorg with libdrm support (default: enabled)
2146  --disable-clientids     Build Xorg with client ID tracking (default:
2147                          enabled)
2148  --enable-pciaccess      Build Xorg with pciaccess library (default: enabled)
2149  --disable-linux-acpi    Disable building ACPI support on Linux (if
2150                          available).
2151  --disable-linux-apm     Disable building APM support on Linux (if
2152                          available).
2153  --enable-systemd-logind Build systemd-logind support (default: auto)
2154  --enable-suid-wrapper   Build suid-root wrapper for legacy driver support on
2155                          rootless xserver systems (default: no)
2156  --enable-xorg           Build Xorg server (default: auto)
2157  --enable-xvfb           Build Xvfb server (default: yes)
2158  --enable-xnest          Build Xnest server (default: auto)
2159  --enable-xquartz        Build Xquartz server for OS-X (default: auto)
2160  --enable-standalone-xpbproxy
2161                          Build a standalone xpbproxy (in addition to the one
2162                          integrated into Xquartz as a separate thread)
2163                          (default: no)
2164  --enable-xwin           Build XWin server (default: auto)
2165  --enable-glamor         Build glamor dix module (default: auto)
2166  --enable-xf86-input-inputtest
2167                          Build Xorg test input driver (default: yes)
2168  --enable-kdrive         Build kdrive servers (default: no)
2169  --enable-xephyr         Build the kdrive Xephyr server (default: auto)
2170  --enable-libunwind      Use libunwind for backtracing (default: auto)
2171  --disable-xshmfence     Disable xshmfence (default: auto)
2172  --enable-install-setuid Install Xorg server as owned by root with setuid bit
2173                          (default: auto)
2174  --enable-unix-transport Enable UNIX domain socket transport
2175  --enable-tcp-transport  Enable TCP socket transport
2176  --enable-ipv6           Enable IPv6 support
2177  --enable-local-transport
2178                          Enable os-specific local transport
2179  --enable-secure-rpc     Enable Secure RPC
2180  --enable-input-thread   Enable input threads
2181  --disable-xtrans-send-fds
2182                          Use Xtrans support for fd passing (default: auto)
2183
2184Optional Packages:
2185  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
2186  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
2187  --with-doxygen          Use doxygen to regenerate documentation (default:
2188                          auto)
2189  --with-xmlto            Use xmlto to regenerate documentation (default:
2190                          auto)
2191  --with-fop              Use fop to regenerate documentation (default: auto)
2192  --with-xsltproc         Use xsltproc for the transformation of XML documents
2193                          (default: auto)
2194  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
2195                          both]
2196  --with-aix-soname=aix|svr4|both
2197                          shared library versioning (aka "SONAME") variant to
2198                          provide on AIX, [default=aix].
2199  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
2200  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
2201                          compiler's sysroot if not specified).
2202  --with-dtrace=PATH      Enable dtrace probes (default: enabled if dtrace
2203                          found)
2204  --with-int10=BACKEND    int10 backend: vm86, x86emu or stub
2205  --with-vendor-name=VENDOR
2206                          Vendor string reported by the server
2207  --with-vendor-name-short=VENDOR
2208                          Short version of vendor string reported by the
2209                          server
2210  --with-vendor-web=URL   Vendor web address reported by the server
2211  --with-module-dir=DIR   Directory where modules are installed (default:
2212                          $libdir/xorg/modules)
2213  --with-log-dir=DIR      Directory where log files are kept (default:
2214                          $localstatedir/log)
2215  --with-builder-addr=ADDRESS
2216                          Builder address (default:
2217                          xorg@lists.freedesktop.org)
2218  --with-builderstring=BUILDERSTRING
2219                          Additional builder string
2220  --with-fallback-input-driver=$FALLBACK_INPUT_DRIVER
2221                          Input driver fallback if the requested driver for a
2222                          device is unavailable
2223  --with-fontrootdir=DIR  Path to root directory for font files
2224  --with-fontmiscdir=DIR  Path to misc files [FONTROOTDIR/misc]
2225  --with-fontotfdir=DIR   Path to OTF files [FONTROOTDIR/OTF]
2226  --with-fontttfdir=DIR   Path to TTF files [FONTROOTDIR/TTF]
2227  --with-fonttype1dir=DIR Path to Type1 files [FONTROOTDIR/Type1]
2228  --with-font75dpidir=DIR Path to 75dpi files [FONTROOTDIR/75dpi]
2229  --with-font100dpidir=DIR
2230                          Path to 100dpi files [FONTROOTDIR/100dpi]
2231  --with-default-font-path=PATH
2232                          Comma separated list of font dirs
2233  --with-xkb-path=PATH    Path to XKB base dir (default: auto)
2234  --with-xkb-output=PATH  Path to XKB output dir (default:
2235                          ${datadir}/X11/xkb/compiled)
2236  --with-default-xkb-rules=RULES
2237                          Keyboard ruleset (default: base/evdev)
2238  --with-default-xkb-model=MODEL
2239                          Keyboard model (default: pc105)
2240  --with-default-xkb-layout=LAYOUT
2241                          Keyboard layout (default: us)
2242  --with-default-xkb-variant=VARIANT
2243                          Keyboard variant (default: (none))
2244  --with-default-xkb-options=OPTIONS
2245                          Keyboard layout options (default: (none))
2246  --with-serverconfig-path=PATH
2247                          Directory where ancillary server config files are
2248                          installed (default: ${libdir}/xorg)
2249  --with-apple-applications-dir=PATH
2250                          Path to the Applications directory (default:
2251                          /Applications/Utilities)
2252  --with-apple-application-name=NAME
2253                          Name for the .app (default: X11)
2254  --with-bundle-id-prefix=RDNS_PREFIX
2255                          Prefix to use for bundle identifiers (default:
2256                          org.x)
2257  --with-bundle-version=VERSION
2258                          Version to use for X11.app's CFBundleVersion
2259                          (default: 21.1.7)
2260  --with-bundle-version-string=VERSION
2261                          Version to use for X11.app's
2262                          CFBundleShortVersionString (default: 21.1.7)
2263  --with-sparkle-feed-url=URL
2264                          URL for the Sparkle feed (default:
2265                          https://www.xquartz.org/releases/sparkle/release.xml)
2266  --with-khronos-spec-dir=PATH
2267                          Path to Khronos OpenGL registry database files
2268                          (default: auto)
2269  --with-systemd-daemon   support systemd socket activation (default: auto)
2270  --with-xkb-bin-directory=DIR
2271                          Directory containing xkbcomp program (default: auto)
2272  --with-sha1=libc|libmd|libnettle|libgcrypt|libcrypto|libsha1|CommonCrypto|CryptoAPI
2273                          choose SHA1 implementation
2274
2275Some influential environment variables:
2276  CC          C compiler command
2277  CFLAGS      C compiler flags
2278  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2279              nonstandard directory <lib dir>
2280  LIBS        libraries to pass to the linker, e.g. -l<library>
2281  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2282              you have headers in a nonstandard directory <include dir>
2283  PKG_CONFIG  path to pkg-config utility
2284  PKG_CONFIG_PATH
2285              directories to add to pkg-config's search path
2286  PKG_CONFIG_LIBDIR
2287              path overriding pkg-config's built-in search path
2288  DOXYGEN     Path to doxygen command
2289  DOT         Path to the dot graphics utility
2290  XMLTO       Path to xmlto command
2291  FOP         Path to fop command
2292  XSLTPROC    Path to xsltproc command
2293  XORG_MALLOC_DEBUG_ENV
2294              Environment variables to enable memory checking in tests
2295  CCAS        assembler compiler command (defaults to CC)
2296  CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
2297  LT_SYS_LIBRARY_PATH
2298              User-defined run-time library search path.
2299  YACC        The `Yet Another Compiler Compiler' implementation to use.
2300              Defaults to the first program found out of: `bison -y', `byacc',
2301              `yacc'.
2302  YFLAGS      The list of arguments that will be passed by default to $YACC.
2303              This script will default YFLAGS to the empty string to avoid a
2304              default value of `-d' given by some make applications.
2305  CPP         C preprocessor
2306  PIXMAN_CFLAGS
2307              C compiler flags for PIXMAN, overriding pkg-config
2308  PIXMAN_LIBS linker flags for PIXMAN, overriding pkg-config
2309  SYSTEMD_DAEMON_CFLAGS
2310              C compiler flags for SYSTEMD_DAEMON, overriding pkg-config
2311  SYSTEMD_DAEMON_LIBS
2312              linker flags for SYSTEMD_DAEMON, overriding pkg-config
2313  UDEV_CFLAGS C compiler flags for UDEV, overriding pkg-config
2314  UDEV_LIBS   linker flags for UDEV, overriding pkg-config
2315  DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
2316  DBUS_LIBS   linker flags for DBUS, overriding pkg-config
2317  HAL_CFLAGS  C compiler flags for HAL, overriding pkg-config
2318  HAL_LIBS    linker flags for HAL, overriding pkg-config
2319  DRI2PROTO_CFLAGS
2320              C compiler flags for DRI2PROTO, overriding pkg-config
2321  DRI2PROTO_LIBS
2322              linker flags for DRI2PROTO, overriding pkg-config
2323  DRI3PROTO_CFLAGS
2324              C compiler flags for DRI3PROTO, overriding pkg-config
2325  DRI3PROTO_LIBS
2326              linker flags for DRI3PROTO, overriding pkg-config
2327  XSHMFENCE_CFLAGS
2328              C compiler flags for XSHMFENCE, overriding pkg-config
2329  XSHMFENCE_LIBS
2330              linker flags for XSHMFENCE, overriding pkg-config
2331  LIBDRM_CFLAGS
2332              C compiler flags for LIBDRM, overriding pkg-config
2333  LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config
2334  XLIB_CFLAGS C compiler flags for XLIB, overriding pkg-config
2335  XLIB_LIBS   linker flags for XLIB, overriding pkg-config
2336  GL_CFLAGS   C compiler flags for GL, overriding pkg-config
2337  GL_LIBS     linker flags for GL, overriding pkg-config
2338  SELINUX_CFLAGS
2339              C compiler flags for SELINUX, overriding pkg-config
2340  SELINUX_LIBS
2341              linker flags for SELINUX, overriding pkg-config
2342  XDMCP_CFLAGS
2343              C compiler flags for XDMCP, overriding pkg-config
2344  XDMCP_LIBS  linker flags for XDMCP, overriding pkg-config
2345  LIBSHA1_CFLAGS
2346              C compiler flags for LIBSHA1, overriding pkg-config
2347  LIBSHA1_LIBS
2348              linker flags for LIBSHA1, overriding pkg-config
2349  OPENSSL_CFLAGS
2350              C compiler flags for OPENSSL, overriding pkg-config
2351  OPENSSL_LIBS
2352              linker flags for OPENSSL, overriding pkg-config
2353  XSERVERCFLAGS_CFLAGS
2354              C compiler flags for XSERVERCFLAGS, overriding pkg-config
2355  XSERVERCFLAGS_LIBS
2356              linker flags for XSERVERCFLAGS, overriding pkg-config
2357  XSERVERLIBS_CFLAGS
2358              C compiler flags for XSERVERLIBS, overriding pkg-config
2359  XSERVERLIBS_LIBS
2360              linker flags for XSERVERLIBS, overriding pkg-config
2361  LIBUNWIND_CFLAGS
2362              C compiler flags for LIBUNWIND, overriding pkg-config
2363  LIBUNWIND_LIBS
2364              linker flags for LIBUNWIND, overriding pkg-config
2365  XNESTMODULES_CFLAGS
2366              C compiler flags for XNESTMODULES, overriding pkg-config
2367  XNESTMODULES_LIBS
2368              linker flags for XNESTMODULES, overriding pkg-config
2369  LIBXCVT_CFLAGS
2370              C compiler flags for LIBXCVT, overriding pkg-config
2371  LIBXCVT_LIBS
2372              linker flags for LIBXCVT, overriding pkg-config
2373  PCIACCESS_CFLAGS
2374              C compiler flags for PCIACCESS, overriding pkg-config
2375  PCIACCESS_LIBS
2376              linker flags for PCIACCESS, overriding pkg-config
2377  DGA_CFLAGS  C compiler flags for DGA, overriding pkg-config
2378  DGA_LIBS    linker flags for DGA, overriding pkg-config
2379  XORG_MODULES_CFLAGS
2380              C compiler flags for XORG_MODULES, overriding pkg-config
2381  XORG_MODULES_LIBS
2382              linker flags for XORG_MODULES, overriding pkg-config
2383  GLAMOR_CFLAGS
2384              C compiler flags for GLAMOR, overriding pkg-config
2385  GLAMOR_LIBS linker flags for GLAMOR, overriding pkg-config
2386  GBM_CFLAGS  C compiler flags for GBM, overriding pkg-config
2387  GBM_LIBS    linker flags for GBM, overriding pkg-config
2388  XWINMODULES_CFLAGS
2389              C compiler flags for XWINMODULES, overriding pkg-config
2390  XWINMODULES_LIBS
2391              linker flags for XWINMODULES, overriding pkg-config
2392  WINDOWSDRI_CFLAGS
2393              C compiler flags for WINDOWSDRI, overriding pkg-config
2394  WINDOWSDRI_LIBS
2395              linker flags for WINDOWSDRI, overriding pkg-config
2396  KHRONOS_OPENGL_REGISTRY_CFLAGS
2397              C compiler flags for KHRONOS_OPENGL_REGISTRY, overriding
2398              pkg-config
2399  KHRONOS_OPENGL_REGISTRY_LIBS
2400              linker flags for KHRONOS_OPENGL_REGISTRY, overriding pkg-config
2401  XPBPROXY_CFLAGS
2402              C compiler flags for XPBPROXY, overriding pkg-config
2403  XPBPROXY_LIBS
2404              linker flags for XPBPROXY, overriding pkg-config
2405  XEPHYR_CFLAGS
2406              C compiler flags for XEPHYR, overriding pkg-config
2407  XEPHYR_LIBS linker flags for XEPHYR, overriding pkg-config
2408
2409Use these variables to override the choices made by `configure' or to help
2410it to find libraries and programs with nonstandard names/locations.
2411
2412Report bugs to <https://gitlab.freedesktop.org/xorg/xserver/issues>.
2413_ACEOF
2414ac_status=$?
2415fi
2416
2417if test "$ac_init_help" = "recursive"; then
2418  # If there are subdirs, report their specific --help.
2419  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2420    test -d "$ac_dir" ||
2421      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2422      continue
2423    ac_builddir=.
2424
2425case "$ac_dir" in
2426.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2427*)
2428  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
2429  # A ".." for each directory in $ac_dir_suffix.
2430  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2431  case $ac_top_builddir_sub in
2432  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2433  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2434  esac ;;
2435esac
2436ac_abs_top_builddir=$ac_pwd
2437ac_abs_builddir=$ac_pwd$ac_dir_suffix
2438# for backward compatibility:
2439ac_top_builddir=$ac_top_build_prefix
2440
2441case $srcdir in
2442  .)  # We are building in place.
2443    ac_srcdir=.
2444    ac_top_srcdir=$ac_top_builddir_sub
2445    ac_abs_top_srcdir=$ac_pwd ;;
2446  [\\/]* | ?:[\\/]* )  # Absolute name.
2447    ac_srcdir=$srcdir$ac_dir_suffix;
2448    ac_top_srcdir=$srcdir
2449    ac_abs_top_srcdir=$srcdir ;;
2450  *) # Relative name.
2451    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2452    ac_top_srcdir=$ac_top_build_prefix$srcdir
2453    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2454esac
2455ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2456
2457    cd "$ac_dir" || { ac_status=$?; continue; }
2458    # Check for configure.gnu first; this name is used for a wrapper for
2459    # Metaconfig's "Configure" on case-insensitive file systems.
2460    if test -f "$ac_srcdir/configure.gnu"; then
2461      echo &&
2462      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2463    elif test -f "$ac_srcdir/configure"; then
2464      echo &&
2465      $SHELL "$ac_srcdir/configure" --help=recursive
2466    else
2467      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2468    fi || ac_status=$?
2469    cd "$ac_pwd" || { ac_status=$?; break; }
2470  done
2471fi
2472
2473test -n "$ac_init_help" && exit $ac_status
2474if $ac_init_version; then
2475  cat <<\_ACEOF
2476xorg-server configure 21.1.7
2477generated by GNU Autoconf 2.71
2478
2479Copyright (C) 2021 Free Software Foundation, Inc.
2480This configure script is free software; the Free Software Foundation
2481gives unlimited permission to copy, distribute and modify it.
2482_ACEOF
2483  exit
2484fi
2485
2486## ------------------------ ##
2487## Autoconf initialization. ##
2488## ------------------------ ##
2489
2490# ac_fn_c_try_compile LINENO
2491# --------------------------
2492# Try to compile conftest.$ac_ext, and return whether this succeeded.
2493ac_fn_c_try_compile ()
2494{
2495  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2496  rm -f conftest.$ac_objext conftest.beam
2497  if { { ac_try="$ac_compile"
2498case "(($ac_try" in
2499  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2500  *) ac_try_echo=$ac_try;;
2501esac
2502eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2503printf "%s\n" "$ac_try_echo"; } >&5
2504  (eval "$ac_compile") 2>conftest.err
2505  ac_status=$?
2506  if test -s conftest.err; then
2507    grep -v '^ *+' conftest.err >conftest.er1
2508    cat conftest.er1 >&5
2509    mv -f conftest.er1 conftest.err
2510  fi
2511  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2512  test $ac_status = 0; } && {
2513	 test -z "$ac_c_werror_flag" ||
2514	 test ! -s conftest.err
2515       } && test -s conftest.$ac_objext
2516then :
2517  ac_retval=0
2518else $as_nop
2519  printf "%s\n" "$as_me: failed program was:" >&5
2520sed 's/^/| /' conftest.$ac_ext >&5
2521
2522	ac_retval=1
2523fi
2524  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2525  as_fn_set_status $ac_retval
2526
2527} # ac_fn_c_try_compile
2528
2529# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2530# -------------------------------------------------------
2531# Tests whether HEADER exists and can be compiled using the include files in
2532# INCLUDES, setting the cache variable VAR accordingly.
2533ac_fn_c_check_header_compile ()
2534{
2535  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2536  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2537printf %s "checking for $2... " >&6; }
2538if eval test \${$3+y}
2539then :
2540  printf %s "(cached) " >&6
2541else $as_nop
2542  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2543/* end confdefs.h.  */
2544$4
2545#include <$2>
2546_ACEOF
2547if ac_fn_c_try_compile "$LINENO"
2548then :
2549  eval "$3=yes"
2550else $as_nop
2551  eval "$3=no"
2552fi
2553rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2554fi
2555eval ac_res=\$$3
2556	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2557printf "%s\n" "$ac_res" >&6; }
2558  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2559
2560} # ac_fn_c_check_header_compile
2561
2562# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
2563# ------------------------------------------------------------------
2564# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2565# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
2566ac_fn_check_decl ()
2567{
2568  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2569  as_decl_name=`echo $2|sed 's/ *(.*//'`
2570  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2571printf %s "checking whether $as_decl_name is declared... " >&6; }
2572if eval test \${$3+y}
2573then :
2574  printf %s "(cached) " >&6
2575else $as_nop
2576  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2577  eval ac_save_FLAGS=\$$6
2578  as_fn_append $6 " $5"
2579  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2580/* end confdefs.h.  */
2581$4
2582int
2583main (void)
2584{
2585#ifndef $as_decl_name
2586#ifdef __cplusplus
2587  (void) $as_decl_use;
2588#else
2589  (void) $as_decl_name;
2590#endif
2591#endif
2592
2593  ;
2594  return 0;
2595}
2596_ACEOF
2597if ac_fn_c_try_compile "$LINENO"
2598then :
2599  eval "$3=yes"
2600else $as_nop
2601  eval "$3=no"
2602fi
2603rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2604  eval $6=\$ac_save_FLAGS
2605
2606fi
2607eval ac_res=\$$3
2608	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2609printf "%s\n" "$ac_res" >&6; }
2610  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2611
2612} # ac_fn_check_decl
2613
2614# ac_fn_c_try_link LINENO
2615# -----------------------
2616# Try to link conftest.$ac_ext, and return whether this succeeded.
2617ac_fn_c_try_link ()
2618{
2619  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2620  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
2621  if { { ac_try="$ac_link"
2622case "(($ac_try" in
2623  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2624  *) ac_try_echo=$ac_try;;
2625esac
2626eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2627printf "%s\n" "$ac_try_echo"; } >&5
2628  (eval "$ac_link") 2>conftest.err
2629  ac_status=$?
2630  if test -s conftest.err; then
2631    grep -v '^ *+' conftest.err >conftest.er1
2632    cat conftest.er1 >&5
2633    mv -f conftest.er1 conftest.err
2634  fi
2635  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2636  test $ac_status = 0; } && {
2637	 test -z "$ac_c_werror_flag" ||
2638	 test ! -s conftest.err
2639       } && test -s conftest$ac_exeext && {
2640	 test "$cross_compiling" = yes ||
2641	 test -x conftest$ac_exeext
2642       }
2643then :
2644  ac_retval=0
2645else $as_nop
2646  printf "%s\n" "$as_me: failed program was:" >&5
2647sed 's/^/| /' conftest.$ac_ext >&5
2648
2649	ac_retval=1
2650fi
2651  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2652  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2653  # interfere with the next link command; also delete a directory that is
2654  # left behind by Apple's compiler.  We do this before executing the actions.
2655  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2656  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2657  as_fn_set_status $ac_retval
2658
2659} # ac_fn_c_try_link
2660
2661# ac_fn_c_check_func LINENO FUNC VAR
2662# ----------------------------------
2663# Tests whether FUNC exists, setting the cache variable VAR accordingly
2664ac_fn_c_check_func ()
2665{
2666  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2667  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2668printf %s "checking for $2... " >&6; }
2669if eval test \${$3+y}
2670then :
2671  printf %s "(cached) " >&6
2672else $as_nop
2673  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2674/* end confdefs.h.  */
2675/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2676   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2677#define $2 innocuous_$2
2678
2679/* System header to define __stub macros and hopefully few prototypes,
2680   which can conflict with char $2 (); below.  */
2681
2682#include <limits.h>
2683#undef $2
2684
2685/* Override any GCC internal prototype to avoid an error.
2686   Use char because int might match the return type of a GCC
2687   builtin and then its argument prototype would still apply.  */
2688#ifdef __cplusplus
2689extern "C"
2690#endif
2691char $2 ();
2692/* The GNU C library defines this for functions which it implements
2693    to always fail with ENOSYS.  Some functions are actually named
2694    something starting with __ and the normal name is an alias.  */
2695#if defined __stub_$2 || defined __stub___$2
2696choke me
2697#endif
2698
2699int
2700main (void)
2701{
2702return $2 ();
2703  ;
2704  return 0;
2705}
2706_ACEOF
2707if ac_fn_c_try_link "$LINENO"
2708then :
2709  eval "$3=yes"
2710else $as_nop
2711  eval "$3=no"
2712fi
2713rm -f core conftest.err conftest.$ac_objext conftest.beam \
2714    conftest$ac_exeext conftest.$ac_ext
2715fi
2716eval ac_res=\$$3
2717	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2718printf "%s\n" "$ac_res" >&6; }
2719  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2720
2721} # ac_fn_c_check_func
2722
2723# ac_fn_c_try_cpp LINENO
2724# ----------------------
2725# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2726ac_fn_c_try_cpp ()
2727{
2728  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2729  if { { ac_try="$ac_cpp conftest.$ac_ext"
2730case "(($ac_try" in
2731  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2732  *) ac_try_echo=$ac_try;;
2733esac
2734eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2735printf "%s\n" "$ac_try_echo"; } >&5
2736  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2737  ac_status=$?
2738  if test -s conftest.err; then
2739    grep -v '^ *+' conftest.err >conftest.er1
2740    cat conftest.er1 >&5
2741    mv -f conftest.er1 conftest.err
2742  fi
2743  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2744  test $ac_status = 0; } > conftest.i && {
2745	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2746	 test ! -s conftest.err
2747       }
2748then :
2749  ac_retval=0
2750else $as_nop
2751  printf "%s\n" "$as_me: failed program was:" >&5
2752sed 's/^/| /' conftest.$ac_ext >&5
2753
2754    ac_retval=1
2755fi
2756  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2757  as_fn_set_status $ac_retval
2758
2759} # ac_fn_c_try_cpp
2760
2761# ac_fn_c_try_run LINENO
2762# ----------------------
2763# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
2764# executables *can* be run.
2765ac_fn_c_try_run ()
2766{
2767  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2768  if { { ac_try="$ac_link"
2769case "(($ac_try" in
2770  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2771  *) ac_try_echo=$ac_try;;
2772esac
2773eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2774printf "%s\n" "$ac_try_echo"; } >&5
2775  (eval "$ac_link") 2>&5
2776  ac_status=$?
2777  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2778  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2779  { { case "(($ac_try" in
2780  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2781  *) ac_try_echo=$ac_try;;
2782esac
2783eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2784printf "%s\n" "$ac_try_echo"; } >&5
2785  (eval "$ac_try") 2>&5
2786  ac_status=$?
2787  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2788  test $ac_status = 0; }; }
2789then :
2790  ac_retval=0
2791else $as_nop
2792  printf "%s\n" "$as_me: program exited with status $ac_status" >&5
2793       printf "%s\n" "$as_me: failed program was:" >&5
2794sed 's/^/| /' conftest.$ac_ext >&5
2795
2796       ac_retval=$ac_status
2797fi
2798  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2799  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2800  as_fn_set_status $ac_retval
2801
2802} # ac_fn_c_try_run
2803
2804# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2805# --------------------------------------------
2806# Tries to find the compile-time value of EXPR in a program that includes
2807# INCLUDES, setting VAR accordingly. Returns whether the value could be
2808# computed
2809ac_fn_c_compute_int ()
2810{
2811  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2812  if test "$cross_compiling" = yes; then
2813    # Depending upon the size, compute the lo and hi bounds.
2814cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2815/* end confdefs.h.  */
2816$4
2817int
2818main (void)
2819{
2820static int test_array [1 - 2 * !(($2) >= 0)];
2821test_array [0] = 0;
2822return test_array [0];
2823
2824  ;
2825  return 0;
2826}
2827_ACEOF
2828if ac_fn_c_try_compile "$LINENO"
2829then :
2830  ac_lo=0 ac_mid=0
2831  while :; do
2832    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2833/* end confdefs.h.  */
2834$4
2835int
2836main (void)
2837{
2838static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2839test_array [0] = 0;
2840return test_array [0];
2841
2842  ;
2843  return 0;
2844}
2845_ACEOF
2846if ac_fn_c_try_compile "$LINENO"
2847then :
2848  ac_hi=$ac_mid; break
2849else $as_nop
2850  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2851			if test $ac_lo -le $ac_mid; then
2852			  ac_lo= ac_hi=
2853			  break
2854			fi
2855			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2856fi
2857rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2858  done
2859else $as_nop
2860  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2861/* end confdefs.h.  */
2862$4
2863int
2864main (void)
2865{
2866static int test_array [1 - 2 * !(($2) < 0)];
2867test_array [0] = 0;
2868return test_array [0];
2869
2870  ;
2871  return 0;
2872}
2873_ACEOF
2874if ac_fn_c_try_compile "$LINENO"
2875then :
2876  ac_hi=-1 ac_mid=-1
2877  while :; do
2878    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2879/* end confdefs.h.  */
2880$4
2881int
2882main (void)
2883{
2884static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2885test_array [0] = 0;
2886return test_array [0];
2887
2888  ;
2889  return 0;
2890}
2891_ACEOF
2892if ac_fn_c_try_compile "$LINENO"
2893then :
2894  ac_lo=$ac_mid; break
2895else $as_nop
2896  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2897			if test $ac_mid -le $ac_hi; then
2898			  ac_lo= ac_hi=
2899			  break
2900			fi
2901			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2902fi
2903rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2904  done
2905else $as_nop
2906  ac_lo= ac_hi=
2907fi
2908rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2909fi
2910rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2911# Binary search between lo and hi bounds.
2912while test "x$ac_lo" != "x$ac_hi"; do
2913  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2914  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2915/* end confdefs.h.  */
2916$4
2917int
2918main (void)
2919{
2920static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2921test_array [0] = 0;
2922return test_array [0];
2923
2924  ;
2925  return 0;
2926}
2927_ACEOF
2928if ac_fn_c_try_compile "$LINENO"
2929then :
2930  ac_hi=$ac_mid
2931else $as_nop
2932  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2933fi
2934rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2935done
2936case $ac_lo in #((
2937?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2938'') ac_retval=1 ;;
2939esac
2940  else
2941    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2942/* end confdefs.h.  */
2943$4
2944static long int longval (void) { return $2; }
2945static unsigned long int ulongval (void) { return $2; }
2946#include <stdio.h>
2947#include <stdlib.h>
2948int
2949main (void)
2950{
2951
2952  FILE *f = fopen ("conftest.val", "w");
2953  if (! f)
2954    return 1;
2955  if (($2) < 0)
2956    {
2957      long int i = longval ();
2958      if (i != ($2))
2959	return 1;
2960      fprintf (f, "%ld", i);
2961    }
2962  else
2963    {
2964      unsigned long int i = ulongval ();
2965      if (i != ($2))
2966	return 1;
2967      fprintf (f, "%lu", i);
2968    }
2969  /* Do not output a trailing newline, as this causes \r\n confusion
2970     on some platforms.  */
2971  return ferror (f) || fclose (f) != 0;
2972
2973  ;
2974  return 0;
2975}
2976_ACEOF
2977if ac_fn_c_try_run "$LINENO"
2978then :
2979  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2980else $as_nop
2981  ac_retval=1
2982fi
2983rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2984  conftest.$ac_objext conftest.beam conftest.$ac_ext
2985rm -f conftest.val
2986
2987  fi
2988  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2989  as_fn_set_status $ac_retval
2990
2991} # ac_fn_c_compute_int
2992
2993# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2994# -------------------------------------------
2995# Tests whether TYPE exists after having included INCLUDES, setting cache
2996# variable VAR accordingly.
2997ac_fn_c_check_type ()
2998{
2999  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3000  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3001printf %s "checking for $2... " >&6; }
3002if eval test \${$3+y}
3003then :
3004  printf %s "(cached) " >&6
3005else $as_nop
3006  eval "$3=no"
3007  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3008/* end confdefs.h.  */
3009$4
3010int
3011main (void)
3012{
3013if (sizeof ($2))
3014	 return 0;
3015  ;
3016  return 0;
3017}
3018_ACEOF
3019if ac_fn_c_try_compile "$LINENO"
3020then :
3021  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3022/* end confdefs.h.  */
3023$4
3024int
3025main (void)
3026{
3027if (sizeof (($2)))
3028	    return 0;
3029  ;
3030  return 0;
3031}
3032_ACEOF
3033if ac_fn_c_try_compile "$LINENO"
3034then :
3035
3036else $as_nop
3037  eval "$3=yes"
3038fi
3039rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3040fi
3041rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3042fi
3043eval ac_res=\$$3
3044	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3045printf "%s\n" "$ac_res" >&6; }
3046  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3047
3048} # ac_fn_c_check_type
3049
3050# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
3051# ----------------------------------------------------
3052# Tries to find if the field MEMBER exists in type AGGR, after including
3053# INCLUDES, setting cache variable VAR accordingly.
3054ac_fn_c_check_member ()
3055{
3056  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3057  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
3058printf %s "checking for $2.$3... " >&6; }
3059if eval test \${$4+y}
3060then :
3061  printf %s "(cached) " >&6
3062else $as_nop
3063  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3064/* end confdefs.h.  */
3065$5
3066int
3067main (void)
3068{
3069static $2 ac_aggr;
3070if (ac_aggr.$3)
3071return 0;
3072  ;
3073  return 0;
3074}
3075_ACEOF
3076if ac_fn_c_try_compile "$LINENO"
3077then :
3078  eval "$4=yes"
3079else $as_nop
3080  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3081/* end confdefs.h.  */
3082$5
3083int
3084main (void)
3085{
3086static $2 ac_aggr;
3087if (sizeof ac_aggr.$3)
3088return 0;
3089  ;
3090  return 0;
3091}
3092_ACEOF
3093if ac_fn_c_try_compile "$LINENO"
3094then :
3095  eval "$4=yes"
3096else $as_nop
3097  eval "$4=no"
3098fi
3099rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3100fi
3101rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3102fi
3103eval ac_res=\$$4
3104	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3105printf "%s\n" "$ac_res" >&6; }
3106  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3107
3108} # ac_fn_c_check_member
3109ac_configure_args_raw=
3110for ac_arg
3111do
3112  case $ac_arg in
3113  *\'*)
3114    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3115  esac
3116  as_fn_append ac_configure_args_raw " '$ac_arg'"
3117done
3118
3119case $ac_configure_args_raw in
3120  *$as_nl*)
3121    ac_safe_unquote= ;;
3122  *)
3123    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
3124    ac_unsafe_a="$ac_unsafe_z#~"
3125    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
3126    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
3127esac
3128
3129cat >config.log <<_ACEOF
3130This file contains any messages produced by compilers while
3131running configure, to aid debugging if configure makes a mistake.
3132
3133It was created by xorg-server $as_me 21.1.7, which was
3134generated by GNU Autoconf 2.71.  Invocation command line was
3135
3136  $ $0$ac_configure_args_raw
3137
3138_ACEOF
3139exec 5>>config.log
3140{
3141cat <<_ASUNAME
3142## --------- ##
3143## Platform. ##
3144## --------- ##
3145
3146hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3147uname -m = `(uname -m) 2>/dev/null || echo unknown`
3148uname -r = `(uname -r) 2>/dev/null || echo unknown`
3149uname -s = `(uname -s) 2>/dev/null || echo unknown`
3150uname -v = `(uname -v) 2>/dev/null || echo unknown`
3151
3152/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3153/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
3154
3155/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
3156/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
3157/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3158/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
3159/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
3160/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
3161/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
3162
3163_ASUNAME
3164
3165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3166for as_dir in $PATH
3167do
3168  IFS=$as_save_IFS
3169  case $as_dir in #(((
3170    '') as_dir=./ ;;
3171    */) ;;
3172    *) as_dir=$as_dir/ ;;
3173  esac
3174    printf "%s\n" "PATH: $as_dir"
3175  done
3176IFS=$as_save_IFS
3177
3178} >&5
3179
3180cat >&5 <<_ACEOF
3181
3182
3183## ----------- ##
3184## Core tests. ##
3185## ----------- ##
3186
3187_ACEOF
3188
3189
3190# Keep a trace of the command line.
3191# Strip out --no-create and --no-recursion so they do not pile up.
3192# Strip out --silent because we don't want to record it for future runs.
3193# Also quote any args containing shell meta-characters.
3194# Make two passes to allow for proper duplicate-argument suppression.
3195ac_configure_args=
3196ac_configure_args0=
3197ac_configure_args1=
3198ac_must_keep_next=false
3199for ac_pass in 1 2
3200do
3201  for ac_arg
3202  do
3203    case $ac_arg in
3204    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3205    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3206    | -silent | --silent | --silen | --sile | --sil)
3207      continue ;;
3208    *\'*)
3209      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3210    esac
3211    case $ac_pass in
3212    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3213    2)
3214      as_fn_append ac_configure_args1 " '$ac_arg'"
3215      if test $ac_must_keep_next = true; then
3216	ac_must_keep_next=false # Got value, back to normal.
3217      else
3218	case $ac_arg in
3219	  *=* | --config-cache | -C | -disable-* | --disable-* \
3220	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3221	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3222	  | -with-* | --with-* | -without-* | --without-* | --x)
3223	    case "$ac_configure_args0 " in
3224	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3225	    esac
3226	    ;;
3227	  -* ) ac_must_keep_next=true ;;
3228	esac
3229      fi
3230      as_fn_append ac_configure_args " '$ac_arg'"
3231      ;;
3232    esac
3233  done
3234done
3235{ ac_configure_args0=; unset ac_configure_args0;}
3236{ ac_configure_args1=; unset ac_configure_args1;}
3237
3238# When interrupted or exit'd, cleanup temporary files, and complete
3239# config.log.  We remove comments because anyway the quotes in there
3240# would cause problems or look ugly.
3241# WARNING: Use '\'' to represent an apostrophe within the trap.
3242# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3243trap 'exit_status=$?
3244  # Sanitize IFS.
3245  IFS=" ""	$as_nl"
3246  # Save into config.log some information that might help in debugging.
3247  {
3248    echo
3249
3250    printf "%s\n" "## ---------------- ##
3251## Cache variables. ##
3252## ---------------- ##"
3253    echo
3254    # The following way of writing the cache mishandles newlines in values,
3255(
3256  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3257    eval ac_val=\$$ac_var
3258    case $ac_val in #(
3259    *${as_nl}*)
3260      case $ac_var in #(
3261      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3262printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3263      esac
3264      case $ac_var in #(
3265      _ | IFS | as_nl) ;; #(
3266      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3267      *) { eval $ac_var=; unset $ac_var;} ;;
3268      esac ;;
3269    esac
3270  done
3271  (set) 2>&1 |
3272    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3273    *${as_nl}ac_space=\ *)
3274      sed -n \
3275	"s/'\''/'\''\\\\'\'''\''/g;
3276	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3277      ;; #(
3278    *)
3279      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3280      ;;
3281    esac |
3282    sort
3283)
3284    echo
3285
3286    printf "%s\n" "## ----------------- ##
3287## Output variables. ##
3288## ----------------- ##"
3289    echo
3290    for ac_var in $ac_subst_vars
3291    do
3292      eval ac_val=\$$ac_var
3293      case $ac_val in
3294      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3295      esac
3296      printf "%s\n" "$ac_var='\''$ac_val'\''"
3297    done | sort
3298    echo
3299
3300    if test -n "$ac_subst_files"; then
3301      printf "%s\n" "## ------------------- ##
3302## File substitutions. ##
3303## ------------------- ##"
3304      echo
3305      for ac_var in $ac_subst_files
3306      do
3307	eval ac_val=\$$ac_var
3308	case $ac_val in
3309	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3310	esac
3311	printf "%s\n" "$ac_var='\''$ac_val'\''"
3312      done | sort
3313      echo
3314    fi
3315
3316    if test -s confdefs.h; then
3317      printf "%s\n" "## ----------- ##
3318## confdefs.h. ##
3319## ----------- ##"
3320      echo
3321      cat confdefs.h
3322      echo
3323    fi
3324    test "$ac_signal" != 0 &&
3325      printf "%s\n" "$as_me: caught signal $ac_signal"
3326    printf "%s\n" "$as_me: exit $exit_status"
3327  } >&5
3328  rm -f core *.core core.conftest.* &&
3329    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3330    exit $exit_status
3331' 0
3332for ac_signal in 1 2 13 15; do
3333  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3334done
3335ac_signal=0
3336
3337# confdefs.h avoids OS command line length limits that DEFS can exceed.
3338rm -f -r conftest* confdefs.h
3339
3340printf "%s\n" "/* confdefs.h */" > confdefs.h
3341
3342# Predefined preprocessor variables.
3343
3344printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
3345
3346printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
3347
3348printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
3349
3350printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
3351
3352printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
3353
3354printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
3355
3356
3357# Let the site file select an alternate cache file if it wants to.
3358# Prefer an explicitly selected file to automatically selected ones.
3359if test -n "$CONFIG_SITE"; then
3360  ac_site_files="$CONFIG_SITE"
3361elif test "x$prefix" != xNONE; then
3362  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
3363else
3364  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
3365fi
3366
3367for ac_site_file in $ac_site_files
3368do
3369  case $ac_site_file in #(
3370  */*) :
3371     ;; #(
3372  *) :
3373    ac_site_file=./$ac_site_file ;;
3374esac
3375  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
3376    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3377printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
3378    sed 's/^/| /' "$ac_site_file" >&5
3379    . "$ac_site_file" \
3380      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3381printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3382as_fn_error $? "failed to load site script $ac_site_file
3383See \`config.log' for more details" "$LINENO" 5; }
3384  fi
3385done
3386
3387if test -r "$cache_file"; then
3388  # Some versions of bash will fail to source /dev/null (special files
3389  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3390  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3391    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3392printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
3393    case $cache_file in
3394      [\\/]* | ?:[\\/]* ) . "$cache_file";;
3395      *)                      . "./$cache_file";;
3396    esac
3397  fi
3398else
3399  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3400printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
3401  >$cache_file
3402fi
3403
3404as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
3405# Test code for whether the C compiler supports C89 (global declarations)
3406ac_c_conftest_c89_globals='
3407/* Does the compiler advertise C89 conformance?
3408   Do not test the value of __STDC__, because some compilers set it to 0
3409   while being otherwise adequately conformant. */
3410#if !defined __STDC__
3411# error "Compiler does not advertise C89 conformance"
3412#endif
3413
3414#include <stddef.h>
3415#include <stdarg.h>
3416struct stat;
3417/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
3418struct buf { int x; };
3419struct buf * (*rcsopen) (struct buf *, struct stat *, int);
3420static char *e (p, i)
3421     char **p;
3422     int i;
3423{
3424  return p[i];
3425}
3426static char *f (char * (*g) (char **, int), char **p, ...)
3427{
3428  char *s;
3429  va_list v;
3430  va_start (v,p);
3431  s = g (p, va_arg (v,int));
3432  va_end (v);
3433  return s;
3434}
3435
3436/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3437   function prototypes and stuff, but not \xHH hex character constants.
3438   These do not provoke an error unfortunately, instead are silently treated
3439   as an "x".  The following induces an error, until -std is added to get
3440   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
3441   array size at least.  It is necessary to write \x00 == 0 to get something
3442   that is true only with -std.  */
3443int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
3444
3445/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3446   inside strings and character constants.  */
3447#define FOO(x) '\''x'\''
3448int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
3449
3450int test (int i, double x);
3451struct s1 {int (*f) (int a);};
3452struct s2 {int (*f) (double a);};
3453int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
3454               int, int);'
3455
3456# Test code for whether the C compiler supports C89 (body of main).
3457ac_c_conftest_c89_main='
3458ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
3459'
3460
3461# Test code for whether the C compiler supports C99 (global declarations)
3462ac_c_conftest_c99_globals='
3463// Does the compiler advertise C99 conformance?
3464#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
3465# error "Compiler does not advertise C99 conformance"
3466#endif
3467
3468#include <stdbool.h>
3469extern int puts (const char *);
3470extern int printf (const char *, ...);
3471extern int dprintf (int, const char *, ...);
3472extern void *malloc (size_t);
3473
3474// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3475// dprintf is used instead of fprintf to avoid needing to declare
3476// FILE and stderr.
3477#define debug(...) dprintf (2, __VA_ARGS__)
3478#define showlist(...) puts (#__VA_ARGS__)
3479#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3480static void
3481test_varargs_macros (void)
3482{
3483  int x = 1234;
3484  int y = 5678;
3485  debug ("Flag");
3486  debug ("X = %d\n", x);
3487  showlist (The first, second, and third items.);
3488  report (x>y, "x is %d but y is %d", x, y);
3489}
3490
3491// Check long long types.
3492#define BIG64 18446744073709551615ull
3493#define BIG32 4294967295ul
3494#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3495#if !BIG_OK
3496  #error "your preprocessor is broken"
3497#endif
3498#if BIG_OK
3499#else
3500  #error "your preprocessor is broken"
3501#endif
3502static long long int bignum = -9223372036854775807LL;
3503static unsigned long long int ubignum = BIG64;
3504
3505struct incomplete_array
3506{
3507  int datasize;
3508  double data[];
3509};
3510
3511struct named_init {
3512  int number;
3513  const wchar_t *name;
3514  double average;
3515};
3516
3517typedef const char *ccp;
3518
3519static inline int
3520test_restrict (ccp restrict text)
3521{
3522  // See if C++-style comments work.
3523  // Iterate through items via the restricted pointer.
3524  // Also check for declarations in for loops.
3525  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
3526    continue;
3527  return 0;
3528}
3529
3530// Check varargs and va_copy.
3531static bool
3532test_varargs (const char *format, ...)
3533{
3534  va_list args;
3535  va_start (args, format);
3536  va_list args_copy;
3537  va_copy (args_copy, args);
3538
3539  const char *str = "";
3540  int number = 0;
3541  float fnumber = 0;
3542
3543  while (*format)
3544    {
3545      switch (*format++)
3546	{
3547	case '\''s'\'': // string
3548	  str = va_arg (args_copy, const char *);
3549	  break;
3550	case '\''d'\'': // int
3551	  number = va_arg (args_copy, int);
3552	  break;
3553	case '\''f'\'': // float
3554	  fnumber = va_arg (args_copy, double);
3555	  break;
3556	default:
3557	  break;
3558	}
3559    }
3560  va_end (args_copy);
3561  va_end (args);
3562
3563  return *str && number && fnumber;
3564}
3565'
3566
3567# Test code for whether the C compiler supports C99 (body of main).
3568ac_c_conftest_c99_main='
3569  // Check bool.
3570  _Bool success = false;
3571  success |= (argc != 0);
3572
3573  // Check restrict.
3574  if (test_restrict ("String literal") == 0)
3575    success = true;
3576  char *restrict newvar = "Another string";
3577
3578  // Check varargs.
3579  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
3580  test_varargs_macros ();
3581
3582  // Check flexible array members.
3583  struct incomplete_array *ia =
3584    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3585  ia->datasize = 10;
3586  for (int i = 0; i < ia->datasize; ++i)
3587    ia->data[i] = i * 1.234;
3588
3589  // Check named initializers.
3590  struct named_init ni = {
3591    .number = 34,
3592    .name = L"Test wide string",
3593    .average = 543.34343,
3594  };
3595
3596  ni.number = 58;
3597
3598  int dynamic_array[ni.number];
3599  dynamic_array[0] = argv[0][0];
3600  dynamic_array[ni.number - 1] = 543;
3601
3602  // work around unused variable warnings
3603  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
3604	 || dynamic_array[ni.number - 1] != 543);
3605'
3606
3607# Test code for whether the C compiler supports C11 (global declarations)
3608ac_c_conftest_c11_globals='
3609// Does the compiler advertise C11 conformance?
3610#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
3611# error "Compiler does not advertise C11 conformance"
3612#endif
3613
3614// Check _Alignas.
3615char _Alignas (double) aligned_as_double;
3616char _Alignas (0) no_special_alignment;
3617extern char aligned_as_int;
3618char _Alignas (0) _Alignas (int) aligned_as_int;
3619
3620// Check _Alignof.
3621enum
3622{
3623  int_alignment = _Alignof (int),
3624  int_array_alignment = _Alignof (int[100]),
3625  char_alignment = _Alignof (char)
3626};
3627_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
3628
3629// Check _Noreturn.
3630int _Noreturn does_not_return (void) { for (;;) continue; }
3631
3632// Check _Static_assert.
3633struct test_static_assert
3634{
3635  int x;
3636  _Static_assert (sizeof (int) <= sizeof (long int),
3637                  "_Static_assert does not work in struct");
3638  long int y;
3639};
3640
3641// Check UTF-8 literals.
3642#define u8 syntax error!
3643char const utf8_literal[] = u8"happens to be ASCII" "another string";
3644
3645// Check duplicate typedefs.
3646typedef long *long_ptr;
3647typedef long int *long_ptr;
3648typedef long_ptr long_ptr;
3649
3650// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
3651struct anonymous
3652{
3653  union {
3654    struct { int i; int j; };
3655    struct { int k; long int l; } w;
3656  };
3657  int m;
3658} v1;
3659'
3660
3661# Test code for whether the C compiler supports C11 (body of main).
3662ac_c_conftest_c11_main='
3663  _Static_assert ((offsetof (struct anonymous, i)
3664		   == offsetof (struct anonymous, w.k)),
3665		  "Anonymous union alignment botch");
3666  v1.i = 2;
3667  v1.w.k = 5;
3668  ok |= v1.i != 5;
3669'
3670
3671# Test code for whether the C compiler supports C11 (complete).
3672ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
3673${ac_c_conftest_c99_globals}
3674${ac_c_conftest_c11_globals}
3675
3676int
3677main (int argc, char **argv)
3678{
3679  int ok = 0;
3680  ${ac_c_conftest_c89_main}
3681  ${ac_c_conftest_c99_main}
3682  ${ac_c_conftest_c11_main}
3683  return ok;
3684}
3685"
3686
3687# Test code for whether the C compiler supports C99 (complete).
3688ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
3689${ac_c_conftest_c99_globals}
3690
3691int
3692main (int argc, char **argv)
3693{
3694  int ok = 0;
3695  ${ac_c_conftest_c89_main}
3696  ${ac_c_conftest_c99_main}
3697  return ok;
3698}
3699"
3700
3701# Test code for whether the C compiler supports C89 (complete).
3702ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
3703
3704int
3705main (int argc, char **argv)
3706{
3707  int ok = 0;
3708  ${ac_c_conftest_c89_main}
3709  return ok;
3710}
3711"
3712
3713as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
3714as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
3715as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
3716as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
3717as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
3718as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
3719as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
3720as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
3721as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
3722as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
3723
3724# Auxiliary files required by this configure script.
3725ac_aux_files="ltmain.sh config.guess config.sub compile missing install-sh"
3726
3727# Locations in which to look for auxiliary files.
3728ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
3729
3730# Search for a directory containing all of the required auxiliary files,
3731# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
3732# If we don't find one directory that contains all the files we need,
3733# we report the set of missing files from the *first* directory in
3734# $ac_aux_dir_candidates and give up.
3735ac_missing_aux_files=""
3736ac_first_candidate=:
3737printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
3738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3739as_found=false
3740for as_dir in $ac_aux_dir_candidates
3741do
3742  IFS=$as_save_IFS
3743  case $as_dir in #(((
3744    '') as_dir=./ ;;
3745    */) ;;
3746    *) as_dir=$as_dir/ ;;
3747  esac
3748  as_found=:
3749
3750  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
3751  ac_aux_dir_found=yes
3752  ac_install_sh=
3753  for ac_aux in $ac_aux_files
3754  do
3755    # As a special case, if "install-sh" is required, that requirement
3756    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
3757    # and $ac_install_sh is set appropriately for whichever one is found.
3758    if test x"$ac_aux" = x"install-sh"
3759    then
3760      if test -f "${as_dir}install-sh"; then
3761        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
3762        ac_install_sh="${as_dir}install-sh -c"
3763      elif test -f "${as_dir}install.sh"; then
3764        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
3765        ac_install_sh="${as_dir}install.sh -c"
3766      elif test -f "${as_dir}shtool"; then
3767        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
3768        ac_install_sh="${as_dir}shtool install -c"
3769      else
3770        ac_aux_dir_found=no
3771        if $ac_first_candidate; then
3772          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3773        else
3774          break
3775        fi
3776      fi
3777    else
3778      if test -f "${as_dir}${ac_aux}"; then
3779        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
3780      else
3781        ac_aux_dir_found=no
3782        if $ac_first_candidate; then
3783          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3784        else
3785          break
3786        fi
3787      fi
3788    fi
3789  done
3790  if test "$ac_aux_dir_found" = yes; then
3791    ac_aux_dir="$as_dir"
3792    break
3793  fi
3794  ac_first_candidate=false
3795
3796  as_found=false
3797done
3798IFS=$as_save_IFS
3799if $as_found
3800then :
3801
3802else $as_nop
3803  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
3804fi
3805
3806
3807# These three variables are undocumented and unsupported,
3808# and are intended to be withdrawn in a future Autoconf release.
3809# They can cause serious problems if a builder's source tree is in a directory
3810# whose full name contains unusual characters.
3811if test -f "${ac_aux_dir}config.guess"; then
3812  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3813fi
3814if test -f "${ac_aux_dir}config.sub"; then
3815  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3816fi
3817if test -f "$ac_aux_dir/configure"; then
3818  ac_configure="$SHELL ${ac_aux_dir}configure"
3819fi
3820
3821# Check that the precious variables saved in the cache have kept the same
3822# value.
3823ac_cache_corrupted=false
3824for ac_var in $ac_precious_vars; do
3825  eval ac_old_set=\$ac_cv_env_${ac_var}_set
3826  eval ac_new_set=\$ac_env_${ac_var}_set
3827  eval ac_old_val=\$ac_cv_env_${ac_var}_value
3828  eval ac_new_val=\$ac_env_${ac_var}_value
3829  case $ac_old_set,$ac_new_set in
3830    set,)
3831      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3832printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3833      ac_cache_corrupted=: ;;
3834    ,set)
3835      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3836printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3837      ac_cache_corrupted=: ;;
3838    ,);;
3839    *)
3840      if test "x$ac_old_val" != "x$ac_new_val"; then
3841	# differences in whitespace do not lead to failure.
3842	ac_old_val_w=`echo x $ac_old_val`
3843	ac_new_val_w=`echo x $ac_new_val`
3844	if test "$ac_old_val_w" != "$ac_new_val_w"; then
3845	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3846printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3847	  ac_cache_corrupted=:
3848	else
3849	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3850printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3851	  eval $ac_var=\$ac_old_val
3852	fi
3853	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3854printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
3855	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3856printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
3857      fi;;
3858  esac
3859  # Pass precious variables to config.status.
3860  if test "$ac_new_set" = set; then
3861    case $ac_new_val in
3862    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3863    *) ac_arg=$ac_var=$ac_new_val ;;
3864    esac
3865    case " $ac_configure_args " in
3866      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3867      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3868    esac
3869  fi
3870done
3871if $ac_cache_corrupted; then
3872  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3873printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3874  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3875printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3876  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
3877	    and start over" "$LINENO" 5
3878fi
3879## -------------------- ##
3880## Main body of script. ##
3881## -------------------- ##
3882
3883ac_ext=c
3884ac_cpp='$CPP $CPPFLAGS'
3885ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3886ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3887ac_compiler_gnu=$ac_cv_c_compiler_gnu
3888
3889
3890RELEASE_DATE="2023-02-07"
3891RELEASE_NAME="Caramel Ice Cream"
3892
3893
3894am__api_version='1.16'
3895
3896
3897
3898  # Find a good install program.  We prefer a C program (faster),
3899# so one script is as good as another.  But avoid the broken or
3900# incompatible versions:
3901# SysV /etc/install, /usr/sbin/install
3902# SunOS /usr/etc/install
3903# IRIX /sbin/install
3904# AIX /bin/install
3905# AmigaOS /C/install, which installs bootblocks on floppy discs
3906# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3907# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3908# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3909# OS/2's system install, which has a completely different semantic
3910# ./install, which can be erroneously created by make from ./install.sh.
3911# Reject install programs that cannot install multiple files.
3912{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3913printf %s "checking for a BSD-compatible install... " >&6; }
3914if test -z "$INSTALL"; then
3915if test ${ac_cv_path_install+y}
3916then :
3917  printf %s "(cached) " >&6
3918else $as_nop
3919  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3920for as_dir in $PATH
3921do
3922  IFS=$as_save_IFS
3923  case $as_dir in #(((
3924    '') as_dir=./ ;;
3925    */) ;;
3926    *) as_dir=$as_dir/ ;;
3927  esac
3928    # Account for fact that we put trailing slashes in our PATH walk.
3929case $as_dir in #((
3930  ./ | /[cC]/* | \
3931  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3932  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3933  /usr/ucb/* ) ;;
3934  *)
3935    # OSF1 and SCO ODT 3.0 have their own names for install.
3936    # Don't use installbsd from OSF since it installs stuff as root
3937    # by default.
3938    for ac_prog in ginstall scoinst install; do
3939      for ac_exec_ext in '' $ac_executable_extensions; do
3940	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3941	  if test $ac_prog = install &&
3942	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3943	    # AIX install.  It has an incompatible calling convention.
3944	    :
3945	  elif test $ac_prog = install &&
3946	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3947	    # program-specific install script used by HP pwplus--don't use.
3948	    :
3949	  else
3950	    rm -rf conftest.one conftest.two conftest.dir
3951	    echo one > conftest.one
3952	    echo two > conftest.two
3953	    mkdir conftest.dir
3954	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3955	      test -s conftest.one && test -s conftest.two &&
3956	      test -s conftest.dir/conftest.one &&
3957	      test -s conftest.dir/conftest.two
3958	    then
3959	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3960	      break 3
3961	    fi
3962	  fi
3963	fi
3964      done
3965    done
3966    ;;
3967esac
3968
3969  done
3970IFS=$as_save_IFS
3971
3972rm -rf conftest.one conftest.two conftest.dir
3973
3974fi
3975  if test ${ac_cv_path_install+y}; then
3976    INSTALL=$ac_cv_path_install
3977  else
3978    # As a last resort, use the slow shell script.  Don't cache a
3979    # value for INSTALL within a source directory, because that will
3980    # break other packages using the cache if that directory is
3981    # removed, or if the value is a relative name.
3982    INSTALL=$ac_install_sh
3983  fi
3984fi
3985{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3986printf "%s\n" "$INSTALL" >&6; }
3987
3988# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3989# It thinks the first close brace ends the variable substitution.
3990test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3991
3992test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3993
3994test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3995
3996{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3997printf %s "checking whether build environment is sane... " >&6; }
3998# Reject unsafe characters in $srcdir or the absolute working directory
3999# name.  Accept space and tab only in the latter.
4000am_lf='
4001'
4002case `pwd` in
4003  *[\\\"\#\$\&\'\`$am_lf]*)
4004    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4005esac
4006case $srcdir in
4007  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
4008    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4009esac
4010
4011# Do 'set' in a subshell so we don't clobber the current shell's
4012# arguments.  Must try -L first in case configure is actually a
4013# symlink; some systems play weird games with the mod time of symlinks
4014# (eg FreeBSD returns the mod time of the symlink's containing
4015# directory).
4016if (
4017   am_has_slept=no
4018   for am_try in 1 2; do
4019     echo "timestamp, slept: $am_has_slept" > conftest.file
4020     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4021     if test "$*" = "X"; then
4022	# -L didn't work.
4023	set X `ls -t "$srcdir/configure" conftest.file`
4024     fi
4025     if test "$*" != "X $srcdir/configure conftest.file" \
4026	&& test "$*" != "X conftest.file $srcdir/configure"; then
4027
4028	# If neither matched, then we have a broken ls.  This can happen
4029	# if, for instance, CONFIG_SHELL is bash and it inherits a
4030	# broken ls alias from the environment.  This has actually
4031	# happened.  Such a system could not be considered "sane".
4032	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
4033  alias in your environment" "$LINENO" 5
4034     fi
4035     if test "$2" = conftest.file || test $am_try -eq 2; then
4036       break
4037     fi
4038     # Just in case.
4039     sleep 1
4040     am_has_slept=yes
4041   done
4042   test "$2" = conftest.file
4043   )
4044then
4045   # Ok.
4046   :
4047else
4048   as_fn_error $? "newly created file is older than distributed files!
4049Check your system clock" "$LINENO" 5
4050fi
4051{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4052printf "%s\n" "yes" >&6; }
4053# If we didn't sleep, we still need to ensure time stamps of config.status and
4054# generated files are strictly newer.
4055am_sleep_pid=
4056if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4057  ( sleep 1 ) &
4058  am_sleep_pid=$!
4059fi
4060
4061rm -f conftest.file
4062
4063test "$program_prefix" != NONE &&
4064  program_transform_name="s&^&$program_prefix&;$program_transform_name"
4065# Use a double $ so make ignores it.
4066test "$program_suffix" != NONE &&
4067  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4068# Double any \ or $.
4069# By default was `s,x,x', remove it if useless.
4070ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4071program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
4072
4073
4074# Expand $ac_aux_dir to an absolute path.
4075am_aux_dir=`cd "$ac_aux_dir" && pwd`
4076
4077
4078  if test x"${MISSING+set}" != xset; then
4079  MISSING="\${SHELL} '$am_aux_dir/missing'"
4080fi
4081# Use eval to expand $SHELL
4082if eval "$MISSING --is-lightweight"; then
4083  am_missing_run="$MISSING "
4084else
4085  am_missing_run=
4086  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4087printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4088fi
4089
4090if test x"${install_sh+set}" != xset; then
4091  case $am_aux_dir in
4092  *\ * | *\	*)
4093    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4094  *)
4095    install_sh="\${SHELL} $am_aux_dir/install-sh"
4096  esac
4097fi
4098
4099# Installed binaries are usually stripped using 'strip' when the user
4100# run "make install-strip".  However 'strip' might not be the right
4101# tool to use in cross-compilation environments, therefore Automake
4102# will honor the 'STRIP' environment variable to overrule this program.
4103if test "$cross_compiling" != no; then
4104  if test -n "$ac_tool_prefix"; then
4105  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4106set dummy ${ac_tool_prefix}strip; ac_word=$2
4107{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4108printf %s "checking for $ac_word... " >&6; }
4109if test ${ac_cv_prog_STRIP+y}
4110then :
4111  printf %s "(cached) " >&6
4112else $as_nop
4113  if test -n "$STRIP"; then
4114  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4115else
4116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4117for as_dir in $PATH
4118do
4119  IFS=$as_save_IFS
4120  case $as_dir in #(((
4121    '') as_dir=./ ;;
4122    */) ;;
4123    *) as_dir=$as_dir/ ;;
4124  esac
4125    for ac_exec_ext in '' $ac_executable_extensions; do
4126  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4127    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4128    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4129    break 2
4130  fi
4131done
4132  done
4133IFS=$as_save_IFS
4134
4135fi
4136fi
4137STRIP=$ac_cv_prog_STRIP
4138if test -n "$STRIP"; then
4139  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4140printf "%s\n" "$STRIP" >&6; }
4141else
4142  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4143printf "%s\n" "no" >&6; }
4144fi
4145
4146
4147fi
4148if test -z "$ac_cv_prog_STRIP"; then
4149  ac_ct_STRIP=$STRIP
4150  # Extract the first word of "strip", so it can be a program name with args.
4151set dummy strip; ac_word=$2
4152{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4153printf %s "checking for $ac_word... " >&6; }
4154if test ${ac_cv_prog_ac_ct_STRIP+y}
4155then :
4156  printf %s "(cached) " >&6
4157else $as_nop
4158  if test -n "$ac_ct_STRIP"; then
4159  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4160else
4161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4162for as_dir in $PATH
4163do
4164  IFS=$as_save_IFS
4165  case $as_dir in #(((
4166    '') as_dir=./ ;;
4167    */) ;;
4168    *) as_dir=$as_dir/ ;;
4169  esac
4170    for ac_exec_ext in '' $ac_executable_extensions; do
4171  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4172    ac_cv_prog_ac_ct_STRIP="strip"
4173    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4174    break 2
4175  fi
4176done
4177  done
4178IFS=$as_save_IFS
4179
4180fi
4181fi
4182ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4183if test -n "$ac_ct_STRIP"; then
4184  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4185printf "%s\n" "$ac_ct_STRIP" >&6; }
4186else
4187  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4188printf "%s\n" "no" >&6; }
4189fi
4190
4191  if test "x$ac_ct_STRIP" = x; then
4192    STRIP=":"
4193  else
4194    case $cross_compiling:$ac_tool_warned in
4195yes:)
4196{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4197printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4198ac_tool_warned=yes ;;
4199esac
4200    STRIP=$ac_ct_STRIP
4201  fi
4202else
4203  STRIP="$ac_cv_prog_STRIP"
4204fi
4205
4206fi
4207INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4208
4209
4210  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
4211printf %s "checking for a race-free mkdir -p... " >&6; }
4212if test -z "$MKDIR_P"; then
4213  if test ${ac_cv_path_mkdir+y}
4214then :
4215  printf %s "(cached) " >&6
4216else $as_nop
4217  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4218for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4219do
4220  IFS=$as_save_IFS
4221  case $as_dir in #(((
4222    '') as_dir=./ ;;
4223    */) ;;
4224    *) as_dir=$as_dir/ ;;
4225  esac
4226    for ac_prog in mkdir gmkdir; do
4227	 for ac_exec_ext in '' $ac_executable_extensions; do
4228	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
4229	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
4230	     'mkdir ('*'coreutils) '* | \
4231	     'BusyBox '* | \
4232	     'mkdir (fileutils) '4.1*)
4233	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
4234	       break 3;;
4235	   esac
4236	 done
4237       done
4238  done
4239IFS=$as_save_IFS
4240
4241fi
4242
4243  test -d ./--version && rmdir ./--version
4244  if test ${ac_cv_path_mkdir+y}; then
4245    MKDIR_P="$ac_cv_path_mkdir -p"
4246  else
4247    # As a last resort, use the slow shell script.  Don't cache a
4248    # value for MKDIR_P within a source directory, because that will
4249    # break other packages using the cache if that directory is
4250    # removed, or if the value is a relative name.
4251    MKDIR_P="$ac_install_sh -d"
4252  fi
4253fi
4254{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4255printf "%s\n" "$MKDIR_P" >&6; }
4256
4257for ac_prog in gawk mawk nawk awk
4258do
4259  # Extract the first word of "$ac_prog", so it can be a program name with args.
4260set dummy $ac_prog; ac_word=$2
4261{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4262printf %s "checking for $ac_word... " >&6; }
4263if test ${ac_cv_prog_AWK+y}
4264then :
4265  printf %s "(cached) " >&6
4266else $as_nop
4267  if test -n "$AWK"; then
4268  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4269else
4270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4271for as_dir in $PATH
4272do
4273  IFS=$as_save_IFS
4274  case $as_dir in #(((
4275    '') as_dir=./ ;;
4276    */) ;;
4277    *) as_dir=$as_dir/ ;;
4278  esac
4279    for ac_exec_ext in '' $ac_executable_extensions; do
4280  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4281    ac_cv_prog_AWK="$ac_prog"
4282    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4283    break 2
4284  fi
4285done
4286  done
4287IFS=$as_save_IFS
4288
4289fi
4290fi
4291AWK=$ac_cv_prog_AWK
4292if test -n "$AWK"; then
4293  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4294printf "%s\n" "$AWK" >&6; }
4295else
4296  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4297printf "%s\n" "no" >&6; }
4298fi
4299
4300
4301  test -n "$AWK" && break
4302done
4303
4304{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4305printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4306set x ${MAKE-make}
4307ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4308if eval test \${ac_cv_prog_make_${ac_make}_set+y}
4309then :
4310  printf %s "(cached) " >&6
4311else $as_nop
4312  cat >conftest.make <<\_ACEOF
4313SHELL = /bin/sh
4314all:
4315	@echo '@@@%%%=$(MAKE)=@@@%%%'
4316_ACEOF
4317# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4318case `${MAKE-make} -f conftest.make 2>/dev/null` in
4319  *@@@%%%=?*=@@@%%%*)
4320    eval ac_cv_prog_make_${ac_make}_set=yes;;
4321  *)
4322    eval ac_cv_prog_make_${ac_make}_set=no;;
4323esac
4324rm -f conftest.make
4325fi
4326if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4327  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4328printf "%s\n" "yes" >&6; }
4329  SET_MAKE=
4330else
4331  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4332printf "%s\n" "no" >&6; }
4333  SET_MAKE="MAKE=${MAKE-make}"
4334fi
4335
4336rm -rf .tst 2>/dev/null
4337mkdir .tst 2>/dev/null
4338if test -d .tst; then
4339  am__leading_dot=.
4340else
4341  am__leading_dot=_
4342fi
4343rmdir .tst 2>/dev/null
4344
4345# Check whether --enable-silent-rules was given.
4346if test ${enable_silent_rules+y}
4347then :
4348  enableval=$enable_silent_rules;
4349fi
4350
4351case $enable_silent_rules in # (((
4352  yes) AM_DEFAULT_VERBOSITY=0;;
4353   no) AM_DEFAULT_VERBOSITY=1;;
4354    *) AM_DEFAULT_VERBOSITY=1;;
4355esac
4356am_make=${MAKE-make}
4357{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4358printf %s "checking whether $am_make supports nested variables... " >&6; }
4359if test ${am_cv_make_support_nested_variables+y}
4360then :
4361  printf %s "(cached) " >&6
4362else $as_nop
4363  if printf "%s\n" 'TRUE=$(BAR$(V))
4364BAR0=false
4365BAR1=true
4366V=1
4367am__doit:
4368	@$(TRUE)
4369.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4370  am_cv_make_support_nested_variables=yes
4371else
4372  am_cv_make_support_nested_variables=no
4373fi
4374fi
4375{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4376printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4377if test $am_cv_make_support_nested_variables = yes; then
4378    AM_V='$(V)'
4379  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4380else
4381  AM_V=$AM_DEFAULT_VERBOSITY
4382  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4383fi
4384AM_BACKSLASH='\'
4385
4386if test "`cd $srcdir && pwd`" != "`pwd`"; then
4387  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4388  # is not polluted with repeated "-I."
4389  am__isrc=' -I$(srcdir)'
4390  # test to see if srcdir already configured
4391  if test -f $srcdir/config.status; then
4392    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4393  fi
4394fi
4395
4396# test whether we have cygpath
4397if test -z "$CYGPATH_W"; then
4398  if (cygpath --version) >/dev/null 2>/dev/null; then
4399    CYGPATH_W='cygpath -w'
4400  else
4401    CYGPATH_W=echo
4402  fi
4403fi
4404
4405
4406# Define the identity of the package.
4407 PACKAGE='xorg-server'
4408 VERSION='21.1.7'
4409
4410
4411printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
4412
4413
4414printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
4415
4416# Some tools Automake needs.
4417
4418ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4419
4420
4421AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4422
4423
4424AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4425
4426
4427AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4428
4429
4430MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4431
4432# For better backward compatibility.  To be removed once Automake 1.9.x
4433# dies out for good.  For more background, see:
4434# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4435# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4436mkdir_p='$(MKDIR_P)'
4437
4438# We need awk for the "check" target (and possibly the TAP driver).  The
4439# system "awk" is bad on some platforms.
4440# Always define AMTAR for backward compatibility.  Yes, it's still used
4441# in the wild :-(  We should find a proper way to deprecate it ...
4442AMTAR='$${TAR-tar}'
4443
4444
4445# We'll loop over all known methods to create a tar archive until one works.
4446_am_tools='gnutar  pax cpio none'
4447
4448am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4449
4450
4451
4452
4453
4454# Variables for tags utilities; see am/tags.am
4455if test -z "$CTAGS"; then
4456  CTAGS=ctags
4457fi
4458
4459if test -z "$ETAGS"; then
4460  ETAGS=etags
4461fi
4462
4463if test -z "$CSCOPE"; then
4464  CSCOPE=cscope
4465fi
4466
4467
4468
4469# POSIX will say in a future version that running "rm -f" with no argument
4470# is OK; and we want to be able to make that assumption in our Makefile
4471# recipes.  So use an aggressive probe to check that the usage we want is
4472# actually supported "in the wild" to an acceptable degree.
4473# See automake bug#10828.
4474# To make any issue more visible, cause the running configure to be aborted
4475# by default if the 'rm' program in use doesn't match our expectations; the
4476# user can still override this though.
4477if rm -f && rm -fr && rm -rf; then : OK; else
4478  cat >&2 <<'END'
4479Oops!
4480
4481Your 'rm' program seems unable to run without file operands specified
4482on the command line, even when the '-f' option is present.  This is contrary
4483to the behaviour of most rm programs out there, and not conforming with
4484the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4485
4486Please tell bug-automake@gnu.org about your system, including the value
4487of your $PATH and any error possibly output before this message.  This
4488can help us improve future automake versions.
4489
4490END
4491  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4492    echo 'Configuration will proceed anyway, since you have set the' >&2
4493    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4494    echo >&2
4495  else
4496    cat >&2 <<'END'
4497Aborting the configuration process, to ensure you take notice of the issue.
4498
4499You can download and install GNU coreutils to get an 'rm' implementation
4500that behaves properly: <https://www.gnu.org/software/coreutils/>.
4501
4502If you want to complete the configuration process using your problematic
4503'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4504to "yes", and re-run configure.
4505
4506END
4507    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4508  fi
4509fi
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520DEPDIR="${am__leading_dot}deps"
4521
4522ac_config_commands="$ac_config_commands depfiles"
4523
4524{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4525printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4526cat > confinc.mk << 'END'
4527am__doit:
4528	@echo this is the am__doit target >confinc.out
4529.PHONY: am__doit
4530END
4531am__include="#"
4532am__quote=
4533# BSD make does it like this.
4534echo '.include "confinc.mk" # ignored' > confmf.BSD
4535# Other make implementations (GNU, Solaris 10, AIX) do it like this.
4536echo 'include confinc.mk # ignored' > confmf.GNU
4537_am_result=no
4538for s in GNU BSD; do
4539  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4540   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4541   ac_status=$?
4542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4543   (exit $ac_status); }
4544  case $?:`cat confinc.out 2>/dev/null` in #(
4545  '0:this is the am__doit target') :
4546    case $s in #(
4547  BSD) :
4548    am__include='.include' am__quote='"' ;; #(
4549  *) :
4550    am__include='include' am__quote='' ;;
4551esac ;; #(
4552  *) :
4553     ;;
4554esac
4555  if test "$am__include" != "#"; then
4556    _am_result="yes ($s style)"
4557    break
4558  fi
4559done
4560rm -f confinc.* confmf.*
4561{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4562printf "%s\n" "${_am_result}" >&6; }
4563
4564# Check whether --enable-dependency-tracking was given.
4565if test ${enable_dependency_tracking+y}
4566then :
4567  enableval=$enable_dependency_tracking;
4568fi
4569
4570if test "x$enable_dependency_tracking" != xno; then
4571  am_depcomp="$ac_aux_dir/depcomp"
4572  AMDEPBACKSLASH='\'
4573  am__nodep='_no'
4574fi
4575 if test "x$enable_dependency_tracking" != xno; then
4576  AMDEP_TRUE=
4577  AMDEP_FALSE='#'
4578else
4579  AMDEP_TRUE='#'
4580  AMDEP_FALSE=
4581fi
4582
4583
4584ac_ext=c
4585ac_cpp='$CPP $CPPFLAGS'
4586ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4587ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4588ac_compiler_gnu=$ac_cv_c_compiler_gnu
4589if test -n "$ac_tool_prefix"; then
4590  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4591set dummy ${ac_tool_prefix}gcc; ac_word=$2
4592{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4593printf %s "checking for $ac_word... " >&6; }
4594if test ${ac_cv_prog_CC+y}
4595then :
4596  printf %s "(cached) " >&6
4597else $as_nop
4598  if test -n "$CC"; then
4599  ac_cv_prog_CC="$CC" # Let the user override the test.
4600else
4601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4602for as_dir in $PATH
4603do
4604  IFS=$as_save_IFS
4605  case $as_dir in #(((
4606    '') as_dir=./ ;;
4607    */) ;;
4608    *) as_dir=$as_dir/ ;;
4609  esac
4610    for ac_exec_ext in '' $ac_executable_extensions; do
4611  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4612    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4613    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4614    break 2
4615  fi
4616done
4617  done
4618IFS=$as_save_IFS
4619
4620fi
4621fi
4622CC=$ac_cv_prog_CC
4623if test -n "$CC"; then
4624  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4625printf "%s\n" "$CC" >&6; }
4626else
4627  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4628printf "%s\n" "no" >&6; }
4629fi
4630
4631
4632fi
4633if test -z "$ac_cv_prog_CC"; then
4634  ac_ct_CC=$CC
4635  # Extract the first word of "gcc", so it can be a program name with args.
4636set dummy gcc; ac_word=$2
4637{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4638printf %s "checking for $ac_word... " >&6; }
4639if test ${ac_cv_prog_ac_ct_CC+y}
4640then :
4641  printf %s "(cached) " >&6
4642else $as_nop
4643  if test -n "$ac_ct_CC"; then
4644  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4645else
4646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4647for as_dir in $PATH
4648do
4649  IFS=$as_save_IFS
4650  case $as_dir in #(((
4651    '') as_dir=./ ;;
4652    */) ;;
4653    *) as_dir=$as_dir/ ;;
4654  esac
4655    for ac_exec_ext in '' $ac_executable_extensions; do
4656  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4657    ac_cv_prog_ac_ct_CC="gcc"
4658    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4659    break 2
4660  fi
4661done
4662  done
4663IFS=$as_save_IFS
4664
4665fi
4666fi
4667ac_ct_CC=$ac_cv_prog_ac_ct_CC
4668if test -n "$ac_ct_CC"; then
4669  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4670printf "%s\n" "$ac_ct_CC" >&6; }
4671else
4672  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4673printf "%s\n" "no" >&6; }
4674fi
4675
4676  if test "x$ac_ct_CC" = x; then
4677    CC=""
4678  else
4679    case $cross_compiling:$ac_tool_warned in
4680yes:)
4681{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4682printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4683ac_tool_warned=yes ;;
4684esac
4685    CC=$ac_ct_CC
4686  fi
4687else
4688  CC="$ac_cv_prog_CC"
4689fi
4690
4691if test -z "$CC"; then
4692          if test -n "$ac_tool_prefix"; then
4693    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4694set dummy ${ac_tool_prefix}cc; ac_word=$2
4695{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4696printf %s "checking for $ac_word... " >&6; }
4697if test ${ac_cv_prog_CC+y}
4698then :
4699  printf %s "(cached) " >&6
4700else $as_nop
4701  if test -n "$CC"; then
4702  ac_cv_prog_CC="$CC" # Let the user override the test.
4703else
4704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4705for as_dir in $PATH
4706do
4707  IFS=$as_save_IFS
4708  case $as_dir in #(((
4709    '') as_dir=./ ;;
4710    */) ;;
4711    *) as_dir=$as_dir/ ;;
4712  esac
4713    for ac_exec_ext in '' $ac_executable_extensions; do
4714  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4715    ac_cv_prog_CC="${ac_tool_prefix}cc"
4716    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4717    break 2
4718  fi
4719done
4720  done
4721IFS=$as_save_IFS
4722
4723fi
4724fi
4725CC=$ac_cv_prog_CC
4726if test -n "$CC"; then
4727  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4728printf "%s\n" "$CC" >&6; }
4729else
4730  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4731printf "%s\n" "no" >&6; }
4732fi
4733
4734
4735  fi
4736fi
4737if test -z "$CC"; then
4738  # Extract the first word of "cc", so it can be a program name with args.
4739set dummy cc; ac_word=$2
4740{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4741printf %s "checking for $ac_word... " >&6; }
4742if test ${ac_cv_prog_CC+y}
4743then :
4744  printf %s "(cached) " >&6
4745else $as_nop
4746  if test -n "$CC"; then
4747  ac_cv_prog_CC="$CC" # Let the user override the test.
4748else
4749  ac_prog_rejected=no
4750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4751for as_dir in $PATH
4752do
4753  IFS=$as_save_IFS
4754  case $as_dir in #(((
4755    '') as_dir=./ ;;
4756    */) ;;
4757    *) as_dir=$as_dir/ ;;
4758  esac
4759    for ac_exec_ext in '' $ac_executable_extensions; do
4760  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4761    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4762       ac_prog_rejected=yes
4763       continue
4764     fi
4765    ac_cv_prog_CC="cc"
4766    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4767    break 2
4768  fi
4769done
4770  done
4771IFS=$as_save_IFS
4772
4773if test $ac_prog_rejected = yes; then
4774  # We found a bogon in the path, so make sure we never use it.
4775  set dummy $ac_cv_prog_CC
4776  shift
4777  if test $# != 0; then
4778    # We chose a different compiler from the bogus one.
4779    # However, it has the same basename, so the bogon will be chosen
4780    # first if we set CC to just the basename; use the full file name.
4781    shift
4782    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4783  fi
4784fi
4785fi
4786fi
4787CC=$ac_cv_prog_CC
4788if test -n "$CC"; then
4789  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4790printf "%s\n" "$CC" >&6; }
4791else
4792  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4793printf "%s\n" "no" >&6; }
4794fi
4795
4796
4797fi
4798if test -z "$CC"; then
4799  if test -n "$ac_tool_prefix"; then
4800  for ac_prog in cl.exe
4801  do
4802    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4803set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4804{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4805printf %s "checking for $ac_word... " >&6; }
4806if test ${ac_cv_prog_CC+y}
4807then :
4808  printf %s "(cached) " >&6
4809else $as_nop
4810  if test -n "$CC"; then
4811  ac_cv_prog_CC="$CC" # Let the user override the test.
4812else
4813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4814for as_dir in $PATH
4815do
4816  IFS=$as_save_IFS
4817  case $as_dir in #(((
4818    '') as_dir=./ ;;
4819    */) ;;
4820    *) as_dir=$as_dir/ ;;
4821  esac
4822    for ac_exec_ext in '' $ac_executable_extensions; do
4823  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4824    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4825    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4826    break 2
4827  fi
4828done
4829  done
4830IFS=$as_save_IFS
4831
4832fi
4833fi
4834CC=$ac_cv_prog_CC
4835if test -n "$CC"; then
4836  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4837printf "%s\n" "$CC" >&6; }
4838else
4839  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4840printf "%s\n" "no" >&6; }
4841fi
4842
4843
4844    test -n "$CC" && break
4845  done
4846fi
4847if test -z "$CC"; then
4848  ac_ct_CC=$CC
4849  for ac_prog in cl.exe
4850do
4851  # Extract the first word of "$ac_prog", so it can be a program name with args.
4852set dummy $ac_prog; ac_word=$2
4853{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4854printf %s "checking for $ac_word... " >&6; }
4855if test ${ac_cv_prog_ac_ct_CC+y}
4856then :
4857  printf %s "(cached) " >&6
4858else $as_nop
4859  if test -n "$ac_ct_CC"; then
4860  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4861else
4862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4863for as_dir in $PATH
4864do
4865  IFS=$as_save_IFS
4866  case $as_dir in #(((
4867    '') as_dir=./ ;;
4868    */) ;;
4869    *) as_dir=$as_dir/ ;;
4870  esac
4871    for ac_exec_ext in '' $ac_executable_extensions; do
4872  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4873    ac_cv_prog_ac_ct_CC="$ac_prog"
4874    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4875    break 2
4876  fi
4877done
4878  done
4879IFS=$as_save_IFS
4880
4881fi
4882fi
4883ac_ct_CC=$ac_cv_prog_ac_ct_CC
4884if test -n "$ac_ct_CC"; then
4885  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4886printf "%s\n" "$ac_ct_CC" >&6; }
4887else
4888  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4889printf "%s\n" "no" >&6; }
4890fi
4891
4892
4893  test -n "$ac_ct_CC" && break
4894done
4895
4896  if test "x$ac_ct_CC" = x; then
4897    CC=""
4898  else
4899    case $cross_compiling:$ac_tool_warned in
4900yes:)
4901{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4902printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4903ac_tool_warned=yes ;;
4904esac
4905    CC=$ac_ct_CC
4906  fi
4907fi
4908
4909fi
4910if test -z "$CC"; then
4911  if test -n "$ac_tool_prefix"; then
4912  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4913set dummy ${ac_tool_prefix}clang; ac_word=$2
4914{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4915printf %s "checking for $ac_word... " >&6; }
4916if test ${ac_cv_prog_CC+y}
4917then :
4918  printf %s "(cached) " >&6
4919else $as_nop
4920  if test -n "$CC"; then
4921  ac_cv_prog_CC="$CC" # Let the user override the test.
4922else
4923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4924for as_dir in $PATH
4925do
4926  IFS=$as_save_IFS
4927  case $as_dir in #(((
4928    '') as_dir=./ ;;
4929    */) ;;
4930    *) as_dir=$as_dir/ ;;
4931  esac
4932    for ac_exec_ext in '' $ac_executable_extensions; do
4933  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4934    ac_cv_prog_CC="${ac_tool_prefix}clang"
4935    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4936    break 2
4937  fi
4938done
4939  done
4940IFS=$as_save_IFS
4941
4942fi
4943fi
4944CC=$ac_cv_prog_CC
4945if test -n "$CC"; then
4946  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4947printf "%s\n" "$CC" >&6; }
4948else
4949  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4950printf "%s\n" "no" >&6; }
4951fi
4952
4953
4954fi
4955if test -z "$ac_cv_prog_CC"; then
4956  ac_ct_CC=$CC
4957  # Extract the first word of "clang", so it can be a program name with args.
4958set dummy clang; ac_word=$2
4959{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4960printf %s "checking for $ac_word... " >&6; }
4961if test ${ac_cv_prog_ac_ct_CC+y}
4962then :
4963  printf %s "(cached) " >&6
4964else $as_nop
4965  if test -n "$ac_ct_CC"; then
4966  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4967else
4968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4969for as_dir in $PATH
4970do
4971  IFS=$as_save_IFS
4972  case $as_dir in #(((
4973    '') as_dir=./ ;;
4974    */) ;;
4975    *) as_dir=$as_dir/ ;;
4976  esac
4977    for ac_exec_ext in '' $ac_executable_extensions; do
4978  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4979    ac_cv_prog_ac_ct_CC="clang"
4980    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4981    break 2
4982  fi
4983done
4984  done
4985IFS=$as_save_IFS
4986
4987fi
4988fi
4989ac_ct_CC=$ac_cv_prog_ac_ct_CC
4990if test -n "$ac_ct_CC"; then
4991  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4992printf "%s\n" "$ac_ct_CC" >&6; }
4993else
4994  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4995printf "%s\n" "no" >&6; }
4996fi
4997
4998  if test "x$ac_ct_CC" = x; then
4999    CC=""
5000  else
5001    case $cross_compiling:$ac_tool_warned in
5002yes:)
5003{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5004printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5005ac_tool_warned=yes ;;
5006esac
5007    CC=$ac_ct_CC
5008  fi
5009else
5010  CC="$ac_cv_prog_CC"
5011fi
5012
5013fi
5014
5015
5016test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5017printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5018as_fn_error $? "no acceptable C compiler found in \$PATH
5019See \`config.log' for more details" "$LINENO" 5; }
5020
5021# Provide some information about the compiler.
5022printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5023set X $ac_compile
5024ac_compiler=$2
5025for ac_option in --version -v -V -qversion -version; do
5026  { { ac_try="$ac_compiler $ac_option >&5"
5027case "(($ac_try" in
5028  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5029  *) ac_try_echo=$ac_try;;
5030esac
5031eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5032printf "%s\n" "$ac_try_echo"; } >&5
5033  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5034  ac_status=$?
5035  if test -s conftest.err; then
5036    sed '10a\
5037... rest of stderr output deleted ...
5038         10q' conftest.err >conftest.er1
5039    cat conftest.er1 >&5
5040  fi
5041  rm -f conftest.er1 conftest.err
5042  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5043  test $ac_status = 0; }
5044done
5045
5046cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5047/* end confdefs.h.  */
5048
5049int
5050main (void)
5051{
5052
5053  ;
5054  return 0;
5055}
5056_ACEOF
5057ac_clean_files_save=$ac_clean_files
5058ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5059# Try to create an executable without -o first, disregard a.out.
5060# It will help us diagnose broken compilers, and finding out an intuition
5061# of exeext.
5062{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5063printf %s "checking whether the C compiler works... " >&6; }
5064ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5065
5066# The possible output files:
5067ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5068
5069ac_rmfiles=
5070for ac_file in $ac_files
5071do
5072  case $ac_file in
5073    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5074    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5075  esac
5076done
5077rm -f $ac_rmfiles
5078
5079if { { ac_try="$ac_link_default"
5080case "(($ac_try" in
5081  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5082  *) ac_try_echo=$ac_try;;
5083esac
5084eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5085printf "%s\n" "$ac_try_echo"; } >&5
5086  (eval "$ac_link_default") 2>&5
5087  ac_status=$?
5088  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5089  test $ac_status = 0; }
5090then :
5091  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5092# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5093# in a Makefile.  We should not override ac_cv_exeext if it was cached,
5094# so that the user can short-circuit this test for compilers unknown to
5095# Autoconf.
5096for ac_file in $ac_files ''
5097do
5098  test -f "$ac_file" || continue
5099  case $ac_file in
5100    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5101	;;
5102    [ab].out )
5103	# We found the default executable, but exeext='' is most
5104	# certainly right.
5105	break;;
5106    *.* )
5107	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
5108	then :; else
5109	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5110	fi
5111	# We set ac_cv_exeext here because the later test for it is not
5112	# safe: cross compilers may not add the suffix if given an `-o'
5113	# argument, so we may need to know it at that point already.
5114	# Even if this section looks crufty: it has the advantage of
5115	# actually working.
5116	break;;
5117    * )
5118	break;;
5119  esac
5120done
5121test "$ac_cv_exeext" = no && ac_cv_exeext=
5122
5123else $as_nop
5124  ac_file=''
5125fi
5126if test -z "$ac_file"
5127then :
5128  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5129printf "%s\n" "no" >&6; }
5130printf "%s\n" "$as_me: failed program was:" >&5
5131sed 's/^/| /' conftest.$ac_ext >&5
5132
5133{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5134printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5135as_fn_error 77 "C compiler cannot create executables
5136See \`config.log' for more details" "$LINENO" 5; }
5137else $as_nop
5138  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5139printf "%s\n" "yes" >&6; }
5140fi
5141{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5142printf %s "checking for C compiler default output file name... " >&6; }
5143{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5144printf "%s\n" "$ac_file" >&6; }
5145ac_exeext=$ac_cv_exeext
5146
5147rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5148ac_clean_files=$ac_clean_files_save
5149{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5150printf %s "checking for suffix of executables... " >&6; }
5151if { { ac_try="$ac_link"
5152case "(($ac_try" in
5153  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5154  *) ac_try_echo=$ac_try;;
5155esac
5156eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5157printf "%s\n" "$ac_try_echo"; } >&5
5158  (eval "$ac_link") 2>&5
5159  ac_status=$?
5160  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5161  test $ac_status = 0; }
5162then :
5163  # If both `conftest.exe' and `conftest' are `present' (well, observable)
5164# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
5165# work properly (i.e., refer to `conftest.exe'), while it won't with
5166# `rm'.
5167for ac_file in conftest.exe conftest conftest.*; do
5168  test -f "$ac_file" || continue
5169  case $ac_file in
5170    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5171    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5172	  break;;
5173    * ) break;;
5174  esac
5175done
5176else $as_nop
5177  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5178printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5179as_fn_error $? "cannot compute suffix of executables: cannot compile and link
5180See \`config.log' for more details" "$LINENO" 5; }
5181fi
5182rm -f conftest conftest$ac_cv_exeext
5183{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5184printf "%s\n" "$ac_cv_exeext" >&6; }
5185
5186rm -f conftest.$ac_ext
5187EXEEXT=$ac_cv_exeext
5188ac_exeext=$EXEEXT
5189cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5190/* end confdefs.h.  */
5191#include <stdio.h>
5192int
5193main (void)
5194{
5195FILE *f = fopen ("conftest.out", "w");
5196 return ferror (f) || fclose (f) != 0;
5197
5198  ;
5199  return 0;
5200}
5201_ACEOF
5202ac_clean_files="$ac_clean_files conftest.out"
5203# Check that the compiler produces executables we can run.  If not, either
5204# the compiler is broken, or we cross compile.
5205{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5206printf %s "checking whether we are cross compiling... " >&6; }
5207if test "$cross_compiling" != yes; then
5208  { { ac_try="$ac_link"
5209case "(($ac_try" in
5210  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5211  *) ac_try_echo=$ac_try;;
5212esac
5213eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5214printf "%s\n" "$ac_try_echo"; } >&5
5215  (eval "$ac_link") 2>&5
5216  ac_status=$?
5217  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5218  test $ac_status = 0; }
5219  if { ac_try='./conftest$ac_cv_exeext'
5220  { { case "(($ac_try" in
5221  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5222  *) ac_try_echo=$ac_try;;
5223esac
5224eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5225printf "%s\n" "$ac_try_echo"; } >&5
5226  (eval "$ac_try") 2>&5
5227  ac_status=$?
5228  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5229  test $ac_status = 0; }; }; then
5230    cross_compiling=no
5231  else
5232    if test "$cross_compiling" = maybe; then
5233	cross_compiling=yes
5234    else
5235	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5236printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5237as_fn_error 77 "cannot run C compiled programs.
5238If you meant to cross compile, use \`--host'.
5239See \`config.log' for more details" "$LINENO" 5; }
5240    fi
5241  fi
5242fi
5243{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5244printf "%s\n" "$cross_compiling" >&6; }
5245
5246rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5247ac_clean_files=$ac_clean_files_save
5248{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5249printf %s "checking for suffix of object files... " >&6; }
5250if test ${ac_cv_objext+y}
5251then :
5252  printf %s "(cached) " >&6
5253else $as_nop
5254  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5255/* end confdefs.h.  */
5256
5257int
5258main (void)
5259{
5260
5261  ;
5262  return 0;
5263}
5264_ACEOF
5265rm -f conftest.o conftest.obj
5266if { { ac_try="$ac_compile"
5267case "(($ac_try" in
5268  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5269  *) ac_try_echo=$ac_try;;
5270esac
5271eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5272printf "%s\n" "$ac_try_echo"; } >&5
5273  (eval "$ac_compile") 2>&5
5274  ac_status=$?
5275  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5276  test $ac_status = 0; }
5277then :
5278  for ac_file in conftest.o conftest.obj conftest.*; do
5279  test -f "$ac_file" || continue;
5280  case $ac_file in
5281    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5282    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5283       break;;
5284  esac
5285done
5286else $as_nop
5287  printf "%s\n" "$as_me: failed program was:" >&5
5288sed 's/^/| /' conftest.$ac_ext >&5
5289
5290{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5291printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5292as_fn_error $? "cannot compute suffix of object files: cannot compile
5293See \`config.log' for more details" "$LINENO" 5; }
5294fi
5295rm -f conftest.$ac_cv_objext conftest.$ac_ext
5296fi
5297{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5298printf "%s\n" "$ac_cv_objext" >&6; }
5299OBJEXT=$ac_cv_objext
5300ac_objext=$OBJEXT
5301{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5302printf %s "checking whether the compiler supports GNU C... " >&6; }
5303if test ${ac_cv_c_compiler_gnu+y}
5304then :
5305  printf %s "(cached) " >&6
5306else $as_nop
5307  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5308/* end confdefs.h.  */
5309
5310int
5311main (void)
5312{
5313#ifndef __GNUC__
5314       choke me
5315#endif
5316
5317  ;
5318  return 0;
5319}
5320_ACEOF
5321if ac_fn_c_try_compile "$LINENO"
5322then :
5323  ac_compiler_gnu=yes
5324else $as_nop
5325  ac_compiler_gnu=no
5326fi
5327rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5328ac_cv_c_compiler_gnu=$ac_compiler_gnu
5329
5330fi
5331{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5332printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5333ac_compiler_gnu=$ac_cv_c_compiler_gnu
5334
5335if test $ac_compiler_gnu = yes; then
5336  GCC=yes
5337else
5338  GCC=
5339fi
5340ac_test_CFLAGS=${CFLAGS+y}
5341ac_save_CFLAGS=$CFLAGS
5342{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5343printf %s "checking whether $CC accepts -g... " >&6; }
5344if test ${ac_cv_prog_cc_g+y}
5345then :
5346  printf %s "(cached) " >&6
5347else $as_nop
5348  ac_save_c_werror_flag=$ac_c_werror_flag
5349   ac_c_werror_flag=yes
5350   ac_cv_prog_cc_g=no
5351   CFLAGS="-g"
5352   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5353/* end confdefs.h.  */
5354
5355int
5356main (void)
5357{
5358
5359  ;
5360  return 0;
5361}
5362_ACEOF
5363if ac_fn_c_try_compile "$LINENO"
5364then :
5365  ac_cv_prog_cc_g=yes
5366else $as_nop
5367  CFLAGS=""
5368      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5369/* end confdefs.h.  */
5370
5371int
5372main (void)
5373{
5374
5375  ;
5376  return 0;
5377}
5378_ACEOF
5379if ac_fn_c_try_compile "$LINENO"
5380then :
5381
5382else $as_nop
5383  ac_c_werror_flag=$ac_save_c_werror_flag
5384	 CFLAGS="-g"
5385	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5386/* end confdefs.h.  */
5387
5388int
5389main (void)
5390{
5391
5392  ;
5393  return 0;
5394}
5395_ACEOF
5396if ac_fn_c_try_compile "$LINENO"
5397then :
5398  ac_cv_prog_cc_g=yes
5399fi
5400rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5401fi
5402rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5403fi
5404rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5405   ac_c_werror_flag=$ac_save_c_werror_flag
5406fi
5407{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5408printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5409if test $ac_test_CFLAGS; then
5410  CFLAGS=$ac_save_CFLAGS
5411elif test $ac_cv_prog_cc_g = yes; then
5412  if test "$GCC" = yes; then
5413    CFLAGS="-g -O2"
5414  else
5415    CFLAGS="-g"
5416  fi
5417else
5418  if test "$GCC" = yes; then
5419    CFLAGS="-O2"
5420  else
5421    CFLAGS=
5422  fi
5423fi
5424ac_prog_cc_stdc=no
5425if test x$ac_prog_cc_stdc = xno
5426then :
5427  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5428printf %s "checking for $CC option to enable C11 features... " >&6; }
5429if test ${ac_cv_prog_cc_c11+y}
5430then :
5431  printf %s "(cached) " >&6
5432else $as_nop
5433  ac_cv_prog_cc_c11=no
5434ac_save_CC=$CC
5435cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5436/* end confdefs.h.  */
5437$ac_c_conftest_c11_program
5438_ACEOF
5439for ac_arg in '' -std=gnu11
5440do
5441  CC="$ac_save_CC $ac_arg"
5442  if ac_fn_c_try_compile "$LINENO"
5443then :
5444  ac_cv_prog_cc_c11=$ac_arg
5445fi
5446rm -f core conftest.err conftest.$ac_objext conftest.beam
5447  test "x$ac_cv_prog_cc_c11" != "xno" && break
5448done
5449rm -f conftest.$ac_ext
5450CC=$ac_save_CC
5451fi
5452
5453if test "x$ac_cv_prog_cc_c11" = xno
5454then :
5455  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5456printf "%s\n" "unsupported" >&6; }
5457else $as_nop
5458  if test "x$ac_cv_prog_cc_c11" = x
5459then :
5460  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5461printf "%s\n" "none needed" >&6; }
5462else $as_nop
5463  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5464printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5465     CC="$CC $ac_cv_prog_cc_c11"
5466fi
5467  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5468  ac_prog_cc_stdc=c11
5469fi
5470fi
5471if test x$ac_prog_cc_stdc = xno
5472then :
5473  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5474printf %s "checking for $CC option to enable C99 features... " >&6; }
5475if test ${ac_cv_prog_cc_c99+y}
5476then :
5477  printf %s "(cached) " >&6
5478else $as_nop
5479  ac_cv_prog_cc_c99=no
5480ac_save_CC=$CC
5481cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5482/* end confdefs.h.  */
5483$ac_c_conftest_c99_program
5484_ACEOF
5485for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5486do
5487  CC="$ac_save_CC $ac_arg"
5488  if ac_fn_c_try_compile "$LINENO"
5489then :
5490  ac_cv_prog_cc_c99=$ac_arg
5491fi
5492rm -f core conftest.err conftest.$ac_objext conftest.beam
5493  test "x$ac_cv_prog_cc_c99" != "xno" && break
5494done
5495rm -f conftest.$ac_ext
5496CC=$ac_save_CC
5497fi
5498
5499if test "x$ac_cv_prog_cc_c99" = xno
5500then :
5501  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5502printf "%s\n" "unsupported" >&6; }
5503else $as_nop
5504  if test "x$ac_cv_prog_cc_c99" = x
5505then :
5506  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5507printf "%s\n" "none needed" >&6; }
5508else $as_nop
5509  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5510printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5511     CC="$CC $ac_cv_prog_cc_c99"
5512fi
5513  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5514  ac_prog_cc_stdc=c99
5515fi
5516fi
5517if test x$ac_prog_cc_stdc = xno
5518then :
5519  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5520printf %s "checking for $CC option to enable C89 features... " >&6; }
5521if test ${ac_cv_prog_cc_c89+y}
5522then :
5523  printf %s "(cached) " >&6
5524else $as_nop
5525  ac_cv_prog_cc_c89=no
5526ac_save_CC=$CC
5527cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5528/* end confdefs.h.  */
5529$ac_c_conftest_c89_program
5530_ACEOF
5531for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5532do
5533  CC="$ac_save_CC $ac_arg"
5534  if ac_fn_c_try_compile "$LINENO"
5535then :
5536  ac_cv_prog_cc_c89=$ac_arg
5537fi
5538rm -f core conftest.err conftest.$ac_objext conftest.beam
5539  test "x$ac_cv_prog_cc_c89" != "xno" && break
5540done
5541rm -f conftest.$ac_ext
5542CC=$ac_save_CC
5543fi
5544
5545if test "x$ac_cv_prog_cc_c89" = xno
5546then :
5547  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5548printf "%s\n" "unsupported" >&6; }
5549else $as_nop
5550  if test "x$ac_cv_prog_cc_c89" = x
5551then :
5552  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5553printf "%s\n" "none needed" >&6; }
5554else $as_nop
5555  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5556printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5557     CC="$CC $ac_cv_prog_cc_c89"
5558fi
5559  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5560  ac_prog_cc_stdc=c89
5561fi
5562fi
5563
5564ac_ext=c
5565ac_cpp='$CPP $CPPFLAGS'
5566ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5567ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5568ac_compiler_gnu=$ac_cv_c_compiler_gnu
5569
5570
5571  ac_ext=c
5572ac_cpp='$CPP $CPPFLAGS'
5573ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5574ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5575ac_compiler_gnu=$ac_cv_c_compiler_gnu
5576{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5577printf %s "checking whether $CC understands -c and -o together... " >&6; }
5578if test ${am_cv_prog_cc_c_o+y}
5579then :
5580  printf %s "(cached) " >&6
5581else $as_nop
5582  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5583/* end confdefs.h.  */
5584
5585int
5586main (void)
5587{
5588
5589  ;
5590  return 0;
5591}
5592_ACEOF
5593  # Make sure it works both with $CC and with simple cc.
5594  # Following AC_PROG_CC_C_O, we do the test twice because some
5595  # compilers refuse to overwrite an existing .o file with -o,
5596  # though they will create one.
5597  am_cv_prog_cc_c_o=yes
5598  for am_i in 1 2; do
5599    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5600   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5601   ac_status=$?
5602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5603   (exit $ac_status); } \
5604         && test -f conftest2.$ac_objext; then
5605      : OK
5606    else
5607      am_cv_prog_cc_c_o=no
5608      break
5609    fi
5610  done
5611  rm -f core conftest*
5612  unset am_i
5613fi
5614{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5615printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
5616if test "$am_cv_prog_cc_c_o" != yes; then
5617   # Losing compiler, so override with the script.
5618   # FIXME: It is wrong to rewrite CC.
5619   # But if we don't then we get into trouble of one sort or another.
5620   # A longer-term fix would be to have automake use am__CC in this case,
5621   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5622   CC="$am_aux_dir/compile $CC"
5623fi
5624ac_ext=c
5625ac_cpp='$CPP $CPPFLAGS'
5626ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5627ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5628ac_compiler_gnu=$ac_cv_c_compiler_gnu
5629
5630
5631depcc="$CC"   am_compiler_list=
5632
5633{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5634printf %s "checking dependency style of $depcc... " >&6; }
5635if test ${am_cv_CC_dependencies_compiler_type+y}
5636then :
5637  printf %s "(cached) " >&6
5638else $as_nop
5639  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5640  # We make a subdir and do the tests there.  Otherwise we can end up
5641  # making bogus files that we don't know about and never remove.  For
5642  # instance it was reported that on HP-UX the gcc test will end up
5643  # making a dummy file named 'D' -- because '-MD' means "put the output
5644  # in D".
5645  rm -rf conftest.dir
5646  mkdir conftest.dir
5647  # Copy depcomp to subdir because otherwise we won't find it if we're
5648  # using a relative directory.
5649  cp "$am_depcomp" conftest.dir
5650  cd conftest.dir
5651  # We will build objects and dependencies in a subdirectory because
5652  # it helps to detect inapplicable dependency modes.  For instance
5653  # both Tru64's cc and ICC support -MD to output dependencies as a
5654  # side effect of compilation, but ICC will put the dependencies in
5655  # the current directory while Tru64 will put them in the object
5656  # directory.
5657  mkdir sub
5658
5659  am_cv_CC_dependencies_compiler_type=none
5660  if test "$am_compiler_list" = ""; then
5661     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5662  fi
5663  am__universal=false
5664  case " $depcc " in #(
5665     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5666     esac
5667
5668  for depmode in $am_compiler_list; do
5669    # Setup a source with many dependencies, because some compilers
5670    # like to wrap large dependency lists on column 80 (with \), and
5671    # we should not choose a depcomp mode which is confused by this.
5672    #
5673    # We need to recreate these files for each test, as the compiler may
5674    # overwrite some of them when testing with obscure command lines.
5675    # This happens at least with the AIX C compiler.
5676    : > sub/conftest.c
5677    for i in 1 2 3 4 5 6; do
5678      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5679      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5680      # Solaris 10 /bin/sh.
5681      echo '/* dummy */' > sub/conftst$i.h
5682    done
5683    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5684
5685    # We check with '-c' and '-o' for the sake of the "dashmstdout"
5686    # mode.  It turns out that the SunPro C++ compiler does not properly
5687    # handle '-M -o', and we need to detect this.  Also, some Intel
5688    # versions had trouble with output in subdirs.
5689    am__obj=sub/conftest.${OBJEXT-o}
5690    am__minus_obj="-o $am__obj"
5691    case $depmode in
5692    gcc)
5693      # This depmode causes a compiler race in universal mode.
5694      test "$am__universal" = false || continue
5695      ;;
5696    nosideeffect)
5697      # After this tag, mechanisms are not by side-effect, so they'll
5698      # only be used when explicitly requested.
5699      if test "x$enable_dependency_tracking" = xyes; then
5700	continue
5701      else
5702	break
5703      fi
5704      ;;
5705    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5706      # This compiler won't grok '-c -o', but also, the minuso test has
5707      # not run yet.  These depmodes are late enough in the game, and
5708      # so weak that their functioning should not be impacted.
5709      am__obj=conftest.${OBJEXT-o}
5710      am__minus_obj=
5711      ;;
5712    none) break ;;
5713    esac
5714    if depmode=$depmode \
5715       source=sub/conftest.c object=$am__obj \
5716       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5717       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5718         >/dev/null 2>conftest.err &&
5719       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5720       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5721       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5722       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5723      # icc doesn't choke on unknown options, it will just issue warnings
5724      # or remarks (even with -Werror).  So we grep stderr for any message
5725      # that says an option was ignored or not supported.
5726      # When given -MP, icc 7.0 and 7.1 complain thusly:
5727      #   icc: Command line warning: ignoring option '-M'; no argument required
5728      # The diagnosis changed in icc 8.0:
5729      #   icc: Command line remark: option '-MP' not supported
5730      if (grep 'ignoring option' conftest.err ||
5731          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5732        am_cv_CC_dependencies_compiler_type=$depmode
5733        break
5734      fi
5735    fi
5736  done
5737
5738  cd ..
5739  rm -rf conftest.dir
5740else
5741  am_cv_CC_dependencies_compiler_type=none
5742fi
5743
5744fi
5745{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5746printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5747CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5748
5749 if
5750  test "x$enable_dependency_tracking" != xno \
5751  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5752  am__fastdepCC_TRUE=
5753  am__fastdepCC_FALSE='#'
5754else
5755  am__fastdepCC_TRUE='#'
5756  am__fastdepCC_FALSE=
5757fi
5758
5759
5760
5761ac_header= ac_cache=
5762for ac_item in $ac_header_c_list
5763do
5764  if test $ac_cache; then
5765    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
5766    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
5767      printf "%s\n" "#define $ac_item 1" >> confdefs.h
5768    fi
5769    ac_header= ac_cache=
5770  elif test $ac_header; then
5771    ac_cache=$ac_item
5772  else
5773    ac_header=$ac_item
5774  fi
5775done
5776
5777
5778
5779
5780
5781
5782
5783
5784if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
5785then :
5786
5787printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
5788
5789fi
5790
5791
5792
5793
5794
5795
5796  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5797printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5798if test ${ac_cv_safe_to_define___extensions__+y}
5799then :
5800  printf %s "(cached) " >&6
5801else $as_nop
5802  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5803/* end confdefs.h.  */
5804
5805#         define __EXTENSIONS__ 1
5806          $ac_includes_default
5807int
5808main (void)
5809{
5810
5811  ;
5812  return 0;
5813}
5814_ACEOF
5815if ac_fn_c_try_compile "$LINENO"
5816then :
5817  ac_cv_safe_to_define___extensions__=yes
5818else $as_nop
5819  ac_cv_safe_to_define___extensions__=no
5820fi
5821rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5822fi
5823{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5824printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
5825
5826  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
5827printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
5828if test ${ac_cv_should_define__xopen_source+y}
5829then :
5830  printf %s "(cached) " >&6
5831else $as_nop
5832  ac_cv_should_define__xopen_source=no
5833    if test $ac_cv_header_wchar_h = yes
5834then :
5835  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5836/* end confdefs.h.  */
5837
5838          #include <wchar.h>
5839          mbstate_t x;
5840int
5841main (void)
5842{
5843
5844  ;
5845  return 0;
5846}
5847_ACEOF
5848if ac_fn_c_try_compile "$LINENO"
5849then :
5850
5851else $as_nop
5852  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5853/* end confdefs.h.  */
5854
5855            #define _XOPEN_SOURCE 500
5856            #include <wchar.h>
5857            mbstate_t x;
5858int
5859main (void)
5860{
5861
5862  ;
5863  return 0;
5864}
5865_ACEOF
5866if ac_fn_c_try_compile "$LINENO"
5867then :
5868  ac_cv_should_define__xopen_source=yes
5869fi
5870rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5871fi
5872rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5873fi
5874fi
5875{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
5876printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
5877
5878  printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
5879
5880  printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
5881
5882  printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
5883
5884  printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
5885
5886  printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
5887
5888  printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
5889
5890  printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5891
5892  printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
5893
5894  printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
5895
5896  printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
5897
5898  printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
5899
5900  printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
5901
5902  printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
5903
5904  printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
5905
5906  printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
5907
5908  if test $ac_cv_header_minix_config_h = yes
5909then :
5910  MINIX=yes
5911    printf "%s\n" "#define _MINIX 1" >>confdefs.h
5912
5913    printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
5914
5915    printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
5916
5917else $as_nop
5918  MINIX=
5919fi
5920  if test $ac_cv_safe_to_define___extensions__ = yes
5921then :
5922  printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
5923
5924fi
5925  if test $ac_cv_should_define__xopen_source = yes
5926then :
5927  printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
5928
5929fi
5930
5931
5932# Require xorg-macros minimum of 1.14 for XORG_COMPILER_BRAND in XORG_DEFAULT_OPTIONS
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
5946printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
5947if test ${ac_cv_c_undeclared_builtin_options+y}
5948then :
5949  printf %s "(cached) " >&6
5950else $as_nop
5951  ac_save_CFLAGS=$CFLAGS
5952   ac_cv_c_undeclared_builtin_options='cannot detect'
5953   for ac_arg in '' -fno-builtin; do
5954     CFLAGS="$ac_save_CFLAGS $ac_arg"
5955     # This test program should *not* compile successfully.
5956     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5957/* end confdefs.h.  */
5958
5959int
5960main (void)
5961{
5962(void) strchr;
5963  ;
5964  return 0;
5965}
5966_ACEOF
5967if ac_fn_c_try_compile "$LINENO"
5968then :
5969
5970else $as_nop
5971  # This test program should compile successfully.
5972        # No library function is consistently available on
5973        # freestanding implementations, so test against a dummy
5974        # declaration.  Include always-available headers on the
5975        # off chance that they somehow elicit warnings.
5976        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5977/* end confdefs.h.  */
5978#include <float.h>
5979#include <limits.h>
5980#include <stdarg.h>
5981#include <stddef.h>
5982extern void ac_decl (int, char *);
5983
5984int
5985main (void)
5986{
5987(void) ac_decl (0, (char *) 0);
5988  (void) ac_decl;
5989
5990  ;
5991  return 0;
5992}
5993_ACEOF
5994if ac_fn_c_try_compile "$LINENO"
5995then :
5996  if test x"$ac_arg" = x
5997then :
5998  ac_cv_c_undeclared_builtin_options='none needed'
5999else $as_nop
6000  ac_cv_c_undeclared_builtin_options=$ac_arg
6001fi
6002          break
6003fi
6004rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6005fi
6006rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6007    done
6008    CFLAGS=$ac_save_CFLAGS
6009
6010fi
6011{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
6012printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
6013  case $ac_cv_c_undeclared_builtin_options in #(
6014  'cannot detect') :
6015    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6016printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6017as_fn_error $? "cannot make $CC report undeclared builtins
6018See \`config.log' for more details" "$LINENO" 5; } ;; #(
6019  'none needed') :
6020    ac_c_undeclared_builtin_options='' ;; #(
6021  *) :
6022    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
6023esac
6024
6025
6026
6027
6028
6029ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
6030if test "x$ac_cv_have_decl___clang__" = xyes
6031then :
6032  CLANGCC="yes"
6033else $as_nop
6034  CLANGCC="no"
6035fi
6036ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
6037if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
6038then :
6039  INTELCC="yes"
6040else $as_nop
6041  INTELCC="no"
6042fi
6043ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
6044if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
6045then :
6046  SUNCC="yes"
6047else $as_nop
6048  SUNCC="no"
6049fi
6050
6051
6052
6053
6054
6055
6056
6057
6058if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6059	if test -n "$ac_tool_prefix"; then
6060  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6061set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6062{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6063printf %s "checking for $ac_word... " >&6; }
6064if test ${ac_cv_path_PKG_CONFIG+y}
6065then :
6066  printf %s "(cached) " >&6
6067else $as_nop
6068  case $PKG_CONFIG in
6069  [\\/]* | ?:[\\/]*)
6070  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6071  ;;
6072  *)
6073  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6074for as_dir in $PATH
6075do
6076  IFS=$as_save_IFS
6077  case $as_dir in #(((
6078    '') as_dir=./ ;;
6079    */) ;;
6080    *) as_dir=$as_dir/ ;;
6081  esac
6082    for ac_exec_ext in '' $ac_executable_extensions; do
6083  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6084    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
6085    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6086    break 2
6087  fi
6088done
6089  done
6090IFS=$as_save_IFS
6091
6092  ;;
6093esac
6094fi
6095PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6096if test -n "$PKG_CONFIG"; then
6097  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6098printf "%s\n" "$PKG_CONFIG" >&6; }
6099else
6100  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6101printf "%s\n" "no" >&6; }
6102fi
6103
6104
6105fi
6106if test -z "$ac_cv_path_PKG_CONFIG"; then
6107  ac_pt_PKG_CONFIG=$PKG_CONFIG
6108  # Extract the first word of "pkg-config", so it can be a program name with args.
6109set dummy pkg-config; ac_word=$2
6110{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6111printf %s "checking for $ac_word... " >&6; }
6112if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
6113then :
6114  printf %s "(cached) " >&6
6115else $as_nop
6116  case $ac_pt_PKG_CONFIG in
6117  [\\/]* | ?:[\\/]*)
6118  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6119  ;;
6120  *)
6121  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6122for as_dir in $PATH
6123do
6124  IFS=$as_save_IFS
6125  case $as_dir in #(((
6126    '') as_dir=./ ;;
6127    */) ;;
6128    *) as_dir=$as_dir/ ;;
6129  esac
6130    for ac_exec_ext in '' $ac_executable_extensions; do
6131  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6132    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
6133    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6134    break 2
6135  fi
6136done
6137  done
6138IFS=$as_save_IFS
6139
6140  ;;
6141esac
6142fi
6143ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6144if test -n "$ac_pt_PKG_CONFIG"; then
6145  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
6146printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
6147else
6148  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6149printf "%s\n" "no" >&6; }
6150fi
6151
6152  if test "x$ac_pt_PKG_CONFIG" = x; then
6153    PKG_CONFIG=""
6154  else
6155    case $cross_compiling:$ac_tool_warned in
6156yes:)
6157{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6158printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6159ac_tool_warned=yes ;;
6160esac
6161    PKG_CONFIG=$ac_pt_PKG_CONFIG
6162  fi
6163else
6164  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6165fi
6166
6167fi
6168if test -n "$PKG_CONFIG"; then
6169	_pkg_min_version=0.9.0
6170	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
6171printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6172	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6173		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6174printf "%s\n" "yes" >&6; }
6175	else
6176		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6177printf "%s\n" "no" >&6; }
6178		PKG_CONFIG=""
6179	fi
6180fi
6181
6182
6183  # Make sure we can run config.sub.
6184$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
6185  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
6186
6187{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6188printf %s "checking build system type... " >&6; }
6189if test ${ac_cv_build+y}
6190then :
6191  printf %s "(cached) " >&6
6192else $as_nop
6193  ac_build_alias=$build_alias
6194test "x$ac_build_alias" = x &&
6195  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
6196test "x$ac_build_alias" = x &&
6197  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6198ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
6199  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
6200
6201fi
6202{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6203printf "%s\n" "$ac_cv_build" >&6; }
6204case $ac_cv_build in
6205*-*-*) ;;
6206*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6207esac
6208build=$ac_cv_build
6209ac_save_IFS=$IFS; IFS='-'
6210set x $ac_cv_build
6211shift
6212build_cpu=$1
6213build_vendor=$2
6214shift; shift
6215# Remember, the first character of IFS is used to create $*,
6216# except with old shells:
6217build_os=$*
6218IFS=$ac_save_IFS
6219case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6220
6221
6222{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6223printf %s "checking host system type... " >&6; }
6224if test ${ac_cv_host+y}
6225then :
6226  printf %s "(cached) " >&6
6227else $as_nop
6228  if test "x$host_alias" = x; then
6229  ac_cv_host=$ac_cv_build
6230else
6231  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
6232    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
6233fi
6234
6235fi
6236{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6237printf "%s\n" "$ac_cv_host" >&6; }
6238case $ac_cv_host in
6239*-*-*) ;;
6240*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6241esac
6242host=$ac_cv_host
6243ac_save_IFS=$IFS; IFS='-'
6244set x $ac_cv_host
6245shift
6246host_cpu=$1
6247host_vendor=$2
6248shift; shift
6249# Remember, the first character of IFS is used to create $*,
6250# except with old shells:
6251host_os=$*
6252IFS=$ac_save_IFS
6253case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6254
6255
6256{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6257printf %s "checking for a sed that does not truncate output... " >&6; }
6258if test ${ac_cv_path_SED+y}
6259then :
6260  printf %s "(cached) " >&6
6261else $as_nop
6262            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6263     for ac_i in 1 2 3 4 5 6 7; do
6264       ac_script="$ac_script$as_nl$ac_script"
6265     done
6266     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6267     { ac_script=; unset ac_script;}
6268     if test -z "$SED"; then
6269  ac_path_SED_found=false
6270  # Loop through the user's path and test for each of PROGNAME-LIST
6271  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6272for as_dir in $PATH
6273do
6274  IFS=$as_save_IFS
6275  case $as_dir in #(((
6276    '') as_dir=./ ;;
6277    */) ;;
6278    *) as_dir=$as_dir/ ;;
6279  esac
6280    for ac_prog in sed gsed
6281   do
6282    for ac_exec_ext in '' $ac_executable_extensions; do
6283      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
6284      as_fn_executable_p "$ac_path_SED" || continue
6285# Check for GNU ac_path_SED and select it if it is found.
6286  # Check for GNU $ac_path_SED
6287case `"$ac_path_SED" --version 2>&1` in
6288*GNU*)
6289  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6290*)
6291  ac_count=0
6292  printf %s 0123456789 >"conftest.in"
6293  while :
6294  do
6295    cat "conftest.in" "conftest.in" >"conftest.tmp"
6296    mv "conftest.tmp" "conftest.in"
6297    cp "conftest.in" "conftest.nl"
6298    printf "%s\n" '' >> "conftest.nl"
6299    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6300    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6301    as_fn_arith $ac_count + 1 && ac_count=$as_val
6302    if test $ac_count -gt ${ac_path_SED_max-0}; then
6303      # Best one so far, save it but keep looking for a better one
6304      ac_cv_path_SED="$ac_path_SED"
6305      ac_path_SED_max=$ac_count
6306    fi
6307    # 10*(2^10) chars as input seems more than enough
6308    test $ac_count -gt 10 && break
6309  done
6310  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6311esac
6312
6313      $ac_path_SED_found && break 3
6314    done
6315  done
6316  done
6317IFS=$as_save_IFS
6318  if test -z "$ac_cv_path_SED"; then
6319    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6320  fi
6321else
6322  ac_cv_path_SED=$SED
6323fi
6324
6325fi
6326{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6327printf "%s\n" "$ac_cv_path_SED" >&6; }
6328 SED="$ac_cv_path_SED"
6329  rm -f conftest.sed
6330
6331
6332
6333
6334
6335
6336# Check whether --enable-selective-werror was given.
6337if test ${enable_selective_werror+y}
6338then :
6339  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
6340else $as_nop
6341  SELECTIVE_WERROR=yes
6342fi
6343
6344
6345
6346
6347
6348# -v is too short to test reliably with XORG_TESTSET_CFLAG
6349if test "x$SUNCC" = "xyes"; then
6350    BASE_CFLAGS="-v"
6351else
6352    BASE_CFLAGS=""
6353fi
6354
6355# This chunk of warnings were those that existed in the legacy CWARNFLAGS
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369xorg_testset_save_CFLAGS="$CFLAGS"
6370
6371if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6372	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6373	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6374printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6375if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6376then :
6377  printf %s "(cached) " >&6
6378else $as_nop
6379  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6380/* end confdefs.h.  */
6381int i;
6382_ACEOF
6383if ac_fn_c_try_compile "$LINENO"
6384then :
6385  xorg_cv_cc_flag_unknown_warning_option=yes
6386else $as_nop
6387  xorg_cv_cc_flag_unknown_warning_option=no
6388fi
6389rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6390fi
6391{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6392printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6393	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6394	CFLAGS="$xorg_testset_save_CFLAGS"
6395fi
6396
6397if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6398	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6399		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6400	fi
6401	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6402	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6403printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6404if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6405then :
6406  printf %s "(cached) " >&6
6407else $as_nop
6408  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6409/* end confdefs.h.  */
6410int i;
6411_ACEOF
6412if ac_fn_c_try_compile "$LINENO"
6413then :
6414  xorg_cv_cc_flag_unused_command_line_argument=yes
6415else $as_nop
6416  xorg_cv_cc_flag_unused_command_line_argument=no
6417fi
6418rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6419fi
6420{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6421printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6422	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6423	CFLAGS="$xorg_testset_save_CFLAGS"
6424fi
6425
6426found="no"
6427
6428	if test $found = "no" ; then
6429		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6430			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6431		fi
6432
6433		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6434			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6435		fi
6436
6437		CFLAGS="$CFLAGS -Wall"
6438
6439		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
6440printf %s "checking if $CC supports -Wall... " >&6; }
6441		cacheid=xorg_cv_cc_flag__Wall
6442		if eval test \${$cacheid+y}
6443then :
6444  printf %s "(cached) " >&6
6445else $as_nop
6446  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6447/* end confdefs.h.  */
6448int i;
6449int
6450main (void)
6451{
6452
6453  ;
6454  return 0;
6455}
6456_ACEOF
6457if ac_fn_c_try_link "$LINENO"
6458then :
6459  eval $cacheid=yes
6460else $as_nop
6461  eval $cacheid=no
6462fi
6463rm -f core conftest.err conftest.$ac_objext conftest.beam \
6464    conftest$ac_exeext conftest.$ac_ext
6465fi
6466
6467
6468		CFLAGS="$xorg_testset_save_CFLAGS"
6469
6470		eval supported=\$$cacheid
6471		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6472printf "%s\n" "$supported" >&6; }
6473		if test "$supported" = "yes" ; then
6474			BASE_CFLAGS="$BASE_CFLAGS -Wall"
6475			found="yes"
6476		fi
6477	fi
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493xorg_testset_save_CFLAGS="$CFLAGS"
6494
6495if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6496	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6497	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6498printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6499if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6500then :
6501  printf %s "(cached) " >&6
6502else $as_nop
6503  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6504/* end confdefs.h.  */
6505int i;
6506_ACEOF
6507if ac_fn_c_try_compile "$LINENO"
6508then :
6509  xorg_cv_cc_flag_unknown_warning_option=yes
6510else $as_nop
6511  xorg_cv_cc_flag_unknown_warning_option=no
6512fi
6513rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6514fi
6515{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6516printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6517	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6518	CFLAGS="$xorg_testset_save_CFLAGS"
6519fi
6520
6521if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6522	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6523		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6524	fi
6525	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6526	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6527printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6528if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6529then :
6530  printf %s "(cached) " >&6
6531else $as_nop
6532  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6533/* end confdefs.h.  */
6534int i;
6535_ACEOF
6536if ac_fn_c_try_compile "$LINENO"
6537then :
6538  xorg_cv_cc_flag_unused_command_line_argument=yes
6539else $as_nop
6540  xorg_cv_cc_flag_unused_command_line_argument=no
6541fi
6542rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6543fi
6544{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6545printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6546	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6547	CFLAGS="$xorg_testset_save_CFLAGS"
6548fi
6549
6550found="no"
6551
6552	if test $found = "no" ; then
6553		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6554			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6555		fi
6556
6557		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6558			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6559		fi
6560
6561		CFLAGS="$CFLAGS -Wpointer-arith"
6562
6563		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
6564printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
6565		cacheid=xorg_cv_cc_flag__Wpointer_arith
6566		if eval test \${$cacheid+y}
6567then :
6568  printf %s "(cached) " >&6
6569else $as_nop
6570  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6571/* end confdefs.h.  */
6572int i;
6573int
6574main (void)
6575{
6576
6577  ;
6578  return 0;
6579}
6580_ACEOF
6581if ac_fn_c_try_link "$LINENO"
6582then :
6583  eval $cacheid=yes
6584else $as_nop
6585  eval $cacheid=no
6586fi
6587rm -f core conftest.err conftest.$ac_objext conftest.beam \
6588    conftest$ac_exeext conftest.$ac_ext
6589fi
6590
6591
6592		CFLAGS="$xorg_testset_save_CFLAGS"
6593
6594		eval supported=\$$cacheid
6595		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6596printf "%s\n" "$supported" >&6; }
6597		if test "$supported" = "yes" ; then
6598			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
6599			found="yes"
6600		fi
6601	fi
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617xorg_testset_save_CFLAGS="$CFLAGS"
6618
6619if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6620	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6621	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6622printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6623if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6624then :
6625  printf %s "(cached) " >&6
6626else $as_nop
6627  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6628/* end confdefs.h.  */
6629int i;
6630_ACEOF
6631if ac_fn_c_try_compile "$LINENO"
6632then :
6633  xorg_cv_cc_flag_unknown_warning_option=yes
6634else $as_nop
6635  xorg_cv_cc_flag_unknown_warning_option=no
6636fi
6637rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6638fi
6639{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6640printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6641	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6642	CFLAGS="$xorg_testset_save_CFLAGS"
6643fi
6644
6645if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6646	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6647		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6648	fi
6649	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6650	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6651printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6652if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6653then :
6654  printf %s "(cached) " >&6
6655else $as_nop
6656  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6657/* end confdefs.h.  */
6658int i;
6659_ACEOF
6660if ac_fn_c_try_compile "$LINENO"
6661then :
6662  xorg_cv_cc_flag_unused_command_line_argument=yes
6663else $as_nop
6664  xorg_cv_cc_flag_unused_command_line_argument=no
6665fi
6666rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6667fi
6668{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6669printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6670	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6671	CFLAGS="$xorg_testset_save_CFLAGS"
6672fi
6673
6674found="no"
6675
6676	if test $found = "no" ; then
6677		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6678			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6679		fi
6680
6681		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6682			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6683		fi
6684
6685		CFLAGS="$CFLAGS -Wmissing-declarations"
6686
6687		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
6688printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
6689		cacheid=xorg_cv_cc_flag__Wmissing_declarations
6690		if eval test \${$cacheid+y}
6691then :
6692  printf %s "(cached) " >&6
6693else $as_nop
6694  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6695/* end confdefs.h.  */
6696int i;
6697int
6698main (void)
6699{
6700
6701  ;
6702  return 0;
6703}
6704_ACEOF
6705if ac_fn_c_try_link "$LINENO"
6706then :
6707  eval $cacheid=yes
6708else $as_nop
6709  eval $cacheid=no
6710fi
6711rm -f core conftest.err conftest.$ac_objext conftest.beam \
6712    conftest$ac_exeext conftest.$ac_ext
6713fi
6714
6715
6716		CFLAGS="$xorg_testset_save_CFLAGS"
6717
6718		eval supported=\$$cacheid
6719		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6720printf "%s\n" "$supported" >&6; }
6721		if test "$supported" = "yes" ; then
6722			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
6723			found="yes"
6724		fi
6725	fi
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741xorg_testset_save_CFLAGS="$CFLAGS"
6742
6743if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6744	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6745	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6746printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6747if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6748then :
6749  printf %s "(cached) " >&6
6750else $as_nop
6751  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6752/* end confdefs.h.  */
6753int i;
6754_ACEOF
6755if ac_fn_c_try_compile "$LINENO"
6756then :
6757  xorg_cv_cc_flag_unknown_warning_option=yes
6758else $as_nop
6759  xorg_cv_cc_flag_unknown_warning_option=no
6760fi
6761rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6762fi
6763{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6764printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6765	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6766	CFLAGS="$xorg_testset_save_CFLAGS"
6767fi
6768
6769if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6770	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6771		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6772	fi
6773	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6774	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6775printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6776if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6777then :
6778  printf %s "(cached) " >&6
6779else $as_nop
6780  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6781/* end confdefs.h.  */
6782int i;
6783_ACEOF
6784if ac_fn_c_try_compile "$LINENO"
6785then :
6786  xorg_cv_cc_flag_unused_command_line_argument=yes
6787else $as_nop
6788  xorg_cv_cc_flag_unused_command_line_argument=no
6789fi
6790rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6791fi
6792{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6793printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6794	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6795	CFLAGS="$xorg_testset_save_CFLAGS"
6796fi
6797
6798found="no"
6799
6800	if test $found = "no" ; then
6801		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6802			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6803		fi
6804
6805		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6806			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6807		fi
6808
6809		CFLAGS="$CFLAGS -Wformat=2"
6810
6811		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
6812printf %s "checking if $CC supports -Wformat=2... " >&6; }
6813		cacheid=xorg_cv_cc_flag__Wformat_2
6814		if eval test \${$cacheid+y}
6815then :
6816  printf %s "(cached) " >&6
6817else $as_nop
6818  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6819/* end confdefs.h.  */
6820int i;
6821int
6822main (void)
6823{
6824
6825  ;
6826  return 0;
6827}
6828_ACEOF
6829if ac_fn_c_try_link "$LINENO"
6830then :
6831  eval $cacheid=yes
6832else $as_nop
6833  eval $cacheid=no
6834fi
6835rm -f core conftest.err conftest.$ac_objext conftest.beam \
6836    conftest$ac_exeext conftest.$ac_ext
6837fi
6838
6839
6840		CFLAGS="$xorg_testset_save_CFLAGS"
6841
6842		eval supported=\$$cacheid
6843		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6844printf "%s\n" "$supported" >&6; }
6845		if test "$supported" = "yes" ; then
6846			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
6847			found="yes"
6848		fi
6849	fi
6850
6851	if test $found = "no" ; then
6852		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6853			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6854		fi
6855
6856		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6857			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6858		fi
6859
6860		CFLAGS="$CFLAGS -Wformat"
6861
6862		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
6863printf %s "checking if $CC supports -Wformat... " >&6; }
6864		cacheid=xorg_cv_cc_flag__Wformat
6865		if eval test \${$cacheid+y}
6866then :
6867  printf %s "(cached) " >&6
6868else $as_nop
6869  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6870/* end confdefs.h.  */
6871int i;
6872int
6873main (void)
6874{
6875
6876  ;
6877  return 0;
6878}
6879_ACEOF
6880if ac_fn_c_try_link "$LINENO"
6881then :
6882  eval $cacheid=yes
6883else $as_nop
6884  eval $cacheid=no
6885fi
6886rm -f core conftest.err conftest.$ac_objext conftest.beam \
6887    conftest$ac_exeext conftest.$ac_ext
6888fi
6889
6890
6891		CFLAGS="$xorg_testset_save_CFLAGS"
6892
6893		eval supported=\$$cacheid
6894		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6895printf "%s\n" "$supported" >&6; }
6896		if test "$supported" = "yes" ; then
6897			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
6898			found="yes"
6899		fi
6900	fi
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918xorg_testset_save_CFLAGS="$CFLAGS"
6919
6920if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6921	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6922	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6923printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6924if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6925then :
6926  printf %s "(cached) " >&6
6927else $as_nop
6928  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6929/* end confdefs.h.  */
6930int i;
6931_ACEOF
6932if ac_fn_c_try_compile "$LINENO"
6933then :
6934  xorg_cv_cc_flag_unknown_warning_option=yes
6935else $as_nop
6936  xorg_cv_cc_flag_unknown_warning_option=no
6937fi
6938rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6939fi
6940{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6941printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6942	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6943	CFLAGS="$xorg_testset_save_CFLAGS"
6944fi
6945
6946if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6947	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6948		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6949	fi
6950	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6951	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6952printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6953if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6954then :
6955  printf %s "(cached) " >&6
6956else $as_nop
6957  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6958/* end confdefs.h.  */
6959int i;
6960_ACEOF
6961if ac_fn_c_try_compile "$LINENO"
6962then :
6963  xorg_cv_cc_flag_unused_command_line_argument=yes
6964else $as_nop
6965  xorg_cv_cc_flag_unused_command_line_argument=no
6966fi
6967rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6968fi
6969{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6970printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6971	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6972	CFLAGS="$xorg_testset_save_CFLAGS"
6973fi
6974
6975found="no"
6976
6977	if test $found = "no" ; then
6978		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6979			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6980		fi
6981
6982		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6983			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6984		fi
6985
6986		CFLAGS="$CFLAGS -Wstrict-prototypes"
6987
6988		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
6989printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
6990		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
6991		if eval test \${$cacheid+y}
6992then :
6993  printf %s "(cached) " >&6
6994else $as_nop
6995  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6996/* end confdefs.h.  */
6997int i;
6998int
6999main (void)
7000{
7001
7002  ;
7003  return 0;
7004}
7005_ACEOF
7006if ac_fn_c_try_link "$LINENO"
7007then :
7008  eval $cacheid=yes
7009else $as_nop
7010  eval $cacheid=no
7011fi
7012rm -f core conftest.err conftest.$ac_objext conftest.beam \
7013    conftest$ac_exeext conftest.$ac_ext
7014fi
7015
7016
7017		CFLAGS="$xorg_testset_save_CFLAGS"
7018
7019		eval supported=\$$cacheid
7020		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7021printf "%s\n" "$supported" >&6; }
7022		if test "$supported" = "yes" ; then
7023			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
7024			found="yes"
7025		fi
7026	fi
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042xorg_testset_save_CFLAGS="$CFLAGS"
7043
7044if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7045	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7046	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7047printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7048if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7049then :
7050  printf %s "(cached) " >&6
7051else $as_nop
7052  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7053/* end confdefs.h.  */
7054int i;
7055_ACEOF
7056if ac_fn_c_try_compile "$LINENO"
7057then :
7058  xorg_cv_cc_flag_unknown_warning_option=yes
7059else $as_nop
7060  xorg_cv_cc_flag_unknown_warning_option=no
7061fi
7062rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7063fi
7064{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7065printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7066	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7067	CFLAGS="$xorg_testset_save_CFLAGS"
7068fi
7069
7070if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7071	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7072		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7073	fi
7074	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7075	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7076printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7077if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7078then :
7079  printf %s "(cached) " >&6
7080else $as_nop
7081  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7082/* end confdefs.h.  */
7083int i;
7084_ACEOF
7085if ac_fn_c_try_compile "$LINENO"
7086then :
7087  xorg_cv_cc_flag_unused_command_line_argument=yes
7088else $as_nop
7089  xorg_cv_cc_flag_unused_command_line_argument=no
7090fi
7091rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7092fi
7093{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7094printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7095	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7096	CFLAGS="$xorg_testset_save_CFLAGS"
7097fi
7098
7099found="no"
7100
7101	if test $found = "no" ; then
7102		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7103			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7104		fi
7105
7106		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7107			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7108		fi
7109
7110		CFLAGS="$CFLAGS -Wmissing-prototypes"
7111
7112		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
7113printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
7114		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
7115		if eval test \${$cacheid+y}
7116then :
7117  printf %s "(cached) " >&6
7118else $as_nop
7119  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7120/* end confdefs.h.  */
7121int i;
7122int
7123main (void)
7124{
7125
7126  ;
7127  return 0;
7128}
7129_ACEOF
7130if ac_fn_c_try_link "$LINENO"
7131then :
7132  eval $cacheid=yes
7133else $as_nop
7134  eval $cacheid=no
7135fi
7136rm -f core conftest.err conftest.$ac_objext conftest.beam \
7137    conftest$ac_exeext conftest.$ac_ext
7138fi
7139
7140
7141		CFLAGS="$xorg_testset_save_CFLAGS"
7142
7143		eval supported=\$$cacheid
7144		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7145printf "%s\n" "$supported" >&6; }
7146		if test "$supported" = "yes" ; then
7147			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
7148			found="yes"
7149		fi
7150	fi
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166xorg_testset_save_CFLAGS="$CFLAGS"
7167
7168if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7169	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7170	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7171printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7172if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7173then :
7174  printf %s "(cached) " >&6
7175else $as_nop
7176  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7177/* end confdefs.h.  */
7178int i;
7179_ACEOF
7180if ac_fn_c_try_compile "$LINENO"
7181then :
7182  xorg_cv_cc_flag_unknown_warning_option=yes
7183else $as_nop
7184  xorg_cv_cc_flag_unknown_warning_option=no
7185fi
7186rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7187fi
7188{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7189printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7190	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7191	CFLAGS="$xorg_testset_save_CFLAGS"
7192fi
7193
7194if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7195	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7196		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7197	fi
7198	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7199	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7200printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7201if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7202then :
7203  printf %s "(cached) " >&6
7204else $as_nop
7205  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7206/* end confdefs.h.  */
7207int i;
7208_ACEOF
7209if ac_fn_c_try_compile "$LINENO"
7210then :
7211  xorg_cv_cc_flag_unused_command_line_argument=yes
7212else $as_nop
7213  xorg_cv_cc_flag_unused_command_line_argument=no
7214fi
7215rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7216fi
7217{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7218printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7219	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7220	CFLAGS="$xorg_testset_save_CFLAGS"
7221fi
7222
7223found="no"
7224
7225	if test $found = "no" ; then
7226		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7227			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7228		fi
7229
7230		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7231			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7232		fi
7233
7234		CFLAGS="$CFLAGS -Wnested-externs"
7235
7236		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
7237printf %s "checking if $CC supports -Wnested-externs... " >&6; }
7238		cacheid=xorg_cv_cc_flag__Wnested_externs
7239		if eval test \${$cacheid+y}
7240then :
7241  printf %s "(cached) " >&6
7242else $as_nop
7243  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7244/* end confdefs.h.  */
7245int i;
7246int
7247main (void)
7248{
7249
7250  ;
7251  return 0;
7252}
7253_ACEOF
7254if ac_fn_c_try_link "$LINENO"
7255then :
7256  eval $cacheid=yes
7257else $as_nop
7258  eval $cacheid=no
7259fi
7260rm -f core conftest.err conftest.$ac_objext conftest.beam \
7261    conftest$ac_exeext conftest.$ac_ext
7262fi
7263
7264
7265		CFLAGS="$xorg_testset_save_CFLAGS"
7266
7267		eval supported=\$$cacheid
7268		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7269printf "%s\n" "$supported" >&6; }
7270		if test "$supported" = "yes" ; then
7271			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
7272			found="yes"
7273		fi
7274	fi
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290xorg_testset_save_CFLAGS="$CFLAGS"
7291
7292if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7293	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7294	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7295printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7296if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7297then :
7298  printf %s "(cached) " >&6
7299else $as_nop
7300  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7301/* end confdefs.h.  */
7302int i;
7303_ACEOF
7304if ac_fn_c_try_compile "$LINENO"
7305then :
7306  xorg_cv_cc_flag_unknown_warning_option=yes
7307else $as_nop
7308  xorg_cv_cc_flag_unknown_warning_option=no
7309fi
7310rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7311fi
7312{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7313printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7314	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7315	CFLAGS="$xorg_testset_save_CFLAGS"
7316fi
7317
7318if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7319	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7320		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7321	fi
7322	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7323	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7324printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7325if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7326then :
7327  printf %s "(cached) " >&6
7328else $as_nop
7329  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7330/* end confdefs.h.  */
7331int i;
7332_ACEOF
7333if ac_fn_c_try_compile "$LINENO"
7334then :
7335  xorg_cv_cc_flag_unused_command_line_argument=yes
7336else $as_nop
7337  xorg_cv_cc_flag_unused_command_line_argument=no
7338fi
7339rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7340fi
7341{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7342printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7343	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7344	CFLAGS="$xorg_testset_save_CFLAGS"
7345fi
7346
7347found="no"
7348
7349	if test $found = "no" ; then
7350		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7351			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7352		fi
7353
7354		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7355			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7356		fi
7357
7358		CFLAGS="$CFLAGS -Wbad-function-cast"
7359
7360		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
7361printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
7362		cacheid=xorg_cv_cc_flag__Wbad_function_cast
7363		if eval test \${$cacheid+y}
7364then :
7365  printf %s "(cached) " >&6
7366else $as_nop
7367  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7368/* end confdefs.h.  */
7369int i;
7370int
7371main (void)
7372{
7373
7374  ;
7375  return 0;
7376}
7377_ACEOF
7378if ac_fn_c_try_link "$LINENO"
7379then :
7380  eval $cacheid=yes
7381else $as_nop
7382  eval $cacheid=no
7383fi
7384rm -f core conftest.err conftest.$ac_objext conftest.beam \
7385    conftest$ac_exeext conftest.$ac_ext
7386fi
7387
7388
7389		CFLAGS="$xorg_testset_save_CFLAGS"
7390
7391		eval supported=\$$cacheid
7392		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7393printf "%s\n" "$supported" >&6; }
7394		if test "$supported" = "yes" ; then
7395			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
7396			found="yes"
7397		fi
7398	fi
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414xorg_testset_save_CFLAGS="$CFLAGS"
7415
7416if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7417	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7418	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7419printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7420if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7421then :
7422  printf %s "(cached) " >&6
7423else $as_nop
7424  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7425/* end confdefs.h.  */
7426int i;
7427_ACEOF
7428if ac_fn_c_try_compile "$LINENO"
7429then :
7430  xorg_cv_cc_flag_unknown_warning_option=yes
7431else $as_nop
7432  xorg_cv_cc_flag_unknown_warning_option=no
7433fi
7434rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7435fi
7436{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7437printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7438	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7439	CFLAGS="$xorg_testset_save_CFLAGS"
7440fi
7441
7442if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7443	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7444		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7445	fi
7446	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7447	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7448printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7449if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7450then :
7451  printf %s "(cached) " >&6
7452else $as_nop
7453  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7454/* end confdefs.h.  */
7455int i;
7456_ACEOF
7457if ac_fn_c_try_compile "$LINENO"
7458then :
7459  xorg_cv_cc_flag_unused_command_line_argument=yes
7460else $as_nop
7461  xorg_cv_cc_flag_unused_command_line_argument=no
7462fi
7463rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7464fi
7465{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7466printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7467	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7468	CFLAGS="$xorg_testset_save_CFLAGS"
7469fi
7470
7471found="no"
7472
7473	if test $found = "no" ; then
7474		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7475			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7476		fi
7477
7478		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7479			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7480		fi
7481
7482		CFLAGS="$CFLAGS -Wold-style-definition"
7483
7484		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
7485printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
7486		cacheid=xorg_cv_cc_flag__Wold_style_definition
7487		if eval test \${$cacheid+y}
7488then :
7489  printf %s "(cached) " >&6
7490else $as_nop
7491  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7492/* end confdefs.h.  */
7493int i;
7494int
7495main (void)
7496{
7497
7498  ;
7499  return 0;
7500}
7501_ACEOF
7502if ac_fn_c_try_link "$LINENO"
7503then :
7504  eval $cacheid=yes
7505else $as_nop
7506  eval $cacheid=no
7507fi
7508rm -f core conftest.err conftest.$ac_objext conftest.beam \
7509    conftest$ac_exeext conftest.$ac_ext
7510fi
7511
7512
7513		CFLAGS="$xorg_testset_save_CFLAGS"
7514
7515		eval supported=\$$cacheid
7516		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7517printf "%s\n" "$supported" >&6; }
7518		if test "$supported" = "yes" ; then
7519			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
7520			found="yes"
7521		fi
7522	fi
7523
7524	if test $found = "no" ; then
7525		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7526			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7527		fi
7528
7529		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7530			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7531		fi
7532
7533		CFLAGS="$CFLAGS -fd"
7534
7535		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
7536printf %s "checking if $CC supports -fd... " >&6; }
7537		cacheid=xorg_cv_cc_flag__fd
7538		if eval test \${$cacheid+y}
7539then :
7540  printf %s "(cached) " >&6
7541else $as_nop
7542  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7543/* end confdefs.h.  */
7544int i;
7545int
7546main (void)
7547{
7548
7549  ;
7550  return 0;
7551}
7552_ACEOF
7553if ac_fn_c_try_link "$LINENO"
7554then :
7555  eval $cacheid=yes
7556else $as_nop
7557  eval $cacheid=no
7558fi
7559rm -f core conftest.err conftest.$ac_objext conftest.beam \
7560    conftest$ac_exeext conftest.$ac_ext
7561fi
7562
7563
7564		CFLAGS="$xorg_testset_save_CFLAGS"
7565
7566		eval supported=\$$cacheid
7567		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7568printf "%s\n" "$supported" >&6; }
7569		if test "$supported" = "yes" ; then
7570			BASE_CFLAGS="$BASE_CFLAGS -fd"
7571			found="yes"
7572		fi
7573	fi
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589xorg_testset_save_CFLAGS="$CFLAGS"
7590
7591if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7592	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7593	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7594printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7595if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7596then :
7597  printf %s "(cached) " >&6
7598else $as_nop
7599  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7600/* end confdefs.h.  */
7601int i;
7602_ACEOF
7603if ac_fn_c_try_compile "$LINENO"
7604then :
7605  xorg_cv_cc_flag_unknown_warning_option=yes
7606else $as_nop
7607  xorg_cv_cc_flag_unknown_warning_option=no
7608fi
7609rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7610fi
7611{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7612printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7613	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7614	CFLAGS="$xorg_testset_save_CFLAGS"
7615fi
7616
7617if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7618	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7619		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7620	fi
7621	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7622	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7623printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7624if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7625then :
7626  printf %s "(cached) " >&6
7627else $as_nop
7628  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7629/* end confdefs.h.  */
7630int i;
7631_ACEOF
7632if ac_fn_c_try_compile "$LINENO"
7633then :
7634  xorg_cv_cc_flag_unused_command_line_argument=yes
7635else $as_nop
7636  xorg_cv_cc_flag_unused_command_line_argument=no
7637fi
7638rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7639fi
7640{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7641printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7642	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7643	CFLAGS="$xorg_testset_save_CFLAGS"
7644fi
7645
7646found="no"
7647
7648	if test $found = "no" ; then
7649		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7650			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7651		fi
7652
7653		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7654			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7655		fi
7656
7657		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
7658
7659		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
7660printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
7661		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
7662		if eval test \${$cacheid+y}
7663then :
7664  printf %s "(cached) " >&6
7665else $as_nop
7666  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7667/* end confdefs.h.  */
7668int i;
7669int
7670main (void)
7671{
7672
7673  ;
7674  return 0;
7675}
7676_ACEOF
7677if ac_fn_c_try_link "$LINENO"
7678then :
7679  eval $cacheid=yes
7680else $as_nop
7681  eval $cacheid=no
7682fi
7683rm -f core conftest.err conftest.$ac_objext conftest.beam \
7684    conftest$ac_exeext conftest.$ac_ext
7685fi
7686
7687
7688		CFLAGS="$xorg_testset_save_CFLAGS"
7689
7690		eval supported=\$$cacheid
7691		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7692printf "%s\n" "$supported" >&6; }
7693		if test "$supported" = "yes" ; then
7694			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
7695			found="yes"
7696		fi
7697	fi
7698
7699
7700
7701
7702
7703# This chunk adds additional warnings that could catch undesired effects.
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717xorg_testset_save_CFLAGS="$CFLAGS"
7718
7719if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7720	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7721	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7722printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7723if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7724then :
7725  printf %s "(cached) " >&6
7726else $as_nop
7727  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7728/* end confdefs.h.  */
7729int i;
7730_ACEOF
7731if ac_fn_c_try_compile "$LINENO"
7732then :
7733  xorg_cv_cc_flag_unknown_warning_option=yes
7734else $as_nop
7735  xorg_cv_cc_flag_unknown_warning_option=no
7736fi
7737rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7738fi
7739{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7740printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7741	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7742	CFLAGS="$xorg_testset_save_CFLAGS"
7743fi
7744
7745if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7746	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7747		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7748	fi
7749	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7750	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7751printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7752if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7753then :
7754  printf %s "(cached) " >&6
7755else $as_nop
7756  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7757/* end confdefs.h.  */
7758int i;
7759_ACEOF
7760if ac_fn_c_try_compile "$LINENO"
7761then :
7762  xorg_cv_cc_flag_unused_command_line_argument=yes
7763else $as_nop
7764  xorg_cv_cc_flag_unused_command_line_argument=no
7765fi
7766rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7767fi
7768{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7769printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7770	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7771	CFLAGS="$xorg_testset_save_CFLAGS"
7772fi
7773
7774found="no"
7775
7776	if test $found = "no" ; then
7777		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7778			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7779		fi
7780
7781		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7782			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7783		fi
7784
7785		CFLAGS="$CFLAGS -Wunused"
7786
7787		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
7788printf %s "checking if $CC supports -Wunused... " >&6; }
7789		cacheid=xorg_cv_cc_flag__Wunused
7790		if eval test \${$cacheid+y}
7791then :
7792  printf %s "(cached) " >&6
7793else $as_nop
7794  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7795/* end confdefs.h.  */
7796int i;
7797int
7798main (void)
7799{
7800
7801  ;
7802  return 0;
7803}
7804_ACEOF
7805if ac_fn_c_try_link "$LINENO"
7806then :
7807  eval $cacheid=yes
7808else $as_nop
7809  eval $cacheid=no
7810fi
7811rm -f core conftest.err conftest.$ac_objext conftest.beam \
7812    conftest$ac_exeext conftest.$ac_ext
7813fi
7814
7815
7816		CFLAGS="$xorg_testset_save_CFLAGS"
7817
7818		eval supported=\$$cacheid
7819		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7820printf "%s\n" "$supported" >&6; }
7821		if test "$supported" = "yes" ; then
7822			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
7823			found="yes"
7824		fi
7825	fi
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841xorg_testset_save_CFLAGS="$CFLAGS"
7842
7843if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7844	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7845	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7846printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7847if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7848then :
7849  printf %s "(cached) " >&6
7850else $as_nop
7851  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7852/* end confdefs.h.  */
7853int i;
7854_ACEOF
7855if ac_fn_c_try_compile "$LINENO"
7856then :
7857  xorg_cv_cc_flag_unknown_warning_option=yes
7858else $as_nop
7859  xorg_cv_cc_flag_unknown_warning_option=no
7860fi
7861rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7862fi
7863{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7864printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7865	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7866	CFLAGS="$xorg_testset_save_CFLAGS"
7867fi
7868
7869if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7870	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7871		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7872	fi
7873	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7874	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7875printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7876if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7877then :
7878  printf %s "(cached) " >&6
7879else $as_nop
7880  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7881/* end confdefs.h.  */
7882int i;
7883_ACEOF
7884if ac_fn_c_try_compile "$LINENO"
7885then :
7886  xorg_cv_cc_flag_unused_command_line_argument=yes
7887else $as_nop
7888  xorg_cv_cc_flag_unused_command_line_argument=no
7889fi
7890rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7891fi
7892{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7893printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7894	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7895	CFLAGS="$xorg_testset_save_CFLAGS"
7896fi
7897
7898found="no"
7899
7900	if test $found = "no" ; then
7901		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7902			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7903		fi
7904
7905		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7906			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7907		fi
7908
7909		CFLAGS="$CFLAGS -Wuninitialized"
7910
7911		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
7912printf %s "checking if $CC supports -Wuninitialized... " >&6; }
7913		cacheid=xorg_cv_cc_flag__Wuninitialized
7914		if eval test \${$cacheid+y}
7915then :
7916  printf %s "(cached) " >&6
7917else $as_nop
7918  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7919/* end confdefs.h.  */
7920int i;
7921int
7922main (void)
7923{
7924
7925  ;
7926  return 0;
7927}
7928_ACEOF
7929if ac_fn_c_try_link "$LINENO"
7930then :
7931  eval $cacheid=yes
7932else $as_nop
7933  eval $cacheid=no
7934fi
7935rm -f core conftest.err conftest.$ac_objext conftest.beam \
7936    conftest$ac_exeext conftest.$ac_ext
7937fi
7938
7939
7940		CFLAGS="$xorg_testset_save_CFLAGS"
7941
7942		eval supported=\$$cacheid
7943		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7944printf "%s\n" "$supported" >&6; }
7945		if test "$supported" = "yes" ; then
7946			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
7947			found="yes"
7948		fi
7949	fi
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965xorg_testset_save_CFLAGS="$CFLAGS"
7966
7967if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7968	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7969	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7970printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7971if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7972then :
7973  printf %s "(cached) " >&6
7974else $as_nop
7975  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7976/* end confdefs.h.  */
7977int i;
7978_ACEOF
7979if ac_fn_c_try_compile "$LINENO"
7980then :
7981  xorg_cv_cc_flag_unknown_warning_option=yes
7982else $as_nop
7983  xorg_cv_cc_flag_unknown_warning_option=no
7984fi
7985rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7986fi
7987{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7988printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7989	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7990	CFLAGS="$xorg_testset_save_CFLAGS"
7991fi
7992
7993if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7994	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7995		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7996	fi
7997	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7998	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7999printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8000if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8001then :
8002  printf %s "(cached) " >&6
8003else $as_nop
8004  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8005/* end confdefs.h.  */
8006int i;
8007_ACEOF
8008if ac_fn_c_try_compile "$LINENO"
8009then :
8010  xorg_cv_cc_flag_unused_command_line_argument=yes
8011else $as_nop
8012  xorg_cv_cc_flag_unused_command_line_argument=no
8013fi
8014rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8015fi
8016{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8017printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8018	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8019	CFLAGS="$xorg_testset_save_CFLAGS"
8020fi
8021
8022found="no"
8023
8024	if test $found = "no" ; then
8025		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8026			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8027		fi
8028
8029		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8030			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8031		fi
8032
8033		CFLAGS="$CFLAGS -Wshadow"
8034
8035		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
8036printf %s "checking if $CC supports -Wshadow... " >&6; }
8037		cacheid=xorg_cv_cc_flag__Wshadow
8038		if eval test \${$cacheid+y}
8039then :
8040  printf %s "(cached) " >&6
8041else $as_nop
8042  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8043/* end confdefs.h.  */
8044int i;
8045int
8046main (void)
8047{
8048
8049  ;
8050  return 0;
8051}
8052_ACEOF
8053if ac_fn_c_try_link "$LINENO"
8054then :
8055  eval $cacheid=yes
8056else $as_nop
8057  eval $cacheid=no
8058fi
8059rm -f core conftest.err conftest.$ac_objext conftest.beam \
8060    conftest$ac_exeext conftest.$ac_ext
8061fi
8062
8063
8064		CFLAGS="$xorg_testset_save_CFLAGS"
8065
8066		eval supported=\$$cacheid
8067		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8068printf "%s\n" "$supported" >&6; }
8069		if test "$supported" = "yes" ; then
8070			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
8071			found="yes"
8072		fi
8073	fi
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089xorg_testset_save_CFLAGS="$CFLAGS"
8090
8091if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8092	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8093	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8094printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8095if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8096then :
8097  printf %s "(cached) " >&6
8098else $as_nop
8099  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8100/* end confdefs.h.  */
8101int i;
8102_ACEOF
8103if ac_fn_c_try_compile "$LINENO"
8104then :
8105  xorg_cv_cc_flag_unknown_warning_option=yes
8106else $as_nop
8107  xorg_cv_cc_flag_unknown_warning_option=no
8108fi
8109rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8110fi
8111{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8112printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8113	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8114	CFLAGS="$xorg_testset_save_CFLAGS"
8115fi
8116
8117if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8118	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8119		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8120	fi
8121	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8122	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8123printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8124if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8125then :
8126  printf %s "(cached) " >&6
8127else $as_nop
8128  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8129/* end confdefs.h.  */
8130int i;
8131_ACEOF
8132if ac_fn_c_try_compile "$LINENO"
8133then :
8134  xorg_cv_cc_flag_unused_command_line_argument=yes
8135else $as_nop
8136  xorg_cv_cc_flag_unused_command_line_argument=no
8137fi
8138rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8139fi
8140{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8141printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8142	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8143	CFLAGS="$xorg_testset_save_CFLAGS"
8144fi
8145
8146found="no"
8147
8148	if test $found = "no" ; then
8149		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8150			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8151		fi
8152
8153		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8154			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8155		fi
8156
8157		CFLAGS="$CFLAGS -Wmissing-noreturn"
8158
8159		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
8160printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
8161		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
8162		if eval test \${$cacheid+y}
8163then :
8164  printf %s "(cached) " >&6
8165else $as_nop
8166  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8167/* end confdefs.h.  */
8168int i;
8169int
8170main (void)
8171{
8172
8173  ;
8174  return 0;
8175}
8176_ACEOF
8177if ac_fn_c_try_link "$LINENO"
8178then :
8179  eval $cacheid=yes
8180else $as_nop
8181  eval $cacheid=no
8182fi
8183rm -f core conftest.err conftest.$ac_objext conftest.beam \
8184    conftest$ac_exeext conftest.$ac_ext
8185fi
8186
8187
8188		CFLAGS="$xorg_testset_save_CFLAGS"
8189
8190		eval supported=\$$cacheid
8191		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8192printf "%s\n" "$supported" >&6; }
8193		if test "$supported" = "yes" ; then
8194			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
8195			found="yes"
8196		fi
8197	fi
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213xorg_testset_save_CFLAGS="$CFLAGS"
8214
8215if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8216	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8217	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8218printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8219if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8220then :
8221  printf %s "(cached) " >&6
8222else $as_nop
8223  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8224/* end confdefs.h.  */
8225int i;
8226_ACEOF
8227if ac_fn_c_try_compile "$LINENO"
8228then :
8229  xorg_cv_cc_flag_unknown_warning_option=yes
8230else $as_nop
8231  xorg_cv_cc_flag_unknown_warning_option=no
8232fi
8233rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8234fi
8235{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8236printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8237	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8238	CFLAGS="$xorg_testset_save_CFLAGS"
8239fi
8240
8241if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8242	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8243		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8244	fi
8245	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8246	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8247printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8248if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8249then :
8250  printf %s "(cached) " >&6
8251else $as_nop
8252  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8253/* end confdefs.h.  */
8254int i;
8255_ACEOF
8256if ac_fn_c_try_compile "$LINENO"
8257then :
8258  xorg_cv_cc_flag_unused_command_line_argument=yes
8259else $as_nop
8260  xorg_cv_cc_flag_unused_command_line_argument=no
8261fi
8262rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8263fi
8264{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8265printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8266	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8267	CFLAGS="$xorg_testset_save_CFLAGS"
8268fi
8269
8270found="no"
8271
8272	if test $found = "no" ; then
8273		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8274			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8275		fi
8276
8277		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8278			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8279		fi
8280
8281		CFLAGS="$CFLAGS -Wmissing-format-attribute"
8282
8283		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
8284printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
8285		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
8286		if eval test \${$cacheid+y}
8287then :
8288  printf %s "(cached) " >&6
8289else $as_nop
8290  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8291/* end confdefs.h.  */
8292int i;
8293int
8294main (void)
8295{
8296
8297  ;
8298  return 0;
8299}
8300_ACEOF
8301if ac_fn_c_try_link "$LINENO"
8302then :
8303  eval $cacheid=yes
8304else $as_nop
8305  eval $cacheid=no
8306fi
8307rm -f core conftest.err conftest.$ac_objext conftest.beam \
8308    conftest$ac_exeext conftest.$ac_ext
8309fi
8310
8311
8312		CFLAGS="$xorg_testset_save_CFLAGS"
8313
8314		eval supported=\$$cacheid
8315		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8316printf "%s\n" "$supported" >&6; }
8317		if test "$supported" = "yes" ; then
8318			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
8319			found="yes"
8320		fi
8321	fi
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337xorg_testset_save_CFLAGS="$CFLAGS"
8338
8339if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8340	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8341	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8342printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8343if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8344then :
8345  printf %s "(cached) " >&6
8346else $as_nop
8347  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8348/* end confdefs.h.  */
8349int i;
8350_ACEOF
8351if ac_fn_c_try_compile "$LINENO"
8352then :
8353  xorg_cv_cc_flag_unknown_warning_option=yes
8354else $as_nop
8355  xorg_cv_cc_flag_unknown_warning_option=no
8356fi
8357rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8358fi
8359{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8360printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8361	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8362	CFLAGS="$xorg_testset_save_CFLAGS"
8363fi
8364
8365if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8366	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8367		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8368	fi
8369	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8370	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8371printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8372if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8373then :
8374  printf %s "(cached) " >&6
8375else $as_nop
8376  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8377/* end confdefs.h.  */
8378int i;
8379_ACEOF
8380if ac_fn_c_try_compile "$LINENO"
8381then :
8382  xorg_cv_cc_flag_unused_command_line_argument=yes
8383else $as_nop
8384  xorg_cv_cc_flag_unused_command_line_argument=no
8385fi
8386rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8387fi
8388{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8389printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8390	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8391	CFLAGS="$xorg_testset_save_CFLAGS"
8392fi
8393
8394found="no"
8395
8396	if test $found = "no" ; then
8397		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8398			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8399		fi
8400
8401		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8402			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8403		fi
8404
8405		CFLAGS="$CFLAGS -Wredundant-decls"
8406
8407		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
8408printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
8409		cacheid=xorg_cv_cc_flag__Wredundant_decls
8410		if eval test \${$cacheid+y}
8411then :
8412  printf %s "(cached) " >&6
8413else $as_nop
8414  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8415/* end confdefs.h.  */
8416int i;
8417int
8418main (void)
8419{
8420
8421  ;
8422  return 0;
8423}
8424_ACEOF
8425if ac_fn_c_try_link "$LINENO"
8426then :
8427  eval $cacheid=yes
8428else $as_nop
8429  eval $cacheid=no
8430fi
8431rm -f core conftest.err conftest.$ac_objext conftest.beam \
8432    conftest$ac_exeext conftest.$ac_ext
8433fi
8434
8435
8436		CFLAGS="$xorg_testset_save_CFLAGS"
8437
8438		eval supported=\$$cacheid
8439		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8440printf "%s\n" "$supported" >&6; }
8441		if test "$supported" = "yes" ; then
8442			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
8443			found="yes"
8444		fi
8445	fi
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461xorg_testset_save_CFLAGS="$CFLAGS"
8462
8463if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8464	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8465	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8466printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8467if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8468then :
8469  printf %s "(cached) " >&6
8470else $as_nop
8471  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8472/* end confdefs.h.  */
8473int i;
8474_ACEOF
8475if ac_fn_c_try_compile "$LINENO"
8476then :
8477  xorg_cv_cc_flag_unknown_warning_option=yes
8478else $as_nop
8479  xorg_cv_cc_flag_unknown_warning_option=no
8480fi
8481rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8482fi
8483{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8484printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8485	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8486	CFLAGS="$xorg_testset_save_CFLAGS"
8487fi
8488
8489if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8490	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8491		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8492	fi
8493	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8494	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8495printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8496if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8497then :
8498  printf %s "(cached) " >&6
8499else $as_nop
8500  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8501/* end confdefs.h.  */
8502int i;
8503_ACEOF
8504if ac_fn_c_try_compile "$LINENO"
8505then :
8506  xorg_cv_cc_flag_unused_command_line_argument=yes
8507else $as_nop
8508  xorg_cv_cc_flag_unused_command_line_argument=no
8509fi
8510rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8511fi
8512{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8513printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8514	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8515	CFLAGS="$xorg_testset_save_CFLAGS"
8516fi
8517
8518found="no"
8519
8520	if test $found = "no" ; then
8521		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8522			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8523		fi
8524
8525		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8526			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8527		fi
8528
8529		CFLAGS="$CFLAGS -Wlogical-op"
8530
8531		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
8532printf %s "checking if $CC supports -Wlogical-op... " >&6; }
8533		cacheid=xorg_cv_cc_flag__Wlogical_op
8534		if eval test \${$cacheid+y}
8535then :
8536  printf %s "(cached) " >&6
8537else $as_nop
8538  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8539/* end confdefs.h.  */
8540int i;
8541int
8542main (void)
8543{
8544
8545  ;
8546  return 0;
8547}
8548_ACEOF
8549if ac_fn_c_try_link "$LINENO"
8550then :
8551  eval $cacheid=yes
8552else $as_nop
8553  eval $cacheid=no
8554fi
8555rm -f core conftest.err conftest.$ac_objext conftest.beam \
8556    conftest$ac_exeext conftest.$ac_ext
8557fi
8558
8559
8560		CFLAGS="$xorg_testset_save_CFLAGS"
8561
8562		eval supported=\$$cacheid
8563		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8564printf "%s\n" "$supported" >&6; }
8565		if test "$supported" = "yes" ; then
8566			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
8567			found="yes"
8568		fi
8569	fi
8570
8571
8572
8573# These are currently disabled because they are noisy.  They will be enabled
8574# in the future once the codebase is sufficiently modernized to silence
8575# them.  For now, I don't want them to drown out the other warnings.
8576# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
8577# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
8578# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
8579
8580# Turn some warnings into errors, so we don't accidently get successful builds
8581# when there are problems that should be fixed.
8582
8583if test "x$SELECTIVE_WERROR" = "xyes" ; then
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597xorg_testset_save_CFLAGS="$CFLAGS"
8598
8599if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8600	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8601	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8602printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8603if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8604then :
8605  printf %s "(cached) " >&6
8606else $as_nop
8607  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8608/* end confdefs.h.  */
8609int i;
8610_ACEOF
8611if ac_fn_c_try_compile "$LINENO"
8612then :
8613  xorg_cv_cc_flag_unknown_warning_option=yes
8614else $as_nop
8615  xorg_cv_cc_flag_unknown_warning_option=no
8616fi
8617rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8618fi
8619{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8620printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8621	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8622	CFLAGS="$xorg_testset_save_CFLAGS"
8623fi
8624
8625if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8626	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8627		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8628	fi
8629	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8630	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8631printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8632if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8633then :
8634  printf %s "(cached) " >&6
8635else $as_nop
8636  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8637/* end confdefs.h.  */
8638int i;
8639_ACEOF
8640if ac_fn_c_try_compile "$LINENO"
8641then :
8642  xorg_cv_cc_flag_unused_command_line_argument=yes
8643else $as_nop
8644  xorg_cv_cc_flag_unused_command_line_argument=no
8645fi
8646rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8647fi
8648{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8649printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8650	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8651	CFLAGS="$xorg_testset_save_CFLAGS"
8652fi
8653
8654found="no"
8655
8656	if test $found = "no" ; then
8657		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8658			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8659		fi
8660
8661		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8662			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8663		fi
8664
8665		CFLAGS="$CFLAGS -Werror=implicit"
8666
8667		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
8668printf %s "checking if $CC supports -Werror=implicit... " >&6; }
8669		cacheid=xorg_cv_cc_flag__Werror_implicit
8670		if eval test \${$cacheid+y}
8671then :
8672  printf %s "(cached) " >&6
8673else $as_nop
8674  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8675/* end confdefs.h.  */
8676int i;
8677int
8678main (void)
8679{
8680
8681  ;
8682  return 0;
8683}
8684_ACEOF
8685if ac_fn_c_try_link "$LINENO"
8686then :
8687  eval $cacheid=yes
8688else $as_nop
8689  eval $cacheid=no
8690fi
8691rm -f core conftest.err conftest.$ac_objext conftest.beam \
8692    conftest$ac_exeext conftest.$ac_ext
8693fi
8694
8695
8696		CFLAGS="$xorg_testset_save_CFLAGS"
8697
8698		eval supported=\$$cacheid
8699		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8700printf "%s\n" "$supported" >&6; }
8701		if test "$supported" = "yes" ; then
8702			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
8703			found="yes"
8704		fi
8705	fi
8706
8707	if test $found = "no" ; then
8708		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8709			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8710		fi
8711
8712		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8713			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8714		fi
8715
8716		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
8717
8718		{ 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
8719printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
8720		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
8721		if eval test \${$cacheid+y}
8722then :
8723  printf %s "(cached) " >&6
8724else $as_nop
8725  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8726/* end confdefs.h.  */
8727int i;
8728int
8729main (void)
8730{
8731
8732  ;
8733  return 0;
8734}
8735_ACEOF
8736if ac_fn_c_try_link "$LINENO"
8737then :
8738  eval $cacheid=yes
8739else $as_nop
8740  eval $cacheid=no
8741fi
8742rm -f core conftest.err conftest.$ac_objext conftest.beam \
8743    conftest$ac_exeext conftest.$ac_ext
8744fi
8745
8746
8747		CFLAGS="$xorg_testset_save_CFLAGS"
8748
8749		eval supported=\$$cacheid
8750		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8751printf "%s\n" "$supported" >&6; }
8752		if test "$supported" = "yes" ; then
8753			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
8754			found="yes"
8755		fi
8756	fi
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772xorg_testset_save_CFLAGS="$CFLAGS"
8773
8774if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8775	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8776	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8777printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8778if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8779then :
8780  printf %s "(cached) " >&6
8781else $as_nop
8782  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8783/* end confdefs.h.  */
8784int i;
8785_ACEOF
8786if ac_fn_c_try_compile "$LINENO"
8787then :
8788  xorg_cv_cc_flag_unknown_warning_option=yes
8789else $as_nop
8790  xorg_cv_cc_flag_unknown_warning_option=no
8791fi
8792rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8793fi
8794{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8795printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8796	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8797	CFLAGS="$xorg_testset_save_CFLAGS"
8798fi
8799
8800if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8801	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8802		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8803	fi
8804	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8805	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8806printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8807if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8808then :
8809  printf %s "(cached) " >&6
8810else $as_nop
8811  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8812/* end confdefs.h.  */
8813int i;
8814_ACEOF
8815if ac_fn_c_try_compile "$LINENO"
8816then :
8817  xorg_cv_cc_flag_unused_command_line_argument=yes
8818else $as_nop
8819  xorg_cv_cc_flag_unused_command_line_argument=no
8820fi
8821rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8822fi
8823{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8824printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8825	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8826	CFLAGS="$xorg_testset_save_CFLAGS"
8827fi
8828
8829found="no"
8830
8831	if test $found = "no" ; then
8832		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8833			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8834		fi
8835
8836		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8837			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8838		fi
8839
8840		CFLAGS="$CFLAGS -Werror=nonnull"
8841
8842		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
8843printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
8844		cacheid=xorg_cv_cc_flag__Werror_nonnull
8845		if eval test \${$cacheid+y}
8846then :
8847  printf %s "(cached) " >&6
8848else $as_nop
8849  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8850/* end confdefs.h.  */
8851int i;
8852int
8853main (void)
8854{
8855
8856  ;
8857  return 0;
8858}
8859_ACEOF
8860if ac_fn_c_try_link "$LINENO"
8861then :
8862  eval $cacheid=yes
8863else $as_nop
8864  eval $cacheid=no
8865fi
8866rm -f core conftest.err conftest.$ac_objext conftest.beam \
8867    conftest$ac_exeext conftest.$ac_ext
8868fi
8869
8870
8871		CFLAGS="$xorg_testset_save_CFLAGS"
8872
8873		eval supported=\$$cacheid
8874		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8875printf "%s\n" "$supported" >&6; }
8876		if test "$supported" = "yes" ; then
8877			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
8878			found="yes"
8879		fi
8880	fi
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896xorg_testset_save_CFLAGS="$CFLAGS"
8897
8898if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8899	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8900	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8901printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8902if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8903then :
8904  printf %s "(cached) " >&6
8905else $as_nop
8906  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8907/* end confdefs.h.  */
8908int i;
8909_ACEOF
8910if ac_fn_c_try_compile "$LINENO"
8911then :
8912  xorg_cv_cc_flag_unknown_warning_option=yes
8913else $as_nop
8914  xorg_cv_cc_flag_unknown_warning_option=no
8915fi
8916rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8917fi
8918{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8919printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8920	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8921	CFLAGS="$xorg_testset_save_CFLAGS"
8922fi
8923
8924if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8925	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8926		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8927	fi
8928	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8929	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8930printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8931if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8932then :
8933  printf %s "(cached) " >&6
8934else $as_nop
8935  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8936/* end confdefs.h.  */
8937int i;
8938_ACEOF
8939if ac_fn_c_try_compile "$LINENO"
8940then :
8941  xorg_cv_cc_flag_unused_command_line_argument=yes
8942else $as_nop
8943  xorg_cv_cc_flag_unused_command_line_argument=no
8944fi
8945rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8946fi
8947{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8948printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8949	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8950	CFLAGS="$xorg_testset_save_CFLAGS"
8951fi
8952
8953found="no"
8954
8955	if test $found = "no" ; then
8956		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8957			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8958		fi
8959
8960		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8961			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8962		fi
8963
8964		CFLAGS="$CFLAGS -Werror=init-self"
8965
8966		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
8967printf %s "checking if $CC supports -Werror=init-self... " >&6; }
8968		cacheid=xorg_cv_cc_flag__Werror_init_self
8969		if eval test \${$cacheid+y}
8970then :
8971  printf %s "(cached) " >&6
8972else $as_nop
8973  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8974/* end confdefs.h.  */
8975int i;
8976int
8977main (void)
8978{
8979
8980  ;
8981  return 0;
8982}
8983_ACEOF
8984if ac_fn_c_try_link "$LINENO"
8985then :
8986  eval $cacheid=yes
8987else $as_nop
8988  eval $cacheid=no
8989fi
8990rm -f core conftest.err conftest.$ac_objext conftest.beam \
8991    conftest$ac_exeext conftest.$ac_ext
8992fi
8993
8994
8995		CFLAGS="$xorg_testset_save_CFLAGS"
8996
8997		eval supported=\$$cacheid
8998		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8999printf "%s\n" "$supported" >&6; }
9000		if test "$supported" = "yes" ; then
9001			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
9002			found="yes"
9003		fi
9004	fi
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020xorg_testset_save_CFLAGS="$CFLAGS"
9021
9022if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9023	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9024	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9025printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9026if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9027then :
9028  printf %s "(cached) " >&6
9029else $as_nop
9030  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9031/* end confdefs.h.  */
9032int i;
9033_ACEOF
9034if ac_fn_c_try_compile "$LINENO"
9035then :
9036  xorg_cv_cc_flag_unknown_warning_option=yes
9037else $as_nop
9038  xorg_cv_cc_flag_unknown_warning_option=no
9039fi
9040rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9041fi
9042{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9043printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9044	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9045	CFLAGS="$xorg_testset_save_CFLAGS"
9046fi
9047
9048if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9049	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9050		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9051	fi
9052	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9053	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9054printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9055if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9056then :
9057  printf %s "(cached) " >&6
9058else $as_nop
9059  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9060/* end confdefs.h.  */
9061int i;
9062_ACEOF
9063if ac_fn_c_try_compile "$LINENO"
9064then :
9065  xorg_cv_cc_flag_unused_command_line_argument=yes
9066else $as_nop
9067  xorg_cv_cc_flag_unused_command_line_argument=no
9068fi
9069rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9070fi
9071{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9072printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9073	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9074	CFLAGS="$xorg_testset_save_CFLAGS"
9075fi
9076
9077found="no"
9078
9079	if test $found = "no" ; then
9080		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9081			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9082		fi
9083
9084		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9085			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9086		fi
9087
9088		CFLAGS="$CFLAGS -Werror=main"
9089
9090		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
9091printf %s "checking if $CC supports -Werror=main... " >&6; }
9092		cacheid=xorg_cv_cc_flag__Werror_main
9093		if eval test \${$cacheid+y}
9094then :
9095  printf %s "(cached) " >&6
9096else $as_nop
9097  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9098/* end confdefs.h.  */
9099int i;
9100int
9101main (void)
9102{
9103
9104  ;
9105  return 0;
9106}
9107_ACEOF
9108if ac_fn_c_try_link "$LINENO"
9109then :
9110  eval $cacheid=yes
9111else $as_nop
9112  eval $cacheid=no
9113fi
9114rm -f core conftest.err conftest.$ac_objext conftest.beam \
9115    conftest$ac_exeext conftest.$ac_ext
9116fi
9117
9118
9119		CFLAGS="$xorg_testset_save_CFLAGS"
9120
9121		eval supported=\$$cacheid
9122		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9123printf "%s\n" "$supported" >&6; }
9124		if test "$supported" = "yes" ; then
9125			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
9126			found="yes"
9127		fi
9128	fi
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144xorg_testset_save_CFLAGS="$CFLAGS"
9145
9146if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9147	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9148	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9149printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9150if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9151then :
9152  printf %s "(cached) " >&6
9153else $as_nop
9154  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9155/* end confdefs.h.  */
9156int i;
9157_ACEOF
9158if ac_fn_c_try_compile "$LINENO"
9159then :
9160  xorg_cv_cc_flag_unknown_warning_option=yes
9161else $as_nop
9162  xorg_cv_cc_flag_unknown_warning_option=no
9163fi
9164rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9165fi
9166{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9167printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9168	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9169	CFLAGS="$xorg_testset_save_CFLAGS"
9170fi
9171
9172if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9173	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9174		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9175	fi
9176	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9177	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9178printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9179if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9180then :
9181  printf %s "(cached) " >&6
9182else $as_nop
9183  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9184/* end confdefs.h.  */
9185int i;
9186_ACEOF
9187if ac_fn_c_try_compile "$LINENO"
9188then :
9189  xorg_cv_cc_flag_unused_command_line_argument=yes
9190else $as_nop
9191  xorg_cv_cc_flag_unused_command_line_argument=no
9192fi
9193rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9194fi
9195{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9196printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9197	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9198	CFLAGS="$xorg_testset_save_CFLAGS"
9199fi
9200
9201found="no"
9202
9203	if test $found = "no" ; then
9204		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9205			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9206		fi
9207
9208		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9209			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9210		fi
9211
9212		CFLAGS="$CFLAGS -Werror=missing-braces"
9213
9214		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
9215printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
9216		cacheid=xorg_cv_cc_flag__Werror_missing_braces
9217		if eval test \${$cacheid+y}
9218then :
9219  printf %s "(cached) " >&6
9220else $as_nop
9221  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9222/* end confdefs.h.  */
9223int i;
9224int
9225main (void)
9226{
9227
9228  ;
9229  return 0;
9230}
9231_ACEOF
9232if ac_fn_c_try_link "$LINENO"
9233then :
9234  eval $cacheid=yes
9235else $as_nop
9236  eval $cacheid=no
9237fi
9238rm -f core conftest.err conftest.$ac_objext conftest.beam \
9239    conftest$ac_exeext conftest.$ac_ext
9240fi
9241
9242
9243		CFLAGS="$xorg_testset_save_CFLAGS"
9244
9245		eval supported=\$$cacheid
9246		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9247printf "%s\n" "$supported" >&6; }
9248		if test "$supported" = "yes" ; then
9249			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
9250			found="yes"
9251		fi
9252	fi
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268xorg_testset_save_CFLAGS="$CFLAGS"
9269
9270if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9271	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9272	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9273printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9274if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9275then :
9276  printf %s "(cached) " >&6
9277else $as_nop
9278  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9279/* end confdefs.h.  */
9280int i;
9281_ACEOF
9282if ac_fn_c_try_compile "$LINENO"
9283then :
9284  xorg_cv_cc_flag_unknown_warning_option=yes
9285else $as_nop
9286  xorg_cv_cc_flag_unknown_warning_option=no
9287fi
9288rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9289fi
9290{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9291printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9292	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9293	CFLAGS="$xorg_testset_save_CFLAGS"
9294fi
9295
9296if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9297	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9298		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9299	fi
9300	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9301	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9302printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9303if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9304then :
9305  printf %s "(cached) " >&6
9306else $as_nop
9307  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9308/* end confdefs.h.  */
9309int i;
9310_ACEOF
9311if ac_fn_c_try_compile "$LINENO"
9312then :
9313  xorg_cv_cc_flag_unused_command_line_argument=yes
9314else $as_nop
9315  xorg_cv_cc_flag_unused_command_line_argument=no
9316fi
9317rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9318fi
9319{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9320printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9321	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9322	CFLAGS="$xorg_testset_save_CFLAGS"
9323fi
9324
9325found="no"
9326
9327	if test $found = "no" ; then
9328		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9329			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9330		fi
9331
9332		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9333			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9334		fi
9335
9336		CFLAGS="$CFLAGS -Werror=sequence-point"
9337
9338		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
9339printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
9340		cacheid=xorg_cv_cc_flag__Werror_sequence_point
9341		if eval test \${$cacheid+y}
9342then :
9343  printf %s "(cached) " >&6
9344else $as_nop
9345  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9346/* end confdefs.h.  */
9347int i;
9348int
9349main (void)
9350{
9351
9352  ;
9353  return 0;
9354}
9355_ACEOF
9356if ac_fn_c_try_link "$LINENO"
9357then :
9358  eval $cacheid=yes
9359else $as_nop
9360  eval $cacheid=no
9361fi
9362rm -f core conftest.err conftest.$ac_objext conftest.beam \
9363    conftest$ac_exeext conftest.$ac_ext
9364fi
9365
9366
9367		CFLAGS="$xorg_testset_save_CFLAGS"
9368
9369		eval supported=\$$cacheid
9370		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9371printf "%s\n" "$supported" >&6; }
9372		if test "$supported" = "yes" ; then
9373			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
9374			found="yes"
9375		fi
9376	fi
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392xorg_testset_save_CFLAGS="$CFLAGS"
9393
9394if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9395	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9396	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9397printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9398if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9399then :
9400  printf %s "(cached) " >&6
9401else $as_nop
9402  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9403/* end confdefs.h.  */
9404int i;
9405_ACEOF
9406if ac_fn_c_try_compile "$LINENO"
9407then :
9408  xorg_cv_cc_flag_unknown_warning_option=yes
9409else $as_nop
9410  xorg_cv_cc_flag_unknown_warning_option=no
9411fi
9412rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9413fi
9414{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9415printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9416	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9417	CFLAGS="$xorg_testset_save_CFLAGS"
9418fi
9419
9420if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9421	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9422		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9423	fi
9424	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9425	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9426printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9427if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9428then :
9429  printf %s "(cached) " >&6
9430else $as_nop
9431  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9432/* end confdefs.h.  */
9433int i;
9434_ACEOF
9435if ac_fn_c_try_compile "$LINENO"
9436then :
9437  xorg_cv_cc_flag_unused_command_line_argument=yes
9438else $as_nop
9439  xorg_cv_cc_flag_unused_command_line_argument=no
9440fi
9441rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9442fi
9443{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9444printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9445	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9446	CFLAGS="$xorg_testset_save_CFLAGS"
9447fi
9448
9449found="no"
9450
9451	if test $found = "no" ; then
9452		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9453			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9454		fi
9455
9456		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9457			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9458		fi
9459
9460		CFLAGS="$CFLAGS -Werror=return-type"
9461
9462		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
9463printf %s "checking if $CC supports -Werror=return-type... " >&6; }
9464		cacheid=xorg_cv_cc_flag__Werror_return_type
9465		if eval test \${$cacheid+y}
9466then :
9467  printf %s "(cached) " >&6
9468else $as_nop
9469  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9470/* end confdefs.h.  */
9471int i;
9472int
9473main (void)
9474{
9475
9476  ;
9477  return 0;
9478}
9479_ACEOF
9480if ac_fn_c_try_link "$LINENO"
9481then :
9482  eval $cacheid=yes
9483else $as_nop
9484  eval $cacheid=no
9485fi
9486rm -f core conftest.err conftest.$ac_objext conftest.beam \
9487    conftest$ac_exeext conftest.$ac_ext
9488fi
9489
9490
9491		CFLAGS="$xorg_testset_save_CFLAGS"
9492
9493		eval supported=\$$cacheid
9494		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9495printf "%s\n" "$supported" >&6; }
9496		if test "$supported" = "yes" ; then
9497			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
9498			found="yes"
9499		fi
9500	fi
9501
9502	if test $found = "no" ; then
9503		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9504			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9505		fi
9506
9507		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9508			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9509		fi
9510
9511		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
9512
9513		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
9514printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
9515		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
9516		if eval test \${$cacheid+y}
9517then :
9518  printf %s "(cached) " >&6
9519else $as_nop
9520  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9521/* end confdefs.h.  */
9522int i;
9523int
9524main (void)
9525{
9526
9527  ;
9528  return 0;
9529}
9530_ACEOF
9531if ac_fn_c_try_link "$LINENO"
9532then :
9533  eval $cacheid=yes
9534else $as_nop
9535  eval $cacheid=no
9536fi
9537rm -f core conftest.err conftest.$ac_objext conftest.beam \
9538    conftest$ac_exeext conftest.$ac_ext
9539fi
9540
9541
9542		CFLAGS="$xorg_testset_save_CFLAGS"
9543
9544		eval supported=\$$cacheid
9545		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9546printf "%s\n" "$supported" >&6; }
9547		if test "$supported" = "yes" ; then
9548			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
9549			found="yes"
9550		fi
9551	fi
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567xorg_testset_save_CFLAGS="$CFLAGS"
9568
9569if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9570	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9571	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9572printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9573if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9574then :
9575  printf %s "(cached) " >&6
9576else $as_nop
9577  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9578/* end confdefs.h.  */
9579int i;
9580_ACEOF
9581if ac_fn_c_try_compile "$LINENO"
9582then :
9583  xorg_cv_cc_flag_unknown_warning_option=yes
9584else $as_nop
9585  xorg_cv_cc_flag_unknown_warning_option=no
9586fi
9587rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9588fi
9589{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9590printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9591	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9592	CFLAGS="$xorg_testset_save_CFLAGS"
9593fi
9594
9595if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9596	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9597		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9598	fi
9599	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9600	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9601printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9602if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9603then :
9604  printf %s "(cached) " >&6
9605else $as_nop
9606  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9607/* end confdefs.h.  */
9608int i;
9609_ACEOF
9610if ac_fn_c_try_compile "$LINENO"
9611then :
9612  xorg_cv_cc_flag_unused_command_line_argument=yes
9613else $as_nop
9614  xorg_cv_cc_flag_unused_command_line_argument=no
9615fi
9616rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9617fi
9618{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9619printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9620	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9621	CFLAGS="$xorg_testset_save_CFLAGS"
9622fi
9623
9624found="no"
9625
9626	if test $found = "no" ; then
9627		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9628			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9629		fi
9630
9631		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9632			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9633		fi
9634
9635		CFLAGS="$CFLAGS -Werror=trigraphs"
9636
9637		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
9638printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
9639		cacheid=xorg_cv_cc_flag__Werror_trigraphs
9640		if eval test \${$cacheid+y}
9641then :
9642  printf %s "(cached) " >&6
9643else $as_nop
9644  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9645/* end confdefs.h.  */
9646int i;
9647int
9648main (void)
9649{
9650
9651  ;
9652  return 0;
9653}
9654_ACEOF
9655if ac_fn_c_try_link "$LINENO"
9656then :
9657  eval $cacheid=yes
9658else $as_nop
9659  eval $cacheid=no
9660fi
9661rm -f core conftest.err conftest.$ac_objext conftest.beam \
9662    conftest$ac_exeext conftest.$ac_ext
9663fi
9664
9665
9666		CFLAGS="$xorg_testset_save_CFLAGS"
9667
9668		eval supported=\$$cacheid
9669		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9670printf "%s\n" "$supported" >&6; }
9671		if test "$supported" = "yes" ; then
9672			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
9673			found="yes"
9674		fi
9675	fi
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691xorg_testset_save_CFLAGS="$CFLAGS"
9692
9693if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9694	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9695	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9696printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9697if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9698then :
9699  printf %s "(cached) " >&6
9700else $as_nop
9701  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9702/* end confdefs.h.  */
9703int i;
9704_ACEOF
9705if ac_fn_c_try_compile "$LINENO"
9706then :
9707  xorg_cv_cc_flag_unknown_warning_option=yes
9708else $as_nop
9709  xorg_cv_cc_flag_unknown_warning_option=no
9710fi
9711rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9712fi
9713{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9714printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9715	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9716	CFLAGS="$xorg_testset_save_CFLAGS"
9717fi
9718
9719if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9720	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9721		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9722	fi
9723	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9724	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9725printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9726if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9727then :
9728  printf %s "(cached) " >&6
9729else $as_nop
9730  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9731/* end confdefs.h.  */
9732int i;
9733_ACEOF
9734if ac_fn_c_try_compile "$LINENO"
9735then :
9736  xorg_cv_cc_flag_unused_command_line_argument=yes
9737else $as_nop
9738  xorg_cv_cc_flag_unused_command_line_argument=no
9739fi
9740rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9741fi
9742{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9743printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9744	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9745	CFLAGS="$xorg_testset_save_CFLAGS"
9746fi
9747
9748found="no"
9749
9750	if test $found = "no" ; then
9751		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9752			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9753		fi
9754
9755		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9756			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9757		fi
9758
9759		CFLAGS="$CFLAGS -Werror=array-bounds"
9760
9761		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
9762printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
9763		cacheid=xorg_cv_cc_flag__Werror_array_bounds
9764		if eval test \${$cacheid+y}
9765then :
9766  printf %s "(cached) " >&6
9767else $as_nop
9768  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9769/* end confdefs.h.  */
9770int i;
9771int
9772main (void)
9773{
9774
9775  ;
9776  return 0;
9777}
9778_ACEOF
9779if ac_fn_c_try_link "$LINENO"
9780then :
9781  eval $cacheid=yes
9782else $as_nop
9783  eval $cacheid=no
9784fi
9785rm -f core conftest.err conftest.$ac_objext conftest.beam \
9786    conftest$ac_exeext conftest.$ac_ext
9787fi
9788
9789
9790		CFLAGS="$xorg_testset_save_CFLAGS"
9791
9792		eval supported=\$$cacheid
9793		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9794printf "%s\n" "$supported" >&6; }
9795		if test "$supported" = "yes" ; then
9796			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
9797			found="yes"
9798		fi
9799	fi
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815xorg_testset_save_CFLAGS="$CFLAGS"
9816
9817if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9818	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9819	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9820printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9821if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9822then :
9823  printf %s "(cached) " >&6
9824else $as_nop
9825  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9826/* end confdefs.h.  */
9827int i;
9828_ACEOF
9829if ac_fn_c_try_compile "$LINENO"
9830then :
9831  xorg_cv_cc_flag_unknown_warning_option=yes
9832else $as_nop
9833  xorg_cv_cc_flag_unknown_warning_option=no
9834fi
9835rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9836fi
9837{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9838printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9839	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9840	CFLAGS="$xorg_testset_save_CFLAGS"
9841fi
9842
9843if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9844	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9845		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9846	fi
9847	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9848	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9849printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9850if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9851then :
9852  printf %s "(cached) " >&6
9853else $as_nop
9854  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9855/* end confdefs.h.  */
9856int i;
9857_ACEOF
9858if ac_fn_c_try_compile "$LINENO"
9859then :
9860  xorg_cv_cc_flag_unused_command_line_argument=yes
9861else $as_nop
9862  xorg_cv_cc_flag_unused_command_line_argument=no
9863fi
9864rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9865fi
9866{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9867printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9868	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9869	CFLAGS="$xorg_testset_save_CFLAGS"
9870fi
9871
9872found="no"
9873
9874	if test $found = "no" ; then
9875		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9876			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9877		fi
9878
9879		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9880			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9881		fi
9882
9883		CFLAGS="$CFLAGS -Werror=write-strings"
9884
9885		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
9886printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
9887		cacheid=xorg_cv_cc_flag__Werror_write_strings
9888		if eval test \${$cacheid+y}
9889then :
9890  printf %s "(cached) " >&6
9891else $as_nop
9892  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9893/* end confdefs.h.  */
9894int i;
9895int
9896main (void)
9897{
9898
9899  ;
9900  return 0;
9901}
9902_ACEOF
9903if ac_fn_c_try_link "$LINENO"
9904then :
9905  eval $cacheid=yes
9906else $as_nop
9907  eval $cacheid=no
9908fi
9909rm -f core conftest.err conftest.$ac_objext conftest.beam \
9910    conftest$ac_exeext conftest.$ac_ext
9911fi
9912
9913
9914		CFLAGS="$xorg_testset_save_CFLAGS"
9915
9916		eval supported=\$$cacheid
9917		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9918printf "%s\n" "$supported" >&6; }
9919		if test "$supported" = "yes" ; then
9920			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
9921			found="yes"
9922		fi
9923	fi
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939xorg_testset_save_CFLAGS="$CFLAGS"
9940
9941if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9942	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9943	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9944printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9945if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9946then :
9947  printf %s "(cached) " >&6
9948else $as_nop
9949  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9950/* end confdefs.h.  */
9951int i;
9952_ACEOF
9953if ac_fn_c_try_compile "$LINENO"
9954then :
9955  xorg_cv_cc_flag_unknown_warning_option=yes
9956else $as_nop
9957  xorg_cv_cc_flag_unknown_warning_option=no
9958fi
9959rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9960fi
9961{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9962printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9963	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9964	CFLAGS="$xorg_testset_save_CFLAGS"
9965fi
9966
9967if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9968	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9969		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9970	fi
9971	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9972	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9973printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9974if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9975then :
9976  printf %s "(cached) " >&6
9977else $as_nop
9978  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9979/* end confdefs.h.  */
9980int i;
9981_ACEOF
9982if ac_fn_c_try_compile "$LINENO"
9983then :
9984  xorg_cv_cc_flag_unused_command_line_argument=yes
9985else $as_nop
9986  xorg_cv_cc_flag_unused_command_line_argument=no
9987fi
9988rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9989fi
9990{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9991printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9992	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9993	CFLAGS="$xorg_testset_save_CFLAGS"
9994fi
9995
9996found="no"
9997
9998	if test $found = "no" ; then
9999		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10000			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10001		fi
10002
10003		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10004			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10005		fi
10006
10007		CFLAGS="$CFLAGS -Werror=address"
10008
10009		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
10010printf %s "checking if $CC supports -Werror=address... " >&6; }
10011		cacheid=xorg_cv_cc_flag__Werror_address
10012		if eval test \${$cacheid+y}
10013then :
10014  printf %s "(cached) " >&6
10015else $as_nop
10016  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10017/* end confdefs.h.  */
10018int i;
10019int
10020main (void)
10021{
10022
10023  ;
10024  return 0;
10025}
10026_ACEOF
10027if ac_fn_c_try_link "$LINENO"
10028then :
10029  eval $cacheid=yes
10030else $as_nop
10031  eval $cacheid=no
10032fi
10033rm -f core conftest.err conftest.$ac_objext conftest.beam \
10034    conftest$ac_exeext conftest.$ac_ext
10035fi
10036
10037
10038		CFLAGS="$xorg_testset_save_CFLAGS"
10039
10040		eval supported=\$$cacheid
10041		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10042printf "%s\n" "$supported" >&6; }
10043		if test "$supported" = "yes" ; then
10044			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
10045			found="yes"
10046		fi
10047	fi
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063xorg_testset_save_CFLAGS="$CFLAGS"
10064
10065if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10066	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10067	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10068printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10069if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10070then :
10071  printf %s "(cached) " >&6
10072else $as_nop
10073  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10074/* end confdefs.h.  */
10075int i;
10076_ACEOF
10077if ac_fn_c_try_compile "$LINENO"
10078then :
10079  xorg_cv_cc_flag_unknown_warning_option=yes
10080else $as_nop
10081  xorg_cv_cc_flag_unknown_warning_option=no
10082fi
10083rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10084fi
10085{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10086printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10087	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10088	CFLAGS="$xorg_testset_save_CFLAGS"
10089fi
10090
10091if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10092	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10093		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10094	fi
10095	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10096	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10097printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10098if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10099then :
10100  printf %s "(cached) " >&6
10101else $as_nop
10102  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10103/* end confdefs.h.  */
10104int i;
10105_ACEOF
10106if ac_fn_c_try_compile "$LINENO"
10107then :
10108  xorg_cv_cc_flag_unused_command_line_argument=yes
10109else $as_nop
10110  xorg_cv_cc_flag_unused_command_line_argument=no
10111fi
10112rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10113fi
10114{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10115printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10116	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10117	CFLAGS="$xorg_testset_save_CFLAGS"
10118fi
10119
10120found="no"
10121
10122	if test $found = "no" ; then
10123		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10124			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10125		fi
10126
10127		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10128			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10129		fi
10130
10131		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
10132
10133		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
10134printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
10135		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
10136		if eval test \${$cacheid+y}
10137then :
10138  printf %s "(cached) " >&6
10139else $as_nop
10140  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10141/* end confdefs.h.  */
10142int i;
10143int
10144main (void)
10145{
10146
10147  ;
10148  return 0;
10149}
10150_ACEOF
10151if ac_fn_c_try_link "$LINENO"
10152then :
10153  eval $cacheid=yes
10154else $as_nop
10155  eval $cacheid=no
10156fi
10157rm -f core conftest.err conftest.$ac_objext conftest.beam \
10158    conftest$ac_exeext conftest.$ac_ext
10159fi
10160
10161
10162		CFLAGS="$xorg_testset_save_CFLAGS"
10163
10164		eval supported=\$$cacheid
10165		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10166printf "%s\n" "$supported" >&6; }
10167		if test "$supported" = "yes" ; then
10168			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
10169			found="yes"
10170		fi
10171	fi
10172
10173	if test $found = "no" ; then
10174		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10175			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10176		fi
10177
10178		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10179			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10180		fi
10181
10182		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
10183
10184		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
10185printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
10186		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
10187		if eval test \${$cacheid+y}
10188then :
10189  printf %s "(cached) " >&6
10190else $as_nop
10191  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10192/* end confdefs.h.  */
10193int i;
10194int
10195main (void)
10196{
10197
10198  ;
10199  return 0;
10200}
10201_ACEOF
10202if ac_fn_c_try_link "$LINENO"
10203then :
10204  eval $cacheid=yes
10205else $as_nop
10206  eval $cacheid=no
10207fi
10208rm -f core conftest.err conftest.$ac_objext conftest.beam \
10209    conftest$ac_exeext conftest.$ac_ext
10210fi
10211
10212
10213		CFLAGS="$xorg_testset_save_CFLAGS"
10214
10215		eval supported=\$$cacheid
10216		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10217printf "%s\n" "$supported" >&6; }
10218		if test "$supported" = "yes" ; then
10219			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
10220			found="yes"
10221		fi
10222	fi
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238xorg_testset_save_CFLAGS="$CFLAGS"
10239
10240if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10241	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10242	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10243printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10244if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10245then :
10246  printf %s "(cached) " >&6
10247else $as_nop
10248  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10249/* end confdefs.h.  */
10250int i;
10251_ACEOF
10252if ac_fn_c_try_compile "$LINENO"
10253then :
10254  xorg_cv_cc_flag_unknown_warning_option=yes
10255else $as_nop
10256  xorg_cv_cc_flag_unknown_warning_option=no
10257fi
10258rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10259fi
10260{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10261printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10262	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10263	CFLAGS="$xorg_testset_save_CFLAGS"
10264fi
10265
10266if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10267	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10268		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10269	fi
10270	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10271	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10272printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10273if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10274then :
10275  printf %s "(cached) " >&6
10276else $as_nop
10277  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10278/* end confdefs.h.  */
10279int i;
10280_ACEOF
10281if ac_fn_c_try_compile "$LINENO"
10282then :
10283  xorg_cv_cc_flag_unused_command_line_argument=yes
10284else $as_nop
10285  xorg_cv_cc_flag_unused_command_line_argument=no
10286fi
10287rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10288fi
10289{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10290printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10291	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10292	CFLAGS="$xorg_testset_save_CFLAGS"
10293fi
10294
10295found="no"
10296
10297	if test $found = "no" ; then
10298		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10299			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10300		fi
10301
10302		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10303			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10304		fi
10305
10306		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
10307
10308		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
10309printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
10310		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
10311		if eval test \${$cacheid+y}
10312then :
10313  printf %s "(cached) " >&6
10314else $as_nop
10315  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10316/* end confdefs.h.  */
10317int i;
10318int
10319main (void)
10320{
10321
10322  ;
10323  return 0;
10324}
10325_ACEOF
10326if ac_fn_c_try_link "$LINENO"
10327then :
10328  eval $cacheid=yes
10329else $as_nop
10330  eval $cacheid=no
10331fi
10332rm -f core conftest.err conftest.$ac_objext conftest.beam \
10333    conftest$ac_exeext conftest.$ac_ext
10334fi
10335
10336
10337		CFLAGS="$xorg_testset_save_CFLAGS"
10338
10339		eval supported=\$$cacheid
10340		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10341printf "%s\n" "$supported" >&6; }
10342		if test "$supported" = "yes" ; then
10343			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
10344			found="yes"
10345		fi
10346	fi
10347
10348 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
10349else
10350{ 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
10351printf "%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;}
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365xorg_testset_save_CFLAGS="$CFLAGS"
10366
10367if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10368	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10369	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10370printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10371if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10372then :
10373  printf %s "(cached) " >&6
10374else $as_nop
10375  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10376/* end confdefs.h.  */
10377int i;
10378_ACEOF
10379if ac_fn_c_try_compile "$LINENO"
10380then :
10381  xorg_cv_cc_flag_unknown_warning_option=yes
10382else $as_nop
10383  xorg_cv_cc_flag_unknown_warning_option=no
10384fi
10385rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10386fi
10387{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10388printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10389	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10390	CFLAGS="$xorg_testset_save_CFLAGS"
10391fi
10392
10393if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10394	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10395		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10396	fi
10397	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10398	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10399printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10400if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10401then :
10402  printf %s "(cached) " >&6
10403else $as_nop
10404  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10405/* end confdefs.h.  */
10406int i;
10407_ACEOF
10408if ac_fn_c_try_compile "$LINENO"
10409then :
10410  xorg_cv_cc_flag_unused_command_line_argument=yes
10411else $as_nop
10412  xorg_cv_cc_flag_unused_command_line_argument=no
10413fi
10414rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10415fi
10416{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10417printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10418	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10419	CFLAGS="$xorg_testset_save_CFLAGS"
10420fi
10421
10422found="no"
10423
10424	if test $found = "no" ; then
10425		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10426			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10427		fi
10428
10429		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10430			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10431		fi
10432
10433		CFLAGS="$CFLAGS -Wimplicit"
10434
10435		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
10436printf %s "checking if $CC supports -Wimplicit... " >&6; }
10437		cacheid=xorg_cv_cc_flag__Wimplicit
10438		if eval test \${$cacheid+y}
10439then :
10440  printf %s "(cached) " >&6
10441else $as_nop
10442  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10443/* end confdefs.h.  */
10444int i;
10445int
10446main (void)
10447{
10448
10449  ;
10450  return 0;
10451}
10452_ACEOF
10453if ac_fn_c_try_link "$LINENO"
10454then :
10455  eval $cacheid=yes
10456else $as_nop
10457  eval $cacheid=no
10458fi
10459rm -f core conftest.err conftest.$ac_objext conftest.beam \
10460    conftest$ac_exeext conftest.$ac_ext
10461fi
10462
10463
10464		CFLAGS="$xorg_testset_save_CFLAGS"
10465
10466		eval supported=\$$cacheid
10467		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10468printf "%s\n" "$supported" >&6; }
10469		if test "$supported" = "yes" ; then
10470			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
10471			found="yes"
10472		fi
10473	fi
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489xorg_testset_save_CFLAGS="$CFLAGS"
10490
10491if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10492	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10493	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10494printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10495if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10496then :
10497  printf %s "(cached) " >&6
10498else $as_nop
10499  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10500/* end confdefs.h.  */
10501int i;
10502_ACEOF
10503if ac_fn_c_try_compile "$LINENO"
10504then :
10505  xorg_cv_cc_flag_unknown_warning_option=yes
10506else $as_nop
10507  xorg_cv_cc_flag_unknown_warning_option=no
10508fi
10509rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10510fi
10511{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10512printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10513	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10514	CFLAGS="$xorg_testset_save_CFLAGS"
10515fi
10516
10517if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10518	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10519		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10520	fi
10521	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10522	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10523printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10524if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10525then :
10526  printf %s "(cached) " >&6
10527else $as_nop
10528  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10529/* end confdefs.h.  */
10530int i;
10531_ACEOF
10532if ac_fn_c_try_compile "$LINENO"
10533then :
10534  xorg_cv_cc_flag_unused_command_line_argument=yes
10535else $as_nop
10536  xorg_cv_cc_flag_unused_command_line_argument=no
10537fi
10538rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10539fi
10540{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10541printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10542	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10543	CFLAGS="$xorg_testset_save_CFLAGS"
10544fi
10545
10546found="no"
10547
10548	if test $found = "no" ; then
10549		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10550			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10551		fi
10552
10553		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10554			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10555		fi
10556
10557		CFLAGS="$CFLAGS -Wnonnull"
10558
10559		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
10560printf %s "checking if $CC supports -Wnonnull... " >&6; }
10561		cacheid=xorg_cv_cc_flag__Wnonnull
10562		if eval test \${$cacheid+y}
10563then :
10564  printf %s "(cached) " >&6
10565else $as_nop
10566  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10567/* end confdefs.h.  */
10568int i;
10569int
10570main (void)
10571{
10572
10573  ;
10574  return 0;
10575}
10576_ACEOF
10577if ac_fn_c_try_link "$LINENO"
10578then :
10579  eval $cacheid=yes
10580else $as_nop
10581  eval $cacheid=no
10582fi
10583rm -f core conftest.err conftest.$ac_objext conftest.beam \
10584    conftest$ac_exeext conftest.$ac_ext
10585fi
10586
10587
10588		CFLAGS="$xorg_testset_save_CFLAGS"
10589
10590		eval supported=\$$cacheid
10591		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10592printf "%s\n" "$supported" >&6; }
10593		if test "$supported" = "yes" ; then
10594			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
10595			found="yes"
10596		fi
10597	fi
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613xorg_testset_save_CFLAGS="$CFLAGS"
10614
10615if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10616	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10617	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10618printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10619if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10620then :
10621  printf %s "(cached) " >&6
10622else $as_nop
10623  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10624/* end confdefs.h.  */
10625int i;
10626_ACEOF
10627if ac_fn_c_try_compile "$LINENO"
10628then :
10629  xorg_cv_cc_flag_unknown_warning_option=yes
10630else $as_nop
10631  xorg_cv_cc_flag_unknown_warning_option=no
10632fi
10633rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10634fi
10635{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10636printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10637	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10638	CFLAGS="$xorg_testset_save_CFLAGS"
10639fi
10640
10641if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10642	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10643		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10644	fi
10645	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10646	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10647printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10648if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10649then :
10650  printf %s "(cached) " >&6
10651else $as_nop
10652  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10653/* end confdefs.h.  */
10654int i;
10655_ACEOF
10656if ac_fn_c_try_compile "$LINENO"
10657then :
10658  xorg_cv_cc_flag_unused_command_line_argument=yes
10659else $as_nop
10660  xorg_cv_cc_flag_unused_command_line_argument=no
10661fi
10662rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10663fi
10664{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10665printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10666	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10667	CFLAGS="$xorg_testset_save_CFLAGS"
10668fi
10669
10670found="no"
10671
10672	if test $found = "no" ; then
10673		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10674			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10675		fi
10676
10677		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10678			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10679		fi
10680
10681		CFLAGS="$CFLAGS -Winit-self"
10682
10683		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
10684printf %s "checking if $CC supports -Winit-self... " >&6; }
10685		cacheid=xorg_cv_cc_flag__Winit_self
10686		if eval test \${$cacheid+y}
10687then :
10688  printf %s "(cached) " >&6
10689else $as_nop
10690  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10691/* end confdefs.h.  */
10692int i;
10693int
10694main (void)
10695{
10696
10697  ;
10698  return 0;
10699}
10700_ACEOF
10701if ac_fn_c_try_link "$LINENO"
10702then :
10703  eval $cacheid=yes
10704else $as_nop
10705  eval $cacheid=no
10706fi
10707rm -f core conftest.err conftest.$ac_objext conftest.beam \
10708    conftest$ac_exeext conftest.$ac_ext
10709fi
10710
10711
10712		CFLAGS="$xorg_testset_save_CFLAGS"
10713
10714		eval supported=\$$cacheid
10715		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10716printf "%s\n" "$supported" >&6; }
10717		if test "$supported" = "yes" ; then
10718			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
10719			found="yes"
10720		fi
10721	fi
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737xorg_testset_save_CFLAGS="$CFLAGS"
10738
10739if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10740	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10741	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10742printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10743if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10744then :
10745  printf %s "(cached) " >&6
10746else $as_nop
10747  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10748/* end confdefs.h.  */
10749int i;
10750_ACEOF
10751if ac_fn_c_try_compile "$LINENO"
10752then :
10753  xorg_cv_cc_flag_unknown_warning_option=yes
10754else $as_nop
10755  xorg_cv_cc_flag_unknown_warning_option=no
10756fi
10757rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10758fi
10759{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10760printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10761	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10762	CFLAGS="$xorg_testset_save_CFLAGS"
10763fi
10764
10765if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10766	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10767		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10768	fi
10769	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10770	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10771printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10772if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10773then :
10774  printf %s "(cached) " >&6
10775else $as_nop
10776  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10777/* end confdefs.h.  */
10778int i;
10779_ACEOF
10780if ac_fn_c_try_compile "$LINENO"
10781then :
10782  xorg_cv_cc_flag_unused_command_line_argument=yes
10783else $as_nop
10784  xorg_cv_cc_flag_unused_command_line_argument=no
10785fi
10786rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10787fi
10788{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10789printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10790	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10791	CFLAGS="$xorg_testset_save_CFLAGS"
10792fi
10793
10794found="no"
10795
10796	if test $found = "no" ; then
10797		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10798			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10799		fi
10800
10801		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10802			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10803		fi
10804
10805		CFLAGS="$CFLAGS -Wmain"
10806
10807		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
10808printf %s "checking if $CC supports -Wmain... " >&6; }
10809		cacheid=xorg_cv_cc_flag__Wmain
10810		if eval test \${$cacheid+y}
10811then :
10812  printf %s "(cached) " >&6
10813else $as_nop
10814  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10815/* end confdefs.h.  */
10816int i;
10817int
10818main (void)
10819{
10820
10821  ;
10822  return 0;
10823}
10824_ACEOF
10825if ac_fn_c_try_link "$LINENO"
10826then :
10827  eval $cacheid=yes
10828else $as_nop
10829  eval $cacheid=no
10830fi
10831rm -f core conftest.err conftest.$ac_objext conftest.beam \
10832    conftest$ac_exeext conftest.$ac_ext
10833fi
10834
10835
10836		CFLAGS="$xorg_testset_save_CFLAGS"
10837
10838		eval supported=\$$cacheid
10839		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10840printf "%s\n" "$supported" >&6; }
10841		if test "$supported" = "yes" ; then
10842			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
10843			found="yes"
10844		fi
10845	fi
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861xorg_testset_save_CFLAGS="$CFLAGS"
10862
10863if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10864	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10865	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10866printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10867if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10868then :
10869  printf %s "(cached) " >&6
10870else $as_nop
10871  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10872/* end confdefs.h.  */
10873int i;
10874_ACEOF
10875if ac_fn_c_try_compile "$LINENO"
10876then :
10877  xorg_cv_cc_flag_unknown_warning_option=yes
10878else $as_nop
10879  xorg_cv_cc_flag_unknown_warning_option=no
10880fi
10881rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10882fi
10883{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10884printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10885	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10886	CFLAGS="$xorg_testset_save_CFLAGS"
10887fi
10888
10889if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10890	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10891		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10892	fi
10893	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10894	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10895printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10896if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10897then :
10898  printf %s "(cached) " >&6
10899else $as_nop
10900  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10901/* end confdefs.h.  */
10902int i;
10903_ACEOF
10904if ac_fn_c_try_compile "$LINENO"
10905then :
10906  xorg_cv_cc_flag_unused_command_line_argument=yes
10907else $as_nop
10908  xorg_cv_cc_flag_unused_command_line_argument=no
10909fi
10910rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10911fi
10912{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10913printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10914	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10915	CFLAGS="$xorg_testset_save_CFLAGS"
10916fi
10917
10918found="no"
10919
10920	if test $found = "no" ; then
10921		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10922			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10923		fi
10924
10925		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10926			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10927		fi
10928
10929		CFLAGS="$CFLAGS -Wmissing-braces"
10930
10931		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
10932printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
10933		cacheid=xorg_cv_cc_flag__Wmissing_braces
10934		if eval test \${$cacheid+y}
10935then :
10936  printf %s "(cached) " >&6
10937else $as_nop
10938  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10939/* end confdefs.h.  */
10940int i;
10941int
10942main (void)
10943{
10944
10945  ;
10946  return 0;
10947}
10948_ACEOF
10949if ac_fn_c_try_link "$LINENO"
10950then :
10951  eval $cacheid=yes
10952else $as_nop
10953  eval $cacheid=no
10954fi
10955rm -f core conftest.err conftest.$ac_objext conftest.beam \
10956    conftest$ac_exeext conftest.$ac_ext
10957fi
10958
10959
10960		CFLAGS="$xorg_testset_save_CFLAGS"
10961
10962		eval supported=\$$cacheid
10963		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10964printf "%s\n" "$supported" >&6; }
10965		if test "$supported" = "yes" ; then
10966			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
10967			found="yes"
10968		fi
10969	fi
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985xorg_testset_save_CFLAGS="$CFLAGS"
10986
10987if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10988	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10989	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10990printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10991if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10992then :
10993  printf %s "(cached) " >&6
10994else $as_nop
10995  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10996/* end confdefs.h.  */
10997int i;
10998_ACEOF
10999if ac_fn_c_try_compile "$LINENO"
11000then :
11001  xorg_cv_cc_flag_unknown_warning_option=yes
11002else $as_nop
11003  xorg_cv_cc_flag_unknown_warning_option=no
11004fi
11005rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11006fi
11007{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11008printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11009	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11010	CFLAGS="$xorg_testset_save_CFLAGS"
11011fi
11012
11013if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11014	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11015		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11016	fi
11017	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11018	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11019printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11020if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11021then :
11022  printf %s "(cached) " >&6
11023else $as_nop
11024  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11025/* end confdefs.h.  */
11026int i;
11027_ACEOF
11028if ac_fn_c_try_compile "$LINENO"
11029then :
11030  xorg_cv_cc_flag_unused_command_line_argument=yes
11031else $as_nop
11032  xorg_cv_cc_flag_unused_command_line_argument=no
11033fi
11034rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11035fi
11036{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11037printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11038	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11039	CFLAGS="$xorg_testset_save_CFLAGS"
11040fi
11041
11042found="no"
11043
11044	if test $found = "no" ; then
11045		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11046			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11047		fi
11048
11049		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11050			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11051		fi
11052
11053		CFLAGS="$CFLAGS -Wsequence-point"
11054
11055		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
11056printf %s "checking if $CC supports -Wsequence-point... " >&6; }
11057		cacheid=xorg_cv_cc_flag__Wsequence_point
11058		if eval test \${$cacheid+y}
11059then :
11060  printf %s "(cached) " >&6
11061else $as_nop
11062  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11063/* end confdefs.h.  */
11064int i;
11065int
11066main (void)
11067{
11068
11069  ;
11070  return 0;
11071}
11072_ACEOF
11073if ac_fn_c_try_link "$LINENO"
11074then :
11075  eval $cacheid=yes
11076else $as_nop
11077  eval $cacheid=no
11078fi
11079rm -f core conftest.err conftest.$ac_objext conftest.beam \
11080    conftest$ac_exeext conftest.$ac_ext
11081fi
11082
11083
11084		CFLAGS="$xorg_testset_save_CFLAGS"
11085
11086		eval supported=\$$cacheid
11087		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11088printf "%s\n" "$supported" >&6; }
11089		if test "$supported" = "yes" ; then
11090			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
11091			found="yes"
11092		fi
11093	fi
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109xorg_testset_save_CFLAGS="$CFLAGS"
11110
11111if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11112	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11113	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11114printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11115if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11116then :
11117  printf %s "(cached) " >&6
11118else $as_nop
11119  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11120/* end confdefs.h.  */
11121int i;
11122_ACEOF
11123if ac_fn_c_try_compile "$LINENO"
11124then :
11125  xorg_cv_cc_flag_unknown_warning_option=yes
11126else $as_nop
11127  xorg_cv_cc_flag_unknown_warning_option=no
11128fi
11129rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11130fi
11131{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11132printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11133	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11134	CFLAGS="$xorg_testset_save_CFLAGS"
11135fi
11136
11137if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11138	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11139		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11140	fi
11141	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11142	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11143printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11144if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11145then :
11146  printf %s "(cached) " >&6
11147else $as_nop
11148  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11149/* end confdefs.h.  */
11150int i;
11151_ACEOF
11152if ac_fn_c_try_compile "$LINENO"
11153then :
11154  xorg_cv_cc_flag_unused_command_line_argument=yes
11155else $as_nop
11156  xorg_cv_cc_flag_unused_command_line_argument=no
11157fi
11158rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11159fi
11160{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11161printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11162	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11163	CFLAGS="$xorg_testset_save_CFLAGS"
11164fi
11165
11166found="no"
11167
11168	if test $found = "no" ; then
11169		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11170			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11171		fi
11172
11173		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11174			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11175		fi
11176
11177		CFLAGS="$CFLAGS -Wreturn-type"
11178
11179		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
11180printf %s "checking if $CC supports -Wreturn-type... " >&6; }
11181		cacheid=xorg_cv_cc_flag__Wreturn_type
11182		if eval test \${$cacheid+y}
11183then :
11184  printf %s "(cached) " >&6
11185else $as_nop
11186  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11187/* end confdefs.h.  */
11188int i;
11189int
11190main (void)
11191{
11192
11193  ;
11194  return 0;
11195}
11196_ACEOF
11197if ac_fn_c_try_link "$LINENO"
11198then :
11199  eval $cacheid=yes
11200else $as_nop
11201  eval $cacheid=no
11202fi
11203rm -f core conftest.err conftest.$ac_objext conftest.beam \
11204    conftest$ac_exeext conftest.$ac_ext
11205fi
11206
11207
11208		CFLAGS="$xorg_testset_save_CFLAGS"
11209
11210		eval supported=\$$cacheid
11211		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11212printf "%s\n" "$supported" >&6; }
11213		if test "$supported" = "yes" ; then
11214			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
11215			found="yes"
11216		fi
11217	fi
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233xorg_testset_save_CFLAGS="$CFLAGS"
11234
11235if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11236	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11237	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11238printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11239if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11240then :
11241  printf %s "(cached) " >&6
11242else $as_nop
11243  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11244/* end confdefs.h.  */
11245int i;
11246_ACEOF
11247if ac_fn_c_try_compile "$LINENO"
11248then :
11249  xorg_cv_cc_flag_unknown_warning_option=yes
11250else $as_nop
11251  xorg_cv_cc_flag_unknown_warning_option=no
11252fi
11253rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11254fi
11255{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11256printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11257	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11258	CFLAGS="$xorg_testset_save_CFLAGS"
11259fi
11260
11261if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11262	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11263		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11264	fi
11265	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11266	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11267printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11268if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11269then :
11270  printf %s "(cached) " >&6
11271else $as_nop
11272  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11273/* end confdefs.h.  */
11274int i;
11275_ACEOF
11276if ac_fn_c_try_compile "$LINENO"
11277then :
11278  xorg_cv_cc_flag_unused_command_line_argument=yes
11279else $as_nop
11280  xorg_cv_cc_flag_unused_command_line_argument=no
11281fi
11282rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11283fi
11284{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11285printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11286	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11287	CFLAGS="$xorg_testset_save_CFLAGS"
11288fi
11289
11290found="no"
11291
11292	if test $found = "no" ; then
11293		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11294			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11295		fi
11296
11297		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11298			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11299		fi
11300
11301		CFLAGS="$CFLAGS -Wtrigraphs"
11302
11303		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
11304printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
11305		cacheid=xorg_cv_cc_flag__Wtrigraphs
11306		if eval test \${$cacheid+y}
11307then :
11308  printf %s "(cached) " >&6
11309else $as_nop
11310  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11311/* end confdefs.h.  */
11312int i;
11313int
11314main (void)
11315{
11316
11317  ;
11318  return 0;
11319}
11320_ACEOF
11321if ac_fn_c_try_link "$LINENO"
11322then :
11323  eval $cacheid=yes
11324else $as_nop
11325  eval $cacheid=no
11326fi
11327rm -f core conftest.err conftest.$ac_objext conftest.beam \
11328    conftest$ac_exeext conftest.$ac_ext
11329fi
11330
11331
11332		CFLAGS="$xorg_testset_save_CFLAGS"
11333
11334		eval supported=\$$cacheid
11335		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11336printf "%s\n" "$supported" >&6; }
11337		if test "$supported" = "yes" ; then
11338			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
11339			found="yes"
11340		fi
11341	fi
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357xorg_testset_save_CFLAGS="$CFLAGS"
11358
11359if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11360	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11361	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11362printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11363if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11364then :
11365  printf %s "(cached) " >&6
11366else $as_nop
11367  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11368/* end confdefs.h.  */
11369int i;
11370_ACEOF
11371if ac_fn_c_try_compile "$LINENO"
11372then :
11373  xorg_cv_cc_flag_unknown_warning_option=yes
11374else $as_nop
11375  xorg_cv_cc_flag_unknown_warning_option=no
11376fi
11377rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11378fi
11379{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11380printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11381	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11382	CFLAGS="$xorg_testset_save_CFLAGS"
11383fi
11384
11385if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11386	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11387		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11388	fi
11389	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11390	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11391printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11392if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11393then :
11394  printf %s "(cached) " >&6
11395else $as_nop
11396  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11397/* end confdefs.h.  */
11398int i;
11399_ACEOF
11400if ac_fn_c_try_compile "$LINENO"
11401then :
11402  xorg_cv_cc_flag_unused_command_line_argument=yes
11403else $as_nop
11404  xorg_cv_cc_flag_unused_command_line_argument=no
11405fi
11406rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11407fi
11408{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11409printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11410	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11411	CFLAGS="$xorg_testset_save_CFLAGS"
11412fi
11413
11414found="no"
11415
11416	if test $found = "no" ; then
11417		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11418			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11419		fi
11420
11421		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11422			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11423		fi
11424
11425		CFLAGS="$CFLAGS -Warray-bounds"
11426
11427		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
11428printf %s "checking if $CC supports -Warray-bounds... " >&6; }
11429		cacheid=xorg_cv_cc_flag__Warray_bounds
11430		if eval test \${$cacheid+y}
11431then :
11432  printf %s "(cached) " >&6
11433else $as_nop
11434  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11435/* end confdefs.h.  */
11436int i;
11437int
11438main (void)
11439{
11440
11441  ;
11442  return 0;
11443}
11444_ACEOF
11445if ac_fn_c_try_link "$LINENO"
11446then :
11447  eval $cacheid=yes
11448else $as_nop
11449  eval $cacheid=no
11450fi
11451rm -f core conftest.err conftest.$ac_objext conftest.beam \
11452    conftest$ac_exeext conftest.$ac_ext
11453fi
11454
11455
11456		CFLAGS="$xorg_testset_save_CFLAGS"
11457
11458		eval supported=\$$cacheid
11459		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11460printf "%s\n" "$supported" >&6; }
11461		if test "$supported" = "yes" ; then
11462			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
11463			found="yes"
11464		fi
11465	fi
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481xorg_testset_save_CFLAGS="$CFLAGS"
11482
11483if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11484	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11485	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11486printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11487if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11488then :
11489  printf %s "(cached) " >&6
11490else $as_nop
11491  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11492/* end confdefs.h.  */
11493int i;
11494_ACEOF
11495if ac_fn_c_try_compile "$LINENO"
11496then :
11497  xorg_cv_cc_flag_unknown_warning_option=yes
11498else $as_nop
11499  xorg_cv_cc_flag_unknown_warning_option=no
11500fi
11501rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11502fi
11503{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11504printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11505	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11506	CFLAGS="$xorg_testset_save_CFLAGS"
11507fi
11508
11509if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11510	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11511		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11512	fi
11513	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11514	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11515printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11516if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11517then :
11518  printf %s "(cached) " >&6
11519else $as_nop
11520  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11521/* end confdefs.h.  */
11522int i;
11523_ACEOF
11524if ac_fn_c_try_compile "$LINENO"
11525then :
11526  xorg_cv_cc_flag_unused_command_line_argument=yes
11527else $as_nop
11528  xorg_cv_cc_flag_unused_command_line_argument=no
11529fi
11530rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11531fi
11532{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11533printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11534	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11535	CFLAGS="$xorg_testset_save_CFLAGS"
11536fi
11537
11538found="no"
11539
11540	if test $found = "no" ; then
11541		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11542			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11543		fi
11544
11545		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11546			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11547		fi
11548
11549		CFLAGS="$CFLAGS -Wwrite-strings"
11550
11551		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
11552printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
11553		cacheid=xorg_cv_cc_flag__Wwrite_strings
11554		if eval test \${$cacheid+y}
11555then :
11556  printf %s "(cached) " >&6
11557else $as_nop
11558  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11559/* end confdefs.h.  */
11560int i;
11561int
11562main (void)
11563{
11564
11565  ;
11566  return 0;
11567}
11568_ACEOF
11569if ac_fn_c_try_link "$LINENO"
11570then :
11571  eval $cacheid=yes
11572else $as_nop
11573  eval $cacheid=no
11574fi
11575rm -f core conftest.err conftest.$ac_objext conftest.beam \
11576    conftest$ac_exeext conftest.$ac_ext
11577fi
11578
11579
11580		CFLAGS="$xorg_testset_save_CFLAGS"
11581
11582		eval supported=\$$cacheid
11583		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11584printf "%s\n" "$supported" >&6; }
11585		if test "$supported" = "yes" ; then
11586			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
11587			found="yes"
11588		fi
11589	fi
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605xorg_testset_save_CFLAGS="$CFLAGS"
11606
11607if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11608	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11609	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11610printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11611if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11612then :
11613  printf %s "(cached) " >&6
11614else $as_nop
11615  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11616/* end confdefs.h.  */
11617int i;
11618_ACEOF
11619if ac_fn_c_try_compile "$LINENO"
11620then :
11621  xorg_cv_cc_flag_unknown_warning_option=yes
11622else $as_nop
11623  xorg_cv_cc_flag_unknown_warning_option=no
11624fi
11625rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11626fi
11627{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11628printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11629	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11630	CFLAGS="$xorg_testset_save_CFLAGS"
11631fi
11632
11633if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11634	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11635		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11636	fi
11637	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11638	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11639printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11640if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11641then :
11642  printf %s "(cached) " >&6
11643else $as_nop
11644  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11645/* end confdefs.h.  */
11646int i;
11647_ACEOF
11648if ac_fn_c_try_compile "$LINENO"
11649then :
11650  xorg_cv_cc_flag_unused_command_line_argument=yes
11651else $as_nop
11652  xorg_cv_cc_flag_unused_command_line_argument=no
11653fi
11654rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11655fi
11656{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11657printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11658	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11659	CFLAGS="$xorg_testset_save_CFLAGS"
11660fi
11661
11662found="no"
11663
11664	if test $found = "no" ; then
11665		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11666			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11667		fi
11668
11669		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11670			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11671		fi
11672
11673		CFLAGS="$CFLAGS -Waddress"
11674
11675		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
11676printf %s "checking if $CC supports -Waddress... " >&6; }
11677		cacheid=xorg_cv_cc_flag__Waddress
11678		if eval test \${$cacheid+y}
11679then :
11680  printf %s "(cached) " >&6
11681else $as_nop
11682  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11683/* end confdefs.h.  */
11684int i;
11685int
11686main (void)
11687{
11688
11689  ;
11690  return 0;
11691}
11692_ACEOF
11693if ac_fn_c_try_link "$LINENO"
11694then :
11695  eval $cacheid=yes
11696else $as_nop
11697  eval $cacheid=no
11698fi
11699rm -f core conftest.err conftest.$ac_objext conftest.beam \
11700    conftest$ac_exeext conftest.$ac_ext
11701fi
11702
11703
11704		CFLAGS="$xorg_testset_save_CFLAGS"
11705
11706		eval supported=\$$cacheid
11707		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11708printf "%s\n" "$supported" >&6; }
11709		if test "$supported" = "yes" ; then
11710			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
11711			found="yes"
11712		fi
11713	fi
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729xorg_testset_save_CFLAGS="$CFLAGS"
11730
11731if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11732	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11733	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11734printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11735if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11736then :
11737  printf %s "(cached) " >&6
11738else $as_nop
11739  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11740/* end confdefs.h.  */
11741int i;
11742_ACEOF
11743if ac_fn_c_try_compile "$LINENO"
11744then :
11745  xorg_cv_cc_flag_unknown_warning_option=yes
11746else $as_nop
11747  xorg_cv_cc_flag_unknown_warning_option=no
11748fi
11749rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11750fi
11751{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11752printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11753	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11754	CFLAGS="$xorg_testset_save_CFLAGS"
11755fi
11756
11757if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11758	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11759		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11760	fi
11761	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11762	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11763printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11764if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11765then :
11766  printf %s "(cached) " >&6
11767else $as_nop
11768  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11769/* end confdefs.h.  */
11770int i;
11771_ACEOF
11772if ac_fn_c_try_compile "$LINENO"
11773then :
11774  xorg_cv_cc_flag_unused_command_line_argument=yes
11775else $as_nop
11776  xorg_cv_cc_flag_unused_command_line_argument=no
11777fi
11778rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11779fi
11780{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11781printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11782	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11783	CFLAGS="$xorg_testset_save_CFLAGS"
11784fi
11785
11786found="no"
11787
11788	if test $found = "no" ; then
11789		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11790			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11791		fi
11792
11793		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11794			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11795		fi
11796
11797		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
11798
11799		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
11800printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
11801		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
11802		if eval test \${$cacheid+y}
11803then :
11804  printf %s "(cached) " >&6
11805else $as_nop
11806  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11807/* end confdefs.h.  */
11808int i;
11809int
11810main (void)
11811{
11812
11813  ;
11814  return 0;
11815}
11816_ACEOF
11817if ac_fn_c_try_link "$LINENO"
11818then :
11819  eval $cacheid=yes
11820else $as_nop
11821  eval $cacheid=no
11822fi
11823rm -f core conftest.err conftest.$ac_objext conftest.beam \
11824    conftest$ac_exeext conftest.$ac_ext
11825fi
11826
11827
11828		CFLAGS="$xorg_testset_save_CFLAGS"
11829
11830		eval supported=\$$cacheid
11831		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11832printf "%s\n" "$supported" >&6; }
11833		if test "$supported" = "yes" ; then
11834			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
11835			found="yes"
11836		fi
11837	fi
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853xorg_testset_save_CFLAGS="$CFLAGS"
11854
11855if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11856	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11857	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11858printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11859if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11860then :
11861  printf %s "(cached) " >&6
11862else $as_nop
11863  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11864/* end confdefs.h.  */
11865int i;
11866_ACEOF
11867if ac_fn_c_try_compile "$LINENO"
11868then :
11869  xorg_cv_cc_flag_unknown_warning_option=yes
11870else $as_nop
11871  xorg_cv_cc_flag_unknown_warning_option=no
11872fi
11873rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11874fi
11875{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11876printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11877	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11878	CFLAGS="$xorg_testset_save_CFLAGS"
11879fi
11880
11881if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11882	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11883		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11884	fi
11885	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11886	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11887printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11888if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11889then :
11890  printf %s "(cached) " >&6
11891else $as_nop
11892  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11893/* end confdefs.h.  */
11894int i;
11895_ACEOF
11896if ac_fn_c_try_compile "$LINENO"
11897then :
11898  xorg_cv_cc_flag_unused_command_line_argument=yes
11899else $as_nop
11900  xorg_cv_cc_flag_unused_command_line_argument=no
11901fi
11902rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11903fi
11904{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11905printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11906	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11907	CFLAGS="$xorg_testset_save_CFLAGS"
11908fi
11909
11910found="no"
11911
11912	if test $found = "no" ; then
11913		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11914			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11915		fi
11916
11917		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11918			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11919		fi
11920
11921		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
11922
11923		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
11924printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
11925		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
11926		if eval test \${$cacheid+y}
11927then :
11928  printf %s "(cached) " >&6
11929else $as_nop
11930  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11931/* end confdefs.h.  */
11932int i;
11933int
11934main (void)
11935{
11936
11937  ;
11938  return 0;
11939}
11940_ACEOF
11941if ac_fn_c_try_link "$LINENO"
11942then :
11943  eval $cacheid=yes
11944else $as_nop
11945  eval $cacheid=no
11946fi
11947rm -f core conftest.err conftest.$ac_objext conftest.beam \
11948    conftest$ac_exeext conftest.$ac_ext
11949fi
11950
11951
11952		CFLAGS="$xorg_testset_save_CFLAGS"
11953
11954		eval supported=\$$cacheid
11955		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11956printf "%s\n" "$supported" >&6; }
11957		if test "$supported" = "yes" ; then
11958			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
11959			found="yes"
11960		fi
11961	fi
11962
11963
11964fi
11965
11966
11967
11968
11969
11970
11971
11972		CWARNFLAGS="$BASE_CFLAGS"
11973		if  test "x$GCC" = xyes ; then
11974		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
11975		fi
11976
11977
11978
11979
11980
11981
11982
11983
11984# Check whether --enable-strict-compilation was given.
11985if test ${enable_strict_compilation+y}
11986then :
11987  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
11988else $as_nop
11989  STRICT_COMPILE=no
11990fi
11991
11992
11993
11994
11995
11996
11997STRICT_CFLAGS=""
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011xorg_testset_save_CFLAGS="$CFLAGS"
12012
12013if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12014	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12015	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12016printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12017if test ${xorg_cv_cc_flag_unknown_warning_option+y}
12018then :
12019  printf %s "(cached) " >&6
12020else $as_nop
12021  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12022/* end confdefs.h.  */
12023int i;
12024_ACEOF
12025if ac_fn_c_try_compile "$LINENO"
12026then :
12027  xorg_cv_cc_flag_unknown_warning_option=yes
12028else $as_nop
12029  xorg_cv_cc_flag_unknown_warning_option=no
12030fi
12031rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12032fi
12033{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12034printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12035	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12036	CFLAGS="$xorg_testset_save_CFLAGS"
12037fi
12038
12039if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12040	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12041		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12042	fi
12043	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12044	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12045printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12046if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
12047then :
12048  printf %s "(cached) " >&6
12049else $as_nop
12050  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12051/* end confdefs.h.  */
12052int i;
12053_ACEOF
12054if ac_fn_c_try_compile "$LINENO"
12055then :
12056  xorg_cv_cc_flag_unused_command_line_argument=yes
12057else $as_nop
12058  xorg_cv_cc_flag_unused_command_line_argument=no
12059fi
12060rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12061fi
12062{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12063printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12064	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12065	CFLAGS="$xorg_testset_save_CFLAGS"
12066fi
12067
12068found="no"
12069
12070	if test $found = "no" ; then
12071		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12072			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12073		fi
12074
12075		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12076			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12077		fi
12078
12079		CFLAGS="$CFLAGS -pedantic"
12080
12081		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
12082printf %s "checking if $CC supports -pedantic... " >&6; }
12083		cacheid=xorg_cv_cc_flag__pedantic
12084		if eval test \${$cacheid+y}
12085then :
12086  printf %s "(cached) " >&6
12087else $as_nop
12088  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12089/* end confdefs.h.  */
12090int i;
12091int
12092main (void)
12093{
12094
12095  ;
12096  return 0;
12097}
12098_ACEOF
12099if ac_fn_c_try_link "$LINENO"
12100then :
12101  eval $cacheid=yes
12102else $as_nop
12103  eval $cacheid=no
12104fi
12105rm -f core conftest.err conftest.$ac_objext conftest.beam \
12106    conftest$ac_exeext conftest.$ac_ext
12107fi
12108
12109
12110		CFLAGS="$xorg_testset_save_CFLAGS"
12111
12112		eval supported=\$$cacheid
12113		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12114printf "%s\n" "$supported" >&6; }
12115		if test "$supported" = "yes" ; then
12116			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
12117			found="yes"
12118		fi
12119	fi
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135xorg_testset_save_CFLAGS="$CFLAGS"
12136
12137if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12138	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12139	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12140printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12141if test ${xorg_cv_cc_flag_unknown_warning_option+y}
12142then :
12143  printf %s "(cached) " >&6
12144else $as_nop
12145  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12146/* end confdefs.h.  */
12147int i;
12148_ACEOF
12149if ac_fn_c_try_compile "$LINENO"
12150then :
12151  xorg_cv_cc_flag_unknown_warning_option=yes
12152else $as_nop
12153  xorg_cv_cc_flag_unknown_warning_option=no
12154fi
12155rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12156fi
12157{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12158printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12159	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12160	CFLAGS="$xorg_testset_save_CFLAGS"
12161fi
12162
12163if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12164	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12165		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12166	fi
12167	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12168	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12169printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12170if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
12171then :
12172  printf %s "(cached) " >&6
12173else $as_nop
12174  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12175/* end confdefs.h.  */
12176int i;
12177_ACEOF
12178if ac_fn_c_try_compile "$LINENO"
12179then :
12180  xorg_cv_cc_flag_unused_command_line_argument=yes
12181else $as_nop
12182  xorg_cv_cc_flag_unused_command_line_argument=no
12183fi
12184rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12185fi
12186{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12187printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12188	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12189	CFLAGS="$xorg_testset_save_CFLAGS"
12190fi
12191
12192found="no"
12193
12194	if test $found = "no" ; then
12195		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12196			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12197		fi
12198
12199		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12200			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12201		fi
12202
12203		CFLAGS="$CFLAGS -Werror"
12204
12205		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
12206printf %s "checking if $CC supports -Werror... " >&6; }
12207		cacheid=xorg_cv_cc_flag__Werror
12208		if eval test \${$cacheid+y}
12209then :
12210  printf %s "(cached) " >&6
12211else $as_nop
12212  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12213/* end confdefs.h.  */
12214int i;
12215int
12216main (void)
12217{
12218
12219  ;
12220  return 0;
12221}
12222_ACEOF
12223if ac_fn_c_try_link "$LINENO"
12224then :
12225  eval $cacheid=yes
12226else $as_nop
12227  eval $cacheid=no
12228fi
12229rm -f core conftest.err conftest.$ac_objext conftest.beam \
12230    conftest$ac_exeext conftest.$ac_ext
12231fi
12232
12233
12234		CFLAGS="$xorg_testset_save_CFLAGS"
12235
12236		eval supported=\$$cacheid
12237		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12238printf "%s\n" "$supported" >&6; }
12239		if test "$supported" = "yes" ; then
12240			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
12241			found="yes"
12242		fi
12243	fi
12244
12245	if test $found = "no" ; then
12246		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12247			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12248		fi
12249
12250		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12251			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12252		fi
12253
12254		CFLAGS="$CFLAGS -errwarn"
12255
12256		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
12257printf %s "checking if $CC supports -errwarn... " >&6; }
12258		cacheid=xorg_cv_cc_flag__errwarn
12259		if eval test \${$cacheid+y}
12260then :
12261  printf %s "(cached) " >&6
12262else $as_nop
12263  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12264/* end confdefs.h.  */
12265int i;
12266int
12267main (void)
12268{
12269
12270  ;
12271  return 0;
12272}
12273_ACEOF
12274if ac_fn_c_try_link "$LINENO"
12275then :
12276  eval $cacheid=yes
12277else $as_nop
12278  eval $cacheid=no
12279fi
12280rm -f core conftest.err conftest.$ac_objext conftest.beam \
12281    conftest$ac_exeext conftest.$ac_ext
12282fi
12283
12284
12285		CFLAGS="$xorg_testset_save_CFLAGS"
12286
12287		eval supported=\$$cacheid
12288		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12289printf "%s\n" "$supported" >&6; }
12290		if test "$supported" = "yes" ; then
12291			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
12292			found="yes"
12293		fi
12294	fi
12295
12296
12297
12298# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
12299# activate it with -Werror, so we add it here explicitly.
12300
12301
12302
12303
12304
12305
12306
12307
12308
12309
12310
12311
12312
12313xorg_testset_save_CFLAGS="$CFLAGS"
12314
12315if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12316	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12317	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12318printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12319if test ${xorg_cv_cc_flag_unknown_warning_option+y}
12320then :
12321  printf %s "(cached) " >&6
12322else $as_nop
12323  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12324/* end confdefs.h.  */
12325int i;
12326_ACEOF
12327if ac_fn_c_try_compile "$LINENO"
12328then :
12329  xorg_cv_cc_flag_unknown_warning_option=yes
12330else $as_nop
12331  xorg_cv_cc_flag_unknown_warning_option=no
12332fi
12333rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12334fi
12335{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12336printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12337	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12338	CFLAGS="$xorg_testset_save_CFLAGS"
12339fi
12340
12341if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12342	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12343		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12344	fi
12345	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12346	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12347printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12348if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
12349then :
12350  printf %s "(cached) " >&6
12351else $as_nop
12352  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12353/* end confdefs.h.  */
12354int i;
12355_ACEOF
12356if ac_fn_c_try_compile "$LINENO"
12357then :
12358  xorg_cv_cc_flag_unused_command_line_argument=yes
12359else $as_nop
12360  xorg_cv_cc_flag_unused_command_line_argument=no
12361fi
12362rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12363fi
12364{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12365printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12366	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12367	CFLAGS="$xorg_testset_save_CFLAGS"
12368fi
12369
12370found="no"
12371
12372	if test $found = "no" ; then
12373		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12374			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12375		fi
12376
12377		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12378			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12379		fi
12380
12381		CFLAGS="$CFLAGS -Werror=attributes"
12382
12383		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
12384printf %s "checking if $CC supports -Werror=attributes... " >&6; }
12385		cacheid=xorg_cv_cc_flag__Werror_attributes
12386		if eval test \${$cacheid+y}
12387then :
12388  printf %s "(cached) " >&6
12389else $as_nop
12390  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12391/* end confdefs.h.  */
12392int i;
12393int
12394main (void)
12395{
12396
12397  ;
12398  return 0;
12399}
12400_ACEOF
12401if ac_fn_c_try_link "$LINENO"
12402then :
12403  eval $cacheid=yes
12404else $as_nop
12405  eval $cacheid=no
12406fi
12407rm -f core conftest.err conftest.$ac_objext conftest.beam \
12408    conftest$ac_exeext conftest.$ac_ext
12409fi
12410
12411
12412		CFLAGS="$xorg_testset_save_CFLAGS"
12413
12414		eval supported=\$$cacheid
12415		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12416printf "%s\n" "$supported" >&6; }
12417		if test "$supported" = "yes" ; then
12418			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
12419			found="yes"
12420		fi
12421	fi
12422
12423
12424
12425if test "x$STRICT_COMPILE" = "xyes"; then
12426    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
12427    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
12428fi
12429
12430
12431
12432
12433
12434
12435cat >>confdefs.h <<_ACEOF
12436#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
12437_ACEOF
12438
12439	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
12440	if test "x$PVM" = "x"; then
12441		PVM="0"
12442	fi
12443
12444printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
12445
12446	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
12447	if test "x$PVP" = "x"; then
12448		PVP="0"
12449	fi
12450
12451printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
12452
12453
12454
12455CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
12456mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
12457|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
12458touch \$(top_srcdir)/ChangeLog; \
12459echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
12460
12461
12462
12463
12464macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
12465INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
12466mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
12467|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
12468touch \$(top_srcdir)/INSTALL; \
12469echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
12470
12471
12472
12473
12474
12475
12476case $host_os in
12477    solaris*)
12478        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
12479        # check for a man page file found in later versions that use
12480        # traditional section numbers instead
12481        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
12482printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
12483if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
12484then :
12485  printf %s "(cached) " >&6
12486else $as_nop
12487  test "$cross_compiling" = yes &&
12488  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
12489if test -r "/usr/share/man/man7/attributes.7"; then
12490  ac_cv_file__usr_share_man_man7_attributes_7=yes
12491else
12492  ac_cv_file__usr_share_man_man7_attributes_7=no
12493fi
12494fi
12495{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
12496printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
12497if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
12498then :
12499  SYSV_MAN_SECTIONS=false
12500else $as_nop
12501  SYSV_MAN_SECTIONS=true
12502fi
12503
12504        ;;
12505    *) SYSV_MAN_SECTIONS=false ;;
12506esac
12507
12508if test x$APP_MAN_SUFFIX = x    ; then
12509    APP_MAN_SUFFIX=1
12510fi
12511if test x$APP_MAN_DIR = x    ; then
12512    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
12513fi
12514
12515if test x$LIB_MAN_SUFFIX = x    ; then
12516    LIB_MAN_SUFFIX=3
12517fi
12518if test x$LIB_MAN_DIR = x    ; then
12519    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
12520fi
12521
12522if test x$FILE_MAN_SUFFIX = x    ; then
12523    case $SYSV_MAN_SECTIONS in
12524	true)				FILE_MAN_SUFFIX=4  ;;
12525	*)				FILE_MAN_SUFFIX=5  ;;
12526    esac
12527fi
12528if test x$FILE_MAN_DIR = x    ; then
12529    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
12530fi
12531
12532if test x$MISC_MAN_SUFFIX = x    ; then
12533    case $SYSV_MAN_SECTIONS in
12534	true)				MISC_MAN_SUFFIX=5  ;;
12535	*)				MISC_MAN_SUFFIX=7  ;;
12536    esac
12537fi
12538if test x$MISC_MAN_DIR = x    ; then
12539    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
12540fi
12541
12542if test x$DRIVER_MAN_SUFFIX = x    ; then
12543    case $SYSV_MAN_SECTIONS in
12544	true)				DRIVER_MAN_SUFFIX=7  ;;
12545	*)				DRIVER_MAN_SUFFIX=4  ;;
12546    esac
12547fi
12548if test x$DRIVER_MAN_DIR = x    ; then
12549    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
12550fi
12551
12552if test x$ADMIN_MAN_SUFFIX = x    ; then
12553    case $SYSV_MAN_SECTIONS in
12554	true)				ADMIN_MAN_SUFFIX=1m ;;
12555	*)				ADMIN_MAN_SUFFIX=8  ;;
12556    esac
12557fi
12558if test x$ADMIN_MAN_DIR = x    ; then
12559    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
12560fi
12561
12562
12563
12564
12565
12566
12567
12568
12569
12570
12571
12572
12573
12574
12575
12576XORG_MAN_PAGE="X Version 11"
12577
12578MAN_SUBSTS="\
12579	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
12580	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
12581	-e 's|__xservername__|Xorg|g' \
12582	-e 's|__xconfigfile__|xorg.conf|g' \
12583	-e 's|__projectroot__|\$(prefix)|g' \
12584	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
12585	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
12586	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
12587	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
12588	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
12589	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
12590	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
12591
12592
12593
12594# Check whether --enable-silent-rules was given.
12595if test ${enable_silent_rules+y}
12596then :
12597  enableval=$enable_silent_rules;
12598fi
12599
12600case $enable_silent_rules in # (((
12601  yes) AM_DEFAULT_VERBOSITY=0;;
12602   no) AM_DEFAULT_VERBOSITY=1;;
12603    *) AM_DEFAULT_VERBOSITY=0;;
12604esac
12605am_make=${MAKE-make}
12606{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
12607printf %s "checking whether $am_make supports nested variables... " >&6; }
12608if test ${am_cv_make_support_nested_variables+y}
12609then :
12610  printf %s "(cached) " >&6
12611else $as_nop
12612  if printf "%s\n" 'TRUE=$(BAR$(V))
12613BAR0=false
12614BAR1=true
12615V=1
12616am__doit:
12617	@$(TRUE)
12618.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
12619  am_cv_make_support_nested_variables=yes
12620else
12621  am_cv_make_support_nested_variables=no
12622fi
12623fi
12624{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
12625printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
12626if test $am_cv_make_support_nested_variables = yes; then
12627    AM_V='$(V)'
12628  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
12629else
12630  AM_V=$AM_DEFAULT_VERBOSITY
12631  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
12632fi
12633AM_BACKSLASH='\'
12634
12635
12636
12637
12638
12639
12640
12641# Check whether --with-doxygen was given.
12642if test ${with_doxygen+y}
12643then :
12644  withval=$with_doxygen; use_doxygen=$withval
12645else $as_nop
12646  use_doxygen=auto
12647fi
12648
12649
12650
12651if test "x$use_doxygen" = x"auto"; then
12652   # Extract the first word of "doxygen", so it can be a program name with args.
12653set dummy doxygen; ac_word=$2
12654{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12655printf %s "checking for $ac_word... " >&6; }
12656if test ${ac_cv_path_DOXYGEN+y}
12657then :
12658  printf %s "(cached) " >&6
12659else $as_nop
12660  case $DOXYGEN in
12661  [\\/]* | ?:[\\/]*)
12662  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
12663  ;;
12664  *)
12665  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12666for as_dir in $PATH
12667do
12668  IFS=$as_save_IFS
12669  case $as_dir in #(((
12670    '') as_dir=./ ;;
12671    */) ;;
12672    *) as_dir=$as_dir/ ;;
12673  esac
12674    for ac_exec_ext in '' $ac_executable_extensions; do
12675  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12676    ac_cv_path_DOXYGEN="$as_dir$ac_word$ac_exec_ext"
12677    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12678    break 2
12679  fi
12680done
12681  done
12682IFS=$as_save_IFS
12683
12684  ;;
12685esac
12686fi
12687DOXYGEN=$ac_cv_path_DOXYGEN
12688if test -n "$DOXYGEN"; then
12689  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
12690printf "%s\n" "$DOXYGEN" >&6; }
12691else
12692  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12693printf "%s\n" "no" >&6; }
12694fi
12695
12696
12697   if test "x$DOXYGEN" = "x"; then
12698        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: doxygen not found - documentation targets will be skipped" >&5
12699printf "%s\n" "$as_me: WARNING: doxygen not found - documentation targets will be skipped" >&2;}
12700	have_doxygen=no
12701   else
12702        have_doxygen=yes
12703   fi
12704elif test "x$use_doxygen" = x"yes" ; then
12705   # Extract the first word of "doxygen", so it can be a program name with args.
12706set dummy doxygen; ac_word=$2
12707{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12708printf %s "checking for $ac_word... " >&6; }
12709if test ${ac_cv_path_DOXYGEN+y}
12710then :
12711  printf %s "(cached) " >&6
12712else $as_nop
12713  case $DOXYGEN in
12714  [\\/]* | ?:[\\/]*)
12715  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
12716  ;;
12717  *)
12718  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12719for as_dir in $PATH
12720do
12721  IFS=$as_save_IFS
12722  case $as_dir in #(((
12723    '') as_dir=./ ;;
12724    */) ;;
12725    *) as_dir=$as_dir/ ;;
12726  esac
12727    for ac_exec_ext in '' $ac_executable_extensions; do
12728  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12729    ac_cv_path_DOXYGEN="$as_dir$ac_word$ac_exec_ext"
12730    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12731    break 2
12732  fi
12733done
12734  done
12735IFS=$as_save_IFS
12736
12737  ;;
12738esac
12739fi
12740DOXYGEN=$ac_cv_path_DOXYGEN
12741if test -n "$DOXYGEN"; then
12742  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
12743printf "%s\n" "$DOXYGEN" >&6; }
12744else
12745  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12746printf "%s\n" "no" >&6; }
12747fi
12748
12749
12750   if test "x$DOXYGEN" = "x"; then
12751        as_fn_error $? "--with-doxygen=yes specified but doxygen not found in PATH" "$LINENO" 5
12752   fi
12753   have_doxygen=yes
12754elif test "x$use_doxygen" = x"no" ; then
12755   if test "x$DOXYGEN" != "x"; then
12756      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring DOXYGEN environment variable since --with-doxygen=no was specified" >&5
12757printf "%s\n" "$as_me: WARNING: ignoring DOXYGEN environment variable since --with-doxygen=no was specified" >&2;}
12758   fi
12759   have_doxygen=no
12760else
12761   as_fn_error $? "--with-doxygen expects 'yes' or 'no'" "$LINENO" 5
12762fi
12763if test "$have_doxygen" = yes; then
12764    # scrape the doxygen version
12765    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the doxygen version" >&5
12766printf %s "checking the doxygen version... " >&6; }
12767    doxygen_version=`$DOXYGEN --version 2>/dev/null`
12768    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $doxygen_version" >&5
12769printf "%s\n" "$doxygen_version" >&6; }
12770    as_arg_v1=$doxygen_version
12771as_arg_v2=1.6.1
12772awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
12773case $? in #(
12774  1) :
12775    if test "x$use_doxygen" = xauto; then
12776            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: doxygen version $doxygen_version found, but 1.6.1 needed" >&5
12777printf "%s\n" "$as_me: WARNING: doxygen version $doxygen_version found, but 1.6.1 needed" >&2;}
12778            have_doxygen=no
12779        else
12780            as_fn_error $? "doxygen version $doxygen_version found, but 1.6.1 needed" "$LINENO" 5
12781        fi ;; #(
12782  0) :
12783     ;; #(
12784  2) :
12785     ;; #(
12786  *) :
12787     ;;
12788esac
12789fi
12790
12791HAVE_DOT=no
12792if test "x$have_doxygen" = "xyes"; then
12793  # Extract the first word of "dot", so it can be a program name with args.
12794set dummy dot; ac_word=$2
12795{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12796printf %s "checking for $ac_word... " >&6; }
12797if test ${ac_cv_path_DOT+y}
12798then :
12799  printf %s "(cached) " >&6
12800else $as_nop
12801  case $DOT in
12802  [\\/]* | ?:[\\/]*)
12803  ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
12804  ;;
12805  *)
12806  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12807for as_dir in $PATH
12808do
12809  IFS=$as_save_IFS
12810  case $as_dir in #(((
12811    '') as_dir=./ ;;
12812    */) ;;
12813    *) as_dir=$as_dir/ ;;
12814  esac
12815    for ac_exec_ext in '' $ac_executable_extensions; do
12816  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12817    ac_cv_path_DOT="$as_dir$ac_word$ac_exec_ext"
12818    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12819    break 2
12820  fi
12821done
12822  done
12823IFS=$as_save_IFS
12824
12825  ;;
12826esac
12827fi
12828DOT=$ac_cv_path_DOT
12829if test -n "$DOT"; then
12830  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5
12831printf "%s\n" "$DOT" >&6; }
12832else
12833  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12834printf "%s\n" "no" >&6; }
12835fi
12836
12837
12838    if test "x$DOT" != "x"; then
12839      HAVE_DOT=yes
12840    fi
12841fi
12842
12843
12844 if test "$HAVE_DOT" = "yes"; then
12845  HAVE_DOT_TRUE=
12846  HAVE_DOT_FALSE='#'
12847else
12848  HAVE_DOT_TRUE='#'
12849  HAVE_DOT_FALSE=
12850fi
12851
12852 if test "$have_doxygen" = yes; then
12853  HAVE_DOXYGEN_TRUE=
12854  HAVE_DOXYGEN_FALSE='#'
12855else
12856  HAVE_DOXYGEN_TRUE='#'
12857  HAVE_DOXYGEN_FALSE=
12858fi
12859
12860
12861
12862{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.8" >&5
12863printf %s "checking for X.Org SGML entities >= 1.8... " >&6; }
12864XORG_SGML_PATH=
12865if test -n "$PKG_CONFIG" && \
12866    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.8\""; } >&5
12867  ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.8") 2>&5
12868  ac_status=$?
12869  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12870  test $ac_status = 0; }; then
12871  XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools`
12872else
12873  :
12874
12875fi
12876
12877# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing
12878# the path and the name of the doc stylesheet
12879if test "x$XORG_SGML_PATH" != "x" ; then
12880   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5
12881printf "%s\n" "$XORG_SGML_PATH" >&6; }
12882   STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11
12883   XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl
12884else
12885   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12886printf "%s\n" "no" >&6; }
12887fi
12888
12889
12890
12891
12892 if test "x$XSL_STYLESHEET" != "x"; then
12893  HAVE_STYLESHEETS_TRUE=
12894  HAVE_STYLESHEETS_FALSE='#'
12895else
12896  HAVE_STYLESHEETS_TRUE='#'
12897  HAVE_STYLESHEETS_FALSE=
12898fi
12899
12900
12901
12902
12903# Check whether --enable-docs was given.
12904if test ${enable_docs+y}
12905then :
12906  enableval=$enable_docs; build_docs=$enableval
12907else $as_nop
12908  build_docs=yes
12909fi
12910
12911
12912 if test x$build_docs = xyes; then
12913  ENABLE_DOCS_TRUE=
12914  ENABLE_DOCS_FALSE='#'
12915else
12916  ENABLE_DOCS_TRUE='#'
12917  ENABLE_DOCS_FALSE=
12918fi
12919
12920{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build documentation" >&5
12921printf %s "checking whether to build documentation... " >&6; }
12922{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $build_docs" >&5
12923printf "%s\n" "$build_docs" >&6; }
12924
12925
12926
12927# Check whether --enable-devel-docs was given.
12928if test ${enable_devel_docs+y}
12929then :
12930  enableval=$enable_devel_docs; build_devel_docs=$enableval
12931else $as_nop
12932  build_devel_docs=yes
12933fi
12934
12935
12936 if test x$build_devel_docs = xyes; then
12937  ENABLE_DEVEL_DOCS_TRUE=
12938  ENABLE_DEVEL_DOCS_FALSE='#'
12939else
12940  ENABLE_DEVEL_DOCS_TRUE='#'
12941  ENABLE_DEVEL_DOCS_FALSE=
12942fi
12943
12944{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build developer documentation" >&5
12945printf %s "checking whether to build developer documentation... " >&6; }
12946{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $build_devel_docs" >&5
12947printf "%s\n" "$build_devel_docs" >&6; }
12948
12949
12950
12951
12952
12953# Check whether --with-xmlto was given.
12954if test ${with_xmlto+y}
12955then :
12956  withval=$with_xmlto; use_xmlto=$withval
12957else $as_nop
12958  use_xmlto=auto
12959fi
12960
12961
12962
12963if test "x$use_xmlto" = x"auto"; then
12964   # Extract the first word of "xmlto", so it can be a program name with args.
12965set dummy xmlto; ac_word=$2
12966{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12967printf %s "checking for $ac_word... " >&6; }
12968if test ${ac_cv_path_XMLTO+y}
12969then :
12970  printf %s "(cached) " >&6
12971else $as_nop
12972  case $XMLTO in
12973  [\\/]* | ?:[\\/]*)
12974  ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
12975  ;;
12976  *)
12977  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12978for as_dir in $PATH
12979do
12980  IFS=$as_save_IFS
12981  case $as_dir in #(((
12982    '') as_dir=./ ;;
12983    */) ;;
12984    *) as_dir=$as_dir/ ;;
12985  esac
12986    for ac_exec_ext in '' $ac_executable_extensions; do
12987  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12988    ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext"
12989    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12990    break 2
12991  fi
12992done
12993  done
12994IFS=$as_save_IFS
12995
12996  ;;
12997esac
12998fi
12999XMLTO=$ac_cv_path_XMLTO
13000if test -n "$XMLTO"; then
13001  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
13002printf "%s\n" "$XMLTO" >&6; }
13003else
13004  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13005printf "%s\n" "no" >&6; }
13006fi
13007
13008
13009   if test "x$XMLTO" = "x"; then
13010        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5
13011printf "%s\n" "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;}
13012	have_xmlto=no
13013   else
13014        have_xmlto=yes
13015   fi
13016elif test "x$use_xmlto" = x"yes" ; then
13017   # Extract the first word of "xmlto", so it can be a program name with args.
13018set dummy xmlto; ac_word=$2
13019{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13020printf %s "checking for $ac_word... " >&6; }
13021if test ${ac_cv_path_XMLTO+y}
13022then :
13023  printf %s "(cached) " >&6
13024else $as_nop
13025  case $XMLTO in
13026  [\\/]* | ?:[\\/]*)
13027  ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
13028  ;;
13029  *)
13030  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13031for as_dir in $PATH
13032do
13033  IFS=$as_save_IFS
13034  case $as_dir in #(((
13035    '') as_dir=./ ;;
13036    */) ;;
13037    *) as_dir=$as_dir/ ;;
13038  esac
13039    for ac_exec_ext in '' $ac_executable_extensions; do
13040  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13041    ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext"
13042    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13043    break 2
13044  fi
13045done
13046  done
13047IFS=$as_save_IFS
13048
13049  ;;
13050esac
13051fi
13052XMLTO=$ac_cv_path_XMLTO
13053if test -n "$XMLTO"; then
13054  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
13055printf "%s\n" "$XMLTO" >&6; }
13056else
13057  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13058printf "%s\n" "no" >&6; }
13059fi
13060
13061
13062   if test "x$XMLTO" = "x"; then
13063        as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5
13064   fi
13065   have_xmlto=yes
13066elif test "x$use_xmlto" = x"no" ; then
13067   if test "x$XMLTO" != "x"; then
13068      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5
13069printf "%s\n" "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;}
13070   fi
13071   have_xmlto=no
13072else
13073   as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5
13074fi
13075
13076# Test for a minimum version of xmlto, if provided.
13077if test "$have_xmlto" = yes; then
13078    # scrape the xmlto version
13079    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5
13080printf %s "checking the xmlto version... " >&6; }
13081    xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3`
13082    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5
13083printf "%s\n" "$xmlto_version" >&6; }
13084    as_arg_v1=$xmlto_version
13085as_arg_v2=0.0.20
13086awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
13087case $? in #(
13088  1) :
13089    if test "x$use_xmlto" = xauto; then
13090            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.20 needed" >&5
13091printf "%s\n" "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.20 needed" >&2;}
13092            have_xmlto=no
13093        else
13094            as_fn_error $? "xmlto version $xmlto_version found, but 0.0.20 needed" "$LINENO" 5
13095        fi ;; #(
13096  0) :
13097     ;; #(
13098  2) :
13099     ;; #(
13100  *) :
13101     ;;
13102esac
13103fi
13104
13105# Test for the ability of xmlto to generate a text target
13106#
13107# NOTE: xmlto 0.0.27 or higher return a non-zero return code in the
13108# following test for empty XML docbook files.
13109# For compatibility reasons use the following empty XML docbook file and if
13110# it fails try it again with a non-empty XML file.
13111have_xmlto_text=no
13112cat > conftest.xml << "EOF"
13113EOF
13114if test "$have_xmlto" = yes
13115then :
13116  if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1
13117then :
13118  have_xmlto_text=yes
13119else $as_nop
13120  # Try it again with a non-empty XML file.
13121              cat > conftest.xml << "EOF"
13122<x></x>
13123EOF
13124              if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1
13125then :
13126  have_xmlto_text=yes
13127else $as_nop
13128  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5
13129printf "%s\n" "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;}
13130fi
13131fi
13132fi
13133rm -f conftest.xml
13134 if test $have_xmlto_text = yes; then
13135  HAVE_XMLTO_TEXT_TRUE=
13136  HAVE_XMLTO_TEXT_FALSE='#'
13137else
13138  HAVE_XMLTO_TEXT_TRUE='#'
13139  HAVE_XMLTO_TEXT_FALSE=
13140fi
13141
13142 if test "$have_xmlto" = yes; then
13143  HAVE_XMLTO_TRUE=
13144  HAVE_XMLTO_FALSE='#'
13145else
13146  HAVE_XMLTO_TRUE='#'
13147  HAVE_XMLTO_FALSE=
13148fi
13149
13150
13151
13152
13153
13154
13155# Check whether --with-fop was given.
13156if test ${with_fop+y}
13157then :
13158  withval=$with_fop; use_fop=$withval
13159else $as_nop
13160  use_fop=auto
13161fi
13162
13163
13164
13165if test "x$use_fop" = x"auto"; then
13166   # Extract the first word of "fop", so it can be a program name with args.
13167set dummy fop; ac_word=$2
13168{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13169printf %s "checking for $ac_word... " >&6; }
13170if test ${ac_cv_path_FOP+y}
13171then :
13172  printf %s "(cached) " >&6
13173else $as_nop
13174  case $FOP in
13175  [\\/]* | ?:[\\/]*)
13176  ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
13177  ;;
13178  *)
13179  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13180for as_dir in $PATH
13181do
13182  IFS=$as_save_IFS
13183  case $as_dir in #(((
13184    '') as_dir=./ ;;
13185    */) ;;
13186    *) as_dir=$as_dir/ ;;
13187  esac
13188    for ac_exec_ext in '' $ac_executable_extensions; do
13189  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13190    ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext"
13191    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13192    break 2
13193  fi
13194done
13195  done
13196IFS=$as_save_IFS
13197
13198  ;;
13199esac
13200fi
13201FOP=$ac_cv_path_FOP
13202if test -n "$FOP"; then
13203  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
13204printf "%s\n" "$FOP" >&6; }
13205else
13206  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13207printf "%s\n" "no" >&6; }
13208fi
13209
13210
13211   if test "x$FOP" = "x"; then
13212        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5
13213printf "%s\n" "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;}
13214	have_fop=no
13215   else
13216        have_fop=yes
13217   fi
13218elif test "x$use_fop" = x"yes" ; then
13219   # Extract the first word of "fop", so it can be a program name with args.
13220set dummy fop; ac_word=$2
13221{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13222printf %s "checking for $ac_word... " >&6; }
13223if test ${ac_cv_path_FOP+y}
13224then :
13225  printf %s "(cached) " >&6
13226else $as_nop
13227  case $FOP in
13228  [\\/]* | ?:[\\/]*)
13229  ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
13230  ;;
13231  *)
13232  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13233for as_dir in $PATH
13234do
13235  IFS=$as_save_IFS
13236  case $as_dir in #(((
13237    '') as_dir=./ ;;
13238    */) ;;
13239    *) as_dir=$as_dir/ ;;
13240  esac
13241    for ac_exec_ext in '' $ac_executable_extensions; do
13242  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13243    ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext"
13244    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13245    break 2
13246  fi
13247done
13248  done
13249IFS=$as_save_IFS
13250
13251  ;;
13252esac
13253fi
13254FOP=$ac_cv_path_FOP
13255if test -n "$FOP"; then
13256  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
13257printf "%s\n" "$FOP" >&6; }
13258else
13259  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13260printf "%s\n" "no" >&6; }
13261fi
13262
13263
13264   if test "x$FOP" = "x"; then
13265        as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5
13266   fi
13267   have_fop=yes
13268elif test "x$use_fop" = x"no" ; then
13269   if test "x$FOP" != "x"; then
13270      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5
13271printf "%s\n" "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;}
13272   fi
13273   have_fop=no
13274else
13275   as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5
13276fi
13277
13278# Test for a minimum version of fop, if provided.
13279
13280 if test "$have_fop" = yes; then
13281  HAVE_FOP_TRUE=
13282  HAVE_FOP_FALSE='#'
13283else
13284  HAVE_FOP_TRUE='#'
13285  HAVE_FOP_FALSE=
13286fi
13287
13288
13289
13290
13291# Preserves the interface, should it be implemented later
13292
13293
13294
13295# Check whether --with-xsltproc was given.
13296if test ${with_xsltproc+y}
13297then :
13298  withval=$with_xsltproc; use_xsltproc=$withval
13299else $as_nop
13300  use_xsltproc=auto
13301fi
13302
13303
13304
13305if test "x$use_xsltproc" = x"auto"; then
13306   # Extract the first word of "xsltproc", so it can be a program name with args.
13307set dummy xsltproc; ac_word=$2
13308{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13309printf %s "checking for $ac_word... " >&6; }
13310if test ${ac_cv_path_XSLTPROC+y}
13311then :
13312  printf %s "(cached) " >&6
13313else $as_nop
13314  case $XSLTPROC in
13315  [\\/]* | ?:[\\/]*)
13316  ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
13317  ;;
13318  *)
13319  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13320for as_dir in $PATH
13321do
13322  IFS=$as_save_IFS
13323  case $as_dir in #(((
13324    '') as_dir=./ ;;
13325    */) ;;
13326    *) as_dir=$as_dir/ ;;
13327  esac
13328    for ac_exec_ext in '' $ac_executable_extensions; do
13329  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13330    ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext"
13331    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13332    break 2
13333  fi
13334done
13335  done
13336IFS=$as_save_IFS
13337
13338  ;;
13339esac
13340fi
13341XSLTPROC=$ac_cv_path_XSLTPROC
13342if test -n "$XSLTPROC"; then
13343  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
13344printf "%s\n" "$XSLTPROC" >&6; }
13345else
13346  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13347printf "%s\n" "no" >&6; }
13348fi
13349
13350
13351   if test "x$XSLTPROC" = "x"; then
13352        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5
13353printf "%s\n" "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;}
13354	have_xsltproc=no
13355   else
13356        have_xsltproc=yes
13357   fi
13358elif test "x$use_xsltproc" = x"yes" ; then
13359   # Extract the first word of "xsltproc", so it can be a program name with args.
13360set dummy xsltproc; ac_word=$2
13361{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13362printf %s "checking for $ac_word... " >&6; }
13363if test ${ac_cv_path_XSLTPROC+y}
13364then :
13365  printf %s "(cached) " >&6
13366else $as_nop
13367  case $XSLTPROC in
13368  [\\/]* | ?:[\\/]*)
13369  ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
13370  ;;
13371  *)
13372  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13373for as_dir in $PATH
13374do
13375  IFS=$as_save_IFS
13376  case $as_dir in #(((
13377    '') as_dir=./ ;;
13378    */) ;;
13379    *) as_dir=$as_dir/ ;;
13380  esac
13381    for ac_exec_ext in '' $ac_executable_extensions; do
13382  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13383    ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext"
13384    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13385    break 2
13386  fi
13387done
13388  done
13389IFS=$as_save_IFS
13390
13391  ;;
13392esac
13393fi
13394XSLTPROC=$ac_cv_path_XSLTPROC
13395if test -n "$XSLTPROC"; then
13396  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
13397printf "%s\n" "$XSLTPROC" >&6; }
13398else
13399  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13400printf "%s\n" "no" >&6; }
13401fi
13402
13403
13404   if test "x$XSLTPROC" = "x"; then
13405        as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5
13406   fi
13407   have_xsltproc=yes
13408elif test "x$use_xsltproc" = x"no" ; then
13409   if test "x$XSLTPROC" != "x"; then
13410      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5
13411printf "%s\n" "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;}
13412   fi
13413   have_xsltproc=no
13414else
13415   as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5
13416fi
13417
13418 if test "$have_xsltproc" = yes; then
13419  HAVE_XSLTPROC_TRUE=
13420  HAVE_XSLTPROC_FALSE='#'
13421else
13422  HAVE_XSLTPROC_TRUE='#'
13423  HAVE_XSLTPROC_FALSE=
13424fi
13425
13426
13427
13428
13429
13430
13431
13432# Check for different types of support on different platforms
13433case $host_os in
13434    solaris*)
13435        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
13436printf %s "checking for umem_alloc in -lumem... " >&6; }
13437if test ${ac_cv_lib_umem_umem_alloc+y}
13438then :
13439  printf %s "(cached) " >&6
13440else $as_nop
13441  ac_check_lib_save_LIBS=$LIBS
13442LIBS="-lumem  $LIBS"
13443cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13444/* end confdefs.h.  */
13445
13446/* Override any GCC internal prototype to avoid an error.
13447   Use char because int might match the return type of a GCC
13448   builtin and then its argument prototype would still apply.  */
13449char umem_alloc ();
13450int
13451main (void)
13452{
13453return umem_alloc ();
13454  ;
13455  return 0;
13456}
13457_ACEOF
13458if ac_fn_c_try_link "$LINENO"
13459then :
13460  ac_cv_lib_umem_umem_alloc=yes
13461else $as_nop
13462  ac_cv_lib_umem_umem_alloc=no
13463fi
13464rm -f core conftest.err conftest.$ac_objext conftest.beam \
13465    conftest$ac_exeext conftest.$ac_ext
13466LIBS=$ac_check_lib_save_LIBS
13467fi
13468{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
13469printf "%s\n" "$ac_cv_lib_umem_umem_alloc" >&6; }
13470if test "x$ac_cv_lib_umem_umem_alloc" = xyes
13471then :
13472  malloc_debug_env='LD_PRELOAD=libumem.so UMEM_DEBUG=default'
13473fi
13474
13475        ;;
13476    *-gnu*) # GNU libc - Value is used as a single byte bit pattern,
13477        # both directly and inverted, so should not be 0 or 255.
13478        malloc_debug_env='MALLOC_PERTURB_=15'
13479        ;;
13480    darwin*)
13481        malloc_debug_env='MallocPreScribble=1 MallocScribble=1 DYLD_INSERT_LIBRARIES=/usr/lib/libgmalloc.dylib'
13482        ;;
13483    *bsd*)
13484        malloc_debug_env='MallocPreScribble=1 MallocScribble=1'
13485        ;;
13486esac
13487
13488# User supplied flags override default flags
13489if test "x$XORG_MALLOC_DEBUG_ENV" != "x"; then
13490    malloc_debug_env="$XORG_MALLOC_DEBUG_ENV"
13491fi
13492
13493XORG_MALLOC_DEBUG_ENV=$malloc_debug_env
13494
13495
13496
13497
13498
13499
13500
13501# Check whether --enable-unit-tests was given.
13502if test ${enable_unit_tests+y}
13503then :
13504  enableval=$enable_unit_tests; enable_unit_tests=$enableval
13505else $as_nop
13506  enable_unit_tests=auto
13507fi
13508
13509
13510 if test "x$enable_unit_tests" != xno; then
13511  ENABLE_UNIT_TESTS_TRUE=
13512  ENABLE_UNIT_TESTS_FALSE='#'
13513else
13514  ENABLE_UNIT_TESTS_TRUE='#'
13515  ENABLE_UNIT_TESTS_FALSE=
13516fi
13517
13518{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build unit test cases" >&5
13519printf %s "checking whether to build unit test cases... " >&6; }
13520{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_unit_tests" >&5
13521printf "%s\n" "$enable_unit_tests" >&6; }
13522
13523
13524{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-wrap,exit" >&5
13525printf %s "checking whether the linker accepts -Wl,-wrap,exit... " >&6; }
13526if test ${xorg_cv_linker_flags__Wl__wrap_exit+y}
13527then :
13528  printf %s "(cached) " >&6
13529else $as_nop
13530
13531      ax_save_FLAGS=$LDFLAGS
13532      LDFLAGS="-Wl,-wrap,exit"
13533      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13534/* end confdefs.h.  */
13535#include <stdlib.h>
13536                      void __wrap_exit(int status) { return; }
13537int
13538main (void)
13539{
13540exit(0);
13541  ;
13542  return 0;
13543}
13544_ACEOF
13545if ac_fn_c_try_link "$LINENO"
13546then :
13547  xorg_cv_linker_flags__Wl__wrap_exit=yes
13548else $as_nop
13549  xorg_cv_linker_flags__Wl__wrap_exit=no
13550fi
13551rm -f core conftest.err conftest.$ac_objext conftest.beam \
13552    conftest$ac_exeext conftest.$ac_ext
13553      LDFLAGS=$ax_save_FLAGS
13554fi
13555
13556eval xorg_check_linker_flags=$xorg_cv_linker_flags__Wl__wrap_exit
13557{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_check_linker_flags" >&5
13558printf "%s\n" "$xorg_check_linker_flags" >&6; }
13559if test "x$xorg_check_linker_flags" = xyes; then
13560	have_ld_wrap=yes
13561else
13562	have_ld_wrap=no
13563fi
13564
13565# Not having ld wrap when unit testing has been explicitly requested is an error
13566if test "x$enable_unit_tests" = x"yes" -a "xoptional" != "xoptional"; then
13567  if test "x$have_ld_wrap" = x"no"; then
13568    as_fn_error $? "--enable-unit-tests=yes specified but ld -wrap support is not available" "$LINENO" 5
13569  fi
13570fi
13571 if test "$have_ld_wrap" = yes; then
13572  HAVE_LD_WRAP_TRUE=
13573  HAVE_LD_WRAP_FALSE='#'
13574else
13575  HAVE_LD_WRAP_TRUE='#'
13576  HAVE_LD_WRAP_FALSE=
13577fi
13578
13579#
13580
13581
13582
13583
13584
13585
13586
13587
13588
13589
13590
13591
13592
13593
13594ac_config_headers="$ac_config_headers include/do-not-use-config.h"
13595
13596ac_config_headers="$ac_config_headers include/xorg-server.h"
13597
13598ac_config_headers="$ac_config_headers include/dix-config.h"
13599
13600ac_config_headers="$ac_config_headers include/xorg-config.h"
13601
13602ac_config_headers="$ac_config_headers include/xkb-config.h"
13603
13604ac_config_headers="$ac_config_headers include/xwin-config.h"
13605
13606ac_config_headers="$ac_config_headers include/version-config.h"
13607
13608
13609# By default we simply use the C compiler to build assembly code.
13610
13611test "${CCAS+set}" = set || CCAS=$CC
13612test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
13613
13614
13615
13616depcc="$CCAS"   am_compiler_list=
13617
13618{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13619printf %s "checking dependency style of $depcc... " >&6; }
13620if test ${am_cv_CCAS_dependencies_compiler_type+y}
13621then :
13622  printf %s "(cached) " >&6
13623else $as_nop
13624  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13625  # We make a subdir and do the tests there.  Otherwise we can end up
13626  # making bogus files that we don't know about and never remove.  For
13627  # instance it was reported that on HP-UX the gcc test will end up
13628  # making a dummy file named 'D' -- because '-MD' means "put the output
13629  # in D".
13630  rm -rf conftest.dir
13631  mkdir conftest.dir
13632  # Copy depcomp to subdir because otherwise we won't find it if we're
13633  # using a relative directory.
13634  cp "$am_depcomp" conftest.dir
13635  cd conftest.dir
13636  # We will build objects and dependencies in a subdirectory because
13637  # it helps to detect inapplicable dependency modes.  For instance
13638  # both Tru64's cc and ICC support -MD to output dependencies as a
13639  # side effect of compilation, but ICC will put the dependencies in
13640  # the current directory while Tru64 will put them in the object
13641  # directory.
13642  mkdir sub
13643
13644  am_cv_CCAS_dependencies_compiler_type=none
13645  if test "$am_compiler_list" = ""; then
13646     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13647  fi
13648  am__universal=false
13649
13650
13651  for depmode in $am_compiler_list; do
13652    # Setup a source with many dependencies, because some compilers
13653    # like to wrap large dependency lists on column 80 (with \), and
13654    # we should not choose a depcomp mode which is confused by this.
13655    #
13656    # We need to recreate these files for each test, as the compiler may
13657    # overwrite some of them when testing with obscure command lines.
13658    # This happens at least with the AIX C compiler.
13659    : > sub/conftest.c
13660    for i in 1 2 3 4 5 6; do
13661      echo '#include "conftst'$i'.h"' >> sub/conftest.c
13662      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
13663      # Solaris 10 /bin/sh.
13664      echo '/* dummy */' > sub/conftst$i.h
13665    done
13666    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13667
13668    # We check with '-c' and '-o' for the sake of the "dashmstdout"
13669    # mode.  It turns out that the SunPro C++ compiler does not properly
13670    # handle '-M -o', and we need to detect this.  Also, some Intel
13671    # versions had trouble with output in subdirs.
13672    am__obj=sub/conftest.${OBJEXT-o}
13673    am__minus_obj="-o $am__obj"
13674    case $depmode in
13675    gcc)
13676      # This depmode causes a compiler race in universal mode.
13677      test "$am__universal" = false || continue
13678      ;;
13679    nosideeffect)
13680      # After this tag, mechanisms are not by side-effect, so they'll
13681      # only be used when explicitly requested.
13682      if test "x$enable_dependency_tracking" = xyes; then
13683	continue
13684      else
13685	break
13686      fi
13687      ;;
13688    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
13689      # This compiler won't grok '-c -o', but also, the minuso test has
13690      # not run yet.  These depmodes are late enough in the game, and
13691      # so weak that their functioning should not be impacted.
13692      am__obj=conftest.${OBJEXT-o}
13693      am__minus_obj=
13694      ;;
13695    none) break ;;
13696    esac
13697    if depmode=$depmode \
13698       source=sub/conftest.c object=$am__obj \
13699       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13700       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13701         >/dev/null 2>conftest.err &&
13702       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13703       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13704       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13705       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13706      # icc doesn't choke on unknown options, it will just issue warnings
13707      # or remarks (even with -Werror).  So we grep stderr for any message
13708      # that says an option was ignored or not supported.
13709      # When given -MP, icc 7.0 and 7.1 complain thusly:
13710      #   icc: Command line warning: ignoring option '-M'; no argument required
13711      # The diagnosis changed in icc 8.0:
13712      #   icc: Command line remark: option '-MP' not supported
13713      if (grep 'ignoring option' conftest.err ||
13714          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13715        am_cv_CCAS_dependencies_compiler_type=$depmode
13716        break
13717      fi
13718    fi
13719  done
13720
13721  cd ..
13722  rm -rf conftest.dir
13723else
13724  am_cv_CCAS_dependencies_compiler_type=none
13725fi
13726
13727fi
13728{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
13729printf "%s\n" "$am_cv_CCAS_dependencies_compiler_type" >&6; }
13730CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
13731
13732 if
13733  test "x$enable_dependency_tracking" != xno \
13734  && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
13735  am__fastdepCCAS_TRUE=
13736  am__fastdepCCAS_FALSE='#'
13737else
13738  am__fastdepCCAS_TRUE='#'
13739  am__fastdepCCAS_FALSE=
13740fi
13741
13742
13743{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
13744printf %s "checking whether ln -s works... " >&6; }
13745LN_S=$as_ln_s
13746if test "$LN_S" = "ln -s"; then
13747  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13748printf "%s\n" "yes" >&6; }
13749else
13750  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
13751printf "%s\n" "no, using $LN_S" >&6; }
13752fi
13753
13754
13755case `pwd` in
13756  *\ * | *\	*)
13757    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
13758printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
13759esac
13760
13761
13762
13763macro_version='2.4.7'
13764macro_revision='2.4.7'
13765
13766
13767
13768
13769
13770
13771
13772
13773
13774
13775
13776
13777
13778
13779ltmain=$ac_aux_dir/ltmain.sh
13780
13781# Backslashify metacharacters that are still active within
13782# double-quoted strings.
13783sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
13784
13785# Same as above, but do not quote variable references.
13786double_quote_subst='s/\(["`\\]\)/\\\1/g'
13787
13788# Sed substitution to delay expansion of an escaped shell variable in a
13789# double_quote_subst'ed string.
13790delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13791
13792# Sed substitution to delay expansion of an escaped single quote.
13793delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
13794
13795# Sed substitution to avoid accidental globbing in evaled expressions
13796no_glob_subst='s/\*/\\\*/g'
13797
13798ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13799ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
13800ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
13801
13802{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
13803printf %s "checking how to print strings... " >&6; }
13804# Test print first, because it will be a builtin if present.
13805if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
13806   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
13807  ECHO='print -r --'
13808elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
13809  ECHO='printf %s\n'
13810else
13811  # Use this function as a fallback that always works.
13812  func_fallback_echo ()
13813  {
13814    eval 'cat <<_LTECHO_EOF
13815$1
13816_LTECHO_EOF'
13817  }
13818  ECHO='func_fallback_echo'
13819fi
13820
13821# func_echo_all arg...
13822# Invoke $ECHO with all args, space-separated.
13823func_echo_all ()
13824{
13825    $ECHO ""
13826}
13827
13828case $ECHO in
13829  printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
13830printf "%s\n" "printf" >&6; } ;;
13831  print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
13832printf "%s\n" "print -r" >&6; } ;;
13833  *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
13834printf "%s\n" "cat" >&6; } ;;
13835esac
13836
13837
13838
13839
13840
13841
13842
13843
13844
13845
13846
13847
13848
13849
13850{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
13851printf %s "checking for a sed that does not truncate output... " >&6; }
13852if test ${ac_cv_path_SED+y}
13853then :
13854  printf %s "(cached) " >&6
13855else $as_nop
13856            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
13857     for ac_i in 1 2 3 4 5 6 7; do
13858       ac_script="$ac_script$as_nl$ac_script"
13859     done
13860     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
13861     { ac_script=; unset ac_script;}
13862     if test -z "$SED"; then
13863  ac_path_SED_found=false
13864  # Loop through the user's path and test for each of PROGNAME-LIST
13865  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13866for as_dir in $PATH
13867do
13868  IFS=$as_save_IFS
13869  case $as_dir in #(((
13870    '') as_dir=./ ;;
13871    */) ;;
13872    *) as_dir=$as_dir/ ;;
13873  esac
13874    for ac_prog in sed gsed
13875   do
13876    for ac_exec_ext in '' $ac_executable_extensions; do
13877      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
13878      as_fn_executable_p "$ac_path_SED" || continue
13879# Check for GNU ac_path_SED and select it if it is found.
13880  # Check for GNU $ac_path_SED
13881case `"$ac_path_SED" --version 2>&1` in
13882*GNU*)
13883  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
13884*)
13885  ac_count=0
13886  printf %s 0123456789 >"conftest.in"
13887  while :
13888  do
13889    cat "conftest.in" "conftest.in" >"conftest.tmp"
13890    mv "conftest.tmp" "conftest.in"
13891    cp "conftest.in" "conftest.nl"
13892    printf "%s\n" '' >> "conftest.nl"
13893    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
13894    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13895    as_fn_arith $ac_count + 1 && ac_count=$as_val
13896    if test $ac_count -gt ${ac_path_SED_max-0}; then
13897      # Best one so far, save it but keep looking for a better one
13898      ac_cv_path_SED="$ac_path_SED"
13899      ac_path_SED_max=$ac_count
13900    fi
13901    # 10*(2^10) chars as input seems more than enough
13902    test $ac_count -gt 10 && break
13903  done
13904  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13905esac
13906
13907      $ac_path_SED_found && break 3
13908    done
13909  done
13910  done
13911IFS=$as_save_IFS
13912  if test -z "$ac_cv_path_SED"; then
13913    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
13914  fi
13915else
13916  ac_cv_path_SED=$SED
13917fi
13918
13919fi
13920{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
13921printf "%s\n" "$ac_cv_path_SED" >&6; }
13922 SED="$ac_cv_path_SED"
13923  rm -f conftest.sed
13924
13925test -z "$SED" && SED=sed
13926Xsed="$SED -e 1s/^X//"
13927
13928
13929
13930
13931
13932
13933
13934
13935
13936
13937
13938{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
13939printf %s "checking for grep that handles long lines and -e... " >&6; }
13940if test ${ac_cv_path_GREP+y}
13941then :
13942  printf %s "(cached) " >&6
13943else $as_nop
13944  if test -z "$GREP"; then
13945  ac_path_GREP_found=false
13946  # Loop through the user's path and test for each of PROGNAME-LIST
13947  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13948for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13949do
13950  IFS=$as_save_IFS
13951  case $as_dir in #(((
13952    '') as_dir=./ ;;
13953    */) ;;
13954    *) as_dir=$as_dir/ ;;
13955  esac
13956    for ac_prog in grep ggrep
13957   do
13958    for ac_exec_ext in '' $ac_executable_extensions; do
13959      ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
13960      as_fn_executable_p "$ac_path_GREP" || continue
13961# Check for GNU ac_path_GREP and select it if it is found.
13962  # Check for GNU $ac_path_GREP
13963case `"$ac_path_GREP" --version 2>&1` in
13964*GNU*)
13965  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
13966*)
13967  ac_count=0
13968  printf %s 0123456789 >"conftest.in"
13969  while :
13970  do
13971    cat "conftest.in" "conftest.in" >"conftest.tmp"
13972    mv "conftest.tmp" "conftest.in"
13973    cp "conftest.in" "conftest.nl"
13974    printf "%s\n" 'GREP' >> "conftest.nl"
13975    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
13976    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13977    as_fn_arith $ac_count + 1 && ac_count=$as_val
13978    if test $ac_count -gt ${ac_path_GREP_max-0}; then
13979      # Best one so far, save it but keep looking for a better one
13980      ac_cv_path_GREP="$ac_path_GREP"
13981      ac_path_GREP_max=$ac_count
13982    fi
13983    # 10*(2^10) chars as input seems more than enough
13984    test $ac_count -gt 10 && break
13985  done
13986  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13987esac
13988
13989      $ac_path_GREP_found && break 3
13990    done
13991  done
13992  done
13993IFS=$as_save_IFS
13994  if test -z "$ac_cv_path_GREP"; then
13995    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13996  fi
13997else
13998  ac_cv_path_GREP=$GREP
13999fi
14000
14001fi
14002{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
14003printf "%s\n" "$ac_cv_path_GREP" >&6; }
14004 GREP="$ac_cv_path_GREP"
14005
14006
14007{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
14008printf %s "checking for egrep... " >&6; }
14009if test ${ac_cv_path_EGREP+y}
14010then :
14011  printf %s "(cached) " >&6
14012else $as_nop
14013  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
14014   then ac_cv_path_EGREP="$GREP -E"
14015   else
14016     if test -z "$EGREP"; then
14017  ac_path_EGREP_found=false
14018  # Loop through the user's path and test for each of PROGNAME-LIST
14019  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14020for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
14021do
14022  IFS=$as_save_IFS
14023  case $as_dir in #(((
14024    '') as_dir=./ ;;
14025    */) ;;
14026    *) as_dir=$as_dir/ ;;
14027  esac
14028    for ac_prog in egrep
14029   do
14030    for ac_exec_ext in '' $ac_executable_extensions; do
14031      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
14032      as_fn_executable_p "$ac_path_EGREP" || continue
14033# Check for GNU ac_path_EGREP and select it if it is found.
14034  # Check for GNU $ac_path_EGREP
14035case `"$ac_path_EGREP" --version 2>&1` in
14036*GNU*)
14037  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
14038*)
14039  ac_count=0
14040  printf %s 0123456789 >"conftest.in"
14041  while :
14042  do
14043    cat "conftest.in" "conftest.in" >"conftest.tmp"
14044    mv "conftest.tmp" "conftest.in"
14045    cp "conftest.in" "conftest.nl"
14046    printf "%s\n" 'EGREP' >> "conftest.nl"
14047    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
14048    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
14049    as_fn_arith $ac_count + 1 && ac_count=$as_val
14050    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
14051      # Best one so far, save it but keep looking for a better one
14052      ac_cv_path_EGREP="$ac_path_EGREP"
14053      ac_path_EGREP_max=$ac_count
14054    fi
14055    # 10*(2^10) chars as input seems more than enough
14056    test $ac_count -gt 10 && break
14057  done
14058  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
14059esac
14060
14061      $ac_path_EGREP_found && break 3
14062    done
14063  done
14064  done
14065IFS=$as_save_IFS
14066  if test -z "$ac_cv_path_EGREP"; then
14067    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
14068  fi
14069else
14070  ac_cv_path_EGREP=$EGREP
14071fi
14072
14073   fi
14074fi
14075{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
14076printf "%s\n" "$ac_cv_path_EGREP" >&6; }
14077 EGREP="$ac_cv_path_EGREP"
14078
14079
14080{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
14081printf %s "checking for fgrep... " >&6; }
14082if test ${ac_cv_path_FGREP+y}
14083then :
14084  printf %s "(cached) " >&6
14085else $as_nop
14086  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
14087   then ac_cv_path_FGREP="$GREP -F"
14088   else
14089     if test -z "$FGREP"; then
14090  ac_path_FGREP_found=false
14091  # Loop through the user's path and test for each of PROGNAME-LIST
14092  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14093for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
14094do
14095  IFS=$as_save_IFS
14096  case $as_dir in #(((
14097    '') as_dir=./ ;;
14098    */) ;;
14099    *) as_dir=$as_dir/ ;;
14100  esac
14101    for ac_prog in fgrep
14102   do
14103    for ac_exec_ext in '' $ac_executable_extensions; do
14104      ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
14105      as_fn_executable_p "$ac_path_FGREP" || continue
14106# Check for GNU ac_path_FGREP and select it if it is found.
14107  # Check for GNU $ac_path_FGREP
14108case `"$ac_path_FGREP" --version 2>&1` in
14109*GNU*)
14110  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
14111*)
14112  ac_count=0
14113  printf %s 0123456789 >"conftest.in"
14114  while :
14115  do
14116    cat "conftest.in" "conftest.in" >"conftest.tmp"
14117    mv "conftest.tmp" "conftest.in"
14118    cp "conftest.in" "conftest.nl"
14119    printf "%s\n" 'FGREP' >> "conftest.nl"
14120    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
14121    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
14122    as_fn_arith $ac_count + 1 && ac_count=$as_val
14123    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
14124      # Best one so far, save it but keep looking for a better one
14125      ac_cv_path_FGREP="$ac_path_FGREP"
14126      ac_path_FGREP_max=$ac_count
14127    fi
14128    # 10*(2^10) chars as input seems more than enough
14129    test $ac_count -gt 10 && break
14130  done
14131  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
14132esac
14133
14134      $ac_path_FGREP_found && break 3
14135    done
14136  done
14137  done
14138IFS=$as_save_IFS
14139  if test -z "$ac_cv_path_FGREP"; then
14140    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
14141  fi
14142else
14143  ac_cv_path_FGREP=$FGREP
14144fi
14145
14146   fi
14147fi
14148{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
14149printf "%s\n" "$ac_cv_path_FGREP" >&6; }
14150 FGREP="$ac_cv_path_FGREP"
14151
14152
14153test -z "$GREP" && GREP=grep
14154
14155
14156
14157
14158
14159
14160
14161
14162
14163
14164
14165
14166
14167
14168
14169
14170
14171
14172
14173# Check whether --with-gnu-ld was given.
14174if test ${with_gnu_ld+y}
14175then :
14176  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
14177else $as_nop
14178  with_gnu_ld=no
14179fi
14180
14181ac_prog=ld
14182if test yes = "$GCC"; then
14183  # Check if gcc -print-prog-name=ld gives a path.
14184  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14185printf %s "checking for ld used by $CC... " >&6; }
14186  case $host in
14187  *-*-mingw*)
14188    # gcc leaves a trailing carriage return, which upsets mingw
14189    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14190  *)
14191    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14192  esac
14193  case $ac_prog in
14194    # Accept absolute paths.
14195    [\\/]* | ?:[\\/]*)
14196      re_direlt='/[^/][^/]*/\.\./'
14197      # Canonicalize the pathname of ld
14198      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14199      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14200	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14201      done
14202      test -z "$LD" && LD=$ac_prog
14203      ;;
14204  "")
14205    # If it fails, then pretend we aren't using GCC.
14206    ac_prog=ld
14207    ;;
14208  *)
14209    # If it is relative, then search for the first ld in PATH.
14210    with_gnu_ld=unknown
14211    ;;
14212  esac
14213elif test yes = "$with_gnu_ld"; then
14214  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14215printf %s "checking for GNU ld... " >&6; }
14216else
14217  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14218printf %s "checking for non-GNU ld... " >&6; }
14219fi
14220if test ${lt_cv_path_LD+y}
14221then :
14222  printf %s "(cached) " >&6
14223else $as_nop
14224  if test -z "$LD"; then
14225  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14226  for ac_dir in $PATH; do
14227    IFS=$lt_save_ifs
14228    test -z "$ac_dir" && ac_dir=.
14229    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14230      lt_cv_path_LD=$ac_dir/$ac_prog
14231      # Check to see if the program is GNU ld.  I'd rather use --version,
14232      # but apparently some variants of GNU ld only accept -v.
14233      # Break only if it was the GNU/non-GNU ld that we prefer.
14234      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14235      *GNU* | *'with BFD'*)
14236	test no != "$with_gnu_ld" && break
14237	;;
14238      *)
14239	test yes != "$with_gnu_ld" && break
14240	;;
14241      esac
14242    fi
14243  done
14244  IFS=$lt_save_ifs
14245else
14246  lt_cv_path_LD=$LD # Let the user override the test with a path.
14247fi
14248fi
14249
14250LD=$lt_cv_path_LD
14251if test -n "$LD"; then
14252  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14253printf "%s\n" "$LD" >&6; }
14254else
14255  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14256printf "%s\n" "no" >&6; }
14257fi
14258test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14259{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14260printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
14261if test ${lt_cv_prog_gnu_ld+y}
14262then :
14263  printf %s "(cached) " >&6
14264else $as_nop
14265  # I'd rather use --version here, but apparently some GNU lds only accept -v.
14266case `$LD -v 2>&1 </dev/null` in
14267*GNU* | *'with BFD'*)
14268  lt_cv_prog_gnu_ld=yes
14269  ;;
14270*)
14271  lt_cv_prog_gnu_ld=no
14272  ;;
14273esac
14274fi
14275{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14276printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
14277with_gnu_ld=$lt_cv_prog_gnu_ld
14278
14279
14280
14281
14282
14283
14284
14285
14286
14287{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
14288printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
14289if test ${lt_cv_path_NM+y}
14290then :
14291  printf %s "(cached) " >&6
14292else $as_nop
14293  if test -n "$NM"; then
14294  # Let the user override the test.
14295  lt_cv_path_NM=$NM
14296else
14297  lt_nm_to_check=${ac_tool_prefix}nm
14298  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
14299    lt_nm_to_check="$lt_nm_to_check nm"
14300  fi
14301  for lt_tmp_nm in $lt_nm_to_check; do
14302    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14303    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
14304      IFS=$lt_save_ifs
14305      test -z "$ac_dir" && ac_dir=.
14306      tmp_nm=$ac_dir/$lt_tmp_nm
14307      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
14308	# Check to see if the nm accepts a BSD-compat flag.
14309	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
14310	#   nm: unknown option "B" ignored
14311	# Tru64's nm complains that /dev/null is an invalid object file
14312	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
14313	case $build_os in
14314	mingw*) lt_bad_file=conftest.nm/nofile ;;
14315	*) lt_bad_file=/dev/null ;;
14316	esac
14317	case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
14318	*$lt_bad_file* | *'Invalid file or object type'*)
14319	  lt_cv_path_NM="$tmp_nm -B"
14320	  break 2
14321	  ;;
14322	*)
14323	  case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
14324	  */dev/null*)
14325	    lt_cv_path_NM="$tmp_nm -p"
14326	    break 2
14327	    ;;
14328	  *)
14329	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
14330	    continue # so that we can try to find one that supports BSD flags
14331	    ;;
14332	  esac
14333	  ;;
14334	esac
14335      fi
14336    done
14337    IFS=$lt_save_ifs
14338  done
14339  : ${lt_cv_path_NM=no}
14340fi
14341fi
14342{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
14343printf "%s\n" "$lt_cv_path_NM" >&6; }
14344if test no != "$lt_cv_path_NM"; then
14345  NM=$lt_cv_path_NM
14346else
14347  # Didn't find any BSD compatible name lister, look for dumpbin.
14348  if test -n "$DUMPBIN"; then :
14349    # Let the user override the test.
14350  else
14351    if test -n "$ac_tool_prefix"; then
14352  for ac_prog in dumpbin "link -dump"
14353  do
14354    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14355set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14356{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14357printf %s "checking for $ac_word... " >&6; }
14358if test ${ac_cv_prog_DUMPBIN+y}
14359then :
14360  printf %s "(cached) " >&6
14361else $as_nop
14362  if test -n "$DUMPBIN"; then
14363  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
14364else
14365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14366for as_dir in $PATH
14367do
14368  IFS=$as_save_IFS
14369  case $as_dir in #(((
14370    '') as_dir=./ ;;
14371    */) ;;
14372    *) as_dir=$as_dir/ ;;
14373  esac
14374    for ac_exec_ext in '' $ac_executable_extensions; do
14375  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14376    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
14377    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14378    break 2
14379  fi
14380done
14381  done
14382IFS=$as_save_IFS
14383
14384fi
14385fi
14386DUMPBIN=$ac_cv_prog_DUMPBIN
14387if test -n "$DUMPBIN"; then
14388  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
14389printf "%s\n" "$DUMPBIN" >&6; }
14390else
14391  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14392printf "%s\n" "no" >&6; }
14393fi
14394
14395
14396    test -n "$DUMPBIN" && break
14397  done
14398fi
14399if test -z "$DUMPBIN"; then
14400  ac_ct_DUMPBIN=$DUMPBIN
14401  for ac_prog in dumpbin "link -dump"
14402do
14403  # Extract the first word of "$ac_prog", so it can be a program name with args.
14404set dummy $ac_prog; ac_word=$2
14405{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14406printf %s "checking for $ac_word... " >&6; }
14407if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
14408then :
14409  printf %s "(cached) " >&6
14410else $as_nop
14411  if test -n "$ac_ct_DUMPBIN"; then
14412  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
14413else
14414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14415for as_dir in $PATH
14416do
14417  IFS=$as_save_IFS
14418  case $as_dir in #(((
14419    '') as_dir=./ ;;
14420    */) ;;
14421    *) as_dir=$as_dir/ ;;
14422  esac
14423    for ac_exec_ext in '' $ac_executable_extensions; do
14424  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14425    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
14426    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14427    break 2
14428  fi
14429done
14430  done
14431IFS=$as_save_IFS
14432
14433fi
14434fi
14435ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
14436if test -n "$ac_ct_DUMPBIN"; then
14437  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
14438printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
14439else
14440  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14441printf "%s\n" "no" >&6; }
14442fi
14443
14444
14445  test -n "$ac_ct_DUMPBIN" && break
14446done
14447
14448  if test "x$ac_ct_DUMPBIN" = x; then
14449    DUMPBIN=":"
14450  else
14451    case $cross_compiling:$ac_tool_warned in
14452yes:)
14453{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14454printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14455ac_tool_warned=yes ;;
14456esac
14457    DUMPBIN=$ac_ct_DUMPBIN
14458  fi
14459fi
14460
14461    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
14462    *COFF*)
14463      DUMPBIN="$DUMPBIN -symbols -headers"
14464      ;;
14465    *)
14466      DUMPBIN=:
14467      ;;
14468    esac
14469  fi
14470
14471  if test : != "$DUMPBIN"; then
14472    NM=$DUMPBIN
14473  fi
14474fi
14475test -z "$NM" && NM=nm
14476
14477
14478
14479
14480
14481
14482{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
14483printf %s "checking the name lister ($NM) interface... " >&6; }
14484if test ${lt_cv_nm_interface+y}
14485then :
14486  printf %s "(cached) " >&6
14487else $as_nop
14488  lt_cv_nm_interface="BSD nm"
14489  echo "int some_variable = 0;" > conftest.$ac_ext
14490  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
14491  (eval "$ac_compile" 2>conftest.err)
14492  cat conftest.err >&5
14493  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
14494  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
14495  cat conftest.err >&5
14496  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
14497  cat conftest.out >&5
14498  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
14499    lt_cv_nm_interface="MS dumpbin"
14500  fi
14501  rm -f conftest*
14502fi
14503{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
14504printf "%s\n" "$lt_cv_nm_interface" >&6; }
14505
14506# find the maximum length of command line arguments
14507{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
14508printf %s "checking the maximum length of command line arguments... " >&6; }
14509if test ${lt_cv_sys_max_cmd_len+y}
14510then :
14511  printf %s "(cached) " >&6
14512else $as_nop
14513    i=0
14514  teststring=ABCD
14515
14516  case $build_os in
14517  msdosdjgpp*)
14518    # On DJGPP, this test can blow up pretty badly due to problems in libc
14519    # (any single argument exceeding 2000 bytes causes a buffer overrun
14520    # during glob expansion).  Even if it were fixed, the result of this
14521    # check would be larger than it should be.
14522    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
14523    ;;
14524
14525  gnu*)
14526    # Under GNU Hurd, this test is not required because there is
14527    # no limit to the length of command line arguments.
14528    # Libtool will interpret -1 as no limit whatsoever
14529    lt_cv_sys_max_cmd_len=-1;
14530    ;;
14531
14532  cygwin* | mingw* | cegcc*)
14533    # On Win9x/ME, this test blows up -- it succeeds, but takes
14534    # about 5 minutes as the teststring grows exponentially.
14535    # Worse, since 9x/ME are not pre-emptively multitasking,
14536    # you end up with a "frozen" computer, even though with patience
14537    # the test eventually succeeds (with a max line length of 256k).
14538    # Instead, let's just punt: use the minimum linelength reported by
14539    # all of the supported platforms: 8192 (on NT/2K/XP).
14540    lt_cv_sys_max_cmd_len=8192;
14541    ;;
14542
14543  mint*)
14544    # On MiNT this can take a long time and run out of memory.
14545    lt_cv_sys_max_cmd_len=8192;
14546    ;;
14547
14548  amigaos*)
14549    # On AmigaOS with pdksh, this test takes hours, literally.
14550    # So we just punt and use a minimum line length of 8192.
14551    lt_cv_sys_max_cmd_len=8192;
14552    ;;
14553
14554  bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
14555    # This has been around since 386BSD, at least.  Likely further.
14556    if test -x /sbin/sysctl; then
14557      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
14558    elif test -x /usr/sbin/sysctl; then
14559      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
14560    else
14561      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
14562    fi
14563    # And add a safety zone
14564    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
14565    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
14566    ;;
14567
14568  interix*)
14569    # We know the value 262144 and hardcode it with a safety zone (like BSD)
14570    lt_cv_sys_max_cmd_len=196608
14571    ;;
14572
14573  os2*)
14574    # The test takes a long time on OS/2.
14575    lt_cv_sys_max_cmd_len=8192
14576    ;;
14577
14578  osf*)
14579    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
14580    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
14581    # nice to cause kernel panics so lets avoid the loop below.
14582    # First set a reasonable default.
14583    lt_cv_sys_max_cmd_len=16384
14584    #
14585    if test -x /sbin/sysconfig; then
14586      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
14587        *1*) lt_cv_sys_max_cmd_len=-1 ;;
14588      esac
14589    fi
14590    ;;
14591  sco3.2v5*)
14592    lt_cv_sys_max_cmd_len=102400
14593    ;;
14594  sysv5* | sco5v6* | sysv4.2uw2*)
14595    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
14596    if test -n "$kargmax"; then
14597      lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[	 ]//'`
14598    else
14599      lt_cv_sys_max_cmd_len=32768
14600    fi
14601    ;;
14602  *)
14603    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
14604    if test -n "$lt_cv_sys_max_cmd_len" && \
14605       test undefined != "$lt_cv_sys_max_cmd_len"; then
14606      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
14607      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
14608    else
14609      # Make teststring a little bigger before we do anything with it.
14610      # a 1K string should be a reasonable start.
14611      for i in 1 2 3 4 5 6 7 8; do
14612        teststring=$teststring$teststring
14613      done
14614      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
14615      # If test is not a shell built-in, we'll probably end up computing a
14616      # maximum length that is only half of the actual maximum length, but
14617      # we can't tell.
14618      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
14619	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
14620	      test 17 != "$i" # 1/2 MB should be enough
14621      do
14622        i=`expr $i + 1`
14623        teststring=$teststring$teststring
14624      done
14625      # Only check the string length outside the loop.
14626      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
14627      teststring=
14628      # Add a significant safety factor because C++ compilers can tack on
14629      # massive amounts of additional arguments before passing them to the
14630      # linker.  It appears as though 1/2 is a usable value.
14631      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
14632    fi
14633    ;;
14634  esac
14635
14636fi
14637
14638if test -n "$lt_cv_sys_max_cmd_len"; then
14639  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
14640printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
14641else
14642  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
14643printf "%s\n" "none" >&6; }
14644fi
14645max_cmd_len=$lt_cv_sys_max_cmd_len
14646
14647
14648
14649
14650
14651
14652: ${CP="cp -f"}
14653: ${MV="mv -f"}
14654: ${RM="rm -f"}
14655
14656if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14657  lt_unset=unset
14658else
14659  lt_unset=false
14660fi
14661
14662
14663
14664
14665
14666# test EBCDIC or ASCII
14667case `echo X|tr X '\101'` in
14668 A) # ASCII based system
14669    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
14670  lt_SP2NL='tr \040 \012'
14671  lt_NL2SP='tr \015\012 \040\040'
14672  ;;
14673 *) # EBCDIC based system
14674  lt_SP2NL='tr \100 \n'
14675  lt_NL2SP='tr \r\n \100\100'
14676  ;;
14677esac
14678
14679
14680
14681
14682
14683
14684
14685
14686
14687{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
14688printf %s "checking how to convert $build file names to $host format... " >&6; }
14689if test ${lt_cv_to_host_file_cmd+y}
14690then :
14691  printf %s "(cached) " >&6
14692else $as_nop
14693  case $host in
14694  *-*-mingw* )
14695    case $build in
14696      *-*-mingw* ) # actually msys
14697        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
14698        ;;
14699      *-*-cygwin* )
14700        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
14701        ;;
14702      * ) # otherwise, assume *nix
14703        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
14704        ;;
14705    esac
14706    ;;
14707  *-*-cygwin* )
14708    case $build in
14709      *-*-mingw* ) # actually msys
14710        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
14711        ;;
14712      *-*-cygwin* )
14713        lt_cv_to_host_file_cmd=func_convert_file_noop
14714        ;;
14715      * ) # otherwise, assume *nix
14716        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
14717        ;;
14718    esac
14719    ;;
14720  * ) # unhandled hosts (and "normal" native builds)
14721    lt_cv_to_host_file_cmd=func_convert_file_noop
14722    ;;
14723esac
14724
14725fi
14726
14727to_host_file_cmd=$lt_cv_to_host_file_cmd
14728{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
14729printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
14730
14731
14732
14733
14734
14735{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
14736printf %s "checking how to convert $build file names to toolchain format... " >&6; }
14737if test ${lt_cv_to_tool_file_cmd+y}
14738then :
14739  printf %s "(cached) " >&6
14740else $as_nop
14741  #assume ordinary cross tools, or native build.
14742lt_cv_to_tool_file_cmd=func_convert_file_noop
14743case $host in
14744  *-*-mingw* )
14745    case $build in
14746      *-*-mingw* ) # actually msys
14747        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
14748        ;;
14749    esac
14750    ;;
14751esac
14752
14753fi
14754
14755to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14756{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
14757printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
14758
14759
14760
14761
14762
14763{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
14764printf %s "checking for $LD option to reload object files... " >&6; }
14765if test ${lt_cv_ld_reload_flag+y}
14766then :
14767  printf %s "(cached) " >&6
14768else $as_nop
14769  lt_cv_ld_reload_flag='-r'
14770fi
14771{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
14772printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
14773reload_flag=$lt_cv_ld_reload_flag
14774case $reload_flag in
14775"" | " "*) ;;
14776*) reload_flag=" $reload_flag" ;;
14777esac
14778reload_cmds='$LD$reload_flag -o $output$reload_objs'
14779case $host_os in
14780  cygwin* | mingw* | pw32* | cegcc*)
14781    if test yes != "$GCC"; then
14782      reload_cmds=false
14783    fi
14784    ;;
14785  darwin*)
14786    if test yes = "$GCC"; then
14787      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
14788    else
14789      reload_cmds='$LD$reload_flag -o $output$reload_objs'
14790    fi
14791    ;;
14792esac
14793
14794
14795
14796
14797
14798
14799
14800
14801
14802if test -n "$ac_tool_prefix"; then
14803  # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
14804set dummy ${ac_tool_prefix}file; ac_word=$2
14805{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14806printf %s "checking for $ac_word... " >&6; }
14807if test ${ac_cv_prog_FILECMD+y}
14808then :
14809  printf %s "(cached) " >&6
14810else $as_nop
14811  if test -n "$FILECMD"; then
14812  ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
14813else
14814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14815for as_dir in $PATH
14816do
14817  IFS=$as_save_IFS
14818  case $as_dir in #(((
14819    '') as_dir=./ ;;
14820    */) ;;
14821    *) as_dir=$as_dir/ ;;
14822  esac
14823    for ac_exec_ext in '' $ac_executable_extensions; do
14824  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14825    ac_cv_prog_FILECMD="${ac_tool_prefix}file"
14826    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14827    break 2
14828  fi
14829done
14830  done
14831IFS=$as_save_IFS
14832
14833fi
14834fi
14835FILECMD=$ac_cv_prog_FILECMD
14836if test -n "$FILECMD"; then
14837  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
14838printf "%s\n" "$FILECMD" >&6; }
14839else
14840  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14841printf "%s\n" "no" >&6; }
14842fi
14843
14844
14845fi
14846if test -z "$ac_cv_prog_FILECMD"; then
14847  ac_ct_FILECMD=$FILECMD
14848  # Extract the first word of "file", so it can be a program name with args.
14849set dummy file; ac_word=$2
14850{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14851printf %s "checking for $ac_word... " >&6; }
14852if test ${ac_cv_prog_ac_ct_FILECMD+y}
14853then :
14854  printf %s "(cached) " >&6
14855else $as_nop
14856  if test -n "$ac_ct_FILECMD"; then
14857  ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
14858else
14859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14860for as_dir in $PATH
14861do
14862  IFS=$as_save_IFS
14863  case $as_dir in #(((
14864    '') as_dir=./ ;;
14865    */) ;;
14866    *) as_dir=$as_dir/ ;;
14867  esac
14868    for ac_exec_ext in '' $ac_executable_extensions; do
14869  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14870    ac_cv_prog_ac_ct_FILECMD="file"
14871    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14872    break 2
14873  fi
14874done
14875  done
14876IFS=$as_save_IFS
14877
14878fi
14879fi
14880ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
14881if test -n "$ac_ct_FILECMD"; then
14882  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
14883printf "%s\n" "$ac_ct_FILECMD" >&6; }
14884else
14885  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14886printf "%s\n" "no" >&6; }
14887fi
14888
14889  if test "x$ac_ct_FILECMD" = x; then
14890    FILECMD=":"
14891  else
14892    case $cross_compiling:$ac_tool_warned in
14893yes:)
14894{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14895printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14896ac_tool_warned=yes ;;
14897esac
14898    FILECMD=$ac_ct_FILECMD
14899  fi
14900else
14901  FILECMD="$ac_cv_prog_FILECMD"
14902fi
14903
14904
14905
14906
14907
14908
14909
14910if test -n "$ac_tool_prefix"; then
14911  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
14912set dummy ${ac_tool_prefix}objdump; ac_word=$2
14913{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14914printf %s "checking for $ac_word... " >&6; }
14915if test ${ac_cv_prog_OBJDUMP+y}
14916then :
14917  printf %s "(cached) " >&6
14918else $as_nop
14919  if test -n "$OBJDUMP"; then
14920  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
14921else
14922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14923for as_dir in $PATH
14924do
14925  IFS=$as_save_IFS
14926  case $as_dir in #(((
14927    '') as_dir=./ ;;
14928    */) ;;
14929    *) as_dir=$as_dir/ ;;
14930  esac
14931    for ac_exec_ext in '' $ac_executable_extensions; do
14932  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14933    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
14934    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14935    break 2
14936  fi
14937done
14938  done
14939IFS=$as_save_IFS
14940
14941fi
14942fi
14943OBJDUMP=$ac_cv_prog_OBJDUMP
14944if test -n "$OBJDUMP"; then
14945  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
14946printf "%s\n" "$OBJDUMP" >&6; }
14947else
14948  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14949printf "%s\n" "no" >&6; }
14950fi
14951
14952
14953fi
14954if test -z "$ac_cv_prog_OBJDUMP"; then
14955  ac_ct_OBJDUMP=$OBJDUMP
14956  # Extract the first word of "objdump", so it can be a program name with args.
14957set dummy objdump; ac_word=$2
14958{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14959printf %s "checking for $ac_word... " >&6; }
14960if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
14961then :
14962  printf %s "(cached) " >&6
14963else $as_nop
14964  if test -n "$ac_ct_OBJDUMP"; then
14965  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
14966else
14967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14968for as_dir in $PATH
14969do
14970  IFS=$as_save_IFS
14971  case $as_dir in #(((
14972    '') as_dir=./ ;;
14973    */) ;;
14974    *) as_dir=$as_dir/ ;;
14975  esac
14976    for ac_exec_ext in '' $ac_executable_extensions; do
14977  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14978    ac_cv_prog_ac_ct_OBJDUMP="objdump"
14979    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14980    break 2
14981  fi
14982done
14983  done
14984IFS=$as_save_IFS
14985
14986fi
14987fi
14988ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
14989if test -n "$ac_ct_OBJDUMP"; then
14990  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
14991printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
14992else
14993  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14994printf "%s\n" "no" >&6; }
14995fi
14996
14997  if test "x$ac_ct_OBJDUMP" = x; then
14998    OBJDUMP="false"
14999  else
15000    case $cross_compiling:$ac_tool_warned in
15001yes:)
15002{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15003printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15004ac_tool_warned=yes ;;
15005esac
15006    OBJDUMP=$ac_ct_OBJDUMP
15007  fi
15008else
15009  OBJDUMP="$ac_cv_prog_OBJDUMP"
15010fi
15011
15012test -z "$OBJDUMP" && OBJDUMP=objdump
15013
15014
15015
15016
15017
15018
15019{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
15020printf %s "checking how to recognize dependent libraries... " >&6; }
15021if test ${lt_cv_deplibs_check_method+y}
15022then :
15023  printf %s "(cached) " >&6
15024else $as_nop
15025  lt_cv_file_magic_cmd='$MAGIC_CMD'
15026lt_cv_file_magic_test_file=
15027lt_cv_deplibs_check_method='unknown'
15028# Need to set the preceding variable on all platforms that support
15029# interlibrary dependencies.
15030# 'none' -- dependencies not supported.
15031# 'unknown' -- same as none, but documents that we really don't know.
15032# 'pass_all' -- all dependencies passed with no checks.
15033# 'test_compile' -- check by making test program.
15034# 'file_magic [[regex]]' -- check by looking for files in library path
15035# that responds to the $file_magic_cmd with a given extended regex.
15036# If you have 'file' or equivalent on your system and you're not sure
15037# whether 'pass_all' will *always* work, you probably want this one.
15038
15039case $host_os in
15040aix[4-9]*)
15041  lt_cv_deplibs_check_method=pass_all
15042  ;;
15043
15044beos*)
15045  lt_cv_deplibs_check_method=pass_all
15046  ;;
15047
15048bsdi[45]*)
15049  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
15050  lt_cv_file_magic_cmd='$FILECMD -L'
15051  lt_cv_file_magic_test_file=/shlib/libc.so
15052  ;;
15053
15054cygwin*)
15055  # func_win32_libid is a shell function defined in ltmain.sh
15056  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
15057  lt_cv_file_magic_cmd='func_win32_libid'
15058  ;;
15059
15060mingw* | pw32*)
15061  # Base MSYS/MinGW do not provide the 'file' command needed by
15062  # func_win32_libid shell function, so use a weaker test based on 'objdump',
15063  # unless we find 'file', for example because we are cross-compiling.
15064  if ( file / ) >/dev/null 2>&1; then
15065    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
15066    lt_cv_file_magic_cmd='func_win32_libid'
15067  else
15068    # Keep this pattern in sync with the one in func_win32_libid.
15069    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
15070    lt_cv_file_magic_cmd='$OBJDUMP -f'
15071  fi
15072  ;;
15073
15074cegcc*)
15075  # use the weaker test based on 'objdump'. See mingw*.
15076  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
15077  lt_cv_file_magic_cmd='$OBJDUMP -f'
15078  ;;
15079
15080darwin* | rhapsody*)
15081  lt_cv_deplibs_check_method=pass_all
15082  ;;
15083
15084freebsd* | dragonfly* | midnightbsd*)
15085  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
15086    case $host_cpu in
15087    i*86 )
15088      # Not sure whether the presence of OpenBSD here was a mistake.
15089      # Let's accept both of them until this is cleared up.
15090      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
15091      lt_cv_file_magic_cmd=$FILECMD
15092      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
15093      ;;
15094    esac
15095  else
15096    lt_cv_deplibs_check_method=pass_all
15097  fi
15098  ;;
15099
15100haiku*)
15101  lt_cv_deplibs_check_method=pass_all
15102  ;;
15103
15104hpux10.20* | hpux11*)
15105  lt_cv_file_magic_cmd=$FILECMD
15106  case $host_cpu in
15107  ia64*)
15108    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
15109    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
15110    ;;
15111  hppa*64*)
15112    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]'
15113    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
15114    ;;
15115  *)
15116    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
15117    lt_cv_file_magic_test_file=/usr/lib/libc.sl
15118    ;;
15119  esac
15120  ;;
15121
15122interix[3-9]*)
15123  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
15124  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
15125  ;;
15126
15127irix5* | irix6* | nonstopux*)
15128  case $LD in
15129  *-32|*"-32 ") libmagic=32-bit;;
15130  *-n32|*"-n32 ") libmagic=N32;;
15131  *-64|*"-64 ") libmagic=64-bit;;
15132  *) libmagic=never-match;;
15133  esac
15134  lt_cv_deplibs_check_method=pass_all
15135  ;;
15136
15137# This must be glibc/ELF.
15138linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15139  lt_cv_deplibs_check_method=pass_all
15140  ;;
15141
15142netbsd*)
15143  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
15144    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
15145  else
15146    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
15147  fi
15148  ;;
15149
15150newos6*)
15151  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
15152  lt_cv_file_magic_cmd=$FILECMD
15153  lt_cv_file_magic_test_file=/usr/lib/libnls.so
15154  ;;
15155
15156*nto* | *qnx*)
15157  lt_cv_deplibs_check_method=pass_all
15158  ;;
15159
15160openbsd* | bitrig*)
15161  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
15162    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
15163  else
15164    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
15165  fi
15166  ;;
15167
15168osf3* | osf4* | osf5*)
15169  lt_cv_deplibs_check_method=pass_all
15170  ;;
15171
15172rdos*)
15173  lt_cv_deplibs_check_method=pass_all
15174  ;;
15175
15176solaris*)
15177  lt_cv_deplibs_check_method=pass_all
15178  ;;
15179
15180sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15181  lt_cv_deplibs_check_method=pass_all
15182  ;;
15183
15184sysv4 | sysv4.3*)
15185  case $host_vendor in
15186  motorola)
15187    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]'
15188    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
15189    ;;
15190  ncr)
15191    lt_cv_deplibs_check_method=pass_all
15192    ;;
15193  sequent)
15194    lt_cv_file_magic_cmd='/bin/file'
15195    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
15196    ;;
15197  sni)
15198    lt_cv_file_magic_cmd='/bin/file'
15199    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
15200    lt_cv_file_magic_test_file=/lib/libc.so
15201    ;;
15202  siemens)
15203    lt_cv_deplibs_check_method=pass_all
15204    ;;
15205  pc)
15206    lt_cv_deplibs_check_method=pass_all
15207    ;;
15208  esac
15209  ;;
15210
15211tpf*)
15212  lt_cv_deplibs_check_method=pass_all
15213  ;;
15214os2*)
15215  lt_cv_deplibs_check_method=pass_all
15216  ;;
15217esac
15218
15219fi
15220{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
15221printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
15222
15223file_magic_glob=
15224want_nocaseglob=no
15225if test "$build" = "$host"; then
15226  case $host_os in
15227  mingw* | pw32*)
15228    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
15229      want_nocaseglob=yes
15230    else
15231      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
15232    fi
15233    ;;
15234  esac
15235fi
15236
15237file_magic_cmd=$lt_cv_file_magic_cmd
15238deplibs_check_method=$lt_cv_deplibs_check_method
15239test -z "$deplibs_check_method" && deplibs_check_method=unknown
15240
15241
15242
15243
15244
15245
15246
15247
15248
15249
15250
15251
15252
15253
15254
15255
15256
15257
15258
15259
15260
15261
15262if test -n "$ac_tool_prefix"; then
15263  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
15264set dummy ${ac_tool_prefix}dlltool; ac_word=$2
15265{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15266printf %s "checking for $ac_word... " >&6; }
15267if test ${ac_cv_prog_DLLTOOL+y}
15268then :
15269  printf %s "(cached) " >&6
15270else $as_nop
15271  if test -n "$DLLTOOL"; then
15272  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
15273else
15274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15275for as_dir in $PATH
15276do
15277  IFS=$as_save_IFS
15278  case $as_dir in #(((
15279    '') as_dir=./ ;;
15280    */) ;;
15281    *) as_dir=$as_dir/ ;;
15282  esac
15283    for ac_exec_ext in '' $ac_executable_extensions; do
15284  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15285    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
15286    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15287    break 2
15288  fi
15289done
15290  done
15291IFS=$as_save_IFS
15292
15293fi
15294fi
15295DLLTOOL=$ac_cv_prog_DLLTOOL
15296if test -n "$DLLTOOL"; then
15297  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
15298printf "%s\n" "$DLLTOOL" >&6; }
15299else
15300  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15301printf "%s\n" "no" >&6; }
15302fi
15303
15304
15305fi
15306if test -z "$ac_cv_prog_DLLTOOL"; then
15307  ac_ct_DLLTOOL=$DLLTOOL
15308  # Extract the first word of "dlltool", so it can be a program name with args.
15309set dummy dlltool; ac_word=$2
15310{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15311printf %s "checking for $ac_word... " >&6; }
15312if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
15313then :
15314  printf %s "(cached) " >&6
15315else $as_nop
15316  if test -n "$ac_ct_DLLTOOL"; then
15317  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
15318else
15319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15320for as_dir in $PATH
15321do
15322  IFS=$as_save_IFS
15323  case $as_dir in #(((
15324    '') as_dir=./ ;;
15325    */) ;;
15326    *) as_dir=$as_dir/ ;;
15327  esac
15328    for ac_exec_ext in '' $ac_executable_extensions; do
15329  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15330    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
15331    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15332    break 2
15333  fi
15334done
15335  done
15336IFS=$as_save_IFS
15337
15338fi
15339fi
15340ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
15341if test -n "$ac_ct_DLLTOOL"; then
15342  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
15343printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
15344else
15345  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15346printf "%s\n" "no" >&6; }
15347fi
15348
15349  if test "x$ac_ct_DLLTOOL" = x; then
15350    DLLTOOL="false"
15351  else
15352    case $cross_compiling:$ac_tool_warned in
15353yes:)
15354{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15355printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15356ac_tool_warned=yes ;;
15357esac
15358    DLLTOOL=$ac_ct_DLLTOOL
15359  fi
15360else
15361  DLLTOOL="$ac_cv_prog_DLLTOOL"
15362fi
15363
15364test -z "$DLLTOOL" && DLLTOOL=dlltool
15365
15366
15367
15368
15369
15370
15371
15372{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
15373printf %s "checking how to associate runtime and link libraries... " >&6; }
15374if test ${lt_cv_sharedlib_from_linklib_cmd+y}
15375then :
15376  printf %s "(cached) " >&6
15377else $as_nop
15378  lt_cv_sharedlib_from_linklib_cmd='unknown'
15379
15380case $host_os in
15381cygwin* | mingw* | pw32* | cegcc*)
15382  # two different shell functions defined in ltmain.sh;
15383  # decide which one to use based on capabilities of $DLLTOOL
15384  case `$DLLTOOL --help 2>&1` in
15385  *--identify-strict*)
15386    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
15387    ;;
15388  *)
15389    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
15390    ;;
15391  esac
15392  ;;
15393*)
15394  # fallback: assume linklib IS sharedlib
15395  lt_cv_sharedlib_from_linklib_cmd=$ECHO
15396  ;;
15397esac
15398
15399fi
15400{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
15401printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
15402sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
15403test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
15404
15405
15406
15407
15408
15409
15410
15411if test -n "$ac_tool_prefix"; then
15412  for ac_prog in ar
15413  do
15414    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
15415set dummy $ac_tool_prefix$ac_prog; ac_word=$2
15416{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15417printf %s "checking for $ac_word... " >&6; }
15418if test ${ac_cv_prog_AR+y}
15419then :
15420  printf %s "(cached) " >&6
15421else $as_nop
15422  if test -n "$AR"; then
15423  ac_cv_prog_AR="$AR" # Let the user override the test.
15424else
15425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15426for as_dir in $PATH
15427do
15428  IFS=$as_save_IFS
15429  case $as_dir in #(((
15430    '') as_dir=./ ;;
15431    */) ;;
15432    *) as_dir=$as_dir/ ;;
15433  esac
15434    for ac_exec_ext in '' $ac_executable_extensions; do
15435  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15436    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
15437    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15438    break 2
15439  fi
15440done
15441  done
15442IFS=$as_save_IFS
15443
15444fi
15445fi
15446AR=$ac_cv_prog_AR
15447if test -n "$AR"; then
15448  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
15449printf "%s\n" "$AR" >&6; }
15450else
15451  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15452printf "%s\n" "no" >&6; }
15453fi
15454
15455
15456    test -n "$AR" && break
15457  done
15458fi
15459if test -z "$AR"; then
15460  ac_ct_AR=$AR
15461  for ac_prog in ar
15462do
15463  # Extract the first word of "$ac_prog", so it can be a program name with args.
15464set dummy $ac_prog; ac_word=$2
15465{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15466printf %s "checking for $ac_word... " >&6; }
15467if test ${ac_cv_prog_ac_ct_AR+y}
15468then :
15469  printf %s "(cached) " >&6
15470else $as_nop
15471  if test -n "$ac_ct_AR"; then
15472  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
15473else
15474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15475for as_dir in $PATH
15476do
15477  IFS=$as_save_IFS
15478  case $as_dir in #(((
15479    '') as_dir=./ ;;
15480    */) ;;
15481    *) as_dir=$as_dir/ ;;
15482  esac
15483    for ac_exec_ext in '' $ac_executable_extensions; do
15484  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15485    ac_cv_prog_ac_ct_AR="$ac_prog"
15486    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15487    break 2
15488  fi
15489done
15490  done
15491IFS=$as_save_IFS
15492
15493fi
15494fi
15495ac_ct_AR=$ac_cv_prog_ac_ct_AR
15496if test -n "$ac_ct_AR"; then
15497  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
15498printf "%s\n" "$ac_ct_AR" >&6; }
15499else
15500  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15501printf "%s\n" "no" >&6; }
15502fi
15503
15504
15505  test -n "$ac_ct_AR" && break
15506done
15507
15508  if test "x$ac_ct_AR" = x; then
15509    AR="false"
15510  else
15511    case $cross_compiling:$ac_tool_warned in
15512yes:)
15513{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15514printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15515ac_tool_warned=yes ;;
15516esac
15517    AR=$ac_ct_AR
15518  fi
15519fi
15520
15521: ${AR=ar}
15522
15523
15524
15525
15526
15527
15528# Use ARFLAGS variable as AR's operation code to sync the variable naming with
15529# Automake.  If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
15530# higher priority because thats what people were doing historically (setting
15531# ARFLAGS for automake and AR_FLAGS for libtool).  FIXME: Make the AR_FLAGS
15532# variable obsoleted/removed.
15533
15534test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
15535lt_ar_flags=$AR_FLAGS
15536
15537
15538
15539
15540
15541
15542# Make AR_FLAGS overridable by 'make ARFLAGS='.  Don't try to run-time override
15543# by AR_FLAGS because that was never working and AR_FLAGS is about to die.
15544
15545
15546
15547
15548
15549
15550{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
15551printf %s "checking for archiver @FILE support... " >&6; }
15552if test ${lt_cv_ar_at_file+y}
15553then :
15554  printf %s "(cached) " >&6
15555else $as_nop
15556  lt_cv_ar_at_file=no
15557   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15558/* end confdefs.h.  */
15559
15560int
15561main (void)
15562{
15563
15564  ;
15565  return 0;
15566}
15567_ACEOF
15568if ac_fn_c_try_compile "$LINENO"
15569then :
15570  echo conftest.$ac_objext > conftest.lst
15571      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
15572      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
15573  (eval $lt_ar_try) 2>&5
15574  ac_status=$?
15575  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15576  test $ac_status = 0; }
15577      if test 0 -eq "$ac_status"; then
15578	# Ensure the archiver fails upon bogus file names.
15579	rm -f conftest.$ac_objext libconftest.a
15580	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
15581  (eval $lt_ar_try) 2>&5
15582  ac_status=$?
15583  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15584  test $ac_status = 0; }
15585	if test 0 -ne "$ac_status"; then
15586          lt_cv_ar_at_file=@
15587        fi
15588      fi
15589      rm -f conftest.* libconftest.a
15590
15591fi
15592rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15593
15594fi
15595{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
15596printf "%s\n" "$lt_cv_ar_at_file" >&6; }
15597
15598if test no = "$lt_cv_ar_at_file"; then
15599  archiver_list_spec=
15600else
15601  archiver_list_spec=$lt_cv_ar_at_file
15602fi
15603
15604
15605
15606
15607
15608
15609
15610if test -n "$ac_tool_prefix"; then
15611  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
15612set dummy ${ac_tool_prefix}strip; ac_word=$2
15613{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15614printf %s "checking for $ac_word... " >&6; }
15615if test ${ac_cv_prog_STRIP+y}
15616then :
15617  printf %s "(cached) " >&6
15618else $as_nop
15619  if test -n "$STRIP"; then
15620  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
15621else
15622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15623for as_dir in $PATH
15624do
15625  IFS=$as_save_IFS
15626  case $as_dir in #(((
15627    '') as_dir=./ ;;
15628    */) ;;
15629    *) as_dir=$as_dir/ ;;
15630  esac
15631    for ac_exec_ext in '' $ac_executable_extensions; do
15632  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15633    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
15634    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15635    break 2
15636  fi
15637done
15638  done
15639IFS=$as_save_IFS
15640
15641fi
15642fi
15643STRIP=$ac_cv_prog_STRIP
15644if test -n "$STRIP"; then
15645  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
15646printf "%s\n" "$STRIP" >&6; }
15647else
15648  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15649printf "%s\n" "no" >&6; }
15650fi
15651
15652
15653fi
15654if test -z "$ac_cv_prog_STRIP"; then
15655  ac_ct_STRIP=$STRIP
15656  # Extract the first word of "strip", so it can be a program name with args.
15657set dummy strip; ac_word=$2
15658{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15659printf %s "checking for $ac_word... " >&6; }
15660if test ${ac_cv_prog_ac_ct_STRIP+y}
15661then :
15662  printf %s "(cached) " >&6
15663else $as_nop
15664  if test -n "$ac_ct_STRIP"; then
15665  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
15666else
15667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15668for as_dir in $PATH
15669do
15670  IFS=$as_save_IFS
15671  case $as_dir in #(((
15672    '') as_dir=./ ;;
15673    */) ;;
15674    *) as_dir=$as_dir/ ;;
15675  esac
15676    for ac_exec_ext in '' $ac_executable_extensions; do
15677  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15678    ac_cv_prog_ac_ct_STRIP="strip"
15679    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15680    break 2
15681  fi
15682done
15683  done
15684IFS=$as_save_IFS
15685
15686fi
15687fi
15688ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
15689if test -n "$ac_ct_STRIP"; then
15690  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
15691printf "%s\n" "$ac_ct_STRIP" >&6; }
15692else
15693  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15694printf "%s\n" "no" >&6; }
15695fi
15696
15697  if test "x$ac_ct_STRIP" = x; then
15698    STRIP=":"
15699  else
15700    case $cross_compiling:$ac_tool_warned in
15701yes:)
15702{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15703printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15704ac_tool_warned=yes ;;
15705esac
15706    STRIP=$ac_ct_STRIP
15707  fi
15708else
15709  STRIP="$ac_cv_prog_STRIP"
15710fi
15711
15712test -z "$STRIP" && STRIP=:
15713
15714
15715
15716
15717
15718
15719if test -n "$ac_tool_prefix"; then
15720  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
15721set dummy ${ac_tool_prefix}ranlib; ac_word=$2
15722{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15723printf %s "checking for $ac_word... " >&6; }
15724if test ${ac_cv_prog_RANLIB+y}
15725then :
15726  printf %s "(cached) " >&6
15727else $as_nop
15728  if test -n "$RANLIB"; then
15729  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
15730else
15731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15732for as_dir in $PATH
15733do
15734  IFS=$as_save_IFS
15735  case $as_dir in #(((
15736    '') as_dir=./ ;;
15737    */) ;;
15738    *) as_dir=$as_dir/ ;;
15739  esac
15740    for ac_exec_ext in '' $ac_executable_extensions; do
15741  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15742    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
15743    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15744    break 2
15745  fi
15746done
15747  done
15748IFS=$as_save_IFS
15749
15750fi
15751fi
15752RANLIB=$ac_cv_prog_RANLIB
15753if test -n "$RANLIB"; then
15754  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
15755printf "%s\n" "$RANLIB" >&6; }
15756else
15757  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15758printf "%s\n" "no" >&6; }
15759fi
15760
15761
15762fi
15763if test -z "$ac_cv_prog_RANLIB"; then
15764  ac_ct_RANLIB=$RANLIB
15765  # Extract the first word of "ranlib", so it can be a program name with args.
15766set dummy ranlib; ac_word=$2
15767{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15768printf %s "checking for $ac_word... " >&6; }
15769if test ${ac_cv_prog_ac_ct_RANLIB+y}
15770then :
15771  printf %s "(cached) " >&6
15772else $as_nop
15773  if test -n "$ac_ct_RANLIB"; then
15774  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
15775else
15776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15777for as_dir in $PATH
15778do
15779  IFS=$as_save_IFS
15780  case $as_dir in #(((
15781    '') as_dir=./ ;;
15782    */) ;;
15783    *) as_dir=$as_dir/ ;;
15784  esac
15785    for ac_exec_ext in '' $ac_executable_extensions; do
15786  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15787    ac_cv_prog_ac_ct_RANLIB="ranlib"
15788    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15789    break 2
15790  fi
15791done
15792  done
15793IFS=$as_save_IFS
15794
15795fi
15796fi
15797ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
15798if test -n "$ac_ct_RANLIB"; then
15799  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
15800printf "%s\n" "$ac_ct_RANLIB" >&6; }
15801else
15802  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15803printf "%s\n" "no" >&6; }
15804fi
15805
15806  if test "x$ac_ct_RANLIB" = x; then
15807    RANLIB=":"
15808  else
15809    case $cross_compiling:$ac_tool_warned in
15810yes:)
15811{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15812printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15813ac_tool_warned=yes ;;
15814esac
15815    RANLIB=$ac_ct_RANLIB
15816  fi
15817else
15818  RANLIB="$ac_cv_prog_RANLIB"
15819fi
15820
15821test -z "$RANLIB" && RANLIB=:
15822
15823
15824
15825
15826
15827
15828# Determine commands to create old-style static archives.
15829old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
15830old_postinstall_cmds='chmod 644 $oldlib'
15831old_postuninstall_cmds=
15832
15833if test -n "$RANLIB"; then
15834  case $host_os in
15835  bitrig* | openbsd*)
15836    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
15837    ;;
15838  *)
15839    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
15840    ;;
15841  esac
15842  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
15843fi
15844
15845case $host_os in
15846  darwin*)
15847    lock_old_archive_extraction=yes ;;
15848  *)
15849    lock_old_archive_extraction=no ;;
15850esac
15851
15852
15853
15854
15855
15856
15857
15858
15859
15860
15861
15862
15863
15864
15865
15866
15867
15868
15869
15870
15871
15872
15873
15874
15875
15876
15877
15878
15879
15880
15881
15882
15883
15884
15885
15886
15887
15888
15889
15890# If no C compiler was specified, use CC.
15891LTCC=${LTCC-"$CC"}
15892
15893# If no C compiler flags were specified, use CFLAGS.
15894LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15895
15896# Allow CC to be a program name with arguments.
15897compiler=$CC
15898
15899
15900# Check for command to grab the raw symbol name followed by C symbol from nm.
15901{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
15902printf %s "checking command to parse $NM output from $compiler object... " >&6; }
15903if test ${lt_cv_sys_global_symbol_pipe+y}
15904then :
15905  printf %s "(cached) " >&6
15906else $as_nop
15907
15908# These are sane defaults that work on at least a few old systems.
15909# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
15910
15911# Character class describing NM global symbol codes.
15912symcode='[BCDEGRST]'
15913
15914# Regexp to match symbols that can be accessed directly from C.
15915sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
15916
15917# Define system-specific variables.
15918case $host_os in
15919aix*)
15920  symcode='[BCDT]'
15921  ;;
15922cygwin* | mingw* | pw32* | cegcc*)
15923  symcode='[ABCDGISTW]'
15924  ;;
15925hpux*)
15926  if test ia64 = "$host_cpu"; then
15927    symcode='[ABCDEGRST]'
15928  fi
15929  ;;
15930irix* | nonstopux*)
15931  symcode='[BCDEGRST]'
15932  ;;
15933osf*)
15934  symcode='[BCDEGQRST]'
15935  ;;
15936solaris*)
15937  symcode='[BDRT]'
15938  ;;
15939sco3.2v5*)
15940  symcode='[DT]'
15941  ;;
15942sysv4.2uw2*)
15943  symcode='[DT]'
15944  ;;
15945sysv5* | sco5v6* | unixware* | OpenUNIX*)
15946  symcode='[ABDT]'
15947  ;;
15948sysv4)
15949  symcode='[DFNSTU]'
15950  ;;
15951esac
15952
15953# If we're using GNU nm, then use its standard symbol codes.
15954case `$NM -V 2>&1` in
15955*GNU* | *'with BFD'*)
15956  symcode='[ABCDGIRSTW]' ;;
15957esac
15958
15959if test "$lt_cv_nm_interface" = "MS dumpbin"; then
15960  # Gets list of data symbols to import.
15961  lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
15962  # Adjust the below global symbol transforms to fixup imported variables.
15963  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
15964  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
15965  lt_c_name_lib_hook="\
15966  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
15967  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
15968else
15969  # Disable hooks by default.
15970  lt_cv_sys_global_symbol_to_import=
15971  lt_cdecl_hook=
15972  lt_c_name_hook=
15973  lt_c_name_lib_hook=
15974fi
15975
15976# Transform an extracted symbol line into a proper C declaration.
15977# Some systems (esp. on ia64) link data and code symbols differently,
15978# so use this general approach.
15979lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
15980$lt_cdecl_hook\
15981" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
15982" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
15983
15984# Transform an extracted symbol line into symbol name and symbol address
15985lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
15986$lt_c_name_hook\
15987" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
15988" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
15989
15990# Transform an extracted symbol line into symbol name with lib prefix and
15991# symbol address.
15992lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
15993$lt_c_name_lib_hook\
15994" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
15995" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
15996" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
15997
15998# Handle CRLF in mingw tool chain
15999opt_cr=
16000case $build_os in
16001mingw*)
16002  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
16003  ;;
16004esac
16005
16006# Try without a prefix underscore, then with it.
16007for ac_symprfx in "" "_"; do
16008
16009  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
16010  symxfrm="\\1 $ac_symprfx\\2 \\2"
16011
16012  # Write the raw and C identifiers.
16013  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
16014    # Fake it for dumpbin and say T for any non-static function,
16015    # D for any global variable and I for any imported variable.
16016    # Also find C++ and __fastcall symbols from MSVC++ or ICC,
16017    # which start with @ or ?.
16018    lt_cv_sys_global_symbol_pipe="$AWK '"\
16019"     {last_section=section; section=\$ 3};"\
16020"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
16021"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
16022"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
16023"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
16024"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
16025"     \$ 0!~/External *\|/{next};"\
16026"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
16027"     {if(hide[section]) next};"\
16028"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
16029"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
16030"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
16031"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
16032"     ' prfx=^$ac_symprfx"
16033  else
16034    lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
16035  fi
16036  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
16037
16038  # Check to see that the pipe works correctly.
16039  pipe_works=no
16040
16041  rm -f conftest*
16042  cat > conftest.$ac_ext <<_LT_EOF
16043#ifdef __cplusplus
16044extern "C" {
16045#endif
16046char nm_test_var;
16047void nm_test_func(void);
16048void nm_test_func(void){}
16049#ifdef __cplusplus
16050}
16051#endif
16052int main(){nm_test_var='a';nm_test_func();return(0);}
16053_LT_EOF
16054
16055  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16056  (eval $ac_compile) 2>&5
16057  ac_status=$?
16058  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16059  test $ac_status = 0; }; then
16060    # Now try to grab the symbols.
16061    nlist=conftest.nm
16062    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
16063  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
16064  ac_status=$?
16065  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16066  test $ac_status = 0; } && test -s "$nlist"; then
16067      # Try sorting and uniquifying the output.
16068      if sort "$nlist" | uniq > "$nlist"T; then
16069	mv -f "$nlist"T "$nlist"
16070      else
16071	rm -f "$nlist"T
16072      fi
16073
16074      # Make sure that we snagged all the symbols we need.
16075      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
16076	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
16077	  cat <<_LT_EOF > conftest.$ac_ext
16078/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
16079#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
16080/* DATA imports from DLLs on WIN32 can't be const, because runtime
16081   relocations are performed -- see ld's documentation on pseudo-relocs.  */
16082# define LT_DLSYM_CONST
16083#elif defined __osf__
16084/* This system does not cope well with relocations in const data.  */
16085# define LT_DLSYM_CONST
16086#else
16087# define LT_DLSYM_CONST const
16088#endif
16089
16090#ifdef __cplusplus
16091extern "C" {
16092#endif
16093
16094_LT_EOF
16095	  # Now generate the symbol file.
16096	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
16097
16098	  cat <<_LT_EOF >> conftest.$ac_ext
16099
16100/* The mapping between symbol names and symbols.  */
16101LT_DLSYM_CONST struct {
16102  const char *name;
16103  void       *address;
16104}
16105lt__PROGRAM__LTX_preloaded_symbols[] =
16106{
16107  { "@PROGRAM@", (void *) 0 },
16108_LT_EOF
16109	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
16110	  cat <<\_LT_EOF >> conftest.$ac_ext
16111  {0, (void *) 0}
16112};
16113
16114/* This works around a problem in FreeBSD linker */
16115#ifdef FREEBSD_WORKAROUND
16116static const void *lt_preloaded_setup() {
16117  return lt__PROGRAM__LTX_preloaded_symbols;
16118}
16119#endif
16120
16121#ifdef __cplusplus
16122}
16123#endif
16124_LT_EOF
16125	  # Now try linking the two files.
16126	  mv conftest.$ac_objext conftstm.$ac_objext
16127	  lt_globsym_save_LIBS=$LIBS
16128	  lt_globsym_save_CFLAGS=$CFLAGS
16129	  LIBS=conftstm.$ac_objext
16130	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
16131	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16132  (eval $ac_link) 2>&5
16133  ac_status=$?
16134  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16135  test $ac_status = 0; } && test -s conftest$ac_exeext; then
16136	    pipe_works=yes
16137	  fi
16138	  LIBS=$lt_globsym_save_LIBS
16139	  CFLAGS=$lt_globsym_save_CFLAGS
16140	else
16141	  echo "cannot find nm_test_func in $nlist" >&5
16142	fi
16143      else
16144	echo "cannot find nm_test_var in $nlist" >&5
16145      fi
16146    else
16147      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
16148    fi
16149  else
16150    echo "$progname: failed program was:" >&5
16151    cat conftest.$ac_ext >&5
16152  fi
16153  rm -rf conftest* conftst*
16154
16155  # Do not use the global_symbol_pipe unless it works.
16156  if test yes = "$pipe_works"; then
16157    break
16158  else
16159    lt_cv_sys_global_symbol_pipe=
16160  fi
16161done
16162
16163fi
16164
16165if test -z "$lt_cv_sys_global_symbol_pipe"; then
16166  lt_cv_sys_global_symbol_to_cdecl=
16167fi
16168if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
16169  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
16170printf "%s\n" "failed" >&6; }
16171else
16172  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
16173printf "%s\n" "ok" >&6; }
16174fi
16175
16176# Response file support.
16177if test "$lt_cv_nm_interface" = "MS dumpbin"; then
16178  nm_file_list_spec='@'
16179elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
16180  nm_file_list_spec='@'
16181fi
16182
16183
16184
16185
16186
16187
16188
16189
16190
16191
16192
16193
16194
16195
16196
16197
16198
16199
16200
16201
16202
16203
16204
16205
16206
16207
16208
16209
16210
16211
16212
16213
16214
16215
16216
16217
16218
16219{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
16220printf %s "checking for sysroot... " >&6; }
16221
16222# Check whether --with-sysroot was given.
16223if test ${with_sysroot+y}
16224then :
16225  withval=$with_sysroot;
16226else $as_nop
16227  with_sysroot=no
16228fi
16229
16230
16231lt_sysroot=
16232case $with_sysroot in #(
16233 yes)
16234   if test yes = "$GCC"; then
16235     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
16236   fi
16237   ;; #(
16238 /*)
16239   lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
16240   ;; #(
16241 no|'')
16242   ;; #(
16243 *)
16244   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
16245printf "%s\n" "$with_sysroot" >&6; }
16246   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
16247   ;;
16248esac
16249
16250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
16251printf "%s\n" "${lt_sysroot:-no}" >&6; }
16252
16253
16254
16255
16256
16257{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
16258printf %s "checking for a working dd... " >&6; }
16259if test ${ac_cv_path_lt_DD+y}
16260then :
16261  printf %s "(cached) " >&6
16262else $as_nop
16263  printf 0123456789abcdef0123456789abcdef >conftest.i
16264cat conftest.i conftest.i >conftest2.i
16265: ${lt_DD:=$DD}
16266if test -z "$lt_DD"; then
16267  ac_path_lt_DD_found=false
16268  # Loop through the user's path and test for each of PROGNAME-LIST
16269  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16270for as_dir in $PATH
16271do
16272  IFS=$as_save_IFS
16273  case $as_dir in #(((
16274    '') as_dir=./ ;;
16275    */) ;;
16276    *) as_dir=$as_dir/ ;;
16277  esac
16278    for ac_prog in dd
16279   do
16280    for ac_exec_ext in '' $ac_executable_extensions; do
16281      ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
16282      as_fn_executable_p "$ac_path_lt_DD" || continue
16283if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
16284  cmp -s conftest.i conftest.out \
16285  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
16286fi
16287      $ac_path_lt_DD_found && break 3
16288    done
16289  done
16290  done
16291IFS=$as_save_IFS
16292  if test -z "$ac_cv_path_lt_DD"; then
16293    :
16294  fi
16295else
16296  ac_cv_path_lt_DD=$lt_DD
16297fi
16298
16299rm -f conftest.i conftest2.i conftest.out
16300fi
16301{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
16302printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
16303
16304
16305{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
16306printf %s "checking how to truncate binary pipes... " >&6; }
16307if test ${lt_cv_truncate_bin+y}
16308then :
16309  printf %s "(cached) " >&6
16310else $as_nop
16311  printf 0123456789abcdef0123456789abcdef >conftest.i
16312cat conftest.i conftest.i >conftest2.i
16313lt_cv_truncate_bin=
16314if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
16315  cmp -s conftest.i conftest.out \
16316  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
16317fi
16318rm -f conftest.i conftest2.i conftest.out
16319test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
16320fi
16321{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
16322printf "%s\n" "$lt_cv_truncate_bin" >&6; }
16323
16324
16325
16326
16327
16328
16329
16330# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
16331func_cc_basename ()
16332{
16333    for cc_temp in $*""; do
16334      case $cc_temp in
16335        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16336        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16337        \-*) ;;
16338        *) break;;
16339      esac
16340    done
16341    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16342}
16343
16344# Check whether --enable-libtool-lock was given.
16345if test ${enable_libtool_lock+y}
16346then :
16347  enableval=$enable_libtool_lock;
16348fi
16349
16350test no = "$enable_libtool_lock" || enable_libtool_lock=yes
16351
16352# Some flags need to be propagated to the compiler or linker for good
16353# libtool support.
16354case $host in
16355ia64-*-hpux*)
16356  # Find out what ABI is being produced by ac_compile, and set mode
16357  # options accordingly.
16358  echo 'int i;' > conftest.$ac_ext
16359  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16360  (eval $ac_compile) 2>&5
16361  ac_status=$?
16362  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16363  test $ac_status = 0; }; then
16364    case `$FILECMD conftest.$ac_objext` in
16365      *ELF-32*)
16366	HPUX_IA64_MODE=32
16367	;;
16368      *ELF-64*)
16369	HPUX_IA64_MODE=64
16370	;;
16371    esac
16372  fi
16373  rm -rf conftest*
16374  ;;
16375*-*-irix6*)
16376  # Find out what ABI is being produced by ac_compile, and set linker
16377  # options accordingly.
16378  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
16379  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16380  (eval $ac_compile) 2>&5
16381  ac_status=$?
16382  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16383  test $ac_status = 0; }; then
16384    if test yes = "$lt_cv_prog_gnu_ld"; then
16385      case `$FILECMD conftest.$ac_objext` in
16386	*32-bit*)
16387	  LD="${LD-ld} -melf32bsmip"
16388	  ;;
16389	*N32*)
16390	  LD="${LD-ld} -melf32bmipn32"
16391	  ;;
16392	*64-bit*)
16393	  LD="${LD-ld} -melf64bmip"
16394	;;
16395      esac
16396    else
16397      case `$FILECMD conftest.$ac_objext` in
16398	*32-bit*)
16399	  LD="${LD-ld} -32"
16400	  ;;
16401	*N32*)
16402	  LD="${LD-ld} -n32"
16403	  ;;
16404	*64-bit*)
16405	  LD="${LD-ld} -64"
16406	  ;;
16407      esac
16408    fi
16409  fi
16410  rm -rf conftest*
16411  ;;
16412
16413mips64*-*linux*)
16414  # Find out what ABI is being produced by ac_compile, and set linker
16415  # options accordingly.
16416  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
16417  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16418  (eval $ac_compile) 2>&5
16419  ac_status=$?
16420  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16421  test $ac_status = 0; }; then
16422    emul=elf
16423    case `$FILECMD conftest.$ac_objext` in
16424      *32-bit*)
16425	emul="${emul}32"
16426	;;
16427      *64-bit*)
16428	emul="${emul}64"
16429	;;
16430    esac
16431    case `$FILECMD conftest.$ac_objext` in
16432      *MSB*)
16433	emul="${emul}btsmip"
16434	;;
16435      *LSB*)
16436	emul="${emul}ltsmip"
16437	;;
16438    esac
16439    case `$FILECMD conftest.$ac_objext` in
16440      *N32*)
16441	emul="${emul}n32"
16442	;;
16443    esac
16444    LD="${LD-ld} -m $emul"
16445  fi
16446  rm -rf conftest*
16447  ;;
16448
16449x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
16450s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
16451  # Find out what ABI is being produced by ac_compile, and set linker
16452  # options accordingly.  Note that the listed cases only cover the
16453  # situations where additional linker options are needed (such as when
16454  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
16455  # vice versa); the common cases where no linker options are needed do
16456  # not appear in the list.
16457  echo 'int i;' > conftest.$ac_ext
16458  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16459  (eval $ac_compile) 2>&5
16460  ac_status=$?
16461  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16462  test $ac_status = 0; }; then
16463    case `$FILECMD conftest.o` in
16464      *32-bit*)
16465	case $host in
16466	  x86_64-*kfreebsd*-gnu)
16467	    LD="${LD-ld} -m elf_i386_fbsd"
16468	    ;;
16469	  x86_64-*linux*)
16470	    case `$FILECMD conftest.o` in
16471	      *x86-64*)
16472		LD="${LD-ld} -m elf32_x86_64"
16473		;;
16474	      *)
16475		LD="${LD-ld} -m elf_i386"
16476		;;
16477	    esac
16478	    ;;
16479	  powerpc64le-*linux*)
16480	    LD="${LD-ld} -m elf32lppclinux"
16481	    ;;
16482	  powerpc64-*linux*)
16483	    LD="${LD-ld} -m elf32ppclinux"
16484	    ;;
16485	  s390x-*linux*)
16486	    LD="${LD-ld} -m elf_s390"
16487	    ;;
16488	  sparc64-*linux*)
16489	    LD="${LD-ld} -m elf32_sparc"
16490	    ;;
16491	esac
16492	;;
16493      *64-bit*)
16494	case $host in
16495	  x86_64-*kfreebsd*-gnu)
16496	    LD="${LD-ld} -m elf_x86_64_fbsd"
16497	    ;;
16498	  x86_64-*linux*)
16499	    LD="${LD-ld} -m elf_x86_64"
16500	    ;;
16501	  powerpcle-*linux*)
16502	    LD="${LD-ld} -m elf64lppc"
16503	    ;;
16504	  powerpc-*linux*)
16505	    LD="${LD-ld} -m elf64ppc"
16506	    ;;
16507	  s390*-*linux*|s390*-*tpf*)
16508	    LD="${LD-ld} -m elf64_s390"
16509	    ;;
16510	  sparc*-*linux*)
16511	    LD="${LD-ld} -m elf64_sparc"
16512	    ;;
16513	esac
16514	;;
16515    esac
16516  fi
16517  rm -rf conftest*
16518  ;;
16519
16520*-*-sco3.2v5*)
16521  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
16522  SAVE_CFLAGS=$CFLAGS
16523  CFLAGS="$CFLAGS -belf"
16524  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
16525printf %s "checking whether the C compiler needs -belf... " >&6; }
16526if test ${lt_cv_cc_needs_belf+y}
16527then :
16528  printf %s "(cached) " >&6
16529else $as_nop
16530  ac_ext=c
16531ac_cpp='$CPP $CPPFLAGS'
16532ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16533ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16534ac_compiler_gnu=$ac_cv_c_compiler_gnu
16535
16536     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16537/* end confdefs.h.  */
16538
16539int
16540main (void)
16541{
16542
16543  ;
16544  return 0;
16545}
16546_ACEOF
16547if ac_fn_c_try_link "$LINENO"
16548then :
16549  lt_cv_cc_needs_belf=yes
16550else $as_nop
16551  lt_cv_cc_needs_belf=no
16552fi
16553rm -f core conftest.err conftest.$ac_objext conftest.beam \
16554    conftest$ac_exeext conftest.$ac_ext
16555     ac_ext=c
16556ac_cpp='$CPP $CPPFLAGS'
16557ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16558ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16559ac_compiler_gnu=$ac_cv_c_compiler_gnu
16560
16561fi
16562{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
16563printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
16564  if test yes != "$lt_cv_cc_needs_belf"; then
16565    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
16566    CFLAGS=$SAVE_CFLAGS
16567  fi
16568  ;;
16569*-*solaris*)
16570  # Find out what ABI is being produced by ac_compile, and set linker
16571  # options accordingly.
16572  echo 'int i;' > conftest.$ac_ext
16573  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16574  (eval $ac_compile) 2>&5
16575  ac_status=$?
16576  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16577  test $ac_status = 0; }; then
16578    case `$FILECMD conftest.o` in
16579    *64-bit*)
16580      case $lt_cv_prog_gnu_ld in
16581      yes*)
16582        case $host in
16583        i?86-*-solaris*|x86_64-*-solaris*)
16584          LD="${LD-ld} -m elf_x86_64"
16585          ;;
16586        sparc*-*-solaris*)
16587          LD="${LD-ld} -m elf64_sparc"
16588          ;;
16589        esac
16590        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
16591        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
16592          LD=${LD-ld}_sol2
16593        fi
16594        ;;
16595      *)
16596	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
16597	  LD="${LD-ld} -64"
16598	fi
16599	;;
16600      esac
16601      ;;
16602    esac
16603  fi
16604  rm -rf conftest*
16605  ;;
16606esac
16607
16608need_locks=$enable_libtool_lock
16609
16610if test -n "$ac_tool_prefix"; then
16611  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
16612set dummy ${ac_tool_prefix}mt; ac_word=$2
16613{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16614printf %s "checking for $ac_word... " >&6; }
16615if test ${ac_cv_prog_MANIFEST_TOOL+y}
16616then :
16617  printf %s "(cached) " >&6
16618else $as_nop
16619  if test -n "$MANIFEST_TOOL"; then
16620  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
16621else
16622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16623for as_dir in $PATH
16624do
16625  IFS=$as_save_IFS
16626  case $as_dir in #(((
16627    '') as_dir=./ ;;
16628    */) ;;
16629    *) as_dir=$as_dir/ ;;
16630  esac
16631    for ac_exec_ext in '' $ac_executable_extensions; do
16632  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16633    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
16634    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16635    break 2
16636  fi
16637done
16638  done
16639IFS=$as_save_IFS
16640
16641fi
16642fi
16643MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
16644if test -n "$MANIFEST_TOOL"; then
16645  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
16646printf "%s\n" "$MANIFEST_TOOL" >&6; }
16647else
16648  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16649printf "%s\n" "no" >&6; }
16650fi
16651
16652
16653fi
16654if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
16655  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
16656  # Extract the first word of "mt", so it can be a program name with args.
16657set dummy mt; ac_word=$2
16658{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16659printf %s "checking for $ac_word... " >&6; }
16660if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
16661then :
16662  printf %s "(cached) " >&6
16663else $as_nop
16664  if test -n "$ac_ct_MANIFEST_TOOL"; then
16665  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
16666else
16667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16668for as_dir in $PATH
16669do
16670  IFS=$as_save_IFS
16671  case $as_dir in #(((
16672    '') as_dir=./ ;;
16673    */) ;;
16674    *) as_dir=$as_dir/ ;;
16675  esac
16676    for ac_exec_ext in '' $ac_executable_extensions; do
16677  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16678    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
16679    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16680    break 2
16681  fi
16682done
16683  done
16684IFS=$as_save_IFS
16685
16686fi
16687fi
16688ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
16689if test -n "$ac_ct_MANIFEST_TOOL"; then
16690  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
16691printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
16692else
16693  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16694printf "%s\n" "no" >&6; }
16695fi
16696
16697  if test "x$ac_ct_MANIFEST_TOOL" = x; then
16698    MANIFEST_TOOL=":"
16699  else
16700    case $cross_compiling:$ac_tool_warned in
16701yes:)
16702{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16703printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16704ac_tool_warned=yes ;;
16705esac
16706    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
16707  fi
16708else
16709  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
16710fi
16711
16712test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
16713{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
16714printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
16715if test ${lt_cv_path_mainfest_tool+y}
16716then :
16717  printf %s "(cached) " >&6
16718else $as_nop
16719  lt_cv_path_mainfest_tool=no
16720  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
16721  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
16722  cat conftest.err >&5
16723  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
16724    lt_cv_path_mainfest_tool=yes
16725  fi
16726  rm -f conftest*
16727fi
16728{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
16729printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
16730if test yes != "$lt_cv_path_mainfest_tool"; then
16731  MANIFEST_TOOL=:
16732fi
16733
16734
16735
16736
16737
16738
16739  case $host_os in
16740    rhapsody* | darwin*)
16741    if test -n "$ac_tool_prefix"; then
16742  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
16743set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
16744{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16745printf %s "checking for $ac_word... " >&6; }
16746if test ${ac_cv_prog_DSYMUTIL+y}
16747then :
16748  printf %s "(cached) " >&6
16749else $as_nop
16750  if test -n "$DSYMUTIL"; then
16751  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
16752else
16753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16754for as_dir in $PATH
16755do
16756  IFS=$as_save_IFS
16757  case $as_dir in #(((
16758    '') as_dir=./ ;;
16759    */) ;;
16760    *) as_dir=$as_dir/ ;;
16761  esac
16762    for ac_exec_ext in '' $ac_executable_extensions; do
16763  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16764    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
16765    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16766    break 2
16767  fi
16768done
16769  done
16770IFS=$as_save_IFS
16771
16772fi
16773fi
16774DSYMUTIL=$ac_cv_prog_DSYMUTIL
16775if test -n "$DSYMUTIL"; then
16776  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
16777printf "%s\n" "$DSYMUTIL" >&6; }
16778else
16779  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16780printf "%s\n" "no" >&6; }
16781fi
16782
16783
16784fi
16785if test -z "$ac_cv_prog_DSYMUTIL"; then
16786  ac_ct_DSYMUTIL=$DSYMUTIL
16787  # Extract the first word of "dsymutil", so it can be a program name with args.
16788set dummy dsymutil; ac_word=$2
16789{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16790printf %s "checking for $ac_word... " >&6; }
16791if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
16792then :
16793  printf %s "(cached) " >&6
16794else $as_nop
16795  if test -n "$ac_ct_DSYMUTIL"; then
16796  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
16797else
16798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16799for as_dir in $PATH
16800do
16801  IFS=$as_save_IFS
16802  case $as_dir in #(((
16803    '') as_dir=./ ;;
16804    */) ;;
16805    *) as_dir=$as_dir/ ;;
16806  esac
16807    for ac_exec_ext in '' $ac_executable_extensions; do
16808  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16809    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
16810    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16811    break 2
16812  fi
16813done
16814  done
16815IFS=$as_save_IFS
16816
16817fi
16818fi
16819ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
16820if test -n "$ac_ct_DSYMUTIL"; then
16821  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
16822printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
16823else
16824  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16825printf "%s\n" "no" >&6; }
16826fi
16827
16828  if test "x$ac_ct_DSYMUTIL" = x; then
16829    DSYMUTIL=":"
16830  else
16831    case $cross_compiling:$ac_tool_warned in
16832yes:)
16833{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16834printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16835ac_tool_warned=yes ;;
16836esac
16837    DSYMUTIL=$ac_ct_DSYMUTIL
16838  fi
16839else
16840  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
16841fi
16842
16843    if test -n "$ac_tool_prefix"; then
16844  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
16845set dummy ${ac_tool_prefix}nmedit; ac_word=$2
16846{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16847printf %s "checking for $ac_word... " >&6; }
16848if test ${ac_cv_prog_NMEDIT+y}
16849then :
16850  printf %s "(cached) " >&6
16851else $as_nop
16852  if test -n "$NMEDIT"; then
16853  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
16854else
16855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16856for as_dir in $PATH
16857do
16858  IFS=$as_save_IFS
16859  case $as_dir in #(((
16860    '') as_dir=./ ;;
16861    */) ;;
16862    *) as_dir=$as_dir/ ;;
16863  esac
16864    for ac_exec_ext in '' $ac_executable_extensions; do
16865  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16866    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
16867    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16868    break 2
16869  fi
16870done
16871  done
16872IFS=$as_save_IFS
16873
16874fi
16875fi
16876NMEDIT=$ac_cv_prog_NMEDIT
16877if test -n "$NMEDIT"; then
16878  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
16879printf "%s\n" "$NMEDIT" >&6; }
16880else
16881  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16882printf "%s\n" "no" >&6; }
16883fi
16884
16885
16886fi
16887if test -z "$ac_cv_prog_NMEDIT"; then
16888  ac_ct_NMEDIT=$NMEDIT
16889  # Extract the first word of "nmedit", so it can be a program name with args.
16890set dummy nmedit; ac_word=$2
16891{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16892printf %s "checking for $ac_word... " >&6; }
16893if test ${ac_cv_prog_ac_ct_NMEDIT+y}
16894then :
16895  printf %s "(cached) " >&6
16896else $as_nop
16897  if test -n "$ac_ct_NMEDIT"; then
16898  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
16899else
16900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16901for as_dir in $PATH
16902do
16903  IFS=$as_save_IFS
16904  case $as_dir in #(((
16905    '') as_dir=./ ;;
16906    */) ;;
16907    *) as_dir=$as_dir/ ;;
16908  esac
16909    for ac_exec_ext in '' $ac_executable_extensions; do
16910  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16911    ac_cv_prog_ac_ct_NMEDIT="nmedit"
16912    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16913    break 2
16914  fi
16915done
16916  done
16917IFS=$as_save_IFS
16918
16919fi
16920fi
16921ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
16922if test -n "$ac_ct_NMEDIT"; then
16923  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
16924printf "%s\n" "$ac_ct_NMEDIT" >&6; }
16925else
16926  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16927printf "%s\n" "no" >&6; }
16928fi
16929
16930  if test "x$ac_ct_NMEDIT" = x; then
16931    NMEDIT=":"
16932  else
16933    case $cross_compiling:$ac_tool_warned in
16934yes:)
16935{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16936printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16937ac_tool_warned=yes ;;
16938esac
16939    NMEDIT=$ac_ct_NMEDIT
16940  fi
16941else
16942  NMEDIT="$ac_cv_prog_NMEDIT"
16943fi
16944
16945    if test -n "$ac_tool_prefix"; then
16946  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
16947set dummy ${ac_tool_prefix}lipo; ac_word=$2
16948{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16949printf %s "checking for $ac_word... " >&6; }
16950if test ${ac_cv_prog_LIPO+y}
16951then :
16952  printf %s "(cached) " >&6
16953else $as_nop
16954  if test -n "$LIPO"; then
16955  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
16956else
16957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16958for as_dir in $PATH
16959do
16960  IFS=$as_save_IFS
16961  case $as_dir in #(((
16962    '') as_dir=./ ;;
16963    */) ;;
16964    *) as_dir=$as_dir/ ;;
16965  esac
16966    for ac_exec_ext in '' $ac_executable_extensions; do
16967  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16968    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
16969    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16970    break 2
16971  fi
16972done
16973  done
16974IFS=$as_save_IFS
16975
16976fi
16977fi
16978LIPO=$ac_cv_prog_LIPO
16979if test -n "$LIPO"; then
16980  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
16981printf "%s\n" "$LIPO" >&6; }
16982else
16983  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16984printf "%s\n" "no" >&6; }
16985fi
16986
16987
16988fi
16989if test -z "$ac_cv_prog_LIPO"; then
16990  ac_ct_LIPO=$LIPO
16991  # Extract the first word of "lipo", so it can be a program name with args.
16992set dummy lipo; ac_word=$2
16993{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16994printf %s "checking for $ac_word... " >&6; }
16995if test ${ac_cv_prog_ac_ct_LIPO+y}
16996then :
16997  printf %s "(cached) " >&6
16998else $as_nop
16999  if test -n "$ac_ct_LIPO"; then
17000  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
17001else
17002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17003for as_dir in $PATH
17004do
17005  IFS=$as_save_IFS
17006  case $as_dir in #(((
17007    '') as_dir=./ ;;
17008    */) ;;
17009    *) as_dir=$as_dir/ ;;
17010  esac
17011    for ac_exec_ext in '' $ac_executable_extensions; do
17012  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17013    ac_cv_prog_ac_ct_LIPO="lipo"
17014    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17015    break 2
17016  fi
17017done
17018  done
17019IFS=$as_save_IFS
17020
17021fi
17022fi
17023ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
17024if test -n "$ac_ct_LIPO"; then
17025  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
17026printf "%s\n" "$ac_ct_LIPO" >&6; }
17027else
17028  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17029printf "%s\n" "no" >&6; }
17030fi
17031
17032  if test "x$ac_ct_LIPO" = x; then
17033    LIPO=":"
17034  else
17035    case $cross_compiling:$ac_tool_warned in
17036yes:)
17037{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17038printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17039ac_tool_warned=yes ;;
17040esac
17041    LIPO=$ac_ct_LIPO
17042  fi
17043else
17044  LIPO="$ac_cv_prog_LIPO"
17045fi
17046
17047    if test -n "$ac_tool_prefix"; then
17048  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
17049set dummy ${ac_tool_prefix}otool; ac_word=$2
17050{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17051printf %s "checking for $ac_word... " >&6; }
17052if test ${ac_cv_prog_OTOOL+y}
17053then :
17054  printf %s "(cached) " >&6
17055else $as_nop
17056  if test -n "$OTOOL"; then
17057  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
17058else
17059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17060for as_dir in $PATH
17061do
17062  IFS=$as_save_IFS
17063  case $as_dir in #(((
17064    '') as_dir=./ ;;
17065    */) ;;
17066    *) as_dir=$as_dir/ ;;
17067  esac
17068    for ac_exec_ext in '' $ac_executable_extensions; do
17069  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17070    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
17071    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17072    break 2
17073  fi
17074done
17075  done
17076IFS=$as_save_IFS
17077
17078fi
17079fi
17080OTOOL=$ac_cv_prog_OTOOL
17081if test -n "$OTOOL"; then
17082  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
17083printf "%s\n" "$OTOOL" >&6; }
17084else
17085  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17086printf "%s\n" "no" >&6; }
17087fi
17088
17089
17090fi
17091if test -z "$ac_cv_prog_OTOOL"; then
17092  ac_ct_OTOOL=$OTOOL
17093  # Extract the first word of "otool", so it can be a program name with args.
17094set dummy otool; ac_word=$2
17095{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17096printf %s "checking for $ac_word... " >&6; }
17097if test ${ac_cv_prog_ac_ct_OTOOL+y}
17098then :
17099  printf %s "(cached) " >&6
17100else $as_nop
17101  if test -n "$ac_ct_OTOOL"; then
17102  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
17103else
17104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17105for as_dir in $PATH
17106do
17107  IFS=$as_save_IFS
17108  case $as_dir in #(((
17109    '') as_dir=./ ;;
17110    */) ;;
17111    *) as_dir=$as_dir/ ;;
17112  esac
17113    for ac_exec_ext in '' $ac_executable_extensions; do
17114  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17115    ac_cv_prog_ac_ct_OTOOL="otool"
17116    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17117    break 2
17118  fi
17119done
17120  done
17121IFS=$as_save_IFS
17122
17123fi
17124fi
17125ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
17126if test -n "$ac_ct_OTOOL"; then
17127  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
17128printf "%s\n" "$ac_ct_OTOOL" >&6; }
17129else
17130  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17131printf "%s\n" "no" >&6; }
17132fi
17133
17134  if test "x$ac_ct_OTOOL" = x; then
17135    OTOOL=":"
17136  else
17137    case $cross_compiling:$ac_tool_warned in
17138yes:)
17139{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17140printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17141ac_tool_warned=yes ;;
17142esac
17143    OTOOL=$ac_ct_OTOOL
17144  fi
17145else
17146  OTOOL="$ac_cv_prog_OTOOL"
17147fi
17148
17149    if test -n "$ac_tool_prefix"; then
17150  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
17151set dummy ${ac_tool_prefix}otool64; ac_word=$2
17152{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17153printf %s "checking for $ac_word... " >&6; }
17154if test ${ac_cv_prog_OTOOL64+y}
17155then :
17156  printf %s "(cached) " >&6
17157else $as_nop
17158  if test -n "$OTOOL64"; then
17159  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
17160else
17161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17162for as_dir in $PATH
17163do
17164  IFS=$as_save_IFS
17165  case $as_dir in #(((
17166    '') as_dir=./ ;;
17167    */) ;;
17168    *) as_dir=$as_dir/ ;;
17169  esac
17170    for ac_exec_ext in '' $ac_executable_extensions; do
17171  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17172    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
17173    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17174    break 2
17175  fi
17176done
17177  done
17178IFS=$as_save_IFS
17179
17180fi
17181fi
17182OTOOL64=$ac_cv_prog_OTOOL64
17183if test -n "$OTOOL64"; then
17184  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
17185printf "%s\n" "$OTOOL64" >&6; }
17186else
17187  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17188printf "%s\n" "no" >&6; }
17189fi
17190
17191
17192fi
17193if test -z "$ac_cv_prog_OTOOL64"; then
17194  ac_ct_OTOOL64=$OTOOL64
17195  # Extract the first word of "otool64", so it can be a program name with args.
17196set dummy otool64; ac_word=$2
17197{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17198printf %s "checking for $ac_word... " >&6; }
17199if test ${ac_cv_prog_ac_ct_OTOOL64+y}
17200then :
17201  printf %s "(cached) " >&6
17202else $as_nop
17203  if test -n "$ac_ct_OTOOL64"; then
17204  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
17205else
17206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17207for as_dir in $PATH
17208do
17209  IFS=$as_save_IFS
17210  case $as_dir in #(((
17211    '') as_dir=./ ;;
17212    */) ;;
17213    *) as_dir=$as_dir/ ;;
17214  esac
17215    for ac_exec_ext in '' $ac_executable_extensions; do
17216  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17217    ac_cv_prog_ac_ct_OTOOL64="otool64"
17218    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17219    break 2
17220  fi
17221done
17222  done
17223IFS=$as_save_IFS
17224
17225fi
17226fi
17227ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
17228if test -n "$ac_ct_OTOOL64"; then
17229  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
17230printf "%s\n" "$ac_ct_OTOOL64" >&6; }
17231else
17232  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17233printf "%s\n" "no" >&6; }
17234fi
17235
17236  if test "x$ac_ct_OTOOL64" = x; then
17237    OTOOL64=":"
17238  else
17239    case $cross_compiling:$ac_tool_warned in
17240yes:)
17241{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17242printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17243ac_tool_warned=yes ;;
17244esac
17245    OTOOL64=$ac_ct_OTOOL64
17246  fi
17247else
17248  OTOOL64="$ac_cv_prog_OTOOL64"
17249fi
17250
17251
17252
17253
17254
17255
17256
17257
17258
17259
17260
17261
17262
17263
17264
17265
17266
17267
17268
17269
17270
17271
17272
17273
17274
17275
17276
17277    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
17278printf %s "checking for -single_module linker flag... " >&6; }
17279if test ${lt_cv_apple_cc_single_mod+y}
17280then :
17281  printf %s "(cached) " >&6
17282else $as_nop
17283  lt_cv_apple_cc_single_mod=no
17284      if test -z "$LT_MULTI_MODULE"; then
17285	# By default we will add the -single_module flag. You can override
17286	# by either setting the environment variable LT_MULTI_MODULE
17287	# non-empty at configure time, or by adding -multi_module to the
17288	# link flags.
17289	rm -rf libconftest.dylib*
17290	echo "int foo(void){return 1;}" > conftest.c
17291	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
17292-dynamiclib -Wl,-single_module conftest.c" >&5
17293	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
17294	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
17295        _lt_result=$?
17296	# If there is a non-empty error log, and "single_module"
17297	# appears in it, assume the flag caused a linker warning
17298        if test -s conftest.err && $GREP single_module conftest.err; then
17299	  cat conftest.err >&5
17300	# Otherwise, if the output was created with a 0 exit code from
17301	# the compiler, it worked.
17302	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
17303	  lt_cv_apple_cc_single_mod=yes
17304	else
17305	  cat conftest.err >&5
17306	fi
17307	rm -rf libconftest.dylib*
17308	rm -f conftest.*
17309      fi
17310fi
17311{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
17312printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
17313
17314    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
17315printf %s "checking for -exported_symbols_list linker flag... " >&6; }
17316if test ${lt_cv_ld_exported_symbols_list+y}
17317then :
17318  printf %s "(cached) " >&6
17319else $as_nop
17320  lt_cv_ld_exported_symbols_list=no
17321      save_LDFLAGS=$LDFLAGS
17322      echo "_main" > conftest.sym
17323      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
17324      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17325/* end confdefs.h.  */
17326
17327int
17328main (void)
17329{
17330
17331  ;
17332  return 0;
17333}
17334_ACEOF
17335if ac_fn_c_try_link "$LINENO"
17336then :
17337  lt_cv_ld_exported_symbols_list=yes
17338else $as_nop
17339  lt_cv_ld_exported_symbols_list=no
17340fi
17341rm -f core conftest.err conftest.$ac_objext conftest.beam \
17342    conftest$ac_exeext conftest.$ac_ext
17343	LDFLAGS=$save_LDFLAGS
17344
17345fi
17346{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
17347printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
17348
17349    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
17350printf %s "checking for -force_load linker flag... " >&6; }
17351if test ${lt_cv_ld_force_load+y}
17352then :
17353  printf %s "(cached) " >&6
17354else $as_nop
17355  lt_cv_ld_force_load=no
17356      cat > conftest.c << _LT_EOF
17357int forced_loaded() { return 2;}
17358_LT_EOF
17359      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
17360      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
17361      echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
17362      $AR $AR_FLAGS libconftest.a conftest.o 2>&5
17363      echo "$RANLIB libconftest.a" >&5
17364      $RANLIB libconftest.a 2>&5
17365      cat > conftest.c << _LT_EOF
17366int main() { return 0;}
17367_LT_EOF
17368      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
17369      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
17370      _lt_result=$?
17371      if test -s conftest.err && $GREP force_load conftest.err; then
17372	cat conftest.err >&5
17373      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
17374	lt_cv_ld_force_load=yes
17375      else
17376	cat conftest.err >&5
17377      fi
17378        rm -f conftest.err libconftest.a conftest conftest.c
17379        rm -rf conftest.dSYM
17380
17381fi
17382{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
17383printf "%s\n" "$lt_cv_ld_force_load" >&6; }
17384    case $host_os in
17385    rhapsody* | darwin1.[012])
17386      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
17387    darwin1.*)
17388      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
17389    darwin*)
17390      case $MACOSX_DEPLOYMENT_TARGET,$host in
17391        10.[012],*|,*powerpc*-darwin[5-8]*)
17392          _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
17393        *)
17394          _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
17395      esac
17396    ;;
17397  esac
17398    if test yes = "$lt_cv_apple_cc_single_mod"; then
17399      _lt_dar_single_mod='$single_module'
17400    fi
17401    if test yes = "$lt_cv_ld_exported_symbols_list"; then
17402      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
17403    else
17404      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
17405    fi
17406    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
17407      _lt_dsymutil='~$DSYMUTIL $lib || :'
17408    else
17409      _lt_dsymutil=
17410    fi
17411    ;;
17412  esac
17413
17414# func_munge_path_list VARIABLE PATH
17415# -----------------------------------
17416# VARIABLE is name of variable containing _space_ separated list of
17417# directories to be munged by the contents of PATH, which is string
17418# having a format:
17419# "DIR[:DIR]:"
17420#       string "DIR[ DIR]" will be prepended to VARIABLE
17421# ":DIR[:DIR]"
17422#       string "DIR[ DIR]" will be appended to VARIABLE
17423# "DIRP[:DIRP]::[DIRA:]DIRA"
17424#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
17425#       "DIRA[ DIRA]" will be appended to VARIABLE
17426# "DIR[:DIR]"
17427#       VARIABLE will be replaced by "DIR[ DIR]"
17428func_munge_path_list ()
17429{
17430    case x$2 in
17431    x)
17432        ;;
17433    *:)
17434        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
17435        ;;
17436    x:*)
17437        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
17438        ;;
17439    *::*)
17440        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
17441        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
17442        ;;
17443    *)
17444        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
17445        ;;
17446    esac
17447}
17448
17449ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
17450"
17451if test "x$ac_cv_header_dlfcn_h" = xyes
17452then :
17453  printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
17454
17455fi
17456
17457
17458
17459
17460
17461# Set options
17462# Check whether --enable-static was given.
17463if test ${enable_static+y}
17464then :
17465  enableval=$enable_static; p=${PACKAGE-default}
17466    case $enableval in
17467    yes) enable_static=yes ;;
17468    no) enable_static=no ;;
17469    *)
17470     enable_static=no
17471      # Look at the argument we got.  We use all the common list separators.
17472      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
17473      for pkg in $enableval; do
17474	IFS=$lt_save_ifs
17475	if test "X$pkg" = "X$p"; then
17476	  enable_static=yes
17477	fi
17478      done
17479      IFS=$lt_save_ifs
17480      ;;
17481    esac
17482else $as_nop
17483  enable_static=no
17484fi
17485
17486
17487
17488
17489
17490
17491
17492enable_win32_dll=yes
17493
17494case $host in
17495*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
17496  if test -n "$ac_tool_prefix"; then
17497  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
17498set dummy ${ac_tool_prefix}as; ac_word=$2
17499{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17500printf %s "checking for $ac_word... " >&6; }
17501if test ${ac_cv_prog_AS+y}
17502then :
17503  printf %s "(cached) " >&6
17504else $as_nop
17505  if test -n "$AS"; then
17506  ac_cv_prog_AS="$AS" # Let the user override the test.
17507else
17508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17509for as_dir in $PATH
17510do
17511  IFS=$as_save_IFS
17512  case $as_dir in #(((
17513    '') as_dir=./ ;;
17514    */) ;;
17515    *) as_dir=$as_dir/ ;;
17516  esac
17517    for ac_exec_ext in '' $ac_executable_extensions; do
17518  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17519    ac_cv_prog_AS="${ac_tool_prefix}as"
17520    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17521    break 2
17522  fi
17523done
17524  done
17525IFS=$as_save_IFS
17526
17527fi
17528fi
17529AS=$ac_cv_prog_AS
17530if test -n "$AS"; then
17531  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
17532printf "%s\n" "$AS" >&6; }
17533else
17534  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17535printf "%s\n" "no" >&6; }
17536fi
17537
17538
17539fi
17540if test -z "$ac_cv_prog_AS"; then
17541  ac_ct_AS=$AS
17542  # Extract the first word of "as", so it can be a program name with args.
17543set dummy as; ac_word=$2
17544{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17545printf %s "checking for $ac_word... " >&6; }
17546if test ${ac_cv_prog_ac_ct_AS+y}
17547then :
17548  printf %s "(cached) " >&6
17549else $as_nop
17550  if test -n "$ac_ct_AS"; then
17551  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
17552else
17553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17554for as_dir in $PATH
17555do
17556  IFS=$as_save_IFS
17557  case $as_dir in #(((
17558    '') as_dir=./ ;;
17559    */) ;;
17560    *) as_dir=$as_dir/ ;;
17561  esac
17562    for ac_exec_ext in '' $ac_executable_extensions; do
17563  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17564    ac_cv_prog_ac_ct_AS="as"
17565    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17566    break 2
17567  fi
17568done
17569  done
17570IFS=$as_save_IFS
17571
17572fi
17573fi
17574ac_ct_AS=$ac_cv_prog_ac_ct_AS
17575if test -n "$ac_ct_AS"; then
17576  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
17577printf "%s\n" "$ac_ct_AS" >&6; }
17578else
17579  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17580printf "%s\n" "no" >&6; }
17581fi
17582
17583  if test "x$ac_ct_AS" = x; then
17584    AS="false"
17585  else
17586    case $cross_compiling:$ac_tool_warned in
17587yes:)
17588{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17589printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17590ac_tool_warned=yes ;;
17591esac
17592    AS=$ac_ct_AS
17593  fi
17594else
17595  AS="$ac_cv_prog_AS"
17596fi
17597
17598  if test -n "$ac_tool_prefix"; then
17599  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
17600set dummy ${ac_tool_prefix}dlltool; ac_word=$2
17601{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17602printf %s "checking for $ac_word... " >&6; }
17603if test ${ac_cv_prog_DLLTOOL+y}
17604then :
17605  printf %s "(cached) " >&6
17606else $as_nop
17607  if test -n "$DLLTOOL"; then
17608  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
17609else
17610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17611for as_dir in $PATH
17612do
17613  IFS=$as_save_IFS
17614  case $as_dir in #(((
17615    '') as_dir=./ ;;
17616    */) ;;
17617    *) as_dir=$as_dir/ ;;
17618  esac
17619    for ac_exec_ext in '' $ac_executable_extensions; do
17620  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17621    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
17622    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17623    break 2
17624  fi
17625done
17626  done
17627IFS=$as_save_IFS
17628
17629fi
17630fi
17631DLLTOOL=$ac_cv_prog_DLLTOOL
17632if test -n "$DLLTOOL"; then
17633  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
17634printf "%s\n" "$DLLTOOL" >&6; }
17635else
17636  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17637printf "%s\n" "no" >&6; }
17638fi
17639
17640
17641fi
17642if test -z "$ac_cv_prog_DLLTOOL"; then
17643  ac_ct_DLLTOOL=$DLLTOOL
17644  # Extract the first word of "dlltool", so it can be a program name with args.
17645set dummy dlltool; ac_word=$2
17646{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17647printf %s "checking for $ac_word... " >&6; }
17648if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
17649then :
17650  printf %s "(cached) " >&6
17651else $as_nop
17652  if test -n "$ac_ct_DLLTOOL"; then
17653  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
17654else
17655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17656for as_dir in $PATH
17657do
17658  IFS=$as_save_IFS
17659  case $as_dir in #(((
17660    '') as_dir=./ ;;
17661    */) ;;
17662    *) as_dir=$as_dir/ ;;
17663  esac
17664    for ac_exec_ext in '' $ac_executable_extensions; do
17665  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17666    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
17667    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17668    break 2
17669  fi
17670done
17671  done
17672IFS=$as_save_IFS
17673
17674fi
17675fi
17676ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
17677if test -n "$ac_ct_DLLTOOL"; then
17678  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
17679printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
17680else
17681  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17682printf "%s\n" "no" >&6; }
17683fi
17684
17685  if test "x$ac_ct_DLLTOOL" = x; then
17686    DLLTOOL="false"
17687  else
17688    case $cross_compiling:$ac_tool_warned in
17689yes:)
17690{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17691printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17692ac_tool_warned=yes ;;
17693esac
17694    DLLTOOL=$ac_ct_DLLTOOL
17695  fi
17696else
17697  DLLTOOL="$ac_cv_prog_DLLTOOL"
17698fi
17699
17700  if test -n "$ac_tool_prefix"; then
17701  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
17702set dummy ${ac_tool_prefix}objdump; ac_word=$2
17703{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17704printf %s "checking for $ac_word... " >&6; }
17705if test ${ac_cv_prog_OBJDUMP+y}
17706then :
17707  printf %s "(cached) " >&6
17708else $as_nop
17709  if test -n "$OBJDUMP"; then
17710  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
17711else
17712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17713for as_dir in $PATH
17714do
17715  IFS=$as_save_IFS
17716  case $as_dir in #(((
17717    '') as_dir=./ ;;
17718    */) ;;
17719    *) as_dir=$as_dir/ ;;
17720  esac
17721    for ac_exec_ext in '' $ac_executable_extensions; do
17722  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17723    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
17724    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17725    break 2
17726  fi
17727done
17728  done
17729IFS=$as_save_IFS
17730
17731fi
17732fi
17733OBJDUMP=$ac_cv_prog_OBJDUMP
17734if test -n "$OBJDUMP"; then
17735  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
17736printf "%s\n" "$OBJDUMP" >&6; }
17737else
17738  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17739printf "%s\n" "no" >&6; }
17740fi
17741
17742
17743fi
17744if test -z "$ac_cv_prog_OBJDUMP"; then
17745  ac_ct_OBJDUMP=$OBJDUMP
17746  # Extract the first word of "objdump", so it can be a program name with args.
17747set dummy objdump; ac_word=$2
17748{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17749printf %s "checking for $ac_word... " >&6; }
17750if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
17751then :
17752  printf %s "(cached) " >&6
17753else $as_nop
17754  if test -n "$ac_ct_OBJDUMP"; then
17755  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
17756else
17757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17758for as_dir in $PATH
17759do
17760  IFS=$as_save_IFS
17761  case $as_dir in #(((
17762    '') as_dir=./ ;;
17763    */) ;;
17764    *) as_dir=$as_dir/ ;;
17765  esac
17766    for ac_exec_ext in '' $ac_executable_extensions; do
17767  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17768    ac_cv_prog_ac_ct_OBJDUMP="objdump"
17769    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17770    break 2
17771  fi
17772done
17773  done
17774IFS=$as_save_IFS
17775
17776fi
17777fi
17778ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
17779if test -n "$ac_ct_OBJDUMP"; then
17780  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
17781printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
17782else
17783  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17784printf "%s\n" "no" >&6; }
17785fi
17786
17787  if test "x$ac_ct_OBJDUMP" = x; then
17788    OBJDUMP="false"
17789  else
17790    case $cross_compiling:$ac_tool_warned in
17791yes:)
17792{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17793printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17794ac_tool_warned=yes ;;
17795esac
17796    OBJDUMP=$ac_ct_OBJDUMP
17797  fi
17798else
17799  OBJDUMP="$ac_cv_prog_OBJDUMP"
17800fi
17801
17802  ;;
17803esac
17804
17805test -z "$AS" && AS=as
17806
17807
17808
17809
17810
17811test -z "$DLLTOOL" && DLLTOOL=dlltool
17812
17813
17814
17815
17816
17817test -z "$OBJDUMP" && OBJDUMP=objdump
17818
17819
17820
17821
17822
17823
17824
17825        enable_dlopen=no
17826
17827
17828
17829            # Check whether --enable-shared was given.
17830if test ${enable_shared+y}
17831then :
17832  enableval=$enable_shared; p=${PACKAGE-default}
17833    case $enableval in
17834    yes) enable_shared=yes ;;
17835    no) enable_shared=no ;;
17836    *)
17837      enable_shared=no
17838      # Look at the argument we got.  We use all the common list separators.
17839      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
17840      for pkg in $enableval; do
17841	IFS=$lt_save_ifs
17842	if test "X$pkg" = "X$p"; then
17843	  enable_shared=yes
17844	fi
17845      done
17846      IFS=$lt_save_ifs
17847      ;;
17848    esac
17849else $as_nop
17850  enable_shared=yes
17851fi
17852
17853
17854
17855
17856
17857
17858
17859
17860
17861
17862
17863# Check whether --with-pic was given.
17864if test ${with_pic+y}
17865then :
17866  withval=$with_pic; lt_p=${PACKAGE-default}
17867    case $withval in
17868    yes|no) pic_mode=$withval ;;
17869    *)
17870      pic_mode=default
17871      # Look at the argument we got.  We use all the common list separators.
17872      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
17873      for lt_pkg in $withval; do
17874	IFS=$lt_save_ifs
17875	if test "X$lt_pkg" = "X$lt_p"; then
17876	  pic_mode=yes
17877	fi
17878      done
17879      IFS=$lt_save_ifs
17880      ;;
17881    esac
17882else $as_nop
17883  pic_mode=default
17884fi
17885
17886
17887
17888
17889
17890
17891
17892
17893  # Check whether --enable-fast-install was given.
17894if test ${enable_fast_install+y}
17895then :
17896  enableval=$enable_fast_install; p=${PACKAGE-default}
17897    case $enableval in
17898    yes) enable_fast_install=yes ;;
17899    no) enable_fast_install=no ;;
17900    *)
17901      enable_fast_install=no
17902      # Look at the argument we got.  We use all the common list separators.
17903      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
17904      for pkg in $enableval; do
17905	IFS=$lt_save_ifs
17906	if test "X$pkg" = "X$p"; then
17907	  enable_fast_install=yes
17908	fi
17909      done
17910      IFS=$lt_save_ifs
17911      ;;
17912    esac
17913else $as_nop
17914  enable_fast_install=yes
17915fi
17916
17917
17918
17919
17920
17921
17922
17923
17924  shared_archive_member_spec=
17925case $host,$enable_shared in
17926power*-*-aix[5-9]*,yes)
17927  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
17928printf %s "checking which variant of shared library versioning to provide... " >&6; }
17929
17930# Check whether --with-aix-soname was given.
17931if test ${with_aix_soname+y}
17932then :
17933  withval=$with_aix_soname; case $withval in
17934    aix|svr4|both)
17935      ;;
17936    *)
17937      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
17938      ;;
17939    esac
17940    lt_cv_with_aix_soname=$with_aix_soname
17941else $as_nop
17942  if test ${lt_cv_with_aix_soname+y}
17943then :
17944  printf %s "(cached) " >&6
17945else $as_nop
17946  lt_cv_with_aix_soname=aix
17947fi
17948
17949    with_aix_soname=$lt_cv_with_aix_soname
17950fi
17951
17952  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
17953printf "%s\n" "$with_aix_soname" >&6; }
17954  if test aix != "$with_aix_soname"; then
17955    # For the AIX way of multilib, we name the shared archive member
17956    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
17957    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
17958    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
17959    # the AIX toolchain works better with OBJECT_MODE set (default 32).
17960    if test 64 = "${OBJECT_MODE-32}"; then
17961      shared_archive_member_spec=shr_64
17962    else
17963      shared_archive_member_spec=shr
17964    fi
17965  fi
17966  ;;
17967*)
17968  with_aix_soname=aix
17969  ;;
17970esac
17971
17972
17973
17974
17975
17976
17977
17978
17979
17980
17981# This can be used to rebuild libtool when needed
17982LIBTOOL_DEPS=$ltmain
17983
17984# Always use our own libtool.
17985LIBTOOL='$(SHELL) $(top_builddir)/libtool'
17986
17987
17988
17989
17990
17991
17992
17993
17994
17995
17996
17997
17998
17999
18000
18001
18002
18003
18004
18005
18006
18007
18008
18009
18010
18011
18012
18013
18014
18015
18016test -z "$LN_S" && LN_S="ln -s"
18017
18018
18019
18020
18021
18022
18023
18024
18025
18026
18027
18028
18029
18030
18031if test -n "${ZSH_VERSION+set}"; then
18032   setopt NO_GLOB_SUBST
18033fi
18034
18035{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
18036printf %s "checking for objdir... " >&6; }
18037if test ${lt_cv_objdir+y}
18038then :
18039  printf %s "(cached) " >&6
18040else $as_nop
18041  rm -f .libs 2>/dev/null
18042mkdir .libs 2>/dev/null
18043if test -d .libs; then
18044  lt_cv_objdir=.libs
18045else
18046  # MS-DOS does not allow filenames that begin with a dot.
18047  lt_cv_objdir=_libs
18048fi
18049rmdir .libs 2>/dev/null
18050fi
18051{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
18052printf "%s\n" "$lt_cv_objdir" >&6; }
18053objdir=$lt_cv_objdir
18054
18055
18056
18057
18058
18059printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
18060
18061
18062
18063
18064case $host_os in
18065aix3*)
18066  # AIX sometimes has problems with the GCC collect2 program.  For some
18067  # reason, if we set the COLLECT_NAMES environment variable, the problems
18068  # vanish in a puff of smoke.
18069  if test set != "${COLLECT_NAMES+set}"; then
18070    COLLECT_NAMES=
18071    export COLLECT_NAMES
18072  fi
18073  ;;
18074esac
18075
18076# Global variables:
18077ofile=libtool
18078can_build_shared=yes
18079
18080# All known linkers require a '.a' archive for static linking (except MSVC and
18081# ICC, which need '.lib').
18082libext=a
18083
18084with_gnu_ld=$lt_cv_prog_gnu_ld
18085
18086old_CC=$CC
18087old_CFLAGS=$CFLAGS
18088
18089# Set sane defaults for various variables
18090test -z "$CC" && CC=cc
18091test -z "$LTCC" && LTCC=$CC
18092test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
18093test -z "$LD" && LD=ld
18094test -z "$ac_objext" && ac_objext=o
18095
18096func_cc_basename $compiler
18097cc_basename=$func_cc_basename_result
18098
18099
18100# Only perform the check for file, if the check method requires it
18101test -z "$MAGIC_CMD" && MAGIC_CMD=file
18102case $deplibs_check_method in
18103file_magic*)
18104  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
18105    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
18106printf %s "checking for ${ac_tool_prefix}file... " >&6; }
18107if test ${lt_cv_path_MAGIC_CMD+y}
18108then :
18109  printf %s "(cached) " >&6
18110else $as_nop
18111  case $MAGIC_CMD in
18112[\\/*] |  ?:[\\/]*)
18113  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
18114  ;;
18115*)
18116  lt_save_MAGIC_CMD=$MAGIC_CMD
18117  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
18118  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
18119  for ac_dir in $ac_dummy; do
18120    IFS=$lt_save_ifs
18121    test -z "$ac_dir" && ac_dir=.
18122    if test -f "$ac_dir/${ac_tool_prefix}file"; then
18123      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
18124      if test -n "$file_magic_test_file"; then
18125	case $deplibs_check_method in
18126	"file_magic "*)
18127	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
18128	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
18129	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
18130	    $EGREP "$file_magic_regex" > /dev/null; then
18131	    :
18132	  else
18133	    cat <<_LT_EOF 1>&2
18134
18135*** Warning: the command libtool uses to detect shared libraries,
18136*** $file_magic_cmd, produces output that libtool cannot recognize.
18137*** The result is that libtool may fail to recognize shared libraries
18138*** as such.  This will affect the creation of libtool libraries that
18139*** depend on shared libraries, but programs linked with such libtool
18140*** libraries will work regardless of this problem.  Nevertheless, you
18141*** may want to report the problem to your system manager and/or to
18142*** bug-libtool@gnu.org
18143
18144_LT_EOF
18145	  fi ;;
18146	esac
18147      fi
18148      break
18149    fi
18150  done
18151  IFS=$lt_save_ifs
18152  MAGIC_CMD=$lt_save_MAGIC_CMD
18153  ;;
18154esac
18155fi
18156
18157MAGIC_CMD=$lt_cv_path_MAGIC_CMD
18158if test -n "$MAGIC_CMD"; then
18159  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
18160printf "%s\n" "$MAGIC_CMD" >&6; }
18161else
18162  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18163printf "%s\n" "no" >&6; }
18164fi
18165
18166
18167
18168
18169
18170if test -z "$lt_cv_path_MAGIC_CMD"; then
18171  if test -n "$ac_tool_prefix"; then
18172    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
18173printf %s "checking for file... " >&6; }
18174if test ${lt_cv_path_MAGIC_CMD+y}
18175then :
18176  printf %s "(cached) " >&6
18177else $as_nop
18178  case $MAGIC_CMD in
18179[\\/*] |  ?:[\\/]*)
18180  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
18181  ;;
18182*)
18183  lt_save_MAGIC_CMD=$MAGIC_CMD
18184  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
18185  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
18186  for ac_dir in $ac_dummy; do
18187    IFS=$lt_save_ifs
18188    test -z "$ac_dir" && ac_dir=.
18189    if test -f "$ac_dir/file"; then
18190      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
18191      if test -n "$file_magic_test_file"; then
18192	case $deplibs_check_method in
18193	"file_magic "*)
18194	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
18195	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
18196	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
18197	    $EGREP "$file_magic_regex" > /dev/null; then
18198	    :
18199	  else
18200	    cat <<_LT_EOF 1>&2
18201
18202*** Warning: the command libtool uses to detect shared libraries,
18203*** $file_magic_cmd, produces output that libtool cannot recognize.
18204*** The result is that libtool may fail to recognize shared libraries
18205*** as such.  This will affect the creation of libtool libraries that
18206*** depend on shared libraries, but programs linked with such libtool
18207*** libraries will work regardless of this problem.  Nevertheless, you
18208*** may want to report the problem to your system manager and/or to
18209*** bug-libtool@gnu.org
18210
18211_LT_EOF
18212	  fi ;;
18213	esac
18214      fi
18215      break
18216    fi
18217  done
18218  IFS=$lt_save_ifs
18219  MAGIC_CMD=$lt_save_MAGIC_CMD
18220  ;;
18221esac
18222fi
18223
18224MAGIC_CMD=$lt_cv_path_MAGIC_CMD
18225if test -n "$MAGIC_CMD"; then
18226  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
18227printf "%s\n" "$MAGIC_CMD" >&6; }
18228else
18229  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18230printf "%s\n" "no" >&6; }
18231fi
18232
18233
18234  else
18235    MAGIC_CMD=:
18236  fi
18237fi
18238
18239  fi
18240  ;;
18241esac
18242
18243# Use C for the default configuration in the libtool script
18244
18245lt_save_CC=$CC
18246ac_ext=c
18247ac_cpp='$CPP $CPPFLAGS'
18248ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18249ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18250ac_compiler_gnu=$ac_cv_c_compiler_gnu
18251
18252
18253# Source file extension for C test sources.
18254ac_ext=c
18255
18256# Object file extension for compiled C test sources.
18257objext=o
18258objext=$objext
18259
18260# Code to be used in simple compile tests
18261lt_simple_compile_test_code="int some_variable = 0;"
18262
18263# Code to be used in simple link tests
18264lt_simple_link_test_code='int main(){return(0);}'
18265
18266
18267
18268
18269
18270
18271
18272# If no C compiler was specified, use CC.
18273LTCC=${LTCC-"$CC"}
18274
18275# If no C compiler flags were specified, use CFLAGS.
18276LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18277
18278# Allow CC to be a program name with arguments.
18279compiler=$CC
18280
18281# Save the default compiler, since it gets overwritten when the other
18282# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
18283compiler_DEFAULT=$CC
18284
18285# save warnings/boilerplate of simple test code
18286ac_outfile=conftest.$ac_objext
18287echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18288eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18289_lt_compiler_boilerplate=`cat conftest.err`
18290$RM conftest*
18291
18292ac_outfile=conftest.$ac_objext
18293echo "$lt_simple_link_test_code" >conftest.$ac_ext
18294eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18295_lt_linker_boilerplate=`cat conftest.err`
18296$RM -r conftest*
18297
18298
18299## CAVEAT EMPTOR:
18300## There is no encapsulation within the following macros, do not change
18301## the running order or otherwise move them around unless you know exactly
18302## what you are doing...
18303if test -n "$compiler"; then
18304
18305lt_prog_compiler_no_builtin_flag=
18306
18307if test yes = "$GCC"; then
18308  case $cc_basename in
18309  nvcc*)
18310    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
18311  *)
18312    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
18313  esac
18314
18315  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
18316printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
18317if test ${lt_cv_prog_compiler_rtti_exceptions+y}
18318then :
18319  printf %s "(cached) " >&6
18320else $as_nop
18321  lt_cv_prog_compiler_rtti_exceptions=no
18322   ac_outfile=conftest.$ac_objext
18323   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18324   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
18325   # Insert the option either (1) after the last *FLAGS variable, or
18326   # (2) before a word containing "conftest.", or (3) at the end.
18327   # Note that $ac_compile itself does not contain backslashes and begins
18328   # with a dollar sign (not a hyphen), so the echo should work correctly.
18329   # The option is referenced via a variable to avoid confusing sed.
18330   lt_compile=`echo "$ac_compile" | $SED \
18331   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18332   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18333   -e 's:$: $lt_compiler_flag:'`
18334   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18335   (eval "$lt_compile" 2>conftest.err)
18336   ac_status=$?
18337   cat conftest.err >&5
18338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18339   if (exit $ac_status) && test -s "$ac_outfile"; then
18340     # The compiler can only warn and ignore the option if not recognized
18341     # So say no if there are warnings other than the usual output.
18342     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
18343     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18344     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18345       lt_cv_prog_compiler_rtti_exceptions=yes
18346     fi
18347   fi
18348   $RM conftest*
18349
18350fi
18351{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
18352printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
18353
18354if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
18355    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
18356else
18357    :
18358fi
18359
18360fi
18361
18362
18363
18364
18365
18366
18367  lt_prog_compiler_wl=
18368lt_prog_compiler_pic=
18369lt_prog_compiler_static=
18370
18371
18372  if test yes = "$GCC"; then
18373    lt_prog_compiler_wl='-Wl,'
18374    lt_prog_compiler_static='-static'
18375
18376    case $host_os in
18377      aix*)
18378      # All AIX code is PIC.
18379      if test ia64 = "$host_cpu"; then
18380	# AIX 5 now supports IA64 processor
18381	lt_prog_compiler_static='-Bstatic'
18382      fi
18383      lt_prog_compiler_pic='-fPIC'
18384      ;;
18385
18386    amigaos*)
18387      case $host_cpu in
18388      powerpc)
18389            # see comment about AmigaOS4 .so support
18390            lt_prog_compiler_pic='-fPIC'
18391        ;;
18392      m68k)
18393            # FIXME: we need at least 68020 code to build shared libraries, but
18394            # adding the '-m68020' flag to GCC prevents building anything better,
18395            # like '-m68040'.
18396            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
18397        ;;
18398      esac
18399      ;;
18400
18401    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18402      # PIC is the default for these OSes.
18403      ;;
18404
18405    mingw* | cygwin* | pw32* | os2* | cegcc*)
18406      # This hack is so that the source file can tell whether it is being
18407      # built for inclusion in a dll (and should export symbols for example).
18408      # Although the cygwin gcc ignores -fPIC, still need this for old-style
18409      # (--disable-auto-import) libraries
18410      lt_prog_compiler_pic='-DDLL_EXPORT'
18411      case $host_os in
18412      os2*)
18413	lt_prog_compiler_static='$wl-static'
18414	;;
18415      esac
18416      ;;
18417
18418    darwin* | rhapsody*)
18419      # PIC is the default on this platform
18420      # Common symbols not allowed in MH_DYLIB files
18421      lt_prog_compiler_pic='-fno-common'
18422      ;;
18423
18424    haiku*)
18425      # PIC is the default for Haiku.
18426      # The "-static" flag exists, but is broken.
18427      lt_prog_compiler_static=
18428      ;;
18429
18430    hpux*)
18431      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
18432      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
18433      # sets the default TLS model and affects inlining.
18434      case $host_cpu in
18435      hppa*64*)
18436	# +Z the default
18437	;;
18438      *)
18439	lt_prog_compiler_pic='-fPIC'
18440	;;
18441      esac
18442      ;;
18443
18444    interix[3-9]*)
18445      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18446      # Instead, we relocate shared libraries at runtime.
18447      ;;
18448
18449    msdosdjgpp*)
18450      # Just because we use GCC doesn't mean we suddenly get shared libraries
18451      # on systems that don't support them.
18452      lt_prog_compiler_can_build_shared=no
18453      enable_shared=no
18454      ;;
18455
18456    *nto* | *qnx*)
18457      # QNX uses GNU C++, but need to define -shared option too, otherwise
18458      # it will coredump.
18459      lt_prog_compiler_pic='-fPIC -shared'
18460      ;;
18461
18462    sysv4*MP*)
18463      if test -d /usr/nec; then
18464	lt_prog_compiler_pic=-Kconform_pic
18465      fi
18466      ;;
18467
18468    *)
18469      lt_prog_compiler_pic='-fPIC'
18470      ;;
18471    esac
18472
18473    case $cc_basename in
18474    nvcc*) # Cuda Compiler Driver 2.2
18475      lt_prog_compiler_wl='-Xlinker '
18476      if test -n "$lt_prog_compiler_pic"; then
18477        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
18478      fi
18479      ;;
18480    esac
18481  else
18482    # PORTME Check for flag to pass linker flags through the system compiler.
18483    case $host_os in
18484    aix*)
18485      lt_prog_compiler_wl='-Wl,'
18486      if test ia64 = "$host_cpu"; then
18487	# AIX 5 now supports IA64 processor
18488	lt_prog_compiler_static='-Bstatic'
18489      else
18490	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
18491      fi
18492      ;;
18493
18494    darwin* | rhapsody*)
18495      # PIC is the default on this platform
18496      # Common symbols not allowed in MH_DYLIB files
18497      lt_prog_compiler_pic='-fno-common'
18498      case $cc_basename in
18499      nagfor*)
18500        # NAG Fortran compiler
18501        lt_prog_compiler_wl='-Wl,-Wl,,'
18502        lt_prog_compiler_pic='-PIC'
18503        lt_prog_compiler_static='-Bstatic'
18504        ;;
18505      esac
18506      ;;
18507
18508    mingw* | cygwin* | pw32* | os2* | cegcc*)
18509      # This hack is so that the source file can tell whether it is being
18510      # built for inclusion in a dll (and should export symbols for example).
18511      lt_prog_compiler_pic='-DDLL_EXPORT'
18512      case $host_os in
18513      os2*)
18514	lt_prog_compiler_static='$wl-static'
18515	;;
18516      esac
18517      ;;
18518
18519    hpux9* | hpux10* | hpux11*)
18520      lt_prog_compiler_wl='-Wl,'
18521      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18522      # not for PA HP-UX.
18523      case $host_cpu in
18524      hppa*64*|ia64*)
18525	# +Z the default
18526	;;
18527      *)
18528	lt_prog_compiler_pic='+Z'
18529	;;
18530      esac
18531      # Is there a better lt_prog_compiler_static that works with the bundled CC?
18532      lt_prog_compiler_static='$wl-a ${wl}archive'
18533      ;;
18534
18535    irix5* | irix6* | nonstopux*)
18536      lt_prog_compiler_wl='-Wl,'
18537      # PIC (with -KPIC) is the default.
18538      lt_prog_compiler_static='-non_shared'
18539      ;;
18540
18541    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
18542      case $cc_basename in
18543      # old Intel for x86_64, which still supported -KPIC.
18544      ecc*)
18545	lt_prog_compiler_wl='-Wl,'
18546	lt_prog_compiler_pic='-KPIC'
18547	lt_prog_compiler_static='-static'
18548        ;;
18549      # icc used to be incompatible with GCC.
18550      # ICC 10 doesn't accept -KPIC any more.
18551      icc* | ifort*)
18552	lt_prog_compiler_wl='-Wl,'
18553	lt_prog_compiler_pic='-fPIC'
18554	lt_prog_compiler_static='-static'
18555        ;;
18556      # Lahey Fortran 8.1.
18557      lf95*)
18558	lt_prog_compiler_wl='-Wl,'
18559	lt_prog_compiler_pic='--shared'
18560	lt_prog_compiler_static='--static'
18561	;;
18562      nagfor*)
18563	# NAG Fortran compiler
18564	lt_prog_compiler_wl='-Wl,-Wl,,'
18565	lt_prog_compiler_pic='-PIC'
18566	lt_prog_compiler_static='-Bstatic'
18567	;;
18568      tcc*)
18569	# Fabrice Bellard et al's Tiny C Compiler
18570	lt_prog_compiler_wl='-Wl,'
18571	lt_prog_compiler_pic='-fPIC'
18572	lt_prog_compiler_static='-static'
18573	;;
18574      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
18575        # Portland Group compilers (*not* the Pentium gcc compiler,
18576	# which looks to be a dead project)
18577	lt_prog_compiler_wl='-Wl,'
18578	lt_prog_compiler_pic='-fpic'
18579	lt_prog_compiler_static='-Bstatic'
18580        ;;
18581      ccc*)
18582        lt_prog_compiler_wl='-Wl,'
18583        # All Alpha code is PIC.
18584        lt_prog_compiler_static='-non_shared'
18585        ;;
18586      xl* | bgxl* | bgf* | mpixl*)
18587	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
18588	lt_prog_compiler_wl='-Wl,'
18589	lt_prog_compiler_pic='-qpic'
18590	lt_prog_compiler_static='-qstaticlink'
18591	;;
18592      *)
18593	case `$CC -V 2>&1 | $SED 5q` in
18594	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
18595	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
18596	  lt_prog_compiler_pic='-KPIC'
18597	  lt_prog_compiler_static='-Bstatic'
18598	  lt_prog_compiler_wl=''
18599	  ;;
18600	*Sun\ F* | *Sun*Fortran*)
18601	  lt_prog_compiler_pic='-KPIC'
18602	  lt_prog_compiler_static='-Bstatic'
18603	  lt_prog_compiler_wl='-Qoption ld '
18604	  ;;
18605	*Sun\ C*)
18606	  # Sun C 5.9
18607	  lt_prog_compiler_pic='-KPIC'
18608	  lt_prog_compiler_static='-Bstatic'
18609	  lt_prog_compiler_wl='-Wl,'
18610	  ;;
18611        *Intel*\ [CF]*Compiler*)
18612	  lt_prog_compiler_wl='-Wl,'
18613	  lt_prog_compiler_pic='-fPIC'
18614	  lt_prog_compiler_static='-static'
18615	  ;;
18616	*Portland\ Group*)
18617	  lt_prog_compiler_wl='-Wl,'
18618	  lt_prog_compiler_pic='-fpic'
18619	  lt_prog_compiler_static='-Bstatic'
18620	  ;;
18621	esac
18622	;;
18623      esac
18624      ;;
18625
18626    newsos6)
18627      lt_prog_compiler_pic='-KPIC'
18628      lt_prog_compiler_static='-Bstatic'
18629      ;;
18630
18631    *nto* | *qnx*)
18632      # QNX uses GNU C++, but need to define -shared option too, otherwise
18633      # it will coredump.
18634      lt_prog_compiler_pic='-fPIC -shared'
18635      ;;
18636
18637    osf3* | osf4* | osf5*)
18638      lt_prog_compiler_wl='-Wl,'
18639      # All OSF/1 code is PIC.
18640      lt_prog_compiler_static='-non_shared'
18641      ;;
18642
18643    rdos*)
18644      lt_prog_compiler_static='-non_shared'
18645      ;;
18646
18647    solaris*)
18648      lt_prog_compiler_pic='-KPIC'
18649      lt_prog_compiler_static='-Bstatic'
18650      case $cc_basename in
18651      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
18652	lt_prog_compiler_wl='-Qoption ld ';;
18653      *)
18654	lt_prog_compiler_wl='-Wl,';;
18655      esac
18656      ;;
18657
18658    sunos4*)
18659      lt_prog_compiler_wl='-Qoption ld '
18660      lt_prog_compiler_pic='-PIC'
18661      lt_prog_compiler_static='-Bstatic'
18662      ;;
18663
18664    sysv4 | sysv4.2uw2* | sysv4.3*)
18665      lt_prog_compiler_wl='-Wl,'
18666      lt_prog_compiler_pic='-KPIC'
18667      lt_prog_compiler_static='-Bstatic'
18668      ;;
18669
18670    sysv4*MP*)
18671      if test -d /usr/nec; then
18672	lt_prog_compiler_pic='-Kconform_pic'
18673	lt_prog_compiler_static='-Bstatic'
18674      fi
18675      ;;
18676
18677    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18678      lt_prog_compiler_wl='-Wl,'
18679      lt_prog_compiler_pic='-KPIC'
18680      lt_prog_compiler_static='-Bstatic'
18681      ;;
18682
18683    unicos*)
18684      lt_prog_compiler_wl='-Wl,'
18685      lt_prog_compiler_can_build_shared=no
18686      ;;
18687
18688    uts4*)
18689      lt_prog_compiler_pic='-pic'
18690      lt_prog_compiler_static='-Bstatic'
18691      ;;
18692
18693    *)
18694      lt_prog_compiler_can_build_shared=no
18695      ;;
18696    esac
18697  fi
18698
18699case $host_os in
18700  # For platforms that do not support PIC, -DPIC is meaningless:
18701  *djgpp*)
18702    lt_prog_compiler_pic=
18703    ;;
18704  *)
18705    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
18706    ;;
18707esac
18708
18709{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
18710printf %s "checking for $compiler option to produce PIC... " >&6; }
18711if test ${lt_cv_prog_compiler_pic+y}
18712then :
18713  printf %s "(cached) " >&6
18714else $as_nop
18715  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
18716fi
18717{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
18718printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
18719lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
18720
18721#
18722# Check to make sure the PIC flag actually works.
18723#
18724if test -n "$lt_prog_compiler_pic"; then
18725  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
18726printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
18727if test ${lt_cv_prog_compiler_pic_works+y}
18728then :
18729  printf %s "(cached) " >&6
18730else $as_nop
18731  lt_cv_prog_compiler_pic_works=no
18732   ac_outfile=conftest.$ac_objext
18733   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18734   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
18735   # Insert the option either (1) after the last *FLAGS variable, or
18736   # (2) before a word containing "conftest.", or (3) at the end.
18737   # Note that $ac_compile itself does not contain backslashes and begins
18738   # with a dollar sign (not a hyphen), so the echo should work correctly.
18739   # The option is referenced via a variable to avoid confusing sed.
18740   lt_compile=`echo "$ac_compile" | $SED \
18741   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18742   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18743   -e 's:$: $lt_compiler_flag:'`
18744   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18745   (eval "$lt_compile" 2>conftest.err)
18746   ac_status=$?
18747   cat conftest.err >&5
18748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18749   if (exit $ac_status) && test -s "$ac_outfile"; then
18750     # The compiler can only warn and ignore the option if not recognized
18751     # So say no if there are warnings other than the usual output.
18752     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
18753     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18754     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18755       lt_cv_prog_compiler_pic_works=yes
18756     fi
18757   fi
18758   $RM conftest*
18759
18760fi
18761{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
18762printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
18763
18764if test yes = "$lt_cv_prog_compiler_pic_works"; then
18765    case $lt_prog_compiler_pic in
18766     "" | " "*) ;;
18767     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
18768     esac
18769else
18770    lt_prog_compiler_pic=
18771     lt_prog_compiler_can_build_shared=no
18772fi
18773
18774fi
18775
18776
18777
18778
18779
18780
18781
18782
18783
18784
18785
18786#
18787# Check to make sure the static flag actually works.
18788#
18789wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
18790{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18791printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
18792if test ${lt_cv_prog_compiler_static_works+y}
18793then :
18794  printf %s "(cached) " >&6
18795else $as_nop
18796  lt_cv_prog_compiler_static_works=no
18797   save_LDFLAGS=$LDFLAGS
18798   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18799   echo "$lt_simple_link_test_code" > conftest.$ac_ext
18800   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18801     # The linker can only warn and ignore the option if not recognized
18802     # So say no if there are warnings
18803     if test -s conftest.err; then
18804       # Append any errors to the config.log.
18805       cat conftest.err 1>&5
18806       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
18807       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18808       if diff conftest.exp conftest.er2 >/dev/null; then
18809         lt_cv_prog_compiler_static_works=yes
18810       fi
18811     else
18812       lt_cv_prog_compiler_static_works=yes
18813     fi
18814   fi
18815   $RM -r conftest*
18816   LDFLAGS=$save_LDFLAGS
18817
18818fi
18819{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
18820printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
18821
18822if test yes = "$lt_cv_prog_compiler_static_works"; then
18823    :
18824else
18825    lt_prog_compiler_static=
18826fi
18827
18828
18829
18830
18831
18832
18833
18834  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18835printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18836if test ${lt_cv_prog_compiler_c_o+y}
18837then :
18838  printf %s "(cached) " >&6
18839else $as_nop
18840  lt_cv_prog_compiler_c_o=no
18841   $RM -r conftest 2>/dev/null
18842   mkdir conftest
18843   cd conftest
18844   mkdir out
18845   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18846
18847   lt_compiler_flag="-o out/conftest2.$ac_objext"
18848   # Insert the option either (1) after the last *FLAGS variable, or
18849   # (2) before a word containing "conftest.", or (3) at the end.
18850   # Note that $ac_compile itself does not contain backslashes and begins
18851   # with a dollar sign (not a hyphen), so the echo should work correctly.
18852   lt_compile=`echo "$ac_compile" | $SED \
18853   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18854   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18855   -e 's:$: $lt_compiler_flag:'`
18856   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18857   (eval "$lt_compile" 2>out/conftest.err)
18858   ac_status=$?
18859   cat out/conftest.err >&5
18860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18861   if (exit $ac_status) && test -s out/conftest2.$ac_objext
18862   then
18863     # The compiler can only warn and ignore the option if not recognized
18864     # So say no if there are warnings
18865     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
18866     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18867     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18868       lt_cv_prog_compiler_c_o=yes
18869     fi
18870   fi
18871   chmod u+w . 2>&5
18872   $RM conftest*
18873   # SGI C++ compiler will create directory out/ii_files/ for
18874   # template instantiation
18875   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18876   $RM out/* && rmdir out
18877   cd ..
18878   $RM -r conftest
18879   $RM conftest*
18880
18881fi
18882{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
18883printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
18884
18885
18886
18887
18888
18889
18890  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18891printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18892if test ${lt_cv_prog_compiler_c_o+y}
18893then :
18894  printf %s "(cached) " >&6
18895else $as_nop
18896  lt_cv_prog_compiler_c_o=no
18897   $RM -r conftest 2>/dev/null
18898   mkdir conftest
18899   cd conftest
18900   mkdir out
18901   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18902
18903   lt_compiler_flag="-o out/conftest2.$ac_objext"
18904   # Insert the option either (1) after the last *FLAGS variable, or
18905   # (2) before a word containing "conftest.", or (3) at the end.
18906   # Note that $ac_compile itself does not contain backslashes and begins
18907   # with a dollar sign (not a hyphen), so the echo should work correctly.
18908   lt_compile=`echo "$ac_compile" | $SED \
18909   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18910   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18911   -e 's:$: $lt_compiler_flag:'`
18912   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18913   (eval "$lt_compile" 2>out/conftest.err)
18914   ac_status=$?
18915   cat out/conftest.err >&5
18916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18917   if (exit $ac_status) && test -s out/conftest2.$ac_objext
18918   then
18919     # The compiler can only warn and ignore the option if not recognized
18920     # So say no if there are warnings
18921     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
18922     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18923     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18924       lt_cv_prog_compiler_c_o=yes
18925     fi
18926   fi
18927   chmod u+w . 2>&5
18928   $RM conftest*
18929   # SGI C++ compiler will create directory out/ii_files/ for
18930   # template instantiation
18931   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18932   $RM out/* && rmdir out
18933   cd ..
18934   $RM -r conftest
18935   $RM conftest*
18936
18937fi
18938{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
18939printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
18940
18941
18942
18943
18944hard_links=nottested
18945if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
18946  # do not overwrite the value of need_locks provided by the user
18947  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
18948printf %s "checking if we can lock with hard links... " >&6; }
18949  hard_links=yes
18950  $RM conftest*
18951  ln conftest.a conftest.b 2>/dev/null && hard_links=no
18952  touch conftest.a
18953  ln conftest.a conftest.b 2>&5 || hard_links=no
18954  ln conftest.a conftest.b 2>/dev/null && hard_links=no
18955  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
18956printf "%s\n" "$hard_links" >&6; }
18957  if test no = "$hard_links"; then
18958    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
18959printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
18960    need_locks=warn
18961  fi
18962else
18963  need_locks=no
18964fi
18965
18966
18967
18968
18969
18970
18971  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18972printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18973
18974  runpath_var=
18975  allow_undefined_flag=
18976  always_export_symbols=no
18977  archive_cmds=
18978  archive_expsym_cmds=
18979  compiler_needs_object=no
18980  enable_shared_with_static_runtimes=no
18981  export_dynamic_flag_spec=
18982  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18983  hardcode_automatic=no
18984  hardcode_direct=no
18985  hardcode_direct_absolute=no
18986  hardcode_libdir_flag_spec=
18987  hardcode_libdir_separator=
18988  hardcode_minus_L=no
18989  hardcode_shlibpath_var=unsupported
18990  inherit_rpath=no
18991  link_all_deplibs=unknown
18992  module_cmds=
18993  module_expsym_cmds=
18994  old_archive_from_new_cmds=
18995  old_archive_from_expsyms_cmds=
18996  thread_safe_flag_spec=
18997  whole_archive_flag_spec=
18998  # include_expsyms should be a list of space-separated symbols to be *always*
18999  # included in the symbol list
19000  include_expsyms=
19001  # exclude_expsyms can be an extended regexp of symbols to exclude
19002  # it will be wrapped by ' (' and ')$', so one must not match beginning or
19003  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
19004  # as well as any symbol that contains 'd'.
19005  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
19006  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19007  # platforms (ab)use it in PIC code, but their linkers get confused if
19008  # the symbol is explicitly referenced.  Since portable code cannot
19009  # rely on this symbol name, it's probably fine to never include it in
19010  # preloaded symbol tables.
19011  # Exclude shared library initialization/finalization symbols.
19012  extract_expsyms_cmds=
19013
19014  case $host_os in
19015  cygwin* | mingw* | pw32* | cegcc*)
19016    # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
19017    # When not using gcc, we currently assume that we are using
19018    # Microsoft Visual C++ or Intel C++ Compiler.
19019    if test yes != "$GCC"; then
19020      with_gnu_ld=no
19021    fi
19022    ;;
19023  interix*)
19024    # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
19025    with_gnu_ld=yes
19026    ;;
19027  openbsd* | bitrig*)
19028    with_gnu_ld=no
19029    ;;
19030  esac
19031
19032  ld_shlibs=yes
19033
19034  # On some targets, GNU ld is compatible enough with the native linker
19035  # that we're better off using the native interface for both.
19036  lt_use_gnu_ld_interface=no
19037  if test yes = "$with_gnu_ld"; then
19038    case $host_os in
19039      aix*)
19040	# The AIX port of GNU ld has always aspired to compatibility
19041	# with the native linker.  However, as the warning in the GNU ld
19042	# block says, versions before 2.19.5* couldn't really create working
19043	# shared libraries, regardless of the interface used.
19044	case `$LD -v 2>&1` in
19045	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
19046	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
19047	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
19048	  *)
19049	    lt_use_gnu_ld_interface=yes
19050	    ;;
19051	esac
19052	;;
19053      *)
19054	lt_use_gnu_ld_interface=yes
19055	;;
19056    esac
19057  fi
19058
19059  if test yes = "$lt_use_gnu_ld_interface"; then
19060    # If archive_cmds runs LD, not CC, wlarc should be empty
19061    wlarc='$wl'
19062
19063    # Set some defaults for GNU ld with shared library support. These
19064    # are reset later if shared libraries are not supported. Putting them
19065    # here allows them to be overridden if necessary.
19066    runpath_var=LD_RUN_PATH
19067    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
19068    export_dynamic_flag_spec='$wl--export-dynamic'
19069    # ancient GNU ld didn't support --whole-archive et. al.
19070    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
19071      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
19072    else
19073      whole_archive_flag_spec=
19074    fi
19075    supports_anon_versioning=no
19076    case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
19077      *GNU\ gold*) supports_anon_versioning=yes ;;
19078      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19079      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19080      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19081      *\ 2.11.*) ;; # other 2.11 versions
19082      *) supports_anon_versioning=yes ;;
19083    esac
19084
19085    # See if GNU ld supports shared libraries.
19086    case $host_os in
19087    aix[3-9]*)
19088      # On AIX/PPC, the GNU linker is very broken
19089      if test ia64 != "$host_cpu"; then
19090	ld_shlibs=no
19091	cat <<_LT_EOF 1>&2
19092
19093*** Warning: the GNU linker, at least up to release 2.19, is reported
19094*** to be unable to reliably create shared libraries on AIX.
19095*** Therefore, libtool is disabling shared libraries support.  If you
19096*** really care for shared libraries, you may want to install binutils
19097*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
19098*** You will then need to restart the configuration process.
19099
19100_LT_EOF
19101      fi
19102      ;;
19103
19104    amigaos*)
19105      case $host_cpu in
19106      powerpc)
19107            # see comment about AmigaOS4 .so support
19108            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
19109            archive_expsym_cmds=''
19110        ;;
19111      m68k)
19112            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)'
19113            hardcode_libdir_flag_spec='-L$libdir'
19114            hardcode_minus_L=yes
19115        ;;
19116      esac
19117      ;;
19118
19119    beos*)
19120      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19121	allow_undefined_flag=unsupported
19122	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19123	# support --undefined.  This deserves some investigation.  FIXME
19124	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
19125      else
19126	ld_shlibs=no
19127      fi
19128      ;;
19129
19130    cygwin* | mingw* | pw32* | cegcc*)
19131      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
19132      # as there is no search path for DLLs.
19133      hardcode_libdir_flag_spec='-L$libdir'
19134      export_dynamic_flag_spec='$wl--export-all-symbols'
19135      allow_undefined_flag=unsupported
19136      always_export_symbols=no
19137      enable_shared_with_static_runtimes=yes
19138      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'
19139      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
19140
19141      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19142        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19143	# If the export-symbols file already is a .def file, use it as
19144	# is; otherwise, prepend EXPORTS...
19145	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
19146          cp $export_symbols $output_objdir/$soname.def;
19147        else
19148          echo EXPORTS > $output_objdir/$soname.def;
19149          cat $export_symbols >> $output_objdir/$soname.def;
19150        fi~
19151        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19152      else
19153	ld_shlibs=no
19154      fi
19155      ;;
19156
19157    haiku*)
19158      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
19159      link_all_deplibs=yes
19160      ;;
19161
19162    os2*)
19163      hardcode_libdir_flag_spec='-L$libdir'
19164      hardcode_minus_L=yes
19165      allow_undefined_flag=unsupported
19166      shrext_cmds=.dll
19167      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
19168	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
19169	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
19170	$ECHO EXPORTS >> $output_objdir/$libname.def~
19171	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
19172	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
19173	emximp -o $lib $output_objdir/$libname.def'
19174      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
19175	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
19176	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
19177	$ECHO EXPORTS >> $output_objdir/$libname.def~
19178	prefix_cmds="$SED"~
19179	if test EXPORTS = "`$SED 1q $export_symbols`"; then
19180	  prefix_cmds="$prefix_cmds -e 1d";
19181	fi~
19182	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
19183	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
19184	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
19185	emximp -o $lib $output_objdir/$libname.def'
19186      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
19187      enable_shared_with_static_runtimes=yes
19188      file_list_spec='@'
19189      ;;
19190
19191    interix[3-9]*)
19192      hardcode_direct=no
19193      hardcode_shlibpath_var=no
19194      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
19195      export_dynamic_flag_spec='$wl-E'
19196      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19197      # Instead, shared libraries are loaded at an image base (0x10000000 by
19198      # default) and relocated if they conflict, which is a slow very memory
19199      # consuming and fragmenting process.  To avoid this, we pick a random,
19200      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19201      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
19202      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
19203      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'
19204      ;;
19205
19206    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
19207      tmp_diet=no
19208      if test linux-dietlibc = "$host_os"; then
19209	case $cc_basename in
19210	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
19211	esac
19212      fi
19213      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
19214	 && test no = "$tmp_diet"
19215      then
19216	tmp_addflag=' $pic_flag'
19217	tmp_sharedflag='-shared'
19218	case $cc_basename,$host_cpu in
19219        pgcc*)				# Portland Group C compiler
19220	  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'
19221	  tmp_addflag=' $pic_flag'
19222	  ;;
19223	pgf77* | pgf90* | pgf95* | pgfortran*)
19224					# Portland Group f77 and f90 compilers
19225	  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'
19226	  tmp_addflag=' $pic_flag -Mnomain' ;;
19227	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
19228	  tmp_addflag=' -i_dynamic' ;;
19229	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
19230	  tmp_addflag=' -i_dynamic -nofor_main' ;;
19231	ifc* | ifort*)			# Intel Fortran compiler
19232	  tmp_addflag=' -nofor_main' ;;
19233	lf95*)				# Lahey Fortran 8.1
19234	  whole_archive_flag_spec=
19235	  tmp_sharedflag='--shared' ;;
19236        nagfor*)                        # NAGFOR 5.3
19237          tmp_sharedflag='-Wl,-shared' ;;
19238	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
19239	  tmp_sharedflag='-qmkshrobj'
19240	  tmp_addflag= ;;
19241	nvcc*)	# Cuda Compiler Driver 2.2
19242	  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'
19243	  compiler_needs_object=yes
19244	  ;;
19245	esac
19246	case `$CC -V 2>&1 | $SED 5q` in
19247	*Sun\ C*)			# Sun C 5.9
19248	  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'
19249	  compiler_needs_object=yes
19250	  tmp_sharedflag='-G' ;;
19251	*Sun\ F*)			# Sun Fortran 8.3
19252	  tmp_sharedflag='-G' ;;
19253	esac
19254	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
19255
19256        if test yes = "$supports_anon_versioning"; then
19257          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
19258            cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19259            echo "local: *; };" >> $output_objdir/$libname.ver~
19260            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
19261        fi
19262
19263	case $cc_basename in
19264	tcc*)
19265	  export_dynamic_flag_spec='-rdynamic'
19266	  ;;
19267	xlf* | bgf* | bgxlf* | mpixlf*)
19268	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
19269	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
19270	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
19271	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
19272	  if test yes = "$supports_anon_versioning"; then
19273	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
19274              cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19275              echo "local: *; };" >> $output_objdir/$libname.ver~
19276              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
19277	  fi
19278	  ;;
19279	esac
19280      else
19281        ld_shlibs=no
19282      fi
19283      ;;
19284
19285    netbsd*)
19286      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19287	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19288	wlarc=
19289      else
19290	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
19291	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
19292      fi
19293      ;;
19294
19295    solaris*)
19296      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
19297	ld_shlibs=no
19298	cat <<_LT_EOF 1>&2
19299
19300*** Warning: The releases 2.8.* of the GNU linker cannot reliably
19301*** create shared libraries on Solaris systems.  Therefore, libtool
19302*** is disabling shared libraries support.  We urge you to upgrade GNU
19303*** binutils to release 2.9.1 or newer.  Another option is to modify
19304*** your PATH or compiler configuration so that the native linker is
19305*** used, and then restart.
19306
19307_LT_EOF
19308      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19309	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
19310	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
19311      else
19312	ld_shlibs=no
19313      fi
19314      ;;
19315
19316    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
19317      case `$LD -v 2>&1` in
19318        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
19319	ld_shlibs=no
19320	cat <<_LT_EOF 1>&2
19321
19322*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
19323*** reliably create shared libraries on SCO systems.  Therefore, libtool
19324*** is disabling shared libraries support.  We urge you to upgrade GNU
19325*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
19326*** your PATH or compiler configuration so that the native linker is
19327*** used, and then restart.
19328
19329_LT_EOF
19330	;;
19331	*)
19332	  # For security reasons, it is highly recommended that you always
19333	  # use absolute paths for naming shared libraries, and exclude the
19334	  # DT_RUNPATH tag from executables and libraries.  But doing so
19335	  # requires that you compile everything twice, which is a pain.
19336	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19337	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
19338	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
19339	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
19340	  else
19341	    ld_shlibs=no
19342	  fi
19343	;;
19344      esac
19345      ;;
19346
19347    sunos4*)
19348      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19349      wlarc=
19350      hardcode_direct=yes
19351      hardcode_shlibpath_var=no
19352      ;;
19353
19354    *)
19355      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19356	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
19357	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
19358      else
19359	ld_shlibs=no
19360      fi
19361      ;;
19362    esac
19363
19364    if test no = "$ld_shlibs"; then
19365      runpath_var=
19366      hardcode_libdir_flag_spec=
19367      export_dynamic_flag_spec=
19368      whole_archive_flag_spec=
19369    fi
19370  else
19371    # PORTME fill in a description of your system's linker (not GNU ld)
19372    case $host_os in
19373    aix3*)
19374      allow_undefined_flag=unsupported
19375      always_export_symbols=yes
19376      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'
19377      # Note: this linker hardcodes the directories in LIBPATH if there
19378      # are no directories specified by -L.
19379      hardcode_minus_L=yes
19380      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
19381	# Neither direct hardcoding nor static linking is supported with a
19382	# broken collect2.
19383	hardcode_direct=unsupported
19384      fi
19385      ;;
19386
19387    aix[4-9]*)
19388      if test ia64 = "$host_cpu"; then
19389	# On IA64, the linker does run time linking by default, so we don't
19390	# have to do anything special.
19391	aix_use_runtimelinking=no
19392	exp_sym_flag='-Bexport'
19393	no_entry_flag=
19394      else
19395	# If we're using GNU nm, then we don't want the "-C" option.
19396	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
19397	# Without the "-l" option, or with the "-B" option, AIX nm treats
19398	# weak defined symbols like other global defined symbols, whereas
19399	# GNU nm marks them as "W".
19400	# While the 'weak' keyword is ignored in the Export File, we need
19401	# it in the Import File for the 'aix-soname' feature, so we have
19402	# to replace the "-B" option with "-P" for AIX nm.
19403	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
19404	  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'
19405	else
19406	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
19407	fi
19408	aix_use_runtimelinking=no
19409
19410	# Test if we are trying to use run time linking or normal
19411	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
19412	# have runtime linking enabled, and use it for executables.
19413	# For shared libraries, we enable/disable runtime linking
19414	# depending on the kind of the shared library created -
19415	# when "with_aix_soname,aix_use_runtimelinking" is:
19416	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
19417	# "aix,yes"  lib.so          shared, rtl:yes, for executables
19418	#            lib.a           static archive
19419	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
19420	#            lib.a(lib.so.V) shared, rtl:no,  for executables
19421	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
19422	#            lib.a(lib.so.V) shared, rtl:no
19423	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
19424	#            lib.a           static archive
19425	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19426	  for ld_flag in $LDFLAGS; do
19427	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
19428	    aix_use_runtimelinking=yes
19429	    break
19430	  fi
19431	  done
19432	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
19433	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
19434	    # so we don't have lib.a shared libs to link our executables.
19435	    # We have to force runtime linking in this case.
19436	    aix_use_runtimelinking=yes
19437	    LDFLAGS="$LDFLAGS -Wl,-brtl"
19438	  fi
19439	  ;;
19440	esac
19441
19442	exp_sym_flag='-bexport'
19443	no_entry_flag='-bnoentry'
19444      fi
19445
19446      # When large executables or shared objects are built, AIX ld can
19447      # have problems creating the table of contents.  If linking a library
19448      # or program results in "error TOC overflow" add -mminimal-toc to
19449      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
19450      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19451
19452      archive_cmds=''
19453      hardcode_direct=yes
19454      hardcode_direct_absolute=yes
19455      hardcode_libdir_separator=':'
19456      link_all_deplibs=yes
19457      file_list_spec='$wl-f,'
19458      case $with_aix_soname,$aix_use_runtimelinking in
19459      aix,*) ;; # traditional, no import file
19460      svr4,* | *,yes) # use import file
19461	# The Import File defines what to hardcode.
19462	hardcode_direct=no
19463	hardcode_direct_absolute=no
19464	;;
19465      esac
19466
19467      if test yes = "$GCC"; then
19468	case $host_os in aix4.[012]|aix4.[012].*)
19469	# We only want to do this on AIX 4.2 and lower, the check
19470	# below for broken collect2 doesn't work under 4.3+
19471	  collect2name=`$CC -print-prog-name=collect2`
19472	  if test -f "$collect2name" &&
19473	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
19474	  then
19475	  # We have reworked collect2
19476	  :
19477	  else
19478	  # We have old collect2
19479	  hardcode_direct=unsupported
19480	  # It fails to find uninstalled libraries when the uninstalled
19481	  # path is not listed in the libpath.  Setting hardcode_minus_L
19482	  # to unsupported forces relinking
19483	  hardcode_minus_L=yes
19484	  hardcode_libdir_flag_spec='-L$libdir'
19485	  hardcode_libdir_separator=
19486	  fi
19487	  ;;
19488	esac
19489	shared_flag='-shared'
19490	if test yes = "$aix_use_runtimelinking"; then
19491	  shared_flag="$shared_flag "'$wl-G'
19492	fi
19493	# Need to ensure runtime linking is disabled for the traditional
19494	# shared library, or the linker may eventually find shared libraries
19495	# /with/ Import File - we do not want to mix them.
19496	shared_flag_aix='-shared'
19497	shared_flag_svr4='-shared $wl-G'
19498      else
19499	# not using gcc
19500	if test ia64 = "$host_cpu"; then
19501	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19502	# chokes on -Wl,-G. The following line is correct:
19503	  shared_flag='-G'
19504	else
19505	  if test yes = "$aix_use_runtimelinking"; then
19506	    shared_flag='$wl-G'
19507	  else
19508	    shared_flag='$wl-bM:SRE'
19509	  fi
19510	  shared_flag_aix='$wl-bM:SRE'
19511	  shared_flag_svr4='$wl-G'
19512	fi
19513      fi
19514
19515      export_dynamic_flag_spec='$wl-bexpall'
19516      # It seems that -bexpall does not export symbols beginning with
19517      # underscore (_), so it is better to generate a list of symbols to export.
19518      always_export_symbols=yes
19519      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
19520	# Warning - without using the other runtime loading flags (-brtl),
19521	# -berok will link without error, but may produce a broken library.
19522	allow_undefined_flag='-berok'
19523        # Determine the default libpath from the value encoded in an
19524        # empty executable.
19525        if test set = "${lt_cv_aix_libpath+set}"; then
19526  aix_libpath=$lt_cv_aix_libpath
19527else
19528  if test ${lt_cv_aix_libpath_+y}
19529then :
19530  printf %s "(cached) " >&6
19531else $as_nop
19532  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19533/* end confdefs.h.  */
19534
19535int
19536main (void)
19537{
19538
19539  ;
19540  return 0;
19541}
19542_ACEOF
19543if ac_fn_c_try_link "$LINENO"
19544then :
19545
19546  lt_aix_libpath_sed='
19547      /Import File Strings/,/^$/ {
19548	  /^0/ {
19549	      s/^0  *\([^ ]*\) *$/\1/
19550	      p
19551	  }
19552      }'
19553  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19554  # Check for a 64-bit object if we didn't find anything.
19555  if test -z "$lt_cv_aix_libpath_"; then
19556    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19557  fi
19558fi
19559rm -f core conftest.err conftest.$ac_objext conftest.beam \
19560    conftest$ac_exeext conftest.$ac_ext
19561  if test -z "$lt_cv_aix_libpath_"; then
19562    lt_cv_aix_libpath_=/usr/lib:/lib
19563  fi
19564
19565fi
19566
19567  aix_libpath=$lt_cv_aix_libpath_
19568fi
19569
19570        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
19571        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
19572      else
19573	if test ia64 = "$host_cpu"; then
19574	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
19575	  allow_undefined_flag="-z nodefs"
19576	  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"
19577	else
19578	 # Determine the default libpath from the value encoded in an
19579	 # empty executable.
19580	 if test set = "${lt_cv_aix_libpath+set}"; then
19581  aix_libpath=$lt_cv_aix_libpath
19582else
19583  if test ${lt_cv_aix_libpath_+y}
19584then :
19585  printf %s "(cached) " >&6
19586else $as_nop
19587  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19588/* end confdefs.h.  */
19589
19590int
19591main (void)
19592{
19593
19594  ;
19595  return 0;
19596}
19597_ACEOF
19598if ac_fn_c_try_link "$LINENO"
19599then :
19600
19601  lt_aix_libpath_sed='
19602      /Import File Strings/,/^$/ {
19603	  /^0/ {
19604	      s/^0  *\([^ ]*\) *$/\1/
19605	      p
19606	  }
19607      }'
19608  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19609  # Check for a 64-bit object if we didn't find anything.
19610  if test -z "$lt_cv_aix_libpath_"; then
19611    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19612  fi
19613fi
19614rm -f core conftest.err conftest.$ac_objext conftest.beam \
19615    conftest$ac_exeext conftest.$ac_ext
19616  if test -z "$lt_cv_aix_libpath_"; then
19617    lt_cv_aix_libpath_=/usr/lib:/lib
19618  fi
19619
19620fi
19621
19622  aix_libpath=$lt_cv_aix_libpath_
19623fi
19624
19625	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
19626	  # Warning - without using the other run time loading flags,
19627	  # -berok will link without error, but may produce a broken library.
19628	  no_undefined_flag=' $wl-bernotok'
19629	  allow_undefined_flag=' $wl-berok'
19630	  if test yes = "$with_gnu_ld"; then
19631	    # We only use this code for GNU lds that support --whole-archive.
19632	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
19633	  else
19634	    # Exported symbols can be pulled into shared objects from archives
19635	    whole_archive_flag_spec='$convenience'
19636	  fi
19637	  archive_cmds_need_lc=yes
19638	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
19639	  # -brtl affects multiple linker settings, -berok does not and is overridden later
19640	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
19641	  if test svr4 != "$with_aix_soname"; then
19642	    # This is similar to how AIX traditionally builds its shared libraries.
19643	    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'
19644	  fi
19645	  if test aix != "$with_aix_soname"; then
19646	    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'
19647	  else
19648	    # used by -dlpreopen to get the symbols
19649	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
19650	  fi
19651	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
19652	fi
19653      fi
19654      ;;
19655
19656    amigaos*)
19657      case $host_cpu in
19658      powerpc)
19659            # see comment about AmigaOS4 .so support
19660            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
19661            archive_expsym_cmds=''
19662        ;;
19663      m68k)
19664            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)'
19665            hardcode_libdir_flag_spec='-L$libdir'
19666            hardcode_minus_L=yes
19667        ;;
19668      esac
19669      ;;
19670
19671    bsdi[45]*)
19672      export_dynamic_flag_spec=-rdynamic
19673      ;;
19674
19675    cygwin* | mingw* | pw32* | cegcc*)
19676      # When not using gcc, we currently assume that we are using
19677      # Microsoft Visual C++ or Intel C++ Compiler.
19678      # hardcode_libdir_flag_spec is actually meaningless, as there is
19679      # no search path for DLLs.
19680      case $cc_basename in
19681      cl* | icl*)
19682	# Native MSVC or ICC
19683	hardcode_libdir_flag_spec=' '
19684	allow_undefined_flag=unsupported
19685	always_export_symbols=yes
19686	file_list_spec='@'
19687	# Tell ltmain to make .lib files, not .a files.
19688	libext=lib
19689	# Tell ltmain to make .dll files, not .so files.
19690	shrext_cmds=.dll
19691	# FIXME: Setting linknames here is a bad hack.
19692	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
19693	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
19694            cp "$export_symbols" "$output_objdir/$soname.def";
19695            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
19696          else
19697            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
19698          fi~
19699          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
19700          linknames='
19701	# The linker will not automatically build a static lib if we build a DLL.
19702	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
19703	enable_shared_with_static_runtimes=yes
19704	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
19705	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
19706	# Don't use ranlib
19707	old_postinstall_cmds='chmod 644 $oldlib'
19708	postlink_cmds='lt_outputfile="@OUTPUT@"~
19709          lt_tool_outputfile="@TOOL_OUTPUT@"~
19710          case $lt_outputfile in
19711            *.exe|*.EXE) ;;
19712            *)
19713              lt_outputfile=$lt_outputfile.exe
19714              lt_tool_outputfile=$lt_tool_outputfile.exe
19715              ;;
19716          esac~
19717          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
19718            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
19719            $RM "$lt_outputfile.manifest";
19720          fi'
19721	;;
19722      *)
19723	# Assume MSVC and ICC wrapper
19724	hardcode_libdir_flag_spec=' '
19725	allow_undefined_flag=unsupported
19726	# Tell ltmain to make .lib files, not .a files.
19727	libext=lib
19728	# Tell ltmain to make .dll files, not .so files.
19729	shrext_cmds=.dll
19730	# FIXME: Setting linknames here is a bad hack.
19731	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
19732	# The linker will automatically build a .lib file if we build a DLL.
19733	old_archive_from_new_cmds='true'
19734	# FIXME: Should let the user specify the lib program.
19735	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
19736	enable_shared_with_static_runtimes=yes
19737	;;
19738      esac
19739      ;;
19740
19741    darwin* | rhapsody*)
19742
19743
19744  archive_cmds_need_lc=no
19745  hardcode_direct=no
19746  hardcode_automatic=yes
19747  hardcode_shlibpath_var=unsupported
19748  if test yes = "$lt_cv_ld_force_load"; then
19749    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\"`'
19750
19751  else
19752    whole_archive_flag_spec=''
19753  fi
19754  link_all_deplibs=yes
19755  allow_undefined_flag=$_lt_dar_allow_undefined
19756  case $cc_basename in
19757     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
19758     *) _lt_dar_can_shared=$GCC ;;
19759  esac
19760  if test yes = "$_lt_dar_can_shared"; then
19761    output_verbose_link_cmd=func_echo_all
19762    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
19763    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
19764    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"
19765    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"
19766
19767  else
19768  ld_shlibs=no
19769  fi
19770
19771      ;;
19772
19773    dgux*)
19774      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19775      hardcode_libdir_flag_spec='-L$libdir'
19776      hardcode_shlibpath_var=no
19777      ;;
19778
19779    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19780    # support.  Future versions do this automatically, but an explicit c++rt0.o
19781    # does not break anything, and helps significantly (at the cost of a little
19782    # extra space).
19783    freebsd2.2*)
19784      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19785      hardcode_libdir_flag_spec='-R$libdir'
19786      hardcode_direct=yes
19787      hardcode_shlibpath_var=no
19788      ;;
19789
19790    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19791    freebsd2.*)
19792      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19793      hardcode_direct=yes
19794      hardcode_minus_L=yes
19795      hardcode_shlibpath_var=no
19796      ;;
19797
19798    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19799    freebsd* | dragonfly* | midnightbsd*)
19800      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19801      hardcode_libdir_flag_spec='-R$libdir'
19802      hardcode_direct=yes
19803      hardcode_shlibpath_var=no
19804      ;;
19805
19806    hpux9*)
19807      if test yes = "$GCC"; then
19808	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'
19809      else
19810	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'
19811      fi
19812      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
19813      hardcode_libdir_separator=:
19814      hardcode_direct=yes
19815
19816      # hardcode_minus_L: Not really in the search PATH,
19817      # but as the default location of the library.
19818      hardcode_minus_L=yes
19819      export_dynamic_flag_spec='$wl-E'
19820      ;;
19821
19822    hpux10*)
19823      if test yes,no = "$GCC,$with_gnu_ld"; then
19824	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19825      else
19826	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19827      fi
19828      if test no = "$with_gnu_ld"; then
19829	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
19830	hardcode_libdir_separator=:
19831	hardcode_direct=yes
19832	hardcode_direct_absolute=yes
19833	export_dynamic_flag_spec='$wl-E'
19834	# hardcode_minus_L: Not really in the search PATH,
19835	# but as the default location of the library.
19836	hardcode_minus_L=yes
19837      fi
19838      ;;
19839
19840    hpux11*)
19841      if test yes,no = "$GCC,$with_gnu_ld"; then
19842	case $host_cpu in
19843	hppa*64*)
19844	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
19845	  ;;
19846	ia64*)
19847	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19848	  ;;
19849	*)
19850	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19851	  ;;
19852	esac
19853      else
19854	case $host_cpu in
19855	hppa*64*)
19856	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
19857	  ;;
19858	ia64*)
19859	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19860	  ;;
19861	*)
19862
19863	  # Older versions of the 11.00 compiler do not understand -b yet
19864	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
19865	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
19866printf %s "checking if $CC understands -b... " >&6; }
19867if test ${lt_cv_prog_compiler__b+y}
19868then :
19869  printf %s "(cached) " >&6
19870else $as_nop
19871  lt_cv_prog_compiler__b=no
19872   save_LDFLAGS=$LDFLAGS
19873   LDFLAGS="$LDFLAGS -b"
19874   echo "$lt_simple_link_test_code" > conftest.$ac_ext
19875   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19876     # The linker can only warn and ignore the option if not recognized
19877     # So say no if there are warnings
19878     if test -s conftest.err; then
19879       # Append any errors to the config.log.
19880       cat conftest.err 1>&5
19881       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
19882       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19883       if diff conftest.exp conftest.er2 >/dev/null; then
19884         lt_cv_prog_compiler__b=yes
19885       fi
19886     else
19887       lt_cv_prog_compiler__b=yes
19888     fi
19889   fi
19890   $RM -r conftest*
19891   LDFLAGS=$save_LDFLAGS
19892
19893fi
19894{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
19895printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
19896
19897if test yes = "$lt_cv_prog_compiler__b"; then
19898    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19899else
19900    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19901fi
19902
19903	  ;;
19904	esac
19905      fi
19906      if test no = "$with_gnu_ld"; then
19907	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
19908	hardcode_libdir_separator=:
19909
19910	case $host_cpu in
19911	hppa*64*|ia64*)
19912	  hardcode_direct=no
19913	  hardcode_shlibpath_var=no
19914	  ;;
19915	*)
19916	  hardcode_direct=yes
19917	  hardcode_direct_absolute=yes
19918	  export_dynamic_flag_spec='$wl-E'
19919
19920	  # hardcode_minus_L: Not really in the search PATH,
19921	  # but as the default location of the library.
19922	  hardcode_minus_L=yes
19923	  ;;
19924	esac
19925      fi
19926      ;;
19927
19928    irix5* | irix6* | nonstopux*)
19929      if test yes = "$GCC"; then
19930	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'
19931	# Try to use the -exported_symbol ld option, if it does not
19932	# work, assume that -exports_file does not work either and
19933	# implicitly export all symbols.
19934	# This should be the same for all languages, so no per-tag cache variable.
19935	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
19936printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
19937if test ${lt_cv_irix_exported_symbol+y}
19938then :
19939  printf %s "(cached) " >&6
19940else $as_nop
19941  save_LDFLAGS=$LDFLAGS
19942	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
19943	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19944/* end confdefs.h.  */
19945int foo (void) { return 0; }
19946_ACEOF
19947if ac_fn_c_try_link "$LINENO"
19948then :
19949  lt_cv_irix_exported_symbol=yes
19950else $as_nop
19951  lt_cv_irix_exported_symbol=no
19952fi
19953rm -f core conftest.err conftest.$ac_objext conftest.beam \
19954    conftest$ac_exeext conftest.$ac_ext
19955           LDFLAGS=$save_LDFLAGS
19956fi
19957{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
19958printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
19959	if test yes = "$lt_cv_irix_exported_symbol"; then
19960          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'
19961	fi
19962      else
19963	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'
19964	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'
19965      fi
19966      archive_cmds_need_lc='no'
19967      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
19968      hardcode_libdir_separator=:
19969      inherit_rpath=yes
19970      link_all_deplibs=yes
19971      ;;
19972
19973    linux*)
19974      case $cc_basename in
19975      tcc*)
19976	# Fabrice Bellard et al's Tiny C Compiler
19977	ld_shlibs=yes
19978	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19979	;;
19980      esac
19981      ;;
19982
19983    netbsd*)
19984      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19985	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
19986      else
19987	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
19988      fi
19989      hardcode_libdir_flag_spec='-R$libdir'
19990      hardcode_direct=yes
19991      hardcode_shlibpath_var=no
19992      ;;
19993
19994    newsos6)
19995      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19996      hardcode_direct=yes
19997      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
19998      hardcode_libdir_separator=:
19999      hardcode_shlibpath_var=no
20000      ;;
20001
20002    *nto* | *qnx*)
20003      ;;
20004
20005    openbsd* | bitrig*)
20006      if test -f /usr/libexec/ld.so; then
20007	hardcode_direct=yes
20008	hardcode_shlibpath_var=no
20009	hardcode_direct_absolute=yes
20010	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
20011	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
20012	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
20013	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
20014	  export_dynamic_flag_spec='$wl-E'
20015	else
20016	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
20017	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
20018	fi
20019      else
20020	ld_shlibs=no
20021      fi
20022      ;;
20023
20024    os2*)
20025      hardcode_libdir_flag_spec='-L$libdir'
20026      hardcode_minus_L=yes
20027      allow_undefined_flag=unsupported
20028      shrext_cmds=.dll
20029      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
20030	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
20031	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
20032	$ECHO EXPORTS >> $output_objdir/$libname.def~
20033	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
20034	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
20035	emximp -o $lib $output_objdir/$libname.def'
20036      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
20037	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
20038	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
20039	$ECHO EXPORTS >> $output_objdir/$libname.def~
20040	prefix_cmds="$SED"~
20041	if test EXPORTS = "`$SED 1q $export_symbols`"; then
20042	  prefix_cmds="$prefix_cmds -e 1d";
20043	fi~
20044	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
20045	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
20046	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
20047	emximp -o $lib $output_objdir/$libname.def'
20048      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
20049      enable_shared_with_static_runtimes=yes
20050      file_list_spec='@'
20051      ;;
20052
20053    osf3*)
20054      if test yes = "$GCC"; then
20055	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
20056	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'
20057      else
20058	allow_undefined_flag=' -expect_unresolved \*'
20059	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'
20060      fi
20061      archive_cmds_need_lc='no'
20062      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
20063      hardcode_libdir_separator=:
20064      ;;
20065
20066    osf4* | osf5*)	# as osf3* with the addition of -msym flag
20067      if test yes = "$GCC"; then
20068	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
20069	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'
20070	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
20071      else
20072	allow_undefined_flag=' -expect_unresolved \*'
20073	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'
20074	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~
20075          $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'
20076
20077	# Both c and cxx compiler support -rpath directly
20078	hardcode_libdir_flag_spec='-rpath $libdir'
20079      fi
20080      archive_cmds_need_lc='no'
20081      hardcode_libdir_separator=:
20082      ;;
20083
20084    solaris*)
20085      no_undefined_flag=' -z defs'
20086      if test yes = "$GCC"; then
20087	wlarc='$wl'
20088	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
20089	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20090          $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'
20091      else
20092	case `$CC -V 2>&1` in
20093	*"Compilers 5.0"*)
20094	  wlarc=''
20095	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
20096	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20097            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
20098	  ;;
20099	*)
20100	  wlarc='$wl'
20101	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
20102	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20103            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
20104	  ;;
20105	esac
20106      fi
20107      hardcode_libdir_flag_spec='-R$libdir'
20108      hardcode_shlibpath_var=no
20109      case $host_os in
20110      solaris2.[0-5] | solaris2.[0-5].*) ;;
20111      *)
20112	# The compiler driver will combine and reorder linker options,
20113	# but understands '-z linker_flag'.  GCC discards it without '$wl',
20114	# but is careful enough not to reorder.
20115	# Supported since Solaris 2.6 (maybe 2.5.1?)
20116	if test yes = "$GCC"; then
20117	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
20118	else
20119	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
20120	fi
20121	;;
20122      esac
20123      link_all_deplibs=yes
20124      ;;
20125
20126    sunos4*)
20127      if test sequent = "$host_vendor"; then
20128	# Use $CC to link under sequent, because it throws in some extra .o
20129	# files that make .init and .fini sections work.
20130	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
20131      else
20132	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
20133      fi
20134      hardcode_libdir_flag_spec='-L$libdir'
20135      hardcode_direct=yes
20136      hardcode_minus_L=yes
20137      hardcode_shlibpath_var=no
20138      ;;
20139
20140    sysv4)
20141      case $host_vendor in
20142	sni)
20143	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20144	  hardcode_direct=yes # is this really true???
20145	;;
20146	siemens)
20147	  ## LD is ld it makes a PLAMLIB
20148	  ## CC just makes a GrossModule.
20149	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20150	  reload_cmds='$CC -r -o $output$reload_objs'
20151	  hardcode_direct=no
20152        ;;
20153	motorola)
20154	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20155	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
20156	;;
20157      esac
20158      runpath_var='LD_RUN_PATH'
20159      hardcode_shlibpath_var=no
20160      ;;
20161
20162    sysv4.3*)
20163      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20164      hardcode_shlibpath_var=no
20165      export_dynamic_flag_spec='-Bexport'
20166      ;;
20167
20168    sysv4*MP*)
20169      if test -d /usr/nec; then
20170	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20171	hardcode_shlibpath_var=no
20172	runpath_var=LD_RUN_PATH
20173	hardcode_runpath_var=yes
20174	ld_shlibs=yes
20175      fi
20176      ;;
20177
20178    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
20179      no_undefined_flag='$wl-z,text'
20180      archive_cmds_need_lc=no
20181      hardcode_shlibpath_var=no
20182      runpath_var='LD_RUN_PATH'
20183
20184      if test yes = "$GCC"; then
20185	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20186	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20187      else
20188	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20189	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20190      fi
20191      ;;
20192
20193    sysv5* | sco3.2v5* | sco5v6*)
20194      # Note: We CANNOT use -z defs as we might desire, because we do not
20195      # link with -lc, and that would cause any symbols used from libc to
20196      # always be unresolved, which means just about no library would
20197      # ever link correctly.  If we're not using GNU ld we use -z text
20198      # though, which does catch some bad symbols but isn't as heavy-handed
20199      # as -z defs.
20200      no_undefined_flag='$wl-z,text'
20201      allow_undefined_flag='$wl-z,nodefs'
20202      archive_cmds_need_lc=no
20203      hardcode_shlibpath_var=no
20204      hardcode_libdir_flag_spec='$wl-R,$libdir'
20205      hardcode_libdir_separator=':'
20206      link_all_deplibs=yes
20207      export_dynamic_flag_spec='$wl-Bexport'
20208      runpath_var='LD_RUN_PATH'
20209
20210      if test yes = "$GCC"; then
20211	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20212	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20213      else
20214	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20215	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20216      fi
20217      ;;
20218
20219    uts4*)
20220      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20221      hardcode_libdir_flag_spec='-L$libdir'
20222      hardcode_shlibpath_var=no
20223      ;;
20224
20225    *)
20226      ld_shlibs=no
20227      ;;
20228    esac
20229
20230    if test sni = "$host_vendor"; then
20231      case $host in
20232      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20233	export_dynamic_flag_spec='$wl-Blargedynsym'
20234	;;
20235      esac
20236    fi
20237  fi
20238
20239{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
20240printf "%s\n" "$ld_shlibs" >&6; }
20241test no = "$ld_shlibs" && can_build_shared=no
20242
20243with_gnu_ld=$with_gnu_ld
20244
20245
20246
20247
20248
20249
20250
20251
20252
20253
20254
20255
20256
20257
20258
20259#
20260# Do we need to explicitly link libc?
20261#
20262case "x$archive_cmds_need_lc" in
20263x|xyes)
20264  # Assume -lc should be added
20265  archive_cmds_need_lc=yes
20266
20267  if test yes,yes = "$GCC,$enable_shared"; then
20268    case $archive_cmds in
20269    *'~'*)
20270      # FIXME: we may have to deal with multi-command sequences.
20271      ;;
20272    '$CC '*)
20273      # Test whether the compiler implicitly links with -lc since on some
20274      # systems, -lgcc has to come before -lc. If gcc already passes -lc
20275      # to ld, don't add -lc before -lgcc.
20276      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20277printf %s "checking whether -lc should be explicitly linked in... " >&6; }
20278if test ${lt_cv_archive_cmds_need_lc+y}
20279then :
20280  printf %s "(cached) " >&6
20281else $as_nop
20282  $RM conftest*
20283	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20284
20285	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20286  (eval $ac_compile) 2>&5
20287  ac_status=$?
20288  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20289  test $ac_status = 0; } 2>conftest.err; then
20290	  soname=conftest
20291	  lib=conftest
20292	  libobjs=conftest.$ac_objext
20293	  deplibs=
20294	  wl=$lt_prog_compiler_wl
20295	  pic_flag=$lt_prog_compiler_pic
20296	  compiler_flags=-v
20297	  linker_flags=-v
20298	  verstring=
20299	  output_objdir=.
20300	  libname=conftest
20301	  lt_save_allow_undefined_flag=$allow_undefined_flag
20302	  allow_undefined_flag=
20303	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20304  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20305  ac_status=$?
20306  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20307  test $ac_status = 0; }
20308	  then
20309	    lt_cv_archive_cmds_need_lc=no
20310	  else
20311	    lt_cv_archive_cmds_need_lc=yes
20312	  fi
20313	  allow_undefined_flag=$lt_save_allow_undefined_flag
20314	else
20315	  cat conftest.err 1>&5
20316	fi
20317	$RM conftest*
20318
20319fi
20320{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
20321printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
20322      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
20323      ;;
20324    esac
20325  fi
20326  ;;
20327esac
20328
20329
20330
20331
20332
20333
20334
20335
20336
20337
20338
20339
20340
20341
20342
20343
20344
20345
20346
20347
20348
20349
20350
20351
20352
20353
20354
20355
20356
20357
20358
20359
20360
20361
20362
20363
20364
20365
20366
20367
20368
20369
20370
20371
20372
20373
20374
20375
20376
20377
20378
20379
20380
20381
20382
20383
20384
20385
20386
20387
20388
20389
20390
20391
20392
20393
20394
20395
20396
20397
20398
20399
20400
20401
20402
20403
20404
20405
20406
20407
20408
20409
20410
20411
20412
20413
20414
20415
20416
20417
20418
20419
20420
20421
20422
20423
20424
20425
20426
20427
20428
20429
20430
20431
20432
20433
20434
20435
20436
20437
20438
20439
20440
20441
20442
20443
20444
20445
20446
20447
20448
20449
20450
20451
20452
20453
20454
20455
20456
20457
20458
20459
20460
20461
20462
20463
20464
20465
20466
20467
20468
20469
20470
20471
20472
20473
20474
20475
20476
20477
20478
20479
20480  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20481printf %s "checking dynamic linker characteristics... " >&6; }
20482
20483if test yes = "$GCC"; then
20484  case $host_os in
20485    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
20486    *) lt_awk_arg='/^libraries:/' ;;
20487  esac
20488  case $host_os in
20489    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
20490    *) lt_sed_strip_eq='s|=/|/|g' ;;
20491  esac
20492  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
20493  case $lt_search_path_spec in
20494  *\;*)
20495    # if the path contains ";" then we assume it to be the separator
20496    # otherwise default to the standard path separator (i.e. ":") - it is
20497    # assumed that no part of a normal pathname contains ";" but that should
20498    # okay in the real world where ";" in dirpaths is itself problematic.
20499    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
20500    ;;
20501  *)
20502    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
20503    ;;
20504  esac
20505  # Ok, now we have the path, separated by spaces, we can step through it
20506  # and add multilib dir if necessary...
20507  lt_tmp_lt_search_path_spec=
20508  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
20509  # ...but if some path component already ends with the multilib dir we assume
20510  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
20511  case "$lt_multi_os_dir; $lt_search_path_spec " in
20512  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
20513    lt_multi_os_dir=
20514    ;;
20515  esac
20516  for lt_sys_path in $lt_search_path_spec; do
20517    if test -d "$lt_sys_path$lt_multi_os_dir"; then
20518      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
20519    elif test -n "$lt_multi_os_dir"; then
20520      test -d "$lt_sys_path" && \
20521	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
20522    fi
20523  done
20524  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
20525BEGIN {RS = " "; FS = "/|\n";} {
20526  lt_foo = "";
20527  lt_count = 0;
20528  for (lt_i = NF; lt_i > 0; lt_i--) {
20529    if ($lt_i != "" && $lt_i != ".") {
20530      if ($lt_i == "..") {
20531        lt_count++;
20532      } else {
20533        if (lt_count == 0) {
20534          lt_foo = "/" $lt_i lt_foo;
20535        } else {
20536          lt_count--;
20537        }
20538      }
20539    }
20540  }
20541  if (lt_foo != "") { lt_freq[lt_foo]++; }
20542  if (lt_freq[lt_foo] == 1) { print lt_foo; }
20543}'`
20544  # AWK program above erroneously prepends '/' to C:/dos/paths
20545  # for these hosts.
20546  case $host_os in
20547    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
20548      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
20549  esac
20550  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
20551else
20552  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20553fi
20554library_names_spec=
20555libname_spec='lib$name'
20556soname_spec=
20557shrext_cmds=.so
20558postinstall_cmds=
20559postuninstall_cmds=
20560finish_cmds=
20561finish_eval=
20562shlibpath_var=
20563shlibpath_overrides_runpath=unknown
20564version_type=none
20565dynamic_linker="$host_os ld.so"
20566sys_lib_dlsearch_path_spec="/lib /usr/lib"
20567need_lib_prefix=unknown
20568hardcode_into_libs=no
20569
20570# when you set need_version to no, make sure it does not cause -set_version
20571# flags to be left without arguments
20572need_version=unknown
20573
20574
20575
20576case $host_os in
20577aix3*)
20578  version_type=linux # correct to gnu/linux during the next big refactor
20579  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
20580  shlibpath_var=LIBPATH
20581
20582  # AIX 3 has no versioning support, so we append a major version to the name.
20583  soname_spec='$libname$release$shared_ext$major'
20584  ;;
20585
20586aix[4-9]*)
20587  version_type=linux # correct to gnu/linux during the next big refactor
20588  need_lib_prefix=no
20589  need_version=no
20590  hardcode_into_libs=yes
20591  if test ia64 = "$host_cpu"; then
20592    # AIX 5 supports IA64
20593    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
20594    shlibpath_var=LD_LIBRARY_PATH
20595  else
20596    # With GCC up to 2.95.x, collect2 would create an import file
20597    # for dependence libraries.  The import file would start with
20598    # the line '#! .'.  This would cause the generated library to
20599    # depend on '.', always an invalid library.  This was fixed in
20600    # development snapshots of GCC prior to 3.0.
20601    case $host_os in
20602      aix4 | aix4.[01] | aix4.[01].*)
20603      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20604	   echo ' yes '
20605	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
20606	:
20607      else
20608	can_build_shared=no
20609      fi
20610      ;;
20611    esac
20612    # Using Import Files as archive members, it is possible to support
20613    # filename-based versioning of shared library archives on AIX. While
20614    # this would work for both with and without runtime linking, it will
20615    # prevent static linking of such archives. So we do filename-based
20616    # shared library versioning with .so extension only, which is used
20617    # when both runtime linking and shared linking is enabled.
20618    # Unfortunately, runtime linking may impact performance, so we do
20619    # not want this to be the default eventually. Also, we use the
20620    # versioned .so libs for executables only if there is the -brtl
20621    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
20622    # To allow for filename-based versioning support, we need to create
20623    # libNAME.so.V as an archive file, containing:
20624    # *) an Import File, referring to the versioned filename of the
20625    #    archive as well as the shared archive member, telling the
20626    #    bitwidth (32 or 64) of that shared object, and providing the
20627    #    list of exported symbols of that shared object, eventually
20628    #    decorated with the 'weak' keyword
20629    # *) the shared object with the F_LOADONLY flag set, to really avoid
20630    #    it being seen by the linker.
20631    # At run time we better use the real file rather than another symlink,
20632    # but for link time we create the symlink libNAME.so -> libNAME.so.V
20633
20634    case $with_aix_soname,$aix_use_runtimelinking in
20635    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
20636    # soname into executable. Probably we can add versioning support to
20637    # collect2, so additional links can be useful in future.
20638    aix,yes) # traditional libtool
20639      dynamic_linker='AIX unversionable lib.so'
20640      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20641      # instead of lib<name>.a to let people know that these are not
20642      # typical AIX shared libraries.
20643      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20644      ;;
20645    aix,no) # traditional AIX only
20646      dynamic_linker='AIX lib.a(lib.so.V)'
20647      # We preserve .a as extension for shared libraries through AIX4.2
20648      # and later when we are not doing run time linking.
20649      library_names_spec='$libname$release.a $libname.a'
20650      soname_spec='$libname$release$shared_ext$major'
20651      ;;
20652    svr4,*) # full svr4 only
20653      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
20654      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
20655      # We do not specify a path in Import Files, so LIBPATH fires.
20656      shlibpath_overrides_runpath=yes
20657      ;;
20658    *,yes) # both, prefer svr4
20659      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
20660      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
20661      # unpreferred sharedlib libNAME.a needs extra handling
20662      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"'
20663      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"'
20664      # We do not specify a path in Import Files, so LIBPATH fires.
20665      shlibpath_overrides_runpath=yes
20666      ;;
20667    *,no) # both, prefer aix
20668      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
20669      library_names_spec='$libname$release.a $libname.a'
20670      soname_spec='$libname$release$shared_ext$major'
20671      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
20672      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)'
20673      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"'
20674      ;;
20675    esac
20676    shlibpath_var=LIBPATH
20677  fi
20678  ;;
20679
20680amigaos*)
20681  case $host_cpu in
20682  powerpc)
20683    # Since July 2007 AmigaOS4 officially supports .so libraries.
20684    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20685    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20686    ;;
20687  m68k)
20688    library_names_spec='$libname.ixlibrary $libname.a'
20689    # Create ${libname}_ixlibrary.a entries in /sys/libs.
20690    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'
20691    ;;
20692  esac
20693  ;;
20694
20695beos*)
20696  library_names_spec='$libname$shared_ext'
20697  dynamic_linker="$host_os ld.so"
20698  shlibpath_var=LIBRARY_PATH
20699  ;;
20700
20701bsdi[45]*)
20702  version_type=linux # correct to gnu/linux during the next big refactor
20703  need_version=no
20704  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20705  soname_spec='$libname$release$shared_ext$major'
20706  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20707  shlibpath_var=LD_LIBRARY_PATH
20708  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20709  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20710  # the default ld.so.conf also contains /usr/contrib/lib and
20711  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20712  # libtool to hard-code these into programs
20713  ;;
20714
20715cygwin* | mingw* | pw32* | cegcc*)
20716  version_type=windows
20717  shrext_cmds=.dll
20718  need_version=no
20719  need_lib_prefix=no
20720
20721  case $GCC,$cc_basename in
20722  yes,*)
20723    # gcc
20724    library_names_spec='$libname.dll.a'
20725    # DLL is installed to $(libdir)/../bin by postinstall_cmds
20726    postinstall_cmds='base_file=`basename \$file`~
20727      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
20728      dldir=$destdir/`dirname \$dlpath`~
20729      test -d \$dldir || mkdir -p \$dldir~
20730      $install_prog $dir/$dlname \$dldir/$dlname~
20731      chmod a+x \$dldir/$dlname~
20732      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20733        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20734      fi'
20735    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20736      dlpath=$dir/\$dldll~
20737       $RM \$dlpath'
20738    shlibpath_overrides_runpath=yes
20739
20740    case $host_os in
20741    cygwin*)
20742      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20743      soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
20744
20745      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
20746      ;;
20747    mingw* | cegcc*)
20748      # MinGW DLLs use traditional 'lib' prefix
20749      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
20750      ;;
20751    pw32*)
20752      # pw32 DLLs use 'pw' prefix rather than 'lib'
20753      library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
20754      ;;
20755    esac
20756    dynamic_linker='Win32 ld.exe'
20757    ;;
20758
20759  *,cl* | *,icl*)
20760    # Native MSVC or ICC
20761    libname_spec='$name'
20762    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
20763    library_names_spec='$libname.dll.lib'
20764
20765    case $build_os in
20766    mingw*)
20767      sys_lib_search_path_spec=
20768      lt_save_ifs=$IFS
20769      IFS=';'
20770      for lt_path in $LIB
20771      do
20772        IFS=$lt_save_ifs
20773        # Let DOS variable expansion print the short 8.3 style file name.
20774        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
20775        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
20776      done
20777      IFS=$lt_save_ifs
20778      # Convert to MSYS style.
20779      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
20780      ;;
20781    cygwin*)
20782      # Convert to unix form, then to dos form, then back to unix form
20783      # but this time dos style (no spaces!) so that the unix form looks
20784      # like /cygdrive/c/PROGRA~1:/cygdr...
20785      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
20786      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
20787      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20788      ;;
20789    *)
20790      sys_lib_search_path_spec=$LIB
20791      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
20792        # It is most probably a Windows format PATH.
20793        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20794      else
20795        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20796      fi
20797      # FIXME: find the short name or the path components, as spaces are
20798      # common. (e.g. "Program Files" -> "PROGRA~1")
20799      ;;
20800    esac
20801
20802    # DLL is installed to $(libdir)/../bin by postinstall_cmds
20803    postinstall_cmds='base_file=`basename \$file`~
20804      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
20805      dldir=$destdir/`dirname \$dlpath`~
20806      test -d \$dldir || mkdir -p \$dldir~
20807      $install_prog $dir/$dlname \$dldir/$dlname'
20808    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20809      dlpath=$dir/\$dldll~
20810       $RM \$dlpath'
20811    shlibpath_overrides_runpath=yes
20812    dynamic_linker='Win32 link.exe'
20813    ;;
20814
20815  *)
20816    # Assume MSVC and ICC wrapper
20817    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
20818    dynamic_linker='Win32 ld.exe'
20819    ;;
20820  esac
20821  # FIXME: first we should search . and the directory the executable is in
20822  shlibpath_var=PATH
20823  ;;
20824
20825darwin* | rhapsody*)
20826  dynamic_linker="$host_os dyld"
20827  version_type=darwin
20828  need_lib_prefix=no
20829  need_version=no
20830  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
20831  soname_spec='$libname$release$major$shared_ext'
20832  shlibpath_overrides_runpath=yes
20833  shlibpath_var=DYLD_LIBRARY_PATH
20834  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20835
20836  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
20837  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20838  ;;
20839
20840dgux*)
20841  version_type=linux # correct to gnu/linux during the next big refactor
20842  need_lib_prefix=no
20843  need_version=no
20844  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20845  soname_spec='$libname$release$shared_ext$major'
20846  shlibpath_var=LD_LIBRARY_PATH
20847  ;;
20848
20849freebsd* | dragonfly* | midnightbsd*)
20850  # DragonFly does not have aout.  When/if they implement a new
20851  # versioning mechanism, adjust this.
20852  if test -x /usr/bin/objformat; then
20853    objformat=`/usr/bin/objformat`
20854  else
20855    case $host_os in
20856    freebsd[23].*) objformat=aout ;;
20857    *) objformat=elf ;;
20858    esac
20859  fi
20860  version_type=freebsd-$objformat
20861  case $version_type in
20862    freebsd-elf*)
20863      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20864      soname_spec='$libname$release$shared_ext$major'
20865      need_version=no
20866      need_lib_prefix=no
20867      ;;
20868    freebsd-*)
20869      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
20870      need_version=yes
20871      ;;
20872  esac
20873  shlibpath_var=LD_LIBRARY_PATH
20874  case $host_os in
20875  freebsd2.*)
20876    shlibpath_overrides_runpath=yes
20877    ;;
20878  freebsd3.[01]* | freebsdelf3.[01]*)
20879    shlibpath_overrides_runpath=yes
20880    hardcode_into_libs=yes
20881    ;;
20882  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20883  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20884    shlibpath_overrides_runpath=no
20885    hardcode_into_libs=yes
20886    ;;
20887  *) # from 4.6 on, and DragonFly
20888    shlibpath_overrides_runpath=yes
20889    hardcode_into_libs=yes
20890    ;;
20891  esac
20892  ;;
20893
20894haiku*)
20895  version_type=linux # correct to gnu/linux during the next big refactor
20896  need_lib_prefix=no
20897  need_version=no
20898  dynamic_linker="$host_os runtime_loader"
20899  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20900  soname_spec='$libname$release$shared_ext$major'
20901  shlibpath_var=LIBRARY_PATH
20902  shlibpath_overrides_runpath=no
20903  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
20904  hardcode_into_libs=yes
20905  ;;
20906
20907hpux9* | hpux10* | hpux11*)
20908  # Give a soname corresponding to the major version so that dld.sl refuses to
20909  # link against other versions.
20910  version_type=sunos
20911  need_lib_prefix=no
20912  need_version=no
20913  case $host_cpu in
20914  ia64*)
20915    shrext_cmds='.so'
20916    hardcode_into_libs=yes
20917    dynamic_linker="$host_os dld.so"
20918    shlibpath_var=LD_LIBRARY_PATH
20919    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20920    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20921    soname_spec='$libname$release$shared_ext$major'
20922    if test 32 = "$HPUX_IA64_MODE"; then
20923      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20924      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
20925    else
20926      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20927      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
20928    fi
20929    ;;
20930  hppa*64*)
20931    shrext_cmds='.sl'
20932    hardcode_into_libs=yes
20933    dynamic_linker="$host_os dld.sl"
20934    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20935    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20936    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20937    soname_spec='$libname$release$shared_ext$major'
20938    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20939    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20940    ;;
20941  *)
20942    shrext_cmds='.sl'
20943    dynamic_linker="$host_os dld.sl"
20944    shlibpath_var=SHLIB_PATH
20945    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20946    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20947    soname_spec='$libname$release$shared_ext$major'
20948    ;;
20949  esac
20950  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20951  postinstall_cmds='chmod 555 $lib'
20952  # or fails outright, so override atomically:
20953  install_override_mode=555
20954  ;;
20955
20956interix[3-9]*)
20957  version_type=linux # correct to gnu/linux during the next big refactor
20958  need_lib_prefix=no
20959  need_version=no
20960  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20961  soname_spec='$libname$release$shared_ext$major'
20962  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20963  shlibpath_var=LD_LIBRARY_PATH
20964  shlibpath_overrides_runpath=no
20965  hardcode_into_libs=yes
20966  ;;
20967
20968irix5* | irix6* | nonstopux*)
20969  case $host_os in
20970    nonstopux*) version_type=nonstopux ;;
20971    *)
20972	if test yes = "$lt_cv_prog_gnu_ld"; then
20973		version_type=linux # correct to gnu/linux during the next big refactor
20974	else
20975		version_type=irix
20976	fi ;;
20977  esac
20978  need_lib_prefix=no
20979  need_version=no
20980  soname_spec='$libname$release$shared_ext$major'
20981  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
20982  case $host_os in
20983  irix5* | nonstopux*)
20984    libsuff= shlibsuff=
20985    ;;
20986  *)
20987    case $LD in # libtool.m4 will add one of these switches to LD
20988    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20989      libsuff= shlibsuff= libmagic=32-bit;;
20990    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20991      libsuff=32 shlibsuff=N32 libmagic=N32;;
20992    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20993      libsuff=64 shlibsuff=64 libmagic=64-bit;;
20994    *) libsuff= shlibsuff= libmagic=never-match;;
20995    esac
20996    ;;
20997  esac
20998  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20999  shlibpath_overrides_runpath=no
21000  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
21001  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
21002  hardcode_into_libs=yes
21003  ;;
21004
21005# No shared lib support for Linux oldld, aout, or coff.
21006linux*oldld* | linux*aout* | linux*coff*)
21007  dynamic_linker=no
21008  ;;
21009
21010linux*android*)
21011  version_type=none # Android doesn't support versioned libraries.
21012  need_lib_prefix=no
21013  need_version=no
21014  library_names_spec='$libname$release$shared_ext'
21015  soname_spec='$libname$release$shared_ext'
21016  finish_cmds=
21017  shlibpath_var=LD_LIBRARY_PATH
21018  shlibpath_overrides_runpath=yes
21019
21020  # This implies no fast_install, which is unacceptable.
21021  # Some rework will be needed to allow for fast_install
21022  # before this can be enabled.
21023  hardcode_into_libs=yes
21024
21025  dynamic_linker='Android linker'
21026  # Don't embed -rpath directories since the linker doesn't support them.
21027  hardcode_libdir_flag_spec='-L$libdir'
21028  ;;
21029
21030# This must be glibc/ELF.
21031linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
21032  version_type=linux # correct to gnu/linux during the next big refactor
21033  need_lib_prefix=no
21034  need_version=no
21035  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21036  soname_spec='$libname$release$shared_ext$major'
21037  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21038  shlibpath_var=LD_LIBRARY_PATH
21039  shlibpath_overrides_runpath=no
21040
21041  # Some binutils ld are patched to set DT_RUNPATH
21042  if test ${lt_cv_shlibpath_overrides_runpath+y}
21043then :
21044  printf %s "(cached) " >&6
21045else $as_nop
21046  lt_cv_shlibpath_overrides_runpath=no
21047    save_LDFLAGS=$LDFLAGS
21048    save_libdir=$libdir
21049    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
21050	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
21051    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21052/* end confdefs.h.  */
21053
21054int
21055main (void)
21056{
21057
21058  ;
21059  return 0;
21060}
21061_ACEOF
21062if ac_fn_c_try_link "$LINENO"
21063then :
21064  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
21065then :
21066  lt_cv_shlibpath_overrides_runpath=yes
21067fi
21068fi
21069rm -f core conftest.err conftest.$ac_objext conftest.beam \
21070    conftest$ac_exeext conftest.$ac_ext
21071    LDFLAGS=$save_LDFLAGS
21072    libdir=$save_libdir
21073
21074fi
21075
21076  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
21077
21078  # This implies no fast_install, which is unacceptable.
21079  # Some rework will be needed to allow for fast_install
21080  # before this can be enabled.
21081  hardcode_into_libs=yes
21082
21083  # Add ABI-specific directories to the system library path.
21084  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
21085
21086  # Ideally, we could use ldconfig to report *all* directores which are
21087  # searched for libraries, however this is still not possible.  Aside from not
21088  # being certain /sbin/ldconfig is available, command
21089  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
21090  # even though it is searched at run-time.  Try to do the best guess by
21091  # appending ld.so.conf contents (and includes) to the search path.
21092  if test -f /etc/ld.so.conf; then
21093    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' ' '`
21094    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
21095  fi
21096
21097  # We used to test for /lib/ld.so.1 and disable shared libraries on
21098  # powerpc, because MkLinux only supported shared libraries with the
21099  # GNU dynamic linker.  Since this was broken with cross compilers,
21100  # most powerpc-linux boxes support dynamic linking these days and
21101  # people can always --disable-shared, the test was removed, and we
21102  # assume the GNU/Linux dynamic linker is in use.
21103  dynamic_linker='GNU/Linux ld.so'
21104  ;;
21105
21106netbsd*)
21107  version_type=sunos
21108  need_lib_prefix=no
21109  need_version=no
21110  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21111    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
21112    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21113    dynamic_linker='NetBSD (a.out) ld.so'
21114  else
21115    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21116    soname_spec='$libname$release$shared_ext$major'
21117    dynamic_linker='NetBSD ld.elf_so'
21118  fi
21119  shlibpath_var=LD_LIBRARY_PATH
21120  shlibpath_overrides_runpath=yes
21121  hardcode_into_libs=yes
21122  ;;
21123
21124newsos6)
21125  version_type=linux # correct to gnu/linux during the next big refactor
21126  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21127  shlibpath_var=LD_LIBRARY_PATH
21128  shlibpath_overrides_runpath=yes
21129  ;;
21130
21131*nto* | *qnx*)
21132  version_type=qnx
21133  need_lib_prefix=no
21134  need_version=no
21135  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21136  soname_spec='$libname$release$shared_ext$major'
21137  shlibpath_var=LD_LIBRARY_PATH
21138  shlibpath_overrides_runpath=no
21139  hardcode_into_libs=yes
21140  dynamic_linker='ldqnx.so'
21141  ;;
21142
21143openbsd* | bitrig*)
21144  version_type=sunos
21145  sys_lib_dlsearch_path_spec=/usr/lib
21146  need_lib_prefix=no
21147  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
21148    need_version=no
21149  else
21150    need_version=yes
21151  fi
21152  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
21153  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21154  shlibpath_var=LD_LIBRARY_PATH
21155  shlibpath_overrides_runpath=yes
21156  ;;
21157
21158os2*)
21159  libname_spec='$name'
21160  version_type=windows
21161  shrext_cmds=.dll
21162  need_version=no
21163  need_lib_prefix=no
21164  # OS/2 can only load a DLL with a base name of 8 characters or less.
21165  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
21166    v=$($ECHO $release$versuffix | tr -d .-);
21167    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
21168    $ECHO $n$v`$shared_ext'
21169  library_names_spec='${libname}_dll.$libext'
21170  dynamic_linker='OS/2 ld.exe'
21171  shlibpath_var=BEGINLIBPATH
21172  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
21173  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21174  postinstall_cmds='base_file=`basename \$file`~
21175    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
21176    dldir=$destdir/`dirname \$dlpath`~
21177    test -d \$dldir || mkdir -p \$dldir~
21178    $install_prog $dir/$dlname \$dldir/$dlname~
21179    chmod a+x \$dldir/$dlname~
21180    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21181      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21182    fi'
21183  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
21184    dlpath=$dir/\$dldll~
21185    $RM \$dlpath'
21186  ;;
21187
21188osf3* | osf4* | osf5*)
21189  version_type=osf
21190  need_lib_prefix=no
21191  need_version=no
21192  soname_spec='$libname$release$shared_ext$major'
21193  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21194  shlibpath_var=LD_LIBRARY_PATH
21195  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21196  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21197  ;;
21198
21199rdos*)
21200  dynamic_linker=no
21201  ;;
21202
21203solaris*)
21204  version_type=linux # correct to gnu/linux during the next big refactor
21205  need_lib_prefix=no
21206  need_version=no
21207  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21208  soname_spec='$libname$release$shared_ext$major'
21209  shlibpath_var=LD_LIBRARY_PATH
21210  shlibpath_overrides_runpath=yes
21211  hardcode_into_libs=yes
21212  # ldd complains unless libraries are executable
21213  postinstall_cmds='chmod +x $lib'
21214  ;;
21215
21216sunos4*)
21217  version_type=sunos
21218  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
21219  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21220  shlibpath_var=LD_LIBRARY_PATH
21221  shlibpath_overrides_runpath=yes
21222  if test yes = "$with_gnu_ld"; then
21223    need_lib_prefix=no
21224  fi
21225  need_version=yes
21226  ;;
21227
21228sysv4 | sysv4.3*)
21229  version_type=linux # correct to gnu/linux during the next big refactor
21230  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21231  soname_spec='$libname$release$shared_ext$major'
21232  shlibpath_var=LD_LIBRARY_PATH
21233  case $host_vendor in
21234    sni)
21235      shlibpath_overrides_runpath=no
21236      need_lib_prefix=no
21237      runpath_var=LD_RUN_PATH
21238      ;;
21239    siemens)
21240      need_lib_prefix=no
21241      ;;
21242    motorola)
21243      need_lib_prefix=no
21244      need_version=no
21245      shlibpath_overrides_runpath=no
21246      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21247      ;;
21248  esac
21249  ;;
21250
21251sysv4*MP*)
21252  if test -d /usr/nec; then
21253    version_type=linux # correct to gnu/linux during the next big refactor
21254    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
21255    soname_spec='$libname$shared_ext.$major'
21256    shlibpath_var=LD_LIBRARY_PATH
21257  fi
21258  ;;
21259
21260sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21261  version_type=sco
21262  need_lib_prefix=no
21263  need_version=no
21264  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
21265  soname_spec='$libname$release$shared_ext$major'
21266  shlibpath_var=LD_LIBRARY_PATH
21267  shlibpath_overrides_runpath=yes
21268  hardcode_into_libs=yes
21269  if test yes = "$with_gnu_ld"; then
21270    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21271  else
21272    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21273    case $host_os in
21274      sco3.2v5*)
21275        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21276	;;
21277    esac
21278  fi
21279  sys_lib_dlsearch_path_spec='/usr/lib'
21280  ;;
21281
21282tpf*)
21283  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
21284  version_type=linux # correct to gnu/linux during the next big refactor
21285  need_lib_prefix=no
21286  need_version=no
21287  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21288  shlibpath_var=LD_LIBRARY_PATH
21289  shlibpath_overrides_runpath=no
21290  hardcode_into_libs=yes
21291  ;;
21292
21293uts4*)
21294  version_type=linux # correct to gnu/linux during the next big refactor
21295  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21296  soname_spec='$libname$release$shared_ext$major'
21297  shlibpath_var=LD_LIBRARY_PATH
21298  ;;
21299
21300*)
21301  dynamic_linker=no
21302  ;;
21303esac
21304{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21305printf "%s\n" "$dynamic_linker" >&6; }
21306test no = "$dynamic_linker" && can_build_shared=no
21307
21308variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21309if test yes = "$GCC"; then
21310  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21311fi
21312
21313if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
21314  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
21315fi
21316
21317if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
21318  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
21319fi
21320
21321# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
21322configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
21323
21324# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
21325func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
21326
21327# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
21328configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
21329
21330
21331
21332
21333
21334
21335
21336
21337
21338
21339
21340
21341
21342
21343
21344
21345
21346
21347
21348
21349
21350
21351
21352
21353
21354
21355
21356
21357
21358
21359
21360
21361
21362
21363
21364
21365
21366
21367
21368
21369
21370
21371
21372
21373
21374
21375
21376
21377
21378
21379
21380
21381
21382
21383
21384
21385
21386
21387
21388
21389
21390
21391
21392
21393
21394
21395
21396
21397
21398
21399
21400
21401
21402
21403
21404
21405
21406
21407
21408
21409
21410
21411
21412
21413
21414
21415
21416
21417
21418
21419
21420
21421
21422
21423
21424
21425
21426  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21427printf %s "checking how to hardcode library paths into programs... " >&6; }
21428hardcode_action=
21429if test -n "$hardcode_libdir_flag_spec" ||
21430   test -n "$runpath_var" ||
21431   test yes = "$hardcode_automatic"; then
21432
21433  # We can hardcode non-existent directories.
21434  if test no != "$hardcode_direct" &&
21435     # If the only mechanism to avoid hardcoding is shlibpath_var, we
21436     # have to relink, otherwise we might link with an installed library
21437     # when we should be linking with a yet-to-be-installed one
21438     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
21439     test no != "$hardcode_minus_L"; then
21440    # Linking always hardcodes the temporary library directory.
21441    hardcode_action=relink
21442  else
21443    # We can link without hardcoding, and we can hardcode nonexisting dirs.
21444    hardcode_action=immediate
21445  fi
21446else
21447  # We cannot hardcode anything, or else we can only hardcode existing
21448  # directories.
21449  hardcode_action=unsupported
21450fi
21451{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
21452printf "%s\n" "$hardcode_action" >&6; }
21453
21454if test relink = "$hardcode_action" ||
21455   test yes = "$inherit_rpath"; then
21456  # Fast installation is not supported
21457  enable_fast_install=no
21458elif test yes = "$shlibpath_overrides_runpath" ||
21459     test no = "$enable_shared"; then
21460  # Fast installation is not necessary
21461  enable_fast_install=needless
21462fi
21463
21464
21465
21466
21467
21468
21469  if test yes != "$enable_dlopen"; then
21470  enable_dlopen=unknown
21471  enable_dlopen_self=unknown
21472  enable_dlopen_self_static=unknown
21473else
21474  lt_cv_dlopen=no
21475  lt_cv_dlopen_libs=
21476
21477  case $host_os in
21478  beos*)
21479    lt_cv_dlopen=load_add_on
21480    lt_cv_dlopen_libs=
21481    lt_cv_dlopen_self=yes
21482    ;;
21483
21484  mingw* | pw32* | cegcc*)
21485    lt_cv_dlopen=LoadLibrary
21486    lt_cv_dlopen_libs=
21487    ;;
21488
21489  cygwin*)
21490    lt_cv_dlopen=dlopen
21491    lt_cv_dlopen_libs=
21492    ;;
21493
21494  darwin*)
21495    # if libdl is installed we need to link against it
21496    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
21497printf %s "checking for dlopen in -ldl... " >&6; }
21498if test ${ac_cv_lib_dl_dlopen+y}
21499then :
21500  printf %s "(cached) " >&6
21501else $as_nop
21502  ac_check_lib_save_LIBS=$LIBS
21503LIBS="-ldl  $LIBS"
21504cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21505/* end confdefs.h.  */
21506
21507/* Override any GCC internal prototype to avoid an error.
21508   Use char because int might match the return type of a GCC
21509   builtin and then its argument prototype would still apply.  */
21510char dlopen ();
21511int
21512main (void)
21513{
21514return dlopen ();
21515  ;
21516  return 0;
21517}
21518_ACEOF
21519if ac_fn_c_try_link "$LINENO"
21520then :
21521  ac_cv_lib_dl_dlopen=yes
21522else $as_nop
21523  ac_cv_lib_dl_dlopen=no
21524fi
21525rm -f core conftest.err conftest.$ac_objext conftest.beam \
21526    conftest$ac_exeext conftest.$ac_ext
21527LIBS=$ac_check_lib_save_LIBS
21528fi
21529{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
21530printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
21531if test "x$ac_cv_lib_dl_dlopen" = xyes
21532then :
21533  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
21534else $as_nop
21535
21536    lt_cv_dlopen=dyld
21537    lt_cv_dlopen_libs=
21538    lt_cv_dlopen_self=yes
21539
21540fi
21541
21542    ;;
21543
21544  tpf*)
21545    # Don't try to run any link tests for TPF.  We know it's impossible
21546    # because TPF is a cross-compiler, and we know how we open DSOs.
21547    lt_cv_dlopen=dlopen
21548    lt_cv_dlopen_libs=
21549    lt_cv_dlopen_self=no
21550    ;;
21551
21552  *)
21553    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
21554if test "x$ac_cv_func_shl_load" = xyes
21555then :
21556  lt_cv_dlopen=shl_load
21557else $as_nop
21558  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
21559printf %s "checking for shl_load in -ldld... " >&6; }
21560if test ${ac_cv_lib_dld_shl_load+y}
21561then :
21562  printf %s "(cached) " >&6
21563else $as_nop
21564  ac_check_lib_save_LIBS=$LIBS
21565LIBS="-ldld  $LIBS"
21566cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21567/* end confdefs.h.  */
21568
21569/* Override any GCC internal prototype to avoid an error.
21570   Use char because int might match the return type of a GCC
21571   builtin and then its argument prototype would still apply.  */
21572char shl_load ();
21573int
21574main (void)
21575{
21576return shl_load ();
21577  ;
21578  return 0;
21579}
21580_ACEOF
21581if ac_fn_c_try_link "$LINENO"
21582then :
21583  ac_cv_lib_dld_shl_load=yes
21584else $as_nop
21585  ac_cv_lib_dld_shl_load=no
21586fi
21587rm -f core conftest.err conftest.$ac_objext conftest.beam \
21588    conftest$ac_exeext conftest.$ac_ext
21589LIBS=$ac_check_lib_save_LIBS
21590fi
21591{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
21592printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
21593if test "x$ac_cv_lib_dld_shl_load" = xyes
21594then :
21595  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
21596else $as_nop
21597  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
21598if test "x$ac_cv_func_dlopen" = xyes
21599then :
21600  lt_cv_dlopen=dlopen
21601else $as_nop
21602  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
21603printf %s "checking for dlopen in -ldl... " >&6; }
21604if test ${ac_cv_lib_dl_dlopen+y}
21605then :
21606  printf %s "(cached) " >&6
21607else $as_nop
21608  ac_check_lib_save_LIBS=$LIBS
21609LIBS="-ldl  $LIBS"
21610cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21611/* end confdefs.h.  */
21612
21613/* Override any GCC internal prototype to avoid an error.
21614   Use char because int might match the return type of a GCC
21615   builtin and then its argument prototype would still apply.  */
21616char dlopen ();
21617int
21618main (void)
21619{
21620return dlopen ();
21621  ;
21622  return 0;
21623}
21624_ACEOF
21625if ac_fn_c_try_link "$LINENO"
21626then :
21627  ac_cv_lib_dl_dlopen=yes
21628else $as_nop
21629  ac_cv_lib_dl_dlopen=no
21630fi
21631rm -f core conftest.err conftest.$ac_objext conftest.beam \
21632    conftest$ac_exeext conftest.$ac_ext
21633LIBS=$ac_check_lib_save_LIBS
21634fi
21635{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
21636printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
21637if test "x$ac_cv_lib_dl_dlopen" = xyes
21638then :
21639  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
21640else $as_nop
21641  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
21642printf %s "checking for dlopen in -lsvld... " >&6; }
21643if test ${ac_cv_lib_svld_dlopen+y}
21644then :
21645  printf %s "(cached) " >&6
21646else $as_nop
21647  ac_check_lib_save_LIBS=$LIBS
21648LIBS="-lsvld  $LIBS"
21649cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21650/* end confdefs.h.  */
21651
21652/* Override any GCC internal prototype to avoid an error.
21653   Use char because int might match the return type of a GCC
21654   builtin and then its argument prototype would still apply.  */
21655char dlopen ();
21656int
21657main (void)
21658{
21659return dlopen ();
21660  ;
21661  return 0;
21662}
21663_ACEOF
21664if ac_fn_c_try_link "$LINENO"
21665then :
21666  ac_cv_lib_svld_dlopen=yes
21667else $as_nop
21668  ac_cv_lib_svld_dlopen=no
21669fi
21670rm -f core conftest.err conftest.$ac_objext conftest.beam \
21671    conftest$ac_exeext conftest.$ac_ext
21672LIBS=$ac_check_lib_save_LIBS
21673fi
21674{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
21675printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
21676if test "x$ac_cv_lib_svld_dlopen" = xyes
21677then :
21678  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
21679else $as_nop
21680  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
21681printf %s "checking for dld_link in -ldld... " >&6; }
21682if test ${ac_cv_lib_dld_dld_link+y}
21683then :
21684  printf %s "(cached) " >&6
21685else $as_nop
21686  ac_check_lib_save_LIBS=$LIBS
21687LIBS="-ldld  $LIBS"
21688cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21689/* end confdefs.h.  */
21690
21691/* Override any GCC internal prototype to avoid an error.
21692   Use char because int might match the return type of a GCC
21693   builtin and then its argument prototype would still apply.  */
21694char dld_link ();
21695int
21696main (void)
21697{
21698return dld_link ();
21699  ;
21700  return 0;
21701}
21702_ACEOF
21703if ac_fn_c_try_link "$LINENO"
21704then :
21705  ac_cv_lib_dld_dld_link=yes
21706else $as_nop
21707  ac_cv_lib_dld_dld_link=no
21708fi
21709rm -f core conftest.err conftest.$ac_objext conftest.beam \
21710    conftest$ac_exeext conftest.$ac_ext
21711LIBS=$ac_check_lib_save_LIBS
21712fi
21713{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
21714printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
21715if test "x$ac_cv_lib_dld_dld_link" = xyes
21716then :
21717  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
21718fi
21719
21720
21721fi
21722
21723
21724fi
21725
21726
21727fi
21728
21729
21730fi
21731
21732
21733fi
21734
21735    ;;
21736  esac
21737
21738  if test no = "$lt_cv_dlopen"; then
21739    enable_dlopen=no
21740  else
21741    enable_dlopen=yes
21742  fi
21743
21744  case $lt_cv_dlopen in
21745  dlopen)
21746    save_CPPFLAGS=$CPPFLAGS
21747    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
21748
21749    save_LDFLAGS=$LDFLAGS
21750    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
21751
21752    save_LIBS=$LIBS
21753    LIBS="$lt_cv_dlopen_libs $LIBS"
21754
21755    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
21756printf %s "checking whether a program can dlopen itself... " >&6; }
21757if test ${lt_cv_dlopen_self+y}
21758then :
21759  printf %s "(cached) " >&6
21760else $as_nop
21761  	  if test yes = "$cross_compiling"; then :
21762  lt_cv_dlopen_self=cross
21763else
21764  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
21765  lt_status=$lt_dlunknown
21766  cat > conftest.$ac_ext <<_LT_EOF
21767#line $LINENO "configure"
21768#include "confdefs.h"
21769
21770#if HAVE_DLFCN_H
21771#include <dlfcn.h>
21772#endif
21773
21774#include <stdio.h>
21775
21776#ifdef RTLD_GLOBAL
21777#  define LT_DLGLOBAL		RTLD_GLOBAL
21778#else
21779#  ifdef DL_GLOBAL
21780#    define LT_DLGLOBAL		DL_GLOBAL
21781#  else
21782#    define LT_DLGLOBAL		0
21783#  endif
21784#endif
21785
21786/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
21787   find out it does not work in some platform. */
21788#ifndef LT_DLLAZY_OR_NOW
21789#  ifdef RTLD_LAZY
21790#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
21791#  else
21792#    ifdef DL_LAZY
21793#      define LT_DLLAZY_OR_NOW		DL_LAZY
21794#    else
21795#      ifdef RTLD_NOW
21796#        define LT_DLLAZY_OR_NOW	RTLD_NOW
21797#      else
21798#        ifdef DL_NOW
21799#          define LT_DLLAZY_OR_NOW	DL_NOW
21800#        else
21801#          define LT_DLLAZY_OR_NOW	0
21802#        endif
21803#      endif
21804#    endif
21805#  endif
21806#endif
21807
21808/* When -fvisibility=hidden is used, assume the code has been annotated
21809   correspondingly for the symbols needed.  */
21810#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
21811int fnord () __attribute__((visibility("default")));
21812#endif
21813
21814int fnord () { return 42; }
21815int main ()
21816{
21817  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
21818  int status = $lt_dlunknown;
21819
21820  if (self)
21821    {
21822      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
21823      else
21824        {
21825	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
21826          else puts (dlerror ());
21827	}
21828      /* dlclose (self); */
21829    }
21830  else
21831    puts (dlerror ());
21832
21833  return status;
21834}
21835_LT_EOF
21836  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
21837  (eval $ac_link) 2>&5
21838  ac_status=$?
21839  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21840  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
21841    (./conftest; exit; ) >&5 2>/dev/null
21842    lt_status=$?
21843    case x$lt_status in
21844      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
21845      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
21846      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
21847    esac
21848  else :
21849    # compilation failed
21850    lt_cv_dlopen_self=no
21851  fi
21852fi
21853rm -fr conftest*
21854
21855
21856fi
21857{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
21858printf "%s\n" "$lt_cv_dlopen_self" >&6; }
21859
21860    if test yes = "$lt_cv_dlopen_self"; then
21861      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
21862      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
21863printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
21864if test ${lt_cv_dlopen_self_static+y}
21865then :
21866  printf %s "(cached) " >&6
21867else $as_nop
21868  	  if test yes = "$cross_compiling"; then :
21869  lt_cv_dlopen_self_static=cross
21870else
21871  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
21872  lt_status=$lt_dlunknown
21873  cat > conftest.$ac_ext <<_LT_EOF
21874#line $LINENO "configure"
21875#include "confdefs.h"
21876
21877#if HAVE_DLFCN_H
21878#include <dlfcn.h>
21879#endif
21880
21881#include <stdio.h>
21882
21883#ifdef RTLD_GLOBAL
21884#  define LT_DLGLOBAL		RTLD_GLOBAL
21885#else
21886#  ifdef DL_GLOBAL
21887#    define LT_DLGLOBAL		DL_GLOBAL
21888#  else
21889#    define LT_DLGLOBAL		0
21890#  endif
21891#endif
21892
21893/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
21894   find out it does not work in some platform. */
21895#ifndef LT_DLLAZY_OR_NOW
21896#  ifdef RTLD_LAZY
21897#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
21898#  else
21899#    ifdef DL_LAZY
21900#      define LT_DLLAZY_OR_NOW		DL_LAZY
21901#    else
21902#      ifdef RTLD_NOW
21903#        define LT_DLLAZY_OR_NOW	RTLD_NOW
21904#      else
21905#        ifdef DL_NOW
21906#          define LT_DLLAZY_OR_NOW	DL_NOW
21907#        else
21908#          define LT_DLLAZY_OR_NOW	0
21909#        endif
21910#      endif
21911#    endif
21912#  endif
21913#endif
21914
21915/* When -fvisibility=hidden is used, assume the code has been annotated
21916   correspondingly for the symbols needed.  */
21917#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
21918int fnord () __attribute__((visibility("default")));
21919#endif
21920
21921int fnord () { return 42; }
21922int main ()
21923{
21924  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
21925  int status = $lt_dlunknown;
21926
21927  if (self)
21928    {
21929      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
21930      else
21931        {
21932	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
21933          else puts (dlerror ());
21934	}
21935      /* dlclose (self); */
21936    }
21937  else
21938    puts (dlerror ());
21939
21940  return status;
21941}
21942_LT_EOF
21943  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
21944  (eval $ac_link) 2>&5
21945  ac_status=$?
21946  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21947  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
21948    (./conftest; exit; ) >&5 2>/dev/null
21949    lt_status=$?
21950    case x$lt_status in
21951      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
21952      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
21953      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
21954    esac
21955  else :
21956    # compilation failed
21957    lt_cv_dlopen_self_static=no
21958  fi
21959fi
21960rm -fr conftest*
21961
21962
21963fi
21964{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
21965printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
21966    fi
21967
21968    CPPFLAGS=$save_CPPFLAGS
21969    LDFLAGS=$save_LDFLAGS
21970    LIBS=$save_LIBS
21971    ;;
21972  esac
21973
21974  case $lt_cv_dlopen_self in
21975  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
21976  *) enable_dlopen_self=unknown ;;
21977  esac
21978
21979  case $lt_cv_dlopen_self_static in
21980  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
21981  *) enable_dlopen_self_static=unknown ;;
21982  esac
21983fi
21984
21985
21986
21987
21988
21989
21990
21991
21992
21993
21994
21995
21996
21997
21998
21999
22000
22001striplib=
22002old_striplib=
22003{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
22004printf %s "checking whether stripping libraries is possible... " >&6; }
22005if test -z "$STRIP"; then
22006  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22007printf "%s\n" "no" >&6; }
22008else
22009  if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
22010    old_striplib="$STRIP --strip-debug"
22011    striplib="$STRIP --strip-unneeded"
22012    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22013printf "%s\n" "yes" >&6; }
22014  else
22015    case $host_os in
22016    darwin*)
22017      # FIXME - insert some real tests, host_os isn't really good enough
22018      striplib="$STRIP -x"
22019      old_striplib="$STRIP -S"
22020      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22021printf "%s\n" "yes" >&6; }
22022      ;;
22023    freebsd*)
22024      if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
22025        old_striplib="$STRIP --strip-debug"
22026        striplib="$STRIP --strip-unneeded"
22027        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22028printf "%s\n" "yes" >&6; }
22029      else
22030        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22031printf "%s\n" "no" >&6; }
22032      fi
22033      ;;
22034    *)
22035      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22036printf "%s\n" "no" >&6; }
22037      ;;
22038    esac
22039  fi
22040fi
22041
22042
22043
22044
22045
22046
22047
22048
22049
22050
22051
22052
22053  # Report what library types will actually be built
22054  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
22055printf %s "checking if libtool supports shared libraries... " >&6; }
22056  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
22057printf "%s\n" "$can_build_shared" >&6; }
22058
22059  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
22060printf %s "checking whether to build shared libraries... " >&6; }
22061  test no = "$can_build_shared" && enable_shared=no
22062
22063  # On AIX, shared libraries and static libraries use the same namespace, and
22064  # are all built from PIC.
22065  case $host_os in
22066  aix3*)
22067    test yes = "$enable_shared" && enable_static=no
22068    if test -n "$RANLIB"; then
22069      archive_cmds="$archive_cmds~\$RANLIB \$lib"
22070      postinstall_cmds='$RANLIB $lib'
22071    fi
22072    ;;
22073
22074  aix[4-9]*)
22075    if test ia64 != "$host_cpu"; then
22076      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
22077      yes,aix,yes) ;;			# shared object as lib.so file only
22078      yes,svr4,*) ;;			# shared object as lib.so archive member only
22079      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
22080      esac
22081    fi
22082    ;;
22083  esac
22084  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
22085printf "%s\n" "$enable_shared" >&6; }
22086
22087  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
22088printf %s "checking whether to build static libraries... " >&6; }
22089  # Make sure either enable_shared or enable_static is yes.
22090  test yes = "$enable_shared" || enable_static=yes
22091  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
22092printf "%s\n" "$enable_static" >&6; }
22093
22094
22095
22096
22097fi
22098ac_ext=c
22099ac_cpp='$CPP $CPPFLAGS'
22100ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22101ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22102ac_compiler_gnu=$ac_cv_c_compiler_gnu
22103
22104CC=$lt_save_CC
22105
22106
22107
22108
22109
22110
22111
22112
22113
22114
22115
22116
22117
22118
22119
22120        ac_config_commands="$ac_config_commands libtool"
22121
22122
22123
22124
22125# Only expand once:
22126
22127
22128
22129
22130
22131
22132
22133
22134
22135if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
22136	if test -n "$ac_tool_prefix"; then
22137  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22138set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22139{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22140printf %s "checking for $ac_word... " >&6; }
22141if test ${ac_cv_path_PKG_CONFIG+y}
22142then :
22143  printf %s "(cached) " >&6
22144else $as_nop
22145  case $PKG_CONFIG in
22146  [\\/]* | ?:[\\/]*)
22147  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22148  ;;
22149  *)
22150  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22151for as_dir in $PATH
22152do
22153  IFS=$as_save_IFS
22154  case $as_dir in #(((
22155    '') as_dir=./ ;;
22156    */) ;;
22157    *) as_dir=$as_dir/ ;;
22158  esac
22159    for ac_exec_ext in '' $ac_executable_extensions; do
22160  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
22161    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
22162    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
22163    break 2
22164  fi
22165done
22166  done
22167IFS=$as_save_IFS
22168
22169  ;;
22170esac
22171fi
22172PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22173if test -n "$PKG_CONFIG"; then
22174  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22175printf "%s\n" "$PKG_CONFIG" >&6; }
22176else
22177  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22178printf "%s\n" "no" >&6; }
22179fi
22180
22181
22182fi
22183if test -z "$ac_cv_path_PKG_CONFIG"; then
22184  ac_pt_PKG_CONFIG=$PKG_CONFIG
22185  # Extract the first word of "pkg-config", so it can be a program name with args.
22186set dummy pkg-config; ac_word=$2
22187{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22188printf %s "checking for $ac_word... " >&6; }
22189if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
22190then :
22191  printf %s "(cached) " >&6
22192else $as_nop
22193  case $ac_pt_PKG_CONFIG in
22194  [\\/]* | ?:[\\/]*)
22195  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
22196  ;;
22197  *)
22198  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22199for as_dir in $PATH
22200do
22201  IFS=$as_save_IFS
22202  case $as_dir in #(((
22203    '') as_dir=./ ;;
22204    */) ;;
22205    *) as_dir=$as_dir/ ;;
22206  esac
22207    for ac_exec_ext in '' $ac_executable_extensions; do
22208  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
22209    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
22210    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
22211    break 2
22212  fi
22213done
22214  done
22215IFS=$as_save_IFS
22216
22217  ;;
22218esac
22219fi
22220ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
22221if test -n "$ac_pt_PKG_CONFIG"; then
22222  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
22223printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
22224else
22225  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22226printf "%s\n" "no" >&6; }
22227fi
22228
22229  if test "x$ac_pt_PKG_CONFIG" = x; then
22230    PKG_CONFIG=""
22231  else
22232    case $cross_compiling:$ac_tool_warned in
22233yes:)
22234{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
22235printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22236ac_tool_warned=yes ;;
22237esac
22238    PKG_CONFIG=$ac_pt_PKG_CONFIG
22239  fi
22240else
22241  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
22242fi
22243
22244fi
22245if test -n "$PKG_CONFIG"; then
22246	_pkg_min_version=0.9.0
22247	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
22248printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
22249	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
22250		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22251printf "%s\n" "yes" >&6; }
22252	else
22253		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22254printf "%s\n" "no" >&6; }
22255		PKG_CONFIG=""
22256	fi
22257fi
22258for ac_prog in flex lex
22259do
22260  # Extract the first word of "$ac_prog", so it can be a program name with args.
22261set dummy $ac_prog; ac_word=$2
22262{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22263printf %s "checking for $ac_word... " >&6; }
22264if test ${ac_cv_prog_LEX+y}
22265then :
22266  printf %s "(cached) " >&6
22267else $as_nop
22268  if test -n "$LEX"; then
22269  ac_cv_prog_LEX="$LEX" # Let the user override the test.
22270else
22271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22272for as_dir in $PATH
22273do
22274  IFS=$as_save_IFS
22275  case $as_dir in #(((
22276    '') as_dir=./ ;;
22277    */) ;;
22278    *) as_dir=$as_dir/ ;;
22279  esac
22280    for ac_exec_ext in '' $ac_executable_extensions; do
22281  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
22282    ac_cv_prog_LEX="$ac_prog"
22283    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
22284    break 2
22285  fi
22286done
22287  done
22288IFS=$as_save_IFS
22289
22290fi
22291fi
22292LEX=$ac_cv_prog_LEX
22293if test -n "$LEX"; then
22294  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
22295printf "%s\n" "$LEX" >&6; }
22296else
22297  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22298printf "%s\n" "no" >&6; }
22299fi
22300
22301
22302  test -n "$LEX" && break
22303done
22304test -n "$LEX" || LEX=":"
22305
22306  if test "x$LEX" != "x:"; then
22307    cat >conftest.l <<_ACEOF
22308%{
22309#ifdef __cplusplus
22310extern "C"
22311#endif
22312int yywrap(void);
22313%}
22314%%
22315a { ECHO; }
22316b { REJECT; }
22317c { yymore (); }
22318d { yyless (1); }
22319e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument.  */
22320#ifdef __cplusplus
22321    yyless ((yyinput () != 0));
22322#else
22323    yyless ((input () != 0));
22324#endif
22325  }
22326f { unput (yytext[0]); }
22327. { BEGIN INITIAL; }
22328%%
22329#ifdef YYTEXT_POINTER
22330extern char *yytext;
22331#endif
22332int
22333yywrap (void)
22334{
22335  return 1;
22336}
22337int
22338main (void)
22339{
22340  return ! yylex ();
22341}
22342_ACEOF
22343{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lex output file root" >&5
22344printf %s "checking for lex output file root... " >&6; }
22345if test ${ac_cv_prog_lex_root+y}
22346then :
22347  printf %s "(cached) " >&6
22348else $as_nop
22349
22350ac_cv_prog_lex_root=unknown
22351{ { ac_try="$LEX conftest.l"
22352case "(($ac_try" in
22353  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22354  *) ac_try_echo=$ac_try;;
22355esac
22356eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
22357printf "%s\n" "$ac_try_echo"; } >&5
22358  (eval "$LEX conftest.l") 2>&5
22359  ac_status=$?
22360  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22361  test $ac_status = 0; } &&
22362if test -f lex.yy.c; then
22363  ac_cv_prog_lex_root=lex.yy
22364elif test -f lexyy.c; then
22365  ac_cv_prog_lex_root=lexyy
22366fi
22367fi
22368{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
22369printf "%s\n" "$ac_cv_prog_lex_root" >&6; }
22370if test "$ac_cv_prog_lex_root" = unknown
22371then :
22372  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot find output from $LEX; giving up on $LEX" >&5
22373printf "%s\n" "$as_me: WARNING: cannot find output from $LEX; giving up on $LEX" >&2;}
22374   LEX=: LEXLIB=
22375fi
22376LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
22377
22378if test ${LEXLIB+y}
22379then :
22380
22381else $as_nop
22382
22383  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lex library" >&5
22384printf %s "checking for lex library... " >&6; }
22385if test ${ac_cv_lib_lex+y}
22386then :
22387  printf %s "(cached) " >&6
22388else $as_nop
22389
22390    ac_save_LIBS="$LIBS"
22391    ac_found=false
22392    for ac_cv_lib_lex in 'none needed' -lfl -ll 'not found'; do
22393      case $ac_cv_lib_lex in #(
22394  'none needed') :
22395     ;; #(
22396  'not found') :
22397    break ;; #(
22398  *) :
22399    LIBS="$ac_cv_lib_lex $ac_save_LIBS" ;; #(
22400  *) :
22401     ;;
22402esac
22403
22404      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22405/* end confdefs.h.  */
22406`cat $LEX_OUTPUT_ROOT.c`
22407_ACEOF
22408if ac_fn_c_try_link "$LINENO"
22409then :
22410  ac_found=:
22411fi
22412rm -f core conftest.err conftest.$ac_objext conftest.beam \
22413    conftest$ac_exeext conftest.$ac_ext
22414      if $ac_found; then
22415        break
22416      fi
22417    done
22418    LIBS="$ac_save_LIBS"
22419
22420fi
22421{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
22422printf "%s\n" "$ac_cv_lib_lex" >&6; }
22423  if test "$ac_cv_lib_lex" = 'not found'
22424then :
22425  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: required lex library not found; giving up on $LEX" >&5
22426printf "%s\n" "$as_me: WARNING: required lex library not found; giving up on $LEX" >&2;}
22427	 LEX=: LEXLIB=
22428elif test "$ac_cv_lib_lex" = 'none needed'
22429then :
22430  LEXLIB=''
22431else $as_nop
22432  LEXLIB=$ac_cv_lib_lex
22433fi
22434  ac_save_LIBS="$LIBS"
22435      LIBS=
22436      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing yywrap" >&5
22437printf %s "checking for library containing yywrap... " >&6; }
22438if test ${ac_cv_search_yywrap+y}
22439then :
22440  printf %s "(cached) " >&6
22441else $as_nop
22442  ac_func_search_save_LIBS=$LIBS
22443cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22444/* end confdefs.h.  */
22445
22446/* Override any GCC internal prototype to avoid an error.
22447   Use char because int might match the return type of a GCC
22448   builtin and then its argument prototype would still apply.  */
22449char yywrap ();
22450int
22451main (void)
22452{
22453return yywrap ();
22454  ;
22455  return 0;
22456}
22457_ACEOF
22458for ac_lib in '' fl l
22459do
22460  if test -z "$ac_lib"; then
22461    ac_res="none required"
22462  else
22463    ac_res=-l$ac_lib
22464    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22465  fi
22466  if ac_fn_c_try_link "$LINENO"
22467then :
22468  ac_cv_search_yywrap=$ac_res
22469fi
22470rm -f core conftest.err conftest.$ac_objext conftest.beam \
22471    conftest$ac_exeext
22472  if test ${ac_cv_search_yywrap+y}
22473then :
22474  break
22475fi
22476done
22477if test ${ac_cv_search_yywrap+y}
22478then :
22479
22480else $as_nop
22481  ac_cv_search_yywrap=no
22482fi
22483rm conftest.$ac_ext
22484LIBS=$ac_func_search_save_LIBS
22485fi
22486{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_yywrap" >&5
22487printf "%s\n" "$ac_cv_search_yywrap" >&6; }
22488ac_res=$ac_cv_search_yywrap
22489if test "$ac_res" != no
22490then :
22491  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22492  LEXLIB="$LIBS"
22493fi
22494
22495      LIBS="$ac_save_LIBS"
22496fi
22497
22498
22499if test "$LEX" != :
22500then :
22501
22502{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
22503printf %s "checking whether yytext is a pointer... " >&6; }
22504if test ${ac_cv_prog_lex_yytext_pointer+y}
22505then :
22506  printf %s "(cached) " >&6
22507else $as_nop
22508  # POSIX says lex can declare yytext either as a pointer or an array; the
22509# default is implementation-dependent.  Figure out which it is, since
22510# not all implementations provide the %pointer and %array declarations.
22511ac_cv_prog_lex_yytext_pointer=no
22512cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22513/* end confdefs.h.  */
22514
22515  #define YYTEXT_POINTER 1
22516`cat $LEX_OUTPUT_ROOT.c`
22517_ACEOF
22518if ac_fn_c_try_compile "$LINENO"
22519then :
22520  ac_cv_prog_lex_yytext_pointer=yes
22521fi
22522rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22523
22524fi
22525{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
22526printf "%s\n" "$ac_cv_prog_lex_yytext_pointer" >&6; }
22527if test $ac_cv_prog_lex_yytext_pointer = yes; then
22528
22529printf "%s\n" "#define YYTEXT_POINTER 1" >>confdefs.h
22530
22531fi
22532
22533fi
22534rm -f conftest.l $LEX_OUTPUT_ROOT.c
22535
22536fi
22537for ac_prog in 'bison -y' byacc
22538do
22539  # Extract the first word of "$ac_prog", so it can be a program name with args.
22540set dummy $ac_prog; ac_word=$2
22541{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22542printf %s "checking for $ac_word... " >&6; }
22543if test ${ac_cv_prog_YACC+y}
22544then :
22545  printf %s "(cached) " >&6
22546else $as_nop
22547  if test -n "$YACC"; then
22548  ac_cv_prog_YACC="$YACC" # Let the user override the test.
22549else
22550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22551for as_dir in $PATH
22552do
22553  IFS=$as_save_IFS
22554  case $as_dir in #(((
22555    '') as_dir=./ ;;
22556    */) ;;
22557    *) as_dir=$as_dir/ ;;
22558  esac
22559    for ac_exec_ext in '' $ac_executable_extensions; do
22560  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
22561    ac_cv_prog_YACC="$ac_prog"
22562    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
22563    break 2
22564  fi
22565done
22566  done
22567IFS=$as_save_IFS
22568
22569fi
22570fi
22571YACC=$ac_cv_prog_YACC
22572if test -n "$YACC"; then
22573  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
22574printf "%s\n" "$YACC" >&6; }
22575else
22576  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22577printf "%s\n" "no" >&6; }
22578fi
22579
22580
22581  test -n "$YACC" && break
22582done
22583test -n "$YACC" || YACC="yacc"
22584
22585# Check whether --enable-largefile was given.
22586if test ${enable_largefile+y}
22587then :
22588  enableval=$enable_largefile;
22589fi
22590
22591if test "$enable_largefile" != no; then
22592
22593  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
22594printf %s "checking for special C compiler options needed for large files... " >&6; }
22595if test ${ac_cv_sys_largefile_CC+y}
22596then :
22597  printf %s "(cached) " >&6
22598else $as_nop
22599  ac_cv_sys_largefile_CC=no
22600     if test "$GCC" != yes; then
22601       ac_save_CC=$CC
22602       while :; do
22603	 # IRIX 6.2 and later do not support large files by default,
22604	 # so use the C compiler's -n32 option if that helps.
22605	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22606/* end confdefs.h.  */
22607#include <sys/types.h>
22608 /* Check that off_t can represent 2**63 - 1 correctly.
22609    We can't simply define LARGE_OFF_T to be 9223372036854775807,
22610    since some C++ compilers masquerading as C compilers
22611    incorrectly reject 9223372036854775807.  */
22612#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
22613  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
22614		       && LARGE_OFF_T % 2147483647 == 1)
22615		      ? 1 : -1];
22616int
22617main (void)
22618{
22619
22620  ;
22621  return 0;
22622}
22623_ACEOF
22624	 if ac_fn_c_try_compile "$LINENO"
22625then :
22626  break
22627fi
22628rm -f core conftest.err conftest.$ac_objext conftest.beam
22629	 CC="$CC -n32"
22630	 if ac_fn_c_try_compile "$LINENO"
22631then :
22632  ac_cv_sys_largefile_CC=' -n32'; break
22633fi
22634rm -f core conftest.err conftest.$ac_objext conftest.beam
22635	 break
22636       done
22637       CC=$ac_save_CC
22638       rm -f conftest.$ac_ext
22639    fi
22640fi
22641{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
22642printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
22643  if test "$ac_cv_sys_largefile_CC" != no; then
22644    CC=$CC$ac_cv_sys_largefile_CC
22645  fi
22646
22647  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
22648printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
22649if test ${ac_cv_sys_file_offset_bits+y}
22650then :
22651  printf %s "(cached) " >&6
22652else $as_nop
22653  while :; do
22654  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22655/* end confdefs.h.  */
22656#include <sys/types.h>
22657 /* Check that off_t can represent 2**63 - 1 correctly.
22658    We can't simply define LARGE_OFF_T to be 9223372036854775807,
22659    since some C++ compilers masquerading as C compilers
22660    incorrectly reject 9223372036854775807.  */
22661#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
22662  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
22663		       && LARGE_OFF_T % 2147483647 == 1)
22664		      ? 1 : -1];
22665int
22666main (void)
22667{
22668
22669  ;
22670  return 0;
22671}
22672_ACEOF
22673if ac_fn_c_try_compile "$LINENO"
22674then :
22675  ac_cv_sys_file_offset_bits=no; break
22676fi
22677rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22678  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22679/* end confdefs.h.  */
22680#define _FILE_OFFSET_BITS 64
22681#include <sys/types.h>
22682 /* Check that off_t can represent 2**63 - 1 correctly.
22683    We can't simply define LARGE_OFF_T to be 9223372036854775807,
22684    since some C++ compilers masquerading as C compilers
22685    incorrectly reject 9223372036854775807.  */
22686#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
22687  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
22688		       && LARGE_OFF_T % 2147483647 == 1)
22689		      ? 1 : -1];
22690int
22691main (void)
22692{
22693
22694  ;
22695  return 0;
22696}
22697_ACEOF
22698if ac_fn_c_try_compile "$LINENO"
22699then :
22700  ac_cv_sys_file_offset_bits=64; break
22701fi
22702rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22703  ac_cv_sys_file_offset_bits=unknown
22704  break
22705done
22706fi
22707{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
22708printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
22709case $ac_cv_sys_file_offset_bits in #(
22710  no | unknown) ;;
22711  *)
22712printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
22713;;
22714esac
22715rm -rf conftest*
22716  if test $ac_cv_sys_file_offset_bits = unknown; then
22717    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
22718printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
22719if test ${ac_cv_sys_large_files+y}
22720then :
22721  printf %s "(cached) " >&6
22722else $as_nop
22723  while :; do
22724  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22725/* end confdefs.h.  */
22726#include <sys/types.h>
22727 /* Check that off_t can represent 2**63 - 1 correctly.
22728    We can't simply define LARGE_OFF_T to be 9223372036854775807,
22729    since some C++ compilers masquerading as C compilers
22730    incorrectly reject 9223372036854775807.  */
22731#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
22732  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
22733		       && LARGE_OFF_T % 2147483647 == 1)
22734		      ? 1 : -1];
22735int
22736main (void)
22737{
22738
22739  ;
22740  return 0;
22741}
22742_ACEOF
22743if ac_fn_c_try_compile "$LINENO"
22744then :
22745  ac_cv_sys_large_files=no; break
22746fi
22747rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22748  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22749/* end confdefs.h.  */
22750#define _LARGE_FILES 1
22751#include <sys/types.h>
22752 /* Check that off_t can represent 2**63 - 1 correctly.
22753    We can't simply define LARGE_OFF_T to be 9223372036854775807,
22754    since some C++ compilers masquerading as C compilers
22755    incorrectly reject 9223372036854775807.  */
22756#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
22757  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
22758		       && LARGE_OFF_T % 2147483647 == 1)
22759		      ? 1 : -1];
22760int
22761main (void)
22762{
22763
22764  ;
22765  return 0;
22766}
22767_ACEOF
22768if ac_fn_c_try_compile "$LINENO"
22769then :
22770  ac_cv_sys_large_files=1; break
22771fi
22772rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22773  ac_cv_sys_large_files=unknown
22774  break
22775done
22776fi
22777{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
22778printf "%s\n" "$ac_cv_sys_large_files" >&6; }
22779case $ac_cv_sys_large_files in #(
22780  no | unknown) ;;
22781  *)
22782printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
22783;;
22784esac
22785rm -rf conftest*
22786  fi
22787fi
22788
22789ac_ext=c
22790ac_cpp='$CPP $CPPFLAGS'
22791ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22792ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22793ac_compiler_gnu=$ac_cv_c_compiler_gnu
22794{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
22795printf %s "checking how to run the C preprocessor... " >&6; }
22796# On Suns, sometimes $CPP names a directory.
22797if test -n "$CPP" && test -d "$CPP"; then
22798  CPP=
22799fi
22800if test -z "$CPP"; then
22801  if test ${ac_cv_prog_CPP+y}
22802then :
22803  printf %s "(cached) " >&6
22804else $as_nop
22805      # Double quotes because $CC needs to be expanded
22806    for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
22807    do
22808      ac_preproc_ok=false
22809for ac_c_preproc_warn_flag in '' yes
22810do
22811  # Use a header file that comes with gcc, so configuring glibc
22812  # with a fresh cross-compiler works.
22813  # On the NeXT, cc -E runs the code through the compiler's parser,
22814  # not just through cpp. "Syntax error" is here to catch this case.
22815  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22816/* end confdefs.h.  */
22817#include <limits.h>
22818		     Syntax error
22819_ACEOF
22820if ac_fn_c_try_cpp "$LINENO"
22821then :
22822
22823else $as_nop
22824  # Broken: fails on valid input.
22825continue
22826fi
22827rm -f conftest.err conftest.i conftest.$ac_ext
22828
22829  # OK, works on sane cases.  Now check whether nonexistent headers
22830  # can be detected and how.
22831  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22832/* end confdefs.h.  */
22833#include <ac_nonexistent.h>
22834_ACEOF
22835if ac_fn_c_try_cpp "$LINENO"
22836then :
22837  # Broken: success on invalid input.
22838continue
22839else $as_nop
22840  # Passes both tests.
22841ac_preproc_ok=:
22842break
22843fi
22844rm -f conftest.err conftest.i conftest.$ac_ext
22845
22846done
22847# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22848rm -f conftest.i conftest.err conftest.$ac_ext
22849if $ac_preproc_ok
22850then :
22851  break
22852fi
22853
22854    done
22855    ac_cv_prog_CPP=$CPP
22856
22857fi
22858  CPP=$ac_cv_prog_CPP
22859else
22860  ac_cv_prog_CPP=$CPP
22861fi
22862{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
22863printf "%s\n" "$CPP" >&6; }
22864ac_preproc_ok=false
22865for ac_c_preproc_warn_flag in '' yes
22866do
22867  # Use a header file that comes with gcc, so configuring glibc
22868  # with a fresh cross-compiler works.
22869  # On the NeXT, cc -E runs the code through the compiler's parser,
22870  # not just through cpp. "Syntax error" is here to catch this case.
22871  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22872/* end confdefs.h.  */
22873#include <limits.h>
22874		     Syntax error
22875_ACEOF
22876if ac_fn_c_try_cpp "$LINENO"
22877then :
22878
22879else $as_nop
22880  # Broken: fails on valid input.
22881continue
22882fi
22883rm -f conftest.err conftest.i conftest.$ac_ext
22884
22885  # OK, works on sane cases.  Now check whether nonexistent headers
22886  # can be detected and how.
22887  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22888/* end confdefs.h.  */
22889#include <ac_nonexistent.h>
22890_ACEOF
22891if ac_fn_c_try_cpp "$LINENO"
22892then :
22893  # Broken: success on invalid input.
22894continue
22895else $as_nop
22896  # Passes both tests.
22897ac_preproc_ok=:
22898break
22899fi
22900rm -f conftest.err conftest.i conftest.$ac_ext
22901
22902done
22903# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22904rm -f conftest.i conftest.err conftest.$ac_ext
22905if $ac_preproc_ok
22906then :
22907
22908else $as_nop
22909  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22910printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22911as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
22912See \`config.log' for more details" "$LINENO" 5; }
22913fi
22914
22915ac_ext=c
22916ac_cpp='$CPP $CPPFLAGS'
22917ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22918ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22919ac_compiler_gnu=$ac_cv_c_compiler_gnu
22920
22921
22922
22923if test -n "$ac_tool_prefix"; then
22924  # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
22925set dummy ${ac_tool_prefix}cpp; ac_word=$2
22926{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22927printf %s "checking for $ac_word... " >&6; }
22928if test ${ac_cv_path_RAWCPP+y}
22929then :
22930  printf %s "(cached) " >&6
22931else $as_nop
22932  case $RAWCPP in
22933  [\\/]* | ?:[\\/]*)
22934  ac_cv_path_RAWCPP="$RAWCPP" # Let the user override the test with a path.
22935  ;;
22936  *)
22937  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22938as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib"
22939for as_dir in $as_dummy
22940do
22941  IFS=$as_save_IFS
22942  case $as_dir in #(((
22943    '') as_dir=./ ;;
22944    */) ;;
22945    *) as_dir=$as_dir/ ;;
22946  esac
22947    for ac_exec_ext in '' $ac_executable_extensions; do
22948  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
22949    ac_cv_path_RAWCPP="$as_dir$ac_word$ac_exec_ext"
22950    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
22951    break 2
22952  fi
22953done
22954  done
22955IFS=$as_save_IFS
22956
22957  ;;
22958esac
22959fi
22960RAWCPP=$ac_cv_path_RAWCPP
22961if test -n "$RAWCPP"; then
22962  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RAWCPP" >&5
22963printf "%s\n" "$RAWCPP" >&6; }
22964else
22965  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22966printf "%s\n" "no" >&6; }
22967fi
22968
22969
22970fi
22971if test -z "$ac_cv_path_RAWCPP"; then
22972  ac_pt_RAWCPP=$RAWCPP
22973  # Extract the first word of "cpp", so it can be a program name with args.
22974set dummy cpp; ac_word=$2
22975{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22976printf %s "checking for $ac_word... " >&6; }
22977if test ${ac_cv_path_ac_pt_RAWCPP+y}
22978then :
22979  printf %s "(cached) " >&6
22980else $as_nop
22981  case $ac_pt_RAWCPP in
22982  [\\/]* | ?:[\\/]*)
22983  ac_cv_path_ac_pt_RAWCPP="$ac_pt_RAWCPP" # Let the user override the test with a path.
22984  ;;
22985  *)
22986  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22987as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib"
22988for as_dir in $as_dummy
22989do
22990  IFS=$as_save_IFS
22991  case $as_dir in #(((
22992    '') as_dir=./ ;;
22993    */) ;;
22994    *) as_dir=$as_dir/ ;;
22995  esac
22996    for ac_exec_ext in '' $ac_executable_extensions; do
22997  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
22998    ac_cv_path_ac_pt_RAWCPP="$as_dir$ac_word$ac_exec_ext"
22999    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
23000    break 2
23001  fi
23002done
23003  done
23004IFS=$as_save_IFS
23005
23006  ;;
23007esac
23008fi
23009ac_pt_RAWCPP=$ac_cv_path_ac_pt_RAWCPP
23010if test -n "$ac_pt_RAWCPP"; then
23011  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_RAWCPP" >&5
23012printf "%s\n" "$ac_pt_RAWCPP" >&6; }
23013else
23014  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23015printf "%s\n" "no" >&6; }
23016fi
23017
23018  if test "x$ac_pt_RAWCPP" = x; then
23019    RAWCPP="${CPP}"
23020  else
23021    case $cross_compiling:$ac_tool_warned in
23022yes:)
23023{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23024printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23025ac_tool_warned=yes ;;
23026esac
23027    RAWCPP=$ac_pt_RAWCPP
23028  fi
23029else
23030  RAWCPP="$ac_cv_path_RAWCPP"
23031fi
23032
23033
23034# Check for flag to avoid builtin definitions - assumes unix is predefined,
23035# which is not the best choice for supporting other OS'es, but covers most
23036# of the ones we need for now.
23037{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -undef" >&5
23038printf %s "checking if $RAWCPP requires -undef... " >&6; }
23039cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23040/* end confdefs.h.  */
23041Does cpp redefine unix ?
23042_ACEOF
23043if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
23044	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23045printf "%s\n" "no" >&6; }
23046else
23047	if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
23048		RAWCPPFLAGS=-undef
23049		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23050printf "%s\n" "yes" >&6; }
23051	# under Cygwin unix is still defined even with -undef
23052	elif test `${RAWCPP} -undef -ansi < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
23053		RAWCPPFLAGS="-undef -ansi"
23054		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, with -ansi" >&5
23055printf "%s\n" "yes, with -ansi" >&6; }
23056	else
23057		as_fn_error $? "${RAWCPP} defines unix with or without -undef.  I don't know what to do." "$LINENO" 5
23058	fi
23059fi
23060rm -f conftest.$ac_ext
23061
23062{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -traditional" >&5
23063printf %s "checking if $RAWCPP requires -traditional... " >&6; }
23064cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23065/* end confdefs.h.  */
23066Does cpp preserve   "whitespace"?
23067_ACEOF
23068if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve   \"'` -eq 1 ; then
23069	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23070printf "%s\n" "no" >&6; }
23071else
23072	if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve   \"'` -eq 1 ; then
23073		TRADITIONALCPPFLAGS="-traditional"
23074		RAWCPPFLAGS="${RAWCPPFLAGS} -traditional"
23075		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23076printf "%s\n" "yes" >&6; }
23077	else
23078		as_fn_error $? "${RAWCPP} does not preserve whitespace with or without -traditional.  I don't know what to do." "$LINENO" 5
23079	fi
23080fi
23081rm -f conftest.$ac_ext
23082
23083
23084
23085
23086# Quoted so that make will expand $(CWARNFLAGS) in makefiles to allow
23087# easier overrides at build time.
23088XSERVER_CFLAGS='$(CWARNFLAGS)'
23089
23090if  test "x$GCC" = xyes ; then
23091    XSERVER_CFLAGS="$XSERVER_CFLAGS -fno-strict-aliasing"
23092fi
23093
23094
23095# Check whether --with-dtrace was given.
23096if test ${with_dtrace+y}
23097then :
23098  withval=$with_dtrace; WDTRACE=$withval
23099else $as_nop
23100  WDTRACE=auto
23101fi
23102
23103if test "x$WDTRACE" = "xyes" -o "x$WDTRACE" = "xauto" ; then
23104	# Extract the first word of "dtrace", so it can be a program name with args.
23105set dummy dtrace; ac_word=$2
23106{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23107printf %s "checking for $ac_word... " >&6; }
23108if test ${ac_cv_path_DTRACE+y}
23109then :
23110  printf %s "(cached) " >&6
23111else $as_nop
23112  case $DTRACE in
23113  [\\/]* | ?:[\\/]*)
23114  ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path.
23115  ;;
23116  *)
23117  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23118as_dummy="$PATH:/usr/sbin"
23119for as_dir in $as_dummy
23120do
23121  IFS=$as_save_IFS
23122  case $as_dir in #(((
23123    '') as_dir=./ ;;
23124    */) ;;
23125    *) as_dir=$as_dir/ ;;
23126  esac
23127    for ac_exec_ext in '' $ac_executable_extensions; do
23128  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
23129    ac_cv_path_DTRACE="$as_dir$ac_word$ac_exec_ext"
23130    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
23131    break 2
23132  fi
23133done
23134  done
23135IFS=$as_save_IFS
23136
23137  test -z "$ac_cv_path_DTRACE" && ac_cv_path_DTRACE="not_found"
23138  ;;
23139esac
23140fi
23141DTRACE=$ac_cv_path_DTRACE
23142if test -n "$DTRACE"; then
23143  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
23144printf "%s\n" "$DTRACE" >&6; }
23145else
23146  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23147printf "%s\n" "no" >&6; }
23148fi
23149
23150
23151	if test "x$DTRACE" = "xnot_found" ; then
23152		if test "x$WDTRACE" = "xyes" ; then
23153			{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23154printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
23155as_fn_error $? "dtrace requested but not found
23156See \`config.log' for more details" "$LINENO" 5; }
23157		fi
23158		WDTRACE="no"
23159	else
23160		ac_fn_c_check_header_compile "$LINENO" "sys/sdt.h" "ac_cv_header_sys_sdt_h" "$ac_includes_default"
23161if test "x$ac_cv_header_sys_sdt_h" = xyes
23162then :
23163  HAS_SDT_H="yes"
23164else $as_nop
23165  HAS_SDT_H="no"
23166fi
23167
23168		if test "x$WDTRACE" = "xauto" -a "x$HAS_SDT_H" = "xno" ; then
23169			WDTRACE="no"
23170		fi
23171	fi
23172fi
23173if test "x$WDTRACE" != "xno" ; then
23174
23175printf "%s\n" "#define XSERVER_DTRACE 1" >>confdefs.h
23176
23177
23178# Solaris/OpenSolaris require dtrace -G to build dtrace probe information into
23179# object files, and require linking with those as relocatable objects, not .a
23180# archives. MacOS X handles all this in the normal compiler toolchain, and on
23181# some releases (like Tiger), will error out on dtrace -G.  For now, other
23182# platforms with Dtrace ports are assumed to support -G (the FreeBSD and Linux
23183# ports appear to, based on my web searches, but have not yet been tested).
23184	case $host_os in
23185		darwin*)	SPECIAL_DTRACE_OBJECTS=no ;;
23186		*)		SPECIAL_DTRACE_OBJECTS=yes ;;
23187	esac
23188fi
23189 if test "x$WDTRACE" != "xno"; then
23190  XSERVER_DTRACE_TRUE=
23191  XSERVER_DTRACE_FALSE='#'
23192else
23193  XSERVER_DTRACE_TRUE='#'
23194  XSERVER_DTRACE_FALSE=
23195fi
23196
23197 if test "x$SPECIAL_DTRACE_OBJECTS" = "xyes"; then
23198  SPECIAL_DTRACE_OBJECTS_TRUE=
23199  SPECIAL_DTRACE_OBJECTS_FALSE='#'
23200else
23201  SPECIAL_DTRACE_OBJECTS_TRUE='#'
23202  SPECIAL_DTRACE_OBJECTS_FALSE=
23203fi
23204
23205
23206ac_header_dirent=no
23207for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
23208  as_ac_Header=`printf "%s\n" "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
23209{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
23210printf %s "checking for $ac_hdr that defines DIR... " >&6; }
23211if eval test \${$as_ac_Header+y}
23212then :
23213  printf %s "(cached) " >&6
23214else $as_nop
23215  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23216/* end confdefs.h.  */
23217#include <sys/types.h>
23218#include <$ac_hdr>
23219
23220int
23221main (void)
23222{
23223if ((DIR *) 0)
23224return 0;
23225  ;
23226  return 0;
23227}
23228_ACEOF
23229if ac_fn_c_try_compile "$LINENO"
23230then :
23231  eval "$as_ac_Header=yes"
23232else $as_nop
23233  eval "$as_ac_Header=no"
23234fi
23235rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23236fi
23237eval ac_res=\$$as_ac_Header
23238	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23239printf "%s\n" "$ac_res" >&6; }
23240if eval test \"x\$"$as_ac_Header"\" = x"yes"
23241then :
23242  cat >>confdefs.h <<_ACEOF
23243#define `printf "%s\n" "HAVE_$ac_hdr" | $as_tr_cpp` 1
23244_ACEOF
23245
23246ac_header_dirent=$ac_hdr; break
23247fi
23248
23249done
23250# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
23251if test $ac_header_dirent = dirent.h; then
23252  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
23253printf %s "checking for library containing opendir... " >&6; }
23254if test ${ac_cv_search_opendir+y}
23255then :
23256  printf %s "(cached) " >&6
23257else $as_nop
23258  ac_func_search_save_LIBS=$LIBS
23259cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23260/* end confdefs.h.  */
23261
23262/* Override any GCC internal prototype to avoid an error.
23263   Use char because int might match the return type of a GCC
23264   builtin and then its argument prototype would still apply.  */
23265char opendir ();
23266int
23267main (void)
23268{
23269return opendir ();
23270  ;
23271  return 0;
23272}
23273_ACEOF
23274for ac_lib in '' dir
23275do
23276  if test -z "$ac_lib"; then
23277    ac_res="none required"
23278  else
23279    ac_res=-l$ac_lib
23280    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23281  fi
23282  if ac_fn_c_try_link "$LINENO"
23283then :
23284  ac_cv_search_opendir=$ac_res
23285fi
23286rm -f core conftest.err conftest.$ac_objext conftest.beam \
23287    conftest$ac_exeext
23288  if test ${ac_cv_search_opendir+y}
23289then :
23290  break
23291fi
23292done
23293if test ${ac_cv_search_opendir+y}
23294then :
23295
23296else $as_nop
23297  ac_cv_search_opendir=no
23298fi
23299rm conftest.$ac_ext
23300LIBS=$ac_func_search_save_LIBS
23301fi
23302{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
23303printf "%s\n" "$ac_cv_search_opendir" >&6; }
23304ac_res=$ac_cv_search_opendir
23305if test "$ac_res" != no
23306then :
23307  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23308
23309fi
23310
23311else
23312  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
23313printf %s "checking for library containing opendir... " >&6; }
23314if test ${ac_cv_search_opendir+y}
23315then :
23316  printf %s "(cached) " >&6
23317else $as_nop
23318  ac_func_search_save_LIBS=$LIBS
23319cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23320/* end confdefs.h.  */
23321
23322/* Override any GCC internal prototype to avoid an error.
23323   Use char because int might match the return type of a GCC
23324   builtin and then its argument prototype would still apply.  */
23325char opendir ();
23326int
23327main (void)
23328{
23329return opendir ();
23330  ;
23331  return 0;
23332}
23333_ACEOF
23334for ac_lib in '' x
23335do
23336  if test -z "$ac_lib"; then
23337    ac_res="none required"
23338  else
23339    ac_res=-l$ac_lib
23340    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23341  fi
23342  if ac_fn_c_try_link "$LINENO"
23343then :
23344  ac_cv_search_opendir=$ac_res
23345fi
23346rm -f core conftest.err conftest.$ac_objext conftest.beam \
23347    conftest$ac_exeext
23348  if test ${ac_cv_search_opendir+y}
23349then :
23350  break
23351fi
23352done
23353if test ${ac_cv_search_opendir+y}
23354then :
23355
23356else $as_nop
23357  ac_cv_search_opendir=no
23358fi
23359rm conftest.$ac_ext
23360LIBS=$ac_func_search_save_LIBS
23361fi
23362{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
23363printf "%s\n" "$ac_cv_search_opendir" >&6; }
23364ac_res=$ac_cv_search_opendir
23365if test "$ac_res" != no
23366then :
23367  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23368
23369fi
23370
23371fi
23372
23373# Autoupdate added the next two lines to ensure that your configure
23374# script's behavior did not change.  They are probably safe to remove.
23375
23376{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
23377printf %s "checking for egrep... " >&6; }
23378if test ${ac_cv_path_EGREP+y}
23379then :
23380  printf %s "(cached) " >&6
23381else $as_nop
23382  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
23383   then ac_cv_path_EGREP="$GREP -E"
23384   else
23385     if test -z "$EGREP"; then
23386  ac_path_EGREP_found=false
23387  # Loop through the user's path and test for each of PROGNAME-LIST
23388  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23389for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
23390do
23391  IFS=$as_save_IFS
23392  case $as_dir in #(((
23393    '') as_dir=./ ;;
23394    */) ;;
23395    *) as_dir=$as_dir/ ;;
23396  esac
23397    for ac_prog in egrep
23398   do
23399    for ac_exec_ext in '' $ac_executable_extensions; do
23400      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
23401      as_fn_executable_p "$ac_path_EGREP" || continue
23402# Check for GNU ac_path_EGREP and select it if it is found.
23403  # Check for GNU $ac_path_EGREP
23404case `"$ac_path_EGREP" --version 2>&1` in
23405*GNU*)
23406  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
23407*)
23408  ac_count=0
23409  printf %s 0123456789 >"conftest.in"
23410  while :
23411  do
23412    cat "conftest.in" "conftest.in" >"conftest.tmp"
23413    mv "conftest.tmp" "conftest.in"
23414    cp "conftest.in" "conftest.nl"
23415    printf "%s\n" 'EGREP' >> "conftest.nl"
23416    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
23417    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
23418    as_fn_arith $ac_count + 1 && ac_count=$as_val
23419    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
23420      # Best one so far, save it but keep looking for a better one
23421      ac_cv_path_EGREP="$ac_path_EGREP"
23422      ac_path_EGREP_max=$ac_count
23423    fi
23424    # 10*(2^10) chars as input seems more than enough
23425    test $ac_count -gt 10 && break
23426  done
23427  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
23428esac
23429
23430      $ac_path_EGREP_found && break 3
23431    done
23432  done
23433  done
23434IFS=$as_save_IFS
23435  if test -z "$ac_cv_path_EGREP"; then
23436    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
23437  fi
23438else
23439  ac_cv_path_EGREP=$EGREP
23440fi
23441
23442   fi
23443fi
23444{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
23445printf "%s\n" "$ac_cv_path_EGREP" >&6; }
23446 EGREP="$ac_cv_path_EGREP"
23447
23448
23449
23450ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
23451if test "x$ac_cv_header_fcntl_h" = xyes
23452then :
23453  printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
23454
23455fi
23456ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
23457if test "x$ac_cv_header_stdlib_h" = xyes
23458then :
23459  printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
23460
23461fi
23462ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
23463if test "x$ac_cv_header_string_h" = xyes
23464then :
23465  printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
23466
23467fi
23468ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
23469if test "x$ac_cv_header_unistd_h" = xyes
23470then :
23471  printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
23472
23473fi
23474ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
23475if test "x$ac_cv_header_dlfcn_h" = xyes
23476then :
23477  printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
23478
23479fi
23480ac_fn_c_check_header_compile "$LINENO" "stropts.h" "ac_cv_header_stropts_h" "$ac_includes_default"
23481if test "x$ac_cv_header_stropts_h" = xyes
23482then :
23483  printf "%s\n" "#define HAVE_STROPTS_H 1" >>confdefs.h
23484
23485fi
23486ac_fn_c_check_header_compile "$LINENO" "fnmatch.h" "ac_cv_header_fnmatch_h" "$ac_includes_default"
23487if test "x$ac_cv_header_fnmatch_h" = xyes
23488then :
23489  printf "%s\n" "#define HAVE_FNMATCH_H 1" >>confdefs.h
23490
23491fi
23492ac_fn_c_check_header_compile "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
23493if test "x$ac_cv_header_sys_mkdev_h" = xyes
23494then :
23495  printf "%s\n" "#define HAVE_SYS_MKDEV_H 1" >>confdefs.h
23496
23497fi
23498ac_fn_c_check_header_compile "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
23499if test "x$ac_cv_header_sys_sysmacros_h" = xyes
23500then :
23501  printf "%s\n" "#define HAVE_SYS_SYSMACROS_H 1" >>confdefs.h
23502
23503fi
23504ac_fn_c_check_header_compile "$LINENO" "sys/utsname.h" "ac_cv_header_sys_utsname_h" "$ac_includes_default"
23505if test "x$ac_cv_header_sys_utsname_h" = xyes
23506then :
23507  printf "%s\n" "#define HAVE_SYS_UTSNAME_H 1" >>confdefs.h
23508
23509fi
23510
23511
23512{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
23513printf %s "checking for an ANSI C-conforming const... " >&6; }
23514if test ${ac_cv_c_const+y}
23515then :
23516  printf %s "(cached) " >&6
23517else $as_nop
23518  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23519/* end confdefs.h.  */
23520
23521int
23522main (void)
23523{
23524
23525#ifndef __cplusplus
23526  /* Ultrix mips cc rejects this sort of thing.  */
23527  typedef int charset[2];
23528  const charset cs = { 0, 0 };
23529  /* SunOS 4.1.1 cc rejects this.  */
23530  char const *const *pcpcc;
23531  char **ppc;
23532  /* NEC SVR4.0.2 mips cc rejects this.  */
23533  struct point {int x, y;};
23534  static struct point const zero = {0,0};
23535  /* IBM XL C 1.02.0.0 rejects this.
23536     It does not let you subtract one const X* pointer from another in
23537     an arm of an if-expression whose if-part is not a constant
23538     expression */
23539  const char *g = "string";
23540  pcpcc = &g + (g ? g-g : 0);
23541  /* HPUX 7.0 cc rejects these. */
23542  ++pcpcc;
23543  ppc = (char**) pcpcc;
23544  pcpcc = (char const *const *) ppc;
23545  { /* SCO 3.2v4 cc rejects this sort of thing.  */
23546    char tx;
23547    char *t = &tx;
23548    char const *s = 0 ? (char *) 0 : (char const *) 0;
23549
23550    *t++ = 0;
23551    if (s) return 0;
23552  }
23553  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
23554    int x[] = {25, 17};
23555    const int *foo = &x[0];
23556    ++foo;
23557  }
23558  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23559    typedef const int *iptr;
23560    iptr p = 0;
23561    ++p;
23562  }
23563  { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
23564       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23565    struct s { int j; const int *ap[3]; } bx;
23566    struct s *b = &bx; b->j = 5;
23567  }
23568  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23569    const int foo = 10;
23570    if (!foo) return 0;
23571  }
23572  return !cs[0] && !zero.x;
23573#endif
23574
23575  ;
23576  return 0;
23577}
23578_ACEOF
23579if ac_fn_c_try_compile "$LINENO"
23580then :
23581  ac_cv_c_const=yes
23582else $as_nop
23583  ac_cv_c_const=no
23584fi
23585rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23586fi
23587{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
23588printf "%s\n" "$ac_cv_c_const" >&6; }
23589if test $ac_cv_c_const = no; then
23590
23591printf "%s\n" "#define const /**/" >>confdefs.h
23592
23593fi
23594
23595
23596  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for typeof syntax and keyword spelling" >&5
23597printf %s "checking for typeof syntax and keyword spelling... " >&6; }
23598if test ${ac_cv_c_typeof+y}
23599then :
23600  printf %s "(cached) " >&6
23601else $as_nop
23602  ac_cv_c_typeof=no
23603     for ac_kw in typeof __typeof__ no; do
23604       test $ac_kw = no && break
23605       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23606/* end confdefs.h.  */
23607
23608int
23609main (void)
23610{
23611
23612	   int value;
23613	   typedef struct {
23614		   char a [1
23615			   + ! (($ac_kw (value))
23616				(($ac_kw (value)) 0 < ($ac_kw (value)) -1
23617				 ? ($ac_kw (value)) - 1
23618				 : ~ (~ ($ac_kw (value)) 0
23619				      << sizeof ($ac_kw (value)))))]; }
23620	      ac__typeof_type_;
23621	   return
23622	     (! ((void) ((ac__typeof_type_ *) 0), 0));
23623
23624  ;
23625  return 0;
23626}
23627_ACEOF
23628if ac_fn_c_try_compile "$LINENO"
23629then :
23630  ac_cv_c_typeof=$ac_kw
23631fi
23632rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23633       test $ac_cv_c_typeof != no && break
23634     done
23635fi
23636{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_typeof" >&5
23637printf "%s\n" "$ac_cv_c_typeof" >&6; }
23638  if test $ac_cv_c_typeof != no; then
23639
23640printf "%s\n" "#define HAVE_TYPEOF 1" >>confdefs.h
23641
23642    if test $ac_cv_c_typeof != typeof; then
23643
23644printf "%s\n" "#define typeof $ac_cv_c_typeof" >>confdefs.h
23645
23646    fi
23647  fi
23648
23649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
23650printf %s "checking whether byte ordering is bigendian... " >&6; }
23651if test ${ac_cv_c_bigendian+y}
23652then :
23653  printf %s "(cached) " >&6
23654else $as_nop
23655  ac_cv_c_bigendian=unknown
23656    # See if we're dealing with a universal compiler.
23657    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23658/* end confdefs.h.  */
23659#ifndef __APPLE_CC__
23660	       not a universal capable compiler
23661	     #endif
23662	     typedef int dummy;
23663
23664_ACEOF
23665if ac_fn_c_try_compile "$LINENO"
23666then :
23667
23668	# Check for potential -arch flags.  It is not universal unless
23669	# there are at least two -arch flags with different values.
23670	ac_arch=
23671	ac_prev=
23672	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
23673	 if test -n "$ac_prev"; then
23674	   case $ac_word in
23675	     i?86 | x86_64 | ppc | ppc64)
23676	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
23677		 ac_arch=$ac_word
23678	       else
23679		 ac_cv_c_bigendian=universal
23680		 break
23681	       fi
23682	       ;;
23683	   esac
23684	   ac_prev=
23685	 elif test "x$ac_word" = "x-arch"; then
23686	   ac_prev=arch
23687	 fi
23688       done
23689fi
23690rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23691    if test $ac_cv_c_bigendian = unknown; then
23692      # See if sys/param.h defines the BYTE_ORDER macro.
23693      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23694/* end confdefs.h.  */
23695#include <sys/types.h>
23696	     #include <sys/param.h>
23697
23698int
23699main (void)
23700{
23701#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
23702		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
23703		     && LITTLE_ENDIAN)
23704	      bogus endian macros
23705	     #endif
23706
23707  ;
23708  return 0;
23709}
23710_ACEOF
23711if ac_fn_c_try_compile "$LINENO"
23712then :
23713  # It does; now see whether it defined to BIG_ENDIAN or not.
23714	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23715/* end confdefs.h.  */
23716#include <sys/types.h>
23717		#include <sys/param.h>
23718
23719int
23720main (void)
23721{
23722#if BYTE_ORDER != BIG_ENDIAN
23723		 not big endian
23724		#endif
23725
23726  ;
23727  return 0;
23728}
23729_ACEOF
23730if ac_fn_c_try_compile "$LINENO"
23731then :
23732  ac_cv_c_bigendian=yes
23733else $as_nop
23734  ac_cv_c_bigendian=no
23735fi
23736rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23737fi
23738rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23739    fi
23740    if test $ac_cv_c_bigendian = unknown; then
23741      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
23742      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23743/* end confdefs.h.  */
23744#include <limits.h>
23745
23746int
23747main (void)
23748{
23749#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
23750	      bogus endian macros
23751	     #endif
23752
23753  ;
23754  return 0;
23755}
23756_ACEOF
23757if ac_fn_c_try_compile "$LINENO"
23758then :
23759  # It does; now see whether it defined to _BIG_ENDIAN or not.
23760	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23761/* end confdefs.h.  */
23762#include <limits.h>
23763
23764int
23765main (void)
23766{
23767#ifndef _BIG_ENDIAN
23768		 not big endian
23769		#endif
23770
23771  ;
23772  return 0;
23773}
23774_ACEOF
23775if ac_fn_c_try_compile "$LINENO"
23776then :
23777  ac_cv_c_bigendian=yes
23778else $as_nop
23779  ac_cv_c_bigendian=no
23780fi
23781rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23782fi
23783rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23784    fi
23785    if test $ac_cv_c_bigendian = unknown; then
23786      # Compile a test program.
23787      if test "$cross_compiling" = yes
23788then :
23789  # Try to guess by grepping values from an object file.
23790	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23791/* end confdefs.h.  */
23792unsigned short int ascii_mm[] =
23793		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23794		unsigned short int ascii_ii[] =
23795		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23796		int use_ascii (int i) {
23797		  return ascii_mm[i] + ascii_ii[i];
23798		}
23799		unsigned short int ebcdic_ii[] =
23800		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23801		unsigned short int ebcdic_mm[] =
23802		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23803		int use_ebcdic (int i) {
23804		  return ebcdic_mm[i] + ebcdic_ii[i];
23805		}
23806		extern int foo;
23807
23808int
23809main (void)
23810{
23811return use_ascii (foo) == use_ebcdic (foo);
23812  ;
23813  return 0;
23814}
23815_ACEOF
23816if ac_fn_c_try_compile "$LINENO"
23817then :
23818  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
23819	      ac_cv_c_bigendian=yes
23820	    fi
23821	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23822	      if test "$ac_cv_c_bigendian" = unknown; then
23823		ac_cv_c_bigendian=no
23824	      else
23825		# finding both strings is unlikely to happen, but who knows?
23826		ac_cv_c_bigendian=unknown
23827	      fi
23828	    fi
23829fi
23830rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23831else $as_nop
23832  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23833/* end confdefs.h.  */
23834$ac_includes_default
23835int
23836main (void)
23837{
23838
23839	     /* Are we little or big endian?  From Harbison&Steele.  */
23840	     union
23841	     {
23842	       long int l;
23843	       char c[sizeof (long int)];
23844	     } u;
23845	     u.l = 1;
23846	     return u.c[sizeof (long int) - 1] == 1;
23847
23848  ;
23849  return 0;
23850}
23851_ACEOF
23852if ac_fn_c_try_run "$LINENO"
23853then :
23854  ac_cv_c_bigendian=no
23855else $as_nop
23856  ac_cv_c_bigendian=yes
23857fi
23858rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23859  conftest.$ac_objext conftest.beam conftest.$ac_ext
23860fi
23861
23862    fi
23863fi
23864{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
23865printf "%s\n" "$ac_cv_c_bigendian" >&6; }
23866 case $ac_cv_c_bigendian in #(
23867   yes)
23868
23869printf "%s\n" "#define X_BYTE_ORDER X_BIG_ENDIAN" >>confdefs.h
23870;; #(
23871   no)
23872
23873printf "%s\n" "#define X_BYTE_ORDER X_LITTLE_ENDIAN" >>confdefs.h
23874 ;; #(
23875   universal)
23876
23877printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
23878
23879     ;; #(
23880   *)
23881     as_fn_error $? "unknown endianness
23882 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
23883 esac
23884
23885
23886# The cast to long int works around a bug in the HP C Compiler
23887# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23888# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23889# This bug is HP SR number 8606223364.
23890{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
23891printf %s "checking size of unsigned long... " >&6; }
23892if test ${ac_cv_sizeof_unsigned_long+y}
23893then :
23894  printf %s "(cached) " >&6
23895else $as_nop
23896  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long"        "$ac_includes_default"
23897then :
23898
23899else $as_nop
23900  if test "$ac_cv_type_unsigned_long" = yes; then
23901     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23902printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
23903as_fn_error 77 "cannot compute sizeof (unsigned long)
23904See \`config.log' for more details" "$LINENO" 5; }
23905   else
23906     ac_cv_sizeof_unsigned_long=0
23907   fi
23908fi
23909
23910fi
23911{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
23912printf "%s\n" "$ac_cv_sizeof_unsigned_long" >&6; }
23913
23914
23915
23916printf "%s\n" "#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long" >>confdefs.h
23917
23918
23919if test "$ac_cv_sizeof_unsigned_long" = 8; then
23920
23921printf "%s\n" "#define _XSERVER64 1" >>confdefs.h
23922
23923fi
23924
23925
23926  ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
23927"
23928if test "x$ac_cv_type_pid_t" = xyes
23929then :
23930
23931else $as_nop
23932                                          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23933/* end confdefs.h.  */
23934
23935          #if defined _WIN64 && !defined __CYGWIN__
23936          LLP64
23937          #endif
23938
23939int
23940main (void)
23941{
23942
23943  ;
23944  return 0;
23945}
23946
23947_ACEOF
23948if ac_fn_c_try_compile "$LINENO"
23949then :
23950  ac_pid_type='int'
23951else $as_nop
23952  ac_pid_type='__int64'
23953fi
23954rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23955
23956printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h
23957
23958
23959fi
23960
23961
23962
23963ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
23964if test "x$ac_cv_func_dlopen" = xyes
23965then :
23966
23967else $as_nop
23968  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
23969printf %s "checking for dlopen in -ldl... " >&6; }
23970if test ${ac_cv_lib_dl_dlopen+y}
23971then :
23972  printf %s "(cached) " >&6
23973else $as_nop
23974  ac_check_lib_save_LIBS=$LIBS
23975LIBS="-ldl  $LIBS"
23976cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23977/* end confdefs.h.  */
23978
23979/* Override any GCC internal prototype to avoid an error.
23980   Use char because int might match the return type of a GCC
23981   builtin and then its argument prototype would still apply.  */
23982char dlopen ();
23983int
23984main (void)
23985{
23986return dlopen ();
23987  ;
23988  return 0;
23989}
23990_ACEOF
23991if ac_fn_c_try_link "$LINENO"
23992then :
23993  ac_cv_lib_dl_dlopen=yes
23994else $as_nop
23995  ac_cv_lib_dl_dlopen=no
23996fi
23997rm -f core conftest.err conftest.$ac_objext conftest.beam \
23998    conftest$ac_exeext conftest.$ac_ext
23999LIBS=$ac_check_lib_save_LIBS
24000fi
24001{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
24002printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
24003if test "x$ac_cv_lib_dl_dlopen" = xyes
24004then :
24005  DLOPEN_LIBS="-ldl"
24006fi
24007
24008fi
24009
24010
24011
24012ac_fn_c_check_func "$LINENO" "backtrace" "ac_cv_func_backtrace"
24013if test "x$ac_cv_func_backtrace" = xyes
24014then :
24015  printf "%s\n" "#define HAVE_BACKTRACE 1" >>confdefs.h
24016
24017fi
24018ac_fn_c_check_func "$LINENO" "geteuid" "ac_cv_func_geteuid"
24019if test "x$ac_cv_func_geteuid" = xyes
24020then :
24021  printf "%s\n" "#define HAVE_GETEUID 1" >>confdefs.h
24022
24023fi
24024ac_fn_c_check_func "$LINENO" "getuid" "ac_cv_func_getuid"
24025if test "x$ac_cv_func_getuid" = xyes
24026then :
24027  printf "%s\n" "#define HAVE_GETUID 1" >>confdefs.h
24028
24029fi
24030ac_fn_c_check_func "$LINENO" "issetugid" "ac_cv_func_issetugid"
24031if test "x$ac_cv_func_issetugid" = xyes
24032then :
24033  printf "%s\n" "#define HAVE_ISSETUGID 1" >>confdefs.h
24034
24035fi
24036ac_fn_c_check_func "$LINENO" "getresuid" "ac_cv_func_getresuid"
24037if test "x$ac_cv_func_getresuid" = xyes
24038then :
24039  printf "%s\n" "#define HAVE_GETRESUID 1" >>confdefs.h
24040
24041fi
24042ac_fn_c_check_func "$LINENO" "getdtablesize" "ac_cv_func_getdtablesize"
24043if test "x$ac_cv_func_getdtablesize" = xyes
24044then :
24045  printf "%s\n" "#define HAVE_GETDTABLESIZE 1" >>confdefs.h
24046
24047fi
24048ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
24049if test "x$ac_cv_func_getifaddrs" = xyes
24050then :
24051  printf "%s\n" "#define HAVE_GETIFADDRS 1" >>confdefs.h
24052
24053fi
24054ac_fn_c_check_func "$LINENO" "getpeereid" "ac_cv_func_getpeereid"
24055if test "x$ac_cv_func_getpeereid" = xyes
24056then :
24057  printf "%s\n" "#define HAVE_GETPEEREID 1" >>confdefs.h
24058
24059fi
24060ac_fn_c_check_func "$LINENO" "getpeerucred" "ac_cv_func_getpeerucred"
24061if test "x$ac_cv_func_getpeerucred" = xyes
24062then :
24063  printf "%s\n" "#define HAVE_GETPEERUCRED 1" >>confdefs.h
24064
24065fi
24066ac_fn_c_check_func "$LINENO" "getprogname" "ac_cv_func_getprogname"
24067if test "x$ac_cv_func_getprogname" = xyes
24068then :
24069  printf "%s\n" "#define HAVE_GETPROGNAME 1" >>confdefs.h
24070
24071fi
24072ac_fn_c_check_func "$LINENO" "getzoneid" "ac_cv_func_getzoneid"
24073if test "x$ac_cv_func_getzoneid" = xyes
24074then :
24075  printf "%s\n" "#define HAVE_GETZONEID 1" >>confdefs.h
24076
24077fi
24078ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
24079if test "x$ac_cv_func_mmap" = xyes
24080then :
24081  printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h
24082
24083fi
24084ac_fn_c_check_func "$LINENO" "posix_fallocate" "ac_cv_func_posix_fallocate"
24085if test "x$ac_cv_func_posix_fallocate" = xyes
24086then :
24087  printf "%s\n" "#define HAVE_POSIX_FALLOCATE 1" >>confdefs.h
24088
24089fi
24090ac_fn_c_check_func "$LINENO" "seteuid" "ac_cv_func_seteuid"
24091if test "x$ac_cv_func_seteuid" = xyes
24092then :
24093  printf "%s\n" "#define HAVE_SETEUID 1" >>confdefs.h
24094
24095fi
24096ac_fn_c_check_func "$LINENO" "shmctl64" "ac_cv_func_shmctl64"
24097if test "x$ac_cv_func_shmctl64" = xyes
24098then :
24099  printf "%s\n" "#define HAVE_SHMCTL64 1" >>confdefs.h
24100
24101fi
24102ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
24103if test "x$ac_cv_func_strncasecmp" = xyes
24104then :
24105  printf "%s\n" "#define HAVE_STRNCASECMP 1" >>confdefs.h
24106
24107fi
24108ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
24109if test "x$ac_cv_func_vasprintf" = xyes
24110then :
24111  printf "%s\n" "#define HAVE_VASPRINTF 1" >>confdefs.h
24112
24113fi
24114ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
24115if test "x$ac_cv_func_vsnprintf" = xyes
24116then :
24117  printf "%s\n" "#define HAVE_VSNPRINTF 1" >>confdefs.h
24118
24119fi
24120ac_fn_c_check_func "$LINENO" "walkcontext" "ac_cv_func_walkcontext"
24121if test "x$ac_cv_func_walkcontext" = xyes
24122then :
24123  printf "%s\n" "#define HAVE_WALKCONTEXT 1" >>confdefs.h
24124
24125fi
24126ac_fn_c_check_func "$LINENO" "setitimer" "ac_cv_func_setitimer"
24127if test "x$ac_cv_func_setitimer" = xyes
24128then :
24129  printf "%s\n" "#define HAVE_SETITIMER 1" >>confdefs.h
24130
24131fi
24132ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
24133if test "x$ac_cv_func_poll" = xyes
24134then :
24135  printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h
24136
24137fi
24138ac_fn_c_check_func "$LINENO" "epoll_create1" "ac_cv_func_epoll_create1"
24139if test "x$ac_cv_func_epoll_create1" = xyes
24140then :
24141  printf "%s\n" "#define HAVE_EPOLL_CREATE1 1" >>confdefs.h
24142
24143fi
24144ac_fn_c_check_func "$LINENO" "mkostemp" "ac_cv_func_mkostemp"
24145if test "x$ac_cv_func_mkostemp" = xyes
24146then :
24147  printf "%s\n" "#define HAVE_MKOSTEMP 1" >>confdefs.h
24148
24149fi
24150ac_fn_c_check_func "$LINENO" "memfd_create" "ac_cv_func_memfd_create"
24151if test "x$ac_cv_func_memfd_create" = xyes
24152then :
24153  printf "%s\n" "#define HAVE_MEMFD_CREATE 1" >>confdefs.h
24154
24155fi
24156ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
24157if test "x$ac_cv_func_sigprocmask" = xyes
24158then :
24159  printf "%s\n" "#define HAVE_SIGPROCMASK 1" >>confdefs.h
24160
24161fi
24162ac_fn_c_check_func "$LINENO" "isastream" "ac_cv_func_isastream"
24163if test "x$ac_cv_func_isastream" = xyes
24164then :
24165  printf "%s\n" "#define HAVE_ISASTREAM 1" >>confdefs.h
24166
24167fi
24168
24169
24170ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray"
24171if test "x$ac_cv_func_reallocarray" = xyes
24172then :
24173  printf "%s\n" "#define HAVE_REALLOCARRAY 1" >>confdefs.h
24174
24175else $as_nop
24176  case " $LIBOBJS " in
24177  *" reallocarray.$ac_objext "* ) ;;
24178  *) LIBOBJS="$LIBOBJS reallocarray.$ac_objext"
24179 ;;
24180esac
24181
24182fi
24183ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
24184if test "x$ac_cv_func_strcasecmp" = xyes
24185then :
24186  printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
24187
24188else $as_nop
24189  case " $LIBOBJS " in
24190  *" strcasecmp.$ac_objext "* ) ;;
24191  *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext"
24192 ;;
24193esac
24194
24195fi
24196ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr"
24197if test "x$ac_cv_func_strcasestr" = xyes
24198then :
24199  printf "%s\n" "#define HAVE_STRCASESTR 1" >>confdefs.h
24200
24201else $as_nop
24202  case " $LIBOBJS " in
24203  *" strcasestr.$ac_objext "* ) ;;
24204  *) LIBOBJS="$LIBOBJS strcasestr.$ac_objext"
24205 ;;
24206esac
24207
24208fi
24209ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
24210if test "x$ac_cv_func_strlcat" = xyes
24211then :
24212  printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h
24213
24214else $as_nop
24215  case " $LIBOBJS " in
24216  *" strlcat.$ac_objext "* ) ;;
24217  *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
24218 ;;
24219esac
24220
24221fi
24222ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
24223if test "x$ac_cv_func_strlcpy" = xyes
24224then :
24225  printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
24226
24227else $as_nop
24228  case " $LIBOBJS " in
24229  *" strlcpy.$ac_objext "* ) ;;
24230  *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
24231 ;;
24232esac
24233
24234fi
24235ac_fn_c_check_func "$LINENO" "strndup" "ac_cv_func_strndup"
24236if test "x$ac_cv_func_strndup" = xyes
24237then :
24238  printf "%s\n" "#define HAVE_STRNDUP 1" >>confdefs.h
24239
24240else $as_nop
24241  case " $LIBOBJS " in
24242  *" strndup.$ac_objext "* ) ;;
24243  *) LIBOBJS="$LIBOBJS strndup.$ac_objext"
24244 ;;
24245esac
24246
24247fi
24248ac_fn_c_check_func "$LINENO" "timingsafe_memcmp" "ac_cv_func_timingsafe_memcmp"
24249if test "x$ac_cv_func_timingsafe_memcmp" = xyes
24250then :
24251  printf "%s\n" "#define HAVE_TIMINGSAFE_MEMCMP 1" >>confdefs.h
24252
24253else $as_nop
24254  case " $LIBOBJS " in
24255  *" timingsafe_memcmp.$ac_objext "* ) ;;
24256  *) LIBOBJS="$LIBOBJS timingsafe_memcmp.$ac_objext"
24257 ;;
24258esac
24259
24260fi
24261
24262 if test "x$ac_cv_func_poll" = "xyes"; then
24263  POLL_TRUE=
24264  POLL_FALSE='#'
24265else
24266  POLL_TRUE='#'
24267  POLL_FALSE=
24268fi
24269
24270
24271{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for arc4random_buf in -lbsd" >&5
24272printf %s "checking for arc4random_buf in -lbsd... " >&6; }
24273if test ${ac_cv_lib_bsd_arc4random_buf+y}
24274then :
24275  printf %s "(cached) " >&6
24276else $as_nop
24277  ac_check_lib_save_LIBS=$LIBS
24278LIBS="-lbsd  $LIBS"
24279cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24280/* end confdefs.h.  */
24281
24282/* Override any GCC internal prototype to avoid an error.
24283   Use char because int might match the return type of a GCC
24284   builtin and then its argument prototype would still apply.  */
24285char arc4random_buf ();
24286int
24287main (void)
24288{
24289return arc4random_buf ();
24290  ;
24291  return 0;
24292}
24293_ACEOF
24294if ac_fn_c_try_link "$LINENO"
24295then :
24296  ac_cv_lib_bsd_arc4random_buf=yes
24297else $as_nop
24298  ac_cv_lib_bsd_arc4random_buf=no
24299fi
24300rm -f core conftest.err conftest.$ac_objext conftest.beam \
24301    conftest$ac_exeext conftest.$ac_ext
24302LIBS=$ac_check_lib_save_LIBS
24303fi
24304{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_arc4random_buf" >&5
24305printf "%s\n" "$ac_cv_lib_bsd_arc4random_buf" >&6; }
24306if test "x$ac_cv_lib_bsd_arc4random_buf" = xyes
24307then :
24308  printf "%s\n" "#define HAVE_LIBBSD 1" >>confdefs.h
24309
24310  LIBS="-lbsd $LIBS"
24311
24312fi
24313
24314ac_fn_c_check_func "$LINENO" "arc4random_buf" "ac_cv_func_arc4random_buf"
24315if test "x$ac_cv_func_arc4random_buf" = xyes
24316then :
24317  printf "%s\n" "#define HAVE_ARC4RANDOM_BUF 1" >>confdefs.h
24318
24319fi
24320
24321
24322ac_fn_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
24323" "$ac_c_undeclared_builtin_options" "CFLAGS"
24324if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes
24325then :
24326  ac_have_decl=1
24327else $as_nop
24328  ac_have_decl=0
24329fi
24330printf "%s\n" "#define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl" >>confdefs.h
24331
24332
24333
24334{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SO_PEERCRED in sys/socket.h" >&5
24335printf %s "checking for SO_PEERCRED in sys/socket.h... " >&6; }
24336if test ${xorg_cv_sys_have_so_peercred+y}
24337then :
24338  printf %s "(cached) " >&6
24339else $as_nop
24340  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24341/* end confdefs.h.  */
24342
24343#include <sys/types.h>
24344#include <sys/socket.h>
24345#ifdef SO_PEERCRED
24346yes_have_so_peercred
24347#endif
24348
24349_ACEOF
24350if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24351  $EGREP "yes_have_so_peercred" >/dev/null 2>&1
24352then :
24353  xorg_cv_sys_have_so_peercred=yes
24354else $as_nop
24355  xorg_cv_sys_have_so_peercred=no
24356fi
24357rm -rf conftest*
24358
24359fi
24360{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_sys_have_so_peercred" >&5
24361printf "%s\n" "$xorg_cv_sys_have_so_peercred" >&6; }
24362
24363if test "x$ac_cv_func_getpeereid" = xno && test "x$ac_cv_func_getpeerucred" = xno && test "x$xorg_cv_sys_have_so_peercred" = xno ; then
24364
24365printf "%s\n" "#define NO_LOCAL_CLIENT_CRED 1" >>confdefs.h
24366
24367fi
24368
24369{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
24370printf %s "checking for sqrt in -lm... " >&6; }
24371if test ${ac_cv_lib_m_sqrt+y}
24372then :
24373  printf %s "(cached) " >&6
24374else $as_nop
24375  ac_check_lib_save_LIBS=$LIBS
24376LIBS="-lm  $LIBS"
24377cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24378/* end confdefs.h.  */
24379
24380/* Override any GCC internal prototype to avoid an error.
24381   Use char because int might match the return type of a GCC
24382   builtin and then its argument prototype would still apply.  */
24383char sqrt ();
24384int
24385main (void)
24386{
24387return sqrt ();
24388  ;
24389  return 0;
24390}
24391_ACEOF
24392if ac_fn_c_try_link "$LINENO"
24393then :
24394  ac_cv_lib_m_sqrt=yes
24395else $as_nop
24396  ac_cv_lib_m_sqrt=no
24397fi
24398rm -f core conftest.err conftest.$ac_objext conftest.beam \
24399    conftest$ac_exeext conftest.$ac_ext
24400LIBS=$ac_check_lib_save_LIBS
24401fi
24402{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
24403printf "%s\n" "$ac_cv_lib_m_sqrt" >&6; }
24404if test "x$ac_cv_lib_m_sqrt" = xyes
24405then :
24406  printf "%s\n" "#define HAVE_LIBM 1" >>confdefs.h
24407
24408  LIBS="-lm $LIBS"
24409
24410fi
24411
24412ac_fn_c_check_func "$LINENO" "cbrt" "ac_cv_func_cbrt"
24413if test "x$ac_cv_func_cbrt" = xyes
24414then :
24415  printf "%s\n" "#define HAVE_CBRT 1" >>confdefs.h
24416
24417fi
24418
24419
24420# Check whether --enable-agp was given.
24421if test ${enable_agp+y}
24422then :
24423  enableval=$enable_agp; AGP=$enableval
24424else $as_nop
24425  AGP=auto
24426fi
24427
24428if test "x$AGP" = "xauto" ; then
24429           for ac_header in linux/agpgart.h sys/agpio.h sys/agpgart.h
24430do :
24431  as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
24432ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
24433if eval test \"x\$"$as_ac_Header"\" = x"yes"
24434then :
24435  cat >>confdefs.h <<_ACEOF
24436#define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
24437_ACEOF
24438 AGP=yes
24439fi
24440
24441done
24442fi
24443 if test "x$AGP" = xyes; then
24444  AGP_TRUE=
24445  AGP_FALSE='#'
24446else
24447  AGP_TRUE='#'
24448  AGP_FALSE=
24449fi
24450
24451
24452       for ac_header in linux/fb.h
24453do :
24454  ac_fn_c_check_header_compile "$LINENO" "linux/fb.h" "ac_cv_header_linux_fb_h" "$ac_includes_default"
24455if test "x$ac_cv_header_linux_fb_h" = xyes
24456then :
24457  printf "%s\n" "#define HAVE_LINUX_FB_H 1" >>confdefs.h
24458 FBDEV=yes
24459fi
24460
24461done
24462 if test "x$FBDEV" = xyes; then
24463  FBDEVHW_TRUE=
24464  FBDEVHW_FALSE='#'
24465else
24466  FBDEVHW_TRUE='#'
24467  FBDEVHW_FALSE=
24468fi
24469
24470
24471       for ac_header in sys/linker.h
24472do :
24473  ac_fn_c_check_header_compile "$LINENO" "sys/linker.h" "ac_cv_header_sys_linker_h" "#include <sys/param.h>
24474"
24475if test "x$ac_cv_header_sys_linker_h" = xyes
24476then :
24477  printf "%s\n" "#define HAVE_SYS_LINKER_H 1" >>confdefs.h
24478 ac_cv_sys_linker_h=yes
24479else $as_nop
24480  ac_cv_sys_linker_h=no
24481fi
24482
24483done
24484 if test "x$ac_cv_sys_linker_h" = xyes; then
24485  FREEBSD_KLDLOAD_TRUE=
24486  FREEBSD_KLDLOAD_FALSE='#'
24487else
24488  FREEBSD_KLDLOAD_TRUE='#'
24489  FREEBSD_KLDLOAD_FALSE=
24490fi
24491
24492
24493{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SYSV IPC" >&5
24494printf %s "checking for SYSV IPC... " >&6; }
24495if test ${ac_cv_sysv_ipc+y}
24496then :
24497  printf %s "(cached) " >&6
24498else $as_nop
24499  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24500/* end confdefs.h.  */
24501
24502#include <sys/types.h>
24503#include <sys/ipc.h>
24504#include <sys/shm.h>
24505#include <sys/stat.h>
24506
24507int
24508main (void)
24509{
24510
24511{
24512    int id;
24513    id = shmget(IPC_PRIVATE, 512, S_IRUSR | S_IWUSR);
24514    if (id < 0) return -1;
24515    return shmctl(id, IPC_RMID, 0);
24516}
24517  ;
24518  return 0;
24519}
24520_ACEOF
24521if ac_fn_c_try_link "$LINENO"
24522then :
24523  ac_cv_sysv_ipc=yes
24524else $as_nop
24525  ac_cv_sysv_ipc=no
24526fi
24527rm -f core conftest.err conftest.$ac_objext conftest.beam \
24528    conftest$ac_exeext conftest.$ac_ext
24529fi
24530{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sysv_ipc" >&5
24531printf "%s\n" "$ac_cv_sysv_ipc" >&6; }
24532if test "x$ac_cv_sysv_ipc" = xyes; then
24533
24534printf "%s\n" "#define HAVE_SYSV_IPC 1" >>confdefs.h
24535
24536fi
24537
24538if test -c /dev/xf86 ; then
24539
24540printf "%s\n" "#define HAS_APERTURE_DRV 1" >>confdefs.h
24541
24542fi
24543
24544ac_fn_c_check_header_compile "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default"
24545if test "x$ac_cv_header_execinfo_h" = xyes
24546then :
24547
24548    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for backtrace in -lc" >&5
24549printf %s "checking for backtrace in -lc... " >&6; }
24550if test ${ac_cv_lib_c_backtrace+y}
24551then :
24552  printf %s "(cached) " >&6
24553else $as_nop
24554  ac_check_lib_save_LIBS=$LIBS
24555LIBS="-lc  $LIBS"
24556cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24557/* end confdefs.h.  */
24558
24559/* Override any GCC internal prototype to avoid an error.
24560   Use char because int might match the return type of a GCC
24561   builtin and then its argument prototype would still apply.  */
24562char backtrace ();
24563int
24564main (void)
24565{
24566return backtrace ();
24567  ;
24568  return 0;
24569}
24570_ACEOF
24571if ac_fn_c_try_link "$LINENO"
24572then :
24573  ac_cv_lib_c_backtrace=yes
24574else $as_nop
24575  ac_cv_lib_c_backtrace=no
24576fi
24577rm -f core conftest.err conftest.$ac_objext conftest.beam \
24578    conftest$ac_exeext conftest.$ac_ext
24579LIBS=$ac_check_lib_save_LIBS
24580fi
24581{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_backtrace" >&5
24582printf "%s\n" "$ac_cv_lib_c_backtrace" >&6; }
24583if test "x$ac_cv_lib_c_backtrace" = xyes
24584then :
24585
24586
24587printf "%s\n" "#define HAVE_BACKTRACE 1" >>confdefs.h
24588
24589
24590printf "%s\n" "#define HAVE_EXECINFO_H 1" >>confdefs.h
24591
24592
24593fi
24594
24595
24596fi
24597
24598
24599DEFAULT_INT10="x86emu"
24600
24601
24602case $host_cpu in
24603  alpha*)
24604	ALPHA_VIDEO=yes
24605	case $host_os in
24606	        *freebsd*)	SYS_LIBS=-lio ;;
24607		*netbsd*)
24608printf "%s\n" "#define USE_ALPHA_PIO 1" >>confdefs.h
24609 ;;
24610	esac
24611	GLX_ARCH_DEFINES="-D__GLX_ALIGN64 -mieee"
24612	;;
24613  arm*)
24614	ARM_VIDEO=yes
24615	DEFAULT_INT10="stub"
24616	;;
24617  i*86)
24618	I386_VIDEO=yes
24619	case $host_os in
24620		*freebsd*)	printf "%s\n" "#define USE_DEV_IO 1" >>confdefs.h
24621 ;;
24622		*dragonfly*)	printf "%s\n" "#define USE_DEV_IO 1" >>confdefs.h
24623 ;;
24624		*netbsd*)	printf "%s\n" "#define USE_I386_IOPL 1" >>confdefs.h
24625
24626				SYS_LIBS=-li386
24627				;;
24628		*openbsd*)	printf "%s\n" "#define USE_I386_IOPL 1" >>confdefs.h
24629
24630				SYS_LIBS=-li386
24631				;;
24632	esac
24633        ;;
24634  powerpc*)
24635	PPC_VIDEO=yes
24636	case $host_os in
24637		*freebsd*)	DEFAULT_INT10=stub ;;
24638	esac
24639	;;
24640  sparc*)
24641	SPARC64_VIDEO=yes
24642	BSD_ARCH_SOURCES="sparc64_video.c ioperm_noop.c"
24643	GLX_ARCH_DEFINES="-D__GLX_ALIGN64"
24644	;;
24645  x86_64*|amd64*)
24646	I386_VIDEO=yes
24647	case $host_os in
24648		*freebsd*)
24649printf "%s\n" "#define USE_DEV_IO 1" >>confdefs.h
24650 ;;
24651		*dragonfly*)
24652printf "%s\n" "#define USE_DEV_IO 1" >>confdefs.h
24653 ;;
24654		*netbsd*)
24655printf "%s\n" "#define USE_I386_IOPL 1" >>confdefs.h
24656
24657				SYS_LIBS=-lx86_64
24658				;;
24659		*openbsd*)
24660printf "%s\n" "#define USE_AMD64_IOPL 1" >>confdefs.h
24661
24662				SYS_LIBS=-lamd64
24663				;;
24664	esac
24665	GLX_ARCH_DEFINES="-D__GLX_ALIGN64"
24666	;;
24667  ia64*)
24668  	GLX_ARCH_DEFINES="-D__GLX_ALIGN64"
24669	;;
24670  s390*)
24671  	GLX_ARCH_DEFINES="-D__GLX_ALIGN64"
24672	;;
24673esac
24674
24675
24676 if test "x$ALPHA_VIDEO" = xyes; then
24677  ALPHA_VIDEO_TRUE=
24678  ALPHA_VIDEO_FALSE='#'
24679else
24680  ALPHA_VIDEO_TRUE='#'
24681  ALPHA_VIDEO_FALSE=
24682fi
24683
24684 if test "x$ARM_VIDEO" = xyes; then
24685  ARM_VIDEO_TRUE=
24686  ARM_VIDEO_FALSE='#'
24687else
24688  ARM_VIDEO_TRUE='#'
24689  ARM_VIDEO_FALSE=
24690fi
24691
24692 if test "x$I386_VIDEO" = xyes; then
24693  I386_VIDEO_TRUE=
24694  I386_VIDEO_FALSE='#'
24695else
24696  I386_VIDEO_TRUE='#'
24697  I386_VIDEO_FALSE=
24698fi
24699
24700 if test "x$PPC_VIDEO" = xyes; then
24701  PPC_VIDEO_TRUE=
24702  PPC_VIDEO_FALSE='#'
24703else
24704  PPC_VIDEO_TRUE='#'
24705  PPC_VIDEO_FALSE=
24706fi
24707
24708 if test "x$SPARC64_VIDEO" = xyes; then
24709  SPARC64_VIDEO_TRUE=
24710  SPARC64_VIDEO_FALSE='#'
24711else
24712  SPARC64_VIDEO_TRUE='#'
24713  SPARC64_VIDEO_FALSE=
24714fi
24715
24716
24717DRI=no
24718case $host_os in
24719  *freebsd* | *dragonfly*)
24720	case $host_os in
24721		kfreebsd*-gnu) ;;
24722		*)
24723printf "%s\n" "#define CSRG_BASED 1" >>confdefs.h
24724 ;;
24725	esac
24726
24727printf "%s\n" "#define PCCONS_SUPPORT 1" >>confdefs.h
24728
24729
24730printf "%s\n" "#define PCVT_SUPPORT 1" >>confdefs.h
24731
24732
24733printf "%s\n" "#define SYSCONS_SUPPORT 1" >>confdefs.h
24734
24735	DRI=yes
24736	;;
24737  *netbsd*)
24738
24739printf "%s\n" "#define CSRG_BASED 1" >>confdefs.h
24740
24741
24742printf "%s\n" "#define PCCONS_SUPPORT 1" >>confdefs.h
24743
24744
24745printf "%s\n" "#define PCVT_SUPPORT 1" >>confdefs.h
24746
24747
24748printf "%s\n" "#define WSCONS_SUPPORT 1" >>confdefs.h
24749
24750	DRI=yes
24751	;;
24752  *openbsd*)
24753
24754printf "%s\n" "#define CSRG_BASED 1" >>confdefs.h
24755
24756
24757printf "%s\n" "#define PCVT_SUPPORT 1" >>confdefs.h
24758
24759
24760printf "%s\n" "#define WSCONS_SUPPORT 1" >>confdefs.h
24761
24762	;;
24763  *linux*)
24764	DRI=yes
24765	;;
24766  *solaris*)
24767	DRI=yes
24768	;;
24769  darwin*)
24770
24771printf "%s\n" "#define CSRG_BASED 1" >>confdefs.h
24772
24773	;;
24774  cygwin*|mingw*)
24775	CFLAGS="$CFLAGS -DFD_SETSIZE=512"
24776	;;
24777esac
24778
24779PVMAJOR=`echo $PACKAGE_VERSION | cut -d . -f 1`
24780
24781VENDOR_RELEASE="((10000000) + (($PVMAJOR) * 100000) + (($PVM) * 1000) + $PVP)"
24782VENDOR_MAN_VERSION="Version ${PACKAGE_VERSION}"
24783
24784VENDOR_NAME="The X.Org Foundation"
24785VENDOR_NAME_SHORT="X.Org"
24786VENDOR_WEB="http://wiki.x.org"
24787
24788# Check whether --enable-werror was given.
24789if test ${enable_werror+y}
24790then :
24791  enableval=$enable_werror; as_fn_error $? "--enable-werror has been replaced by --enable-strict-compilation" "$LINENO" 5
24792fi
24793
24794
24795# Check whether --enable-debug was given.
24796if test ${enable_debug+y}
24797then :
24798  enableval=$enable_debug; DEBUGGING=$enableval
24799else $as_nop
24800  DEBUGGING=no
24801fi
24802
24803
24804# Check whether --with-int10 was given.
24805if test ${with_int10+y}
24806then :
24807  withval=$with_int10; INT10="$withval"
24808else $as_nop
24809  INT10="$DEFAULT_INT10"
24810fi
24811
24812
24813# Check whether --with-vendor-name was given.
24814if test ${with_vendor_name+y}
24815then :
24816  withval=$with_vendor_name;  VENDOR_NAME="$withval"
24817fi
24818
24819
24820# Check whether --with-vendor-name-short was given.
24821if test ${with_vendor_name_short+y}
24822then :
24823  withval=$with_vendor_name_short;  VENDOR_NAME_SHORT="$withval"
24824fi
24825
24826
24827# Check whether --with-vendor-web was given.
24828if test ${with_vendor_web+y}
24829then :
24830  withval=$with_vendor_web;  VENDOR_WEB="$withval"
24831fi
24832
24833
24834# Check whether --with-module-dir was given.
24835if test ${with_module_dir+y}
24836then :
24837  withval=$with_module_dir;  moduledir="$withval"
24838else $as_nop
24839   moduledir="${libdir}/xorg/modules"
24840fi
24841
24842
24843# Check whether --with-log-dir was given.
24844if test ${with_log_dir+y}
24845then :
24846  withval=$with_log_dir;  logdir="$withval"
24847else $as_nop
24848   logdir="$localstatedir/log"
24849fi
24850
24851
24852# Check whether --with-builder-addr was given.
24853if test ${with_builder_addr+y}
24854then :
24855  withval=$with_builder_addr;  BUILDERADDR="$withval"
24856else $as_nop
24857   BUILDERADDR="xorg@lists.freedesktop.org"
24858fi
24859
24860
24861# Check whether --with-builderstring was given.
24862if test ${with_builderstring+y}
24863then :
24864  withval=$with_builderstring;  BUILDERSTRING="$withval"
24865
24866fi
24867
24868# Check whether --enable-listen-tcp was given.
24869if test ${enable_listen_tcp+y}
24870then :
24871  enableval=$enable_listen_tcp; LISTEN_TCP=$enableval
24872else $as_nop
24873  LISTEN_TCP=no
24874fi
24875
24876# Check whether --enable-listen-unix was given.
24877if test ${enable_listen_unix+y}
24878then :
24879  enableval=$enable_listen_unix; LISTEN_UNIX=$enableval
24880else $as_nop
24881  LISTEN_UNIX=yes
24882fi
24883
24884
24885# Check whether --enable-listen-local was given.
24886if test ${enable_listen_local+y}
24887then :
24888  enableval=$enable_listen_local; LISTEN_LOCAL=$enableval
24889else $as_nop
24890  LISTEN_LOCAL=yes
24891fi
24892
24893
24894case $host_os in
24895    linux*)
24896        FALLBACK_INPUT_DRIVER="libinput"
24897        ;;
24898    *)
24899        FALLBACK_INPUT_DRIVER=""
24900        ;;
24901esac
24902
24903# Check whether --with-fallback-input-driver was given.
24904if test ${with_fallback_input_driver+y}
24905then :
24906  withval=$with_fallback_input_driver;  FALLBACK_INPUT_DRIVER=$withval
24907fi
24908
24909if test "x$FALLBACK_INPUT_DRIVER" = "xno"; then
24910    FALLBACK_INPUT_DRIVER=""
24911fi
24912{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fallback input driver" >&5
24913printf %s "checking for fallback input driver... " >&6; }
24914{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FALLBACK_INPUT_DRIVER" >&5
24915printf "%s\n" "$FALLBACK_INPUT_DRIVER" >&6; }
24916
24917printf "%s\n" "#define FALLBACK_INPUT_DRIVER \"$FALLBACK_INPUT_DRIVER\"" >>confdefs.h
24918
24919
24920
24921
24922
24923	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for root directory for font files" >&5
24924printf %s "checking for root directory for font files... " >&6; }
24925
24926# Check whether --with-fontrootdir was given.
24927if test ${with_fontrootdir+y}
24928then :
24929  withval=$with_fontrootdir; FONTROOTDIR="$withval"
24930fi
24931
24932	# if --with-fontrootdir not specified...
24933	if test "x${FONTROOTDIR}" = "x"; then
24934		FONTROOTDIR=`$PKG_CONFIG --variable=fontrootdir fontutil`
24935	fi
24936	# ...and if pkg-config didn't find fontdir in fontutil.pc...
24937	if test "x${FONTROOTDIR}" = "x"; then
24938		FONTROOTDIR="${datadir}/fonts/X11"
24939	fi
24940
24941	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${FONTROOTDIR}" >&5
24942printf "%s\n" "${FONTROOTDIR}" >&6; }
24943
24944
24945
24946
24947	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for directory for misc files" >&5
24948printf %s "checking for directory for misc files... " >&6; }
24949
24950# Check whether --with-fontmiscdir was given.
24951if test ${with_fontmiscdir+y}
24952then :
24953  withval=$with_fontmiscdir; FONTMISCDIR="${withval}"
24954else $as_nop
24955  FONTMISCDIR='${FONTROOTDIR}/misc'
24956fi
24957
24958
24959	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${FONTMISCDIR}" >&5
24960printf "%s\n" "${FONTMISCDIR}" >&6; }
24961
24962
24963
24964
24965	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for directory for OTF files" >&5
24966printf %s "checking for directory for OTF files... " >&6; }
24967
24968# Check whether --with-fontotfdir was given.
24969if test ${with_fontotfdir+y}
24970then :
24971  withval=$with_fontotfdir; FONTOTFDIR="${withval}"
24972else $as_nop
24973  FONTOTFDIR='${FONTROOTDIR}/OTF'
24974fi
24975
24976
24977	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${FONTOTFDIR}" >&5
24978printf "%s\n" "${FONTOTFDIR}" >&6; }
24979
24980
24981
24982
24983	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for directory for TTF files" >&5
24984printf %s "checking for directory for TTF files... " >&6; }
24985
24986# Check whether --with-fontttfdir was given.
24987if test ${with_fontttfdir+y}
24988then :
24989  withval=$with_fontttfdir; FONTTTFDIR="${withval}"
24990else $as_nop
24991  FONTTTFDIR='${FONTROOTDIR}/TTF'
24992fi
24993
24994
24995	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${FONTTTFDIR}" >&5
24996printf "%s\n" "${FONTTTFDIR}" >&6; }
24997
24998
24999
25000
25001	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for directory for Type1 files" >&5
25002printf %s "checking for directory for Type1 files... " >&6; }
25003
25004# Check whether --with-fonttype1dir was given.
25005if test ${with_fonttype1dir+y}
25006then :
25007  withval=$with_fonttype1dir; FONTTYPE1DIR="${withval}"
25008else $as_nop
25009  FONTTYPE1DIR='${FONTROOTDIR}/Type1'
25010fi
25011
25012
25013	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${FONTTYPE1DIR}" >&5
25014printf "%s\n" "${FONTTYPE1DIR}" >&6; }
25015
25016
25017
25018
25019	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for directory for 75dpi files" >&5
25020printf %s "checking for directory for 75dpi files... " >&6; }
25021
25022# Check whether --with-font75dpidir was given.
25023if test ${with_font75dpidir+y}
25024then :
25025  withval=$with_font75dpidir; FONT75DPIDIR="${withval}"
25026else $as_nop
25027  FONT75DPIDIR='${FONTROOTDIR}/75dpi'
25028fi
25029
25030
25031	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${FONT75DPIDIR}" >&5
25032printf "%s\n" "${FONT75DPIDIR}" >&6; }
25033
25034
25035
25036
25037	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for directory for 100dpi files" >&5
25038printf %s "checking for directory for 100dpi files... " >&6; }
25039
25040# Check whether --with-font100dpidir was given.
25041if test ${with_font100dpidir+y}
25042then :
25043  withval=$with_font100dpidir; FONT100DPIDIR="${withval}"
25044else $as_nop
25045  FONT100DPIDIR='${FONTROOTDIR}/100dpi'
25046fi
25047
25048
25049	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${FONT100DPIDIR}" >&5
25050printf "%s\n" "${FONT100DPIDIR}" >&6; }
25051
25052
25053DEFAULT_FONT_PATH="${FONTMISCDIR}/,${FONTTTFDIR}/,${FONTOTFDIR}/,${FONTTYPE1DIR}/,${FONT100DPIDIR}/,${FONT75DPIDIR}/"
25054case $host_os in
25055    darwin*) DEFAULT_FONT_PATH="${DEFAULT_FONT_PATH},/Library/Fonts,/System/Library/Fonts" ;;
25056esac
25057
25058
25059# Check whether --with-default-font-path was given.
25060if test ${with_default_font_path+y}
25061then :
25062  withval=$with_default_font_path;  FONTPATH="$withval"
25063else $as_nop
25064   FONTPATH="${DEFAULT_FONT_PATH}"
25065fi
25066
25067
25068{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for default font path" >&5
25069printf %s "checking for default font path... " >&6; }
25070{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FONTPATH" >&5
25071printf "%s\n" "$FONTPATH" >&6; }
25072
25073
25074# Check whether --with-xkb-path was given.
25075if test ${with_xkb_path+y}
25076then :
25077  withval=$with_xkb_path;  XKBPATH="$withval"
25078else $as_nop
25079   XKBPATH="auto"
25080fi
25081
25082
25083# Check whether --with-xkb-output was given.
25084if test ${with_xkb_output+y}
25085then :
25086  withval=$with_xkb_output;  XKBOUTPUT="$withval"
25087else $as_nop
25088   XKBOUTPUT="compiled"
25089fi
25090
25091
25092# Check whether --with-default-xkb-rules was given.
25093if test ${with_default_xkb_rules+y}
25094then :
25095  withval=$with_default_xkb_rules;  XKB_DFLT_RULES="$withval"
25096else $as_nop
25097   XKB_DFLT_RULES=""
25098fi
25099
25100
25101# Check whether --with-default-xkb-model was given.
25102if test ${with_default_xkb_model+y}
25103then :
25104  withval=$with_default_xkb_model;  XKB_DFLT_MODEL="$withval"
25105else $as_nop
25106   XKB_DFLT_MODEL="pc105"
25107fi
25108
25109
25110# Check whether --with-default-xkb-layout was given.
25111if test ${with_default_xkb_layout+y}
25112then :
25113  withval=$with_default_xkb_layout;  XKB_DFLT_LAYOUT="$withval"
25114else $as_nop
25115   XKB_DFLT_LAYOUT="us"
25116fi
25117
25118
25119# Check whether --with-default-xkb-variant was given.
25120if test ${with_default_xkb_variant+y}
25121then :
25122  withval=$with_default_xkb_variant;  XKB_DFLT_VARIANT="$withval"
25123else $as_nop
25124   XKB_DFLT_VARIANT=""
25125fi
25126
25127
25128# Check whether --with-default-xkb-options was given.
25129if test ${with_default_xkb_options+y}
25130then :
25131  withval=$with_default_xkb_options;  XKB_DFLT_OPTIONS="$withval"
25132else $as_nop
25133   XKB_DFLT_OPTIONS=""
25134fi
25135
25136
25137# Check whether --with-serverconfig-path was given.
25138if test ${with_serverconfig_path+y}
25139then :
25140  withval=$with_serverconfig_path;  SERVERCONFIG="$withval"
25141else $as_nop
25142   SERVERCONFIG="${libdir}/xorg"
25143fi
25144
25145
25146# Check whether --with-apple-applications-dir was given.
25147if test ${with_apple_applications_dir+y}
25148then :
25149  withval=$with_apple_applications_dir;  APPLE_APPLICATIONS_DIR="${withval}"
25150else $as_nop
25151   APPLE_APPLICATIONS_DIR="/Applications/Utilities"
25152fi
25153
25154
25155
25156# Check whether --with-apple-application-name was given.
25157if test ${with_apple_application_name+y}
25158then :
25159  withval=$with_apple_application_name;  APPLE_APPLICATION_NAME="${withval}"
25160else $as_nop
25161   APPLE_APPLICATION_NAME="X11"
25162fi
25163
25164
25165
25166# Check whether --with-bundle-id-prefix was given.
25167if test ${with_bundle_id_prefix+y}
25168then :
25169  withval=$with_bundle_id_prefix;  BUNDLE_ID_PREFIX="${withval}"
25170fi
25171
25172
25173
25174printf "%s\n" "#define BUNDLE_ID_PREFIX \"$BUNDLE_ID_PREFIX\"" >>confdefs.h
25175
25176
25177
25178# Check whether --with-bundle-version was given.
25179if test ${with_bundle_version+y}
25180then :
25181  withval=$with_bundle_version;  BUNDLE_VERSION="${withval}"
25182else $as_nop
25183   BUNDLE_VERSION="21.1.7"
25184fi
25185
25186
25187
25188# Check whether --with-bundle-version-string was given.
25189if test ${with_bundle_version_string+y}
25190then :
25191  withval=$with_bundle_version_string;  BUNDLE_VERSION_STRING="${withval}"
25192else $as_nop
25193   BUNDLE_VERSION_STRING="${PACKAGE_VERSION}"
25194fi
25195
25196
25197# Check whether --enable-sparkle was given.
25198if test ${enable_sparkle+y}
25199then :
25200  enableval=$enable_sparkle;  XQUARTZ_SPARKLE="${enableval}"
25201else $as_nop
25202   XQUARTZ_SPARKLE="no"
25203fi
25204
25205
25206
25207# Check whether --with-sparkle-feed-url was given.
25208if test ${with_sparkle_feed_url+y}
25209then :
25210  withval=$with_sparkle_feed_url;  XQUARTZ_SPARKLE_FEED_URL="${withval}"
25211else $as_nop
25212   XQUARTZ_SPARKLE_FEED_URL="https://www.xquartz.org/releases/sparkle/release.xml"
25213fi
25214
25215
25216# Check whether --enable-visibility was given.
25217if test ${enable_visibility+y}
25218then :
25219  enableval=$enable_visibility; SYMBOL_VISIBILITY=$enableval
25220else $as_nop
25221  SYMBOL_VISIBILITY=auto
25222fi
25223
25224
25225
25226# Check whether --with-khronos-spec-dir was given.
25227if test ${with_khronos_spec_dir+y}
25228then :
25229  withval=$with_khronos_spec_dir; KHRONOS_SPEC_DIR="${withval}"
25230else $as_nop
25231  KHRONOS_SPEC_DIR=auto
25232fi
25233
25234
25235# Check whether --enable-composite was given.
25236if test ${enable_composite+y}
25237then :
25238  enableval=$enable_composite; COMPOSITE=$enableval
25239else $as_nop
25240  COMPOSITE=yes
25241fi
25242
25243# Check whether --enable-mitshm was given.
25244if test ${enable_mitshm+y}
25245then :
25246  enableval=$enable_mitshm; MITSHM=$enableval
25247else $as_nop
25248  MITSHM=auto
25249fi
25250
25251# Check whether --enable-xres was given.
25252if test ${enable_xres+y}
25253then :
25254  enableval=$enable_xres; RES=$enableval
25255else $as_nop
25256  RES=yes
25257fi
25258
25259# Check whether --enable-record was given.
25260if test ${enable_record+y}
25261then :
25262  enableval=$enable_record; RECORD=$enableval
25263else $as_nop
25264  RECORD=yes
25265fi
25266
25267# Check whether --enable-xv was given.
25268if test ${enable_xv+y}
25269then :
25270  enableval=$enable_xv; XV=$enableval
25271else $as_nop
25272  XV=yes
25273fi
25274
25275# Check whether --enable-xvmc was given.
25276if test ${enable_xvmc+y}
25277then :
25278  enableval=$enable_xvmc; XVMC=$enableval
25279else $as_nop
25280  XVMC=yes
25281fi
25282
25283# Check whether --enable-dga was given.
25284if test ${enable_dga+y}
25285then :
25286  enableval=$enable_dga; DGA=$enableval
25287else $as_nop
25288  DGA=auto
25289fi
25290
25291# Check whether --enable-screensaver was given.
25292if test ${enable_screensaver+y}
25293then :
25294  enableval=$enable_screensaver; SCREENSAVER=$enableval
25295else $as_nop
25296  SCREENSAVER=yes
25297fi
25298
25299# Check whether --enable-xdmcp was given.
25300if test ${enable_xdmcp+y}
25301then :
25302  enableval=$enable_xdmcp; XDMCP=$enableval
25303else $as_nop
25304  XDMCP=auto
25305fi
25306
25307# Check whether --enable-xdm-auth-1 was given.
25308if test ${enable_xdm_auth_1+y}
25309then :
25310  enableval=$enable_xdm_auth_1; XDMAUTH=$enableval
25311else $as_nop
25312  XDMAUTH=auto
25313fi
25314
25315# Check whether --enable-glx was given.
25316if test ${enable_glx+y}
25317then :
25318  enableval=$enable_glx; GLX=$enableval
25319else $as_nop
25320  GLX=yes
25321fi
25322
25323# Check whether --enable-dri was given.
25324if test ${enable_dri+y}
25325then :
25326  enableval=$enable_dri; DRI=$enableval
25327fi
25328
25329# Check whether --enable-dri2 was given.
25330if test ${enable_dri2+y}
25331then :
25332  enableval=$enable_dri2; DRI2=$enableval
25333else $as_nop
25334  DRI2=auto
25335fi
25336
25337# Check whether --enable-dri3 was given.
25338if test ${enable_dri3+y}
25339then :
25340  enableval=$enable_dri3; DRI3=$enableval
25341else $as_nop
25342  DRI3=auto
25343fi
25344
25345# Check whether --enable-present was given.
25346if test ${enable_present+y}
25347then :
25348  enableval=$enable_present; PRESENT=$enableval
25349else $as_nop
25350  PRESENT=yes
25351fi
25352
25353# Check whether --enable-xinerama was given.
25354if test ${enable_xinerama+y}
25355then :
25356  enableval=$enable_xinerama; XINERAMA=$enableval
25357else $as_nop
25358  XINERAMA=yes
25359fi
25360
25361# Check whether --enable-xf86vidmode was given.
25362if test ${enable_xf86vidmode+y}
25363then :
25364  enableval=$enable_xf86vidmode; XF86VIDMODE=$enableval
25365else $as_nop
25366  XF86VIDMODE=auto
25367fi
25368
25369# Check whether --enable-xace was given.
25370if test ${enable_xace+y}
25371then :
25372  enableval=$enable_xace; XACE=$enableval
25373else $as_nop
25374  XACE=yes
25375fi
25376
25377# Check whether --enable-xselinux was given.
25378if test ${enable_xselinux+y}
25379then :
25380  enableval=$enable_xselinux; XSELINUX=$enableval
25381else $as_nop
25382  XSELINUX=no
25383fi
25384
25385# Check whether --enable-xcsecurity was given.
25386if test ${enable_xcsecurity+y}
25387then :
25388  enableval=$enable_xcsecurity; XCSECURITY=$enableval
25389else $as_nop
25390  XCSECURITY=no
25391fi
25392
25393# Check whether --enable-dbe was given.
25394if test ${enable_dbe+y}
25395then :
25396  enableval=$enable_dbe; DBE=$enableval
25397else $as_nop
25398  DBE=yes
25399fi
25400
25401# Check whether --enable-xf86bigfont was given.
25402if test ${enable_xf86bigfont+y}
25403then :
25404  enableval=$enable_xf86bigfont; XF86BIGFONT=$enableval
25405else $as_nop
25406  XF86BIGFONT=no
25407fi
25408
25409# Check whether --enable-dpms was given.
25410if test ${enable_dpms+y}
25411then :
25412  enableval=$enable_dpms; DPMSExtension=$enableval
25413else $as_nop
25414  DPMSExtension=yes
25415fi
25416
25417# Check whether --enable-config-udev was given.
25418if test ${enable_config_udev+y}
25419then :
25420  enableval=$enable_config_udev; CONFIG_UDEV=$enableval
25421else $as_nop
25422  CONFIG_UDEV=auto
25423fi
25424
25425# Check whether --enable-config-udev-kms was given.
25426if test ${enable_config_udev_kms+y}
25427then :
25428  enableval=$enable_config_udev_kms; CONFIG_UDEV_KMS=$enableval
25429else $as_nop
25430  CONFIG_UDEV_KMS=auto
25431fi
25432
25433# Check whether --enable-config-hal was given.
25434if test ${enable_config_hal+y}
25435then :
25436  enableval=$enable_config_hal; CONFIG_HAL=$enableval
25437else $as_nop
25438  CONFIG_HAL=auto
25439fi
25440
25441# Check whether --enable-config-wscons was given.
25442if test ${enable_config_wscons+y}
25443then :
25444  enableval=$enable_config_wscons; CONFIG_WSCONS=$enableval
25445else $as_nop
25446  CONFIG_WSCONS=auto
25447fi
25448
25449# Check whether --enable-xfree86-utils was given.
25450if test ${enable_xfree86_utils+y}
25451then :
25452  enableval=$enable_xfree86_utils; XF86UTILS=$enableval
25453else $as_nop
25454  XF86UTILS=yes
25455fi
25456
25457# Check whether --enable-vgahw was given.
25458if test ${enable_vgahw+y}
25459then :
25460  enableval=$enable_vgahw; VGAHW=$enableval
25461else $as_nop
25462  VGAHW=yes
25463fi
25464
25465# Check whether --enable-int10-module was given.
25466if test ${enable_int10_module+y}
25467then :
25468  enableval=$enable_int10_module; INT10MODULE=$enableval
25469else $as_nop
25470  INT10MODULE=yes
25471fi
25472
25473# Check whether --enable-windowsdri was given.
25474if test ${enable_windowsdri+y}
25475then :
25476  enableval=$enable_windowsdri; WINDOWSDRI=$enableval
25477else $as_nop
25478  WINDOWSDRI=auto
25479fi
25480
25481# Check whether --enable-libdrm was given.
25482if test ${enable_libdrm+y}
25483then :
25484  enableval=$enable_libdrm; DRM=$enableval
25485else $as_nop
25486  DRM=yes
25487fi
25488
25489# Check whether --enable-clientids was given.
25490if test ${enable_clientids+y}
25491then :
25492  enableval=$enable_clientids; CLIENTIDS=$enableval
25493else $as_nop
25494  CLIENTIDS=yes
25495fi
25496
25497# Check whether --enable-pciaccess was given.
25498if test ${enable_pciaccess+y}
25499then :
25500  enableval=$enable_pciaccess; PCI=$enableval
25501else $as_nop
25502  PCI=yes
25503fi
25504
25505# Check whether --enable-linux_acpi was given.
25506if test ${enable_linux_acpi+y}
25507then :
25508  enableval=$enable_linux_acpi; enable_linux_acpi=$enableval
25509else $as_nop
25510  enable_linux_acpi=yes
25511fi
25512
25513# Check whether --enable-linux_apm was given.
25514if test ${enable_linux_apm+y}
25515then :
25516  enableval=$enable_linux_apm; enable_linux_apm=$enableval
25517else $as_nop
25518  enable_linux_apm=yes
25519fi
25520
25521# Check whether --enable-systemd-logind was given.
25522if test ${enable_systemd_logind+y}
25523then :
25524  enableval=$enable_systemd_logind; SYSTEMD_LOGIND=$enableval
25525else $as_nop
25526  SYSTEMD_LOGIND=auto
25527fi
25528
25529# Check whether --enable-suid-wrapper was given.
25530if test ${enable_suid_wrapper+y}
25531then :
25532  enableval=$enable_suid_wrapper; SUID_WRAPPER=$enableval
25533else $as_nop
25534  SUID_WRAPPER=no
25535fi
25536
25537
25538# Check whether --enable-xorg was given.
25539if test ${enable_xorg+y}
25540then :
25541  enableval=$enable_xorg; XORG=$enableval
25542else $as_nop
25543  XORG=auto
25544fi
25545
25546# Check whether --enable-xvfb was given.
25547if test ${enable_xvfb+y}
25548then :
25549  enableval=$enable_xvfb; XVFB=$enableval
25550else $as_nop
25551  XVFB=yes
25552fi
25553
25554# Check whether --enable-xnest was given.
25555if test ${enable_xnest+y}
25556then :
25557  enableval=$enable_xnest; XNEST=$enableval
25558else $as_nop
25559  XNEST=auto
25560fi
25561
25562# Check whether --enable-xquartz was given.
25563if test ${enable_xquartz+y}
25564then :
25565  enableval=$enable_xquartz; XQUARTZ=$enableval
25566else $as_nop
25567  XQUARTZ=auto
25568fi
25569
25570# Check whether --enable-standalone-xpbproxy was given.
25571if test ${enable_standalone_xpbproxy+y}
25572then :
25573  enableval=$enable_standalone_xpbproxy; STANDALONE_XPBPROXY=$enableval
25574else $as_nop
25575  STANDALONE_XPBPROXY=no
25576fi
25577
25578# Check whether --enable-xwin was given.
25579if test ${enable_xwin+y}
25580then :
25581  enableval=$enable_xwin; XWIN=$enableval
25582else $as_nop
25583  XWIN=auto
25584fi
25585
25586# Check whether --enable-glamor was given.
25587if test ${enable_glamor+y}
25588then :
25589  enableval=$enable_glamor; GLAMOR=$enableval
25590else $as_nop
25591  GLAMOR=auto
25592fi
25593
25594# Check whether --enable-xf86-input-inputtest was given.
25595if test ${enable_xf86_input_inputtest+y}
25596then :
25597  enableval=$enable_xf86_input_inputtest; XORG_DRIVER_INPUT_INPUTTEST=$enableval
25598else $as_nop
25599  XORG_DRIVER_INPUT_INPUTTEST=yes
25600fi
25601
25602# Check whether --enable-kdrive was given.
25603if test ${enable_kdrive+y}
25604then :
25605  enableval=$enable_kdrive; KDRIVE=$enableval
25606else $as_nop
25607  KDRIVE=no
25608fi
25609
25610# Check whether --enable-xephyr was given.
25611if test ${enable_xephyr+y}
25612then :
25613  enableval=$enable_xephyr; XEPHYR=$enableval
25614else $as_nop
25615  XEPHYR=auto
25616fi
25617
25618# Check whether --enable-libunwind was given.
25619if test ${enable_libunwind+y}
25620then :
25621  enableval=$enable_libunwind; LIBUNWIND="$enableval"
25622else $as_nop
25623  LIBUNWIND="auto"
25624fi
25625
25626# Check whether --enable-xshmfence was given.
25627if test ${enable_xshmfence+y}
25628then :
25629  enableval=$enable_xshmfence; XSHMFENCE="$enableval"
25630else $as_nop
25631  XSHMFENCE="auto"
25632fi
25633
25634
25635
25636# Check whether --enable-install-setuid was given.
25637if test ${enable_install_setuid+y}
25638then :
25639  enableval=$enable_install_setuid; SETUID=$enableval
25640else $as_nop
25641  SETUID=auto
25642fi
25643
25644{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking to see if we can install the Xorg server as root" >&5
25645printf %s "checking to see if we can install the Xorg server as root... " >&6; }
25646if test "x$SETUID" = "xauto" ; then
25647	case $host_os in
25648	    cygwin*)		SETUID="no"  ;;
25649	    mingw*)		SETUID="no"  ;;
25650	    darwin*)		SETUID="no"  ;;
25651	    *)
25652	   	case $host_cpu in
25653		    sparc)	SETUID="no"  ;;
25654		    *)		SETUID="yes" ;;
25655		esac
25656	esac
25657	if test "x$SETUID" = xyes; then
25658		touch testfile
25659		chown root testfile > /dev/null 2>&1 || SETUID="no"
25660		rm -f testfile
25661	fi
25662fi
25663{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SETUID" >&5
25664printf "%s\n" "$SETUID" >&6; }
25665 if test "x$SETUID" = "xyes"; then
25666  INSTALL_SETUID_TRUE=
25667  INSTALL_SETUID_FALSE='#'
25668else
25669  INSTALL_SETUID_TRUE='#'
25670  INSTALL_SETUID_FALSE=
25671fi
25672
25673
25674
25675
25676# Transport selection macro from xtrans.m4
25677
25678
25679 case $host_os in
25680	mingw*)	unixdef="no"   ;;
25681	*)	unixdef="yes"  ;;
25682 esac
25683 # Check whether --enable-unix-transport was given.
25684if test ${enable_unix_transport+y}
25685then :
25686  enableval=$enable_unix_transport; UNIXCONN=$enableval
25687else $as_nop
25688  UNIXCONN=$unixdef
25689fi
25690
25691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5
25692printf %s "checking if Xtrans should support UNIX socket connections... " >&6; }
25693 if test "$UNIXCONN" = "yes"; then
25694
25695printf "%s\n" "#define UNIXCONN 1" >>confdefs.h
25696
25697 fi
25698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5
25699printf "%s\n" "$UNIXCONN" >&6; }
25700 # Check whether --enable-tcp-transport was given.
25701if test ${enable_tcp_transport+y}
25702then :
25703  enableval=$enable_tcp_transport; TCPCONN=$enableval
25704else $as_nop
25705  TCPCONN=yes
25706fi
25707
25708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5
25709printf %s "checking if Xtrans should support TCP socket connections... " >&6; }
25710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5
25711printf "%s\n" "$TCPCONN" >&6; }
25712 if test "$TCPCONN" = "yes"; then
25713
25714printf "%s\n" "#define TCPCONN 1" >>confdefs.h
25715
25716
25717 # SVR4 hides these in libraries other than libc
25718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
25719printf %s "checking for library containing socket... " >&6; }
25720if test ${ac_cv_search_socket+y}
25721then :
25722  printf %s "(cached) " >&6
25723else $as_nop
25724  ac_func_search_save_LIBS=$LIBS
25725cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25726/* end confdefs.h.  */
25727
25728/* Override any GCC internal prototype to avoid an error.
25729   Use char because int might match the return type of a GCC
25730   builtin and then its argument prototype would still apply.  */
25731char socket ();
25732int
25733main (void)
25734{
25735return socket ();
25736  ;
25737  return 0;
25738}
25739_ACEOF
25740for ac_lib in '' socket
25741do
25742  if test -z "$ac_lib"; then
25743    ac_res="none required"
25744  else
25745    ac_res=-l$ac_lib
25746    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25747  fi
25748  if ac_fn_c_try_link "$LINENO"
25749then :
25750  ac_cv_search_socket=$ac_res
25751fi
25752rm -f core conftest.err conftest.$ac_objext conftest.beam \
25753    conftest$ac_exeext
25754  if test ${ac_cv_search_socket+y}
25755then :
25756  break
25757fi
25758done
25759if test ${ac_cv_search_socket+y}
25760then :
25761
25762else $as_nop
25763  ac_cv_search_socket=no
25764fi
25765rm conftest.$ac_ext
25766LIBS=$ac_func_search_save_LIBS
25767fi
25768{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
25769printf "%s\n" "$ac_cv_search_socket" >&6; }
25770ac_res=$ac_cv_search_socket
25771if test "$ac_res" != no
25772then :
25773  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25774
25775fi
25776
25777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
25778printf %s "checking for library containing gethostbyname... " >&6; }
25779if test ${ac_cv_search_gethostbyname+y}
25780then :
25781  printf %s "(cached) " >&6
25782else $as_nop
25783  ac_func_search_save_LIBS=$LIBS
25784cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25785/* end confdefs.h.  */
25786
25787/* Override any GCC internal prototype to avoid an error.
25788   Use char because int might match the return type of a GCC
25789   builtin and then its argument prototype would still apply.  */
25790char gethostbyname ();
25791int
25792main (void)
25793{
25794return gethostbyname ();
25795  ;
25796  return 0;
25797}
25798_ACEOF
25799for ac_lib in '' nsl
25800do
25801  if test -z "$ac_lib"; then
25802    ac_res="none required"
25803  else
25804    ac_res=-l$ac_lib
25805    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25806  fi
25807  if ac_fn_c_try_link "$LINENO"
25808then :
25809  ac_cv_search_gethostbyname=$ac_res
25810fi
25811rm -f core conftest.err conftest.$ac_objext conftest.beam \
25812    conftest$ac_exeext
25813  if test ${ac_cv_search_gethostbyname+y}
25814then :
25815  break
25816fi
25817done
25818if test ${ac_cv_search_gethostbyname+y}
25819then :
25820
25821else $as_nop
25822  ac_cv_search_gethostbyname=no
25823fi
25824rm conftest.$ac_ext
25825LIBS=$ac_func_search_save_LIBS
25826fi
25827{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
25828printf "%s\n" "$ac_cv_search_gethostbyname" >&6; }
25829ac_res=$ac_cv_search_gethostbyname
25830if test "$ac_res" != no
25831then :
25832  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25833
25834fi
25835
25836 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then
25837   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5
25838printf %s "checking for main in -lws2_32... " >&6; }
25839if test ${ac_cv_lib_ws2_32_main+y}
25840then :
25841  printf %s "(cached) " >&6
25842else $as_nop
25843  ac_check_lib_save_LIBS=$LIBS
25844LIBS="-lws2_32  $LIBS"
25845cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25846/* end confdefs.h.  */
25847
25848
25849int
25850main (void)
25851{
25852return main ();
25853  ;
25854  return 0;
25855}
25856_ACEOF
25857if ac_fn_c_try_link "$LINENO"
25858then :
25859  ac_cv_lib_ws2_32_main=yes
25860else $as_nop
25861  ac_cv_lib_ws2_32_main=no
25862fi
25863rm -f core conftest.err conftest.$ac_objext conftest.beam \
25864    conftest$ac_exeext conftest.$ac_ext
25865LIBS=$ac_check_lib_save_LIBS
25866fi
25867{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5
25868printf "%s\n" "$ac_cv_lib_ws2_32_main" >&6; }
25869if test "x$ac_cv_lib_ws2_32_main" = xyes
25870then :
25871  printf "%s\n" "#define HAVE_LIBWS2_32 1" >>confdefs.h
25872
25873  LIBS="-lws2_32 $LIBS"
25874
25875fi
25876
25877 fi
25878
25879 # Needs to come after above checks for libsocket & libnsl for SVR4 systems
25880 # Check whether --enable-ipv6 was given.
25881if test ${enable_ipv6+y}
25882then :
25883  enableval=$enable_ipv6; IPV6CONN=$enableval
25884else $as_nop
25885  ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
25886if test "x$ac_cv_func_getaddrinfo" = xyes
25887then :
25888  IPV6CONN=yes
25889else $as_nop
25890  IPV6CONN=no
25891fi
25892
25893fi
25894
25895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5
25896printf %s "checking if IPv6 support should be built... " >&6; }
25897 if test "$IPV6CONN" = "yes"; then
25898
25899printf "%s\n" "#define IPv6 1" >>confdefs.h
25900
25901 fi
25902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5
25903printf "%s\n" "$IPV6CONN" >&6; }
25904
25905 # 4.3BSD-Reno added a new member to struct sockaddr_in
25906 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "
25907#include <sys/types.h>
25908#include <sys/socket.h>
25909#include <netinet/in.h>
25910
25911"
25912if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes
25913then :
25914
25915printf "%s\n" "#define BSD44SOCKETS 1" >>confdefs.h
25916
25917fi
25918
25919
25920 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc.
25921 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
25922$ac_includes_default
25923#include <sys/socket.h>
25924"
25925if test "x$ac_cv_type_socklen_t" = xyes
25926then :
25927
25928printf "%s\n" "#define HAVE_SOCKLEN_T 1" >>confdefs.h
25929
25930
25931fi
25932
25933
25934 # XPG4v2/UNIX95 added msg_control - check to see if we need to define
25935 # _XOPEN_SOURCE to get it (such as on Solaris)
25936 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
25937$ac_includes_default
25938#include <sys/socket.h>
25939
25940"
25941if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes
25942then :
25943
25944fi
25945
25946 # First try for Solaris in C99 compliant mode, which requires XPG6/UNIX03
25947 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
25948     unset ac_cv_member_struct_msghdr_msg_control
25949     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=600" >&5
25950printf "%s\n" "$as_me: trying again with _XOPEN_SOURCE=600" >&6;}
25951     ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
25952#define _XOPEN_SOURCE 600
25953$ac_includes_default
25954#include <sys/socket.h>
25955
25956"
25957if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes
25958then :
25959
25960printf "%s\n" "#define _XOPEN_SOURCE 600" >>confdefs.h
25961
25962
25963fi
25964
25965 fi
25966 # If that didn't work, fall back to XPG5/UNIX98 with C89
25967 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
25968     unset ac_cv_member_struct_msghdr_msg_control
25969     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=500" >&5
25970printf "%s\n" "$as_me: trying again with _XOPEN_SOURCE=500" >&6;}
25971     ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
25972#define _XOPEN_SOURCE 500
25973$ac_includes_default
25974#include <sys/socket.h>
25975
25976"
25977if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes
25978then :
25979
25980printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
25981
25982
25983fi
25984
25985 fi
25986
25987
25988
25989 fi
25990 case $host_os in
25991	solaris*|sco*|sysv4*)	localdef="yes" ;;
25992	*)			localdef="no"  ;;
25993 esac
25994 # Check whether --enable-local-transport was given.
25995if test ${enable_local_transport+y}
25996then :
25997  enableval=$enable_local_transport; LOCALCONN=$enableval
25998else $as_nop
25999  LOCALCONN=$localdef
26000fi
26001
26002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5
26003printf %s "checking if Xtrans should support os-specific local connections... " >&6; }
26004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5
26005printf "%s\n" "$LOCALCONN" >&6; }
26006 if test "$LOCALCONN" = "yes"; then
26007
26008printf "%s\n" "#define LOCALCONN 1" >>confdefs.h
26009
26010 fi
26011
26012 # Other functions Xtrans may need
26013 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
26014if test "x$ac_cv_func_strcasecmp" = xyes
26015then :
26016  printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
26017
26018fi
26019ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
26020if test "x$ac_cv_func_strlcpy" = xyes
26021then :
26022  printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
26023
26024fi
26025
26026
26027
26028
26029# Secure RPC detection macro from xtrans.m4
26030
26031 # Check whether --enable-secure-rpc was given.
26032if test ${enable_secure_rpc+y}
26033then :
26034  enableval=$enable_secure_rpc; SECURE_RPC=$enableval
26035else $as_nop
26036  SECURE_RPC="try"
26037fi
26038
26039
26040 if test "x$SECURE_RPC" = "xyes" -o "x$SECURE_RPC" = "xtry" ; then
26041	FOUND_SECURE_RPC="no"
26042
26043  for ac_func in authdes_seccreate authdes_create
26044do :
26045  as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | $as_tr_sh`
26046ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
26047if eval test \"x\$"$as_ac_var"\" = x"yes"
26048then :
26049  cat >>confdefs.h <<_ACEOF
26050#define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1
26051_ACEOF
26052 FOUND_SECURE_RPC="yes"
26053fi
26054
26055done
26056	if test "x$FOUND_SECURE_RPC" = "xno" ; then
26057		if test "x$SECURE_RPC" = "xyes" ; then
26058	as_fn_error $? "Secure RPC requested, but required functions not found" "$LINENO" 5
26059		fi
26060		SECURE_RPC="no"
26061	else
26062				{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing getsecretkey" >&5
26063printf %s "checking for library containing getsecretkey... " >&6; }
26064if test ${ac_cv_search_getsecretkey+y}
26065then :
26066  printf %s "(cached) " >&6
26067else $as_nop
26068  ac_func_search_save_LIBS=$LIBS
26069cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26070/* end confdefs.h.  */
26071
26072/* Override any GCC internal prototype to avoid an error.
26073   Use char because int might match the return type of a GCC
26074   builtin and then its argument prototype would still apply.  */
26075char getsecretkey ();
26076int
26077main (void)
26078{
26079return getsecretkey ();
26080  ;
26081  return 0;
26082}
26083_ACEOF
26084for ac_lib in '' rpcsvc
26085do
26086  if test -z "$ac_lib"; then
26087    ac_res="none required"
26088  else
26089    ac_res=-l$ac_lib
26090    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26091  fi
26092  if ac_fn_c_try_link "$LINENO"
26093then :
26094  ac_cv_search_getsecretkey=$ac_res
26095fi
26096rm -f core conftest.err conftest.$ac_objext conftest.beam \
26097    conftest$ac_exeext
26098  if test ${ac_cv_search_getsecretkey+y}
26099then :
26100  break
26101fi
26102done
26103if test ${ac_cv_search_getsecretkey+y}
26104then :
26105
26106else $as_nop
26107  ac_cv_search_getsecretkey=no
26108fi
26109rm conftest.$ac_ext
26110LIBS=$ac_func_search_save_LIBS
26111fi
26112{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getsecretkey" >&5
26113printf "%s\n" "$ac_cv_search_getsecretkey" >&6; }
26114ac_res=$ac_cv_search_getsecretkey
26115if test "$ac_res" != no
26116then :
26117  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26118
26119fi
26120
26121		SECURE_RPC="yes"
26122	fi
26123 fi
26124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Secure RPC authentication (\"SUN-DES-1\") should be supported" >&5
26125printf %s "checking if Secure RPC authentication (\"SUN-DES-1\") should be supported... " >&6; }
26126 if test "x$SECURE_RPC" = "xyes" ; then
26127
26128printf "%s\n" "#define SECURE_RPC 1" >>confdefs.h
26129
26130 fi
26131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SECURE_RPC" >&5
26132printf "%s\n" "$SECURE_RPC" >&6; }
26133
26134 if test "x$SECURE_RPC" = xyes; then
26135  SECURE_RPC_TRUE=
26136  SECURE_RPC_FALSE='#'
26137else
26138  SECURE_RPC_TRUE='#'
26139  SECURE_RPC_FALSE=
26140fi
26141
26142
26143 if test "x$INT10" = xvm86; then
26144  INT10_VM86_TRUE=
26145  INT10_VM86_FALSE='#'
26146else
26147  INT10_VM86_TRUE='#'
26148  INT10_VM86_FALSE=
26149fi
26150
26151 if test "x$INT10" = xx86emu; then
26152  INT10_X86EMU_TRUE=
26153  INT10_X86EMU_FALSE='#'
26154else
26155  INT10_X86EMU_TRUE='#'
26156  INT10_X86EMU_FALSE=
26157fi
26158
26159 if test "x$INT10" = xstub; then
26160  INT10_STUB_TRUE=
26161  INT10_STUB_FALSE='#'
26162else
26163  INT10_STUB_TRUE='#'
26164  INT10_STUB_FALSE=
26165fi
26166
26167
26168case $host_os in
26169	cygwin* | mingw*)
26170		CONFIG_HAL=no
26171		CONFIG_UDEV=no
26172		CONFIG_UDEV_KMS=no
26173		DGA=no
26174		DRM=no
26175		DRI2=no
26176		DRI3=no
26177		INT10MODULE=no
26178		PCI=no
26179		VGAHW=no
26180		XF86UTILS=no
26181		XF86VIDMODE=no
26182		XSELINUX=no
26183		SYMBOL_VISIBILITY=no
26184		;;
26185	darwin*)
26186		PCI=no
26187		INT10MODULE=no
26188		VGAHW=no
26189		DRM=no
26190		DRI2=no
26191		DRI3=no
26192
26193		if test x$XQUARTZ = xauto; then
26194			{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build Xquartz" >&5
26195printf %s "checking whether to build Xquartz... " >&6; }
26196if test ${xorg_cv_Carbon_framework+y}
26197then :
26198  printf %s "(cached) " >&6
26199else $as_nop
26200
26201		 		save_LDFLAGS=$LDFLAGS
26202				LDFLAGS="$LDFLAGS -framework Carbon"
26203				cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26204/* end confdefs.h.  */
26205char FSFindFolder(); int main() { FSFindFolder(); return 0;}
26206_ACEOF
26207if ac_fn_c_try_link "$LINENO"
26208then :
26209  xorg_cv_Carbon_framework=yes
26210else $as_nop
26211  xorg_cv_Carbon_framework=no
26212fi
26213rm -f core conftest.err conftest.$ac_objext conftest.beam \
26214    conftest$ac_exeext conftest.$ac_ext
26215			        LDFLAGS=$save_LDFLAGS
26216fi
26217{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_Carbon_framework" >&5
26218printf "%s\n" "$xorg_cv_Carbon_framework" >&6; }
26219
26220			if test "X$xorg_cv_Carbon_framework" = Xyes; then
26221				XQUARTZ=yes
26222			else
26223				XQUARTZ=no
26224			fi
26225		fi
26226
26227		if test "x$XQUARTZ" = xyes ; then
26228			XQUARTZ=yes
26229			XVFB=no
26230			XNEST=no
26231
26232			DGA=no
26233			DPMSExtension=no
26234			XF86VIDMODE=no
26235		fi
26236		;;
26237	gnu*)
26238		DRM=no
26239		DRI2=no
26240		DRI3=no
26241		;;
26242	*) XQUARTZ=no ;;
26243esac
26244
26245XEXT_INC='-I$(top_srcdir)/Xext'
26246XEXT_LIB='$(top_builddir)/Xext/libXext.la'
26247
26248VIDEOPROTO="videoproto"
26249COMPOSITEPROTO="compositeproto >= 0.4"
26250RECORDPROTO="recordproto >= 1.13.99.1"
26251SCRNSAVERPROTO="scrnsaverproto >= 1.1"
26252RESOURCEPROTO="resourceproto >= 1.2.0"
26253DRIPROTO="xf86driproto >= 2.1.0"
26254DRI2PROTO="dri2proto >= 2.8"
26255DRI3PROTO="dri3proto >= 1.2"
26256XINERAMAPROTO="xineramaproto"
26257BIGFONTPROTO="xf86bigfontproto >= 1.2.0"
26258DGAPROTO="xf86dgaproto >= 2.0.99.1"
26259GLPROTO="glproto >= 1.4.17"
26260VIDMODEPROTO="xf86vidmodeproto >= 2.2.99.1"
26261APPLEWMPROTO="applewmproto >= 1.4"
26262LIBXSHMFENCE="xshmfence >= 1.1"
26263
26264XPROTO="xproto >= 7.0.31"
26265RANDRPROTO="randrproto >= 1.6.0"
26266RENDERPROTO="renderproto >= 0.11"
26267XEXTPROTO="xextproto >= 7.2.99.901"
26268INPUTPROTO="inputproto >= 2.3.99.1"
26269KBPROTO="kbproto >= 1.0.3"
26270FONTSPROTO="fontsproto >= 2.1.3"
26271FIXESPROTO="fixesproto >= 6.0"
26272DAMAGEPROTO="damageproto >= 1.1"
26273XCMISCPROTO="xcmiscproto >= 1.2.0"
26274BIGREQSPROTO="bigreqsproto >= 1.1.0"
26275XTRANS="xtrans >= 1.3.5"
26276PRESENTPROTO="presentproto >= 1.2"
26277
26278LIBAPPLEWM="applewm >= 1.4"
26279LIBDRI="dri >= 7.8.0"
26280LIBDRM="libdrm >= 2.4.89"
26281LIBEGL="egl"
26282LIBGBM="gbm >= 10.2.0"
26283LIBGL="gl >= 1.2"
26284LIBXEXT="xext >= 1.0.99.4"
26285LIBXFONT="xfont2 >= 2.0.0"
26286LIBXI="xi >= 1.2.99.1"
26287LIBXTST="xtst >= 1.0.99.2"
26288LIBPCIACCESS="pciaccess >= 0.12.901"
26289LIBUDEV="libudev >= 143"
26290LIBSELINUX="libselinux >= 2.0.86"
26291LIBDBUS="dbus-1 >= 1.0"
26292LIBPIXMAN="pixman-1 >= 0.27.2"
26293LIBXCVT="libxcvt"
26294
26295
26296pkg_failed=no
26297{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PIXMAN" >&5
26298printf %s "checking for PIXMAN... " >&6; }
26299
26300if test -n "$PIXMAN_CFLAGS"; then
26301    pkg_cv_PIXMAN_CFLAGS="$PIXMAN_CFLAGS"
26302 elif test -n "$PKG_CONFIG"; then
26303    if test -n "$PKG_CONFIG" && \
26304    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBPIXMAN\""; } >&5
26305  ($PKG_CONFIG --exists --print-errors "$LIBPIXMAN") 2>&5
26306  ac_status=$?
26307  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26308  test $ac_status = 0; }; then
26309  pkg_cv_PIXMAN_CFLAGS=`$PKG_CONFIG --cflags "$LIBPIXMAN" 2>/dev/null`
26310		      test "x$?" != "x0" && pkg_failed=yes
26311else
26312  pkg_failed=yes
26313fi
26314 else
26315    pkg_failed=untried
26316fi
26317if test -n "$PIXMAN_LIBS"; then
26318    pkg_cv_PIXMAN_LIBS="$PIXMAN_LIBS"
26319 elif test -n "$PKG_CONFIG"; then
26320    if test -n "$PKG_CONFIG" && \
26321    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBPIXMAN\""; } >&5
26322  ($PKG_CONFIG --exists --print-errors "$LIBPIXMAN") 2>&5
26323  ac_status=$?
26324  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26325  test $ac_status = 0; }; then
26326  pkg_cv_PIXMAN_LIBS=`$PKG_CONFIG --libs "$LIBPIXMAN" 2>/dev/null`
26327		      test "x$?" != "x0" && pkg_failed=yes
26328else
26329  pkg_failed=yes
26330fi
26331 else
26332    pkg_failed=untried
26333fi
26334
26335
26336
26337if test $pkg_failed = yes; then
26338   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26339printf "%s\n" "no" >&6; }
26340
26341if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26342        _pkg_short_errors_supported=yes
26343else
26344        _pkg_short_errors_supported=no
26345fi
26346        if test $_pkg_short_errors_supported = yes; then
26347	        PIXMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBPIXMAN" 2>&1`
26348        else
26349	        PIXMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBPIXMAN" 2>&1`
26350        fi
26351	# Put the nasty error message in config.log where it belongs
26352	echo "$PIXMAN_PKG_ERRORS" >&5
26353
26354	as_fn_error $? "Package requirements ($LIBPIXMAN) were not met:
26355
26356$PIXMAN_PKG_ERRORS
26357
26358Consider adjusting the PKG_CONFIG_PATH environment variable if you
26359installed software in a non-standard prefix.
26360
26361Alternatively, you may set the environment variables PIXMAN_CFLAGS
26362and PIXMAN_LIBS to avoid the need to call pkg-config.
26363See the pkg-config man page for more details." "$LINENO" 5
26364elif test $pkg_failed = untried; then
26365     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26366printf "%s\n" "no" >&6; }
26367	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26368printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
26369as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
26370is in your PATH or set the PKG_CONFIG environment variable to the full
26371path to pkg-config.
26372
26373Alternatively, you may set the environment variables PIXMAN_CFLAGS
26374and PIXMAN_LIBS to avoid the need to call pkg-config.
26375See the pkg-config man page for more details.
26376
26377To get pkg-config, see <http://pkg-config.freedesktop.org/>.
26378See \`config.log' for more details" "$LINENO" 5; }
26379else
26380	PIXMAN_CFLAGS=$pkg_cv_PIXMAN_CFLAGS
26381	PIXMAN_LIBS=$pkg_cv_PIXMAN_LIBS
26382        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26383printf "%s\n" "yes" >&6; }
26384
26385fi
26386REQUIRED_LIBS="$REQUIRED_LIBS $LIBPIXMAN $LIBXFONT xau"
26387
26388SDK_REQUIRED_MODULES="$XPROTO $RANDRPROTO $RENDERPROTO $XEXTPROTO $INPUTPROTO $KBPROTO $FONTSPROTO $LIBPIXMAN $LIBXCVT"
26389# Make SDK_REQUIRED_MODULES available for inclusion in xorg-server.pc
26390
26391
26392ac_fn_check_decl "$LINENO" "PTHREAD_MUTEX_RECURSIVE" "ac_cv_have_decl_PTHREAD_MUTEX_RECURSIVE" "#include <pthread.h>
26393" "$ac_c_undeclared_builtin_options" "CFLAGS"
26394if test "x$ac_cv_have_decl_PTHREAD_MUTEX_RECURSIVE" = xyes
26395then :
26396  HAVE_RECURSIVE_MUTEX=yes
26397else $as_nop
26398  HAVE_RECURSIVE_MUTEX=no
26399fi
26400
26401THREAD_DEFAULT=no
26402
26403if test "x$HAVE_RECURSIVE_MUTEX" = "xyes" ; then
26404	THREAD_DEFAULT=yes
26405fi
26406
26407case $host_os in
26408	mingw*) THREAD_DEFAULT=no  ;;
26409	*)
26410esac
26411
26412# Check whether --enable-input-thread was given.
26413if test ${enable_input_thread+y}
26414then :
26415  enableval=$enable_input_thread; INPUTTHREAD=$enableval
26416else $as_nop
26417  INPUTTHREAD=$THREAD_DEFAULT
26418fi
26419
26420
26421if test "x$INPUTTHREAD" = "xyes" ; then
26422
26423
26424ac_ext=c
26425ac_cpp='$CPP $CPPFLAGS'
26426ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26427ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26428ac_compiler_gnu=$ac_cv_c_compiler_gnu
26429
26430ax_pthread_ok=no
26431
26432# We used to check for pthread.h first, but this fails if pthread.h
26433# requires special compiler flags (e.g. on True64 or Sequent).
26434# It gets checked for in the link test anyway.
26435
26436# First of all, check if the user has set any of the PTHREAD_LIBS,
26437# etcetera environment variables, and if threads linking works using
26438# them:
26439if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
26440        save_CFLAGS="$CFLAGS"
26441        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
26442        save_LIBS="$LIBS"
26443        LIBS="$PTHREAD_LIBS $LIBS"
26444        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
26445printf %s "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
26446        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26447/* end confdefs.h.  */
26448
26449/* Override any GCC internal prototype to avoid an error.
26450   Use char because int might match the return type of a GCC
26451   builtin and then its argument prototype would still apply.  */
26452char pthread_join ();
26453int
26454main (void)
26455{
26456return pthread_join ();
26457  ;
26458  return 0;
26459}
26460_ACEOF
26461if ac_fn_c_try_link "$LINENO"
26462then :
26463  ax_pthread_ok=yes
26464fi
26465rm -f core conftest.err conftest.$ac_objext conftest.beam \
26466    conftest$ac_exeext conftest.$ac_ext
26467        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
26468printf "%s\n" "$ax_pthread_ok" >&6; }
26469        if test x"$ax_pthread_ok" = xno; then
26470                PTHREAD_LIBS=""
26471                PTHREAD_CFLAGS=""
26472        fi
26473        LIBS="$save_LIBS"
26474        CFLAGS="$save_CFLAGS"
26475fi
26476
26477# We must check for the threads library under a number of different
26478# names; the ordering is very important because some systems
26479# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
26480# libraries is broken (non-POSIX).
26481
26482# Create a list of thread flags to try.  Items starting with a "-" are
26483# C compiler flags, and other items are library names, except for "none"
26484# which indicates that we try without any flags at all, and "pthread-config"
26485# which is a program returning the flags for the Pth emulation library.
26486
26487ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
26488
26489# The ordering *is* (sometimes) important.  Some notes on the
26490# individual items follow:
26491
26492# pthreads: AIX (must check this before -lpthread)
26493# none: in case threads are in libc; should be tried before -Kthread and
26494#       other compiler flags to prevent continual compiler warnings
26495# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
26496# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
26497# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
26498# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
26499# -pthreads: Solaris/gcc
26500# -mthreads: Mingw32/gcc, Lynx/gcc
26501# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
26502#      doesn't hurt to check since this sometimes defines pthreads too;
26503#      also defines -D_REENTRANT)
26504#      ... -mt is also the pthreads flag for HP/aCC
26505# pthread: Linux, etcetera
26506# --thread-safe: KAI C++
26507# pthread-config: use pthread-config program (for GNU Pth library)
26508
26509case ${host_os} in
26510        solaris*)
26511
26512        # On Solaris (at least, for some versions), libc contains stubbed
26513        # (non-functional) versions of the pthreads routines, so link-based
26514        # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
26515        # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
26516        # a function called by this macro, so we could check for that, but
26517        # who knows whether they'll stub that too in a future libc.)  So,
26518        # we'll just look for -pthreads and -lpthread first:
26519
26520        ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
26521        ;;
26522
26523        darwin*)
26524        ax_pthread_flags="-pthread $ax_pthread_flags"
26525        ;;
26526	netbsd*)
26527	# use libc stubs, don't link against libpthread, to allow
26528	# dynamic loading
26529	ax_pthread_flags=""
26530	;;
26531esac
26532
26533# Clang doesn't consider unrecognized options an error unless we specify
26534# -Werror. We throw in some extra Clang-specific options to ensure that
26535# this doesn't happen for GCC, which also accepts -Werror.
26536
26537{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5
26538printf %s "checking if compiler needs -Werror to reject unknown flags... " >&6; }
26539save_CFLAGS="$CFLAGS"
26540ax_pthread_extra_flags="-Werror"
26541CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument"
26542cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26543/* end confdefs.h.  */
26544int foo(void);
26545int
26546main (void)
26547{
26548foo()
26549  ;
26550  return 0;
26551}
26552_ACEOF
26553if ac_fn_c_try_compile "$LINENO"
26554then :
26555  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26556printf "%s\n" "yes" >&6; }
26557else $as_nop
26558  ax_pthread_extra_flags=
26559                   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26560printf "%s\n" "no" >&6; }
26561fi
26562rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26563CFLAGS="$save_CFLAGS"
26564
26565if test x"$ax_pthread_ok" = xno; then
26566for flag in $ax_pthread_flags; do
26567
26568        case $flag in
26569                none)
26570                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
26571printf %s "checking whether pthreads work without any flags... " >&6; }
26572                ;;
26573
26574                -*)
26575                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
26576printf %s "checking whether pthreads work with $flag... " >&6; }
26577                PTHREAD_CFLAGS="$flag"
26578                ;;
26579
26580                pthread-config)
26581                # Extract the first word of "pthread-config", so it can be a program name with args.
26582set dummy pthread-config; ac_word=$2
26583{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26584printf %s "checking for $ac_word... " >&6; }
26585if test ${ac_cv_prog_ax_pthread_config+y}
26586then :
26587  printf %s "(cached) " >&6
26588else $as_nop
26589  if test -n "$ax_pthread_config"; then
26590  ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
26591else
26592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26593for as_dir in $PATH
26594do
26595  IFS=$as_save_IFS
26596  case $as_dir in #(((
26597    '') as_dir=./ ;;
26598    */) ;;
26599    *) as_dir=$as_dir/ ;;
26600  esac
26601    for ac_exec_ext in '' $ac_executable_extensions; do
26602  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
26603    ac_cv_prog_ax_pthread_config="yes"
26604    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
26605    break 2
26606  fi
26607done
26608  done
26609IFS=$as_save_IFS
26610
26611  test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
26612fi
26613fi
26614ax_pthread_config=$ac_cv_prog_ax_pthread_config
26615if test -n "$ax_pthread_config"; then
26616  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
26617printf "%s\n" "$ax_pthread_config" >&6; }
26618else
26619  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26620printf "%s\n" "no" >&6; }
26621fi
26622
26623
26624                if test x"$ax_pthread_config" = xno; then continue; fi
26625                PTHREAD_CFLAGS="`pthread-config --cflags`"
26626                PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
26627                ;;
26628
26629                *)
26630                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
26631printf %s "checking for the pthreads library -l$flag... " >&6; }
26632                PTHREAD_LIBS="-l$flag"
26633                ;;
26634        esac
26635
26636        save_LIBS="$LIBS"
26637        save_CFLAGS="$CFLAGS"
26638        LIBS="$PTHREAD_LIBS $LIBS"
26639        CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
26640
26641        # Check for various functions.  We must include pthread.h,
26642        # since some functions may be macros.  (On the Sequent, we
26643        # need a special flag -Kthread to make this header compile.)
26644        # We check for pthread_join because it is in -lpthread on IRIX
26645        # while pthread_create is in libc.  We check for pthread_attr_init
26646        # due to DEC craziness with -lpthreads.  We check for
26647        # pthread_cleanup_push because it is one of the few pthread
26648        # functions on Solaris that doesn't have a non-functional libc stub.
26649        # We try pthread_create on general principles.
26650        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26651/* end confdefs.h.  */
26652#include <pthread.h>
26653                        static void routine(void *a) { a = 0; }
26654                        static void *start_routine(void *a) { return a; }
26655int
26656main (void)
26657{
26658pthread_t th; pthread_attr_t attr;
26659                        pthread_create(&th, 0, start_routine, 0);
26660                        pthread_join(th, 0);
26661                        pthread_attr_init(&attr);
26662                        pthread_cleanup_push(routine, 0);
26663                        pthread_cleanup_pop(0) /* ; */
26664  ;
26665  return 0;
26666}
26667_ACEOF
26668if ac_fn_c_try_link "$LINENO"
26669then :
26670  ax_pthread_ok=yes
26671fi
26672rm -f core conftest.err conftest.$ac_objext conftest.beam \
26673    conftest$ac_exeext conftest.$ac_ext
26674
26675        LIBS="$save_LIBS"
26676        CFLAGS="$save_CFLAGS"
26677
26678        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
26679printf "%s\n" "$ax_pthread_ok" >&6; }
26680        if test "x$ax_pthread_ok" = xyes; then
26681                break;
26682        fi
26683
26684        PTHREAD_LIBS=""
26685        PTHREAD_CFLAGS=""
26686done
26687fi
26688
26689# Various other checks:
26690if test "x$ax_pthread_ok" = xyes; then
26691        save_LIBS="$LIBS"
26692        LIBS="$PTHREAD_LIBS $LIBS"
26693        save_CFLAGS="$CFLAGS"
26694        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
26695
26696        # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
26697        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
26698printf %s "checking for joinable pthread attribute... " >&6; }
26699        attr_name=unknown
26700        for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
26701            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26702/* end confdefs.h.  */
26703#include <pthread.h>
26704int
26705main (void)
26706{
26707int attr = $attr; return attr /* ; */
26708  ;
26709  return 0;
26710}
26711_ACEOF
26712if ac_fn_c_try_link "$LINENO"
26713then :
26714  attr_name=$attr; break
26715fi
26716rm -f core conftest.err conftest.$ac_objext conftest.beam \
26717    conftest$ac_exeext conftest.$ac_ext
26718        done
26719        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
26720printf "%s\n" "$attr_name" >&6; }
26721        if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
26722
26723printf "%s\n" "#define PTHREAD_CREATE_JOINABLE $attr_name" >>confdefs.h
26724
26725        fi
26726
26727        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
26728printf %s "checking if more special flags are required for pthreads... " >&6; }
26729        flag=no
26730        case ${host_os} in
26731            aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
26732            osf* | hpux*) flag="-D_REENTRANT";;
26733            solaris*)
26734            if test "$GCC" = "yes"; then
26735                flag="-D_REENTRANT"
26736            else
26737                # TODO: What about Clang on Solaris?
26738                flag="-mt -D_REENTRANT"
26739            fi
26740            ;;
26741        esac
26742        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $flag" >&5
26743printf "%s\n" "$flag" >&6; }
26744        if test "x$flag" != xno; then
26745            PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
26746        fi
26747
26748        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
26749printf %s "checking for PTHREAD_PRIO_INHERIT... " >&6; }
26750if test ${ax_cv_PTHREAD_PRIO_INHERIT+y}
26751then :
26752  printf %s "(cached) " >&6
26753else $as_nop
26754
26755                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26756/* end confdefs.h.  */
26757#include <pthread.h>
26758int
26759main (void)
26760{
26761int i = PTHREAD_PRIO_INHERIT;
26762  ;
26763  return 0;
26764}
26765_ACEOF
26766if ac_fn_c_try_link "$LINENO"
26767then :
26768  ax_cv_PTHREAD_PRIO_INHERIT=yes
26769else $as_nop
26770  ax_cv_PTHREAD_PRIO_INHERIT=no
26771fi
26772rm -f core conftest.err conftest.$ac_objext conftest.beam \
26773    conftest$ac_exeext conftest.$ac_ext
26774
26775fi
26776{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
26777printf "%s\n" "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
26778        if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"
26779then :
26780
26781printf "%s\n" "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
26782
26783fi
26784
26785        LIBS="$save_LIBS"
26786        CFLAGS="$save_CFLAGS"
26787
26788        # More AIX lossage: compile with *_r variant
26789        if test "x$GCC" != xyes; then
26790            case $host_os in
26791                aix*)
26792                case "x/$CC" in #(
26793  x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
26794    #handle absolute path differently from PATH based program lookup
26795                   case "x$CC" in #(
26796  x/*) :
26797    if as_fn_executable_p ${CC}_r
26798then :
26799  PTHREAD_CC="${CC}_r"
26800fi ;; #(
26801  *) :
26802    for ac_prog in ${CC}_r
26803do
26804  # Extract the first word of "$ac_prog", so it can be a program name with args.
26805set dummy $ac_prog; ac_word=$2
26806{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26807printf %s "checking for $ac_word... " >&6; }
26808if test ${ac_cv_prog_PTHREAD_CC+y}
26809then :
26810  printf %s "(cached) " >&6
26811else $as_nop
26812  if test -n "$PTHREAD_CC"; then
26813  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
26814else
26815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26816for as_dir in $PATH
26817do
26818  IFS=$as_save_IFS
26819  case $as_dir in #(((
26820    '') as_dir=./ ;;
26821    */) ;;
26822    *) as_dir=$as_dir/ ;;
26823  esac
26824    for ac_exec_ext in '' $ac_executable_extensions; do
26825  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
26826    ac_cv_prog_PTHREAD_CC="$ac_prog"
26827    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
26828    break 2
26829  fi
26830done
26831  done
26832IFS=$as_save_IFS
26833
26834fi
26835fi
26836PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
26837if test -n "$PTHREAD_CC"; then
26838  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
26839printf "%s\n" "$PTHREAD_CC" >&6; }
26840else
26841  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26842printf "%s\n" "no" >&6; }
26843fi
26844
26845
26846  test -n "$PTHREAD_CC" && break
26847done
26848test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
26849 ;;
26850esac ;; #(
26851  *) :
26852     ;;
26853esac
26854                ;;
26855            esac
26856        fi
26857fi
26858
26859test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
26860
26861
26862
26863
26864
26865# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
26866if test x"$ax_pthread_ok" = xyes; then
26867
26868printf "%s\n" "#define HAVE_PTHREAD 1" >>confdefs.h
26869
26870        :
26871else
26872        ax_pthread_ok=no
26873        as_fn_error $? "threaded input requested but no pthread support has been found" "$LINENO" 5
26874fi
26875ac_ext=c
26876ac_cpp='$CPP $CPPFLAGS'
26877ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26878ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26879ac_compiler_gnu=$ac_cv_c_compiler_gnu
26880
26881
26882    SYS_LIBS="$SYS_LIBS $PTHREAD_LIBS"
26883    CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
26884
26885printf "%s\n" "#define INPUTTHREAD 1" >>confdefs.h
26886
26887
26888    save_LIBS="$LIBS"
26889    LIBS="$LIBS $SYS_LIBS"
26890        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np(const char*)" >&5
26891printf %s "checking for pthread_setname_np(const char*)... " >&6; }
26892    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26893/* end confdefs.h.  */
26894#include <pthread.h>
26895int
26896main (void)
26897{
26898pthread_setname_np("example")
26899  ;
26900  return 0;
26901}
26902_ACEOF
26903if ac_fn_c_try_link "$LINENO"
26904then :
26905  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26906printf "%s\n" "yes" >&6; }
26907
26908printf "%s\n" "#define HAVE_PTHREAD_SETNAME_NP_WITHOUT_TID 1" >>confdefs.h
26909
26910else $as_nop
26911  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26912printf "%s\n" "no" >&6; }
26913fi
26914rm -f core conftest.err conftest.$ac_objext conftest.beam \
26915    conftest$ac_exeext conftest.$ac_ext
26916        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np(pthread_t, const char*)" >&5
26917printf %s "checking for pthread_setname_np(pthread_t, const char*)... " >&6; }
26918    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26919/* end confdefs.h.  */
26920#include <pthread.h>
26921int
26922main (void)
26923{
26924pthread_setname_np(pthread_self(), "example")
26925  ;
26926  return 0;
26927}
26928_ACEOF
26929if ac_fn_c_try_link "$LINENO"
26930then :
26931  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26932printf "%s\n" "yes" >&6; }
26933
26934printf "%s\n" "#define HAVE_PTHREAD_SETNAME_NP_WITH_TID 1" >>confdefs.h
26935
26936else $as_nop
26937  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26938printf "%s\n" "no" >&6; }
26939fi
26940rm -f core conftest.err conftest.$ac_objext conftest.beam \
26941    conftest$ac_exeext conftest.$ac_ext
26942    LIBS="$save_LIBS"
26943fi
26944
26945REQUIRED_MODULES="$FIXESPROTO $DAMAGEPROTO $XCMISCPROTO $XTRANS $BIGREQSPROTO $SDK_REQUIRED_MODULES"
26946
26947LIBSYSTEMD="libsystemd >= 209"
26948
26949# Check whether --with-systemd-daemon was given.
26950if test ${with_systemd_daemon+y}
26951then :
26952  withval=$with_systemd_daemon; WITH_SYSTEMD_DAEMON=$withval
26953else $as_nop
26954  WITH_SYSTEMD_DAEMON=auto
26955fi
26956
26957if test "x$WITH_SYSTEMD_DAEMON" = "xyes" -o "x$WITH_SYSTEMD_DAEMON" = "xauto" ; then
26958
26959pkg_failed=no
26960{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD_DAEMON" >&5
26961printf %s "checking for SYSTEMD_DAEMON... " >&6; }
26962
26963if test -n "$SYSTEMD_DAEMON_CFLAGS"; then
26964    pkg_cv_SYSTEMD_DAEMON_CFLAGS="$SYSTEMD_DAEMON_CFLAGS"
26965 elif test -n "$PKG_CONFIG"; then
26966    if test -n "$PKG_CONFIG" && \
26967    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBSYSTEMD\""; } >&5
26968  ($PKG_CONFIG --exists --print-errors "$LIBSYSTEMD") 2>&5
26969  ac_status=$?
26970  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26971  test $ac_status = 0; }; then
26972  pkg_cv_SYSTEMD_DAEMON_CFLAGS=`$PKG_CONFIG --cflags "$LIBSYSTEMD" 2>/dev/null`
26973		      test "x$?" != "x0" && pkg_failed=yes
26974else
26975  pkg_failed=yes
26976fi
26977 else
26978    pkg_failed=untried
26979fi
26980if test -n "$SYSTEMD_DAEMON_LIBS"; then
26981    pkg_cv_SYSTEMD_DAEMON_LIBS="$SYSTEMD_DAEMON_LIBS"
26982 elif test -n "$PKG_CONFIG"; then
26983    if test -n "$PKG_CONFIG" && \
26984    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBSYSTEMD\""; } >&5
26985  ($PKG_CONFIG --exists --print-errors "$LIBSYSTEMD") 2>&5
26986  ac_status=$?
26987  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26988  test $ac_status = 0; }; then
26989  pkg_cv_SYSTEMD_DAEMON_LIBS=`$PKG_CONFIG --libs "$LIBSYSTEMD" 2>/dev/null`
26990		      test "x$?" != "x0" && pkg_failed=yes
26991else
26992  pkg_failed=yes
26993fi
26994 else
26995    pkg_failed=untried
26996fi
26997
26998
26999
27000if test $pkg_failed = yes; then
27001   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27002printf "%s\n" "no" >&6; }
27003
27004if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27005        _pkg_short_errors_supported=yes
27006else
27007        _pkg_short_errors_supported=no
27008fi
27009        if test $_pkg_short_errors_supported = yes; then
27010	        SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBSYSTEMD" 2>&1`
27011        else
27012	        SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBSYSTEMD" 2>&1`
27013        fi
27014	# Put the nasty error message in config.log where it belongs
27015	echo "$SYSTEMD_DAEMON_PKG_ERRORS" >&5
27016
27017
27018pkg_failed=no
27019{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD_DAEMON" >&5
27020printf %s "checking for SYSTEMD_DAEMON... " >&6; }
27021
27022if test -n "$SYSTEMD_DAEMON_CFLAGS"; then
27023    pkg_cv_SYSTEMD_DAEMON_CFLAGS="$SYSTEMD_DAEMON_CFLAGS"
27024 elif test -n "$PKG_CONFIG"; then
27025    if test -n "$PKG_CONFIG" && \
27026    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
27027  ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
27028  ac_status=$?
27029  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27030  test $ac_status = 0; }; then
27031  pkg_cv_SYSTEMD_DAEMON_CFLAGS=`$PKG_CONFIG --cflags "libsystemd-daemon" 2>/dev/null`
27032		      test "x$?" != "x0" && pkg_failed=yes
27033else
27034  pkg_failed=yes
27035fi
27036 else
27037    pkg_failed=untried
27038fi
27039if test -n "$SYSTEMD_DAEMON_LIBS"; then
27040    pkg_cv_SYSTEMD_DAEMON_LIBS="$SYSTEMD_DAEMON_LIBS"
27041 elif test -n "$PKG_CONFIG"; then
27042    if test -n "$PKG_CONFIG" && \
27043    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
27044  ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
27045  ac_status=$?
27046  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27047  test $ac_status = 0; }; then
27048  pkg_cv_SYSTEMD_DAEMON_LIBS=`$PKG_CONFIG --libs "libsystemd-daemon" 2>/dev/null`
27049		      test "x$?" != "x0" && pkg_failed=yes
27050else
27051  pkg_failed=yes
27052fi
27053 else
27054    pkg_failed=untried
27055fi
27056
27057
27058
27059if test $pkg_failed = yes; then
27060   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27061printf "%s\n" "no" >&6; }
27062
27063if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27064        _pkg_short_errors_supported=yes
27065else
27066        _pkg_short_errors_supported=no
27067fi
27068        if test $_pkg_short_errors_supported = yes; then
27069	        SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-daemon" 2>&1`
27070        else
27071	        SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-daemon" 2>&1`
27072        fi
27073	# Put the nasty error message in config.log where it belongs
27074	echo "$SYSTEMD_DAEMON_PKG_ERRORS" >&5
27075
27076	HAVE_SYSTEMD_DAEMON=no
27077elif test $pkg_failed = untried; then
27078     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27079printf "%s\n" "no" >&6; }
27080	HAVE_SYSTEMD_DAEMON=no
27081else
27082	SYSTEMD_DAEMON_CFLAGS=$pkg_cv_SYSTEMD_DAEMON_CFLAGS
27083	SYSTEMD_DAEMON_LIBS=$pkg_cv_SYSTEMD_DAEMON_LIBS
27084        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27085printf "%s\n" "yes" >&6; }
27086	HAVE_SYSTEMD_DAEMON=yes;
27087					      LIBSYSTEMD_DAEMON=libsystemd-daemon
27088fi
27089elif test $pkg_failed = untried; then
27090     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27091printf "%s\n" "no" >&6; }
27092
27093pkg_failed=no
27094{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD_DAEMON" >&5
27095printf %s "checking for SYSTEMD_DAEMON... " >&6; }
27096
27097if test -n "$SYSTEMD_DAEMON_CFLAGS"; then
27098    pkg_cv_SYSTEMD_DAEMON_CFLAGS="$SYSTEMD_DAEMON_CFLAGS"
27099 elif test -n "$PKG_CONFIG"; then
27100    if test -n "$PKG_CONFIG" && \
27101    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
27102  ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
27103  ac_status=$?
27104  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27105  test $ac_status = 0; }; then
27106  pkg_cv_SYSTEMD_DAEMON_CFLAGS=`$PKG_CONFIG --cflags "libsystemd-daemon" 2>/dev/null`
27107		      test "x$?" != "x0" && pkg_failed=yes
27108else
27109  pkg_failed=yes
27110fi
27111 else
27112    pkg_failed=untried
27113fi
27114if test -n "$SYSTEMD_DAEMON_LIBS"; then
27115    pkg_cv_SYSTEMD_DAEMON_LIBS="$SYSTEMD_DAEMON_LIBS"
27116 elif test -n "$PKG_CONFIG"; then
27117    if test -n "$PKG_CONFIG" && \
27118    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
27119  ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
27120  ac_status=$?
27121  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27122  test $ac_status = 0; }; then
27123  pkg_cv_SYSTEMD_DAEMON_LIBS=`$PKG_CONFIG --libs "libsystemd-daemon" 2>/dev/null`
27124		      test "x$?" != "x0" && pkg_failed=yes
27125else
27126  pkg_failed=yes
27127fi
27128 else
27129    pkg_failed=untried
27130fi
27131
27132
27133
27134if test $pkg_failed = yes; then
27135   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27136printf "%s\n" "no" >&6; }
27137
27138if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27139        _pkg_short_errors_supported=yes
27140else
27141        _pkg_short_errors_supported=no
27142fi
27143        if test $_pkg_short_errors_supported = yes; then
27144	        SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-daemon" 2>&1`
27145        else
27146	        SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-daemon" 2>&1`
27147        fi
27148	# Put the nasty error message in config.log where it belongs
27149	echo "$SYSTEMD_DAEMON_PKG_ERRORS" >&5
27150
27151	HAVE_SYSTEMD_DAEMON=no
27152elif test $pkg_failed = untried; then
27153     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27154printf "%s\n" "no" >&6; }
27155	HAVE_SYSTEMD_DAEMON=no
27156else
27157	SYSTEMD_DAEMON_CFLAGS=$pkg_cv_SYSTEMD_DAEMON_CFLAGS
27158	SYSTEMD_DAEMON_LIBS=$pkg_cv_SYSTEMD_DAEMON_LIBS
27159        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27160printf "%s\n" "yes" >&6; }
27161	HAVE_SYSTEMD_DAEMON=yes;
27162					      LIBSYSTEMD_DAEMON=libsystemd-daemon
27163fi
27164else
27165	SYSTEMD_DAEMON_CFLAGS=$pkg_cv_SYSTEMD_DAEMON_CFLAGS
27166	SYSTEMD_DAEMON_LIBS=$pkg_cv_SYSTEMD_DAEMON_LIBS
27167        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27168printf "%s\n" "yes" >&6; }
27169	HAVE_SYSTEMD_DAEMON=yes;
27170			   LIBSYSTEMD_DAEMON="$LIBSYSTEMD"
27171fi
27172	if test "x$HAVE_SYSTEMD_DAEMON" = xyes; then
27173
27174printf "%s\n" "#define HAVE_SYSTEMD_DAEMON 1" >>confdefs.h
27175
27176		REQUIRED_LIBS="$REQUIRED_LIBS $LIBSYSTEMD_DAEMON"
27177	elif test "x$WITH_SYSTEMD_DAEMON" = xyes; then
27178		as_fn_error $? "systemd support requested but no library has been found" "$LINENO" 5
27179	fi
27180fi
27181 if test "x$HAVE_SYSTEMD_DAEMON" = "xyes"; then
27182  HAVE_SYSTEMD_DAEMON_TRUE=
27183  HAVE_SYSTEMD_DAEMON_FALSE='#'
27184else
27185  HAVE_SYSTEMD_DAEMON_TRUE='#'
27186  HAVE_SYSTEMD_DAEMON_FALSE=
27187fi
27188
27189
27190if test "x$CONFIG_UDEV" = xyes && test "x$CONFIG_HAL" = xyes; then
27191	as_fn_error $? "Hotplugging through both libudev and hal not allowed" "$LINENO" 5
27192fi
27193
27194
27195pkg_failed=no
27196{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for UDEV" >&5
27197printf %s "checking for UDEV... " >&6; }
27198
27199if test -n "$UDEV_CFLAGS"; then
27200    pkg_cv_UDEV_CFLAGS="$UDEV_CFLAGS"
27201 elif test -n "$PKG_CONFIG"; then
27202    if test -n "$PKG_CONFIG" && \
27203    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBUDEV\""; } >&5
27204  ($PKG_CONFIG --exists --print-errors "$LIBUDEV") 2>&5
27205  ac_status=$?
27206  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27207  test $ac_status = 0; }; then
27208  pkg_cv_UDEV_CFLAGS=`$PKG_CONFIG --cflags "$LIBUDEV" 2>/dev/null`
27209		      test "x$?" != "x0" && pkg_failed=yes
27210else
27211  pkg_failed=yes
27212fi
27213 else
27214    pkg_failed=untried
27215fi
27216if test -n "$UDEV_LIBS"; then
27217    pkg_cv_UDEV_LIBS="$UDEV_LIBS"
27218 elif test -n "$PKG_CONFIG"; then
27219    if test -n "$PKG_CONFIG" && \
27220    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBUDEV\""; } >&5
27221  ($PKG_CONFIG --exists --print-errors "$LIBUDEV") 2>&5
27222  ac_status=$?
27223  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27224  test $ac_status = 0; }; then
27225  pkg_cv_UDEV_LIBS=`$PKG_CONFIG --libs "$LIBUDEV" 2>/dev/null`
27226		      test "x$?" != "x0" && pkg_failed=yes
27227else
27228  pkg_failed=yes
27229fi
27230 else
27231    pkg_failed=untried
27232fi
27233
27234
27235
27236if test $pkg_failed = yes; then
27237   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27238printf "%s\n" "no" >&6; }
27239
27240if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27241        _pkg_short_errors_supported=yes
27242else
27243        _pkg_short_errors_supported=no
27244fi
27245        if test $_pkg_short_errors_supported = yes; then
27246	        UDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBUDEV" 2>&1`
27247        else
27248	        UDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBUDEV" 2>&1`
27249        fi
27250	# Put the nasty error message in config.log where it belongs
27251	echo "$UDEV_PKG_ERRORS" >&5
27252
27253	HAVE_LIBUDEV=no
27254elif test $pkg_failed = untried; then
27255     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27256printf "%s\n" "no" >&6; }
27257	HAVE_LIBUDEV=no
27258else
27259	UDEV_CFLAGS=$pkg_cv_UDEV_CFLAGS
27260	UDEV_LIBS=$pkg_cv_UDEV_LIBS
27261        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27262printf "%s\n" "yes" >&6; }
27263	HAVE_LIBUDEV=yes
27264fi
27265if test "x$CONFIG_UDEV" = xauto; then
27266	CONFIG_UDEV="$HAVE_LIBUDEV"
27267fi
27268 if test "x$CONFIG_UDEV" = xyes; then
27269  CONFIG_UDEV_TRUE=
27270  CONFIG_UDEV_FALSE='#'
27271else
27272  CONFIG_UDEV_TRUE='#'
27273  CONFIG_UDEV_FALSE=
27274fi
27275
27276if test "x$CONFIG_UDEV" = xyes; then
27277	CONFIG_HAL=no
27278	if test "x$CONFIG_UDEV_KMS" = xauto; then
27279		CONFIG_UDEV_KMS="$HAVE_LIBUDEV"
27280	fi
27281	if ! test "x$HAVE_LIBUDEV" = xyes; then
27282		as_fn_error $? "udev configuration API requested, but libudev is not installed" "$LINENO" 5
27283	fi
27284
27285printf "%s\n" "#define CONFIG_UDEV 1" >>confdefs.h
27286
27287	if test "x$CONFIG_UDEV_KMS" = xyes; then
27288
27289printf "%s\n" "#define CONFIG_UDEV_KMS 1" >>confdefs.h
27290
27291	fi
27292	SAVE_LIBS=$LIBS
27293	SAVE_CFLAGS=$CFLAGS
27294	CFLAGS="$CFLAGS $UDEV_CFLAGS"
27295	LIBS=$UDEV_LIBS
27296	ac_fn_c_check_func "$LINENO" "udev_monitor_filter_add_match_tag" "ac_cv_func_udev_monitor_filter_add_match_tag"
27297if test "x$ac_cv_func_udev_monitor_filter_add_match_tag" = xyes
27298then :
27299  printf "%s\n" "#define HAVE_UDEV_MONITOR_FILTER_ADD_MATCH_TAG 1" >>confdefs.h
27300
27301fi
27302
27303	ac_fn_c_check_func "$LINENO" "udev_enumerate_add_match_tag" "ac_cv_func_udev_enumerate_add_match_tag"
27304if test "x$ac_cv_func_udev_enumerate_add_match_tag" = xyes
27305then :
27306  printf "%s\n" "#define HAVE_UDEV_ENUMERATE_ADD_MATCH_TAG 1" >>confdefs.h
27307
27308fi
27309
27310	LIBS=$SAVE_LIBS
27311	CFLAGS=$SAVE_CFLAGS
27312fi
27313 if test "x$CONFIG_UDEV_KMS" = xyes; then
27314  CONFIG_UDEV_KMS_TRUE=
27315  CONFIG_UDEV_KMS_FALSE='#'
27316else
27317  CONFIG_UDEV_KMS_TRUE='#'
27318  CONFIG_UDEV_KMS_FALSE=
27319fi
27320
27321
27322
27323pkg_failed=no
27324{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5
27325printf %s "checking for DBUS... " >&6; }
27326
27327if test -n "$DBUS_CFLAGS"; then
27328    pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
27329 elif test -n "$PKG_CONFIG"; then
27330    if test -n "$PKG_CONFIG" && \
27331    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDBUS\""; } >&5
27332  ($PKG_CONFIG --exists --print-errors "$LIBDBUS") 2>&5
27333  ac_status=$?
27334  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27335  test $ac_status = 0; }; then
27336  pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "$LIBDBUS" 2>/dev/null`
27337		      test "x$?" != "x0" && pkg_failed=yes
27338else
27339  pkg_failed=yes
27340fi
27341 else
27342    pkg_failed=untried
27343fi
27344if test -n "$DBUS_LIBS"; then
27345    pkg_cv_DBUS_LIBS="$DBUS_LIBS"
27346 elif test -n "$PKG_CONFIG"; then
27347    if test -n "$PKG_CONFIG" && \
27348    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDBUS\""; } >&5
27349  ($PKG_CONFIG --exists --print-errors "$LIBDBUS") 2>&5
27350  ac_status=$?
27351  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27352  test $ac_status = 0; }; then
27353  pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "$LIBDBUS" 2>/dev/null`
27354		      test "x$?" != "x0" && pkg_failed=yes
27355else
27356  pkg_failed=yes
27357fi
27358 else
27359    pkg_failed=untried
27360fi
27361
27362
27363
27364if test $pkg_failed = yes; then
27365   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27366printf "%s\n" "no" >&6; }
27367
27368if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27369        _pkg_short_errors_supported=yes
27370else
27371        _pkg_short_errors_supported=no
27372fi
27373        if test $_pkg_short_errors_supported = yes; then
27374	        DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBDBUS" 2>&1`
27375        else
27376	        DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBDBUS" 2>&1`
27377        fi
27378	# Put the nasty error message in config.log where it belongs
27379	echo "$DBUS_PKG_ERRORS" >&5
27380
27381	HAVE_DBUS=no
27382elif test $pkg_failed = untried; then
27383     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27384printf "%s\n" "no" >&6; }
27385	HAVE_DBUS=no
27386else
27387	DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
27388	DBUS_LIBS=$pkg_cv_DBUS_LIBS
27389        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27390printf "%s\n" "yes" >&6; }
27391	HAVE_DBUS=yes
27392fi
27393if test "x$HAVE_DBUS" = xyes; then
27394
27395printf "%s\n" "#define HAVE_DBUS 1" >>confdefs.h
27396
27397fi
27398 if test "x$HAVE_DBUS" = xyes; then
27399  HAVE_DBUS_TRUE=
27400  HAVE_DBUS_FALSE='#'
27401else
27402  HAVE_DBUS_TRUE='#'
27403  HAVE_DBUS_FALSE=
27404fi
27405
27406
27407
27408pkg_failed=no
27409{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for HAL" >&5
27410printf %s "checking for HAL... " >&6; }
27411
27412if test -n "$HAL_CFLAGS"; then
27413    pkg_cv_HAL_CFLAGS="$HAL_CFLAGS"
27414 elif test -n "$PKG_CONFIG"; then
27415    if test -n "$PKG_CONFIG" && \
27416    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"hal\""; } >&5
27417  ($PKG_CONFIG --exists --print-errors "hal") 2>&5
27418  ac_status=$?
27419  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27420  test $ac_status = 0; }; then
27421  pkg_cv_HAL_CFLAGS=`$PKG_CONFIG --cflags "hal" 2>/dev/null`
27422		      test "x$?" != "x0" && pkg_failed=yes
27423else
27424  pkg_failed=yes
27425fi
27426 else
27427    pkg_failed=untried
27428fi
27429if test -n "$HAL_LIBS"; then
27430    pkg_cv_HAL_LIBS="$HAL_LIBS"
27431 elif test -n "$PKG_CONFIG"; then
27432    if test -n "$PKG_CONFIG" && \
27433    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"hal\""; } >&5
27434  ($PKG_CONFIG --exists --print-errors "hal") 2>&5
27435  ac_status=$?
27436  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27437  test $ac_status = 0; }; then
27438  pkg_cv_HAL_LIBS=`$PKG_CONFIG --libs "hal" 2>/dev/null`
27439		      test "x$?" != "x0" && pkg_failed=yes
27440else
27441  pkg_failed=yes
27442fi
27443 else
27444    pkg_failed=untried
27445fi
27446
27447
27448
27449if test $pkg_failed = yes; then
27450   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27451printf "%s\n" "no" >&6; }
27452
27453if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27454        _pkg_short_errors_supported=yes
27455else
27456        _pkg_short_errors_supported=no
27457fi
27458        if test $_pkg_short_errors_supported = yes; then
27459	        HAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "hal" 2>&1`
27460        else
27461	        HAL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "hal" 2>&1`
27462        fi
27463	# Put the nasty error message in config.log where it belongs
27464	echo "$HAL_PKG_ERRORS" >&5
27465
27466	HAVE_HAL=no
27467elif test $pkg_failed = untried; then
27468     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27469printf "%s\n" "no" >&6; }
27470	HAVE_HAL=no
27471else
27472	HAL_CFLAGS=$pkg_cv_HAL_CFLAGS
27473	HAL_LIBS=$pkg_cv_HAL_LIBS
27474        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27475printf "%s\n" "yes" >&6; }
27476	HAVE_HAL=yes
27477fi
27478if test "x$CONFIG_HAL" = xauto; then
27479	CONFIG_HAL="$HAVE_HAL"
27480fi
27481if test "x$CONFIG_HAL" = xyes; then
27482	if ! test "x$HAVE_HAL" = xyes; then
27483		as_fn_error $? "HAL hotplug API requested, but HAL is not installed." "$LINENO" 5
27484	fi
27485
27486
27487printf "%s\n" "#define CONFIG_HAL 1" >>confdefs.h
27488
27489	NEED_DBUS="yes"
27490fi
27491 if test "x$CONFIG_HAL" = xyes; then
27492  CONFIG_HAL_TRUE=
27493  CONFIG_HAL_FALSE='#'
27494else
27495  CONFIG_HAL_TRUE='#'
27496  CONFIG_HAL_FALSE=
27497fi
27498
27499
27500if test "x$SYSTEMD_LOGIND" = xauto; then
27501        if test "x$HAVE_DBUS" = xyes -a "x$CONFIG_UDEV" = xyes ; then
27502                SYSTEMD_LOGIND=yes
27503        else
27504                SYSTEMD_LOGIND=no
27505        fi
27506fi
27507if test "x$SYSTEMD_LOGIND" = xyes; then
27508        if ! test "x$HAVE_DBUS" = xyes; then
27509                as_fn_error $? "systemd-logind requested, but D-Bus is not installed." "$LINENO" 5
27510        fi
27511        if ! test "x$CONFIG_UDEV" = xyes ; then
27512                as_fn_error $? "systemd-logind is only supported in combination with udev configuration." "$LINENO" 5
27513        fi
27514
27515
27516printf "%s\n" "#define SYSTEMD_LOGIND 1" >>confdefs.h
27517
27518        NEED_DBUS="yes"
27519fi
27520 if test "x$SYSTEMD_LOGIND" = xyes; then
27521  SYSTEMD_LOGIND_TRUE=
27522  SYSTEMD_LOGIND_FALSE='#'
27523else
27524  SYSTEMD_LOGIND_TRUE='#'
27525  SYSTEMD_LOGIND_FALSE=
27526fi
27527
27528
27529if test "x$SUID_WRAPPER" = xyes; then
27530
27531  prefix_NONE=
27532  exec_prefix_NONE=
27533  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
27534  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
27535  eval ac_define_dir="\"$libexecdir\""
27536  eval ac_define_dir="\"$ac_define_dir\""
27537  SUID_WRAPPER_DIR="$ac_define_dir"
27538
27539
27540printf "%s\n" "#define SUID_WRAPPER_DIR \"$ac_define_dir\"" >>confdefs.h
27541
27542  test "$prefix_NONE" && prefix=NONE
27543  test "$exec_prefix_NONE" && exec_prefix=NONE
27544
27545        SETUID="no"
27546fi
27547 if test "x$SUID_WRAPPER" = xyes; then
27548  SUID_WRAPPER_TRUE=
27549  SUID_WRAPPER_FALSE='#'
27550else
27551  SUID_WRAPPER_TRUE='#'
27552  SUID_WRAPPER_FALSE=
27553fi
27554
27555
27556if test "x$NEED_DBUS" = xyes; then
27557
27558printf "%s\n" "#define NEED_DBUS 1" >>confdefs.h
27559
27560fi
27561 if test "x$NEED_DBUS" = xyes; then
27562  NEED_DBUS_TRUE=
27563  NEED_DBUS_FALSE='#'
27564else
27565  NEED_DBUS_TRUE='#'
27566  NEED_DBUS_FALSE=
27567fi
27568
27569
27570if test "x$CONFIG_WSCONS" = xauto; then
27571	case $host_os in
27572		*openbsd*)
27573			CONFIG_WSCONS=yes;
27574			;;
27575		*)
27576			CONFIG_WSCONS=no;
27577			;;
27578	esac
27579fi
27580 if test "x$CONFIG_WSCONS" = xyes; then
27581  CONFIG_WSCONS_TRUE=
27582  CONFIG_WSCONS_FALSE='#'
27583else
27584  CONFIG_WSCONS_TRUE='#'
27585  CONFIG_WSCONS_FALSE=
27586fi
27587
27588if test "x$CONFIG_WSCONS" = xyes; then
27589
27590printf "%s\n" "#define CONFIG_WSCONS 1" >>confdefs.h
27591
27592fi
27593
27594
27595{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for glibc..." >&5
27596printf %s "checking for glibc...... " >&6; }
27597cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27598/* end confdefs.h.  */
27599
27600#include <features.h>
27601#ifndef __GLIBC__
27602#error
27603#endif
27604
27605_ACEOF
27606if ac_fn_c_try_cpp "$LINENO"
27607then :
27608  glibc=yes
27609else $as_nop
27610  glibc=no
27611fi
27612rm -f conftest.err conftest.i conftest.$ac_ext
27613{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $glibc" >&5
27614printf "%s\n" "$glibc" >&6; }
27615
27616
27617  for ac_func in clock_gettime
27618do :
27619  ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
27620if test "x$ac_cv_func_clock_gettime" = xyes
27621then :
27622  printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
27623 have_clock_gettime=yes
27624else $as_nop
27625  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
27626printf %s "checking for clock_gettime in -lrt... " >&6; }
27627if test ${ac_cv_lib_rt_clock_gettime+y}
27628then :
27629  printf %s "(cached) " >&6
27630else $as_nop
27631  ac_check_lib_save_LIBS=$LIBS
27632LIBS="-lrt  $LIBS"
27633cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27634/* end confdefs.h.  */
27635
27636/* Override any GCC internal prototype to avoid an error.
27637   Use char because int might match the return type of a GCC
27638   builtin and then its argument prototype would still apply.  */
27639char clock_gettime ();
27640int
27641main (void)
27642{
27643return clock_gettime ();
27644  ;
27645  return 0;
27646}
27647_ACEOF
27648if ac_fn_c_try_link "$LINENO"
27649then :
27650  ac_cv_lib_rt_clock_gettime=yes
27651else $as_nop
27652  ac_cv_lib_rt_clock_gettime=no
27653fi
27654rm -f core conftest.err conftest.$ac_objext conftest.beam \
27655    conftest$ac_exeext conftest.$ac_ext
27656LIBS=$ac_check_lib_save_LIBS
27657fi
27658{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
27659printf "%s\n" "$ac_cv_lib_rt_clock_gettime" >&6; }
27660if test "x$ac_cv_lib_rt_clock_gettime" = xyes
27661then :
27662  have_clock_gettime=-lrt
27663else $as_nop
27664  have_clock_gettime=no
27665fi
27666
27667fi
27668
27669done
27670
27671{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a useful monotonic clock ..." >&5
27672printf %s "checking for a useful monotonic clock ...... " >&6; }
27673
27674if ! test "x$have_clock_gettime" = xno; then
27675    if ! test "x$have_clock_gettime" = xyes; then
27676        CLOCK_LIBS="$have_clock_gettime"
27677    else
27678        CLOCK_LIBS=""
27679    fi
27680
27681    LIBS_SAVE="$LIBS"
27682    LIBS="$CLOCK_LIBS"
27683    CPPFLAGS_SAVE="$CPPFLAGS"
27684
27685    if test x"$glibc" = xyes; then
27686        CPPFLAGS="$CPPFLAGS -D_POSIX_C_SOURCE=200112L"
27687    fi
27688
27689    if test "$cross_compiling" = yes
27690then :
27691  MONOTONIC_CLOCK="cross compiling"
27692else $as_nop
27693  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27694/* end confdefs.h.  */
27695
27696#include <time.h>
27697
27698int main(int argc, char *argv[]) {
27699    struct timespec tp;
27700
27701    if (clock_gettime(CLOCK_MONOTONIC, &tp) == 0)
27702        return 0;
27703    else
27704        return 1;
27705}
27706
27707_ACEOF
27708if ac_fn_c_try_run "$LINENO"
27709then :
27710  MONOTONIC_CLOCK=yes
27711else $as_nop
27712  MONOTONIC_CLOCK=no
27713fi
27714rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27715  conftest.$ac_objext conftest.beam conftest.$ac_ext
27716fi
27717
27718
27719    if test "$MONOTONIC_CLOCK" = "cross compiling"; then
27720        ac_fn_check_decl "$LINENO" "CLOCK_MONOTONIC" "ac_cv_have_decl_CLOCK_MONOTONIC" "#include <time.h>
27721" "$ac_c_undeclared_builtin_options" "CFLAGS"
27722if test "x$ac_cv_have_decl_CLOCK_MONOTONIC" = xyes
27723then :
27724  MONOTONIC_CLOCK="guessing yes"
27725else $as_nop
27726  MONOTONIC_CLOCK=no
27727fi
27728    fi
27729
27730    LIBS="$LIBS_SAVE"
27731    CPPFLAGS="$CPPFLAGS_SAVE"
27732else
27733    MONOTONIC_CLOCK=no
27734fi
27735
27736{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MONOTONIC_CLOCK" >&5
27737printf "%s\n" "$MONOTONIC_CLOCK" >&6; }
27738if test "$MONOTONIC_CLOCK" = "guessing yes"; then
27739	MONOTONIC_CLOCK=yes
27740fi
27741
27742if test "x$MONOTONIC_CLOCK" = xyes; then
27743
27744printf "%s\n" "#define MONOTONIC_CLOCK 1" >>confdefs.h
27745
27746    LIBS="$LIBS $CLOCK_LIBS"
27747fi
27748
27749 if test "x$XV" = xyes; then
27750  XV_TRUE=
27751  XV_FALSE='#'
27752else
27753  XV_TRUE='#'
27754  XV_FALSE=
27755fi
27756
27757if test "x$XV" = xyes; then
27758
27759printf "%s\n" "#define XV 1" >>confdefs.h
27760
27761
27762printf "%s\n" "#define XvExtension 1" >>confdefs.h
27763
27764	REQUIRED_MODULES="$REQUIRED_MODULES $VIDEOPROTO"
27765	SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $VIDEOPROTO"
27766else
27767	XVMC=no
27768fi
27769
27770 if test "x$XVMC" = xyes; then
27771  XVMC_TRUE=
27772  XVMC_FALSE='#'
27773else
27774  XVMC_TRUE='#'
27775  XVMC_FALSE=
27776fi
27777
27778if test "x$XVMC" = xyes; then
27779
27780printf "%s\n" "#define XvMCExtension 1" >>confdefs.h
27781
27782fi
27783
27784 if test "x$COMPOSITE" = xyes; then
27785  COMPOSITE_TRUE=
27786  COMPOSITE_FALSE='#'
27787else
27788  COMPOSITE_TRUE='#'
27789  COMPOSITE_FALSE=
27790fi
27791
27792if test "x$COMPOSITE" = xyes; then
27793
27794printf "%s\n" "#define COMPOSITE 1" >>confdefs.h
27795
27796	REQUIRED_MODULES="$REQUIRED_MODULES $COMPOSITEPROTO"
27797	COMPOSITE_LIB='$(top_builddir)/composite/libcomposite.la'
27798	COMPOSITE_INC='-I$(top_srcdir)/composite'
27799fi
27800
27801if test "x$MITSHM" = xauto; then
27802	MITSHM="$ac_cv_sysv_ipc"
27803fi
27804 if test "x$MITSHM" = xyes; then
27805  MITSHM_TRUE=
27806  MITSHM_FALSE='#'
27807else
27808  MITSHM_TRUE='#'
27809  MITSHM_FALSE=
27810fi
27811
27812if test "x$MITSHM" = xyes; then
27813
27814printf "%s\n" "#define MITSHM 1" >>confdefs.h
27815
27816
27817printf "%s\n" "#define HAS_SHM 1" >>confdefs.h
27818
27819fi
27820
27821 if test "x$RECORD" = xyes; then
27822  RECORD_TRUE=
27823  RECORD_FALSE='#'
27824else
27825  RECORD_TRUE='#'
27826  RECORD_FALSE=
27827fi
27828
27829if test "x$RECORD" = xyes; then
27830
27831printf "%s\n" "#define XRECORD 1" >>confdefs.h
27832
27833	REQUIRED_MODULES="$REQUIRED_MODULES $RECORDPROTO"
27834	RECORD_LIB='$(top_builddir)/record/librecord.la'
27835fi
27836
27837 if test "x$SCREENSAVER" = xyes; then
27838  SCREENSAVER_TRUE=
27839  SCREENSAVER_FALSE='#'
27840else
27841  SCREENSAVER_TRUE='#'
27842  SCREENSAVER_FALSE=
27843fi
27844
27845if test "x$SCREENSAVER" = xyes; then
27846
27847printf "%s\n" "#define SCREENSAVER 1" >>confdefs.h
27848
27849	REQUIRED_MODULES="$REQUIRED_MODULES $SCRNSAVERPROTO"
27850	SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $SCRNSAVERPROTO"
27851fi
27852
27853HASHTABLE=no
27854 if test "x$RES" = xyes; then
27855  RES_TRUE=
27856  RES_FALSE='#'
27857else
27858  RES_TRUE='#'
27859  RES_FALSE=
27860fi
27861
27862if test "x$RES" = xyes; then
27863
27864printf "%s\n" "#define RES 1" >>confdefs.h
27865
27866	HASHTABLE=yes
27867	REQUIRED_MODULES="$REQUIRED_MODULES $RESOURCEPROTO"
27868	SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $RESOURCEPROTO"
27869fi
27870
27871if test "x$LISTEN_TCP" = xyes; then
27872
27873printf "%s\n" "#define LISTEN_TCP 1" >>confdefs.h
27874
27875fi
27876if test "x$LISTEN_UNIX" = xyes; then
27877
27878printf "%s\n" "#define LISTEN_UNIX 1" >>confdefs.h
27879
27880fi
27881if test "x$LISTEN_LOCAL" = xyes; then
27882
27883printf "%s\n" "#define LISTEN_LOCAL 1" >>confdefs.h
27884
27885fi
27886
27887# The XRes extension may support client ID tracking only if it has
27888# been specifically enabled. Client ID tracking is implicitly not
27889# supported if XRes extension is disabled.
27890{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to track client ids" >&5
27891printf %s "checking whether to track client ids... " >&6; }
27892if test "x$RES" = xyes && test "x$CLIENTIDS" = xyes; then
27893
27894printf "%s\n" "#define CLIENTIDS 1" >>confdefs.h
27895
27896else
27897	CLIENTIDS=no
27898fi
27899if test "x$CLIENTIDS" = xyes; then
27900	case $host_os in
27901	openbsd*)
27902		SYS_LIBS="$SYS_LIBS -lkvm"
27903	;;
27904	esac
27905fi
27906{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CLIENTIDS" >&5
27907printf "%s\n" "$CLIENTIDS" >&6; }
27908 if test "x$CLIENTIDS" = xyes; then
27909  CLIENTIDS_TRUE=
27910  CLIENTIDS_FALSE='#'
27911else
27912  CLIENTIDS_TRUE='#'
27913  CLIENTIDS_FALSE=
27914fi
27915
27916
27917 if test "x$DRI" = xyes; then
27918  DRI_TRUE=
27919  DRI_FALSE='#'
27920else
27921  DRI_TRUE='#'
27922  DRI_FALSE=
27923fi
27924
27925if test "x$DRI" = xyes; then
27926
27927printf "%s\n" "#define XF86DRI 1" >>confdefs.h
27928
27929	REQUIRED_MODULES="$REQUIRED_MODULES $DRIPROTO $GLPROTO $LIBDRI"
27930	SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $DRIPROTO $GLPROTO $LIBDRI"
27931fi
27932
27933
27934pkg_failed=no
27935{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for DRI2PROTO" >&5
27936printf %s "checking for DRI2PROTO... " >&6; }
27937
27938if test -n "$DRI2PROTO_CFLAGS"; then
27939    pkg_cv_DRI2PROTO_CFLAGS="$DRI2PROTO_CFLAGS"
27940 elif test -n "$PKG_CONFIG"; then
27941    if test -n "$PKG_CONFIG" && \
27942    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DRI2PROTO\""; } >&5
27943  ($PKG_CONFIG --exists --print-errors "$DRI2PROTO") 2>&5
27944  ac_status=$?
27945  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27946  test $ac_status = 0; }; then
27947  pkg_cv_DRI2PROTO_CFLAGS=`$PKG_CONFIG --cflags "$DRI2PROTO" 2>/dev/null`
27948		      test "x$?" != "x0" && pkg_failed=yes
27949else
27950  pkg_failed=yes
27951fi
27952 else
27953    pkg_failed=untried
27954fi
27955if test -n "$DRI2PROTO_LIBS"; then
27956    pkg_cv_DRI2PROTO_LIBS="$DRI2PROTO_LIBS"
27957 elif test -n "$PKG_CONFIG"; then
27958    if test -n "$PKG_CONFIG" && \
27959    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DRI2PROTO\""; } >&5
27960  ($PKG_CONFIG --exists --print-errors "$DRI2PROTO") 2>&5
27961  ac_status=$?
27962  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27963  test $ac_status = 0; }; then
27964  pkg_cv_DRI2PROTO_LIBS=`$PKG_CONFIG --libs "$DRI2PROTO" 2>/dev/null`
27965		      test "x$?" != "x0" && pkg_failed=yes
27966else
27967  pkg_failed=yes
27968fi
27969 else
27970    pkg_failed=untried
27971fi
27972
27973
27974
27975if test $pkg_failed = yes; then
27976   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27977printf "%s\n" "no" >&6; }
27978
27979if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27980        _pkg_short_errors_supported=yes
27981else
27982        _pkg_short_errors_supported=no
27983fi
27984        if test $_pkg_short_errors_supported = yes; then
27985	        DRI2PROTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$DRI2PROTO" 2>&1`
27986        else
27987	        DRI2PROTO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$DRI2PROTO" 2>&1`
27988        fi
27989	# Put the nasty error message in config.log where it belongs
27990	echo "$DRI2PROTO_PKG_ERRORS" >&5
27991
27992	HAVE_DRI2PROTO=no
27993elif test $pkg_failed = untried; then
27994     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27995printf "%s\n" "no" >&6; }
27996	HAVE_DRI2PROTO=no
27997else
27998	DRI2PROTO_CFLAGS=$pkg_cv_DRI2PROTO_CFLAGS
27999	DRI2PROTO_LIBS=$pkg_cv_DRI2PROTO_LIBS
28000        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28001printf "%s\n" "yes" >&6; }
28002	HAVE_DRI2PROTO=yes
28003fi
28004case "$DRI2,$HAVE_DRI2PROTO" in
28005	yes,no)
28006		as_fn_error $? "DRI2 requested, but dri2proto not found." "$LINENO" 5
28007		;;
28008	yes,yes | auto,yes)
28009
28010printf "%s\n" "#define DRI2 1" >>confdefs.h
28011
28012		DRI2=yes
28013		LIBGL="gl >= 1.2"
28014		SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $DRI2PROTO"
28015		;;
28016esac
28017 if test "x$DRI2" = xyes; then
28018  DRI2_TRUE=
28019  DRI2_FALSE='#'
28020else
28021  DRI2_TRUE='#'
28022  DRI2_FALSE=
28023fi
28024
28025
28026# Check whether --enable-xtrans-send-fds was given.
28027if test ${enable_xtrans_send_fds+y}
28028then :
28029  enableval=$enable_xtrans_send_fds; XTRANS_SEND_FDS=$enableval
28030else $as_nop
28031  XTRANS_SEND_FDS=auto
28032fi
28033
28034
28035case "x$XTRANS_SEND_FDS" in
28036xauto)
28037	case "$host_os" in
28038	linux*|solaris*|freebsd*|dragonfly*|openbsd*)
28039		XTRANS_SEND_FDS=yes
28040		;;
28041	*)
28042		XTRANS_SEND_FDS=no
28043		;;
28044	esac
28045esac
28046
28047case "x$XTRANS_SEND_FDS" in
28048xyes)
28049
28050printf "%s\n" "#define XTRANS_SEND_FDS 1" >>confdefs.h
28051
28052	;;
28053esac
28054
28055case "$DRI3,$XTRANS_SEND_FDS" in
28056	yes,yes | auto,yes)
28057		;;
28058	yes,no)
28059		as_fn_error $? "DRI3 requested, but xtrans fd passing support not found." "$LINENO" 5
28060		DRI3=no
28061		;;
28062	no,*)
28063		;;
28064	*)
28065		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: DRI3 disabled because xtrans fd passing support not found." >&5
28066printf "%s\n" "$as_me: DRI3 disabled because xtrans fd passing support not found." >&6;}
28067		DRI3=no
28068		;;
28069esac
28070
28071
28072pkg_failed=no
28073{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for DRI3PROTO" >&5
28074printf %s "checking for DRI3PROTO... " >&6; }
28075
28076if test -n "$DRI3PROTO_CFLAGS"; then
28077    pkg_cv_DRI3PROTO_CFLAGS="$DRI3PROTO_CFLAGS"
28078 elif test -n "$PKG_CONFIG"; then
28079    if test -n "$PKG_CONFIG" && \
28080    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DRI3PROTO\""; } >&5
28081  ($PKG_CONFIG --exists --print-errors "$DRI3PROTO") 2>&5
28082  ac_status=$?
28083  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28084  test $ac_status = 0; }; then
28085  pkg_cv_DRI3PROTO_CFLAGS=`$PKG_CONFIG --cflags "$DRI3PROTO" 2>/dev/null`
28086		      test "x$?" != "x0" && pkg_failed=yes
28087else
28088  pkg_failed=yes
28089fi
28090 else
28091    pkg_failed=untried
28092fi
28093if test -n "$DRI3PROTO_LIBS"; then
28094    pkg_cv_DRI3PROTO_LIBS="$DRI3PROTO_LIBS"
28095 elif test -n "$PKG_CONFIG"; then
28096    if test -n "$PKG_CONFIG" && \
28097    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DRI3PROTO\""; } >&5
28098  ($PKG_CONFIG --exists --print-errors "$DRI3PROTO") 2>&5
28099  ac_status=$?
28100  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28101  test $ac_status = 0; }; then
28102  pkg_cv_DRI3PROTO_LIBS=`$PKG_CONFIG --libs "$DRI3PROTO" 2>/dev/null`
28103		      test "x$?" != "x0" && pkg_failed=yes
28104else
28105  pkg_failed=yes
28106fi
28107 else
28108    pkg_failed=untried
28109fi
28110
28111
28112
28113if test $pkg_failed = yes; then
28114   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28115printf "%s\n" "no" >&6; }
28116
28117if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28118        _pkg_short_errors_supported=yes
28119else
28120        _pkg_short_errors_supported=no
28121fi
28122        if test $_pkg_short_errors_supported = yes; then
28123	        DRI3PROTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$DRI3PROTO" 2>&1`
28124        else
28125	        DRI3PROTO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$DRI3PROTO" 2>&1`
28126        fi
28127	# Put the nasty error message in config.log where it belongs
28128	echo "$DRI3PROTO_PKG_ERRORS" >&5
28129
28130	HAVE_DRI3PROTO=no
28131elif test $pkg_failed = untried; then
28132     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28133printf "%s\n" "no" >&6; }
28134	HAVE_DRI3PROTO=no
28135else
28136	DRI3PROTO_CFLAGS=$pkg_cv_DRI3PROTO_CFLAGS
28137	DRI3PROTO_LIBS=$pkg_cv_DRI3PROTO_LIBS
28138        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28139printf "%s\n" "yes" >&6; }
28140	HAVE_DRI3PROTO=yes
28141fi
28142
28143case "$DRI3,$HAVE_DRI3PROTO" in
28144	yes,yes | auto,yes)
28145		REQUIRED_MODULES="$REQUIRED_MODULES dri3proto"
28146		;;
28147	yes,no)
28148		as_fn_error $? "DRI3 requested, but dri3proto not found." "$LINENO" 5
28149		DRI3=no
28150		;;
28151	no,*)
28152		;;
28153	*)
28154		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: DRI3 disabled because dri3proto not found." >&5
28155printf "%s\n" "$as_me: DRI3 disabled because dri3proto not found." >&6;}
28156		DRI3=no
28157		;;
28158esac
28159
28160ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
28161if test "x$ac_cv_func_sigaction" = xyes
28162then :
28163  printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h
28164
28165fi
28166
28167
28168BUSFAULT=no
28169
28170case x"$ac_cv_func_sigaction" in
28171	xyes)
28172
28173printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h
28174
28175		BUSFAULT=yes
28176		;;
28177esac
28178
28179case x"$BUSFAULT" in
28180	xyes)
28181
28182printf "%s\n" "#define BUSFAULT 1" >>confdefs.h
28183
28184		;;
28185esac
28186
28187 if test x"$BUSFAULT" = xyes; then
28188  BUSFAULT_TRUE=
28189  BUSFAULT_FALSE='#'
28190else
28191  BUSFAULT_TRUE='#'
28192  BUSFAULT_FALSE=
28193fi
28194
28195
28196
28197
28198pkg_failed=no
28199{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XSHMFENCE" >&5
28200printf %s "checking for XSHMFENCE... " >&6; }
28201
28202if test -n "$XSHMFENCE_CFLAGS"; then
28203    pkg_cv_XSHMFENCE_CFLAGS="$XSHMFENCE_CFLAGS"
28204 elif test -n "$PKG_CONFIG"; then
28205    if test -n "$PKG_CONFIG" && \
28206    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXSHMFENCE\""; } >&5
28207  ($PKG_CONFIG --exists --print-errors "$LIBXSHMFENCE") 2>&5
28208  ac_status=$?
28209  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28210  test $ac_status = 0; }; then
28211  pkg_cv_XSHMFENCE_CFLAGS=`$PKG_CONFIG --cflags "$LIBXSHMFENCE" 2>/dev/null`
28212		      test "x$?" != "x0" && pkg_failed=yes
28213else
28214  pkg_failed=yes
28215fi
28216 else
28217    pkg_failed=untried
28218fi
28219if test -n "$XSHMFENCE_LIBS"; then
28220    pkg_cv_XSHMFENCE_LIBS="$XSHMFENCE_LIBS"
28221 elif test -n "$PKG_CONFIG"; then
28222    if test -n "$PKG_CONFIG" && \
28223    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXSHMFENCE\""; } >&5
28224  ($PKG_CONFIG --exists --print-errors "$LIBXSHMFENCE") 2>&5
28225  ac_status=$?
28226  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28227  test $ac_status = 0; }; then
28228  pkg_cv_XSHMFENCE_LIBS=`$PKG_CONFIG --libs "$LIBXSHMFENCE" 2>/dev/null`
28229		      test "x$?" != "x0" && pkg_failed=yes
28230else
28231  pkg_failed=yes
28232fi
28233 else
28234    pkg_failed=untried
28235fi
28236
28237
28238
28239if test $pkg_failed = yes; then
28240   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28241printf "%s\n" "no" >&6; }
28242
28243if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28244        _pkg_short_errors_supported=yes
28245else
28246        _pkg_short_errors_supported=no
28247fi
28248        if test $_pkg_short_errors_supported = yes; then
28249	        XSHMFENCE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBXSHMFENCE" 2>&1`
28250        else
28251	        XSHMFENCE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBXSHMFENCE" 2>&1`
28252        fi
28253	# Put the nasty error message in config.log where it belongs
28254	echo "$XSHMFENCE_PKG_ERRORS" >&5
28255
28256	HAVE_XSHMFENCE=no
28257elif test $pkg_failed = untried; then
28258     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28259printf "%s\n" "no" >&6; }
28260	HAVE_XSHMFENCE=no
28261else
28262	XSHMFENCE_CFLAGS=$pkg_cv_XSHMFENCE_CFLAGS
28263	XSHMFENCE_LIBS=$pkg_cv_XSHMFENCE_LIBS
28264        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28265printf "%s\n" "yes" >&6; }
28266	HAVE_XSHMFENCE=yes
28267fi
28268if test "x$XSHMFENCE" = "xauto"; then
28269    XSHMFENCE="$HAVE_XSHMFENCE"
28270fi
28271
28272if test "x$XSHMFENCE" = "xyes"; then
28273    if test "x$HAVE_XSHMFENCE" != "xyes"; then
28274        as_fn_error $? "xshmfence requested but not installed." "$LINENO" 5
28275    fi
28276
28277printf "%s\n" "#define HAVE_XSHMFENCE 1" >>confdefs.h
28278
28279    REQUIRED_LIBS="$REQUIRED_LIBS $LIBXSHMFENCE"
28280fi
28281
28282 if test "x$XSHMFENCE" = xyes; then
28283  XSHMFENCE_TRUE=
28284  XSHMFENCE_FALSE='#'
28285else
28286  XSHMFENCE_TRUE='#'
28287  XSHMFENCE_FALSE=
28288fi
28289
28290
28291case "$DRI3,$XSHMFENCE" in
28292	yes,yes | auto,yes)
28293		;;
28294	yes,no)
28295		as_fn_error $? "DRI3 requested, but xshmfence not found." "$LINENO" 5
28296		DRI3=no
28297		;;
28298	no,*)
28299		;;
28300	*)
28301		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: DRI3 disabled because xshmfence not found." >&5
28302printf "%s\n" "$as_me: DRI3 disabled because xshmfence not found." >&6;}
28303		DRI3=no
28304		;;
28305esac
28306
28307case x"$DRI3" in
28308	xyes|xauto)
28309		DRI3=yes
28310
28311printf "%s\n" "#define DRI3 1" >>confdefs.h
28312
28313		DRI3_LIB='$(top_builddir)/dri3/libdri3.la'
28314		SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $DRI3PROTO"
28315		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: DRI3 enabled" >&5
28316printf "%s\n" "$as_me: DRI3 enabled" >&6;};
28317		;;
28318esac
28319
28320 if test "x$DRI3" = xyes; then
28321  DRI3_TRUE=
28322  DRI3_FALSE='#'
28323else
28324  DRI3_TRUE='#'
28325  DRI3_FALSE=
28326fi
28327
28328
28329if test "x$DRI" = xyes || test "x$DRI2" = xyes || test "x$DRI3" = xyes || test "x$CONFIG_UDEV_KMS" = xyes || test "x$XORG" = xyes; then
28330	if test "x$DRM" = xyes; then
28331
28332printf "%s\n" "#define WITH_LIBDRM 1" >>confdefs.h
28333
28334
28335pkg_failed=no
28336{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LIBDRM" >&5
28337printf %s "checking for LIBDRM... " >&6; }
28338
28339if test -n "$LIBDRM_CFLAGS"; then
28340    pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS"
28341 elif test -n "$PKG_CONFIG"; then
28342    if test -n "$PKG_CONFIG" && \
28343    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDRM\""; } >&5
28344  ($PKG_CONFIG --exists --print-errors "$LIBDRM") 2>&5
28345  ac_status=$?
28346  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28347  test $ac_status = 0; }; then
28348  pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "$LIBDRM" 2>/dev/null`
28349		      test "x$?" != "x0" && pkg_failed=yes
28350else
28351  pkg_failed=yes
28352fi
28353 else
28354    pkg_failed=untried
28355fi
28356if test -n "$LIBDRM_LIBS"; then
28357    pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS"
28358 elif test -n "$PKG_CONFIG"; then
28359    if test -n "$PKG_CONFIG" && \
28360    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDRM\""; } >&5
28361  ($PKG_CONFIG --exists --print-errors "$LIBDRM") 2>&5
28362  ac_status=$?
28363  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28364  test $ac_status = 0; }; then
28365  pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "$LIBDRM" 2>/dev/null`
28366		      test "x$?" != "x0" && pkg_failed=yes
28367else
28368  pkg_failed=yes
28369fi
28370 else
28371    pkg_failed=untried
28372fi
28373
28374
28375
28376if test $pkg_failed = yes; then
28377   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28378printf "%s\n" "no" >&6; }
28379
28380if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28381        _pkg_short_errors_supported=yes
28382else
28383        _pkg_short_errors_supported=no
28384fi
28385        if test $_pkg_short_errors_supported = yes; then
28386	        LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBDRM" 2>&1`
28387        else
28388	        LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBDRM" 2>&1`
28389        fi
28390	# Put the nasty error message in config.log where it belongs
28391	echo "$LIBDRM_PKG_ERRORS" >&5
28392
28393	as_fn_error $? "Package requirements ($LIBDRM) were not met:
28394
28395$LIBDRM_PKG_ERRORS
28396
28397Consider adjusting the PKG_CONFIG_PATH environment variable if you
28398installed software in a non-standard prefix.
28399
28400Alternatively, you may set the environment variables LIBDRM_CFLAGS
28401and LIBDRM_LIBS to avoid the need to call pkg-config.
28402See the pkg-config man page for more details." "$LINENO" 5
28403elif test $pkg_failed = untried; then
28404     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28405printf "%s\n" "no" >&6; }
28406	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28407printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
28408as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
28409is in your PATH or set the PKG_CONFIG environment variable to the full
28410path to pkg-config.
28411
28412Alternatively, you may set the environment variables LIBDRM_CFLAGS
28413and LIBDRM_LIBS to avoid the need to call pkg-config.
28414See the pkg-config man page for more details.
28415
28416To get pkg-config, see <http://pkg-config.freedesktop.org/>.
28417See \`config.log' for more details" "$LINENO" 5; }
28418else
28419	LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS
28420	LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS
28421        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28422printf "%s\n" "yes" >&6; }
28423
28424fi
28425	fi
28426fi
28427
28428if test "x$GLX" = xyes; then
28429
28430pkg_failed=no
28431{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XLIB" >&5
28432printf %s "checking for XLIB... " >&6; }
28433
28434if test -n "$XLIB_CFLAGS"; then
28435    pkg_cv_XLIB_CFLAGS="$XLIB_CFLAGS"
28436 elif test -n "$PKG_CONFIG"; then
28437    if test -n "$PKG_CONFIG" && \
28438    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
28439  ($PKG_CONFIG --exists --print-errors "x11") 2>&5
28440  ac_status=$?
28441  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28442  test $ac_status = 0; }; then
28443  pkg_cv_XLIB_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
28444		      test "x$?" != "x0" && pkg_failed=yes
28445else
28446  pkg_failed=yes
28447fi
28448 else
28449    pkg_failed=untried
28450fi
28451if test -n "$XLIB_LIBS"; then
28452    pkg_cv_XLIB_LIBS="$XLIB_LIBS"
28453 elif test -n "$PKG_CONFIG"; then
28454    if test -n "$PKG_CONFIG" && \
28455    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
28456  ($PKG_CONFIG --exists --print-errors "x11") 2>&5
28457  ac_status=$?
28458  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28459  test $ac_status = 0; }; then
28460  pkg_cv_XLIB_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
28461		      test "x$?" != "x0" && pkg_failed=yes
28462else
28463  pkg_failed=yes
28464fi
28465 else
28466    pkg_failed=untried
28467fi
28468
28469
28470
28471if test $pkg_failed = yes; then
28472   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28473printf "%s\n" "no" >&6; }
28474
28475if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28476        _pkg_short_errors_supported=yes
28477else
28478        _pkg_short_errors_supported=no
28479fi
28480        if test $_pkg_short_errors_supported = yes; then
28481	        XLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11" 2>&1`
28482        else
28483	        XLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11" 2>&1`
28484        fi
28485	# Put the nasty error message in config.log where it belongs
28486	echo "$XLIB_PKG_ERRORS" >&5
28487
28488	as_fn_error $? "Package requirements (x11) were not met:
28489
28490$XLIB_PKG_ERRORS
28491
28492Consider adjusting the PKG_CONFIG_PATH environment variable if you
28493installed software in a non-standard prefix.
28494
28495Alternatively, you may set the environment variables XLIB_CFLAGS
28496and XLIB_LIBS to avoid the need to call pkg-config.
28497See the pkg-config man page for more details." "$LINENO" 5
28498elif test $pkg_failed = untried; then
28499     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28500printf "%s\n" "no" >&6; }
28501	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28502printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
28503as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
28504is in your PATH or set the PKG_CONFIG environment variable to the full
28505path to pkg-config.
28506
28507Alternatively, you may set the environment variables XLIB_CFLAGS
28508and XLIB_LIBS to avoid the need to call pkg-config.
28509See the pkg-config man page for more details.
28510
28511To get pkg-config, see <http://pkg-config.freedesktop.org/>.
28512See \`config.log' for more details" "$LINENO" 5; }
28513else
28514	XLIB_CFLAGS=$pkg_cv_XLIB_CFLAGS
28515	XLIB_LIBS=$pkg_cv_XLIB_LIBS
28516        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28517printf "%s\n" "yes" >&6; }
28518
28519fi
28520
28521pkg_failed=no
28522{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GL" >&5
28523printf %s "checking for GL... " >&6; }
28524
28525if test -n "$GL_CFLAGS"; then
28526    pkg_cv_GL_CFLAGS="$GL_CFLAGS"
28527 elif test -n "$PKG_CONFIG"; then
28528    if test -n "$PKG_CONFIG" && \
28529    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GLPROTO \$LIBGL\""; } >&5
28530  ($PKG_CONFIG --exists --print-errors "$GLPROTO $LIBGL") 2>&5
28531  ac_status=$?
28532  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28533  test $ac_status = 0; }; then
28534  pkg_cv_GL_CFLAGS=`$PKG_CONFIG --cflags "$GLPROTO $LIBGL" 2>/dev/null`
28535		      test "x$?" != "x0" && pkg_failed=yes
28536else
28537  pkg_failed=yes
28538fi
28539 else
28540    pkg_failed=untried
28541fi
28542if test -n "$GL_LIBS"; then
28543    pkg_cv_GL_LIBS="$GL_LIBS"
28544 elif test -n "$PKG_CONFIG"; then
28545    if test -n "$PKG_CONFIG" && \
28546    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GLPROTO \$LIBGL\""; } >&5
28547  ($PKG_CONFIG --exists --print-errors "$GLPROTO $LIBGL") 2>&5
28548  ac_status=$?
28549  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28550  test $ac_status = 0; }; then
28551  pkg_cv_GL_LIBS=`$PKG_CONFIG --libs "$GLPROTO $LIBGL" 2>/dev/null`
28552		      test "x$?" != "x0" && pkg_failed=yes
28553else
28554  pkg_failed=yes
28555fi
28556 else
28557    pkg_failed=untried
28558fi
28559
28560
28561
28562if test $pkg_failed = yes; then
28563   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28564printf "%s\n" "no" >&6; }
28565
28566if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28567        _pkg_short_errors_supported=yes
28568else
28569        _pkg_short_errors_supported=no
28570fi
28571        if test $_pkg_short_errors_supported = yes; then
28572	        GL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$GLPROTO $LIBGL" 2>&1`
28573        else
28574	        GL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$GLPROTO $LIBGL" 2>&1`
28575        fi
28576	# Put the nasty error message in config.log where it belongs
28577	echo "$GL_PKG_ERRORS" >&5
28578
28579	as_fn_error $? "Package requirements ($GLPROTO $LIBGL) were not met:
28580
28581$GL_PKG_ERRORS
28582
28583Consider adjusting the PKG_CONFIG_PATH environment variable if you
28584installed software in a non-standard prefix.
28585
28586Alternatively, you may set the environment variables GL_CFLAGS
28587and GL_LIBS to avoid the need to call pkg-config.
28588See the pkg-config man page for more details." "$LINENO" 5
28589elif test $pkg_failed = untried; then
28590     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28591printf "%s\n" "no" >&6; }
28592	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28593printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
28594as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
28595is in your PATH or set the PKG_CONFIG environment variable to the full
28596path to pkg-config.
28597
28598Alternatively, you may set the environment variables GL_CFLAGS
28599and GL_LIBS to avoid the need to call pkg-config.
28600See the pkg-config man page for more details.
28601
28602To get pkg-config, see <http://pkg-config.freedesktop.org/>.
28603See \`config.log' for more details" "$LINENO" 5; }
28604else
28605	GL_CFLAGS=$pkg_cv_GL_CFLAGS
28606	GL_LIBS=$pkg_cv_GL_LIBS
28607        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28608printf "%s\n" "yes" >&6; }
28609
28610fi
28611
28612
28613printf "%s\n" "#define GLXEXT 1" >>confdefs.h
28614
28615	HASHTABLE=yes
28616	GLX_LIBS='$(top_builddir)/glx/libglx.la $(top_builddir)/glx/libglxvnd.la'
28617	GLX_SYS_LIBS="$GLX_SYS_LIBS $GL_LIBS"
28618else
28619        GLX=no
28620fi
28621 if test "x$GLX" = xyes; then
28622  GLX_TRUE=
28623  GLX_FALSE='#'
28624else
28625  GLX_TRUE='#'
28626  GLX_FALSE=
28627fi
28628
28629
28630 if test "x$HASHTABLE" = xyes; then
28631  HASHTABLE_TRUE=
28632  HASHTABLE_FALSE='#'
28633else
28634  HASHTABLE_TRUE='#'
28635  HASHTABLE_FALSE=
28636fi
28637
28638
28639
28640
28641
28642 if test "x$PRESENT" = xyes; then
28643  PRESENT_TRUE=
28644  PRESENT_FALSE='#'
28645else
28646  PRESENT_TRUE='#'
28647  PRESENT_FALSE=
28648fi
28649
28650if test "x$PRESENT" = xyes; then
28651
28652printf "%s\n" "#define PRESENT 1" >>confdefs.h
28653
28654	REQUIRED_MODULES="$REQUIRED_MODULES $PRESENTPROTO"
28655	SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $PRESENTPROTO"
28656	PRESENT_INC='-I$(top_srcdir)/present'
28657	PRESENT_LIB='$(top_builddir)/present/libpresent.la'
28658fi
28659
28660 if test "x$XINERAMA" = xyes; then
28661  XINERAMA_TRUE=
28662  XINERAMA_FALSE='#'
28663else
28664  XINERAMA_TRUE='#'
28665  XINERAMA_FALSE=
28666fi
28667
28668if test "x$XINERAMA" = xyes; then
28669
28670printf "%s\n" "#define XINERAMA 1" >>confdefs.h
28671
28672
28673printf "%s\n" "#define PANORAMIX 1" >>confdefs.h
28674
28675	REQUIRED_MODULES="$REQUIRED_MODULES $XINERAMAPROTO"
28676	SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $XINERAMAPROTO"
28677fi
28678
28679 if test "x$XACE" = xyes; then
28680  XACE_TRUE=
28681  XACE_FALSE='#'
28682else
28683  XACE_TRUE='#'
28684  XACE_FALSE=
28685fi
28686
28687if test "x$XACE" = xyes; then
28688
28689printf "%s\n" "#define XACE 1" >>confdefs.h
28690
28691fi
28692
28693 if test "x$XSELINUX" = xyes; then
28694  XSELINUX_TRUE=
28695  XSELINUX_FALSE='#'
28696else
28697  XSELINUX_TRUE='#'
28698  XSELINUX_FALSE=
28699fi
28700
28701if test "x$XSELINUX" = xyes; then
28702	if test "x$XACE" != xyes; then
28703		as_fn_error $? "cannot build SELinux extension without X-ACE" "$LINENO" 5
28704	fi
28705	       for ac_header in libaudit.h
28706do :
28707  ac_fn_c_check_header_compile "$LINENO" "libaudit.h" "ac_cv_header_libaudit_h" "$ac_includes_default"
28708if test "x$ac_cv_header_libaudit_h" = xyes
28709then :
28710  printf "%s\n" "#define HAVE_LIBAUDIT_H 1" >>confdefs.h
28711
28712else $as_nop
28713  as_fn_error $? "SELinux extension requires audit system headers" "$LINENO" 5
28714fi
28715
28716done
28717	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for audit_open in -laudit" >&5
28718printf %s "checking for audit_open in -laudit... " >&6; }
28719if test ${ac_cv_lib_audit_audit_open+y}
28720then :
28721  printf %s "(cached) " >&6
28722else $as_nop
28723  ac_check_lib_save_LIBS=$LIBS
28724LIBS="-laudit  $LIBS"
28725cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28726/* end confdefs.h.  */
28727
28728/* Override any GCC internal prototype to avoid an error.
28729   Use char because int might match the return type of a GCC
28730   builtin and then its argument prototype would still apply.  */
28731char audit_open ();
28732int
28733main (void)
28734{
28735return audit_open ();
28736  ;
28737  return 0;
28738}
28739_ACEOF
28740if ac_fn_c_try_link "$LINENO"
28741then :
28742  ac_cv_lib_audit_audit_open=yes
28743else $as_nop
28744  ac_cv_lib_audit_audit_open=no
28745fi
28746rm -f core conftest.err conftest.$ac_objext conftest.beam \
28747    conftest$ac_exeext conftest.$ac_ext
28748LIBS=$ac_check_lib_save_LIBS
28749fi
28750{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audit_audit_open" >&5
28751printf "%s\n" "$ac_cv_lib_audit_audit_open" >&6; }
28752if test "x$ac_cv_lib_audit_audit_open" = xyes
28753then :
28754  printf "%s\n" "#define HAVE_LIBAUDIT 1" >>confdefs.h
28755
28756  LIBS="-laudit $LIBS"
28757
28758else $as_nop
28759  as_fn_error $? "SELinux extension requires audit system library" "$LINENO" 5
28760fi
28761
28762
28763pkg_failed=no
28764{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SELINUX" >&5
28765printf %s "checking for SELINUX... " >&6; }
28766
28767if test -n "$SELINUX_CFLAGS"; then
28768    pkg_cv_SELINUX_CFLAGS="$SELINUX_CFLAGS"
28769 elif test -n "$PKG_CONFIG"; then
28770    if test -n "$PKG_CONFIG" && \
28771    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBSELINUX\""; } >&5
28772  ($PKG_CONFIG --exists --print-errors "$LIBSELINUX") 2>&5
28773  ac_status=$?
28774  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28775  test $ac_status = 0; }; then
28776  pkg_cv_SELINUX_CFLAGS=`$PKG_CONFIG --cflags "$LIBSELINUX" 2>/dev/null`
28777		      test "x$?" != "x0" && pkg_failed=yes
28778else
28779  pkg_failed=yes
28780fi
28781 else
28782    pkg_failed=untried
28783fi
28784if test -n "$SELINUX_LIBS"; then
28785    pkg_cv_SELINUX_LIBS="$SELINUX_LIBS"
28786 elif test -n "$PKG_CONFIG"; then
28787    if test -n "$PKG_CONFIG" && \
28788    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBSELINUX\""; } >&5
28789  ($PKG_CONFIG --exists --print-errors "$LIBSELINUX") 2>&5
28790  ac_status=$?
28791  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28792  test $ac_status = 0; }; then
28793  pkg_cv_SELINUX_LIBS=`$PKG_CONFIG --libs "$LIBSELINUX" 2>/dev/null`
28794		      test "x$?" != "x0" && pkg_failed=yes
28795else
28796  pkg_failed=yes
28797fi
28798 else
28799    pkg_failed=untried
28800fi
28801
28802
28803
28804if test $pkg_failed = yes; then
28805   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28806printf "%s\n" "no" >&6; }
28807
28808if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28809        _pkg_short_errors_supported=yes
28810else
28811        _pkg_short_errors_supported=no
28812fi
28813        if test $_pkg_short_errors_supported = yes; then
28814	        SELINUX_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBSELINUX" 2>&1`
28815        else
28816	        SELINUX_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBSELINUX" 2>&1`
28817        fi
28818	# Put the nasty error message in config.log where it belongs
28819	echo "$SELINUX_PKG_ERRORS" >&5
28820
28821	as_fn_error $? "Package requirements ($LIBSELINUX) were not met:
28822
28823$SELINUX_PKG_ERRORS
28824
28825Consider adjusting the PKG_CONFIG_PATH environment variable if you
28826installed software in a non-standard prefix.
28827
28828Alternatively, you may set the environment variables SELINUX_CFLAGS
28829and SELINUX_LIBS to avoid the need to call pkg-config.
28830See the pkg-config man page for more details." "$LINENO" 5
28831elif test $pkg_failed = untried; then
28832     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28833printf "%s\n" "no" >&6; }
28834	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28835printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
28836as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
28837is in your PATH or set the PKG_CONFIG environment variable to the full
28838path to pkg-config.
28839
28840Alternatively, you may set the environment variables SELINUX_CFLAGS
28841and SELINUX_LIBS to avoid the need to call pkg-config.
28842See the pkg-config man page for more details.
28843
28844To get pkg-config, see <http://pkg-config.freedesktop.org/>.
28845See \`config.log' for more details" "$LINENO" 5; }
28846else
28847	SELINUX_CFLAGS=$pkg_cv_SELINUX_CFLAGS
28848	SELINUX_LIBS=$pkg_cv_SELINUX_LIBS
28849        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28850printf "%s\n" "yes" >&6; }
28851
28852fi
28853	SELINUX_LIBS="$SELINUX_LIBS -laudit"
28854
28855printf "%s\n" "#define XSELINUX 1" >>confdefs.h
28856
28857fi
28858
28859 if test "x$XCSECURITY" = xyes; then
28860  XCSECURITY_TRUE=
28861  XCSECURITY_FALSE='#'
28862else
28863  XCSECURITY_TRUE='#'
28864  XCSECURITY_FALSE=
28865fi
28866
28867if test "x$XCSECURITY" = xyes; then
28868	if test "x$XACE" != xyes; then
28869		as_fn_error $? "cannot build Security extension without X-ACE" "$LINENO" 5
28870	fi
28871
28872printf "%s\n" "#define XCSECURITY 1" >>confdefs.h
28873
28874fi
28875
28876 if test "x$DBE" = xyes; then
28877  DBE_TRUE=
28878  DBE_FALSE='#'
28879else
28880  DBE_TRUE='#'
28881  DBE_FALSE=
28882fi
28883
28884if test "x$DBE" = xyes; then
28885
28886printf "%s\n" "#define DBE 1" >>confdefs.h
28887
28888	DBE_LIB='$(top_builddir)/dbe/libdbe.la'
28889	DBE_INC='-I$(top_srcdir)/dbe'
28890fi
28891
28892 if test "x$XF86BIGFONT" = xyes; then
28893  XF86BIGFONT_TRUE=
28894  XF86BIGFONT_FALSE='#'
28895else
28896  XF86BIGFONT_TRUE='#'
28897  XF86BIGFONT_FALSE=
28898fi
28899
28900if test "x$XF86BIGFONT" = xyes; then
28901
28902printf "%s\n" "#define XF86BIGFONT 1" >>confdefs.h
28903
28904	REQUIRED_MODULES="$REQUIRED_MODULES $BIGFONTPROTO"
28905	SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $BIGFONTPROTO"
28906fi
28907
28908 if test "x$DPMSExtension" = xyes; then
28909  DPMSExtension_TRUE=
28910  DPMSExtension_FALSE='#'
28911else
28912  DPMSExtension_TRUE='#'
28913  DPMSExtension_FALSE=
28914fi
28915
28916if test "x$DPMSExtension" = xyes; then
28917
28918printf "%s\n" "#define DPMSExtension 1" >>confdefs.h
28919
28920fi
28921
28922
28923printf "%s\n" "#define RENDER 1" >>confdefs.h
28924
28925RENDER_LIB='$(top_builddir)/render/librender.la'
28926RENDER_INC='-I$(top_srcdir)/render'
28927
28928
28929printf "%s\n" "#define RANDR 1" >>confdefs.h
28930
28931RANDR_LIB='$(top_builddir)/randr/librandr.la'
28932RANDR_INC='-I$(top_srcdir)/randr'
28933
28934
28935printf "%s\n" "#define XFIXES 1" >>confdefs.h
28936
28937FIXES_LIB='$(top_builddir)/xfixes/libxfixes.la'
28938FIXES_INC='-I$(top_srcdir)/xfixes'
28939
28940
28941printf "%s\n" "#define DAMAGE 1" >>confdefs.h
28942
28943DAMAGE_LIB='$(top_builddir)/damageext/libdamageext.la'
28944DAMAGE_INC='-I$(top_srcdir)/damageext'
28945MIEXT_DAMAGE_LIB='$(top_builddir)/miext/damage/libdamage.la'
28946MIEXT_DAMAGE_INC='-I$(top_srcdir)/miext/damage'
28947
28948# XINPUT extension is integral part of the server
28949
28950printf "%s\n" "#define XINPUT 1" >>confdefs.h
28951
28952XI_LIB='$(top_builddir)/Xi/libXi.la'
28953XI_INC='-I$(top_srcdir)/Xi'
28954
28955 if test "x$XF86UTILS" = xyes; then
28956  XF86UTILS_TRUE=
28957  XF86UTILS_FALSE='#'
28958else
28959  XF86UTILS_TRUE='#'
28960  XF86UTILS_FALSE=
28961fi
28962
28963 if test "x$VGAHW" = xyes; then
28964  VGAHW_TRUE=
28965  VGAHW_FALSE='#'
28966else
28967  VGAHW_TRUE='#'
28968  VGAHW_FALSE=
28969fi
28970
28971 if test "x$INT10MODULE" = xyes; then
28972  INT10MODULE_TRUE=
28973  INT10MODULE_FALSE='#'
28974else
28975  INT10MODULE_TRUE='#'
28976  INT10MODULE_FALSE=
28977fi
28978
28979
28980
28981printf "%s\n" "#define SHAPE 1" >>confdefs.h
28982
28983
28984if test "x$XKBPATH" = "xauto"; then
28985    XKBPATH=$(pkg-config --variable datadir xkbcomp || echo ${datadir})/X11/xkb
28986fi
28987
28988
28989  prefix_NONE=
28990  exec_prefix_NONE=
28991  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
28992  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
28993  eval ac_define_dir="\"$XKBPATH\""
28994  eval ac_define_dir="\"$ac_define_dir\""
28995  XKB_BASE_DIRECTORY="$ac_define_dir"
28996
28997
28998printf "%s\n" "#define XKB_BASE_DIRECTORY \"$ac_define_dir\"" >>confdefs.h
28999
29000  test "$prefix_NONE" && prefix=NONE
29001  test "$exec_prefix_NONE" && exec_prefix=NONE
29002
29003
29004# Check whether --with-xkb-bin-directory was given.
29005if test ${with_xkb_bin_directory+y}
29006then :
29007  withval=$with_xkb_bin_directory; XKB_BIN_DIRECTORY="$withval"
29008else $as_nop
29009  XKB_BIN_DIRECTORY="auto"
29010fi
29011
29012
29013if test "x$XKB_BIN_DIRECTORY" = "xauto"; then
29014    XKB_BIN_DIRECTORY=$(pkg-config --variable bindir xkbcomp)
29015    if test -z $XKB_BIN_DIRECTORY; then
29016        XKB_BIN_DIRECTORY="$bindir"
29017    fi
29018fi
29019
29020
29021  prefix_NONE=
29022  exec_prefix_NONE=
29023  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
29024  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
29025  eval ac_define_dir="\"$XKB_BIN_DIRECTORY\""
29026  eval ac_define_dir="\"$ac_define_dir\""
29027  XKB_BIN_DIRECTORY="$ac_define_dir"
29028
29029
29030printf "%s\n" "#define XKB_BIN_DIRECTORY \"$ac_define_dir\"" >>confdefs.h
29031
29032  test "$prefix_NONE" && prefix=NONE
29033  test "$exec_prefix_NONE" && exec_prefix=NONE
29034
29035
29036XKBOUTPUT_FIRSTCHAR=`echo $XKBOUTPUT | cut -b 1`
29037if [ x$XKBOUTPUT_FIRSTCHAR != x/ -a x$XKBOUTPUT_FIRSTCHAR != 'x$' ] ; then
29038   XKBOUTPUT="$XKB_BASE_DIRECTORY/$XKBOUTPUT"
29039fi
29040
29041
29042XKBOUTPUT=`echo $XKBOUTPUT/ | $SED 's|/*$|/|'`
29043XKB_COMPILED_DIR=`echo $XKBOUTPUT | $SED 's|/*$||'`
29044
29045  prefix_NONE=
29046  exec_prefix_NONE=
29047  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
29048  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
29049  eval ac_define_dir="\"$XKBOUTPUT\""
29050  eval ac_define_dir="\"$ac_define_dir\""
29051  XKM_OUTPUT_DIR="$ac_define_dir"
29052
29053
29054printf "%s\n" "#define XKM_OUTPUT_DIR \"$ac_define_dir\"" >>confdefs.h
29055
29056  test "$prefix_NONE" && prefix=NONE
29057  test "$exec_prefix_NONE" && exec_prefix=NONE
29058
29059
29060
29061if test "x$XKB_DFLT_RULES" = x; then
29062    case $host_os in
29063    linux*)
29064                XKB_DFLT_RULES="evdev"
29065        ;;
29066    *)
29067        XKB_DFLT_RULES="base"
29068        ;;
29069    esac
29070fi
29071
29072printf "%s\n" "#define XKB_DFLT_RULES \"$XKB_DFLT_RULES\"" >>confdefs.h
29073
29074
29075printf "%s\n" "#define XKB_DFLT_MODEL \"$XKB_DFLT_MODEL\"" >>confdefs.h
29076
29077
29078printf "%s\n" "#define XKB_DFLT_LAYOUT \"$XKB_DFLT_LAYOUT\"" >>confdefs.h
29079
29080
29081printf "%s\n" "#define XKB_DFLT_VARIANT \"$XKB_DFLT_VARIANT\"" >>confdefs.h
29082
29083
29084printf "%s\n" "#define XKB_DFLT_OPTIONS \"$XKB_DFLT_OPTIONS\"" >>confdefs.h
29085
29086
29087
29088
29089
29090
29091
29092XKB_LIB='$(top_builddir)/xkb/libxkb.la'
29093XKB_STUB_LIB='$(top_builddir)/xkb/libxkbstubs.la'
29094REQUIRED_MODULES="$REQUIRED_MODULES xkbfile"
29095
29096
29097pkg_failed=no
29098{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XDMCP" >&5
29099printf %s "checking for XDMCP... " >&6; }
29100
29101if test -n "$XDMCP_CFLAGS"; then
29102    pkg_cv_XDMCP_CFLAGS="$XDMCP_CFLAGS"
29103 elif test -n "$PKG_CONFIG"; then
29104    if test -n "$PKG_CONFIG" && \
29105    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xdmcp\""; } >&5
29106  ($PKG_CONFIG --exists --print-errors "xdmcp") 2>&5
29107  ac_status=$?
29108  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29109  test $ac_status = 0; }; then
29110  pkg_cv_XDMCP_CFLAGS=`$PKG_CONFIG --cflags "xdmcp" 2>/dev/null`
29111		      test "x$?" != "x0" && pkg_failed=yes
29112else
29113  pkg_failed=yes
29114fi
29115 else
29116    pkg_failed=untried
29117fi
29118if test -n "$XDMCP_LIBS"; then
29119    pkg_cv_XDMCP_LIBS="$XDMCP_LIBS"
29120 elif test -n "$PKG_CONFIG"; then
29121    if test -n "$PKG_CONFIG" && \
29122    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xdmcp\""; } >&5
29123  ($PKG_CONFIG --exists --print-errors "xdmcp") 2>&5
29124  ac_status=$?
29125  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29126  test $ac_status = 0; }; then
29127  pkg_cv_XDMCP_LIBS=`$PKG_CONFIG --libs "xdmcp" 2>/dev/null`
29128		      test "x$?" != "x0" && pkg_failed=yes
29129else
29130  pkg_failed=yes
29131fi
29132 else
29133    pkg_failed=untried
29134fi
29135
29136
29137
29138if test $pkg_failed = yes; then
29139   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29140printf "%s\n" "no" >&6; }
29141
29142if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29143        _pkg_short_errors_supported=yes
29144else
29145        _pkg_short_errors_supported=no
29146fi
29147        if test $_pkg_short_errors_supported = yes; then
29148	        XDMCP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xdmcp" 2>&1`
29149        else
29150	        XDMCP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xdmcp" 2>&1`
29151        fi
29152	# Put the nasty error message in config.log where it belongs
29153	echo "$XDMCP_PKG_ERRORS" >&5
29154
29155	have_libxdmcp="no"
29156elif test $pkg_failed = untried; then
29157     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29158printf "%s\n" "no" >&6; }
29159	have_libxdmcp="no"
29160else
29161	XDMCP_CFLAGS=$pkg_cv_XDMCP_CFLAGS
29162	XDMCP_LIBS=$pkg_cv_XDMCP_LIBS
29163        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29164printf "%s\n" "yes" >&6; }
29165	have_libxdmcp="yes"
29166fi
29167if test "x$XDMCP" = xauto; then
29168	if test "x$have_libxdmcp" = xyes; then
29169		XDMCP=yes
29170	else
29171		XDMCP=no
29172	fi
29173fi
29174if test "x$XDMAUTH" = xauto; then
29175	if test "x$have_libxdmcp" = xyes; then
29176		XDMAUTH=yes
29177	else
29178		XDMAUTH=no
29179	fi
29180fi
29181
29182 if test "x$XDMCP" = xyes; then
29183  XDMCP_TRUE=
29184  XDMCP_FALSE='#'
29185else
29186  XDMCP_TRUE='#'
29187  XDMCP_FALSE=
29188fi
29189
29190if test "x$XDMCP" = xyes; then
29191
29192printf "%s\n" "#define XDMCP 1" >>confdefs.h
29193
29194	REQUIRED_LIBS="$REQUIRED_LIBS xdmcp"
29195	XDMCP_MODULES="xdmcp"
29196fi
29197
29198 if test "x$XDMAUTH" = xyes; then
29199  XDMAUTH_TRUE=
29200  XDMAUTH_FALSE='#'
29201else
29202  XDMAUTH_TRUE='#'
29203  XDMAUTH_FALSE=
29204fi
29205
29206if test "x$XDMAUTH" = xyes; then
29207
29208printf "%s\n" "#define HASXDMAUTH 1" >>confdefs.h
29209
29210	if ! test "x$XDMCP" = xyes; then
29211		REQUIRED_LIBS="$REQUIRED_LIBS xdmcp"
29212		XDMCP_MODULES="xdmcp"
29213	fi
29214fi
29215
29216if test "x$XF86VIDMODE" = xauto; then
29217	if test -n "$PKG_CONFIG" && \
29218    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$VIDMODEPROTO\""; } >&5
29219  ($PKG_CONFIG --exists --print-errors "$VIDMODEPROTO") 2>&5
29220  ac_status=$?
29221  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29222  test $ac_status = 0; }; then
29223  XF86VIDMODE=yes
29224else
29225  XF86VIDMODE=no
29226fi
29227fi
29228if test "x$XF86VIDMODE" = xyes; then
29229
29230printf "%s\n" "#define XF86VIDMODE 1" >>confdefs.h
29231
29232fi
29233 if test "x$XF86VIDMODE" = xyes; then
29234  XF86VIDMODE_TRUE=
29235  XF86VIDMODE_FALSE='#'
29236else
29237  XF86VIDMODE_TRUE='#'
29238  XF86VIDMODE_FALSE=
29239fi
29240
29241
29242
29243  prefix_NONE=
29244  exec_prefix_NONE=
29245  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
29246  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
29247  eval ac_define_dir="\"$FONTPATH\""
29248  eval ac_define_dir="\"$ac_define_dir\""
29249  COMPILEDDEFAULTFONTPATH="$ac_define_dir"
29250
29251
29252printf "%s\n" "#define COMPILEDDEFAULTFONTPATH \"$ac_define_dir\"" >>confdefs.h
29253
29254  test "$prefix_NONE" && prefix=NONE
29255  test "$exec_prefix_NONE" && exec_prefix=NONE
29256
29257
29258  prefix_NONE=
29259  exec_prefix_NONE=
29260  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
29261  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
29262  eval ac_define_dir="\"$SERVERCONFIG\""
29263  eval ac_define_dir="\"$ac_define_dir\""
29264  SERVER_MISC_CONFIG_PATH="$ac_define_dir"
29265
29266
29267printf "%s\n" "#define SERVER_MISC_CONFIG_PATH \"$ac_define_dir\"" >>confdefs.h
29268
29269  test "$prefix_NONE" && prefix=NONE
29270  test "$exec_prefix_NONE" && exec_prefix=NONE
29271
29272
29273  prefix_NONE=
29274  exec_prefix_NONE=
29275  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
29276  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
29277  eval ac_define_dir="\"$FONTROOTDIR\""
29278  eval ac_define_dir="\"$ac_define_dir\""
29279  BASE_FONT_PATH="$ac_define_dir"
29280
29281
29282printf "%s\n" "#define BASE_FONT_PATH \"$ac_define_dir\"" >>confdefs.h
29283
29284  test "$prefix_NONE" && prefix=NONE
29285  test "$exec_prefix_NONE" && exec_prefix=NONE
29286
29287dridriverdir=`$PKG_CONFIG --variable=dridriverdir dri`
29288
29289  prefix_NONE=
29290  exec_prefix_NONE=
29291  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
29292  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
29293  eval ac_define_dir="\"$dridriverdir\""
29294  eval ac_define_dir="\"$ac_define_dir\""
29295  DRI_DRIVER_PATH="$ac_define_dir"
29296
29297
29298printf "%s\n" "#define DRI_DRIVER_PATH \"$ac_define_dir\"" >>confdefs.h
29299
29300  test "$prefix_NONE" && prefix=NONE
29301  test "$exec_prefix_NONE" && exec_prefix=NONE
29302
29303
29304printf "%s\n" "#define XVENDORNAME \"$VENDOR_NAME\"" >>confdefs.h
29305
29306
29307printf "%s\n" "#define XVENDORNAMESHORT \"$VENDOR_NAME_SHORT\"" >>confdefs.h
29308
29309
29310printf "%s\n" "#define XORG_MAN_VERSION \"$VENDOR_MAN_VERSION\"" >>confdefs.h
29311
29312
29313printf "%s\n" "#define BUILDERADDR \"$BUILDERADDR\"" >>confdefs.h
29314
29315
29316
29317printf "%s\n" "#define BUILDERSTRING \"$BUILDERSTRING\"" >>confdefs.h
29318
29319
29320
29321
29322printf "%s\n" "#define VENDOR_NAME \"$VENDOR_NAME\"" >>confdefs.h
29323
29324
29325printf "%s\n" "#define VENDOR_NAME_SHORT \"$VENDOR_NAME_SHORT\"" >>confdefs.h
29326
29327
29328printf "%s\n" "#define VENDOR_RELEASE $VENDOR_RELEASE" >>confdefs.h
29329
29330
29331printf "%s\n" "#define VENDOR_MAN_VERSION \"$VENDOR_MAN_VERSION\"" >>confdefs.h
29332
29333
29334if test "x$DEBUGGING" = xyes; then
29335
29336printf "%s\n" "#define DEBUG 1" >>confdefs.h
29337
29338fi
29339 if test "x$DEBUGGING" = xyes; then
29340  DEBUG_TRUE=
29341  DEBUG_FALSE='#'
29342else
29343  DEBUG_TRUE='#'
29344  DEBUG_FALSE=
29345fi
29346
29347
29348
29349printf "%s\n" "#define XTEST 1" >>confdefs.h
29350
29351
29352printf "%s\n" "#define XSYNC 1" >>confdefs.h
29353
29354
29355printf "%s\n" "#define XCMISC 1" >>confdefs.h
29356
29357
29358printf "%s\n" "#define BIGREQS 1" >>confdefs.h
29359
29360
29361if test "x$SPECIAL_DTRACE_OBJECTS" = "xyes" ; then
29362  DIX_LIB='$(top_builddir)/dix/dix.O'
29363  OS_LIB='$(top_builddir)/os/os.O $(SHA1_LIBS) $(DLOPEN_LIBS) $(LIBUNWIND_LIBS)'
29364else
29365  DIX_LIB='$(top_builddir)/dix/libdix.la'
29366  OS_LIB='$(top_builddir)/os/libos.la'
29367fi
29368
29369
29370
29371MAIN_LIB='$(top_builddir)/dix/libmain.la'
29372
29373
29374MI_LIB='$(top_builddir)/mi/libmi.la'
29375MI_EXT_LIB='$(top_builddir)/mi/libmiext.la'
29376MI_INC='-I$(top_srcdir)/mi'
29377FB_LIB='$(top_builddir)/fb/libfb.la'
29378FB_INC='-I$(top_srcdir)/fb'
29379MIEXT_SHADOW_INC='-I$(top_srcdir)/miext/shadow'
29380MIEXT_SHADOW_LIB='$(top_builddir)/miext/shadow/libshadow.la'
29381MIEXT_SYNC_INC='-I$(top_srcdir)/miext/sync'
29382MIEXT_SYNC_LIB='$(top_builddir)/miext/sync/libsync.la'
29383CORE_INCS='-I$(top_srcdir)/include -I$(top_builddir)/include'
29384
29385# SHA1 hashing
29386
29387# Check whether --with-sha1 was given.
29388if test ${with_sha1+y}
29389then :
29390  withval=$with_sha1;
29391fi
29392
29393ac_fn_c_check_func "$LINENO" "SHA1Init" "ac_cv_func_SHA1Init"
29394if test "x$ac_cv_func_SHA1Init" = xyes
29395then :
29396  HAVE_SHA1_IN_LIBC=yes
29397fi
29398
29399if test "x$with_sha1" = x && test "x$HAVE_SHA1_IN_LIBC" = xyes; then
29400	with_sha1=libc
29401fi
29402if test "x$with_sha1" = xlibc && test "x$HAVE_SHA1_IN_LIBC" != xyes; then
29403	as_fn_error $? "libc requested but not found" "$LINENO" 5
29404fi
29405if test "x$with_sha1" = xlibc; then
29406
29407printf "%s\n" "#define HAVE_SHA1_IN_LIBC 1" >>confdefs.h
29408
29409	SHA1_LIBS=""
29410fi
29411ac_fn_c_check_func "$LINENO" "CC_SHA1_Init" "ac_cv_func_CC_SHA1_Init"
29412if test "x$ac_cv_func_CC_SHA1_Init" = xyes
29413then :
29414  HAVE_SHA1_IN_COMMONCRYPTO=yes
29415fi
29416
29417if test "x$with_sha1" = x && test "x$HAVE_SHA1_IN_COMMONCRYPTO" = xyes; then
29418	with_sha1=CommonCrypto
29419fi
29420if test "x$with_sha1" = xCommonCrypto && test "x$HAVE_SHA1_IN_COMMONCRYPTO" != xyes; then
29421	as_fn_error $? "CommonCrypto requested but not found" "$LINENO" 5
29422fi
29423if test "x$with_sha1" = xCommonCrypto; then
29424
29425printf "%s\n" "#define HAVE_SHA1_IN_COMMONCRYPTO 1" >>confdefs.h
29426
29427	SHA1_LIBS=""
29428fi
29429ac_fn_c_check_header_compile "$LINENO" "wincrypt.h" "ac_cv_header_wincrypt_h" "#include <windows.h>
29430"
29431if test "x$ac_cv_header_wincrypt_h" = xyes
29432then :
29433  HAVE_SHA1_IN_CRYPTOAPI=yes
29434fi
29435
29436if test "x$with_sha1" = x && test "x$HAVE_SHA1_IN_CRYPTOAPI" = xyes; then
29437	with_sha1=CryptoAPI
29438fi
29439if test "x$with_sha1" = xCryptoAPI && test "x$HAVE_SHA1_IN_CRYPTOAPI" != xyes; then
29440	as_fn_error $? "CryptoAPI requested but not found" "$LINENO" 5
29441fi
29442if test "x$with_sha1" = xCryptoAPI; then
29443
29444printf "%s\n" "#define HAVE_SHA1_IN_CRYPTOAPI 1" >>confdefs.h
29445
29446	SHA1_LIBS=""
29447fi
29448{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SHA1Init in -lmd" >&5
29449printf %s "checking for SHA1Init in -lmd... " >&6; }
29450if test ${ac_cv_lib_md_SHA1Init+y}
29451then :
29452  printf %s "(cached) " >&6
29453else $as_nop
29454  ac_check_lib_save_LIBS=$LIBS
29455LIBS="-lmd  $LIBS"
29456cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29457/* end confdefs.h.  */
29458
29459/* Override any GCC internal prototype to avoid an error.
29460   Use char because int might match the return type of a GCC
29461   builtin and then its argument prototype would still apply.  */
29462char SHA1Init ();
29463int
29464main (void)
29465{
29466return SHA1Init ();
29467  ;
29468  return 0;
29469}
29470_ACEOF
29471if ac_fn_c_try_link "$LINENO"
29472then :
29473  ac_cv_lib_md_SHA1Init=yes
29474else $as_nop
29475  ac_cv_lib_md_SHA1Init=no
29476fi
29477rm -f core conftest.err conftest.$ac_objext conftest.beam \
29478    conftest$ac_exeext conftest.$ac_ext
29479LIBS=$ac_check_lib_save_LIBS
29480fi
29481{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_md_SHA1Init" >&5
29482printf "%s\n" "$ac_cv_lib_md_SHA1Init" >&6; }
29483if test "x$ac_cv_lib_md_SHA1Init" = xyes
29484then :
29485  HAVE_LIBMD=yes
29486fi
29487
29488if test "x$with_sha1" = x && test "x$HAVE_LIBMD" = xyes; then
29489	with_sha1=libmd
29490fi
29491if test "x$with_sha1" = xlibmd && test "x$HAVE_LIBMD" != xyes; then
29492	as_fn_error $? "libmd requested but not found" "$LINENO" 5
29493fi
29494if test "x$with_sha1" = xlibmd; then
29495
29496printf "%s\n" "#define HAVE_SHA1_IN_LIBMD 1" >>confdefs.h
29497
29498	SHA1_LIBS=-lmd
29499fi
29500
29501pkg_failed=no
29502{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LIBSHA1" >&5
29503printf %s "checking for LIBSHA1... " >&6; }
29504
29505if test -n "$LIBSHA1_CFLAGS"; then
29506    pkg_cv_LIBSHA1_CFLAGS="$LIBSHA1_CFLAGS"
29507 elif test -n "$PKG_CONFIG"; then
29508    if test -n "$PKG_CONFIG" && \
29509    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsha1\""; } >&5
29510  ($PKG_CONFIG --exists --print-errors "libsha1") 2>&5
29511  ac_status=$?
29512  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29513  test $ac_status = 0; }; then
29514  pkg_cv_LIBSHA1_CFLAGS=`$PKG_CONFIG --cflags "libsha1" 2>/dev/null`
29515		      test "x$?" != "x0" && pkg_failed=yes
29516else
29517  pkg_failed=yes
29518fi
29519 else
29520    pkg_failed=untried
29521fi
29522if test -n "$LIBSHA1_LIBS"; then
29523    pkg_cv_LIBSHA1_LIBS="$LIBSHA1_LIBS"
29524 elif test -n "$PKG_CONFIG"; then
29525    if test -n "$PKG_CONFIG" && \
29526    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsha1\""; } >&5
29527  ($PKG_CONFIG --exists --print-errors "libsha1") 2>&5
29528  ac_status=$?
29529  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29530  test $ac_status = 0; }; then
29531  pkg_cv_LIBSHA1_LIBS=`$PKG_CONFIG --libs "libsha1" 2>/dev/null`
29532		      test "x$?" != "x0" && pkg_failed=yes
29533else
29534  pkg_failed=yes
29535fi
29536 else
29537    pkg_failed=untried
29538fi
29539
29540
29541
29542if test $pkg_failed = yes; then
29543   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29544printf "%s\n" "no" >&6; }
29545
29546if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29547        _pkg_short_errors_supported=yes
29548else
29549        _pkg_short_errors_supported=no
29550fi
29551        if test $_pkg_short_errors_supported = yes; then
29552	        LIBSHA1_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsha1" 2>&1`
29553        else
29554	        LIBSHA1_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsha1" 2>&1`
29555        fi
29556	# Put the nasty error message in config.log where it belongs
29557	echo "$LIBSHA1_PKG_ERRORS" >&5
29558
29559	HAVE_LIBSHA1=no
29560elif test $pkg_failed = untried; then
29561     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29562printf "%s\n" "no" >&6; }
29563	HAVE_LIBSHA1=no
29564else
29565	LIBSHA1_CFLAGS=$pkg_cv_LIBSHA1_CFLAGS
29566	LIBSHA1_LIBS=$pkg_cv_LIBSHA1_LIBS
29567        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29568printf "%s\n" "yes" >&6; }
29569	HAVE_LIBSHA1=yes
29570fi
29571if test "x$with_sha1" = x && test "x$HAVE_LIBSHA1" = xyes; then
29572   with_sha1=libsha1
29573fi
29574if test "x$with_sha1" = xlibsha1 && test "x$HAVE_LIBSHA1" != xyes; then
29575	as_fn_error $? "libsha1 requested but not found" "$LINENO" 5
29576fi
29577if test "x$with_sha1" = xlibsha1; then
29578
29579printf "%s\n" "#define HAVE_SHA1_IN_LIBSHA1 1" >>confdefs.h
29580
29581	SHA1_LIBS=-lsha1
29582fi
29583{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nettle_sha1_init in -lnettle" >&5
29584printf %s "checking for nettle_sha1_init in -lnettle... " >&6; }
29585if test ${ac_cv_lib_nettle_nettle_sha1_init+y}
29586then :
29587  printf %s "(cached) " >&6
29588else $as_nop
29589  ac_check_lib_save_LIBS=$LIBS
29590LIBS="-lnettle  $LIBS"
29591cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29592/* end confdefs.h.  */
29593
29594/* Override any GCC internal prototype to avoid an error.
29595   Use char because int might match the return type of a GCC
29596   builtin and then its argument prototype would still apply.  */
29597char nettle_sha1_init ();
29598int
29599main (void)
29600{
29601return nettle_sha1_init ();
29602  ;
29603  return 0;
29604}
29605_ACEOF
29606if ac_fn_c_try_link "$LINENO"
29607then :
29608  ac_cv_lib_nettle_nettle_sha1_init=yes
29609else $as_nop
29610  ac_cv_lib_nettle_nettle_sha1_init=no
29611fi
29612rm -f core conftest.err conftest.$ac_objext conftest.beam \
29613    conftest$ac_exeext conftest.$ac_ext
29614LIBS=$ac_check_lib_save_LIBS
29615fi
29616{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nettle_nettle_sha1_init" >&5
29617printf "%s\n" "$ac_cv_lib_nettle_nettle_sha1_init" >&6; }
29618if test "x$ac_cv_lib_nettle_nettle_sha1_init" = xyes
29619then :
29620  HAVE_LIBNETTLE=yes
29621fi
29622
29623if test "x$with_sha1" = x && test "x$HAVE_LIBNETTLE" = xyes; then
29624	with_sha1=libnettle
29625fi
29626if test "x$with_sha1" = xlibnettle && test "x$HAVE_LIBNETTLE" != xyes; then
29627	as_fn_error $? "libnettle requested but not found" "$LINENO" 5
29628fi
29629if test "x$with_sha1" = xlibnettle; then
29630
29631printf "%s\n" "#define HAVE_SHA1_IN_LIBNETTLE 1" >>confdefs.h
29632
29633	SHA1_LIBS=-lnettle
29634fi
29635{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gcry_md_open in -lgcrypt" >&5
29636printf %s "checking for gcry_md_open in -lgcrypt... " >&6; }
29637if test ${ac_cv_lib_gcrypt_gcry_md_open+y}
29638then :
29639  printf %s "(cached) " >&6
29640else $as_nop
29641  ac_check_lib_save_LIBS=$LIBS
29642LIBS="-lgcrypt  $LIBS"
29643cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29644/* end confdefs.h.  */
29645
29646/* Override any GCC internal prototype to avoid an error.
29647   Use char because int might match the return type of a GCC
29648   builtin and then its argument prototype would still apply.  */
29649char gcry_md_open ();
29650int
29651main (void)
29652{
29653return gcry_md_open ();
29654  ;
29655  return 0;
29656}
29657_ACEOF
29658if ac_fn_c_try_link "$LINENO"
29659then :
29660  ac_cv_lib_gcrypt_gcry_md_open=yes
29661else $as_nop
29662  ac_cv_lib_gcrypt_gcry_md_open=no
29663fi
29664rm -f core conftest.err conftest.$ac_objext conftest.beam \
29665    conftest$ac_exeext conftest.$ac_ext
29666LIBS=$ac_check_lib_save_LIBS
29667fi
29668{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcrypt_gcry_md_open" >&5
29669printf "%s\n" "$ac_cv_lib_gcrypt_gcry_md_open" >&6; }
29670if test "x$ac_cv_lib_gcrypt_gcry_md_open" = xyes
29671then :
29672  HAVE_LIBGCRYPT=yes
29673fi
29674
29675if test "x$with_sha1" = x && test "x$HAVE_LIBGCRYPT" = xyes; then
29676	with_sha1=libgcrypt
29677fi
29678if test "x$with_sha1" = xlibgcrypt && test "x$HAVE_LIBGCRYPT" != xyes; then
29679	as_fn_error $? "libgcrypt requested but not found" "$LINENO" 5
29680fi
29681if test "x$with_sha1" = xlibgcrypt; then
29682
29683printf "%s\n" "#define HAVE_SHA1_IN_LIBGCRYPT 1" >>confdefs.h
29684
29685	SHA1_LIBS=-lgcrypt
29686fi
29687# We don't need all of the OpenSSL libraries, just libcrypto
29688{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SHA1_Init in -lcrypto" >&5
29689printf %s "checking for SHA1_Init in -lcrypto... " >&6; }
29690if test ${ac_cv_lib_crypto_SHA1_Init+y}
29691then :
29692  printf %s "(cached) " >&6
29693else $as_nop
29694  ac_check_lib_save_LIBS=$LIBS
29695LIBS="-lcrypto  $LIBS"
29696cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29697/* end confdefs.h.  */
29698
29699/* Override any GCC internal prototype to avoid an error.
29700   Use char because int might match the return type of a GCC
29701   builtin and then its argument prototype would still apply.  */
29702char SHA1_Init ();
29703int
29704main (void)
29705{
29706return SHA1_Init ();
29707  ;
29708  return 0;
29709}
29710_ACEOF
29711if ac_fn_c_try_link "$LINENO"
29712then :
29713  ac_cv_lib_crypto_SHA1_Init=yes
29714else $as_nop
29715  ac_cv_lib_crypto_SHA1_Init=no
29716fi
29717rm -f core conftest.err conftest.$ac_objext conftest.beam \
29718    conftest$ac_exeext conftest.$ac_ext
29719LIBS=$ac_check_lib_save_LIBS
29720fi
29721{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_SHA1_Init" >&5
29722printf "%s\n" "$ac_cv_lib_crypto_SHA1_Init" >&6; }
29723if test "x$ac_cv_lib_crypto_SHA1_Init" = xyes
29724then :
29725  HAVE_LIBCRYPTO=yes
29726fi
29727
29728
29729pkg_failed=no
29730{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OPENSSL" >&5
29731printf %s "checking for OPENSSL... " >&6; }
29732
29733if test -n "$OPENSSL_CFLAGS"; then
29734    pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
29735 elif test -n "$PKG_CONFIG"; then
29736    if test -n "$PKG_CONFIG" && \
29737    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5
29738  ($PKG_CONFIG --exists --print-errors "openssl") 2>&5
29739  ac_status=$?
29740  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29741  test $ac_status = 0; }; then
29742  pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl" 2>/dev/null`
29743		      test "x$?" != "x0" && pkg_failed=yes
29744else
29745  pkg_failed=yes
29746fi
29747 else
29748    pkg_failed=untried
29749fi
29750if test -n "$OPENSSL_LIBS"; then
29751    pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
29752 elif test -n "$PKG_CONFIG"; then
29753    if test -n "$PKG_CONFIG" && \
29754    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5
29755  ($PKG_CONFIG --exists --print-errors "openssl") 2>&5
29756  ac_status=$?
29757  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29758  test $ac_status = 0; }; then
29759  pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl" 2>/dev/null`
29760		      test "x$?" != "x0" && pkg_failed=yes
29761else
29762  pkg_failed=yes
29763fi
29764 else
29765    pkg_failed=untried
29766fi
29767
29768
29769
29770if test $pkg_failed = yes; then
29771   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29772printf "%s\n" "no" >&6; }
29773
29774if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29775        _pkg_short_errors_supported=yes
29776else
29777        _pkg_short_errors_supported=no
29778fi
29779        if test $_pkg_short_errors_supported = yes; then
29780	        OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl" 2>&1`
29781        else
29782	        OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl" 2>&1`
29783        fi
29784	# Put the nasty error message in config.log where it belongs
29785	echo "$OPENSSL_PKG_ERRORS" >&5
29786
29787	HAVE_OPENSSL_PKC=no
29788elif test $pkg_failed = untried; then
29789     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29790printf "%s\n" "no" >&6; }
29791	HAVE_OPENSSL_PKC=no
29792else
29793	OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
29794	OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
29795        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29796printf "%s\n" "yes" >&6; }
29797	HAVE_OPENSSL_PKC=yes
29798fi
29799if test "x$HAVE_LIBCRYPTO" = xyes || test "x$HAVE_OPENSSL_PKC" = xyes; then
29800	if test "x$with_sha1" = x; then
29801		with_sha1=libcrypto
29802	fi
29803else
29804	if test "x$with_sha1" = xlibcrypto; then
29805		as_fn_error $? "OpenSSL libcrypto requested but not found" "$LINENO" 5
29806	fi
29807fi
29808if test "x$with_sha1" = xlibcrypto; then
29809	if test "x$HAVE_LIBCRYPTO" = xyes; then
29810		SHA1_LIBS=-lcrypto
29811	else
29812		SHA1_LIBS="$OPENSSL_LIBS"
29813		SHA1_CFLAGS="$OPENSSL_CFLAGS"
29814	fi
29815fi
29816{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SHA1 implementation" >&5
29817printf %s "checking for SHA1 implementation... " >&6; }
29818if test "x$with_sha1" = x; then
29819	as_fn_error $? "No suitable SHA1 implementation found" "$LINENO" 5
29820fi
29821{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sha1" >&5
29822printf "%s\n" "$with_sha1" >&6; }
29823
29824
29825
29826
29827pkg_failed=no
29828{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XSERVERCFLAGS" >&5
29829printf %s "checking for XSERVERCFLAGS... " >&6; }
29830
29831if test -n "$XSERVERCFLAGS_CFLAGS"; then
29832    pkg_cv_XSERVERCFLAGS_CFLAGS="$XSERVERCFLAGS_CFLAGS"
29833 elif test -n "$PKG_CONFIG"; then
29834    if test -n "$PKG_CONFIG" && \
29835    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$REQUIRED_MODULES \$REQUIRED_LIBS\""; } >&5
29836  ($PKG_CONFIG --exists --print-errors "$REQUIRED_MODULES $REQUIRED_LIBS") 2>&5
29837  ac_status=$?
29838  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29839  test $ac_status = 0; }; then
29840  pkg_cv_XSERVERCFLAGS_CFLAGS=`$PKG_CONFIG --cflags "$REQUIRED_MODULES $REQUIRED_LIBS" 2>/dev/null`
29841		      test "x$?" != "x0" && pkg_failed=yes
29842else
29843  pkg_failed=yes
29844fi
29845 else
29846    pkg_failed=untried
29847fi
29848if test -n "$XSERVERCFLAGS_LIBS"; then
29849    pkg_cv_XSERVERCFLAGS_LIBS="$XSERVERCFLAGS_LIBS"
29850 elif test -n "$PKG_CONFIG"; then
29851    if test -n "$PKG_CONFIG" && \
29852    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$REQUIRED_MODULES \$REQUIRED_LIBS\""; } >&5
29853  ($PKG_CONFIG --exists --print-errors "$REQUIRED_MODULES $REQUIRED_LIBS") 2>&5
29854  ac_status=$?
29855  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29856  test $ac_status = 0; }; then
29857  pkg_cv_XSERVERCFLAGS_LIBS=`$PKG_CONFIG --libs "$REQUIRED_MODULES $REQUIRED_LIBS" 2>/dev/null`
29858		      test "x$?" != "x0" && pkg_failed=yes
29859else
29860  pkg_failed=yes
29861fi
29862 else
29863    pkg_failed=untried
29864fi
29865
29866
29867
29868if test $pkg_failed = yes; then
29869   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29870printf "%s\n" "no" >&6; }
29871
29872if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29873        _pkg_short_errors_supported=yes
29874else
29875        _pkg_short_errors_supported=no
29876fi
29877        if test $_pkg_short_errors_supported = yes; then
29878	        XSERVERCFLAGS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$REQUIRED_MODULES $REQUIRED_LIBS" 2>&1`
29879        else
29880	        XSERVERCFLAGS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$REQUIRED_MODULES $REQUIRED_LIBS" 2>&1`
29881        fi
29882	# Put the nasty error message in config.log where it belongs
29883	echo "$XSERVERCFLAGS_PKG_ERRORS" >&5
29884
29885	as_fn_error $? "Package requirements ($REQUIRED_MODULES $REQUIRED_LIBS) were not met:
29886
29887$XSERVERCFLAGS_PKG_ERRORS
29888
29889Consider adjusting the PKG_CONFIG_PATH environment variable if you
29890installed software in a non-standard prefix.
29891
29892Alternatively, you may set the environment variables XSERVERCFLAGS_CFLAGS
29893and XSERVERCFLAGS_LIBS to avoid the need to call pkg-config.
29894See the pkg-config man page for more details." "$LINENO" 5
29895elif test $pkg_failed = untried; then
29896     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29897printf "%s\n" "no" >&6; }
29898	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
29899printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
29900as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
29901is in your PATH or set the PKG_CONFIG environment variable to the full
29902path to pkg-config.
29903
29904Alternatively, you may set the environment variables XSERVERCFLAGS_CFLAGS
29905and XSERVERCFLAGS_LIBS to avoid the need to call pkg-config.
29906See the pkg-config man page for more details.
29907
29908To get pkg-config, see <http://pkg-config.freedesktop.org/>.
29909See \`config.log' for more details" "$LINENO" 5; }
29910else
29911	XSERVERCFLAGS_CFLAGS=$pkg_cv_XSERVERCFLAGS_CFLAGS
29912	XSERVERCFLAGS_LIBS=$pkg_cv_XSERVERCFLAGS_LIBS
29913        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29914printf "%s\n" "yes" >&6; }
29915
29916fi
29917
29918pkg_failed=no
29919{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XSERVERLIBS" >&5
29920printf %s "checking for XSERVERLIBS... " >&6; }
29921
29922if test -n "$XSERVERLIBS_CFLAGS"; then
29923    pkg_cv_XSERVERLIBS_CFLAGS="$XSERVERLIBS_CFLAGS"
29924 elif test -n "$PKG_CONFIG"; then
29925    if test -n "$PKG_CONFIG" && \
29926    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$REQUIRED_LIBS\""; } >&5
29927  ($PKG_CONFIG --exists --print-errors "$REQUIRED_LIBS") 2>&5
29928  ac_status=$?
29929  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29930  test $ac_status = 0; }; then
29931  pkg_cv_XSERVERLIBS_CFLAGS=`$PKG_CONFIG --cflags "$REQUIRED_LIBS" 2>/dev/null`
29932		      test "x$?" != "x0" && pkg_failed=yes
29933else
29934  pkg_failed=yes
29935fi
29936 else
29937    pkg_failed=untried
29938fi
29939if test -n "$XSERVERLIBS_LIBS"; then
29940    pkg_cv_XSERVERLIBS_LIBS="$XSERVERLIBS_LIBS"
29941 elif test -n "$PKG_CONFIG"; then
29942    if test -n "$PKG_CONFIG" && \
29943    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$REQUIRED_LIBS\""; } >&5
29944  ($PKG_CONFIG --exists --print-errors "$REQUIRED_LIBS") 2>&5
29945  ac_status=$?
29946  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29947  test $ac_status = 0; }; then
29948  pkg_cv_XSERVERLIBS_LIBS=`$PKG_CONFIG --libs "$REQUIRED_LIBS" 2>/dev/null`
29949		      test "x$?" != "x0" && pkg_failed=yes
29950else
29951  pkg_failed=yes
29952fi
29953 else
29954    pkg_failed=untried
29955fi
29956
29957
29958
29959if test $pkg_failed = yes; then
29960   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29961printf "%s\n" "no" >&6; }
29962
29963if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29964        _pkg_short_errors_supported=yes
29965else
29966        _pkg_short_errors_supported=no
29967fi
29968        if test $_pkg_short_errors_supported = yes; then
29969	        XSERVERLIBS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$REQUIRED_LIBS" 2>&1`
29970        else
29971	        XSERVERLIBS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$REQUIRED_LIBS" 2>&1`
29972        fi
29973	# Put the nasty error message in config.log where it belongs
29974	echo "$XSERVERLIBS_PKG_ERRORS" >&5
29975
29976	as_fn_error $? "Package requirements ($REQUIRED_LIBS) were not met:
29977
29978$XSERVERLIBS_PKG_ERRORS
29979
29980Consider adjusting the PKG_CONFIG_PATH environment variable if you
29981installed software in a non-standard prefix.
29982
29983Alternatively, you may set the environment variables XSERVERLIBS_CFLAGS
29984and XSERVERLIBS_LIBS to avoid the need to call pkg-config.
29985See the pkg-config man page for more details." "$LINENO" 5
29986elif test $pkg_failed = untried; then
29987     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29988printf "%s\n" "no" >&6; }
29989	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
29990printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
29991as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
29992is in your PATH or set the PKG_CONFIG environment variable to the full
29993path to pkg-config.
29994
29995Alternatively, you may set the environment variables XSERVERLIBS_CFLAGS
29996and XSERVERLIBS_LIBS to avoid the need to call pkg-config.
29997See the pkg-config man page for more details.
29998
29999To get pkg-config, see <http://pkg-config.freedesktop.org/>.
30000See \`config.log' for more details" "$LINENO" 5; }
30001else
30002	XSERVERLIBS_CFLAGS=$pkg_cv_XSERVERLIBS_CFLAGS
30003	XSERVERLIBS_LIBS=$pkg_cv_XSERVERLIBS_LIBS
30004        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30005printf "%s\n" "yes" >&6; }
30006
30007fi
30008
30009
30010pkg_failed=no
30011{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LIBUNWIND" >&5
30012printf %s "checking for LIBUNWIND... " >&6; }
30013
30014if test -n "$LIBUNWIND_CFLAGS"; then
30015    pkg_cv_LIBUNWIND_CFLAGS="$LIBUNWIND_CFLAGS"
30016 elif test -n "$PKG_CONFIG"; then
30017    if test -n "$PKG_CONFIG" && \
30018    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libunwind\""; } >&5
30019  ($PKG_CONFIG --exists --print-errors "libunwind") 2>&5
30020  ac_status=$?
30021  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30022  test $ac_status = 0; }; then
30023  pkg_cv_LIBUNWIND_CFLAGS=`$PKG_CONFIG --cflags "libunwind" 2>/dev/null`
30024		      test "x$?" != "x0" && pkg_failed=yes
30025else
30026  pkg_failed=yes
30027fi
30028 else
30029    pkg_failed=untried
30030fi
30031if test -n "$LIBUNWIND_LIBS"; then
30032    pkg_cv_LIBUNWIND_LIBS="$LIBUNWIND_LIBS"
30033 elif test -n "$PKG_CONFIG"; then
30034    if test -n "$PKG_CONFIG" && \
30035    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libunwind\""; } >&5
30036  ($PKG_CONFIG --exists --print-errors "libunwind") 2>&5
30037  ac_status=$?
30038  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30039  test $ac_status = 0; }; then
30040  pkg_cv_LIBUNWIND_LIBS=`$PKG_CONFIG --libs "libunwind" 2>/dev/null`
30041		      test "x$?" != "x0" && pkg_failed=yes
30042else
30043  pkg_failed=yes
30044fi
30045 else
30046    pkg_failed=untried
30047fi
30048
30049
30050
30051if test $pkg_failed = yes; then
30052   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30053printf "%s\n" "no" >&6; }
30054
30055if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30056        _pkg_short_errors_supported=yes
30057else
30058        _pkg_short_errors_supported=no
30059fi
30060        if test $_pkg_short_errors_supported = yes; then
30061	        LIBUNWIND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libunwind" 2>&1`
30062        else
30063	        LIBUNWIND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libunwind" 2>&1`
30064        fi
30065	# Put the nasty error message in config.log where it belongs
30066	echo "$LIBUNWIND_PKG_ERRORS" >&5
30067
30068	HAVE_LIBUNWIND=no
30069elif test $pkg_failed = untried; then
30070     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30071printf "%s\n" "no" >&6; }
30072	HAVE_LIBUNWIND=no
30073else
30074	LIBUNWIND_CFLAGS=$pkg_cv_LIBUNWIND_CFLAGS
30075	LIBUNWIND_LIBS=$pkg_cv_LIBUNWIND_LIBS
30076        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30077printf "%s\n" "yes" >&6; }
30078	HAVE_LIBUNWIND=yes
30079fi
30080if test "x$LIBUNWIND" = "xauto"; then
30081    LIBUNWIND="$HAVE_LIBUNWIND"
30082fi
30083
30084if test "x$LIBUNWIND" = "xyes"; then
30085    if test "x$HAVE_LIBUNWIND" != "xyes"; then
30086        as_fn_error $? "libunwind requested but not installed." "$LINENO" 5
30087    fi
30088
30089printf "%s\n" "#define HAVE_LIBUNWIND 1" >>confdefs.h
30090
30091fi
30092
30093 if test "x$LIBUNWIND" = xyes; then
30094  HAVE_LIBUNWIND_TRUE=
30095  HAVE_LIBUNWIND_FALSE='#'
30096else
30097  HAVE_LIBUNWIND_TRUE='#'
30098  HAVE_LIBUNWIND_FALSE=
30099fi
30100
30101
30102# Autotools has some unfortunate issues with library handling.  In order to
30103# get a server to rebuild when a dependency in the tree is changed, it must
30104# be listed in SERVERNAME_DEPENDENCIES.  However, no system libraries may be
30105# listed there, or some versions of autotools will break (especially if a -L
30106# is required to find the library).  So, we keep two sets of libraries
30107# detected: NAMESPACE_LIBS for in-tree libraries to be linked against, which
30108# will go into the _DEPENDENCIES and _LDADD of the server, and
30109# NAMESPACE_SYS_LIBS which will go into only the _LDADD.  The
30110# NAMESPACEMODULES_LIBS detected from pkgconfig should always go in
30111# NAMESPACE_SYS_LIBS.
30112#
30113# XSERVER_LIBS is the set of in-tree libraries which all servers require.
30114# XSERVER_SYS_LIBS is the set of out-of-tree libraries which all servers
30115# require.
30116#
30117XSERVER_CFLAGS="${XSERVER_CFLAGS} ${XSERVERCFLAGS_CFLAGS}"
30118XSERVER_LIBS="$DIX_LIB $MI_LIB $OS_LIB"
30119XSERVER_SYS_LIBS="${XSERVERLIBS_LIBS} ${SYS_LIBS} ${LIBS}"
30120
30121
30122
30123UTILS_SYS_LIBS="${SYS_LIBS}"
30124
30125
30126# The Xorg binary needs to export symbols so that they can be used from modules
30127# Some platforms require extra flags to do this.   libtool should set the
30128# necessary flags for each platform when -export-dynamic is passed to it.
30129LD_EXPORT_SYMBOLS_FLAG="-export-dynamic"
30130LD_NO_UNDEFINED_FLAG=
30131XORG_DRIVER_LIBS=
30132case "$host_os" in
30133    cygwin*)
30134	LD_EXPORT_SYMBOLS_FLAG="-Wl,--export-all,--out-implib,lib\$@.a"
30135	LD_NO_UNDEFINED_FLAG="-no-undefined -Wl,\$(top_builddir)/hw/xfree86/libXorg.exe.a"
30136	XORG_DRIVER_LIBS="-lXorg.exe -L\${moduledir} -lshadow -lfb -no-undefined"
30137	CYGWIN=yes
30138	;;
30139    solaris*)
30140	# We use AC_LINK_IFELSE to generate a temporary program conftest$EXEEXT
30141	# that we can link against for testing if the system linker is new
30142	# enough to support -z parent=<program> for verifying loadable modules
30143	# are only calling functions defined in either the loading program or
30144	# the libraries they're linked with.
30145	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30146/* end confdefs.h.  */
30147int main(int argc, char **argv) { return 0; }
30148_ACEOF
30149if ac_fn_c_try_link "$LINENO"
30150then :
30151  mv conftest$EXEEXT conftest.parent
30152	     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-z,parent=conftest.parent -G" >&5
30153printf %s "checking whether the linker accepts -Wl,-z,parent=conftest.parent -G... " >&6; }
30154if test ${xorg_cv_linker_flags__Wl__z_parent_conftest_parent__G+y}
30155then :
30156  printf %s "(cached) " >&6
30157else $as_nop
30158
30159      ax_save_FLAGS=$LDFLAGS
30160      LDFLAGS="-Wl,-z,parent=conftest.parent -G"
30161      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30162/* end confdefs.h.  */
30163extern int main(int argc, char **argv);
30164			int call_main(void) { return main(0, (void *)0); }
30165_ACEOF
30166if ac_fn_c_try_link "$LINENO"
30167then :
30168  xorg_cv_linker_flags__Wl__z_parent_conftest_parent__G=yes
30169else $as_nop
30170  xorg_cv_linker_flags__Wl__z_parent_conftest_parent__G=no
30171fi
30172rm -f core conftest.err conftest.$ac_objext conftest.beam \
30173    conftest$ac_exeext conftest.$ac_ext
30174      LDFLAGS=$ax_save_FLAGS
30175fi
30176
30177eval xorg_check_linker_flags=$xorg_cv_linker_flags__Wl__z_parent_conftest_parent__G
30178{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_check_linker_flags" >&5
30179printf "%s\n" "$xorg_check_linker_flags" >&6; }
30180if test "x$xorg_check_linker_flags" = xyes; then
30181	LD_NO_UNDEFINED_FLAG="-Wl,-z,defs -Wl,-z,parent=\$(top_builddir)/hw/xfree86/Xorg"
30182# Not set yet, since this gets exported in xorg-server.pc to all the drivers,
30183# and they're not all fixed to build correctly with it yet.
30184#		 XORG_DRIVER_LIBS="-Wl,-z,defs -Wl,-z,parent=${bindir}/Xorg"
30185
30186else
30187	:
30188fi
30189
30190	     rm -f conftest.parent
30191
30192fi
30193rm -f core conftest.err conftest.$ac_objext conftest.beam \
30194    conftest$ac_exeext conftest.$ac_ext
30195	;;
30196esac
30197
30198
30199
30200 if test x"$CYGWIN" = xyes; then
30201  CYGWIN_TRUE=
30202  CYGWIN_FALSE='#'
30203else
30204  CYGWIN_TRUE='#'
30205  CYGWIN_FALSE=
30206fi
30207
30208 if test x"$LD_NO_UNDEFINED_FLAG" != x; then
30209  NO_UNDEFINED_TRUE=
30210  NO_UNDEFINED_FALSE='#'
30211else
30212  NO_UNDEFINED_TRUE='#'
30213  NO_UNDEFINED_FALSE=
30214fi
30215
30216
30217{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if SVR4 needs to be defined" >&5
30218printf %s "checking if SVR4 needs to be defined... " >&6; }
30219cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30220/* end confdefs.h.  */
30221
30222#if defined(SVR4) || defined(__svr4__) || defined(__SVR4)
30223 I_AM_SVR4
30224#endif
30225
30226_ACEOF
30227if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30228  $EGREP "I_AM_SVR4" >/dev/null 2>&1
30229then :
30230
30231
30232printf "%s\n" "#define SVR4 1" >>confdefs.h
30233
30234{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30235printf "%s\n" "yes" >&6; }
30236else $as_nop
30237  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30238printf "%s\n" "no" >&6; }
30239fi
30240rm -rf conftest*
30241
30242
30243XSERVER_CFLAGS="$XSERVER_CFLAGS $CORE_INCS $XEXT_INC $COMPOSITE_INC $DAMAGE_INC $FIXES_INC $XI_INC $MI_INC $MIEXT_SYNC_INC $MIEXT_SHADOW_INC $MIEXT_LAYER_INC $MIEXT_DAMAGE_INC $RENDER_INC $RANDR_INC $FB_INC $DBE_INC $PRESENT_INC"
30244
30245
30246
30247{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build Xvfb DDX" >&5
30248printf %s "checking whether to build Xvfb DDX... " >&6; }
30249{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XVFB" >&5
30250printf "%s\n" "$XVFB" >&6; }
30251 if test "x$XVFB" = xyes; then
30252  XVFB_TRUE=
30253  XVFB_FALSE='#'
30254else
30255  XVFB_TRUE='#'
30256  XVFB_FALSE=
30257fi
30258
30259
30260if test "x$XVFB" = xyes; then
30261	XVFB_LIBS="$FB_LIB $FIXES_LIB $XEXT_LIB $DBE_LIB $RECORD_LIB $GLX_LIBS $RANDR_LIB $RENDER_LIB $DAMAGE_LIB $DRI3_LIB $PRESENT_LIB $MIEXT_SYNC_LIB $MIEXT_DAMAGE_LIB $MIEXT_SHADOW_LIB $XI_LIB $XKB_LIB $XKB_STUB_LIB $COMPOSITE_LIB"
30262	XVFB_SYS_LIBS="$XVFBMODULES_LIBS $GLX_SYS_LIBS"
30263
30264
30265fi
30266
30267
30268
30269
30270pkg_failed=no
30271{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XNESTMODULES" >&5
30272printf %s "checking for XNESTMODULES... " >&6; }
30273
30274if test -n "$XNESTMODULES_CFLAGS"; then
30275    pkg_cv_XNESTMODULES_CFLAGS="$XNESTMODULES_CFLAGS"
30276 elif test -n "$PKG_CONFIG"; then
30277    if test -n "$PKG_CONFIG" && \
30278    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXEXT x11 xau \$XDMCP_MODULES\""; } >&5
30279  ($PKG_CONFIG --exists --print-errors "$LIBXEXT x11 xau $XDMCP_MODULES") 2>&5
30280  ac_status=$?
30281  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30282  test $ac_status = 0; }; then
30283  pkg_cv_XNESTMODULES_CFLAGS=`$PKG_CONFIG --cflags "$LIBXEXT x11 xau $XDMCP_MODULES" 2>/dev/null`
30284		      test "x$?" != "x0" && pkg_failed=yes
30285else
30286  pkg_failed=yes
30287fi
30288 else
30289    pkg_failed=untried
30290fi
30291if test -n "$XNESTMODULES_LIBS"; then
30292    pkg_cv_XNESTMODULES_LIBS="$XNESTMODULES_LIBS"
30293 elif test -n "$PKG_CONFIG"; then
30294    if test -n "$PKG_CONFIG" && \
30295    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXEXT x11 xau \$XDMCP_MODULES\""; } >&5
30296  ($PKG_CONFIG --exists --print-errors "$LIBXEXT x11 xau $XDMCP_MODULES") 2>&5
30297  ac_status=$?
30298  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30299  test $ac_status = 0; }; then
30300  pkg_cv_XNESTMODULES_LIBS=`$PKG_CONFIG --libs "$LIBXEXT x11 xau $XDMCP_MODULES" 2>/dev/null`
30301		      test "x$?" != "x0" && pkg_failed=yes
30302else
30303  pkg_failed=yes
30304fi
30305 else
30306    pkg_failed=untried
30307fi
30308
30309
30310
30311if test $pkg_failed = yes; then
30312   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30313printf "%s\n" "no" >&6; }
30314
30315if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30316        _pkg_short_errors_supported=yes
30317else
30318        _pkg_short_errors_supported=no
30319fi
30320        if test $_pkg_short_errors_supported = yes; then
30321	        XNESTMODULES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBXEXT x11 xau $XDMCP_MODULES" 2>&1`
30322        else
30323	        XNESTMODULES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBXEXT x11 xau $XDMCP_MODULES" 2>&1`
30324        fi
30325	# Put the nasty error message in config.log where it belongs
30326	echo "$XNESTMODULES_PKG_ERRORS" >&5
30327
30328	have_xnest=no
30329elif test $pkg_failed = untried; then
30330     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30331printf "%s\n" "no" >&6; }
30332	have_xnest=no
30333else
30334	XNESTMODULES_CFLAGS=$pkg_cv_XNESTMODULES_CFLAGS
30335	XNESTMODULES_LIBS=$pkg_cv_XNESTMODULES_LIBS
30336        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30337printf "%s\n" "yes" >&6; }
30338	have_xnest=yes
30339fi
30340{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build Xnest DDX" >&5
30341printf %s "checking whether to build Xnest DDX... " >&6; }
30342if test "x$XNEST" = xauto; then
30343	XNEST="$have_xnest"
30344fi
30345{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XNEST" >&5
30346printf "%s\n" "$XNEST" >&6; }
30347 if test "x$XNEST" = xyes; then
30348  XNEST_TRUE=
30349  XNEST_FALSE='#'
30350else
30351  XNEST_TRUE='#'
30352  XNEST_FALSE=
30353fi
30354
30355
30356if test "x$XNEST" = xyes; then
30357	if test "x$have_xnest" = xno; then
30358		as_fn_error $? "Xnest build explicitly requested, but required modules not found." "$LINENO" 5
30359	fi
30360	XNEST_LIBS="$FB_LIB $FIXES_LIB $MI_LIB $XEXT_LIB $DBE_LIB $RECORD_LIB $GLX_LIBS $RANDR_LIB $DAMAGE_LIB  $DRI3_LIB $PRESENT_LIB $MIEXT_SYNC_LIB $MIEXT_DAMAGE_LIB $RENDER_LIB $MIEXT_SHADOW_LIB $XI_LIB $XKB_LIB $XKB_STUB_LIB $COMPOSITE_LIB $MAIN_LIB $DIX_LIB $OS_LIB"
30361	XNEST_SYS_LIBS="$XNESTMODULES_LIBS $GLX_SYS_LIBS"
30362
30363
30364fi
30365
30366
30367
30368{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build Xorg DDX" >&5
30369printf %s "checking whether to build Xorg DDX... " >&6; }
30370if test "x$XORG" = xauto; then
30371	XORG="yes"
30372	case $host_os in
30373		cygwin*) XORG="no" ;;
30374		mingw*)  XORG="no" ;;
30375		darwin*) XORG="no" ;;
30376	esac
30377fi
30378{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XORG" >&5
30379printf "%s\n" "$XORG" >&6; }
30380
30381if test "x$XORG" = xyes; then
30382
30383pkg_failed=no
30384{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LIBXCVT" >&5
30385printf %s "checking for LIBXCVT... " >&6; }
30386
30387if test -n "$LIBXCVT_CFLAGS"; then
30388    pkg_cv_LIBXCVT_CFLAGS="$LIBXCVT_CFLAGS"
30389 elif test -n "$PKG_CONFIG"; then
30390    if test -n "$PKG_CONFIG" && \
30391    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXCVT\""; } >&5
30392  ($PKG_CONFIG --exists --print-errors "$LIBXCVT") 2>&5
30393  ac_status=$?
30394  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30395  test $ac_status = 0; }; then
30396  pkg_cv_LIBXCVT_CFLAGS=`$PKG_CONFIG --cflags "$LIBXCVT" 2>/dev/null`
30397		      test "x$?" != "x0" && pkg_failed=yes
30398else
30399  pkg_failed=yes
30400fi
30401 else
30402    pkg_failed=untried
30403fi
30404if test -n "$LIBXCVT_LIBS"; then
30405    pkg_cv_LIBXCVT_LIBS="$LIBXCVT_LIBS"
30406 elif test -n "$PKG_CONFIG"; then
30407    if test -n "$PKG_CONFIG" && \
30408    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXCVT\""; } >&5
30409  ($PKG_CONFIG --exists --print-errors "$LIBXCVT") 2>&5
30410  ac_status=$?
30411  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30412  test $ac_status = 0; }; then
30413  pkg_cv_LIBXCVT_LIBS=`$PKG_CONFIG --libs "$LIBXCVT" 2>/dev/null`
30414		      test "x$?" != "x0" && pkg_failed=yes
30415else
30416  pkg_failed=yes
30417fi
30418 else
30419    pkg_failed=untried
30420fi
30421
30422
30423
30424if test $pkg_failed = yes; then
30425   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30426printf "%s\n" "no" >&6; }
30427
30428if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30429        _pkg_short_errors_supported=yes
30430else
30431        _pkg_short_errors_supported=no
30432fi
30433        if test $_pkg_short_errors_supported = yes; then
30434	        LIBXCVT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBXCVT" 2>&1`
30435        else
30436	        LIBXCVT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBXCVT" 2>&1`
30437        fi
30438	# Put the nasty error message in config.log where it belongs
30439	echo "$LIBXCVT_PKG_ERRORS" >&5
30440
30441	as_fn_error $? "Package requirements ($LIBXCVT) were not met:
30442
30443$LIBXCVT_PKG_ERRORS
30444
30445Consider adjusting the PKG_CONFIG_PATH environment variable if you
30446installed software in a non-standard prefix.
30447
30448Alternatively, you may set the environment variables LIBXCVT_CFLAGS
30449and LIBXCVT_LIBS to avoid the need to call pkg-config.
30450See the pkg-config man page for more details." "$LINENO" 5
30451elif test $pkg_failed = untried; then
30452     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30453printf "%s\n" "no" >&6; }
30454	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
30455printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
30456as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
30457is in your PATH or set the PKG_CONFIG environment variable to the full
30458path to pkg-config.
30459
30460Alternatively, you may set the environment variables LIBXCVT_CFLAGS
30461and LIBXCVT_LIBS to avoid the need to call pkg-config.
30462See the pkg-config man page for more details.
30463
30464To get pkg-config, see <http://pkg-config.freedesktop.org/>.
30465See \`config.log' for more details" "$LINENO" 5; }
30466else
30467	LIBXCVT_CFLAGS=$pkg_cv_LIBXCVT_CFLAGS
30468	LIBXCVT_LIBS=$pkg_cv_LIBXCVT_LIBS
30469        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30470printf "%s\n" "yes" >&6; }
30471
30472fi
30473
30474	XORG_DDXINCS='-I$(top_srcdir)/hw/xfree86 -I$(top_srcdir)/hw/xfree86/include -I$(top_srcdir)/hw/xfree86/common'
30475	XORG_OSINCS='-I$(top_srcdir)/hw/xfree86/os-support -I$(top_srcdir)/hw/xfree86/os-support/bus -I$(top_srcdir)/os'
30476	XORG_INCS="$XORG_DDXINCS $XORG_OSINCS"
30477	XORG_CFLAGS="$XORGSERVER_CFLAGS $LIBXCVT_CFLAGS -DHAVE_XORG_CONFIG_H"
30478	XORG_LIBS="$COMPOSITE_LIB $FIXES_LIB $XEXT_LIB $DBE_LIB $RECORD_LIB $RANDR_LIB $RENDER_LIB $DAMAGE_LIB $DRI3_LIB $PRESENT_LIB $MIEXT_SYNC_LIB $MIEXT_DAMAGE_LIB $XI_LIB $XKB_LIB"
30479	XORG_SYS_LIBS="$XORG_SYS_LIBS $LIBXCVT_LIBS"
30480
30481			symbol_visibility=
30482	have_visibility=disabled
30483	if test x$SYMBOL_VISIBILITY != xno; then
30484	    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for symbol visibility support" >&5
30485printf %s "checking for symbol visibility support... " >&6; }
30486	    if test x$GCC = xyes; then
30487		VISIBILITY_CFLAGS="-fvisibility=hidden"
30488	    else
30489		if test x$SUNCC = xyes; then
30490		    VISIBILITY_CFLAGS="-xldscope=hidden"
30491		else
30492		    have_visibility=no
30493		fi
30494	    fi
30495	    if test x$have_visibility != xno; then
30496		save_CFLAGS="$CFLAGS"
30497		proto_inc=`$PKG_CONFIG --cflags xproto`
30498		CFLAGS="$CFLAGS $VISIBILITY_CFLAGS $proto_inc"
30499		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30500/* end confdefs.h.  */
30501
30502		    #include <X11/Xfuncproto.h>
30503		     extern _X_HIDDEN int hidden_int;
30504		     extern _X_EXPORT int public_int;
30505		     extern _X_HIDDEN int hidden_int_func(void);
30506		     extern _X_EXPORT int public_int_func(void);
30507int
30508main (void)
30509{
30510
30511  ;
30512  return 0;
30513}
30514_ACEOF
30515if ac_fn_c_try_compile "$LINENO"
30516then :
30517  have_visibility=yes
30518else $as_nop
30519  have_visibility=no
30520fi
30521rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
30522		CFLAGS=$save_CFLAGS
30523	    fi
30524	    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_visibility" >&5
30525printf "%s\n" "$have_visibility" >&6; }
30526	    if test x$have_visibility != xno; then
30527		symbol_visibility=$VISIBILITY_CFLAGS
30528		XORG_CFLAGS="$XORG_CFLAGS $VISIBILITY_CFLAGS"
30529		XSERVER_CFLAGS="$XSERVER_CFLAGS $VISIBILITY_CFLAGS"
30530	    fi
30531	fi
30532
30533
30534				xorg_bus_bsdpci=no
30535	xorg_bus_sparc=no
30536
30537	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build Xorg PCI functions" >&5
30538printf %s "checking whether to build Xorg PCI functions... " >&6; }
30539	if test "x$PCI" = xyes; then
30540
30541pkg_failed=no
30542{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
30543printf %s "checking for PCIACCESS... " >&6; }
30544
30545if test -n "$PCIACCESS_CFLAGS"; then
30546    pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
30547 elif test -n "$PKG_CONFIG"; then
30548    if test -n "$PKG_CONFIG" && \
30549    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBPCIACCESS\""; } >&5
30550  ($PKG_CONFIG --exists --print-errors "$LIBPCIACCESS") 2>&5
30551  ac_status=$?
30552  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30553  test $ac_status = 0; }; then
30554  pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "$LIBPCIACCESS" 2>/dev/null`
30555		      test "x$?" != "x0" && pkg_failed=yes
30556else
30557  pkg_failed=yes
30558fi
30559 else
30560    pkg_failed=untried
30561fi
30562if test -n "$PCIACCESS_LIBS"; then
30563    pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
30564 elif test -n "$PKG_CONFIG"; then
30565    if test -n "$PKG_CONFIG" && \
30566    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBPCIACCESS\""; } >&5
30567  ($PKG_CONFIG --exists --print-errors "$LIBPCIACCESS") 2>&5
30568  ac_status=$?
30569  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30570  test $ac_status = 0; }; then
30571  pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "$LIBPCIACCESS" 2>/dev/null`
30572		      test "x$?" != "x0" && pkg_failed=yes
30573else
30574  pkg_failed=yes
30575fi
30576 else
30577    pkg_failed=untried
30578fi
30579
30580
30581
30582if test $pkg_failed = yes; then
30583   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30584printf "%s\n" "no" >&6; }
30585
30586if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30587        _pkg_short_errors_supported=yes
30588else
30589        _pkg_short_errors_supported=no
30590fi
30591        if test $_pkg_short_errors_supported = yes; then
30592	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBPCIACCESS" 2>&1`
30593        else
30594	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBPCIACCESS" 2>&1`
30595        fi
30596	# Put the nasty error message in config.log where it belongs
30597	echo "$PCIACCESS_PKG_ERRORS" >&5
30598
30599	as_fn_error $? "Package requirements ($LIBPCIACCESS) were not met:
30600
30601$PCIACCESS_PKG_ERRORS
30602
30603Consider adjusting the PKG_CONFIG_PATH environment variable if you
30604installed software in a non-standard prefix.
30605
30606Alternatively, you may set the environment variables PCIACCESS_CFLAGS
30607and PCIACCESS_LIBS to avoid the need to call pkg-config.
30608See the pkg-config man page for more details." "$LINENO" 5
30609elif test $pkg_failed = untried; then
30610     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30611printf "%s\n" "no" >&6; }
30612	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
30613printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
30614as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
30615is in your PATH or set the PKG_CONFIG environment variable to the full
30616path to pkg-config.
30617
30618Alternatively, you may set the environment variables PCIACCESS_CFLAGS
30619and PCIACCESS_LIBS to avoid the need to call pkg-config.
30620See the pkg-config man page for more details.
30621
30622To get pkg-config, see <http://pkg-config.freedesktop.org/>.
30623See \`config.log' for more details" "$LINENO" 5; }
30624else
30625	PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
30626	PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
30627        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30628printf "%s\n" "yes" >&6; }
30629
30630fi
30631		SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $LIBPCIACCESS"
30632		XORG_SYS_LIBS="$XORG_SYS_LIBS $PCIACCESS_LIBS $LIBDRM_LIBS"
30633		XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS $LIBDRM_CFLAGS"
30634
30635
30636printf "%s\n" "#define XSERVER_LIBPCIACCESS 1" >>confdefs.h
30637
30638
30639  prefix_NONE=
30640  exec_prefix_NONE=
30641  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
30642  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
30643  eval ac_define_dir="\"$PCI_TXT_IDS_DIR\""
30644  eval ac_define_dir="\"$ac_define_dir\""
30645  PCI_TXT_IDS_PATH="$ac_define_dir"
30646
30647
30648printf "%s\n" "#define PCI_TXT_IDS_PATH \"$ac_define_dir\"" >>confdefs.h
30649
30650  test "$prefix_NONE" && prefix=NONE
30651  test "$exec_prefix_NONE" && exec_prefix=NONE
30652
30653		case $host_os in
30654		  gnu* | freebsd* | kfreebsd*-gnu | netbsd* | openbsd* | solaris* | dragonfly*)
30655			xorg_bus_bsdpci="yes"
30656			;;
30657		esac
30658		case $host_cpu in
30659		  sparc*)
30660			xorg_bus_sparc="yes"
30661			;;
30662		esac
30663	else
30664		if test "x$CONFIG_UDEV_KMS" = xyes; then
30665			as_fn_error $? "Platform device enumeration requires libpciaccess" "$LINENO" 5
30666		fi
30667		if test "x$INT10MODULE" = xyes && test "x$INT10" != xstub; then
30668			as_fn_error $? "Cannot build int10 without libpciaccess" "$LINENO" 5
30669		fi
30670	fi
30671	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PCI" >&5
30672printf "%s\n" "$PCI" >&6; }
30673
30674	if test "x$CONFIG_UDEV_KMS" = xyes; then
30675
30676printf "%s\n" "#define XSERVER_PLATFORM_BUS 1" >>confdefs.h
30677
30678	fi
30679	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSERVER_PLATFORM_BUS" >&5
30680printf "%s\n" "$XSERVER_PLATFORM_BUS" >&6; }
30681
30682	case $host_os in
30683	  linux*)
30684		XORG_OS_SUBDIR="linux"
30685		linux_acpi="no"
30686		case $host_cpu in
30687		  i*86|amd64*|x86_64*|ia64*)
30688			linux_acpi=$enable_linux_acpi
30689			;;
30690		  *)
30691			;;
30692		esac
30693				       for ac_header in linux/apm_bios.h
30694do :
30695  ac_fn_c_check_header_compile "$LINENO" "linux/apm_bios.h" "ac_cv_header_linux_apm_bios_h" "$ac_includes_default"
30696if test "x$ac_cv_header_linux_apm_bios_h" = xyes
30697then :
30698  printf "%s\n" "#define HAVE_LINUX_APM_BIOS_H 1" >>confdefs.h
30699 linux_apm=$enable_linux_apm
30700fi
30701
30702done
30703		;;
30704	  freebsd* | kfreebsd*-gnu | dragonfly*)
30705		XORG_OS_SUBDIR="bsd"
30706		;;
30707	  netbsd*)
30708		XORG_OS_SUBDIR="bsd"
30709		;;
30710	  openbsd*)
30711		XORG_OS_SUBDIR="bsd"
30712		;;
30713	  solaris*)
30714		XORG_OS_SUBDIR="solaris"
30715		ac_fn_c_check_header_compile "$LINENO" "sys/kd.h" "ac_cv_header_sys_kd_h" "$ac_includes_default"
30716if test "x$ac_cv_header_sys_kd_h" = xyes
30717then :
30718  printf "%s\n" "#define HAVE_SYS_KD_H 1" >>confdefs.h
30719
30720fi
30721
30722		       for ac_header in sys/vt.h
30723do :
30724  ac_fn_c_check_header_compile "$LINENO" "sys/vt.h" "ac_cv_header_sys_vt_h" "$ac_includes_default"
30725if test "x$ac_cv_header_sys_vt_h" = xyes
30726then :
30727  printf "%s\n" "#define HAVE_SYS_VT_H 1" >>confdefs.h
30728 solaris_vt=yes
30729else $as_nop
30730  solaris_vt=no
30731fi
30732
30733done
30734		# Check for minimum supported release
30735		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Solaris version" >&5
30736printf %s "checking Solaris version... " >&6; }
30737	        OS_MINOR=`echo ${host_os}|$SED -e 's/^.*solaris2\.//' -e s'/\..*$//'`
30738		if test "${OS_MINOR}" -ge 7 ; then
30739	        	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Solaris ${OS_MINOR}" >&5
30740printf "%s\n" "Solaris ${OS_MINOR}" >&6; }
30741		else
30742			{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Solaris \`echo ${host_os}|$SED -e 's/^.*solaris//\`" >&5
30743printf "%s\n" "Solaris \`echo ${host_os}|$SED -e 's/^.*solaris//\`" >&6; }
30744		fi
30745		if test "${OS_MINOR}" -lt 8 ; then
30746			as_fn_error $? "This release no longer supports Solaris versions older than Solaris 8." "$LINENO" 5
30747		fi
30748		ac_fn_check_decl "$LINENO" "_LP64" "ac_cv_have_decl__LP64" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
30749if test "x$ac_cv_have_decl__LP64" = xyes
30750then :
30751  SOLARIS_64="yes"
30752else $as_nop
30753  SOLARIS_64="no"
30754fi
30755
30756		case $host_cpu in
30757		  sparc*)
30758			SOLARIS_INOUT_ARCH="sparcv8plus"
30759			;;
30760		  i*86|x86_64*)
30761			if test x$SOLARIS_64 = xyes ; then
30762				SOLARIS_INOUT_ARCH="amd64"
30763			else
30764				SOLARIS_INOUT_ARCH="ia32"
30765			fi
30766			;;
30767		  *)
30768			as_fn_error $? "Unsupported Solaris platform. Only SPARC & x86 \
30769			are supported on Solaris in this release.   If you are \
30770			interested in porting Xorg to your platform, please email \
30771			xorg@lists.freedesktop.org." "$LINENO" 5 ;;
30772		esac
30773
30774		;;
30775	  gnu*)
30776		XORG_OS_SUBDIR="hurd"
30777		;;
30778	  cygwin*)
30779		XORG_OS_SUBDIR="stub"
30780		;;
30781	  *)
30782		XORG_OS_SUBDIR="stub"
30783		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: Your OS is unknown. If you are interested in porting Xorg to your platform,
30784please email xorg@lists.freedesktop.org." >&5
30785printf "%s\n" "$as_me: Your OS is unknown. If you are interested in porting Xorg to your platform,
30786please email xorg@lists.freedesktop.org." >&6;}
30787		;;
30788	esac
30789
30790	if test "x$DGA" = xauto; then
30791
30792pkg_failed=no
30793{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for DGA" >&5
30794printf %s "checking for DGA... " >&6; }
30795
30796if test -n "$DGA_CFLAGS"; then
30797    pkg_cv_DGA_CFLAGS="$DGA_CFLAGS"
30798 elif test -n "$PKG_CONFIG"; then
30799    if test -n "$PKG_CONFIG" && \
30800    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DGAPROTO\""; } >&5
30801  ($PKG_CONFIG --exists --print-errors "$DGAPROTO") 2>&5
30802  ac_status=$?
30803  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30804  test $ac_status = 0; }; then
30805  pkg_cv_DGA_CFLAGS=`$PKG_CONFIG --cflags "$DGAPROTO" 2>/dev/null`
30806		      test "x$?" != "x0" && pkg_failed=yes
30807else
30808  pkg_failed=yes
30809fi
30810 else
30811    pkg_failed=untried
30812fi
30813if test -n "$DGA_LIBS"; then
30814    pkg_cv_DGA_LIBS="$DGA_LIBS"
30815 elif test -n "$PKG_CONFIG"; then
30816    if test -n "$PKG_CONFIG" && \
30817    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DGAPROTO\""; } >&5
30818  ($PKG_CONFIG --exists --print-errors "$DGAPROTO") 2>&5
30819  ac_status=$?
30820  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30821  test $ac_status = 0; }; then
30822  pkg_cv_DGA_LIBS=`$PKG_CONFIG --libs "$DGAPROTO" 2>/dev/null`
30823		      test "x$?" != "x0" && pkg_failed=yes
30824else
30825  pkg_failed=yes
30826fi
30827 else
30828    pkg_failed=untried
30829fi
30830
30831
30832
30833if test $pkg_failed = yes; then
30834   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30835printf "%s\n" "no" >&6; }
30836
30837if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30838        _pkg_short_errors_supported=yes
30839else
30840        _pkg_short_errors_supported=no
30841fi
30842        if test $_pkg_short_errors_supported = yes; then
30843	        DGA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$DGAPROTO" 2>&1`
30844        else
30845	        DGA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$DGAPROTO" 2>&1`
30846        fi
30847	# Put the nasty error message in config.log where it belongs
30848	echo "$DGA_PKG_ERRORS" >&5
30849
30850	DGA=no
30851elif test $pkg_failed = untried; then
30852     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30853printf "%s\n" "no" >&6; }
30854	DGA=no
30855else
30856	DGA_CFLAGS=$pkg_cv_DGA_CFLAGS
30857	DGA_LIBS=$pkg_cv_DGA_LIBS
30858        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30859printf "%s\n" "yes" >&6; }
30860	DGA=yes
30861fi
30862	fi
30863	if test "x$DGA" = xyes; then
30864		XORG_MODULES="$XORG_MODULES $DGAPROTO"
30865
30866pkg_failed=no
30867{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for DGA" >&5
30868printf %s "checking for DGA... " >&6; }
30869
30870if test -n "$DGA_CFLAGS"; then
30871    pkg_cv_DGA_CFLAGS="$DGA_CFLAGS"
30872 elif test -n "$PKG_CONFIG"; then
30873    if test -n "$PKG_CONFIG" && \
30874    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DGAPROTO\""; } >&5
30875  ($PKG_CONFIG --exists --print-errors "$DGAPROTO") 2>&5
30876  ac_status=$?
30877  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30878  test $ac_status = 0; }; then
30879  pkg_cv_DGA_CFLAGS=`$PKG_CONFIG --cflags "$DGAPROTO" 2>/dev/null`
30880		      test "x$?" != "x0" && pkg_failed=yes
30881else
30882  pkg_failed=yes
30883fi
30884 else
30885    pkg_failed=untried
30886fi
30887if test -n "$DGA_LIBS"; then
30888    pkg_cv_DGA_LIBS="$DGA_LIBS"
30889 elif test -n "$PKG_CONFIG"; then
30890    if test -n "$PKG_CONFIG" && \
30891    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DGAPROTO\""; } >&5
30892  ($PKG_CONFIG --exists --print-errors "$DGAPROTO") 2>&5
30893  ac_status=$?
30894  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30895  test $ac_status = 0; }; then
30896  pkg_cv_DGA_LIBS=`$PKG_CONFIG --libs "$DGAPROTO" 2>/dev/null`
30897		      test "x$?" != "x0" && pkg_failed=yes
30898else
30899  pkg_failed=yes
30900fi
30901 else
30902    pkg_failed=untried
30903fi
30904
30905
30906
30907if test $pkg_failed = yes; then
30908   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30909printf "%s\n" "no" >&6; }
30910
30911if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30912        _pkg_short_errors_supported=yes
30913else
30914        _pkg_short_errors_supported=no
30915fi
30916        if test $_pkg_short_errors_supported = yes; then
30917	        DGA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$DGAPROTO" 2>&1`
30918        else
30919	        DGA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$DGAPROTO" 2>&1`
30920        fi
30921	# Put the nasty error message in config.log where it belongs
30922	echo "$DGA_PKG_ERRORS" >&5
30923
30924	as_fn_error $? "Package requirements ($DGAPROTO) were not met:
30925
30926$DGA_PKG_ERRORS
30927
30928Consider adjusting the PKG_CONFIG_PATH environment variable if you
30929installed software in a non-standard prefix.
30930
30931Alternatively, you may set the environment variables DGA_CFLAGS
30932and DGA_LIBS to avoid the need to call pkg-config.
30933See the pkg-config man page for more details." "$LINENO" 5
30934elif test $pkg_failed = untried; then
30935     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30936printf "%s\n" "no" >&6; }
30937	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
30938printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
30939as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
30940is in your PATH or set the PKG_CONFIG environment variable to the full
30941path to pkg-config.
30942
30943Alternatively, you may set the environment variables DGA_CFLAGS
30944and DGA_LIBS to avoid the need to call pkg-config.
30945See the pkg-config man page for more details.
30946
30947To get pkg-config, see <http://pkg-config.freedesktop.org/>.
30948See \`config.log' for more details" "$LINENO" 5; }
30949else
30950	DGA_CFLAGS=$pkg_cv_DGA_CFLAGS
30951	DGA_LIBS=$pkg_cv_DGA_LIBS
30952        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30953printf "%s\n" "yes" >&6; }
30954
30955fi
30956
30957printf "%s\n" "#define DGA 1" >>confdefs.h
30958
30959
30960printf "%s\n" "#define XFreeXDGA 1" >>confdefs.h
30961
30962	fi
30963
30964	if test "x$XF86VIDMODE" = xyes; then
30965		XORG_MODULES="$XORG_MODULES $VIDMODEPROTO"
30966	fi
30967
30968	if test -n "$XORG_MODULES"; then
30969
30970pkg_failed=no
30971{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XORG_MODULES" >&5
30972printf %s "checking for XORG_MODULES... " >&6; }
30973
30974if test -n "$XORG_MODULES_CFLAGS"; then
30975    pkg_cv_XORG_MODULES_CFLAGS="$XORG_MODULES_CFLAGS"
30976 elif test -n "$PKG_CONFIG"; then
30977    if test -n "$PKG_CONFIG" && \
30978    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XORG_MODULES\""; } >&5
30979  ($PKG_CONFIG --exists --print-errors "$XORG_MODULES") 2>&5
30980  ac_status=$?
30981  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30982  test $ac_status = 0; }; then
30983  pkg_cv_XORG_MODULES_CFLAGS=`$PKG_CONFIG --cflags "$XORG_MODULES" 2>/dev/null`
30984		      test "x$?" != "x0" && pkg_failed=yes
30985else
30986  pkg_failed=yes
30987fi
30988 else
30989    pkg_failed=untried
30990fi
30991if test -n "$XORG_MODULES_LIBS"; then
30992    pkg_cv_XORG_MODULES_LIBS="$XORG_MODULES_LIBS"
30993 elif test -n "$PKG_CONFIG"; then
30994    if test -n "$PKG_CONFIG" && \
30995    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XORG_MODULES\""; } >&5
30996  ($PKG_CONFIG --exists --print-errors "$XORG_MODULES") 2>&5
30997  ac_status=$?
30998  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30999  test $ac_status = 0; }; then
31000  pkg_cv_XORG_MODULES_LIBS=`$PKG_CONFIG --libs "$XORG_MODULES" 2>/dev/null`
31001		      test "x$?" != "x0" && pkg_failed=yes
31002else
31003  pkg_failed=yes
31004fi
31005 else
31006    pkg_failed=untried
31007fi
31008
31009
31010
31011if test $pkg_failed = yes; then
31012   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31013printf "%s\n" "no" >&6; }
31014
31015if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31016        _pkg_short_errors_supported=yes
31017else
31018        _pkg_short_errors_supported=no
31019fi
31020        if test $_pkg_short_errors_supported = yes; then
31021	        XORG_MODULES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$XORG_MODULES" 2>&1`
31022        else
31023	        XORG_MODULES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$XORG_MODULES" 2>&1`
31024        fi
31025	# Put the nasty error message in config.log where it belongs
31026	echo "$XORG_MODULES_PKG_ERRORS" >&5
31027
31028	as_fn_error $? "Package requirements ($XORG_MODULES) were not met:
31029
31030$XORG_MODULES_PKG_ERRORS
31031
31032Consider adjusting the PKG_CONFIG_PATH environment variable if you
31033installed software in a non-standard prefix.
31034
31035Alternatively, you may set the environment variables XORG_MODULES_CFLAGS
31036and XORG_MODULES_LIBS to avoid the need to call pkg-config.
31037See the pkg-config man page for more details." "$LINENO" 5
31038elif test $pkg_failed = untried; then
31039     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31040printf "%s\n" "no" >&6; }
31041	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
31042printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
31043as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
31044is in your PATH or set the PKG_CONFIG environment variable to the full
31045path to pkg-config.
31046
31047Alternatively, you may set the environment variables XORG_MODULES_CFLAGS
31048and XORG_MODULES_LIBS to avoid the need to call pkg-config.
31049See the pkg-config man page for more details.
31050
31051To get pkg-config, see <http://pkg-config.freedesktop.org/>.
31052See \`config.log' for more details" "$LINENO" 5; }
31053else
31054	XORG_MODULES_CFLAGS=$pkg_cv_XORG_MODULES_CFLAGS
31055	XORG_MODULES_LIBS=$pkg_cv_XORG_MODULES_LIBS
31056        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31057printf "%s\n" "yes" >&6; }
31058
31059fi
31060	        XORG_CFLAGS="$XORG_CFLAGS $XORG_MODULES_CFLAGS"
31061	        XORG_SYS_LIBS="$XORG_SYS_LIBS $XORG_MODULES_LIBS"
31062	fi
31063
31064	if test "x$DRM" = xyes -a "x$DRI2" = xyes; then
31065		XORG_DRIVER_MODESETTING=yes
31066	fi
31067
31068
31069
31070
31071
31072
31073
31074		XF86CONFIGFILE="xorg.conf"
31075	XF86CONFIGDIR="xorg.conf.d"
31076
31077	LOGPREFIX="Xorg."
31078	XDG_DATA_HOME=".local/share"
31079	XDG_DATA_HOME_LOGDIR="xorg"
31080
31081printf "%s\n" "#define XORG_SERVER 1" >>confdefs.h
31082
31083
31084printf "%s\n" "#define XORGSERVER 1" >>confdefs.h
31085
31086
31087printf "%s\n" "#define XFree86Server 1" >>confdefs.h
31088
31089
31090printf "%s\n" "#define XORG_VERSION_CURRENT $VENDOR_RELEASE" >>confdefs.h
31091
31092
31093printf "%s\n" "#define NEED_XF86_TYPES 1" >>confdefs.h
31094
31095
31096printf "%s\n" "#define NEED_XF86_PROTOTYPES 1" >>confdefs.h
31097
31098
31099printf "%s\n" "#define __XSERVERNAME__ \"Xorg\"" >>confdefs.h
31100
31101
31102  prefix_NONE=
31103  exec_prefix_NONE=
31104  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
31105  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
31106  eval ac_define_dir="\"$XF86CONFIGFILE\""
31107  eval ac_define_dir="\"$ac_define_dir\""
31108  XCONFIGFILE="$ac_define_dir"
31109
31110
31111printf "%s\n" "#define XCONFIGFILE \"$ac_define_dir\"" >>confdefs.h
31112
31113  test "$prefix_NONE" && prefix=NONE
31114  test "$exec_prefix_NONE" && exec_prefix=NONE
31115
31116
31117  prefix_NONE=
31118  exec_prefix_NONE=
31119  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
31120  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
31121  eval ac_define_dir="\"$XF86CONFIGFILE\""
31122  eval ac_define_dir="\"$ac_define_dir\""
31123  XF86CONFIGFILE="$ac_define_dir"
31124
31125
31126printf "%s\n" "#define XF86CONFIGFILE \"$ac_define_dir\"" >>confdefs.h
31127
31128  test "$prefix_NONE" && prefix=NONE
31129  test "$exec_prefix_NONE" && exec_prefix=NONE
31130
31131
31132  prefix_NONE=
31133  exec_prefix_NONE=
31134  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
31135  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
31136  eval ac_define_dir="\"$XF86CONFIGDIR\""
31137  eval ac_define_dir="\"$ac_define_dir\""
31138  XCONFIGDIR="$ac_define_dir"
31139
31140
31141printf "%s\n" "#define XCONFIGDIR \"$ac_define_dir\"" >>confdefs.h
31142
31143  test "$prefix_NONE" && prefix=NONE
31144  test "$exec_prefix_NONE" && exec_prefix=NONE
31145
31146
31147  prefix_NONE=
31148  exec_prefix_NONE=
31149  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
31150  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
31151  eval ac_define_dir="\"$moduledir\""
31152  eval ac_define_dir="\"$ac_define_dir\""
31153  DEFAULT_MODULE_PATH="$ac_define_dir"
31154
31155
31156printf "%s\n" "#define DEFAULT_MODULE_PATH \"$ac_define_dir\"" >>confdefs.h
31157
31158  test "$prefix_NONE" && prefix=NONE
31159  test "$exec_prefix_NONE" && exec_prefix=NONE
31160
31161
31162  prefix_NONE=
31163  exec_prefix_NONE=
31164  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
31165  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
31166  eval ac_define_dir="\"$libdir\""
31167  eval ac_define_dir="\"$ac_define_dir\""
31168  DEFAULT_LIBRARY_PATH="$ac_define_dir"
31169
31170
31171printf "%s\n" "#define DEFAULT_LIBRARY_PATH \"$ac_define_dir\"" >>confdefs.h
31172
31173  test "$prefix_NONE" && prefix=NONE
31174  test "$exec_prefix_NONE" && exec_prefix=NONE
31175
31176
31177  prefix_NONE=
31178  exec_prefix_NONE=
31179  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
31180  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
31181  eval ac_define_dir="\"$logdir\""
31182  eval ac_define_dir="\"$ac_define_dir\""
31183  DEFAULT_LOGDIR="$ac_define_dir"
31184
31185
31186printf "%s\n" "#define DEFAULT_LOGDIR \"$ac_define_dir\"" >>confdefs.h
31187
31188  test "$prefix_NONE" && prefix=NONE
31189  test "$exec_prefix_NONE" && exec_prefix=NONE
31190
31191
31192  prefix_NONE=
31193  exec_prefix_NONE=
31194  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
31195  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
31196  eval ac_define_dir="\"$LOGPREFIX\""
31197  eval ac_define_dir="\"$ac_define_dir\""
31198  DEFAULT_LOGPREFIX="$ac_define_dir"
31199
31200
31201printf "%s\n" "#define DEFAULT_LOGPREFIX \"$ac_define_dir\"" >>confdefs.h
31202
31203  test "$prefix_NONE" && prefix=NONE
31204  test "$exec_prefix_NONE" && exec_prefix=NONE
31205
31206
31207  prefix_NONE=
31208  exec_prefix_NONE=
31209  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
31210  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
31211  eval ac_define_dir="\"$XDG_DATA_HOME\""
31212  eval ac_define_dir="\"$ac_define_dir\""
31213  DEFAULT_XDG_DATA_HOME="$ac_define_dir"
31214
31215
31216printf "%s\n" "#define DEFAULT_XDG_DATA_HOME \"$ac_define_dir\"" >>confdefs.h
31217
31218  test "$prefix_NONE" && prefix=NONE
31219  test "$exec_prefix_NONE" && exec_prefix=NONE
31220
31221
31222  prefix_NONE=
31223  exec_prefix_NONE=
31224  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
31225  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
31226  eval ac_define_dir="\"$XDG_DATA_HOME_LOGDIR\""
31227  eval ac_define_dir="\"$ac_define_dir\""
31228  DEFAULT_XDG_DATA_HOME_LOGDIR="$ac_define_dir"
31229
31230
31231printf "%s\n" "#define DEFAULT_XDG_DATA_HOME_LOGDIR \"$ac_define_dir\"" >>confdefs.h
31232
31233  test "$prefix_NONE" && prefix=NONE
31234  test "$exec_prefix_NONE" && exec_prefix=NONE
31235
31236
31237printf "%s\n" "#define __VENDORDWEBSUPPORT__ \"$VENDOR_WEB\"" >>confdefs.h
31238
31239	if test "x$VGAHW" = xyes; then
31240
31241printf "%s\n" "#define WITH_VGAHW 1" >>confdefs.h
31242
31243	fi
31244
31245	driverdir="$moduledir/drivers"
31246
31247
31248	sdkdir="$includedir/xorg"
31249	extdir="$includedir/X11/extensions"
31250	sysconfigdir="$datadir/X11/$XF86CONFIGDIR"
31251
31252
31253
31254
31255
31256	# stuff the ABI versions into the pc file too
31257	extract_abi() {
31258	    grep ^.define.*${1}_VERSION ${srcdir}/hw/xfree86/common/xf86Module.h | tr '(),' '  .' | awk '{ print $4$5 }'
31259	}
31260	abi_ansic=`extract_abi ANSIC`
31261	abi_videodrv=`extract_abi VIDEODRV`
31262	abi_xinput=`extract_abi XINPUT`
31263	abi_extension=`extract_abi EXTENSION`
31264
31265
31266
31267
31268fi
31269 if test "x$XORG" = xyes; then
31270  XORG_TRUE=
31271  XORG_FALSE='#'
31272else
31273  XORG_TRUE='#'
31274  XORG_FALSE=
31275fi
31276
31277 if test "x$PCI" = xyes; then
31278  XORG_BUS_PCI_TRUE=
31279  XORG_BUS_PCI_FALSE='#'
31280else
31281  XORG_BUS_PCI_TRUE='#'
31282  XORG_BUS_PCI_FALSE=
31283fi
31284
31285 if test "x$xorg_bus_bsdpci" = xyes; then
31286  XORG_BUS_BSDPCI_TRUE=
31287  XORG_BUS_BSDPCI_FALSE='#'
31288else
31289  XORG_BUS_BSDPCI_TRUE='#'
31290  XORG_BUS_BSDPCI_FALSE=
31291fi
31292
31293 if test "x$xorg_bus_sparc" = xyes; then
31294  XORG_BUS_SPARC_TRUE=
31295  XORG_BUS_SPARC_FALSE='#'
31296else
31297  XORG_BUS_SPARC_TRUE='#'
31298  XORG_BUS_SPARC_FALSE=
31299fi
31300
31301 if test "x$linux_acpi" = xyes; then
31302  LNXACPI_TRUE=
31303  LNXACPI_FALSE='#'
31304else
31305  LNXACPI_TRUE='#'
31306  LNXACPI_FALSE=
31307fi
31308
31309 if test "x$linux_apm" = xyes; then
31310  LNXAPM_TRUE=
31311  LNXAPM_FALSE='#'
31312else
31313  LNXAPM_TRUE='#'
31314  LNXAPM_FALSE=
31315fi
31316
31317 if test "x$solaris_vt" = xyes; then
31318  SOLARIS_VT_TRUE=
31319  SOLARIS_VT_FALSE='#'
31320else
31321  SOLARIS_VT_TRUE='#'
31322  SOLARIS_VT_FALSE=
31323fi
31324
31325 if test "x$DGA" = xyes; then
31326  DGA_TRUE=
31327  DGA_FALSE='#'
31328else
31329  DGA_TRUE='#'
31330  DGA_FALSE=
31331fi
31332
31333 if test "x$CONFIG_UDEV_KMS" = xyes; then
31334  XORG_BUS_PLATFORM_TRUE=
31335  XORG_BUS_PLATFORM_FALSE='#'
31336else
31337  XORG_BUS_PLATFORM_TRUE='#'
31338  XORG_BUS_PLATFORM_FALSE=
31339fi
31340
31341 if test "x$XORG_DRIVER_MODESETTING" = xyes; then
31342  XORG_DRIVER_MODESETTING_TRUE=
31343  XORG_DRIVER_MODESETTING_FALSE='#'
31344else
31345  XORG_DRIVER_MODESETTING_TRUE='#'
31346  XORG_DRIVER_MODESETTING_FALSE=
31347fi
31348
31349 if test "x$XORG_DRIVER_INPUT_INPUTTEST" = xyes; then
31350  XORG_DRIVER_INPUT_INPUTTEST_TRUE=
31351  XORG_DRIVER_INPUT_INPUTTEST_FALSE='#'
31352else
31353  XORG_DRIVER_INPUT_INPUTTEST_TRUE='#'
31354  XORG_DRIVER_INPUT_INPUTTEST_FALSE=
31355fi
31356
31357
31358if test "x$GLAMOR" = xauto; then
31359	if echo "$XORG" "$XEPHYR" | grep -q yes ; then
31360		GLAMOR=yes
31361	fi
31362fi
31363
31364 if test "x$GLAMOR" = xyes; then
31365  GLAMOR_TRUE=
31366  GLAMOR_FALSE='#'
31367else
31368  GLAMOR_TRUE='#'
31369  GLAMOR_FALSE=
31370fi
31371
31372
31373if test "x$GLAMOR" = xyes; then
31374
31375printf "%s\n" "#define GLAMOR 1" >>confdefs.h
31376
31377
31378pkg_failed=no
31379{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GLAMOR" >&5
31380printf %s "checking for GLAMOR... " >&6; }
31381
31382if test -n "$GLAMOR_CFLAGS"; then
31383    pkg_cv_GLAMOR_CFLAGS="$GLAMOR_CFLAGS"
31384 elif test -n "$PKG_CONFIG"; then
31385    if test -n "$PKG_CONFIG" && \
31386    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"epoxy\""; } >&5
31387  ($PKG_CONFIG --exists --print-errors "epoxy") 2>&5
31388  ac_status=$?
31389  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31390  test $ac_status = 0; }; then
31391  pkg_cv_GLAMOR_CFLAGS=`$PKG_CONFIG --cflags "epoxy" 2>/dev/null`
31392		      test "x$?" != "x0" && pkg_failed=yes
31393else
31394  pkg_failed=yes
31395fi
31396 else
31397    pkg_failed=untried
31398fi
31399if test -n "$GLAMOR_LIBS"; then
31400    pkg_cv_GLAMOR_LIBS="$GLAMOR_LIBS"
31401 elif test -n "$PKG_CONFIG"; then
31402    if test -n "$PKG_CONFIG" && \
31403    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"epoxy\""; } >&5
31404  ($PKG_CONFIG --exists --print-errors "epoxy") 2>&5
31405  ac_status=$?
31406  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31407  test $ac_status = 0; }; then
31408  pkg_cv_GLAMOR_LIBS=`$PKG_CONFIG --libs "epoxy" 2>/dev/null`
31409		      test "x$?" != "x0" && pkg_failed=yes
31410else
31411  pkg_failed=yes
31412fi
31413 else
31414    pkg_failed=untried
31415fi
31416
31417
31418
31419if test $pkg_failed = yes; then
31420   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31421printf "%s\n" "no" >&6; }
31422
31423if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31424        _pkg_short_errors_supported=yes
31425else
31426        _pkg_short_errors_supported=no
31427fi
31428        if test $_pkg_short_errors_supported = yes; then
31429	        GLAMOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "epoxy" 2>&1`
31430        else
31431	        GLAMOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "epoxy" 2>&1`
31432        fi
31433	# Put the nasty error message in config.log where it belongs
31434	echo "$GLAMOR_PKG_ERRORS" >&5
31435
31436	as_fn_error $? "Package requirements (epoxy) were not met:
31437
31438$GLAMOR_PKG_ERRORS
31439
31440Consider adjusting the PKG_CONFIG_PATH environment variable if you
31441installed software in a non-standard prefix.
31442
31443Alternatively, you may set the environment variables GLAMOR_CFLAGS
31444and GLAMOR_LIBS to avoid the need to call pkg-config.
31445See the pkg-config man page for more details." "$LINENO" 5
31446elif test $pkg_failed = untried; then
31447     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31448printf "%s\n" "no" >&6; }
31449	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
31450printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
31451as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
31452is in your PATH or set the PKG_CONFIG environment variable to the full
31453path to pkg-config.
31454
31455Alternatively, you may set the environment variables GLAMOR_CFLAGS
31456and GLAMOR_LIBS to avoid the need to call pkg-config.
31457See the pkg-config man page for more details.
31458
31459To get pkg-config, see <http://pkg-config.freedesktop.org/>.
31460See \`config.log' for more details" "$LINENO" 5; }
31461else
31462	GLAMOR_CFLAGS=$pkg_cv_GLAMOR_CFLAGS
31463	GLAMOR_LIBS=$pkg_cv_GLAMOR_LIBS
31464        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31465printf "%s\n" "yes" >&6; }
31466
31467fi
31468
31469	if test -n "$PKG_CONFIG" && \
31470    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"epoxy >= 1.4.4\""; } >&5
31471  ($PKG_CONFIG --exists --print-errors "epoxy >= 1.4.4") 2>&5
31472  ac_status=$?
31473  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31474  test $ac_status = 0; }; then
31475
31476printf "%s\n" "#define GLAMOR_HAS_EGL_QUERY_DMABUF 1" >>confdefs.h
31477
31478fi
31479
31480	if test -n "$PKG_CONFIG" && \
31481    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"epoxy >= 1.5.4\""; } >&5
31482  ($PKG_CONFIG --exists --print-errors "epoxy >= 1.5.4") 2>&5
31483  ac_status=$?
31484  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31485  test $ac_status = 0; }; then
31486
31487printf "%s\n" "#define GLAMOR_HAS_EGL_QUERY_DRIVER 1" >>confdefs.h
31488
31489fi
31490
31491
31492pkg_failed=no
31493{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GBM" >&5
31494printf %s "checking for GBM... " >&6; }
31495
31496if test -n "$GBM_CFLAGS"; then
31497    pkg_cv_GBM_CFLAGS="$GBM_CFLAGS"
31498 elif test -n "$PKG_CONFIG"; then
31499    if test -n "$PKG_CONFIG" && \
31500    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"\$LIBGBM\"\""; } >&5
31501  ($PKG_CONFIG --exists --print-errors ""$LIBGBM"") 2>&5
31502  ac_status=$?
31503  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31504  test $ac_status = 0; }; then
31505  pkg_cv_GBM_CFLAGS=`$PKG_CONFIG --cflags ""$LIBGBM"" 2>/dev/null`
31506		      test "x$?" != "x0" && pkg_failed=yes
31507else
31508  pkg_failed=yes
31509fi
31510 else
31511    pkg_failed=untried
31512fi
31513if test -n "$GBM_LIBS"; then
31514    pkg_cv_GBM_LIBS="$GBM_LIBS"
31515 elif test -n "$PKG_CONFIG"; then
31516    if test -n "$PKG_CONFIG" && \
31517    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"\$LIBGBM\"\""; } >&5
31518  ($PKG_CONFIG --exists --print-errors ""$LIBGBM"") 2>&5
31519  ac_status=$?
31520  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31521  test $ac_status = 0; }; then
31522  pkg_cv_GBM_LIBS=`$PKG_CONFIG --libs ""$LIBGBM"" 2>/dev/null`
31523		      test "x$?" != "x0" && pkg_failed=yes
31524else
31525  pkg_failed=yes
31526fi
31527 else
31528    pkg_failed=untried
31529fi
31530
31531
31532
31533if test $pkg_failed = yes; then
31534   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31535printf "%s\n" "no" >&6; }
31536
31537if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31538        _pkg_short_errors_supported=yes
31539else
31540        _pkg_short_errors_supported=no
31541fi
31542        if test $_pkg_short_errors_supported = yes; then
31543	        GBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs ""$LIBGBM"" 2>&1`
31544        else
31545	        GBM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs ""$LIBGBM"" 2>&1`
31546        fi
31547	# Put the nasty error message in config.log where it belongs
31548	echo "$GBM_PKG_ERRORS" >&5
31549
31550	GBM=no
31551elif test $pkg_failed = untried; then
31552     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31553printf "%s\n" "no" >&6; }
31554	GBM=no
31555else
31556	GBM_CFLAGS=$pkg_cv_GBM_CFLAGS
31557	GBM_LIBS=$pkg_cv_GBM_LIBS
31558        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31559printf "%s\n" "yes" >&6; }
31560	GBM=yes
31561fi
31562	if test "x$GBM" = xyes; then
31563
31564printf "%s\n" "#define GLAMOR_HAS_GBM 1" >>confdefs.h
31565
31566		ac_fn_check_decl "$LINENO" "GBM_BO_USE_LINEAR" "ac_cv_have_decl_GBM_BO_USE_LINEAR" "#include <stdlib.h>
31567			 #include <gbm.h>
31568" "$ac_c_undeclared_builtin_options" "CFLAGS"
31569if test "x$ac_cv_have_decl_GBM_BO_USE_LINEAR" = xyes
31570then :
31571
31572printf "%s\n" "#define GLAMOR_HAS_GBM_LINEAR 1" >>confdefs.h
31573
31574fi
31575				if test -n "$PKG_CONFIG" && \
31576    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 17.1.0\""; } >&5
31577  ($PKG_CONFIG --exists --print-errors "gbm >= 17.1.0") 2>&5
31578  ac_status=$?
31579  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31580  test $ac_status = 0; }; then
31581
31582printf "%s\n" "#define GBM_BO_WITH_MODIFIERS 1" >>confdefs.h
31583
31584fi
31585	else
31586		if test "x$XORG" = xyes; then
31587			as_fn_error $? "Glamor for Xorg requires $LIBGBM" "$LINENO" 5
31588		fi
31589	fi
31590fi
31591 if test "x$GBM" = xyes; then
31592  GLAMOR_EGL_TRUE=
31593  GLAMOR_EGL_FALSE='#'
31594else
31595  GLAMOR_EGL_TRUE='#'
31596  GLAMOR_EGL_FALSE=
31597fi
31598
31599
31600
31601{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build XWin DDX" >&5
31602printf %s "checking whether to build XWin DDX... " >&6; }
31603if test "x$XWIN" = xauto; then
31604	case $host_os in
31605		cygwin*) XWIN="yes" ;;
31606		mingw*) XWIN="yes" ;;
31607		*) XWIN="no" ;;
31608	esac
31609fi
31610{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XWIN" >&5
31611printf "%s\n" "$XWIN" >&6; }
31612
31613if test "x$XWIN" = xyes; then
31614
31615  prefix_NONE=
31616  exec_prefix_NONE=
31617  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
31618  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
31619  eval ac_define_dir="\"$logdir\""
31620  eval ac_define_dir="\"$ac_define_dir\""
31621  DEFAULT_LOGDIR="$ac_define_dir"
31622
31623
31624printf "%s\n" "#define DEFAULT_LOGDIR \"$ac_define_dir\"" >>confdefs.h
31625
31626  test "$prefix_NONE" && prefix=NONE
31627  test "$exec_prefix_NONE" && exec_prefix=NONE
31628
31629
31630printf "%s\n" "#define XORG_VERSION_CURRENT $VENDOR_RELEASE" >>confdefs.h
31631
31632
31633printf "%s\n" "#define __VENDORDWEBSUPPORT__ \"$VENDOR_WEB\"" >>confdefs.h
31634
31635	if test -n "$ac_tool_prefix"; then
31636  # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
31637set dummy ${ac_tool_prefix}windres; ac_word=$2
31638{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31639printf %s "checking for $ac_word... " >&6; }
31640if test ${ac_cv_prog_WINDRES+y}
31641then :
31642  printf %s "(cached) " >&6
31643else $as_nop
31644  if test -n "$WINDRES"; then
31645  ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
31646else
31647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31648for as_dir in $PATH
31649do
31650  IFS=$as_save_IFS
31651  case $as_dir in #(((
31652    '') as_dir=./ ;;
31653    */) ;;
31654    *) as_dir=$as_dir/ ;;
31655  esac
31656    for ac_exec_ext in '' $ac_executable_extensions; do
31657  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
31658    ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
31659    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
31660    break 2
31661  fi
31662done
31663  done
31664IFS=$as_save_IFS
31665
31666fi
31667fi
31668WINDRES=$ac_cv_prog_WINDRES
31669if test -n "$WINDRES"; then
31670  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
31671printf "%s\n" "$WINDRES" >&6; }
31672else
31673  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31674printf "%s\n" "no" >&6; }
31675fi
31676
31677
31678fi
31679if test -z "$ac_cv_prog_WINDRES"; then
31680  ac_ct_WINDRES=$WINDRES
31681  # Extract the first word of "windres", so it can be a program name with args.
31682set dummy windres; ac_word=$2
31683{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31684printf %s "checking for $ac_word... " >&6; }
31685if test ${ac_cv_prog_ac_ct_WINDRES+y}
31686then :
31687  printf %s "(cached) " >&6
31688else $as_nop
31689  if test -n "$ac_ct_WINDRES"; then
31690  ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
31691else
31692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31693for as_dir in $PATH
31694do
31695  IFS=$as_save_IFS
31696  case $as_dir in #(((
31697    '') as_dir=./ ;;
31698    */) ;;
31699    *) as_dir=$as_dir/ ;;
31700  esac
31701    for ac_exec_ext in '' $ac_executable_extensions; do
31702  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
31703    ac_cv_prog_ac_ct_WINDRES="windres"
31704    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
31705    break 2
31706  fi
31707done
31708  done
31709IFS=$as_save_IFS
31710
31711fi
31712fi
31713ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
31714if test -n "$ac_ct_WINDRES"; then
31715  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
31716printf "%s\n" "$ac_ct_WINDRES" >&6; }
31717else
31718  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31719printf "%s\n" "no" >&6; }
31720fi
31721
31722  if test "x$ac_ct_WINDRES" = x; then
31723    WINDRES=""
31724  else
31725    case $cross_compiling:$ac_tool_warned in
31726yes:)
31727{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
31728printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
31729ac_tool_warned=yes ;;
31730esac
31731    WINDRES=$ac_ct_WINDRES
31732  fi
31733else
31734  WINDRES="$ac_cv_prog_WINDRES"
31735fi
31736
31737
31738
31739pkg_failed=no
31740{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XWINMODULES" >&5
31741printf %s "checking for XWINMODULES... " >&6; }
31742
31743if test -n "$XWINMODULES_CFLAGS"; then
31744    pkg_cv_XWINMODULES_CFLAGS="$XWINMODULES_CFLAGS"
31745 elif test -n "$PKG_CONFIG"; then
31746    if test -n "$PKG_CONFIG" && \
31747    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-aux xcb-composite xcb-image xcb-ewmh xcb-icccm xcb-xfixes\""; } >&5
31748  ($PKG_CONFIG --exists --print-errors "xcb-aux xcb-composite xcb-image xcb-ewmh xcb-icccm xcb-xfixes") 2>&5
31749  ac_status=$?
31750  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31751  test $ac_status = 0; }; then
31752  pkg_cv_XWINMODULES_CFLAGS=`$PKG_CONFIG --cflags "xcb-aux xcb-composite xcb-image xcb-ewmh xcb-icccm xcb-xfixes" 2>/dev/null`
31753		      test "x$?" != "x0" && pkg_failed=yes
31754else
31755  pkg_failed=yes
31756fi
31757 else
31758    pkg_failed=untried
31759fi
31760if test -n "$XWINMODULES_LIBS"; then
31761    pkg_cv_XWINMODULES_LIBS="$XWINMODULES_LIBS"
31762 elif test -n "$PKG_CONFIG"; then
31763    if test -n "$PKG_CONFIG" && \
31764    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-aux xcb-composite xcb-image xcb-ewmh xcb-icccm xcb-xfixes\""; } >&5
31765  ($PKG_CONFIG --exists --print-errors "xcb-aux xcb-composite xcb-image xcb-ewmh xcb-icccm xcb-xfixes") 2>&5
31766  ac_status=$?
31767  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31768  test $ac_status = 0; }; then
31769  pkg_cv_XWINMODULES_LIBS=`$PKG_CONFIG --libs "xcb-aux xcb-composite xcb-image xcb-ewmh xcb-icccm xcb-xfixes" 2>/dev/null`
31770		      test "x$?" != "x0" && pkg_failed=yes
31771else
31772  pkg_failed=yes
31773fi
31774 else
31775    pkg_failed=untried
31776fi
31777
31778
31779
31780if test $pkg_failed = yes; then
31781   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31782printf "%s\n" "no" >&6; }
31783
31784if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31785        _pkg_short_errors_supported=yes
31786else
31787        _pkg_short_errors_supported=no
31788fi
31789        if test $_pkg_short_errors_supported = yes; then
31790	        XWINMODULES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xcb-aux xcb-composite xcb-image xcb-ewmh xcb-icccm xcb-xfixes" 2>&1`
31791        else
31792	        XWINMODULES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xcb-aux xcb-composite xcb-image xcb-ewmh xcb-icccm xcb-xfixes" 2>&1`
31793        fi
31794	# Put the nasty error message in config.log where it belongs
31795	echo "$XWINMODULES_PKG_ERRORS" >&5
31796
31797	as_fn_error $? "Package requirements (xcb-aux xcb-composite xcb-image xcb-ewmh xcb-icccm xcb-xfixes) were not met:
31798
31799$XWINMODULES_PKG_ERRORS
31800
31801Consider adjusting the PKG_CONFIG_PATH environment variable if you
31802installed software in a non-standard prefix.
31803
31804Alternatively, you may set the environment variables XWINMODULES_CFLAGS
31805and XWINMODULES_LIBS to avoid the need to call pkg-config.
31806See the pkg-config man page for more details." "$LINENO" 5
31807elif test $pkg_failed = untried; then
31808     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31809printf "%s\n" "no" >&6; }
31810	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
31811printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
31812as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
31813is in your PATH or set the PKG_CONFIG environment variable to the full
31814path to pkg-config.
31815
31816Alternatively, you may set the environment variables XWINMODULES_CFLAGS
31817and XWINMODULES_LIBS to avoid the need to call pkg-config.
31818See the pkg-config man page for more details.
31819
31820To get pkg-config, see <http://pkg-config.freedesktop.org/>.
31821See \`config.log' for more details" "$LINENO" 5; }
31822else
31823	XWINMODULES_CFLAGS=$pkg_cv_XWINMODULES_CFLAGS
31824	XWINMODULES_LIBS=$pkg_cv_XWINMODULES_LIBS
31825        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31826printf "%s\n" "yes" >&6; }
31827
31828fi
31829
31830	if test "x$WINDOWSDRI" = xauto; then
31831		if test -n "$PKG_CONFIG" && \
31832    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"windowsdriproto\""; } >&5
31833  ($PKG_CONFIG --exists --print-errors "windowsdriproto") 2>&5
31834  ac_status=$?
31835  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31836  test $ac_status = 0; }; then
31837  WINDOWSDRI=yes
31838else
31839  WINDOWSDRI=no
31840fi
31841	fi
31842	if test "x$WINDOWSDRI" = xyes ; then
31843
31844pkg_failed=no
31845{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for WINDOWSDRI" >&5
31846printf %s "checking for WINDOWSDRI... " >&6; }
31847
31848if test -n "$WINDOWSDRI_CFLAGS"; then
31849    pkg_cv_WINDOWSDRI_CFLAGS="$WINDOWSDRI_CFLAGS"
31850 elif test -n "$PKG_CONFIG"; then
31851    if test -n "$PKG_CONFIG" && \
31852    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"windowsdriproto\""; } >&5
31853  ($PKG_CONFIG --exists --print-errors "windowsdriproto") 2>&5
31854  ac_status=$?
31855  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31856  test $ac_status = 0; }; then
31857  pkg_cv_WINDOWSDRI_CFLAGS=`$PKG_CONFIG --cflags "windowsdriproto" 2>/dev/null`
31858		      test "x$?" != "x0" && pkg_failed=yes
31859else
31860  pkg_failed=yes
31861fi
31862 else
31863    pkg_failed=untried
31864fi
31865if test -n "$WINDOWSDRI_LIBS"; then
31866    pkg_cv_WINDOWSDRI_LIBS="$WINDOWSDRI_LIBS"
31867 elif test -n "$PKG_CONFIG"; then
31868    if test -n "$PKG_CONFIG" && \
31869    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"windowsdriproto\""; } >&5
31870  ($PKG_CONFIG --exists --print-errors "windowsdriproto") 2>&5
31871  ac_status=$?
31872  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31873  test $ac_status = 0; }; then
31874  pkg_cv_WINDOWSDRI_LIBS=`$PKG_CONFIG --libs "windowsdriproto" 2>/dev/null`
31875		      test "x$?" != "x0" && pkg_failed=yes
31876else
31877  pkg_failed=yes
31878fi
31879 else
31880    pkg_failed=untried
31881fi
31882
31883
31884
31885if test $pkg_failed = yes; then
31886   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31887printf "%s\n" "no" >&6; }
31888
31889if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31890        _pkg_short_errors_supported=yes
31891else
31892        _pkg_short_errors_supported=no
31893fi
31894        if test $_pkg_short_errors_supported = yes; then
31895	        WINDOWSDRI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "windowsdriproto" 2>&1`
31896        else
31897	        WINDOWSDRI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "windowsdriproto" 2>&1`
31898        fi
31899	# Put the nasty error message in config.log where it belongs
31900	echo "$WINDOWSDRI_PKG_ERRORS" >&5
31901
31902	as_fn_error $? "Package requirements (windowsdriproto) were not met:
31903
31904$WINDOWSDRI_PKG_ERRORS
31905
31906Consider adjusting the PKG_CONFIG_PATH environment variable if you
31907installed software in a non-standard prefix.
31908
31909Alternatively, you may set the environment variables WINDOWSDRI_CFLAGS
31910and WINDOWSDRI_LIBS to avoid the need to call pkg-config.
31911See the pkg-config man page for more details." "$LINENO" 5
31912elif test $pkg_failed = untried; then
31913     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31914printf "%s\n" "no" >&6; }
31915	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
31916printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
31917as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
31918is in your PATH or set the PKG_CONFIG environment variable to the full
31919path to pkg-config.
31920
31921Alternatively, you may set the environment variables WINDOWSDRI_CFLAGS
31922and WINDOWSDRI_LIBS to avoid the need to call pkg-config.
31923See the pkg-config man page for more details.
31924
31925To get pkg-config, see <http://pkg-config.freedesktop.org/>.
31926See \`config.log' for more details" "$LINENO" 5; }
31927else
31928	WINDOWSDRI_CFLAGS=$pkg_cv_WINDOWSDRI_CFLAGS
31929	WINDOWSDRI_LIBS=$pkg_cv_WINDOWSDRI_LIBS
31930        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31931printf "%s\n" "yes" >&6; }
31932
31933fi
31934	fi
31935
31936	case $host_os in
31937		cygwin*)
31938			XWIN_SERVER_NAME=XWin
31939
31940printf "%s\n" "#define HAS_DEVWINDOWS 1" >>confdefs.h
31941
31942			;;
31943		mingw*)
31944			XWIN_SERVER_NAME=Xming
31945
31946printf "%s\n" "#define RELOCATE_PROJECTROOT 1" >>confdefs.h
31947
31948
31949printf "%s\n" "#define HAS_WINSOCK 1" >>confdefs.h
31950
31951			XWIN_SYS_LIBS="-lpthread -lws2_32"
31952			;;
31953	esac
31954
31955	XWIN_LIBS="$FB_LIB $MI_LIB $FIXES_LIB $XEXT_LIB $RANDR_LIB $RENDER_LIB $DBE_LIB $RECORD_LIB $GLX_LIBS $XKB_LIB $XKB_STUB_LIB $COMPOSITE_LIB $DAMAGE_LIB $PRESENT_LIB $MIEXT_SYNC_LIB $MIEXT_DAMAGE_LIB $MIEXT_SHADOW_LIB $XI_LIB $OS_LIB"
31956	XWIN_SYS_LIBS="$XWIN_SYS_LIBS $XWINMODULES_LIBS"
31957
31958
31959
31960
31961	if test "x$DEBUGGING" = xyes; then
31962
31963printf "%s\n" "#define CYGDEBUG 1" >>confdefs.h
31964
31965
31966printf "%s\n" "#define CYGWINDOWING_DEBUG 1" >>confdefs.h
31967
31968
31969printf "%s\n" "#define CYGMULTIWINDOW_DEBUG 1" >>confdefs.h
31970
31971	fi
31972
31973
31974printf "%s\n" "#define DDXOSVERRORF 1" >>confdefs.h
31975
31976
31977printf "%s\n" "#define DDXBEFORERESET 1" >>confdefs.h
31978
31979
31980	if test "x$XWIN" = xyes && test "x$GLX" = xyes ; then
31981           # Extract the first word of "python3", so it can be a program name with args.
31982set dummy python3; ac_word=$2
31983{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31984printf %s "checking for $ac_word... " >&6; }
31985if test ${ac_cv_prog_PYTHON3+y}
31986then :
31987  printf %s "(cached) " >&6
31988else $as_nop
31989  if test -n "$PYTHON3"; then
31990  ac_cv_prog_PYTHON3="$PYTHON3" # Let the user override the test.
31991else
31992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31993for as_dir in $PATH
31994do
31995  IFS=$as_save_IFS
31996  case $as_dir in #(((
31997    '') as_dir=./ ;;
31998    */) ;;
31999    *) as_dir=$as_dir/ ;;
32000  esac
32001    for ac_exec_ext in '' $ac_executable_extensions; do
32002  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
32003    ac_cv_prog_PYTHON3="python3"
32004    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
32005    break 2
32006  fi
32007done
32008  done
32009IFS=$as_save_IFS
32010
32011fi
32012fi
32013PYTHON3=$ac_cv_prog_PYTHON3
32014if test -n "$PYTHON3"; then
32015  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON3" >&5
32016printf "%s\n" "$PYTHON3" >&6; }
32017else
32018  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32019printf "%s\n" "no" >&6; }
32020fi
32021
32022
32023           if test -z "$PYTHON3"; then
32024                as_fn_error $? "python3 not found" "$LINENO" 5
32025           fi
32026           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python module lxml" >&5
32027printf %s "checking for python module lxml... " >&6; }
32028           $PYTHON3 -c "import lxml;"
32029           if test $? -ne 0 ; then
32030                as_fn_error $? "not found" "$LINENO" 5
32031           fi
32032           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32033printf "%s\n" "yes" >&6; }
32034           if test "x$KHRONOS_SPEC_DIR" = "xauto" ; then
32035
32036pkg_failed=no
32037{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for KHRONOS_OPENGL_REGISTRY" >&5
32038printf %s "checking for KHRONOS_OPENGL_REGISTRY... " >&6; }
32039
32040if test -n "$KHRONOS_OPENGL_REGISTRY_CFLAGS"; then
32041    pkg_cv_KHRONOS_OPENGL_REGISTRY_CFLAGS="$KHRONOS_OPENGL_REGISTRY_CFLAGS"
32042 elif test -n "$PKG_CONFIG"; then
32043    if test -n "$PKG_CONFIG" && \
32044    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"khronos-opengl-registry\""; } >&5
32045  ($PKG_CONFIG --exists --print-errors "khronos-opengl-registry") 2>&5
32046  ac_status=$?
32047  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32048  test $ac_status = 0; }; then
32049  pkg_cv_KHRONOS_OPENGL_REGISTRY_CFLAGS=`$PKG_CONFIG --cflags "khronos-opengl-registry" 2>/dev/null`
32050		      test "x$?" != "x0" && pkg_failed=yes
32051else
32052  pkg_failed=yes
32053fi
32054 else
32055    pkg_failed=untried
32056fi
32057if test -n "$KHRONOS_OPENGL_REGISTRY_LIBS"; then
32058    pkg_cv_KHRONOS_OPENGL_REGISTRY_LIBS="$KHRONOS_OPENGL_REGISTRY_LIBS"
32059 elif test -n "$PKG_CONFIG"; then
32060    if test -n "$PKG_CONFIG" && \
32061    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"khronos-opengl-registry\""; } >&5
32062  ($PKG_CONFIG --exists --print-errors "khronos-opengl-registry") 2>&5
32063  ac_status=$?
32064  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32065  test $ac_status = 0; }; then
32066  pkg_cv_KHRONOS_OPENGL_REGISTRY_LIBS=`$PKG_CONFIG --libs "khronos-opengl-registry" 2>/dev/null`
32067		      test "x$?" != "x0" && pkg_failed=yes
32068else
32069  pkg_failed=yes
32070fi
32071 else
32072    pkg_failed=untried
32073fi
32074
32075
32076
32077if test $pkg_failed = yes; then
32078   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32079printf "%s\n" "no" >&6; }
32080
32081if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32082        _pkg_short_errors_supported=yes
32083else
32084        _pkg_short_errors_supported=no
32085fi
32086        if test $_pkg_short_errors_supported = yes; then
32087	        KHRONOS_OPENGL_REGISTRY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "khronos-opengl-registry" 2>&1`
32088        else
32089	        KHRONOS_OPENGL_REGISTRY_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "khronos-opengl-registry" 2>&1`
32090        fi
32091	# Put the nasty error message in config.log where it belongs
32092	echo "$KHRONOS_OPENGL_REGISTRY_PKG_ERRORS" >&5
32093
32094	as_fn_error $? "Package requirements (khronos-opengl-registry) were not met:
32095
32096$KHRONOS_OPENGL_REGISTRY_PKG_ERRORS
32097
32098Consider adjusting the PKG_CONFIG_PATH environment variable if you
32099installed software in a non-standard prefix.
32100
32101Alternatively, you may set the environment variables KHRONOS_OPENGL_REGISTRY_CFLAGS
32102and KHRONOS_OPENGL_REGISTRY_LIBS to avoid the need to call pkg-config.
32103See the pkg-config man page for more details." "$LINENO" 5
32104elif test $pkg_failed = untried; then
32105     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32106printf "%s\n" "no" >&6; }
32107	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32108printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
32109as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
32110is in your PATH or set the PKG_CONFIG environment variable to the full
32111path to pkg-config.
32112
32113Alternatively, you may set the environment variables KHRONOS_OPENGL_REGISTRY_CFLAGS
32114and KHRONOS_OPENGL_REGISTRY_LIBS to avoid the need to call pkg-config.
32115See the pkg-config man page for more details.
32116
32117To get pkg-config, see <http://pkg-config.freedesktop.org/>.
32118See \`config.log' for more details" "$LINENO" 5; }
32119else
32120	KHRONOS_OPENGL_REGISTRY_CFLAGS=$pkg_cv_KHRONOS_OPENGL_REGISTRY_CFLAGS
32121	KHRONOS_OPENGL_REGISTRY_LIBS=$pkg_cv_KHRONOS_OPENGL_REGISTRY_LIBS
32122        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32123printf "%s\n" "yes" >&6; }
32124
32125fi
32126		KHRONOS_SPEC_DIR=`pkg-config khronos-opengl-registry --variable=specdir`
32127           fi
32128
32129	fi
32130
32131fi
32132 if test "x$XWIN" = xyes; then
32133  XWIN_TRUE=
32134  XWIN_FALSE='#'
32135else
32136  XWIN_TRUE='#'
32137  XWIN_FALSE=
32138fi
32139
32140 if test "x$XWIN" = xyes && test "x$GLX" = xyes; then
32141  XWIN_GLX_WINDOWS_TRUE=
32142  XWIN_GLX_WINDOWS_FALSE='#'
32143else
32144  XWIN_GLX_WINDOWS_TRUE='#'
32145  XWIN_GLX_WINDOWS_FALSE=
32146fi
32147
32148 if test "x$XWIN" = xyes && test "x$WINDOWSDRI" = xyes; then
32149  XWIN_WINDOWS_DRI_TRUE=
32150  XWIN_WINDOWS_DRI_FALSE='#'
32151else
32152  XWIN_WINDOWS_DRI_TRUE='#'
32153  XWIN_WINDOWS_DRI_FALSE=
32154fi
32155
32156
32157if test "x$XQUARTZ" = xyes; then
32158
32159printf "%s\n" "#define XQUARTZ 1" >>confdefs.h
32160
32161
32162printf "%s\n" "#define ROOTLESS 1" >>confdefs.h
32163
32164
32165	XQUARTZ_LIBS="$COMPOSITE_LIB $FB_LIB $FIXES_LIB $XEXT_LIB $DBE_LIB $RECORD_LIB $RANDR_LIB $RENDER_LIB $DAMAGE_LIB $MIEXT_SYNC_LIB $MIEXT_DAMAGE_LIB $MIEXT_SHADOW_LIB $XI_LIB $XKB_LIB $XKB_STUB_LIB $XPSTUBS_LIB $PRESENT_LIB"
32166
32167
32168	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xp_init in -lXplugin" >&5
32169printf %s "checking for xp_init in -lXplugin... " >&6; }
32170if test ${ac_cv_lib_Xplugin_xp_init+y}
32171then :
32172  printf %s "(cached) " >&6
32173else $as_nop
32174  ac_check_lib_save_LIBS=$LIBS
32175LIBS="-lXplugin  $LIBS"
32176cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32177/* end confdefs.h.  */
32178
32179/* Override any GCC internal prototype to avoid an error.
32180   Use char because int might match the return type of a GCC
32181   builtin and then its argument prototype would still apply.  */
32182char xp_init ();
32183int
32184main (void)
32185{
32186return xp_init ();
32187  ;
32188  return 0;
32189}
32190_ACEOF
32191if ac_fn_c_try_link "$LINENO"
32192then :
32193  ac_cv_lib_Xplugin_xp_init=yes
32194else $as_nop
32195  ac_cv_lib_Xplugin_xp_init=no
32196fi
32197rm -f core conftest.err conftest.$ac_objext conftest.beam \
32198    conftest$ac_exeext conftest.$ac_ext
32199LIBS=$ac_check_lib_save_LIBS
32200fi
32201{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xplugin_xp_init" >&5
32202printf "%s\n" "$ac_cv_lib_Xplugin_xp_init" >&6; }
32203if test "x$ac_cv_lib_Xplugin_xp_init" = xyes
32204then :
32205  :
32206fi
32207
32208
32209	CFLAGS="${CFLAGS} -DROOTLESS_WORKAROUND -DROOTLESS_SAFEALPHA -DNO_ALLOCA"
32210
32211
32212pkg_failed=no
32213{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XPBPROXY" >&5
32214printf %s "checking for XPBPROXY... " >&6; }
32215
32216if test -n "$XPBPROXY_CFLAGS"; then
32217    pkg_cv_XPBPROXY_CFLAGS="$XPBPROXY_CFLAGS"
32218 elif test -n "$PKG_CONFIG"; then
32219    if test -n "$PKG_CONFIG" && \
32220    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$APPLEWMPROTO \$LIBAPPLEWM xfixes x11\""; } >&5
32221  ($PKG_CONFIG --exists --print-errors "$APPLEWMPROTO $LIBAPPLEWM xfixes x11") 2>&5
32222  ac_status=$?
32223  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32224  test $ac_status = 0; }; then
32225  pkg_cv_XPBPROXY_CFLAGS=`$PKG_CONFIG --cflags "$APPLEWMPROTO $LIBAPPLEWM xfixes x11" 2>/dev/null`
32226		      test "x$?" != "x0" && pkg_failed=yes
32227else
32228  pkg_failed=yes
32229fi
32230 else
32231    pkg_failed=untried
32232fi
32233if test -n "$XPBPROXY_LIBS"; then
32234    pkg_cv_XPBPROXY_LIBS="$XPBPROXY_LIBS"
32235 elif test -n "$PKG_CONFIG"; then
32236    if test -n "$PKG_CONFIG" && \
32237    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$APPLEWMPROTO \$LIBAPPLEWM xfixes x11\""; } >&5
32238  ($PKG_CONFIG --exists --print-errors "$APPLEWMPROTO $LIBAPPLEWM xfixes x11") 2>&5
32239  ac_status=$?
32240  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32241  test $ac_status = 0; }; then
32242  pkg_cv_XPBPROXY_LIBS=`$PKG_CONFIG --libs "$APPLEWMPROTO $LIBAPPLEWM xfixes x11" 2>/dev/null`
32243		      test "x$?" != "x0" && pkg_failed=yes
32244else
32245  pkg_failed=yes
32246fi
32247 else
32248    pkg_failed=untried
32249fi
32250
32251
32252
32253if test $pkg_failed = yes; then
32254   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32255printf "%s\n" "no" >&6; }
32256
32257if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32258        _pkg_short_errors_supported=yes
32259else
32260        _pkg_short_errors_supported=no
32261fi
32262        if test $_pkg_short_errors_supported = yes; then
32263	        XPBPROXY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$APPLEWMPROTO $LIBAPPLEWM xfixes x11" 2>&1`
32264        else
32265	        XPBPROXY_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$APPLEWMPROTO $LIBAPPLEWM xfixes x11" 2>&1`
32266        fi
32267	# Put the nasty error message in config.log where it belongs
32268	echo "$XPBPROXY_PKG_ERRORS" >&5
32269
32270	as_fn_error $? "Package requirements ($APPLEWMPROTO $LIBAPPLEWM xfixes x11) were not met:
32271
32272$XPBPROXY_PKG_ERRORS
32273
32274Consider adjusting the PKG_CONFIG_PATH environment variable if you
32275installed software in a non-standard prefix.
32276
32277Alternatively, you may set the environment variables XPBPROXY_CFLAGS
32278and XPBPROXY_LIBS to avoid the need to call pkg-config.
32279See the pkg-config man page for more details." "$LINENO" 5
32280elif test $pkg_failed = untried; then
32281     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32282printf "%s\n" "no" >&6; }
32283	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32284printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
32285as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
32286is in your PATH or set the PKG_CONFIG environment variable to the full
32287path to pkg-config.
32288
32289Alternatively, you may set the environment variables XPBPROXY_CFLAGS
32290and XPBPROXY_LIBS to avoid the need to call pkg-config.
32291See the pkg-config man page for more details.
32292
32293To get pkg-config, see <http://pkg-config.freedesktop.org/>.
32294See \`config.log' for more details" "$LINENO" 5; }
32295else
32296	XPBPROXY_CFLAGS=$pkg_cv_XPBPROXY_CFLAGS
32297	XPBPROXY_LIBS=$pkg_cv_XPBPROXY_LIBS
32298        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32299printf "%s\n" "yes" >&6; }
32300
32301fi
32302
32303        if test "x$XQUARTZ_SPARKLE" = xyes ; then
32304
32305printf "%s\n" "#define XQUARTZ_SPARKLE 1" >>confdefs.h
32306
32307        fi
32308
32309	if test "x$STANDALONE_XPBPROXY" = xyes ; then
32310
32311printf "%s\n" "#define STANDALONE_XPBPROXY 1" >>confdefs.h
32312
32313	fi
32314fi
32315
32316 if test "x$XQUARTZ" = xyes -o "x$XWIN" = xyes ; then
32317  PSEUDORAMIX_TRUE=
32318  PSEUDORAMIX_FALSE='#'
32319else
32320  PSEUDORAMIX_TRUE='#'
32321  PSEUDORAMIX_FALSE=
32322fi
32323
32324
32325# Support for objc in autotools is minimal and not documented.
32326OBJC='$(CC)'
32327OBJCLD='$(CCLD)'
32328OBJCLINK='$(LINK)'
32329OBJCFLAGS='$(CFLAGS)'
32330
32331
32332
32333
32334# internal, undocumented automake func follows :(
32335
32336depcc="$OBJC" am_compiler_list='gcc3 gcc'
32337
32338{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
32339printf %s "checking dependency style of $depcc... " >&6; }
32340if test ${am_cv_OBJC_dependencies_compiler_type+y}
32341then :
32342  printf %s "(cached) " >&6
32343else $as_nop
32344  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
32345  # We make a subdir and do the tests there.  Otherwise we can end up
32346  # making bogus files that we don't know about and never remove.  For
32347  # instance it was reported that on HP-UX the gcc test will end up
32348  # making a dummy file named 'D' -- because '-MD' means "put the output
32349  # in D".
32350  rm -rf conftest.dir
32351  mkdir conftest.dir
32352  # Copy depcomp to subdir because otherwise we won't find it if we're
32353  # using a relative directory.
32354  cp "$am_depcomp" conftest.dir
32355  cd conftest.dir
32356  # We will build objects and dependencies in a subdirectory because
32357  # it helps to detect inapplicable dependency modes.  For instance
32358  # both Tru64's cc and ICC support -MD to output dependencies as a
32359  # side effect of compilation, but ICC will put the dependencies in
32360  # the current directory while Tru64 will put them in the object
32361  # directory.
32362  mkdir sub
32363
32364  am_cv_OBJC_dependencies_compiler_type=none
32365  if test "$am_compiler_list" = ""; then
32366     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
32367  fi
32368  am__universal=false
32369
32370
32371  for depmode in $am_compiler_list; do
32372    # Setup a source with many dependencies, because some compilers
32373    # like to wrap large dependency lists on column 80 (with \), and
32374    # we should not choose a depcomp mode which is confused by this.
32375    #
32376    # We need to recreate these files for each test, as the compiler may
32377    # overwrite some of them when testing with obscure command lines.
32378    # This happens at least with the AIX C compiler.
32379    : > sub/conftest.c
32380    for i in 1 2 3 4 5 6; do
32381      echo '#include "conftst'$i'.h"' >> sub/conftest.c
32382      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
32383      # Solaris 10 /bin/sh.
32384      echo '/* dummy */' > sub/conftst$i.h
32385    done
32386    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
32387
32388    # We check with '-c' and '-o' for the sake of the "dashmstdout"
32389    # mode.  It turns out that the SunPro C++ compiler does not properly
32390    # handle '-M -o', and we need to detect this.  Also, some Intel
32391    # versions had trouble with output in subdirs.
32392    am__obj=sub/conftest.${OBJEXT-o}
32393    am__minus_obj="-o $am__obj"
32394    case $depmode in
32395    gcc)
32396      # This depmode causes a compiler race in universal mode.
32397      test "$am__universal" = false || continue
32398      ;;
32399    nosideeffect)
32400      # After this tag, mechanisms are not by side-effect, so they'll
32401      # only be used when explicitly requested.
32402      if test "x$enable_dependency_tracking" = xyes; then
32403	continue
32404      else
32405	break
32406      fi
32407      ;;
32408    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
32409      # This compiler won't grok '-c -o', but also, the minuso test has
32410      # not run yet.  These depmodes are late enough in the game, and
32411      # so weak that their functioning should not be impacted.
32412      am__obj=conftest.${OBJEXT-o}
32413      am__minus_obj=
32414      ;;
32415    none) break ;;
32416    esac
32417    if depmode=$depmode \
32418       source=sub/conftest.c object=$am__obj \
32419       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
32420       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
32421         >/dev/null 2>conftest.err &&
32422       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
32423       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
32424       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
32425       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
32426      # icc doesn't choke on unknown options, it will just issue warnings
32427      # or remarks (even with -Werror).  So we grep stderr for any message
32428      # that says an option was ignored or not supported.
32429      # When given -MP, icc 7.0 and 7.1 complain thusly:
32430      #   icc: Command line warning: ignoring option '-M'; no argument required
32431      # The diagnosis changed in icc 8.0:
32432      #   icc: Command line remark: option '-MP' not supported
32433      if (grep 'ignoring option' conftest.err ||
32434          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
32435        am_cv_OBJC_dependencies_compiler_type=$depmode
32436        break
32437      fi
32438    fi
32439  done
32440
32441  cd ..
32442  rm -rf conftest.dir
32443else
32444  am_cv_OBJC_dependencies_compiler_type=none
32445fi
32446
32447fi
32448{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_OBJC_dependencies_compiler_type" >&5
32449printf "%s\n" "$am_cv_OBJC_dependencies_compiler_type" >&6; }
32450OBJCDEPMODE=depmode=$am_cv_OBJC_dependencies_compiler_type
32451
32452 if
32453  test "x$enable_dependency_tracking" != xno \
32454  && test "$am_cv_OBJC_dependencies_compiler_type" = gcc3; then
32455  am__fastdepOBJC_TRUE=
32456  am__fastdepOBJC_FALSE='#'
32457else
32458  am__fastdepOBJC_TRUE='#'
32459  am__fastdepOBJC_FALSE=
32460fi
32461
32462
32463 if test "x$XQUARTZ" = xyes; then
32464  XQUARTZ_TRUE=
32465  XQUARTZ_FALSE='#'
32466else
32467  XQUARTZ_TRUE='#'
32468  XQUARTZ_FALSE=
32469fi
32470
32471 if test "x$XQUARTZ_SPARKLE" != "xno"; then
32472  XQUARTZ_SPARKLE_TRUE=
32473  XQUARTZ_SPARKLE_FALSE='#'
32474else
32475  XQUARTZ_SPARKLE_TRUE='#'
32476  XQUARTZ_SPARKLE_FALSE=
32477fi
32478
32479 if test "x$STANDALONE_XPBPROXY" = xyes; then
32480  STANDALONE_XPBPROXY_TRUE=
32481  STANDALONE_XPBPROXY_FALSE='#'
32482else
32483  STANDALONE_XPBPROXY_TRUE='#'
32484  STANDALONE_XPBPROXY_FALSE=
32485fi
32486
32487
32488
32489XEPHYR_LIBS=
32490XEPHYR_INCS=
32491
32492 if test x$KDRIVE = xyes; then
32493  KDRIVE_TRUE=
32494  KDRIVE_FALSE='#'
32495else
32496  KDRIVE_TRUE='#'
32497  KDRIVE_FALSE=
32498fi
32499
32500
32501if test "$KDRIVE" = yes; then
32502    XEPHYR_REQUIRED_LIBS="xau xdmcp xcb xcb-shape xcb-render xcb-renderutil xcb-aux xcb-image xcb-icccm xcb-shm >= 1.9.3 xcb-keysyms xcb-randr xcb-xkb"
32503    if test "x$XV" = xyes; then
32504        XEPHYR_REQUIRED_LIBS="$XEPHYR_REQUIRED_LIBS xcb-xv"
32505    fi
32506    if test "x$DRI" = xyes && test "x$GLX" = xyes; then
32507        XEPHYR_REQUIRED_LIBS="$XEPHYR_REQUIRED_LIBS $LIBDRM xcb-glx xcb-xf86dri > 1.6"
32508    fi
32509    if test "x$GLAMOR" = xyes; then
32510        XEPHYR_REQUIRED_LIBS="$XEPHYR_REQUIRED_LIBS x11-xcb"
32511    fi
32512
32513    if test "x$XEPHYR" = xauto; then
32514
32515pkg_failed=no
32516{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XEPHYR" >&5
32517printf %s "checking for XEPHYR... " >&6; }
32518
32519if test -n "$XEPHYR_CFLAGS"; then
32520    pkg_cv_XEPHYR_CFLAGS="$XEPHYR_CFLAGS"
32521 elif test -n "$PKG_CONFIG"; then
32522    if test -n "$PKG_CONFIG" && \
32523    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XEPHYR_REQUIRED_LIBS\""; } >&5
32524  ($PKG_CONFIG --exists --print-errors "$XEPHYR_REQUIRED_LIBS") 2>&5
32525  ac_status=$?
32526  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32527  test $ac_status = 0; }; then
32528  pkg_cv_XEPHYR_CFLAGS=`$PKG_CONFIG --cflags "$XEPHYR_REQUIRED_LIBS" 2>/dev/null`
32529		      test "x$?" != "x0" && pkg_failed=yes
32530else
32531  pkg_failed=yes
32532fi
32533 else
32534    pkg_failed=untried
32535fi
32536if test -n "$XEPHYR_LIBS"; then
32537    pkg_cv_XEPHYR_LIBS="$XEPHYR_LIBS"
32538 elif test -n "$PKG_CONFIG"; then
32539    if test -n "$PKG_CONFIG" && \
32540    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XEPHYR_REQUIRED_LIBS\""; } >&5
32541  ($PKG_CONFIG --exists --print-errors "$XEPHYR_REQUIRED_LIBS") 2>&5
32542  ac_status=$?
32543  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32544  test $ac_status = 0; }; then
32545  pkg_cv_XEPHYR_LIBS=`$PKG_CONFIG --libs "$XEPHYR_REQUIRED_LIBS" 2>/dev/null`
32546		      test "x$?" != "x0" && pkg_failed=yes
32547else
32548  pkg_failed=yes
32549fi
32550 else
32551    pkg_failed=untried
32552fi
32553
32554
32555
32556if test $pkg_failed = yes; then
32557   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32558printf "%s\n" "no" >&6; }
32559
32560if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32561        _pkg_short_errors_supported=yes
32562else
32563        _pkg_short_errors_supported=no
32564fi
32565        if test $_pkg_short_errors_supported = yes; then
32566	        XEPHYR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$XEPHYR_REQUIRED_LIBS" 2>&1`
32567        else
32568	        XEPHYR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$XEPHYR_REQUIRED_LIBS" 2>&1`
32569        fi
32570	# Put the nasty error message in config.log where it belongs
32571	echo "$XEPHYR_PKG_ERRORS" >&5
32572
32573	XEPHYR="no"
32574elif test $pkg_failed = untried; then
32575     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32576printf "%s\n" "no" >&6; }
32577	XEPHYR="no"
32578else
32579	XEPHYR_CFLAGS=$pkg_cv_XEPHYR_CFLAGS
32580	XEPHYR_LIBS=$pkg_cv_XEPHYR_LIBS
32581        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32582printf "%s\n" "yes" >&6; }
32583	XEPHYR="yes"
32584fi
32585    elif test "x$XEPHYR" = xyes ; then
32586
32587pkg_failed=no
32588{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XEPHYR" >&5
32589printf %s "checking for XEPHYR... " >&6; }
32590
32591if test -n "$XEPHYR_CFLAGS"; then
32592    pkg_cv_XEPHYR_CFLAGS="$XEPHYR_CFLAGS"
32593 elif test -n "$PKG_CONFIG"; then
32594    if test -n "$PKG_CONFIG" && \
32595    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XEPHYR_REQUIRED_LIBS\""; } >&5
32596  ($PKG_CONFIG --exists --print-errors "$XEPHYR_REQUIRED_LIBS") 2>&5
32597  ac_status=$?
32598  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32599  test $ac_status = 0; }; then
32600  pkg_cv_XEPHYR_CFLAGS=`$PKG_CONFIG --cflags "$XEPHYR_REQUIRED_LIBS" 2>/dev/null`
32601		      test "x$?" != "x0" && pkg_failed=yes
32602else
32603  pkg_failed=yes
32604fi
32605 else
32606    pkg_failed=untried
32607fi
32608if test -n "$XEPHYR_LIBS"; then
32609    pkg_cv_XEPHYR_LIBS="$XEPHYR_LIBS"
32610 elif test -n "$PKG_CONFIG"; then
32611    if test -n "$PKG_CONFIG" && \
32612    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XEPHYR_REQUIRED_LIBS\""; } >&5
32613  ($PKG_CONFIG --exists --print-errors "$XEPHYR_REQUIRED_LIBS") 2>&5
32614  ac_status=$?
32615  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32616  test $ac_status = 0; }; then
32617  pkg_cv_XEPHYR_LIBS=`$PKG_CONFIG --libs "$XEPHYR_REQUIRED_LIBS" 2>/dev/null`
32618		      test "x$?" != "x0" && pkg_failed=yes
32619else
32620  pkg_failed=yes
32621fi
32622 else
32623    pkg_failed=untried
32624fi
32625
32626
32627
32628if test $pkg_failed = yes; then
32629   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32630printf "%s\n" "no" >&6; }
32631
32632if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32633        _pkg_short_errors_supported=yes
32634else
32635        _pkg_short_errors_supported=no
32636fi
32637        if test $_pkg_short_errors_supported = yes; then
32638	        XEPHYR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$XEPHYR_REQUIRED_LIBS" 2>&1`
32639        else
32640	        XEPHYR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$XEPHYR_REQUIRED_LIBS" 2>&1`
32641        fi
32642	# Put the nasty error message in config.log where it belongs
32643	echo "$XEPHYR_PKG_ERRORS" >&5
32644
32645	as_fn_error $? "Package requirements ($XEPHYR_REQUIRED_LIBS) were not met:
32646
32647$XEPHYR_PKG_ERRORS
32648
32649Consider adjusting the PKG_CONFIG_PATH environment variable if you
32650installed software in a non-standard prefix.
32651
32652Alternatively, you may set the environment variables XEPHYR_CFLAGS
32653and XEPHYR_LIBS to avoid the need to call pkg-config.
32654See the pkg-config man page for more details." "$LINENO" 5
32655elif test $pkg_failed = untried; then
32656     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32657printf "%s\n" "no" >&6; }
32658	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32659printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
32660as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
32661is in your PATH or set the PKG_CONFIG environment variable to the full
32662path to pkg-config.
32663
32664Alternatively, you may set the environment variables XEPHYR_CFLAGS
32665and XEPHYR_LIBS to avoid the need to call pkg-config.
32666See the pkg-config man page for more details.
32667
32668To get pkg-config, see <http://pkg-config.freedesktop.org/>.
32669See \`config.log' for more details" "$LINENO" 5; }
32670else
32671	XEPHYR_CFLAGS=$pkg_cv_XEPHYR_CFLAGS
32672	XEPHYR_LIBS=$pkg_cv_XEPHYR_LIBS
32673        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32674printf "%s\n" "yes" >&6; }
32675
32676fi
32677    fi
32678
32679    # Xephyr needs nanosleep() which is in librt on Solaris
32680    ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
32681if test "x$ac_cv_func_nanosleep" = xyes
32682then :
32683
32684else $as_nop
32685  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
32686printf %s "checking for nanosleep in -lrt... " >&6; }
32687if test ${ac_cv_lib_rt_nanosleep+y}
32688then :
32689  printf %s "(cached) " >&6
32690else $as_nop
32691  ac_check_lib_save_LIBS=$LIBS
32692LIBS="-lrt  $LIBS"
32693cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32694/* end confdefs.h.  */
32695
32696/* Override any GCC internal prototype to avoid an error.
32697   Use char because int might match the return type of a GCC
32698   builtin and then its argument prototype would still apply.  */
32699char nanosleep ();
32700int
32701main (void)
32702{
32703return nanosleep ();
32704  ;
32705  return 0;
32706}
32707_ACEOF
32708if ac_fn_c_try_link "$LINENO"
32709then :
32710  ac_cv_lib_rt_nanosleep=yes
32711else $as_nop
32712  ac_cv_lib_rt_nanosleep=no
32713fi
32714rm -f core conftest.err conftest.$ac_objext conftest.beam \
32715    conftest$ac_exeext conftest.$ac_ext
32716LIBS=$ac_check_lib_save_LIBS
32717fi
32718{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
32719printf "%s\n" "$ac_cv_lib_rt_nanosleep" >&6; }
32720if test "x$ac_cv_lib_rt_nanosleep" = xyes
32721then :
32722  XEPHYR_LIBS="$XEPHYR_LIBS -lrt"
32723fi
32724
32725fi
32726
32727
32728    # damage shadow extension glx (NOTYET) fb mi
32729    KDRIVE_INC='-I$(top_srcdir)/hw/kdrive/src'
32730    KDRIVE_PURE_INCS="$KDRIVE_INC $MIEXT_SYNC_INC $MIEXT_DAMAGE_INC $MIEXT_SHADOW_INC $XEXT_INC $FB_INC $MI_INC"
32731    KDRIVE_OS_INC='-I$(top_srcdir)/hw/kdrive/linux'
32732    KDRIVE_INCS="$KDRIVE_PURE_INCS $KDRIVE_OS_INC"
32733
32734    KDRIVE_CFLAGS="$XSERVER_CFLAGS"
32735
32736    KDRIVE_PURE_LIBS="$FB_LIB $MI_LIB $FIXES_LIB $XEXT_LIB $DBE_LIB $RECORD_LIB $GLX_LIBS $RANDR_LIB $RENDER_LIB $DAMAGE_LIB $DRI3_LIB $PRESENT_LIB $MIEXT_SYNC_LIB $MIEXT_DAMAGE_LIB $MIEXT_SHADOW_LIB $XI_LIB $XKB_LIB $XKB_STUB_LIB $COMPOSITE_LIB $OS_LIB"
32737    KDRIVE_LIB='$(top_builddir)/hw/kdrive/src/libkdrive.la'
32738    KDRIVE_MAIN_LIB="$MAIN_LIB"
32739    KDRIVE_LOCAL_LIBS="$DIX_LIB $KDRIVE_LIB"
32740    KDRIVE_LOCAL_LIBS="$KDRIVE_LOCAL_LIBS $FB_LIB $MI_LIB $KDRIVE_PURE_LIBS"
32741    KDRIVE_LOCAL_LIBS="$KDRIVE_LOCAL_LIBS $KDRIVE_OS_LIB"
32742    KDRIVE_LIBS="$KDRIVE_LOCAL_LIBS $XSERVER_SYS_LIBS $GLX_SYS_LIBS $DLOPEN_LIBS"
32743
32744
32745
32746fi
32747
32748
32749
32750
32751
32752
32753
32754 if test "x$KDRIVE" = xyes && test "x$XEPHYR" = xyes; then
32755  XEPHYR_TRUE=
32756  XEPHYR_FALSE='#'
32757else
32758  XEPHYR_TRUE='#'
32759  XEPHYR_FALSE=
32760fi
32761
32762
32763
32764
32765cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32766/* end confdefs.h.  */
32767
32768#include <features.h>
32769#ifndef __GLIBC__
32770#error not glibc
32771#endif
32772
32773int
32774main (void)
32775{
32776
32777  ;
32778  return 0;
32779}
32780_ACEOF
32781if ac_fn_c_try_compile "$LINENO"
32782then :
32783
32784printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
32785
32786fi
32787rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
32788
32789
32790  prefix_NONE=
32791  exec_prefix_NONE=
32792  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
32793  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
32794  eval ac_define_dir="\"$prefix\""
32795  eval ac_define_dir="\"$ac_define_dir\""
32796  PROJECTROOT="$ac_define_dir"
32797
32798
32799printf "%s\n" "#define PROJECTROOT \"$ac_define_dir\"" >>confdefs.h
32800
32801  test "$prefix_NONE" && prefix=NONE
32802  test "$exec_prefix_NONE" && exec_prefix=NONE
32803
32804
32805  prefix_NONE=
32806  exec_prefix_NONE=
32807  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
32808  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
32809  eval ac_define_dir="\"$sysconfdir\""
32810  eval ac_define_dir="\"$ac_define_dir\""
32811  SYSCONFDIR="$ac_define_dir"
32812
32813
32814printf "%s\n" "#define SYSCONFDIR \"$ac_define_dir\"" >>confdefs.h
32815
32816  test "$prefix_NONE" && prefix=NONE
32817  test "$exec_prefix_NONE" && exec_prefix=NONE
32818
32819
32820
32821
32822DIX_CFLAGS="-DHAVE_DIX_CONFIG_H $XSERVER_CFLAGS"
32823
32824
32825
32826
32827
32828
32829
32830ac_config_commands="$ac_config_commands sdksyms"
32831
32832
32833if test "x$CONFIG_HAL" = xno && test "x$CONFIG_UDEV" = xno; then
32834    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:
32835             ***********************************************
32836             Neither HAL nor udev backend will be enabled.
32837             Input device hotplugging will not be available!
32838             ***********************************************" >&5
32839printf "%s\n" "$as_me: WARNING:
32840             ***********************************************
32841             Neither HAL nor udev backend will be enabled.
32842             Input device hotplugging will not be available!
32843             ***********************************************" >&2;}
32844fi
32845
32846ac_config_files="$ac_config_files Makefile glx/Makefile include/Makefile composite/Makefile damageext/Makefile dbe/Makefile dix/Makefile doc/Makefile doc/dtrace/Makefile man/Makefile fb/Makefile glamor/Makefile record/Makefile config/Makefile mi/Makefile miext/Makefile miext/sync/Makefile miext/damage/Makefile miext/shadow/Makefile miext/rootless/Makefile os/Makefile pseudoramiX/Makefile randr/Makefile render/Makefile xkb/Makefile Xext/Makefile Xi/Makefile xfixes/Makefile exa/Makefile dri3/Makefile present/Makefile hw/Makefile hw/xfree86/Makefile hw/xfree86/Xorg.sh hw/xfree86/common/Makefile hw/xfree86/ddc/Makefile hw/xfree86/dixmods/Makefile hw/xfree86/doc/Makefile hw/xfree86/dri/Makefile hw/xfree86/dri2/Makefile hw/xfree86/dri2/pci_ids/Makefile hw/xfree86/drivers/Makefile hw/xfree86/drivers/inputtest/Makefile hw/xfree86/drivers/modesetting/Makefile hw/xfree86/exa/Makefile hw/xfree86/exa/man/Makefile hw/xfree86/fbdevhw/Makefile hw/xfree86/fbdevhw/man/Makefile hw/xfree86/glamor_egl/Makefile hw/xfree86/i2c/Makefile hw/xfree86/int10/Makefile hw/xfree86/loader/Makefile hw/xfree86/man/Makefile hw/xfree86/modes/Makefile hw/xfree86/os-support/Makefile hw/xfree86/os-support/bsd/Makefile hw/xfree86/os-support/bus/Makefile hw/xfree86/os-support/hurd/Makefile hw/xfree86/os-support/misc/Makefile hw/xfree86/os-support/linux/Makefile hw/xfree86/os-support/solaris/Makefile hw/xfree86/os-support/stub/Makefile hw/xfree86/parser/Makefile hw/xfree86/ramdac/Makefile hw/xfree86/shadowfb/Makefile hw/xfree86/vgahw/Makefile hw/xfree86/x86emu/Makefile hw/xfree86/xkb/Makefile hw/xfree86/utils/Makefile hw/xfree86/utils/man/Makefile hw/xfree86/utils/gtf/Makefile hw/vfb/Makefile hw/vfb/man/Makefile hw/xnest/Makefile hw/xnest/man/Makefile hw/xwin/Makefile hw/xwin/dri/Makefile hw/xwin/glx/Makefile hw/xwin/man/Makefile hw/xwin/winclipboard/Makefile hw/xquartz/Makefile hw/xquartz/GL/Makefile hw/xquartz/bundle/Makefile hw/xquartz/man/Makefile hw/xquartz/mach-startup/Makefile hw/xquartz/pbproxy/Makefile hw/xquartz/xpr/Makefile hw/kdrive/Makefile hw/kdrive/ephyr/Makefile hw/kdrive/ephyr/man/Makefile hw/kdrive/src/Makefile test/Makefile xserver.ent xorg-server.pc"
32847
32848cat >confcache <<\_ACEOF
32849# This file is a shell script that caches the results of configure
32850# tests run on this system so they can be shared between configure
32851# scripts and configure runs, see configure's option --config-cache.
32852# It is not useful on other systems.  If it contains results you don't
32853# want to keep, you may remove or edit it.
32854#
32855# config.status only pays attention to the cache file if you give it
32856# the --recheck option to rerun configure.
32857#
32858# `ac_cv_env_foo' variables (set or unset) will be overridden when
32859# loading this file, other *unset* `ac_cv_foo' will be assigned the
32860# following values.
32861
32862_ACEOF
32863
32864# The following way of writing the cache mishandles newlines in values,
32865# but we know of no workaround that is simple, portable, and efficient.
32866# So, we kill variables containing newlines.
32867# Ultrix sh set writes to stderr and can't be redirected directly,
32868# and sets the high bit in the cache file unless we assign to the vars.
32869(
32870  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32871    eval ac_val=\$$ac_var
32872    case $ac_val in #(
32873    *${as_nl}*)
32874      case $ac_var in #(
32875      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
32876printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
32877      esac
32878      case $ac_var in #(
32879      _ | IFS | as_nl) ;; #(
32880      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
32881      *) { eval $ac_var=; unset $ac_var;} ;;
32882      esac ;;
32883    esac
32884  done
32885
32886  (set) 2>&1 |
32887    case $as_nl`(ac_space=' '; set) 2>&1` in #(
32888    *${as_nl}ac_space=\ *)
32889      # `set' does not quote correctly, so add quotes: double-quote
32890      # substitution turns \\\\ into \\, and sed turns \\ into \.
32891      sed -n \
32892	"s/'/'\\\\''/g;
32893	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32894      ;; #(
32895    *)
32896      # `set' quotes correctly as required by POSIX, so do not add quotes.
32897      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32898      ;;
32899    esac |
32900    sort
32901) |
32902  sed '
32903     /^ac_cv_env_/b end
32904     t clear
32905     :clear
32906     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
32907     t end
32908     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32909     :end' >>confcache
32910if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
32911  if test -w "$cache_file"; then
32912    if test "x$cache_file" != "x/dev/null"; then
32913      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
32914printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
32915      if test ! -f "$cache_file" || test -h "$cache_file"; then
32916	cat confcache >"$cache_file"
32917      else
32918        case $cache_file in #(
32919        */* | ?:*)
32920	  mv -f confcache "$cache_file"$$ &&
32921	  mv -f "$cache_file"$$ "$cache_file" ;; #(
32922        *)
32923	  mv -f confcache "$cache_file" ;;
32924	esac
32925      fi
32926    fi
32927  else
32928    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
32929printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
32930  fi
32931fi
32932rm -f confcache
32933
32934test "x$prefix" = xNONE && prefix=$ac_default_prefix
32935# Let make expand exec_prefix.
32936test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32937
32938DEFS=-DHAVE_CONFIG_H
32939
32940ac_libobjs=
32941ac_ltlibobjs=
32942U=
32943for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
32944  # 1. Remove the extension, and $U if already installed.
32945  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
32946  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
32947  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
32948  #    will be set to the directory where LIBOBJS objects are built.
32949  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32950  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
32951done
32952LIBOBJS=$ac_libobjs
32953
32954LTLIBOBJS=$ac_ltlibobjs
32955
32956
32957{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
32958printf %s "checking that generated files are newer than configure... " >&6; }
32959   if test -n "$am_sleep_pid"; then
32960     # Hide warnings about reused PIDs.
32961     wait $am_sleep_pid 2>/dev/null
32962   fi
32963   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
32964printf "%s\n" "done" >&6; }
32965 if test -n "$EXEEXT"; then
32966  am__EXEEXT_TRUE=
32967  am__EXEEXT_FALSE='#'
32968else
32969  am__EXEEXT_TRUE='#'
32970  am__EXEEXT_FALSE=
32971fi
32972
32973if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
32974  as_fn_error $? "conditional \"AMDEP\" was never defined.
32975Usually this means the macro was only invoked conditionally." "$LINENO" 5
32976fi
32977if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
32978  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
32979Usually this means the macro was only invoked conditionally." "$LINENO" 5
32980fi
32981if test -z "${HAVE_DOT_TRUE}" && test -z "${HAVE_DOT_FALSE}"; then
32982  as_fn_error $? "conditional \"HAVE_DOT\" was never defined.
32983Usually this means the macro was only invoked conditionally." "$LINENO" 5
32984fi
32985if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then
32986  as_fn_error $? "conditional \"HAVE_DOXYGEN\" was never defined.
32987Usually this means the macro was only invoked conditionally." "$LINENO" 5
32988fi
32989if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then
32990  as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined.
32991Usually this means the macro was only invoked conditionally." "$LINENO" 5
32992fi
32993if test -z "${ENABLE_DOCS_TRUE}" && test -z "${ENABLE_DOCS_FALSE}"; then
32994  as_fn_error $? "conditional \"ENABLE_DOCS\" was never defined.
32995Usually this means the macro was only invoked conditionally." "$LINENO" 5
32996fi
32997if test -z "${ENABLE_DEVEL_DOCS_TRUE}" && test -z "${ENABLE_DEVEL_DOCS_FALSE}"; then
32998  as_fn_error $? "conditional \"ENABLE_DEVEL_DOCS\" was never defined.
32999Usually this means the macro was only invoked conditionally." "$LINENO" 5
33000fi
33001if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then
33002  as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined.
33003Usually this means the macro was only invoked conditionally." "$LINENO" 5
33004fi
33005if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
33006  as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined.
33007Usually this means the macro was only invoked conditionally." "$LINENO" 5
33008fi
33009if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then
33010  as_fn_error $? "conditional \"HAVE_FOP\" was never defined.
33011Usually this means the macro was only invoked conditionally." "$LINENO" 5
33012fi
33013if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then
33014  as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined.
33015Usually this means the macro was only invoked conditionally." "$LINENO" 5
33016fi
33017if test -z "${ENABLE_UNIT_TESTS_TRUE}" && test -z "${ENABLE_UNIT_TESTS_FALSE}"; then
33018  as_fn_error $? "conditional \"ENABLE_UNIT_TESTS\" was never defined.
33019Usually this means the macro was only invoked conditionally." "$LINENO" 5
33020fi
33021if test -z "${HAVE_LD_WRAP_TRUE}" && test -z "${HAVE_LD_WRAP_FALSE}"; then
33022  as_fn_error $? "conditional \"HAVE_LD_WRAP\" was never defined.
33023Usually this means the macro was only invoked conditionally." "$LINENO" 5
33024fi
33025if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
33026  as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
33027Usually this means the macro was only invoked conditionally." "$LINENO" 5
33028fi
33029if test -z "${XSERVER_DTRACE_TRUE}" && test -z "${XSERVER_DTRACE_FALSE}"; then
33030  as_fn_error $? "conditional \"XSERVER_DTRACE\" was never defined.
33031Usually this means the macro was only invoked conditionally." "$LINENO" 5
33032fi
33033if test -z "${SPECIAL_DTRACE_OBJECTS_TRUE}" && test -z "${SPECIAL_DTRACE_OBJECTS_FALSE}"; then
33034  as_fn_error $? "conditional \"SPECIAL_DTRACE_OBJECTS\" was never defined.
33035Usually this means the macro was only invoked conditionally." "$LINENO" 5
33036fi
33037
33038if test -z "${POLL_TRUE}" && test -z "${POLL_FALSE}"; then
33039  as_fn_error $? "conditional \"POLL\" was never defined.
33040Usually this means the macro was only invoked conditionally." "$LINENO" 5
33041fi
33042if test -z "${AGP_TRUE}" && test -z "${AGP_FALSE}"; then
33043  as_fn_error $? "conditional \"AGP\" was never defined.
33044Usually this means the macro was only invoked conditionally." "$LINENO" 5
33045fi
33046if test -z "${FBDEVHW_TRUE}" && test -z "${FBDEVHW_FALSE}"; then
33047  as_fn_error $? "conditional \"FBDEVHW\" was never defined.
33048Usually this means the macro was only invoked conditionally." "$LINENO" 5
33049fi
33050if test -z "${FREEBSD_KLDLOAD_TRUE}" && test -z "${FREEBSD_KLDLOAD_FALSE}"; then
33051  as_fn_error $? "conditional \"FREEBSD_KLDLOAD\" was never defined.
33052Usually this means the macro was only invoked conditionally." "$LINENO" 5
33053fi
33054if test -z "${ALPHA_VIDEO_TRUE}" && test -z "${ALPHA_VIDEO_FALSE}"; then
33055  as_fn_error $? "conditional \"ALPHA_VIDEO\" was never defined.
33056Usually this means the macro was only invoked conditionally." "$LINENO" 5
33057fi
33058if test -z "${ARM_VIDEO_TRUE}" && test -z "${ARM_VIDEO_FALSE}"; then
33059  as_fn_error $? "conditional \"ARM_VIDEO\" was never defined.
33060Usually this means the macro was only invoked conditionally." "$LINENO" 5
33061fi
33062if test -z "${I386_VIDEO_TRUE}" && test -z "${I386_VIDEO_FALSE}"; then
33063  as_fn_error $? "conditional \"I386_VIDEO\" was never defined.
33064Usually this means the macro was only invoked conditionally." "$LINENO" 5
33065fi
33066if test -z "${PPC_VIDEO_TRUE}" && test -z "${PPC_VIDEO_FALSE}"; then
33067  as_fn_error $? "conditional \"PPC_VIDEO\" was never defined.
33068Usually this means the macro was only invoked conditionally." "$LINENO" 5
33069fi
33070if test -z "${SPARC64_VIDEO_TRUE}" && test -z "${SPARC64_VIDEO_FALSE}"; then
33071  as_fn_error $? "conditional \"SPARC64_VIDEO\" was never defined.
33072Usually this means the macro was only invoked conditionally." "$LINENO" 5
33073fi
33074if test -z "${INSTALL_SETUID_TRUE}" && test -z "${INSTALL_SETUID_FALSE}"; then
33075  as_fn_error $? "conditional \"INSTALL_SETUID\" was never defined.
33076Usually this means the macro was only invoked conditionally." "$LINENO" 5
33077fi
33078if test -z "${SECURE_RPC_TRUE}" && test -z "${SECURE_RPC_FALSE}"; then
33079  as_fn_error $? "conditional \"SECURE_RPC\" was never defined.
33080Usually this means the macro was only invoked conditionally." "$LINENO" 5
33081fi
33082if test -z "${INT10_VM86_TRUE}" && test -z "${INT10_VM86_FALSE}"; then
33083  as_fn_error $? "conditional \"INT10_VM86\" was never defined.
33084Usually this means the macro was only invoked conditionally." "$LINENO" 5
33085fi
33086if test -z "${INT10_X86EMU_TRUE}" && test -z "${INT10_X86EMU_FALSE}"; then
33087  as_fn_error $? "conditional \"INT10_X86EMU\" was never defined.
33088Usually this means the macro was only invoked conditionally." "$LINENO" 5
33089fi
33090if test -z "${INT10_STUB_TRUE}" && test -z "${INT10_STUB_FALSE}"; then
33091  as_fn_error $? "conditional \"INT10_STUB\" was never defined.
33092Usually this means the macro was only invoked conditionally." "$LINENO" 5
33093fi
33094if test -z "${HAVE_SYSTEMD_DAEMON_TRUE}" && test -z "${HAVE_SYSTEMD_DAEMON_FALSE}"; then
33095  as_fn_error $? "conditional \"HAVE_SYSTEMD_DAEMON\" was never defined.
33096Usually this means the macro was only invoked conditionally." "$LINENO" 5
33097fi
33098if test -z "${CONFIG_UDEV_TRUE}" && test -z "${CONFIG_UDEV_FALSE}"; then
33099  as_fn_error $? "conditional \"CONFIG_UDEV\" was never defined.
33100Usually this means the macro was only invoked conditionally." "$LINENO" 5
33101fi
33102if test -z "${CONFIG_UDEV_KMS_TRUE}" && test -z "${CONFIG_UDEV_KMS_FALSE}"; then
33103  as_fn_error $? "conditional \"CONFIG_UDEV_KMS\" was never defined.
33104Usually this means the macro was only invoked conditionally." "$LINENO" 5
33105fi
33106if test -z "${HAVE_DBUS_TRUE}" && test -z "${HAVE_DBUS_FALSE}"; then
33107  as_fn_error $? "conditional \"HAVE_DBUS\" was never defined.
33108Usually this means the macro was only invoked conditionally." "$LINENO" 5
33109fi
33110if test -z "${CONFIG_HAL_TRUE}" && test -z "${CONFIG_HAL_FALSE}"; then
33111  as_fn_error $? "conditional \"CONFIG_HAL\" was never defined.
33112Usually this means the macro was only invoked conditionally." "$LINENO" 5
33113fi
33114if test -z "${SYSTEMD_LOGIND_TRUE}" && test -z "${SYSTEMD_LOGIND_FALSE}"; then
33115  as_fn_error $? "conditional \"SYSTEMD_LOGIND\" was never defined.
33116Usually this means the macro was only invoked conditionally." "$LINENO" 5
33117fi
33118if test -z "${SUID_WRAPPER_TRUE}" && test -z "${SUID_WRAPPER_FALSE}"; then
33119  as_fn_error $? "conditional \"SUID_WRAPPER\" was never defined.
33120Usually this means the macro was only invoked conditionally." "$LINENO" 5
33121fi
33122if test -z "${NEED_DBUS_TRUE}" && test -z "${NEED_DBUS_FALSE}"; then
33123  as_fn_error $? "conditional \"NEED_DBUS\" was never defined.
33124Usually this means the macro was only invoked conditionally." "$LINENO" 5
33125fi
33126if test -z "${CONFIG_WSCONS_TRUE}" && test -z "${CONFIG_WSCONS_FALSE}"; then
33127  as_fn_error $? "conditional \"CONFIG_WSCONS\" was never defined.
33128Usually this means the macro was only invoked conditionally." "$LINENO" 5
33129fi
33130if test -z "${XV_TRUE}" && test -z "${XV_FALSE}"; then
33131  as_fn_error $? "conditional \"XV\" was never defined.
33132Usually this means the macro was only invoked conditionally." "$LINENO" 5
33133fi
33134if test -z "${XVMC_TRUE}" && test -z "${XVMC_FALSE}"; then
33135  as_fn_error $? "conditional \"XVMC\" was never defined.
33136Usually this means the macro was only invoked conditionally." "$LINENO" 5
33137fi
33138if test -z "${COMPOSITE_TRUE}" && test -z "${COMPOSITE_FALSE}"; then
33139  as_fn_error $? "conditional \"COMPOSITE\" was never defined.
33140Usually this means the macro was only invoked conditionally." "$LINENO" 5
33141fi
33142if test -z "${MITSHM_TRUE}" && test -z "${MITSHM_FALSE}"; then
33143  as_fn_error $? "conditional \"MITSHM\" was never defined.
33144Usually this means the macro was only invoked conditionally." "$LINENO" 5
33145fi
33146if test -z "${RECORD_TRUE}" && test -z "${RECORD_FALSE}"; then
33147  as_fn_error $? "conditional \"RECORD\" was never defined.
33148Usually this means the macro was only invoked conditionally." "$LINENO" 5
33149fi
33150if test -z "${SCREENSAVER_TRUE}" && test -z "${SCREENSAVER_FALSE}"; then
33151  as_fn_error $? "conditional \"SCREENSAVER\" was never defined.
33152Usually this means the macro was only invoked conditionally." "$LINENO" 5
33153fi
33154if test -z "${RES_TRUE}" && test -z "${RES_FALSE}"; then
33155  as_fn_error $? "conditional \"RES\" was never defined.
33156Usually this means the macro was only invoked conditionally." "$LINENO" 5
33157fi
33158if test -z "${CLIENTIDS_TRUE}" && test -z "${CLIENTIDS_FALSE}"; then
33159  as_fn_error $? "conditional \"CLIENTIDS\" was never defined.
33160Usually this means the macro was only invoked conditionally." "$LINENO" 5
33161fi
33162if test -z "${DRI_TRUE}" && test -z "${DRI_FALSE}"; then
33163  as_fn_error $? "conditional \"DRI\" was never defined.
33164Usually this means the macro was only invoked conditionally." "$LINENO" 5
33165fi
33166if test -z "${DRI2_TRUE}" && test -z "${DRI2_FALSE}"; then
33167  as_fn_error $? "conditional \"DRI2\" was never defined.
33168Usually this means the macro was only invoked conditionally." "$LINENO" 5
33169fi
33170if test -z "${BUSFAULT_TRUE}" && test -z "${BUSFAULT_FALSE}"; then
33171  as_fn_error $? "conditional \"BUSFAULT\" was never defined.
33172Usually this means the macro was only invoked conditionally." "$LINENO" 5
33173fi
33174if test -z "${XSHMFENCE_TRUE}" && test -z "${XSHMFENCE_FALSE}"; then
33175  as_fn_error $? "conditional \"XSHMFENCE\" was never defined.
33176Usually this means the macro was only invoked conditionally." "$LINENO" 5
33177fi
33178if test -z "${DRI3_TRUE}" && test -z "${DRI3_FALSE}"; then
33179  as_fn_error $? "conditional \"DRI3\" was never defined.
33180Usually this means the macro was only invoked conditionally." "$LINENO" 5
33181fi
33182if test -z "${GLX_TRUE}" && test -z "${GLX_FALSE}"; then
33183  as_fn_error $? "conditional \"GLX\" was never defined.
33184Usually this means the macro was only invoked conditionally." "$LINENO" 5
33185fi
33186if test -z "${HASHTABLE_TRUE}" && test -z "${HASHTABLE_FALSE}"; then
33187  as_fn_error $? "conditional \"HASHTABLE\" was never defined.
33188Usually this means the macro was only invoked conditionally." "$LINENO" 5
33189fi
33190if test -z "${PRESENT_TRUE}" && test -z "${PRESENT_FALSE}"; then
33191  as_fn_error $? "conditional \"PRESENT\" was never defined.
33192Usually this means the macro was only invoked conditionally." "$LINENO" 5
33193fi
33194if test -z "${XINERAMA_TRUE}" && test -z "${XINERAMA_FALSE}"; then
33195  as_fn_error $? "conditional \"XINERAMA\" was never defined.
33196Usually this means the macro was only invoked conditionally." "$LINENO" 5
33197fi
33198if test -z "${XACE_TRUE}" && test -z "${XACE_FALSE}"; then
33199  as_fn_error $? "conditional \"XACE\" was never defined.
33200Usually this means the macro was only invoked conditionally." "$LINENO" 5
33201fi
33202if test -z "${XSELINUX_TRUE}" && test -z "${XSELINUX_FALSE}"; then
33203  as_fn_error $? "conditional \"XSELINUX\" was never defined.
33204Usually this means the macro was only invoked conditionally." "$LINENO" 5
33205fi
33206if test -z "${XCSECURITY_TRUE}" && test -z "${XCSECURITY_FALSE}"; then
33207  as_fn_error $? "conditional \"XCSECURITY\" was never defined.
33208Usually this means the macro was only invoked conditionally." "$LINENO" 5
33209fi
33210if test -z "${DBE_TRUE}" && test -z "${DBE_FALSE}"; then
33211  as_fn_error $? "conditional \"DBE\" was never defined.
33212Usually this means the macro was only invoked conditionally." "$LINENO" 5
33213fi
33214if test -z "${XF86BIGFONT_TRUE}" && test -z "${XF86BIGFONT_FALSE}"; then
33215  as_fn_error $? "conditional \"XF86BIGFONT\" was never defined.
33216Usually this means the macro was only invoked conditionally." "$LINENO" 5
33217fi
33218if test -z "${DPMSExtension_TRUE}" && test -z "${DPMSExtension_FALSE}"; then
33219  as_fn_error $? "conditional \"DPMSExtension\" was never defined.
33220Usually this means the macro was only invoked conditionally." "$LINENO" 5
33221fi
33222if test -z "${XF86UTILS_TRUE}" && test -z "${XF86UTILS_FALSE}"; then
33223  as_fn_error $? "conditional \"XF86UTILS\" was never defined.
33224Usually this means the macro was only invoked conditionally." "$LINENO" 5
33225fi
33226if test -z "${VGAHW_TRUE}" && test -z "${VGAHW_FALSE}"; then
33227  as_fn_error $? "conditional \"VGAHW\" was never defined.
33228Usually this means the macro was only invoked conditionally." "$LINENO" 5
33229fi
33230if test -z "${INT10MODULE_TRUE}" && test -z "${INT10MODULE_FALSE}"; then
33231  as_fn_error $? "conditional \"INT10MODULE\" was never defined.
33232Usually this means the macro was only invoked conditionally." "$LINENO" 5
33233fi
33234if test -z "${XDMCP_TRUE}" && test -z "${XDMCP_FALSE}"; then
33235  as_fn_error $? "conditional \"XDMCP\" was never defined.
33236Usually this means the macro was only invoked conditionally." "$LINENO" 5
33237fi
33238if test -z "${XDMAUTH_TRUE}" && test -z "${XDMAUTH_FALSE}"; then
33239  as_fn_error $? "conditional \"XDMAUTH\" was never defined.
33240Usually this means the macro was only invoked conditionally." "$LINENO" 5
33241fi
33242if test -z "${XF86VIDMODE_TRUE}" && test -z "${XF86VIDMODE_FALSE}"; then
33243  as_fn_error $? "conditional \"XF86VIDMODE\" was never defined.
33244Usually this means the macro was only invoked conditionally." "$LINENO" 5
33245fi
33246if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then
33247  as_fn_error $? "conditional \"DEBUG\" was never defined.
33248Usually this means the macro was only invoked conditionally." "$LINENO" 5
33249fi
33250if test -z "${HAVE_LIBUNWIND_TRUE}" && test -z "${HAVE_LIBUNWIND_FALSE}"; then
33251  as_fn_error $? "conditional \"HAVE_LIBUNWIND\" was never defined.
33252Usually this means the macro was only invoked conditionally." "$LINENO" 5
33253fi
33254if test -z "${CYGWIN_TRUE}" && test -z "${CYGWIN_FALSE}"; then
33255  as_fn_error $? "conditional \"CYGWIN\" was never defined.
33256Usually this means the macro was only invoked conditionally." "$LINENO" 5
33257fi
33258if test -z "${NO_UNDEFINED_TRUE}" && test -z "${NO_UNDEFINED_FALSE}"; then
33259  as_fn_error $? "conditional \"NO_UNDEFINED\" was never defined.
33260Usually this means the macro was only invoked conditionally." "$LINENO" 5
33261fi
33262if test -z "${XVFB_TRUE}" && test -z "${XVFB_FALSE}"; then
33263  as_fn_error $? "conditional \"XVFB\" was never defined.
33264Usually this means the macro was only invoked conditionally." "$LINENO" 5
33265fi
33266if test -z "${XNEST_TRUE}" && test -z "${XNEST_FALSE}"; then
33267  as_fn_error $? "conditional \"XNEST\" was never defined.
33268Usually this means the macro was only invoked conditionally." "$LINENO" 5
33269fi
33270if test -z "${XORG_TRUE}" && test -z "${XORG_FALSE}"; then
33271  as_fn_error $? "conditional \"XORG\" was never defined.
33272Usually this means the macro was only invoked conditionally." "$LINENO" 5
33273fi
33274if test -z "${XORG_BUS_PCI_TRUE}" && test -z "${XORG_BUS_PCI_FALSE}"; then
33275  as_fn_error $? "conditional \"XORG_BUS_PCI\" was never defined.
33276Usually this means the macro was only invoked conditionally." "$LINENO" 5
33277fi
33278if test -z "${XORG_BUS_BSDPCI_TRUE}" && test -z "${XORG_BUS_BSDPCI_FALSE}"; then
33279  as_fn_error $? "conditional \"XORG_BUS_BSDPCI\" was never defined.
33280Usually this means the macro was only invoked conditionally." "$LINENO" 5
33281fi
33282if test -z "${XORG_BUS_SPARC_TRUE}" && test -z "${XORG_BUS_SPARC_FALSE}"; then
33283  as_fn_error $? "conditional \"XORG_BUS_SPARC\" was never defined.
33284Usually this means the macro was only invoked conditionally." "$LINENO" 5
33285fi
33286if test -z "${LNXACPI_TRUE}" && test -z "${LNXACPI_FALSE}"; then
33287  as_fn_error $? "conditional \"LNXACPI\" was never defined.
33288Usually this means the macro was only invoked conditionally." "$LINENO" 5
33289fi
33290if test -z "${LNXAPM_TRUE}" && test -z "${LNXAPM_FALSE}"; then
33291  as_fn_error $? "conditional \"LNXAPM\" was never defined.
33292Usually this means the macro was only invoked conditionally." "$LINENO" 5
33293fi
33294if test -z "${SOLARIS_VT_TRUE}" && test -z "${SOLARIS_VT_FALSE}"; then
33295  as_fn_error $? "conditional \"SOLARIS_VT\" was never defined.
33296Usually this means the macro was only invoked conditionally." "$LINENO" 5
33297fi
33298if test -z "${DGA_TRUE}" && test -z "${DGA_FALSE}"; then
33299  as_fn_error $? "conditional \"DGA\" was never defined.
33300Usually this means the macro was only invoked conditionally." "$LINENO" 5
33301fi
33302if test -z "${XORG_BUS_PLATFORM_TRUE}" && test -z "${XORG_BUS_PLATFORM_FALSE}"; then
33303  as_fn_error $? "conditional \"XORG_BUS_PLATFORM\" was never defined.
33304Usually this means the macro was only invoked conditionally." "$LINENO" 5
33305fi
33306if test -z "${XORG_DRIVER_MODESETTING_TRUE}" && test -z "${XORG_DRIVER_MODESETTING_FALSE}"; then
33307  as_fn_error $? "conditional \"XORG_DRIVER_MODESETTING\" was never defined.
33308Usually this means the macro was only invoked conditionally." "$LINENO" 5
33309fi
33310if test -z "${XORG_DRIVER_INPUT_INPUTTEST_TRUE}" && test -z "${XORG_DRIVER_INPUT_INPUTTEST_FALSE}"; then
33311  as_fn_error $? "conditional \"XORG_DRIVER_INPUT_INPUTTEST\" was never defined.
33312Usually this means the macro was only invoked conditionally." "$LINENO" 5
33313fi
33314if test -z "${GLAMOR_TRUE}" && test -z "${GLAMOR_FALSE}"; then
33315  as_fn_error $? "conditional \"GLAMOR\" was never defined.
33316Usually this means the macro was only invoked conditionally." "$LINENO" 5
33317fi
33318if test -z "${GLAMOR_EGL_TRUE}" && test -z "${GLAMOR_EGL_FALSE}"; then
33319  as_fn_error $? "conditional \"GLAMOR_EGL\" was never defined.
33320Usually this means the macro was only invoked conditionally." "$LINENO" 5
33321fi
33322if test -z "${XWIN_TRUE}" && test -z "${XWIN_FALSE}"; then
33323  as_fn_error $? "conditional \"XWIN\" was never defined.
33324Usually this means the macro was only invoked conditionally." "$LINENO" 5
33325fi
33326if test -z "${XWIN_GLX_WINDOWS_TRUE}" && test -z "${XWIN_GLX_WINDOWS_FALSE}"; then
33327  as_fn_error $? "conditional \"XWIN_GLX_WINDOWS\" was never defined.
33328Usually this means the macro was only invoked conditionally." "$LINENO" 5
33329fi
33330if test -z "${XWIN_WINDOWS_DRI_TRUE}" && test -z "${XWIN_WINDOWS_DRI_FALSE}"; then
33331  as_fn_error $? "conditional \"XWIN_WINDOWS_DRI\" was never defined.
33332Usually this means the macro was only invoked conditionally." "$LINENO" 5
33333fi
33334if test -z "${PSEUDORAMIX_TRUE}" && test -z "${PSEUDORAMIX_FALSE}"; then
33335  as_fn_error $? "conditional \"PSEUDORAMIX\" was never defined.
33336Usually this means the macro was only invoked conditionally." "$LINENO" 5
33337fi
33338if test -z "${am__fastdepOBJC_TRUE}" && test -z "${am__fastdepOBJC_FALSE}"; then
33339  as_fn_error $? "conditional \"am__fastdepOBJC\" was never defined.
33340Usually this means the macro was only invoked conditionally." "$LINENO" 5
33341fi
33342if test -z "${XQUARTZ_TRUE}" && test -z "${XQUARTZ_FALSE}"; then
33343  as_fn_error $? "conditional \"XQUARTZ\" was never defined.
33344Usually this means the macro was only invoked conditionally." "$LINENO" 5
33345fi
33346if test -z "${XQUARTZ_SPARKLE_TRUE}" && test -z "${XQUARTZ_SPARKLE_FALSE}"; then
33347  as_fn_error $? "conditional \"XQUARTZ_SPARKLE\" was never defined.
33348Usually this means the macro was only invoked conditionally." "$LINENO" 5
33349fi
33350if test -z "${STANDALONE_XPBPROXY_TRUE}" && test -z "${STANDALONE_XPBPROXY_FALSE}"; then
33351  as_fn_error $? "conditional \"STANDALONE_XPBPROXY\" was never defined.
33352Usually this means the macro was only invoked conditionally." "$LINENO" 5
33353fi
33354if test -z "${KDRIVE_TRUE}" && test -z "${KDRIVE_FALSE}"; then
33355  as_fn_error $? "conditional \"KDRIVE\" was never defined.
33356Usually this means the macro was only invoked conditionally." "$LINENO" 5
33357fi
33358if test -z "${XEPHYR_TRUE}" && test -z "${XEPHYR_FALSE}"; then
33359  as_fn_error $? "conditional \"XEPHYR\" was never defined.
33360Usually this means the macro was only invoked conditionally." "$LINENO" 5
33361fi
33362
33363: "${CONFIG_STATUS=./config.status}"
33364ac_write_fail=0
33365ac_clean_files_save=$ac_clean_files
33366ac_clean_files="$ac_clean_files $CONFIG_STATUS"
33367{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
33368printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
33369as_write_fail=0
33370cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
33371#! $SHELL
33372# Generated by $as_me.
33373# Run this file to recreate the current configuration.
33374# Compiler output produced by configure, useful for debugging
33375# configure, is in config.log if it exists.
33376
33377debug=false
33378ac_cs_recheck=false
33379ac_cs_silent=false
33380
33381SHELL=\${CONFIG_SHELL-$SHELL}
33382export SHELL
33383_ASEOF
33384cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
33385## -------------------- ##
33386## M4sh Initialization. ##
33387## -------------------- ##
33388
33389# Be more Bourne compatible
33390DUALCASE=1; export DUALCASE # for MKS sh
33391as_nop=:
33392if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
33393then :
33394  emulate sh
33395  NULLCMD=:
33396  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
33397  # is contrary to our usage.  Disable this feature.
33398  alias -g '${1+"$@"}'='"$@"'
33399  setopt NO_GLOB_SUBST
33400else $as_nop
33401  case `(set -o) 2>/dev/null` in #(
33402  *posix*) :
33403    set -o posix ;; #(
33404  *) :
33405     ;;
33406esac
33407fi
33408
33409
33410
33411# Reset variables that may have inherited troublesome values from
33412# the environment.
33413
33414# IFS needs to be set, to space, tab, and newline, in precisely that order.
33415# (If _AS_PATH_WALK were called with IFS unset, it would have the
33416# side effect of setting IFS to empty, thus disabling word splitting.)
33417# Quoting is to prevent editors from complaining about space-tab.
33418as_nl='
33419'
33420export as_nl
33421IFS=" ""	$as_nl"
33422
33423PS1='$ '
33424PS2='> '
33425PS4='+ '
33426
33427# Ensure predictable behavior from utilities with locale-dependent output.
33428LC_ALL=C
33429export LC_ALL
33430LANGUAGE=C
33431export LANGUAGE
33432
33433# We cannot yet rely on "unset" to work, but we need these variables
33434# to be unset--not just set to an empty or harmless value--now, to
33435# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
33436# also avoids known problems related to "unset" and subshell syntax
33437# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
33438for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
33439do eval test \${$as_var+y} \
33440  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
33441done
33442
33443# Ensure that fds 0, 1, and 2 are open.
33444if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
33445if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
33446if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
33447
33448# The user is always right.
33449if ${PATH_SEPARATOR+false} :; then
33450  PATH_SEPARATOR=:
33451  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
33452    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
33453      PATH_SEPARATOR=';'
33454  }
33455fi
33456
33457
33458# Find who we are.  Look in the path if we contain no directory separator.
33459as_myself=
33460case $0 in #((
33461  *[\\/]* ) as_myself=$0 ;;
33462  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33463for as_dir in $PATH
33464do
33465  IFS=$as_save_IFS
33466  case $as_dir in #(((
33467    '') as_dir=./ ;;
33468    */) ;;
33469    *) as_dir=$as_dir/ ;;
33470  esac
33471    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
33472  done
33473IFS=$as_save_IFS
33474
33475     ;;
33476esac
33477# We did not find ourselves, most probably we were run as `sh COMMAND'
33478# in which case we are not to be found in the path.
33479if test "x$as_myself" = x; then
33480  as_myself=$0
33481fi
33482if test ! -f "$as_myself"; then
33483  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
33484  exit 1
33485fi
33486
33487
33488
33489# as_fn_error STATUS ERROR [LINENO LOG_FD]
33490# ----------------------------------------
33491# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
33492# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
33493# script with STATUS, using 1 if that was 0.
33494as_fn_error ()
33495{
33496  as_status=$1; test $as_status -eq 0 && as_status=1
33497  if test "$4"; then
33498    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
33499    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
33500  fi
33501  printf "%s\n" "$as_me: error: $2" >&2
33502  as_fn_exit $as_status
33503} # as_fn_error
33504
33505
33506
33507# as_fn_set_status STATUS
33508# -----------------------
33509# Set $? to STATUS, without forking.
33510as_fn_set_status ()
33511{
33512  return $1
33513} # as_fn_set_status
33514
33515# as_fn_exit STATUS
33516# -----------------
33517# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
33518as_fn_exit ()
33519{
33520  set +e
33521  as_fn_set_status $1
33522  exit $1
33523} # as_fn_exit
33524
33525# as_fn_unset VAR
33526# ---------------
33527# Portably unset VAR.
33528as_fn_unset ()
33529{
33530  { eval $1=; unset $1;}
33531}
33532as_unset=as_fn_unset
33533
33534# as_fn_append VAR VALUE
33535# ----------------------
33536# Append the text in VALUE to the end of the definition contained in VAR. Take
33537# advantage of any shell optimizations that allow amortized linear growth over
33538# repeated appends, instead of the typical quadratic growth present in naive
33539# implementations.
33540if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
33541then :
33542  eval 'as_fn_append ()
33543  {
33544    eval $1+=\$2
33545  }'
33546else $as_nop
33547  as_fn_append ()
33548  {
33549    eval $1=\$$1\$2
33550  }
33551fi # as_fn_append
33552
33553# as_fn_arith ARG...
33554# ------------------
33555# Perform arithmetic evaluation on the ARGs, and store the result in the
33556# global $as_val. Take advantage of shells that can avoid forks. The arguments
33557# must be portable across $(()) and expr.
33558if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
33559then :
33560  eval 'as_fn_arith ()
33561  {
33562    as_val=$(( $* ))
33563  }'
33564else $as_nop
33565  as_fn_arith ()
33566  {
33567    as_val=`expr "$@" || test $? -eq 1`
33568  }
33569fi # as_fn_arith
33570
33571
33572if expr a : '\(a\)' >/dev/null 2>&1 &&
33573   test "X`expr 00001 : '.*\(...\)'`" = X001; then
33574  as_expr=expr
33575else
33576  as_expr=false
33577fi
33578
33579if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33580  as_basename=basename
33581else
33582  as_basename=false
33583fi
33584
33585if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
33586  as_dirname=dirname
33587else
33588  as_dirname=false
33589fi
33590
33591as_me=`$as_basename -- "$0" ||
33592$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33593	 X"$0" : 'X\(//\)$' \| \
33594	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33595printf "%s\n" X/"$0" |
33596    sed '/^.*\/\([^/][^/]*\)\/*$/{
33597	    s//\1/
33598	    q
33599	  }
33600	  /^X\/\(\/\/\)$/{
33601	    s//\1/
33602	    q
33603	  }
33604	  /^X\/\(\/\).*/{
33605	    s//\1/
33606	    q
33607	  }
33608	  s/.*/./; q'`
33609
33610# Avoid depending upon Character Ranges.
33611as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33612as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33613as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33614as_cr_digits='0123456789'
33615as_cr_alnum=$as_cr_Letters$as_cr_digits
33616
33617
33618# Determine whether it's possible to make 'echo' print without a newline.
33619# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
33620# for compatibility with existing Makefiles.
33621ECHO_C= ECHO_N= ECHO_T=
33622case `echo -n x` in #(((((
33623-n*)
33624  case `echo 'xy\c'` in
33625  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
33626  xy)  ECHO_C='\c';;
33627  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
33628       ECHO_T='	';;
33629  esac;;
33630*)
33631  ECHO_N='-n';;
33632esac
33633
33634# For backward compatibility with old third-party macros, we provide
33635# the shell variables $as_echo and $as_echo_n.  New code should use
33636# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
33637as_echo='printf %s\n'
33638as_echo_n='printf %s'
33639
33640rm -f conf$$ conf$$.exe conf$$.file
33641if test -d conf$$.dir; then
33642  rm -f conf$$.dir/conf$$.file
33643else
33644  rm -f conf$$.dir
33645  mkdir conf$$.dir 2>/dev/null
33646fi
33647if (echo >conf$$.file) 2>/dev/null; then
33648  if ln -s conf$$.file conf$$ 2>/dev/null; then
33649    as_ln_s='ln -s'
33650    # ... but there are two gotchas:
33651    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33652    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33653    # In both cases, we have to default to `cp -pR'.
33654    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
33655      as_ln_s='cp -pR'
33656  elif ln conf$$.file conf$$ 2>/dev/null; then
33657    as_ln_s=ln
33658  else
33659    as_ln_s='cp -pR'
33660  fi
33661else
33662  as_ln_s='cp -pR'
33663fi
33664rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
33665rmdir conf$$.dir 2>/dev/null
33666
33667
33668# as_fn_mkdir_p
33669# -------------
33670# Create "$as_dir" as a directory, including parents if necessary.
33671as_fn_mkdir_p ()
33672{
33673
33674  case $as_dir in #(
33675  -*) as_dir=./$as_dir;;
33676  esac
33677  test -d "$as_dir" || eval $as_mkdir_p || {
33678    as_dirs=
33679    while :; do
33680      case $as_dir in #(
33681      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
33682      *) as_qdir=$as_dir;;
33683      esac
33684      as_dirs="'$as_qdir' $as_dirs"
33685      as_dir=`$as_dirname -- "$as_dir" ||
33686$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33687	 X"$as_dir" : 'X\(//\)[^/]' \| \
33688	 X"$as_dir" : 'X\(//\)$' \| \
33689	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33690printf "%s\n" X"$as_dir" |
33691    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33692	    s//\1/
33693	    q
33694	  }
33695	  /^X\(\/\/\)[^/].*/{
33696	    s//\1/
33697	    q
33698	  }
33699	  /^X\(\/\/\)$/{
33700	    s//\1/
33701	    q
33702	  }
33703	  /^X\(\/\).*/{
33704	    s//\1/
33705	    q
33706	  }
33707	  s/.*/./; q'`
33708      test -d "$as_dir" && break
33709    done
33710    test -z "$as_dirs" || eval "mkdir $as_dirs"
33711  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
33712
33713
33714} # as_fn_mkdir_p
33715if mkdir -p . 2>/dev/null; then
33716  as_mkdir_p='mkdir -p "$as_dir"'
33717else
33718  test -d ./-p && rmdir ./-p
33719  as_mkdir_p=false
33720fi
33721
33722
33723# as_fn_executable_p FILE
33724# -----------------------
33725# Test if FILE is an executable regular file.
33726as_fn_executable_p ()
33727{
33728  test -f "$1" && test -x "$1"
33729} # as_fn_executable_p
33730as_test_x='test -x'
33731as_executable_p=as_fn_executable_p
33732
33733# Sed expression to map a string onto a valid CPP name.
33734as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33735
33736# Sed expression to map a string onto a valid variable name.
33737as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33738
33739
33740exec 6>&1
33741## ----------------------------------- ##
33742## Main body of $CONFIG_STATUS script. ##
33743## ----------------------------------- ##
33744_ASEOF
33745test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
33746
33747cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33748# Save the log message, to keep $0 and so on meaningful, and to
33749# report actual input values of CONFIG_FILES etc. instead of their
33750# values after options handling.
33751ac_log="
33752This file was extended by xorg-server $as_me 21.1.7, which was
33753generated by GNU Autoconf 2.71.  Invocation command line was
33754
33755  CONFIG_FILES    = $CONFIG_FILES
33756  CONFIG_HEADERS  = $CONFIG_HEADERS
33757  CONFIG_LINKS    = $CONFIG_LINKS
33758  CONFIG_COMMANDS = $CONFIG_COMMANDS
33759  $ $0 $@
33760
33761on `(hostname || uname -n) 2>/dev/null | sed 1q`
33762"
33763
33764_ACEOF
33765
33766case $ac_config_files in *"
33767"*) set x $ac_config_files; shift; ac_config_files=$*;;
33768esac
33769
33770case $ac_config_headers in *"
33771"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
33772esac
33773
33774
33775cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33776# Files that config.status was made for.
33777config_files="$ac_config_files"
33778config_headers="$ac_config_headers"
33779config_commands="$ac_config_commands"
33780
33781_ACEOF
33782
33783cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33784ac_cs_usage="\
33785\`$as_me' instantiates files and other configuration actions
33786from templates according to the current configuration.  Unless the files
33787and actions are specified as TAGs, all are instantiated by default.
33788
33789Usage: $0 [OPTION]... [TAG]...
33790
33791  -h, --help       print this help, then exit
33792  -V, --version    print version number and configuration settings, then exit
33793      --config     print configuration, then exit
33794  -q, --quiet, --silent
33795                   do not print progress messages
33796  -d, --debug      don't remove temporary files
33797      --recheck    update $as_me by reconfiguring in the same conditions
33798      --file=FILE[:TEMPLATE]
33799                   instantiate the configuration file FILE
33800      --header=FILE[:TEMPLATE]
33801                   instantiate the configuration header FILE
33802
33803Configuration files:
33804$config_files
33805
33806Configuration headers:
33807$config_headers
33808
33809Configuration commands:
33810$config_commands
33811
33812Report bugs to <https://gitlab.freedesktop.org/xorg/xserver/issues>."
33813
33814_ACEOF
33815ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
33816ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
33817cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33818ac_cs_config='$ac_cs_config_escaped'
33819ac_cs_version="\\
33820xorg-server config.status 21.1.7
33821configured by $0, generated by GNU Autoconf 2.71,
33822  with options \\"\$ac_cs_config\\"
33823
33824Copyright (C) 2021 Free Software Foundation, Inc.
33825This config.status script is free software; the Free Software Foundation
33826gives unlimited permission to copy, distribute and modify it."
33827
33828ac_pwd='$ac_pwd'
33829srcdir='$srcdir'
33830INSTALL='$INSTALL'
33831MKDIR_P='$MKDIR_P'
33832AWK='$AWK'
33833test -n "\$AWK" || AWK=awk
33834_ACEOF
33835
33836cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33837# The default lists apply if the user does not specify any file.
33838ac_need_defaults=:
33839while test $# != 0
33840do
33841  case $1 in
33842  --*=?*)
33843    ac_option=`expr "X$1" : 'X\([^=]*\)='`
33844    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
33845    ac_shift=:
33846    ;;
33847  --*=)
33848    ac_option=`expr "X$1" : 'X\([^=]*\)='`
33849    ac_optarg=
33850    ac_shift=:
33851    ;;
33852  *)
33853    ac_option=$1
33854    ac_optarg=$2
33855    ac_shift=shift
33856    ;;
33857  esac
33858
33859  case $ac_option in
33860  # Handling of the options.
33861  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33862    ac_cs_recheck=: ;;
33863  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
33864    printf "%s\n" "$ac_cs_version"; exit ;;
33865  --config | --confi | --conf | --con | --co | --c )
33866    printf "%s\n" "$ac_cs_config"; exit ;;
33867  --debug | --debu | --deb | --de | --d | -d )
33868    debug=: ;;
33869  --file | --fil | --fi | --f )
33870    $ac_shift
33871    case $ac_optarg in
33872    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33873    '') as_fn_error $? "missing file argument" ;;
33874    esac
33875    as_fn_append CONFIG_FILES " '$ac_optarg'"
33876    ac_need_defaults=false;;
33877  --header | --heade | --head | --hea )
33878    $ac_shift
33879    case $ac_optarg in
33880    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33881    esac
33882    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
33883    ac_need_defaults=false;;
33884  --he | --h)
33885    # Conflict between --help and --header
33886    as_fn_error $? "ambiguous option: \`$1'
33887Try \`$0 --help' for more information.";;
33888  --help | --hel | -h )
33889    printf "%s\n" "$ac_cs_usage"; exit ;;
33890  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33891  | -silent | --silent | --silen | --sile | --sil | --si | --s)
33892    ac_cs_silent=: ;;
33893
33894  # This is an error.
33895  -*) as_fn_error $? "unrecognized option: \`$1'
33896Try \`$0 --help' for more information." ;;
33897
33898  *) as_fn_append ac_config_targets " $1"
33899     ac_need_defaults=false ;;
33900
33901  esac
33902  shift
33903done
33904
33905ac_configure_extra_args=
33906
33907if $ac_cs_silent; then
33908  exec 6>/dev/null
33909  ac_configure_extra_args="$ac_configure_extra_args --silent"
33910fi
33911
33912_ACEOF
33913cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33914if \$ac_cs_recheck; then
33915  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33916  shift
33917  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
33918  CONFIG_SHELL='$SHELL'
33919  export CONFIG_SHELL
33920  exec "\$@"
33921fi
33922
33923_ACEOF
33924cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33925exec 5>>config.log
33926{
33927  echo
33928  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33929## Running $as_me. ##
33930_ASBOX
33931  printf "%s\n" "$ac_log"
33932} >&5
33933
33934_ACEOF
33935cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33936#
33937# INIT-COMMANDS
33938#
33939AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
33940
33941
33942# The HP-UX ksh and POSIX shell print the target directory to stdout
33943# if CDPATH is set.
33944(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
33945
33946sed_quote_subst='$sed_quote_subst'
33947double_quote_subst='$double_quote_subst'
33948delay_variable_subst='$delay_variable_subst'
33949macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
33950macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
33951enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
33952AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
33953DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
33954OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
33955enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
33956pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
33957enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
33958shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
33959SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
33960ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
33961PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
33962host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
33963host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
33964host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
33965build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
33966build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
33967build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
33968SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
33969Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
33970GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
33971EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
33972FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
33973LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
33974NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
33975LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
33976max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
33977ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
33978exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
33979lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
33980lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
33981lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
33982lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
33983lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
33984reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
33985reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
33986FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
33987deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
33988file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
33989file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
33990want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
33991sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
33992AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
33993lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
33994AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
33995archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
33996STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
33997RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
33998old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
33999old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
34000old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
34001lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
34002CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
34003CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
34004compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
34005GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
34006lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
34007lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
34008lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
34009lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
34010lt_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"`'
34011lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
34012nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
34013lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
34014lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
34015objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
34016MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
34017lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
34018lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
34019lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
34020lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
34021lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
34022need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
34023MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
34024DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
34025NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
34026LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
34027OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
34028OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
34029libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
34030shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
34031extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
34032archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
34033enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
34034export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
34035whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
34036compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
34037old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
34038old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
34039archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
34040archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
34041module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
34042module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
34043with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
34044allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
34045no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
34046hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
34047hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
34048hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
34049hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
34050hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
34051hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
34052hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
34053inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
34054link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
34055always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
34056export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
34057exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
34058include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
34059prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
34060postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
34061file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
34062variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
34063need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
34064need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
34065version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
34066runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
34067shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
34068shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
34069libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
34070library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
34071soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
34072install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
34073postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
34074postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
34075finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
34076finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
34077hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
34078sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
34079configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
34080configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
34081hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
34082enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
34083enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
34084enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
34085old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
34086striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
34087
34088LTCC='$LTCC'
34089LTCFLAGS='$LTCFLAGS'
34090compiler='$compiler_DEFAULT'
34091
34092# A function that is used when there is no print builtin or printf.
34093func_fallback_echo ()
34094{
34095  eval 'cat <<_LTECHO_EOF
34096\$1
34097_LTECHO_EOF'
34098}
34099
34100# Quote evaled strings.
34101for var in AS \
34102DLLTOOL \
34103OBJDUMP \
34104SHELL \
34105ECHO \
34106PATH_SEPARATOR \
34107SED \
34108GREP \
34109EGREP \
34110FGREP \
34111LD \
34112NM \
34113LN_S \
34114lt_SP2NL \
34115lt_NL2SP \
34116reload_flag \
34117FILECMD \
34118deplibs_check_method \
34119file_magic_cmd \
34120file_magic_glob \
34121want_nocaseglob \
34122sharedlib_from_linklib_cmd \
34123AR \
34124archiver_list_spec \
34125STRIP \
34126RANLIB \
34127CC \
34128CFLAGS \
34129compiler \
34130lt_cv_sys_global_symbol_pipe \
34131lt_cv_sys_global_symbol_to_cdecl \
34132lt_cv_sys_global_symbol_to_import \
34133lt_cv_sys_global_symbol_to_c_name_address \
34134lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
34135lt_cv_nm_interface \
34136nm_file_list_spec \
34137lt_cv_truncate_bin \
34138lt_prog_compiler_no_builtin_flag \
34139lt_prog_compiler_pic \
34140lt_prog_compiler_wl \
34141lt_prog_compiler_static \
34142lt_cv_prog_compiler_c_o \
34143need_locks \
34144MANIFEST_TOOL \
34145DSYMUTIL \
34146NMEDIT \
34147LIPO \
34148OTOOL \
34149OTOOL64 \
34150shrext_cmds \
34151export_dynamic_flag_spec \
34152whole_archive_flag_spec \
34153compiler_needs_object \
34154with_gnu_ld \
34155allow_undefined_flag \
34156no_undefined_flag \
34157hardcode_libdir_flag_spec \
34158hardcode_libdir_separator \
34159exclude_expsyms \
34160include_expsyms \
34161file_list_spec \
34162variables_saved_for_relink \
34163libname_spec \
34164library_names_spec \
34165soname_spec \
34166install_override_mode \
34167finish_eval \
34168old_striplib \
34169striplib; do
34170    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
34171    *[\\\\\\\`\\"\\\$]*)
34172      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
34173      ;;
34174    *)
34175      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
34176      ;;
34177    esac
34178done
34179
34180# Double-quote double-evaled strings.
34181for var in reload_cmds \
34182old_postinstall_cmds \
34183old_postuninstall_cmds \
34184old_archive_cmds \
34185extract_expsyms_cmds \
34186old_archive_from_new_cmds \
34187old_archive_from_expsyms_cmds \
34188archive_cmds \
34189archive_expsym_cmds \
34190module_cmds \
34191module_expsym_cmds \
34192export_symbols_cmds \
34193prelink_cmds \
34194postlink_cmds \
34195postinstall_cmds \
34196postuninstall_cmds \
34197finish_cmds \
34198sys_lib_search_path_spec \
34199configure_time_dlsearch_path \
34200configure_time_lt_sys_library_path; do
34201    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
34202    *[\\\\\\\`\\"\\\$]*)
34203      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
34204      ;;
34205    *)
34206      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
34207      ;;
34208    esac
34209done
34210
34211ac_aux_dir='$ac_aux_dir'
34212
34213# See if we are running on zsh, and set the options that allow our
34214# commands through without removal of \ escapes INIT.
34215if test -n "\${ZSH_VERSION+set}"; then
34216   setopt NO_GLOB_SUBST
34217fi
34218
34219
34220    PACKAGE='$PACKAGE'
34221    VERSION='$VERSION'
34222    RM='$RM'
34223    ofile='$ofile'
34224
34225
34226
34227
34228_ACEOF
34229
34230cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34231
34232# Handling of arguments.
34233for ac_config_target in $ac_config_targets
34234do
34235  case $ac_config_target in
34236    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
34237    "include/do-not-use-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/do-not-use-config.h" ;;
34238    "include/xorg-server.h") CONFIG_HEADERS="$CONFIG_HEADERS include/xorg-server.h" ;;
34239    "include/dix-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/dix-config.h" ;;
34240    "include/xorg-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/xorg-config.h" ;;
34241    "include/xkb-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/xkb-config.h" ;;
34242    "include/xwin-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/xwin-config.h" ;;
34243    "include/version-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/version-config.h" ;;
34244    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
34245    "sdksyms") CONFIG_COMMANDS="$CONFIG_COMMANDS sdksyms" ;;
34246    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
34247    "glx/Makefile") CONFIG_FILES="$CONFIG_FILES glx/Makefile" ;;
34248    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
34249    "composite/Makefile") CONFIG_FILES="$CONFIG_FILES composite/Makefile" ;;
34250    "damageext/Makefile") CONFIG_FILES="$CONFIG_FILES damageext/Makefile" ;;
34251    "dbe/Makefile") CONFIG_FILES="$CONFIG_FILES dbe/Makefile" ;;
34252    "dix/Makefile") CONFIG_FILES="$CONFIG_FILES dix/Makefile" ;;
34253    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
34254    "doc/dtrace/Makefile") CONFIG_FILES="$CONFIG_FILES doc/dtrace/Makefile" ;;
34255    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
34256    "fb/Makefile") CONFIG_FILES="$CONFIG_FILES fb/Makefile" ;;
34257    "glamor/Makefile") CONFIG_FILES="$CONFIG_FILES glamor/Makefile" ;;
34258    "record/Makefile") CONFIG_FILES="$CONFIG_FILES record/Makefile" ;;
34259    "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
34260    "mi/Makefile") CONFIG_FILES="$CONFIG_FILES mi/Makefile" ;;
34261    "miext/Makefile") CONFIG_FILES="$CONFIG_FILES miext/Makefile" ;;
34262    "miext/sync/Makefile") CONFIG_FILES="$CONFIG_FILES miext/sync/Makefile" ;;
34263    "miext/damage/Makefile") CONFIG_FILES="$CONFIG_FILES miext/damage/Makefile" ;;
34264    "miext/shadow/Makefile") CONFIG_FILES="$CONFIG_FILES miext/shadow/Makefile" ;;
34265    "miext/rootless/Makefile") CONFIG_FILES="$CONFIG_FILES miext/rootless/Makefile" ;;
34266    "os/Makefile") CONFIG_FILES="$CONFIG_FILES os/Makefile" ;;
34267    "pseudoramiX/Makefile") CONFIG_FILES="$CONFIG_FILES pseudoramiX/Makefile" ;;
34268    "randr/Makefile") CONFIG_FILES="$CONFIG_FILES randr/Makefile" ;;
34269    "render/Makefile") CONFIG_FILES="$CONFIG_FILES render/Makefile" ;;
34270    "xkb/Makefile") CONFIG_FILES="$CONFIG_FILES xkb/Makefile" ;;
34271    "Xext/Makefile") CONFIG_FILES="$CONFIG_FILES Xext/Makefile" ;;
34272    "Xi/Makefile") CONFIG_FILES="$CONFIG_FILES Xi/Makefile" ;;
34273    "xfixes/Makefile") CONFIG_FILES="$CONFIG_FILES xfixes/Makefile" ;;
34274    "exa/Makefile") CONFIG_FILES="$CONFIG_FILES exa/Makefile" ;;
34275    "dri3/Makefile") CONFIG_FILES="$CONFIG_FILES dri3/Makefile" ;;
34276    "present/Makefile") CONFIG_FILES="$CONFIG_FILES present/Makefile" ;;
34277    "hw/Makefile") CONFIG_FILES="$CONFIG_FILES hw/Makefile" ;;
34278    "hw/xfree86/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/Makefile" ;;
34279    "hw/xfree86/Xorg.sh") CONFIG_FILES="$CONFIG_FILES hw/xfree86/Xorg.sh" ;;
34280    "hw/xfree86/common/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/common/Makefile" ;;
34281    "hw/xfree86/ddc/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/ddc/Makefile" ;;
34282    "hw/xfree86/dixmods/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/dixmods/Makefile" ;;
34283    "hw/xfree86/doc/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/doc/Makefile" ;;
34284    "hw/xfree86/dri/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/dri/Makefile" ;;
34285    "hw/xfree86/dri2/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/dri2/Makefile" ;;
34286    "hw/xfree86/dri2/pci_ids/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/dri2/pci_ids/Makefile" ;;
34287    "hw/xfree86/drivers/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/drivers/Makefile" ;;
34288    "hw/xfree86/drivers/inputtest/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/drivers/inputtest/Makefile" ;;
34289    "hw/xfree86/drivers/modesetting/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/drivers/modesetting/Makefile" ;;
34290    "hw/xfree86/exa/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/exa/Makefile" ;;
34291    "hw/xfree86/exa/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/exa/man/Makefile" ;;
34292    "hw/xfree86/fbdevhw/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/fbdevhw/Makefile" ;;
34293    "hw/xfree86/fbdevhw/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/fbdevhw/man/Makefile" ;;
34294    "hw/xfree86/glamor_egl/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/glamor_egl/Makefile" ;;
34295    "hw/xfree86/i2c/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/i2c/Makefile" ;;
34296    "hw/xfree86/int10/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/int10/Makefile" ;;
34297    "hw/xfree86/loader/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/loader/Makefile" ;;
34298    "hw/xfree86/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/man/Makefile" ;;
34299    "hw/xfree86/modes/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/modes/Makefile" ;;
34300    "hw/xfree86/os-support/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/Makefile" ;;
34301    "hw/xfree86/os-support/bsd/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/bsd/Makefile" ;;
34302    "hw/xfree86/os-support/bus/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/bus/Makefile" ;;
34303    "hw/xfree86/os-support/hurd/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/hurd/Makefile" ;;
34304    "hw/xfree86/os-support/misc/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/misc/Makefile" ;;
34305    "hw/xfree86/os-support/linux/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/linux/Makefile" ;;
34306    "hw/xfree86/os-support/solaris/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/solaris/Makefile" ;;
34307    "hw/xfree86/os-support/stub/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/stub/Makefile" ;;
34308    "hw/xfree86/parser/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/parser/Makefile" ;;
34309    "hw/xfree86/ramdac/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/ramdac/Makefile" ;;
34310    "hw/xfree86/shadowfb/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/shadowfb/Makefile" ;;
34311    "hw/xfree86/vgahw/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/vgahw/Makefile" ;;
34312    "hw/xfree86/x86emu/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/x86emu/Makefile" ;;
34313    "hw/xfree86/xkb/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/xkb/Makefile" ;;
34314    "hw/xfree86/utils/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/utils/Makefile" ;;
34315    "hw/xfree86/utils/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/utils/man/Makefile" ;;
34316    "hw/xfree86/utils/gtf/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/utils/gtf/Makefile" ;;
34317    "hw/vfb/Makefile") CONFIG_FILES="$CONFIG_FILES hw/vfb/Makefile" ;;
34318    "hw/vfb/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/vfb/man/Makefile" ;;
34319    "hw/xnest/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xnest/Makefile" ;;
34320    "hw/xnest/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xnest/man/Makefile" ;;
34321    "hw/xwin/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xwin/Makefile" ;;
34322    "hw/xwin/dri/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xwin/dri/Makefile" ;;
34323    "hw/xwin/glx/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xwin/glx/Makefile" ;;
34324    "hw/xwin/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xwin/man/Makefile" ;;
34325    "hw/xwin/winclipboard/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xwin/winclipboard/Makefile" ;;
34326    "hw/xquartz/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/Makefile" ;;
34327    "hw/xquartz/GL/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/GL/Makefile" ;;
34328    "hw/xquartz/bundle/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/bundle/Makefile" ;;
34329    "hw/xquartz/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/man/Makefile" ;;
34330    "hw/xquartz/mach-startup/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/mach-startup/Makefile" ;;
34331    "hw/xquartz/pbproxy/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/pbproxy/Makefile" ;;
34332    "hw/xquartz/xpr/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/xpr/Makefile" ;;
34333    "hw/kdrive/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/Makefile" ;;
34334    "hw/kdrive/ephyr/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/ephyr/Makefile" ;;
34335    "hw/kdrive/ephyr/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/ephyr/man/Makefile" ;;
34336    "hw/kdrive/src/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/src/Makefile" ;;
34337    "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
34338    "xserver.ent") CONFIG_FILES="$CONFIG_FILES xserver.ent" ;;
34339    "xorg-server.pc") CONFIG_FILES="$CONFIG_FILES xorg-server.pc" ;;
34340
34341  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
34342  esac
34343done
34344
34345
34346# If the user did not use the arguments to specify the items to instantiate,
34347# then the envvar interface is used.  Set only those that are not.
34348# We use the long form for the default assignment because of an extremely
34349# bizarre bug on SunOS 4.1.3.
34350if $ac_need_defaults; then
34351  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
34352  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
34353  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
34354fi
34355
34356# Have a temporary directory for convenience.  Make it in the build tree
34357# simply because there is no reason against having it here, and in addition,
34358# creating and moving files from /tmp can sometimes cause problems.
34359# Hook for its removal unless debugging.
34360# Note that there is a small window in which the directory will not be cleaned:
34361# after its creation but before its name has been assigned to `$tmp'.
34362$debug ||
34363{
34364  tmp= ac_tmp=
34365  trap 'exit_status=$?
34366  : "${ac_tmp:=$tmp}"
34367  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
34368' 0
34369  trap 'as_fn_exit 1' 1 2 13 15
34370}
34371# Create a (secure) tmp directory for tmp files.
34372
34373{
34374  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34375  test -d "$tmp"
34376}  ||
34377{
34378  tmp=./conf$$-$RANDOM
34379  (umask 077 && mkdir "$tmp")
34380} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
34381ac_tmp=$tmp
34382
34383# Set up the scripts for CONFIG_FILES section.
34384# No need to generate them if there are no CONFIG_FILES.
34385# This happens for instance with `./config.status config.h'.
34386if test -n "$CONFIG_FILES"; then
34387
34388
34389ac_cr=`echo X | tr X '\015'`
34390# On cygwin, bash can eat \r inside `` if the user requested igncr.
34391# But we know of no other shell where ac_cr would be empty at this
34392# point, so we can use a bashism as a fallback.
34393if test "x$ac_cr" = x; then
34394  eval ac_cr=\$\'\\r\'
34395fi
34396ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
34397if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
34398  ac_cs_awk_cr='\\r'
34399else
34400  ac_cs_awk_cr=$ac_cr
34401fi
34402
34403echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
34404_ACEOF
34405
34406
34407{
34408  echo "cat >conf$$subs.awk <<_ACEOF" &&
34409  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
34410  echo "_ACEOF"
34411} >conf$$subs.sh ||
34412  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
34413ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
34414ac_delim='%!_!# '
34415for ac_last_try in false false false false false :; do
34416  . ./conf$$subs.sh ||
34417    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
34418
34419  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
34420  if test $ac_delim_n = $ac_delim_num; then
34421    break
34422  elif $ac_last_try; then
34423    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
34424  else
34425    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34426  fi
34427done
34428rm -f conf$$subs.sh
34429
34430cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34431cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
34432_ACEOF
34433sed -n '
34434h
34435s/^/S["/; s/!.*/"]=/
34436p
34437g
34438s/^[^!]*!//
34439:repl
34440t repl
34441s/'"$ac_delim"'$//
34442t delim
34443:nl
34444h
34445s/\(.\{148\}\)..*/\1/
34446t more1
34447s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
34448p
34449n
34450b repl
34451:more1
34452s/["\\]/\\&/g; s/^/"/; s/$/"\\/
34453p
34454g
34455s/.\{148\}//
34456t nl
34457:delim
34458h
34459s/\(.\{148\}\)..*/\1/
34460t more2
34461s/["\\]/\\&/g; s/^/"/; s/$/"/
34462p
34463b
34464:more2
34465s/["\\]/\\&/g; s/^/"/; s/$/"\\/
34466p
34467g
34468s/.\{148\}//
34469t delim
34470' <conf$$subs.awk | sed '
34471/^[^""]/{
34472  N
34473  s/\n//
34474}
34475' >>$CONFIG_STATUS || ac_write_fail=1
34476rm -f conf$$subs.awk
34477cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34478_ACAWK
34479cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
34480  for (key in S) S_is_set[key] = 1
34481  FS = ""
34482
34483}
34484{
34485  line = $ 0
34486  nfields = split(line, field, "@")
34487  substed = 0
34488  len = length(field[1])
34489  for (i = 2; i < nfields; i++) {
34490    key = field[i]
34491    keylen = length(key)
34492    if (S_is_set[key]) {
34493      value = S[key]
34494      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
34495      len += length(value) + length(field[++i])
34496      substed = 1
34497    } else
34498      len += 1 + keylen
34499  }
34500
34501  print line
34502}
34503
34504_ACAWK
34505_ACEOF
34506cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34507if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
34508  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
34509else
34510  cat
34511fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
34512  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
34513_ACEOF
34514
34515# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
34516# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
34517# trailing colons and then remove the whole line if VPATH becomes empty
34518# (actually we leave an empty line to preserve line numbers).
34519if test "x$srcdir" = x.; then
34520  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
34521h
34522s///
34523s/^/:/
34524s/[	 ]*$/:/
34525s/:\$(srcdir):/:/g
34526s/:\${srcdir}:/:/g
34527s/:@srcdir@:/:/g
34528s/^:*//
34529s/:*$//
34530x
34531s/\(=[	 ]*\).*/\1/
34532G
34533s/\n//
34534s/^[^=]*=[	 ]*$//
34535}'
34536fi
34537
34538cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34539fi # test -n "$CONFIG_FILES"
34540
34541# Set up the scripts for CONFIG_HEADERS section.
34542# No need to generate them if there are no CONFIG_HEADERS.
34543# This happens for instance with `./config.status Makefile'.
34544if test -n "$CONFIG_HEADERS"; then
34545cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
34546BEGIN {
34547_ACEOF
34548
34549# Transform confdefs.h into an awk script `defines.awk', embedded as
34550# here-document in config.status, that substitutes the proper values into
34551# config.h.in to produce config.h.
34552
34553# Create a delimiter string that does not exist in confdefs.h, to ease
34554# handling of long lines.
34555ac_delim='%!_!# '
34556for ac_last_try in false false :; do
34557  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
34558  if test -z "$ac_tt"; then
34559    break
34560  elif $ac_last_try; then
34561    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
34562  else
34563    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34564  fi
34565done
34566
34567# For the awk script, D is an array of macro values keyed by name,
34568# likewise P contains macro parameters if any.  Preserve backslash
34569# newline sequences.
34570
34571ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
34572sed -n '
34573s/.\{148\}/&'"$ac_delim"'/g
34574t rset
34575:rset
34576s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
34577t def
34578d
34579:def
34580s/\\$//
34581t bsnl
34582s/["\\]/\\&/g
34583s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
34584D["\1"]=" \3"/p
34585s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
34586d
34587:bsnl
34588s/["\\]/\\&/g
34589s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
34590D["\1"]=" \3\\\\\\n"\\/p
34591t cont
34592s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
34593t cont
34594d
34595:cont
34596n
34597s/.\{148\}/&'"$ac_delim"'/g
34598t clear
34599:clear
34600s/\\$//
34601t bsnlc
34602s/["\\]/\\&/g; s/^/"/; s/$/"/p
34603d
34604:bsnlc
34605s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
34606b cont
34607' <confdefs.h | sed '
34608s/'"$ac_delim"'/"\\\
34609"/g' >>$CONFIG_STATUS || ac_write_fail=1
34610
34611cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34612  for (key in D) D_is_set[key] = 1
34613  FS = ""
34614}
34615/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
34616  line = \$ 0
34617  split(line, arg, " ")
34618  if (arg[1] == "#") {
34619    defundef = arg[2]
34620    mac1 = arg[3]
34621  } else {
34622    defundef = substr(arg[1], 2)
34623    mac1 = arg[2]
34624  }
34625  split(mac1, mac2, "(") #)
34626  macro = mac2[1]
34627  prefix = substr(line, 1, index(line, defundef) - 1)
34628  if (D_is_set[macro]) {
34629    # Preserve the white space surrounding the "#".
34630    print prefix "define", macro P[macro] D[macro]
34631    next
34632  } else {
34633    # Replace #undef with comments.  This is necessary, for example,
34634    # in the case of _POSIX_SOURCE, which is predefined and required
34635    # on some systems where configure will not decide to define it.
34636    if (defundef == "undef") {
34637      print "/*", prefix defundef, macro, "*/"
34638      next
34639    }
34640  }
34641}
34642{ print }
34643_ACAWK
34644_ACEOF
34645cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34646  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
34647fi # test -n "$CONFIG_HEADERS"
34648
34649
34650eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
34651shift
34652for ac_tag
34653do
34654  case $ac_tag in
34655  :[FHLC]) ac_mode=$ac_tag; continue;;
34656  esac
34657  case $ac_mode$ac_tag in
34658  :[FHL]*:*);;
34659  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
34660  :[FH]-) ac_tag=-:-;;
34661  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34662  esac
34663  ac_save_IFS=$IFS
34664  IFS=:
34665  set x $ac_tag
34666  IFS=$ac_save_IFS
34667  shift
34668  ac_file=$1
34669  shift
34670
34671  case $ac_mode in
34672  :L) ac_source=$1;;
34673  :[FH])
34674    ac_file_inputs=
34675    for ac_f
34676    do
34677      case $ac_f in
34678      -) ac_f="$ac_tmp/stdin";;
34679      *) # Look for the file first in the build tree, then in the source tree
34680	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
34681	 # because $ac_f cannot contain `:'.
34682	 test -f "$ac_f" ||
34683	   case $ac_f in
34684	   [\\/$]*) false;;
34685	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34686	   esac ||
34687	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
34688      esac
34689      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
34690      as_fn_append ac_file_inputs " '$ac_f'"
34691    done
34692
34693    # Let's still pretend it is `configure' which instantiates (i.e., don't
34694    # use $as_me), people would be surprised to read:
34695    #    /* config.h.  Generated by config.status.  */
34696    configure_input='Generated from '`
34697	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
34698	`' by configure.'
34699    if test x"$ac_file" != x-; then
34700      configure_input="$ac_file.  $configure_input"
34701      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
34702printf "%s\n" "$as_me: creating $ac_file" >&6;}
34703    fi
34704    # Neutralize special characters interpreted by sed in replacement strings.
34705    case $configure_input in #(
34706    *\&* | *\|* | *\\* )
34707       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
34708       sed 's/[\\\\&|]/\\\\&/g'`;; #(
34709    *) ac_sed_conf_input=$configure_input;;
34710    esac
34711
34712    case $ac_tag in
34713    *:-:* | *:-) cat >"$ac_tmp/stdin" \
34714      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
34715    esac
34716    ;;
34717  esac
34718
34719  ac_dir=`$as_dirname -- "$ac_file" ||
34720$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34721	 X"$ac_file" : 'X\(//\)[^/]' \| \
34722	 X"$ac_file" : 'X\(//\)$' \| \
34723	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
34724printf "%s\n" X"$ac_file" |
34725    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34726	    s//\1/
34727	    q
34728	  }
34729	  /^X\(\/\/\)[^/].*/{
34730	    s//\1/
34731	    q
34732	  }
34733	  /^X\(\/\/\)$/{
34734	    s//\1/
34735	    q
34736	  }
34737	  /^X\(\/\).*/{
34738	    s//\1/
34739	    q
34740	  }
34741	  s/.*/./; q'`
34742  as_dir="$ac_dir"; as_fn_mkdir_p
34743  ac_builddir=.
34744
34745case "$ac_dir" in
34746.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34747*)
34748  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
34749  # A ".." for each directory in $ac_dir_suffix.
34750  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
34751  case $ac_top_builddir_sub in
34752  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34753  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34754  esac ;;
34755esac
34756ac_abs_top_builddir=$ac_pwd
34757ac_abs_builddir=$ac_pwd$ac_dir_suffix
34758# for backward compatibility:
34759ac_top_builddir=$ac_top_build_prefix
34760
34761case $srcdir in
34762  .)  # We are building in place.
34763    ac_srcdir=.
34764    ac_top_srcdir=$ac_top_builddir_sub
34765    ac_abs_top_srcdir=$ac_pwd ;;
34766  [\\/]* | ?:[\\/]* )  # Absolute name.
34767    ac_srcdir=$srcdir$ac_dir_suffix;
34768    ac_top_srcdir=$srcdir
34769    ac_abs_top_srcdir=$srcdir ;;
34770  *) # Relative name.
34771    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34772    ac_top_srcdir=$ac_top_build_prefix$srcdir
34773    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
34774esac
34775ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
34776
34777
34778  case $ac_mode in
34779  :F)
34780  #
34781  # CONFIG_FILE
34782  #
34783
34784  case $INSTALL in
34785  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
34786  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
34787  esac
34788  ac_MKDIR_P=$MKDIR_P
34789  case $MKDIR_P in
34790  [\\/$]* | ?:[\\/]* ) ;;
34791  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
34792  esac
34793_ACEOF
34794
34795cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34796# If the template does not know about datarootdir, expand it.
34797# FIXME: This hack should be removed a few years after 2.60.
34798ac_datarootdir_hack=; ac_datarootdir_seen=
34799ac_sed_dataroot='
34800/datarootdir/ {
34801  p
34802  q
34803}
34804/@datadir@/p
34805/@docdir@/p
34806/@infodir@/p
34807/@localedir@/p
34808/@mandir@/p'
34809case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
34810*datarootdir*) ac_datarootdir_seen=yes;;
34811*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
34812  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
34813printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
34814_ACEOF
34815cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34816  ac_datarootdir_hack='
34817  s&@datadir@&$datadir&g
34818  s&@docdir@&$docdir&g
34819  s&@infodir@&$infodir&g
34820  s&@localedir@&$localedir&g
34821  s&@mandir@&$mandir&g
34822  s&\\\${datarootdir}&$datarootdir&g' ;;
34823esac
34824_ACEOF
34825
34826# Neutralize VPATH when `$srcdir' = `.'.
34827# Shell code in configure.ac might set extrasub.
34828# FIXME: do we really want to maintain this feature?
34829cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34830ac_sed_extra="$ac_vpsub
34831$extrasub
34832_ACEOF
34833cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34834:t
34835/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34836s|@configure_input@|$ac_sed_conf_input|;t t
34837s&@top_builddir@&$ac_top_builddir_sub&;t t
34838s&@top_build_prefix@&$ac_top_build_prefix&;t t
34839s&@srcdir@&$ac_srcdir&;t t
34840s&@abs_srcdir@&$ac_abs_srcdir&;t t
34841s&@top_srcdir@&$ac_top_srcdir&;t t
34842s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
34843s&@builddir@&$ac_builddir&;t t
34844s&@abs_builddir@&$ac_abs_builddir&;t t
34845s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
34846s&@INSTALL@&$ac_INSTALL&;t t
34847s&@MKDIR_P@&$ac_MKDIR_P&;t t
34848$ac_datarootdir_hack
34849"
34850eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
34851  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34852
34853test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34854  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
34855  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
34856      "$ac_tmp/out"`; test -z "$ac_out"; } &&
34857  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34858which seems to be undefined.  Please make sure it is defined" >&5
34859printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34860which seems to be undefined.  Please make sure it is defined" >&2;}
34861
34862  rm -f "$ac_tmp/stdin"
34863  case $ac_file in
34864  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
34865  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
34866  esac \
34867  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34868 ;;
34869  :H)
34870  #
34871  # CONFIG_HEADER
34872  #
34873  if test x"$ac_file" != x-; then
34874    {
34875      printf "%s\n" "/* $configure_input  */" >&1 \
34876      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
34877    } >"$ac_tmp/config.h" \
34878      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34879    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
34880      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
34881printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
34882    else
34883      rm -f "$ac_file"
34884      mv "$ac_tmp/config.h" "$ac_file" \
34885	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
34886    fi
34887  else
34888    printf "%s\n" "/* $configure_input  */" >&1 \
34889      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
34890      || as_fn_error $? "could not create -" "$LINENO" 5
34891  fi
34892# Compute "$ac_file"'s index in $config_headers.
34893_am_arg="$ac_file"
34894_am_stamp_count=1
34895for _am_header in $config_headers :; do
34896  case $_am_header in
34897    $_am_arg | $_am_arg:* )
34898      break ;;
34899    * )
34900      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
34901  esac
34902done
34903echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
34904$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34905	 X"$_am_arg" : 'X\(//\)[^/]' \| \
34906	 X"$_am_arg" : 'X\(//\)$' \| \
34907	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
34908printf "%s\n" X"$_am_arg" |
34909    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34910	    s//\1/
34911	    q
34912	  }
34913	  /^X\(\/\/\)[^/].*/{
34914	    s//\1/
34915	    q
34916	  }
34917	  /^X\(\/\/\)$/{
34918	    s//\1/
34919	    q
34920	  }
34921	  /^X\(\/\).*/{
34922	    s//\1/
34923	    q
34924	  }
34925	  s/.*/./; q'`/stamp-h$_am_stamp_count
34926 ;;
34927
34928  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
34929printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
34930 ;;
34931  esac
34932
34933
34934  case $ac_file$ac_mode in
34935    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
34936  # Older Autoconf quotes --file arguments for eval, but not when files
34937  # are listed without --file.  Let's play safe and only enable the eval
34938  # if we detect the quoting.
34939  # TODO: see whether this extra hack can be removed once we start
34940  # requiring Autoconf 2.70 or later.
34941  case $CONFIG_FILES in #(
34942  *\'*) :
34943    eval set x "$CONFIG_FILES" ;; #(
34944  *) :
34945    set x $CONFIG_FILES ;; #(
34946  *) :
34947     ;;
34948esac
34949  shift
34950  # Used to flag and report bootstrapping failures.
34951  am_rc=0
34952  for am_mf
34953  do
34954    # Strip MF so we end up with the name of the file.
34955    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
34956    # Check whether this is an Automake generated Makefile which includes
34957    # dependency-tracking related rules and includes.
34958    # Grep'ing the whole file directly is not great: AIX grep has a line
34959    # limit of 2048, but all sed's we know have understand at least 4000.
34960    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
34961      || continue
34962    am_dirpart=`$as_dirname -- "$am_mf" ||
34963$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34964	 X"$am_mf" : 'X\(//\)[^/]' \| \
34965	 X"$am_mf" : 'X\(//\)$' \| \
34966	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
34967printf "%s\n" X"$am_mf" |
34968    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34969	    s//\1/
34970	    q
34971	  }
34972	  /^X\(\/\/\)[^/].*/{
34973	    s//\1/
34974	    q
34975	  }
34976	  /^X\(\/\/\)$/{
34977	    s//\1/
34978	    q
34979	  }
34980	  /^X\(\/\).*/{
34981	    s//\1/
34982	    q
34983	  }
34984	  s/.*/./; q'`
34985    am_filepart=`$as_basename -- "$am_mf" ||
34986$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
34987	 X"$am_mf" : 'X\(//\)$' \| \
34988	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
34989printf "%s\n" X/"$am_mf" |
34990    sed '/^.*\/\([^/][^/]*\)\/*$/{
34991	    s//\1/
34992	    q
34993	  }
34994	  /^X\/\(\/\/\)$/{
34995	    s//\1/
34996	    q
34997	  }
34998	  /^X\/\(\/\).*/{
34999	    s//\1/
35000	    q
35001	  }
35002	  s/.*/./; q'`
35003    { echo "$as_me:$LINENO: cd "$am_dirpart" \
35004      && sed -e '/# am--include-marker/d' "$am_filepart" \
35005        | $MAKE -f - am--depfiles" >&5
35006   (cd "$am_dirpart" \
35007      && sed -e '/# am--include-marker/d' "$am_filepart" \
35008        | $MAKE -f - am--depfiles) >&5 2>&5
35009   ac_status=$?
35010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35011   (exit $ac_status); } || am_rc=$?
35012  done
35013  if test $am_rc -ne 0; then
35014    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
35015printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
35016as_fn_error $? "Something went wrong bootstrapping makefile fragments
35017    for automatic dependency tracking.  If GNU make was not used, consider
35018    re-running the configure script with MAKE=\"gmake\" (or whatever is
35019    necessary).  You can also try re-running configure with the
35020    '--disable-dependency-tracking' option to at least be able to build
35021    the package (albeit without support for automatic dependency tracking).
35022See \`config.log' for more details" "$LINENO" 5; }
35023  fi
35024  { am_dirpart=; unset am_dirpart;}
35025  { am_filepart=; unset am_filepart;}
35026  { am_mf=; unset am_mf;}
35027  { am_rc=; unset am_rc;}
35028  rm -f conftest-deps.mk
35029}
35030 ;;
35031    "libtool":C)
35032
35033    # See if we are running on zsh, and set the options that allow our
35034    # commands through without removal of \ escapes.
35035    if test -n "${ZSH_VERSION+set}"; then
35036      setopt NO_GLOB_SUBST
35037    fi
35038
35039    cfgfile=${ofile}T
35040    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
35041    $RM "$cfgfile"
35042
35043    cat <<_LT_EOF >> "$cfgfile"
35044#! $SHELL
35045# Generated automatically by $as_me ($PACKAGE) $VERSION
35046# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
35047# NOTE: Changes made to this file will be lost: look at ltmain.sh.
35048
35049# Provide generalized library-building support services.
35050# Written by Gordon Matzigkeit, 1996
35051
35052# Copyright (C) 2014 Free Software Foundation, Inc.
35053# This is free software; see the source for copying conditions.  There is NO
35054# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
35055
35056# GNU Libtool is free software; you can redistribute it and/or modify
35057# it under the terms of the GNU General Public License as published by
35058# the Free Software Foundation; either version 2 of of the License, or
35059# (at your option) any later version.
35060#
35061# As a special exception to the GNU General Public License, if you
35062# distribute this file as part of a program or library that is built
35063# using GNU Libtool, you may include this file under the  same
35064# distribution terms that you use for the rest of that program.
35065#
35066# GNU Libtool is distributed in the hope that it will be useful, but
35067# WITHOUT ANY WARRANTY; without even the implied warranty of
35068# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
35069# GNU General Public License for more details.
35070#
35071# You should have received a copy of the GNU General Public License
35072# along with this program.  If not, see <http://www.gnu.org/licenses/>.
35073
35074
35075# The names of the tagged configurations supported by this script.
35076available_tags=''
35077
35078# Configured defaults for sys_lib_dlsearch_path munging.
35079: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
35080
35081# ### BEGIN LIBTOOL CONFIG
35082
35083# Which release of libtool.m4 was used?
35084macro_version=$macro_version
35085macro_revision=$macro_revision
35086
35087# Whether or not to build static libraries.
35088build_old_libs=$enable_static
35089
35090# Assembler program.
35091AS=$lt_AS
35092
35093# DLL creation program.
35094DLLTOOL=$lt_DLLTOOL
35095
35096# Object dumper program.
35097OBJDUMP=$lt_OBJDUMP
35098
35099# Whether or not to build shared libraries.
35100build_libtool_libs=$enable_shared
35101
35102# What type of objects to build.
35103pic_mode=$pic_mode
35104
35105# Whether or not to optimize for fast installation.
35106fast_install=$enable_fast_install
35107
35108# Shared archive member basename,for filename based shared library versioning on AIX.
35109shared_archive_member_spec=$shared_archive_member_spec
35110
35111# Shell to use when invoking shell scripts.
35112SHELL=$lt_SHELL
35113
35114# An echo program that protects backslashes.
35115ECHO=$lt_ECHO
35116
35117# The PATH separator for the build system.
35118PATH_SEPARATOR=$lt_PATH_SEPARATOR
35119
35120# The host system.
35121host_alias=$host_alias
35122host=$host
35123host_os=$host_os
35124
35125# The build system.
35126build_alias=$build_alias
35127build=$build
35128build_os=$build_os
35129
35130# A sed program that does not truncate output.
35131SED=$lt_SED
35132
35133# Sed that helps us avoid accidentally triggering echo(1) options like -n.
35134Xsed="\$SED -e 1s/^X//"
35135
35136# A grep program that handles long lines.
35137GREP=$lt_GREP
35138
35139# An ERE matcher.
35140EGREP=$lt_EGREP
35141
35142# A literal string matcher.
35143FGREP=$lt_FGREP
35144
35145# A BSD- or MS-compatible name lister.
35146NM=$lt_NM
35147
35148# Whether we need soft or hard links.
35149LN_S=$lt_LN_S
35150
35151# What is the maximum length of a command?
35152max_cmd_len=$max_cmd_len
35153
35154# Object file suffix (normally "o").
35155objext=$ac_objext
35156
35157# Executable file suffix (normally "").
35158exeext=$exeext
35159
35160# whether the shell understands "unset".
35161lt_unset=$lt_unset
35162
35163# turn spaces into newlines.
35164SP2NL=$lt_lt_SP2NL
35165
35166# turn newlines into spaces.
35167NL2SP=$lt_lt_NL2SP
35168
35169# convert \$build file names to \$host format.
35170to_host_file_cmd=$lt_cv_to_host_file_cmd
35171
35172# convert \$build files to toolchain format.
35173to_tool_file_cmd=$lt_cv_to_tool_file_cmd
35174
35175# A file(cmd) program that detects file types.
35176FILECMD=$lt_FILECMD
35177
35178# Method to check whether dependent libraries are shared objects.
35179deplibs_check_method=$lt_deplibs_check_method
35180
35181# Command to use when deplibs_check_method = "file_magic".
35182file_magic_cmd=$lt_file_magic_cmd
35183
35184# How to find potential files when deplibs_check_method = "file_magic".
35185file_magic_glob=$lt_file_magic_glob
35186
35187# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
35188want_nocaseglob=$lt_want_nocaseglob
35189
35190# Command to associate shared and link libraries.
35191sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
35192
35193# The archiver.
35194AR=$lt_AR
35195
35196# Flags to create an archive (by configure).
35197lt_ar_flags=$lt_ar_flags
35198
35199# Flags to create an archive.
35200AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
35201
35202# How to feed a file listing to the archiver.
35203archiver_list_spec=$lt_archiver_list_spec
35204
35205# A symbol stripping program.
35206STRIP=$lt_STRIP
35207
35208# Commands used to install an old-style archive.
35209RANLIB=$lt_RANLIB
35210old_postinstall_cmds=$lt_old_postinstall_cmds
35211old_postuninstall_cmds=$lt_old_postuninstall_cmds
35212
35213# Whether to use a lock for old archive extraction.
35214lock_old_archive_extraction=$lock_old_archive_extraction
35215
35216# A C compiler.
35217LTCC=$lt_CC
35218
35219# LTCC compiler flags.
35220LTCFLAGS=$lt_CFLAGS
35221
35222# Take the output of nm and produce a listing of raw symbols and C names.
35223global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
35224
35225# Transform the output of nm in a proper C declaration.
35226global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
35227
35228# Transform the output of nm into a list of symbols to manually relocate.
35229global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
35230
35231# Transform the output of nm in a C name address pair.
35232global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
35233
35234# Transform the output of nm in a C name address pair when lib prefix is needed.
35235global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
35236
35237# The name lister interface.
35238nm_interface=$lt_lt_cv_nm_interface
35239
35240# Specify filename containing input files for \$NM.
35241nm_file_list_spec=$lt_nm_file_list_spec
35242
35243# The root where to search for dependent libraries,and where our libraries should be installed.
35244lt_sysroot=$lt_sysroot
35245
35246# Command to truncate a binary pipe.
35247lt_truncate_bin=$lt_lt_cv_truncate_bin
35248
35249# The name of the directory that contains temporary libtool files.
35250objdir=$objdir
35251
35252# Used to examine libraries when file_magic_cmd begins with "file".
35253MAGIC_CMD=$MAGIC_CMD
35254
35255# Must we lock files when doing compilation?
35256need_locks=$lt_need_locks
35257
35258# Manifest tool.
35259MANIFEST_TOOL=$lt_MANIFEST_TOOL
35260
35261# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
35262DSYMUTIL=$lt_DSYMUTIL
35263
35264# Tool to change global to local symbols on Mac OS X.
35265NMEDIT=$lt_NMEDIT
35266
35267# Tool to manipulate fat objects and archives on Mac OS X.
35268LIPO=$lt_LIPO
35269
35270# ldd/readelf like tool for Mach-O binaries on Mac OS X.
35271OTOOL=$lt_OTOOL
35272
35273# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
35274OTOOL64=$lt_OTOOL64
35275
35276# Old archive suffix (normally "a").
35277libext=$libext
35278
35279# Shared library suffix (normally ".so").
35280shrext_cmds=$lt_shrext_cmds
35281
35282# The commands to extract the exported symbol list from a shared archive.
35283extract_expsyms_cmds=$lt_extract_expsyms_cmds
35284
35285# Variables whose values should be saved in libtool wrapper scripts and
35286# restored at link time.
35287variables_saved_for_relink=$lt_variables_saved_for_relink
35288
35289# Do we need the "lib" prefix for modules?
35290need_lib_prefix=$need_lib_prefix
35291
35292# Do we need a version for libraries?
35293need_version=$need_version
35294
35295# Library versioning type.
35296version_type=$version_type
35297
35298# Shared library runtime path variable.
35299runpath_var=$runpath_var
35300
35301# Shared library path variable.
35302shlibpath_var=$shlibpath_var
35303
35304# Is shlibpath searched before the hard-coded library search path?
35305shlibpath_overrides_runpath=$shlibpath_overrides_runpath
35306
35307# Format of library name prefix.
35308libname_spec=$lt_libname_spec
35309
35310# List of archive names.  First name is the real one, the rest are links.
35311# The last name is the one that the linker finds with -lNAME
35312library_names_spec=$lt_library_names_spec
35313
35314# The coded name of the library, if different from the real name.
35315soname_spec=$lt_soname_spec
35316
35317# Permission mode override for installation of shared libraries.
35318install_override_mode=$lt_install_override_mode
35319
35320# Command to use after installation of a shared archive.
35321postinstall_cmds=$lt_postinstall_cmds
35322
35323# Command to use after uninstallation of a shared archive.
35324postuninstall_cmds=$lt_postuninstall_cmds
35325
35326# Commands used to finish a libtool library installation in a directory.
35327finish_cmds=$lt_finish_cmds
35328
35329# As "finish_cmds", except a single script fragment to be evaled but
35330# not shown.
35331finish_eval=$lt_finish_eval
35332
35333# Whether we should hardcode library paths into libraries.
35334hardcode_into_libs=$hardcode_into_libs
35335
35336# Compile-time system search path for libraries.
35337sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
35338
35339# Detected run-time system search path for libraries.
35340sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
35341
35342# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
35343configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
35344
35345# Whether dlopen is supported.
35346dlopen_support=$enable_dlopen
35347
35348# Whether dlopen of programs is supported.
35349dlopen_self=$enable_dlopen_self
35350
35351# Whether dlopen of statically linked programs is supported.
35352dlopen_self_static=$enable_dlopen_self_static
35353
35354# Commands to strip libraries.
35355old_striplib=$lt_old_striplib
35356striplib=$lt_striplib
35357
35358
35359# The linker used to build libraries.
35360LD=$lt_LD
35361
35362# How to create reloadable object files.
35363reload_flag=$lt_reload_flag
35364reload_cmds=$lt_reload_cmds
35365
35366# Commands used to build an old-style archive.
35367old_archive_cmds=$lt_old_archive_cmds
35368
35369# A language specific compiler.
35370CC=$lt_compiler
35371
35372# Is the compiler the GNU compiler?
35373with_gcc=$GCC
35374
35375# Compiler flag to turn off builtin functions.
35376no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
35377
35378# Additional compiler flags for building library objects.
35379pic_flag=$lt_lt_prog_compiler_pic
35380
35381# How to pass a linker flag through the compiler.
35382wl=$lt_lt_prog_compiler_wl
35383
35384# Compiler flag to prevent dynamic linking.
35385link_static_flag=$lt_lt_prog_compiler_static
35386
35387# Does compiler simultaneously support -c and -o options?
35388compiler_c_o=$lt_lt_cv_prog_compiler_c_o
35389
35390# Whether or not to add -lc for building shared libraries.
35391build_libtool_need_lc=$archive_cmds_need_lc
35392
35393# Whether or not to disallow shared libs when runtime libs are static.
35394allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
35395
35396# Compiler flag to allow reflexive dlopens.
35397export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
35398
35399# Compiler flag to generate shared objects directly from archives.
35400whole_archive_flag_spec=$lt_whole_archive_flag_spec
35401
35402# Whether the compiler copes with passing no objects directly.
35403compiler_needs_object=$lt_compiler_needs_object
35404
35405# Create an old-style archive from a shared archive.
35406old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
35407
35408# Create a temporary old-style archive to link instead of a shared archive.
35409old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
35410
35411# Commands used to build a shared archive.
35412archive_cmds=$lt_archive_cmds
35413archive_expsym_cmds=$lt_archive_expsym_cmds
35414
35415# Commands used to build a loadable module if different from building
35416# a shared archive.
35417module_cmds=$lt_module_cmds
35418module_expsym_cmds=$lt_module_expsym_cmds
35419
35420# Whether we are building with GNU ld or not.
35421with_gnu_ld=$lt_with_gnu_ld
35422
35423# Flag that allows shared libraries with undefined symbols to be built.
35424allow_undefined_flag=$lt_allow_undefined_flag
35425
35426# Flag that enforces no undefined symbols.
35427no_undefined_flag=$lt_no_undefined_flag
35428
35429# Flag to hardcode \$libdir into a binary during linking.
35430# This must work even if \$libdir does not exist
35431hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
35432
35433# Whether we need a single "-rpath" flag with a separated argument.
35434hardcode_libdir_separator=$lt_hardcode_libdir_separator
35435
35436# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
35437# DIR into the resulting binary.
35438hardcode_direct=$hardcode_direct
35439
35440# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
35441# DIR into the resulting binary and the resulting library dependency is
35442# "absolute",i.e impossible to change by setting \$shlibpath_var if the
35443# library is relocated.
35444hardcode_direct_absolute=$hardcode_direct_absolute
35445
35446# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
35447# into the resulting binary.
35448hardcode_minus_L=$hardcode_minus_L
35449
35450# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
35451# into the resulting binary.
35452hardcode_shlibpath_var=$hardcode_shlibpath_var
35453
35454# Set to "yes" if building a shared library automatically hardcodes DIR
35455# into the library and all subsequent libraries and executables linked
35456# against it.
35457hardcode_automatic=$hardcode_automatic
35458
35459# Set to yes if linker adds runtime paths of dependent libraries
35460# to runtime path list.
35461inherit_rpath=$inherit_rpath
35462
35463# Whether libtool must link a program against all its dependency libraries.
35464link_all_deplibs=$link_all_deplibs
35465
35466# Set to "yes" if exported symbols are required.
35467always_export_symbols=$always_export_symbols
35468
35469# The commands to list exported symbols.
35470export_symbols_cmds=$lt_export_symbols_cmds
35471
35472# Symbols that should not be listed in the preloaded symbols.
35473exclude_expsyms=$lt_exclude_expsyms
35474
35475# Symbols that must always be exported.
35476include_expsyms=$lt_include_expsyms
35477
35478# Commands necessary for linking programs (against libraries) with templates.
35479prelink_cmds=$lt_prelink_cmds
35480
35481# Commands necessary for finishing linking programs.
35482postlink_cmds=$lt_postlink_cmds
35483
35484# Specify filename containing input files.
35485file_list_spec=$lt_file_list_spec
35486
35487# How to hardcode a shared library path into an executable.
35488hardcode_action=$hardcode_action
35489
35490# ### END LIBTOOL CONFIG
35491
35492_LT_EOF
35493
35494    cat <<'_LT_EOF' >> "$cfgfile"
35495
35496# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
35497
35498# func_munge_path_list VARIABLE PATH
35499# -----------------------------------
35500# VARIABLE is name of variable containing _space_ separated list of
35501# directories to be munged by the contents of PATH, which is string
35502# having a format:
35503# "DIR[:DIR]:"
35504#       string "DIR[ DIR]" will be prepended to VARIABLE
35505# ":DIR[:DIR]"
35506#       string "DIR[ DIR]" will be appended to VARIABLE
35507# "DIRP[:DIRP]::[DIRA:]DIRA"
35508#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
35509#       "DIRA[ DIRA]" will be appended to VARIABLE
35510# "DIR[:DIR]"
35511#       VARIABLE will be replaced by "DIR[ DIR]"
35512func_munge_path_list ()
35513{
35514    case x$2 in
35515    x)
35516        ;;
35517    *:)
35518        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
35519        ;;
35520    x:*)
35521        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
35522        ;;
35523    *::*)
35524        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
35525        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
35526        ;;
35527    *)
35528        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
35529        ;;
35530    esac
35531}
35532
35533
35534# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
35535func_cc_basename ()
35536{
35537    for cc_temp in $*""; do
35538      case $cc_temp in
35539        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
35540        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
35541        \-*) ;;
35542        *) break;;
35543      esac
35544    done
35545    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
35546}
35547
35548
35549# ### END FUNCTIONS SHARED WITH CONFIGURE
35550
35551_LT_EOF
35552
35553  case $host_os in
35554  aix3*)
35555    cat <<\_LT_EOF >> "$cfgfile"
35556# AIX sometimes has problems with the GCC collect2 program.  For some
35557# reason, if we set the COLLECT_NAMES environment variable, the problems
35558# vanish in a puff of smoke.
35559if test set != "${COLLECT_NAMES+set}"; then
35560  COLLECT_NAMES=
35561  export COLLECT_NAMES
35562fi
35563_LT_EOF
35564    ;;
35565  esac
35566
35567
35568
35569ltmain=$ac_aux_dir/ltmain.sh
35570
35571
35572  # We use sed instead of cat because bash on DJGPP gets confused if
35573  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
35574  # text mode, it properly converts lines to CR/LF.  This bash problem
35575  # is reportedly fixed, but why not run on old versions too?
35576  $SED '$q' "$ltmain" >> "$cfgfile" \
35577     || (rm -f "$cfgfile"; exit 1)
35578
35579   mv -f "$cfgfile" "$ofile" ||
35580    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
35581  chmod +x "$ofile"
35582
35583 ;;
35584    "sdksyms":C) touch hw/xfree86/sdksyms.dep ;;
35585
35586  esac
35587done # for ac_tag
35588
35589
35590as_fn_exit 0
35591_ACEOF
35592ac_clean_files=$ac_clean_files_save
35593
35594test $ac_write_fail = 0 ||
35595  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
35596
35597
35598# configure is writing to config.log, and then calls config.status.
35599# config.status does its own redirection, appending to config.log.
35600# Unfortunately, on DOS this fails, as config.log is still kept open
35601# by configure, so config.status won't be able to write to it; its
35602# output is simply discarded.  So we exec the FD to /dev/null,
35603# effectively closing config.log, so it can be properly (re)opened and
35604# appended to by config.status.  When coming back to configure, we
35605# need to make the FD available again.
35606if test "$no_create" != yes; then
35607  ac_cs_success=:
35608  ac_config_status_args=
35609  test "$silent" = yes &&
35610    ac_config_status_args="$ac_config_status_args --quiet"
35611  exec 5>/dev/null
35612  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35613  exec 5>>config.log
35614  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35615  # would make configure fail if this is the last instruction.
35616  $ac_cs_success || as_fn_exit 1
35617fi
35618if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
35619  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
35620printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
35621fi
35622
35623
35624