configure revision f0d0f83f
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.9.
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.9'
686PACKAGE_STRING='xorg-server 21.1.9'
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
1051LIBBSD_LIBS
1052LIBBSD_CFLAGS
1053POLL_FALSE
1054POLL_TRUE
1055LIBOBJS
1056DLOPEN_LIBS
1057SPECIAL_DTRACE_OBJECTS_FALSE
1058SPECIAL_DTRACE_OBJECTS_TRUE
1059XSERVER_DTRACE_FALSE
1060XSERVER_DTRACE_TRUE
1061DTRACE
1062TRADITIONALCPPFLAGS
1063RAWCPPFLAGS
1064RAWCPP
1065CPP
1066YFLAGS
1067YACC
1068LEXLIB
1069LEX_OUTPUT_ROOT
1070LEX
1071LT_SYS_LIBRARY_PATH
1072OTOOL64
1073OTOOL
1074LIPO
1075NMEDIT
1076DSYMUTIL
1077MANIFEST_TOOL
1078RANLIB
1079ac_ct_AR
1080AR
1081FILECMD
1082NM
1083ac_ct_DUMPBIN
1084DUMPBIN
1085LD
1086FGREP
1087EGREP
1088GREP
1089LIBTOOL
1090OBJDUMP
1091DLLTOOL
1092AS
1093LN_S
1094am__fastdepCCAS_FALSE
1095am__fastdepCCAS_TRUE
1096CCASDEPMODE
1097CCASFLAGS
1098CCAS
1099HAVE_LD_WRAP_FALSE
1100HAVE_LD_WRAP_TRUE
1101ENABLE_UNIT_TESTS_FALSE
1102ENABLE_UNIT_TESTS_TRUE
1103XORG_MALLOC_DEBUG_ENV
1104HAVE_XSLTPROC_FALSE
1105HAVE_XSLTPROC_TRUE
1106XSLTPROC
1107HAVE_FOP_FALSE
1108HAVE_FOP_TRUE
1109FOP
1110HAVE_XMLTO_FALSE
1111HAVE_XMLTO_TRUE
1112HAVE_XMLTO_TEXT_FALSE
1113HAVE_XMLTO_TEXT_TRUE
1114XMLTO
1115ENABLE_DEVEL_DOCS_FALSE
1116ENABLE_DEVEL_DOCS_TRUE
1117ENABLE_DOCS_FALSE
1118ENABLE_DOCS_TRUE
1119HAVE_STYLESHEETS_FALSE
1120HAVE_STYLESHEETS_TRUE
1121XSL_STYLESHEET
1122STYLESHEET_SRCDIR
1123XORG_SGML_PATH
1124HAVE_DOXYGEN_FALSE
1125HAVE_DOXYGEN_TRUE
1126HAVE_DOT_FALSE
1127HAVE_DOT_TRUE
1128HAVE_DOT
1129DOT
1130DOXYGEN
1131MAN_SUBSTS
1132XORG_MAN_PAGE
1133ADMIN_MAN_DIR
1134DRIVER_MAN_DIR
1135MISC_MAN_DIR
1136FILE_MAN_DIR
1137LIB_MAN_DIR
1138APP_MAN_DIR
1139ADMIN_MAN_SUFFIX
1140DRIVER_MAN_SUFFIX
1141MISC_MAN_SUFFIX
1142FILE_MAN_SUFFIX
1143LIB_MAN_SUFFIX
1144APP_MAN_SUFFIX
1145SED
1146host_os
1147host_vendor
1148host_cpu
1149host
1150build_os
1151build_vendor
1152build_cpu
1153build
1154INSTALL_CMD
1155PKG_CONFIG_LIBDIR
1156PKG_CONFIG_PATH
1157PKG_CONFIG
1158CHANGELOG_CMD
1159STRICT_CFLAGS
1160CWARNFLAGS
1161BASE_CFLAGS
1162am__fastdepCC_FALSE
1163am__fastdepCC_TRUE
1164CCDEPMODE
1165am__nodep
1166AMDEPBACKSLASH
1167AMDEP_FALSE
1168AMDEP_TRUE
1169am__include
1170DEPDIR
1171OBJEXT
1172EXEEXT
1173ac_ct_CC
1174CPPFLAGS
1175LDFLAGS
1176CFLAGS
1177CC
1178AM_BACKSLASH
1179AM_DEFAULT_VERBOSITY
1180AM_DEFAULT_V
1181AM_V
1182CSCOPE
1183ETAGS
1184CTAGS
1185am__untar
1186am__tar
1187AMTAR
1188am__leading_dot
1189SET_MAKE
1190AWK
1191mkdir_p
1192MKDIR_P
1193INSTALL_STRIP_PROGRAM
1194STRIP
1195install_sh
1196MAKEINFO
1197AUTOHEADER
1198AUTOMAKE
1199AUTOCONF
1200ACLOCAL
1201VERSION
1202PACKAGE
1203CYGPATH_W
1204am__isrc
1205INSTALL_DATA
1206INSTALL_SCRIPT
1207INSTALL_PROGRAM
1208target_alias
1209host_alias
1210build_alias
1211LIBS
1212ECHO_T
1213ECHO_N
1214ECHO_C
1215DEFS
1216mandir
1217localedir
1218libdir
1219psdir
1220pdfdir
1221dvidir
1222htmldir
1223infodir
1224docdir
1225oldincludedir
1226includedir
1227runstatedir
1228localstatedir
1229sharedstatedir
1230sysconfdir
1231datadir
1232datarootdir
1233libexecdir
1234sbindir
1235bindir
1236program_transform_name
1237prefix
1238exec_prefix
1239PACKAGE_URL
1240PACKAGE_BUGREPORT
1241PACKAGE_STRING
1242PACKAGE_VERSION
1243PACKAGE_TARNAME
1244PACKAGE_NAME
1245PATH_SEPARATOR
1246SHELL
1247am__quote'
1248ac_subst_files=''
1249ac_user_opts='
1250enable_option_checking
1251enable_silent_rules
1252enable_dependency_tracking
1253enable_selective_werror
1254enable_strict_compilation
1255with_doxygen
1256enable_docs
1257enable_devel_docs
1258with_xmlto
1259with_fop
1260with_xsltproc
1261enable_unit_tests
1262enable_static
1263enable_shared
1264with_pic
1265enable_fast_install
1266with_aix_soname
1267with_gnu_ld
1268with_sysroot
1269enable_libtool_lock
1270enable_largefile
1271with_dtrace
1272enable_agp
1273enable_werror
1274enable_debug
1275with_int10
1276with_vendor_name
1277with_vendor_name_short
1278with_vendor_web
1279with_module_dir
1280with_log_dir
1281with_builder_addr
1282with_builderstring
1283enable_listen_tcp
1284enable_listen_unix
1285enable_listen_local
1286with_fallback_input_driver
1287with_fontrootdir
1288with_fontmiscdir
1289with_fontotfdir
1290with_fontttfdir
1291with_fonttype1dir
1292with_font75dpidir
1293with_font100dpidir
1294with_default_font_path
1295with_xkb_path
1296with_xkb_output
1297with_default_xkb_rules
1298with_default_xkb_model
1299with_default_xkb_layout
1300with_default_xkb_variant
1301with_default_xkb_options
1302with_serverconfig_path
1303with_apple_applications_dir
1304with_apple_application_name
1305with_bundle_id_prefix
1306with_bundle_version
1307with_bundle_version_string
1308enable_sparkle
1309with_sparkle_feed_url
1310enable_visibility
1311with_khronos_spec_dir
1312enable_composite
1313enable_mitshm
1314enable_xres
1315enable_record
1316enable_xv
1317enable_xvmc
1318enable_dga
1319enable_screensaver
1320enable_xdmcp
1321enable_xdm_auth_1
1322enable_glx
1323enable_dri
1324enable_dri2
1325enable_dri3
1326enable_present
1327enable_xinerama
1328enable_xf86vidmode
1329enable_xace
1330enable_xselinux
1331enable_xcsecurity
1332enable_dbe
1333enable_xf86bigfont
1334enable_dpms
1335enable_config_udev
1336enable_config_udev_kms
1337enable_config_hal
1338enable_config_wscons
1339enable_xfree86_utils
1340enable_vgahw
1341enable_int10_module
1342enable_windowsdri
1343enable_libdrm
1344enable_clientids
1345enable_pciaccess
1346enable_linux_acpi
1347enable_linux_apm
1348enable_systemd_logind
1349enable_suid_wrapper
1350enable_xorg
1351enable_xvfb
1352enable_xnest
1353enable_xquartz
1354enable_standalone_xpbproxy
1355enable_xwin
1356enable_glamor
1357enable_xf86_input_inputtest
1358enable_kdrive
1359enable_xephyr
1360enable_libunwind
1361enable_xshmfence
1362enable_install_setuid
1363enable_unix_transport
1364enable_tcp_transport
1365enable_ipv6
1366enable_local_transport
1367enable_secure_rpc
1368enable_input_thread
1369with_systemd_daemon
1370enable_xtrans_send_fds
1371with_xkb_bin_directory
1372with_sha1
1373'
1374      ac_precious_vars='build_alias
1375host_alias
1376target_alias
1377CC
1378CFLAGS
1379LDFLAGS
1380LIBS
1381CPPFLAGS
1382PKG_CONFIG
1383PKG_CONFIG_PATH
1384PKG_CONFIG_LIBDIR
1385DOXYGEN
1386DOT
1387XMLTO
1388FOP
1389XSLTPROC
1390XORG_MALLOC_DEBUG_ENV
1391CCAS
1392CCASFLAGS
1393LT_SYS_LIBRARY_PATH
1394YACC
1395YFLAGS
1396CPP
1397LIBBSD_CFLAGS
1398LIBBSD_LIBS
1399PIXMAN_CFLAGS
1400PIXMAN_LIBS
1401SYSTEMD_DAEMON_CFLAGS
1402SYSTEMD_DAEMON_LIBS
1403UDEV_CFLAGS
1404UDEV_LIBS
1405DBUS_CFLAGS
1406DBUS_LIBS
1407HAL_CFLAGS
1408HAL_LIBS
1409DRI2PROTO_CFLAGS
1410DRI2PROTO_LIBS
1411DRI3PROTO_CFLAGS
1412DRI3PROTO_LIBS
1413XSHMFENCE_CFLAGS
1414XSHMFENCE_LIBS
1415LIBDRM_CFLAGS
1416LIBDRM_LIBS
1417XLIB_CFLAGS
1418XLIB_LIBS
1419GL_CFLAGS
1420GL_LIBS
1421SELINUX_CFLAGS
1422SELINUX_LIBS
1423XDMCP_CFLAGS
1424XDMCP_LIBS
1425LIBSHA1_CFLAGS
1426LIBSHA1_LIBS
1427OPENSSL_CFLAGS
1428OPENSSL_LIBS
1429XSERVERCFLAGS_CFLAGS
1430XSERVERCFLAGS_LIBS
1431XSERVERLIBS_CFLAGS
1432XSERVERLIBS_LIBS
1433LIBUNWIND_CFLAGS
1434LIBUNWIND_LIBS
1435XNESTMODULES_CFLAGS
1436XNESTMODULES_LIBS
1437LIBXCVT_CFLAGS
1438LIBXCVT_LIBS
1439PCIACCESS_CFLAGS
1440PCIACCESS_LIBS
1441DGA_CFLAGS
1442DGA_LIBS
1443XORG_MODULES_CFLAGS
1444XORG_MODULES_LIBS
1445GLAMOR_CFLAGS
1446GLAMOR_LIBS
1447GBM_CFLAGS
1448GBM_LIBS
1449XWINMODULES_CFLAGS
1450XWINMODULES_LIBS
1451WINDOWSDRI_CFLAGS
1452WINDOWSDRI_LIBS
1453KHRONOS_OPENGL_REGISTRY_CFLAGS
1454KHRONOS_OPENGL_REGISTRY_LIBS
1455XPBPROXY_CFLAGS
1456XPBPROXY_LIBS
1457XEPHYR_CFLAGS
1458XEPHYR_LIBS'
1459
1460
1461# Initialize some variables set by options.
1462ac_init_help=
1463ac_init_version=false
1464ac_unrecognized_opts=
1465ac_unrecognized_sep=
1466# The variables have the same names as the options, with
1467# dashes changed to underlines.
1468cache_file=/dev/null
1469exec_prefix=NONE
1470no_create=
1471no_recursion=
1472prefix=NONE
1473program_prefix=NONE
1474program_suffix=NONE
1475program_transform_name=s,x,x,
1476silent=
1477site=
1478srcdir=
1479verbose=
1480x_includes=NONE
1481x_libraries=NONE
1482
1483# Installation directory options.
1484# These are left unexpanded so users can "make install exec_prefix=/foo"
1485# and all the variables that are supposed to be based on exec_prefix
1486# by default will actually change.
1487# Use braces instead of parens because sh, perl, etc. also accept them.
1488# (The list follows the same order as the GNU Coding Standards.)
1489bindir='${exec_prefix}/bin'
1490sbindir='${exec_prefix}/sbin'
1491libexecdir='${exec_prefix}/libexec'
1492datarootdir='${prefix}/share'
1493datadir='${datarootdir}'
1494sysconfdir='${prefix}/etc'
1495sharedstatedir='${prefix}/com'
1496localstatedir='${prefix}/var'
1497runstatedir='${localstatedir}/run'
1498includedir='${prefix}/include'
1499oldincludedir='/usr/include'
1500docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1501infodir='${datarootdir}/info'
1502htmldir='${docdir}'
1503dvidir='${docdir}'
1504pdfdir='${docdir}'
1505psdir='${docdir}'
1506libdir='${exec_prefix}/lib'
1507localedir='${datarootdir}/locale'
1508mandir='${datarootdir}/man'
1509
1510ac_prev=
1511ac_dashdash=
1512for ac_option
1513do
1514  # If the previous option needs an argument, assign it.
1515  if test -n "$ac_prev"; then
1516    eval $ac_prev=\$ac_option
1517    ac_prev=
1518    continue
1519  fi
1520
1521  case $ac_option in
1522  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1523  *=)   ac_optarg= ;;
1524  *)    ac_optarg=yes ;;
1525  esac
1526
1527  case $ac_dashdash$ac_option in
1528  --)
1529    ac_dashdash=yes ;;
1530
1531  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1532    ac_prev=bindir ;;
1533  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1534    bindir=$ac_optarg ;;
1535
1536  -build | --build | --buil | --bui | --bu)
1537    ac_prev=build_alias ;;
1538  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1539    build_alias=$ac_optarg ;;
1540
1541  -cache-file | --cache-file | --cache-fil | --cache-fi \
1542  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1543    ac_prev=cache_file ;;
1544  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1545  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1546    cache_file=$ac_optarg ;;
1547
1548  --config-cache | -C)
1549    cache_file=config.cache ;;
1550
1551  -datadir | --datadir | --datadi | --datad)
1552    ac_prev=datadir ;;
1553  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1554    datadir=$ac_optarg ;;
1555
1556  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1557  | --dataroo | --dataro | --datar)
1558    ac_prev=datarootdir ;;
1559  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1560  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1561    datarootdir=$ac_optarg ;;
1562
1563  -disable-* | --disable-*)
1564    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1565    # Reject names that are not valid shell variable names.
1566    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1567      as_fn_error $? "invalid feature name: \`$ac_useropt'"
1568    ac_useropt_orig=$ac_useropt
1569    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1570    case $ac_user_opts in
1571      *"
1572"enable_$ac_useropt"
1573"*) ;;
1574      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1575	 ac_unrecognized_sep=', ';;
1576    esac
1577    eval enable_$ac_useropt=no ;;
1578
1579  -docdir | --docdir | --docdi | --doc | --do)
1580    ac_prev=docdir ;;
1581  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1582    docdir=$ac_optarg ;;
1583
1584  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1585    ac_prev=dvidir ;;
1586  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1587    dvidir=$ac_optarg ;;
1588
1589  -enable-* | --enable-*)
1590    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1591    # Reject names that are not valid shell variable names.
1592    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1593      as_fn_error $? "invalid feature name: \`$ac_useropt'"
1594    ac_useropt_orig=$ac_useropt
1595    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1596    case $ac_user_opts in
1597      *"
1598"enable_$ac_useropt"
1599"*) ;;
1600      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1601	 ac_unrecognized_sep=', ';;
1602    esac
1603    eval enable_$ac_useropt=\$ac_optarg ;;
1604
1605  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1606  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1607  | --exec | --exe | --ex)
1608    ac_prev=exec_prefix ;;
1609  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1610  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1611  | --exec=* | --exe=* | --ex=*)
1612    exec_prefix=$ac_optarg ;;
1613
1614  -gas | --gas | --ga | --g)
1615    # Obsolete; use --with-gas.
1616    with_gas=yes ;;
1617
1618  -help | --help | --hel | --he | -h)
1619    ac_init_help=long ;;
1620  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1621    ac_init_help=recursive ;;
1622  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1623    ac_init_help=short ;;
1624
1625  -host | --host | --hos | --ho)
1626    ac_prev=host_alias ;;
1627  -host=* | --host=* | --hos=* | --ho=*)
1628    host_alias=$ac_optarg ;;
1629
1630  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1631    ac_prev=htmldir ;;
1632  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1633  | --ht=*)
1634    htmldir=$ac_optarg ;;
1635
1636  -includedir | --includedir | --includedi | --included | --include \
1637  | --includ | --inclu | --incl | --inc)
1638    ac_prev=includedir ;;
1639  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1640  | --includ=* | --inclu=* | --incl=* | --inc=*)
1641    includedir=$ac_optarg ;;
1642
1643  -infodir | --infodir | --infodi | --infod | --info | --inf)
1644    ac_prev=infodir ;;
1645  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1646    infodir=$ac_optarg ;;
1647
1648  -libdir | --libdir | --libdi | --libd)
1649    ac_prev=libdir ;;
1650  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1651    libdir=$ac_optarg ;;
1652
1653  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1654  | --libexe | --libex | --libe)
1655    ac_prev=libexecdir ;;
1656  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1657  | --libexe=* | --libex=* | --libe=*)
1658    libexecdir=$ac_optarg ;;
1659
1660  -localedir | --localedir | --localedi | --localed | --locale)
1661    ac_prev=localedir ;;
1662  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1663    localedir=$ac_optarg ;;
1664
1665  -localstatedir | --localstatedir | --localstatedi | --localstated \
1666  | --localstate | --localstat | --localsta | --localst | --locals)
1667    ac_prev=localstatedir ;;
1668  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1669  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1670    localstatedir=$ac_optarg ;;
1671
1672  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1673    ac_prev=mandir ;;
1674  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1675    mandir=$ac_optarg ;;
1676
1677  -nfp | --nfp | --nf)
1678    # Obsolete; use --without-fp.
1679    with_fp=no ;;
1680
1681  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1682  | --no-cr | --no-c | -n)
1683    no_create=yes ;;
1684
1685  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1686  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1687    no_recursion=yes ;;
1688
1689  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1690  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1691  | --oldin | --oldi | --old | --ol | --o)
1692    ac_prev=oldincludedir ;;
1693  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1694  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1695  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1696    oldincludedir=$ac_optarg ;;
1697
1698  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1699    ac_prev=prefix ;;
1700  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1701    prefix=$ac_optarg ;;
1702
1703  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1704  | --program-pre | --program-pr | --program-p)
1705    ac_prev=program_prefix ;;
1706  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1707  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1708    program_prefix=$ac_optarg ;;
1709
1710  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1711  | --program-suf | --program-su | --program-s)
1712    ac_prev=program_suffix ;;
1713  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1714  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1715    program_suffix=$ac_optarg ;;
1716
1717  -program-transform-name | --program-transform-name \
1718  | --program-transform-nam | --program-transform-na \
1719  | --program-transform-n | --program-transform- \
1720  | --program-transform | --program-transfor \
1721  | --program-transfo | --program-transf \
1722  | --program-trans | --program-tran \
1723  | --progr-tra | --program-tr | --program-t)
1724    ac_prev=program_transform_name ;;
1725  -program-transform-name=* | --program-transform-name=* \
1726  | --program-transform-nam=* | --program-transform-na=* \
1727  | --program-transform-n=* | --program-transform-=* \
1728  | --program-transform=* | --program-transfor=* \
1729  | --program-transfo=* | --program-transf=* \
1730  | --program-trans=* | --program-tran=* \
1731  | --progr-tra=* | --program-tr=* | --program-t=*)
1732    program_transform_name=$ac_optarg ;;
1733
1734  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1735    ac_prev=pdfdir ;;
1736  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1737    pdfdir=$ac_optarg ;;
1738
1739  -psdir | --psdir | --psdi | --psd | --ps)
1740    ac_prev=psdir ;;
1741  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1742    psdir=$ac_optarg ;;
1743
1744  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1745  | -silent | --silent | --silen | --sile | --sil)
1746    silent=yes ;;
1747
1748  -runstatedir | --runstatedir | --runstatedi | --runstated \
1749  | --runstate | --runstat | --runsta | --runst | --runs \
1750  | --run | --ru | --r)
1751    ac_prev=runstatedir ;;
1752  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1753  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1754  | --run=* | --ru=* | --r=*)
1755    runstatedir=$ac_optarg ;;
1756
1757  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1758    ac_prev=sbindir ;;
1759  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1760  | --sbi=* | --sb=*)
1761    sbindir=$ac_optarg ;;
1762
1763  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1764  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1765  | --sharedst | --shareds | --shared | --share | --shar \
1766  | --sha | --sh)
1767    ac_prev=sharedstatedir ;;
1768  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1769  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1770  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1771  | --sha=* | --sh=*)
1772    sharedstatedir=$ac_optarg ;;
1773
1774  -site | --site | --sit)
1775    ac_prev=site ;;
1776  -site=* | --site=* | --sit=*)
1777    site=$ac_optarg ;;
1778
1779  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1780    ac_prev=srcdir ;;
1781  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1782    srcdir=$ac_optarg ;;
1783
1784  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1785  | --syscon | --sysco | --sysc | --sys | --sy)
1786    ac_prev=sysconfdir ;;
1787  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1788  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1789    sysconfdir=$ac_optarg ;;
1790
1791  -target | --target | --targe | --targ | --tar | --ta | --t)
1792    ac_prev=target_alias ;;
1793  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1794    target_alias=$ac_optarg ;;
1795
1796  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1797    verbose=yes ;;
1798
1799  -version | --version | --versio | --versi | --vers | -V)
1800    ac_init_version=: ;;
1801
1802  -with-* | --with-*)
1803    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1804    # Reject names that are not valid shell variable names.
1805    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1806      as_fn_error $? "invalid package name: \`$ac_useropt'"
1807    ac_useropt_orig=$ac_useropt
1808    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1809    case $ac_user_opts in
1810      *"
1811"with_$ac_useropt"
1812"*) ;;
1813      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1814	 ac_unrecognized_sep=', ';;
1815    esac
1816    eval with_$ac_useropt=\$ac_optarg ;;
1817
1818  -without-* | --without-*)
1819    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1820    # Reject names that are not valid shell variable names.
1821    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1822      as_fn_error $? "invalid package name: \`$ac_useropt'"
1823    ac_useropt_orig=$ac_useropt
1824    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1825    case $ac_user_opts in
1826      *"
1827"with_$ac_useropt"
1828"*) ;;
1829      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1830	 ac_unrecognized_sep=', ';;
1831    esac
1832    eval with_$ac_useropt=no ;;
1833
1834  --x)
1835    # Obsolete; use --with-x.
1836    with_x=yes ;;
1837
1838  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1839  | --x-incl | --x-inc | --x-in | --x-i)
1840    ac_prev=x_includes ;;
1841  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1842  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1843    x_includes=$ac_optarg ;;
1844
1845  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1846  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1847    ac_prev=x_libraries ;;
1848  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1849  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1850    x_libraries=$ac_optarg ;;
1851
1852  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1853Try \`$0 --help' for more information"
1854    ;;
1855
1856  *=*)
1857    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1858    # Reject names that are not valid shell variable names.
1859    case $ac_envvar in #(
1860      '' | [0-9]* | *[!_$as_cr_alnum]* )
1861      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1862    esac
1863    eval $ac_envvar=\$ac_optarg
1864    export $ac_envvar ;;
1865
1866  *)
1867    # FIXME: should be removed in autoconf 3.0.
1868    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1869    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1870      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1871    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1872    ;;
1873
1874  esac
1875done
1876
1877if test -n "$ac_prev"; then
1878  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1879  as_fn_error $? "missing argument to $ac_option"
1880fi
1881
1882if test -n "$ac_unrecognized_opts"; then
1883  case $enable_option_checking in
1884    no) ;;
1885    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1886    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1887  esac
1888fi
1889
1890# Check all directory arguments for consistency.
1891for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1892		datadir sysconfdir sharedstatedir localstatedir includedir \
1893		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1894		libdir localedir mandir runstatedir
1895do
1896  eval ac_val=\$$ac_var
1897  # Remove trailing slashes.
1898  case $ac_val in
1899    */ )
1900      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1901      eval $ac_var=\$ac_val;;
1902  esac
1903  # Be sure to have absolute directory names.
1904  case $ac_val in
1905    [\\/$]* | ?:[\\/]* )  continue;;
1906    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1907  esac
1908  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1909done
1910
1911# There might be people who depend on the old broken behavior: `$host'
1912# used to hold the argument of --host etc.
1913# FIXME: To remove some day.
1914build=$build_alias
1915host=$host_alias
1916target=$target_alias
1917
1918# FIXME: To remove some day.
1919if test "x$host_alias" != x; then
1920  if test "x$build_alias" = x; then
1921    cross_compiling=maybe
1922  elif test "x$build_alias" != "x$host_alias"; then
1923    cross_compiling=yes
1924  fi
1925fi
1926
1927ac_tool_prefix=
1928test -n "$host_alias" && ac_tool_prefix=$host_alias-
1929
1930test "$silent" = yes && exec 6>/dev/null
1931
1932
1933ac_pwd=`pwd` && test -n "$ac_pwd" &&
1934ac_ls_di=`ls -di .` &&
1935ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1936  as_fn_error $? "working directory cannot be determined"
1937test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1938  as_fn_error $? "pwd does not report name of working directory"
1939
1940
1941# Find the source files, if location was not specified.
1942if test -z "$srcdir"; then
1943  ac_srcdir_defaulted=yes
1944  # Try the directory containing this script, then the parent directory.
1945  ac_confdir=`$as_dirname -- "$as_myself" ||
1946$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1947	 X"$as_myself" : 'X\(//\)[^/]' \| \
1948	 X"$as_myself" : 'X\(//\)$' \| \
1949	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1950printf "%s\n" X"$as_myself" |
1951    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1952	    s//\1/
1953	    q
1954	  }
1955	  /^X\(\/\/\)[^/].*/{
1956	    s//\1/
1957	    q
1958	  }
1959	  /^X\(\/\/\)$/{
1960	    s//\1/
1961	    q
1962	  }
1963	  /^X\(\/\).*/{
1964	    s//\1/
1965	    q
1966	  }
1967	  s/.*/./; q'`
1968  srcdir=$ac_confdir
1969  if test ! -r "$srcdir/$ac_unique_file"; then
1970    srcdir=..
1971  fi
1972else
1973  ac_srcdir_defaulted=no
1974fi
1975if test ! -r "$srcdir/$ac_unique_file"; then
1976  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1977  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1978fi
1979ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1980ac_abs_confdir=`(
1981	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1982	pwd)`
1983# When building in place, set srcdir=.
1984if test "$ac_abs_confdir" = "$ac_pwd"; then
1985  srcdir=.
1986fi
1987# Remove unnecessary trailing slashes from srcdir.
1988# Double slashes in file names in object file debugging info
1989# mess up M-x gdb in Emacs.
1990case $srcdir in
1991*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1992esac
1993for ac_var in $ac_precious_vars; do
1994  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1995  eval ac_env_${ac_var}_value=\$${ac_var}
1996  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1997  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1998done
1999
2000#
2001# Report the --help message.
2002#
2003if test "$ac_init_help" = "long"; then
2004  # Omit some internal or obsolete options to make the list less imposing.
2005  # This message is too long to be a string in the A/UX 3.1 sh.
2006  cat <<_ACEOF
2007\`configure' configures xorg-server 21.1.9 to adapt to many kinds of systems.
2008
2009Usage: $0 [OPTION]... [VAR=VALUE]...
2010
2011To assign environment variables (e.g., CC, CFLAGS...), specify them as
2012VAR=VALUE.  See below for descriptions of some of the useful variables.
2013
2014Defaults for the options are specified in brackets.
2015
2016Configuration:
2017  -h, --help              display this help and exit
2018      --help=short        display options specific to this package
2019      --help=recursive    display the short help of all the included packages
2020  -V, --version           display version information and exit
2021  -q, --quiet, --silent   do not print \`checking ...' messages
2022      --cache-file=FILE   cache test results in FILE [disabled]
2023  -C, --config-cache      alias for \`--cache-file=config.cache'
2024  -n, --no-create         do not create output files
2025      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
2026
2027Installation directories:
2028  --prefix=PREFIX         install architecture-independent files in PREFIX
2029                          [$ac_default_prefix]
2030  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
2031                          [PREFIX]
2032
2033By default, \`make install' will install all the files in
2034\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
2035an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2036for instance \`--prefix=\$HOME'.
2037
2038For better control, use the options below.
2039
2040Fine tuning of the installation directories:
2041  --bindir=DIR            user executables [EPREFIX/bin]
2042  --sbindir=DIR           system admin executables [EPREFIX/sbin]
2043  --libexecdir=DIR        program executables [EPREFIX/libexec]
2044  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
2045  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
2046  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
2047  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
2048  --libdir=DIR            object code libraries [EPREFIX/lib]
2049  --includedir=DIR        C header files [PREFIX/include]
2050  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
2051  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
2052  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
2053  --infodir=DIR           info documentation [DATAROOTDIR/info]
2054  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
2055  --mandir=DIR            man documentation [DATAROOTDIR/man]
2056  --docdir=DIR            documentation root [DATAROOTDIR/doc/xorg-server]
2057  --htmldir=DIR           html documentation [DOCDIR]
2058  --dvidir=DIR            dvi documentation [DOCDIR]
2059  --pdfdir=DIR            pdf documentation [DOCDIR]
2060  --psdir=DIR             ps documentation [DOCDIR]
2061_ACEOF
2062
2063  cat <<\_ACEOF
2064
2065Program names:
2066  --program-prefix=PREFIX            prepend PREFIX to installed program names
2067  --program-suffix=SUFFIX            append SUFFIX to installed program names
2068  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
2069
2070System types:
2071  --build=BUILD     configure for building on BUILD [guessed]
2072  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
2073_ACEOF
2074fi
2075
2076if test -n "$ac_init_help"; then
2077  case $ac_init_help in
2078     short | recursive ) echo "Configuration of xorg-server 21.1.9:";;
2079   esac
2080  cat <<\_ACEOF
2081
2082Optional Features:
2083  --disable-option-checking  ignore unrecognized --enable/--with options
2084  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
2085  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
2086  --enable-silent-rules   less verbose build output (undo: "make V=1")
2087  --disable-silent-rules  verbose build output (undo: "make V=0")
2088  --enable-dependency-tracking
2089                          do not reject slow dependency extractors
2090  --disable-dependency-tracking
2091                          speeds up one-time build
2092  --disable-selective-werror
2093                          Turn off selective compiler errors. (default:
2094                          enabled)
2095  --enable-strict-compilation
2096                          Enable all warnings from compiler and make them
2097                          errors (default: disabled)
2098  --enable-docs           Enable building the documentation (default: yes)
2099  --enable-devel-docs     Enable building the developer documentation
2100                          (default: yes)
2101  --enable-unit-tests     Enable building unit test cases (default: auto)
2102  --enable-static[=PKGS]  build static libraries [default=no]
2103  --enable-shared[=PKGS]  build shared libraries [default=yes]
2104  --enable-fast-install[=PKGS]
2105                          optimize for fast installation [default=yes]
2106  --disable-libtool-lock  avoid locking (might break parallel builds)
2107  --disable-largefile     omit support for large files
2108  --enable-agp            Enable AGP support (default: auto)
2109  --enable-werror         Obsolete - use --enable-strict-compilation instead
2110  --enable-debug          Enable debugging (default: disabled)
2111  --enable-listen-tcp     Listen on TCP by default (default:disabled)
2112  --disable-listen-unix   Listen on Unix by default (default:enabled)
2113  --disable-listen-local  Listen on local by default (default:enabled)
2114  --enable-sparkle        Enable updating of X11.app using the Sparkle
2115                          Framework (default: disabled)
2116  --enable-visibility     Enable symbol visibility (default: auto)
2117  --disable-composite     Build Composite extension (default: enabled)
2118  --disable-mitshm        Build SHM extension (default: auto)
2119  --disable-xres          Build XRes extension (default: enabled)
2120  --disable-record        Build Record extension (default: enabled)
2121  --disable-xv            Build Xv extension (default: enabled)
2122  --disable-xvmc          Build XvMC extension (default: enabled)
2123  --disable-dga           Build DGA extension (default: auto)
2124  --disable-screensaver   Build ScreenSaver extension (default: enabled)
2125  --disable-xdmcp         Build XDMCP extension (default: auto)
2126  --disable-xdm-auth-1    Build XDM-Auth-1 extension (default: auto)
2127  --disable-glx           Build GLX extension (default: enabled)
2128  --enable-dri            Build DRI extension (default: auto)
2129  --enable-dri2           Build DRI2 extension (default: auto)
2130  --enable-dri3           Build DRI3 extension (default: auto)
2131  --disable-present       Build Present extension (default: enabled)
2132  --disable-xinerama      Build Xinerama extension (default: enabled)
2133  --disable-xf86vidmode   Build XF86VidMode extension (default: auto)
2134  --disable-xace          Build X-ACE extension (default: enabled)
2135  --enable-xselinux       Build SELinux extension (default: disabled)
2136  --enable-xcsecurity     Build Security extension (default: disabled)
2137  --disable-dbe           Build DBE extension (default: enabled)
2138  --enable-xf86bigfont    Build XF86 Big Font extension (default: disabled)
2139  --disable-dpms          Build DPMS extension (default: enabled)
2140  --enable-config-udev    Build udev support (default: auto)
2141  --enable-config-udev-kms
2142                          Build udev kms support (default: auto)
2143  --disable-config-hal    Build HAL support (default: auto)
2144  --enable-config-wscons  Build wscons config support (default: auto)
2145  --enable-xfree86-utils  Build xfree86 DDX utilities (default: enabled)
2146  --enable-vgahw          Build Xorg with vga access (default: enabled)
2147  --enable-int10-module   Build Xorg with int10 module (default: enabled)
2148  --enable-windowsdri     Build XWin with WindowsDRI extension (default: auto)
2149  --enable-libdrm         Build Xorg with libdrm support (default: enabled)
2150  --disable-clientids     Build Xorg with client ID tracking (default:
2151                          enabled)
2152  --enable-pciaccess      Build Xorg with pciaccess library (default: enabled)
2153  --disable-linux-acpi    Disable building ACPI support on Linux (if
2154                          available).
2155  --disable-linux-apm     Disable building APM support on Linux (if
2156                          available).
2157  --enable-systemd-logind Build systemd-logind support (default: auto)
2158  --enable-suid-wrapper   Build suid-root wrapper for legacy driver support on
2159                          rootless xserver systems (default: no)
2160  --enable-xorg           Build Xorg server (default: auto)
2161  --enable-xvfb           Build Xvfb server (default: yes)
2162  --enable-xnest          Build Xnest server (default: auto)
2163  --enable-xquartz        Build Xquartz server for OS-X (default: auto)
2164  --enable-standalone-xpbproxy
2165                          Build a standalone xpbproxy (in addition to the one
2166                          integrated into Xquartz as a separate thread)
2167                          (default: no)
2168  --enable-xwin           Build XWin server (default: auto)
2169  --enable-glamor         Build glamor dix module (default: auto)
2170  --enable-xf86-input-inputtest
2171                          Build Xorg test input driver (default: yes)
2172  --enable-kdrive         Build kdrive servers (default: no)
2173  --enable-xephyr         Build the kdrive Xephyr server (default: auto)
2174  --enable-libunwind      Use libunwind for backtracing (default: auto)
2175  --disable-xshmfence     Disable xshmfence (default: auto)
2176  --enable-install-setuid Install Xorg server as owned by root with setuid bit
2177                          (default: auto)
2178  --enable-unix-transport Enable UNIX domain socket transport
2179  --enable-tcp-transport  Enable TCP socket transport
2180  --enable-ipv6           Enable IPv6 support
2181  --enable-local-transport
2182                          Enable os-specific local transport
2183  --enable-secure-rpc     Enable Secure RPC
2184  --enable-input-thread   Enable input threads
2185  --disable-xtrans-send-fds
2186                          Use Xtrans support for fd passing (default: auto)
2187
2188Optional Packages:
2189  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
2190  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
2191  --with-doxygen          Use doxygen to regenerate documentation (default:
2192                          auto)
2193  --with-xmlto            Use xmlto to regenerate documentation (default:
2194                          auto)
2195  --with-fop              Use fop to regenerate documentation (default: auto)
2196  --with-xsltproc         Use xsltproc for the transformation of XML documents
2197                          (default: auto)
2198  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
2199                          both]
2200  --with-aix-soname=aix|svr4|both
2201                          shared library versioning (aka "SONAME") variant to
2202                          provide on AIX, [default=aix].
2203  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
2204  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
2205                          compiler's sysroot if not specified).
2206  --with-dtrace=PATH      Enable dtrace probes (default: enabled if dtrace
2207                          found)
2208  --with-int10=BACKEND    int10 backend: vm86, x86emu or stub
2209  --with-vendor-name=VENDOR
2210                          Vendor string reported by the server
2211  --with-vendor-name-short=VENDOR
2212                          Short version of vendor string reported by the
2213                          server
2214  --with-vendor-web=URL   Vendor web address reported by the server
2215  --with-module-dir=DIR   Directory where modules are installed (default:
2216                          $libdir/xorg/modules)
2217  --with-log-dir=DIR      Directory where log files are kept (default:
2218                          $localstatedir/log)
2219  --with-builder-addr=ADDRESS
2220                          Builder address (default:
2221                          xorg@lists.freedesktop.org)
2222  --with-builderstring=BUILDERSTRING
2223                          Additional builder string
2224  --with-fallback-input-driver=$FALLBACK_INPUT_DRIVER
2225                          Input driver fallback if the requested driver for a
2226                          device is unavailable
2227  --with-fontrootdir=DIR  Path to root directory for font files
2228  --with-fontmiscdir=DIR  Path to misc files [FONTROOTDIR/misc]
2229  --with-fontotfdir=DIR   Path to OTF files [FONTROOTDIR/OTF]
2230  --with-fontttfdir=DIR   Path to TTF files [FONTROOTDIR/TTF]
2231  --with-fonttype1dir=DIR Path to Type1 files [FONTROOTDIR/Type1]
2232  --with-font75dpidir=DIR Path to 75dpi files [FONTROOTDIR/75dpi]
2233  --with-font100dpidir=DIR
2234                          Path to 100dpi files [FONTROOTDIR/100dpi]
2235  --with-default-font-path=PATH
2236                          Comma separated list of font dirs
2237  --with-xkb-path=PATH    Path to XKB base dir (default: auto)
2238  --with-xkb-output=PATH  Path to XKB output dir (default:
2239                          ${datadir}/X11/xkb/compiled)
2240  --with-default-xkb-rules=RULES
2241                          Keyboard ruleset (default: base/evdev)
2242  --with-default-xkb-model=MODEL
2243                          Keyboard model (default: pc105)
2244  --with-default-xkb-layout=LAYOUT
2245                          Keyboard layout (default: us)
2246  --with-default-xkb-variant=VARIANT
2247                          Keyboard variant (default: (none))
2248  --with-default-xkb-options=OPTIONS
2249                          Keyboard layout options (default: (none))
2250  --with-serverconfig-path=PATH
2251                          Directory where ancillary server config files are
2252                          installed (default: ${libdir}/xorg)
2253  --with-apple-applications-dir=PATH
2254                          Path to the Applications directory (default:
2255                          /Applications/Utilities)
2256  --with-apple-application-name=NAME
2257                          Name for the .app (default: X11)
2258  --with-bundle-id-prefix=RDNS_PREFIX
2259                          Prefix to use for bundle identifiers (default:
2260                          org.x)
2261  --with-bundle-version=VERSION
2262                          Version to use for X11.app's CFBundleVersion
2263                          (default: 21.1.9)
2264  --with-bundle-version-string=VERSION
2265                          Version to use for X11.app's
2266                          CFBundleShortVersionString (default: 21.1.9)
2267  --with-sparkle-feed-url=URL
2268                          URL for the Sparkle feed (default:
2269                          https://www.xquartz.org/releases/sparkle/release.xml)
2270  --with-khronos-spec-dir=PATH
2271                          Path to Khronos OpenGL registry database files
2272                          (default: auto)
2273  --with-systemd-daemon   support systemd socket activation (default: auto)
2274  --with-xkb-bin-directory=DIR
2275                          Directory containing xkbcomp program (default: auto)
2276  --with-sha1=libc|libmd|libnettle|libgcrypt|libcrypto|libsha1|CommonCrypto|CryptoAPI
2277                          choose SHA1 implementation
2278
2279Some influential environment variables:
2280  CC          C compiler command
2281  CFLAGS      C compiler flags
2282  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2283              nonstandard directory <lib dir>
2284  LIBS        libraries to pass to the linker, e.g. -l<library>
2285  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2286              you have headers in a nonstandard directory <include dir>
2287  PKG_CONFIG  path to pkg-config utility
2288  PKG_CONFIG_PATH
2289              directories to add to pkg-config's search path
2290  PKG_CONFIG_LIBDIR
2291              path overriding pkg-config's built-in search path
2292  DOXYGEN     Path to doxygen command
2293  DOT         Path to the dot graphics utility
2294  XMLTO       Path to xmlto command
2295  FOP         Path to fop command
2296  XSLTPROC    Path to xsltproc command
2297  XORG_MALLOC_DEBUG_ENV
2298              Environment variables to enable memory checking in tests
2299  CCAS        assembler compiler command (defaults to CC)
2300  CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
2301  LT_SYS_LIBRARY_PATH
2302              User-defined run-time library search path.
2303  YACC        The `Yet Another Compiler Compiler' implementation to use.
2304              Defaults to the first program found out of: `bison -y', `byacc',
2305              `yacc'.
2306  YFLAGS      The list of arguments that will be passed by default to $YACC.
2307              This script will default YFLAGS to the empty string to avoid a
2308              default value of `-d' given by some make applications.
2309  CPP         C preprocessor
2310  LIBBSD_CFLAGS
2311              C compiler flags for LIBBSD, overriding pkg-config
2312  LIBBSD_LIBS linker flags for LIBBSD, overriding pkg-config
2313  PIXMAN_CFLAGS
2314              C compiler flags for PIXMAN, overriding pkg-config
2315  PIXMAN_LIBS linker flags for PIXMAN, overriding pkg-config
2316  SYSTEMD_DAEMON_CFLAGS
2317              C compiler flags for SYSTEMD_DAEMON, overriding pkg-config
2318  SYSTEMD_DAEMON_LIBS
2319              linker flags for SYSTEMD_DAEMON, overriding pkg-config
2320  UDEV_CFLAGS C compiler flags for UDEV, overriding pkg-config
2321  UDEV_LIBS   linker flags for UDEV, overriding pkg-config
2322  DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
2323  DBUS_LIBS   linker flags for DBUS, overriding pkg-config
2324  HAL_CFLAGS  C compiler flags for HAL, overriding pkg-config
2325  HAL_LIBS    linker flags for HAL, overriding pkg-config
2326  DRI2PROTO_CFLAGS
2327              C compiler flags for DRI2PROTO, overriding pkg-config
2328  DRI2PROTO_LIBS
2329              linker flags for DRI2PROTO, overriding pkg-config
2330  DRI3PROTO_CFLAGS
2331              C compiler flags for DRI3PROTO, overriding pkg-config
2332  DRI3PROTO_LIBS
2333              linker flags for DRI3PROTO, overriding pkg-config
2334  XSHMFENCE_CFLAGS
2335              C compiler flags for XSHMFENCE, overriding pkg-config
2336  XSHMFENCE_LIBS
2337              linker flags for XSHMFENCE, overriding pkg-config
2338  LIBDRM_CFLAGS
2339              C compiler flags for LIBDRM, overriding pkg-config
2340  LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config
2341  XLIB_CFLAGS C compiler flags for XLIB, overriding pkg-config
2342  XLIB_LIBS   linker flags for XLIB, overriding pkg-config
2343  GL_CFLAGS   C compiler flags for GL, overriding pkg-config
2344  GL_LIBS     linker flags for GL, overriding pkg-config
2345  SELINUX_CFLAGS
2346              C compiler flags for SELINUX, overriding pkg-config
2347  SELINUX_LIBS
2348              linker flags for SELINUX, overriding pkg-config
2349  XDMCP_CFLAGS
2350              C compiler flags for XDMCP, overriding pkg-config
2351  XDMCP_LIBS  linker flags for XDMCP, overriding pkg-config
2352  LIBSHA1_CFLAGS
2353              C compiler flags for LIBSHA1, overriding pkg-config
2354  LIBSHA1_LIBS
2355              linker flags for LIBSHA1, overriding pkg-config
2356  OPENSSL_CFLAGS
2357              C compiler flags for OPENSSL, overriding pkg-config
2358  OPENSSL_LIBS
2359              linker flags for OPENSSL, overriding pkg-config
2360  XSERVERCFLAGS_CFLAGS
2361              C compiler flags for XSERVERCFLAGS, overriding pkg-config
2362  XSERVERCFLAGS_LIBS
2363              linker flags for XSERVERCFLAGS, overriding pkg-config
2364  XSERVERLIBS_CFLAGS
2365              C compiler flags for XSERVERLIBS, overriding pkg-config
2366  XSERVERLIBS_LIBS
2367              linker flags for XSERVERLIBS, overriding pkg-config
2368  LIBUNWIND_CFLAGS
2369              C compiler flags for LIBUNWIND, overriding pkg-config
2370  LIBUNWIND_LIBS
2371              linker flags for LIBUNWIND, overriding pkg-config
2372  XNESTMODULES_CFLAGS
2373              C compiler flags for XNESTMODULES, overriding pkg-config
2374  XNESTMODULES_LIBS
2375              linker flags for XNESTMODULES, overriding pkg-config
2376  LIBXCVT_CFLAGS
2377              C compiler flags for LIBXCVT, overriding pkg-config
2378  LIBXCVT_LIBS
2379              linker flags for LIBXCVT, overriding pkg-config
2380  PCIACCESS_CFLAGS
2381              C compiler flags for PCIACCESS, overriding pkg-config
2382  PCIACCESS_LIBS
2383              linker flags for PCIACCESS, overriding pkg-config
2384  DGA_CFLAGS  C compiler flags for DGA, overriding pkg-config
2385  DGA_LIBS    linker flags for DGA, overriding pkg-config
2386  XORG_MODULES_CFLAGS
2387              C compiler flags for XORG_MODULES, overriding pkg-config
2388  XORG_MODULES_LIBS
2389              linker flags for XORG_MODULES, overriding pkg-config
2390  GLAMOR_CFLAGS
2391              C compiler flags for GLAMOR, overriding pkg-config
2392  GLAMOR_LIBS linker flags for GLAMOR, overriding pkg-config
2393  GBM_CFLAGS  C compiler flags for GBM, overriding pkg-config
2394  GBM_LIBS    linker flags for GBM, overriding pkg-config
2395  XWINMODULES_CFLAGS
2396              C compiler flags for XWINMODULES, overriding pkg-config
2397  XWINMODULES_LIBS
2398              linker flags for XWINMODULES, overriding pkg-config
2399  WINDOWSDRI_CFLAGS
2400              C compiler flags for WINDOWSDRI, overriding pkg-config
2401  WINDOWSDRI_LIBS
2402              linker flags for WINDOWSDRI, overriding pkg-config
2403  KHRONOS_OPENGL_REGISTRY_CFLAGS
2404              C compiler flags for KHRONOS_OPENGL_REGISTRY, overriding
2405              pkg-config
2406  KHRONOS_OPENGL_REGISTRY_LIBS
2407              linker flags for KHRONOS_OPENGL_REGISTRY, overriding pkg-config
2408  XPBPROXY_CFLAGS
2409              C compiler flags for XPBPROXY, overriding pkg-config
2410  XPBPROXY_LIBS
2411              linker flags for XPBPROXY, overriding pkg-config
2412  XEPHYR_CFLAGS
2413              C compiler flags for XEPHYR, overriding pkg-config
2414  XEPHYR_LIBS linker flags for XEPHYR, overriding pkg-config
2415
2416Use these variables to override the choices made by `configure' or to help
2417it to find libraries and programs with nonstandard names/locations.
2418
2419Report bugs to <https://gitlab.freedesktop.org/xorg/xserver/issues>.
2420_ACEOF
2421ac_status=$?
2422fi
2423
2424if test "$ac_init_help" = "recursive"; then
2425  # If there are subdirs, report their specific --help.
2426  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2427    test -d "$ac_dir" ||
2428      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2429      continue
2430    ac_builddir=.
2431
2432case "$ac_dir" in
2433.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2434*)
2435  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
2436  # A ".." for each directory in $ac_dir_suffix.
2437  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2438  case $ac_top_builddir_sub in
2439  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2440  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2441  esac ;;
2442esac
2443ac_abs_top_builddir=$ac_pwd
2444ac_abs_builddir=$ac_pwd$ac_dir_suffix
2445# for backward compatibility:
2446ac_top_builddir=$ac_top_build_prefix
2447
2448case $srcdir in
2449  .)  # We are building in place.
2450    ac_srcdir=.
2451    ac_top_srcdir=$ac_top_builddir_sub
2452    ac_abs_top_srcdir=$ac_pwd ;;
2453  [\\/]* | ?:[\\/]* )  # Absolute name.
2454    ac_srcdir=$srcdir$ac_dir_suffix;
2455    ac_top_srcdir=$srcdir
2456    ac_abs_top_srcdir=$srcdir ;;
2457  *) # Relative name.
2458    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2459    ac_top_srcdir=$ac_top_build_prefix$srcdir
2460    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2461esac
2462ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2463
2464    cd "$ac_dir" || { ac_status=$?; continue; }
2465    # Check for configure.gnu first; this name is used for a wrapper for
2466    # Metaconfig's "Configure" on case-insensitive file systems.
2467    if test -f "$ac_srcdir/configure.gnu"; then
2468      echo &&
2469      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2470    elif test -f "$ac_srcdir/configure"; then
2471      echo &&
2472      $SHELL "$ac_srcdir/configure" --help=recursive
2473    else
2474      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2475    fi || ac_status=$?
2476    cd "$ac_pwd" || { ac_status=$?; break; }
2477  done
2478fi
2479
2480test -n "$ac_init_help" && exit $ac_status
2481if $ac_init_version; then
2482  cat <<\_ACEOF
2483xorg-server configure 21.1.9
2484generated by GNU Autoconf 2.71
2485
2486Copyright (C) 2021 Free Software Foundation, Inc.
2487This configure script is free software; the Free Software Foundation
2488gives unlimited permission to copy, distribute and modify it.
2489_ACEOF
2490  exit
2491fi
2492
2493## ------------------------ ##
2494## Autoconf initialization. ##
2495## ------------------------ ##
2496
2497# ac_fn_c_try_compile LINENO
2498# --------------------------
2499# Try to compile conftest.$ac_ext, and return whether this succeeded.
2500ac_fn_c_try_compile ()
2501{
2502  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2503  rm -f conftest.$ac_objext conftest.beam
2504  if { { ac_try="$ac_compile"
2505case "(($ac_try" in
2506  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2507  *) ac_try_echo=$ac_try;;
2508esac
2509eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2510printf "%s\n" "$ac_try_echo"; } >&5
2511  (eval "$ac_compile") 2>conftest.err
2512  ac_status=$?
2513  if test -s conftest.err; then
2514    grep -v '^ *+' conftest.err >conftest.er1
2515    cat conftest.er1 >&5
2516    mv -f conftest.er1 conftest.err
2517  fi
2518  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2519  test $ac_status = 0; } && {
2520	 test -z "$ac_c_werror_flag" ||
2521	 test ! -s conftest.err
2522       } && test -s conftest.$ac_objext
2523then :
2524  ac_retval=0
2525else $as_nop
2526  printf "%s\n" "$as_me: failed program was:" >&5
2527sed 's/^/| /' conftest.$ac_ext >&5
2528
2529	ac_retval=1
2530fi
2531  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2532  as_fn_set_status $ac_retval
2533
2534} # ac_fn_c_try_compile
2535
2536# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2537# -------------------------------------------------------
2538# Tests whether HEADER exists and can be compiled using the include files in
2539# INCLUDES, setting the cache variable VAR accordingly.
2540ac_fn_c_check_header_compile ()
2541{
2542  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2543  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2544printf %s "checking for $2... " >&6; }
2545if eval test \${$3+y}
2546then :
2547  printf %s "(cached) " >&6
2548else $as_nop
2549  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2550/* end confdefs.h.  */
2551$4
2552#include <$2>
2553_ACEOF
2554if ac_fn_c_try_compile "$LINENO"
2555then :
2556  eval "$3=yes"
2557else $as_nop
2558  eval "$3=no"
2559fi
2560rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2561fi
2562eval ac_res=\$$3
2563	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2564printf "%s\n" "$ac_res" >&6; }
2565  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2566
2567} # ac_fn_c_check_header_compile
2568
2569# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
2570# ------------------------------------------------------------------
2571# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2572# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
2573ac_fn_check_decl ()
2574{
2575  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2576  as_decl_name=`echo $2|sed 's/ *(.*//'`
2577  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2578printf %s "checking whether $as_decl_name is declared... " >&6; }
2579if eval test \${$3+y}
2580then :
2581  printf %s "(cached) " >&6
2582else $as_nop
2583  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2584  eval ac_save_FLAGS=\$$6
2585  as_fn_append $6 " $5"
2586  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2587/* end confdefs.h.  */
2588$4
2589int
2590main (void)
2591{
2592#ifndef $as_decl_name
2593#ifdef __cplusplus
2594  (void) $as_decl_use;
2595#else
2596  (void) $as_decl_name;
2597#endif
2598#endif
2599
2600  ;
2601  return 0;
2602}
2603_ACEOF
2604if ac_fn_c_try_compile "$LINENO"
2605then :
2606  eval "$3=yes"
2607else $as_nop
2608  eval "$3=no"
2609fi
2610rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2611  eval $6=\$ac_save_FLAGS
2612
2613fi
2614eval ac_res=\$$3
2615	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2616printf "%s\n" "$ac_res" >&6; }
2617  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2618
2619} # ac_fn_check_decl
2620
2621# ac_fn_c_try_link LINENO
2622# -----------------------
2623# Try to link conftest.$ac_ext, and return whether this succeeded.
2624ac_fn_c_try_link ()
2625{
2626  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2627  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
2628  if { { ac_try="$ac_link"
2629case "(($ac_try" in
2630  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2631  *) ac_try_echo=$ac_try;;
2632esac
2633eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2634printf "%s\n" "$ac_try_echo"; } >&5
2635  (eval "$ac_link") 2>conftest.err
2636  ac_status=$?
2637  if test -s conftest.err; then
2638    grep -v '^ *+' conftest.err >conftest.er1
2639    cat conftest.er1 >&5
2640    mv -f conftest.er1 conftest.err
2641  fi
2642  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2643  test $ac_status = 0; } && {
2644	 test -z "$ac_c_werror_flag" ||
2645	 test ! -s conftest.err
2646       } && test -s conftest$ac_exeext && {
2647	 test "$cross_compiling" = yes ||
2648	 test -x conftest$ac_exeext
2649       }
2650then :
2651  ac_retval=0
2652else $as_nop
2653  printf "%s\n" "$as_me: failed program was:" >&5
2654sed 's/^/| /' conftest.$ac_ext >&5
2655
2656	ac_retval=1
2657fi
2658  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2659  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2660  # interfere with the next link command; also delete a directory that is
2661  # left behind by Apple's compiler.  We do this before executing the actions.
2662  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2663  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2664  as_fn_set_status $ac_retval
2665
2666} # ac_fn_c_try_link
2667
2668# ac_fn_c_check_func LINENO FUNC VAR
2669# ----------------------------------
2670# Tests whether FUNC exists, setting the cache variable VAR accordingly
2671ac_fn_c_check_func ()
2672{
2673  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2674  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2675printf %s "checking for $2... " >&6; }
2676if eval test \${$3+y}
2677then :
2678  printf %s "(cached) " >&6
2679else $as_nop
2680  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2681/* end confdefs.h.  */
2682/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2683   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2684#define $2 innocuous_$2
2685
2686/* System header to define __stub macros and hopefully few prototypes,
2687   which can conflict with char $2 (); below.  */
2688
2689#include <limits.h>
2690#undef $2
2691
2692/* Override any GCC internal prototype to avoid an error.
2693   Use char because int might match the return type of a GCC
2694   builtin and then its argument prototype would still apply.  */
2695#ifdef __cplusplus
2696extern "C"
2697#endif
2698char $2 ();
2699/* The GNU C library defines this for functions which it implements
2700    to always fail with ENOSYS.  Some functions are actually named
2701    something starting with __ and the normal name is an alias.  */
2702#if defined __stub_$2 || defined __stub___$2
2703choke me
2704#endif
2705
2706int
2707main (void)
2708{
2709return $2 ();
2710  ;
2711  return 0;
2712}
2713_ACEOF
2714if ac_fn_c_try_link "$LINENO"
2715then :
2716  eval "$3=yes"
2717else $as_nop
2718  eval "$3=no"
2719fi
2720rm -f core conftest.err conftest.$ac_objext conftest.beam \
2721    conftest$ac_exeext conftest.$ac_ext
2722fi
2723eval ac_res=\$$3
2724	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2725printf "%s\n" "$ac_res" >&6; }
2726  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2727
2728} # ac_fn_c_check_func
2729
2730# ac_fn_c_try_cpp LINENO
2731# ----------------------
2732# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2733ac_fn_c_try_cpp ()
2734{
2735  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2736  if { { ac_try="$ac_cpp conftest.$ac_ext"
2737case "(($ac_try" in
2738  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2739  *) ac_try_echo=$ac_try;;
2740esac
2741eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2742printf "%s\n" "$ac_try_echo"; } >&5
2743  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2744  ac_status=$?
2745  if test -s conftest.err; then
2746    grep -v '^ *+' conftest.err >conftest.er1
2747    cat conftest.er1 >&5
2748    mv -f conftest.er1 conftest.err
2749  fi
2750  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2751  test $ac_status = 0; } > conftest.i && {
2752	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2753	 test ! -s conftest.err
2754       }
2755then :
2756  ac_retval=0
2757else $as_nop
2758  printf "%s\n" "$as_me: failed program was:" >&5
2759sed 's/^/| /' conftest.$ac_ext >&5
2760
2761    ac_retval=1
2762fi
2763  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2764  as_fn_set_status $ac_retval
2765
2766} # ac_fn_c_try_cpp
2767
2768# ac_fn_c_try_run LINENO
2769# ----------------------
2770# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
2771# executables *can* be run.
2772ac_fn_c_try_run ()
2773{
2774  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2775  if { { ac_try="$ac_link"
2776case "(($ac_try" in
2777  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2778  *) ac_try_echo=$ac_try;;
2779esac
2780eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2781printf "%s\n" "$ac_try_echo"; } >&5
2782  (eval "$ac_link") 2>&5
2783  ac_status=$?
2784  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2785  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2786  { { case "(($ac_try" in
2787  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2788  *) ac_try_echo=$ac_try;;
2789esac
2790eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2791printf "%s\n" "$ac_try_echo"; } >&5
2792  (eval "$ac_try") 2>&5
2793  ac_status=$?
2794  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2795  test $ac_status = 0; }; }
2796then :
2797  ac_retval=0
2798else $as_nop
2799  printf "%s\n" "$as_me: program exited with status $ac_status" >&5
2800       printf "%s\n" "$as_me: failed program was:" >&5
2801sed 's/^/| /' conftest.$ac_ext >&5
2802
2803       ac_retval=$ac_status
2804fi
2805  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2806  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2807  as_fn_set_status $ac_retval
2808
2809} # ac_fn_c_try_run
2810
2811# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2812# --------------------------------------------
2813# Tries to find the compile-time value of EXPR in a program that includes
2814# INCLUDES, setting VAR accordingly. Returns whether the value could be
2815# computed
2816ac_fn_c_compute_int ()
2817{
2818  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2819  if test "$cross_compiling" = yes; then
2820    # Depending upon the size, compute the lo and hi bounds.
2821cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2822/* end confdefs.h.  */
2823$4
2824int
2825main (void)
2826{
2827static int test_array [1 - 2 * !(($2) >= 0)];
2828test_array [0] = 0;
2829return test_array [0];
2830
2831  ;
2832  return 0;
2833}
2834_ACEOF
2835if ac_fn_c_try_compile "$LINENO"
2836then :
2837  ac_lo=0 ac_mid=0
2838  while :; do
2839    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2840/* end confdefs.h.  */
2841$4
2842int
2843main (void)
2844{
2845static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2846test_array [0] = 0;
2847return test_array [0];
2848
2849  ;
2850  return 0;
2851}
2852_ACEOF
2853if ac_fn_c_try_compile "$LINENO"
2854then :
2855  ac_hi=$ac_mid; break
2856else $as_nop
2857  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2858			if test $ac_lo -le $ac_mid; then
2859			  ac_lo= ac_hi=
2860			  break
2861			fi
2862			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2863fi
2864rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2865  done
2866else $as_nop
2867  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2868/* end confdefs.h.  */
2869$4
2870int
2871main (void)
2872{
2873static int test_array [1 - 2 * !(($2) < 0)];
2874test_array [0] = 0;
2875return test_array [0];
2876
2877  ;
2878  return 0;
2879}
2880_ACEOF
2881if ac_fn_c_try_compile "$LINENO"
2882then :
2883  ac_hi=-1 ac_mid=-1
2884  while :; do
2885    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2886/* end confdefs.h.  */
2887$4
2888int
2889main (void)
2890{
2891static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2892test_array [0] = 0;
2893return test_array [0];
2894
2895  ;
2896  return 0;
2897}
2898_ACEOF
2899if ac_fn_c_try_compile "$LINENO"
2900then :
2901  ac_lo=$ac_mid; break
2902else $as_nop
2903  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2904			if test $ac_mid -le $ac_hi; then
2905			  ac_lo= ac_hi=
2906			  break
2907			fi
2908			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2909fi
2910rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2911  done
2912else $as_nop
2913  ac_lo= ac_hi=
2914fi
2915rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2916fi
2917rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2918# Binary search between lo and hi bounds.
2919while test "x$ac_lo" != "x$ac_hi"; do
2920  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2921  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2922/* end confdefs.h.  */
2923$4
2924int
2925main (void)
2926{
2927static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2928test_array [0] = 0;
2929return test_array [0];
2930
2931  ;
2932  return 0;
2933}
2934_ACEOF
2935if ac_fn_c_try_compile "$LINENO"
2936then :
2937  ac_hi=$ac_mid
2938else $as_nop
2939  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2940fi
2941rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2942done
2943case $ac_lo in #((
2944?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2945'') ac_retval=1 ;;
2946esac
2947  else
2948    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2949/* end confdefs.h.  */
2950$4
2951static long int longval (void) { return $2; }
2952static unsigned long int ulongval (void) { return $2; }
2953#include <stdio.h>
2954#include <stdlib.h>
2955int
2956main (void)
2957{
2958
2959  FILE *f = fopen ("conftest.val", "w");
2960  if (! f)
2961    return 1;
2962  if (($2) < 0)
2963    {
2964      long int i = longval ();
2965      if (i != ($2))
2966	return 1;
2967      fprintf (f, "%ld", i);
2968    }
2969  else
2970    {
2971      unsigned long int i = ulongval ();
2972      if (i != ($2))
2973	return 1;
2974      fprintf (f, "%lu", i);
2975    }
2976  /* Do not output a trailing newline, as this causes \r\n confusion
2977     on some platforms.  */
2978  return ferror (f) || fclose (f) != 0;
2979
2980  ;
2981  return 0;
2982}
2983_ACEOF
2984if ac_fn_c_try_run "$LINENO"
2985then :
2986  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2987else $as_nop
2988  ac_retval=1
2989fi
2990rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2991  conftest.$ac_objext conftest.beam conftest.$ac_ext
2992rm -f conftest.val
2993
2994  fi
2995  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2996  as_fn_set_status $ac_retval
2997
2998} # ac_fn_c_compute_int
2999
3000# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
3001# -------------------------------------------
3002# Tests whether TYPE exists after having included INCLUDES, setting cache
3003# variable VAR accordingly.
3004ac_fn_c_check_type ()
3005{
3006  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3007  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3008printf %s "checking for $2... " >&6; }
3009if eval test \${$3+y}
3010then :
3011  printf %s "(cached) " >&6
3012else $as_nop
3013  eval "$3=no"
3014  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3015/* end confdefs.h.  */
3016$4
3017int
3018main (void)
3019{
3020if (sizeof ($2))
3021	 return 0;
3022  ;
3023  return 0;
3024}
3025_ACEOF
3026if ac_fn_c_try_compile "$LINENO"
3027then :
3028  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3029/* end confdefs.h.  */
3030$4
3031int
3032main (void)
3033{
3034if (sizeof (($2)))
3035	    return 0;
3036  ;
3037  return 0;
3038}
3039_ACEOF
3040if ac_fn_c_try_compile "$LINENO"
3041then :
3042
3043else $as_nop
3044  eval "$3=yes"
3045fi
3046rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3047fi
3048rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3049fi
3050eval ac_res=\$$3
3051	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3052printf "%s\n" "$ac_res" >&6; }
3053  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3054
3055} # ac_fn_c_check_type
3056
3057# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
3058# ----------------------------------------------------
3059# Tries to find if the field MEMBER exists in type AGGR, after including
3060# INCLUDES, setting cache variable VAR accordingly.
3061ac_fn_c_check_member ()
3062{
3063  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3064  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
3065printf %s "checking for $2.$3... " >&6; }
3066if eval test \${$4+y}
3067then :
3068  printf %s "(cached) " >&6
3069else $as_nop
3070  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3071/* end confdefs.h.  */
3072$5
3073int
3074main (void)
3075{
3076static $2 ac_aggr;
3077if (ac_aggr.$3)
3078return 0;
3079  ;
3080  return 0;
3081}
3082_ACEOF
3083if ac_fn_c_try_compile "$LINENO"
3084then :
3085  eval "$4=yes"
3086else $as_nop
3087  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3088/* end confdefs.h.  */
3089$5
3090int
3091main (void)
3092{
3093static $2 ac_aggr;
3094if (sizeof ac_aggr.$3)
3095return 0;
3096  ;
3097  return 0;
3098}
3099_ACEOF
3100if ac_fn_c_try_compile "$LINENO"
3101then :
3102  eval "$4=yes"
3103else $as_nop
3104  eval "$4=no"
3105fi
3106rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3107fi
3108rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3109fi
3110eval ac_res=\$$4
3111	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3112printf "%s\n" "$ac_res" >&6; }
3113  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3114
3115} # ac_fn_c_check_member
3116ac_configure_args_raw=
3117for ac_arg
3118do
3119  case $ac_arg in
3120  *\'*)
3121    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3122  esac
3123  as_fn_append ac_configure_args_raw " '$ac_arg'"
3124done
3125
3126case $ac_configure_args_raw in
3127  *$as_nl*)
3128    ac_safe_unquote= ;;
3129  *)
3130    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
3131    ac_unsafe_a="$ac_unsafe_z#~"
3132    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
3133    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
3134esac
3135
3136cat >config.log <<_ACEOF
3137This file contains any messages produced by compilers while
3138running configure, to aid debugging if configure makes a mistake.
3139
3140It was created by xorg-server $as_me 21.1.9, which was
3141generated by GNU Autoconf 2.71.  Invocation command line was
3142
3143  $ $0$ac_configure_args_raw
3144
3145_ACEOF
3146exec 5>>config.log
3147{
3148cat <<_ASUNAME
3149## --------- ##
3150## Platform. ##
3151## --------- ##
3152
3153hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3154uname -m = `(uname -m) 2>/dev/null || echo unknown`
3155uname -r = `(uname -r) 2>/dev/null || echo unknown`
3156uname -s = `(uname -s) 2>/dev/null || echo unknown`
3157uname -v = `(uname -v) 2>/dev/null || echo unknown`
3158
3159/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3160/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
3161
3162/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
3163/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
3164/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3165/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
3166/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
3167/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
3168/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
3169
3170_ASUNAME
3171
3172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3173for as_dir in $PATH
3174do
3175  IFS=$as_save_IFS
3176  case $as_dir in #(((
3177    '') as_dir=./ ;;
3178    */) ;;
3179    *) as_dir=$as_dir/ ;;
3180  esac
3181    printf "%s\n" "PATH: $as_dir"
3182  done
3183IFS=$as_save_IFS
3184
3185} >&5
3186
3187cat >&5 <<_ACEOF
3188
3189
3190## ----------- ##
3191## Core tests. ##
3192## ----------- ##
3193
3194_ACEOF
3195
3196
3197# Keep a trace of the command line.
3198# Strip out --no-create and --no-recursion so they do not pile up.
3199# Strip out --silent because we don't want to record it for future runs.
3200# Also quote any args containing shell meta-characters.
3201# Make two passes to allow for proper duplicate-argument suppression.
3202ac_configure_args=
3203ac_configure_args0=
3204ac_configure_args1=
3205ac_must_keep_next=false
3206for ac_pass in 1 2
3207do
3208  for ac_arg
3209  do
3210    case $ac_arg in
3211    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3212    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3213    | -silent | --silent | --silen | --sile | --sil)
3214      continue ;;
3215    *\'*)
3216      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3217    esac
3218    case $ac_pass in
3219    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3220    2)
3221      as_fn_append ac_configure_args1 " '$ac_arg'"
3222      if test $ac_must_keep_next = true; then
3223	ac_must_keep_next=false # Got value, back to normal.
3224      else
3225	case $ac_arg in
3226	  *=* | --config-cache | -C | -disable-* | --disable-* \
3227	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3228	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3229	  | -with-* | --with-* | -without-* | --without-* | --x)
3230	    case "$ac_configure_args0 " in
3231	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3232	    esac
3233	    ;;
3234	  -* ) ac_must_keep_next=true ;;
3235	esac
3236      fi
3237      as_fn_append ac_configure_args " '$ac_arg'"
3238      ;;
3239    esac
3240  done
3241done
3242{ ac_configure_args0=; unset ac_configure_args0;}
3243{ ac_configure_args1=; unset ac_configure_args1;}
3244
3245# When interrupted or exit'd, cleanup temporary files, and complete
3246# config.log.  We remove comments because anyway the quotes in there
3247# would cause problems or look ugly.
3248# WARNING: Use '\'' to represent an apostrophe within the trap.
3249# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3250trap 'exit_status=$?
3251  # Sanitize IFS.
3252  IFS=" ""	$as_nl"
3253  # Save into config.log some information that might help in debugging.
3254  {
3255    echo
3256
3257    printf "%s\n" "## ---------------- ##
3258## Cache variables. ##
3259## ---------------- ##"
3260    echo
3261    # The following way of writing the cache mishandles newlines in values,
3262(
3263  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3264    eval ac_val=\$$ac_var
3265    case $ac_val in #(
3266    *${as_nl}*)
3267      case $ac_var in #(
3268      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3269printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3270      esac
3271      case $ac_var in #(
3272      _ | IFS | as_nl) ;; #(
3273      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3274      *) { eval $ac_var=; unset $ac_var;} ;;
3275      esac ;;
3276    esac
3277  done
3278  (set) 2>&1 |
3279    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3280    *${as_nl}ac_space=\ *)
3281      sed -n \
3282	"s/'\''/'\''\\\\'\'''\''/g;
3283	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3284      ;; #(
3285    *)
3286      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3287      ;;
3288    esac |
3289    sort
3290)
3291    echo
3292
3293    printf "%s\n" "## ----------------- ##
3294## Output variables. ##
3295## ----------------- ##"
3296    echo
3297    for ac_var in $ac_subst_vars
3298    do
3299      eval ac_val=\$$ac_var
3300      case $ac_val in
3301      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3302      esac
3303      printf "%s\n" "$ac_var='\''$ac_val'\''"
3304    done | sort
3305    echo
3306
3307    if test -n "$ac_subst_files"; then
3308      printf "%s\n" "## ------------------- ##
3309## File substitutions. ##
3310## ------------------- ##"
3311      echo
3312      for ac_var in $ac_subst_files
3313      do
3314	eval ac_val=\$$ac_var
3315	case $ac_val in
3316	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3317	esac
3318	printf "%s\n" "$ac_var='\''$ac_val'\''"
3319      done | sort
3320      echo
3321    fi
3322
3323    if test -s confdefs.h; then
3324      printf "%s\n" "## ----------- ##
3325## confdefs.h. ##
3326## ----------- ##"
3327      echo
3328      cat confdefs.h
3329      echo
3330    fi
3331    test "$ac_signal" != 0 &&
3332      printf "%s\n" "$as_me: caught signal $ac_signal"
3333    printf "%s\n" "$as_me: exit $exit_status"
3334  } >&5
3335  rm -f core *.core core.conftest.* &&
3336    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3337    exit $exit_status
3338' 0
3339for ac_signal in 1 2 13 15; do
3340  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3341done
3342ac_signal=0
3343
3344# confdefs.h avoids OS command line length limits that DEFS can exceed.
3345rm -f -r conftest* confdefs.h
3346
3347printf "%s\n" "/* confdefs.h */" > confdefs.h
3348
3349# Predefined preprocessor variables.
3350
3351printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
3352
3353printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
3354
3355printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
3356
3357printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
3358
3359printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
3360
3361printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
3362
3363
3364# Let the site file select an alternate cache file if it wants to.
3365# Prefer an explicitly selected file to automatically selected ones.
3366if test -n "$CONFIG_SITE"; then
3367  ac_site_files="$CONFIG_SITE"
3368elif test "x$prefix" != xNONE; then
3369  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
3370else
3371  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
3372fi
3373
3374for ac_site_file in $ac_site_files
3375do
3376  case $ac_site_file in #(
3377  */*) :
3378     ;; #(
3379  *) :
3380    ac_site_file=./$ac_site_file ;;
3381esac
3382  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
3383    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3384printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
3385    sed 's/^/| /' "$ac_site_file" >&5
3386    . "$ac_site_file" \
3387      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3388printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3389as_fn_error $? "failed to load site script $ac_site_file
3390See \`config.log' for more details" "$LINENO" 5; }
3391  fi
3392done
3393
3394if test -r "$cache_file"; then
3395  # Some versions of bash will fail to source /dev/null (special files
3396  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3397  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3398    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3399printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
3400    case $cache_file in
3401      [\\/]* | ?:[\\/]* ) . "$cache_file";;
3402      *)                      . "./$cache_file";;
3403    esac
3404  fi
3405else
3406  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3407printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
3408  >$cache_file
3409fi
3410
3411as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
3412# Test code for whether the C compiler supports C89 (global declarations)
3413ac_c_conftest_c89_globals='
3414/* Does the compiler advertise C89 conformance?
3415   Do not test the value of __STDC__, because some compilers set it to 0
3416   while being otherwise adequately conformant. */
3417#if !defined __STDC__
3418# error "Compiler does not advertise C89 conformance"
3419#endif
3420
3421#include <stddef.h>
3422#include <stdarg.h>
3423struct stat;
3424/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
3425struct buf { int x; };
3426struct buf * (*rcsopen) (struct buf *, struct stat *, int);
3427static char *e (p, i)
3428     char **p;
3429     int i;
3430{
3431  return p[i];
3432}
3433static char *f (char * (*g) (char **, int), char **p, ...)
3434{
3435  char *s;
3436  va_list v;
3437  va_start (v,p);
3438  s = g (p, va_arg (v,int));
3439  va_end (v);
3440  return s;
3441}
3442
3443/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3444   function prototypes and stuff, but not \xHH hex character constants.
3445   These do not provoke an error unfortunately, instead are silently treated
3446   as an "x".  The following induces an error, until -std is added to get
3447   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
3448   array size at least.  It is necessary to write \x00 == 0 to get something
3449   that is true only with -std.  */
3450int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
3451
3452/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3453   inside strings and character constants.  */
3454#define FOO(x) '\''x'\''
3455int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
3456
3457int test (int i, double x);
3458struct s1 {int (*f) (int a);};
3459struct s2 {int (*f) (double a);};
3460int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
3461               int, int);'
3462
3463# Test code for whether the C compiler supports C89 (body of main).
3464ac_c_conftest_c89_main='
3465ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
3466'
3467
3468# Test code for whether the C compiler supports C99 (global declarations)
3469ac_c_conftest_c99_globals='
3470// Does the compiler advertise C99 conformance?
3471#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
3472# error "Compiler does not advertise C99 conformance"
3473#endif
3474
3475#include <stdbool.h>
3476extern int puts (const char *);
3477extern int printf (const char *, ...);
3478extern int dprintf (int, const char *, ...);
3479extern void *malloc (size_t);
3480
3481// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3482// dprintf is used instead of fprintf to avoid needing to declare
3483// FILE and stderr.
3484#define debug(...) dprintf (2, __VA_ARGS__)
3485#define showlist(...) puts (#__VA_ARGS__)
3486#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3487static void
3488test_varargs_macros (void)
3489{
3490  int x = 1234;
3491  int y = 5678;
3492  debug ("Flag");
3493  debug ("X = %d\n", x);
3494  showlist (The first, second, and third items.);
3495  report (x>y, "x is %d but y is %d", x, y);
3496}
3497
3498// Check long long types.
3499#define BIG64 18446744073709551615ull
3500#define BIG32 4294967295ul
3501#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3502#if !BIG_OK
3503  #error "your preprocessor is broken"
3504#endif
3505#if BIG_OK
3506#else
3507  #error "your preprocessor is broken"
3508#endif
3509static long long int bignum = -9223372036854775807LL;
3510static unsigned long long int ubignum = BIG64;
3511
3512struct incomplete_array
3513{
3514  int datasize;
3515  double data[];
3516};
3517
3518struct named_init {
3519  int number;
3520  const wchar_t *name;
3521  double average;
3522};
3523
3524typedef const char *ccp;
3525
3526static inline int
3527test_restrict (ccp restrict text)
3528{
3529  // See if C++-style comments work.
3530  // Iterate through items via the restricted pointer.
3531  // Also check for declarations in for loops.
3532  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
3533    continue;
3534  return 0;
3535}
3536
3537// Check varargs and va_copy.
3538static bool
3539test_varargs (const char *format, ...)
3540{
3541  va_list args;
3542  va_start (args, format);
3543  va_list args_copy;
3544  va_copy (args_copy, args);
3545
3546  const char *str = "";
3547  int number = 0;
3548  float fnumber = 0;
3549
3550  while (*format)
3551    {
3552      switch (*format++)
3553	{
3554	case '\''s'\'': // string
3555	  str = va_arg (args_copy, const char *);
3556	  break;
3557	case '\''d'\'': // int
3558	  number = va_arg (args_copy, int);
3559	  break;
3560	case '\''f'\'': // float
3561	  fnumber = va_arg (args_copy, double);
3562	  break;
3563	default:
3564	  break;
3565	}
3566    }
3567  va_end (args_copy);
3568  va_end (args);
3569
3570  return *str && number && fnumber;
3571}
3572'
3573
3574# Test code for whether the C compiler supports C99 (body of main).
3575ac_c_conftest_c99_main='
3576  // Check bool.
3577  _Bool success = false;
3578  success |= (argc != 0);
3579
3580  // Check restrict.
3581  if (test_restrict ("String literal") == 0)
3582    success = true;
3583  char *restrict newvar = "Another string";
3584
3585  // Check varargs.
3586  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
3587  test_varargs_macros ();
3588
3589  // Check flexible array members.
3590  struct incomplete_array *ia =
3591    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3592  ia->datasize = 10;
3593  for (int i = 0; i < ia->datasize; ++i)
3594    ia->data[i] = i * 1.234;
3595
3596  // Check named initializers.
3597  struct named_init ni = {
3598    .number = 34,
3599    .name = L"Test wide string",
3600    .average = 543.34343,
3601  };
3602
3603  ni.number = 58;
3604
3605  int dynamic_array[ni.number];
3606  dynamic_array[0] = argv[0][0];
3607  dynamic_array[ni.number - 1] = 543;
3608
3609  // work around unused variable warnings
3610  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
3611	 || dynamic_array[ni.number - 1] != 543);
3612'
3613
3614# Test code for whether the C compiler supports C11 (global declarations)
3615ac_c_conftest_c11_globals='
3616// Does the compiler advertise C11 conformance?
3617#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
3618# error "Compiler does not advertise C11 conformance"
3619#endif
3620
3621// Check _Alignas.
3622char _Alignas (double) aligned_as_double;
3623char _Alignas (0) no_special_alignment;
3624extern char aligned_as_int;
3625char _Alignas (0) _Alignas (int) aligned_as_int;
3626
3627// Check _Alignof.
3628enum
3629{
3630  int_alignment = _Alignof (int),
3631  int_array_alignment = _Alignof (int[100]),
3632  char_alignment = _Alignof (char)
3633};
3634_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
3635
3636// Check _Noreturn.
3637int _Noreturn does_not_return (void) { for (;;) continue; }
3638
3639// Check _Static_assert.
3640struct test_static_assert
3641{
3642  int x;
3643  _Static_assert (sizeof (int) <= sizeof (long int),
3644                  "_Static_assert does not work in struct");
3645  long int y;
3646};
3647
3648// Check UTF-8 literals.
3649#define u8 syntax error!
3650char const utf8_literal[] = u8"happens to be ASCII" "another string";
3651
3652// Check duplicate typedefs.
3653typedef long *long_ptr;
3654typedef long int *long_ptr;
3655typedef long_ptr long_ptr;
3656
3657// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
3658struct anonymous
3659{
3660  union {
3661    struct { int i; int j; };
3662    struct { int k; long int l; } w;
3663  };
3664  int m;
3665} v1;
3666'
3667
3668# Test code for whether the C compiler supports C11 (body of main).
3669ac_c_conftest_c11_main='
3670  _Static_assert ((offsetof (struct anonymous, i)
3671		   == offsetof (struct anonymous, w.k)),
3672		  "Anonymous union alignment botch");
3673  v1.i = 2;
3674  v1.w.k = 5;
3675  ok |= v1.i != 5;
3676'
3677
3678# Test code for whether the C compiler supports C11 (complete).
3679ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
3680${ac_c_conftest_c99_globals}
3681${ac_c_conftest_c11_globals}
3682
3683int
3684main (int argc, char **argv)
3685{
3686  int ok = 0;
3687  ${ac_c_conftest_c89_main}
3688  ${ac_c_conftest_c99_main}
3689  ${ac_c_conftest_c11_main}
3690  return ok;
3691}
3692"
3693
3694# Test code for whether the C compiler supports C99 (complete).
3695ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
3696${ac_c_conftest_c99_globals}
3697
3698int
3699main (int argc, char **argv)
3700{
3701  int ok = 0;
3702  ${ac_c_conftest_c89_main}
3703  ${ac_c_conftest_c99_main}
3704  return ok;
3705}
3706"
3707
3708# Test code for whether the C compiler supports C89 (complete).
3709ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
3710
3711int
3712main (int argc, char **argv)
3713{
3714  int ok = 0;
3715  ${ac_c_conftest_c89_main}
3716  return ok;
3717}
3718"
3719
3720as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
3721as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
3722as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
3723as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
3724as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
3725as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
3726as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
3727as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
3728as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
3729as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
3730
3731# Auxiliary files required by this configure script.
3732ac_aux_files="ltmain.sh config.guess config.sub compile missing install-sh"
3733
3734# Locations in which to look for auxiliary files.
3735ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
3736
3737# Search for a directory containing all of the required auxiliary files,
3738# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
3739# If we don't find one directory that contains all the files we need,
3740# we report the set of missing files from the *first* directory in
3741# $ac_aux_dir_candidates and give up.
3742ac_missing_aux_files=""
3743ac_first_candidate=:
3744printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
3745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3746as_found=false
3747for as_dir in $ac_aux_dir_candidates
3748do
3749  IFS=$as_save_IFS
3750  case $as_dir in #(((
3751    '') as_dir=./ ;;
3752    */) ;;
3753    *) as_dir=$as_dir/ ;;
3754  esac
3755  as_found=:
3756
3757  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
3758  ac_aux_dir_found=yes
3759  ac_install_sh=
3760  for ac_aux in $ac_aux_files
3761  do
3762    # As a special case, if "install-sh" is required, that requirement
3763    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
3764    # and $ac_install_sh is set appropriately for whichever one is found.
3765    if test x"$ac_aux" = x"install-sh"
3766    then
3767      if test -f "${as_dir}install-sh"; then
3768        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
3769        ac_install_sh="${as_dir}install-sh -c"
3770      elif test -f "${as_dir}install.sh"; then
3771        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
3772        ac_install_sh="${as_dir}install.sh -c"
3773      elif test -f "${as_dir}shtool"; then
3774        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
3775        ac_install_sh="${as_dir}shtool install -c"
3776      else
3777        ac_aux_dir_found=no
3778        if $ac_first_candidate; then
3779          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3780        else
3781          break
3782        fi
3783      fi
3784    else
3785      if test -f "${as_dir}${ac_aux}"; then
3786        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
3787      else
3788        ac_aux_dir_found=no
3789        if $ac_first_candidate; then
3790          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3791        else
3792          break
3793        fi
3794      fi
3795    fi
3796  done
3797  if test "$ac_aux_dir_found" = yes; then
3798    ac_aux_dir="$as_dir"
3799    break
3800  fi
3801  ac_first_candidate=false
3802
3803  as_found=false
3804done
3805IFS=$as_save_IFS
3806if $as_found
3807then :
3808
3809else $as_nop
3810  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
3811fi
3812
3813
3814# These three variables are undocumented and unsupported,
3815# and are intended to be withdrawn in a future Autoconf release.
3816# They can cause serious problems if a builder's source tree is in a directory
3817# whose full name contains unusual characters.
3818if test -f "${ac_aux_dir}config.guess"; then
3819  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3820fi
3821if test -f "${ac_aux_dir}config.sub"; then
3822  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3823fi
3824if test -f "$ac_aux_dir/configure"; then
3825  ac_configure="$SHELL ${ac_aux_dir}configure"
3826fi
3827
3828# Check that the precious variables saved in the cache have kept the same
3829# value.
3830ac_cache_corrupted=false
3831for ac_var in $ac_precious_vars; do
3832  eval ac_old_set=\$ac_cv_env_${ac_var}_set
3833  eval ac_new_set=\$ac_env_${ac_var}_set
3834  eval ac_old_val=\$ac_cv_env_${ac_var}_value
3835  eval ac_new_val=\$ac_env_${ac_var}_value
3836  case $ac_old_set,$ac_new_set in
3837    set,)
3838      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3839printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3840      ac_cache_corrupted=: ;;
3841    ,set)
3842      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3843printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3844      ac_cache_corrupted=: ;;
3845    ,);;
3846    *)
3847      if test "x$ac_old_val" != "x$ac_new_val"; then
3848	# differences in whitespace do not lead to failure.
3849	ac_old_val_w=`echo x $ac_old_val`
3850	ac_new_val_w=`echo x $ac_new_val`
3851	if test "$ac_old_val_w" != "$ac_new_val_w"; then
3852	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3853printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3854	  ac_cache_corrupted=:
3855	else
3856	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3857printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3858	  eval $ac_var=\$ac_old_val
3859	fi
3860	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3861printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
3862	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3863printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
3864      fi;;
3865  esac
3866  # Pass precious variables to config.status.
3867  if test "$ac_new_set" = set; then
3868    case $ac_new_val in
3869    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3870    *) ac_arg=$ac_var=$ac_new_val ;;
3871    esac
3872    case " $ac_configure_args " in
3873      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3874      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3875    esac
3876  fi
3877done
3878if $ac_cache_corrupted; then
3879  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3880printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3881  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3882printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3883  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
3884	    and start over" "$LINENO" 5
3885fi
3886## -------------------- ##
3887## Main body of script. ##
3888## -------------------- ##
3889
3890ac_ext=c
3891ac_cpp='$CPP $CPPFLAGS'
3892ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3893ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3894ac_compiler_gnu=$ac_cv_c_compiler_gnu
3895
3896
3897RELEASE_DATE="2023-10-25"
3898RELEASE_NAME="Caramel Ice Cream"
3899
3900
3901am__api_version='1.16'
3902
3903
3904
3905  # Find a good install program.  We prefer a C program (faster),
3906# so one script is as good as another.  But avoid the broken or
3907# incompatible versions:
3908# SysV /etc/install, /usr/sbin/install
3909# SunOS /usr/etc/install
3910# IRIX /sbin/install
3911# AIX /bin/install
3912# AmigaOS /C/install, which installs bootblocks on floppy discs
3913# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3914# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3915# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3916# OS/2's system install, which has a completely different semantic
3917# ./install, which can be erroneously created by make from ./install.sh.
3918# Reject install programs that cannot install multiple files.
3919{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3920printf %s "checking for a BSD-compatible install... " >&6; }
3921if test -z "$INSTALL"; then
3922if test ${ac_cv_path_install+y}
3923then :
3924  printf %s "(cached) " >&6
3925else $as_nop
3926  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3927for as_dir in $PATH
3928do
3929  IFS=$as_save_IFS
3930  case $as_dir in #(((
3931    '') as_dir=./ ;;
3932    */) ;;
3933    *) as_dir=$as_dir/ ;;
3934  esac
3935    # Account for fact that we put trailing slashes in our PATH walk.
3936case $as_dir in #((
3937  ./ | /[cC]/* | \
3938  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3939  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3940  /usr/ucb/* ) ;;
3941  *)
3942    # OSF1 and SCO ODT 3.0 have their own names for install.
3943    # Don't use installbsd from OSF since it installs stuff as root
3944    # by default.
3945    for ac_prog in ginstall scoinst install; do
3946      for ac_exec_ext in '' $ac_executable_extensions; do
3947	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3948	  if test $ac_prog = install &&
3949	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3950	    # AIX install.  It has an incompatible calling convention.
3951	    :
3952	  elif test $ac_prog = install &&
3953	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3954	    # program-specific install script used by HP pwplus--don't use.
3955	    :
3956	  else
3957	    rm -rf conftest.one conftest.two conftest.dir
3958	    echo one > conftest.one
3959	    echo two > conftest.two
3960	    mkdir conftest.dir
3961	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3962	      test -s conftest.one && test -s conftest.two &&
3963	      test -s conftest.dir/conftest.one &&
3964	      test -s conftest.dir/conftest.two
3965	    then
3966	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3967	      break 3
3968	    fi
3969	  fi
3970	fi
3971      done
3972    done
3973    ;;
3974esac
3975
3976  done
3977IFS=$as_save_IFS
3978
3979rm -rf conftest.one conftest.two conftest.dir
3980
3981fi
3982  if test ${ac_cv_path_install+y}; then
3983    INSTALL=$ac_cv_path_install
3984  else
3985    # As a last resort, use the slow shell script.  Don't cache a
3986    # value for INSTALL within a source directory, because that will
3987    # break other packages using the cache if that directory is
3988    # removed, or if the value is a relative name.
3989    INSTALL=$ac_install_sh
3990  fi
3991fi
3992{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3993printf "%s\n" "$INSTALL" >&6; }
3994
3995# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3996# It thinks the first close brace ends the variable substitution.
3997test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3998
3999test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4000
4001test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4002
4003{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4004printf %s "checking whether build environment is sane... " >&6; }
4005# Reject unsafe characters in $srcdir or the absolute working directory
4006# name.  Accept space and tab only in the latter.
4007am_lf='
4008'
4009case `pwd` in
4010  *[\\\"\#\$\&\'\`$am_lf]*)
4011    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4012esac
4013case $srcdir in
4014  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
4015    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4016esac
4017
4018# Do 'set' in a subshell so we don't clobber the current shell's
4019# arguments.  Must try -L first in case configure is actually a
4020# symlink; some systems play weird games with the mod time of symlinks
4021# (eg FreeBSD returns the mod time of the symlink's containing
4022# directory).
4023if (
4024   am_has_slept=no
4025   for am_try in 1 2; do
4026     echo "timestamp, slept: $am_has_slept" > conftest.file
4027     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4028     if test "$*" = "X"; then
4029	# -L didn't work.
4030	set X `ls -t "$srcdir/configure" conftest.file`
4031     fi
4032     if test "$*" != "X $srcdir/configure conftest.file" \
4033	&& test "$*" != "X conftest.file $srcdir/configure"; then
4034
4035	# If neither matched, then we have a broken ls.  This can happen
4036	# if, for instance, CONFIG_SHELL is bash and it inherits a
4037	# broken ls alias from the environment.  This has actually
4038	# happened.  Such a system could not be considered "sane".
4039	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
4040  alias in your environment" "$LINENO" 5
4041     fi
4042     if test "$2" = conftest.file || test $am_try -eq 2; then
4043       break
4044     fi
4045     # Just in case.
4046     sleep 1
4047     am_has_slept=yes
4048   done
4049   test "$2" = conftest.file
4050   )
4051then
4052   # Ok.
4053   :
4054else
4055   as_fn_error $? "newly created file is older than distributed files!
4056Check your system clock" "$LINENO" 5
4057fi
4058{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4059printf "%s\n" "yes" >&6; }
4060# If we didn't sleep, we still need to ensure time stamps of config.status and
4061# generated files are strictly newer.
4062am_sleep_pid=
4063if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4064  ( sleep 1 ) &
4065  am_sleep_pid=$!
4066fi
4067
4068rm -f conftest.file
4069
4070test "$program_prefix" != NONE &&
4071  program_transform_name="s&^&$program_prefix&;$program_transform_name"
4072# Use a double $ so make ignores it.
4073test "$program_suffix" != NONE &&
4074  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4075# Double any \ or $.
4076# By default was `s,x,x', remove it if useless.
4077ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4078program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
4079
4080
4081# Expand $ac_aux_dir to an absolute path.
4082am_aux_dir=`cd "$ac_aux_dir" && pwd`
4083
4084
4085  if test x"${MISSING+set}" != xset; then
4086  MISSING="\${SHELL} '$am_aux_dir/missing'"
4087fi
4088# Use eval to expand $SHELL
4089if eval "$MISSING --is-lightweight"; then
4090  am_missing_run="$MISSING "
4091else
4092  am_missing_run=
4093  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4094printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4095fi
4096
4097if test x"${install_sh+set}" != xset; then
4098  case $am_aux_dir in
4099  *\ * | *\	*)
4100    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4101  *)
4102    install_sh="\${SHELL} $am_aux_dir/install-sh"
4103  esac
4104fi
4105
4106# Installed binaries are usually stripped using 'strip' when the user
4107# run "make install-strip".  However 'strip' might not be the right
4108# tool to use in cross-compilation environments, therefore Automake
4109# will honor the 'STRIP' environment variable to overrule this program.
4110if test "$cross_compiling" != no; then
4111  if test -n "$ac_tool_prefix"; then
4112  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4113set dummy ${ac_tool_prefix}strip; ac_word=$2
4114{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4115printf %s "checking for $ac_word... " >&6; }
4116if test ${ac_cv_prog_STRIP+y}
4117then :
4118  printf %s "(cached) " >&6
4119else $as_nop
4120  if test -n "$STRIP"; then
4121  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4122else
4123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4124for as_dir in $PATH
4125do
4126  IFS=$as_save_IFS
4127  case $as_dir in #(((
4128    '') as_dir=./ ;;
4129    */) ;;
4130    *) as_dir=$as_dir/ ;;
4131  esac
4132    for ac_exec_ext in '' $ac_executable_extensions; do
4133  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4134    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4135    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4136    break 2
4137  fi
4138done
4139  done
4140IFS=$as_save_IFS
4141
4142fi
4143fi
4144STRIP=$ac_cv_prog_STRIP
4145if test -n "$STRIP"; then
4146  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4147printf "%s\n" "$STRIP" >&6; }
4148else
4149  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4150printf "%s\n" "no" >&6; }
4151fi
4152
4153
4154fi
4155if test -z "$ac_cv_prog_STRIP"; then
4156  ac_ct_STRIP=$STRIP
4157  # Extract the first word of "strip", so it can be a program name with args.
4158set dummy strip; ac_word=$2
4159{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4160printf %s "checking for $ac_word... " >&6; }
4161if test ${ac_cv_prog_ac_ct_STRIP+y}
4162then :
4163  printf %s "(cached) " >&6
4164else $as_nop
4165  if test -n "$ac_ct_STRIP"; then
4166  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4167else
4168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4169for as_dir in $PATH
4170do
4171  IFS=$as_save_IFS
4172  case $as_dir in #(((
4173    '') as_dir=./ ;;
4174    */) ;;
4175    *) as_dir=$as_dir/ ;;
4176  esac
4177    for ac_exec_ext in '' $ac_executable_extensions; do
4178  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4179    ac_cv_prog_ac_ct_STRIP="strip"
4180    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4181    break 2
4182  fi
4183done
4184  done
4185IFS=$as_save_IFS
4186
4187fi
4188fi
4189ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4190if test -n "$ac_ct_STRIP"; then
4191  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4192printf "%s\n" "$ac_ct_STRIP" >&6; }
4193else
4194  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4195printf "%s\n" "no" >&6; }
4196fi
4197
4198  if test "x$ac_ct_STRIP" = x; then
4199    STRIP=":"
4200  else
4201    case $cross_compiling:$ac_tool_warned in
4202yes:)
4203{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4204printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4205ac_tool_warned=yes ;;
4206esac
4207    STRIP=$ac_ct_STRIP
4208  fi
4209else
4210  STRIP="$ac_cv_prog_STRIP"
4211fi
4212
4213fi
4214INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4215
4216
4217  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
4218printf %s "checking for a race-free mkdir -p... " >&6; }
4219if test -z "$MKDIR_P"; then
4220  if test ${ac_cv_path_mkdir+y}
4221then :
4222  printf %s "(cached) " >&6
4223else $as_nop
4224  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4225for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4226do
4227  IFS=$as_save_IFS
4228  case $as_dir in #(((
4229    '') as_dir=./ ;;
4230    */) ;;
4231    *) as_dir=$as_dir/ ;;
4232  esac
4233    for ac_prog in mkdir gmkdir; do
4234	 for ac_exec_ext in '' $ac_executable_extensions; do
4235	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
4236	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
4237	     'mkdir ('*'coreutils) '* | \
4238	     'BusyBox '* | \
4239	     'mkdir (fileutils) '4.1*)
4240	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
4241	       break 3;;
4242	   esac
4243	 done
4244       done
4245  done
4246IFS=$as_save_IFS
4247
4248fi
4249
4250  test -d ./--version && rmdir ./--version
4251  if test ${ac_cv_path_mkdir+y}; then
4252    MKDIR_P="$ac_cv_path_mkdir -p"
4253  else
4254    # As a last resort, use the slow shell script.  Don't cache a
4255    # value for MKDIR_P within a source directory, because that will
4256    # break other packages using the cache if that directory is
4257    # removed, or if the value is a relative name.
4258    MKDIR_P="$ac_install_sh -d"
4259  fi
4260fi
4261{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4262printf "%s\n" "$MKDIR_P" >&6; }
4263
4264for ac_prog in gawk mawk nawk awk
4265do
4266  # Extract the first word of "$ac_prog", so it can be a program name with args.
4267set dummy $ac_prog; ac_word=$2
4268{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4269printf %s "checking for $ac_word... " >&6; }
4270if test ${ac_cv_prog_AWK+y}
4271then :
4272  printf %s "(cached) " >&6
4273else $as_nop
4274  if test -n "$AWK"; then
4275  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4276else
4277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4278for as_dir in $PATH
4279do
4280  IFS=$as_save_IFS
4281  case $as_dir in #(((
4282    '') as_dir=./ ;;
4283    */) ;;
4284    *) as_dir=$as_dir/ ;;
4285  esac
4286    for ac_exec_ext in '' $ac_executable_extensions; do
4287  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4288    ac_cv_prog_AWK="$ac_prog"
4289    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4290    break 2
4291  fi
4292done
4293  done
4294IFS=$as_save_IFS
4295
4296fi
4297fi
4298AWK=$ac_cv_prog_AWK
4299if test -n "$AWK"; then
4300  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4301printf "%s\n" "$AWK" >&6; }
4302else
4303  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4304printf "%s\n" "no" >&6; }
4305fi
4306
4307
4308  test -n "$AWK" && break
4309done
4310
4311{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4312printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4313set x ${MAKE-make}
4314ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4315if eval test \${ac_cv_prog_make_${ac_make}_set+y}
4316then :
4317  printf %s "(cached) " >&6
4318else $as_nop
4319  cat >conftest.make <<\_ACEOF
4320SHELL = /bin/sh
4321all:
4322	@echo '@@@%%%=$(MAKE)=@@@%%%'
4323_ACEOF
4324# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4325case `${MAKE-make} -f conftest.make 2>/dev/null` in
4326  *@@@%%%=?*=@@@%%%*)
4327    eval ac_cv_prog_make_${ac_make}_set=yes;;
4328  *)
4329    eval ac_cv_prog_make_${ac_make}_set=no;;
4330esac
4331rm -f conftest.make
4332fi
4333if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4334  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4335printf "%s\n" "yes" >&6; }
4336  SET_MAKE=
4337else
4338  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4339printf "%s\n" "no" >&6; }
4340  SET_MAKE="MAKE=${MAKE-make}"
4341fi
4342
4343rm -rf .tst 2>/dev/null
4344mkdir .tst 2>/dev/null
4345if test -d .tst; then
4346  am__leading_dot=.
4347else
4348  am__leading_dot=_
4349fi
4350rmdir .tst 2>/dev/null
4351
4352# Check whether --enable-silent-rules was given.
4353if test ${enable_silent_rules+y}
4354then :
4355  enableval=$enable_silent_rules;
4356fi
4357
4358case $enable_silent_rules in # (((
4359  yes) AM_DEFAULT_VERBOSITY=0;;
4360   no) AM_DEFAULT_VERBOSITY=1;;
4361    *) AM_DEFAULT_VERBOSITY=1;;
4362esac
4363am_make=${MAKE-make}
4364{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4365printf %s "checking whether $am_make supports nested variables... " >&6; }
4366if test ${am_cv_make_support_nested_variables+y}
4367then :
4368  printf %s "(cached) " >&6
4369else $as_nop
4370  if printf "%s\n" 'TRUE=$(BAR$(V))
4371BAR0=false
4372BAR1=true
4373V=1
4374am__doit:
4375	@$(TRUE)
4376.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4377  am_cv_make_support_nested_variables=yes
4378else
4379  am_cv_make_support_nested_variables=no
4380fi
4381fi
4382{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4383printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4384if test $am_cv_make_support_nested_variables = yes; then
4385    AM_V='$(V)'
4386  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4387else
4388  AM_V=$AM_DEFAULT_VERBOSITY
4389  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4390fi
4391AM_BACKSLASH='\'
4392
4393if test "`cd $srcdir && pwd`" != "`pwd`"; then
4394  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4395  # is not polluted with repeated "-I."
4396  am__isrc=' -I$(srcdir)'
4397  # test to see if srcdir already configured
4398  if test -f $srcdir/config.status; then
4399    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4400  fi
4401fi
4402
4403# test whether we have cygpath
4404if test -z "$CYGPATH_W"; then
4405  if (cygpath --version) >/dev/null 2>/dev/null; then
4406    CYGPATH_W='cygpath -w'
4407  else
4408    CYGPATH_W=echo
4409  fi
4410fi
4411
4412
4413# Define the identity of the package.
4414 PACKAGE='xorg-server'
4415 VERSION='21.1.9'
4416
4417
4418printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
4419
4420
4421printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
4422
4423# Some tools Automake needs.
4424
4425ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4426
4427
4428AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4429
4430
4431AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4432
4433
4434AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4435
4436
4437MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4438
4439# For better backward compatibility.  To be removed once Automake 1.9.x
4440# dies out for good.  For more background, see:
4441# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4442# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4443mkdir_p='$(MKDIR_P)'
4444
4445# We need awk for the "check" target (and possibly the TAP driver).  The
4446# system "awk" is bad on some platforms.
4447# Always define AMTAR for backward compatibility.  Yes, it's still used
4448# in the wild :-(  We should find a proper way to deprecate it ...
4449AMTAR='$${TAR-tar}'
4450
4451
4452# We'll loop over all known methods to create a tar archive until one works.
4453_am_tools='gnutar  pax cpio none'
4454
4455am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4456
4457
4458
4459
4460
4461# Variables for tags utilities; see am/tags.am
4462if test -z "$CTAGS"; then
4463  CTAGS=ctags
4464fi
4465
4466if test -z "$ETAGS"; then
4467  ETAGS=etags
4468fi
4469
4470if test -z "$CSCOPE"; then
4471  CSCOPE=cscope
4472fi
4473
4474
4475
4476# POSIX will say in a future version that running "rm -f" with no argument
4477# is OK; and we want to be able to make that assumption in our Makefile
4478# recipes.  So use an aggressive probe to check that the usage we want is
4479# actually supported "in the wild" to an acceptable degree.
4480# See automake bug#10828.
4481# To make any issue more visible, cause the running configure to be aborted
4482# by default if the 'rm' program in use doesn't match our expectations; the
4483# user can still override this though.
4484if rm -f && rm -fr && rm -rf; then : OK; else
4485  cat >&2 <<'END'
4486Oops!
4487
4488Your 'rm' program seems unable to run without file operands specified
4489on the command line, even when the '-f' option is present.  This is contrary
4490to the behaviour of most rm programs out there, and not conforming with
4491the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4492
4493Please tell bug-automake@gnu.org about your system, including the value
4494of your $PATH and any error possibly output before this message.  This
4495can help us improve future automake versions.
4496
4497END
4498  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4499    echo 'Configuration will proceed anyway, since you have set the' >&2
4500    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4501    echo >&2
4502  else
4503    cat >&2 <<'END'
4504Aborting the configuration process, to ensure you take notice of the issue.
4505
4506You can download and install GNU coreutils to get an 'rm' implementation
4507that behaves properly: <https://www.gnu.org/software/coreutils/>.
4508
4509If you want to complete the configuration process using your problematic
4510'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4511to "yes", and re-run configure.
4512
4513END
4514    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4515  fi
4516fi
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527DEPDIR="${am__leading_dot}deps"
4528
4529ac_config_commands="$ac_config_commands depfiles"
4530
4531{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4532printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4533cat > confinc.mk << 'END'
4534am__doit:
4535	@echo this is the am__doit target >confinc.out
4536.PHONY: am__doit
4537END
4538am__include="#"
4539am__quote=
4540# BSD make does it like this.
4541echo '.include "confinc.mk" # ignored' > confmf.BSD
4542# Other make implementations (GNU, Solaris 10, AIX) do it like this.
4543echo 'include confinc.mk # ignored' > confmf.GNU
4544_am_result=no
4545for s in GNU BSD; do
4546  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4547   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4548   ac_status=$?
4549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4550   (exit $ac_status); }
4551  case $?:`cat confinc.out 2>/dev/null` in #(
4552  '0:this is the am__doit target') :
4553    case $s in #(
4554  BSD) :
4555    am__include='.include' am__quote='"' ;; #(
4556  *) :
4557    am__include='include' am__quote='' ;;
4558esac ;; #(
4559  *) :
4560     ;;
4561esac
4562  if test "$am__include" != "#"; then
4563    _am_result="yes ($s style)"
4564    break
4565  fi
4566done
4567rm -f confinc.* confmf.*
4568{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4569printf "%s\n" "${_am_result}" >&6; }
4570
4571# Check whether --enable-dependency-tracking was given.
4572if test ${enable_dependency_tracking+y}
4573then :
4574  enableval=$enable_dependency_tracking;
4575fi
4576
4577if test "x$enable_dependency_tracking" != xno; then
4578  am_depcomp="$ac_aux_dir/depcomp"
4579  AMDEPBACKSLASH='\'
4580  am__nodep='_no'
4581fi
4582 if test "x$enable_dependency_tracking" != xno; then
4583  AMDEP_TRUE=
4584  AMDEP_FALSE='#'
4585else
4586  AMDEP_TRUE='#'
4587  AMDEP_FALSE=
4588fi
4589
4590
4591ac_ext=c
4592ac_cpp='$CPP $CPPFLAGS'
4593ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4594ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4595ac_compiler_gnu=$ac_cv_c_compiler_gnu
4596if test -n "$ac_tool_prefix"; then
4597  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4598set dummy ${ac_tool_prefix}gcc; ac_word=$2
4599{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4600printf %s "checking for $ac_word... " >&6; }
4601if test ${ac_cv_prog_CC+y}
4602then :
4603  printf %s "(cached) " >&6
4604else $as_nop
4605  if test -n "$CC"; then
4606  ac_cv_prog_CC="$CC" # Let the user override the test.
4607else
4608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4609for as_dir in $PATH
4610do
4611  IFS=$as_save_IFS
4612  case $as_dir in #(((
4613    '') as_dir=./ ;;
4614    */) ;;
4615    *) as_dir=$as_dir/ ;;
4616  esac
4617    for ac_exec_ext in '' $ac_executable_extensions; do
4618  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4619    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4620    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4621    break 2
4622  fi
4623done
4624  done
4625IFS=$as_save_IFS
4626
4627fi
4628fi
4629CC=$ac_cv_prog_CC
4630if test -n "$CC"; then
4631  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4632printf "%s\n" "$CC" >&6; }
4633else
4634  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4635printf "%s\n" "no" >&6; }
4636fi
4637
4638
4639fi
4640if test -z "$ac_cv_prog_CC"; then
4641  ac_ct_CC=$CC
4642  # Extract the first word of "gcc", so it can be a program name with args.
4643set dummy gcc; ac_word=$2
4644{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4645printf %s "checking for $ac_word... " >&6; }
4646if test ${ac_cv_prog_ac_ct_CC+y}
4647then :
4648  printf %s "(cached) " >&6
4649else $as_nop
4650  if test -n "$ac_ct_CC"; then
4651  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4652else
4653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4654for as_dir in $PATH
4655do
4656  IFS=$as_save_IFS
4657  case $as_dir in #(((
4658    '') as_dir=./ ;;
4659    */) ;;
4660    *) as_dir=$as_dir/ ;;
4661  esac
4662    for ac_exec_ext in '' $ac_executable_extensions; do
4663  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4664    ac_cv_prog_ac_ct_CC="gcc"
4665    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4666    break 2
4667  fi
4668done
4669  done
4670IFS=$as_save_IFS
4671
4672fi
4673fi
4674ac_ct_CC=$ac_cv_prog_ac_ct_CC
4675if test -n "$ac_ct_CC"; then
4676  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4677printf "%s\n" "$ac_ct_CC" >&6; }
4678else
4679  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4680printf "%s\n" "no" >&6; }
4681fi
4682
4683  if test "x$ac_ct_CC" = x; then
4684    CC=""
4685  else
4686    case $cross_compiling:$ac_tool_warned in
4687yes:)
4688{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4689printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4690ac_tool_warned=yes ;;
4691esac
4692    CC=$ac_ct_CC
4693  fi
4694else
4695  CC="$ac_cv_prog_CC"
4696fi
4697
4698if test -z "$CC"; then
4699          if test -n "$ac_tool_prefix"; then
4700    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4701set dummy ${ac_tool_prefix}cc; ac_word=$2
4702{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4703printf %s "checking for $ac_word... " >&6; }
4704if test ${ac_cv_prog_CC+y}
4705then :
4706  printf %s "(cached) " >&6
4707else $as_nop
4708  if test -n "$CC"; then
4709  ac_cv_prog_CC="$CC" # Let the user override the test.
4710else
4711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4712for as_dir in $PATH
4713do
4714  IFS=$as_save_IFS
4715  case $as_dir in #(((
4716    '') as_dir=./ ;;
4717    */) ;;
4718    *) as_dir=$as_dir/ ;;
4719  esac
4720    for ac_exec_ext in '' $ac_executable_extensions; do
4721  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4722    ac_cv_prog_CC="${ac_tool_prefix}cc"
4723    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4724    break 2
4725  fi
4726done
4727  done
4728IFS=$as_save_IFS
4729
4730fi
4731fi
4732CC=$ac_cv_prog_CC
4733if test -n "$CC"; then
4734  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4735printf "%s\n" "$CC" >&6; }
4736else
4737  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4738printf "%s\n" "no" >&6; }
4739fi
4740
4741
4742  fi
4743fi
4744if test -z "$CC"; then
4745  # Extract the first word of "cc", so it can be a program name with args.
4746set dummy cc; ac_word=$2
4747{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4748printf %s "checking for $ac_word... " >&6; }
4749if test ${ac_cv_prog_CC+y}
4750then :
4751  printf %s "(cached) " >&6
4752else $as_nop
4753  if test -n "$CC"; then
4754  ac_cv_prog_CC="$CC" # Let the user override the test.
4755else
4756  ac_prog_rejected=no
4757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4758for as_dir in $PATH
4759do
4760  IFS=$as_save_IFS
4761  case $as_dir in #(((
4762    '') as_dir=./ ;;
4763    */) ;;
4764    *) as_dir=$as_dir/ ;;
4765  esac
4766    for ac_exec_ext in '' $ac_executable_extensions; do
4767  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4768    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4769       ac_prog_rejected=yes
4770       continue
4771     fi
4772    ac_cv_prog_CC="cc"
4773    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4774    break 2
4775  fi
4776done
4777  done
4778IFS=$as_save_IFS
4779
4780if test $ac_prog_rejected = yes; then
4781  # We found a bogon in the path, so make sure we never use it.
4782  set dummy $ac_cv_prog_CC
4783  shift
4784  if test $# != 0; then
4785    # We chose a different compiler from the bogus one.
4786    # However, it has the same basename, so the bogon will be chosen
4787    # first if we set CC to just the basename; use the full file name.
4788    shift
4789    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4790  fi
4791fi
4792fi
4793fi
4794CC=$ac_cv_prog_CC
4795if test -n "$CC"; then
4796  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4797printf "%s\n" "$CC" >&6; }
4798else
4799  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4800printf "%s\n" "no" >&6; }
4801fi
4802
4803
4804fi
4805if test -z "$CC"; then
4806  if test -n "$ac_tool_prefix"; then
4807  for ac_prog in cl.exe
4808  do
4809    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4810set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4811{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4812printf %s "checking for $ac_word... " >&6; }
4813if test ${ac_cv_prog_CC+y}
4814then :
4815  printf %s "(cached) " >&6
4816else $as_nop
4817  if test -n "$CC"; then
4818  ac_cv_prog_CC="$CC" # Let the user override the test.
4819else
4820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4821for as_dir in $PATH
4822do
4823  IFS=$as_save_IFS
4824  case $as_dir in #(((
4825    '') as_dir=./ ;;
4826    */) ;;
4827    *) as_dir=$as_dir/ ;;
4828  esac
4829    for ac_exec_ext in '' $ac_executable_extensions; do
4830  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4831    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4832    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4833    break 2
4834  fi
4835done
4836  done
4837IFS=$as_save_IFS
4838
4839fi
4840fi
4841CC=$ac_cv_prog_CC
4842if test -n "$CC"; then
4843  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4844printf "%s\n" "$CC" >&6; }
4845else
4846  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4847printf "%s\n" "no" >&6; }
4848fi
4849
4850
4851    test -n "$CC" && break
4852  done
4853fi
4854if test -z "$CC"; then
4855  ac_ct_CC=$CC
4856  for ac_prog in cl.exe
4857do
4858  # Extract the first word of "$ac_prog", so it can be a program name with args.
4859set dummy $ac_prog; ac_word=$2
4860{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4861printf %s "checking for $ac_word... " >&6; }
4862if test ${ac_cv_prog_ac_ct_CC+y}
4863then :
4864  printf %s "(cached) " >&6
4865else $as_nop
4866  if test -n "$ac_ct_CC"; then
4867  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4868else
4869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4870for as_dir in $PATH
4871do
4872  IFS=$as_save_IFS
4873  case $as_dir in #(((
4874    '') as_dir=./ ;;
4875    */) ;;
4876    *) as_dir=$as_dir/ ;;
4877  esac
4878    for ac_exec_ext in '' $ac_executable_extensions; do
4879  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4880    ac_cv_prog_ac_ct_CC="$ac_prog"
4881    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4882    break 2
4883  fi
4884done
4885  done
4886IFS=$as_save_IFS
4887
4888fi
4889fi
4890ac_ct_CC=$ac_cv_prog_ac_ct_CC
4891if test -n "$ac_ct_CC"; then
4892  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4893printf "%s\n" "$ac_ct_CC" >&6; }
4894else
4895  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4896printf "%s\n" "no" >&6; }
4897fi
4898
4899
4900  test -n "$ac_ct_CC" && break
4901done
4902
4903  if test "x$ac_ct_CC" = x; then
4904    CC=""
4905  else
4906    case $cross_compiling:$ac_tool_warned in
4907yes:)
4908{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4909printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4910ac_tool_warned=yes ;;
4911esac
4912    CC=$ac_ct_CC
4913  fi
4914fi
4915
4916fi
4917if test -z "$CC"; then
4918  if test -n "$ac_tool_prefix"; then
4919  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4920set dummy ${ac_tool_prefix}clang; ac_word=$2
4921{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4922printf %s "checking for $ac_word... " >&6; }
4923if test ${ac_cv_prog_CC+y}
4924then :
4925  printf %s "(cached) " >&6
4926else $as_nop
4927  if test -n "$CC"; then
4928  ac_cv_prog_CC="$CC" # Let the user override the test.
4929else
4930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4931for as_dir in $PATH
4932do
4933  IFS=$as_save_IFS
4934  case $as_dir in #(((
4935    '') as_dir=./ ;;
4936    */) ;;
4937    *) as_dir=$as_dir/ ;;
4938  esac
4939    for ac_exec_ext in '' $ac_executable_extensions; do
4940  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4941    ac_cv_prog_CC="${ac_tool_prefix}clang"
4942    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4943    break 2
4944  fi
4945done
4946  done
4947IFS=$as_save_IFS
4948
4949fi
4950fi
4951CC=$ac_cv_prog_CC
4952if test -n "$CC"; then
4953  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4954printf "%s\n" "$CC" >&6; }
4955else
4956  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4957printf "%s\n" "no" >&6; }
4958fi
4959
4960
4961fi
4962if test -z "$ac_cv_prog_CC"; then
4963  ac_ct_CC=$CC
4964  # Extract the first word of "clang", so it can be a program name with args.
4965set dummy clang; ac_word=$2
4966{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4967printf %s "checking for $ac_word... " >&6; }
4968if test ${ac_cv_prog_ac_ct_CC+y}
4969then :
4970  printf %s "(cached) " >&6
4971else $as_nop
4972  if test -n "$ac_ct_CC"; then
4973  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4974else
4975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4976for as_dir in $PATH
4977do
4978  IFS=$as_save_IFS
4979  case $as_dir in #(((
4980    '') as_dir=./ ;;
4981    */) ;;
4982    *) as_dir=$as_dir/ ;;
4983  esac
4984    for ac_exec_ext in '' $ac_executable_extensions; do
4985  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4986    ac_cv_prog_ac_ct_CC="clang"
4987    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4988    break 2
4989  fi
4990done
4991  done
4992IFS=$as_save_IFS
4993
4994fi
4995fi
4996ac_ct_CC=$ac_cv_prog_ac_ct_CC
4997if test -n "$ac_ct_CC"; then
4998  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4999printf "%s\n" "$ac_ct_CC" >&6; }
5000else
5001  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5002printf "%s\n" "no" >&6; }
5003fi
5004
5005  if test "x$ac_ct_CC" = x; then
5006    CC=""
5007  else
5008    case $cross_compiling:$ac_tool_warned in
5009yes:)
5010{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5011printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5012ac_tool_warned=yes ;;
5013esac
5014    CC=$ac_ct_CC
5015  fi
5016else
5017  CC="$ac_cv_prog_CC"
5018fi
5019
5020fi
5021
5022
5023test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5024printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5025as_fn_error $? "no acceptable C compiler found in \$PATH
5026See \`config.log' for more details" "$LINENO" 5; }
5027
5028# Provide some information about the compiler.
5029printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5030set X $ac_compile
5031ac_compiler=$2
5032for ac_option in --version -v -V -qversion -version; do
5033  { { ac_try="$ac_compiler $ac_option >&5"
5034case "(($ac_try" in
5035  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5036  *) ac_try_echo=$ac_try;;
5037esac
5038eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5039printf "%s\n" "$ac_try_echo"; } >&5
5040  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5041  ac_status=$?
5042  if test -s conftest.err; then
5043    sed '10a\
5044... rest of stderr output deleted ...
5045         10q' conftest.err >conftest.er1
5046    cat conftest.er1 >&5
5047  fi
5048  rm -f conftest.er1 conftest.err
5049  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5050  test $ac_status = 0; }
5051done
5052
5053cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5054/* end confdefs.h.  */
5055
5056int
5057main (void)
5058{
5059
5060  ;
5061  return 0;
5062}
5063_ACEOF
5064ac_clean_files_save=$ac_clean_files
5065ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5066# Try to create an executable without -o first, disregard a.out.
5067# It will help us diagnose broken compilers, and finding out an intuition
5068# of exeext.
5069{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5070printf %s "checking whether the C compiler works... " >&6; }
5071ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5072
5073# The possible output files:
5074ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5075
5076ac_rmfiles=
5077for ac_file in $ac_files
5078do
5079  case $ac_file in
5080    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5081    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5082  esac
5083done
5084rm -f $ac_rmfiles
5085
5086if { { ac_try="$ac_link_default"
5087case "(($ac_try" in
5088  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5089  *) ac_try_echo=$ac_try;;
5090esac
5091eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5092printf "%s\n" "$ac_try_echo"; } >&5
5093  (eval "$ac_link_default") 2>&5
5094  ac_status=$?
5095  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5096  test $ac_status = 0; }
5097then :
5098  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5099# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5100# in a Makefile.  We should not override ac_cv_exeext if it was cached,
5101# so that the user can short-circuit this test for compilers unknown to
5102# Autoconf.
5103for ac_file in $ac_files ''
5104do
5105  test -f "$ac_file" || continue
5106  case $ac_file in
5107    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5108	;;
5109    [ab].out )
5110	# We found the default executable, but exeext='' is most
5111	# certainly right.
5112	break;;
5113    *.* )
5114	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
5115	then :; else
5116	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5117	fi
5118	# We set ac_cv_exeext here because the later test for it is not
5119	# safe: cross compilers may not add the suffix if given an `-o'
5120	# argument, so we may need to know it at that point already.
5121	# Even if this section looks crufty: it has the advantage of
5122	# actually working.
5123	break;;
5124    * )
5125	break;;
5126  esac
5127done
5128test "$ac_cv_exeext" = no && ac_cv_exeext=
5129
5130else $as_nop
5131  ac_file=''
5132fi
5133if test -z "$ac_file"
5134then :
5135  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5136printf "%s\n" "no" >&6; }
5137printf "%s\n" "$as_me: failed program was:" >&5
5138sed 's/^/| /' conftest.$ac_ext >&5
5139
5140{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5141printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5142as_fn_error 77 "C compiler cannot create executables
5143See \`config.log' for more details" "$LINENO" 5; }
5144else $as_nop
5145  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5146printf "%s\n" "yes" >&6; }
5147fi
5148{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5149printf %s "checking for C compiler default output file name... " >&6; }
5150{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5151printf "%s\n" "$ac_file" >&6; }
5152ac_exeext=$ac_cv_exeext
5153
5154rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5155ac_clean_files=$ac_clean_files_save
5156{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5157printf %s "checking for suffix of executables... " >&6; }
5158if { { ac_try="$ac_link"
5159case "(($ac_try" in
5160  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5161  *) ac_try_echo=$ac_try;;
5162esac
5163eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5164printf "%s\n" "$ac_try_echo"; } >&5
5165  (eval "$ac_link") 2>&5
5166  ac_status=$?
5167  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5168  test $ac_status = 0; }
5169then :
5170  # If both `conftest.exe' and `conftest' are `present' (well, observable)
5171# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
5172# work properly (i.e., refer to `conftest.exe'), while it won't with
5173# `rm'.
5174for ac_file in conftest.exe conftest conftest.*; do
5175  test -f "$ac_file" || continue
5176  case $ac_file in
5177    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5178    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5179	  break;;
5180    * ) break;;
5181  esac
5182done
5183else $as_nop
5184  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5185printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5186as_fn_error $? "cannot compute suffix of executables: cannot compile and link
5187See \`config.log' for more details" "$LINENO" 5; }
5188fi
5189rm -f conftest conftest$ac_cv_exeext
5190{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5191printf "%s\n" "$ac_cv_exeext" >&6; }
5192
5193rm -f conftest.$ac_ext
5194EXEEXT=$ac_cv_exeext
5195ac_exeext=$EXEEXT
5196cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5197/* end confdefs.h.  */
5198#include <stdio.h>
5199int
5200main (void)
5201{
5202FILE *f = fopen ("conftest.out", "w");
5203 return ferror (f) || fclose (f) != 0;
5204
5205  ;
5206  return 0;
5207}
5208_ACEOF
5209ac_clean_files="$ac_clean_files conftest.out"
5210# Check that the compiler produces executables we can run.  If not, either
5211# the compiler is broken, or we cross compile.
5212{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5213printf %s "checking whether we are cross compiling... " >&6; }
5214if test "$cross_compiling" != yes; then
5215  { { ac_try="$ac_link"
5216case "(($ac_try" in
5217  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5218  *) ac_try_echo=$ac_try;;
5219esac
5220eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5221printf "%s\n" "$ac_try_echo"; } >&5
5222  (eval "$ac_link") 2>&5
5223  ac_status=$?
5224  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5225  test $ac_status = 0; }
5226  if { ac_try='./conftest$ac_cv_exeext'
5227  { { case "(($ac_try" in
5228  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5229  *) ac_try_echo=$ac_try;;
5230esac
5231eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5232printf "%s\n" "$ac_try_echo"; } >&5
5233  (eval "$ac_try") 2>&5
5234  ac_status=$?
5235  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5236  test $ac_status = 0; }; }; then
5237    cross_compiling=no
5238  else
5239    if test "$cross_compiling" = maybe; then
5240	cross_compiling=yes
5241    else
5242	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5243printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5244as_fn_error 77 "cannot run C compiled programs.
5245If you meant to cross compile, use \`--host'.
5246See \`config.log' for more details" "$LINENO" 5; }
5247    fi
5248  fi
5249fi
5250{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5251printf "%s\n" "$cross_compiling" >&6; }
5252
5253rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5254ac_clean_files=$ac_clean_files_save
5255{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5256printf %s "checking for suffix of object files... " >&6; }
5257if test ${ac_cv_objext+y}
5258then :
5259  printf %s "(cached) " >&6
5260else $as_nop
5261  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5262/* end confdefs.h.  */
5263
5264int
5265main (void)
5266{
5267
5268  ;
5269  return 0;
5270}
5271_ACEOF
5272rm -f conftest.o conftest.obj
5273if { { ac_try="$ac_compile"
5274case "(($ac_try" in
5275  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5276  *) ac_try_echo=$ac_try;;
5277esac
5278eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5279printf "%s\n" "$ac_try_echo"; } >&5
5280  (eval "$ac_compile") 2>&5
5281  ac_status=$?
5282  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5283  test $ac_status = 0; }
5284then :
5285  for ac_file in conftest.o conftest.obj conftest.*; do
5286  test -f "$ac_file" || continue;
5287  case $ac_file in
5288    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5289    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5290       break;;
5291  esac
5292done
5293else $as_nop
5294  printf "%s\n" "$as_me: failed program was:" >&5
5295sed 's/^/| /' conftest.$ac_ext >&5
5296
5297{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5298printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5299as_fn_error $? "cannot compute suffix of object files: cannot compile
5300See \`config.log' for more details" "$LINENO" 5; }
5301fi
5302rm -f conftest.$ac_cv_objext conftest.$ac_ext
5303fi
5304{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5305printf "%s\n" "$ac_cv_objext" >&6; }
5306OBJEXT=$ac_cv_objext
5307ac_objext=$OBJEXT
5308{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5309printf %s "checking whether the compiler supports GNU C... " >&6; }
5310if test ${ac_cv_c_compiler_gnu+y}
5311then :
5312  printf %s "(cached) " >&6
5313else $as_nop
5314  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5315/* end confdefs.h.  */
5316
5317int
5318main (void)
5319{
5320#ifndef __GNUC__
5321       choke me
5322#endif
5323
5324  ;
5325  return 0;
5326}
5327_ACEOF
5328if ac_fn_c_try_compile "$LINENO"
5329then :
5330  ac_compiler_gnu=yes
5331else $as_nop
5332  ac_compiler_gnu=no
5333fi
5334rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5335ac_cv_c_compiler_gnu=$ac_compiler_gnu
5336
5337fi
5338{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5339printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5340ac_compiler_gnu=$ac_cv_c_compiler_gnu
5341
5342if test $ac_compiler_gnu = yes; then
5343  GCC=yes
5344else
5345  GCC=
5346fi
5347ac_test_CFLAGS=${CFLAGS+y}
5348ac_save_CFLAGS=$CFLAGS
5349{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5350printf %s "checking whether $CC accepts -g... " >&6; }
5351if test ${ac_cv_prog_cc_g+y}
5352then :
5353  printf %s "(cached) " >&6
5354else $as_nop
5355  ac_save_c_werror_flag=$ac_c_werror_flag
5356   ac_c_werror_flag=yes
5357   ac_cv_prog_cc_g=no
5358   CFLAGS="-g"
5359   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5360/* end confdefs.h.  */
5361
5362int
5363main (void)
5364{
5365
5366  ;
5367  return 0;
5368}
5369_ACEOF
5370if ac_fn_c_try_compile "$LINENO"
5371then :
5372  ac_cv_prog_cc_g=yes
5373else $as_nop
5374  CFLAGS=""
5375      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5376/* end confdefs.h.  */
5377
5378int
5379main (void)
5380{
5381
5382  ;
5383  return 0;
5384}
5385_ACEOF
5386if ac_fn_c_try_compile "$LINENO"
5387then :
5388
5389else $as_nop
5390  ac_c_werror_flag=$ac_save_c_werror_flag
5391	 CFLAGS="-g"
5392	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5393/* end confdefs.h.  */
5394
5395int
5396main (void)
5397{
5398
5399  ;
5400  return 0;
5401}
5402_ACEOF
5403if ac_fn_c_try_compile "$LINENO"
5404then :
5405  ac_cv_prog_cc_g=yes
5406fi
5407rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5408fi
5409rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5410fi
5411rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5412   ac_c_werror_flag=$ac_save_c_werror_flag
5413fi
5414{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5415printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5416if test $ac_test_CFLAGS; then
5417  CFLAGS=$ac_save_CFLAGS
5418elif test $ac_cv_prog_cc_g = yes; then
5419  if test "$GCC" = yes; then
5420    CFLAGS="-g -O2"
5421  else
5422    CFLAGS="-g"
5423  fi
5424else
5425  if test "$GCC" = yes; then
5426    CFLAGS="-O2"
5427  else
5428    CFLAGS=
5429  fi
5430fi
5431ac_prog_cc_stdc=no
5432if test x$ac_prog_cc_stdc = xno
5433then :
5434  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5435printf %s "checking for $CC option to enable C11 features... " >&6; }
5436if test ${ac_cv_prog_cc_c11+y}
5437then :
5438  printf %s "(cached) " >&6
5439else $as_nop
5440  ac_cv_prog_cc_c11=no
5441ac_save_CC=$CC
5442cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5443/* end confdefs.h.  */
5444$ac_c_conftest_c11_program
5445_ACEOF
5446for ac_arg in '' -std=gnu11
5447do
5448  CC="$ac_save_CC $ac_arg"
5449  if ac_fn_c_try_compile "$LINENO"
5450then :
5451  ac_cv_prog_cc_c11=$ac_arg
5452fi
5453rm -f core conftest.err conftest.$ac_objext conftest.beam
5454  test "x$ac_cv_prog_cc_c11" != "xno" && break
5455done
5456rm -f conftest.$ac_ext
5457CC=$ac_save_CC
5458fi
5459
5460if test "x$ac_cv_prog_cc_c11" = xno
5461then :
5462  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5463printf "%s\n" "unsupported" >&6; }
5464else $as_nop
5465  if test "x$ac_cv_prog_cc_c11" = x
5466then :
5467  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5468printf "%s\n" "none needed" >&6; }
5469else $as_nop
5470  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5471printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5472     CC="$CC $ac_cv_prog_cc_c11"
5473fi
5474  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5475  ac_prog_cc_stdc=c11
5476fi
5477fi
5478if test x$ac_prog_cc_stdc = xno
5479then :
5480  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5481printf %s "checking for $CC option to enable C99 features... " >&6; }
5482if test ${ac_cv_prog_cc_c99+y}
5483then :
5484  printf %s "(cached) " >&6
5485else $as_nop
5486  ac_cv_prog_cc_c99=no
5487ac_save_CC=$CC
5488cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5489/* end confdefs.h.  */
5490$ac_c_conftest_c99_program
5491_ACEOF
5492for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5493do
5494  CC="$ac_save_CC $ac_arg"
5495  if ac_fn_c_try_compile "$LINENO"
5496then :
5497  ac_cv_prog_cc_c99=$ac_arg
5498fi
5499rm -f core conftest.err conftest.$ac_objext conftest.beam
5500  test "x$ac_cv_prog_cc_c99" != "xno" && break
5501done
5502rm -f conftest.$ac_ext
5503CC=$ac_save_CC
5504fi
5505
5506if test "x$ac_cv_prog_cc_c99" = xno
5507then :
5508  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5509printf "%s\n" "unsupported" >&6; }
5510else $as_nop
5511  if test "x$ac_cv_prog_cc_c99" = x
5512then :
5513  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5514printf "%s\n" "none needed" >&6; }
5515else $as_nop
5516  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5517printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5518     CC="$CC $ac_cv_prog_cc_c99"
5519fi
5520  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5521  ac_prog_cc_stdc=c99
5522fi
5523fi
5524if test x$ac_prog_cc_stdc = xno
5525then :
5526  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5527printf %s "checking for $CC option to enable C89 features... " >&6; }
5528if test ${ac_cv_prog_cc_c89+y}
5529then :
5530  printf %s "(cached) " >&6
5531else $as_nop
5532  ac_cv_prog_cc_c89=no
5533ac_save_CC=$CC
5534cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5535/* end confdefs.h.  */
5536$ac_c_conftest_c89_program
5537_ACEOF
5538for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5539do
5540  CC="$ac_save_CC $ac_arg"
5541  if ac_fn_c_try_compile "$LINENO"
5542then :
5543  ac_cv_prog_cc_c89=$ac_arg
5544fi
5545rm -f core conftest.err conftest.$ac_objext conftest.beam
5546  test "x$ac_cv_prog_cc_c89" != "xno" && break
5547done
5548rm -f conftest.$ac_ext
5549CC=$ac_save_CC
5550fi
5551
5552if test "x$ac_cv_prog_cc_c89" = xno
5553then :
5554  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5555printf "%s\n" "unsupported" >&6; }
5556else $as_nop
5557  if test "x$ac_cv_prog_cc_c89" = x
5558then :
5559  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5560printf "%s\n" "none needed" >&6; }
5561else $as_nop
5562  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5563printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5564     CC="$CC $ac_cv_prog_cc_c89"
5565fi
5566  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5567  ac_prog_cc_stdc=c89
5568fi
5569fi
5570
5571ac_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
5577
5578  ac_ext=c
5579ac_cpp='$CPP $CPPFLAGS'
5580ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5581ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5582ac_compiler_gnu=$ac_cv_c_compiler_gnu
5583{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5584printf %s "checking whether $CC understands -c and -o together... " >&6; }
5585if test ${am_cv_prog_cc_c_o+y}
5586then :
5587  printf %s "(cached) " >&6
5588else $as_nop
5589  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5590/* end confdefs.h.  */
5591
5592int
5593main (void)
5594{
5595
5596  ;
5597  return 0;
5598}
5599_ACEOF
5600  # Make sure it works both with $CC and with simple cc.
5601  # Following AC_PROG_CC_C_O, we do the test twice because some
5602  # compilers refuse to overwrite an existing .o file with -o,
5603  # though they will create one.
5604  am_cv_prog_cc_c_o=yes
5605  for am_i in 1 2; do
5606    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5607   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5608   ac_status=$?
5609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5610   (exit $ac_status); } \
5611         && test -f conftest2.$ac_objext; then
5612      : OK
5613    else
5614      am_cv_prog_cc_c_o=no
5615      break
5616    fi
5617  done
5618  rm -f core conftest*
5619  unset am_i
5620fi
5621{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5622printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
5623if test "$am_cv_prog_cc_c_o" != yes; then
5624   # Losing compiler, so override with the script.
5625   # FIXME: It is wrong to rewrite CC.
5626   # But if we don't then we get into trouble of one sort or another.
5627   # A longer-term fix would be to have automake use am__CC in this case,
5628   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5629   CC="$am_aux_dir/compile $CC"
5630fi
5631ac_ext=c
5632ac_cpp='$CPP $CPPFLAGS'
5633ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5634ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5635ac_compiler_gnu=$ac_cv_c_compiler_gnu
5636
5637
5638depcc="$CC"   am_compiler_list=
5639
5640{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5641printf %s "checking dependency style of $depcc... " >&6; }
5642if test ${am_cv_CC_dependencies_compiler_type+y}
5643then :
5644  printf %s "(cached) " >&6
5645else $as_nop
5646  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5647  # We make a subdir and do the tests there.  Otherwise we can end up
5648  # making bogus files that we don't know about and never remove.  For
5649  # instance it was reported that on HP-UX the gcc test will end up
5650  # making a dummy file named 'D' -- because '-MD' means "put the output
5651  # in D".
5652  rm -rf conftest.dir
5653  mkdir conftest.dir
5654  # Copy depcomp to subdir because otherwise we won't find it if we're
5655  # using a relative directory.
5656  cp "$am_depcomp" conftest.dir
5657  cd conftest.dir
5658  # We will build objects and dependencies in a subdirectory because
5659  # it helps to detect inapplicable dependency modes.  For instance
5660  # both Tru64's cc and ICC support -MD to output dependencies as a
5661  # side effect of compilation, but ICC will put the dependencies in
5662  # the current directory while Tru64 will put them in the object
5663  # directory.
5664  mkdir sub
5665
5666  am_cv_CC_dependencies_compiler_type=none
5667  if test "$am_compiler_list" = ""; then
5668     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5669  fi
5670  am__universal=false
5671  case " $depcc " in #(
5672     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5673     esac
5674
5675  for depmode in $am_compiler_list; do
5676    # Setup a source with many dependencies, because some compilers
5677    # like to wrap large dependency lists on column 80 (with \), and
5678    # we should not choose a depcomp mode which is confused by this.
5679    #
5680    # We need to recreate these files for each test, as the compiler may
5681    # overwrite some of them when testing with obscure command lines.
5682    # This happens at least with the AIX C compiler.
5683    : > sub/conftest.c
5684    for i in 1 2 3 4 5 6; do
5685      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5686      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5687      # Solaris 10 /bin/sh.
5688      echo '/* dummy */' > sub/conftst$i.h
5689    done
5690    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5691
5692    # We check with '-c' and '-o' for the sake of the "dashmstdout"
5693    # mode.  It turns out that the SunPro C++ compiler does not properly
5694    # handle '-M -o', and we need to detect this.  Also, some Intel
5695    # versions had trouble with output in subdirs.
5696    am__obj=sub/conftest.${OBJEXT-o}
5697    am__minus_obj="-o $am__obj"
5698    case $depmode in
5699    gcc)
5700      # This depmode causes a compiler race in universal mode.
5701      test "$am__universal" = false || continue
5702      ;;
5703    nosideeffect)
5704      # After this tag, mechanisms are not by side-effect, so they'll
5705      # only be used when explicitly requested.
5706      if test "x$enable_dependency_tracking" = xyes; then
5707	continue
5708      else
5709	break
5710      fi
5711      ;;
5712    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5713      # This compiler won't grok '-c -o', but also, the minuso test has
5714      # not run yet.  These depmodes are late enough in the game, and
5715      # so weak that their functioning should not be impacted.
5716      am__obj=conftest.${OBJEXT-o}
5717      am__minus_obj=
5718      ;;
5719    none) break ;;
5720    esac
5721    if depmode=$depmode \
5722       source=sub/conftest.c object=$am__obj \
5723       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5724       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5725         >/dev/null 2>conftest.err &&
5726       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5727       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5728       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5729       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5730      # icc doesn't choke on unknown options, it will just issue warnings
5731      # or remarks (even with -Werror).  So we grep stderr for any message
5732      # that says an option was ignored or not supported.
5733      # When given -MP, icc 7.0 and 7.1 complain thusly:
5734      #   icc: Command line warning: ignoring option '-M'; no argument required
5735      # The diagnosis changed in icc 8.0:
5736      #   icc: Command line remark: option '-MP' not supported
5737      if (grep 'ignoring option' conftest.err ||
5738          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5739        am_cv_CC_dependencies_compiler_type=$depmode
5740        break
5741      fi
5742    fi
5743  done
5744
5745  cd ..
5746  rm -rf conftest.dir
5747else
5748  am_cv_CC_dependencies_compiler_type=none
5749fi
5750
5751fi
5752{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5753printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5754CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5755
5756 if
5757  test "x$enable_dependency_tracking" != xno \
5758  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5759  am__fastdepCC_TRUE=
5760  am__fastdepCC_FALSE='#'
5761else
5762  am__fastdepCC_TRUE='#'
5763  am__fastdepCC_FALSE=
5764fi
5765
5766
5767
5768ac_header= ac_cache=
5769for ac_item in $ac_header_c_list
5770do
5771  if test $ac_cache; then
5772    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
5773    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
5774      printf "%s\n" "#define $ac_item 1" >> confdefs.h
5775    fi
5776    ac_header= ac_cache=
5777  elif test $ac_header; then
5778    ac_cache=$ac_item
5779  else
5780    ac_header=$ac_item
5781  fi
5782done
5783
5784
5785
5786
5787
5788
5789
5790
5791if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
5792then :
5793
5794printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
5795
5796fi
5797
5798
5799
5800
5801
5802
5803  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5804printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5805if test ${ac_cv_safe_to_define___extensions__+y}
5806then :
5807  printf %s "(cached) " >&6
5808else $as_nop
5809  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5810/* end confdefs.h.  */
5811
5812#         define __EXTENSIONS__ 1
5813          $ac_includes_default
5814int
5815main (void)
5816{
5817
5818  ;
5819  return 0;
5820}
5821_ACEOF
5822if ac_fn_c_try_compile "$LINENO"
5823then :
5824  ac_cv_safe_to_define___extensions__=yes
5825else $as_nop
5826  ac_cv_safe_to_define___extensions__=no
5827fi
5828rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5829fi
5830{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5831printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
5832
5833  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
5834printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
5835if test ${ac_cv_should_define__xopen_source+y}
5836then :
5837  printf %s "(cached) " >&6
5838else $as_nop
5839  ac_cv_should_define__xopen_source=no
5840    if test $ac_cv_header_wchar_h = yes
5841then :
5842  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5843/* end confdefs.h.  */
5844
5845          #include <wchar.h>
5846          mbstate_t x;
5847int
5848main (void)
5849{
5850
5851  ;
5852  return 0;
5853}
5854_ACEOF
5855if ac_fn_c_try_compile "$LINENO"
5856then :
5857
5858else $as_nop
5859  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5860/* end confdefs.h.  */
5861
5862            #define _XOPEN_SOURCE 500
5863            #include <wchar.h>
5864            mbstate_t x;
5865int
5866main (void)
5867{
5868
5869  ;
5870  return 0;
5871}
5872_ACEOF
5873if ac_fn_c_try_compile "$LINENO"
5874then :
5875  ac_cv_should_define__xopen_source=yes
5876fi
5877rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5878fi
5879rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5880fi
5881fi
5882{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
5883printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
5884
5885  printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
5886
5887  printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
5888
5889  printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
5890
5891  printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
5892
5893  printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
5894
5895  printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
5896
5897  printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5898
5899  printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
5900
5901  printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
5902
5903  printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
5904
5905  printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
5906
5907  printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
5908
5909  printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
5910
5911  printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
5912
5913  printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
5914
5915  if test $ac_cv_header_minix_config_h = yes
5916then :
5917  MINIX=yes
5918    printf "%s\n" "#define _MINIX 1" >>confdefs.h
5919
5920    printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
5921
5922    printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
5923
5924else $as_nop
5925  MINIX=
5926fi
5927  if test $ac_cv_safe_to_define___extensions__ = yes
5928then :
5929  printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
5930
5931fi
5932  if test $ac_cv_should_define__xopen_source = yes
5933then :
5934  printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
5935
5936fi
5937
5938
5939# Require xorg-macros minimum of 1.14 for XORG_COMPILER_BRAND in XORG_DEFAULT_OPTIONS
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
5952printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
5953if test ${ac_cv_c_undeclared_builtin_options+y}
5954then :
5955  printf %s "(cached) " >&6
5956else $as_nop
5957  ac_save_CFLAGS=$CFLAGS
5958   ac_cv_c_undeclared_builtin_options='cannot detect'
5959   for ac_arg in '' -fno-builtin; do
5960     CFLAGS="$ac_save_CFLAGS $ac_arg"
5961     # This test program should *not* compile successfully.
5962     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5963/* end confdefs.h.  */
5964
5965int
5966main (void)
5967{
5968(void) strchr;
5969  ;
5970  return 0;
5971}
5972_ACEOF
5973if ac_fn_c_try_compile "$LINENO"
5974then :
5975
5976else $as_nop
5977  # This test program should compile successfully.
5978        # No library function is consistently available on
5979        # freestanding implementations, so test against a dummy
5980        # declaration.  Include always-available headers on the
5981        # off chance that they somehow elicit warnings.
5982        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5983/* end confdefs.h.  */
5984#include <float.h>
5985#include <limits.h>
5986#include <stdarg.h>
5987#include <stddef.h>
5988extern void ac_decl (int, char *);
5989
5990int
5991main (void)
5992{
5993(void) ac_decl (0, (char *) 0);
5994  (void) ac_decl;
5995
5996  ;
5997  return 0;
5998}
5999_ACEOF
6000if ac_fn_c_try_compile "$LINENO"
6001then :
6002  if test x"$ac_arg" = x
6003then :
6004  ac_cv_c_undeclared_builtin_options='none needed'
6005else $as_nop
6006  ac_cv_c_undeclared_builtin_options=$ac_arg
6007fi
6008          break
6009fi
6010rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6011fi
6012rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6013    done
6014    CFLAGS=$ac_save_CFLAGS
6015
6016fi
6017{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
6018printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
6019  case $ac_cv_c_undeclared_builtin_options in #(
6020  'cannot detect') :
6021    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6022printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6023as_fn_error $? "cannot make $CC report undeclared builtins
6024See \`config.log' for more details" "$LINENO" 5; } ;; #(
6025  'none needed') :
6026    ac_c_undeclared_builtin_options='' ;; #(
6027  *) :
6028    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
6029esac
6030
6031
6032
6033
6034
6035ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
6036if test "x$ac_cv_have_decl___clang__" = xyes
6037then :
6038  CLANGCC="yes"
6039else $as_nop
6040  CLANGCC="no"
6041fi
6042ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
6043if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
6044then :
6045  INTELCC="yes"
6046else $as_nop
6047  INTELCC="no"
6048fi
6049ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
6050if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
6051then :
6052  SUNCC="yes"
6053else $as_nop
6054  SUNCC="no"
6055fi
6056
6057
6058
6059
6060
6061
6062
6063
6064if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6065	if test -n "$ac_tool_prefix"; then
6066  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6067set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6068{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6069printf %s "checking for $ac_word... " >&6; }
6070if test ${ac_cv_path_PKG_CONFIG+y}
6071then :
6072  printf %s "(cached) " >&6
6073else $as_nop
6074  case $PKG_CONFIG in
6075  [\\/]* | ?:[\\/]*)
6076  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6077  ;;
6078  *)
6079  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6080for as_dir in $PATH
6081do
6082  IFS=$as_save_IFS
6083  case $as_dir in #(((
6084    '') as_dir=./ ;;
6085    */) ;;
6086    *) as_dir=$as_dir/ ;;
6087  esac
6088    for ac_exec_ext in '' $ac_executable_extensions; do
6089  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6090    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
6091    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6092    break 2
6093  fi
6094done
6095  done
6096IFS=$as_save_IFS
6097
6098  ;;
6099esac
6100fi
6101PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6102if test -n "$PKG_CONFIG"; then
6103  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6104printf "%s\n" "$PKG_CONFIG" >&6; }
6105else
6106  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6107printf "%s\n" "no" >&6; }
6108fi
6109
6110
6111fi
6112if test -z "$ac_cv_path_PKG_CONFIG"; then
6113  ac_pt_PKG_CONFIG=$PKG_CONFIG
6114  # Extract the first word of "pkg-config", so it can be a program name with args.
6115set dummy pkg-config; ac_word=$2
6116{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6117printf %s "checking for $ac_word... " >&6; }
6118if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
6119then :
6120  printf %s "(cached) " >&6
6121else $as_nop
6122  case $ac_pt_PKG_CONFIG in
6123  [\\/]* | ?:[\\/]*)
6124  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6125  ;;
6126  *)
6127  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6128for as_dir in $PATH
6129do
6130  IFS=$as_save_IFS
6131  case $as_dir in #(((
6132    '') as_dir=./ ;;
6133    */) ;;
6134    *) as_dir=$as_dir/ ;;
6135  esac
6136    for ac_exec_ext in '' $ac_executable_extensions; do
6137  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6138    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
6139    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6140    break 2
6141  fi
6142done
6143  done
6144IFS=$as_save_IFS
6145
6146  ;;
6147esac
6148fi
6149ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6150if test -n "$ac_pt_PKG_CONFIG"; then
6151  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
6152printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
6153else
6154  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6155printf "%s\n" "no" >&6; }
6156fi
6157
6158  if test "x$ac_pt_PKG_CONFIG" = x; then
6159    PKG_CONFIG=""
6160  else
6161    case $cross_compiling:$ac_tool_warned in
6162yes:)
6163{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6164printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6165ac_tool_warned=yes ;;
6166esac
6167    PKG_CONFIG=$ac_pt_PKG_CONFIG
6168  fi
6169else
6170  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6171fi
6172
6173fi
6174if test -n "$PKG_CONFIG"; then
6175	_pkg_min_version=0.9.0
6176	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
6177printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6178	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6179		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6180printf "%s\n" "yes" >&6; }
6181	else
6182		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6183printf "%s\n" "no" >&6; }
6184		PKG_CONFIG=""
6185	fi
6186fi
6187
6188
6189  # Make sure we can run config.sub.
6190$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
6191  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
6192
6193{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6194printf %s "checking build system type... " >&6; }
6195if test ${ac_cv_build+y}
6196then :
6197  printf %s "(cached) " >&6
6198else $as_nop
6199  ac_build_alias=$build_alias
6200test "x$ac_build_alias" = x &&
6201  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
6202test "x$ac_build_alias" = x &&
6203  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6204ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
6205  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
6206
6207fi
6208{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6209printf "%s\n" "$ac_cv_build" >&6; }
6210case $ac_cv_build in
6211*-*-*) ;;
6212*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6213esac
6214build=$ac_cv_build
6215ac_save_IFS=$IFS; IFS='-'
6216set x $ac_cv_build
6217shift
6218build_cpu=$1
6219build_vendor=$2
6220shift; shift
6221# Remember, the first character of IFS is used to create $*,
6222# except with old shells:
6223build_os=$*
6224IFS=$ac_save_IFS
6225case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6226
6227
6228{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6229printf %s "checking host system type... " >&6; }
6230if test ${ac_cv_host+y}
6231then :
6232  printf %s "(cached) " >&6
6233else $as_nop
6234  if test "x$host_alias" = x; then
6235  ac_cv_host=$ac_cv_build
6236else
6237  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
6238    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
6239fi
6240
6241fi
6242{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6243printf "%s\n" "$ac_cv_host" >&6; }
6244case $ac_cv_host in
6245*-*-*) ;;
6246*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6247esac
6248host=$ac_cv_host
6249ac_save_IFS=$IFS; IFS='-'
6250set x $ac_cv_host
6251shift
6252host_cpu=$1
6253host_vendor=$2
6254shift; shift
6255# Remember, the first character of IFS is used to create $*,
6256# except with old shells:
6257host_os=$*
6258IFS=$ac_save_IFS
6259case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6260
6261
6262{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6263printf %s "checking for a sed that does not truncate output... " >&6; }
6264if test ${ac_cv_path_SED+y}
6265then :
6266  printf %s "(cached) " >&6
6267else $as_nop
6268            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6269     for ac_i in 1 2 3 4 5 6 7; do
6270       ac_script="$ac_script$as_nl$ac_script"
6271     done
6272     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6273     { ac_script=; unset ac_script;}
6274     if test -z "$SED"; then
6275  ac_path_SED_found=false
6276  # Loop through the user's path and test for each of PROGNAME-LIST
6277  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6278for as_dir in $PATH
6279do
6280  IFS=$as_save_IFS
6281  case $as_dir in #(((
6282    '') as_dir=./ ;;
6283    */) ;;
6284    *) as_dir=$as_dir/ ;;
6285  esac
6286    for ac_prog in sed gsed
6287   do
6288    for ac_exec_ext in '' $ac_executable_extensions; do
6289      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
6290      as_fn_executable_p "$ac_path_SED" || continue
6291# Check for GNU ac_path_SED and select it if it is found.
6292  # Check for GNU $ac_path_SED
6293case `"$ac_path_SED" --version 2>&1` in
6294*GNU*)
6295  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6296*)
6297  ac_count=0
6298  printf %s 0123456789 >"conftest.in"
6299  while :
6300  do
6301    cat "conftest.in" "conftest.in" >"conftest.tmp"
6302    mv "conftest.tmp" "conftest.in"
6303    cp "conftest.in" "conftest.nl"
6304    printf "%s\n" '' >> "conftest.nl"
6305    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6306    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6307    as_fn_arith $ac_count + 1 && ac_count=$as_val
6308    if test $ac_count -gt ${ac_path_SED_max-0}; then
6309      # Best one so far, save it but keep looking for a better one
6310      ac_cv_path_SED="$ac_path_SED"
6311      ac_path_SED_max=$ac_count
6312    fi
6313    # 10*(2^10) chars as input seems more than enough
6314    test $ac_count -gt 10 && break
6315  done
6316  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6317esac
6318
6319      $ac_path_SED_found && break 3
6320    done
6321  done
6322  done
6323IFS=$as_save_IFS
6324  if test -z "$ac_cv_path_SED"; then
6325    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6326  fi
6327else
6328  ac_cv_path_SED=$SED
6329fi
6330
6331fi
6332{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6333printf "%s\n" "$ac_cv_path_SED" >&6; }
6334 SED="$ac_cv_path_SED"
6335  rm -f conftest.sed
6336
6337
6338
6339
6340
6341
6342# Check whether --enable-selective-werror was given.
6343if test ${enable_selective_werror+y}
6344then :
6345  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
6346else $as_nop
6347  SELECTIVE_WERROR=yes
6348fi
6349
6350
6351
6352
6353
6354# -v is too short to test reliably with XORG_TESTSET_CFLAG
6355if test "x$SUNCC" = "xyes"; then
6356    BASE_CFLAGS="-v"
6357else
6358    BASE_CFLAGS=""
6359fi
6360
6361# This chunk of warnings were those that existed in the legacy CWARNFLAGS
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375xorg_testset_save_CFLAGS="$CFLAGS"
6376
6377if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6378	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6379	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6380printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6381if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6382then :
6383  printf %s "(cached) " >&6
6384else $as_nop
6385  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6386/* end confdefs.h.  */
6387int i;
6388_ACEOF
6389if ac_fn_c_try_compile "$LINENO"
6390then :
6391  xorg_cv_cc_flag_unknown_warning_option=yes
6392else $as_nop
6393  xorg_cv_cc_flag_unknown_warning_option=no
6394fi
6395rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6396fi
6397{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6398printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6399	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6400	CFLAGS="$xorg_testset_save_CFLAGS"
6401fi
6402
6403if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6404	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6405		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6406	fi
6407	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6408	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6409printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6410if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6411then :
6412  printf %s "(cached) " >&6
6413else $as_nop
6414  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6415/* end confdefs.h.  */
6416int i;
6417_ACEOF
6418if ac_fn_c_try_compile "$LINENO"
6419then :
6420  xorg_cv_cc_flag_unused_command_line_argument=yes
6421else $as_nop
6422  xorg_cv_cc_flag_unused_command_line_argument=no
6423fi
6424rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6425fi
6426{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6427printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6428	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6429	CFLAGS="$xorg_testset_save_CFLAGS"
6430fi
6431
6432found="no"
6433
6434	if test $found = "no" ; then
6435		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6436			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6437		fi
6438
6439		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6440			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6441		fi
6442
6443		CFLAGS="$CFLAGS -Wall"
6444
6445		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
6446printf %s "checking if $CC supports -Wall... " >&6; }
6447		cacheid=xorg_cv_cc_flag__Wall
6448		if eval test \${$cacheid+y}
6449then :
6450  printf %s "(cached) " >&6
6451else $as_nop
6452  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6453/* end confdefs.h.  */
6454int i;
6455int
6456main (void)
6457{
6458
6459  ;
6460  return 0;
6461}
6462_ACEOF
6463if ac_fn_c_try_link "$LINENO"
6464then :
6465  eval $cacheid=yes
6466else $as_nop
6467  eval $cacheid=no
6468fi
6469rm -f core conftest.err conftest.$ac_objext conftest.beam \
6470    conftest$ac_exeext conftest.$ac_ext
6471fi
6472
6473
6474		CFLAGS="$xorg_testset_save_CFLAGS"
6475
6476		eval supported=\$$cacheid
6477		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6478printf "%s\n" "$supported" >&6; }
6479		if test "$supported" = "yes" ; then
6480			BASE_CFLAGS="$BASE_CFLAGS -Wall"
6481			found="yes"
6482		fi
6483	fi
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499xorg_testset_save_CFLAGS="$CFLAGS"
6500
6501if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6502	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6503	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6504printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6505if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6506then :
6507  printf %s "(cached) " >&6
6508else $as_nop
6509  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6510/* end confdefs.h.  */
6511int i;
6512_ACEOF
6513if ac_fn_c_try_compile "$LINENO"
6514then :
6515  xorg_cv_cc_flag_unknown_warning_option=yes
6516else $as_nop
6517  xorg_cv_cc_flag_unknown_warning_option=no
6518fi
6519rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6520fi
6521{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6522printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6523	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6524	CFLAGS="$xorg_testset_save_CFLAGS"
6525fi
6526
6527if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6528	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6529		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6530	fi
6531	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6532	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6533printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6534if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6535then :
6536  printf %s "(cached) " >&6
6537else $as_nop
6538  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6539/* end confdefs.h.  */
6540int i;
6541_ACEOF
6542if ac_fn_c_try_compile "$LINENO"
6543then :
6544  xorg_cv_cc_flag_unused_command_line_argument=yes
6545else $as_nop
6546  xorg_cv_cc_flag_unused_command_line_argument=no
6547fi
6548rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6549fi
6550{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6551printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6552	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6553	CFLAGS="$xorg_testset_save_CFLAGS"
6554fi
6555
6556found="no"
6557
6558	if test $found = "no" ; then
6559		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6560			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6561		fi
6562
6563		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6564			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6565		fi
6566
6567		CFLAGS="$CFLAGS -Wpointer-arith"
6568
6569		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
6570printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
6571		cacheid=xorg_cv_cc_flag__Wpointer_arith
6572		if eval test \${$cacheid+y}
6573then :
6574  printf %s "(cached) " >&6
6575else $as_nop
6576  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6577/* end confdefs.h.  */
6578int i;
6579int
6580main (void)
6581{
6582
6583  ;
6584  return 0;
6585}
6586_ACEOF
6587if ac_fn_c_try_link "$LINENO"
6588then :
6589  eval $cacheid=yes
6590else $as_nop
6591  eval $cacheid=no
6592fi
6593rm -f core conftest.err conftest.$ac_objext conftest.beam \
6594    conftest$ac_exeext conftest.$ac_ext
6595fi
6596
6597
6598		CFLAGS="$xorg_testset_save_CFLAGS"
6599
6600		eval supported=\$$cacheid
6601		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6602printf "%s\n" "$supported" >&6; }
6603		if test "$supported" = "yes" ; then
6604			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
6605			found="yes"
6606		fi
6607	fi
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623xorg_testset_save_CFLAGS="$CFLAGS"
6624
6625if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6626	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6627	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6628printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6629if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6630then :
6631  printf %s "(cached) " >&6
6632else $as_nop
6633  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6634/* end confdefs.h.  */
6635int i;
6636_ACEOF
6637if ac_fn_c_try_compile "$LINENO"
6638then :
6639  xorg_cv_cc_flag_unknown_warning_option=yes
6640else $as_nop
6641  xorg_cv_cc_flag_unknown_warning_option=no
6642fi
6643rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6644fi
6645{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6646printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6647	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6648	CFLAGS="$xorg_testset_save_CFLAGS"
6649fi
6650
6651if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6652	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6653		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6654	fi
6655	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6656	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6657printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6658if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6659then :
6660  printf %s "(cached) " >&6
6661else $as_nop
6662  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6663/* end confdefs.h.  */
6664int i;
6665_ACEOF
6666if ac_fn_c_try_compile "$LINENO"
6667then :
6668  xorg_cv_cc_flag_unused_command_line_argument=yes
6669else $as_nop
6670  xorg_cv_cc_flag_unused_command_line_argument=no
6671fi
6672rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6673fi
6674{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6675printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6676	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6677	CFLAGS="$xorg_testset_save_CFLAGS"
6678fi
6679
6680found="no"
6681
6682	if test $found = "no" ; then
6683		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6684			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6685		fi
6686
6687		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6688			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6689		fi
6690
6691		CFLAGS="$CFLAGS -Wmissing-declarations"
6692
6693		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
6694printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
6695		cacheid=xorg_cv_cc_flag__Wmissing_declarations
6696		if eval test \${$cacheid+y}
6697then :
6698  printf %s "(cached) " >&6
6699else $as_nop
6700  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6701/* end confdefs.h.  */
6702int i;
6703int
6704main (void)
6705{
6706
6707  ;
6708  return 0;
6709}
6710_ACEOF
6711if ac_fn_c_try_link "$LINENO"
6712then :
6713  eval $cacheid=yes
6714else $as_nop
6715  eval $cacheid=no
6716fi
6717rm -f core conftest.err conftest.$ac_objext conftest.beam \
6718    conftest$ac_exeext conftest.$ac_ext
6719fi
6720
6721
6722		CFLAGS="$xorg_testset_save_CFLAGS"
6723
6724		eval supported=\$$cacheid
6725		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6726printf "%s\n" "$supported" >&6; }
6727		if test "$supported" = "yes" ; then
6728			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
6729			found="yes"
6730		fi
6731	fi
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747xorg_testset_save_CFLAGS="$CFLAGS"
6748
6749if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6750	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6751	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6752printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6753if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6754then :
6755  printf %s "(cached) " >&6
6756else $as_nop
6757  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6758/* end confdefs.h.  */
6759int i;
6760_ACEOF
6761if ac_fn_c_try_compile "$LINENO"
6762then :
6763  xorg_cv_cc_flag_unknown_warning_option=yes
6764else $as_nop
6765  xorg_cv_cc_flag_unknown_warning_option=no
6766fi
6767rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6768fi
6769{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6770printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6771	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6772	CFLAGS="$xorg_testset_save_CFLAGS"
6773fi
6774
6775if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6776	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6777		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6778	fi
6779	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6780	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6781printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6782if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6783then :
6784  printf %s "(cached) " >&6
6785else $as_nop
6786  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6787/* end confdefs.h.  */
6788int i;
6789_ACEOF
6790if ac_fn_c_try_compile "$LINENO"
6791then :
6792  xorg_cv_cc_flag_unused_command_line_argument=yes
6793else $as_nop
6794  xorg_cv_cc_flag_unused_command_line_argument=no
6795fi
6796rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6797fi
6798{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6799printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6800	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6801	CFLAGS="$xorg_testset_save_CFLAGS"
6802fi
6803
6804found="no"
6805
6806	if test $found = "no" ; then
6807		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6808			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6809		fi
6810
6811		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6812			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6813		fi
6814
6815		CFLAGS="$CFLAGS -Wformat=2"
6816
6817		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
6818printf %s "checking if $CC supports -Wformat=2... " >&6; }
6819		cacheid=xorg_cv_cc_flag__Wformat_2
6820		if eval test \${$cacheid+y}
6821then :
6822  printf %s "(cached) " >&6
6823else $as_nop
6824  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6825/* end confdefs.h.  */
6826int i;
6827int
6828main (void)
6829{
6830
6831  ;
6832  return 0;
6833}
6834_ACEOF
6835if ac_fn_c_try_link "$LINENO"
6836then :
6837  eval $cacheid=yes
6838else $as_nop
6839  eval $cacheid=no
6840fi
6841rm -f core conftest.err conftest.$ac_objext conftest.beam \
6842    conftest$ac_exeext conftest.$ac_ext
6843fi
6844
6845
6846		CFLAGS="$xorg_testset_save_CFLAGS"
6847
6848		eval supported=\$$cacheid
6849		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6850printf "%s\n" "$supported" >&6; }
6851		if test "$supported" = "yes" ; then
6852			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
6853			found="yes"
6854		fi
6855	fi
6856
6857	if test $found = "no" ; then
6858		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6859			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6860		fi
6861
6862		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6863			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6864		fi
6865
6866		CFLAGS="$CFLAGS -Wformat"
6867
6868		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
6869printf %s "checking if $CC supports -Wformat... " >&6; }
6870		cacheid=xorg_cv_cc_flag__Wformat
6871		if eval test \${$cacheid+y}
6872then :
6873  printf %s "(cached) " >&6
6874else $as_nop
6875  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6876/* end confdefs.h.  */
6877int i;
6878int
6879main (void)
6880{
6881
6882  ;
6883  return 0;
6884}
6885_ACEOF
6886if ac_fn_c_try_link "$LINENO"
6887then :
6888  eval $cacheid=yes
6889else $as_nop
6890  eval $cacheid=no
6891fi
6892rm -f core conftest.err conftest.$ac_objext conftest.beam \
6893    conftest$ac_exeext conftest.$ac_ext
6894fi
6895
6896
6897		CFLAGS="$xorg_testset_save_CFLAGS"
6898
6899		eval supported=\$$cacheid
6900		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6901printf "%s\n" "$supported" >&6; }
6902		if test "$supported" = "yes" ; then
6903			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
6904			found="yes"
6905		fi
6906	fi
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924xorg_testset_save_CFLAGS="$CFLAGS"
6925
6926if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6927	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6928	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6929printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6930if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6931then :
6932  printf %s "(cached) " >&6
6933else $as_nop
6934  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6935/* end confdefs.h.  */
6936int i;
6937_ACEOF
6938if ac_fn_c_try_compile "$LINENO"
6939then :
6940  xorg_cv_cc_flag_unknown_warning_option=yes
6941else $as_nop
6942  xorg_cv_cc_flag_unknown_warning_option=no
6943fi
6944rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6945fi
6946{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6947printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6948	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6949	CFLAGS="$xorg_testset_save_CFLAGS"
6950fi
6951
6952if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6953	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6954		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6955	fi
6956	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6957	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6958printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6959if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6960then :
6961  printf %s "(cached) " >&6
6962else $as_nop
6963  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6964/* end confdefs.h.  */
6965int i;
6966_ACEOF
6967if ac_fn_c_try_compile "$LINENO"
6968then :
6969  xorg_cv_cc_flag_unused_command_line_argument=yes
6970else $as_nop
6971  xorg_cv_cc_flag_unused_command_line_argument=no
6972fi
6973rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6974fi
6975{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6976printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6977	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6978	CFLAGS="$xorg_testset_save_CFLAGS"
6979fi
6980
6981found="no"
6982
6983	if test $found = "no" ; then
6984		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6985			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6986		fi
6987
6988		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6989			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6990		fi
6991
6992		CFLAGS="$CFLAGS -Wstrict-prototypes"
6993
6994		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
6995printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
6996		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
6997		if eval test \${$cacheid+y}
6998then :
6999  printf %s "(cached) " >&6
7000else $as_nop
7001  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7002/* end confdefs.h.  */
7003int i;
7004int
7005main (void)
7006{
7007
7008  ;
7009  return 0;
7010}
7011_ACEOF
7012if ac_fn_c_try_link "$LINENO"
7013then :
7014  eval $cacheid=yes
7015else $as_nop
7016  eval $cacheid=no
7017fi
7018rm -f core conftest.err conftest.$ac_objext conftest.beam \
7019    conftest$ac_exeext conftest.$ac_ext
7020fi
7021
7022
7023		CFLAGS="$xorg_testset_save_CFLAGS"
7024
7025		eval supported=\$$cacheid
7026		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7027printf "%s\n" "$supported" >&6; }
7028		if test "$supported" = "yes" ; then
7029			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
7030			found="yes"
7031		fi
7032	fi
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048xorg_testset_save_CFLAGS="$CFLAGS"
7049
7050if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7051	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7052	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7053printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7054if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7055then :
7056  printf %s "(cached) " >&6
7057else $as_nop
7058  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7059/* end confdefs.h.  */
7060int i;
7061_ACEOF
7062if ac_fn_c_try_compile "$LINENO"
7063then :
7064  xorg_cv_cc_flag_unknown_warning_option=yes
7065else $as_nop
7066  xorg_cv_cc_flag_unknown_warning_option=no
7067fi
7068rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7069fi
7070{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7071printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7072	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7073	CFLAGS="$xorg_testset_save_CFLAGS"
7074fi
7075
7076if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7077	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7078		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7079	fi
7080	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7081	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7082printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7083if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7084then :
7085  printf %s "(cached) " >&6
7086else $as_nop
7087  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7088/* end confdefs.h.  */
7089int i;
7090_ACEOF
7091if ac_fn_c_try_compile "$LINENO"
7092then :
7093  xorg_cv_cc_flag_unused_command_line_argument=yes
7094else $as_nop
7095  xorg_cv_cc_flag_unused_command_line_argument=no
7096fi
7097rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7098fi
7099{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7100printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7101	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7102	CFLAGS="$xorg_testset_save_CFLAGS"
7103fi
7104
7105found="no"
7106
7107	if test $found = "no" ; then
7108		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7109			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7110		fi
7111
7112		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7113			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7114		fi
7115
7116		CFLAGS="$CFLAGS -Wmissing-prototypes"
7117
7118		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
7119printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
7120		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
7121		if eval test \${$cacheid+y}
7122then :
7123  printf %s "(cached) " >&6
7124else $as_nop
7125  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7126/* end confdefs.h.  */
7127int i;
7128int
7129main (void)
7130{
7131
7132  ;
7133  return 0;
7134}
7135_ACEOF
7136if ac_fn_c_try_link "$LINENO"
7137then :
7138  eval $cacheid=yes
7139else $as_nop
7140  eval $cacheid=no
7141fi
7142rm -f core conftest.err conftest.$ac_objext conftest.beam \
7143    conftest$ac_exeext conftest.$ac_ext
7144fi
7145
7146
7147		CFLAGS="$xorg_testset_save_CFLAGS"
7148
7149		eval supported=\$$cacheid
7150		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7151printf "%s\n" "$supported" >&6; }
7152		if test "$supported" = "yes" ; then
7153			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
7154			found="yes"
7155		fi
7156	fi
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172xorg_testset_save_CFLAGS="$CFLAGS"
7173
7174if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7175	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7176	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7177printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7178if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7179then :
7180  printf %s "(cached) " >&6
7181else $as_nop
7182  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7183/* end confdefs.h.  */
7184int i;
7185_ACEOF
7186if ac_fn_c_try_compile "$LINENO"
7187then :
7188  xorg_cv_cc_flag_unknown_warning_option=yes
7189else $as_nop
7190  xorg_cv_cc_flag_unknown_warning_option=no
7191fi
7192rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7193fi
7194{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7195printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7196	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7197	CFLAGS="$xorg_testset_save_CFLAGS"
7198fi
7199
7200if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7201	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7202		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7203	fi
7204	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7205	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7206printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7207if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7208then :
7209  printf %s "(cached) " >&6
7210else $as_nop
7211  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7212/* end confdefs.h.  */
7213int i;
7214_ACEOF
7215if ac_fn_c_try_compile "$LINENO"
7216then :
7217  xorg_cv_cc_flag_unused_command_line_argument=yes
7218else $as_nop
7219  xorg_cv_cc_flag_unused_command_line_argument=no
7220fi
7221rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7222fi
7223{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7224printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7225	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7226	CFLAGS="$xorg_testset_save_CFLAGS"
7227fi
7228
7229found="no"
7230
7231	if test $found = "no" ; then
7232		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7233			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7234		fi
7235
7236		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7237			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7238		fi
7239
7240		CFLAGS="$CFLAGS -Wnested-externs"
7241
7242		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
7243printf %s "checking if $CC supports -Wnested-externs... " >&6; }
7244		cacheid=xorg_cv_cc_flag__Wnested_externs
7245		if eval test \${$cacheid+y}
7246then :
7247  printf %s "(cached) " >&6
7248else $as_nop
7249  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7250/* end confdefs.h.  */
7251int i;
7252int
7253main (void)
7254{
7255
7256  ;
7257  return 0;
7258}
7259_ACEOF
7260if ac_fn_c_try_link "$LINENO"
7261then :
7262  eval $cacheid=yes
7263else $as_nop
7264  eval $cacheid=no
7265fi
7266rm -f core conftest.err conftest.$ac_objext conftest.beam \
7267    conftest$ac_exeext conftest.$ac_ext
7268fi
7269
7270
7271		CFLAGS="$xorg_testset_save_CFLAGS"
7272
7273		eval supported=\$$cacheid
7274		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7275printf "%s\n" "$supported" >&6; }
7276		if test "$supported" = "yes" ; then
7277			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
7278			found="yes"
7279		fi
7280	fi
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296xorg_testset_save_CFLAGS="$CFLAGS"
7297
7298if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7299	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7300	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7301printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7302if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7303then :
7304  printf %s "(cached) " >&6
7305else $as_nop
7306  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7307/* end confdefs.h.  */
7308int i;
7309_ACEOF
7310if ac_fn_c_try_compile "$LINENO"
7311then :
7312  xorg_cv_cc_flag_unknown_warning_option=yes
7313else $as_nop
7314  xorg_cv_cc_flag_unknown_warning_option=no
7315fi
7316rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7317fi
7318{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7319printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7320	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7321	CFLAGS="$xorg_testset_save_CFLAGS"
7322fi
7323
7324if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7325	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7326		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7327	fi
7328	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7329	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7330printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7331if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7332then :
7333  printf %s "(cached) " >&6
7334else $as_nop
7335  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7336/* end confdefs.h.  */
7337int i;
7338_ACEOF
7339if ac_fn_c_try_compile "$LINENO"
7340then :
7341  xorg_cv_cc_flag_unused_command_line_argument=yes
7342else $as_nop
7343  xorg_cv_cc_flag_unused_command_line_argument=no
7344fi
7345rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7346fi
7347{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7348printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7349	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7350	CFLAGS="$xorg_testset_save_CFLAGS"
7351fi
7352
7353found="no"
7354
7355	if test $found = "no" ; then
7356		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7357			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7358		fi
7359
7360		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7361			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7362		fi
7363
7364		CFLAGS="$CFLAGS -Wbad-function-cast"
7365
7366		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
7367printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
7368		cacheid=xorg_cv_cc_flag__Wbad_function_cast
7369		if eval test \${$cacheid+y}
7370then :
7371  printf %s "(cached) " >&6
7372else $as_nop
7373  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7374/* end confdefs.h.  */
7375int i;
7376int
7377main (void)
7378{
7379
7380  ;
7381  return 0;
7382}
7383_ACEOF
7384if ac_fn_c_try_link "$LINENO"
7385then :
7386  eval $cacheid=yes
7387else $as_nop
7388  eval $cacheid=no
7389fi
7390rm -f core conftest.err conftest.$ac_objext conftest.beam \
7391    conftest$ac_exeext conftest.$ac_ext
7392fi
7393
7394
7395		CFLAGS="$xorg_testset_save_CFLAGS"
7396
7397		eval supported=\$$cacheid
7398		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7399printf "%s\n" "$supported" >&6; }
7400		if test "$supported" = "yes" ; then
7401			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
7402			found="yes"
7403		fi
7404	fi
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420xorg_testset_save_CFLAGS="$CFLAGS"
7421
7422if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7423	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7424	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7425printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7426if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7427then :
7428  printf %s "(cached) " >&6
7429else $as_nop
7430  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7431/* end confdefs.h.  */
7432int i;
7433_ACEOF
7434if ac_fn_c_try_compile "$LINENO"
7435then :
7436  xorg_cv_cc_flag_unknown_warning_option=yes
7437else $as_nop
7438  xorg_cv_cc_flag_unknown_warning_option=no
7439fi
7440rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7441fi
7442{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7443printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7444	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7445	CFLAGS="$xorg_testset_save_CFLAGS"
7446fi
7447
7448if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7449	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7450		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7451	fi
7452	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7453	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7454printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7455if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7456then :
7457  printf %s "(cached) " >&6
7458else $as_nop
7459  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7460/* end confdefs.h.  */
7461int i;
7462_ACEOF
7463if ac_fn_c_try_compile "$LINENO"
7464then :
7465  xorg_cv_cc_flag_unused_command_line_argument=yes
7466else $as_nop
7467  xorg_cv_cc_flag_unused_command_line_argument=no
7468fi
7469rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7470fi
7471{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7472printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7473	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7474	CFLAGS="$xorg_testset_save_CFLAGS"
7475fi
7476
7477found="no"
7478
7479	if test $found = "no" ; then
7480		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7481			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7482		fi
7483
7484		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7485			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7486		fi
7487
7488		CFLAGS="$CFLAGS -Wold-style-definition"
7489
7490		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
7491printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
7492		cacheid=xorg_cv_cc_flag__Wold_style_definition
7493		if eval test \${$cacheid+y}
7494then :
7495  printf %s "(cached) " >&6
7496else $as_nop
7497  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7498/* end confdefs.h.  */
7499int i;
7500int
7501main (void)
7502{
7503
7504  ;
7505  return 0;
7506}
7507_ACEOF
7508if ac_fn_c_try_link "$LINENO"
7509then :
7510  eval $cacheid=yes
7511else $as_nop
7512  eval $cacheid=no
7513fi
7514rm -f core conftest.err conftest.$ac_objext conftest.beam \
7515    conftest$ac_exeext conftest.$ac_ext
7516fi
7517
7518
7519		CFLAGS="$xorg_testset_save_CFLAGS"
7520
7521		eval supported=\$$cacheid
7522		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7523printf "%s\n" "$supported" >&6; }
7524		if test "$supported" = "yes" ; then
7525			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
7526			found="yes"
7527		fi
7528	fi
7529
7530	if test $found = "no" ; then
7531		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7532			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7533		fi
7534
7535		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7536			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7537		fi
7538
7539		CFLAGS="$CFLAGS -fd"
7540
7541		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
7542printf %s "checking if $CC supports -fd... " >&6; }
7543		cacheid=xorg_cv_cc_flag__fd
7544		if eval test \${$cacheid+y}
7545then :
7546  printf %s "(cached) " >&6
7547else $as_nop
7548  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7549/* end confdefs.h.  */
7550int i;
7551int
7552main (void)
7553{
7554
7555  ;
7556  return 0;
7557}
7558_ACEOF
7559if ac_fn_c_try_link "$LINENO"
7560then :
7561  eval $cacheid=yes
7562else $as_nop
7563  eval $cacheid=no
7564fi
7565rm -f core conftest.err conftest.$ac_objext conftest.beam \
7566    conftest$ac_exeext conftest.$ac_ext
7567fi
7568
7569
7570		CFLAGS="$xorg_testset_save_CFLAGS"
7571
7572		eval supported=\$$cacheid
7573		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7574printf "%s\n" "$supported" >&6; }
7575		if test "$supported" = "yes" ; then
7576			BASE_CFLAGS="$BASE_CFLAGS -fd"
7577			found="yes"
7578		fi
7579	fi
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595xorg_testset_save_CFLAGS="$CFLAGS"
7596
7597if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7598	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7599	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7600printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7601if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7602then :
7603  printf %s "(cached) " >&6
7604else $as_nop
7605  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7606/* end confdefs.h.  */
7607int i;
7608_ACEOF
7609if ac_fn_c_try_compile "$LINENO"
7610then :
7611  xorg_cv_cc_flag_unknown_warning_option=yes
7612else $as_nop
7613  xorg_cv_cc_flag_unknown_warning_option=no
7614fi
7615rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7616fi
7617{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7618printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7619	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7620	CFLAGS="$xorg_testset_save_CFLAGS"
7621fi
7622
7623if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7624	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7625		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7626	fi
7627	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7628	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7629printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7630if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7631then :
7632  printf %s "(cached) " >&6
7633else $as_nop
7634  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7635/* end confdefs.h.  */
7636int i;
7637_ACEOF
7638if ac_fn_c_try_compile "$LINENO"
7639then :
7640  xorg_cv_cc_flag_unused_command_line_argument=yes
7641else $as_nop
7642  xorg_cv_cc_flag_unused_command_line_argument=no
7643fi
7644rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7645fi
7646{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7647printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7648	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7649	CFLAGS="$xorg_testset_save_CFLAGS"
7650fi
7651
7652found="no"
7653
7654	if test $found = "no" ; then
7655		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7656			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7657		fi
7658
7659		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7660			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7661		fi
7662
7663		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
7664
7665		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
7666printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
7667		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
7668		if eval test \${$cacheid+y}
7669then :
7670  printf %s "(cached) " >&6
7671else $as_nop
7672  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7673/* end confdefs.h.  */
7674int i;
7675int
7676main (void)
7677{
7678
7679  ;
7680  return 0;
7681}
7682_ACEOF
7683if ac_fn_c_try_link "$LINENO"
7684then :
7685  eval $cacheid=yes
7686else $as_nop
7687  eval $cacheid=no
7688fi
7689rm -f core conftest.err conftest.$ac_objext conftest.beam \
7690    conftest$ac_exeext conftest.$ac_ext
7691fi
7692
7693
7694		CFLAGS="$xorg_testset_save_CFLAGS"
7695
7696		eval supported=\$$cacheid
7697		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7698printf "%s\n" "$supported" >&6; }
7699		if test "$supported" = "yes" ; then
7700			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
7701			found="yes"
7702		fi
7703	fi
7704
7705
7706
7707
7708
7709# This chunk adds additional warnings that could catch undesired effects.
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723xorg_testset_save_CFLAGS="$CFLAGS"
7724
7725if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7726	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7727	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7728printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7729if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7730then :
7731  printf %s "(cached) " >&6
7732else $as_nop
7733  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7734/* end confdefs.h.  */
7735int i;
7736_ACEOF
7737if ac_fn_c_try_compile "$LINENO"
7738then :
7739  xorg_cv_cc_flag_unknown_warning_option=yes
7740else $as_nop
7741  xorg_cv_cc_flag_unknown_warning_option=no
7742fi
7743rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7744fi
7745{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7746printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7747	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7748	CFLAGS="$xorg_testset_save_CFLAGS"
7749fi
7750
7751if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7752	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7753		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7754	fi
7755	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7756	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7757printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7758if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7759then :
7760  printf %s "(cached) " >&6
7761else $as_nop
7762  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7763/* end confdefs.h.  */
7764int i;
7765_ACEOF
7766if ac_fn_c_try_compile "$LINENO"
7767then :
7768  xorg_cv_cc_flag_unused_command_line_argument=yes
7769else $as_nop
7770  xorg_cv_cc_flag_unused_command_line_argument=no
7771fi
7772rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7773fi
7774{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7775printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7776	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7777	CFLAGS="$xorg_testset_save_CFLAGS"
7778fi
7779
7780found="no"
7781
7782	if test $found = "no" ; then
7783		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7784			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7785		fi
7786
7787		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7788			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7789		fi
7790
7791		CFLAGS="$CFLAGS -Wunused"
7792
7793		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
7794printf %s "checking if $CC supports -Wunused... " >&6; }
7795		cacheid=xorg_cv_cc_flag__Wunused
7796		if eval test \${$cacheid+y}
7797then :
7798  printf %s "(cached) " >&6
7799else $as_nop
7800  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7801/* end confdefs.h.  */
7802int i;
7803int
7804main (void)
7805{
7806
7807  ;
7808  return 0;
7809}
7810_ACEOF
7811if ac_fn_c_try_link "$LINENO"
7812then :
7813  eval $cacheid=yes
7814else $as_nop
7815  eval $cacheid=no
7816fi
7817rm -f core conftest.err conftest.$ac_objext conftest.beam \
7818    conftest$ac_exeext conftest.$ac_ext
7819fi
7820
7821
7822		CFLAGS="$xorg_testset_save_CFLAGS"
7823
7824		eval supported=\$$cacheid
7825		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7826printf "%s\n" "$supported" >&6; }
7827		if test "$supported" = "yes" ; then
7828			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
7829			found="yes"
7830		fi
7831	fi
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847xorg_testset_save_CFLAGS="$CFLAGS"
7848
7849if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7850	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7851	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7852printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7853if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7854then :
7855  printf %s "(cached) " >&6
7856else $as_nop
7857  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7858/* end confdefs.h.  */
7859int i;
7860_ACEOF
7861if ac_fn_c_try_compile "$LINENO"
7862then :
7863  xorg_cv_cc_flag_unknown_warning_option=yes
7864else $as_nop
7865  xorg_cv_cc_flag_unknown_warning_option=no
7866fi
7867rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7868fi
7869{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7870printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7871	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7872	CFLAGS="$xorg_testset_save_CFLAGS"
7873fi
7874
7875if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7876	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7877		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7878	fi
7879	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7880	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7881printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7882if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7883then :
7884  printf %s "(cached) " >&6
7885else $as_nop
7886  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7887/* end confdefs.h.  */
7888int i;
7889_ACEOF
7890if ac_fn_c_try_compile "$LINENO"
7891then :
7892  xorg_cv_cc_flag_unused_command_line_argument=yes
7893else $as_nop
7894  xorg_cv_cc_flag_unused_command_line_argument=no
7895fi
7896rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7897fi
7898{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7899printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7900	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7901	CFLAGS="$xorg_testset_save_CFLAGS"
7902fi
7903
7904found="no"
7905
7906	if test $found = "no" ; then
7907		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7908			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7909		fi
7910
7911		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7912			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7913		fi
7914
7915		CFLAGS="$CFLAGS -Wuninitialized"
7916
7917		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
7918printf %s "checking if $CC supports -Wuninitialized... " >&6; }
7919		cacheid=xorg_cv_cc_flag__Wuninitialized
7920		if eval test \${$cacheid+y}
7921then :
7922  printf %s "(cached) " >&6
7923else $as_nop
7924  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7925/* end confdefs.h.  */
7926int i;
7927int
7928main (void)
7929{
7930
7931  ;
7932  return 0;
7933}
7934_ACEOF
7935if ac_fn_c_try_link "$LINENO"
7936then :
7937  eval $cacheid=yes
7938else $as_nop
7939  eval $cacheid=no
7940fi
7941rm -f core conftest.err conftest.$ac_objext conftest.beam \
7942    conftest$ac_exeext conftest.$ac_ext
7943fi
7944
7945
7946		CFLAGS="$xorg_testset_save_CFLAGS"
7947
7948		eval supported=\$$cacheid
7949		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7950printf "%s\n" "$supported" >&6; }
7951		if test "$supported" = "yes" ; then
7952			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
7953			found="yes"
7954		fi
7955	fi
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970
7971xorg_testset_save_CFLAGS="$CFLAGS"
7972
7973if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7974	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7975	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7976printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7977if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7978then :
7979  printf %s "(cached) " >&6
7980else $as_nop
7981  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7982/* end confdefs.h.  */
7983int i;
7984_ACEOF
7985if ac_fn_c_try_compile "$LINENO"
7986then :
7987  xorg_cv_cc_flag_unknown_warning_option=yes
7988else $as_nop
7989  xorg_cv_cc_flag_unknown_warning_option=no
7990fi
7991rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7992fi
7993{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7994printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7995	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7996	CFLAGS="$xorg_testset_save_CFLAGS"
7997fi
7998
7999if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8000	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8001		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8002	fi
8003	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8004	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8005printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8006if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8007then :
8008  printf %s "(cached) " >&6
8009else $as_nop
8010  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8011/* end confdefs.h.  */
8012int i;
8013_ACEOF
8014if ac_fn_c_try_compile "$LINENO"
8015then :
8016  xorg_cv_cc_flag_unused_command_line_argument=yes
8017else $as_nop
8018  xorg_cv_cc_flag_unused_command_line_argument=no
8019fi
8020rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8021fi
8022{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8023printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8024	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8025	CFLAGS="$xorg_testset_save_CFLAGS"
8026fi
8027
8028found="no"
8029
8030	if test $found = "no" ; then
8031		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8032			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8033		fi
8034
8035		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8036			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8037		fi
8038
8039		CFLAGS="$CFLAGS -Wshadow"
8040
8041		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
8042printf %s "checking if $CC supports -Wshadow... " >&6; }
8043		cacheid=xorg_cv_cc_flag__Wshadow
8044		if eval test \${$cacheid+y}
8045then :
8046  printf %s "(cached) " >&6
8047else $as_nop
8048  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8049/* end confdefs.h.  */
8050int i;
8051int
8052main (void)
8053{
8054
8055  ;
8056  return 0;
8057}
8058_ACEOF
8059if ac_fn_c_try_link "$LINENO"
8060then :
8061  eval $cacheid=yes
8062else $as_nop
8063  eval $cacheid=no
8064fi
8065rm -f core conftest.err conftest.$ac_objext conftest.beam \
8066    conftest$ac_exeext conftest.$ac_ext
8067fi
8068
8069
8070		CFLAGS="$xorg_testset_save_CFLAGS"
8071
8072		eval supported=\$$cacheid
8073		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8074printf "%s\n" "$supported" >&6; }
8075		if test "$supported" = "yes" ; then
8076			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
8077			found="yes"
8078		fi
8079	fi
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095xorg_testset_save_CFLAGS="$CFLAGS"
8096
8097if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8098	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8099	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8100printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8101if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8102then :
8103  printf %s "(cached) " >&6
8104else $as_nop
8105  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8106/* end confdefs.h.  */
8107int i;
8108_ACEOF
8109if ac_fn_c_try_compile "$LINENO"
8110then :
8111  xorg_cv_cc_flag_unknown_warning_option=yes
8112else $as_nop
8113  xorg_cv_cc_flag_unknown_warning_option=no
8114fi
8115rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8116fi
8117{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8118printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8119	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8120	CFLAGS="$xorg_testset_save_CFLAGS"
8121fi
8122
8123if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8124	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8125		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8126	fi
8127	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8128	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8129printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8130if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8131then :
8132  printf %s "(cached) " >&6
8133else $as_nop
8134  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8135/* end confdefs.h.  */
8136int i;
8137_ACEOF
8138if ac_fn_c_try_compile "$LINENO"
8139then :
8140  xorg_cv_cc_flag_unused_command_line_argument=yes
8141else $as_nop
8142  xorg_cv_cc_flag_unused_command_line_argument=no
8143fi
8144rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8145fi
8146{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8147printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8148	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8149	CFLAGS="$xorg_testset_save_CFLAGS"
8150fi
8151
8152found="no"
8153
8154	if test $found = "no" ; then
8155		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8156			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8157		fi
8158
8159		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8160			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8161		fi
8162
8163		CFLAGS="$CFLAGS -Wmissing-noreturn"
8164
8165		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
8166printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
8167		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
8168		if eval test \${$cacheid+y}
8169then :
8170  printf %s "(cached) " >&6
8171else $as_nop
8172  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8173/* end confdefs.h.  */
8174int i;
8175int
8176main (void)
8177{
8178
8179  ;
8180  return 0;
8181}
8182_ACEOF
8183if ac_fn_c_try_link "$LINENO"
8184then :
8185  eval $cacheid=yes
8186else $as_nop
8187  eval $cacheid=no
8188fi
8189rm -f core conftest.err conftest.$ac_objext conftest.beam \
8190    conftest$ac_exeext conftest.$ac_ext
8191fi
8192
8193
8194		CFLAGS="$xorg_testset_save_CFLAGS"
8195
8196		eval supported=\$$cacheid
8197		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8198printf "%s\n" "$supported" >&6; }
8199		if test "$supported" = "yes" ; then
8200			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
8201			found="yes"
8202		fi
8203	fi
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219xorg_testset_save_CFLAGS="$CFLAGS"
8220
8221if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8222	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8223	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8224printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8225if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8226then :
8227  printf %s "(cached) " >&6
8228else $as_nop
8229  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8230/* end confdefs.h.  */
8231int i;
8232_ACEOF
8233if ac_fn_c_try_compile "$LINENO"
8234then :
8235  xorg_cv_cc_flag_unknown_warning_option=yes
8236else $as_nop
8237  xorg_cv_cc_flag_unknown_warning_option=no
8238fi
8239rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8240fi
8241{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8242printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8243	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8244	CFLAGS="$xorg_testset_save_CFLAGS"
8245fi
8246
8247if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8248	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8249		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8250	fi
8251	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8252	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8253printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8254if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8255then :
8256  printf %s "(cached) " >&6
8257else $as_nop
8258  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8259/* end confdefs.h.  */
8260int i;
8261_ACEOF
8262if ac_fn_c_try_compile "$LINENO"
8263then :
8264  xorg_cv_cc_flag_unused_command_line_argument=yes
8265else $as_nop
8266  xorg_cv_cc_flag_unused_command_line_argument=no
8267fi
8268rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8269fi
8270{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8271printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8272	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8273	CFLAGS="$xorg_testset_save_CFLAGS"
8274fi
8275
8276found="no"
8277
8278	if test $found = "no" ; then
8279		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8280			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8281		fi
8282
8283		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8284			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8285		fi
8286
8287		CFLAGS="$CFLAGS -Wmissing-format-attribute"
8288
8289		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
8290printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
8291		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
8292		if eval test \${$cacheid+y}
8293then :
8294  printf %s "(cached) " >&6
8295else $as_nop
8296  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8297/* end confdefs.h.  */
8298int i;
8299int
8300main (void)
8301{
8302
8303  ;
8304  return 0;
8305}
8306_ACEOF
8307if ac_fn_c_try_link "$LINENO"
8308then :
8309  eval $cacheid=yes
8310else $as_nop
8311  eval $cacheid=no
8312fi
8313rm -f core conftest.err conftest.$ac_objext conftest.beam \
8314    conftest$ac_exeext conftest.$ac_ext
8315fi
8316
8317
8318		CFLAGS="$xorg_testset_save_CFLAGS"
8319
8320		eval supported=\$$cacheid
8321		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8322printf "%s\n" "$supported" >&6; }
8323		if test "$supported" = "yes" ; then
8324			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
8325			found="yes"
8326		fi
8327	fi
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343xorg_testset_save_CFLAGS="$CFLAGS"
8344
8345if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8346	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8347	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8348printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8349if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8350then :
8351  printf %s "(cached) " >&6
8352else $as_nop
8353  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8354/* end confdefs.h.  */
8355int i;
8356_ACEOF
8357if ac_fn_c_try_compile "$LINENO"
8358then :
8359  xorg_cv_cc_flag_unknown_warning_option=yes
8360else $as_nop
8361  xorg_cv_cc_flag_unknown_warning_option=no
8362fi
8363rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8364fi
8365{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8366printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8367	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8368	CFLAGS="$xorg_testset_save_CFLAGS"
8369fi
8370
8371if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8372	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8373		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8374	fi
8375	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8376	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8377printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8378if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8379then :
8380  printf %s "(cached) " >&6
8381else $as_nop
8382  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8383/* end confdefs.h.  */
8384int i;
8385_ACEOF
8386if ac_fn_c_try_compile "$LINENO"
8387then :
8388  xorg_cv_cc_flag_unused_command_line_argument=yes
8389else $as_nop
8390  xorg_cv_cc_flag_unused_command_line_argument=no
8391fi
8392rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8393fi
8394{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8395printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8396	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8397	CFLAGS="$xorg_testset_save_CFLAGS"
8398fi
8399
8400found="no"
8401
8402	if test $found = "no" ; then
8403		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8404			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8405		fi
8406
8407		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8408			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8409		fi
8410
8411		CFLAGS="$CFLAGS -Wredundant-decls"
8412
8413		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
8414printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
8415		cacheid=xorg_cv_cc_flag__Wredundant_decls
8416		if eval test \${$cacheid+y}
8417then :
8418  printf %s "(cached) " >&6
8419else $as_nop
8420  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8421/* end confdefs.h.  */
8422int i;
8423int
8424main (void)
8425{
8426
8427  ;
8428  return 0;
8429}
8430_ACEOF
8431if ac_fn_c_try_link "$LINENO"
8432then :
8433  eval $cacheid=yes
8434else $as_nop
8435  eval $cacheid=no
8436fi
8437rm -f core conftest.err conftest.$ac_objext conftest.beam \
8438    conftest$ac_exeext conftest.$ac_ext
8439fi
8440
8441
8442		CFLAGS="$xorg_testset_save_CFLAGS"
8443
8444		eval supported=\$$cacheid
8445		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8446printf "%s\n" "$supported" >&6; }
8447		if test "$supported" = "yes" ; then
8448			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
8449			found="yes"
8450		fi
8451	fi
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467xorg_testset_save_CFLAGS="$CFLAGS"
8468
8469if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8470	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8471	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8472printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8473if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8474then :
8475  printf %s "(cached) " >&6
8476else $as_nop
8477  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8478/* end confdefs.h.  */
8479int i;
8480_ACEOF
8481if ac_fn_c_try_compile "$LINENO"
8482then :
8483  xorg_cv_cc_flag_unknown_warning_option=yes
8484else $as_nop
8485  xorg_cv_cc_flag_unknown_warning_option=no
8486fi
8487rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8488fi
8489{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8490printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8491	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8492	CFLAGS="$xorg_testset_save_CFLAGS"
8493fi
8494
8495if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8496	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8497		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8498	fi
8499	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8500	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8501printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8502if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8503then :
8504  printf %s "(cached) " >&6
8505else $as_nop
8506  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8507/* end confdefs.h.  */
8508int i;
8509_ACEOF
8510if ac_fn_c_try_compile "$LINENO"
8511then :
8512  xorg_cv_cc_flag_unused_command_line_argument=yes
8513else $as_nop
8514  xorg_cv_cc_flag_unused_command_line_argument=no
8515fi
8516rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8517fi
8518{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8519printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8520	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8521	CFLAGS="$xorg_testset_save_CFLAGS"
8522fi
8523
8524found="no"
8525
8526	if test $found = "no" ; then
8527		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8528			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8529		fi
8530
8531		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8532			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8533		fi
8534
8535		CFLAGS="$CFLAGS -Wlogical-op"
8536
8537		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
8538printf %s "checking if $CC supports -Wlogical-op... " >&6; }
8539		cacheid=xorg_cv_cc_flag__Wlogical_op
8540		if eval test \${$cacheid+y}
8541then :
8542  printf %s "(cached) " >&6
8543else $as_nop
8544  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8545/* end confdefs.h.  */
8546int i;
8547int
8548main (void)
8549{
8550
8551  ;
8552  return 0;
8553}
8554_ACEOF
8555if ac_fn_c_try_link "$LINENO"
8556then :
8557  eval $cacheid=yes
8558else $as_nop
8559  eval $cacheid=no
8560fi
8561rm -f core conftest.err conftest.$ac_objext conftest.beam \
8562    conftest$ac_exeext conftest.$ac_ext
8563fi
8564
8565
8566		CFLAGS="$xorg_testset_save_CFLAGS"
8567
8568		eval supported=\$$cacheid
8569		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8570printf "%s\n" "$supported" >&6; }
8571		if test "$supported" = "yes" ; then
8572			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
8573			found="yes"
8574		fi
8575	fi
8576
8577
8578
8579# These are currently disabled because they are noisy.  They will be enabled
8580# in the future once the codebase is sufficiently modernized to silence
8581# them.  For now, I don't want them to drown out the other warnings.
8582# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
8583# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
8584# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
8585
8586# Turn some warnings into errors, so we don't accidentally get successful builds
8587# when there are problems that should be fixed.
8588
8589if test "x$SELECTIVE_WERROR" = "xyes" ; then
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603xorg_testset_save_CFLAGS="$CFLAGS"
8604
8605if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8606	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8607	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8608printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8609if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8610then :
8611  printf %s "(cached) " >&6
8612else $as_nop
8613  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8614/* end confdefs.h.  */
8615int i;
8616_ACEOF
8617if ac_fn_c_try_compile "$LINENO"
8618then :
8619  xorg_cv_cc_flag_unknown_warning_option=yes
8620else $as_nop
8621  xorg_cv_cc_flag_unknown_warning_option=no
8622fi
8623rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8624fi
8625{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8626printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8627	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8628	CFLAGS="$xorg_testset_save_CFLAGS"
8629fi
8630
8631if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8632	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8633		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8634	fi
8635	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8636	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8637printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8638if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8639then :
8640  printf %s "(cached) " >&6
8641else $as_nop
8642  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8643/* end confdefs.h.  */
8644int i;
8645_ACEOF
8646if ac_fn_c_try_compile "$LINENO"
8647then :
8648  xorg_cv_cc_flag_unused_command_line_argument=yes
8649else $as_nop
8650  xorg_cv_cc_flag_unused_command_line_argument=no
8651fi
8652rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8653fi
8654{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8655printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8656	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8657	CFLAGS="$xorg_testset_save_CFLAGS"
8658fi
8659
8660found="no"
8661
8662	if test $found = "no" ; then
8663		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8664			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8665		fi
8666
8667		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8668			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8669		fi
8670
8671		CFLAGS="$CFLAGS -Werror=implicit"
8672
8673		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
8674printf %s "checking if $CC supports -Werror=implicit... " >&6; }
8675		cacheid=xorg_cv_cc_flag__Werror_implicit
8676		if eval test \${$cacheid+y}
8677then :
8678  printf %s "(cached) " >&6
8679else $as_nop
8680  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8681/* end confdefs.h.  */
8682int i;
8683int
8684main (void)
8685{
8686
8687  ;
8688  return 0;
8689}
8690_ACEOF
8691if ac_fn_c_try_link "$LINENO"
8692then :
8693  eval $cacheid=yes
8694else $as_nop
8695  eval $cacheid=no
8696fi
8697rm -f core conftest.err conftest.$ac_objext conftest.beam \
8698    conftest$ac_exeext conftest.$ac_ext
8699fi
8700
8701
8702		CFLAGS="$xorg_testset_save_CFLAGS"
8703
8704		eval supported=\$$cacheid
8705		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8706printf "%s\n" "$supported" >&6; }
8707		if test "$supported" = "yes" ; then
8708			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
8709			found="yes"
8710		fi
8711	fi
8712
8713	if test $found = "no" ; then
8714		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8715			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8716		fi
8717
8718		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8719			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8720		fi
8721
8722		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
8723
8724		{ 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
8725printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
8726		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
8727		if eval test \${$cacheid+y}
8728then :
8729  printf %s "(cached) " >&6
8730else $as_nop
8731  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8732/* end confdefs.h.  */
8733int i;
8734int
8735main (void)
8736{
8737
8738  ;
8739  return 0;
8740}
8741_ACEOF
8742if ac_fn_c_try_link "$LINENO"
8743then :
8744  eval $cacheid=yes
8745else $as_nop
8746  eval $cacheid=no
8747fi
8748rm -f core conftest.err conftest.$ac_objext conftest.beam \
8749    conftest$ac_exeext conftest.$ac_ext
8750fi
8751
8752
8753		CFLAGS="$xorg_testset_save_CFLAGS"
8754
8755		eval supported=\$$cacheid
8756		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8757printf "%s\n" "$supported" >&6; }
8758		if test "$supported" = "yes" ; then
8759			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
8760			found="yes"
8761		fi
8762	fi
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778xorg_testset_save_CFLAGS="$CFLAGS"
8779
8780if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8781	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8782	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8783printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8784if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8785then :
8786  printf %s "(cached) " >&6
8787else $as_nop
8788  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8789/* end confdefs.h.  */
8790int i;
8791_ACEOF
8792if ac_fn_c_try_compile "$LINENO"
8793then :
8794  xorg_cv_cc_flag_unknown_warning_option=yes
8795else $as_nop
8796  xorg_cv_cc_flag_unknown_warning_option=no
8797fi
8798rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8799fi
8800{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8801printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8802	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8803	CFLAGS="$xorg_testset_save_CFLAGS"
8804fi
8805
8806if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8807	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8808		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8809	fi
8810	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8811	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8812printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8813if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8814then :
8815  printf %s "(cached) " >&6
8816else $as_nop
8817  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8818/* end confdefs.h.  */
8819int i;
8820_ACEOF
8821if ac_fn_c_try_compile "$LINENO"
8822then :
8823  xorg_cv_cc_flag_unused_command_line_argument=yes
8824else $as_nop
8825  xorg_cv_cc_flag_unused_command_line_argument=no
8826fi
8827rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8828fi
8829{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8830printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8831	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8832	CFLAGS="$xorg_testset_save_CFLAGS"
8833fi
8834
8835found="no"
8836
8837	if test $found = "no" ; then
8838		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8839			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8840		fi
8841
8842		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8843			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8844		fi
8845
8846		CFLAGS="$CFLAGS -Werror=nonnull"
8847
8848		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
8849printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
8850		cacheid=xorg_cv_cc_flag__Werror_nonnull
8851		if eval test \${$cacheid+y}
8852then :
8853  printf %s "(cached) " >&6
8854else $as_nop
8855  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8856/* end confdefs.h.  */
8857int i;
8858int
8859main (void)
8860{
8861
8862  ;
8863  return 0;
8864}
8865_ACEOF
8866if ac_fn_c_try_link "$LINENO"
8867then :
8868  eval $cacheid=yes
8869else $as_nop
8870  eval $cacheid=no
8871fi
8872rm -f core conftest.err conftest.$ac_objext conftest.beam \
8873    conftest$ac_exeext conftest.$ac_ext
8874fi
8875
8876
8877		CFLAGS="$xorg_testset_save_CFLAGS"
8878
8879		eval supported=\$$cacheid
8880		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8881printf "%s\n" "$supported" >&6; }
8882		if test "$supported" = "yes" ; then
8883			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
8884			found="yes"
8885		fi
8886	fi
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902xorg_testset_save_CFLAGS="$CFLAGS"
8903
8904if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8905	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8906	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8907printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8908if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8909then :
8910  printf %s "(cached) " >&6
8911else $as_nop
8912  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8913/* end confdefs.h.  */
8914int i;
8915_ACEOF
8916if ac_fn_c_try_compile "$LINENO"
8917then :
8918  xorg_cv_cc_flag_unknown_warning_option=yes
8919else $as_nop
8920  xorg_cv_cc_flag_unknown_warning_option=no
8921fi
8922rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8923fi
8924{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8925printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8926	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8927	CFLAGS="$xorg_testset_save_CFLAGS"
8928fi
8929
8930if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8931	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8932		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8933	fi
8934	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8935	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8936printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8937if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8938then :
8939  printf %s "(cached) " >&6
8940else $as_nop
8941  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8942/* end confdefs.h.  */
8943int i;
8944_ACEOF
8945if ac_fn_c_try_compile "$LINENO"
8946then :
8947  xorg_cv_cc_flag_unused_command_line_argument=yes
8948else $as_nop
8949  xorg_cv_cc_flag_unused_command_line_argument=no
8950fi
8951rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8952fi
8953{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8954printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8955	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8956	CFLAGS="$xorg_testset_save_CFLAGS"
8957fi
8958
8959found="no"
8960
8961	if test $found = "no" ; then
8962		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8963			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8964		fi
8965
8966		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8967			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8968		fi
8969
8970		CFLAGS="$CFLAGS -Werror=init-self"
8971
8972		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
8973printf %s "checking if $CC supports -Werror=init-self... " >&6; }
8974		cacheid=xorg_cv_cc_flag__Werror_init_self
8975		if eval test \${$cacheid+y}
8976then :
8977  printf %s "(cached) " >&6
8978else $as_nop
8979  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8980/* end confdefs.h.  */
8981int i;
8982int
8983main (void)
8984{
8985
8986  ;
8987  return 0;
8988}
8989_ACEOF
8990if ac_fn_c_try_link "$LINENO"
8991then :
8992  eval $cacheid=yes
8993else $as_nop
8994  eval $cacheid=no
8995fi
8996rm -f core conftest.err conftest.$ac_objext conftest.beam \
8997    conftest$ac_exeext conftest.$ac_ext
8998fi
8999
9000
9001		CFLAGS="$xorg_testset_save_CFLAGS"
9002
9003		eval supported=\$$cacheid
9004		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9005printf "%s\n" "$supported" >&6; }
9006		if test "$supported" = "yes" ; then
9007			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
9008			found="yes"
9009		fi
9010	fi
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026xorg_testset_save_CFLAGS="$CFLAGS"
9027
9028if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9029	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9030	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9031printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9032if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9033then :
9034  printf %s "(cached) " >&6
9035else $as_nop
9036  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9037/* end confdefs.h.  */
9038int i;
9039_ACEOF
9040if ac_fn_c_try_compile "$LINENO"
9041then :
9042  xorg_cv_cc_flag_unknown_warning_option=yes
9043else $as_nop
9044  xorg_cv_cc_flag_unknown_warning_option=no
9045fi
9046rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9047fi
9048{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9049printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9050	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9051	CFLAGS="$xorg_testset_save_CFLAGS"
9052fi
9053
9054if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9055	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9056		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9057	fi
9058	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9059	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9060printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9061if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9062then :
9063  printf %s "(cached) " >&6
9064else $as_nop
9065  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9066/* end confdefs.h.  */
9067int i;
9068_ACEOF
9069if ac_fn_c_try_compile "$LINENO"
9070then :
9071  xorg_cv_cc_flag_unused_command_line_argument=yes
9072else $as_nop
9073  xorg_cv_cc_flag_unused_command_line_argument=no
9074fi
9075rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9076fi
9077{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9078printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9079	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9080	CFLAGS="$xorg_testset_save_CFLAGS"
9081fi
9082
9083found="no"
9084
9085	if test $found = "no" ; then
9086		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9087			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9088		fi
9089
9090		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9091			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9092		fi
9093
9094		CFLAGS="$CFLAGS -Werror=main"
9095
9096		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
9097printf %s "checking if $CC supports -Werror=main... " >&6; }
9098		cacheid=xorg_cv_cc_flag__Werror_main
9099		if eval test \${$cacheid+y}
9100then :
9101  printf %s "(cached) " >&6
9102else $as_nop
9103  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9104/* end confdefs.h.  */
9105int i;
9106int
9107main (void)
9108{
9109
9110  ;
9111  return 0;
9112}
9113_ACEOF
9114if ac_fn_c_try_link "$LINENO"
9115then :
9116  eval $cacheid=yes
9117else $as_nop
9118  eval $cacheid=no
9119fi
9120rm -f core conftest.err conftest.$ac_objext conftest.beam \
9121    conftest$ac_exeext conftest.$ac_ext
9122fi
9123
9124
9125		CFLAGS="$xorg_testset_save_CFLAGS"
9126
9127		eval supported=\$$cacheid
9128		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9129printf "%s\n" "$supported" >&6; }
9130		if test "$supported" = "yes" ; then
9131			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
9132			found="yes"
9133		fi
9134	fi
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150xorg_testset_save_CFLAGS="$CFLAGS"
9151
9152if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9153	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9154	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9155printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9156if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9157then :
9158  printf %s "(cached) " >&6
9159else $as_nop
9160  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9161/* end confdefs.h.  */
9162int i;
9163_ACEOF
9164if ac_fn_c_try_compile "$LINENO"
9165then :
9166  xorg_cv_cc_flag_unknown_warning_option=yes
9167else $as_nop
9168  xorg_cv_cc_flag_unknown_warning_option=no
9169fi
9170rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9171fi
9172{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9173printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9174	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9175	CFLAGS="$xorg_testset_save_CFLAGS"
9176fi
9177
9178if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9179	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9180		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9181	fi
9182	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9183	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9184printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9185if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9186then :
9187  printf %s "(cached) " >&6
9188else $as_nop
9189  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9190/* end confdefs.h.  */
9191int i;
9192_ACEOF
9193if ac_fn_c_try_compile "$LINENO"
9194then :
9195  xorg_cv_cc_flag_unused_command_line_argument=yes
9196else $as_nop
9197  xorg_cv_cc_flag_unused_command_line_argument=no
9198fi
9199rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9200fi
9201{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9202printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9203	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9204	CFLAGS="$xorg_testset_save_CFLAGS"
9205fi
9206
9207found="no"
9208
9209	if test $found = "no" ; then
9210		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9211			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9212		fi
9213
9214		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9215			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9216		fi
9217
9218		CFLAGS="$CFLAGS -Werror=missing-braces"
9219
9220		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
9221printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
9222		cacheid=xorg_cv_cc_flag__Werror_missing_braces
9223		if eval test \${$cacheid+y}
9224then :
9225  printf %s "(cached) " >&6
9226else $as_nop
9227  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9228/* end confdefs.h.  */
9229int i;
9230int
9231main (void)
9232{
9233
9234  ;
9235  return 0;
9236}
9237_ACEOF
9238if ac_fn_c_try_link "$LINENO"
9239then :
9240  eval $cacheid=yes
9241else $as_nop
9242  eval $cacheid=no
9243fi
9244rm -f core conftest.err conftest.$ac_objext conftest.beam \
9245    conftest$ac_exeext conftest.$ac_ext
9246fi
9247
9248
9249		CFLAGS="$xorg_testset_save_CFLAGS"
9250
9251		eval supported=\$$cacheid
9252		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9253printf "%s\n" "$supported" >&6; }
9254		if test "$supported" = "yes" ; then
9255			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
9256			found="yes"
9257		fi
9258	fi
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274xorg_testset_save_CFLAGS="$CFLAGS"
9275
9276if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9277	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9278	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9279printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9280if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9281then :
9282  printf %s "(cached) " >&6
9283else $as_nop
9284  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9285/* end confdefs.h.  */
9286int i;
9287_ACEOF
9288if ac_fn_c_try_compile "$LINENO"
9289then :
9290  xorg_cv_cc_flag_unknown_warning_option=yes
9291else $as_nop
9292  xorg_cv_cc_flag_unknown_warning_option=no
9293fi
9294rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9295fi
9296{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9297printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9298	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9299	CFLAGS="$xorg_testset_save_CFLAGS"
9300fi
9301
9302if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9303	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9304		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9305	fi
9306	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9307	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9308printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9309if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9310then :
9311  printf %s "(cached) " >&6
9312else $as_nop
9313  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9314/* end confdefs.h.  */
9315int i;
9316_ACEOF
9317if ac_fn_c_try_compile "$LINENO"
9318then :
9319  xorg_cv_cc_flag_unused_command_line_argument=yes
9320else $as_nop
9321  xorg_cv_cc_flag_unused_command_line_argument=no
9322fi
9323rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9324fi
9325{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9326printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9327	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9328	CFLAGS="$xorg_testset_save_CFLAGS"
9329fi
9330
9331found="no"
9332
9333	if test $found = "no" ; then
9334		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9335			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9336		fi
9337
9338		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9339			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9340		fi
9341
9342		CFLAGS="$CFLAGS -Werror=sequence-point"
9343
9344		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
9345printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
9346		cacheid=xorg_cv_cc_flag__Werror_sequence_point
9347		if eval test \${$cacheid+y}
9348then :
9349  printf %s "(cached) " >&6
9350else $as_nop
9351  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9352/* end confdefs.h.  */
9353int i;
9354int
9355main (void)
9356{
9357
9358  ;
9359  return 0;
9360}
9361_ACEOF
9362if ac_fn_c_try_link "$LINENO"
9363then :
9364  eval $cacheid=yes
9365else $as_nop
9366  eval $cacheid=no
9367fi
9368rm -f core conftest.err conftest.$ac_objext conftest.beam \
9369    conftest$ac_exeext conftest.$ac_ext
9370fi
9371
9372
9373		CFLAGS="$xorg_testset_save_CFLAGS"
9374
9375		eval supported=\$$cacheid
9376		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9377printf "%s\n" "$supported" >&6; }
9378		if test "$supported" = "yes" ; then
9379			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
9380			found="yes"
9381		fi
9382	fi
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398xorg_testset_save_CFLAGS="$CFLAGS"
9399
9400if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9401	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9402	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9403printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9404if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9405then :
9406  printf %s "(cached) " >&6
9407else $as_nop
9408  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9409/* end confdefs.h.  */
9410int i;
9411_ACEOF
9412if ac_fn_c_try_compile "$LINENO"
9413then :
9414  xorg_cv_cc_flag_unknown_warning_option=yes
9415else $as_nop
9416  xorg_cv_cc_flag_unknown_warning_option=no
9417fi
9418rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9419fi
9420{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9421printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9422	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9423	CFLAGS="$xorg_testset_save_CFLAGS"
9424fi
9425
9426if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9427	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9428		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9429	fi
9430	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9431	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9432printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9433if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9434then :
9435  printf %s "(cached) " >&6
9436else $as_nop
9437  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9438/* end confdefs.h.  */
9439int i;
9440_ACEOF
9441if ac_fn_c_try_compile "$LINENO"
9442then :
9443  xorg_cv_cc_flag_unused_command_line_argument=yes
9444else $as_nop
9445  xorg_cv_cc_flag_unused_command_line_argument=no
9446fi
9447rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9448fi
9449{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9450printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9451	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9452	CFLAGS="$xorg_testset_save_CFLAGS"
9453fi
9454
9455found="no"
9456
9457	if test $found = "no" ; then
9458		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9459			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9460		fi
9461
9462		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9463			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9464		fi
9465
9466		CFLAGS="$CFLAGS -Werror=return-type"
9467
9468		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
9469printf %s "checking if $CC supports -Werror=return-type... " >&6; }
9470		cacheid=xorg_cv_cc_flag__Werror_return_type
9471		if eval test \${$cacheid+y}
9472then :
9473  printf %s "(cached) " >&6
9474else $as_nop
9475  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9476/* end confdefs.h.  */
9477int i;
9478int
9479main (void)
9480{
9481
9482  ;
9483  return 0;
9484}
9485_ACEOF
9486if ac_fn_c_try_link "$LINENO"
9487then :
9488  eval $cacheid=yes
9489else $as_nop
9490  eval $cacheid=no
9491fi
9492rm -f core conftest.err conftest.$ac_objext conftest.beam \
9493    conftest$ac_exeext conftest.$ac_ext
9494fi
9495
9496
9497		CFLAGS="$xorg_testset_save_CFLAGS"
9498
9499		eval supported=\$$cacheid
9500		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9501printf "%s\n" "$supported" >&6; }
9502		if test "$supported" = "yes" ; then
9503			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
9504			found="yes"
9505		fi
9506	fi
9507
9508	if test $found = "no" ; then
9509		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9510			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9511		fi
9512
9513		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9514			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9515		fi
9516
9517		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
9518
9519		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
9520printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
9521		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
9522		if eval test \${$cacheid+y}
9523then :
9524  printf %s "(cached) " >&6
9525else $as_nop
9526  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9527/* end confdefs.h.  */
9528int i;
9529int
9530main (void)
9531{
9532
9533  ;
9534  return 0;
9535}
9536_ACEOF
9537if ac_fn_c_try_link "$LINENO"
9538then :
9539  eval $cacheid=yes
9540else $as_nop
9541  eval $cacheid=no
9542fi
9543rm -f core conftest.err conftest.$ac_objext conftest.beam \
9544    conftest$ac_exeext conftest.$ac_ext
9545fi
9546
9547
9548		CFLAGS="$xorg_testset_save_CFLAGS"
9549
9550		eval supported=\$$cacheid
9551		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9552printf "%s\n" "$supported" >&6; }
9553		if test "$supported" = "yes" ; then
9554			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
9555			found="yes"
9556		fi
9557	fi
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573xorg_testset_save_CFLAGS="$CFLAGS"
9574
9575if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9576	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9577	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9578printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9579if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9580then :
9581  printf %s "(cached) " >&6
9582else $as_nop
9583  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9584/* end confdefs.h.  */
9585int i;
9586_ACEOF
9587if ac_fn_c_try_compile "$LINENO"
9588then :
9589  xorg_cv_cc_flag_unknown_warning_option=yes
9590else $as_nop
9591  xorg_cv_cc_flag_unknown_warning_option=no
9592fi
9593rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9594fi
9595{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9596printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9597	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9598	CFLAGS="$xorg_testset_save_CFLAGS"
9599fi
9600
9601if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9602	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9603		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9604	fi
9605	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9606	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9607printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9608if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9609then :
9610  printf %s "(cached) " >&6
9611else $as_nop
9612  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9613/* end confdefs.h.  */
9614int i;
9615_ACEOF
9616if ac_fn_c_try_compile "$LINENO"
9617then :
9618  xorg_cv_cc_flag_unused_command_line_argument=yes
9619else $as_nop
9620  xorg_cv_cc_flag_unused_command_line_argument=no
9621fi
9622rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9623fi
9624{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9625printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9626	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9627	CFLAGS="$xorg_testset_save_CFLAGS"
9628fi
9629
9630found="no"
9631
9632	if test $found = "no" ; then
9633		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9634			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9635		fi
9636
9637		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9638			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9639		fi
9640
9641		CFLAGS="$CFLAGS -Werror=trigraphs"
9642
9643		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
9644printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
9645		cacheid=xorg_cv_cc_flag__Werror_trigraphs
9646		if eval test \${$cacheid+y}
9647then :
9648  printf %s "(cached) " >&6
9649else $as_nop
9650  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9651/* end confdefs.h.  */
9652int i;
9653int
9654main (void)
9655{
9656
9657  ;
9658  return 0;
9659}
9660_ACEOF
9661if ac_fn_c_try_link "$LINENO"
9662then :
9663  eval $cacheid=yes
9664else $as_nop
9665  eval $cacheid=no
9666fi
9667rm -f core conftest.err conftest.$ac_objext conftest.beam \
9668    conftest$ac_exeext conftest.$ac_ext
9669fi
9670
9671
9672		CFLAGS="$xorg_testset_save_CFLAGS"
9673
9674		eval supported=\$$cacheid
9675		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9676printf "%s\n" "$supported" >&6; }
9677		if test "$supported" = "yes" ; then
9678			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
9679			found="yes"
9680		fi
9681	fi
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697xorg_testset_save_CFLAGS="$CFLAGS"
9698
9699if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9700	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9701	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9702printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9703if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9704then :
9705  printf %s "(cached) " >&6
9706else $as_nop
9707  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9708/* end confdefs.h.  */
9709int i;
9710_ACEOF
9711if ac_fn_c_try_compile "$LINENO"
9712then :
9713  xorg_cv_cc_flag_unknown_warning_option=yes
9714else $as_nop
9715  xorg_cv_cc_flag_unknown_warning_option=no
9716fi
9717rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9718fi
9719{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9720printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9721	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9722	CFLAGS="$xorg_testset_save_CFLAGS"
9723fi
9724
9725if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9726	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9727		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9728	fi
9729	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9730	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9731printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9732if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9733then :
9734  printf %s "(cached) " >&6
9735else $as_nop
9736  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9737/* end confdefs.h.  */
9738int i;
9739_ACEOF
9740if ac_fn_c_try_compile "$LINENO"
9741then :
9742  xorg_cv_cc_flag_unused_command_line_argument=yes
9743else $as_nop
9744  xorg_cv_cc_flag_unused_command_line_argument=no
9745fi
9746rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9747fi
9748{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9749printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9750	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9751	CFLAGS="$xorg_testset_save_CFLAGS"
9752fi
9753
9754found="no"
9755
9756	if test $found = "no" ; then
9757		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9758			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9759		fi
9760
9761		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9762			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9763		fi
9764
9765		CFLAGS="$CFLAGS -Werror=array-bounds"
9766
9767		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
9768printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
9769		cacheid=xorg_cv_cc_flag__Werror_array_bounds
9770		if eval test \${$cacheid+y}
9771then :
9772  printf %s "(cached) " >&6
9773else $as_nop
9774  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9775/* end confdefs.h.  */
9776int i;
9777int
9778main (void)
9779{
9780
9781  ;
9782  return 0;
9783}
9784_ACEOF
9785if ac_fn_c_try_link "$LINENO"
9786then :
9787  eval $cacheid=yes
9788else $as_nop
9789  eval $cacheid=no
9790fi
9791rm -f core conftest.err conftest.$ac_objext conftest.beam \
9792    conftest$ac_exeext conftest.$ac_ext
9793fi
9794
9795
9796		CFLAGS="$xorg_testset_save_CFLAGS"
9797
9798		eval supported=\$$cacheid
9799		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9800printf "%s\n" "$supported" >&6; }
9801		if test "$supported" = "yes" ; then
9802			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
9803			found="yes"
9804		fi
9805	fi
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821xorg_testset_save_CFLAGS="$CFLAGS"
9822
9823if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9824	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9825	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9826printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9827if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9828then :
9829  printf %s "(cached) " >&6
9830else $as_nop
9831  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9832/* end confdefs.h.  */
9833int i;
9834_ACEOF
9835if ac_fn_c_try_compile "$LINENO"
9836then :
9837  xorg_cv_cc_flag_unknown_warning_option=yes
9838else $as_nop
9839  xorg_cv_cc_flag_unknown_warning_option=no
9840fi
9841rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9842fi
9843{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9844printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9845	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9846	CFLAGS="$xorg_testset_save_CFLAGS"
9847fi
9848
9849if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9850	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9851		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9852	fi
9853	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9854	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9855printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9856if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9857then :
9858  printf %s "(cached) " >&6
9859else $as_nop
9860  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9861/* end confdefs.h.  */
9862int i;
9863_ACEOF
9864if ac_fn_c_try_compile "$LINENO"
9865then :
9866  xorg_cv_cc_flag_unused_command_line_argument=yes
9867else $as_nop
9868  xorg_cv_cc_flag_unused_command_line_argument=no
9869fi
9870rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9871fi
9872{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9873printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9874	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9875	CFLAGS="$xorg_testset_save_CFLAGS"
9876fi
9877
9878found="no"
9879
9880	if test $found = "no" ; then
9881		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9882			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9883		fi
9884
9885		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9886			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9887		fi
9888
9889		CFLAGS="$CFLAGS -Werror=write-strings"
9890
9891		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
9892printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
9893		cacheid=xorg_cv_cc_flag__Werror_write_strings
9894		if eval test \${$cacheid+y}
9895then :
9896  printf %s "(cached) " >&6
9897else $as_nop
9898  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9899/* end confdefs.h.  */
9900int i;
9901int
9902main (void)
9903{
9904
9905  ;
9906  return 0;
9907}
9908_ACEOF
9909if ac_fn_c_try_link "$LINENO"
9910then :
9911  eval $cacheid=yes
9912else $as_nop
9913  eval $cacheid=no
9914fi
9915rm -f core conftest.err conftest.$ac_objext conftest.beam \
9916    conftest$ac_exeext conftest.$ac_ext
9917fi
9918
9919
9920		CFLAGS="$xorg_testset_save_CFLAGS"
9921
9922		eval supported=\$$cacheid
9923		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9924printf "%s\n" "$supported" >&6; }
9925		if test "$supported" = "yes" ; then
9926			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
9927			found="yes"
9928		fi
9929	fi
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945xorg_testset_save_CFLAGS="$CFLAGS"
9946
9947if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9948	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9949	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9950printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9951if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9952then :
9953  printf %s "(cached) " >&6
9954else $as_nop
9955  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9956/* end confdefs.h.  */
9957int i;
9958_ACEOF
9959if ac_fn_c_try_compile "$LINENO"
9960then :
9961  xorg_cv_cc_flag_unknown_warning_option=yes
9962else $as_nop
9963  xorg_cv_cc_flag_unknown_warning_option=no
9964fi
9965rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9966fi
9967{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9968printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9969	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9970	CFLAGS="$xorg_testset_save_CFLAGS"
9971fi
9972
9973if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9974	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9975		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9976	fi
9977	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9978	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9979printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9980if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9981then :
9982  printf %s "(cached) " >&6
9983else $as_nop
9984  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9985/* end confdefs.h.  */
9986int i;
9987_ACEOF
9988if ac_fn_c_try_compile "$LINENO"
9989then :
9990  xorg_cv_cc_flag_unused_command_line_argument=yes
9991else $as_nop
9992  xorg_cv_cc_flag_unused_command_line_argument=no
9993fi
9994rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9995fi
9996{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9997printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9998	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9999	CFLAGS="$xorg_testset_save_CFLAGS"
10000fi
10001
10002found="no"
10003
10004	if test $found = "no" ; then
10005		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10006			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10007		fi
10008
10009		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10010			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10011		fi
10012
10013		CFLAGS="$CFLAGS -Werror=address"
10014
10015		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
10016printf %s "checking if $CC supports -Werror=address... " >&6; }
10017		cacheid=xorg_cv_cc_flag__Werror_address
10018		if eval test \${$cacheid+y}
10019then :
10020  printf %s "(cached) " >&6
10021else $as_nop
10022  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10023/* end confdefs.h.  */
10024int i;
10025int
10026main (void)
10027{
10028
10029  ;
10030  return 0;
10031}
10032_ACEOF
10033if ac_fn_c_try_link "$LINENO"
10034then :
10035  eval $cacheid=yes
10036else $as_nop
10037  eval $cacheid=no
10038fi
10039rm -f core conftest.err conftest.$ac_objext conftest.beam \
10040    conftest$ac_exeext conftest.$ac_ext
10041fi
10042
10043
10044		CFLAGS="$xorg_testset_save_CFLAGS"
10045
10046		eval supported=\$$cacheid
10047		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10048printf "%s\n" "$supported" >&6; }
10049		if test "$supported" = "yes" ; then
10050			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
10051			found="yes"
10052		fi
10053	fi
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069xorg_testset_save_CFLAGS="$CFLAGS"
10070
10071if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10072	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10073	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10074printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10075if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10076then :
10077  printf %s "(cached) " >&6
10078else $as_nop
10079  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10080/* end confdefs.h.  */
10081int i;
10082_ACEOF
10083if ac_fn_c_try_compile "$LINENO"
10084then :
10085  xorg_cv_cc_flag_unknown_warning_option=yes
10086else $as_nop
10087  xorg_cv_cc_flag_unknown_warning_option=no
10088fi
10089rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10090fi
10091{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10092printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10093	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10094	CFLAGS="$xorg_testset_save_CFLAGS"
10095fi
10096
10097if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10098	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10099		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10100	fi
10101	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10102	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10103printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10104if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10105then :
10106  printf %s "(cached) " >&6
10107else $as_nop
10108  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10109/* end confdefs.h.  */
10110int i;
10111_ACEOF
10112if ac_fn_c_try_compile "$LINENO"
10113then :
10114  xorg_cv_cc_flag_unused_command_line_argument=yes
10115else $as_nop
10116  xorg_cv_cc_flag_unused_command_line_argument=no
10117fi
10118rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10119fi
10120{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10121printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10122	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10123	CFLAGS="$xorg_testset_save_CFLAGS"
10124fi
10125
10126found="no"
10127
10128	if test $found = "no" ; then
10129		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10130			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10131		fi
10132
10133		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10134			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10135		fi
10136
10137		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
10138
10139		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
10140printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
10141		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
10142		if eval test \${$cacheid+y}
10143then :
10144  printf %s "(cached) " >&6
10145else $as_nop
10146  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10147/* end confdefs.h.  */
10148int i;
10149int
10150main (void)
10151{
10152
10153  ;
10154  return 0;
10155}
10156_ACEOF
10157if ac_fn_c_try_link "$LINENO"
10158then :
10159  eval $cacheid=yes
10160else $as_nop
10161  eval $cacheid=no
10162fi
10163rm -f core conftest.err conftest.$ac_objext conftest.beam \
10164    conftest$ac_exeext conftest.$ac_ext
10165fi
10166
10167
10168		CFLAGS="$xorg_testset_save_CFLAGS"
10169
10170		eval supported=\$$cacheid
10171		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10172printf "%s\n" "$supported" >&6; }
10173		if test "$supported" = "yes" ; then
10174			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
10175			found="yes"
10176		fi
10177	fi
10178
10179	if test $found = "no" ; then
10180		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10181			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10182		fi
10183
10184		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10185			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10186		fi
10187
10188		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
10189
10190		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
10191printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
10192		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
10193		if eval test \${$cacheid+y}
10194then :
10195  printf %s "(cached) " >&6
10196else $as_nop
10197  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10198/* end confdefs.h.  */
10199int i;
10200int
10201main (void)
10202{
10203
10204  ;
10205  return 0;
10206}
10207_ACEOF
10208if ac_fn_c_try_link "$LINENO"
10209then :
10210  eval $cacheid=yes
10211else $as_nop
10212  eval $cacheid=no
10213fi
10214rm -f core conftest.err conftest.$ac_objext conftest.beam \
10215    conftest$ac_exeext conftest.$ac_ext
10216fi
10217
10218
10219		CFLAGS="$xorg_testset_save_CFLAGS"
10220
10221		eval supported=\$$cacheid
10222		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10223printf "%s\n" "$supported" >&6; }
10224		if test "$supported" = "yes" ; then
10225			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
10226			found="yes"
10227		fi
10228	fi
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244xorg_testset_save_CFLAGS="$CFLAGS"
10245
10246if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10247	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10248	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10249printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10250if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10251then :
10252  printf %s "(cached) " >&6
10253else $as_nop
10254  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10255/* end confdefs.h.  */
10256int i;
10257_ACEOF
10258if ac_fn_c_try_compile "$LINENO"
10259then :
10260  xorg_cv_cc_flag_unknown_warning_option=yes
10261else $as_nop
10262  xorg_cv_cc_flag_unknown_warning_option=no
10263fi
10264rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10265fi
10266{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10267printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10268	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10269	CFLAGS="$xorg_testset_save_CFLAGS"
10270fi
10271
10272if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10273	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10274		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10275	fi
10276	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10277	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10278printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10279if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10280then :
10281  printf %s "(cached) " >&6
10282else $as_nop
10283  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10284/* end confdefs.h.  */
10285int i;
10286_ACEOF
10287if ac_fn_c_try_compile "$LINENO"
10288then :
10289  xorg_cv_cc_flag_unused_command_line_argument=yes
10290else $as_nop
10291  xorg_cv_cc_flag_unused_command_line_argument=no
10292fi
10293rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10294fi
10295{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10296printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10297	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10298	CFLAGS="$xorg_testset_save_CFLAGS"
10299fi
10300
10301found="no"
10302
10303	if test $found = "no" ; then
10304		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10305			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10306		fi
10307
10308		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10309			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10310		fi
10311
10312		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
10313
10314		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
10315printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
10316		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
10317		if eval test \${$cacheid+y}
10318then :
10319  printf %s "(cached) " >&6
10320else $as_nop
10321  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10322/* end confdefs.h.  */
10323int i;
10324int
10325main (void)
10326{
10327
10328  ;
10329  return 0;
10330}
10331_ACEOF
10332if ac_fn_c_try_link "$LINENO"
10333then :
10334  eval $cacheid=yes
10335else $as_nop
10336  eval $cacheid=no
10337fi
10338rm -f core conftest.err conftest.$ac_objext conftest.beam \
10339    conftest$ac_exeext conftest.$ac_ext
10340fi
10341
10342
10343		CFLAGS="$xorg_testset_save_CFLAGS"
10344
10345		eval supported=\$$cacheid
10346		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10347printf "%s\n" "$supported" >&6; }
10348		if test "$supported" = "yes" ; then
10349			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
10350			found="yes"
10351		fi
10352	fi
10353
10354 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
10355else
10356{ 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
10357printf "%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;}
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371xorg_testset_save_CFLAGS="$CFLAGS"
10372
10373if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10374	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10375	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10376printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10377if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10378then :
10379  printf %s "(cached) " >&6
10380else $as_nop
10381  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10382/* end confdefs.h.  */
10383int i;
10384_ACEOF
10385if ac_fn_c_try_compile "$LINENO"
10386then :
10387  xorg_cv_cc_flag_unknown_warning_option=yes
10388else $as_nop
10389  xorg_cv_cc_flag_unknown_warning_option=no
10390fi
10391rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10392fi
10393{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10394printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10395	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10396	CFLAGS="$xorg_testset_save_CFLAGS"
10397fi
10398
10399if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10400	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10401		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10402	fi
10403	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10404	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10405printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10406if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10407then :
10408  printf %s "(cached) " >&6
10409else $as_nop
10410  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10411/* end confdefs.h.  */
10412int i;
10413_ACEOF
10414if ac_fn_c_try_compile "$LINENO"
10415then :
10416  xorg_cv_cc_flag_unused_command_line_argument=yes
10417else $as_nop
10418  xorg_cv_cc_flag_unused_command_line_argument=no
10419fi
10420rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10421fi
10422{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10423printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10424	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10425	CFLAGS="$xorg_testset_save_CFLAGS"
10426fi
10427
10428found="no"
10429
10430	if test $found = "no" ; then
10431		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10432			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10433		fi
10434
10435		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10436			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10437		fi
10438
10439		CFLAGS="$CFLAGS -Wimplicit"
10440
10441		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
10442printf %s "checking if $CC supports -Wimplicit... " >&6; }
10443		cacheid=xorg_cv_cc_flag__Wimplicit
10444		if eval test \${$cacheid+y}
10445then :
10446  printf %s "(cached) " >&6
10447else $as_nop
10448  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10449/* end confdefs.h.  */
10450int i;
10451int
10452main (void)
10453{
10454
10455  ;
10456  return 0;
10457}
10458_ACEOF
10459if ac_fn_c_try_link "$LINENO"
10460then :
10461  eval $cacheid=yes
10462else $as_nop
10463  eval $cacheid=no
10464fi
10465rm -f core conftest.err conftest.$ac_objext conftest.beam \
10466    conftest$ac_exeext conftest.$ac_ext
10467fi
10468
10469
10470		CFLAGS="$xorg_testset_save_CFLAGS"
10471
10472		eval supported=\$$cacheid
10473		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10474printf "%s\n" "$supported" >&6; }
10475		if test "$supported" = "yes" ; then
10476			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
10477			found="yes"
10478		fi
10479	fi
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495xorg_testset_save_CFLAGS="$CFLAGS"
10496
10497if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10498	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10499	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10500printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10501if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10502then :
10503  printf %s "(cached) " >&6
10504else $as_nop
10505  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10506/* end confdefs.h.  */
10507int i;
10508_ACEOF
10509if ac_fn_c_try_compile "$LINENO"
10510then :
10511  xorg_cv_cc_flag_unknown_warning_option=yes
10512else $as_nop
10513  xorg_cv_cc_flag_unknown_warning_option=no
10514fi
10515rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10516fi
10517{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10518printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10519	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10520	CFLAGS="$xorg_testset_save_CFLAGS"
10521fi
10522
10523if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10524	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10525		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10526	fi
10527	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10528	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10529printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10530if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10531then :
10532  printf %s "(cached) " >&6
10533else $as_nop
10534  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10535/* end confdefs.h.  */
10536int i;
10537_ACEOF
10538if ac_fn_c_try_compile "$LINENO"
10539then :
10540  xorg_cv_cc_flag_unused_command_line_argument=yes
10541else $as_nop
10542  xorg_cv_cc_flag_unused_command_line_argument=no
10543fi
10544rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10545fi
10546{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10547printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10548	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10549	CFLAGS="$xorg_testset_save_CFLAGS"
10550fi
10551
10552found="no"
10553
10554	if test $found = "no" ; then
10555		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10556			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10557		fi
10558
10559		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10560			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10561		fi
10562
10563		CFLAGS="$CFLAGS -Wnonnull"
10564
10565		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
10566printf %s "checking if $CC supports -Wnonnull... " >&6; }
10567		cacheid=xorg_cv_cc_flag__Wnonnull
10568		if eval test \${$cacheid+y}
10569then :
10570  printf %s "(cached) " >&6
10571else $as_nop
10572  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10573/* end confdefs.h.  */
10574int i;
10575int
10576main (void)
10577{
10578
10579  ;
10580  return 0;
10581}
10582_ACEOF
10583if ac_fn_c_try_link "$LINENO"
10584then :
10585  eval $cacheid=yes
10586else $as_nop
10587  eval $cacheid=no
10588fi
10589rm -f core conftest.err conftest.$ac_objext conftest.beam \
10590    conftest$ac_exeext conftest.$ac_ext
10591fi
10592
10593
10594		CFLAGS="$xorg_testset_save_CFLAGS"
10595
10596		eval supported=\$$cacheid
10597		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10598printf "%s\n" "$supported" >&6; }
10599		if test "$supported" = "yes" ; then
10600			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
10601			found="yes"
10602		fi
10603	fi
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619xorg_testset_save_CFLAGS="$CFLAGS"
10620
10621if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10622	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10623	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10624printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10625if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10626then :
10627  printf %s "(cached) " >&6
10628else $as_nop
10629  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10630/* end confdefs.h.  */
10631int i;
10632_ACEOF
10633if ac_fn_c_try_compile "$LINENO"
10634then :
10635  xorg_cv_cc_flag_unknown_warning_option=yes
10636else $as_nop
10637  xorg_cv_cc_flag_unknown_warning_option=no
10638fi
10639rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10640fi
10641{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10642printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10643	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10644	CFLAGS="$xorg_testset_save_CFLAGS"
10645fi
10646
10647if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10648	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10649		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10650	fi
10651	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10652	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10653printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10654if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10655then :
10656  printf %s "(cached) " >&6
10657else $as_nop
10658  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10659/* end confdefs.h.  */
10660int i;
10661_ACEOF
10662if ac_fn_c_try_compile "$LINENO"
10663then :
10664  xorg_cv_cc_flag_unused_command_line_argument=yes
10665else $as_nop
10666  xorg_cv_cc_flag_unused_command_line_argument=no
10667fi
10668rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10669fi
10670{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10671printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10672	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10673	CFLAGS="$xorg_testset_save_CFLAGS"
10674fi
10675
10676found="no"
10677
10678	if test $found = "no" ; then
10679		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10680			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10681		fi
10682
10683		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10684			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10685		fi
10686
10687		CFLAGS="$CFLAGS -Winit-self"
10688
10689		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
10690printf %s "checking if $CC supports -Winit-self... " >&6; }
10691		cacheid=xorg_cv_cc_flag__Winit_self
10692		if eval test \${$cacheid+y}
10693then :
10694  printf %s "(cached) " >&6
10695else $as_nop
10696  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10697/* end confdefs.h.  */
10698int i;
10699int
10700main (void)
10701{
10702
10703  ;
10704  return 0;
10705}
10706_ACEOF
10707if ac_fn_c_try_link "$LINENO"
10708then :
10709  eval $cacheid=yes
10710else $as_nop
10711  eval $cacheid=no
10712fi
10713rm -f core conftest.err conftest.$ac_objext conftest.beam \
10714    conftest$ac_exeext conftest.$ac_ext
10715fi
10716
10717
10718		CFLAGS="$xorg_testset_save_CFLAGS"
10719
10720		eval supported=\$$cacheid
10721		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10722printf "%s\n" "$supported" >&6; }
10723		if test "$supported" = "yes" ; then
10724			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
10725			found="yes"
10726		fi
10727	fi
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743xorg_testset_save_CFLAGS="$CFLAGS"
10744
10745if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10746	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10747	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10748printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10749if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10750then :
10751  printf %s "(cached) " >&6
10752else $as_nop
10753  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10754/* end confdefs.h.  */
10755int i;
10756_ACEOF
10757if ac_fn_c_try_compile "$LINENO"
10758then :
10759  xorg_cv_cc_flag_unknown_warning_option=yes
10760else $as_nop
10761  xorg_cv_cc_flag_unknown_warning_option=no
10762fi
10763rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10764fi
10765{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10766printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10767	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10768	CFLAGS="$xorg_testset_save_CFLAGS"
10769fi
10770
10771if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10772	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10773		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10774	fi
10775	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10776	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10777printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10778if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10779then :
10780  printf %s "(cached) " >&6
10781else $as_nop
10782  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10783/* end confdefs.h.  */
10784int i;
10785_ACEOF
10786if ac_fn_c_try_compile "$LINENO"
10787then :
10788  xorg_cv_cc_flag_unused_command_line_argument=yes
10789else $as_nop
10790  xorg_cv_cc_flag_unused_command_line_argument=no
10791fi
10792rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10793fi
10794{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10795printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10796	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10797	CFLAGS="$xorg_testset_save_CFLAGS"
10798fi
10799
10800found="no"
10801
10802	if test $found = "no" ; then
10803		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10804			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10805		fi
10806
10807		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10808			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10809		fi
10810
10811		CFLAGS="$CFLAGS -Wmain"
10812
10813		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
10814printf %s "checking if $CC supports -Wmain... " >&6; }
10815		cacheid=xorg_cv_cc_flag__Wmain
10816		if eval test \${$cacheid+y}
10817then :
10818  printf %s "(cached) " >&6
10819else $as_nop
10820  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10821/* end confdefs.h.  */
10822int i;
10823int
10824main (void)
10825{
10826
10827  ;
10828  return 0;
10829}
10830_ACEOF
10831if ac_fn_c_try_link "$LINENO"
10832then :
10833  eval $cacheid=yes
10834else $as_nop
10835  eval $cacheid=no
10836fi
10837rm -f core conftest.err conftest.$ac_objext conftest.beam \
10838    conftest$ac_exeext conftest.$ac_ext
10839fi
10840
10841
10842		CFLAGS="$xorg_testset_save_CFLAGS"
10843
10844		eval supported=\$$cacheid
10845		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10846printf "%s\n" "$supported" >&6; }
10847		if test "$supported" = "yes" ; then
10848			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
10849			found="yes"
10850		fi
10851	fi
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867xorg_testset_save_CFLAGS="$CFLAGS"
10868
10869if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10870	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10871	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10872printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10873if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10874then :
10875  printf %s "(cached) " >&6
10876else $as_nop
10877  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10878/* end confdefs.h.  */
10879int i;
10880_ACEOF
10881if ac_fn_c_try_compile "$LINENO"
10882then :
10883  xorg_cv_cc_flag_unknown_warning_option=yes
10884else $as_nop
10885  xorg_cv_cc_flag_unknown_warning_option=no
10886fi
10887rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10888fi
10889{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10890printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10891	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10892	CFLAGS="$xorg_testset_save_CFLAGS"
10893fi
10894
10895if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10896	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10897		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10898	fi
10899	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10900	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10901printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10902if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10903then :
10904  printf %s "(cached) " >&6
10905else $as_nop
10906  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10907/* end confdefs.h.  */
10908int i;
10909_ACEOF
10910if ac_fn_c_try_compile "$LINENO"
10911then :
10912  xorg_cv_cc_flag_unused_command_line_argument=yes
10913else $as_nop
10914  xorg_cv_cc_flag_unused_command_line_argument=no
10915fi
10916rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10917fi
10918{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10919printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10920	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10921	CFLAGS="$xorg_testset_save_CFLAGS"
10922fi
10923
10924found="no"
10925
10926	if test $found = "no" ; then
10927		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10928			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10929		fi
10930
10931		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10932			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10933		fi
10934
10935		CFLAGS="$CFLAGS -Wmissing-braces"
10936
10937		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
10938printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
10939		cacheid=xorg_cv_cc_flag__Wmissing_braces
10940		if eval test \${$cacheid+y}
10941then :
10942  printf %s "(cached) " >&6
10943else $as_nop
10944  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10945/* end confdefs.h.  */
10946int i;
10947int
10948main (void)
10949{
10950
10951  ;
10952  return 0;
10953}
10954_ACEOF
10955if ac_fn_c_try_link "$LINENO"
10956then :
10957  eval $cacheid=yes
10958else $as_nop
10959  eval $cacheid=no
10960fi
10961rm -f core conftest.err conftest.$ac_objext conftest.beam \
10962    conftest$ac_exeext conftest.$ac_ext
10963fi
10964
10965
10966		CFLAGS="$xorg_testset_save_CFLAGS"
10967
10968		eval supported=\$$cacheid
10969		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10970printf "%s\n" "$supported" >&6; }
10971		if test "$supported" = "yes" ; then
10972			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
10973			found="yes"
10974		fi
10975	fi
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991xorg_testset_save_CFLAGS="$CFLAGS"
10992
10993if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10994	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10995	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10996printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10997if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10998then :
10999  printf %s "(cached) " >&6
11000else $as_nop
11001  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11002/* end confdefs.h.  */
11003int i;
11004_ACEOF
11005if ac_fn_c_try_compile "$LINENO"
11006then :
11007  xorg_cv_cc_flag_unknown_warning_option=yes
11008else $as_nop
11009  xorg_cv_cc_flag_unknown_warning_option=no
11010fi
11011rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11012fi
11013{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11014printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11015	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11016	CFLAGS="$xorg_testset_save_CFLAGS"
11017fi
11018
11019if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11020	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11021		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11022	fi
11023	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11024	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11025printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11026if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11027then :
11028  printf %s "(cached) " >&6
11029else $as_nop
11030  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11031/* end confdefs.h.  */
11032int i;
11033_ACEOF
11034if ac_fn_c_try_compile "$LINENO"
11035then :
11036  xorg_cv_cc_flag_unused_command_line_argument=yes
11037else $as_nop
11038  xorg_cv_cc_flag_unused_command_line_argument=no
11039fi
11040rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11041fi
11042{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11043printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11044	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11045	CFLAGS="$xorg_testset_save_CFLAGS"
11046fi
11047
11048found="no"
11049
11050	if test $found = "no" ; then
11051		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11052			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11053		fi
11054
11055		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11056			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11057		fi
11058
11059		CFLAGS="$CFLAGS -Wsequence-point"
11060
11061		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
11062printf %s "checking if $CC supports -Wsequence-point... " >&6; }
11063		cacheid=xorg_cv_cc_flag__Wsequence_point
11064		if eval test \${$cacheid+y}
11065then :
11066  printf %s "(cached) " >&6
11067else $as_nop
11068  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11069/* end confdefs.h.  */
11070int i;
11071int
11072main (void)
11073{
11074
11075  ;
11076  return 0;
11077}
11078_ACEOF
11079if ac_fn_c_try_link "$LINENO"
11080then :
11081  eval $cacheid=yes
11082else $as_nop
11083  eval $cacheid=no
11084fi
11085rm -f core conftest.err conftest.$ac_objext conftest.beam \
11086    conftest$ac_exeext conftest.$ac_ext
11087fi
11088
11089
11090		CFLAGS="$xorg_testset_save_CFLAGS"
11091
11092		eval supported=\$$cacheid
11093		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11094printf "%s\n" "$supported" >&6; }
11095		if test "$supported" = "yes" ; then
11096			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
11097			found="yes"
11098		fi
11099	fi
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115xorg_testset_save_CFLAGS="$CFLAGS"
11116
11117if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11118	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11119	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11120printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11121if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11122then :
11123  printf %s "(cached) " >&6
11124else $as_nop
11125  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11126/* end confdefs.h.  */
11127int i;
11128_ACEOF
11129if ac_fn_c_try_compile "$LINENO"
11130then :
11131  xorg_cv_cc_flag_unknown_warning_option=yes
11132else $as_nop
11133  xorg_cv_cc_flag_unknown_warning_option=no
11134fi
11135rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11136fi
11137{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11138printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11139	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11140	CFLAGS="$xorg_testset_save_CFLAGS"
11141fi
11142
11143if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11144	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11145		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11146	fi
11147	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11148	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11149printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11150if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11151then :
11152  printf %s "(cached) " >&6
11153else $as_nop
11154  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11155/* end confdefs.h.  */
11156int i;
11157_ACEOF
11158if ac_fn_c_try_compile "$LINENO"
11159then :
11160  xorg_cv_cc_flag_unused_command_line_argument=yes
11161else $as_nop
11162  xorg_cv_cc_flag_unused_command_line_argument=no
11163fi
11164rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11165fi
11166{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11167printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11168	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11169	CFLAGS="$xorg_testset_save_CFLAGS"
11170fi
11171
11172found="no"
11173
11174	if test $found = "no" ; then
11175		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11176			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11177		fi
11178
11179		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11180			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11181		fi
11182
11183		CFLAGS="$CFLAGS -Wreturn-type"
11184
11185		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
11186printf %s "checking if $CC supports -Wreturn-type... " >&6; }
11187		cacheid=xorg_cv_cc_flag__Wreturn_type
11188		if eval test \${$cacheid+y}
11189then :
11190  printf %s "(cached) " >&6
11191else $as_nop
11192  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11193/* end confdefs.h.  */
11194int i;
11195int
11196main (void)
11197{
11198
11199  ;
11200  return 0;
11201}
11202_ACEOF
11203if ac_fn_c_try_link "$LINENO"
11204then :
11205  eval $cacheid=yes
11206else $as_nop
11207  eval $cacheid=no
11208fi
11209rm -f core conftest.err conftest.$ac_objext conftest.beam \
11210    conftest$ac_exeext conftest.$ac_ext
11211fi
11212
11213
11214		CFLAGS="$xorg_testset_save_CFLAGS"
11215
11216		eval supported=\$$cacheid
11217		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11218printf "%s\n" "$supported" >&6; }
11219		if test "$supported" = "yes" ; then
11220			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
11221			found="yes"
11222		fi
11223	fi
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239xorg_testset_save_CFLAGS="$CFLAGS"
11240
11241if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11242	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11243	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11244printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11245if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11246then :
11247  printf %s "(cached) " >&6
11248else $as_nop
11249  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11250/* end confdefs.h.  */
11251int i;
11252_ACEOF
11253if ac_fn_c_try_compile "$LINENO"
11254then :
11255  xorg_cv_cc_flag_unknown_warning_option=yes
11256else $as_nop
11257  xorg_cv_cc_flag_unknown_warning_option=no
11258fi
11259rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11260fi
11261{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11262printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11263	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11264	CFLAGS="$xorg_testset_save_CFLAGS"
11265fi
11266
11267if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11268	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11269		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11270	fi
11271	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11272	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11273printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11274if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11275then :
11276  printf %s "(cached) " >&6
11277else $as_nop
11278  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11279/* end confdefs.h.  */
11280int i;
11281_ACEOF
11282if ac_fn_c_try_compile "$LINENO"
11283then :
11284  xorg_cv_cc_flag_unused_command_line_argument=yes
11285else $as_nop
11286  xorg_cv_cc_flag_unused_command_line_argument=no
11287fi
11288rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11289fi
11290{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11291printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11292	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11293	CFLAGS="$xorg_testset_save_CFLAGS"
11294fi
11295
11296found="no"
11297
11298	if test $found = "no" ; then
11299		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11300			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11301		fi
11302
11303		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11304			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11305		fi
11306
11307		CFLAGS="$CFLAGS -Wtrigraphs"
11308
11309		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
11310printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
11311		cacheid=xorg_cv_cc_flag__Wtrigraphs
11312		if eval test \${$cacheid+y}
11313then :
11314  printf %s "(cached) " >&6
11315else $as_nop
11316  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11317/* end confdefs.h.  */
11318int i;
11319int
11320main (void)
11321{
11322
11323  ;
11324  return 0;
11325}
11326_ACEOF
11327if ac_fn_c_try_link "$LINENO"
11328then :
11329  eval $cacheid=yes
11330else $as_nop
11331  eval $cacheid=no
11332fi
11333rm -f core conftest.err conftest.$ac_objext conftest.beam \
11334    conftest$ac_exeext conftest.$ac_ext
11335fi
11336
11337
11338		CFLAGS="$xorg_testset_save_CFLAGS"
11339
11340		eval supported=\$$cacheid
11341		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11342printf "%s\n" "$supported" >&6; }
11343		if test "$supported" = "yes" ; then
11344			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
11345			found="yes"
11346		fi
11347	fi
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363xorg_testset_save_CFLAGS="$CFLAGS"
11364
11365if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11366	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11367	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11368printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11369if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11370then :
11371  printf %s "(cached) " >&6
11372else $as_nop
11373  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11374/* end confdefs.h.  */
11375int i;
11376_ACEOF
11377if ac_fn_c_try_compile "$LINENO"
11378then :
11379  xorg_cv_cc_flag_unknown_warning_option=yes
11380else $as_nop
11381  xorg_cv_cc_flag_unknown_warning_option=no
11382fi
11383rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11384fi
11385{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11386printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11387	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11388	CFLAGS="$xorg_testset_save_CFLAGS"
11389fi
11390
11391if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11392	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11393		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11394	fi
11395	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11396	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11397printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11398if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11399then :
11400  printf %s "(cached) " >&6
11401else $as_nop
11402  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11403/* end confdefs.h.  */
11404int i;
11405_ACEOF
11406if ac_fn_c_try_compile "$LINENO"
11407then :
11408  xorg_cv_cc_flag_unused_command_line_argument=yes
11409else $as_nop
11410  xorg_cv_cc_flag_unused_command_line_argument=no
11411fi
11412rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11413fi
11414{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11415printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11416	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11417	CFLAGS="$xorg_testset_save_CFLAGS"
11418fi
11419
11420found="no"
11421
11422	if test $found = "no" ; then
11423		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11424			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11425		fi
11426
11427		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11428			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11429		fi
11430
11431		CFLAGS="$CFLAGS -Warray-bounds"
11432
11433		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
11434printf %s "checking if $CC supports -Warray-bounds... " >&6; }
11435		cacheid=xorg_cv_cc_flag__Warray_bounds
11436		if eval test \${$cacheid+y}
11437then :
11438  printf %s "(cached) " >&6
11439else $as_nop
11440  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11441/* end confdefs.h.  */
11442int i;
11443int
11444main (void)
11445{
11446
11447  ;
11448  return 0;
11449}
11450_ACEOF
11451if ac_fn_c_try_link "$LINENO"
11452then :
11453  eval $cacheid=yes
11454else $as_nop
11455  eval $cacheid=no
11456fi
11457rm -f core conftest.err conftest.$ac_objext conftest.beam \
11458    conftest$ac_exeext conftest.$ac_ext
11459fi
11460
11461
11462		CFLAGS="$xorg_testset_save_CFLAGS"
11463
11464		eval supported=\$$cacheid
11465		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11466printf "%s\n" "$supported" >&6; }
11467		if test "$supported" = "yes" ; then
11468			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
11469			found="yes"
11470		fi
11471	fi
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487xorg_testset_save_CFLAGS="$CFLAGS"
11488
11489if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11490	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11491	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11492printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11493if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11494then :
11495  printf %s "(cached) " >&6
11496else $as_nop
11497  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11498/* end confdefs.h.  */
11499int i;
11500_ACEOF
11501if ac_fn_c_try_compile "$LINENO"
11502then :
11503  xorg_cv_cc_flag_unknown_warning_option=yes
11504else $as_nop
11505  xorg_cv_cc_flag_unknown_warning_option=no
11506fi
11507rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11508fi
11509{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11510printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11511	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11512	CFLAGS="$xorg_testset_save_CFLAGS"
11513fi
11514
11515if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11516	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11517		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11518	fi
11519	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11520	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11521printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11522if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11523then :
11524  printf %s "(cached) " >&6
11525else $as_nop
11526  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11527/* end confdefs.h.  */
11528int i;
11529_ACEOF
11530if ac_fn_c_try_compile "$LINENO"
11531then :
11532  xorg_cv_cc_flag_unused_command_line_argument=yes
11533else $as_nop
11534  xorg_cv_cc_flag_unused_command_line_argument=no
11535fi
11536rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11537fi
11538{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11539printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11540	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11541	CFLAGS="$xorg_testset_save_CFLAGS"
11542fi
11543
11544found="no"
11545
11546	if test $found = "no" ; then
11547		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11548			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11549		fi
11550
11551		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11552			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11553		fi
11554
11555		CFLAGS="$CFLAGS -Wwrite-strings"
11556
11557		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
11558printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
11559		cacheid=xorg_cv_cc_flag__Wwrite_strings
11560		if eval test \${$cacheid+y}
11561then :
11562  printf %s "(cached) " >&6
11563else $as_nop
11564  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11565/* end confdefs.h.  */
11566int i;
11567int
11568main (void)
11569{
11570
11571  ;
11572  return 0;
11573}
11574_ACEOF
11575if ac_fn_c_try_link "$LINENO"
11576then :
11577  eval $cacheid=yes
11578else $as_nop
11579  eval $cacheid=no
11580fi
11581rm -f core conftest.err conftest.$ac_objext conftest.beam \
11582    conftest$ac_exeext conftest.$ac_ext
11583fi
11584
11585
11586		CFLAGS="$xorg_testset_save_CFLAGS"
11587
11588		eval supported=\$$cacheid
11589		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11590printf "%s\n" "$supported" >&6; }
11591		if test "$supported" = "yes" ; then
11592			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
11593			found="yes"
11594		fi
11595	fi
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611xorg_testset_save_CFLAGS="$CFLAGS"
11612
11613if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11614	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11615	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11616printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11617if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11618then :
11619  printf %s "(cached) " >&6
11620else $as_nop
11621  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11622/* end confdefs.h.  */
11623int i;
11624_ACEOF
11625if ac_fn_c_try_compile "$LINENO"
11626then :
11627  xorg_cv_cc_flag_unknown_warning_option=yes
11628else $as_nop
11629  xorg_cv_cc_flag_unknown_warning_option=no
11630fi
11631rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11632fi
11633{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11634printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11635	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11636	CFLAGS="$xorg_testset_save_CFLAGS"
11637fi
11638
11639if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11640	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11641		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11642	fi
11643	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11644	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11645printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11646if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11647then :
11648  printf %s "(cached) " >&6
11649else $as_nop
11650  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11651/* end confdefs.h.  */
11652int i;
11653_ACEOF
11654if ac_fn_c_try_compile "$LINENO"
11655then :
11656  xorg_cv_cc_flag_unused_command_line_argument=yes
11657else $as_nop
11658  xorg_cv_cc_flag_unused_command_line_argument=no
11659fi
11660rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11661fi
11662{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11663printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11664	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11665	CFLAGS="$xorg_testset_save_CFLAGS"
11666fi
11667
11668found="no"
11669
11670	if test $found = "no" ; then
11671		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11672			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11673		fi
11674
11675		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11676			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11677		fi
11678
11679		CFLAGS="$CFLAGS -Waddress"
11680
11681		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
11682printf %s "checking if $CC supports -Waddress... " >&6; }
11683		cacheid=xorg_cv_cc_flag__Waddress
11684		if eval test \${$cacheid+y}
11685then :
11686  printf %s "(cached) " >&6
11687else $as_nop
11688  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11689/* end confdefs.h.  */
11690int i;
11691int
11692main (void)
11693{
11694
11695  ;
11696  return 0;
11697}
11698_ACEOF
11699if ac_fn_c_try_link "$LINENO"
11700then :
11701  eval $cacheid=yes
11702else $as_nop
11703  eval $cacheid=no
11704fi
11705rm -f core conftest.err conftest.$ac_objext conftest.beam \
11706    conftest$ac_exeext conftest.$ac_ext
11707fi
11708
11709
11710		CFLAGS="$xorg_testset_save_CFLAGS"
11711
11712		eval supported=\$$cacheid
11713		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11714printf "%s\n" "$supported" >&6; }
11715		if test "$supported" = "yes" ; then
11716			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
11717			found="yes"
11718		fi
11719	fi
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735xorg_testset_save_CFLAGS="$CFLAGS"
11736
11737if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11738	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11739	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11740printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11741if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11742then :
11743  printf %s "(cached) " >&6
11744else $as_nop
11745  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11746/* end confdefs.h.  */
11747int i;
11748_ACEOF
11749if ac_fn_c_try_compile "$LINENO"
11750then :
11751  xorg_cv_cc_flag_unknown_warning_option=yes
11752else $as_nop
11753  xorg_cv_cc_flag_unknown_warning_option=no
11754fi
11755rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11756fi
11757{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11758printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11759	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11760	CFLAGS="$xorg_testset_save_CFLAGS"
11761fi
11762
11763if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11764	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11765		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11766	fi
11767	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11768	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11769printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11770if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11771then :
11772  printf %s "(cached) " >&6
11773else $as_nop
11774  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11775/* end confdefs.h.  */
11776int i;
11777_ACEOF
11778if ac_fn_c_try_compile "$LINENO"
11779then :
11780  xorg_cv_cc_flag_unused_command_line_argument=yes
11781else $as_nop
11782  xorg_cv_cc_flag_unused_command_line_argument=no
11783fi
11784rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11785fi
11786{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11787printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11788	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11789	CFLAGS="$xorg_testset_save_CFLAGS"
11790fi
11791
11792found="no"
11793
11794	if test $found = "no" ; then
11795		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11796			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11797		fi
11798
11799		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11800			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11801		fi
11802
11803		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
11804
11805		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
11806printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
11807		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
11808		if eval test \${$cacheid+y}
11809then :
11810  printf %s "(cached) " >&6
11811else $as_nop
11812  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11813/* end confdefs.h.  */
11814int i;
11815int
11816main (void)
11817{
11818
11819  ;
11820  return 0;
11821}
11822_ACEOF
11823if ac_fn_c_try_link "$LINENO"
11824then :
11825  eval $cacheid=yes
11826else $as_nop
11827  eval $cacheid=no
11828fi
11829rm -f core conftest.err conftest.$ac_objext conftest.beam \
11830    conftest$ac_exeext conftest.$ac_ext
11831fi
11832
11833
11834		CFLAGS="$xorg_testset_save_CFLAGS"
11835
11836		eval supported=\$$cacheid
11837		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11838printf "%s\n" "$supported" >&6; }
11839		if test "$supported" = "yes" ; then
11840			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
11841			found="yes"
11842		fi
11843	fi
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859xorg_testset_save_CFLAGS="$CFLAGS"
11860
11861if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11862	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11863	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11864printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11865if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11866then :
11867  printf %s "(cached) " >&6
11868else $as_nop
11869  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11870/* end confdefs.h.  */
11871int i;
11872_ACEOF
11873if ac_fn_c_try_compile "$LINENO"
11874then :
11875  xorg_cv_cc_flag_unknown_warning_option=yes
11876else $as_nop
11877  xorg_cv_cc_flag_unknown_warning_option=no
11878fi
11879rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11880fi
11881{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11882printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11883	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11884	CFLAGS="$xorg_testset_save_CFLAGS"
11885fi
11886
11887if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11888	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11889		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11890	fi
11891	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11892	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11893printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11894if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11895then :
11896  printf %s "(cached) " >&6
11897else $as_nop
11898  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11899/* end confdefs.h.  */
11900int i;
11901_ACEOF
11902if ac_fn_c_try_compile "$LINENO"
11903then :
11904  xorg_cv_cc_flag_unused_command_line_argument=yes
11905else $as_nop
11906  xorg_cv_cc_flag_unused_command_line_argument=no
11907fi
11908rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11909fi
11910{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11911printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11912	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11913	CFLAGS="$xorg_testset_save_CFLAGS"
11914fi
11915
11916found="no"
11917
11918	if test $found = "no" ; then
11919		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11920			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11921		fi
11922
11923		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11924			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11925		fi
11926
11927		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
11928
11929		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
11930printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
11931		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
11932		if eval test \${$cacheid+y}
11933then :
11934  printf %s "(cached) " >&6
11935else $as_nop
11936  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11937/* end confdefs.h.  */
11938int i;
11939int
11940main (void)
11941{
11942
11943  ;
11944  return 0;
11945}
11946_ACEOF
11947if ac_fn_c_try_link "$LINENO"
11948then :
11949  eval $cacheid=yes
11950else $as_nop
11951  eval $cacheid=no
11952fi
11953rm -f core conftest.err conftest.$ac_objext conftest.beam \
11954    conftest$ac_exeext conftest.$ac_ext
11955fi
11956
11957
11958		CFLAGS="$xorg_testset_save_CFLAGS"
11959
11960		eval supported=\$$cacheid
11961		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11962printf "%s\n" "$supported" >&6; }
11963		if test "$supported" = "yes" ; then
11964			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
11965			found="yes"
11966		fi
11967	fi
11968
11969
11970fi
11971
11972
11973
11974
11975
11976
11977
11978		CWARNFLAGS="$BASE_CFLAGS"
11979		if  test "x$GCC" = xyes ; then
11980		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
11981		fi
11982
11983
11984
11985
11986
11987
11988
11989
11990# Check whether --enable-strict-compilation was given.
11991if test ${enable_strict_compilation+y}
11992then :
11993  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
11994else $as_nop
11995  STRICT_COMPILE=no
11996fi
11997
11998
11999
12000
12001
12002
12003STRICT_CFLAGS=""
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017xorg_testset_save_CFLAGS="$CFLAGS"
12018
12019if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12020	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12021	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12022printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12023if test ${xorg_cv_cc_flag_unknown_warning_option+y}
12024then :
12025  printf %s "(cached) " >&6
12026else $as_nop
12027  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12028/* end confdefs.h.  */
12029int i;
12030_ACEOF
12031if ac_fn_c_try_compile "$LINENO"
12032then :
12033  xorg_cv_cc_flag_unknown_warning_option=yes
12034else $as_nop
12035  xorg_cv_cc_flag_unknown_warning_option=no
12036fi
12037rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12038fi
12039{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12040printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12041	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12042	CFLAGS="$xorg_testset_save_CFLAGS"
12043fi
12044
12045if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12046	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12047		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12048	fi
12049	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12050	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12051printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12052if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
12053then :
12054  printf %s "(cached) " >&6
12055else $as_nop
12056  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12057/* end confdefs.h.  */
12058int i;
12059_ACEOF
12060if ac_fn_c_try_compile "$LINENO"
12061then :
12062  xorg_cv_cc_flag_unused_command_line_argument=yes
12063else $as_nop
12064  xorg_cv_cc_flag_unused_command_line_argument=no
12065fi
12066rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12067fi
12068{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12069printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12070	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12071	CFLAGS="$xorg_testset_save_CFLAGS"
12072fi
12073
12074found="no"
12075
12076	if test $found = "no" ; then
12077		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12078			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12079		fi
12080
12081		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12082			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12083		fi
12084
12085		CFLAGS="$CFLAGS -pedantic"
12086
12087		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
12088printf %s "checking if $CC supports -pedantic... " >&6; }
12089		cacheid=xorg_cv_cc_flag__pedantic
12090		if eval test \${$cacheid+y}
12091then :
12092  printf %s "(cached) " >&6
12093else $as_nop
12094  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12095/* end confdefs.h.  */
12096int i;
12097int
12098main (void)
12099{
12100
12101  ;
12102  return 0;
12103}
12104_ACEOF
12105if ac_fn_c_try_link "$LINENO"
12106then :
12107  eval $cacheid=yes
12108else $as_nop
12109  eval $cacheid=no
12110fi
12111rm -f core conftest.err conftest.$ac_objext conftest.beam \
12112    conftest$ac_exeext conftest.$ac_ext
12113fi
12114
12115
12116		CFLAGS="$xorg_testset_save_CFLAGS"
12117
12118		eval supported=\$$cacheid
12119		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12120printf "%s\n" "$supported" >&6; }
12121		if test "$supported" = "yes" ; then
12122			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
12123			found="yes"
12124		fi
12125	fi
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141xorg_testset_save_CFLAGS="$CFLAGS"
12142
12143if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12144	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12145	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12146printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12147if test ${xorg_cv_cc_flag_unknown_warning_option+y}
12148then :
12149  printf %s "(cached) " >&6
12150else $as_nop
12151  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12152/* end confdefs.h.  */
12153int i;
12154_ACEOF
12155if ac_fn_c_try_compile "$LINENO"
12156then :
12157  xorg_cv_cc_flag_unknown_warning_option=yes
12158else $as_nop
12159  xorg_cv_cc_flag_unknown_warning_option=no
12160fi
12161rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12162fi
12163{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12164printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12165	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12166	CFLAGS="$xorg_testset_save_CFLAGS"
12167fi
12168
12169if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12170	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12171		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12172	fi
12173	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12174	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12175printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12176if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
12177then :
12178  printf %s "(cached) " >&6
12179else $as_nop
12180  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12181/* end confdefs.h.  */
12182int i;
12183_ACEOF
12184if ac_fn_c_try_compile "$LINENO"
12185then :
12186  xorg_cv_cc_flag_unused_command_line_argument=yes
12187else $as_nop
12188  xorg_cv_cc_flag_unused_command_line_argument=no
12189fi
12190rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12191fi
12192{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12193printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12194	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12195	CFLAGS="$xorg_testset_save_CFLAGS"
12196fi
12197
12198found="no"
12199
12200	if test $found = "no" ; then
12201		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12202			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12203		fi
12204
12205		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12206			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12207		fi
12208
12209		CFLAGS="$CFLAGS -Werror"
12210
12211		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
12212printf %s "checking if $CC supports -Werror... " >&6; }
12213		cacheid=xorg_cv_cc_flag__Werror
12214		if eval test \${$cacheid+y}
12215then :
12216  printf %s "(cached) " >&6
12217else $as_nop
12218  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12219/* end confdefs.h.  */
12220int i;
12221int
12222main (void)
12223{
12224
12225  ;
12226  return 0;
12227}
12228_ACEOF
12229if ac_fn_c_try_link "$LINENO"
12230then :
12231  eval $cacheid=yes
12232else $as_nop
12233  eval $cacheid=no
12234fi
12235rm -f core conftest.err conftest.$ac_objext conftest.beam \
12236    conftest$ac_exeext conftest.$ac_ext
12237fi
12238
12239
12240		CFLAGS="$xorg_testset_save_CFLAGS"
12241
12242		eval supported=\$$cacheid
12243		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12244printf "%s\n" "$supported" >&6; }
12245		if test "$supported" = "yes" ; then
12246			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
12247			found="yes"
12248		fi
12249	fi
12250
12251	if test $found = "no" ; then
12252		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12253			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12254		fi
12255
12256		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12257			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12258		fi
12259
12260		CFLAGS="$CFLAGS -errwarn"
12261
12262		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
12263printf %s "checking if $CC supports -errwarn... " >&6; }
12264		cacheid=xorg_cv_cc_flag__errwarn
12265		if eval test \${$cacheid+y}
12266then :
12267  printf %s "(cached) " >&6
12268else $as_nop
12269  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12270/* end confdefs.h.  */
12271int i;
12272int
12273main (void)
12274{
12275
12276  ;
12277  return 0;
12278}
12279_ACEOF
12280if ac_fn_c_try_link "$LINENO"
12281then :
12282  eval $cacheid=yes
12283else $as_nop
12284  eval $cacheid=no
12285fi
12286rm -f core conftest.err conftest.$ac_objext conftest.beam \
12287    conftest$ac_exeext conftest.$ac_ext
12288fi
12289
12290
12291		CFLAGS="$xorg_testset_save_CFLAGS"
12292
12293		eval supported=\$$cacheid
12294		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12295printf "%s\n" "$supported" >&6; }
12296		if test "$supported" = "yes" ; then
12297			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
12298			found="yes"
12299		fi
12300	fi
12301
12302
12303
12304# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
12305# activate it with -Werror, so we add it here explicitly.
12306
12307
12308
12309
12310
12311
12312
12313
12314
12315
12316
12317
12318
12319xorg_testset_save_CFLAGS="$CFLAGS"
12320
12321if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12322	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12323	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12324printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12325if test ${xorg_cv_cc_flag_unknown_warning_option+y}
12326then :
12327  printf %s "(cached) " >&6
12328else $as_nop
12329  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12330/* end confdefs.h.  */
12331int i;
12332_ACEOF
12333if ac_fn_c_try_compile "$LINENO"
12334then :
12335  xorg_cv_cc_flag_unknown_warning_option=yes
12336else $as_nop
12337  xorg_cv_cc_flag_unknown_warning_option=no
12338fi
12339rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12340fi
12341{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12342printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12343	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12344	CFLAGS="$xorg_testset_save_CFLAGS"
12345fi
12346
12347if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12348	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12349		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12350	fi
12351	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12352	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12353printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12354if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
12355then :
12356  printf %s "(cached) " >&6
12357else $as_nop
12358  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12359/* end confdefs.h.  */
12360int i;
12361_ACEOF
12362if ac_fn_c_try_compile "$LINENO"
12363then :
12364  xorg_cv_cc_flag_unused_command_line_argument=yes
12365else $as_nop
12366  xorg_cv_cc_flag_unused_command_line_argument=no
12367fi
12368rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12369fi
12370{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12371printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12372	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12373	CFLAGS="$xorg_testset_save_CFLAGS"
12374fi
12375
12376found="no"
12377
12378	if test $found = "no" ; then
12379		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12380			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12381		fi
12382
12383		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12384			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12385		fi
12386
12387		CFLAGS="$CFLAGS -Werror=attributes"
12388
12389		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
12390printf %s "checking if $CC supports -Werror=attributes... " >&6; }
12391		cacheid=xorg_cv_cc_flag__Werror_attributes
12392		if eval test \${$cacheid+y}
12393then :
12394  printf %s "(cached) " >&6
12395else $as_nop
12396  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12397/* end confdefs.h.  */
12398int i;
12399int
12400main (void)
12401{
12402
12403  ;
12404  return 0;
12405}
12406_ACEOF
12407if ac_fn_c_try_link "$LINENO"
12408then :
12409  eval $cacheid=yes
12410else $as_nop
12411  eval $cacheid=no
12412fi
12413rm -f core conftest.err conftest.$ac_objext conftest.beam \
12414    conftest$ac_exeext conftest.$ac_ext
12415fi
12416
12417
12418		CFLAGS="$xorg_testset_save_CFLAGS"
12419
12420		eval supported=\$$cacheid
12421		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12422printf "%s\n" "$supported" >&6; }
12423		if test "$supported" = "yes" ; then
12424			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
12425			found="yes"
12426		fi
12427	fi
12428
12429
12430
12431if test "x$STRICT_COMPILE" = "xyes"; then
12432    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
12433    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
12434fi
12435
12436
12437
12438
12439
12440
12441
12442
12443cat >>confdefs.h <<_ACEOF
12444#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
12445_ACEOF
12446
12447	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
12448	if test "x$PVM" = "x"; then
12449		PVM="0"
12450	fi
12451
12452printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
12453
12454	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
12455	if test "x$PVP" = "x"; then
12456		PVP="0"
12457	fi
12458
12459printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
12460
12461
12462
12463CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
12464mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
12465|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
12466touch \$(top_srcdir)/ChangeLog; \
12467echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
12468
12469
12470
12471
12472macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
12473INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
12474mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
12475|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
12476touch \$(top_srcdir)/INSTALL; \
12477echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
12478
12479
12480
12481
12482
12483
12484case $host_os in
12485    solaris*)
12486        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
12487        # check for a man page file found in later versions that use
12488        # traditional section numbers instead
12489        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
12490printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
12491if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
12492then :
12493  printf %s "(cached) " >&6
12494else $as_nop
12495  test "$cross_compiling" = yes &&
12496  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
12497if test -r "/usr/share/man/man7/attributes.7"; then
12498  ac_cv_file__usr_share_man_man7_attributes_7=yes
12499else
12500  ac_cv_file__usr_share_man_man7_attributes_7=no
12501fi
12502fi
12503{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
12504printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
12505if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
12506then :
12507  SYSV_MAN_SECTIONS=false
12508else $as_nop
12509  SYSV_MAN_SECTIONS=true
12510fi
12511
12512        ;;
12513    *) SYSV_MAN_SECTIONS=false ;;
12514esac
12515
12516if test x$APP_MAN_SUFFIX = x    ; then
12517    APP_MAN_SUFFIX=1
12518fi
12519if test x$APP_MAN_DIR = x    ; then
12520    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
12521fi
12522
12523if test x$LIB_MAN_SUFFIX = x    ; then
12524    LIB_MAN_SUFFIX=3
12525fi
12526if test x$LIB_MAN_DIR = x    ; then
12527    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
12528fi
12529
12530if test x$FILE_MAN_SUFFIX = x    ; then
12531    case $SYSV_MAN_SECTIONS in
12532	true)				FILE_MAN_SUFFIX=4  ;;
12533	*)				FILE_MAN_SUFFIX=5  ;;
12534    esac
12535fi
12536if test x$FILE_MAN_DIR = x    ; then
12537    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
12538fi
12539
12540if test x$MISC_MAN_SUFFIX = x    ; then
12541    case $SYSV_MAN_SECTIONS in
12542	true)				MISC_MAN_SUFFIX=5  ;;
12543	*)				MISC_MAN_SUFFIX=7  ;;
12544    esac
12545fi
12546if test x$MISC_MAN_DIR = x    ; then
12547    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
12548fi
12549
12550if test x$DRIVER_MAN_SUFFIX = x    ; then
12551    case $SYSV_MAN_SECTIONS in
12552	true)				DRIVER_MAN_SUFFIX=7  ;;
12553	*)				DRIVER_MAN_SUFFIX=4  ;;
12554    esac
12555fi
12556if test x$DRIVER_MAN_DIR = x    ; then
12557    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
12558fi
12559
12560if test x$ADMIN_MAN_SUFFIX = x    ; then
12561    case $SYSV_MAN_SECTIONS in
12562	true)				ADMIN_MAN_SUFFIX=1m ;;
12563	*)				ADMIN_MAN_SUFFIX=8  ;;
12564    esac
12565fi
12566if test x$ADMIN_MAN_DIR = x    ; then
12567    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
12568fi
12569
12570
12571
12572
12573
12574
12575
12576
12577
12578
12579
12580
12581
12582
12583
12584XORG_MAN_PAGE="X Version 11"
12585
12586MAN_SUBSTS="\
12587	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
12588	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
12589	-e 's|__xservername__|Xorg|g' \
12590	-e 's|__xconfigfile__|xorg.conf|g' \
12591	-e 's|__projectroot__|\$(prefix)|g' \
12592	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
12593	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
12594	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
12595	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
12596	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
12597	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
12598	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
12599
12600
12601
12602# Check whether --enable-silent-rules was given.
12603if test ${enable_silent_rules+y}
12604then :
12605  enableval=$enable_silent_rules;
12606fi
12607
12608case $enable_silent_rules in # (((
12609  yes) AM_DEFAULT_VERBOSITY=0;;
12610   no) AM_DEFAULT_VERBOSITY=1;;
12611    *) AM_DEFAULT_VERBOSITY=0;;
12612esac
12613am_make=${MAKE-make}
12614{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
12615printf %s "checking whether $am_make supports nested variables... " >&6; }
12616if test ${am_cv_make_support_nested_variables+y}
12617then :
12618  printf %s "(cached) " >&6
12619else $as_nop
12620  if printf "%s\n" 'TRUE=$(BAR$(V))
12621BAR0=false
12622BAR1=true
12623V=1
12624am__doit:
12625	@$(TRUE)
12626.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
12627  am_cv_make_support_nested_variables=yes
12628else
12629  am_cv_make_support_nested_variables=no
12630fi
12631fi
12632{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
12633printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
12634if test $am_cv_make_support_nested_variables = yes; then
12635    AM_V='$(V)'
12636  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
12637else
12638  AM_V=$AM_DEFAULT_VERBOSITY
12639  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
12640fi
12641AM_BACKSLASH='\'
12642
12643
12644
12645
12646
12647
12648
12649
12650# Check whether --with-doxygen was given.
12651if test ${with_doxygen+y}
12652then :
12653  withval=$with_doxygen; use_doxygen=$withval
12654else $as_nop
12655  use_doxygen=auto
12656fi
12657
12658
12659
12660if test "x$use_doxygen" = x"auto"; then
12661   # Extract the first word of "doxygen", so it can be a program name with args.
12662set dummy doxygen; ac_word=$2
12663{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12664printf %s "checking for $ac_word... " >&6; }
12665if test ${ac_cv_path_DOXYGEN+y}
12666then :
12667  printf %s "(cached) " >&6
12668else $as_nop
12669  case $DOXYGEN in
12670  [\\/]* | ?:[\\/]*)
12671  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
12672  ;;
12673  *)
12674  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12675for as_dir in $PATH
12676do
12677  IFS=$as_save_IFS
12678  case $as_dir in #(((
12679    '') as_dir=./ ;;
12680    */) ;;
12681    *) as_dir=$as_dir/ ;;
12682  esac
12683    for ac_exec_ext in '' $ac_executable_extensions; do
12684  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12685    ac_cv_path_DOXYGEN="$as_dir$ac_word$ac_exec_ext"
12686    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12687    break 2
12688  fi
12689done
12690  done
12691IFS=$as_save_IFS
12692
12693  ;;
12694esac
12695fi
12696DOXYGEN=$ac_cv_path_DOXYGEN
12697if test -n "$DOXYGEN"; then
12698  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
12699printf "%s\n" "$DOXYGEN" >&6; }
12700else
12701  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12702printf "%s\n" "no" >&6; }
12703fi
12704
12705
12706   if test "x$DOXYGEN" = "x"; then
12707        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: doxygen not found - documentation targets will be skipped" >&5
12708printf "%s\n" "$as_me: WARNING: doxygen not found - documentation targets will be skipped" >&2;}
12709	have_doxygen=no
12710   else
12711        have_doxygen=yes
12712   fi
12713elif test "x$use_doxygen" = x"yes" ; then
12714   # Extract the first word of "doxygen", so it can be a program name with args.
12715set dummy doxygen; ac_word=$2
12716{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12717printf %s "checking for $ac_word... " >&6; }
12718if test ${ac_cv_path_DOXYGEN+y}
12719then :
12720  printf %s "(cached) " >&6
12721else $as_nop
12722  case $DOXYGEN in
12723  [\\/]* | ?:[\\/]*)
12724  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
12725  ;;
12726  *)
12727  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12728for as_dir in $PATH
12729do
12730  IFS=$as_save_IFS
12731  case $as_dir in #(((
12732    '') as_dir=./ ;;
12733    */) ;;
12734    *) as_dir=$as_dir/ ;;
12735  esac
12736    for ac_exec_ext in '' $ac_executable_extensions; do
12737  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12738    ac_cv_path_DOXYGEN="$as_dir$ac_word$ac_exec_ext"
12739    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12740    break 2
12741  fi
12742done
12743  done
12744IFS=$as_save_IFS
12745
12746  ;;
12747esac
12748fi
12749DOXYGEN=$ac_cv_path_DOXYGEN
12750if test -n "$DOXYGEN"; then
12751  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
12752printf "%s\n" "$DOXYGEN" >&6; }
12753else
12754  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12755printf "%s\n" "no" >&6; }
12756fi
12757
12758
12759   if test "x$DOXYGEN" = "x"; then
12760        as_fn_error $? "--with-doxygen=yes specified but doxygen not found in PATH" "$LINENO" 5
12761   fi
12762   have_doxygen=yes
12763elif test "x$use_doxygen" = x"no" ; then
12764   if test "x$DOXYGEN" != "x"; then
12765      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring DOXYGEN environment variable since --with-doxygen=no was specified" >&5
12766printf "%s\n" "$as_me: WARNING: ignoring DOXYGEN environment variable since --with-doxygen=no was specified" >&2;}
12767   fi
12768   have_doxygen=no
12769else
12770   as_fn_error $? "--with-doxygen expects 'yes' or 'no'" "$LINENO" 5
12771fi
12772if test "$have_doxygen" = yes; then
12773    # scrape the doxygen version
12774    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the doxygen version" >&5
12775printf %s "checking the doxygen version... " >&6; }
12776    doxygen_version=`$DOXYGEN --version 2>/dev/null`
12777    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $doxygen_version" >&5
12778printf "%s\n" "$doxygen_version" >&6; }
12779    as_arg_v1=$doxygen_version
12780as_arg_v2=1.6.1
12781awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
12782case $? in #(
12783  1) :
12784    if test "x$use_doxygen" = xauto; then
12785            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: doxygen version $doxygen_version found, but 1.6.1 needed" >&5
12786printf "%s\n" "$as_me: WARNING: doxygen version $doxygen_version found, but 1.6.1 needed" >&2;}
12787            have_doxygen=no
12788        else
12789            as_fn_error $? "doxygen version $doxygen_version found, but 1.6.1 needed" "$LINENO" 5
12790        fi ;; #(
12791  0) :
12792     ;; #(
12793  2) :
12794     ;; #(
12795  *) :
12796     ;;
12797esac
12798fi
12799
12800HAVE_DOT=no
12801if test "x$have_doxygen" = "xyes"; then
12802  # Extract the first word of "dot", so it can be a program name with args.
12803set dummy dot; ac_word=$2
12804{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12805printf %s "checking for $ac_word... " >&6; }
12806if test ${ac_cv_path_DOT+y}
12807then :
12808  printf %s "(cached) " >&6
12809else $as_nop
12810  case $DOT in
12811  [\\/]* | ?:[\\/]*)
12812  ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
12813  ;;
12814  *)
12815  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12816for as_dir in $PATH
12817do
12818  IFS=$as_save_IFS
12819  case $as_dir in #(((
12820    '') as_dir=./ ;;
12821    */) ;;
12822    *) as_dir=$as_dir/ ;;
12823  esac
12824    for ac_exec_ext in '' $ac_executable_extensions; do
12825  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12826    ac_cv_path_DOT="$as_dir$ac_word$ac_exec_ext"
12827    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12828    break 2
12829  fi
12830done
12831  done
12832IFS=$as_save_IFS
12833
12834  ;;
12835esac
12836fi
12837DOT=$ac_cv_path_DOT
12838if test -n "$DOT"; then
12839  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5
12840printf "%s\n" "$DOT" >&6; }
12841else
12842  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12843printf "%s\n" "no" >&6; }
12844fi
12845
12846
12847    if test "x$DOT" != "x"; then
12848      HAVE_DOT=yes
12849    fi
12850fi
12851
12852
12853 if test "$HAVE_DOT" = "yes"; then
12854  HAVE_DOT_TRUE=
12855  HAVE_DOT_FALSE='#'
12856else
12857  HAVE_DOT_TRUE='#'
12858  HAVE_DOT_FALSE=
12859fi
12860
12861 if test "$have_doxygen" = yes; then
12862  HAVE_DOXYGEN_TRUE=
12863  HAVE_DOXYGEN_FALSE='#'
12864else
12865  HAVE_DOXYGEN_TRUE='#'
12866  HAVE_DOXYGEN_FALSE=
12867fi
12868
12869
12870
12871{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.8" >&5
12872printf %s "checking for X.Org SGML entities >= 1.8... " >&6; }
12873XORG_SGML_PATH=
12874if test -n "$PKG_CONFIG" && \
12875    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.8\""; } >&5
12876  ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.8") 2>&5
12877  ac_status=$?
12878  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12879  test $ac_status = 0; }; then
12880  XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools`
12881else
12882  :
12883
12884fi
12885
12886# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing
12887# the path and the name of the doc stylesheet
12888if test "x$XORG_SGML_PATH" != "x" ; then
12889   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5
12890printf "%s\n" "$XORG_SGML_PATH" >&6; }
12891   STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11
12892   XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl
12893else
12894   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12895printf "%s\n" "no" >&6; }
12896fi
12897
12898
12899
12900
12901 if test "x$XSL_STYLESHEET" != "x"; then
12902  HAVE_STYLESHEETS_TRUE=
12903  HAVE_STYLESHEETS_FALSE='#'
12904else
12905  HAVE_STYLESHEETS_TRUE='#'
12906  HAVE_STYLESHEETS_FALSE=
12907fi
12908
12909
12910
12911
12912# Check whether --enable-docs was given.
12913if test ${enable_docs+y}
12914then :
12915  enableval=$enable_docs; build_docs=$enableval
12916else $as_nop
12917  build_docs=yes
12918fi
12919
12920
12921 if test x$build_docs = xyes; then
12922  ENABLE_DOCS_TRUE=
12923  ENABLE_DOCS_FALSE='#'
12924else
12925  ENABLE_DOCS_TRUE='#'
12926  ENABLE_DOCS_FALSE=
12927fi
12928
12929{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build documentation" >&5
12930printf %s "checking whether to build documentation... " >&6; }
12931{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $build_docs" >&5
12932printf "%s\n" "$build_docs" >&6; }
12933
12934
12935
12936# Check whether --enable-devel-docs was given.
12937if test ${enable_devel_docs+y}
12938then :
12939  enableval=$enable_devel_docs; build_devel_docs=$enableval
12940else $as_nop
12941  build_devel_docs=yes
12942fi
12943
12944
12945 if test x$build_devel_docs = xyes; then
12946  ENABLE_DEVEL_DOCS_TRUE=
12947  ENABLE_DEVEL_DOCS_FALSE='#'
12948else
12949  ENABLE_DEVEL_DOCS_TRUE='#'
12950  ENABLE_DEVEL_DOCS_FALSE=
12951fi
12952
12953{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build developer documentation" >&5
12954printf %s "checking whether to build developer documentation... " >&6; }
12955{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $build_devel_docs" >&5
12956printf "%s\n" "$build_devel_docs" >&6; }
12957
12958
12959
12960
12961
12962# Check whether --with-xmlto was given.
12963if test ${with_xmlto+y}
12964then :
12965  withval=$with_xmlto; use_xmlto=$withval
12966else $as_nop
12967  use_xmlto=auto
12968fi
12969
12970
12971
12972if test "x$use_xmlto" = x"auto"; then
12973   # Extract the first word of "xmlto", so it can be a program name with args.
12974set dummy xmlto; ac_word=$2
12975{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12976printf %s "checking for $ac_word... " >&6; }
12977if test ${ac_cv_path_XMLTO+y}
12978then :
12979  printf %s "(cached) " >&6
12980else $as_nop
12981  case $XMLTO in
12982  [\\/]* | ?:[\\/]*)
12983  ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
12984  ;;
12985  *)
12986  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12987for as_dir in $PATH
12988do
12989  IFS=$as_save_IFS
12990  case $as_dir in #(((
12991    '') as_dir=./ ;;
12992    */) ;;
12993    *) as_dir=$as_dir/ ;;
12994  esac
12995    for ac_exec_ext in '' $ac_executable_extensions; do
12996  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12997    ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext"
12998    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12999    break 2
13000  fi
13001done
13002  done
13003IFS=$as_save_IFS
13004
13005  ;;
13006esac
13007fi
13008XMLTO=$ac_cv_path_XMLTO
13009if test -n "$XMLTO"; then
13010  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
13011printf "%s\n" "$XMLTO" >&6; }
13012else
13013  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13014printf "%s\n" "no" >&6; }
13015fi
13016
13017
13018   if test "x$XMLTO" = "x"; then
13019        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5
13020printf "%s\n" "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;}
13021	have_xmlto=no
13022   else
13023        have_xmlto=yes
13024   fi
13025elif test "x$use_xmlto" = x"yes" ; then
13026   # Extract the first word of "xmlto", so it can be a program name with args.
13027set dummy xmlto; ac_word=$2
13028{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13029printf %s "checking for $ac_word... " >&6; }
13030if test ${ac_cv_path_XMLTO+y}
13031then :
13032  printf %s "(cached) " >&6
13033else $as_nop
13034  case $XMLTO in
13035  [\\/]* | ?:[\\/]*)
13036  ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
13037  ;;
13038  *)
13039  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13040for as_dir in $PATH
13041do
13042  IFS=$as_save_IFS
13043  case $as_dir in #(((
13044    '') as_dir=./ ;;
13045    */) ;;
13046    *) as_dir=$as_dir/ ;;
13047  esac
13048    for ac_exec_ext in '' $ac_executable_extensions; do
13049  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13050    ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext"
13051    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13052    break 2
13053  fi
13054done
13055  done
13056IFS=$as_save_IFS
13057
13058  ;;
13059esac
13060fi
13061XMLTO=$ac_cv_path_XMLTO
13062if test -n "$XMLTO"; then
13063  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
13064printf "%s\n" "$XMLTO" >&6; }
13065else
13066  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13067printf "%s\n" "no" >&6; }
13068fi
13069
13070
13071   if test "x$XMLTO" = "x"; then
13072        as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5
13073   fi
13074   have_xmlto=yes
13075elif test "x$use_xmlto" = x"no" ; then
13076   if test "x$XMLTO" != "x"; then
13077      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5
13078printf "%s\n" "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;}
13079   fi
13080   have_xmlto=no
13081else
13082   as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5
13083fi
13084
13085# Test for a minimum version of xmlto, if provided.
13086if test "$have_xmlto" = yes; then
13087    # scrape the xmlto version
13088    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5
13089printf %s "checking the xmlto version... " >&6; }
13090    xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3`
13091    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5
13092printf "%s\n" "$xmlto_version" >&6; }
13093    as_arg_v1=$xmlto_version
13094as_arg_v2=0.0.20
13095awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
13096case $? in #(
13097  1) :
13098    if test "x$use_xmlto" = xauto; then
13099            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.20 needed" >&5
13100printf "%s\n" "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.20 needed" >&2;}
13101            have_xmlto=no
13102        else
13103            as_fn_error $? "xmlto version $xmlto_version found, but 0.0.20 needed" "$LINENO" 5
13104        fi ;; #(
13105  0) :
13106     ;; #(
13107  2) :
13108     ;; #(
13109  *) :
13110     ;;
13111esac
13112fi
13113
13114# Test for the ability of xmlto to generate a text target
13115#
13116# NOTE: xmlto 0.0.27 or higher return a non-zero return code in the
13117# following test for empty XML docbook files.
13118# For compatibility reasons use the following empty XML docbook file and if
13119# it fails try it again with a non-empty XML file.
13120have_xmlto_text=no
13121cat > conftest.xml << "EOF"
13122EOF
13123if test "$have_xmlto" = yes
13124then :
13125  if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1
13126then :
13127  have_xmlto_text=yes
13128else $as_nop
13129  # Try it again with a non-empty XML file.
13130              cat > conftest.xml << "EOF"
13131<x></x>
13132EOF
13133              if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1
13134then :
13135  have_xmlto_text=yes
13136else $as_nop
13137  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5
13138printf "%s\n" "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;}
13139fi
13140fi
13141fi
13142rm -f conftest.xml
13143 if test $have_xmlto_text = yes; then
13144  HAVE_XMLTO_TEXT_TRUE=
13145  HAVE_XMLTO_TEXT_FALSE='#'
13146else
13147  HAVE_XMLTO_TEXT_TRUE='#'
13148  HAVE_XMLTO_TEXT_FALSE=
13149fi
13150
13151 if test "$have_xmlto" = yes; then
13152  HAVE_XMLTO_TRUE=
13153  HAVE_XMLTO_FALSE='#'
13154else
13155  HAVE_XMLTO_TRUE='#'
13156  HAVE_XMLTO_FALSE=
13157fi
13158
13159
13160
13161
13162
13163
13164# Check whether --with-fop was given.
13165if test ${with_fop+y}
13166then :
13167  withval=$with_fop; use_fop=$withval
13168else $as_nop
13169  use_fop=auto
13170fi
13171
13172
13173
13174if test "x$use_fop" = x"auto"; then
13175   # Extract the first word of "fop", so it can be a program name with args.
13176set dummy fop; ac_word=$2
13177{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13178printf %s "checking for $ac_word... " >&6; }
13179if test ${ac_cv_path_FOP+y}
13180then :
13181  printf %s "(cached) " >&6
13182else $as_nop
13183  case $FOP in
13184  [\\/]* | ?:[\\/]*)
13185  ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
13186  ;;
13187  *)
13188  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13189for as_dir in $PATH
13190do
13191  IFS=$as_save_IFS
13192  case $as_dir in #(((
13193    '') as_dir=./ ;;
13194    */) ;;
13195    *) as_dir=$as_dir/ ;;
13196  esac
13197    for ac_exec_ext in '' $ac_executable_extensions; do
13198  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13199    ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext"
13200    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13201    break 2
13202  fi
13203done
13204  done
13205IFS=$as_save_IFS
13206
13207  ;;
13208esac
13209fi
13210FOP=$ac_cv_path_FOP
13211if test -n "$FOP"; then
13212  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
13213printf "%s\n" "$FOP" >&6; }
13214else
13215  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13216printf "%s\n" "no" >&6; }
13217fi
13218
13219
13220   if test "x$FOP" = "x"; then
13221        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5
13222printf "%s\n" "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;}
13223	have_fop=no
13224   else
13225        have_fop=yes
13226   fi
13227elif test "x$use_fop" = x"yes" ; then
13228   # Extract the first word of "fop", so it can be a program name with args.
13229set dummy fop; ac_word=$2
13230{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13231printf %s "checking for $ac_word... " >&6; }
13232if test ${ac_cv_path_FOP+y}
13233then :
13234  printf %s "(cached) " >&6
13235else $as_nop
13236  case $FOP in
13237  [\\/]* | ?:[\\/]*)
13238  ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
13239  ;;
13240  *)
13241  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13242for as_dir in $PATH
13243do
13244  IFS=$as_save_IFS
13245  case $as_dir in #(((
13246    '') as_dir=./ ;;
13247    */) ;;
13248    *) as_dir=$as_dir/ ;;
13249  esac
13250    for ac_exec_ext in '' $ac_executable_extensions; do
13251  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13252    ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext"
13253    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13254    break 2
13255  fi
13256done
13257  done
13258IFS=$as_save_IFS
13259
13260  ;;
13261esac
13262fi
13263FOP=$ac_cv_path_FOP
13264if test -n "$FOP"; then
13265  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
13266printf "%s\n" "$FOP" >&6; }
13267else
13268  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13269printf "%s\n" "no" >&6; }
13270fi
13271
13272
13273   if test "x$FOP" = "x"; then
13274        as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5
13275   fi
13276   have_fop=yes
13277elif test "x$use_fop" = x"no" ; then
13278   if test "x$FOP" != "x"; then
13279      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5
13280printf "%s\n" "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;}
13281   fi
13282   have_fop=no
13283else
13284   as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5
13285fi
13286
13287# Test for a minimum version of fop, if provided.
13288
13289 if test "$have_fop" = yes; then
13290  HAVE_FOP_TRUE=
13291  HAVE_FOP_FALSE='#'
13292else
13293  HAVE_FOP_TRUE='#'
13294  HAVE_FOP_FALSE=
13295fi
13296
13297
13298
13299
13300# Preserves the interface, should it be implemented later
13301
13302
13303
13304# Check whether --with-xsltproc was given.
13305if test ${with_xsltproc+y}
13306then :
13307  withval=$with_xsltproc; use_xsltproc=$withval
13308else $as_nop
13309  use_xsltproc=auto
13310fi
13311
13312
13313
13314if test "x$use_xsltproc" = x"auto"; then
13315   # Extract the first word of "xsltproc", so it can be a program name with args.
13316set dummy xsltproc; ac_word=$2
13317{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13318printf %s "checking for $ac_word... " >&6; }
13319if test ${ac_cv_path_XSLTPROC+y}
13320then :
13321  printf %s "(cached) " >&6
13322else $as_nop
13323  case $XSLTPROC in
13324  [\\/]* | ?:[\\/]*)
13325  ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
13326  ;;
13327  *)
13328  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13329for as_dir in $PATH
13330do
13331  IFS=$as_save_IFS
13332  case $as_dir in #(((
13333    '') as_dir=./ ;;
13334    */) ;;
13335    *) as_dir=$as_dir/ ;;
13336  esac
13337    for ac_exec_ext in '' $ac_executable_extensions; do
13338  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13339    ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext"
13340    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13341    break 2
13342  fi
13343done
13344  done
13345IFS=$as_save_IFS
13346
13347  ;;
13348esac
13349fi
13350XSLTPROC=$ac_cv_path_XSLTPROC
13351if test -n "$XSLTPROC"; then
13352  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
13353printf "%s\n" "$XSLTPROC" >&6; }
13354else
13355  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13356printf "%s\n" "no" >&6; }
13357fi
13358
13359
13360   if test "x$XSLTPROC" = "x"; then
13361        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5
13362printf "%s\n" "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;}
13363	have_xsltproc=no
13364   else
13365        have_xsltproc=yes
13366   fi
13367elif test "x$use_xsltproc" = x"yes" ; then
13368   # Extract the first word of "xsltproc", so it can be a program name with args.
13369set dummy xsltproc; ac_word=$2
13370{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13371printf %s "checking for $ac_word... " >&6; }
13372if test ${ac_cv_path_XSLTPROC+y}
13373then :
13374  printf %s "(cached) " >&6
13375else $as_nop
13376  case $XSLTPROC in
13377  [\\/]* | ?:[\\/]*)
13378  ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
13379  ;;
13380  *)
13381  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13382for as_dir in $PATH
13383do
13384  IFS=$as_save_IFS
13385  case $as_dir in #(((
13386    '') as_dir=./ ;;
13387    */) ;;
13388    *) as_dir=$as_dir/ ;;
13389  esac
13390    for ac_exec_ext in '' $ac_executable_extensions; do
13391  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13392    ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext"
13393    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13394    break 2
13395  fi
13396done
13397  done
13398IFS=$as_save_IFS
13399
13400  ;;
13401esac
13402fi
13403XSLTPROC=$ac_cv_path_XSLTPROC
13404if test -n "$XSLTPROC"; then
13405  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
13406printf "%s\n" "$XSLTPROC" >&6; }
13407else
13408  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13409printf "%s\n" "no" >&6; }
13410fi
13411
13412
13413   if test "x$XSLTPROC" = "x"; then
13414        as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5
13415   fi
13416   have_xsltproc=yes
13417elif test "x$use_xsltproc" = x"no" ; then
13418   if test "x$XSLTPROC" != "x"; then
13419      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5
13420printf "%s\n" "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;}
13421   fi
13422   have_xsltproc=no
13423else
13424   as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5
13425fi
13426
13427 if test "$have_xsltproc" = yes; then
13428  HAVE_XSLTPROC_TRUE=
13429  HAVE_XSLTPROC_FALSE='#'
13430else
13431  HAVE_XSLTPROC_TRUE='#'
13432  HAVE_XSLTPROC_FALSE=
13433fi
13434
13435
13436
13437
13438
13439
13440
13441# Check for different types of support on different platforms
13442case $host_os in
13443    solaris*)
13444        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
13445printf %s "checking for umem_alloc in -lumem... " >&6; }
13446if test ${ac_cv_lib_umem_umem_alloc+y}
13447then :
13448  printf %s "(cached) " >&6
13449else $as_nop
13450  ac_check_lib_save_LIBS=$LIBS
13451LIBS="-lumem  $LIBS"
13452cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13453/* end confdefs.h.  */
13454
13455/* Override any GCC internal prototype to avoid an error.
13456   Use char because int might match the return type of a GCC
13457   builtin and then its argument prototype would still apply.  */
13458char umem_alloc ();
13459int
13460main (void)
13461{
13462return umem_alloc ();
13463  ;
13464  return 0;
13465}
13466_ACEOF
13467if ac_fn_c_try_link "$LINENO"
13468then :
13469  ac_cv_lib_umem_umem_alloc=yes
13470else $as_nop
13471  ac_cv_lib_umem_umem_alloc=no
13472fi
13473rm -f core conftest.err conftest.$ac_objext conftest.beam \
13474    conftest$ac_exeext conftest.$ac_ext
13475LIBS=$ac_check_lib_save_LIBS
13476fi
13477{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
13478printf "%s\n" "$ac_cv_lib_umem_umem_alloc" >&6; }
13479if test "x$ac_cv_lib_umem_umem_alloc" = xyes
13480then :
13481  malloc_debug_env='LD_PRELOAD=libumem.so UMEM_DEBUG=default'
13482fi
13483
13484        ;;
13485    *-gnu*) # GNU libc - Value is used as a single byte bit pattern,
13486        # both directly and inverted, so should not be 0 or 255.
13487        malloc_debug_env='MALLOC_PERTURB_=15'
13488        ;;
13489    darwin*)
13490        malloc_debug_env='MallocPreScribble=1 MallocScribble=1 DYLD_INSERT_LIBRARIES=/usr/lib/libgmalloc.dylib'
13491        ;;
13492    *bsd*)
13493        malloc_debug_env='MallocPreScribble=1 MallocScribble=1'
13494        ;;
13495esac
13496
13497# User supplied flags override default flags
13498if test "x$XORG_MALLOC_DEBUG_ENV" != "x"; then
13499    malloc_debug_env="$XORG_MALLOC_DEBUG_ENV"
13500fi
13501
13502XORG_MALLOC_DEBUG_ENV=$malloc_debug_env
13503
13504
13505
13506
13507
13508
13509
13510# Check whether --enable-unit-tests was given.
13511if test ${enable_unit_tests+y}
13512then :
13513  enableval=$enable_unit_tests; enable_unit_tests=$enableval
13514else $as_nop
13515  enable_unit_tests=auto
13516fi
13517
13518
13519 if test "x$enable_unit_tests" != xno; then
13520  ENABLE_UNIT_TESTS_TRUE=
13521  ENABLE_UNIT_TESTS_FALSE='#'
13522else
13523  ENABLE_UNIT_TESTS_TRUE='#'
13524  ENABLE_UNIT_TESTS_FALSE=
13525fi
13526
13527{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build unit test cases" >&5
13528printf %s "checking whether to build unit test cases... " >&6; }
13529{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_unit_tests" >&5
13530printf "%s\n" "$enable_unit_tests" >&6; }
13531
13532
13533{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-wrap,exit" >&5
13534printf %s "checking whether the linker accepts -Wl,-wrap,exit... " >&6; }
13535if test ${xorg_cv_linker_flags__Wl__wrap_exit+y}
13536then :
13537  printf %s "(cached) " >&6
13538else $as_nop
13539
13540      ax_save_FLAGS=$LDFLAGS
13541      LDFLAGS="-Wl,-wrap,exit"
13542      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13543/* end confdefs.h.  */
13544#include <stdlib.h>
13545                      void __wrap_exit(int status) { return; }
13546int
13547main (void)
13548{
13549exit(0);
13550  ;
13551  return 0;
13552}
13553_ACEOF
13554if ac_fn_c_try_link "$LINENO"
13555then :
13556  xorg_cv_linker_flags__Wl__wrap_exit=yes
13557else $as_nop
13558  xorg_cv_linker_flags__Wl__wrap_exit=no
13559fi
13560rm -f core conftest.err conftest.$ac_objext conftest.beam \
13561    conftest$ac_exeext conftest.$ac_ext
13562      LDFLAGS=$ax_save_FLAGS
13563fi
13564
13565eval xorg_check_linker_flags=$xorg_cv_linker_flags__Wl__wrap_exit
13566{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_check_linker_flags" >&5
13567printf "%s\n" "$xorg_check_linker_flags" >&6; }
13568if test "x$xorg_check_linker_flags" = xyes; then
13569	have_ld_wrap=yes
13570else
13571	have_ld_wrap=no
13572fi
13573
13574# Not having ld wrap when unit testing has been explicitly requested is an error
13575if test "x$enable_unit_tests" = x"yes" -a "xoptional" != "xoptional"; then
13576  if test "x$have_ld_wrap" = x"no"; then
13577    as_fn_error $? "--enable-unit-tests=yes specified but ld -wrap support is not available" "$LINENO" 5
13578  fi
13579fi
13580 if test "$have_ld_wrap" = yes; then
13581  HAVE_LD_WRAP_TRUE=
13582  HAVE_LD_WRAP_FALSE='#'
13583else
13584  HAVE_LD_WRAP_TRUE='#'
13585  HAVE_LD_WRAP_FALSE=
13586fi
13587
13588#
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603ac_config_headers="$ac_config_headers include/do-not-use-config.h"
13604
13605ac_config_headers="$ac_config_headers include/xorg-server.h"
13606
13607ac_config_headers="$ac_config_headers include/dix-config.h"
13608
13609ac_config_headers="$ac_config_headers include/xorg-config.h"
13610
13611ac_config_headers="$ac_config_headers include/xkb-config.h"
13612
13613ac_config_headers="$ac_config_headers include/xwin-config.h"
13614
13615ac_config_headers="$ac_config_headers include/version-config.h"
13616
13617
13618# By default we simply use the C compiler to build assembly code.
13619
13620test "${CCAS+set}" = set || CCAS=$CC
13621test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
13622
13623
13624
13625depcc="$CCAS"   am_compiler_list=
13626
13627{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13628printf %s "checking dependency style of $depcc... " >&6; }
13629if test ${am_cv_CCAS_dependencies_compiler_type+y}
13630then :
13631  printf %s "(cached) " >&6
13632else $as_nop
13633  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13634  # We make a subdir and do the tests there.  Otherwise we can end up
13635  # making bogus files that we don't know about and never remove.  For
13636  # instance it was reported that on HP-UX the gcc test will end up
13637  # making a dummy file named 'D' -- because '-MD' means "put the output
13638  # in D".
13639  rm -rf conftest.dir
13640  mkdir conftest.dir
13641  # Copy depcomp to subdir because otherwise we won't find it if we're
13642  # using a relative directory.
13643  cp "$am_depcomp" conftest.dir
13644  cd conftest.dir
13645  # We will build objects and dependencies in a subdirectory because
13646  # it helps to detect inapplicable dependency modes.  For instance
13647  # both Tru64's cc and ICC support -MD to output dependencies as a
13648  # side effect of compilation, but ICC will put the dependencies in
13649  # the current directory while Tru64 will put them in the object
13650  # directory.
13651  mkdir sub
13652
13653  am_cv_CCAS_dependencies_compiler_type=none
13654  if test "$am_compiler_list" = ""; then
13655     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13656  fi
13657  am__universal=false
13658
13659
13660  for depmode in $am_compiler_list; do
13661    # Setup a source with many dependencies, because some compilers
13662    # like to wrap large dependency lists on column 80 (with \), and
13663    # we should not choose a depcomp mode which is confused by this.
13664    #
13665    # We need to recreate these files for each test, as the compiler may
13666    # overwrite some of them when testing with obscure command lines.
13667    # This happens at least with the AIX C compiler.
13668    : > sub/conftest.c
13669    for i in 1 2 3 4 5 6; do
13670      echo '#include "conftst'$i'.h"' >> sub/conftest.c
13671      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
13672      # Solaris 10 /bin/sh.
13673      echo '/* dummy */' > sub/conftst$i.h
13674    done
13675    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13676
13677    # We check with '-c' and '-o' for the sake of the "dashmstdout"
13678    # mode.  It turns out that the SunPro C++ compiler does not properly
13679    # handle '-M -o', and we need to detect this.  Also, some Intel
13680    # versions had trouble with output in subdirs.
13681    am__obj=sub/conftest.${OBJEXT-o}
13682    am__minus_obj="-o $am__obj"
13683    case $depmode in
13684    gcc)
13685      # This depmode causes a compiler race in universal mode.
13686      test "$am__universal" = false || continue
13687      ;;
13688    nosideeffect)
13689      # After this tag, mechanisms are not by side-effect, so they'll
13690      # only be used when explicitly requested.
13691      if test "x$enable_dependency_tracking" = xyes; then
13692	continue
13693      else
13694	break
13695      fi
13696      ;;
13697    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
13698      # This compiler won't grok '-c -o', but also, the minuso test has
13699      # not run yet.  These depmodes are late enough in the game, and
13700      # so weak that their functioning should not be impacted.
13701      am__obj=conftest.${OBJEXT-o}
13702      am__minus_obj=
13703      ;;
13704    none) break ;;
13705    esac
13706    if depmode=$depmode \
13707       source=sub/conftest.c object=$am__obj \
13708       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13709       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13710         >/dev/null 2>conftest.err &&
13711       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13712       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13713       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13714       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13715      # icc doesn't choke on unknown options, it will just issue warnings
13716      # or remarks (even with -Werror).  So we grep stderr for any message
13717      # that says an option was ignored or not supported.
13718      # When given -MP, icc 7.0 and 7.1 complain thusly:
13719      #   icc: Command line warning: ignoring option '-M'; no argument required
13720      # The diagnosis changed in icc 8.0:
13721      #   icc: Command line remark: option '-MP' not supported
13722      if (grep 'ignoring option' conftest.err ||
13723          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13724        am_cv_CCAS_dependencies_compiler_type=$depmode
13725        break
13726      fi
13727    fi
13728  done
13729
13730  cd ..
13731  rm -rf conftest.dir
13732else
13733  am_cv_CCAS_dependencies_compiler_type=none
13734fi
13735
13736fi
13737{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
13738printf "%s\n" "$am_cv_CCAS_dependencies_compiler_type" >&6; }
13739CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
13740
13741 if
13742  test "x$enable_dependency_tracking" != xno \
13743  && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
13744  am__fastdepCCAS_TRUE=
13745  am__fastdepCCAS_FALSE='#'
13746else
13747  am__fastdepCCAS_TRUE='#'
13748  am__fastdepCCAS_FALSE=
13749fi
13750
13751
13752{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
13753printf %s "checking whether ln -s works... " >&6; }
13754LN_S=$as_ln_s
13755if test "$LN_S" = "ln -s"; then
13756  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13757printf "%s\n" "yes" >&6; }
13758else
13759  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
13760printf "%s\n" "no, using $LN_S" >&6; }
13761fi
13762
13763
13764case `pwd` in
13765  *\ * | *\	*)
13766    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
13767printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
13768esac
13769
13770
13771
13772macro_version='2.4.7'
13773macro_revision='2.4.7'
13774
13775
13776
13777
13778
13779
13780
13781
13782
13783
13784
13785
13786
13787
13788ltmain=$ac_aux_dir/ltmain.sh
13789
13790# Backslashify metacharacters that are still active within
13791# double-quoted strings.
13792sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
13793
13794# Same as above, but do not quote variable references.
13795double_quote_subst='s/\(["`\\]\)/\\\1/g'
13796
13797# Sed substitution to delay expansion of an escaped shell variable in a
13798# double_quote_subst'ed string.
13799delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13800
13801# Sed substitution to delay expansion of an escaped single quote.
13802delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
13803
13804# Sed substitution to avoid accidental globbing in evaled expressions
13805no_glob_subst='s/\*/\\\*/g'
13806
13807ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13808ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
13809ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
13810
13811{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
13812printf %s "checking how to print strings... " >&6; }
13813# Test print first, because it will be a builtin if present.
13814if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
13815   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
13816  ECHO='print -r --'
13817elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
13818  ECHO='printf %s\n'
13819else
13820  # Use this function as a fallback that always works.
13821  func_fallback_echo ()
13822  {
13823    eval 'cat <<_LTECHO_EOF
13824$1
13825_LTECHO_EOF'
13826  }
13827  ECHO='func_fallback_echo'
13828fi
13829
13830# func_echo_all arg...
13831# Invoke $ECHO with all args, space-separated.
13832func_echo_all ()
13833{
13834    $ECHO ""
13835}
13836
13837case $ECHO in
13838  printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
13839printf "%s\n" "printf" >&6; } ;;
13840  print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
13841printf "%s\n" "print -r" >&6; } ;;
13842  *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
13843printf "%s\n" "cat" >&6; } ;;
13844esac
13845
13846
13847
13848
13849
13850
13851
13852
13853
13854
13855
13856
13857
13858
13859{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
13860printf %s "checking for a sed that does not truncate output... " >&6; }
13861if test ${ac_cv_path_SED+y}
13862then :
13863  printf %s "(cached) " >&6
13864else $as_nop
13865            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
13866     for ac_i in 1 2 3 4 5 6 7; do
13867       ac_script="$ac_script$as_nl$ac_script"
13868     done
13869     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
13870     { ac_script=; unset ac_script;}
13871     if test -z "$SED"; then
13872  ac_path_SED_found=false
13873  # Loop through the user's path and test for each of PROGNAME-LIST
13874  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13875for as_dir in $PATH
13876do
13877  IFS=$as_save_IFS
13878  case $as_dir in #(((
13879    '') as_dir=./ ;;
13880    */) ;;
13881    *) as_dir=$as_dir/ ;;
13882  esac
13883    for ac_prog in sed gsed
13884   do
13885    for ac_exec_ext in '' $ac_executable_extensions; do
13886      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
13887      as_fn_executable_p "$ac_path_SED" || continue
13888# Check for GNU ac_path_SED and select it if it is found.
13889  # Check for GNU $ac_path_SED
13890case `"$ac_path_SED" --version 2>&1` in
13891*GNU*)
13892  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
13893*)
13894  ac_count=0
13895  printf %s 0123456789 >"conftest.in"
13896  while :
13897  do
13898    cat "conftest.in" "conftest.in" >"conftest.tmp"
13899    mv "conftest.tmp" "conftest.in"
13900    cp "conftest.in" "conftest.nl"
13901    printf "%s\n" '' >> "conftest.nl"
13902    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
13903    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13904    as_fn_arith $ac_count + 1 && ac_count=$as_val
13905    if test $ac_count -gt ${ac_path_SED_max-0}; then
13906      # Best one so far, save it but keep looking for a better one
13907      ac_cv_path_SED="$ac_path_SED"
13908      ac_path_SED_max=$ac_count
13909    fi
13910    # 10*(2^10) chars as input seems more than enough
13911    test $ac_count -gt 10 && break
13912  done
13913  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13914esac
13915
13916      $ac_path_SED_found && break 3
13917    done
13918  done
13919  done
13920IFS=$as_save_IFS
13921  if test -z "$ac_cv_path_SED"; then
13922    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
13923  fi
13924else
13925  ac_cv_path_SED=$SED
13926fi
13927
13928fi
13929{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
13930printf "%s\n" "$ac_cv_path_SED" >&6; }
13931 SED="$ac_cv_path_SED"
13932  rm -f conftest.sed
13933
13934test -z "$SED" && SED=sed
13935Xsed="$SED -e 1s/^X//"
13936
13937
13938
13939
13940
13941
13942
13943
13944
13945
13946
13947{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
13948printf %s "checking for grep that handles long lines and -e... " >&6; }
13949if test ${ac_cv_path_GREP+y}
13950then :
13951  printf %s "(cached) " >&6
13952else $as_nop
13953  if test -z "$GREP"; then
13954  ac_path_GREP_found=false
13955  # Loop through the user's path and test for each of PROGNAME-LIST
13956  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13957for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13958do
13959  IFS=$as_save_IFS
13960  case $as_dir in #(((
13961    '') as_dir=./ ;;
13962    */) ;;
13963    *) as_dir=$as_dir/ ;;
13964  esac
13965    for ac_prog in grep ggrep
13966   do
13967    for ac_exec_ext in '' $ac_executable_extensions; do
13968      ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
13969      as_fn_executable_p "$ac_path_GREP" || continue
13970# Check for GNU ac_path_GREP and select it if it is found.
13971  # Check for GNU $ac_path_GREP
13972case `"$ac_path_GREP" --version 2>&1` in
13973*GNU*)
13974  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
13975*)
13976  ac_count=0
13977  printf %s 0123456789 >"conftest.in"
13978  while :
13979  do
13980    cat "conftest.in" "conftest.in" >"conftest.tmp"
13981    mv "conftest.tmp" "conftest.in"
13982    cp "conftest.in" "conftest.nl"
13983    printf "%s\n" 'GREP' >> "conftest.nl"
13984    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
13985    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13986    as_fn_arith $ac_count + 1 && ac_count=$as_val
13987    if test $ac_count -gt ${ac_path_GREP_max-0}; then
13988      # Best one so far, save it but keep looking for a better one
13989      ac_cv_path_GREP="$ac_path_GREP"
13990      ac_path_GREP_max=$ac_count
13991    fi
13992    # 10*(2^10) chars as input seems more than enough
13993    test $ac_count -gt 10 && break
13994  done
13995  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13996esac
13997
13998      $ac_path_GREP_found && break 3
13999    done
14000  done
14001  done
14002IFS=$as_save_IFS
14003  if test -z "$ac_cv_path_GREP"; then
14004    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
14005  fi
14006else
14007  ac_cv_path_GREP=$GREP
14008fi
14009
14010fi
14011{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
14012printf "%s\n" "$ac_cv_path_GREP" >&6; }
14013 GREP="$ac_cv_path_GREP"
14014
14015
14016{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
14017printf %s "checking for egrep... " >&6; }
14018if test ${ac_cv_path_EGREP+y}
14019then :
14020  printf %s "(cached) " >&6
14021else $as_nop
14022  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
14023   then ac_cv_path_EGREP="$GREP -E"
14024   else
14025     if test -z "$EGREP"; then
14026  ac_path_EGREP_found=false
14027  # Loop through the user's path and test for each of PROGNAME-LIST
14028  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14029for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
14030do
14031  IFS=$as_save_IFS
14032  case $as_dir in #(((
14033    '') as_dir=./ ;;
14034    */) ;;
14035    *) as_dir=$as_dir/ ;;
14036  esac
14037    for ac_prog in egrep
14038   do
14039    for ac_exec_ext in '' $ac_executable_extensions; do
14040      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
14041      as_fn_executable_p "$ac_path_EGREP" || continue
14042# Check for GNU ac_path_EGREP and select it if it is found.
14043  # Check for GNU $ac_path_EGREP
14044case `"$ac_path_EGREP" --version 2>&1` in
14045*GNU*)
14046  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
14047*)
14048  ac_count=0
14049  printf %s 0123456789 >"conftest.in"
14050  while :
14051  do
14052    cat "conftest.in" "conftest.in" >"conftest.tmp"
14053    mv "conftest.tmp" "conftest.in"
14054    cp "conftest.in" "conftest.nl"
14055    printf "%s\n" 'EGREP' >> "conftest.nl"
14056    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
14057    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
14058    as_fn_arith $ac_count + 1 && ac_count=$as_val
14059    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
14060      # Best one so far, save it but keep looking for a better one
14061      ac_cv_path_EGREP="$ac_path_EGREP"
14062      ac_path_EGREP_max=$ac_count
14063    fi
14064    # 10*(2^10) chars as input seems more than enough
14065    test $ac_count -gt 10 && break
14066  done
14067  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
14068esac
14069
14070      $ac_path_EGREP_found && break 3
14071    done
14072  done
14073  done
14074IFS=$as_save_IFS
14075  if test -z "$ac_cv_path_EGREP"; then
14076    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
14077  fi
14078else
14079  ac_cv_path_EGREP=$EGREP
14080fi
14081
14082   fi
14083fi
14084{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
14085printf "%s\n" "$ac_cv_path_EGREP" >&6; }
14086 EGREP="$ac_cv_path_EGREP"
14087
14088
14089{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
14090printf %s "checking for fgrep... " >&6; }
14091if test ${ac_cv_path_FGREP+y}
14092then :
14093  printf %s "(cached) " >&6
14094else $as_nop
14095  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
14096   then ac_cv_path_FGREP="$GREP -F"
14097   else
14098     if test -z "$FGREP"; then
14099  ac_path_FGREP_found=false
14100  # Loop through the user's path and test for each of PROGNAME-LIST
14101  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14102for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
14103do
14104  IFS=$as_save_IFS
14105  case $as_dir in #(((
14106    '') as_dir=./ ;;
14107    */) ;;
14108    *) as_dir=$as_dir/ ;;
14109  esac
14110    for ac_prog in fgrep
14111   do
14112    for ac_exec_ext in '' $ac_executable_extensions; do
14113      ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
14114      as_fn_executable_p "$ac_path_FGREP" || continue
14115# Check for GNU ac_path_FGREP and select it if it is found.
14116  # Check for GNU $ac_path_FGREP
14117case `"$ac_path_FGREP" --version 2>&1` in
14118*GNU*)
14119  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
14120*)
14121  ac_count=0
14122  printf %s 0123456789 >"conftest.in"
14123  while :
14124  do
14125    cat "conftest.in" "conftest.in" >"conftest.tmp"
14126    mv "conftest.tmp" "conftest.in"
14127    cp "conftest.in" "conftest.nl"
14128    printf "%s\n" 'FGREP' >> "conftest.nl"
14129    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
14130    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
14131    as_fn_arith $ac_count + 1 && ac_count=$as_val
14132    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
14133      # Best one so far, save it but keep looking for a better one
14134      ac_cv_path_FGREP="$ac_path_FGREP"
14135      ac_path_FGREP_max=$ac_count
14136    fi
14137    # 10*(2^10) chars as input seems more than enough
14138    test $ac_count -gt 10 && break
14139  done
14140  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
14141esac
14142
14143      $ac_path_FGREP_found && break 3
14144    done
14145  done
14146  done
14147IFS=$as_save_IFS
14148  if test -z "$ac_cv_path_FGREP"; then
14149    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
14150  fi
14151else
14152  ac_cv_path_FGREP=$FGREP
14153fi
14154
14155   fi
14156fi
14157{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
14158printf "%s\n" "$ac_cv_path_FGREP" >&6; }
14159 FGREP="$ac_cv_path_FGREP"
14160
14161
14162test -z "$GREP" && GREP=grep
14163
14164
14165
14166
14167
14168
14169
14170
14171
14172
14173
14174
14175
14176
14177
14178
14179
14180
14181
14182# Check whether --with-gnu-ld was given.
14183if test ${with_gnu_ld+y}
14184then :
14185  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
14186else $as_nop
14187  with_gnu_ld=no
14188fi
14189
14190ac_prog=ld
14191if test yes = "$GCC"; then
14192  # Check if gcc -print-prog-name=ld gives a path.
14193  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14194printf %s "checking for ld used by $CC... " >&6; }
14195  case $host in
14196  *-*-mingw*)
14197    # gcc leaves a trailing carriage return, which upsets mingw
14198    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14199  *)
14200    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14201  esac
14202  case $ac_prog in
14203    # Accept absolute paths.
14204    [\\/]* | ?:[\\/]*)
14205      re_direlt='/[^/][^/]*/\.\./'
14206      # Canonicalize the pathname of ld
14207      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14208      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14209	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14210      done
14211      test -z "$LD" && LD=$ac_prog
14212      ;;
14213  "")
14214    # If it fails, then pretend we aren't using GCC.
14215    ac_prog=ld
14216    ;;
14217  *)
14218    # If it is relative, then search for the first ld in PATH.
14219    with_gnu_ld=unknown
14220    ;;
14221  esac
14222elif test yes = "$with_gnu_ld"; then
14223  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14224printf %s "checking for GNU ld... " >&6; }
14225else
14226  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14227printf %s "checking for non-GNU ld... " >&6; }
14228fi
14229if test ${lt_cv_path_LD+y}
14230then :
14231  printf %s "(cached) " >&6
14232else $as_nop
14233  if test -z "$LD"; then
14234  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14235  for ac_dir in $PATH; do
14236    IFS=$lt_save_ifs
14237    test -z "$ac_dir" && ac_dir=.
14238    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14239      lt_cv_path_LD=$ac_dir/$ac_prog
14240      # Check to see if the program is GNU ld.  I'd rather use --version,
14241      # but apparently some variants of GNU ld only accept -v.
14242      # Break only if it was the GNU/non-GNU ld that we prefer.
14243      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14244      *GNU* | *'with BFD'*)
14245	test no != "$with_gnu_ld" && break
14246	;;
14247      *)
14248	test yes != "$with_gnu_ld" && break
14249	;;
14250      esac
14251    fi
14252  done
14253  IFS=$lt_save_ifs
14254else
14255  lt_cv_path_LD=$LD # Let the user override the test with a path.
14256fi
14257fi
14258
14259LD=$lt_cv_path_LD
14260if test -n "$LD"; then
14261  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14262printf "%s\n" "$LD" >&6; }
14263else
14264  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14265printf "%s\n" "no" >&6; }
14266fi
14267test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14268{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14269printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
14270if test ${lt_cv_prog_gnu_ld+y}
14271then :
14272  printf %s "(cached) " >&6
14273else $as_nop
14274  # I'd rather use --version here, but apparently some GNU lds only accept -v.
14275case `$LD -v 2>&1 </dev/null` in
14276*GNU* | *'with BFD'*)
14277  lt_cv_prog_gnu_ld=yes
14278  ;;
14279*)
14280  lt_cv_prog_gnu_ld=no
14281  ;;
14282esac
14283fi
14284{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14285printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
14286with_gnu_ld=$lt_cv_prog_gnu_ld
14287
14288
14289
14290
14291
14292
14293
14294
14295
14296{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
14297printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
14298if test ${lt_cv_path_NM+y}
14299then :
14300  printf %s "(cached) " >&6
14301else $as_nop
14302  if test -n "$NM"; then
14303  # Let the user override the test.
14304  lt_cv_path_NM=$NM
14305else
14306  lt_nm_to_check=${ac_tool_prefix}nm
14307  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
14308    lt_nm_to_check="$lt_nm_to_check nm"
14309  fi
14310  for lt_tmp_nm in $lt_nm_to_check; do
14311    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14312    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
14313      IFS=$lt_save_ifs
14314      test -z "$ac_dir" && ac_dir=.
14315      tmp_nm=$ac_dir/$lt_tmp_nm
14316      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
14317	# Check to see if the nm accepts a BSD-compat flag.
14318	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
14319	#   nm: unknown option "B" ignored
14320	# Tru64's nm complains that /dev/null is an invalid object file
14321	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
14322	case $build_os in
14323	mingw*) lt_bad_file=conftest.nm/nofile ;;
14324	*) lt_bad_file=/dev/null ;;
14325	esac
14326	case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
14327	*$lt_bad_file* | *'Invalid file or object type'*)
14328	  lt_cv_path_NM="$tmp_nm -B"
14329	  break 2
14330	  ;;
14331	*)
14332	  case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
14333	  */dev/null*)
14334	    lt_cv_path_NM="$tmp_nm -p"
14335	    break 2
14336	    ;;
14337	  *)
14338	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
14339	    continue # so that we can try to find one that supports BSD flags
14340	    ;;
14341	  esac
14342	  ;;
14343	esac
14344      fi
14345    done
14346    IFS=$lt_save_ifs
14347  done
14348  : ${lt_cv_path_NM=no}
14349fi
14350fi
14351{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
14352printf "%s\n" "$lt_cv_path_NM" >&6; }
14353if test no != "$lt_cv_path_NM"; then
14354  NM=$lt_cv_path_NM
14355else
14356  # Didn't find any BSD compatible name lister, look for dumpbin.
14357  if test -n "$DUMPBIN"; then :
14358    # Let the user override the test.
14359  else
14360    if test -n "$ac_tool_prefix"; then
14361  for ac_prog in dumpbin "link -dump"
14362  do
14363    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14364set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14365{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14366printf %s "checking for $ac_word... " >&6; }
14367if test ${ac_cv_prog_DUMPBIN+y}
14368then :
14369  printf %s "(cached) " >&6
14370else $as_nop
14371  if test -n "$DUMPBIN"; then
14372  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
14373else
14374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14375for as_dir in $PATH
14376do
14377  IFS=$as_save_IFS
14378  case $as_dir in #(((
14379    '') as_dir=./ ;;
14380    */) ;;
14381    *) as_dir=$as_dir/ ;;
14382  esac
14383    for ac_exec_ext in '' $ac_executable_extensions; do
14384  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14385    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
14386    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14387    break 2
14388  fi
14389done
14390  done
14391IFS=$as_save_IFS
14392
14393fi
14394fi
14395DUMPBIN=$ac_cv_prog_DUMPBIN
14396if test -n "$DUMPBIN"; then
14397  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
14398printf "%s\n" "$DUMPBIN" >&6; }
14399else
14400  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14401printf "%s\n" "no" >&6; }
14402fi
14403
14404
14405    test -n "$DUMPBIN" && break
14406  done
14407fi
14408if test -z "$DUMPBIN"; then
14409  ac_ct_DUMPBIN=$DUMPBIN
14410  for ac_prog in dumpbin "link -dump"
14411do
14412  # Extract the first word of "$ac_prog", so it can be a program name with args.
14413set dummy $ac_prog; ac_word=$2
14414{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14415printf %s "checking for $ac_word... " >&6; }
14416if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
14417then :
14418  printf %s "(cached) " >&6
14419else $as_nop
14420  if test -n "$ac_ct_DUMPBIN"; then
14421  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
14422else
14423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14424for as_dir in $PATH
14425do
14426  IFS=$as_save_IFS
14427  case $as_dir in #(((
14428    '') as_dir=./ ;;
14429    */) ;;
14430    *) as_dir=$as_dir/ ;;
14431  esac
14432    for ac_exec_ext in '' $ac_executable_extensions; do
14433  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14434    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
14435    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14436    break 2
14437  fi
14438done
14439  done
14440IFS=$as_save_IFS
14441
14442fi
14443fi
14444ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
14445if test -n "$ac_ct_DUMPBIN"; then
14446  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
14447printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
14448else
14449  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14450printf "%s\n" "no" >&6; }
14451fi
14452
14453
14454  test -n "$ac_ct_DUMPBIN" && break
14455done
14456
14457  if test "x$ac_ct_DUMPBIN" = x; then
14458    DUMPBIN=":"
14459  else
14460    case $cross_compiling:$ac_tool_warned in
14461yes:)
14462{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14463printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14464ac_tool_warned=yes ;;
14465esac
14466    DUMPBIN=$ac_ct_DUMPBIN
14467  fi
14468fi
14469
14470    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
14471    *COFF*)
14472      DUMPBIN="$DUMPBIN -symbols -headers"
14473      ;;
14474    *)
14475      DUMPBIN=:
14476      ;;
14477    esac
14478  fi
14479
14480  if test : != "$DUMPBIN"; then
14481    NM=$DUMPBIN
14482  fi
14483fi
14484test -z "$NM" && NM=nm
14485
14486
14487
14488
14489
14490
14491{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
14492printf %s "checking the name lister ($NM) interface... " >&6; }
14493if test ${lt_cv_nm_interface+y}
14494then :
14495  printf %s "(cached) " >&6
14496else $as_nop
14497  lt_cv_nm_interface="BSD nm"
14498  echo "int some_variable = 0;" > conftest.$ac_ext
14499  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
14500  (eval "$ac_compile" 2>conftest.err)
14501  cat conftest.err >&5
14502  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
14503  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
14504  cat conftest.err >&5
14505  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
14506  cat conftest.out >&5
14507  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
14508    lt_cv_nm_interface="MS dumpbin"
14509  fi
14510  rm -f conftest*
14511fi
14512{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
14513printf "%s\n" "$lt_cv_nm_interface" >&6; }
14514
14515# find the maximum length of command line arguments
14516{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
14517printf %s "checking the maximum length of command line arguments... " >&6; }
14518if test ${lt_cv_sys_max_cmd_len+y}
14519then :
14520  printf %s "(cached) " >&6
14521else $as_nop
14522    i=0
14523  teststring=ABCD
14524
14525  case $build_os in
14526  msdosdjgpp*)
14527    # On DJGPP, this test can blow up pretty badly due to problems in libc
14528    # (any single argument exceeding 2000 bytes causes a buffer overrun
14529    # during glob expansion).  Even if it were fixed, the result of this
14530    # check would be larger than it should be.
14531    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
14532    ;;
14533
14534  gnu*)
14535    # Under GNU Hurd, this test is not required because there is
14536    # no limit to the length of command line arguments.
14537    # Libtool will interpret -1 as no limit whatsoever
14538    lt_cv_sys_max_cmd_len=-1;
14539    ;;
14540
14541  cygwin* | mingw* | cegcc*)
14542    # On Win9x/ME, this test blows up -- it succeeds, but takes
14543    # about 5 minutes as the teststring grows exponentially.
14544    # Worse, since 9x/ME are not pre-emptively multitasking,
14545    # you end up with a "frozen" computer, even though with patience
14546    # the test eventually succeeds (with a max line length of 256k).
14547    # Instead, let's just punt: use the minimum linelength reported by
14548    # all of the supported platforms: 8192 (on NT/2K/XP).
14549    lt_cv_sys_max_cmd_len=8192;
14550    ;;
14551
14552  mint*)
14553    # On MiNT this can take a long time and run out of memory.
14554    lt_cv_sys_max_cmd_len=8192;
14555    ;;
14556
14557  amigaos*)
14558    # On AmigaOS with pdksh, this test takes hours, literally.
14559    # So we just punt and use a minimum line length of 8192.
14560    lt_cv_sys_max_cmd_len=8192;
14561    ;;
14562
14563  bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
14564    # This has been around since 386BSD, at least.  Likely further.
14565    if test -x /sbin/sysctl; then
14566      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
14567    elif test -x /usr/sbin/sysctl; then
14568      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
14569    else
14570      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
14571    fi
14572    # And add a safety zone
14573    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
14574    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
14575    ;;
14576
14577  interix*)
14578    # We know the value 262144 and hardcode it with a safety zone (like BSD)
14579    lt_cv_sys_max_cmd_len=196608
14580    ;;
14581
14582  os2*)
14583    # The test takes a long time on OS/2.
14584    lt_cv_sys_max_cmd_len=8192
14585    ;;
14586
14587  osf*)
14588    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
14589    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
14590    # nice to cause kernel panics so lets avoid the loop below.
14591    # First set a reasonable default.
14592    lt_cv_sys_max_cmd_len=16384
14593    #
14594    if test -x /sbin/sysconfig; then
14595      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
14596        *1*) lt_cv_sys_max_cmd_len=-1 ;;
14597      esac
14598    fi
14599    ;;
14600  sco3.2v5*)
14601    lt_cv_sys_max_cmd_len=102400
14602    ;;
14603  sysv5* | sco5v6* | sysv4.2uw2*)
14604    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
14605    if test -n "$kargmax"; then
14606      lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[	 ]//'`
14607    else
14608      lt_cv_sys_max_cmd_len=32768
14609    fi
14610    ;;
14611  *)
14612    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
14613    if test -n "$lt_cv_sys_max_cmd_len" && \
14614       test undefined != "$lt_cv_sys_max_cmd_len"; then
14615      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
14616      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
14617    else
14618      # Make teststring a little bigger before we do anything with it.
14619      # a 1K string should be a reasonable start.
14620      for i in 1 2 3 4 5 6 7 8; do
14621        teststring=$teststring$teststring
14622      done
14623      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
14624      # If test is not a shell built-in, we'll probably end up computing a
14625      # maximum length that is only half of the actual maximum length, but
14626      # we can't tell.
14627      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
14628	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
14629	      test 17 != "$i" # 1/2 MB should be enough
14630      do
14631        i=`expr $i + 1`
14632        teststring=$teststring$teststring
14633      done
14634      # Only check the string length outside the loop.
14635      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
14636      teststring=
14637      # Add a significant safety factor because C++ compilers can tack on
14638      # massive amounts of additional arguments before passing them to the
14639      # linker.  It appears as though 1/2 is a usable value.
14640      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
14641    fi
14642    ;;
14643  esac
14644
14645fi
14646
14647if test -n "$lt_cv_sys_max_cmd_len"; then
14648  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
14649printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
14650else
14651  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
14652printf "%s\n" "none" >&6; }
14653fi
14654max_cmd_len=$lt_cv_sys_max_cmd_len
14655
14656
14657
14658
14659
14660
14661: ${CP="cp -f"}
14662: ${MV="mv -f"}
14663: ${RM="rm -f"}
14664
14665if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14666  lt_unset=unset
14667else
14668  lt_unset=false
14669fi
14670
14671
14672
14673
14674
14675# test EBCDIC or ASCII
14676case `echo X|tr X '\101'` in
14677 A) # ASCII based system
14678    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
14679  lt_SP2NL='tr \040 \012'
14680  lt_NL2SP='tr \015\012 \040\040'
14681  ;;
14682 *) # EBCDIC based system
14683  lt_SP2NL='tr \100 \n'
14684  lt_NL2SP='tr \r\n \100\100'
14685  ;;
14686esac
14687
14688
14689
14690
14691
14692
14693
14694
14695
14696{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
14697printf %s "checking how to convert $build file names to $host format... " >&6; }
14698if test ${lt_cv_to_host_file_cmd+y}
14699then :
14700  printf %s "(cached) " >&6
14701else $as_nop
14702  case $host in
14703  *-*-mingw* )
14704    case $build in
14705      *-*-mingw* ) # actually msys
14706        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
14707        ;;
14708      *-*-cygwin* )
14709        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
14710        ;;
14711      * ) # otherwise, assume *nix
14712        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
14713        ;;
14714    esac
14715    ;;
14716  *-*-cygwin* )
14717    case $build in
14718      *-*-mingw* ) # actually msys
14719        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
14720        ;;
14721      *-*-cygwin* )
14722        lt_cv_to_host_file_cmd=func_convert_file_noop
14723        ;;
14724      * ) # otherwise, assume *nix
14725        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
14726        ;;
14727    esac
14728    ;;
14729  * ) # unhandled hosts (and "normal" native builds)
14730    lt_cv_to_host_file_cmd=func_convert_file_noop
14731    ;;
14732esac
14733
14734fi
14735
14736to_host_file_cmd=$lt_cv_to_host_file_cmd
14737{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
14738printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
14739
14740
14741
14742
14743
14744{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
14745printf %s "checking how to convert $build file names to toolchain format... " >&6; }
14746if test ${lt_cv_to_tool_file_cmd+y}
14747then :
14748  printf %s "(cached) " >&6
14749else $as_nop
14750  #assume ordinary cross tools, or native build.
14751lt_cv_to_tool_file_cmd=func_convert_file_noop
14752case $host in
14753  *-*-mingw* )
14754    case $build in
14755      *-*-mingw* ) # actually msys
14756        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
14757        ;;
14758    esac
14759    ;;
14760esac
14761
14762fi
14763
14764to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14765{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
14766printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
14767
14768
14769
14770
14771
14772{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
14773printf %s "checking for $LD option to reload object files... " >&6; }
14774if test ${lt_cv_ld_reload_flag+y}
14775then :
14776  printf %s "(cached) " >&6
14777else $as_nop
14778  lt_cv_ld_reload_flag='-r'
14779fi
14780{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
14781printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
14782reload_flag=$lt_cv_ld_reload_flag
14783case $reload_flag in
14784"" | " "*) ;;
14785*) reload_flag=" $reload_flag" ;;
14786esac
14787reload_cmds='$LD$reload_flag -o $output$reload_objs'
14788case $host_os in
14789  cygwin* | mingw* | pw32* | cegcc*)
14790    if test yes != "$GCC"; then
14791      reload_cmds=false
14792    fi
14793    ;;
14794  darwin*)
14795    if test yes = "$GCC"; then
14796      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
14797    else
14798      reload_cmds='$LD$reload_flag -o $output$reload_objs'
14799    fi
14800    ;;
14801esac
14802
14803
14804
14805
14806
14807
14808
14809
14810
14811if test -n "$ac_tool_prefix"; then
14812  # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
14813set dummy ${ac_tool_prefix}file; ac_word=$2
14814{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14815printf %s "checking for $ac_word... " >&6; }
14816if test ${ac_cv_prog_FILECMD+y}
14817then :
14818  printf %s "(cached) " >&6
14819else $as_nop
14820  if test -n "$FILECMD"; then
14821  ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
14822else
14823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14824for as_dir in $PATH
14825do
14826  IFS=$as_save_IFS
14827  case $as_dir in #(((
14828    '') as_dir=./ ;;
14829    */) ;;
14830    *) as_dir=$as_dir/ ;;
14831  esac
14832    for ac_exec_ext in '' $ac_executable_extensions; do
14833  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14834    ac_cv_prog_FILECMD="${ac_tool_prefix}file"
14835    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14836    break 2
14837  fi
14838done
14839  done
14840IFS=$as_save_IFS
14841
14842fi
14843fi
14844FILECMD=$ac_cv_prog_FILECMD
14845if test -n "$FILECMD"; then
14846  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
14847printf "%s\n" "$FILECMD" >&6; }
14848else
14849  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14850printf "%s\n" "no" >&6; }
14851fi
14852
14853
14854fi
14855if test -z "$ac_cv_prog_FILECMD"; then
14856  ac_ct_FILECMD=$FILECMD
14857  # Extract the first word of "file", so it can be a program name with args.
14858set dummy file; ac_word=$2
14859{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14860printf %s "checking for $ac_word... " >&6; }
14861if test ${ac_cv_prog_ac_ct_FILECMD+y}
14862then :
14863  printf %s "(cached) " >&6
14864else $as_nop
14865  if test -n "$ac_ct_FILECMD"; then
14866  ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
14867else
14868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14869for as_dir in $PATH
14870do
14871  IFS=$as_save_IFS
14872  case $as_dir in #(((
14873    '') as_dir=./ ;;
14874    */) ;;
14875    *) as_dir=$as_dir/ ;;
14876  esac
14877    for ac_exec_ext in '' $ac_executable_extensions; do
14878  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14879    ac_cv_prog_ac_ct_FILECMD="file"
14880    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14881    break 2
14882  fi
14883done
14884  done
14885IFS=$as_save_IFS
14886
14887fi
14888fi
14889ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
14890if test -n "$ac_ct_FILECMD"; then
14891  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
14892printf "%s\n" "$ac_ct_FILECMD" >&6; }
14893else
14894  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14895printf "%s\n" "no" >&6; }
14896fi
14897
14898  if test "x$ac_ct_FILECMD" = x; then
14899    FILECMD=":"
14900  else
14901    case $cross_compiling:$ac_tool_warned in
14902yes:)
14903{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14904printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14905ac_tool_warned=yes ;;
14906esac
14907    FILECMD=$ac_ct_FILECMD
14908  fi
14909else
14910  FILECMD="$ac_cv_prog_FILECMD"
14911fi
14912
14913
14914
14915
14916
14917
14918
14919if test -n "$ac_tool_prefix"; then
14920  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
14921set dummy ${ac_tool_prefix}objdump; ac_word=$2
14922{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14923printf %s "checking for $ac_word... " >&6; }
14924if test ${ac_cv_prog_OBJDUMP+y}
14925then :
14926  printf %s "(cached) " >&6
14927else $as_nop
14928  if test -n "$OBJDUMP"; then
14929  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
14930else
14931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14932for as_dir in $PATH
14933do
14934  IFS=$as_save_IFS
14935  case $as_dir in #(((
14936    '') as_dir=./ ;;
14937    */) ;;
14938    *) as_dir=$as_dir/ ;;
14939  esac
14940    for ac_exec_ext in '' $ac_executable_extensions; do
14941  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14942    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
14943    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14944    break 2
14945  fi
14946done
14947  done
14948IFS=$as_save_IFS
14949
14950fi
14951fi
14952OBJDUMP=$ac_cv_prog_OBJDUMP
14953if test -n "$OBJDUMP"; then
14954  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
14955printf "%s\n" "$OBJDUMP" >&6; }
14956else
14957  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14958printf "%s\n" "no" >&6; }
14959fi
14960
14961
14962fi
14963if test -z "$ac_cv_prog_OBJDUMP"; then
14964  ac_ct_OBJDUMP=$OBJDUMP
14965  # Extract the first word of "objdump", so it can be a program name with args.
14966set dummy objdump; ac_word=$2
14967{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14968printf %s "checking for $ac_word... " >&6; }
14969if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
14970then :
14971  printf %s "(cached) " >&6
14972else $as_nop
14973  if test -n "$ac_ct_OBJDUMP"; then
14974  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
14975else
14976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14977for as_dir in $PATH
14978do
14979  IFS=$as_save_IFS
14980  case $as_dir in #(((
14981    '') as_dir=./ ;;
14982    */) ;;
14983    *) as_dir=$as_dir/ ;;
14984  esac
14985    for ac_exec_ext in '' $ac_executable_extensions; do
14986  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14987    ac_cv_prog_ac_ct_OBJDUMP="objdump"
14988    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14989    break 2
14990  fi
14991done
14992  done
14993IFS=$as_save_IFS
14994
14995fi
14996fi
14997ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
14998if test -n "$ac_ct_OBJDUMP"; then
14999  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
15000printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
15001else
15002  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15003printf "%s\n" "no" >&6; }
15004fi
15005
15006  if test "x$ac_ct_OBJDUMP" = x; then
15007    OBJDUMP="false"
15008  else
15009    case $cross_compiling:$ac_tool_warned in
15010yes:)
15011{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15012printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15013ac_tool_warned=yes ;;
15014esac
15015    OBJDUMP=$ac_ct_OBJDUMP
15016  fi
15017else
15018  OBJDUMP="$ac_cv_prog_OBJDUMP"
15019fi
15020
15021test -z "$OBJDUMP" && OBJDUMP=objdump
15022
15023
15024
15025
15026
15027
15028{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
15029printf %s "checking how to recognize dependent libraries... " >&6; }
15030if test ${lt_cv_deplibs_check_method+y}
15031then :
15032  printf %s "(cached) " >&6
15033else $as_nop
15034  lt_cv_file_magic_cmd='$MAGIC_CMD'
15035lt_cv_file_magic_test_file=
15036lt_cv_deplibs_check_method='unknown'
15037# Need to set the preceding variable on all platforms that support
15038# interlibrary dependencies.
15039# 'none' -- dependencies not supported.
15040# 'unknown' -- same as none, but documents that we really don't know.
15041# 'pass_all' -- all dependencies passed with no checks.
15042# 'test_compile' -- check by making test program.
15043# 'file_magic [[regex]]' -- check by looking for files in library path
15044# that responds to the $file_magic_cmd with a given extended regex.
15045# If you have 'file' or equivalent on your system and you're not sure
15046# whether 'pass_all' will *always* work, you probably want this one.
15047
15048case $host_os in
15049aix[4-9]*)
15050  lt_cv_deplibs_check_method=pass_all
15051  ;;
15052
15053beos*)
15054  lt_cv_deplibs_check_method=pass_all
15055  ;;
15056
15057bsdi[45]*)
15058  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
15059  lt_cv_file_magic_cmd='$FILECMD -L'
15060  lt_cv_file_magic_test_file=/shlib/libc.so
15061  ;;
15062
15063cygwin*)
15064  # func_win32_libid is a shell function defined in ltmain.sh
15065  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
15066  lt_cv_file_magic_cmd='func_win32_libid'
15067  ;;
15068
15069mingw* | pw32*)
15070  # Base MSYS/MinGW do not provide the 'file' command needed by
15071  # func_win32_libid shell function, so use a weaker test based on 'objdump',
15072  # unless we find 'file', for example because we are cross-compiling.
15073  if ( file / ) >/dev/null 2>&1; then
15074    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
15075    lt_cv_file_magic_cmd='func_win32_libid'
15076  else
15077    # Keep this pattern in sync with the one in func_win32_libid.
15078    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
15079    lt_cv_file_magic_cmd='$OBJDUMP -f'
15080  fi
15081  ;;
15082
15083cegcc*)
15084  # use the weaker test based on 'objdump'. See mingw*.
15085  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
15086  lt_cv_file_magic_cmd='$OBJDUMP -f'
15087  ;;
15088
15089darwin* | rhapsody*)
15090  lt_cv_deplibs_check_method=pass_all
15091  ;;
15092
15093freebsd* | dragonfly* | midnightbsd*)
15094  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
15095    case $host_cpu in
15096    i*86 )
15097      # Not sure whether the presence of OpenBSD here was a mistake.
15098      # Let's accept both of them until this is cleared up.
15099      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
15100      lt_cv_file_magic_cmd=$FILECMD
15101      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
15102      ;;
15103    esac
15104  else
15105    lt_cv_deplibs_check_method=pass_all
15106  fi
15107  ;;
15108
15109haiku*)
15110  lt_cv_deplibs_check_method=pass_all
15111  ;;
15112
15113hpux10.20* | hpux11*)
15114  lt_cv_file_magic_cmd=$FILECMD
15115  case $host_cpu in
15116  ia64*)
15117    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
15118    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
15119    ;;
15120  hppa*64*)
15121    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]'
15122    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
15123    ;;
15124  *)
15125    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
15126    lt_cv_file_magic_test_file=/usr/lib/libc.sl
15127    ;;
15128  esac
15129  ;;
15130
15131interix[3-9]*)
15132  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
15133  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
15134  ;;
15135
15136irix5* | irix6* | nonstopux*)
15137  case $LD in
15138  *-32|*"-32 ") libmagic=32-bit;;
15139  *-n32|*"-n32 ") libmagic=N32;;
15140  *-64|*"-64 ") libmagic=64-bit;;
15141  *) libmagic=never-match;;
15142  esac
15143  lt_cv_deplibs_check_method=pass_all
15144  ;;
15145
15146# This must be glibc/ELF.
15147linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15148  lt_cv_deplibs_check_method=pass_all
15149  ;;
15150
15151netbsd*)
15152  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
15153    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
15154  else
15155    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
15156  fi
15157  ;;
15158
15159newos6*)
15160  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
15161  lt_cv_file_magic_cmd=$FILECMD
15162  lt_cv_file_magic_test_file=/usr/lib/libnls.so
15163  ;;
15164
15165*nto* | *qnx*)
15166  lt_cv_deplibs_check_method=pass_all
15167  ;;
15168
15169openbsd* | bitrig*)
15170  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
15171    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
15172  else
15173    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
15174  fi
15175  ;;
15176
15177osf3* | osf4* | osf5*)
15178  lt_cv_deplibs_check_method=pass_all
15179  ;;
15180
15181rdos*)
15182  lt_cv_deplibs_check_method=pass_all
15183  ;;
15184
15185solaris*)
15186  lt_cv_deplibs_check_method=pass_all
15187  ;;
15188
15189sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15190  lt_cv_deplibs_check_method=pass_all
15191  ;;
15192
15193sysv4 | sysv4.3*)
15194  case $host_vendor in
15195  motorola)
15196    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]'
15197    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
15198    ;;
15199  ncr)
15200    lt_cv_deplibs_check_method=pass_all
15201    ;;
15202  sequent)
15203    lt_cv_file_magic_cmd='/bin/file'
15204    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
15205    ;;
15206  sni)
15207    lt_cv_file_magic_cmd='/bin/file'
15208    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
15209    lt_cv_file_magic_test_file=/lib/libc.so
15210    ;;
15211  siemens)
15212    lt_cv_deplibs_check_method=pass_all
15213    ;;
15214  pc)
15215    lt_cv_deplibs_check_method=pass_all
15216    ;;
15217  esac
15218  ;;
15219
15220tpf*)
15221  lt_cv_deplibs_check_method=pass_all
15222  ;;
15223os2*)
15224  lt_cv_deplibs_check_method=pass_all
15225  ;;
15226esac
15227
15228fi
15229{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
15230printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
15231
15232file_magic_glob=
15233want_nocaseglob=no
15234if test "$build" = "$host"; then
15235  case $host_os in
15236  mingw* | pw32*)
15237    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
15238      want_nocaseglob=yes
15239    else
15240      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
15241    fi
15242    ;;
15243  esac
15244fi
15245
15246file_magic_cmd=$lt_cv_file_magic_cmd
15247deplibs_check_method=$lt_cv_deplibs_check_method
15248test -z "$deplibs_check_method" && deplibs_check_method=unknown
15249
15250
15251
15252
15253
15254
15255
15256
15257
15258
15259
15260
15261
15262
15263
15264
15265
15266
15267
15268
15269
15270
15271if test -n "$ac_tool_prefix"; then
15272  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
15273set dummy ${ac_tool_prefix}dlltool; ac_word=$2
15274{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15275printf %s "checking for $ac_word... " >&6; }
15276if test ${ac_cv_prog_DLLTOOL+y}
15277then :
15278  printf %s "(cached) " >&6
15279else $as_nop
15280  if test -n "$DLLTOOL"; then
15281  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
15282else
15283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15284for as_dir in $PATH
15285do
15286  IFS=$as_save_IFS
15287  case $as_dir in #(((
15288    '') as_dir=./ ;;
15289    */) ;;
15290    *) as_dir=$as_dir/ ;;
15291  esac
15292    for ac_exec_ext in '' $ac_executable_extensions; do
15293  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15294    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
15295    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15296    break 2
15297  fi
15298done
15299  done
15300IFS=$as_save_IFS
15301
15302fi
15303fi
15304DLLTOOL=$ac_cv_prog_DLLTOOL
15305if test -n "$DLLTOOL"; then
15306  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
15307printf "%s\n" "$DLLTOOL" >&6; }
15308else
15309  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15310printf "%s\n" "no" >&6; }
15311fi
15312
15313
15314fi
15315if test -z "$ac_cv_prog_DLLTOOL"; then
15316  ac_ct_DLLTOOL=$DLLTOOL
15317  # Extract the first word of "dlltool", so it can be a program name with args.
15318set dummy dlltool; ac_word=$2
15319{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15320printf %s "checking for $ac_word... " >&6; }
15321if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
15322then :
15323  printf %s "(cached) " >&6
15324else $as_nop
15325  if test -n "$ac_ct_DLLTOOL"; then
15326  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
15327else
15328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15329for as_dir in $PATH
15330do
15331  IFS=$as_save_IFS
15332  case $as_dir in #(((
15333    '') as_dir=./ ;;
15334    */) ;;
15335    *) as_dir=$as_dir/ ;;
15336  esac
15337    for ac_exec_ext in '' $ac_executable_extensions; do
15338  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15339    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
15340    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15341    break 2
15342  fi
15343done
15344  done
15345IFS=$as_save_IFS
15346
15347fi
15348fi
15349ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
15350if test -n "$ac_ct_DLLTOOL"; then
15351  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
15352printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
15353else
15354  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15355printf "%s\n" "no" >&6; }
15356fi
15357
15358  if test "x$ac_ct_DLLTOOL" = x; then
15359    DLLTOOL="false"
15360  else
15361    case $cross_compiling:$ac_tool_warned in
15362yes:)
15363{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15364printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15365ac_tool_warned=yes ;;
15366esac
15367    DLLTOOL=$ac_ct_DLLTOOL
15368  fi
15369else
15370  DLLTOOL="$ac_cv_prog_DLLTOOL"
15371fi
15372
15373test -z "$DLLTOOL" && DLLTOOL=dlltool
15374
15375
15376
15377
15378
15379
15380
15381{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
15382printf %s "checking how to associate runtime and link libraries... " >&6; }
15383if test ${lt_cv_sharedlib_from_linklib_cmd+y}
15384then :
15385  printf %s "(cached) " >&6
15386else $as_nop
15387  lt_cv_sharedlib_from_linklib_cmd='unknown'
15388
15389case $host_os in
15390cygwin* | mingw* | pw32* | cegcc*)
15391  # two different shell functions defined in ltmain.sh;
15392  # decide which one to use based on capabilities of $DLLTOOL
15393  case `$DLLTOOL --help 2>&1` in
15394  *--identify-strict*)
15395    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
15396    ;;
15397  *)
15398    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
15399    ;;
15400  esac
15401  ;;
15402*)
15403  # fallback: assume linklib IS sharedlib
15404  lt_cv_sharedlib_from_linklib_cmd=$ECHO
15405  ;;
15406esac
15407
15408fi
15409{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
15410printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
15411sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
15412test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
15413
15414
15415
15416
15417
15418
15419
15420if test -n "$ac_tool_prefix"; then
15421  for ac_prog in ar
15422  do
15423    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
15424set dummy $ac_tool_prefix$ac_prog; ac_word=$2
15425{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15426printf %s "checking for $ac_word... " >&6; }
15427if test ${ac_cv_prog_AR+y}
15428then :
15429  printf %s "(cached) " >&6
15430else $as_nop
15431  if test -n "$AR"; then
15432  ac_cv_prog_AR="$AR" # Let the user override the test.
15433else
15434as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15435for as_dir in $PATH
15436do
15437  IFS=$as_save_IFS
15438  case $as_dir in #(((
15439    '') as_dir=./ ;;
15440    */) ;;
15441    *) as_dir=$as_dir/ ;;
15442  esac
15443    for ac_exec_ext in '' $ac_executable_extensions; do
15444  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15445    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
15446    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15447    break 2
15448  fi
15449done
15450  done
15451IFS=$as_save_IFS
15452
15453fi
15454fi
15455AR=$ac_cv_prog_AR
15456if test -n "$AR"; then
15457  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
15458printf "%s\n" "$AR" >&6; }
15459else
15460  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15461printf "%s\n" "no" >&6; }
15462fi
15463
15464
15465    test -n "$AR" && break
15466  done
15467fi
15468if test -z "$AR"; then
15469  ac_ct_AR=$AR
15470  for ac_prog in ar
15471do
15472  # Extract the first word of "$ac_prog", so it can be a program name with args.
15473set dummy $ac_prog; ac_word=$2
15474{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15475printf %s "checking for $ac_word... " >&6; }
15476if test ${ac_cv_prog_ac_ct_AR+y}
15477then :
15478  printf %s "(cached) " >&6
15479else $as_nop
15480  if test -n "$ac_ct_AR"; then
15481  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
15482else
15483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15484for as_dir in $PATH
15485do
15486  IFS=$as_save_IFS
15487  case $as_dir in #(((
15488    '') as_dir=./ ;;
15489    */) ;;
15490    *) as_dir=$as_dir/ ;;
15491  esac
15492    for ac_exec_ext in '' $ac_executable_extensions; do
15493  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15494    ac_cv_prog_ac_ct_AR="$ac_prog"
15495    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15496    break 2
15497  fi
15498done
15499  done
15500IFS=$as_save_IFS
15501
15502fi
15503fi
15504ac_ct_AR=$ac_cv_prog_ac_ct_AR
15505if test -n "$ac_ct_AR"; then
15506  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
15507printf "%s\n" "$ac_ct_AR" >&6; }
15508else
15509  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15510printf "%s\n" "no" >&6; }
15511fi
15512
15513
15514  test -n "$ac_ct_AR" && break
15515done
15516
15517  if test "x$ac_ct_AR" = x; then
15518    AR="false"
15519  else
15520    case $cross_compiling:$ac_tool_warned in
15521yes:)
15522{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15523printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15524ac_tool_warned=yes ;;
15525esac
15526    AR=$ac_ct_AR
15527  fi
15528fi
15529
15530: ${AR=ar}
15531
15532
15533
15534
15535
15536
15537# Use ARFLAGS variable as AR's operation code to sync the variable naming with
15538# Automake.  If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
15539# higher priority because thats what people were doing historically (setting
15540# ARFLAGS for automake and AR_FLAGS for libtool).  FIXME: Make the AR_FLAGS
15541# variable obsoleted/removed.
15542
15543test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
15544lt_ar_flags=$AR_FLAGS
15545
15546
15547
15548
15549
15550
15551# Make AR_FLAGS overridable by 'make ARFLAGS='.  Don't try to run-time override
15552# by AR_FLAGS because that was never working and AR_FLAGS is about to die.
15553
15554
15555
15556
15557
15558
15559{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
15560printf %s "checking for archiver @FILE support... " >&6; }
15561if test ${lt_cv_ar_at_file+y}
15562then :
15563  printf %s "(cached) " >&6
15564else $as_nop
15565  lt_cv_ar_at_file=no
15566   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15567/* end confdefs.h.  */
15568
15569int
15570main (void)
15571{
15572
15573  ;
15574  return 0;
15575}
15576_ACEOF
15577if ac_fn_c_try_compile "$LINENO"
15578then :
15579  echo conftest.$ac_objext > conftest.lst
15580      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
15581      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
15582  (eval $lt_ar_try) 2>&5
15583  ac_status=$?
15584  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15585  test $ac_status = 0; }
15586      if test 0 -eq "$ac_status"; then
15587	# Ensure the archiver fails upon bogus file names.
15588	rm -f conftest.$ac_objext libconftest.a
15589	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
15590  (eval $lt_ar_try) 2>&5
15591  ac_status=$?
15592  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15593  test $ac_status = 0; }
15594	if test 0 -ne "$ac_status"; then
15595          lt_cv_ar_at_file=@
15596        fi
15597      fi
15598      rm -f conftest.* libconftest.a
15599
15600fi
15601rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15602
15603fi
15604{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
15605printf "%s\n" "$lt_cv_ar_at_file" >&6; }
15606
15607if test no = "$lt_cv_ar_at_file"; then
15608  archiver_list_spec=
15609else
15610  archiver_list_spec=$lt_cv_ar_at_file
15611fi
15612
15613
15614
15615
15616
15617
15618
15619if test -n "$ac_tool_prefix"; then
15620  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
15621set dummy ${ac_tool_prefix}strip; ac_word=$2
15622{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15623printf %s "checking for $ac_word... " >&6; }
15624if test ${ac_cv_prog_STRIP+y}
15625then :
15626  printf %s "(cached) " >&6
15627else $as_nop
15628  if test -n "$STRIP"; then
15629  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
15630else
15631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15632for as_dir in $PATH
15633do
15634  IFS=$as_save_IFS
15635  case $as_dir in #(((
15636    '') as_dir=./ ;;
15637    */) ;;
15638    *) as_dir=$as_dir/ ;;
15639  esac
15640    for ac_exec_ext in '' $ac_executable_extensions; do
15641  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15642    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
15643    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15644    break 2
15645  fi
15646done
15647  done
15648IFS=$as_save_IFS
15649
15650fi
15651fi
15652STRIP=$ac_cv_prog_STRIP
15653if test -n "$STRIP"; then
15654  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
15655printf "%s\n" "$STRIP" >&6; }
15656else
15657  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15658printf "%s\n" "no" >&6; }
15659fi
15660
15661
15662fi
15663if test -z "$ac_cv_prog_STRIP"; then
15664  ac_ct_STRIP=$STRIP
15665  # Extract the first word of "strip", so it can be a program name with args.
15666set dummy strip; ac_word=$2
15667{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15668printf %s "checking for $ac_word... " >&6; }
15669if test ${ac_cv_prog_ac_ct_STRIP+y}
15670then :
15671  printf %s "(cached) " >&6
15672else $as_nop
15673  if test -n "$ac_ct_STRIP"; then
15674  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
15675else
15676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15677for as_dir in $PATH
15678do
15679  IFS=$as_save_IFS
15680  case $as_dir in #(((
15681    '') as_dir=./ ;;
15682    */) ;;
15683    *) as_dir=$as_dir/ ;;
15684  esac
15685    for ac_exec_ext in '' $ac_executable_extensions; do
15686  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15687    ac_cv_prog_ac_ct_STRIP="strip"
15688    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15689    break 2
15690  fi
15691done
15692  done
15693IFS=$as_save_IFS
15694
15695fi
15696fi
15697ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
15698if test -n "$ac_ct_STRIP"; then
15699  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
15700printf "%s\n" "$ac_ct_STRIP" >&6; }
15701else
15702  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15703printf "%s\n" "no" >&6; }
15704fi
15705
15706  if test "x$ac_ct_STRIP" = x; then
15707    STRIP=":"
15708  else
15709    case $cross_compiling:$ac_tool_warned in
15710yes:)
15711{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15712printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15713ac_tool_warned=yes ;;
15714esac
15715    STRIP=$ac_ct_STRIP
15716  fi
15717else
15718  STRIP="$ac_cv_prog_STRIP"
15719fi
15720
15721test -z "$STRIP" && STRIP=:
15722
15723
15724
15725
15726
15727
15728if test -n "$ac_tool_prefix"; then
15729  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
15730set dummy ${ac_tool_prefix}ranlib; ac_word=$2
15731{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15732printf %s "checking for $ac_word... " >&6; }
15733if test ${ac_cv_prog_RANLIB+y}
15734then :
15735  printf %s "(cached) " >&6
15736else $as_nop
15737  if test -n "$RANLIB"; then
15738  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
15739else
15740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15741for as_dir in $PATH
15742do
15743  IFS=$as_save_IFS
15744  case $as_dir in #(((
15745    '') as_dir=./ ;;
15746    */) ;;
15747    *) as_dir=$as_dir/ ;;
15748  esac
15749    for ac_exec_ext in '' $ac_executable_extensions; do
15750  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15751    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
15752    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15753    break 2
15754  fi
15755done
15756  done
15757IFS=$as_save_IFS
15758
15759fi
15760fi
15761RANLIB=$ac_cv_prog_RANLIB
15762if test -n "$RANLIB"; then
15763  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
15764printf "%s\n" "$RANLIB" >&6; }
15765else
15766  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15767printf "%s\n" "no" >&6; }
15768fi
15769
15770
15771fi
15772if test -z "$ac_cv_prog_RANLIB"; then
15773  ac_ct_RANLIB=$RANLIB
15774  # Extract the first word of "ranlib", so it can be a program name with args.
15775set dummy ranlib; ac_word=$2
15776{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15777printf %s "checking for $ac_word... " >&6; }
15778if test ${ac_cv_prog_ac_ct_RANLIB+y}
15779then :
15780  printf %s "(cached) " >&6
15781else $as_nop
15782  if test -n "$ac_ct_RANLIB"; then
15783  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
15784else
15785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15786for as_dir in $PATH
15787do
15788  IFS=$as_save_IFS
15789  case $as_dir in #(((
15790    '') as_dir=./ ;;
15791    */) ;;
15792    *) as_dir=$as_dir/ ;;
15793  esac
15794    for ac_exec_ext in '' $ac_executable_extensions; do
15795  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15796    ac_cv_prog_ac_ct_RANLIB="ranlib"
15797    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15798    break 2
15799  fi
15800done
15801  done
15802IFS=$as_save_IFS
15803
15804fi
15805fi
15806ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
15807if test -n "$ac_ct_RANLIB"; then
15808  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
15809printf "%s\n" "$ac_ct_RANLIB" >&6; }
15810else
15811  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15812printf "%s\n" "no" >&6; }
15813fi
15814
15815  if test "x$ac_ct_RANLIB" = x; then
15816    RANLIB=":"
15817  else
15818    case $cross_compiling:$ac_tool_warned in
15819yes:)
15820{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15821printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15822ac_tool_warned=yes ;;
15823esac
15824    RANLIB=$ac_ct_RANLIB
15825  fi
15826else
15827  RANLIB="$ac_cv_prog_RANLIB"
15828fi
15829
15830test -z "$RANLIB" && RANLIB=:
15831
15832
15833
15834
15835
15836
15837# Determine commands to create old-style static archives.
15838old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
15839old_postinstall_cmds='chmod 644 $oldlib'
15840old_postuninstall_cmds=
15841
15842if test -n "$RANLIB"; then
15843  case $host_os in
15844  bitrig* | openbsd*)
15845    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
15846    ;;
15847  *)
15848    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
15849    ;;
15850  esac
15851  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
15852fi
15853
15854case $host_os in
15855  darwin*)
15856    lock_old_archive_extraction=yes ;;
15857  *)
15858    lock_old_archive_extraction=no ;;
15859esac
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
15891
15892
15893
15894
15895
15896
15897
15898
15899# If no C compiler was specified, use CC.
15900LTCC=${LTCC-"$CC"}
15901
15902# If no C compiler flags were specified, use CFLAGS.
15903LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15904
15905# Allow CC to be a program name with arguments.
15906compiler=$CC
15907
15908
15909# Check for command to grab the raw symbol name followed by C symbol from nm.
15910{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
15911printf %s "checking command to parse $NM output from $compiler object... " >&6; }
15912if test ${lt_cv_sys_global_symbol_pipe+y}
15913then :
15914  printf %s "(cached) " >&6
15915else $as_nop
15916
15917# These are sane defaults that work on at least a few old systems.
15918# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
15919
15920# Character class describing NM global symbol codes.
15921symcode='[BCDEGRST]'
15922
15923# Regexp to match symbols that can be accessed directly from C.
15924sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
15925
15926# Define system-specific variables.
15927case $host_os in
15928aix*)
15929  symcode='[BCDT]'
15930  ;;
15931cygwin* | mingw* | pw32* | cegcc*)
15932  symcode='[ABCDGISTW]'
15933  ;;
15934hpux*)
15935  if test ia64 = "$host_cpu"; then
15936    symcode='[ABCDEGRST]'
15937  fi
15938  ;;
15939irix* | nonstopux*)
15940  symcode='[BCDEGRST]'
15941  ;;
15942osf*)
15943  symcode='[BCDEGQRST]'
15944  ;;
15945solaris*)
15946  symcode='[BDRT]'
15947  ;;
15948sco3.2v5*)
15949  symcode='[DT]'
15950  ;;
15951sysv4.2uw2*)
15952  symcode='[DT]'
15953  ;;
15954sysv5* | sco5v6* | unixware* | OpenUNIX*)
15955  symcode='[ABDT]'
15956  ;;
15957sysv4)
15958  symcode='[DFNSTU]'
15959  ;;
15960esac
15961
15962# If we're using GNU nm, then use its standard symbol codes.
15963case `$NM -V 2>&1` in
15964*GNU* | *'with BFD'*)
15965  symcode='[ABCDGIRSTW]' ;;
15966esac
15967
15968if test "$lt_cv_nm_interface" = "MS dumpbin"; then
15969  # Gets list of data symbols to import.
15970  lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
15971  # Adjust the below global symbol transforms to fixup imported variables.
15972  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
15973  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
15974  lt_c_name_lib_hook="\
15975  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
15976  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
15977else
15978  # Disable hooks by default.
15979  lt_cv_sys_global_symbol_to_import=
15980  lt_cdecl_hook=
15981  lt_c_name_hook=
15982  lt_c_name_lib_hook=
15983fi
15984
15985# Transform an extracted symbol line into a proper C declaration.
15986# Some systems (esp. on ia64) link data and code symbols differently,
15987# so use this general approach.
15988lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
15989$lt_cdecl_hook\
15990" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
15991" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
15992
15993# Transform an extracted symbol line into symbol name and symbol address
15994lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
15995$lt_c_name_hook\
15996" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
15997" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
15998
15999# Transform an extracted symbol line into symbol name with lib prefix and
16000# symbol address.
16001lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
16002$lt_c_name_lib_hook\
16003" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
16004" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
16005" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
16006
16007# Handle CRLF in mingw tool chain
16008opt_cr=
16009case $build_os in
16010mingw*)
16011  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
16012  ;;
16013esac
16014
16015# Try without a prefix underscore, then with it.
16016for ac_symprfx in "" "_"; do
16017
16018  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
16019  symxfrm="\\1 $ac_symprfx\\2 \\2"
16020
16021  # Write the raw and C identifiers.
16022  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
16023    # Fake it for dumpbin and say T for any non-static function,
16024    # D for any global variable and I for any imported variable.
16025    # Also find C++ and __fastcall symbols from MSVC++ or ICC,
16026    # which start with @ or ?.
16027    lt_cv_sys_global_symbol_pipe="$AWK '"\
16028"     {last_section=section; section=\$ 3};"\
16029"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
16030"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
16031"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
16032"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
16033"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
16034"     \$ 0!~/External *\|/{next};"\
16035"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
16036"     {if(hide[section]) next};"\
16037"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
16038"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
16039"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
16040"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
16041"     ' prfx=^$ac_symprfx"
16042  else
16043    lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
16044  fi
16045  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
16046
16047  # Check to see that the pipe works correctly.
16048  pipe_works=no
16049
16050  rm -f conftest*
16051  cat > conftest.$ac_ext <<_LT_EOF
16052#ifdef __cplusplus
16053extern "C" {
16054#endif
16055char nm_test_var;
16056void nm_test_func(void);
16057void nm_test_func(void){}
16058#ifdef __cplusplus
16059}
16060#endif
16061int main(){nm_test_var='a';nm_test_func();return(0);}
16062_LT_EOF
16063
16064  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16065  (eval $ac_compile) 2>&5
16066  ac_status=$?
16067  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16068  test $ac_status = 0; }; then
16069    # Now try to grab the symbols.
16070    nlist=conftest.nm
16071    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
16072  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
16073  ac_status=$?
16074  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16075  test $ac_status = 0; } && test -s "$nlist"; then
16076      # Try sorting and uniquifying the output.
16077      if sort "$nlist" | uniq > "$nlist"T; then
16078	mv -f "$nlist"T "$nlist"
16079      else
16080	rm -f "$nlist"T
16081      fi
16082
16083      # Make sure that we snagged all the symbols we need.
16084      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
16085	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
16086	  cat <<_LT_EOF > conftest.$ac_ext
16087/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
16088#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
16089/* DATA imports from DLLs on WIN32 can't be const, because runtime
16090   relocations are performed -- see ld's documentation on pseudo-relocs.  */
16091# define LT_DLSYM_CONST
16092#elif defined __osf__
16093/* This system does not cope well with relocations in const data.  */
16094# define LT_DLSYM_CONST
16095#else
16096# define LT_DLSYM_CONST const
16097#endif
16098
16099#ifdef __cplusplus
16100extern "C" {
16101#endif
16102
16103_LT_EOF
16104	  # Now generate the symbol file.
16105	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
16106
16107	  cat <<_LT_EOF >> conftest.$ac_ext
16108
16109/* The mapping between symbol names and symbols.  */
16110LT_DLSYM_CONST struct {
16111  const char *name;
16112  void       *address;
16113}
16114lt__PROGRAM__LTX_preloaded_symbols[] =
16115{
16116  { "@PROGRAM@", (void *) 0 },
16117_LT_EOF
16118	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
16119	  cat <<\_LT_EOF >> conftest.$ac_ext
16120  {0, (void *) 0}
16121};
16122
16123/* This works around a problem in FreeBSD linker */
16124#ifdef FREEBSD_WORKAROUND
16125static const void *lt_preloaded_setup() {
16126  return lt__PROGRAM__LTX_preloaded_symbols;
16127}
16128#endif
16129
16130#ifdef __cplusplus
16131}
16132#endif
16133_LT_EOF
16134	  # Now try linking the two files.
16135	  mv conftest.$ac_objext conftstm.$ac_objext
16136	  lt_globsym_save_LIBS=$LIBS
16137	  lt_globsym_save_CFLAGS=$CFLAGS
16138	  LIBS=conftstm.$ac_objext
16139	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
16140	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16141  (eval $ac_link) 2>&5
16142  ac_status=$?
16143  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16144  test $ac_status = 0; } && test -s conftest$ac_exeext; then
16145	    pipe_works=yes
16146	  fi
16147	  LIBS=$lt_globsym_save_LIBS
16148	  CFLAGS=$lt_globsym_save_CFLAGS
16149	else
16150	  echo "cannot find nm_test_func in $nlist" >&5
16151	fi
16152      else
16153	echo "cannot find nm_test_var in $nlist" >&5
16154      fi
16155    else
16156      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
16157    fi
16158  else
16159    echo "$progname: failed program was:" >&5
16160    cat conftest.$ac_ext >&5
16161  fi
16162  rm -rf conftest* conftst*
16163
16164  # Do not use the global_symbol_pipe unless it works.
16165  if test yes = "$pipe_works"; then
16166    break
16167  else
16168    lt_cv_sys_global_symbol_pipe=
16169  fi
16170done
16171
16172fi
16173
16174if test -z "$lt_cv_sys_global_symbol_pipe"; then
16175  lt_cv_sys_global_symbol_to_cdecl=
16176fi
16177if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
16178  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
16179printf "%s\n" "failed" >&6; }
16180else
16181  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
16182printf "%s\n" "ok" >&6; }
16183fi
16184
16185# Response file support.
16186if test "$lt_cv_nm_interface" = "MS dumpbin"; then
16187  nm_file_list_spec='@'
16188elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
16189  nm_file_list_spec='@'
16190fi
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
16220
16221
16222
16223
16224
16225
16226
16227
16228{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
16229printf %s "checking for sysroot... " >&6; }
16230
16231# Check whether --with-sysroot was given.
16232if test ${with_sysroot+y}
16233then :
16234  withval=$with_sysroot;
16235else $as_nop
16236  with_sysroot=no
16237fi
16238
16239
16240lt_sysroot=
16241case $with_sysroot in #(
16242 yes)
16243   if test yes = "$GCC"; then
16244     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
16245   fi
16246   ;; #(
16247 /*)
16248   lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
16249   ;; #(
16250 no|'')
16251   ;; #(
16252 *)
16253   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
16254printf "%s\n" "$with_sysroot" >&6; }
16255   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
16256   ;;
16257esac
16258
16259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
16260printf "%s\n" "${lt_sysroot:-no}" >&6; }
16261
16262
16263
16264
16265
16266{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
16267printf %s "checking for a working dd... " >&6; }
16268if test ${ac_cv_path_lt_DD+y}
16269then :
16270  printf %s "(cached) " >&6
16271else $as_nop
16272  printf 0123456789abcdef0123456789abcdef >conftest.i
16273cat conftest.i conftest.i >conftest2.i
16274: ${lt_DD:=$DD}
16275if test -z "$lt_DD"; then
16276  ac_path_lt_DD_found=false
16277  # Loop through the user's path and test for each of PROGNAME-LIST
16278  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16279for as_dir in $PATH
16280do
16281  IFS=$as_save_IFS
16282  case $as_dir in #(((
16283    '') as_dir=./ ;;
16284    */) ;;
16285    *) as_dir=$as_dir/ ;;
16286  esac
16287    for ac_prog in dd
16288   do
16289    for ac_exec_ext in '' $ac_executable_extensions; do
16290      ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
16291      as_fn_executable_p "$ac_path_lt_DD" || continue
16292if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
16293  cmp -s conftest.i conftest.out \
16294  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
16295fi
16296      $ac_path_lt_DD_found && break 3
16297    done
16298  done
16299  done
16300IFS=$as_save_IFS
16301  if test -z "$ac_cv_path_lt_DD"; then
16302    :
16303  fi
16304else
16305  ac_cv_path_lt_DD=$lt_DD
16306fi
16307
16308rm -f conftest.i conftest2.i conftest.out
16309fi
16310{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
16311printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
16312
16313
16314{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
16315printf %s "checking how to truncate binary pipes... " >&6; }
16316if test ${lt_cv_truncate_bin+y}
16317then :
16318  printf %s "(cached) " >&6
16319else $as_nop
16320  printf 0123456789abcdef0123456789abcdef >conftest.i
16321cat conftest.i conftest.i >conftest2.i
16322lt_cv_truncate_bin=
16323if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
16324  cmp -s conftest.i conftest.out \
16325  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
16326fi
16327rm -f conftest.i conftest2.i conftest.out
16328test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
16329fi
16330{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
16331printf "%s\n" "$lt_cv_truncate_bin" >&6; }
16332
16333
16334
16335
16336
16337
16338
16339# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
16340func_cc_basename ()
16341{
16342    for cc_temp in $*""; do
16343      case $cc_temp in
16344        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16345        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16346        \-*) ;;
16347        *) break;;
16348      esac
16349    done
16350    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16351}
16352
16353# Check whether --enable-libtool-lock was given.
16354if test ${enable_libtool_lock+y}
16355then :
16356  enableval=$enable_libtool_lock;
16357fi
16358
16359test no = "$enable_libtool_lock" || enable_libtool_lock=yes
16360
16361# Some flags need to be propagated to the compiler or linker for good
16362# libtool support.
16363case $host in
16364ia64-*-hpux*)
16365  # Find out what ABI is being produced by ac_compile, and set mode
16366  # options accordingly.
16367  echo 'int i;' > conftest.$ac_ext
16368  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16369  (eval $ac_compile) 2>&5
16370  ac_status=$?
16371  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16372  test $ac_status = 0; }; then
16373    case `$FILECMD conftest.$ac_objext` in
16374      *ELF-32*)
16375	HPUX_IA64_MODE=32
16376	;;
16377      *ELF-64*)
16378	HPUX_IA64_MODE=64
16379	;;
16380    esac
16381  fi
16382  rm -rf conftest*
16383  ;;
16384*-*-irix6*)
16385  # Find out what ABI is being produced by ac_compile, and set linker
16386  # options accordingly.
16387  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
16388  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16389  (eval $ac_compile) 2>&5
16390  ac_status=$?
16391  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16392  test $ac_status = 0; }; then
16393    if test yes = "$lt_cv_prog_gnu_ld"; then
16394      case `$FILECMD conftest.$ac_objext` in
16395	*32-bit*)
16396	  LD="${LD-ld} -melf32bsmip"
16397	  ;;
16398	*N32*)
16399	  LD="${LD-ld} -melf32bmipn32"
16400	  ;;
16401	*64-bit*)
16402	  LD="${LD-ld} -melf64bmip"
16403	;;
16404      esac
16405    else
16406      case `$FILECMD conftest.$ac_objext` in
16407	*32-bit*)
16408	  LD="${LD-ld} -32"
16409	  ;;
16410	*N32*)
16411	  LD="${LD-ld} -n32"
16412	  ;;
16413	*64-bit*)
16414	  LD="${LD-ld} -64"
16415	  ;;
16416      esac
16417    fi
16418  fi
16419  rm -rf conftest*
16420  ;;
16421
16422mips64*-*linux*)
16423  # Find out what ABI is being produced by ac_compile, and set linker
16424  # options accordingly.
16425  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
16426  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16427  (eval $ac_compile) 2>&5
16428  ac_status=$?
16429  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16430  test $ac_status = 0; }; then
16431    emul=elf
16432    case `$FILECMD conftest.$ac_objext` in
16433      *32-bit*)
16434	emul="${emul}32"
16435	;;
16436      *64-bit*)
16437	emul="${emul}64"
16438	;;
16439    esac
16440    case `$FILECMD conftest.$ac_objext` in
16441      *MSB*)
16442	emul="${emul}btsmip"
16443	;;
16444      *LSB*)
16445	emul="${emul}ltsmip"
16446	;;
16447    esac
16448    case `$FILECMD conftest.$ac_objext` in
16449      *N32*)
16450	emul="${emul}n32"
16451	;;
16452    esac
16453    LD="${LD-ld} -m $emul"
16454  fi
16455  rm -rf conftest*
16456  ;;
16457
16458x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
16459s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
16460  # Find out what ABI is being produced by ac_compile, and set linker
16461  # options accordingly.  Note that the listed cases only cover the
16462  # situations where additional linker options are needed (such as when
16463  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
16464  # vice versa); the common cases where no linker options are needed do
16465  # not appear in the list.
16466  echo 'int i;' > conftest.$ac_ext
16467  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16468  (eval $ac_compile) 2>&5
16469  ac_status=$?
16470  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16471  test $ac_status = 0; }; then
16472    case `$FILECMD conftest.o` in
16473      *32-bit*)
16474	case $host in
16475	  x86_64-*kfreebsd*-gnu)
16476	    LD="${LD-ld} -m elf_i386_fbsd"
16477	    ;;
16478	  x86_64-*linux*)
16479	    case `$FILECMD conftest.o` in
16480	      *x86-64*)
16481		LD="${LD-ld} -m elf32_x86_64"
16482		;;
16483	      *)
16484		LD="${LD-ld} -m elf_i386"
16485		;;
16486	    esac
16487	    ;;
16488	  powerpc64le-*linux*)
16489	    LD="${LD-ld} -m elf32lppclinux"
16490	    ;;
16491	  powerpc64-*linux*)
16492	    LD="${LD-ld} -m elf32ppclinux"
16493	    ;;
16494	  s390x-*linux*)
16495	    LD="${LD-ld} -m elf_s390"
16496	    ;;
16497	  sparc64-*linux*)
16498	    LD="${LD-ld} -m elf32_sparc"
16499	    ;;
16500	esac
16501	;;
16502      *64-bit*)
16503	case $host in
16504	  x86_64-*kfreebsd*-gnu)
16505	    LD="${LD-ld} -m elf_x86_64_fbsd"
16506	    ;;
16507	  x86_64-*linux*)
16508	    LD="${LD-ld} -m elf_x86_64"
16509	    ;;
16510	  powerpcle-*linux*)
16511	    LD="${LD-ld} -m elf64lppc"
16512	    ;;
16513	  powerpc-*linux*)
16514	    LD="${LD-ld} -m elf64ppc"
16515	    ;;
16516	  s390*-*linux*|s390*-*tpf*)
16517	    LD="${LD-ld} -m elf64_s390"
16518	    ;;
16519	  sparc*-*linux*)
16520	    LD="${LD-ld} -m elf64_sparc"
16521	    ;;
16522	esac
16523	;;
16524    esac
16525  fi
16526  rm -rf conftest*
16527  ;;
16528
16529*-*-sco3.2v5*)
16530  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
16531  SAVE_CFLAGS=$CFLAGS
16532  CFLAGS="$CFLAGS -belf"
16533  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
16534printf %s "checking whether the C compiler needs -belf... " >&6; }
16535if test ${lt_cv_cc_needs_belf+y}
16536then :
16537  printf %s "(cached) " >&6
16538else $as_nop
16539  ac_ext=c
16540ac_cpp='$CPP $CPPFLAGS'
16541ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16542ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16543ac_compiler_gnu=$ac_cv_c_compiler_gnu
16544
16545     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16546/* end confdefs.h.  */
16547
16548int
16549main (void)
16550{
16551
16552  ;
16553  return 0;
16554}
16555_ACEOF
16556if ac_fn_c_try_link "$LINENO"
16557then :
16558  lt_cv_cc_needs_belf=yes
16559else $as_nop
16560  lt_cv_cc_needs_belf=no
16561fi
16562rm -f core conftest.err conftest.$ac_objext conftest.beam \
16563    conftest$ac_exeext conftest.$ac_ext
16564     ac_ext=c
16565ac_cpp='$CPP $CPPFLAGS'
16566ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16567ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16568ac_compiler_gnu=$ac_cv_c_compiler_gnu
16569
16570fi
16571{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
16572printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
16573  if test yes != "$lt_cv_cc_needs_belf"; then
16574    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
16575    CFLAGS=$SAVE_CFLAGS
16576  fi
16577  ;;
16578*-*solaris*)
16579  # Find out what ABI is being produced by ac_compile, and set linker
16580  # options accordingly.
16581  echo 'int i;' > conftest.$ac_ext
16582  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16583  (eval $ac_compile) 2>&5
16584  ac_status=$?
16585  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16586  test $ac_status = 0; }; then
16587    case `$FILECMD conftest.o` in
16588    *64-bit*)
16589      case $lt_cv_prog_gnu_ld in
16590      yes*)
16591        case $host in
16592        i?86-*-solaris*|x86_64-*-solaris*)
16593          LD="${LD-ld} -m elf_x86_64"
16594          ;;
16595        sparc*-*-solaris*)
16596          LD="${LD-ld} -m elf64_sparc"
16597          ;;
16598        esac
16599        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
16600        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
16601          LD=${LD-ld}_sol2
16602        fi
16603        ;;
16604      *)
16605	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
16606	  LD="${LD-ld} -64"
16607	fi
16608	;;
16609      esac
16610      ;;
16611    esac
16612  fi
16613  rm -rf conftest*
16614  ;;
16615esac
16616
16617need_locks=$enable_libtool_lock
16618
16619if test -n "$ac_tool_prefix"; then
16620  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
16621set dummy ${ac_tool_prefix}mt; ac_word=$2
16622{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16623printf %s "checking for $ac_word... " >&6; }
16624if test ${ac_cv_prog_MANIFEST_TOOL+y}
16625then :
16626  printf %s "(cached) " >&6
16627else $as_nop
16628  if test -n "$MANIFEST_TOOL"; then
16629  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
16630else
16631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16632for as_dir in $PATH
16633do
16634  IFS=$as_save_IFS
16635  case $as_dir in #(((
16636    '') as_dir=./ ;;
16637    */) ;;
16638    *) as_dir=$as_dir/ ;;
16639  esac
16640    for ac_exec_ext in '' $ac_executable_extensions; do
16641  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16642    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
16643    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16644    break 2
16645  fi
16646done
16647  done
16648IFS=$as_save_IFS
16649
16650fi
16651fi
16652MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
16653if test -n "$MANIFEST_TOOL"; then
16654  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
16655printf "%s\n" "$MANIFEST_TOOL" >&6; }
16656else
16657  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16658printf "%s\n" "no" >&6; }
16659fi
16660
16661
16662fi
16663if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
16664  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
16665  # Extract the first word of "mt", so it can be a program name with args.
16666set dummy mt; ac_word=$2
16667{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16668printf %s "checking for $ac_word... " >&6; }
16669if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
16670then :
16671  printf %s "(cached) " >&6
16672else $as_nop
16673  if test -n "$ac_ct_MANIFEST_TOOL"; then
16674  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
16675else
16676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16677for as_dir in $PATH
16678do
16679  IFS=$as_save_IFS
16680  case $as_dir in #(((
16681    '') as_dir=./ ;;
16682    */) ;;
16683    *) as_dir=$as_dir/ ;;
16684  esac
16685    for ac_exec_ext in '' $ac_executable_extensions; do
16686  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16687    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
16688    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16689    break 2
16690  fi
16691done
16692  done
16693IFS=$as_save_IFS
16694
16695fi
16696fi
16697ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
16698if test -n "$ac_ct_MANIFEST_TOOL"; then
16699  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
16700printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
16701else
16702  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16703printf "%s\n" "no" >&6; }
16704fi
16705
16706  if test "x$ac_ct_MANIFEST_TOOL" = x; then
16707    MANIFEST_TOOL=":"
16708  else
16709    case $cross_compiling:$ac_tool_warned in
16710yes:)
16711{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16712printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16713ac_tool_warned=yes ;;
16714esac
16715    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
16716  fi
16717else
16718  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
16719fi
16720
16721test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
16722{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
16723printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
16724if test ${lt_cv_path_mainfest_tool+y}
16725then :
16726  printf %s "(cached) " >&6
16727else $as_nop
16728  lt_cv_path_mainfest_tool=no
16729  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
16730  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
16731  cat conftest.err >&5
16732  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
16733    lt_cv_path_mainfest_tool=yes
16734  fi
16735  rm -f conftest*
16736fi
16737{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
16738printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
16739if test yes != "$lt_cv_path_mainfest_tool"; then
16740  MANIFEST_TOOL=:
16741fi
16742
16743
16744
16745
16746
16747
16748  case $host_os in
16749    rhapsody* | darwin*)
16750    if test -n "$ac_tool_prefix"; then
16751  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
16752set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
16753{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16754printf %s "checking for $ac_word... " >&6; }
16755if test ${ac_cv_prog_DSYMUTIL+y}
16756then :
16757  printf %s "(cached) " >&6
16758else $as_nop
16759  if test -n "$DSYMUTIL"; then
16760  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
16761else
16762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16763for as_dir in $PATH
16764do
16765  IFS=$as_save_IFS
16766  case $as_dir in #(((
16767    '') as_dir=./ ;;
16768    */) ;;
16769    *) as_dir=$as_dir/ ;;
16770  esac
16771    for ac_exec_ext in '' $ac_executable_extensions; do
16772  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16773    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
16774    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16775    break 2
16776  fi
16777done
16778  done
16779IFS=$as_save_IFS
16780
16781fi
16782fi
16783DSYMUTIL=$ac_cv_prog_DSYMUTIL
16784if test -n "$DSYMUTIL"; then
16785  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
16786printf "%s\n" "$DSYMUTIL" >&6; }
16787else
16788  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16789printf "%s\n" "no" >&6; }
16790fi
16791
16792
16793fi
16794if test -z "$ac_cv_prog_DSYMUTIL"; then
16795  ac_ct_DSYMUTIL=$DSYMUTIL
16796  # Extract the first word of "dsymutil", so it can be a program name with args.
16797set dummy dsymutil; ac_word=$2
16798{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16799printf %s "checking for $ac_word... " >&6; }
16800if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
16801then :
16802  printf %s "(cached) " >&6
16803else $as_nop
16804  if test -n "$ac_ct_DSYMUTIL"; then
16805  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
16806else
16807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16808for as_dir in $PATH
16809do
16810  IFS=$as_save_IFS
16811  case $as_dir in #(((
16812    '') as_dir=./ ;;
16813    */) ;;
16814    *) as_dir=$as_dir/ ;;
16815  esac
16816    for ac_exec_ext in '' $ac_executable_extensions; do
16817  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16818    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
16819    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16820    break 2
16821  fi
16822done
16823  done
16824IFS=$as_save_IFS
16825
16826fi
16827fi
16828ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
16829if test -n "$ac_ct_DSYMUTIL"; then
16830  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
16831printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
16832else
16833  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16834printf "%s\n" "no" >&6; }
16835fi
16836
16837  if test "x$ac_ct_DSYMUTIL" = x; then
16838    DSYMUTIL=":"
16839  else
16840    case $cross_compiling:$ac_tool_warned in
16841yes:)
16842{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16843printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16844ac_tool_warned=yes ;;
16845esac
16846    DSYMUTIL=$ac_ct_DSYMUTIL
16847  fi
16848else
16849  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
16850fi
16851
16852    if test -n "$ac_tool_prefix"; then
16853  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
16854set dummy ${ac_tool_prefix}nmedit; ac_word=$2
16855{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16856printf %s "checking for $ac_word... " >&6; }
16857if test ${ac_cv_prog_NMEDIT+y}
16858then :
16859  printf %s "(cached) " >&6
16860else $as_nop
16861  if test -n "$NMEDIT"; then
16862  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
16863else
16864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16865for as_dir in $PATH
16866do
16867  IFS=$as_save_IFS
16868  case $as_dir in #(((
16869    '') as_dir=./ ;;
16870    */) ;;
16871    *) as_dir=$as_dir/ ;;
16872  esac
16873    for ac_exec_ext in '' $ac_executable_extensions; do
16874  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16875    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
16876    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16877    break 2
16878  fi
16879done
16880  done
16881IFS=$as_save_IFS
16882
16883fi
16884fi
16885NMEDIT=$ac_cv_prog_NMEDIT
16886if test -n "$NMEDIT"; then
16887  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
16888printf "%s\n" "$NMEDIT" >&6; }
16889else
16890  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16891printf "%s\n" "no" >&6; }
16892fi
16893
16894
16895fi
16896if test -z "$ac_cv_prog_NMEDIT"; then
16897  ac_ct_NMEDIT=$NMEDIT
16898  # Extract the first word of "nmedit", so it can be a program name with args.
16899set dummy nmedit; ac_word=$2
16900{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16901printf %s "checking for $ac_word... " >&6; }
16902if test ${ac_cv_prog_ac_ct_NMEDIT+y}
16903then :
16904  printf %s "(cached) " >&6
16905else $as_nop
16906  if test -n "$ac_ct_NMEDIT"; then
16907  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
16908else
16909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16910for as_dir in $PATH
16911do
16912  IFS=$as_save_IFS
16913  case $as_dir in #(((
16914    '') as_dir=./ ;;
16915    */) ;;
16916    *) as_dir=$as_dir/ ;;
16917  esac
16918    for ac_exec_ext in '' $ac_executable_extensions; do
16919  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16920    ac_cv_prog_ac_ct_NMEDIT="nmedit"
16921    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16922    break 2
16923  fi
16924done
16925  done
16926IFS=$as_save_IFS
16927
16928fi
16929fi
16930ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
16931if test -n "$ac_ct_NMEDIT"; then
16932  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
16933printf "%s\n" "$ac_ct_NMEDIT" >&6; }
16934else
16935  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16936printf "%s\n" "no" >&6; }
16937fi
16938
16939  if test "x$ac_ct_NMEDIT" = x; then
16940    NMEDIT=":"
16941  else
16942    case $cross_compiling:$ac_tool_warned in
16943yes:)
16944{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16945printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16946ac_tool_warned=yes ;;
16947esac
16948    NMEDIT=$ac_ct_NMEDIT
16949  fi
16950else
16951  NMEDIT="$ac_cv_prog_NMEDIT"
16952fi
16953
16954    if test -n "$ac_tool_prefix"; then
16955  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
16956set dummy ${ac_tool_prefix}lipo; ac_word=$2
16957{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16958printf %s "checking for $ac_word... " >&6; }
16959if test ${ac_cv_prog_LIPO+y}
16960then :
16961  printf %s "(cached) " >&6
16962else $as_nop
16963  if test -n "$LIPO"; then
16964  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
16965else
16966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16967for as_dir in $PATH
16968do
16969  IFS=$as_save_IFS
16970  case $as_dir in #(((
16971    '') as_dir=./ ;;
16972    */) ;;
16973    *) as_dir=$as_dir/ ;;
16974  esac
16975    for ac_exec_ext in '' $ac_executable_extensions; do
16976  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16977    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
16978    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16979    break 2
16980  fi
16981done
16982  done
16983IFS=$as_save_IFS
16984
16985fi
16986fi
16987LIPO=$ac_cv_prog_LIPO
16988if test -n "$LIPO"; then
16989  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
16990printf "%s\n" "$LIPO" >&6; }
16991else
16992  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16993printf "%s\n" "no" >&6; }
16994fi
16995
16996
16997fi
16998if test -z "$ac_cv_prog_LIPO"; then
16999  ac_ct_LIPO=$LIPO
17000  # Extract the first word of "lipo", so it can be a program name with args.
17001set dummy lipo; ac_word=$2
17002{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17003printf %s "checking for $ac_word... " >&6; }
17004if test ${ac_cv_prog_ac_ct_LIPO+y}
17005then :
17006  printf %s "(cached) " >&6
17007else $as_nop
17008  if test -n "$ac_ct_LIPO"; then
17009  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
17010else
17011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17012for as_dir in $PATH
17013do
17014  IFS=$as_save_IFS
17015  case $as_dir in #(((
17016    '') as_dir=./ ;;
17017    */) ;;
17018    *) as_dir=$as_dir/ ;;
17019  esac
17020    for ac_exec_ext in '' $ac_executable_extensions; do
17021  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17022    ac_cv_prog_ac_ct_LIPO="lipo"
17023    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17024    break 2
17025  fi
17026done
17027  done
17028IFS=$as_save_IFS
17029
17030fi
17031fi
17032ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
17033if test -n "$ac_ct_LIPO"; then
17034  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
17035printf "%s\n" "$ac_ct_LIPO" >&6; }
17036else
17037  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17038printf "%s\n" "no" >&6; }
17039fi
17040
17041  if test "x$ac_ct_LIPO" = x; then
17042    LIPO=":"
17043  else
17044    case $cross_compiling:$ac_tool_warned in
17045yes:)
17046{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17047printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17048ac_tool_warned=yes ;;
17049esac
17050    LIPO=$ac_ct_LIPO
17051  fi
17052else
17053  LIPO="$ac_cv_prog_LIPO"
17054fi
17055
17056    if test -n "$ac_tool_prefix"; then
17057  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
17058set dummy ${ac_tool_prefix}otool; ac_word=$2
17059{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17060printf %s "checking for $ac_word... " >&6; }
17061if test ${ac_cv_prog_OTOOL+y}
17062then :
17063  printf %s "(cached) " >&6
17064else $as_nop
17065  if test -n "$OTOOL"; then
17066  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
17067else
17068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17069for as_dir in $PATH
17070do
17071  IFS=$as_save_IFS
17072  case $as_dir in #(((
17073    '') as_dir=./ ;;
17074    */) ;;
17075    *) as_dir=$as_dir/ ;;
17076  esac
17077    for ac_exec_ext in '' $ac_executable_extensions; do
17078  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17079    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
17080    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17081    break 2
17082  fi
17083done
17084  done
17085IFS=$as_save_IFS
17086
17087fi
17088fi
17089OTOOL=$ac_cv_prog_OTOOL
17090if test -n "$OTOOL"; then
17091  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
17092printf "%s\n" "$OTOOL" >&6; }
17093else
17094  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17095printf "%s\n" "no" >&6; }
17096fi
17097
17098
17099fi
17100if test -z "$ac_cv_prog_OTOOL"; then
17101  ac_ct_OTOOL=$OTOOL
17102  # Extract the first word of "otool", so it can be a program name with args.
17103set dummy otool; ac_word=$2
17104{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17105printf %s "checking for $ac_word... " >&6; }
17106if test ${ac_cv_prog_ac_ct_OTOOL+y}
17107then :
17108  printf %s "(cached) " >&6
17109else $as_nop
17110  if test -n "$ac_ct_OTOOL"; then
17111  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
17112else
17113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17114for as_dir in $PATH
17115do
17116  IFS=$as_save_IFS
17117  case $as_dir in #(((
17118    '') as_dir=./ ;;
17119    */) ;;
17120    *) as_dir=$as_dir/ ;;
17121  esac
17122    for ac_exec_ext in '' $ac_executable_extensions; do
17123  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17124    ac_cv_prog_ac_ct_OTOOL="otool"
17125    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17126    break 2
17127  fi
17128done
17129  done
17130IFS=$as_save_IFS
17131
17132fi
17133fi
17134ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
17135if test -n "$ac_ct_OTOOL"; then
17136  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
17137printf "%s\n" "$ac_ct_OTOOL" >&6; }
17138else
17139  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17140printf "%s\n" "no" >&6; }
17141fi
17142
17143  if test "x$ac_ct_OTOOL" = x; then
17144    OTOOL=":"
17145  else
17146    case $cross_compiling:$ac_tool_warned in
17147yes:)
17148{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17149printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17150ac_tool_warned=yes ;;
17151esac
17152    OTOOL=$ac_ct_OTOOL
17153  fi
17154else
17155  OTOOL="$ac_cv_prog_OTOOL"
17156fi
17157
17158    if test -n "$ac_tool_prefix"; then
17159  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
17160set dummy ${ac_tool_prefix}otool64; ac_word=$2
17161{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17162printf %s "checking for $ac_word... " >&6; }
17163if test ${ac_cv_prog_OTOOL64+y}
17164then :
17165  printf %s "(cached) " >&6
17166else $as_nop
17167  if test -n "$OTOOL64"; then
17168  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
17169else
17170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17171for as_dir in $PATH
17172do
17173  IFS=$as_save_IFS
17174  case $as_dir in #(((
17175    '') as_dir=./ ;;
17176    */) ;;
17177    *) as_dir=$as_dir/ ;;
17178  esac
17179    for ac_exec_ext in '' $ac_executable_extensions; do
17180  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17181    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
17182    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17183    break 2
17184  fi
17185done
17186  done
17187IFS=$as_save_IFS
17188
17189fi
17190fi
17191OTOOL64=$ac_cv_prog_OTOOL64
17192if test -n "$OTOOL64"; then
17193  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
17194printf "%s\n" "$OTOOL64" >&6; }
17195else
17196  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17197printf "%s\n" "no" >&6; }
17198fi
17199
17200
17201fi
17202if test -z "$ac_cv_prog_OTOOL64"; then
17203  ac_ct_OTOOL64=$OTOOL64
17204  # Extract the first word of "otool64", so it can be a program name with args.
17205set dummy otool64; ac_word=$2
17206{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17207printf %s "checking for $ac_word... " >&6; }
17208if test ${ac_cv_prog_ac_ct_OTOOL64+y}
17209then :
17210  printf %s "(cached) " >&6
17211else $as_nop
17212  if test -n "$ac_ct_OTOOL64"; then
17213  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
17214else
17215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17216for as_dir in $PATH
17217do
17218  IFS=$as_save_IFS
17219  case $as_dir in #(((
17220    '') as_dir=./ ;;
17221    */) ;;
17222    *) as_dir=$as_dir/ ;;
17223  esac
17224    for ac_exec_ext in '' $ac_executable_extensions; do
17225  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17226    ac_cv_prog_ac_ct_OTOOL64="otool64"
17227    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17228    break 2
17229  fi
17230done
17231  done
17232IFS=$as_save_IFS
17233
17234fi
17235fi
17236ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
17237if test -n "$ac_ct_OTOOL64"; then
17238  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
17239printf "%s\n" "$ac_ct_OTOOL64" >&6; }
17240else
17241  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17242printf "%s\n" "no" >&6; }
17243fi
17244
17245  if test "x$ac_ct_OTOOL64" = x; then
17246    OTOOL64=":"
17247  else
17248    case $cross_compiling:$ac_tool_warned in
17249yes:)
17250{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17251printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17252ac_tool_warned=yes ;;
17253esac
17254    OTOOL64=$ac_ct_OTOOL64
17255  fi
17256else
17257  OTOOL64="$ac_cv_prog_OTOOL64"
17258fi
17259
17260
17261
17262
17263
17264
17265
17266
17267
17268
17269
17270
17271
17272
17273
17274
17275
17276
17277
17278
17279
17280
17281
17282
17283
17284
17285
17286    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
17287printf %s "checking for -single_module linker flag... " >&6; }
17288if test ${lt_cv_apple_cc_single_mod+y}
17289then :
17290  printf %s "(cached) " >&6
17291else $as_nop
17292  lt_cv_apple_cc_single_mod=no
17293      if test -z "$LT_MULTI_MODULE"; then
17294	# By default we will add the -single_module flag. You can override
17295	# by either setting the environment variable LT_MULTI_MODULE
17296	# non-empty at configure time, or by adding -multi_module to the
17297	# link flags.
17298	rm -rf libconftest.dylib*
17299	echo "int foo(void){return 1;}" > conftest.c
17300	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
17301-dynamiclib -Wl,-single_module conftest.c" >&5
17302	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
17303	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
17304        _lt_result=$?
17305	# If there is a non-empty error log, and "single_module"
17306	# appears in it, assume the flag caused a linker warning
17307        if test -s conftest.err && $GREP single_module conftest.err; then
17308	  cat conftest.err >&5
17309	# Otherwise, if the output was created with a 0 exit code from
17310	# the compiler, it worked.
17311	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
17312	  lt_cv_apple_cc_single_mod=yes
17313	else
17314	  cat conftest.err >&5
17315	fi
17316	rm -rf libconftest.dylib*
17317	rm -f conftest.*
17318      fi
17319fi
17320{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
17321printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
17322
17323    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
17324printf %s "checking for -exported_symbols_list linker flag... " >&6; }
17325if test ${lt_cv_ld_exported_symbols_list+y}
17326then :
17327  printf %s "(cached) " >&6
17328else $as_nop
17329  lt_cv_ld_exported_symbols_list=no
17330      save_LDFLAGS=$LDFLAGS
17331      echo "_main" > conftest.sym
17332      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
17333      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17334/* end confdefs.h.  */
17335
17336int
17337main (void)
17338{
17339
17340  ;
17341  return 0;
17342}
17343_ACEOF
17344if ac_fn_c_try_link "$LINENO"
17345then :
17346  lt_cv_ld_exported_symbols_list=yes
17347else $as_nop
17348  lt_cv_ld_exported_symbols_list=no
17349fi
17350rm -f core conftest.err conftest.$ac_objext conftest.beam \
17351    conftest$ac_exeext conftest.$ac_ext
17352	LDFLAGS=$save_LDFLAGS
17353
17354fi
17355{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
17356printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
17357
17358    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
17359printf %s "checking for -force_load linker flag... " >&6; }
17360if test ${lt_cv_ld_force_load+y}
17361then :
17362  printf %s "(cached) " >&6
17363else $as_nop
17364  lt_cv_ld_force_load=no
17365      cat > conftest.c << _LT_EOF
17366int forced_loaded() { return 2;}
17367_LT_EOF
17368      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
17369      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
17370      echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
17371      $AR $AR_FLAGS libconftest.a conftest.o 2>&5
17372      echo "$RANLIB libconftest.a" >&5
17373      $RANLIB libconftest.a 2>&5
17374      cat > conftest.c << _LT_EOF
17375int main() { return 0;}
17376_LT_EOF
17377      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
17378      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
17379      _lt_result=$?
17380      if test -s conftest.err && $GREP force_load conftest.err; then
17381	cat conftest.err >&5
17382      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
17383	lt_cv_ld_force_load=yes
17384      else
17385	cat conftest.err >&5
17386      fi
17387        rm -f conftest.err libconftest.a conftest conftest.c
17388        rm -rf conftest.dSYM
17389
17390fi
17391{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
17392printf "%s\n" "$lt_cv_ld_force_load" >&6; }
17393    case $host_os in
17394    rhapsody* | darwin1.[012])
17395      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
17396    darwin1.*)
17397      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
17398    darwin*)
17399      case $MACOSX_DEPLOYMENT_TARGET,$host in
17400        10.[012],*|,*powerpc*-darwin[5-8]*)
17401          _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
17402        *)
17403          _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
17404      esac
17405    ;;
17406  esac
17407    if test yes = "$lt_cv_apple_cc_single_mod"; then
17408      _lt_dar_single_mod='$single_module'
17409    fi
17410    if test yes = "$lt_cv_ld_exported_symbols_list"; then
17411      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
17412    else
17413      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
17414    fi
17415    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
17416      _lt_dsymutil='~$DSYMUTIL $lib || :'
17417    else
17418      _lt_dsymutil=
17419    fi
17420    ;;
17421  esac
17422
17423# func_munge_path_list VARIABLE PATH
17424# -----------------------------------
17425# VARIABLE is name of variable containing _space_ separated list of
17426# directories to be munged by the contents of PATH, which is string
17427# having a format:
17428# "DIR[:DIR]:"
17429#       string "DIR[ DIR]" will be prepended to VARIABLE
17430# ":DIR[:DIR]"
17431#       string "DIR[ DIR]" will be appended to VARIABLE
17432# "DIRP[:DIRP]::[DIRA:]DIRA"
17433#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
17434#       "DIRA[ DIRA]" will be appended to VARIABLE
17435# "DIR[:DIR]"
17436#       VARIABLE will be replaced by "DIR[ DIR]"
17437func_munge_path_list ()
17438{
17439    case x$2 in
17440    x)
17441        ;;
17442    *:)
17443        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
17444        ;;
17445    x:*)
17446        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
17447        ;;
17448    *::*)
17449        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
17450        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
17451        ;;
17452    *)
17453        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
17454        ;;
17455    esac
17456}
17457
17458ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
17459"
17460if test "x$ac_cv_header_dlfcn_h" = xyes
17461then :
17462  printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
17463
17464fi
17465
17466
17467
17468
17469
17470# Set options
17471# Check whether --enable-static was given.
17472if test ${enable_static+y}
17473then :
17474  enableval=$enable_static; p=${PACKAGE-default}
17475    case $enableval in
17476    yes) enable_static=yes ;;
17477    no) enable_static=no ;;
17478    *)
17479     enable_static=no
17480      # Look at the argument we got.  We use all the common list separators.
17481      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
17482      for pkg in $enableval; do
17483	IFS=$lt_save_ifs
17484	if test "X$pkg" = "X$p"; then
17485	  enable_static=yes
17486	fi
17487      done
17488      IFS=$lt_save_ifs
17489      ;;
17490    esac
17491else $as_nop
17492  enable_static=no
17493fi
17494
17495
17496
17497
17498
17499
17500
17501enable_win32_dll=yes
17502
17503case $host in
17504*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
17505  if test -n "$ac_tool_prefix"; then
17506  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
17507set dummy ${ac_tool_prefix}as; ac_word=$2
17508{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17509printf %s "checking for $ac_word... " >&6; }
17510if test ${ac_cv_prog_AS+y}
17511then :
17512  printf %s "(cached) " >&6
17513else $as_nop
17514  if test -n "$AS"; then
17515  ac_cv_prog_AS="$AS" # Let the user override the test.
17516else
17517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17518for as_dir in $PATH
17519do
17520  IFS=$as_save_IFS
17521  case $as_dir in #(((
17522    '') as_dir=./ ;;
17523    */) ;;
17524    *) as_dir=$as_dir/ ;;
17525  esac
17526    for ac_exec_ext in '' $ac_executable_extensions; do
17527  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17528    ac_cv_prog_AS="${ac_tool_prefix}as"
17529    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17530    break 2
17531  fi
17532done
17533  done
17534IFS=$as_save_IFS
17535
17536fi
17537fi
17538AS=$ac_cv_prog_AS
17539if test -n "$AS"; then
17540  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
17541printf "%s\n" "$AS" >&6; }
17542else
17543  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17544printf "%s\n" "no" >&6; }
17545fi
17546
17547
17548fi
17549if test -z "$ac_cv_prog_AS"; then
17550  ac_ct_AS=$AS
17551  # Extract the first word of "as", so it can be a program name with args.
17552set dummy as; ac_word=$2
17553{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17554printf %s "checking for $ac_word... " >&6; }
17555if test ${ac_cv_prog_ac_ct_AS+y}
17556then :
17557  printf %s "(cached) " >&6
17558else $as_nop
17559  if test -n "$ac_ct_AS"; then
17560  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
17561else
17562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17563for as_dir in $PATH
17564do
17565  IFS=$as_save_IFS
17566  case $as_dir in #(((
17567    '') as_dir=./ ;;
17568    */) ;;
17569    *) as_dir=$as_dir/ ;;
17570  esac
17571    for ac_exec_ext in '' $ac_executable_extensions; do
17572  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17573    ac_cv_prog_ac_ct_AS="as"
17574    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17575    break 2
17576  fi
17577done
17578  done
17579IFS=$as_save_IFS
17580
17581fi
17582fi
17583ac_ct_AS=$ac_cv_prog_ac_ct_AS
17584if test -n "$ac_ct_AS"; then
17585  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
17586printf "%s\n" "$ac_ct_AS" >&6; }
17587else
17588  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17589printf "%s\n" "no" >&6; }
17590fi
17591
17592  if test "x$ac_ct_AS" = x; then
17593    AS="false"
17594  else
17595    case $cross_compiling:$ac_tool_warned in
17596yes:)
17597{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17598printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17599ac_tool_warned=yes ;;
17600esac
17601    AS=$ac_ct_AS
17602  fi
17603else
17604  AS="$ac_cv_prog_AS"
17605fi
17606
17607  if test -n "$ac_tool_prefix"; then
17608  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
17609set dummy ${ac_tool_prefix}dlltool; ac_word=$2
17610{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17611printf %s "checking for $ac_word... " >&6; }
17612if test ${ac_cv_prog_DLLTOOL+y}
17613then :
17614  printf %s "(cached) " >&6
17615else $as_nop
17616  if test -n "$DLLTOOL"; then
17617  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
17618else
17619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17620for as_dir in $PATH
17621do
17622  IFS=$as_save_IFS
17623  case $as_dir in #(((
17624    '') as_dir=./ ;;
17625    */) ;;
17626    *) as_dir=$as_dir/ ;;
17627  esac
17628    for ac_exec_ext in '' $ac_executable_extensions; do
17629  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17630    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
17631    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17632    break 2
17633  fi
17634done
17635  done
17636IFS=$as_save_IFS
17637
17638fi
17639fi
17640DLLTOOL=$ac_cv_prog_DLLTOOL
17641if test -n "$DLLTOOL"; then
17642  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
17643printf "%s\n" "$DLLTOOL" >&6; }
17644else
17645  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17646printf "%s\n" "no" >&6; }
17647fi
17648
17649
17650fi
17651if test -z "$ac_cv_prog_DLLTOOL"; then
17652  ac_ct_DLLTOOL=$DLLTOOL
17653  # Extract the first word of "dlltool", so it can be a program name with args.
17654set dummy dlltool; ac_word=$2
17655{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17656printf %s "checking for $ac_word... " >&6; }
17657if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
17658then :
17659  printf %s "(cached) " >&6
17660else $as_nop
17661  if test -n "$ac_ct_DLLTOOL"; then
17662  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
17663else
17664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17665for as_dir in $PATH
17666do
17667  IFS=$as_save_IFS
17668  case $as_dir in #(((
17669    '') as_dir=./ ;;
17670    */) ;;
17671    *) as_dir=$as_dir/ ;;
17672  esac
17673    for ac_exec_ext in '' $ac_executable_extensions; do
17674  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17675    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
17676    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17677    break 2
17678  fi
17679done
17680  done
17681IFS=$as_save_IFS
17682
17683fi
17684fi
17685ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
17686if test -n "$ac_ct_DLLTOOL"; then
17687  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
17688printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
17689else
17690  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17691printf "%s\n" "no" >&6; }
17692fi
17693
17694  if test "x$ac_ct_DLLTOOL" = x; then
17695    DLLTOOL="false"
17696  else
17697    case $cross_compiling:$ac_tool_warned in
17698yes:)
17699{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17700printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17701ac_tool_warned=yes ;;
17702esac
17703    DLLTOOL=$ac_ct_DLLTOOL
17704  fi
17705else
17706  DLLTOOL="$ac_cv_prog_DLLTOOL"
17707fi
17708
17709  if test -n "$ac_tool_prefix"; then
17710  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
17711set dummy ${ac_tool_prefix}objdump; ac_word=$2
17712{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17713printf %s "checking for $ac_word... " >&6; }
17714if test ${ac_cv_prog_OBJDUMP+y}
17715then :
17716  printf %s "(cached) " >&6
17717else $as_nop
17718  if test -n "$OBJDUMP"; then
17719  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
17720else
17721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17722for as_dir in $PATH
17723do
17724  IFS=$as_save_IFS
17725  case $as_dir in #(((
17726    '') as_dir=./ ;;
17727    */) ;;
17728    *) as_dir=$as_dir/ ;;
17729  esac
17730    for ac_exec_ext in '' $ac_executable_extensions; do
17731  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17732    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
17733    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17734    break 2
17735  fi
17736done
17737  done
17738IFS=$as_save_IFS
17739
17740fi
17741fi
17742OBJDUMP=$ac_cv_prog_OBJDUMP
17743if test -n "$OBJDUMP"; then
17744  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
17745printf "%s\n" "$OBJDUMP" >&6; }
17746else
17747  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17748printf "%s\n" "no" >&6; }
17749fi
17750
17751
17752fi
17753if test -z "$ac_cv_prog_OBJDUMP"; then
17754  ac_ct_OBJDUMP=$OBJDUMP
17755  # Extract the first word of "objdump", so it can be a program name with args.
17756set dummy objdump; ac_word=$2
17757{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17758printf %s "checking for $ac_word... " >&6; }
17759if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
17760then :
17761  printf %s "(cached) " >&6
17762else $as_nop
17763  if test -n "$ac_ct_OBJDUMP"; then
17764  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
17765else
17766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17767for as_dir in $PATH
17768do
17769  IFS=$as_save_IFS
17770  case $as_dir in #(((
17771    '') as_dir=./ ;;
17772    */) ;;
17773    *) as_dir=$as_dir/ ;;
17774  esac
17775    for ac_exec_ext in '' $ac_executable_extensions; do
17776  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17777    ac_cv_prog_ac_ct_OBJDUMP="objdump"
17778    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17779    break 2
17780  fi
17781done
17782  done
17783IFS=$as_save_IFS
17784
17785fi
17786fi
17787ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
17788if test -n "$ac_ct_OBJDUMP"; then
17789  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
17790printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
17791else
17792  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17793printf "%s\n" "no" >&6; }
17794fi
17795
17796  if test "x$ac_ct_OBJDUMP" = x; then
17797    OBJDUMP="false"
17798  else
17799    case $cross_compiling:$ac_tool_warned in
17800yes:)
17801{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17802printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17803ac_tool_warned=yes ;;
17804esac
17805    OBJDUMP=$ac_ct_OBJDUMP
17806  fi
17807else
17808  OBJDUMP="$ac_cv_prog_OBJDUMP"
17809fi
17810
17811  ;;
17812esac
17813
17814test -z "$AS" && AS=as
17815
17816
17817
17818
17819
17820test -z "$DLLTOOL" && DLLTOOL=dlltool
17821
17822
17823
17824
17825
17826test -z "$OBJDUMP" && OBJDUMP=objdump
17827
17828
17829
17830
17831
17832
17833
17834        enable_dlopen=no
17835
17836
17837
17838            # Check whether --enable-shared was given.
17839if test ${enable_shared+y}
17840then :
17841  enableval=$enable_shared; p=${PACKAGE-default}
17842    case $enableval in
17843    yes) enable_shared=yes ;;
17844    no) enable_shared=no ;;
17845    *)
17846      enable_shared=no
17847      # Look at the argument we got.  We use all the common list separators.
17848      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
17849      for pkg in $enableval; do
17850	IFS=$lt_save_ifs
17851	if test "X$pkg" = "X$p"; then
17852	  enable_shared=yes
17853	fi
17854      done
17855      IFS=$lt_save_ifs
17856      ;;
17857    esac
17858else $as_nop
17859  enable_shared=yes
17860fi
17861
17862
17863
17864
17865
17866
17867
17868
17869
17870
17871
17872# Check whether --with-pic was given.
17873if test ${with_pic+y}
17874then :
17875  withval=$with_pic; lt_p=${PACKAGE-default}
17876    case $withval in
17877    yes|no) pic_mode=$withval ;;
17878    *)
17879      pic_mode=default
17880      # Look at the argument we got.  We use all the common list separators.
17881      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
17882      for lt_pkg in $withval; do
17883	IFS=$lt_save_ifs
17884	if test "X$lt_pkg" = "X$lt_p"; then
17885	  pic_mode=yes
17886	fi
17887      done
17888      IFS=$lt_save_ifs
17889      ;;
17890    esac
17891else $as_nop
17892  pic_mode=default
17893fi
17894
17895
17896
17897
17898
17899
17900
17901
17902  # Check whether --enable-fast-install was given.
17903if test ${enable_fast_install+y}
17904then :
17905  enableval=$enable_fast_install; p=${PACKAGE-default}
17906    case $enableval in
17907    yes) enable_fast_install=yes ;;
17908    no) enable_fast_install=no ;;
17909    *)
17910      enable_fast_install=no
17911      # Look at the argument we got.  We use all the common list separators.
17912      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
17913      for pkg in $enableval; do
17914	IFS=$lt_save_ifs
17915	if test "X$pkg" = "X$p"; then
17916	  enable_fast_install=yes
17917	fi
17918      done
17919      IFS=$lt_save_ifs
17920      ;;
17921    esac
17922else $as_nop
17923  enable_fast_install=yes
17924fi
17925
17926
17927
17928
17929
17930
17931
17932
17933  shared_archive_member_spec=
17934case $host,$enable_shared in
17935power*-*-aix[5-9]*,yes)
17936  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
17937printf %s "checking which variant of shared library versioning to provide... " >&6; }
17938
17939# Check whether --with-aix-soname was given.
17940if test ${with_aix_soname+y}
17941then :
17942  withval=$with_aix_soname; case $withval in
17943    aix|svr4|both)
17944      ;;
17945    *)
17946      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
17947      ;;
17948    esac
17949    lt_cv_with_aix_soname=$with_aix_soname
17950else $as_nop
17951  if test ${lt_cv_with_aix_soname+y}
17952then :
17953  printf %s "(cached) " >&6
17954else $as_nop
17955  lt_cv_with_aix_soname=aix
17956fi
17957
17958    with_aix_soname=$lt_cv_with_aix_soname
17959fi
17960
17961  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
17962printf "%s\n" "$with_aix_soname" >&6; }
17963  if test aix != "$with_aix_soname"; then
17964    # For the AIX way of multilib, we name the shared archive member
17965    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
17966    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
17967    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
17968    # the AIX toolchain works better with OBJECT_MODE set (default 32).
17969    if test 64 = "${OBJECT_MODE-32}"; then
17970      shared_archive_member_spec=shr_64
17971    else
17972      shared_archive_member_spec=shr
17973    fi
17974  fi
17975  ;;
17976*)
17977  with_aix_soname=aix
17978  ;;
17979esac
17980
17981
17982
17983
17984
17985
17986
17987
17988
17989
17990# This can be used to rebuild libtool when needed
17991LIBTOOL_DEPS=$ltmain
17992
17993# Always use our own libtool.
17994LIBTOOL='$(SHELL) $(top_builddir)/libtool'
17995
17996
17997
17998
17999
18000
18001
18002
18003
18004
18005
18006
18007
18008
18009
18010
18011
18012
18013
18014
18015
18016
18017
18018
18019
18020
18021
18022
18023
18024
18025test -z "$LN_S" && LN_S="ln -s"
18026
18027
18028
18029
18030
18031
18032
18033
18034
18035
18036
18037
18038
18039
18040if test -n "${ZSH_VERSION+set}"; then
18041   setopt NO_GLOB_SUBST
18042fi
18043
18044{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
18045printf %s "checking for objdir... " >&6; }
18046if test ${lt_cv_objdir+y}
18047then :
18048  printf %s "(cached) " >&6
18049else $as_nop
18050  rm -f .libs 2>/dev/null
18051mkdir .libs 2>/dev/null
18052if test -d .libs; then
18053  lt_cv_objdir=.libs
18054else
18055  # MS-DOS does not allow filenames that begin with a dot.
18056  lt_cv_objdir=_libs
18057fi
18058rmdir .libs 2>/dev/null
18059fi
18060{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
18061printf "%s\n" "$lt_cv_objdir" >&6; }
18062objdir=$lt_cv_objdir
18063
18064
18065
18066
18067
18068printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
18069
18070
18071
18072
18073case $host_os in
18074aix3*)
18075  # AIX sometimes has problems with the GCC collect2 program.  For some
18076  # reason, if we set the COLLECT_NAMES environment variable, the problems
18077  # vanish in a puff of smoke.
18078  if test set != "${COLLECT_NAMES+set}"; then
18079    COLLECT_NAMES=
18080    export COLLECT_NAMES
18081  fi
18082  ;;
18083esac
18084
18085# Global variables:
18086ofile=libtool
18087can_build_shared=yes
18088
18089# All known linkers require a '.a' archive for static linking (except MSVC and
18090# ICC, which need '.lib').
18091libext=a
18092
18093with_gnu_ld=$lt_cv_prog_gnu_ld
18094
18095old_CC=$CC
18096old_CFLAGS=$CFLAGS
18097
18098# Set sane defaults for various variables
18099test -z "$CC" && CC=cc
18100test -z "$LTCC" && LTCC=$CC
18101test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
18102test -z "$LD" && LD=ld
18103test -z "$ac_objext" && ac_objext=o
18104
18105func_cc_basename $compiler
18106cc_basename=$func_cc_basename_result
18107
18108
18109# Only perform the check for file, if the check method requires it
18110test -z "$MAGIC_CMD" && MAGIC_CMD=file
18111case $deplibs_check_method in
18112file_magic*)
18113  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
18114    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
18115printf %s "checking for ${ac_tool_prefix}file... " >&6; }
18116if test ${lt_cv_path_MAGIC_CMD+y}
18117then :
18118  printf %s "(cached) " >&6
18119else $as_nop
18120  case $MAGIC_CMD in
18121[\\/*] |  ?:[\\/]*)
18122  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
18123  ;;
18124*)
18125  lt_save_MAGIC_CMD=$MAGIC_CMD
18126  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
18127  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
18128  for ac_dir in $ac_dummy; do
18129    IFS=$lt_save_ifs
18130    test -z "$ac_dir" && ac_dir=.
18131    if test -f "$ac_dir/${ac_tool_prefix}file"; then
18132      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
18133      if test -n "$file_magic_test_file"; then
18134	case $deplibs_check_method in
18135	"file_magic "*)
18136	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
18137	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
18138	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
18139	    $EGREP "$file_magic_regex" > /dev/null; then
18140	    :
18141	  else
18142	    cat <<_LT_EOF 1>&2
18143
18144*** Warning: the command libtool uses to detect shared libraries,
18145*** $file_magic_cmd, produces output that libtool cannot recognize.
18146*** The result is that libtool may fail to recognize shared libraries
18147*** as such.  This will affect the creation of libtool libraries that
18148*** depend on shared libraries, but programs linked with such libtool
18149*** libraries will work regardless of this problem.  Nevertheless, you
18150*** may want to report the problem to your system manager and/or to
18151*** bug-libtool@gnu.org
18152
18153_LT_EOF
18154	  fi ;;
18155	esac
18156      fi
18157      break
18158    fi
18159  done
18160  IFS=$lt_save_ifs
18161  MAGIC_CMD=$lt_save_MAGIC_CMD
18162  ;;
18163esac
18164fi
18165
18166MAGIC_CMD=$lt_cv_path_MAGIC_CMD
18167if test -n "$MAGIC_CMD"; then
18168  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
18169printf "%s\n" "$MAGIC_CMD" >&6; }
18170else
18171  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18172printf "%s\n" "no" >&6; }
18173fi
18174
18175
18176
18177
18178
18179if test -z "$lt_cv_path_MAGIC_CMD"; then
18180  if test -n "$ac_tool_prefix"; then
18181    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
18182printf %s "checking for file... " >&6; }
18183if test ${lt_cv_path_MAGIC_CMD+y}
18184then :
18185  printf %s "(cached) " >&6
18186else $as_nop
18187  case $MAGIC_CMD in
18188[\\/*] |  ?:[\\/]*)
18189  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
18190  ;;
18191*)
18192  lt_save_MAGIC_CMD=$MAGIC_CMD
18193  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
18194  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
18195  for ac_dir in $ac_dummy; do
18196    IFS=$lt_save_ifs
18197    test -z "$ac_dir" && ac_dir=.
18198    if test -f "$ac_dir/file"; then
18199      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
18200      if test -n "$file_magic_test_file"; then
18201	case $deplibs_check_method in
18202	"file_magic "*)
18203	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
18204	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
18205	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
18206	    $EGREP "$file_magic_regex" > /dev/null; then
18207	    :
18208	  else
18209	    cat <<_LT_EOF 1>&2
18210
18211*** Warning: the command libtool uses to detect shared libraries,
18212*** $file_magic_cmd, produces output that libtool cannot recognize.
18213*** The result is that libtool may fail to recognize shared libraries
18214*** as such.  This will affect the creation of libtool libraries that
18215*** depend on shared libraries, but programs linked with such libtool
18216*** libraries will work regardless of this problem.  Nevertheless, you
18217*** may want to report the problem to your system manager and/or to
18218*** bug-libtool@gnu.org
18219
18220_LT_EOF
18221	  fi ;;
18222	esac
18223      fi
18224      break
18225    fi
18226  done
18227  IFS=$lt_save_ifs
18228  MAGIC_CMD=$lt_save_MAGIC_CMD
18229  ;;
18230esac
18231fi
18232
18233MAGIC_CMD=$lt_cv_path_MAGIC_CMD
18234if test -n "$MAGIC_CMD"; then
18235  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
18236printf "%s\n" "$MAGIC_CMD" >&6; }
18237else
18238  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18239printf "%s\n" "no" >&6; }
18240fi
18241
18242
18243  else
18244    MAGIC_CMD=:
18245  fi
18246fi
18247
18248  fi
18249  ;;
18250esac
18251
18252# Use C for the default configuration in the libtool script
18253
18254lt_save_CC=$CC
18255ac_ext=c
18256ac_cpp='$CPP $CPPFLAGS'
18257ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18258ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18259ac_compiler_gnu=$ac_cv_c_compiler_gnu
18260
18261
18262# Source file extension for C test sources.
18263ac_ext=c
18264
18265# Object file extension for compiled C test sources.
18266objext=o
18267objext=$objext
18268
18269# Code to be used in simple compile tests
18270lt_simple_compile_test_code="int some_variable = 0;"
18271
18272# Code to be used in simple link tests
18273lt_simple_link_test_code='int main(){return(0);}'
18274
18275
18276
18277
18278
18279
18280
18281# If no C compiler was specified, use CC.
18282LTCC=${LTCC-"$CC"}
18283
18284# If no C compiler flags were specified, use CFLAGS.
18285LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18286
18287# Allow CC to be a program name with arguments.
18288compiler=$CC
18289
18290# Save the default compiler, since it gets overwritten when the other
18291# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
18292compiler_DEFAULT=$CC
18293
18294# save warnings/boilerplate of simple test code
18295ac_outfile=conftest.$ac_objext
18296echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18297eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18298_lt_compiler_boilerplate=`cat conftest.err`
18299$RM conftest*
18300
18301ac_outfile=conftest.$ac_objext
18302echo "$lt_simple_link_test_code" >conftest.$ac_ext
18303eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18304_lt_linker_boilerplate=`cat conftest.err`
18305$RM -r conftest*
18306
18307
18308## CAVEAT EMPTOR:
18309## There is no encapsulation within the following macros, do not change
18310## the running order or otherwise move them around unless you know exactly
18311## what you are doing...
18312if test -n "$compiler"; then
18313
18314lt_prog_compiler_no_builtin_flag=
18315
18316if test yes = "$GCC"; then
18317  case $cc_basename in
18318  nvcc*)
18319    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
18320  *)
18321    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
18322  esac
18323
18324  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
18325printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
18326if test ${lt_cv_prog_compiler_rtti_exceptions+y}
18327then :
18328  printf %s "(cached) " >&6
18329else $as_nop
18330  lt_cv_prog_compiler_rtti_exceptions=no
18331   ac_outfile=conftest.$ac_objext
18332   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18333   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
18334   # Insert the option either (1) after the last *FLAGS variable, or
18335   # (2) before a word containing "conftest.", or (3) at the end.
18336   # Note that $ac_compile itself does not contain backslashes and begins
18337   # with a dollar sign (not a hyphen), so the echo should work correctly.
18338   # The option is referenced via a variable to avoid confusing sed.
18339   lt_compile=`echo "$ac_compile" | $SED \
18340   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18341   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18342   -e 's:$: $lt_compiler_flag:'`
18343   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18344   (eval "$lt_compile" 2>conftest.err)
18345   ac_status=$?
18346   cat conftest.err >&5
18347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18348   if (exit $ac_status) && test -s "$ac_outfile"; then
18349     # The compiler can only warn and ignore the option if not recognized
18350     # So say no if there are warnings other than the usual output.
18351     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
18352     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18353     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18354       lt_cv_prog_compiler_rtti_exceptions=yes
18355     fi
18356   fi
18357   $RM conftest*
18358
18359fi
18360{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
18361printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
18362
18363if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
18364    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
18365else
18366    :
18367fi
18368
18369fi
18370
18371
18372
18373
18374
18375
18376  lt_prog_compiler_wl=
18377lt_prog_compiler_pic=
18378lt_prog_compiler_static=
18379
18380
18381  if test yes = "$GCC"; then
18382    lt_prog_compiler_wl='-Wl,'
18383    lt_prog_compiler_static='-static'
18384
18385    case $host_os in
18386      aix*)
18387      # All AIX code is PIC.
18388      if test ia64 = "$host_cpu"; then
18389	# AIX 5 now supports IA64 processor
18390	lt_prog_compiler_static='-Bstatic'
18391      fi
18392      lt_prog_compiler_pic='-fPIC'
18393      ;;
18394
18395    amigaos*)
18396      case $host_cpu in
18397      powerpc)
18398            # see comment about AmigaOS4 .so support
18399            lt_prog_compiler_pic='-fPIC'
18400        ;;
18401      m68k)
18402            # FIXME: we need at least 68020 code to build shared libraries, but
18403            # adding the '-m68020' flag to GCC prevents building anything better,
18404            # like '-m68040'.
18405            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
18406        ;;
18407      esac
18408      ;;
18409
18410    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18411      # PIC is the default for these OSes.
18412      ;;
18413
18414    mingw* | cygwin* | pw32* | os2* | cegcc*)
18415      # This hack is so that the source file can tell whether it is being
18416      # built for inclusion in a dll (and should export symbols for example).
18417      # Although the cygwin gcc ignores -fPIC, still need this for old-style
18418      # (--disable-auto-import) libraries
18419      lt_prog_compiler_pic='-DDLL_EXPORT'
18420      case $host_os in
18421      os2*)
18422	lt_prog_compiler_static='$wl-static'
18423	;;
18424      esac
18425      ;;
18426
18427    darwin* | rhapsody*)
18428      # PIC is the default on this platform
18429      # Common symbols not allowed in MH_DYLIB files
18430      lt_prog_compiler_pic='-fno-common'
18431      ;;
18432
18433    haiku*)
18434      # PIC is the default for Haiku.
18435      # The "-static" flag exists, but is broken.
18436      lt_prog_compiler_static=
18437      ;;
18438
18439    hpux*)
18440      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
18441      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
18442      # sets the default TLS model and affects inlining.
18443      case $host_cpu in
18444      hppa*64*)
18445	# +Z the default
18446	;;
18447      *)
18448	lt_prog_compiler_pic='-fPIC'
18449	;;
18450      esac
18451      ;;
18452
18453    interix[3-9]*)
18454      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18455      # Instead, we relocate shared libraries at runtime.
18456      ;;
18457
18458    msdosdjgpp*)
18459      # Just because we use GCC doesn't mean we suddenly get shared libraries
18460      # on systems that don't support them.
18461      lt_prog_compiler_can_build_shared=no
18462      enable_shared=no
18463      ;;
18464
18465    *nto* | *qnx*)
18466      # QNX uses GNU C++, but need to define -shared option too, otherwise
18467      # it will coredump.
18468      lt_prog_compiler_pic='-fPIC -shared'
18469      ;;
18470
18471    sysv4*MP*)
18472      if test -d /usr/nec; then
18473	lt_prog_compiler_pic=-Kconform_pic
18474      fi
18475      ;;
18476
18477    *)
18478      lt_prog_compiler_pic='-fPIC'
18479      ;;
18480    esac
18481
18482    case $cc_basename in
18483    nvcc*) # Cuda Compiler Driver 2.2
18484      lt_prog_compiler_wl='-Xlinker '
18485      if test -n "$lt_prog_compiler_pic"; then
18486        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
18487      fi
18488      ;;
18489    esac
18490  else
18491    # PORTME Check for flag to pass linker flags through the system compiler.
18492    case $host_os in
18493    aix*)
18494      lt_prog_compiler_wl='-Wl,'
18495      if test ia64 = "$host_cpu"; then
18496	# AIX 5 now supports IA64 processor
18497	lt_prog_compiler_static='-Bstatic'
18498      else
18499	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
18500      fi
18501      ;;
18502
18503    darwin* | rhapsody*)
18504      # PIC is the default on this platform
18505      # Common symbols not allowed in MH_DYLIB files
18506      lt_prog_compiler_pic='-fno-common'
18507      case $cc_basename in
18508      nagfor*)
18509        # NAG Fortran compiler
18510        lt_prog_compiler_wl='-Wl,-Wl,,'
18511        lt_prog_compiler_pic='-PIC'
18512        lt_prog_compiler_static='-Bstatic'
18513        ;;
18514      esac
18515      ;;
18516
18517    mingw* | cygwin* | pw32* | os2* | cegcc*)
18518      # This hack is so that the source file can tell whether it is being
18519      # built for inclusion in a dll (and should export symbols for example).
18520      lt_prog_compiler_pic='-DDLL_EXPORT'
18521      case $host_os in
18522      os2*)
18523	lt_prog_compiler_static='$wl-static'
18524	;;
18525      esac
18526      ;;
18527
18528    hpux9* | hpux10* | hpux11*)
18529      lt_prog_compiler_wl='-Wl,'
18530      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18531      # not for PA HP-UX.
18532      case $host_cpu in
18533      hppa*64*|ia64*)
18534	# +Z the default
18535	;;
18536      *)
18537	lt_prog_compiler_pic='+Z'
18538	;;
18539      esac
18540      # Is there a better lt_prog_compiler_static that works with the bundled CC?
18541      lt_prog_compiler_static='$wl-a ${wl}archive'
18542      ;;
18543
18544    irix5* | irix6* | nonstopux*)
18545      lt_prog_compiler_wl='-Wl,'
18546      # PIC (with -KPIC) is the default.
18547      lt_prog_compiler_static='-non_shared'
18548      ;;
18549
18550    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
18551      case $cc_basename in
18552      # old Intel for x86_64, which still supported -KPIC.
18553      ecc*)
18554	lt_prog_compiler_wl='-Wl,'
18555	lt_prog_compiler_pic='-KPIC'
18556	lt_prog_compiler_static='-static'
18557        ;;
18558      # icc used to be incompatible with GCC.
18559      # ICC 10 doesn't accept -KPIC any more.
18560      icc* | ifort*)
18561	lt_prog_compiler_wl='-Wl,'
18562	lt_prog_compiler_pic='-fPIC'
18563	lt_prog_compiler_static='-static'
18564        ;;
18565      # Lahey Fortran 8.1.
18566      lf95*)
18567	lt_prog_compiler_wl='-Wl,'
18568	lt_prog_compiler_pic='--shared'
18569	lt_prog_compiler_static='--static'
18570	;;
18571      nagfor*)
18572	# NAG Fortran compiler
18573	lt_prog_compiler_wl='-Wl,-Wl,,'
18574	lt_prog_compiler_pic='-PIC'
18575	lt_prog_compiler_static='-Bstatic'
18576	;;
18577      tcc*)
18578	# Fabrice Bellard et al's Tiny C Compiler
18579	lt_prog_compiler_wl='-Wl,'
18580	lt_prog_compiler_pic='-fPIC'
18581	lt_prog_compiler_static='-static'
18582	;;
18583      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
18584        # Portland Group compilers (*not* the Pentium gcc compiler,
18585	# which looks to be a dead project)
18586	lt_prog_compiler_wl='-Wl,'
18587	lt_prog_compiler_pic='-fpic'
18588	lt_prog_compiler_static='-Bstatic'
18589        ;;
18590      ccc*)
18591        lt_prog_compiler_wl='-Wl,'
18592        # All Alpha code is PIC.
18593        lt_prog_compiler_static='-non_shared'
18594        ;;
18595      xl* | bgxl* | bgf* | mpixl*)
18596	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
18597	lt_prog_compiler_wl='-Wl,'
18598	lt_prog_compiler_pic='-qpic'
18599	lt_prog_compiler_static='-qstaticlink'
18600	;;
18601      *)
18602	case `$CC -V 2>&1 | $SED 5q` in
18603	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
18604	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
18605	  lt_prog_compiler_pic='-KPIC'
18606	  lt_prog_compiler_static='-Bstatic'
18607	  lt_prog_compiler_wl=''
18608	  ;;
18609	*Sun\ F* | *Sun*Fortran*)
18610	  lt_prog_compiler_pic='-KPIC'
18611	  lt_prog_compiler_static='-Bstatic'
18612	  lt_prog_compiler_wl='-Qoption ld '
18613	  ;;
18614	*Sun\ C*)
18615	  # Sun C 5.9
18616	  lt_prog_compiler_pic='-KPIC'
18617	  lt_prog_compiler_static='-Bstatic'
18618	  lt_prog_compiler_wl='-Wl,'
18619	  ;;
18620        *Intel*\ [CF]*Compiler*)
18621	  lt_prog_compiler_wl='-Wl,'
18622	  lt_prog_compiler_pic='-fPIC'
18623	  lt_prog_compiler_static='-static'
18624	  ;;
18625	*Portland\ Group*)
18626	  lt_prog_compiler_wl='-Wl,'
18627	  lt_prog_compiler_pic='-fpic'
18628	  lt_prog_compiler_static='-Bstatic'
18629	  ;;
18630	esac
18631	;;
18632      esac
18633      ;;
18634
18635    newsos6)
18636      lt_prog_compiler_pic='-KPIC'
18637      lt_prog_compiler_static='-Bstatic'
18638      ;;
18639
18640    *nto* | *qnx*)
18641      # QNX uses GNU C++, but need to define -shared option too, otherwise
18642      # it will coredump.
18643      lt_prog_compiler_pic='-fPIC -shared'
18644      ;;
18645
18646    osf3* | osf4* | osf5*)
18647      lt_prog_compiler_wl='-Wl,'
18648      # All OSF/1 code is PIC.
18649      lt_prog_compiler_static='-non_shared'
18650      ;;
18651
18652    rdos*)
18653      lt_prog_compiler_static='-non_shared'
18654      ;;
18655
18656    solaris*)
18657      lt_prog_compiler_pic='-KPIC'
18658      lt_prog_compiler_static='-Bstatic'
18659      case $cc_basename in
18660      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
18661	lt_prog_compiler_wl='-Qoption ld ';;
18662      *)
18663	lt_prog_compiler_wl='-Wl,';;
18664      esac
18665      ;;
18666
18667    sunos4*)
18668      lt_prog_compiler_wl='-Qoption ld '
18669      lt_prog_compiler_pic='-PIC'
18670      lt_prog_compiler_static='-Bstatic'
18671      ;;
18672
18673    sysv4 | sysv4.2uw2* | sysv4.3*)
18674      lt_prog_compiler_wl='-Wl,'
18675      lt_prog_compiler_pic='-KPIC'
18676      lt_prog_compiler_static='-Bstatic'
18677      ;;
18678
18679    sysv4*MP*)
18680      if test -d /usr/nec; then
18681	lt_prog_compiler_pic='-Kconform_pic'
18682	lt_prog_compiler_static='-Bstatic'
18683      fi
18684      ;;
18685
18686    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18687      lt_prog_compiler_wl='-Wl,'
18688      lt_prog_compiler_pic='-KPIC'
18689      lt_prog_compiler_static='-Bstatic'
18690      ;;
18691
18692    unicos*)
18693      lt_prog_compiler_wl='-Wl,'
18694      lt_prog_compiler_can_build_shared=no
18695      ;;
18696
18697    uts4*)
18698      lt_prog_compiler_pic='-pic'
18699      lt_prog_compiler_static='-Bstatic'
18700      ;;
18701
18702    *)
18703      lt_prog_compiler_can_build_shared=no
18704      ;;
18705    esac
18706  fi
18707
18708case $host_os in
18709  # For platforms that do not support PIC, -DPIC is meaningless:
18710  *djgpp*)
18711    lt_prog_compiler_pic=
18712    ;;
18713  *)
18714    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
18715    ;;
18716esac
18717
18718{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
18719printf %s "checking for $compiler option to produce PIC... " >&6; }
18720if test ${lt_cv_prog_compiler_pic+y}
18721then :
18722  printf %s "(cached) " >&6
18723else $as_nop
18724  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
18725fi
18726{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
18727printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
18728lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
18729
18730#
18731# Check to make sure the PIC flag actually works.
18732#
18733if test -n "$lt_prog_compiler_pic"; then
18734  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
18735printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
18736if test ${lt_cv_prog_compiler_pic_works+y}
18737then :
18738  printf %s "(cached) " >&6
18739else $as_nop
18740  lt_cv_prog_compiler_pic_works=no
18741   ac_outfile=conftest.$ac_objext
18742   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18743   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
18744   # Insert the option either (1) after the last *FLAGS variable, or
18745   # (2) before a word containing "conftest.", or (3) at the end.
18746   # Note that $ac_compile itself does not contain backslashes and begins
18747   # with a dollar sign (not a hyphen), so the echo should work correctly.
18748   # The option is referenced via a variable to avoid confusing sed.
18749   lt_compile=`echo "$ac_compile" | $SED \
18750   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18751   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18752   -e 's:$: $lt_compiler_flag:'`
18753   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18754   (eval "$lt_compile" 2>conftest.err)
18755   ac_status=$?
18756   cat conftest.err >&5
18757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18758   if (exit $ac_status) && test -s "$ac_outfile"; then
18759     # The compiler can only warn and ignore the option if not recognized
18760     # So say no if there are warnings other than the usual output.
18761     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
18762     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18763     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18764       lt_cv_prog_compiler_pic_works=yes
18765     fi
18766   fi
18767   $RM conftest*
18768
18769fi
18770{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
18771printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
18772
18773if test yes = "$lt_cv_prog_compiler_pic_works"; then
18774    case $lt_prog_compiler_pic in
18775     "" | " "*) ;;
18776     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
18777     esac
18778else
18779    lt_prog_compiler_pic=
18780     lt_prog_compiler_can_build_shared=no
18781fi
18782
18783fi
18784
18785
18786
18787
18788
18789
18790
18791
18792
18793
18794
18795#
18796# Check to make sure the static flag actually works.
18797#
18798wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
18799{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18800printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
18801if test ${lt_cv_prog_compiler_static_works+y}
18802then :
18803  printf %s "(cached) " >&6
18804else $as_nop
18805  lt_cv_prog_compiler_static_works=no
18806   save_LDFLAGS=$LDFLAGS
18807   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18808   echo "$lt_simple_link_test_code" > conftest.$ac_ext
18809   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18810     # The linker can only warn and ignore the option if not recognized
18811     # So say no if there are warnings
18812     if test -s conftest.err; then
18813       # Append any errors to the config.log.
18814       cat conftest.err 1>&5
18815       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
18816       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18817       if diff conftest.exp conftest.er2 >/dev/null; then
18818         lt_cv_prog_compiler_static_works=yes
18819       fi
18820     else
18821       lt_cv_prog_compiler_static_works=yes
18822     fi
18823   fi
18824   $RM -r conftest*
18825   LDFLAGS=$save_LDFLAGS
18826
18827fi
18828{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
18829printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
18830
18831if test yes = "$lt_cv_prog_compiler_static_works"; then
18832    :
18833else
18834    lt_prog_compiler_static=
18835fi
18836
18837
18838
18839
18840
18841
18842
18843  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18844printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18845if test ${lt_cv_prog_compiler_c_o+y}
18846then :
18847  printf %s "(cached) " >&6
18848else $as_nop
18849  lt_cv_prog_compiler_c_o=no
18850   $RM -r conftest 2>/dev/null
18851   mkdir conftest
18852   cd conftest
18853   mkdir out
18854   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18855
18856   lt_compiler_flag="-o out/conftest2.$ac_objext"
18857   # Insert the option either (1) after the last *FLAGS variable, or
18858   # (2) before a word containing "conftest.", or (3) at the end.
18859   # Note that $ac_compile itself does not contain backslashes and begins
18860   # with a dollar sign (not a hyphen), so the echo should work correctly.
18861   lt_compile=`echo "$ac_compile" | $SED \
18862   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18863   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18864   -e 's:$: $lt_compiler_flag:'`
18865   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18866   (eval "$lt_compile" 2>out/conftest.err)
18867   ac_status=$?
18868   cat out/conftest.err >&5
18869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18870   if (exit $ac_status) && test -s out/conftest2.$ac_objext
18871   then
18872     # The compiler can only warn and ignore the option if not recognized
18873     # So say no if there are warnings
18874     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
18875     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18876     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18877       lt_cv_prog_compiler_c_o=yes
18878     fi
18879   fi
18880   chmod u+w . 2>&5
18881   $RM conftest*
18882   # SGI C++ compiler will create directory out/ii_files/ for
18883   # template instantiation
18884   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18885   $RM out/* && rmdir out
18886   cd ..
18887   $RM -r conftest
18888   $RM conftest*
18889
18890fi
18891{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
18892printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
18893
18894
18895
18896
18897
18898
18899  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18900printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18901if test ${lt_cv_prog_compiler_c_o+y}
18902then :
18903  printf %s "(cached) " >&6
18904else $as_nop
18905  lt_cv_prog_compiler_c_o=no
18906   $RM -r conftest 2>/dev/null
18907   mkdir conftest
18908   cd conftest
18909   mkdir out
18910   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18911
18912   lt_compiler_flag="-o out/conftest2.$ac_objext"
18913   # Insert the option either (1) after the last *FLAGS variable, or
18914   # (2) before a word containing "conftest.", or (3) at the end.
18915   # Note that $ac_compile itself does not contain backslashes and begins
18916   # with a dollar sign (not a hyphen), so the echo should work correctly.
18917   lt_compile=`echo "$ac_compile" | $SED \
18918   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18919   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18920   -e 's:$: $lt_compiler_flag:'`
18921   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18922   (eval "$lt_compile" 2>out/conftest.err)
18923   ac_status=$?
18924   cat out/conftest.err >&5
18925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18926   if (exit $ac_status) && test -s out/conftest2.$ac_objext
18927   then
18928     # The compiler can only warn and ignore the option if not recognized
18929     # So say no if there are warnings
18930     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
18931     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18932     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18933       lt_cv_prog_compiler_c_o=yes
18934     fi
18935   fi
18936   chmod u+w . 2>&5
18937   $RM conftest*
18938   # SGI C++ compiler will create directory out/ii_files/ for
18939   # template instantiation
18940   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18941   $RM out/* && rmdir out
18942   cd ..
18943   $RM -r conftest
18944   $RM conftest*
18945
18946fi
18947{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
18948printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
18949
18950
18951
18952
18953hard_links=nottested
18954if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
18955  # do not overwrite the value of need_locks provided by the user
18956  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
18957printf %s "checking if we can lock with hard links... " >&6; }
18958  hard_links=yes
18959  $RM conftest*
18960  ln conftest.a conftest.b 2>/dev/null && hard_links=no
18961  touch conftest.a
18962  ln conftest.a conftest.b 2>&5 || hard_links=no
18963  ln conftest.a conftest.b 2>/dev/null && hard_links=no
18964  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
18965printf "%s\n" "$hard_links" >&6; }
18966  if test no = "$hard_links"; then
18967    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
18968printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
18969    need_locks=warn
18970  fi
18971else
18972  need_locks=no
18973fi
18974
18975
18976
18977
18978
18979
18980  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18981printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18982
18983  runpath_var=
18984  allow_undefined_flag=
18985  always_export_symbols=no
18986  archive_cmds=
18987  archive_expsym_cmds=
18988  compiler_needs_object=no
18989  enable_shared_with_static_runtimes=no
18990  export_dynamic_flag_spec=
18991  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18992  hardcode_automatic=no
18993  hardcode_direct=no
18994  hardcode_direct_absolute=no
18995  hardcode_libdir_flag_spec=
18996  hardcode_libdir_separator=
18997  hardcode_minus_L=no
18998  hardcode_shlibpath_var=unsupported
18999  inherit_rpath=no
19000  link_all_deplibs=unknown
19001  module_cmds=
19002  module_expsym_cmds=
19003  old_archive_from_new_cmds=
19004  old_archive_from_expsyms_cmds=
19005  thread_safe_flag_spec=
19006  whole_archive_flag_spec=
19007  # include_expsyms should be a list of space-separated symbols to be *always*
19008  # included in the symbol list
19009  include_expsyms=
19010  # exclude_expsyms can be an extended regexp of symbols to exclude
19011  # it will be wrapped by ' (' and ')$', so one must not match beginning or
19012  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
19013  # as well as any symbol that contains 'd'.
19014  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
19015  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19016  # platforms (ab)use it in PIC code, but their linkers get confused if
19017  # the symbol is explicitly referenced.  Since portable code cannot
19018  # rely on this symbol name, it's probably fine to never include it in
19019  # preloaded symbol tables.
19020  # Exclude shared library initialization/finalization symbols.
19021  extract_expsyms_cmds=
19022
19023  case $host_os in
19024  cygwin* | mingw* | pw32* | cegcc*)
19025    # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
19026    # When not using gcc, we currently assume that we are using
19027    # Microsoft Visual C++ or Intel C++ Compiler.
19028    if test yes != "$GCC"; then
19029      with_gnu_ld=no
19030    fi
19031    ;;
19032  interix*)
19033    # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
19034    with_gnu_ld=yes
19035    ;;
19036  openbsd* | bitrig*)
19037    with_gnu_ld=no
19038    ;;
19039  esac
19040
19041  ld_shlibs=yes
19042
19043  # On some targets, GNU ld is compatible enough with the native linker
19044  # that we're better off using the native interface for both.
19045  lt_use_gnu_ld_interface=no
19046  if test yes = "$with_gnu_ld"; then
19047    case $host_os in
19048      aix*)
19049	# The AIX port of GNU ld has always aspired to compatibility
19050	# with the native linker.  However, as the warning in the GNU ld
19051	# block says, versions before 2.19.5* couldn't really create working
19052	# shared libraries, regardless of the interface used.
19053	case `$LD -v 2>&1` in
19054	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
19055	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
19056	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
19057	  *)
19058	    lt_use_gnu_ld_interface=yes
19059	    ;;
19060	esac
19061	;;
19062      *)
19063	lt_use_gnu_ld_interface=yes
19064	;;
19065    esac
19066  fi
19067
19068  if test yes = "$lt_use_gnu_ld_interface"; then
19069    # If archive_cmds runs LD, not CC, wlarc should be empty
19070    wlarc='$wl'
19071
19072    # Set some defaults for GNU ld with shared library support. These
19073    # are reset later if shared libraries are not supported. Putting them
19074    # here allows them to be overridden if necessary.
19075    runpath_var=LD_RUN_PATH
19076    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
19077    export_dynamic_flag_spec='$wl--export-dynamic'
19078    # ancient GNU ld didn't support --whole-archive et. al.
19079    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
19080      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
19081    else
19082      whole_archive_flag_spec=
19083    fi
19084    supports_anon_versioning=no
19085    case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
19086      *GNU\ gold*) supports_anon_versioning=yes ;;
19087      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19088      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19089      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19090      *\ 2.11.*) ;; # other 2.11 versions
19091      *) supports_anon_versioning=yes ;;
19092    esac
19093
19094    # See if GNU ld supports shared libraries.
19095    case $host_os in
19096    aix[3-9]*)
19097      # On AIX/PPC, the GNU linker is very broken
19098      if test ia64 != "$host_cpu"; then
19099	ld_shlibs=no
19100	cat <<_LT_EOF 1>&2
19101
19102*** Warning: the GNU linker, at least up to release 2.19, is reported
19103*** to be unable to reliably create shared libraries on AIX.
19104*** Therefore, libtool is disabling shared libraries support.  If you
19105*** really care for shared libraries, you may want to install binutils
19106*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
19107*** You will then need to restart the configuration process.
19108
19109_LT_EOF
19110      fi
19111      ;;
19112
19113    amigaos*)
19114      case $host_cpu in
19115      powerpc)
19116            # see comment about AmigaOS4 .so support
19117            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
19118            archive_expsym_cmds=''
19119        ;;
19120      m68k)
19121            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)'
19122            hardcode_libdir_flag_spec='-L$libdir'
19123            hardcode_minus_L=yes
19124        ;;
19125      esac
19126      ;;
19127
19128    beos*)
19129      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19130	allow_undefined_flag=unsupported
19131	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19132	# support --undefined.  This deserves some investigation.  FIXME
19133	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
19134      else
19135	ld_shlibs=no
19136      fi
19137      ;;
19138
19139    cygwin* | mingw* | pw32* | cegcc*)
19140      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
19141      # as there is no search path for DLLs.
19142      hardcode_libdir_flag_spec='-L$libdir'
19143      export_dynamic_flag_spec='$wl--export-all-symbols'
19144      allow_undefined_flag=unsupported
19145      always_export_symbols=no
19146      enable_shared_with_static_runtimes=yes
19147      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'
19148      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
19149
19150      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19151        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19152	# If the export-symbols file already is a .def file, use it as
19153	# is; otherwise, prepend EXPORTS...
19154	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
19155          cp $export_symbols $output_objdir/$soname.def;
19156        else
19157          echo EXPORTS > $output_objdir/$soname.def;
19158          cat $export_symbols >> $output_objdir/$soname.def;
19159        fi~
19160        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19161      else
19162	ld_shlibs=no
19163      fi
19164      ;;
19165
19166    haiku*)
19167      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
19168      link_all_deplibs=yes
19169      ;;
19170
19171    os2*)
19172      hardcode_libdir_flag_spec='-L$libdir'
19173      hardcode_minus_L=yes
19174      allow_undefined_flag=unsupported
19175      shrext_cmds=.dll
19176      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
19177	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
19178	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
19179	$ECHO EXPORTS >> $output_objdir/$libname.def~
19180	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
19181	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
19182	emximp -o $lib $output_objdir/$libname.def'
19183      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
19184	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
19185	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
19186	$ECHO EXPORTS >> $output_objdir/$libname.def~
19187	prefix_cmds="$SED"~
19188	if test EXPORTS = "`$SED 1q $export_symbols`"; then
19189	  prefix_cmds="$prefix_cmds -e 1d";
19190	fi~
19191	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
19192	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
19193	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
19194	emximp -o $lib $output_objdir/$libname.def'
19195      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
19196      enable_shared_with_static_runtimes=yes
19197      file_list_spec='@'
19198      ;;
19199
19200    interix[3-9]*)
19201      hardcode_direct=no
19202      hardcode_shlibpath_var=no
19203      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
19204      export_dynamic_flag_spec='$wl-E'
19205      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19206      # Instead, shared libraries are loaded at an image base (0x10000000 by
19207      # default) and relocated if they conflict, which is a slow very memory
19208      # consuming and fragmenting process.  To avoid this, we pick a random,
19209      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19210      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
19211      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
19212      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'
19213      ;;
19214
19215    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
19216      tmp_diet=no
19217      if test linux-dietlibc = "$host_os"; then
19218	case $cc_basename in
19219	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
19220	esac
19221      fi
19222      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
19223	 && test no = "$tmp_diet"
19224      then
19225	tmp_addflag=' $pic_flag'
19226	tmp_sharedflag='-shared'
19227	case $cc_basename,$host_cpu in
19228        pgcc*)				# Portland Group C compiler
19229	  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'
19230	  tmp_addflag=' $pic_flag'
19231	  ;;
19232	pgf77* | pgf90* | pgf95* | pgfortran*)
19233					# Portland Group f77 and f90 compilers
19234	  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'
19235	  tmp_addflag=' $pic_flag -Mnomain' ;;
19236	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
19237	  tmp_addflag=' -i_dynamic' ;;
19238	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
19239	  tmp_addflag=' -i_dynamic -nofor_main' ;;
19240	ifc* | ifort*)			# Intel Fortran compiler
19241	  tmp_addflag=' -nofor_main' ;;
19242	lf95*)				# Lahey Fortran 8.1
19243	  whole_archive_flag_spec=
19244	  tmp_sharedflag='--shared' ;;
19245        nagfor*)                        # NAGFOR 5.3
19246          tmp_sharedflag='-Wl,-shared' ;;
19247	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
19248	  tmp_sharedflag='-qmkshrobj'
19249	  tmp_addflag= ;;
19250	nvcc*)	# Cuda Compiler Driver 2.2
19251	  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'
19252	  compiler_needs_object=yes
19253	  ;;
19254	esac
19255	case `$CC -V 2>&1 | $SED 5q` in
19256	*Sun\ C*)			# Sun C 5.9
19257	  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'
19258	  compiler_needs_object=yes
19259	  tmp_sharedflag='-G' ;;
19260	*Sun\ F*)			# Sun Fortran 8.3
19261	  tmp_sharedflag='-G' ;;
19262	esac
19263	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
19264
19265        if test yes = "$supports_anon_versioning"; then
19266          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
19267            cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19268            echo "local: *; };" >> $output_objdir/$libname.ver~
19269            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
19270        fi
19271
19272	case $cc_basename in
19273	tcc*)
19274	  export_dynamic_flag_spec='-rdynamic'
19275	  ;;
19276	xlf* | bgf* | bgxlf* | mpixlf*)
19277	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
19278	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
19279	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
19280	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
19281	  if test yes = "$supports_anon_versioning"; then
19282	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
19283              cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19284              echo "local: *; };" >> $output_objdir/$libname.ver~
19285              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
19286	  fi
19287	  ;;
19288	esac
19289      else
19290        ld_shlibs=no
19291      fi
19292      ;;
19293
19294    netbsd*)
19295      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19296	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19297	wlarc=
19298      else
19299	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
19300	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
19301      fi
19302      ;;
19303
19304    solaris*)
19305      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
19306	ld_shlibs=no
19307	cat <<_LT_EOF 1>&2
19308
19309*** Warning: The releases 2.8.* of the GNU linker cannot reliably
19310*** create shared libraries on Solaris systems.  Therefore, libtool
19311*** is disabling shared libraries support.  We urge you to upgrade GNU
19312*** binutils to release 2.9.1 or newer.  Another option is to modify
19313*** your PATH or compiler configuration so that the native linker is
19314*** used, and then restart.
19315
19316_LT_EOF
19317      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19318	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
19319	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
19320      else
19321	ld_shlibs=no
19322      fi
19323      ;;
19324
19325    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
19326      case `$LD -v 2>&1` in
19327        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
19328	ld_shlibs=no
19329	cat <<_LT_EOF 1>&2
19330
19331*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
19332*** reliably create shared libraries on SCO systems.  Therefore, libtool
19333*** is disabling shared libraries support.  We urge you to upgrade GNU
19334*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
19335*** your PATH or compiler configuration so that the native linker is
19336*** used, and then restart.
19337
19338_LT_EOF
19339	;;
19340	*)
19341	  # For security reasons, it is highly recommended that you always
19342	  # use absolute paths for naming shared libraries, and exclude the
19343	  # DT_RUNPATH tag from executables and libraries.  But doing so
19344	  # requires that you compile everything twice, which is a pain.
19345	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19346	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
19347	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
19348	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
19349	  else
19350	    ld_shlibs=no
19351	  fi
19352	;;
19353      esac
19354      ;;
19355
19356    sunos4*)
19357      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19358      wlarc=
19359      hardcode_direct=yes
19360      hardcode_shlibpath_var=no
19361      ;;
19362
19363    *)
19364      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19365	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
19366	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
19367      else
19368	ld_shlibs=no
19369      fi
19370      ;;
19371    esac
19372
19373    if test no = "$ld_shlibs"; then
19374      runpath_var=
19375      hardcode_libdir_flag_spec=
19376      export_dynamic_flag_spec=
19377      whole_archive_flag_spec=
19378    fi
19379  else
19380    # PORTME fill in a description of your system's linker (not GNU ld)
19381    case $host_os in
19382    aix3*)
19383      allow_undefined_flag=unsupported
19384      always_export_symbols=yes
19385      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'
19386      # Note: this linker hardcodes the directories in LIBPATH if there
19387      # are no directories specified by -L.
19388      hardcode_minus_L=yes
19389      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
19390	# Neither direct hardcoding nor static linking is supported with a
19391	# broken collect2.
19392	hardcode_direct=unsupported
19393      fi
19394      ;;
19395
19396    aix[4-9]*)
19397      if test ia64 = "$host_cpu"; then
19398	# On IA64, the linker does run time linking by default, so we don't
19399	# have to do anything special.
19400	aix_use_runtimelinking=no
19401	exp_sym_flag='-Bexport'
19402	no_entry_flag=
19403      else
19404	# If we're using GNU nm, then we don't want the "-C" option.
19405	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
19406	# Without the "-l" option, or with the "-B" option, AIX nm treats
19407	# weak defined symbols like other global defined symbols, whereas
19408	# GNU nm marks them as "W".
19409	# While the 'weak' keyword is ignored in the Export File, we need
19410	# it in the Import File for the 'aix-soname' feature, so we have
19411	# to replace the "-B" option with "-P" for AIX nm.
19412	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
19413	  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'
19414	else
19415	  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'
19416	fi
19417	aix_use_runtimelinking=no
19418
19419	# Test if we are trying to use run time linking or normal
19420	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
19421	# have runtime linking enabled, and use it for executables.
19422	# For shared libraries, we enable/disable runtime linking
19423	# depending on the kind of the shared library created -
19424	# when "with_aix_soname,aix_use_runtimelinking" is:
19425	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
19426	# "aix,yes"  lib.so          shared, rtl:yes, for executables
19427	#            lib.a           static archive
19428	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
19429	#            lib.a(lib.so.V) shared, rtl:no,  for executables
19430	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
19431	#            lib.a(lib.so.V) shared, rtl:no
19432	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
19433	#            lib.a           static archive
19434	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19435	  for ld_flag in $LDFLAGS; do
19436	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
19437	    aix_use_runtimelinking=yes
19438	    break
19439	  fi
19440	  done
19441	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
19442	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
19443	    # so we don't have lib.a shared libs to link our executables.
19444	    # We have to force runtime linking in this case.
19445	    aix_use_runtimelinking=yes
19446	    LDFLAGS="$LDFLAGS -Wl,-brtl"
19447	  fi
19448	  ;;
19449	esac
19450
19451	exp_sym_flag='-bexport'
19452	no_entry_flag='-bnoentry'
19453      fi
19454
19455      # When large executables or shared objects are built, AIX ld can
19456      # have problems creating the table of contents.  If linking a library
19457      # or program results in "error TOC overflow" add -mminimal-toc to
19458      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
19459      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19460
19461      archive_cmds=''
19462      hardcode_direct=yes
19463      hardcode_direct_absolute=yes
19464      hardcode_libdir_separator=':'
19465      link_all_deplibs=yes
19466      file_list_spec='$wl-f,'
19467      case $with_aix_soname,$aix_use_runtimelinking in
19468      aix,*) ;; # traditional, no import file
19469      svr4,* | *,yes) # use import file
19470	# The Import File defines what to hardcode.
19471	hardcode_direct=no
19472	hardcode_direct_absolute=no
19473	;;
19474      esac
19475
19476      if test yes = "$GCC"; then
19477	case $host_os in aix4.[012]|aix4.[012].*)
19478	# We only want to do this on AIX 4.2 and lower, the check
19479	# below for broken collect2 doesn't work under 4.3+
19480	  collect2name=`$CC -print-prog-name=collect2`
19481	  if test -f "$collect2name" &&
19482	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
19483	  then
19484	  # We have reworked collect2
19485	  :
19486	  else
19487	  # We have old collect2
19488	  hardcode_direct=unsupported
19489	  # It fails to find uninstalled libraries when the uninstalled
19490	  # path is not listed in the libpath.  Setting hardcode_minus_L
19491	  # to unsupported forces relinking
19492	  hardcode_minus_L=yes
19493	  hardcode_libdir_flag_spec='-L$libdir'
19494	  hardcode_libdir_separator=
19495	  fi
19496	  ;;
19497	esac
19498	shared_flag='-shared'
19499	if test yes = "$aix_use_runtimelinking"; then
19500	  shared_flag="$shared_flag "'$wl-G'
19501	fi
19502	# Need to ensure runtime linking is disabled for the traditional
19503	# shared library, or the linker may eventually find shared libraries
19504	# /with/ Import File - we do not want to mix them.
19505	shared_flag_aix='-shared'
19506	shared_flag_svr4='-shared $wl-G'
19507      else
19508	# not using gcc
19509	if test ia64 = "$host_cpu"; then
19510	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19511	# chokes on -Wl,-G. The following line is correct:
19512	  shared_flag='-G'
19513	else
19514	  if test yes = "$aix_use_runtimelinking"; then
19515	    shared_flag='$wl-G'
19516	  else
19517	    shared_flag='$wl-bM:SRE'
19518	  fi
19519	  shared_flag_aix='$wl-bM:SRE'
19520	  shared_flag_svr4='$wl-G'
19521	fi
19522      fi
19523
19524      export_dynamic_flag_spec='$wl-bexpall'
19525      # It seems that -bexpall does not export symbols beginning with
19526      # underscore (_), so it is better to generate a list of symbols to export.
19527      always_export_symbols=yes
19528      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
19529	# Warning - without using the other runtime loading flags (-brtl),
19530	# -berok will link without error, but may produce a broken library.
19531	allow_undefined_flag='-berok'
19532        # Determine the default libpath from the value encoded in an
19533        # empty executable.
19534        if test set = "${lt_cv_aix_libpath+set}"; then
19535  aix_libpath=$lt_cv_aix_libpath
19536else
19537  if test ${lt_cv_aix_libpath_+y}
19538then :
19539  printf %s "(cached) " >&6
19540else $as_nop
19541  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19542/* end confdefs.h.  */
19543
19544int
19545main (void)
19546{
19547
19548  ;
19549  return 0;
19550}
19551_ACEOF
19552if ac_fn_c_try_link "$LINENO"
19553then :
19554
19555  lt_aix_libpath_sed='
19556      /Import File Strings/,/^$/ {
19557	  /^0/ {
19558	      s/^0  *\([^ ]*\) *$/\1/
19559	      p
19560	  }
19561      }'
19562  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19563  # Check for a 64-bit object if we didn't find anything.
19564  if test -z "$lt_cv_aix_libpath_"; then
19565    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19566  fi
19567fi
19568rm -f core conftest.err conftest.$ac_objext conftest.beam \
19569    conftest$ac_exeext conftest.$ac_ext
19570  if test -z "$lt_cv_aix_libpath_"; then
19571    lt_cv_aix_libpath_=/usr/lib:/lib
19572  fi
19573
19574fi
19575
19576  aix_libpath=$lt_cv_aix_libpath_
19577fi
19578
19579        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
19580        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
19581      else
19582	if test ia64 = "$host_cpu"; then
19583	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
19584	  allow_undefined_flag="-z nodefs"
19585	  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"
19586	else
19587	 # Determine the default libpath from the value encoded in an
19588	 # empty executable.
19589	 if test set = "${lt_cv_aix_libpath+set}"; then
19590  aix_libpath=$lt_cv_aix_libpath
19591else
19592  if test ${lt_cv_aix_libpath_+y}
19593then :
19594  printf %s "(cached) " >&6
19595else $as_nop
19596  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19597/* end confdefs.h.  */
19598
19599int
19600main (void)
19601{
19602
19603  ;
19604  return 0;
19605}
19606_ACEOF
19607if ac_fn_c_try_link "$LINENO"
19608then :
19609
19610  lt_aix_libpath_sed='
19611      /Import File Strings/,/^$/ {
19612	  /^0/ {
19613	      s/^0  *\([^ ]*\) *$/\1/
19614	      p
19615	  }
19616      }'
19617  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19618  # Check for a 64-bit object if we didn't find anything.
19619  if test -z "$lt_cv_aix_libpath_"; then
19620    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19621  fi
19622fi
19623rm -f core conftest.err conftest.$ac_objext conftest.beam \
19624    conftest$ac_exeext conftest.$ac_ext
19625  if test -z "$lt_cv_aix_libpath_"; then
19626    lt_cv_aix_libpath_=/usr/lib:/lib
19627  fi
19628
19629fi
19630
19631  aix_libpath=$lt_cv_aix_libpath_
19632fi
19633
19634	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
19635	  # Warning - without using the other run time loading flags,
19636	  # -berok will link without error, but may produce a broken library.
19637	  no_undefined_flag=' $wl-bernotok'
19638	  allow_undefined_flag=' $wl-berok'
19639	  if test yes = "$with_gnu_ld"; then
19640	    # We only use this code for GNU lds that support --whole-archive.
19641	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
19642	  else
19643	    # Exported symbols can be pulled into shared objects from archives
19644	    whole_archive_flag_spec='$convenience'
19645	  fi
19646	  archive_cmds_need_lc=yes
19647	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
19648	  # -brtl affects multiple linker settings, -berok does not and is overridden later
19649	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
19650	  if test svr4 != "$with_aix_soname"; then
19651	    # This is similar to how AIX traditionally builds its shared libraries.
19652	    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'
19653	  fi
19654	  if test aix != "$with_aix_soname"; then
19655	    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'
19656	  else
19657	    # used by -dlpreopen to get the symbols
19658	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
19659	  fi
19660	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
19661	fi
19662      fi
19663      ;;
19664
19665    amigaos*)
19666      case $host_cpu in
19667      powerpc)
19668            # see comment about AmigaOS4 .so support
19669            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
19670            archive_expsym_cmds=''
19671        ;;
19672      m68k)
19673            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)'
19674            hardcode_libdir_flag_spec='-L$libdir'
19675            hardcode_minus_L=yes
19676        ;;
19677      esac
19678      ;;
19679
19680    bsdi[45]*)
19681      export_dynamic_flag_spec=-rdynamic
19682      ;;
19683
19684    cygwin* | mingw* | pw32* | cegcc*)
19685      # When not using gcc, we currently assume that we are using
19686      # Microsoft Visual C++ or Intel C++ Compiler.
19687      # hardcode_libdir_flag_spec is actually meaningless, as there is
19688      # no search path for DLLs.
19689      case $cc_basename in
19690      cl* | icl*)
19691	# Native MSVC or ICC
19692	hardcode_libdir_flag_spec=' '
19693	allow_undefined_flag=unsupported
19694	always_export_symbols=yes
19695	file_list_spec='@'
19696	# Tell ltmain to make .lib files, not .a files.
19697	libext=lib
19698	# Tell ltmain to make .dll files, not .so files.
19699	shrext_cmds=.dll
19700	# FIXME: Setting linknames here is a bad hack.
19701	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
19702	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
19703            cp "$export_symbols" "$output_objdir/$soname.def";
19704            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
19705          else
19706            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
19707          fi~
19708          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
19709          linknames='
19710	# The linker will not automatically build a static lib if we build a DLL.
19711	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
19712	enable_shared_with_static_runtimes=yes
19713	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
19714	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
19715	# Don't use ranlib
19716	old_postinstall_cmds='chmod 644 $oldlib'
19717	postlink_cmds='lt_outputfile="@OUTPUT@"~
19718          lt_tool_outputfile="@TOOL_OUTPUT@"~
19719          case $lt_outputfile in
19720            *.exe|*.EXE) ;;
19721            *)
19722              lt_outputfile=$lt_outputfile.exe
19723              lt_tool_outputfile=$lt_tool_outputfile.exe
19724              ;;
19725          esac~
19726          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
19727            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
19728            $RM "$lt_outputfile.manifest";
19729          fi'
19730	;;
19731      *)
19732	# Assume MSVC and ICC wrapper
19733	hardcode_libdir_flag_spec=' '
19734	allow_undefined_flag=unsupported
19735	# Tell ltmain to make .lib files, not .a files.
19736	libext=lib
19737	# Tell ltmain to make .dll files, not .so files.
19738	shrext_cmds=.dll
19739	# FIXME: Setting linknames here is a bad hack.
19740	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
19741	# The linker will automatically build a .lib file if we build a DLL.
19742	old_archive_from_new_cmds='true'
19743	# FIXME: Should let the user specify the lib program.
19744	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
19745	enable_shared_with_static_runtimes=yes
19746	;;
19747      esac
19748      ;;
19749
19750    darwin* | rhapsody*)
19751
19752
19753  archive_cmds_need_lc=no
19754  hardcode_direct=no
19755  hardcode_automatic=yes
19756  hardcode_shlibpath_var=unsupported
19757  if test yes = "$lt_cv_ld_force_load"; then
19758    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\"`'
19759
19760  else
19761    whole_archive_flag_spec=''
19762  fi
19763  link_all_deplibs=yes
19764  allow_undefined_flag=$_lt_dar_allow_undefined
19765  case $cc_basename in
19766     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
19767     *) _lt_dar_can_shared=$GCC ;;
19768  esac
19769  if test yes = "$_lt_dar_can_shared"; then
19770    output_verbose_link_cmd=func_echo_all
19771    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
19772    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
19773    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"
19774    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"
19775
19776  else
19777  ld_shlibs=no
19778  fi
19779
19780      ;;
19781
19782    dgux*)
19783      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19784      hardcode_libdir_flag_spec='-L$libdir'
19785      hardcode_shlibpath_var=no
19786      ;;
19787
19788    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19789    # support.  Future versions do this automatically, but an explicit c++rt0.o
19790    # does not break anything, and helps significantly (at the cost of a little
19791    # extra space).
19792    freebsd2.2*)
19793      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19794      hardcode_libdir_flag_spec='-R$libdir'
19795      hardcode_direct=yes
19796      hardcode_shlibpath_var=no
19797      ;;
19798
19799    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19800    freebsd2.*)
19801      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19802      hardcode_direct=yes
19803      hardcode_minus_L=yes
19804      hardcode_shlibpath_var=no
19805      ;;
19806
19807    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19808    freebsd* | dragonfly* | midnightbsd*)
19809      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19810      hardcode_libdir_flag_spec='-R$libdir'
19811      hardcode_direct=yes
19812      hardcode_shlibpath_var=no
19813      ;;
19814
19815    hpux9*)
19816      if test yes = "$GCC"; then
19817	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'
19818      else
19819	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'
19820      fi
19821      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
19822      hardcode_libdir_separator=:
19823      hardcode_direct=yes
19824
19825      # hardcode_minus_L: Not really in the search PATH,
19826      # but as the default location of the library.
19827      hardcode_minus_L=yes
19828      export_dynamic_flag_spec='$wl-E'
19829      ;;
19830
19831    hpux10*)
19832      if test yes,no = "$GCC,$with_gnu_ld"; then
19833	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19834      else
19835	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19836      fi
19837      if test no = "$with_gnu_ld"; then
19838	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
19839	hardcode_libdir_separator=:
19840	hardcode_direct=yes
19841	hardcode_direct_absolute=yes
19842	export_dynamic_flag_spec='$wl-E'
19843	# hardcode_minus_L: Not really in the search PATH,
19844	# but as the default location of the library.
19845	hardcode_minus_L=yes
19846      fi
19847      ;;
19848
19849    hpux11*)
19850      if test yes,no = "$GCC,$with_gnu_ld"; then
19851	case $host_cpu in
19852	hppa*64*)
19853	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
19854	  ;;
19855	ia64*)
19856	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19857	  ;;
19858	*)
19859	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19860	  ;;
19861	esac
19862      else
19863	case $host_cpu in
19864	hppa*64*)
19865	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
19866	  ;;
19867	ia64*)
19868	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19869	  ;;
19870	*)
19871
19872	  # Older versions of the 11.00 compiler do not understand -b yet
19873	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
19874	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
19875printf %s "checking if $CC understands -b... " >&6; }
19876if test ${lt_cv_prog_compiler__b+y}
19877then :
19878  printf %s "(cached) " >&6
19879else $as_nop
19880  lt_cv_prog_compiler__b=no
19881   save_LDFLAGS=$LDFLAGS
19882   LDFLAGS="$LDFLAGS -b"
19883   echo "$lt_simple_link_test_code" > conftest.$ac_ext
19884   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19885     # The linker can only warn and ignore the option if not recognized
19886     # So say no if there are warnings
19887     if test -s conftest.err; then
19888       # Append any errors to the config.log.
19889       cat conftest.err 1>&5
19890       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
19891       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19892       if diff conftest.exp conftest.er2 >/dev/null; then
19893         lt_cv_prog_compiler__b=yes
19894       fi
19895     else
19896       lt_cv_prog_compiler__b=yes
19897     fi
19898   fi
19899   $RM -r conftest*
19900   LDFLAGS=$save_LDFLAGS
19901
19902fi
19903{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
19904printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
19905
19906if test yes = "$lt_cv_prog_compiler__b"; then
19907    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19908else
19909    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19910fi
19911
19912	  ;;
19913	esac
19914      fi
19915      if test no = "$with_gnu_ld"; then
19916	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
19917	hardcode_libdir_separator=:
19918
19919	case $host_cpu in
19920	hppa*64*|ia64*)
19921	  hardcode_direct=no
19922	  hardcode_shlibpath_var=no
19923	  ;;
19924	*)
19925	  hardcode_direct=yes
19926	  hardcode_direct_absolute=yes
19927	  export_dynamic_flag_spec='$wl-E'
19928
19929	  # hardcode_minus_L: Not really in the search PATH,
19930	  # but as the default location of the library.
19931	  hardcode_minus_L=yes
19932	  ;;
19933	esac
19934      fi
19935      ;;
19936
19937    irix5* | irix6* | nonstopux*)
19938      if test yes = "$GCC"; then
19939	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'
19940	# Try to use the -exported_symbol ld option, if it does not
19941	# work, assume that -exports_file does not work either and
19942	# implicitly export all symbols.
19943	# This should be the same for all languages, so no per-tag cache variable.
19944	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
19945printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
19946if test ${lt_cv_irix_exported_symbol+y}
19947then :
19948  printf %s "(cached) " >&6
19949else $as_nop
19950  save_LDFLAGS=$LDFLAGS
19951	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
19952	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19953/* end confdefs.h.  */
19954int foo (void) { return 0; }
19955_ACEOF
19956if ac_fn_c_try_link "$LINENO"
19957then :
19958  lt_cv_irix_exported_symbol=yes
19959else $as_nop
19960  lt_cv_irix_exported_symbol=no
19961fi
19962rm -f core conftest.err conftest.$ac_objext conftest.beam \
19963    conftest$ac_exeext conftest.$ac_ext
19964           LDFLAGS=$save_LDFLAGS
19965fi
19966{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
19967printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
19968	if test yes = "$lt_cv_irix_exported_symbol"; then
19969          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'
19970	fi
19971      else
19972	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'
19973	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'
19974      fi
19975      archive_cmds_need_lc='no'
19976      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
19977      hardcode_libdir_separator=:
19978      inherit_rpath=yes
19979      link_all_deplibs=yes
19980      ;;
19981
19982    linux*)
19983      case $cc_basename in
19984      tcc*)
19985	# Fabrice Bellard et al's Tiny C Compiler
19986	ld_shlibs=yes
19987	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19988	;;
19989      esac
19990      ;;
19991
19992    netbsd*)
19993      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19994	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
19995      else
19996	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
19997      fi
19998      hardcode_libdir_flag_spec='-R$libdir'
19999      hardcode_direct=yes
20000      hardcode_shlibpath_var=no
20001      ;;
20002
20003    newsos6)
20004      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20005      hardcode_direct=yes
20006      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
20007      hardcode_libdir_separator=:
20008      hardcode_shlibpath_var=no
20009      ;;
20010
20011    *nto* | *qnx*)
20012      ;;
20013
20014    openbsd* | bitrig*)
20015      if test -f /usr/libexec/ld.so; then
20016	hardcode_direct=yes
20017	hardcode_shlibpath_var=no
20018	hardcode_direct_absolute=yes
20019	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
20020	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
20021	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
20022	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
20023	  export_dynamic_flag_spec='$wl-E'
20024	else
20025	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
20026	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
20027	fi
20028      else
20029	ld_shlibs=no
20030      fi
20031      ;;
20032
20033    os2*)
20034      hardcode_libdir_flag_spec='-L$libdir'
20035      hardcode_minus_L=yes
20036      allow_undefined_flag=unsupported
20037      shrext_cmds=.dll
20038      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
20039	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
20040	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
20041	$ECHO EXPORTS >> $output_objdir/$libname.def~
20042	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
20043	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
20044	emximp -o $lib $output_objdir/$libname.def'
20045      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
20046	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
20047	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
20048	$ECHO EXPORTS >> $output_objdir/$libname.def~
20049	prefix_cmds="$SED"~
20050	if test EXPORTS = "`$SED 1q $export_symbols`"; then
20051	  prefix_cmds="$prefix_cmds -e 1d";
20052	fi~
20053	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
20054	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
20055	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
20056	emximp -o $lib $output_objdir/$libname.def'
20057      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
20058      enable_shared_with_static_runtimes=yes
20059      file_list_spec='@'
20060      ;;
20061
20062    osf3*)
20063      if test yes = "$GCC"; then
20064	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
20065	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'
20066      else
20067	allow_undefined_flag=' -expect_unresolved \*'
20068	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'
20069      fi
20070      archive_cmds_need_lc='no'
20071      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
20072      hardcode_libdir_separator=:
20073      ;;
20074
20075    osf4* | osf5*)	# as osf3* with the addition of -msym flag
20076      if test yes = "$GCC"; then
20077	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
20078	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'
20079	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
20080      else
20081	allow_undefined_flag=' -expect_unresolved \*'
20082	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'
20083	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~
20084          $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'
20085
20086	# Both c and cxx compiler support -rpath directly
20087	hardcode_libdir_flag_spec='-rpath $libdir'
20088      fi
20089      archive_cmds_need_lc='no'
20090      hardcode_libdir_separator=:
20091      ;;
20092
20093    solaris*)
20094      no_undefined_flag=' -z defs'
20095      if test yes = "$GCC"; then
20096	wlarc='$wl'
20097	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
20098	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20099          $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'
20100      else
20101	case `$CC -V 2>&1` in
20102	*"Compilers 5.0"*)
20103	  wlarc=''
20104	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
20105	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20106            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
20107	  ;;
20108	*)
20109	  wlarc='$wl'
20110	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
20111	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20112            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
20113	  ;;
20114	esac
20115      fi
20116      hardcode_libdir_flag_spec='-R$libdir'
20117      hardcode_shlibpath_var=no
20118      case $host_os in
20119      solaris2.[0-5] | solaris2.[0-5].*) ;;
20120      *)
20121	# The compiler driver will combine and reorder linker options,
20122	# but understands '-z linker_flag'.  GCC discards it without '$wl',
20123	# but is careful enough not to reorder.
20124	# Supported since Solaris 2.6 (maybe 2.5.1?)
20125	if test yes = "$GCC"; then
20126	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
20127	else
20128	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
20129	fi
20130	;;
20131      esac
20132      link_all_deplibs=yes
20133      ;;
20134
20135    sunos4*)
20136      if test sequent = "$host_vendor"; then
20137	# Use $CC to link under sequent, because it throws in some extra .o
20138	# files that make .init and .fini sections work.
20139	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
20140      else
20141	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
20142      fi
20143      hardcode_libdir_flag_spec='-L$libdir'
20144      hardcode_direct=yes
20145      hardcode_minus_L=yes
20146      hardcode_shlibpath_var=no
20147      ;;
20148
20149    sysv4)
20150      case $host_vendor in
20151	sni)
20152	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20153	  hardcode_direct=yes # is this really true???
20154	;;
20155	siemens)
20156	  ## LD is ld it makes a PLAMLIB
20157	  ## CC just makes a GrossModule.
20158	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20159	  reload_cmds='$CC -r -o $output$reload_objs'
20160	  hardcode_direct=no
20161        ;;
20162	motorola)
20163	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20164	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
20165	;;
20166      esac
20167      runpath_var='LD_RUN_PATH'
20168      hardcode_shlibpath_var=no
20169      ;;
20170
20171    sysv4.3*)
20172      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20173      hardcode_shlibpath_var=no
20174      export_dynamic_flag_spec='-Bexport'
20175      ;;
20176
20177    sysv4*MP*)
20178      if test -d /usr/nec; then
20179	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20180	hardcode_shlibpath_var=no
20181	runpath_var=LD_RUN_PATH
20182	hardcode_runpath_var=yes
20183	ld_shlibs=yes
20184      fi
20185      ;;
20186
20187    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
20188      no_undefined_flag='$wl-z,text'
20189      archive_cmds_need_lc=no
20190      hardcode_shlibpath_var=no
20191      runpath_var='LD_RUN_PATH'
20192
20193      if test yes = "$GCC"; then
20194	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20195	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20196      else
20197	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20198	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20199      fi
20200      ;;
20201
20202    sysv5* | sco3.2v5* | sco5v6*)
20203      # Note: We CANNOT use -z defs as we might desire, because we do not
20204      # link with -lc, and that would cause any symbols used from libc to
20205      # always be unresolved, which means just about no library would
20206      # ever link correctly.  If we're not using GNU ld we use -z text
20207      # though, which does catch some bad symbols but isn't as heavy-handed
20208      # as -z defs.
20209      no_undefined_flag='$wl-z,text'
20210      allow_undefined_flag='$wl-z,nodefs'
20211      archive_cmds_need_lc=no
20212      hardcode_shlibpath_var=no
20213      hardcode_libdir_flag_spec='$wl-R,$libdir'
20214      hardcode_libdir_separator=':'
20215      link_all_deplibs=yes
20216      export_dynamic_flag_spec='$wl-Bexport'
20217      runpath_var='LD_RUN_PATH'
20218
20219      if test yes = "$GCC"; then
20220	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20221	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20222      else
20223	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20224	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20225      fi
20226      ;;
20227
20228    uts4*)
20229      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20230      hardcode_libdir_flag_spec='-L$libdir'
20231      hardcode_shlibpath_var=no
20232      ;;
20233
20234    *)
20235      ld_shlibs=no
20236      ;;
20237    esac
20238
20239    if test sni = "$host_vendor"; then
20240      case $host in
20241      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20242	export_dynamic_flag_spec='$wl-Blargedynsym'
20243	;;
20244      esac
20245    fi
20246  fi
20247
20248{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
20249printf "%s\n" "$ld_shlibs" >&6; }
20250test no = "$ld_shlibs" && can_build_shared=no
20251
20252with_gnu_ld=$with_gnu_ld
20253
20254
20255
20256
20257
20258
20259
20260
20261
20262
20263
20264
20265
20266
20267
20268#
20269# Do we need to explicitly link libc?
20270#
20271case "x$archive_cmds_need_lc" in
20272x|xyes)
20273  # Assume -lc should be added
20274  archive_cmds_need_lc=yes
20275
20276  if test yes,yes = "$GCC,$enable_shared"; then
20277    case $archive_cmds in
20278    *'~'*)
20279      # FIXME: we may have to deal with multi-command sequences.
20280      ;;
20281    '$CC '*)
20282      # Test whether the compiler implicitly links with -lc since on some
20283      # systems, -lgcc has to come before -lc. If gcc already passes -lc
20284      # to ld, don't add -lc before -lgcc.
20285      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20286printf %s "checking whether -lc should be explicitly linked in... " >&6; }
20287if test ${lt_cv_archive_cmds_need_lc+y}
20288then :
20289  printf %s "(cached) " >&6
20290else $as_nop
20291  $RM conftest*
20292	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20293
20294	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20295  (eval $ac_compile) 2>&5
20296  ac_status=$?
20297  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20298  test $ac_status = 0; } 2>conftest.err; then
20299	  soname=conftest
20300	  lib=conftest
20301	  libobjs=conftest.$ac_objext
20302	  deplibs=
20303	  wl=$lt_prog_compiler_wl
20304	  pic_flag=$lt_prog_compiler_pic
20305	  compiler_flags=-v
20306	  linker_flags=-v
20307	  verstring=
20308	  output_objdir=.
20309	  libname=conftest
20310	  lt_save_allow_undefined_flag=$allow_undefined_flag
20311	  allow_undefined_flag=
20312	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20313  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20314  ac_status=$?
20315  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20316  test $ac_status = 0; }
20317	  then
20318	    lt_cv_archive_cmds_need_lc=no
20319	  else
20320	    lt_cv_archive_cmds_need_lc=yes
20321	  fi
20322	  allow_undefined_flag=$lt_save_allow_undefined_flag
20323	else
20324	  cat conftest.err 1>&5
20325	fi
20326	$RM conftest*
20327
20328fi
20329{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
20330printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
20331      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
20332      ;;
20333    esac
20334  fi
20335  ;;
20336esac
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
20481
20482
20483
20484
20485
20486
20487
20488
20489  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20490printf %s "checking dynamic linker characteristics... " >&6; }
20491
20492if test yes = "$GCC"; then
20493  case $host_os in
20494    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
20495    *) lt_awk_arg='/^libraries:/' ;;
20496  esac
20497  case $host_os in
20498    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
20499    *) lt_sed_strip_eq='s|=/|/|g' ;;
20500  esac
20501  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
20502  case $lt_search_path_spec in
20503  *\;*)
20504    # if the path contains ";" then we assume it to be the separator
20505    # otherwise default to the standard path separator (i.e. ":") - it is
20506    # assumed that no part of a normal pathname contains ";" but that should
20507    # okay in the real world where ";" in dirpaths is itself problematic.
20508    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
20509    ;;
20510  *)
20511    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
20512    ;;
20513  esac
20514  # Ok, now we have the path, separated by spaces, we can step through it
20515  # and add multilib dir if necessary...
20516  lt_tmp_lt_search_path_spec=
20517  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
20518  # ...but if some path component already ends with the multilib dir we assume
20519  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
20520  case "$lt_multi_os_dir; $lt_search_path_spec " in
20521  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
20522    lt_multi_os_dir=
20523    ;;
20524  esac
20525  for lt_sys_path in $lt_search_path_spec; do
20526    if test -d "$lt_sys_path$lt_multi_os_dir"; then
20527      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
20528    elif test -n "$lt_multi_os_dir"; then
20529      test -d "$lt_sys_path" && \
20530	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
20531    fi
20532  done
20533  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
20534BEGIN {RS = " "; FS = "/|\n";} {
20535  lt_foo = "";
20536  lt_count = 0;
20537  for (lt_i = NF; lt_i > 0; lt_i--) {
20538    if ($lt_i != "" && $lt_i != ".") {
20539      if ($lt_i == "..") {
20540        lt_count++;
20541      } else {
20542        if (lt_count == 0) {
20543          lt_foo = "/" $lt_i lt_foo;
20544        } else {
20545          lt_count--;
20546        }
20547      }
20548    }
20549  }
20550  if (lt_foo != "") { lt_freq[lt_foo]++; }
20551  if (lt_freq[lt_foo] == 1) { print lt_foo; }
20552}'`
20553  # AWK program above erroneously prepends '/' to C:/dos/paths
20554  # for these hosts.
20555  case $host_os in
20556    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
20557      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
20558  esac
20559  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
20560else
20561  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20562fi
20563library_names_spec=
20564libname_spec='lib$name'
20565soname_spec=
20566shrext_cmds=.so
20567postinstall_cmds=
20568postuninstall_cmds=
20569finish_cmds=
20570finish_eval=
20571shlibpath_var=
20572shlibpath_overrides_runpath=unknown
20573version_type=none
20574dynamic_linker="$host_os ld.so"
20575sys_lib_dlsearch_path_spec="/lib /usr/lib"
20576need_lib_prefix=unknown
20577hardcode_into_libs=no
20578
20579# when you set need_version to no, make sure it does not cause -set_version
20580# flags to be left without arguments
20581need_version=unknown
20582
20583
20584
20585case $host_os in
20586aix3*)
20587  version_type=linux # correct to gnu/linux during the next big refactor
20588  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
20589  shlibpath_var=LIBPATH
20590
20591  # AIX 3 has no versioning support, so we append a major version to the name.
20592  soname_spec='$libname$release$shared_ext$major'
20593  ;;
20594
20595aix[4-9]*)
20596  version_type=linux # correct to gnu/linux during the next big refactor
20597  need_lib_prefix=no
20598  need_version=no
20599  hardcode_into_libs=yes
20600  if test ia64 = "$host_cpu"; then
20601    # AIX 5 supports IA64
20602    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
20603    shlibpath_var=LD_LIBRARY_PATH
20604  else
20605    # With GCC up to 2.95.x, collect2 would create an import file
20606    # for dependence libraries.  The import file would start with
20607    # the line '#! .'.  This would cause the generated library to
20608    # depend on '.', always an invalid library.  This was fixed in
20609    # development snapshots of GCC prior to 3.0.
20610    case $host_os in
20611      aix4 | aix4.[01] | aix4.[01].*)
20612      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20613	   echo ' yes '
20614	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
20615	:
20616      else
20617	can_build_shared=no
20618      fi
20619      ;;
20620    esac
20621    # Using Import Files as archive members, it is possible to support
20622    # filename-based versioning of shared library archives on AIX. While
20623    # this would work for both with and without runtime linking, it will
20624    # prevent static linking of such archives. So we do filename-based
20625    # shared library versioning with .so extension only, which is used
20626    # when both runtime linking and shared linking is enabled.
20627    # Unfortunately, runtime linking may impact performance, so we do
20628    # not want this to be the default eventually. Also, we use the
20629    # versioned .so libs for executables only if there is the -brtl
20630    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
20631    # To allow for filename-based versioning support, we need to create
20632    # libNAME.so.V as an archive file, containing:
20633    # *) an Import File, referring to the versioned filename of the
20634    #    archive as well as the shared archive member, telling the
20635    #    bitwidth (32 or 64) of that shared object, and providing the
20636    #    list of exported symbols of that shared object, eventually
20637    #    decorated with the 'weak' keyword
20638    # *) the shared object with the F_LOADONLY flag set, to really avoid
20639    #    it being seen by the linker.
20640    # At run time we better use the real file rather than another symlink,
20641    # but for link time we create the symlink libNAME.so -> libNAME.so.V
20642
20643    case $with_aix_soname,$aix_use_runtimelinking in
20644    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
20645    # soname into executable. Probably we can add versioning support to
20646    # collect2, so additional links can be useful in future.
20647    aix,yes) # traditional libtool
20648      dynamic_linker='AIX unversionable lib.so'
20649      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20650      # instead of lib<name>.a to let people know that these are not
20651      # typical AIX shared libraries.
20652      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20653      ;;
20654    aix,no) # traditional AIX only
20655      dynamic_linker='AIX lib.a(lib.so.V)'
20656      # We preserve .a as extension for shared libraries through AIX4.2
20657      # and later when we are not doing run time linking.
20658      library_names_spec='$libname$release.a $libname.a'
20659      soname_spec='$libname$release$shared_ext$major'
20660      ;;
20661    svr4,*) # full svr4 only
20662      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
20663      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
20664      # We do not specify a path in Import Files, so LIBPATH fires.
20665      shlibpath_overrides_runpath=yes
20666      ;;
20667    *,yes) # both, prefer svr4
20668      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
20669      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
20670      # unpreferred sharedlib libNAME.a needs extra handling
20671      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"'
20672      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"'
20673      # We do not specify a path in Import Files, so LIBPATH fires.
20674      shlibpath_overrides_runpath=yes
20675      ;;
20676    *,no) # both, prefer aix
20677      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
20678      library_names_spec='$libname$release.a $libname.a'
20679      soname_spec='$libname$release$shared_ext$major'
20680      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
20681      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)'
20682      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"'
20683      ;;
20684    esac
20685    shlibpath_var=LIBPATH
20686  fi
20687  ;;
20688
20689amigaos*)
20690  case $host_cpu in
20691  powerpc)
20692    # Since July 2007 AmigaOS4 officially supports .so libraries.
20693    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20694    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20695    ;;
20696  m68k)
20697    library_names_spec='$libname.ixlibrary $libname.a'
20698    # Create ${libname}_ixlibrary.a entries in /sys/libs.
20699    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'
20700    ;;
20701  esac
20702  ;;
20703
20704beos*)
20705  library_names_spec='$libname$shared_ext'
20706  dynamic_linker="$host_os ld.so"
20707  shlibpath_var=LIBRARY_PATH
20708  ;;
20709
20710bsdi[45]*)
20711  version_type=linux # correct to gnu/linux during the next big refactor
20712  need_version=no
20713  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20714  soname_spec='$libname$release$shared_ext$major'
20715  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20716  shlibpath_var=LD_LIBRARY_PATH
20717  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20718  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20719  # the default ld.so.conf also contains /usr/contrib/lib and
20720  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20721  # libtool to hard-code these into programs
20722  ;;
20723
20724cygwin* | mingw* | pw32* | cegcc*)
20725  version_type=windows
20726  shrext_cmds=.dll
20727  need_version=no
20728  need_lib_prefix=no
20729
20730  case $GCC,$cc_basename in
20731  yes,*)
20732    # gcc
20733    library_names_spec='$libname.dll.a'
20734    # DLL is installed to $(libdir)/../bin by postinstall_cmds
20735    postinstall_cmds='base_file=`basename \$file`~
20736      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
20737      dldir=$destdir/`dirname \$dlpath`~
20738      test -d \$dldir || mkdir -p \$dldir~
20739      $install_prog $dir/$dlname \$dldir/$dlname~
20740      chmod a+x \$dldir/$dlname~
20741      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20742        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20743      fi'
20744    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20745      dlpath=$dir/\$dldll~
20746       $RM \$dlpath'
20747    shlibpath_overrides_runpath=yes
20748
20749    case $host_os in
20750    cygwin*)
20751      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20752      soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
20753
20754      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
20755      ;;
20756    mingw* | cegcc*)
20757      # MinGW DLLs use traditional 'lib' prefix
20758      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
20759      ;;
20760    pw32*)
20761      # pw32 DLLs use 'pw' prefix rather than 'lib'
20762      library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
20763      ;;
20764    esac
20765    dynamic_linker='Win32 ld.exe'
20766    ;;
20767
20768  *,cl* | *,icl*)
20769    # Native MSVC or ICC
20770    libname_spec='$name'
20771    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
20772    library_names_spec='$libname.dll.lib'
20773
20774    case $build_os in
20775    mingw*)
20776      sys_lib_search_path_spec=
20777      lt_save_ifs=$IFS
20778      IFS=';'
20779      for lt_path in $LIB
20780      do
20781        IFS=$lt_save_ifs
20782        # Let DOS variable expansion print the short 8.3 style file name.
20783        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
20784        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
20785      done
20786      IFS=$lt_save_ifs
20787      # Convert to MSYS style.
20788      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
20789      ;;
20790    cygwin*)
20791      # Convert to unix form, then to dos form, then back to unix form
20792      # but this time dos style (no spaces!) so that the unix form looks
20793      # like /cygdrive/c/PROGRA~1:/cygdr...
20794      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
20795      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
20796      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20797      ;;
20798    *)
20799      sys_lib_search_path_spec=$LIB
20800      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
20801        # It is most probably a Windows format PATH.
20802        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20803      else
20804        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20805      fi
20806      # FIXME: find the short name or the path components, as spaces are
20807      # common. (e.g. "Program Files" -> "PROGRA~1")
20808      ;;
20809    esac
20810
20811    # DLL is installed to $(libdir)/../bin by postinstall_cmds
20812    postinstall_cmds='base_file=`basename \$file`~
20813      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
20814      dldir=$destdir/`dirname \$dlpath`~
20815      test -d \$dldir || mkdir -p \$dldir~
20816      $install_prog $dir/$dlname \$dldir/$dlname'
20817    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20818      dlpath=$dir/\$dldll~
20819       $RM \$dlpath'
20820    shlibpath_overrides_runpath=yes
20821    dynamic_linker='Win32 link.exe'
20822    ;;
20823
20824  *)
20825    # Assume MSVC and ICC wrapper
20826    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
20827    dynamic_linker='Win32 ld.exe'
20828    ;;
20829  esac
20830  # FIXME: first we should search . and the directory the executable is in
20831  shlibpath_var=PATH
20832  ;;
20833
20834darwin* | rhapsody*)
20835  dynamic_linker="$host_os dyld"
20836  version_type=darwin
20837  need_lib_prefix=no
20838  need_version=no
20839  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
20840  soname_spec='$libname$release$major$shared_ext'
20841  shlibpath_overrides_runpath=yes
20842  shlibpath_var=DYLD_LIBRARY_PATH
20843  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20844
20845  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
20846  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20847  ;;
20848
20849dgux*)
20850  version_type=linux # correct to gnu/linux during the next big refactor
20851  need_lib_prefix=no
20852  need_version=no
20853  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20854  soname_spec='$libname$release$shared_ext$major'
20855  shlibpath_var=LD_LIBRARY_PATH
20856  ;;
20857
20858freebsd* | dragonfly* | midnightbsd*)
20859  # DragonFly does not have aout.  When/if they implement a new
20860  # versioning mechanism, adjust this.
20861  if test -x /usr/bin/objformat; then
20862    objformat=`/usr/bin/objformat`
20863  else
20864    case $host_os in
20865    freebsd[23].*) objformat=aout ;;
20866    *) objformat=elf ;;
20867    esac
20868  fi
20869  version_type=freebsd-$objformat
20870  case $version_type in
20871    freebsd-elf*)
20872      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20873      soname_spec='$libname$release$shared_ext$major'
20874      need_version=no
20875      need_lib_prefix=no
20876      ;;
20877    freebsd-*)
20878      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
20879      need_version=yes
20880      ;;
20881  esac
20882  shlibpath_var=LD_LIBRARY_PATH
20883  case $host_os in
20884  freebsd2.*)
20885    shlibpath_overrides_runpath=yes
20886    ;;
20887  freebsd3.[01]* | freebsdelf3.[01]*)
20888    shlibpath_overrides_runpath=yes
20889    hardcode_into_libs=yes
20890    ;;
20891  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20892  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20893    shlibpath_overrides_runpath=no
20894    hardcode_into_libs=yes
20895    ;;
20896  *) # from 4.6 on, and DragonFly
20897    shlibpath_overrides_runpath=yes
20898    hardcode_into_libs=yes
20899    ;;
20900  esac
20901  ;;
20902
20903haiku*)
20904  version_type=linux # correct to gnu/linux during the next big refactor
20905  need_lib_prefix=no
20906  need_version=no
20907  dynamic_linker="$host_os runtime_loader"
20908  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20909  soname_spec='$libname$release$shared_ext$major'
20910  shlibpath_var=LIBRARY_PATH
20911  shlibpath_overrides_runpath=no
20912  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
20913  hardcode_into_libs=yes
20914  ;;
20915
20916hpux9* | hpux10* | hpux11*)
20917  # Give a soname corresponding to the major version so that dld.sl refuses to
20918  # link against other versions.
20919  version_type=sunos
20920  need_lib_prefix=no
20921  need_version=no
20922  case $host_cpu in
20923  ia64*)
20924    shrext_cmds='.so'
20925    hardcode_into_libs=yes
20926    dynamic_linker="$host_os dld.so"
20927    shlibpath_var=LD_LIBRARY_PATH
20928    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20929    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20930    soname_spec='$libname$release$shared_ext$major'
20931    if test 32 = "$HPUX_IA64_MODE"; then
20932      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20933      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
20934    else
20935      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20936      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
20937    fi
20938    ;;
20939  hppa*64*)
20940    shrext_cmds='.sl'
20941    hardcode_into_libs=yes
20942    dynamic_linker="$host_os dld.sl"
20943    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20944    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20945    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20946    soname_spec='$libname$release$shared_ext$major'
20947    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20948    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20949    ;;
20950  *)
20951    shrext_cmds='.sl'
20952    dynamic_linker="$host_os dld.sl"
20953    shlibpath_var=SHLIB_PATH
20954    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20955    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20956    soname_spec='$libname$release$shared_ext$major'
20957    ;;
20958  esac
20959  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20960  postinstall_cmds='chmod 555 $lib'
20961  # or fails outright, so override atomically:
20962  install_override_mode=555
20963  ;;
20964
20965interix[3-9]*)
20966  version_type=linux # correct to gnu/linux during the next big refactor
20967  need_lib_prefix=no
20968  need_version=no
20969  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20970  soname_spec='$libname$release$shared_ext$major'
20971  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20972  shlibpath_var=LD_LIBRARY_PATH
20973  shlibpath_overrides_runpath=no
20974  hardcode_into_libs=yes
20975  ;;
20976
20977irix5* | irix6* | nonstopux*)
20978  case $host_os in
20979    nonstopux*) version_type=nonstopux ;;
20980    *)
20981	if test yes = "$lt_cv_prog_gnu_ld"; then
20982		version_type=linux # correct to gnu/linux during the next big refactor
20983	else
20984		version_type=irix
20985	fi ;;
20986  esac
20987  need_lib_prefix=no
20988  need_version=no
20989  soname_spec='$libname$release$shared_ext$major'
20990  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
20991  case $host_os in
20992  irix5* | nonstopux*)
20993    libsuff= shlibsuff=
20994    ;;
20995  *)
20996    case $LD in # libtool.m4 will add one of these switches to LD
20997    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20998      libsuff= shlibsuff= libmagic=32-bit;;
20999    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21000      libsuff=32 shlibsuff=N32 libmagic=N32;;
21001    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21002      libsuff=64 shlibsuff=64 libmagic=64-bit;;
21003    *) libsuff= shlibsuff= libmagic=never-match;;
21004    esac
21005    ;;
21006  esac
21007  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21008  shlibpath_overrides_runpath=no
21009  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
21010  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
21011  hardcode_into_libs=yes
21012  ;;
21013
21014# No shared lib support for Linux oldld, aout, or coff.
21015linux*oldld* | linux*aout* | linux*coff*)
21016  dynamic_linker=no
21017  ;;
21018
21019linux*android*)
21020  version_type=none # Android doesn't support versioned libraries.
21021  need_lib_prefix=no
21022  need_version=no
21023  library_names_spec='$libname$release$shared_ext'
21024  soname_spec='$libname$release$shared_ext'
21025  finish_cmds=
21026  shlibpath_var=LD_LIBRARY_PATH
21027  shlibpath_overrides_runpath=yes
21028
21029  # This implies no fast_install, which is unacceptable.
21030  # Some rework will be needed to allow for fast_install
21031  # before this can be enabled.
21032  hardcode_into_libs=yes
21033
21034  dynamic_linker='Android linker'
21035  # Don't embed -rpath directories since the linker doesn't support them.
21036  hardcode_libdir_flag_spec='-L$libdir'
21037  ;;
21038
21039# This must be glibc/ELF.
21040linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
21041  version_type=linux # correct to gnu/linux during the next big refactor
21042  need_lib_prefix=no
21043  need_version=no
21044  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21045  soname_spec='$libname$release$shared_ext$major'
21046  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21047  shlibpath_var=LD_LIBRARY_PATH
21048  shlibpath_overrides_runpath=no
21049
21050  # Some binutils ld are patched to set DT_RUNPATH
21051  if test ${lt_cv_shlibpath_overrides_runpath+y}
21052then :
21053  printf %s "(cached) " >&6
21054else $as_nop
21055  lt_cv_shlibpath_overrides_runpath=no
21056    save_LDFLAGS=$LDFLAGS
21057    save_libdir=$libdir
21058    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
21059	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
21060    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21061/* end confdefs.h.  */
21062
21063int
21064main (void)
21065{
21066
21067  ;
21068  return 0;
21069}
21070_ACEOF
21071if ac_fn_c_try_link "$LINENO"
21072then :
21073  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
21074then :
21075  lt_cv_shlibpath_overrides_runpath=yes
21076fi
21077fi
21078rm -f core conftest.err conftest.$ac_objext conftest.beam \
21079    conftest$ac_exeext conftest.$ac_ext
21080    LDFLAGS=$save_LDFLAGS
21081    libdir=$save_libdir
21082
21083fi
21084
21085  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
21086
21087  # This implies no fast_install, which is unacceptable.
21088  # Some rework will be needed to allow for fast_install
21089  # before this can be enabled.
21090  hardcode_into_libs=yes
21091
21092  # Add ABI-specific directories to the system library path.
21093  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
21094
21095  # Ideally, we could use ldconfig to report *all* directores which are
21096  # searched for libraries, however this is still not possible.  Aside from not
21097  # being certain /sbin/ldconfig is available, command
21098  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
21099  # even though it is searched at run-time.  Try to do the best guess by
21100  # appending ld.so.conf contents (and includes) to the search path.
21101  if test -f /etc/ld.so.conf; then
21102    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' ' '`
21103    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
21104  fi
21105
21106  # We used to test for /lib/ld.so.1 and disable shared libraries on
21107  # powerpc, because MkLinux only supported shared libraries with the
21108  # GNU dynamic linker.  Since this was broken with cross compilers,
21109  # most powerpc-linux boxes support dynamic linking these days and
21110  # people can always --disable-shared, the test was removed, and we
21111  # assume the GNU/Linux dynamic linker is in use.
21112  dynamic_linker='GNU/Linux ld.so'
21113  ;;
21114
21115netbsd*)
21116  version_type=sunos
21117  need_lib_prefix=no
21118  need_version=no
21119  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21120    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
21121    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21122    dynamic_linker='NetBSD (a.out) ld.so'
21123  else
21124    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21125    soname_spec='$libname$release$shared_ext$major'
21126    dynamic_linker='NetBSD ld.elf_so'
21127  fi
21128  shlibpath_var=LD_LIBRARY_PATH
21129  shlibpath_overrides_runpath=yes
21130  hardcode_into_libs=yes
21131  ;;
21132
21133newsos6)
21134  version_type=linux # correct to gnu/linux during the next big refactor
21135  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21136  shlibpath_var=LD_LIBRARY_PATH
21137  shlibpath_overrides_runpath=yes
21138  ;;
21139
21140*nto* | *qnx*)
21141  version_type=qnx
21142  need_lib_prefix=no
21143  need_version=no
21144  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21145  soname_spec='$libname$release$shared_ext$major'
21146  shlibpath_var=LD_LIBRARY_PATH
21147  shlibpath_overrides_runpath=no
21148  hardcode_into_libs=yes
21149  dynamic_linker='ldqnx.so'
21150  ;;
21151
21152openbsd* | bitrig*)
21153  version_type=sunos
21154  sys_lib_dlsearch_path_spec=/usr/lib
21155  need_lib_prefix=no
21156  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
21157    need_version=no
21158  else
21159    need_version=yes
21160  fi
21161  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
21162  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21163  shlibpath_var=LD_LIBRARY_PATH
21164  shlibpath_overrides_runpath=yes
21165  ;;
21166
21167os2*)
21168  libname_spec='$name'
21169  version_type=windows
21170  shrext_cmds=.dll
21171  need_version=no
21172  need_lib_prefix=no
21173  # OS/2 can only load a DLL with a base name of 8 characters or less.
21174  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
21175    v=$($ECHO $release$versuffix | tr -d .-);
21176    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
21177    $ECHO $n$v`$shared_ext'
21178  library_names_spec='${libname}_dll.$libext'
21179  dynamic_linker='OS/2 ld.exe'
21180  shlibpath_var=BEGINLIBPATH
21181  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
21182  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21183  postinstall_cmds='base_file=`basename \$file`~
21184    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
21185    dldir=$destdir/`dirname \$dlpath`~
21186    test -d \$dldir || mkdir -p \$dldir~
21187    $install_prog $dir/$dlname \$dldir/$dlname~
21188    chmod a+x \$dldir/$dlname~
21189    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21190      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21191    fi'
21192  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
21193    dlpath=$dir/\$dldll~
21194    $RM \$dlpath'
21195  ;;
21196
21197osf3* | osf4* | osf5*)
21198  version_type=osf
21199  need_lib_prefix=no
21200  need_version=no
21201  soname_spec='$libname$release$shared_ext$major'
21202  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21203  shlibpath_var=LD_LIBRARY_PATH
21204  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21205  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21206  ;;
21207
21208rdos*)
21209  dynamic_linker=no
21210  ;;
21211
21212solaris*)
21213  version_type=linux # correct to gnu/linux during the next big refactor
21214  need_lib_prefix=no
21215  need_version=no
21216  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21217  soname_spec='$libname$release$shared_ext$major'
21218  shlibpath_var=LD_LIBRARY_PATH
21219  shlibpath_overrides_runpath=yes
21220  hardcode_into_libs=yes
21221  # ldd complains unless libraries are executable
21222  postinstall_cmds='chmod +x $lib'
21223  ;;
21224
21225sunos4*)
21226  version_type=sunos
21227  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
21228  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21229  shlibpath_var=LD_LIBRARY_PATH
21230  shlibpath_overrides_runpath=yes
21231  if test yes = "$with_gnu_ld"; then
21232    need_lib_prefix=no
21233  fi
21234  need_version=yes
21235  ;;
21236
21237sysv4 | sysv4.3*)
21238  version_type=linux # correct to gnu/linux during the next big refactor
21239  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21240  soname_spec='$libname$release$shared_ext$major'
21241  shlibpath_var=LD_LIBRARY_PATH
21242  case $host_vendor in
21243    sni)
21244      shlibpath_overrides_runpath=no
21245      need_lib_prefix=no
21246      runpath_var=LD_RUN_PATH
21247      ;;
21248    siemens)
21249      need_lib_prefix=no
21250      ;;
21251    motorola)
21252      need_lib_prefix=no
21253      need_version=no
21254      shlibpath_overrides_runpath=no
21255      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21256      ;;
21257  esac
21258  ;;
21259
21260sysv4*MP*)
21261  if test -d /usr/nec; then
21262    version_type=linux # correct to gnu/linux during the next big refactor
21263    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
21264    soname_spec='$libname$shared_ext.$major'
21265    shlibpath_var=LD_LIBRARY_PATH
21266  fi
21267  ;;
21268
21269sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21270  version_type=sco
21271  need_lib_prefix=no
21272  need_version=no
21273  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
21274  soname_spec='$libname$release$shared_ext$major'
21275  shlibpath_var=LD_LIBRARY_PATH
21276  shlibpath_overrides_runpath=yes
21277  hardcode_into_libs=yes
21278  if test yes = "$with_gnu_ld"; then
21279    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21280  else
21281    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21282    case $host_os in
21283      sco3.2v5*)
21284        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21285	;;
21286    esac
21287  fi
21288  sys_lib_dlsearch_path_spec='/usr/lib'
21289  ;;
21290
21291tpf*)
21292  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
21293  version_type=linux # correct to gnu/linux during the next big refactor
21294  need_lib_prefix=no
21295  need_version=no
21296  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21297  shlibpath_var=LD_LIBRARY_PATH
21298  shlibpath_overrides_runpath=no
21299  hardcode_into_libs=yes
21300  ;;
21301
21302uts4*)
21303  version_type=linux # correct to gnu/linux during the next big refactor
21304  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21305  soname_spec='$libname$release$shared_ext$major'
21306  shlibpath_var=LD_LIBRARY_PATH
21307  ;;
21308
21309*)
21310  dynamic_linker=no
21311  ;;
21312esac
21313{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21314printf "%s\n" "$dynamic_linker" >&6; }
21315test no = "$dynamic_linker" && can_build_shared=no
21316
21317variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21318if test yes = "$GCC"; then
21319  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21320fi
21321
21322if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
21323  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
21324fi
21325
21326if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
21327  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
21328fi
21329
21330# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
21331configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
21332
21333# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
21334func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
21335
21336# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
21337configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
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
21427
21428
21429
21430
21431
21432
21433
21434
21435  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21436printf %s "checking how to hardcode library paths into programs... " >&6; }
21437hardcode_action=
21438if test -n "$hardcode_libdir_flag_spec" ||
21439   test -n "$runpath_var" ||
21440   test yes = "$hardcode_automatic"; then
21441
21442  # We can hardcode non-existent directories.
21443  if test no != "$hardcode_direct" &&
21444     # If the only mechanism to avoid hardcoding is shlibpath_var, we
21445     # have to relink, otherwise we might link with an installed library
21446     # when we should be linking with a yet-to-be-installed one
21447     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
21448     test no != "$hardcode_minus_L"; then
21449    # Linking always hardcodes the temporary library directory.
21450    hardcode_action=relink
21451  else
21452    # We can link without hardcoding, and we can hardcode nonexisting dirs.
21453    hardcode_action=immediate
21454  fi
21455else
21456  # We cannot hardcode anything, or else we can only hardcode existing
21457  # directories.
21458  hardcode_action=unsupported
21459fi
21460{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
21461printf "%s\n" "$hardcode_action" >&6; }
21462
21463if test relink = "$hardcode_action" ||
21464   test yes = "$inherit_rpath"; then
21465  # Fast installation is not supported
21466  enable_fast_install=no
21467elif test yes = "$shlibpath_overrides_runpath" ||
21468     test no = "$enable_shared"; then
21469  # Fast installation is not necessary
21470  enable_fast_install=needless
21471fi
21472
21473
21474
21475
21476
21477
21478  if test yes != "$enable_dlopen"; then
21479  enable_dlopen=unknown
21480  enable_dlopen_self=unknown
21481  enable_dlopen_self_static=unknown
21482else
21483  lt_cv_dlopen=no
21484  lt_cv_dlopen_libs=
21485
21486  case $host_os in
21487  beos*)
21488    lt_cv_dlopen=load_add_on
21489    lt_cv_dlopen_libs=
21490    lt_cv_dlopen_self=yes
21491    ;;
21492
21493  mingw* | pw32* | cegcc*)
21494    lt_cv_dlopen=LoadLibrary
21495    lt_cv_dlopen_libs=
21496    ;;
21497
21498  cygwin*)
21499    lt_cv_dlopen=dlopen
21500    lt_cv_dlopen_libs=
21501    ;;
21502
21503  darwin*)
21504    # if libdl is installed we need to link against it
21505    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
21506printf %s "checking for dlopen in -ldl... " >&6; }
21507if test ${ac_cv_lib_dl_dlopen+y}
21508then :
21509  printf %s "(cached) " >&6
21510else $as_nop
21511  ac_check_lib_save_LIBS=$LIBS
21512LIBS="-ldl  $LIBS"
21513cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21514/* end confdefs.h.  */
21515
21516/* Override any GCC internal prototype to avoid an error.
21517   Use char because int might match the return type of a GCC
21518   builtin and then its argument prototype would still apply.  */
21519char dlopen ();
21520int
21521main (void)
21522{
21523return dlopen ();
21524  ;
21525  return 0;
21526}
21527_ACEOF
21528if ac_fn_c_try_link "$LINENO"
21529then :
21530  ac_cv_lib_dl_dlopen=yes
21531else $as_nop
21532  ac_cv_lib_dl_dlopen=no
21533fi
21534rm -f core conftest.err conftest.$ac_objext conftest.beam \
21535    conftest$ac_exeext conftest.$ac_ext
21536LIBS=$ac_check_lib_save_LIBS
21537fi
21538{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
21539printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
21540if test "x$ac_cv_lib_dl_dlopen" = xyes
21541then :
21542  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
21543else $as_nop
21544
21545    lt_cv_dlopen=dyld
21546    lt_cv_dlopen_libs=
21547    lt_cv_dlopen_self=yes
21548
21549fi
21550
21551    ;;
21552
21553  tpf*)
21554    # Don't try to run any link tests for TPF.  We know it's impossible
21555    # because TPF is a cross-compiler, and we know how we open DSOs.
21556    lt_cv_dlopen=dlopen
21557    lt_cv_dlopen_libs=
21558    lt_cv_dlopen_self=no
21559    ;;
21560
21561  *)
21562    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
21563if test "x$ac_cv_func_shl_load" = xyes
21564then :
21565  lt_cv_dlopen=shl_load
21566else $as_nop
21567  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
21568printf %s "checking for shl_load in -ldld... " >&6; }
21569if test ${ac_cv_lib_dld_shl_load+y}
21570then :
21571  printf %s "(cached) " >&6
21572else $as_nop
21573  ac_check_lib_save_LIBS=$LIBS
21574LIBS="-ldld  $LIBS"
21575cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21576/* end confdefs.h.  */
21577
21578/* Override any GCC internal prototype to avoid an error.
21579   Use char because int might match the return type of a GCC
21580   builtin and then its argument prototype would still apply.  */
21581char shl_load ();
21582int
21583main (void)
21584{
21585return shl_load ();
21586  ;
21587  return 0;
21588}
21589_ACEOF
21590if ac_fn_c_try_link "$LINENO"
21591then :
21592  ac_cv_lib_dld_shl_load=yes
21593else $as_nop
21594  ac_cv_lib_dld_shl_load=no
21595fi
21596rm -f core conftest.err conftest.$ac_objext conftest.beam \
21597    conftest$ac_exeext conftest.$ac_ext
21598LIBS=$ac_check_lib_save_LIBS
21599fi
21600{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
21601printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
21602if test "x$ac_cv_lib_dld_shl_load" = xyes
21603then :
21604  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
21605else $as_nop
21606  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
21607if test "x$ac_cv_func_dlopen" = xyes
21608then :
21609  lt_cv_dlopen=dlopen
21610else $as_nop
21611  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
21612printf %s "checking for dlopen in -ldl... " >&6; }
21613if test ${ac_cv_lib_dl_dlopen+y}
21614then :
21615  printf %s "(cached) " >&6
21616else $as_nop
21617  ac_check_lib_save_LIBS=$LIBS
21618LIBS="-ldl  $LIBS"
21619cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21620/* end confdefs.h.  */
21621
21622/* Override any GCC internal prototype to avoid an error.
21623   Use char because int might match the return type of a GCC
21624   builtin and then its argument prototype would still apply.  */
21625char dlopen ();
21626int
21627main (void)
21628{
21629return dlopen ();
21630  ;
21631  return 0;
21632}
21633_ACEOF
21634if ac_fn_c_try_link "$LINENO"
21635then :
21636  ac_cv_lib_dl_dlopen=yes
21637else $as_nop
21638  ac_cv_lib_dl_dlopen=no
21639fi
21640rm -f core conftest.err conftest.$ac_objext conftest.beam \
21641    conftest$ac_exeext conftest.$ac_ext
21642LIBS=$ac_check_lib_save_LIBS
21643fi
21644{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
21645printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
21646if test "x$ac_cv_lib_dl_dlopen" = xyes
21647then :
21648  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
21649else $as_nop
21650  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
21651printf %s "checking for dlopen in -lsvld... " >&6; }
21652if test ${ac_cv_lib_svld_dlopen+y}
21653then :
21654  printf %s "(cached) " >&6
21655else $as_nop
21656  ac_check_lib_save_LIBS=$LIBS
21657LIBS="-lsvld  $LIBS"
21658cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21659/* end confdefs.h.  */
21660
21661/* Override any GCC internal prototype to avoid an error.
21662   Use char because int might match the return type of a GCC
21663   builtin and then its argument prototype would still apply.  */
21664char dlopen ();
21665int
21666main (void)
21667{
21668return dlopen ();
21669  ;
21670  return 0;
21671}
21672_ACEOF
21673if ac_fn_c_try_link "$LINENO"
21674then :
21675  ac_cv_lib_svld_dlopen=yes
21676else $as_nop
21677  ac_cv_lib_svld_dlopen=no
21678fi
21679rm -f core conftest.err conftest.$ac_objext conftest.beam \
21680    conftest$ac_exeext conftest.$ac_ext
21681LIBS=$ac_check_lib_save_LIBS
21682fi
21683{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
21684printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
21685if test "x$ac_cv_lib_svld_dlopen" = xyes
21686then :
21687  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
21688else $as_nop
21689  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
21690printf %s "checking for dld_link in -ldld... " >&6; }
21691if test ${ac_cv_lib_dld_dld_link+y}
21692then :
21693  printf %s "(cached) " >&6
21694else $as_nop
21695  ac_check_lib_save_LIBS=$LIBS
21696LIBS="-ldld  $LIBS"
21697cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21698/* end confdefs.h.  */
21699
21700/* Override any GCC internal prototype to avoid an error.
21701   Use char because int might match the return type of a GCC
21702   builtin and then its argument prototype would still apply.  */
21703char dld_link ();
21704int
21705main (void)
21706{
21707return dld_link ();
21708  ;
21709  return 0;
21710}
21711_ACEOF
21712if ac_fn_c_try_link "$LINENO"
21713then :
21714  ac_cv_lib_dld_dld_link=yes
21715else $as_nop
21716  ac_cv_lib_dld_dld_link=no
21717fi
21718rm -f core conftest.err conftest.$ac_objext conftest.beam \
21719    conftest$ac_exeext conftest.$ac_ext
21720LIBS=$ac_check_lib_save_LIBS
21721fi
21722{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
21723printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
21724if test "x$ac_cv_lib_dld_dld_link" = xyes
21725then :
21726  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
21727fi
21728
21729
21730fi
21731
21732
21733fi
21734
21735
21736fi
21737
21738
21739fi
21740
21741
21742fi
21743
21744    ;;
21745  esac
21746
21747  if test no = "$lt_cv_dlopen"; then
21748    enable_dlopen=no
21749  else
21750    enable_dlopen=yes
21751  fi
21752
21753  case $lt_cv_dlopen in
21754  dlopen)
21755    save_CPPFLAGS=$CPPFLAGS
21756    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
21757
21758    save_LDFLAGS=$LDFLAGS
21759    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
21760
21761    save_LIBS=$LIBS
21762    LIBS="$lt_cv_dlopen_libs $LIBS"
21763
21764    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
21765printf %s "checking whether a program can dlopen itself... " >&6; }
21766if test ${lt_cv_dlopen_self+y}
21767then :
21768  printf %s "(cached) " >&6
21769else $as_nop
21770  	  if test yes = "$cross_compiling"; then :
21771  lt_cv_dlopen_self=cross
21772else
21773  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
21774  lt_status=$lt_dlunknown
21775  cat > conftest.$ac_ext <<_LT_EOF
21776#line $LINENO "configure"
21777#include "confdefs.h"
21778
21779#if HAVE_DLFCN_H
21780#include <dlfcn.h>
21781#endif
21782
21783#include <stdio.h>
21784
21785#ifdef RTLD_GLOBAL
21786#  define LT_DLGLOBAL		RTLD_GLOBAL
21787#else
21788#  ifdef DL_GLOBAL
21789#    define LT_DLGLOBAL		DL_GLOBAL
21790#  else
21791#    define LT_DLGLOBAL		0
21792#  endif
21793#endif
21794
21795/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
21796   find out it does not work in some platform. */
21797#ifndef LT_DLLAZY_OR_NOW
21798#  ifdef RTLD_LAZY
21799#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
21800#  else
21801#    ifdef DL_LAZY
21802#      define LT_DLLAZY_OR_NOW		DL_LAZY
21803#    else
21804#      ifdef RTLD_NOW
21805#        define LT_DLLAZY_OR_NOW	RTLD_NOW
21806#      else
21807#        ifdef DL_NOW
21808#          define LT_DLLAZY_OR_NOW	DL_NOW
21809#        else
21810#          define LT_DLLAZY_OR_NOW	0
21811#        endif
21812#      endif
21813#    endif
21814#  endif
21815#endif
21816
21817/* When -fvisibility=hidden is used, assume the code has been annotated
21818   correspondingly for the symbols needed.  */
21819#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
21820int fnord () __attribute__((visibility("default")));
21821#endif
21822
21823int fnord () { return 42; }
21824int main ()
21825{
21826  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
21827  int status = $lt_dlunknown;
21828
21829  if (self)
21830    {
21831      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
21832      else
21833        {
21834	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
21835          else puts (dlerror ());
21836	}
21837      /* dlclose (self); */
21838    }
21839  else
21840    puts (dlerror ());
21841
21842  return status;
21843}
21844_LT_EOF
21845  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
21846  (eval $ac_link) 2>&5
21847  ac_status=$?
21848  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21849  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
21850    (./conftest; exit; ) >&5 2>/dev/null
21851    lt_status=$?
21852    case x$lt_status in
21853      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
21854      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
21855      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
21856    esac
21857  else :
21858    # compilation failed
21859    lt_cv_dlopen_self=no
21860  fi
21861fi
21862rm -fr conftest*
21863
21864
21865fi
21866{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
21867printf "%s\n" "$lt_cv_dlopen_self" >&6; }
21868
21869    if test yes = "$lt_cv_dlopen_self"; then
21870      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
21871      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
21872printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
21873if test ${lt_cv_dlopen_self_static+y}
21874then :
21875  printf %s "(cached) " >&6
21876else $as_nop
21877  	  if test yes = "$cross_compiling"; then :
21878  lt_cv_dlopen_self_static=cross
21879else
21880  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
21881  lt_status=$lt_dlunknown
21882  cat > conftest.$ac_ext <<_LT_EOF
21883#line $LINENO "configure"
21884#include "confdefs.h"
21885
21886#if HAVE_DLFCN_H
21887#include <dlfcn.h>
21888#endif
21889
21890#include <stdio.h>
21891
21892#ifdef RTLD_GLOBAL
21893#  define LT_DLGLOBAL		RTLD_GLOBAL
21894#else
21895#  ifdef DL_GLOBAL
21896#    define LT_DLGLOBAL		DL_GLOBAL
21897#  else
21898#    define LT_DLGLOBAL		0
21899#  endif
21900#endif
21901
21902/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
21903   find out it does not work in some platform. */
21904#ifndef LT_DLLAZY_OR_NOW
21905#  ifdef RTLD_LAZY
21906#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
21907#  else
21908#    ifdef DL_LAZY
21909#      define LT_DLLAZY_OR_NOW		DL_LAZY
21910#    else
21911#      ifdef RTLD_NOW
21912#        define LT_DLLAZY_OR_NOW	RTLD_NOW
21913#      else
21914#        ifdef DL_NOW
21915#          define LT_DLLAZY_OR_NOW	DL_NOW
21916#        else
21917#          define LT_DLLAZY_OR_NOW	0
21918#        endif
21919#      endif
21920#    endif
21921#  endif
21922#endif
21923
21924/* When -fvisibility=hidden is used, assume the code has been annotated
21925   correspondingly for the symbols needed.  */
21926#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
21927int fnord () __attribute__((visibility("default")));
21928#endif
21929
21930int fnord () { return 42; }
21931int main ()
21932{
21933  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
21934  int status = $lt_dlunknown;
21935
21936  if (self)
21937    {
21938      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
21939      else
21940        {
21941	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
21942          else puts (dlerror ());
21943	}
21944      /* dlclose (self); */
21945    }
21946  else
21947    puts (dlerror ());
21948
21949  return status;
21950}
21951_LT_EOF
21952  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
21953  (eval $ac_link) 2>&5
21954  ac_status=$?
21955  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21956  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
21957    (./conftest; exit; ) >&5 2>/dev/null
21958    lt_status=$?
21959    case x$lt_status in
21960      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
21961      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
21962      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
21963    esac
21964  else :
21965    # compilation failed
21966    lt_cv_dlopen_self_static=no
21967  fi
21968fi
21969rm -fr conftest*
21970
21971
21972fi
21973{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
21974printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
21975    fi
21976
21977    CPPFLAGS=$save_CPPFLAGS
21978    LDFLAGS=$save_LDFLAGS
21979    LIBS=$save_LIBS
21980    ;;
21981  esac
21982
21983  case $lt_cv_dlopen_self in
21984  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
21985  *) enable_dlopen_self=unknown ;;
21986  esac
21987
21988  case $lt_cv_dlopen_self_static in
21989  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
21990  *) enable_dlopen_self_static=unknown ;;
21991  esac
21992fi
21993
21994
21995
21996
21997
21998
21999
22000
22001
22002
22003
22004
22005
22006
22007
22008
22009
22010striplib=
22011old_striplib=
22012{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
22013printf %s "checking whether stripping libraries is possible... " >&6; }
22014if test -z "$STRIP"; then
22015  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22016printf "%s\n" "no" >&6; }
22017else
22018  if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
22019    old_striplib="$STRIP --strip-debug"
22020    striplib="$STRIP --strip-unneeded"
22021    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22022printf "%s\n" "yes" >&6; }
22023  else
22024    case $host_os in
22025    darwin*)
22026      # FIXME - insert some real tests, host_os isn't really good enough
22027      striplib="$STRIP -x"
22028      old_striplib="$STRIP -S"
22029      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22030printf "%s\n" "yes" >&6; }
22031      ;;
22032    freebsd*)
22033      if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
22034        old_striplib="$STRIP --strip-debug"
22035        striplib="$STRIP --strip-unneeded"
22036        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22037printf "%s\n" "yes" >&6; }
22038      else
22039        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22040printf "%s\n" "no" >&6; }
22041      fi
22042      ;;
22043    *)
22044      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22045printf "%s\n" "no" >&6; }
22046      ;;
22047    esac
22048  fi
22049fi
22050
22051
22052
22053
22054
22055
22056
22057
22058
22059
22060
22061
22062  # Report what library types will actually be built
22063  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
22064printf %s "checking if libtool supports shared libraries... " >&6; }
22065  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
22066printf "%s\n" "$can_build_shared" >&6; }
22067
22068  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
22069printf %s "checking whether to build shared libraries... " >&6; }
22070  test no = "$can_build_shared" && enable_shared=no
22071
22072  # On AIX, shared libraries and static libraries use the same namespace, and
22073  # are all built from PIC.
22074  case $host_os in
22075  aix3*)
22076    test yes = "$enable_shared" && enable_static=no
22077    if test -n "$RANLIB"; then
22078      archive_cmds="$archive_cmds~\$RANLIB \$lib"
22079      postinstall_cmds='$RANLIB $lib'
22080    fi
22081    ;;
22082
22083  aix[4-9]*)
22084    if test ia64 != "$host_cpu"; then
22085      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
22086      yes,aix,yes) ;;			# shared object as lib.so file only
22087      yes,svr4,*) ;;			# shared object as lib.so archive member only
22088      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
22089      esac
22090    fi
22091    ;;
22092  esac
22093  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
22094printf "%s\n" "$enable_shared" >&6; }
22095
22096  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
22097printf %s "checking whether to build static libraries... " >&6; }
22098  # Make sure either enable_shared or enable_static is yes.
22099  test yes = "$enable_shared" || enable_static=yes
22100  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
22101printf "%s\n" "$enable_static" >&6; }
22102
22103
22104
22105
22106fi
22107ac_ext=c
22108ac_cpp='$CPP $CPPFLAGS'
22109ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22110ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22111ac_compiler_gnu=$ac_cv_c_compiler_gnu
22112
22113CC=$lt_save_CC
22114
22115
22116
22117
22118
22119
22120
22121
22122
22123
22124
22125
22126
22127
22128
22129        ac_config_commands="$ac_config_commands libtool"
22130
22131
22132
22133
22134# Only expand once:
22135
22136
22137
22138
22139
22140
22141
22142
22143
22144if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
22145	if test -n "$ac_tool_prefix"; then
22146  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22147set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22148{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22149printf %s "checking for $ac_word... " >&6; }
22150if test ${ac_cv_path_PKG_CONFIG+y}
22151then :
22152  printf %s "(cached) " >&6
22153else $as_nop
22154  case $PKG_CONFIG in
22155  [\\/]* | ?:[\\/]*)
22156  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22157  ;;
22158  *)
22159  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22160for as_dir in $PATH
22161do
22162  IFS=$as_save_IFS
22163  case $as_dir in #(((
22164    '') as_dir=./ ;;
22165    */) ;;
22166    *) as_dir=$as_dir/ ;;
22167  esac
22168    for ac_exec_ext in '' $ac_executable_extensions; do
22169  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
22170    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
22171    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
22172    break 2
22173  fi
22174done
22175  done
22176IFS=$as_save_IFS
22177
22178  ;;
22179esac
22180fi
22181PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22182if test -n "$PKG_CONFIG"; then
22183  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22184printf "%s\n" "$PKG_CONFIG" >&6; }
22185else
22186  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22187printf "%s\n" "no" >&6; }
22188fi
22189
22190
22191fi
22192if test -z "$ac_cv_path_PKG_CONFIG"; then
22193  ac_pt_PKG_CONFIG=$PKG_CONFIG
22194  # Extract the first word of "pkg-config", so it can be a program name with args.
22195set dummy pkg-config; ac_word=$2
22196{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22197printf %s "checking for $ac_word... " >&6; }
22198if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
22199then :
22200  printf %s "(cached) " >&6
22201else $as_nop
22202  case $ac_pt_PKG_CONFIG in
22203  [\\/]* | ?:[\\/]*)
22204  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
22205  ;;
22206  *)
22207  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22208for as_dir in $PATH
22209do
22210  IFS=$as_save_IFS
22211  case $as_dir in #(((
22212    '') as_dir=./ ;;
22213    */) ;;
22214    *) as_dir=$as_dir/ ;;
22215  esac
22216    for ac_exec_ext in '' $ac_executable_extensions; do
22217  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
22218    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
22219    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
22220    break 2
22221  fi
22222done
22223  done
22224IFS=$as_save_IFS
22225
22226  ;;
22227esac
22228fi
22229ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
22230if test -n "$ac_pt_PKG_CONFIG"; then
22231  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
22232printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
22233else
22234  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22235printf "%s\n" "no" >&6; }
22236fi
22237
22238  if test "x$ac_pt_PKG_CONFIG" = x; then
22239    PKG_CONFIG=""
22240  else
22241    case $cross_compiling:$ac_tool_warned in
22242yes:)
22243{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
22244printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22245ac_tool_warned=yes ;;
22246esac
22247    PKG_CONFIG=$ac_pt_PKG_CONFIG
22248  fi
22249else
22250  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
22251fi
22252
22253fi
22254if test -n "$PKG_CONFIG"; then
22255	_pkg_min_version=0.9.0
22256	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
22257printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
22258	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
22259		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22260printf "%s\n" "yes" >&6; }
22261	else
22262		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22263printf "%s\n" "no" >&6; }
22264		PKG_CONFIG=""
22265	fi
22266fi
22267for ac_prog in flex lex
22268do
22269  # Extract the first word of "$ac_prog", so it can be a program name with args.
22270set dummy $ac_prog; ac_word=$2
22271{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22272printf %s "checking for $ac_word... " >&6; }
22273if test ${ac_cv_prog_LEX+y}
22274then :
22275  printf %s "(cached) " >&6
22276else $as_nop
22277  if test -n "$LEX"; then
22278  ac_cv_prog_LEX="$LEX" # Let the user override the test.
22279else
22280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22281for as_dir in $PATH
22282do
22283  IFS=$as_save_IFS
22284  case $as_dir in #(((
22285    '') as_dir=./ ;;
22286    */) ;;
22287    *) as_dir=$as_dir/ ;;
22288  esac
22289    for ac_exec_ext in '' $ac_executable_extensions; do
22290  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
22291    ac_cv_prog_LEX="$ac_prog"
22292    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
22293    break 2
22294  fi
22295done
22296  done
22297IFS=$as_save_IFS
22298
22299fi
22300fi
22301LEX=$ac_cv_prog_LEX
22302if test -n "$LEX"; then
22303  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
22304printf "%s\n" "$LEX" >&6; }
22305else
22306  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22307printf "%s\n" "no" >&6; }
22308fi
22309
22310
22311  test -n "$LEX" && break
22312done
22313test -n "$LEX" || LEX=":"
22314
22315  if test "x$LEX" != "x:"; then
22316    cat >conftest.l <<_ACEOF
22317%{
22318#ifdef __cplusplus
22319extern "C"
22320#endif
22321int yywrap(void);
22322%}
22323%%
22324a { ECHO; }
22325b { REJECT; }
22326c { yymore (); }
22327d { yyless (1); }
22328e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument.  */
22329#ifdef __cplusplus
22330    yyless ((yyinput () != 0));
22331#else
22332    yyless ((input () != 0));
22333#endif
22334  }
22335f { unput (yytext[0]); }
22336. { BEGIN INITIAL; }
22337%%
22338#ifdef YYTEXT_POINTER
22339extern char *yytext;
22340#endif
22341int
22342yywrap (void)
22343{
22344  return 1;
22345}
22346int
22347main (void)
22348{
22349  return ! yylex ();
22350}
22351_ACEOF
22352{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lex output file root" >&5
22353printf %s "checking for lex output file root... " >&6; }
22354if test ${ac_cv_prog_lex_root+y}
22355then :
22356  printf %s "(cached) " >&6
22357else $as_nop
22358
22359ac_cv_prog_lex_root=unknown
22360{ { ac_try="$LEX conftest.l"
22361case "(($ac_try" in
22362  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22363  *) ac_try_echo=$ac_try;;
22364esac
22365eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
22366printf "%s\n" "$ac_try_echo"; } >&5
22367  (eval "$LEX conftest.l") 2>&5
22368  ac_status=$?
22369  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22370  test $ac_status = 0; } &&
22371if test -f lex.yy.c; then
22372  ac_cv_prog_lex_root=lex.yy
22373elif test -f lexyy.c; then
22374  ac_cv_prog_lex_root=lexyy
22375fi
22376fi
22377{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
22378printf "%s\n" "$ac_cv_prog_lex_root" >&6; }
22379if test "$ac_cv_prog_lex_root" = unknown
22380then :
22381  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot find output from $LEX; giving up on $LEX" >&5
22382printf "%s\n" "$as_me: WARNING: cannot find output from $LEX; giving up on $LEX" >&2;}
22383   LEX=: LEXLIB=
22384fi
22385LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
22386
22387if test ${LEXLIB+y}
22388then :
22389
22390else $as_nop
22391
22392  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lex library" >&5
22393printf %s "checking for lex library... " >&6; }
22394if test ${ac_cv_lib_lex+y}
22395then :
22396  printf %s "(cached) " >&6
22397else $as_nop
22398
22399    ac_save_LIBS="$LIBS"
22400    ac_found=false
22401    for ac_cv_lib_lex in 'none needed' -lfl -ll 'not found'; do
22402      case $ac_cv_lib_lex in #(
22403  'none needed') :
22404     ;; #(
22405  'not found') :
22406    break ;; #(
22407  *) :
22408    LIBS="$ac_cv_lib_lex $ac_save_LIBS" ;; #(
22409  *) :
22410     ;;
22411esac
22412
22413      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22414/* end confdefs.h.  */
22415`cat $LEX_OUTPUT_ROOT.c`
22416_ACEOF
22417if ac_fn_c_try_link "$LINENO"
22418then :
22419  ac_found=:
22420fi
22421rm -f core conftest.err conftest.$ac_objext conftest.beam \
22422    conftest$ac_exeext conftest.$ac_ext
22423      if $ac_found; then
22424        break
22425      fi
22426    done
22427    LIBS="$ac_save_LIBS"
22428
22429fi
22430{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
22431printf "%s\n" "$ac_cv_lib_lex" >&6; }
22432  if test "$ac_cv_lib_lex" = 'not found'
22433then :
22434  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: required lex library not found; giving up on $LEX" >&5
22435printf "%s\n" "$as_me: WARNING: required lex library not found; giving up on $LEX" >&2;}
22436	 LEX=: LEXLIB=
22437elif test "$ac_cv_lib_lex" = 'none needed'
22438then :
22439  LEXLIB=''
22440else $as_nop
22441  LEXLIB=$ac_cv_lib_lex
22442fi
22443  ac_save_LIBS="$LIBS"
22444      LIBS=
22445      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing yywrap" >&5
22446printf %s "checking for library containing yywrap... " >&6; }
22447if test ${ac_cv_search_yywrap+y}
22448then :
22449  printf %s "(cached) " >&6
22450else $as_nop
22451  ac_func_search_save_LIBS=$LIBS
22452cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22453/* end confdefs.h.  */
22454
22455/* Override any GCC internal prototype to avoid an error.
22456   Use char because int might match the return type of a GCC
22457   builtin and then its argument prototype would still apply.  */
22458char yywrap ();
22459int
22460main (void)
22461{
22462return yywrap ();
22463  ;
22464  return 0;
22465}
22466_ACEOF
22467for ac_lib in '' fl l
22468do
22469  if test -z "$ac_lib"; then
22470    ac_res="none required"
22471  else
22472    ac_res=-l$ac_lib
22473    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22474  fi
22475  if ac_fn_c_try_link "$LINENO"
22476then :
22477  ac_cv_search_yywrap=$ac_res
22478fi
22479rm -f core conftest.err conftest.$ac_objext conftest.beam \
22480    conftest$ac_exeext
22481  if test ${ac_cv_search_yywrap+y}
22482then :
22483  break
22484fi
22485done
22486if test ${ac_cv_search_yywrap+y}
22487then :
22488
22489else $as_nop
22490  ac_cv_search_yywrap=no
22491fi
22492rm conftest.$ac_ext
22493LIBS=$ac_func_search_save_LIBS
22494fi
22495{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_yywrap" >&5
22496printf "%s\n" "$ac_cv_search_yywrap" >&6; }
22497ac_res=$ac_cv_search_yywrap
22498if test "$ac_res" != no
22499then :
22500  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22501  LEXLIB="$LIBS"
22502fi
22503
22504      LIBS="$ac_save_LIBS"
22505fi
22506
22507
22508if test "$LEX" != :
22509then :
22510
22511{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
22512printf %s "checking whether yytext is a pointer... " >&6; }
22513if test ${ac_cv_prog_lex_yytext_pointer+y}
22514then :
22515  printf %s "(cached) " >&6
22516else $as_nop
22517  # POSIX says lex can declare yytext either as a pointer or an array; the
22518# default is implementation-dependent.  Figure out which it is, since
22519# not all implementations provide the %pointer and %array declarations.
22520ac_cv_prog_lex_yytext_pointer=no
22521cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22522/* end confdefs.h.  */
22523
22524  #define YYTEXT_POINTER 1
22525`cat $LEX_OUTPUT_ROOT.c`
22526_ACEOF
22527if ac_fn_c_try_compile "$LINENO"
22528then :
22529  ac_cv_prog_lex_yytext_pointer=yes
22530fi
22531rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22532
22533fi
22534{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
22535printf "%s\n" "$ac_cv_prog_lex_yytext_pointer" >&6; }
22536if test $ac_cv_prog_lex_yytext_pointer = yes; then
22537
22538printf "%s\n" "#define YYTEXT_POINTER 1" >>confdefs.h
22539
22540fi
22541
22542fi
22543rm -f conftest.l $LEX_OUTPUT_ROOT.c
22544
22545fi
22546for ac_prog in 'bison -y' byacc
22547do
22548  # Extract the first word of "$ac_prog", so it can be a program name with args.
22549set dummy $ac_prog; ac_word=$2
22550{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22551printf %s "checking for $ac_word... " >&6; }
22552if test ${ac_cv_prog_YACC+y}
22553then :
22554  printf %s "(cached) " >&6
22555else $as_nop
22556  if test -n "$YACC"; then
22557  ac_cv_prog_YACC="$YACC" # Let the user override the test.
22558else
22559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22560for as_dir in $PATH
22561do
22562  IFS=$as_save_IFS
22563  case $as_dir in #(((
22564    '') as_dir=./ ;;
22565    */) ;;
22566    *) as_dir=$as_dir/ ;;
22567  esac
22568    for ac_exec_ext in '' $ac_executable_extensions; do
22569  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
22570    ac_cv_prog_YACC="$ac_prog"
22571    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
22572    break 2
22573  fi
22574done
22575  done
22576IFS=$as_save_IFS
22577
22578fi
22579fi
22580YACC=$ac_cv_prog_YACC
22581if test -n "$YACC"; then
22582  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
22583printf "%s\n" "$YACC" >&6; }
22584else
22585  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22586printf "%s\n" "no" >&6; }
22587fi
22588
22589
22590  test -n "$YACC" && break
22591done
22592test -n "$YACC" || YACC="yacc"
22593
22594# Check whether --enable-largefile was given.
22595if test ${enable_largefile+y}
22596then :
22597  enableval=$enable_largefile;
22598fi
22599
22600if test "$enable_largefile" != no; then
22601
22602  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
22603printf %s "checking for special C compiler options needed for large files... " >&6; }
22604if test ${ac_cv_sys_largefile_CC+y}
22605then :
22606  printf %s "(cached) " >&6
22607else $as_nop
22608  ac_cv_sys_largefile_CC=no
22609     if test "$GCC" != yes; then
22610       ac_save_CC=$CC
22611       while :; do
22612	 # IRIX 6.2 and later do not support large files by default,
22613	 # so use the C compiler's -n32 option if that helps.
22614	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22615/* end confdefs.h.  */
22616#include <sys/types.h>
22617 /* Check that off_t can represent 2**63 - 1 correctly.
22618    We can't simply define LARGE_OFF_T to be 9223372036854775807,
22619    since some C++ compilers masquerading as C compilers
22620    incorrectly reject 9223372036854775807.  */
22621#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
22622  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
22623		       && LARGE_OFF_T % 2147483647 == 1)
22624		      ? 1 : -1];
22625int
22626main (void)
22627{
22628
22629  ;
22630  return 0;
22631}
22632_ACEOF
22633	 if ac_fn_c_try_compile "$LINENO"
22634then :
22635  break
22636fi
22637rm -f core conftest.err conftest.$ac_objext conftest.beam
22638	 CC="$CC -n32"
22639	 if ac_fn_c_try_compile "$LINENO"
22640then :
22641  ac_cv_sys_largefile_CC=' -n32'; break
22642fi
22643rm -f core conftest.err conftest.$ac_objext conftest.beam
22644	 break
22645       done
22646       CC=$ac_save_CC
22647       rm -f conftest.$ac_ext
22648    fi
22649fi
22650{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
22651printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
22652  if test "$ac_cv_sys_largefile_CC" != no; then
22653    CC=$CC$ac_cv_sys_largefile_CC
22654  fi
22655
22656  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
22657printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
22658if test ${ac_cv_sys_file_offset_bits+y}
22659then :
22660  printf %s "(cached) " >&6
22661else $as_nop
22662  while :; do
22663  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22664/* end confdefs.h.  */
22665#include <sys/types.h>
22666 /* Check that off_t can represent 2**63 - 1 correctly.
22667    We can't simply define LARGE_OFF_T to be 9223372036854775807,
22668    since some C++ compilers masquerading as C compilers
22669    incorrectly reject 9223372036854775807.  */
22670#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
22671  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
22672		       && LARGE_OFF_T % 2147483647 == 1)
22673		      ? 1 : -1];
22674int
22675main (void)
22676{
22677
22678  ;
22679  return 0;
22680}
22681_ACEOF
22682if ac_fn_c_try_compile "$LINENO"
22683then :
22684  ac_cv_sys_file_offset_bits=no; break
22685fi
22686rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22687  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22688/* end confdefs.h.  */
22689#define _FILE_OFFSET_BITS 64
22690#include <sys/types.h>
22691 /* Check that off_t can represent 2**63 - 1 correctly.
22692    We can't simply define LARGE_OFF_T to be 9223372036854775807,
22693    since some C++ compilers masquerading as C compilers
22694    incorrectly reject 9223372036854775807.  */
22695#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
22696  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
22697		       && LARGE_OFF_T % 2147483647 == 1)
22698		      ? 1 : -1];
22699int
22700main (void)
22701{
22702
22703  ;
22704  return 0;
22705}
22706_ACEOF
22707if ac_fn_c_try_compile "$LINENO"
22708then :
22709  ac_cv_sys_file_offset_bits=64; break
22710fi
22711rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22712  ac_cv_sys_file_offset_bits=unknown
22713  break
22714done
22715fi
22716{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
22717printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
22718case $ac_cv_sys_file_offset_bits in #(
22719  no | unknown) ;;
22720  *)
22721printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
22722;;
22723esac
22724rm -rf conftest*
22725  if test $ac_cv_sys_file_offset_bits = unknown; then
22726    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
22727printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
22728if test ${ac_cv_sys_large_files+y}
22729then :
22730  printf %s "(cached) " >&6
22731else $as_nop
22732  while :; do
22733  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22734/* end confdefs.h.  */
22735#include <sys/types.h>
22736 /* Check that off_t can represent 2**63 - 1 correctly.
22737    We can't simply define LARGE_OFF_T to be 9223372036854775807,
22738    since some C++ compilers masquerading as C compilers
22739    incorrectly reject 9223372036854775807.  */
22740#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
22741  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
22742		       && LARGE_OFF_T % 2147483647 == 1)
22743		      ? 1 : -1];
22744int
22745main (void)
22746{
22747
22748  ;
22749  return 0;
22750}
22751_ACEOF
22752if ac_fn_c_try_compile "$LINENO"
22753then :
22754  ac_cv_sys_large_files=no; break
22755fi
22756rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22757  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22758/* end confdefs.h.  */
22759#define _LARGE_FILES 1
22760#include <sys/types.h>
22761 /* Check that off_t can represent 2**63 - 1 correctly.
22762    We can't simply define LARGE_OFF_T to be 9223372036854775807,
22763    since some C++ compilers masquerading as C compilers
22764    incorrectly reject 9223372036854775807.  */
22765#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
22766  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
22767		       && LARGE_OFF_T % 2147483647 == 1)
22768		      ? 1 : -1];
22769int
22770main (void)
22771{
22772
22773  ;
22774  return 0;
22775}
22776_ACEOF
22777if ac_fn_c_try_compile "$LINENO"
22778then :
22779  ac_cv_sys_large_files=1; break
22780fi
22781rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22782  ac_cv_sys_large_files=unknown
22783  break
22784done
22785fi
22786{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
22787printf "%s\n" "$ac_cv_sys_large_files" >&6; }
22788case $ac_cv_sys_large_files in #(
22789  no | unknown) ;;
22790  *)
22791printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
22792;;
22793esac
22794rm -rf conftest*
22795  fi
22796fi
22797
22798ac_ext=c
22799ac_cpp='$CPP $CPPFLAGS'
22800ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22801ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22802ac_compiler_gnu=$ac_cv_c_compiler_gnu
22803{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
22804printf %s "checking how to run the C preprocessor... " >&6; }
22805# On Suns, sometimes $CPP names a directory.
22806if test -n "$CPP" && test -d "$CPP"; then
22807  CPP=
22808fi
22809if test -z "$CPP"; then
22810  if test ${ac_cv_prog_CPP+y}
22811then :
22812  printf %s "(cached) " >&6
22813else $as_nop
22814      # Double quotes because $CC needs to be expanded
22815    for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
22816    do
22817      ac_preproc_ok=false
22818for ac_c_preproc_warn_flag in '' yes
22819do
22820  # Use a header file that comes with gcc, so configuring glibc
22821  # with a fresh cross-compiler works.
22822  # On the NeXT, cc -E runs the code through the compiler's parser,
22823  # not just through cpp. "Syntax error" is here to catch this case.
22824  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22825/* end confdefs.h.  */
22826#include <limits.h>
22827		     Syntax error
22828_ACEOF
22829if ac_fn_c_try_cpp "$LINENO"
22830then :
22831
22832else $as_nop
22833  # Broken: fails on valid input.
22834continue
22835fi
22836rm -f conftest.err conftest.i conftest.$ac_ext
22837
22838  # OK, works on sane cases.  Now check whether nonexistent headers
22839  # can be detected and how.
22840  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22841/* end confdefs.h.  */
22842#include <ac_nonexistent.h>
22843_ACEOF
22844if ac_fn_c_try_cpp "$LINENO"
22845then :
22846  # Broken: success on invalid input.
22847continue
22848else $as_nop
22849  # Passes both tests.
22850ac_preproc_ok=:
22851break
22852fi
22853rm -f conftest.err conftest.i conftest.$ac_ext
22854
22855done
22856# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22857rm -f conftest.i conftest.err conftest.$ac_ext
22858if $ac_preproc_ok
22859then :
22860  break
22861fi
22862
22863    done
22864    ac_cv_prog_CPP=$CPP
22865
22866fi
22867  CPP=$ac_cv_prog_CPP
22868else
22869  ac_cv_prog_CPP=$CPP
22870fi
22871{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
22872printf "%s\n" "$CPP" >&6; }
22873ac_preproc_ok=false
22874for ac_c_preproc_warn_flag in '' yes
22875do
22876  # Use a header file that comes with gcc, so configuring glibc
22877  # with a fresh cross-compiler works.
22878  # On the NeXT, cc -E runs the code through the compiler's parser,
22879  # not just through cpp. "Syntax error" is here to catch this case.
22880  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22881/* end confdefs.h.  */
22882#include <limits.h>
22883		     Syntax error
22884_ACEOF
22885if ac_fn_c_try_cpp "$LINENO"
22886then :
22887
22888else $as_nop
22889  # Broken: fails on valid input.
22890continue
22891fi
22892rm -f conftest.err conftest.i conftest.$ac_ext
22893
22894  # OK, works on sane cases.  Now check whether nonexistent headers
22895  # can be detected and how.
22896  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22897/* end confdefs.h.  */
22898#include <ac_nonexistent.h>
22899_ACEOF
22900if ac_fn_c_try_cpp "$LINENO"
22901then :
22902  # Broken: success on invalid input.
22903continue
22904else $as_nop
22905  # Passes both tests.
22906ac_preproc_ok=:
22907break
22908fi
22909rm -f conftest.err conftest.i conftest.$ac_ext
22910
22911done
22912# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22913rm -f conftest.i conftest.err conftest.$ac_ext
22914if $ac_preproc_ok
22915then :
22916
22917else $as_nop
22918  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22919printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22920as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
22921See \`config.log' for more details" "$LINENO" 5; }
22922fi
22923
22924ac_ext=c
22925ac_cpp='$CPP $CPPFLAGS'
22926ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22927ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22928ac_compiler_gnu=$ac_cv_c_compiler_gnu
22929
22930
22931
22932if test -n "$ac_tool_prefix"; then
22933  # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
22934set dummy ${ac_tool_prefix}cpp; ac_word=$2
22935{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22936printf %s "checking for $ac_word... " >&6; }
22937if test ${ac_cv_path_RAWCPP+y}
22938then :
22939  printf %s "(cached) " >&6
22940else $as_nop
22941  case $RAWCPP in
22942  [\\/]* | ?:[\\/]*)
22943  ac_cv_path_RAWCPP="$RAWCPP" # Let the user override the test with a path.
22944  ;;
22945  *)
22946  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22947as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib"
22948for as_dir in $as_dummy
22949do
22950  IFS=$as_save_IFS
22951  case $as_dir in #(((
22952    '') as_dir=./ ;;
22953    */) ;;
22954    *) as_dir=$as_dir/ ;;
22955  esac
22956    for ac_exec_ext in '' $ac_executable_extensions; do
22957  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
22958    ac_cv_path_RAWCPP="$as_dir$ac_word$ac_exec_ext"
22959    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
22960    break 2
22961  fi
22962done
22963  done
22964IFS=$as_save_IFS
22965
22966  ;;
22967esac
22968fi
22969RAWCPP=$ac_cv_path_RAWCPP
22970if test -n "$RAWCPP"; then
22971  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RAWCPP" >&5
22972printf "%s\n" "$RAWCPP" >&6; }
22973else
22974  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22975printf "%s\n" "no" >&6; }
22976fi
22977
22978
22979fi
22980if test -z "$ac_cv_path_RAWCPP"; then
22981  ac_pt_RAWCPP=$RAWCPP
22982  # Extract the first word of "cpp", so it can be a program name with args.
22983set dummy cpp; ac_word=$2
22984{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22985printf %s "checking for $ac_word... " >&6; }
22986if test ${ac_cv_path_ac_pt_RAWCPP+y}
22987then :
22988  printf %s "(cached) " >&6
22989else $as_nop
22990  case $ac_pt_RAWCPP in
22991  [\\/]* | ?:[\\/]*)
22992  ac_cv_path_ac_pt_RAWCPP="$ac_pt_RAWCPP" # Let the user override the test with a path.
22993  ;;
22994  *)
22995  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22996as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib"
22997for as_dir in $as_dummy
22998do
22999  IFS=$as_save_IFS
23000  case $as_dir in #(((
23001    '') as_dir=./ ;;
23002    */) ;;
23003    *) as_dir=$as_dir/ ;;
23004  esac
23005    for ac_exec_ext in '' $ac_executable_extensions; do
23006  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
23007    ac_cv_path_ac_pt_RAWCPP="$as_dir$ac_word$ac_exec_ext"
23008    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
23009    break 2
23010  fi
23011done
23012  done
23013IFS=$as_save_IFS
23014
23015  ;;
23016esac
23017fi
23018ac_pt_RAWCPP=$ac_cv_path_ac_pt_RAWCPP
23019if test -n "$ac_pt_RAWCPP"; then
23020  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_RAWCPP" >&5
23021printf "%s\n" "$ac_pt_RAWCPP" >&6; }
23022else
23023  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23024printf "%s\n" "no" >&6; }
23025fi
23026
23027  if test "x$ac_pt_RAWCPP" = x; then
23028    RAWCPP="${CPP}"
23029  else
23030    case $cross_compiling:$ac_tool_warned in
23031yes:)
23032{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23033printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23034ac_tool_warned=yes ;;
23035esac
23036    RAWCPP=$ac_pt_RAWCPP
23037  fi
23038else
23039  RAWCPP="$ac_cv_path_RAWCPP"
23040fi
23041
23042
23043# Check for flag to avoid builtin definitions - assumes unix is predefined,
23044# which is not the best choice for supporting other OS'es, but covers most
23045# of the ones we need for now.
23046{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -undef" >&5
23047printf %s "checking if $RAWCPP requires -undef... " >&6; }
23048cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23049/* end confdefs.h.  */
23050Does cpp redefine unix ?
23051_ACEOF
23052if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
23053	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23054printf "%s\n" "no" >&6; }
23055else
23056	if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
23057		RAWCPPFLAGS=-undef
23058		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23059printf "%s\n" "yes" >&6; }
23060	# under Cygwin unix is still defined even with -undef
23061	elif test `${RAWCPP} -undef -ansi < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
23062		RAWCPPFLAGS="-undef -ansi"
23063		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, with -ansi" >&5
23064printf "%s\n" "yes, with -ansi" >&6; }
23065	else
23066		as_fn_error $? "${RAWCPP} defines unix with or without -undef.  I don't know what to do." "$LINENO" 5
23067	fi
23068fi
23069rm -f conftest.$ac_ext
23070
23071{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -traditional" >&5
23072printf %s "checking if $RAWCPP requires -traditional... " >&6; }
23073cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23074/* end confdefs.h.  */
23075Does cpp preserve   "whitespace"?
23076_ACEOF
23077if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve   \"'` -eq 1 ; then
23078	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23079printf "%s\n" "no" >&6; }
23080else
23081	if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve   \"'` -eq 1 ; then
23082		TRADITIONALCPPFLAGS="-traditional"
23083		RAWCPPFLAGS="${RAWCPPFLAGS} -traditional"
23084		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23085printf "%s\n" "yes" >&6; }
23086	else
23087		as_fn_error $? "${RAWCPP} does not preserve whitespace with or without -traditional.  I don't know what to do." "$LINENO" 5
23088	fi
23089fi
23090rm -f conftest.$ac_ext
23091
23092
23093
23094
23095# Quoted so that make will expand $(CWARNFLAGS) in makefiles to allow
23096# easier overrides at build time.
23097XSERVER_CFLAGS='$(CWARNFLAGS)'
23098
23099if  test "x$GCC" = xyes ; then
23100    XSERVER_CFLAGS="$XSERVER_CFLAGS -fno-strict-aliasing"
23101fi
23102
23103
23104# Check whether --with-dtrace was given.
23105if test ${with_dtrace+y}
23106then :
23107  withval=$with_dtrace; WDTRACE=$withval
23108else $as_nop
23109  WDTRACE=auto
23110fi
23111
23112if test "x$WDTRACE" = "xyes" -o "x$WDTRACE" = "xauto" ; then
23113	# Extract the first word of "dtrace", so it can be a program name with args.
23114set dummy dtrace; ac_word=$2
23115{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23116printf %s "checking for $ac_word... " >&6; }
23117if test ${ac_cv_path_DTRACE+y}
23118then :
23119  printf %s "(cached) " >&6
23120else $as_nop
23121  case $DTRACE in
23122  [\\/]* | ?:[\\/]*)
23123  ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path.
23124  ;;
23125  *)
23126  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23127as_dummy="$PATH:/usr/sbin"
23128for as_dir in $as_dummy
23129do
23130  IFS=$as_save_IFS
23131  case $as_dir in #(((
23132    '') as_dir=./ ;;
23133    */) ;;
23134    *) as_dir=$as_dir/ ;;
23135  esac
23136    for ac_exec_ext in '' $ac_executable_extensions; do
23137  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
23138    ac_cv_path_DTRACE="$as_dir$ac_word$ac_exec_ext"
23139    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
23140    break 2
23141  fi
23142done
23143  done
23144IFS=$as_save_IFS
23145
23146  test -z "$ac_cv_path_DTRACE" && ac_cv_path_DTRACE="not_found"
23147  ;;
23148esac
23149fi
23150DTRACE=$ac_cv_path_DTRACE
23151if test -n "$DTRACE"; then
23152  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
23153printf "%s\n" "$DTRACE" >&6; }
23154else
23155  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23156printf "%s\n" "no" >&6; }
23157fi
23158
23159
23160	if test "x$DTRACE" = "xnot_found" ; then
23161		if test "x$WDTRACE" = "xyes" ; then
23162			{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23163printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
23164as_fn_error $? "dtrace requested but not found
23165See \`config.log' for more details" "$LINENO" 5; }
23166		fi
23167		WDTRACE="no"
23168	else
23169		ac_fn_c_check_header_compile "$LINENO" "sys/sdt.h" "ac_cv_header_sys_sdt_h" "$ac_includes_default"
23170if test "x$ac_cv_header_sys_sdt_h" = xyes
23171then :
23172  HAS_SDT_H="yes"
23173else $as_nop
23174  HAS_SDT_H="no"
23175fi
23176
23177		if test "x$WDTRACE" = "xauto" -a "x$HAS_SDT_H" = "xno" ; then
23178			WDTRACE="no"
23179		fi
23180	fi
23181fi
23182if test "x$WDTRACE" != "xno" ; then
23183
23184printf "%s\n" "#define XSERVER_DTRACE 1" >>confdefs.h
23185
23186
23187# Solaris/OpenSolaris require dtrace -G to build dtrace probe information into
23188# object files, and require linking with those as relocatable objects, not .a
23189# archives. MacOS X handles all this in the normal compiler toolchain, and on
23190# some releases (like Tiger), will error out on dtrace -G.  For now, other
23191# platforms with Dtrace ports are assumed to support -G (the FreeBSD and Linux
23192# ports appear to, based on my web searches, but have not yet been tested).
23193	case $host_os in
23194		darwin*)	SPECIAL_DTRACE_OBJECTS=no ;;
23195		*)		SPECIAL_DTRACE_OBJECTS=yes ;;
23196	esac
23197fi
23198 if test "x$WDTRACE" != "xno"; then
23199  XSERVER_DTRACE_TRUE=
23200  XSERVER_DTRACE_FALSE='#'
23201else
23202  XSERVER_DTRACE_TRUE='#'
23203  XSERVER_DTRACE_FALSE=
23204fi
23205
23206 if test "x$SPECIAL_DTRACE_OBJECTS" = "xyes"; then
23207  SPECIAL_DTRACE_OBJECTS_TRUE=
23208  SPECIAL_DTRACE_OBJECTS_FALSE='#'
23209else
23210  SPECIAL_DTRACE_OBJECTS_TRUE='#'
23211  SPECIAL_DTRACE_OBJECTS_FALSE=
23212fi
23213
23214
23215ac_header_dirent=no
23216for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
23217  as_ac_Header=`printf "%s\n" "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
23218{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
23219printf %s "checking for $ac_hdr that defines DIR... " >&6; }
23220if eval test \${$as_ac_Header+y}
23221then :
23222  printf %s "(cached) " >&6
23223else $as_nop
23224  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23225/* end confdefs.h.  */
23226#include <sys/types.h>
23227#include <$ac_hdr>
23228
23229int
23230main (void)
23231{
23232if ((DIR *) 0)
23233return 0;
23234  ;
23235  return 0;
23236}
23237_ACEOF
23238if ac_fn_c_try_compile "$LINENO"
23239then :
23240  eval "$as_ac_Header=yes"
23241else $as_nop
23242  eval "$as_ac_Header=no"
23243fi
23244rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23245fi
23246eval ac_res=\$$as_ac_Header
23247	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23248printf "%s\n" "$ac_res" >&6; }
23249if eval test \"x\$"$as_ac_Header"\" = x"yes"
23250then :
23251  cat >>confdefs.h <<_ACEOF
23252#define `printf "%s\n" "HAVE_$ac_hdr" | $as_tr_cpp` 1
23253_ACEOF
23254
23255ac_header_dirent=$ac_hdr; break
23256fi
23257
23258done
23259# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
23260if test $ac_header_dirent = dirent.h; then
23261  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
23262printf %s "checking for library containing opendir... " >&6; }
23263if test ${ac_cv_search_opendir+y}
23264then :
23265  printf %s "(cached) " >&6
23266else $as_nop
23267  ac_func_search_save_LIBS=$LIBS
23268cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23269/* end confdefs.h.  */
23270
23271/* Override any GCC internal prototype to avoid an error.
23272   Use char because int might match the return type of a GCC
23273   builtin and then its argument prototype would still apply.  */
23274char opendir ();
23275int
23276main (void)
23277{
23278return opendir ();
23279  ;
23280  return 0;
23281}
23282_ACEOF
23283for ac_lib in '' dir
23284do
23285  if test -z "$ac_lib"; then
23286    ac_res="none required"
23287  else
23288    ac_res=-l$ac_lib
23289    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23290  fi
23291  if ac_fn_c_try_link "$LINENO"
23292then :
23293  ac_cv_search_opendir=$ac_res
23294fi
23295rm -f core conftest.err conftest.$ac_objext conftest.beam \
23296    conftest$ac_exeext
23297  if test ${ac_cv_search_opendir+y}
23298then :
23299  break
23300fi
23301done
23302if test ${ac_cv_search_opendir+y}
23303then :
23304
23305else $as_nop
23306  ac_cv_search_opendir=no
23307fi
23308rm conftest.$ac_ext
23309LIBS=$ac_func_search_save_LIBS
23310fi
23311{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
23312printf "%s\n" "$ac_cv_search_opendir" >&6; }
23313ac_res=$ac_cv_search_opendir
23314if test "$ac_res" != no
23315then :
23316  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23317
23318fi
23319
23320else
23321  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
23322printf %s "checking for library containing opendir... " >&6; }
23323if test ${ac_cv_search_opendir+y}
23324then :
23325  printf %s "(cached) " >&6
23326else $as_nop
23327  ac_func_search_save_LIBS=$LIBS
23328cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23329/* end confdefs.h.  */
23330
23331/* Override any GCC internal prototype to avoid an error.
23332   Use char because int might match the return type of a GCC
23333   builtin and then its argument prototype would still apply.  */
23334char opendir ();
23335int
23336main (void)
23337{
23338return opendir ();
23339  ;
23340  return 0;
23341}
23342_ACEOF
23343for ac_lib in '' x
23344do
23345  if test -z "$ac_lib"; then
23346    ac_res="none required"
23347  else
23348    ac_res=-l$ac_lib
23349    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23350  fi
23351  if ac_fn_c_try_link "$LINENO"
23352then :
23353  ac_cv_search_opendir=$ac_res
23354fi
23355rm -f core conftest.err conftest.$ac_objext conftest.beam \
23356    conftest$ac_exeext
23357  if test ${ac_cv_search_opendir+y}
23358then :
23359  break
23360fi
23361done
23362if test ${ac_cv_search_opendir+y}
23363then :
23364
23365else $as_nop
23366  ac_cv_search_opendir=no
23367fi
23368rm conftest.$ac_ext
23369LIBS=$ac_func_search_save_LIBS
23370fi
23371{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
23372printf "%s\n" "$ac_cv_search_opendir" >&6; }
23373ac_res=$ac_cv_search_opendir
23374if test "$ac_res" != no
23375then :
23376  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23377
23378fi
23379
23380fi
23381
23382# Autoupdate added the next two lines to ensure that your configure
23383# script's behavior did not change.  They are probably safe to remove.
23384
23385{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
23386printf %s "checking for egrep... " >&6; }
23387if test ${ac_cv_path_EGREP+y}
23388then :
23389  printf %s "(cached) " >&6
23390else $as_nop
23391  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
23392   then ac_cv_path_EGREP="$GREP -E"
23393   else
23394     if test -z "$EGREP"; then
23395  ac_path_EGREP_found=false
23396  # Loop through the user's path and test for each of PROGNAME-LIST
23397  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23398for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
23399do
23400  IFS=$as_save_IFS
23401  case $as_dir in #(((
23402    '') as_dir=./ ;;
23403    */) ;;
23404    *) as_dir=$as_dir/ ;;
23405  esac
23406    for ac_prog in egrep
23407   do
23408    for ac_exec_ext in '' $ac_executable_extensions; do
23409      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
23410      as_fn_executable_p "$ac_path_EGREP" || continue
23411# Check for GNU ac_path_EGREP and select it if it is found.
23412  # Check for GNU $ac_path_EGREP
23413case `"$ac_path_EGREP" --version 2>&1` in
23414*GNU*)
23415  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
23416*)
23417  ac_count=0
23418  printf %s 0123456789 >"conftest.in"
23419  while :
23420  do
23421    cat "conftest.in" "conftest.in" >"conftest.tmp"
23422    mv "conftest.tmp" "conftest.in"
23423    cp "conftest.in" "conftest.nl"
23424    printf "%s\n" 'EGREP' >> "conftest.nl"
23425    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
23426    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
23427    as_fn_arith $ac_count + 1 && ac_count=$as_val
23428    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
23429      # Best one so far, save it but keep looking for a better one
23430      ac_cv_path_EGREP="$ac_path_EGREP"
23431      ac_path_EGREP_max=$ac_count
23432    fi
23433    # 10*(2^10) chars as input seems more than enough
23434    test $ac_count -gt 10 && break
23435  done
23436  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
23437esac
23438
23439      $ac_path_EGREP_found && break 3
23440    done
23441  done
23442  done
23443IFS=$as_save_IFS
23444  if test -z "$ac_cv_path_EGREP"; then
23445    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
23446  fi
23447else
23448  ac_cv_path_EGREP=$EGREP
23449fi
23450
23451   fi
23452fi
23453{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
23454printf "%s\n" "$ac_cv_path_EGREP" >&6; }
23455 EGREP="$ac_cv_path_EGREP"
23456
23457
23458
23459ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
23460if test "x$ac_cv_header_fcntl_h" = xyes
23461then :
23462  printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
23463
23464fi
23465ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
23466if test "x$ac_cv_header_stdlib_h" = xyes
23467then :
23468  printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
23469
23470fi
23471ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
23472if test "x$ac_cv_header_string_h" = xyes
23473then :
23474  printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
23475
23476fi
23477ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
23478if test "x$ac_cv_header_unistd_h" = xyes
23479then :
23480  printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
23481
23482fi
23483ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
23484if test "x$ac_cv_header_dlfcn_h" = xyes
23485then :
23486  printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
23487
23488fi
23489ac_fn_c_check_header_compile "$LINENO" "stropts.h" "ac_cv_header_stropts_h" "$ac_includes_default"
23490if test "x$ac_cv_header_stropts_h" = xyes
23491then :
23492  printf "%s\n" "#define HAVE_STROPTS_H 1" >>confdefs.h
23493
23494fi
23495ac_fn_c_check_header_compile "$LINENO" "fnmatch.h" "ac_cv_header_fnmatch_h" "$ac_includes_default"
23496if test "x$ac_cv_header_fnmatch_h" = xyes
23497then :
23498  printf "%s\n" "#define HAVE_FNMATCH_H 1" >>confdefs.h
23499
23500fi
23501ac_fn_c_check_header_compile "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
23502if test "x$ac_cv_header_sys_mkdev_h" = xyes
23503then :
23504  printf "%s\n" "#define HAVE_SYS_MKDEV_H 1" >>confdefs.h
23505
23506fi
23507ac_fn_c_check_header_compile "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
23508if test "x$ac_cv_header_sys_sysmacros_h" = xyes
23509then :
23510  printf "%s\n" "#define HAVE_SYS_SYSMACROS_H 1" >>confdefs.h
23511
23512fi
23513ac_fn_c_check_header_compile "$LINENO" "sys/utsname.h" "ac_cv_header_sys_utsname_h" "$ac_includes_default"
23514if test "x$ac_cv_header_sys_utsname_h" = xyes
23515then :
23516  printf "%s\n" "#define HAVE_SYS_UTSNAME_H 1" >>confdefs.h
23517
23518fi
23519
23520
23521{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
23522printf %s "checking for an ANSI C-conforming const... " >&6; }
23523if test ${ac_cv_c_const+y}
23524then :
23525  printf %s "(cached) " >&6
23526else $as_nop
23527  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23528/* end confdefs.h.  */
23529
23530int
23531main (void)
23532{
23533
23534#ifndef __cplusplus
23535  /* Ultrix mips cc rejects this sort of thing.  */
23536  typedef int charset[2];
23537  const charset cs = { 0, 0 };
23538  /* SunOS 4.1.1 cc rejects this.  */
23539  char const *const *pcpcc;
23540  char **ppc;
23541  /* NEC SVR4.0.2 mips cc rejects this.  */
23542  struct point {int x, y;};
23543  static struct point const zero = {0,0};
23544  /* IBM XL C 1.02.0.0 rejects this.
23545     It does not let you subtract one const X* pointer from another in
23546     an arm of an if-expression whose if-part is not a constant
23547     expression */
23548  const char *g = "string";
23549  pcpcc = &g + (g ? g-g : 0);
23550  /* HPUX 7.0 cc rejects these. */
23551  ++pcpcc;
23552  ppc = (char**) pcpcc;
23553  pcpcc = (char const *const *) ppc;
23554  { /* SCO 3.2v4 cc rejects this sort of thing.  */
23555    char tx;
23556    char *t = &tx;
23557    char const *s = 0 ? (char *) 0 : (char const *) 0;
23558
23559    *t++ = 0;
23560    if (s) return 0;
23561  }
23562  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
23563    int x[] = {25, 17};
23564    const int *foo = &x[0];
23565    ++foo;
23566  }
23567  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23568    typedef const int *iptr;
23569    iptr p = 0;
23570    ++p;
23571  }
23572  { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
23573       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23574    struct s { int j; const int *ap[3]; } bx;
23575    struct s *b = &bx; b->j = 5;
23576  }
23577  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23578    const int foo = 10;
23579    if (!foo) return 0;
23580  }
23581  return !cs[0] && !zero.x;
23582#endif
23583
23584  ;
23585  return 0;
23586}
23587_ACEOF
23588if ac_fn_c_try_compile "$LINENO"
23589then :
23590  ac_cv_c_const=yes
23591else $as_nop
23592  ac_cv_c_const=no
23593fi
23594rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23595fi
23596{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
23597printf "%s\n" "$ac_cv_c_const" >&6; }
23598if test $ac_cv_c_const = no; then
23599
23600printf "%s\n" "#define const /**/" >>confdefs.h
23601
23602fi
23603
23604
23605  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for typeof syntax and keyword spelling" >&5
23606printf %s "checking for typeof syntax and keyword spelling... " >&6; }
23607if test ${ac_cv_c_typeof+y}
23608then :
23609  printf %s "(cached) " >&6
23610else $as_nop
23611  ac_cv_c_typeof=no
23612     for ac_kw in typeof __typeof__ no; do
23613       test $ac_kw = no && break
23614       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23615/* end confdefs.h.  */
23616
23617int
23618main (void)
23619{
23620
23621	   int value;
23622	   typedef struct {
23623		   char a [1
23624			   + ! (($ac_kw (value))
23625				(($ac_kw (value)) 0 < ($ac_kw (value)) -1
23626				 ? ($ac_kw (value)) - 1
23627				 : ~ (~ ($ac_kw (value)) 0
23628				      << sizeof ($ac_kw (value)))))]; }
23629	      ac__typeof_type_;
23630	   return
23631	     (! ((void) ((ac__typeof_type_ *) 0), 0));
23632
23633  ;
23634  return 0;
23635}
23636_ACEOF
23637if ac_fn_c_try_compile "$LINENO"
23638then :
23639  ac_cv_c_typeof=$ac_kw
23640fi
23641rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23642       test $ac_cv_c_typeof != no && break
23643     done
23644fi
23645{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_typeof" >&5
23646printf "%s\n" "$ac_cv_c_typeof" >&6; }
23647  if test $ac_cv_c_typeof != no; then
23648
23649printf "%s\n" "#define HAVE_TYPEOF 1" >>confdefs.h
23650
23651    if test $ac_cv_c_typeof != typeof; then
23652
23653printf "%s\n" "#define typeof $ac_cv_c_typeof" >>confdefs.h
23654
23655    fi
23656  fi
23657
23658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
23659printf %s "checking whether byte ordering is bigendian... " >&6; }
23660if test ${ac_cv_c_bigendian+y}
23661then :
23662  printf %s "(cached) " >&6
23663else $as_nop
23664  ac_cv_c_bigendian=unknown
23665    # See if we're dealing with a universal compiler.
23666    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23667/* end confdefs.h.  */
23668#ifndef __APPLE_CC__
23669	       not a universal capable compiler
23670	     #endif
23671	     typedef int dummy;
23672
23673_ACEOF
23674if ac_fn_c_try_compile "$LINENO"
23675then :
23676
23677	# Check for potential -arch flags.  It is not universal unless
23678	# there are at least two -arch flags with different values.
23679	ac_arch=
23680	ac_prev=
23681	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
23682	 if test -n "$ac_prev"; then
23683	   case $ac_word in
23684	     i?86 | x86_64 | ppc | ppc64)
23685	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
23686		 ac_arch=$ac_word
23687	       else
23688		 ac_cv_c_bigendian=universal
23689		 break
23690	       fi
23691	       ;;
23692	   esac
23693	   ac_prev=
23694	 elif test "x$ac_word" = "x-arch"; then
23695	   ac_prev=arch
23696	 fi
23697       done
23698fi
23699rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23700    if test $ac_cv_c_bigendian = unknown; then
23701      # See if sys/param.h defines the BYTE_ORDER macro.
23702      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23703/* end confdefs.h.  */
23704#include <sys/types.h>
23705	     #include <sys/param.h>
23706
23707int
23708main (void)
23709{
23710#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
23711		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
23712		     && LITTLE_ENDIAN)
23713	      bogus endian macros
23714	     #endif
23715
23716  ;
23717  return 0;
23718}
23719_ACEOF
23720if ac_fn_c_try_compile "$LINENO"
23721then :
23722  # It does; now see whether it defined to BIG_ENDIAN or not.
23723	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23724/* end confdefs.h.  */
23725#include <sys/types.h>
23726		#include <sys/param.h>
23727
23728int
23729main (void)
23730{
23731#if BYTE_ORDER != BIG_ENDIAN
23732		 not big endian
23733		#endif
23734
23735  ;
23736  return 0;
23737}
23738_ACEOF
23739if ac_fn_c_try_compile "$LINENO"
23740then :
23741  ac_cv_c_bigendian=yes
23742else $as_nop
23743  ac_cv_c_bigendian=no
23744fi
23745rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23746fi
23747rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23748    fi
23749    if test $ac_cv_c_bigendian = unknown; then
23750      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
23751      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23752/* end confdefs.h.  */
23753#include <limits.h>
23754
23755int
23756main (void)
23757{
23758#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
23759	      bogus endian macros
23760	     #endif
23761
23762  ;
23763  return 0;
23764}
23765_ACEOF
23766if ac_fn_c_try_compile "$LINENO"
23767then :
23768  # It does; now see whether it defined to _BIG_ENDIAN or not.
23769	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23770/* end confdefs.h.  */
23771#include <limits.h>
23772
23773int
23774main (void)
23775{
23776#ifndef _BIG_ENDIAN
23777		 not big endian
23778		#endif
23779
23780  ;
23781  return 0;
23782}
23783_ACEOF
23784if ac_fn_c_try_compile "$LINENO"
23785then :
23786  ac_cv_c_bigendian=yes
23787else $as_nop
23788  ac_cv_c_bigendian=no
23789fi
23790rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23791fi
23792rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23793    fi
23794    if test $ac_cv_c_bigendian = unknown; then
23795      # Compile a test program.
23796      if test "$cross_compiling" = yes
23797then :
23798  # Try to guess by grepping values from an object file.
23799	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23800/* end confdefs.h.  */
23801unsigned short int ascii_mm[] =
23802		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23803		unsigned short int ascii_ii[] =
23804		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23805		int use_ascii (int i) {
23806		  return ascii_mm[i] + ascii_ii[i];
23807		}
23808		unsigned short int ebcdic_ii[] =
23809		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23810		unsigned short int ebcdic_mm[] =
23811		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23812		int use_ebcdic (int i) {
23813		  return ebcdic_mm[i] + ebcdic_ii[i];
23814		}
23815		extern int foo;
23816
23817int
23818main (void)
23819{
23820return use_ascii (foo) == use_ebcdic (foo);
23821  ;
23822  return 0;
23823}
23824_ACEOF
23825if ac_fn_c_try_compile "$LINENO"
23826then :
23827  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
23828	      ac_cv_c_bigendian=yes
23829	    fi
23830	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23831	      if test "$ac_cv_c_bigendian" = unknown; then
23832		ac_cv_c_bigendian=no
23833	      else
23834		# finding both strings is unlikely to happen, but who knows?
23835		ac_cv_c_bigendian=unknown
23836	      fi
23837	    fi
23838fi
23839rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23840else $as_nop
23841  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23842/* end confdefs.h.  */
23843$ac_includes_default
23844int
23845main (void)
23846{
23847
23848	     /* Are we little or big endian?  From Harbison&Steele.  */
23849	     union
23850	     {
23851	       long int l;
23852	       char c[sizeof (long int)];
23853	     } u;
23854	     u.l = 1;
23855	     return u.c[sizeof (long int) - 1] == 1;
23856
23857  ;
23858  return 0;
23859}
23860_ACEOF
23861if ac_fn_c_try_run "$LINENO"
23862then :
23863  ac_cv_c_bigendian=no
23864else $as_nop
23865  ac_cv_c_bigendian=yes
23866fi
23867rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23868  conftest.$ac_objext conftest.beam conftest.$ac_ext
23869fi
23870
23871    fi
23872fi
23873{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
23874printf "%s\n" "$ac_cv_c_bigendian" >&6; }
23875 case $ac_cv_c_bigendian in #(
23876   yes)
23877
23878printf "%s\n" "#define X_BYTE_ORDER X_BIG_ENDIAN" >>confdefs.h
23879;; #(
23880   no)
23881
23882printf "%s\n" "#define X_BYTE_ORDER X_LITTLE_ENDIAN" >>confdefs.h
23883 ;; #(
23884   universal)
23885
23886printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
23887
23888     ;; #(
23889   *)
23890     as_fn_error $? "unknown endianness
23891 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
23892 esac
23893
23894
23895# The cast to long int works around a bug in the HP C Compiler
23896# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23897# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23898# This bug is HP SR number 8606223364.
23899{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
23900printf %s "checking size of unsigned long... " >&6; }
23901if test ${ac_cv_sizeof_unsigned_long+y}
23902then :
23903  printf %s "(cached) " >&6
23904else $as_nop
23905  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long"        "$ac_includes_default"
23906then :
23907
23908else $as_nop
23909  if test "$ac_cv_type_unsigned_long" = yes; then
23910     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23911printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
23912as_fn_error 77 "cannot compute sizeof (unsigned long)
23913See \`config.log' for more details" "$LINENO" 5; }
23914   else
23915     ac_cv_sizeof_unsigned_long=0
23916   fi
23917fi
23918
23919fi
23920{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
23921printf "%s\n" "$ac_cv_sizeof_unsigned_long" >&6; }
23922
23923
23924
23925printf "%s\n" "#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long" >>confdefs.h
23926
23927
23928if test "$ac_cv_sizeof_unsigned_long" = 8; then
23929
23930printf "%s\n" "#define _XSERVER64 1" >>confdefs.h
23931
23932fi
23933
23934
23935  ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
23936"
23937if test "x$ac_cv_type_pid_t" = xyes
23938then :
23939
23940else $as_nop
23941                                          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23942/* end confdefs.h.  */
23943
23944          #if defined _WIN64 && !defined __CYGWIN__
23945          LLP64
23946          #endif
23947
23948int
23949main (void)
23950{
23951
23952  ;
23953  return 0;
23954}
23955
23956_ACEOF
23957if ac_fn_c_try_compile "$LINENO"
23958then :
23959  ac_pid_type='int'
23960else $as_nop
23961  ac_pid_type='__int64'
23962fi
23963rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23964
23965printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h
23966
23967
23968fi
23969
23970
23971
23972ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
23973if test "x$ac_cv_func_dlopen" = xyes
23974then :
23975
23976else $as_nop
23977  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
23978printf %s "checking for dlopen in -ldl... " >&6; }
23979if test ${ac_cv_lib_dl_dlopen+y}
23980then :
23981  printf %s "(cached) " >&6
23982else $as_nop
23983  ac_check_lib_save_LIBS=$LIBS
23984LIBS="-ldl  $LIBS"
23985cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23986/* end confdefs.h.  */
23987
23988/* Override any GCC internal prototype to avoid an error.
23989   Use char because int might match the return type of a GCC
23990   builtin and then its argument prototype would still apply.  */
23991char dlopen ();
23992int
23993main (void)
23994{
23995return dlopen ();
23996  ;
23997  return 0;
23998}
23999_ACEOF
24000if ac_fn_c_try_link "$LINENO"
24001then :
24002  ac_cv_lib_dl_dlopen=yes
24003else $as_nop
24004  ac_cv_lib_dl_dlopen=no
24005fi
24006rm -f core conftest.err conftest.$ac_objext conftest.beam \
24007    conftest$ac_exeext conftest.$ac_ext
24008LIBS=$ac_check_lib_save_LIBS
24009fi
24010{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
24011printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
24012if test "x$ac_cv_lib_dl_dlopen" = xyes
24013then :
24014  DLOPEN_LIBS="-ldl"
24015fi
24016
24017fi
24018
24019
24020
24021ac_fn_c_check_func "$LINENO" "backtrace" "ac_cv_func_backtrace"
24022if test "x$ac_cv_func_backtrace" = xyes
24023then :
24024  printf "%s\n" "#define HAVE_BACKTRACE 1" >>confdefs.h
24025
24026fi
24027ac_fn_c_check_func "$LINENO" "geteuid" "ac_cv_func_geteuid"
24028if test "x$ac_cv_func_geteuid" = xyes
24029then :
24030  printf "%s\n" "#define HAVE_GETEUID 1" >>confdefs.h
24031
24032fi
24033ac_fn_c_check_func "$LINENO" "getuid" "ac_cv_func_getuid"
24034if test "x$ac_cv_func_getuid" = xyes
24035then :
24036  printf "%s\n" "#define HAVE_GETUID 1" >>confdefs.h
24037
24038fi
24039ac_fn_c_check_func "$LINENO" "issetugid" "ac_cv_func_issetugid"
24040if test "x$ac_cv_func_issetugid" = xyes
24041then :
24042  printf "%s\n" "#define HAVE_ISSETUGID 1" >>confdefs.h
24043
24044fi
24045ac_fn_c_check_func "$LINENO" "getresuid" "ac_cv_func_getresuid"
24046if test "x$ac_cv_func_getresuid" = xyes
24047then :
24048  printf "%s\n" "#define HAVE_GETRESUID 1" >>confdefs.h
24049
24050fi
24051ac_fn_c_check_func "$LINENO" "getdtablesize" "ac_cv_func_getdtablesize"
24052if test "x$ac_cv_func_getdtablesize" = xyes
24053then :
24054  printf "%s\n" "#define HAVE_GETDTABLESIZE 1" >>confdefs.h
24055
24056fi
24057ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
24058if test "x$ac_cv_func_getifaddrs" = xyes
24059then :
24060  printf "%s\n" "#define HAVE_GETIFADDRS 1" >>confdefs.h
24061
24062fi
24063ac_fn_c_check_func "$LINENO" "getpeereid" "ac_cv_func_getpeereid"
24064if test "x$ac_cv_func_getpeereid" = xyes
24065then :
24066  printf "%s\n" "#define HAVE_GETPEEREID 1" >>confdefs.h
24067
24068fi
24069ac_fn_c_check_func "$LINENO" "getpeerucred" "ac_cv_func_getpeerucred"
24070if test "x$ac_cv_func_getpeerucred" = xyes
24071then :
24072  printf "%s\n" "#define HAVE_GETPEERUCRED 1" >>confdefs.h
24073
24074fi
24075ac_fn_c_check_func "$LINENO" "getprogname" "ac_cv_func_getprogname"
24076if test "x$ac_cv_func_getprogname" = xyes
24077then :
24078  printf "%s\n" "#define HAVE_GETPROGNAME 1" >>confdefs.h
24079
24080fi
24081ac_fn_c_check_func "$LINENO" "getzoneid" "ac_cv_func_getzoneid"
24082if test "x$ac_cv_func_getzoneid" = xyes
24083then :
24084  printf "%s\n" "#define HAVE_GETZONEID 1" >>confdefs.h
24085
24086fi
24087ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
24088if test "x$ac_cv_func_mmap" = xyes
24089then :
24090  printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h
24091
24092fi
24093ac_fn_c_check_func "$LINENO" "posix_fallocate" "ac_cv_func_posix_fallocate"
24094if test "x$ac_cv_func_posix_fallocate" = xyes
24095then :
24096  printf "%s\n" "#define HAVE_POSIX_FALLOCATE 1" >>confdefs.h
24097
24098fi
24099ac_fn_c_check_func "$LINENO" "seteuid" "ac_cv_func_seteuid"
24100if test "x$ac_cv_func_seteuid" = xyes
24101then :
24102  printf "%s\n" "#define HAVE_SETEUID 1" >>confdefs.h
24103
24104fi
24105ac_fn_c_check_func "$LINENO" "shmctl64" "ac_cv_func_shmctl64"
24106if test "x$ac_cv_func_shmctl64" = xyes
24107then :
24108  printf "%s\n" "#define HAVE_SHMCTL64 1" >>confdefs.h
24109
24110fi
24111ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
24112if test "x$ac_cv_func_strncasecmp" = xyes
24113then :
24114  printf "%s\n" "#define HAVE_STRNCASECMP 1" >>confdefs.h
24115
24116fi
24117ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
24118if test "x$ac_cv_func_vasprintf" = xyes
24119then :
24120  printf "%s\n" "#define HAVE_VASPRINTF 1" >>confdefs.h
24121
24122fi
24123ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
24124if test "x$ac_cv_func_vsnprintf" = xyes
24125then :
24126  printf "%s\n" "#define HAVE_VSNPRINTF 1" >>confdefs.h
24127
24128fi
24129ac_fn_c_check_func "$LINENO" "walkcontext" "ac_cv_func_walkcontext"
24130if test "x$ac_cv_func_walkcontext" = xyes
24131then :
24132  printf "%s\n" "#define HAVE_WALKCONTEXT 1" >>confdefs.h
24133
24134fi
24135ac_fn_c_check_func "$LINENO" "setitimer" "ac_cv_func_setitimer"
24136if test "x$ac_cv_func_setitimer" = xyes
24137then :
24138  printf "%s\n" "#define HAVE_SETITIMER 1" >>confdefs.h
24139
24140fi
24141ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
24142if test "x$ac_cv_func_poll" = xyes
24143then :
24144  printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h
24145
24146fi
24147ac_fn_c_check_func "$LINENO" "epoll_create1" "ac_cv_func_epoll_create1"
24148if test "x$ac_cv_func_epoll_create1" = xyes
24149then :
24150  printf "%s\n" "#define HAVE_EPOLL_CREATE1 1" >>confdefs.h
24151
24152fi
24153ac_fn_c_check_func "$LINENO" "mkostemp" "ac_cv_func_mkostemp"
24154if test "x$ac_cv_func_mkostemp" = xyes
24155then :
24156  printf "%s\n" "#define HAVE_MKOSTEMP 1" >>confdefs.h
24157
24158fi
24159ac_fn_c_check_func "$LINENO" "memfd_create" "ac_cv_func_memfd_create"
24160if test "x$ac_cv_func_memfd_create" = xyes
24161then :
24162  printf "%s\n" "#define HAVE_MEMFD_CREATE 1" >>confdefs.h
24163
24164fi
24165ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
24166if test "x$ac_cv_func_sigprocmask" = xyes
24167then :
24168  printf "%s\n" "#define HAVE_SIGPROCMASK 1" >>confdefs.h
24169
24170fi
24171ac_fn_c_check_func "$LINENO" "isastream" "ac_cv_func_isastream"
24172if test "x$ac_cv_func_isastream" = xyes
24173then :
24174  printf "%s\n" "#define HAVE_ISASTREAM 1" >>confdefs.h
24175
24176fi
24177
24178
24179ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray"
24180if test "x$ac_cv_func_reallocarray" = xyes
24181then :
24182  printf "%s\n" "#define HAVE_REALLOCARRAY 1" >>confdefs.h
24183
24184else $as_nop
24185  case " $LIBOBJS " in
24186  *" reallocarray.$ac_objext "* ) ;;
24187  *) LIBOBJS="$LIBOBJS reallocarray.$ac_objext"
24188 ;;
24189esac
24190
24191fi
24192ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
24193if test "x$ac_cv_func_strcasecmp" = xyes
24194then :
24195  printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
24196
24197else $as_nop
24198  case " $LIBOBJS " in
24199  *" strcasecmp.$ac_objext "* ) ;;
24200  *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext"
24201 ;;
24202esac
24203
24204fi
24205ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr"
24206if test "x$ac_cv_func_strcasestr" = xyes
24207then :
24208  printf "%s\n" "#define HAVE_STRCASESTR 1" >>confdefs.h
24209
24210else $as_nop
24211  case " $LIBOBJS " in
24212  *" strcasestr.$ac_objext "* ) ;;
24213  *) LIBOBJS="$LIBOBJS strcasestr.$ac_objext"
24214 ;;
24215esac
24216
24217fi
24218ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
24219if test "x$ac_cv_func_strlcat" = xyes
24220then :
24221  printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h
24222
24223else $as_nop
24224  case " $LIBOBJS " in
24225  *" strlcat.$ac_objext "* ) ;;
24226  *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
24227 ;;
24228esac
24229
24230fi
24231ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
24232if test "x$ac_cv_func_strlcpy" = xyes
24233then :
24234  printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
24235
24236else $as_nop
24237  case " $LIBOBJS " in
24238  *" strlcpy.$ac_objext "* ) ;;
24239  *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
24240 ;;
24241esac
24242
24243fi
24244ac_fn_c_check_func "$LINENO" "strndup" "ac_cv_func_strndup"
24245if test "x$ac_cv_func_strndup" = xyes
24246then :
24247  printf "%s\n" "#define HAVE_STRNDUP 1" >>confdefs.h
24248
24249else $as_nop
24250  case " $LIBOBJS " in
24251  *" strndup.$ac_objext "* ) ;;
24252  *) LIBOBJS="$LIBOBJS strndup.$ac_objext"
24253 ;;
24254esac
24255
24256fi
24257ac_fn_c_check_func "$LINENO" "timingsafe_memcmp" "ac_cv_func_timingsafe_memcmp"
24258if test "x$ac_cv_func_timingsafe_memcmp" = xyes
24259then :
24260  printf "%s\n" "#define HAVE_TIMINGSAFE_MEMCMP 1" >>confdefs.h
24261
24262else $as_nop
24263  case " $LIBOBJS " in
24264  *" timingsafe_memcmp.$ac_objext "* ) ;;
24265  *) LIBOBJS="$LIBOBJS timingsafe_memcmp.$ac_objext"
24266 ;;
24267esac
24268
24269fi
24270
24271 if test "x$ac_cv_func_poll" = "xyes"; then
24272  POLL_TRUE=
24273  POLL_FALSE='#'
24274else
24275  POLL_TRUE='#'
24276  POLL_FALSE=
24277fi
24278
24279
24280# Checks for non-standard functions and fallback to libbsd if we can
24281# We only check for arc4random_buf, because if we have that, we don't
24282# need/use getentropy.
24283cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24284/* end confdefs.h.  */
24285
24286/* Override any GCC internal prototype to avoid an error.
24287   Use char because int might match the return type of a GCC
24288   builtin and then its argument prototype would still apply.  */
24289char arc4random_buf ();
24290int
24291main (void)
24292{
24293return arc4random_buf ();
24294  ;
24295  return 0;
24296}
24297_ACEOF
24298if ac_fn_c_try_link "$LINENO"
24299then :
24300  TRY_LIBBSD="no"
24301else $as_nop
24302  TRY_LIBBSD="yes"
24303fi
24304rm -f core conftest.err conftest.$ac_objext conftest.beam \
24305    conftest$ac_exeext conftest.$ac_ext
24306if test "x$TRY_LIBBSD" = "xyes"
24307then :
24308
24309pkg_failed=no
24310{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libbsd-overlay" >&5
24311printf %s "checking for libbsd-overlay... " >&6; }
24312
24313if test -n "$LIBBSD_CFLAGS"; then
24314    pkg_cv_LIBBSD_CFLAGS="$LIBBSD_CFLAGS"
24315 elif test -n "$PKG_CONFIG"; then
24316    if test -n "$PKG_CONFIG" && \
24317    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libbsd-overlay\""; } >&5
24318  ($PKG_CONFIG --exists --print-errors "libbsd-overlay") 2>&5
24319  ac_status=$?
24320  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24321  test $ac_status = 0; }; then
24322  pkg_cv_LIBBSD_CFLAGS=`$PKG_CONFIG --cflags "libbsd-overlay" 2>/dev/null`
24323		      test "x$?" != "x0" && pkg_failed=yes
24324else
24325  pkg_failed=yes
24326fi
24327 else
24328    pkg_failed=untried
24329fi
24330if test -n "$LIBBSD_LIBS"; then
24331    pkg_cv_LIBBSD_LIBS="$LIBBSD_LIBS"
24332 elif test -n "$PKG_CONFIG"; then
24333    if test -n "$PKG_CONFIG" && \
24334    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libbsd-overlay\""; } >&5
24335  ($PKG_CONFIG --exists --print-errors "libbsd-overlay") 2>&5
24336  ac_status=$?
24337  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24338  test $ac_status = 0; }; then
24339  pkg_cv_LIBBSD_LIBS=`$PKG_CONFIG --libs "libbsd-overlay" 2>/dev/null`
24340		      test "x$?" != "x0" && pkg_failed=yes
24341else
24342  pkg_failed=yes
24343fi
24344 else
24345    pkg_failed=untried
24346fi
24347
24348
24349
24350if test $pkg_failed = yes; then
24351        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24352printf "%s\n" "no" >&6; }
24353
24354if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24355        _pkg_short_errors_supported=yes
24356else
24357        _pkg_short_errors_supported=no
24358fi
24359        if test $_pkg_short_errors_supported = yes; then
24360                LIBBSD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libbsd-overlay" 2>&1`
24361        else
24362                LIBBSD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libbsd-overlay" 2>&1`
24363        fi
24364        # Put the nasty error message in config.log where it belongs
24365        echo "$LIBBSD_PKG_ERRORS" >&5
24366
24367        :
24368elif test $pkg_failed = untried; then
24369        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24370printf "%s\n" "no" >&6; }
24371        :
24372else
24373        LIBBSD_CFLAGS=$pkg_cv_LIBBSD_CFLAGS
24374        LIBBSD_LIBS=$pkg_cv_LIBBSD_LIBS
24375        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24376printf "%s\n" "yes" >&6; }
24377
24378	CFLAGS="$CFLAGS $LIBBSD_CFLAGS"
24379	LIBS="$LIBS $LIBBSD_LIBS"
24380
24381fi
24382fi
24383
24384ac_fn_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
24385" "$ac_c_undeclared_builtin_options" "CFLAGS"
24386if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes
24387then :
24388  ac_have_decl=1
24389else $as_nop
24390  ac_have_decl=0
24391fi
24392printf "%s\n" "#define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl" >>confdefs.h
24393
24394
24395
24396{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SO_PEERCRED in sys/socket.h" >&5
24397printf %s "checking for SO_PEERCRED in sys/socket.h... " >&6; }
24398if test ${xorg_cv_sys_have_so_peercred+y}
24399then :
24400  printf %s "(cached) " >&6
24401else $as_nop
24402  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24403/* end confdefs.h.  */
24404
24405#include <sys/types.h>
24406#include <sys/socket.h>
24407#ifdef SO_PEERCRED
24408yes_have_so_peercred
24409#endif
24410
24411_ACEOF
24412if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24413  $EGREP "yes_have_so_peercred" >/dev/null 2>&1
24414then :
24415  xorg_cv_sys_have_so_peercred=yes
24416else $as_nop
24417  xorg_cv_sys_have_so_peercred=no
24418fi
24419rm -rf conftest*
24420
24421fi
24422{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_sys_have_so_peercred" >&5
24423printf "%s\n" "$xorg_cv_sys_have_so_peercred" >&6; }
24424
24425if test "x$ac_cv_func_getpeereid" = xno && test "x$ac_cv_func_getpeerucred" = xno && test "x$xorg_cv_sys_have_so_peercred" = xno ; then
24426
24427printf "%s\n" "#define NO_LOCAL_CLIENT_CRED 1" >>confdefs.h
24428
24429fi
24430
24431{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
24432printf %s "checking for sqrt in -lm... " >&6; }
24433if test ${ac_cv_lib_m_sqrt+y}
24434then :
24435  printf %s "(cached) " >&6
24436else $as_nop
24437  ac_check_lib_save_LIBS=$LIBS
24438LIBS="-lm  $LIBS"
24439cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24440/* end confdefs.h.  */
24441
24442/* Override any GCC internal prototype to avoid an error.
24443   Use char because int might match the return type of a GCC
24444   builtin and then its argument prototype would still apply.  */
24445char sqrt ();
24446int
24447main (void)
24448{
24449return sqrt ();
24450  ;
24451  return 0;
24452}
24453_ACEOF
24454if ac_fn_c_try_link "$LINENO"
24455then :
24456  ac_cv_lib_m_sqrt=yes
24457else $as_nop
24458  ac_cv_lib_m_sqrt=no
24459fi
24460rm -f core conftest.err conftest.$ac_objext conftest.beam \
24461    conftest$ac_exeext conftest.$ac_ext
24462LIBS=$ac_check_lib_save_LIBS
24463fi
24464{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
24465printf "%s\n" "$ac_cv_lib_m_sqrt" >&6; }
24466if test "x$ac_cv_lib_m_sqrt" = xyes
24467then :
24468  printf "%s\n" "#define HAVE_LIBM 1" >>confdefs.h
24469
24470  LIBS="-lm $LIBS"
24471
24472fi
24473
24474ac_fn_c_check_func "$LINENO" "cbrt" "ac_cv_func_cbrt"
24475if test "x$ac_cv_func_cbrt" = xyes
24476then :
24477  printf "%s\n" "#define HAVE_CBRT 1" >>confdefs.h
24478
24479fi
24480
24481
24482# Check whether --enable-agp was given.
24483if test ${enable_agp+y}
24484then :
24485  enableval=$enable_agp; AGP=$enableval
24486else $as_nop
24487  AGP=auto
24488fi
24489
24490if test "x$AGP" = "xauto" ; then
24491           for ac_header in linux/agpgart.h sys/agpio.h sys/agpgart.h
24492do :
24493  as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
24494ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
24495if eval test \"x\$"$as_ac_Header"\" = x"yes"
24496then :
24497  cat >>confdefs.h <<_ACEOF
24498#define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
24499_ACEOF
24500 AGP=yes
24501fi
24502
24503done
24504fi
24505 if test "x$AGP" = xyes; then
24506  AGP_TRUE=
24507  AGP_FALSE='#'
24508else
24509  AGP_TRUE='#'
24510  AGP_FALSE=
24511fi
24512
24513
24514       for ac_header in linux/fb.h
24515do :
24516  ac_fn_c_check_header_compile "$LINENO" "linux/fb.h" "ac_cv_header_linux_fb_h" "$ac_includes_default"
24517if test "x$ac_cv_header_linux_fb_h" = xyes
24518then :
24519  printf "%s\n" "#define HAVE_LINUX_FB_H 1" >>confdefs.h
24520 FBDEV=yes
24521fi
24522
24523done
24524 if test "x$FBDEV" = xyes; then
24525  FBDEVHW_TRUE=
24526  FBDEVHW_FALSE='#'
24527else
24528  FBDEVHW_TRUE='#'
24529  FBDEVHW_FALSE=
24530fi
24531
24532
24533       for ac_header in sys/linker.h
24534do :
24535  ac_fn_c_check_header_compile "$LINENO" "sys/linker.h" "ac_cv_header_sys_linker_h" "#include <sys/param.h>
24536"
24537if test "x$ac_cv_header_sys_linker_h" = xyes
24538then :
24539  printf "%s\n" "#define HAVE_SYS_LINKER_H 1" >>confdefs.h
24540 ac_cv_sys_linker_h=yes
24541else $as_nop
24542  ac_cv_sys_linker_h=no
24543fi
24544
24545done
24546 if test "x$ac_cv_sys_linker_h" = xyes; then
24547  FREEBSD_KLDLOAD_TRUE=
24548  FREEBSD_KLDLOAD_FALSE='#'
24549else
24550  FREEBSD_KLDLOAD_TRUE='#'
24551  FREEBSD_KLDLOAD_FALSE=
24552fi
24553
24554
24555{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SYSV IPC" >&5
24556printf %s "checking for SYSV IPC... " >&6; }
24557if test ${ac_cv_sysv_ipc+y}
24558then :
24559  printf %s "(cached) " >&6
24560else $as_nop
24561  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24562/* end confdefs.h.  */
24563
24564#include <sys/types.h>
24565#include <sys/ipc.h>
24566#include <sys/shm.h>
24567#include <sys/stat.h>
24568
24569int
24570main (void)
24571{
24572
24573{
24574    int id;
24575    id = shmget(IPC_PRIVATE, 512, S_IRUSR | S_IWUSR);
24576    if (id < 0) return -1;
24577    return shmctl(id, IPC_RMID, 0);
24578}
24579  ;
24580  return 0;
24581}
24582_ACEOF
24583if ac_fn_c_try_link "$LINENO"
24584then :
24585  ac_cv_sysv_ipc=yes
24586else $as_nop
24587  ac_cv_sysv_ipc=no
24588fi
24589rm -f core conftest.err conftest.$ac_objext conftest.beam \
24590    conftest$ac_exeext conftest.$ac_ext
24591fi
24592{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sysv_ipc" >&5
24593printf "%s\n" "$ac_cv_sysv_ipc" >&6; }
24594if test "x$ac_cv_sysv_ipc" = xyes; then
24595
24596printf "%s\n" "#define HAVE_SYSV_IPC 1" >>confdefs.h
24597
24598fi
24599
24600if test -c /dev/xf86 ; then
24601
24602printf "%s\n" "#define HAS_APERTURE_DRV 1" >>confdefs.h
24603
24604fi
24605
24606ac_fn_c_check_header_compile "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default"
24607if test "x$ac_cv_header_execinfo_h" = xyes
24608then :
24609
24610    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for backtrace in -lc" >&5
24611printf %s "checking for backtrace in -lc... " >&6; }
24612if test ${ac_cv_lib_c_backtrace+y}
24613then :
24614  printf %s "(cached) " >&6
24615else $as_nop
24616  ac_check_lib_save_LIBS=$LIBS
24617LIBS="-lc  $LIBS"
24618cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24619/* end confdefs.h.  */
24620
24621/* Override any GCC internal prototype to avoid an error.
24622   Use char because int might match the return type of a GCC
24623   builtin and then its argument prototype would still apply.  */
24624char backtrace ();
24625int
24626main (void)
24627{
24628return backtrace ();
24629  ;
24630  return 0;
24631}
24632_ACEOF
24633if ac_fn_c_try_link "$LINENO"
24634then :
24635  ac_cv_lib_c_backtrace=yes
24636else $as_nop
24637  ac_cv_lib_c_backtrace=no
24638fi
24639rm -f core conftest.err conftest.$ac_objext conftest.beam \
24640    conftest$ac_exeext conftest.$ac_ext
24641LIBS=$ac_check_lib_save_LIBS
24642fi
24643{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_backtrace" >&5
24644printf "%s\n" "$ac_cv_lib_c_backtrace" >&6; }
24645if test "x$ac_cv_lib_c_backtrace" = xyes
24646then :
24647
24648
24649printf "%s\n" "#define HAVE_BACKTRACE 1" >>confdefs.h
24650
24651
24652printf "%s\n" "#define HAVE_EXECINFO_H 1" >>confdefs.h
24653
24654
24655fi
24656
24657
24658fi
24659
24660
24661DEFAULT_INT10="x86emu"
24662
24663
24664case $host_cpu in
24665  alpha*)
24666	ALPHA_VIDEO=yes
24667	case $host_os in
24668	        *freebsd*)	SYS_LIBS=-lio ;;
24669		*netbsd*)
24670printf "%s\n" "#define USE_ALPHA_PIO 1" >>confdefs.h
24671 ;;
24672	esac
24673	GLX_ARCH_DEFINES="-D__GLX_ALIGN64 -mieee"
24674	;;
24675  arm*)
24676	ARM_VIDEO=yes
24677	DEFAULT_INT10="stub"
24678	;;
24679  i*86)
24680	I386_VIDEO=yes
24681	case $host_os in
24682		*freebsd*)	printf "%s\n" "#define USE_DEV_IO 1" >>confdefs.h
24683 ;;
24684		*dragonfly*)	printf "%s\n" "#define USE_DEV_IO 1" >>confdefs.h
24685 ;;
24686		*netbsd*)	printf "%s\n" "#define USE_I386_IOPL 1" >>confdefs.h
24687
24688				SYS_LIBS=-li386
24689				;;
24690		*openbsd*)	printf "%s\n" "#define USE_I386_IOPL 1" >>confdefs.h
24691
24692				SYS_LIBS=-li386
24693				;;
24694	esac
24695        ;;
24696  powerpc*)
24697	PPC_VIDEO=yes
24698	case $host_os in
24699		*freebsd*)	DEFAULT_INT10=stub ;;
24700	esac
24701	;;
24702  sparc*)
24703	SPARC64_VIDEO=yes
24704	BSD_ARCH_SOURCES="sparc64_video.c ioperm_noop.c"
24705	GLX_ARCH_DEFINES="-D__GLX_ALIGN64"
24706	;;
24707  x86_64*|amd64*)
24708	I386_VIDEO=yes
24709	case $host_os in
24710		*freebsd*)
24711printf "%s\n" "#define USE_DEV_IO 1" >>confdefs.h
24712 ;;
24713		*dragonfly*)
24714printf "%s\n" "#define USE_DEV_IO 1" >>confdefs.h
24715 ;;
24716		*netbsd*)
24717printf "%s\n" "#define USE_I386_IOPL 1" >>confdefs.h
24718
24719				SYS_LIBS=-lx86_64
24720				;;
24721		*openbsd*)
24722printf "%s\n" "#define USE_AMD64_IOPL 1" >>confdefs.h
24723
24724				SYS_LIBS=-lamd64
24725				;;
24726	esac
24727	GLX_ARCH_DEFINES="-D__GLX_ALIGN64"
24728	;;
24729  ia64*)
24730  	GLX_ARCH_DEFINES="-D__GLX_ALIGN64"
24731	;;
24732  s390*)
24733  	GLX_ARCH_DEFINES="-D__GLX_ALIGN64"
24734	;;
24735esac
24736
24737
24738 if test "x$ALPHA_VIDEO" = xyes; then
24739  ALPHA_VIDEO_TRUE=
24740  ALPHA_VIDEO_FALSE='#'
24741else
24742  ALPHA_VIDEO_TRUE='#'
24743  ALPHA_VIDEO_FALSE=
24744fi
24745
24746 if test "x$ARM_VIDEO" = xyes; then
24747  ARM_VIDEO_TRUE=
24748  ARM_VIDEO_FALSE='#'
24749else
24750  ARM_VIDEO_TRUE='#'
24751  ARM_VIDEO_FALSE=
24752fi
24753
24754 if test "x$I386_VIDEO" = xyes; then
24755  I386_VIDEO_TRUE=
24756  I386_VIDEO_FALSE='#'
24757else
24758  I386_VIDEO_TRUE='#'
24759  I386_VIDEO_FALSE=
24760fi
24761
24762 if test "x$PPC_VIDEO" = xyes; then
24763  PPC_VIDEO_TRUE=
24764  PPC_VIDEO_FALSE='#'
24765else
24766  PPC_VIDEO_TRUE='#'
24767  PPC_VIDEO_FALSE=
24768fi
24769
24770 if test "x$SPARC64_VIDEO" = xyes; then
24771  SPARC64_VIDEO_TRUE=
24772  SPARC64_VIDEO_FALSE='#'
24773else
24774  SPARC64_VIDEO_TRUE='#'
24775  SPARC64_VIDEO_FALSE=
24776fi
24777
24778
24779DRI=no
24780case $host_os in
24781  *freebsd* | *dragonfly*)
24782	case $host_os in
24783		kfreebsd*-gnu) ;;
24784		*)
24785printf "%s\n" "#define CSRG_BASED 1" >>confdefs.h
24786 ;;
24787	esac
24788
24789printf "%s\n" "#define PCCONS_SUPPORT 1" >>confdefs.h
24790
24791
24792printf "%s\n" "#define PCVT_SUPPORT 1" >>confdefs.h
24793
24794
24795printf "%s\n" "#define SYSCONS_SUPPORT 1" >>confdefs.h
24796
24797	DRI=yes
24798	;;
24799  *netbsd*)
24800
24801printf "%s\n" "#define CSRG_BASED 1" >>confdefs.h
24802
24803
24804printf "%s\n" "#define PCCONS_SUPPORT 1" >>confdefs.h
24805
24806
24807printf "%s\n" "#define PCVT_SUPPORT 1" >>confdefs.h
24808
24809
24810printf "%s\n" "#define WSCONS_SUPPORT 1" >>confdefs.h
24811
24812	DRI=yes
24813	;;
24814  *openbsd*)
24815
24816printf "%s\n" "#define CSRG_BASED 1" >>confdefs.h
24817
24818
24819printf "%s\n" "#define PCVT_SUPPORT 1" >>confdefs.h
24820
24821
24822printf "%s\n" "#define WSCONS_SUPPORT 1" >>confdefs.h
24823
24824	;;
24825  *linux*)
24826	DRI=yes
24827	;;
24828  *solaris*)
24829	DRI=yes
24830	;;
24831  darwin*)
24832
24833printf "%s\n" "#define CSRG_BASED 1" >>confdefs.h
24834
24835	;;
24836  cygwin*|mingw*)
24837	CFLAGS="$CFLAGS -DFD_SETSIZE=512"
24838	;;
24839esac
24840
24841PVMAJOR=`echo $PACKAGE_VERSION | cut -d . -f 1`
24842
24843VENDOR_RELEASE="((10000000) + (($PVMAJOR) * 100000) + (($PVM) * 1000) + $PVP)"
24844VENDOR_MAN_VERSION="Version ${PACKAGE_VERSION}"
24845
24846VENDOR_NAME="The X.Org Foundation"
24847VENDOR_NAME_SHORT="X.Org"
24848VENDOR_WEB="http://wiki.x.org"
24849
24850# Check whether --enable-werror was given.
24851if test ${enable_werror+y}
24852then :
24853  enableval=$enable_werror; as_fn_error $? "--enable-werror has been replaced by --enable-strict-compilation" "$LINENO" 5
24854fi
24855
24856
24857# Check whether --enable-debug was given.
24858if test ${enable_debug+y}
24859then :
24860  enableval=$enable_debug; DEBUGGING=$enableval
24861else $as_nop
24862  DEBUGGING=no
24863fi
24864
24865
24866# Check whether --with-int10 was given.
24867if test ${with_int10+y}
24868then :
24869  withval=$with_int10; INT10="$withval"
24870else $as_nop
24871  INT10="$DEFAULT_INT10"
24872fi
24873
24874
24875# Check whether --with-vendor-name was given.
24876if test ${with_vendor_name+y}
24877then :
24878  withval=$with_vendor_name;  VENDOR_NAME="$withval"
24879fi
24880
24881
24882# Check whether --with-vendor-name-short was given.
24883if test ${with_vendor_name_short+y}
24884then :
24885  withval=$with_vendor_name_short;  VENDOR_NAME_SHORT="$withval"
24886fi
24887
24888
24889# Check whether --with-vendor-web was given.
24890if test ${with_vendor_web+y}
24891then :
24892  withval=$with_vendor_web;  VENDOR_WEB="$withval"
24893fi
24894
24895
24896# Check whether --with-module-dir was given.
24897if test ${with_module_dir+y}
24898then :
24899  withval=$with_module_dir;  moduledir="$withval"
24900else $as_nop
24901   moduledir="${libdir}/xorg/modules"
24902fi
24903
24904
24905# Check whether --with-log-dir was given.
24906if test ${with_log_dir+y}
24907then :
24908  withval=$with_log_dir;  logdir="$withval"
24909else $as_nop
24910   logdir="$localstatedir/log"
24911fi
24912
24913
24914# Check whether --with-builder-addr was given.
24915if test ${with_builder_addr+y}
24916then :
24917  withval=$with_builder_addr;  BUILDERADDR="$withval"
24918else $as_nop
24919   BUILDERADDR="xorg@lists.freedesktop.org"
24920fi
24921
24922
24923# Check whether --with-builderstring was given.
24924if test ${with_builderstring+y}
24925then :
24926  withval=$with_builderstring;  BUILDERSTRING="$withval"
24927
24928fi
24929
24930# Check whether --enable-listen-tcp was given.
24931if test ${enable_listen_tcp+y}
24932then :
24933  enableval=$enable_listen_tcp; LISTEN_TCP=$enableval
24934else $as_nop
24935  LISTEN_TCP=no
24936fi
24937
24938# Check whether --enable-listen-unix was given.
24939if test ${enable_listen_unix+y}
24940then :
24941  enableval=$enable_listen_unix; LISTEN_UNIX=$enableval
24942else $as_nop
24943  LISTEN_UNIX=yes
24944fi
24945
24946
24947# Check whether --enable-listen-local was given.
24948if test ${enable_listen_local+y}
24949then :
24950  enableval=$enable_listen_local; LISTEN_LOCAL=$enableval
24951else $as_nop
24952  LISTEN_LOCAL=yes
24953fi
24954
24955
24956case $host_os in
24957    linux*)
24958        FALLBACK_INPUT_DRIVER="libinput"
24959        ;;
24960    *)
24961        FALLBACK_INPUT_DRIVER=""
24962        ;;
24963esac
24964
24965# Check whether --with-fallback-input-driver was given.
24966if test ${with_fallback_input_driver+y}
24967then :
24968  withval=$with_fallback_input_driver;  FALLBACK_INPUT_DRIVER=$withval
24969fi
24970
24971if test "x$FALLBACK_INPUT_DRIVER" = "xno"; then
24972    FALLBACK_INPUT_DRIVER=""
24973fi
24974{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fallback input driver" >&5
24975printf %s "checking for fallback input driver... " >&6; }
24976{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FALLBACK_INPUT_DRIVER" >&5
24977printf "%s\n" "$FALLBACK_INPUT_DRIVER" >&6; }
24978
24979printf "%s\n" "#define FALLBACK_INPUT_DRIVER \"$FALLBACK_INPUT_DRIVER\"" >>confdefs.h
24980
24981
24982
24983
24984
24985	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for root directory for font files" >&5
24986printf %s "checking for root directory for font files... " >&6; }
24987
24988# Check whether --with-fontrootdir was given.
24989if test ${with_fontrootdir+y}
24990then :
24991  withval=$with_fontrootdir; FONTROOTDIR="$withval"
24992fi
24993
24994	# if --with-fontrootdir not specified...
24995	if test "x${FONTROOTDIR}" = "x"; then
24996		FONTROOTDIR=`$PKG_CONFIG --variable=fontrootdir fontutil`
24997	fi
24998	# ...and if pkg-config didn't find fontdir in fontutil.pc...
24999	if test "x${FONTROOTDIR}" = "x"; then
25000		FONTROOTDIR="${datadir}/fonts/X11"
25001	fi
25002
25003	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${FONTROOTDIR}" >&5
25004printf "%s\n" "${FONTROOTDIR}" >&6; }
25005
25006
25007
25008
25009	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for directory for misc files" >&5
25010printf %s "checking for directory for misc files... " >&6; }
25011
25012# Check whether --with-fontmiscdir was given.
25013if test ${with_fontmiscdir+y}
25014then :
25015  withval=$with_fontmiscdir; FONTMISCDIR="${withval}"
25016else $as_nop
25017  FONTMISCDIR='${FONTROOTDIR}/misc'
25018fi
25019
25020
25021	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${FONTMISCDIR}" >&5
25022printf "%s\n" "${FONTMISCDIR}" >&6; }
25023
25024
25025
25026
25027	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for directory for OTF files" >&5
25028printf %s "checking for directory for OTF files... " >&6; }
25029
25030# Check whether --with-fontotfdir was given.
25031if test ${with_fontotfdir+y}
25032then :
25033  withval=$with_fontotfdir; FONTOTFDIR="${withval}"
25034else $as_nop
25035  FONTOTFDIR='${FONTROOTDIR}/OTF'
25036fi
25037
25038
25039	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${FONTOTFDIR}" >&5
25040printf "%s\n" "${FONTOTFDIR}" >&6; }
25041
25042
25043
25044
25045	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for directory for TTF files" >&5
25046printf %s "checking for directory for TTF files... " >&6; }
25047
25048# Check whether --with-fontttfdir was given.
25049if test ${with_fontttfdir+y}
25050then :
25051  withval=$with_fontttfdir; FONTTTFDIR="${withval}"
25052else $as_nop
25053  FONTTTFDIR='${FONTROOTDIR}/TTF'
25054fi
25055
25056
25057	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${FONTTTFDIR}" >&5
25058printf "%s\n" "${FONTTTFDIR}" >&6; }
25059
25060
25061
25062
25063	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for directory for Type1 files" >&5
25064printf %s "checking for directory for Type1 files... " >&6; }
25065
25066# Check whether --with-fonttype1dir was given.
25067if test ${with_fonttype1dir+y}
25068then :
25069  withval=$with_fonttype1dir; FONTTYPE1DIR="${withval}"
25070else $as_nop
25071  FONTTYPE1DIR='${FONTROOTDIR}/Type1'
25072fi
25073
25074
25075	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${FONTTYPE1DIR}" >&5
25076printf "%s\n" "${FONTTYPE1DIR}" >&6; }
25077
25078
25079
25080
25081	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for directory for 75dpi files" >&5
25082printf %s "checking for directory for 75dpi files... " >&6; }
25083
25084# Check whether --with-font75dpidir was given.
25085if test ${with_font75dpidir+y}
25086then :
25087  withval=$with_font75dpidir; FONT75DPIDIR="${withval}"
25088else $as_nop
25089  FONT75DPIDIR='${FONTROOTDIR}/75dpi'
25090fi
25091
25092
25093	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${FONT75DPIDIR}" >&5
25094printf "%s\n" "${FONT75DPIDIR}" >&6; }
25095
25096
25097
25098
25099	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for directory for 100dpi files" >&5
25100printf %s "checking for directory for 100dpi files... " >&6; }
25101
25102# Check whether --with-font100dpidir was given.
25103if test ${with_font100dpidir+y}
25104then :
25105  withval=$with_font100dpidir; FONT100DPIDIR="${withval}"
25106else $as_nop
25107  FONT100DPIDIR='${FONTROOTDIR}/100dpi'
25108fi
25109
25110
25111	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${FONT100DPIDIR}" >&5
25112printf "%s\n" "${FONT100DPIDIR}" >&6; }
25113
25114
25115DEFAULT_FONT_PATH="${FONTMISCDIR}/,${FONTTTFDIR}/,${FONTOTFDIR}/,${FONTTYPE1DIR}/,${FONT100DPIDIR}/,${FONT75DPIDIR}/"
25116case $host_os in
25117    darwin*) DEFAULT_FONT_PATH="${DEFAULT_FONT_PATH},/Library/Fonts,/System/Library/Fonts" ;;
25118esac
25119
25120
25121# Check whether --with-default-font-path was given.
25122if test ${with_default_font_path+y}
25123then :
25124  withval=$with_default_font_path;  FONTPATH="$withval"
25125else $as_nop
25126   FONTPATH="${DEFAULT_FONT_PATH}"
25127fi
25128
25129
25130{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for default font path" >&5
25131printf %s "checking for default font path... " >&6; }
25132{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FONTPATH" >&5
25133printf "%s\n" "$FONTPATH" >&6; }
25134
25135
25136# Check whether --with-xkb-path was given.
25137if test ${with_xkb_path+y}
25138then :
25139  withval=$with_xkb_path;  XKBPATH="$withval"
25140else $as_nop
25141   XKBPATH="auto"
25142fi
25143
25144
25145# Check whether --with-xkb-output was given.
25146if test ${with_xkb_output+y}
25147then :
25148  withval=$with_xkb_output;  XKBOUTPUT="$withval"
25149else $as_nop
25150   XKBOUTPUT="compiled"
25151fi
25152
25153
25154# Check whether --with-default-xkb-rules was given.
25155if test ${with_default_xkb_rules+y}
25156then :
25157  withval=$with_default_xkb_rules;  XKB_DFLT_RULES="$withval"
25158else $as_nop
25159   XKB_DFLT_RULES=""
25160fi
25161
25162
25163# Check whether --with-default-xkb-model was given.
25164if test ${with_default_xkb_model+y}
25165then :
25166  withval=$with_default_xkb_model;  XKB_DFLT_MODEL="$withval"
25167else $as_nop
25168   XKB_DFLT_MODEL="pc105"
25169fi
25170
25171
25172# Check whether --with-default-xkb-layout was given.
25173if test ${with_default_xkb_layout+y}
25174then :
25175  withval=$with_default_xkb_layout;  XKB_DFLT_LAYOUT="$withval"
25176else $as_nop
25177   XKB_DFLT_LAYOUT="us"
25178fi
25179
25180
25181# Check whether --with-default-xkb-variant was given.
25182if test ${with_default_xkb_variant+y}
25183then :
25184  withval=$with_default_xkb_variant;  XKB_DFLT_VARIANT="$withval"
25185else $as_nop
25186   XKB_DFLT_VARIANT=""
25187fi
25188
25189
25190# Check whether --with-default-xkb-options was given.
25191if test ${with_default_xkb_options+y}
25192then :
25193  withval=$with_default_xkb_options;  XKB_DFLT_OPTIONS="$withval"
25194else $as_nop
25195   XKB_DFLT_OPTIONS=""
25196fi
25197
25198
25199# Check whether --with-serverconfig-path was given.
25200if test ${with_serverconfig_path+y}
25201then :
25202  withval=$with_serverconfig_path;  SERVERCONFIG="$withval"
25203else $as_nop
25204   SERVERCONFIG="${libdir}/xorg"
25205fi
25206
25207
25208# Check whether --with-apple-applications-dir was given.
25209if test ${with_apple_applications_dir+y}
25210then :
25211  withval=$with_apple_applications_dir;  APPLE_APPLICATIONS_DIR="${withval}"
25212else $as_nop
25213   APPLE_APPLICATIONS_DIR="/Applications/Utilities"
25214fi
25215
25216
25217
25218# Check whether --with-apple-application-name was given.
25219if test ${with_apple_application_name+y}
25220then :
25221  withval=$with_apple_application_name;  APPLE_APPLICATION_NAME="${withval}"
25222else $as_nop
25223   APPLE_APPLICATION_NAME="X11"
25224fi
25225
25226
25227
25228# Check whether --with-bundle-id-prefix was given.
25229if test ${with_bundle_id_prefix+y}
25230then :
25231  withval=$with_bundle_id_prefix;  BUNDLE_ID_PREFIX="${withval}"
25232fi
25233
25234
25235
25236printf "%s\n" "#define BUNDLE_ID_PREFIX \"$BUNDLE_ID_PREFIX\"" >>confdefs.h
25237
25238
25239
25240# Check whether --with-bundle-version was given.
25241if test ${with_bundle_version+y}
25242then :
25243  withval=$with_bundle_version;  BUNDLE_VERSION="${withval}"
25244else $as_nop
25245   BUNDLE_VERSION="21.1.9"
25246fi
25247
25248
25249
25250# Check whether --with-bundle-version-string was given.
25251if test ${with_bundle_version_string+y}
25252then :
25253  withval=$with_bundle_version_string;  BUNDLE_VERSION_STRING="${withval}"
25254else $as_nop
25255   BUNDLE_VERSION_STRING="${PACKAGE_VERSION}"
25256fi
25257
25258
25259# Check whether --enable-sparkle was given.
25260if test ${enable_sparkle+y}
25261then :
25262  enableval=$enable_sparkle;  XQUARTZ_SPARKLE="${enableval}"
25263else $as_nop
25264   XQUARTZ_SPARKLE="no"
25265fi
25266
25267
25268
25269# Check whether --with-sparkle-feed-url was given.
25270if test ${with_sparkle_feed_url+y}
25271then :
25272  withval=$with_sparkle_feed_url;  XQUARTZ_SPARKLE_FEED_URL="${withval}"
25273else $as_nop
25274   XQUARTZ_SPARKLE_FEED_URL="https://www.xquartz.org/releases/sparkle/release.xml"
25275fi
25276
25277
25278# Check whether --enable-visibility was given.
25279if test ${enable_visibility+y}
25280then :
25281  enableval=$enable_visibility; SYMBOL_VISIBILITY=$enableval
25282else $as_nop
25283  SYMBOL_VISIBILITY=auto
25284fi
25285
25286
25287
25288# Check whether --with-khronos-spec-dir was given.
25289if test ${with_khronos_spec_dir+y}
25290then :
25291  withval=$with_khronos_spec_dir; KHRONOS_SPEC_DIR="${withval}"
25292else $as_nop
25293  KHRONOS_SPEC_DIR=auto
25294fi
25295
25296
25297# Check whether --enable-composite was given.
25298if test ${enable_composite+y}
25299then :
25300  enableval=$enable_composite; COMPOSITE=$enableval
25301else $as_nop
25302  COMPOSITE=yes
25303fi
25304
25305# Check whether --enable-mitshm was given.
25306if test ${enable_mitshm+y}
25307then :
25308  enableval=$enable_mitshm; MITSHM=$enableval
25309else $as_nop
25310  MITSHM=auto
25311fi
25312
25313# Check whether --enable-xres was given.
25314if test ${enable_xres+y}
25315then :
25316  enableval=$enable_xres; RES=$enableval
25317else $as_nop
25318  RES=yes
25319fi
25320
25321# Check whether --enable-record was given.
25322if test ${enable_record+y}
25323then :
25324  enableval=$enable_record; RECORD=$enableval
25325else $as_nop
25326  RECORD=yes
25327fi
25328
25329# Check whether --enable-xv was given.
25330if test ${enable_xv+y}
25331then :
25332  enableval=$enable_xv; XV=$enableval
25333else $as_nop
25334  XV=yes
25335fi
25336
25337# Check whether --enable-xvmc was given.
25338if test ${enable_xvmc+y}
25339then :
25340  enableval=$enable_xvmc; XVMC=$enableval
25341else $as_nop
25342  XVMC=yes
25343fi
25344
25345# Check whether --enable-dga was given.
25346if test ${enable_dga+y}
25347then :
25348  enableval=$enable_dga; DGA=$enableval
25349else $as_nop
25350  DGA=auto
25351fi
25352
25353# Check whether --enable-screensaver was given.
25354if test ${enable_screensaver+y}
25355then :
25356  enableval=$enable_screensaver; SCREENSAVER=$enableval
25357else $as_nop
25358  SCREENSAVER=yes
25359fi
25360
25361# Check whether --enable-xdmcp was given.
25362if test ${enable_xdmcp+y}
25363then :
25364  enableval=$enable_xdmcp; XDMCP=$enableval
25365else $as_nop
25366  XDMCP=auto
25367fi
25368
25369# Check whether --enable-xdm-auth-1 was given.
25370if test ${enable_xdm_auth_1+y}
25371then :
25372  enableval=$enable_xdm_auth_1; XDMAUTH=$enableval
25373else $as_nop
25374  XDMAUTH=auto
25375fi
25376
25377# Check whether --enable-glx was given.
25378if test ${enable_glx+y}
25379then :
25380  enableval=$enable_glx; GLX=$enableval
25381else $as_nop
25382  GLX=yes
25383fi
25384
25385# Check whether --enable-dri was given.
25386if test ${enable_dri+y}
25387then :
25388  enableval=$enable_dri; DRI=$enableval
25389fi
25390
25391# Check whether --enable-dri2 was given.
25392if test ${enable_dri2+y}
25393then :
25394  enableval=$enable_dri2; DRI2=$enableval
25395else $as_nop
25396  DRI2=auto
25397fi
25398
25399# Check whether --enable-dri3 was given.
25400if test ${enable_dri3+y}
25401then :
25402  enableval=$enable_dri3; DRI3=$enableval
25403else $as_nop
25404  DRI3=auto
25405fi
25406
25407# Check whether --enable-present was given.
25408if test ${enable_present+y}
25409then :
25410  enableval=$enable_present; PRESENT=$enableval
25411else $as_nop
25412  PRESENT=yes
25413fi
25414
25415# Check whether --enable-xinerama was given.
25416if test ${enable_xinerama+y}
25417then :
25418  enableval=$enable_xinerama; XINERAMA=$enableval
25419else $as_nop
25420  XINERAMA=yes
25421fi
25422
25423# Check whether --enable-xf86vidmode was given.
25424if test ${enable_xf86vidmode+y}
25425then :
25426  enableval=$enable_xf86vidmode; XF86VIDMODE=$enableval
25427else $as_nop
25428  XF86VIDMODE=auto
25429fi
25430
25431# Check whether --enable-xace was given.
25432if test ${enable_xace+y}
25433then :
25434  enableval=$enable_xace; XACE=$enableval
25435else $as_nop
25436  XACE=yes
25437fi
25438
25439# Check whether --enable-xselinux was given.
25440if test ${enable_xselinux+y}
25441then :
25442  enableval=$enable_xselinux; XSELINUX=$enableval
25443else $as_nop
25444  XSELINUX=no
25445fi
25446
25447# Check whether --enable-xcsecurity was given.
25448if test ${enable_xcsecurity+y}
25449then :
25450  enableval=$enable_xcsecurity; XCSECURITY=$enableval
25451else $as_nop
25452  XCSECURITY=no
25453fi
25454
25455# Check whether --enable-dbe was given.
25456if test ${enable_dbe+y}
25457then :
25458  enableval=$enable_dbe; DBE=$enableval
25459else $as_nop
25460  DBE=yes
25461fi
25462
25463# Check whether --enable-xf86bigfont was given.
25464if test ${enable_xf86bigfont+y}
25465then :
25466  enableval=$enable_xf86bigfont; XF86BIGFONT=$enableval
25467else $as_nop
25468  XF86BIGFONT=no
25469fi
25470
25471# Check whether --enable-dpms was given.
25472if test ${enable_dpms+y}
25473then :
25474  enableval=$enable_dpms; DPMSExtension=$enableval
25475else $as_nop
25476  DPMSExtension=yes
25477fi
25478
25479# Check whether --enable-config-udev was given.
25480if test ${enable_config_udev+y}
25481then :
25482  enableval=$enable_config_udev; CONFIG_UDEV=$enableval
25483else $as_nop
25484  CONFIG_UDEV=auto
25485fi
25486
25487# Check whether --enable-config-udev-kms was given.
25488if test ${enable_config_udev_kms+y}
25489then :
25490  enableval=$enable_config_udev_kms; CONFIG_UDEV_KMS=$enableval
25491else $as_nop
25492  CONFIG_UDEV_KMS=auto
25493fi
25494
25495# Check whether --enable-config-hal was given.
25496if test ${enable_config_hal+y}
25497then :
25498  enableval=$enable_config_hal; CONFIG_HAL=$enableval
25499else $as_nop
25500  CONFIG_HAL=auto
25501fi
25502
25503# Check whether --enable-config-wscons was given.
25504if test ${enable_config_wscons+y}
25505then :
25506  enableval=$enable_config_wscons; CONFIG_WSCONS=$enableval
25507else $as_nop
25508  CONFIG_WSCONS=auto
25509fi
25510
25511# Check whether --enable-xfree86-utils was given.
25512if test ${enable_xfree86_utils+y}
25513then :
25514  enableval=$enable_xfree86_utils; XF86UTILS=$enableval
25515else $as_nop
25516  XF86UTILS=yes
25517fi
25518
25519# Check whether --enable-vgahw was given.
25520if test ${enable_vgahw+y}
25521then :
25522  enableval=$enable_vgahw; VGAHW=$enableval
25523else $as_nop
25524  VGAHW=yes
25525fi
25526
25527# Check whether --enable-int10-module was given.
25528if test ${enable_int10_module+y}
25529then :
25530  enableval=$enable_int10_module; INT10MODULE=$enableval
25531else $as_nop
25532  INT10MODULE=yes
25533fi
25534
25535# Check whether --enable-windowsdri was given.
25536if test ${enable_windowsdri+y}
25537then :
25538  enableval=$enable_windowsdri; WINDOWSDRI=$enableval
25539else $as_nop
25540  WINDOWSDRI=auto
25541fi
25542
25543# Check whether --enable-libdrm was given.
25544if test ${enable_libdrm+y}
25545then :
25546  enableval=$enable_libdrm; DRM=$enableval
25547else $as_nop
25548  DRM=yes
25549fi
25550
25551# Check whether --enable-clientids was given.
25552if test ${enable_clientids+y}
25553then :
25554  enableval=$enable_clientids; CLIENTIDS=$enableval
25555else $as_nop
25556  CLIENTIDS=yes
25557fi
25558
25559# Check whether --enable-pciaccess was given.
25560if test ${enable_pciaccess+y}
25561then :
25562  enableval=$enable_pciaccess; PCI=$enableval
25563else $as_nop
25564  PCI=yes
25565fi
25566
25567# Check whether --enable-linux_acpi was given.
25568if test ${enable_linux_acpi+y}
25569then :
25570  enableval=$enable_linux_acpi; enable_linux_acpi=$enableval
25571else $as_nop
25572  enable_linux_acpi=yes
25573fi
25574
25575# Check whether --enable-linux_apm was given.
25576if test ${enable_linux_apm+y}
25577then :
25578  enableval=$enable_linux_apm; enable_linux_apm=$enableval
25579else $as_nop
25580  enable_linux_apm=yes
25581fi
25582
25583# Check whether --enable-systemd-logind was given.
25584if test ${enable_systemd_logind+y}
25585then :
25586  enableval=$enable_systemd_logind; SYSTEMD_LOGIND=$enableval
25587else $as_nop
25588  SYSTEMD_LOGIND=auto
25589fi
25590
25591# Check whether --enable-suid-wrapper was given.
25592if test ${enable_suid_wrapper+y}
25593then :
25594  enableval=$enable_suid_wrapper; SUID_WRAPPER=$enableval
25595else $as_nop
25596  SUID_WRAPPER=no
25597fi
25598
25599
25600# Check whether --enable-xorg was given.
25601if test ${enable_xorg+y}
25602then :
25603  enableval=$enable_xorg; XORG=$enableval
25604else $as_nop
25605  XORG=auto
25606fi
25607
25608# Check whether --enable-xvfb was given.
25609if test ${enable_xvfb+y}
25610then :
25611  enableval=$enable_xvfb; XVFB=$enableval
25612else $as_nop
25613  XVFB=yes
25614fi
25615
25616# Check whether --enable-xnest was given.
25617if test ${enable_xnest+y}
25618then :
25619  enableval=$enable_xnest; XNEST=$enableval
25620else $as_nop
25621  XNEST=auto
25622fi
25623
25624# Check whether --enable-xquartz was given.
25625if test ${enable_xquartz+y}
25626then :
25627  enableval=$enable_xquartz; XQUARTZ=$enableval
25628else $as_nop
25629  XQUARTZ=auto
25630fi
25631
25632# Check whether --enable-standalone-xpbproxy was given.
25633if test ${enable_standalone_xpbproxy+y}
25634then :
25635  enableval=$enable_standalone_xpbproxy; STANDALONE_XPBPROXY=$enableval
25636else $as_nop
25637  STANDALONE_XPBPROXY=no
25638fi
25639
25640# Check whether --enable-xwin was given.
25641if test ${enable_xwin+y}
25642then :
25643  enableval=$enable_xwin; XWIN=$enableval
25644else $as_nop
25645  XWIN=auto
25646fi
25647
25648# Check whether --enable-glamor was given.
25649if test ${enable_glamor+y}
25650then :
25651  enableval=$enable_glamor; GLAMOR=$enableval
25652else $as_nop
25653  GLAMOR=auto
25654fi
25655
25656# Check whether --enable-xf86-input-inputtest was given.
25657if test ${enable_xf86_input_inputtest+y}
25658then :
25659  enableval=$enable_xf86_input_inputtest; XORG_DRIVER_INPUT_INPUTTEST=$enableval
25660else $as_nop
25661  XORG_DRIVER_INPUT_INPUTTEST=yes
25662fi
25663
25664# Check whether --enable-kdrive was given.
25665if test ${enable_kdrive+y}
25666then :
25667  enableval=$enable_kdrive; KDRIVE=$enableval
25668else $as_nop
25669  KDRIVE=no
25670fi
25671
25672# Check whether --enable-xephyr was given.
25673if test ${enable_xephyr+y}
25674then :
25675  enableval=$enable_xephyr; XEPHYR=$enableval
25676else $as_nop
25677  XEPHYR=auto
25678fi
25679
25680# Check whether --enable-libunwind was given.
25681if test ${enable_libunwind+y}
25682then :
25683  enableval=$enable_libunwind; LIBUNWIND="$enableval"
25684else $as_nop
25685  LIBUNWIND="auto"
25686fi
25687
25688# Check whether --enable-xshmfence was given.
25689if test ${enable_xshmfence+y}
25690then :
25691  enableval=$enable_xshmfence; XSHMFENCE="$enableval"
25692else $as_nop
25693  XSHMFENCE="auto"
25694fi
25695
25696
25697
25698# Check whether --enable-install-setuid was given.
25699if test ${enable_install_setuid+y}
25700then :
25701  enableval=$enable_install_setuid; SETUID=$enableval
25702else $as_nop
25703  SETUID=auto
25704fi
25705
25706{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking to see if we can install the Xorg server as root" >&5
25707printf %s "checking to see if we can install the Xorg server as root... " >&6; }
25708if test "x$SETUID" = "xauto" ; then
25709	case $host_os in
25710	    cygwin*)		SETUID="no"  ;;
25711	    mingw*)		SETUID="no"  ;;
25712	    darwin*)		SETUID="no"  ;;
25713	    *)
25714	   	case $host_cpu in
25715		    sparc)	SETUID="no"  ;;
25716		    *)		SETUID="yes" ;;
25717		esac
25718	esac
25719	if test "x$SETUID" = xyes; then
25720		touch testfile
25721		chown root testfile > /dev/null 2>&1 || SETUID="no"
25722		rm -f testfile
25723	fi
25724fi
25725{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SETUID" >&5
25726printf "%s\n" "$SETUID" >&6; }
25727 if test "x$SETUID" = "xyes"; then
25728  INSTALL_SETUID_TRUE=
25729  INSTALL_SETUID_FALSE='#'
25730else
25731  INSTALL_SETUID_TRUE='#'
25732  INSTALL_SETUID_FALSE=
25733fi
25734
25735
25736
25737
25738# Transport selection macro from xtrans.m4
25739
25740
25741 case $host_os in
25742	mingw*)	unixdef="no"   ;;
25743	*)	unixdef="yes"  ;;
25744 esac
25745 # Check whether --enable-unix-transport was given.
25746if test ${enable_unix_transport+y}
25747then :
25748  enableval=$enable_unix_transport; UNIXCONN=$enableval
25749else $as_nop
25750  UNIXCONN=$unixdef
25751fi
25752
25753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5
25754printf %s "checking if Xtrans should support UNIX socket connections... " >&6; }
25755 if test "$UNIXCONN" = "yes"; then
25756
25757printf "%s\n" "#define UNIXCONN 1" >>confdefs.h
25758
25759 fi
25760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5
25761printf "%s\n" "$UNIXCONN" >&6; }
25762 # Check whether --enable-tcp-transport was given.
25763if test ${enable_tcp_transport+y}
25764then :
25765  enableval=$enable_tcp_transport; TCPCONN=$enableval
25766else $as_nop
25767  TCPCONN=yes
25768fi
25769
25770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5
25771printf %s "checking if Xtrans should support TCP socket connections... " >&6; }
25772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5
25773printf "%s\n" "$TCPCONN" >&6; }
25774 if test "$TCPCONN" = "yes"; then
25775
25776printf "%s\n" "#define TCPCONN 1" >>confdefs.h
25777
25778
25779 # SVR4 hides these in libraries other than libc
25780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
25781printf %s "checking for library containing socket... " >&6; }
25782if test ${ac_cv_search_socket+y}
25783then :
25784  printf %s "(cached) " >&6
25785else $as_nop
25786  ac_func_search_save_LIBS=$LIBS
25787cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25788/* end confdefs.h.  */
25789
25790/* Override any GCC internal prototype to avoid an error.
25791   Use char because int might match the return type of a GCC
25792   builtin and then its argument prototype would still apply.  */
25793char socket ();
25794int
25795main (void)
25796{
25797return socket ();
25798  ;
25799  return 0;
25800}
25801_ACEOF
25802for ac_lib in '' socket
25803do
25804  if test -z "$ac_lib"; then
25805    ac_res="none required"
25806  else
25807    ac_res=-l$ac_lib
25808    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25809  fi
25810  if ac_fn_c_try_link "$LINENO"
25811then :
25812  ac_cv_search_socket=$ac_res
25813fi
25814rm -f core conftest.err conftest.$ac_objext conftest.beam \
25815    conftest$ac_exeext
25816  if test ${ac_cv_search_socket+y}
25817then :
25818  break
25819fi
25820done
25821if test ${ac_cv_search_socket+y}
25822then :
25823
25824else $as_nop
25825  ac_cv_search_socket=no
25826fi
25827rm conftest.$ac_ext
25828LIBS=$ac_func_search_save_LIBS
25829fi
25830{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
25831printf "%s\n" "$ac_cv_search_socket" >&6; }
25832ac_res=$ac_cv_search_socket
25833if test "$ac_res" != no
25834then :
25835  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25836
25837fi
25838
25839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
25840printf %s "checking for library containing gethostbyname... " >&6; }
25841if test ${ac_cv_search_gethostbyname+y}
25842then :
25843  printf %s "(cached) " >&6
25844else $as_nop
25845  ac_func_search_save_LIBS=$LIBS
25846cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25847/* end confdefs.h.  */
25848
25849/* Override any GCC internal prototype to avoid an error.
25850   Use char because int might match the return type of a GCC
25851   builtin and then its argument prototype would still apply.  */
25852char gethostbyname ();
25853int
25854main (void)
25855{
25856return gethostbyname ();
25857  ;
25858  return 0;
25859}
25860_ACEOF
25861for ac_lib in '' nsl
25862do
25863  if test -z "$ac_lib"; then
25864    ac_res="none required"
25865  else
25866    ac_res=-l$ac_lib
25867    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25868  fi
25869  if ac_fn_c_try_link "$LINENO"
25870then :
25871  ac_cv_search_gethostbyname=$ac_res
25872fi
25873rm -f core conftest.err conftest.$ac_objext conftest.beam \
25874    conftest$ac_exeext
25875  if test ${ac_cv_search_gethostbyname+y}
25876then :
25877  break
25878fi
25879done
25880if test ${ac_cv_search_gethostbyname+y}
25881then :
25882
25883else $as_nop
25884  ac_cv_search_gethostbyname=no
25885fi
25886rm conftest.$ac_ext
25887LIBS=$ac_func_search_save_LIBS
25888fi
25889{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
25890printf "%s\n" "$ac_cv_search_gethostbyname" >&6; }
25891ac_res=$ac_cv_search_gethostbyname
25892if test "$ac_res" != no
25893then :
25894  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25895
25896fi
25897
25898 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then
25899   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5
25900printf %s "checking for main in -lws2_32... " >&6; }
25901if test ${ac_cv_lib_ws2_32_main+y}
25902then :
25903  printf %s "(cached) " >&6
25904else $as_nop
25905  ac_check_lib_save_LIBS=$LIBS
25906LIBS="-lws2_32  $LIBS"
25907cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25908/* end confdefs.h.  */
25909
25910
25911int
25912main (void)
25913{
25914return main ();
25915  ;
25916  return 0;
25917}
25918_ACEOF
25919if ac_fn_c_try_link "$LINENO"
25920then :
25921  ac_cv_lib_ws2_32_main=yes
25922else $as_nop
25923  ac_cv_lib_ws2_32_main=no
25924fi
25925rm -f core conftest.err conftest.$ac_objext conftest.beam \
25926    conftest$ac_exeext conftest.$ac_ext
25927LIBS=$ac_check_lib_save_LIBS
25928fi
25929{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5
25930printf "%s\n" "$ac_cv_lib_ws2_32_main" >&6; }
25931if test "x$ac_cv_lib_ws2_32_main" = xyes
25932then :
25933  printf "%s\n" "#define HAVE_LIBWS2_32 1" >>confdefs.h
25934
25935  LIBS="-lws2_32 $LIBS"
25936
25937fi
25938
25939 fi
25940
25941 # Needs to come after above checks for libsocket & libnsl for SVR4 systems
25942 # Check whether --enable-ipv6 was given.
25943if test ${enable_ipv6+y}
25944then :
25945  enableval=$enable_ipv6; IPV6CONN=$enableval
25946else $as_nop
25947  ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
25948if test "x$ac_cv_func_getaddrinfo" = xyes
25949then :
25950  IPV6CONN=yes
25951else $as_nop
25952  IPV6CONN=no
25953fi
25954
25955fi
25956
25957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5
25958printf %s "checking if IPv6 support should be built... " >&6; }
25959 if test "$IPV6CONN" = "yes"; then
25960
25961printf "%s\n" "#define IPv6 1" >>confdefs.h
25962
25963 fi
25964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5
25965printf "%s\n" "$IPV6CONN" >&6; }
25966
25967 # 4.3BSD-Reno added a new member to struct sockaddr_in
25968 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "
25969#include <sys/types.h>
25970#include <sys/socket.h>
25971#include <netinet/in.h>
25972
25973"
25974if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes
25975then :
25976
25977printf "%s\n" "#define BSD44SOCKETS 1" >>confdefs.h
25978
25979fi
25980
25981
25982 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc.
25983 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
25984$ac_includes_default
25985#include <sys/socket.h>
25986"
25987if test "x$ac_cv_type_socklen_t" = xyes
25988then :
25989
25990printf "%s\n" "#define HAVE_SOCKLEN_T 1" >>confdefs.h
25991
25992
25993fi
25994
25995
25996 # XPG4v2/UNIX95 added msg_control - check to see if we need to define
25997 # _XOPEN_SOURCE to get it (such as on Solaris)
25998 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
25999$ac_includes_default
26000#include <sys/socket.h>
26001
26002"
26003if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes
26004then :
26005
26006fi
26007
26008 # First try for Solaris in C99 compliant mode, which requires XPG6/UNIX03
26009 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
26010     unset ac_cv_member_struct_msghdr_msg_control
26011     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=600" >&5
26012printf "%s\n" "$as_me: trying again with _XOPEN_SOURCE=600" >&6;}
26013     ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
26014#define _XOPEN_SOURCE 600
26015$ac_includes_default
26016#include <sys/socket.h>
26017
26018"
26019if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes
26020then :
26021
26022printf "%s\n" "#define _XOPEN_SOURCE 600" >>confdefs.h
26023
26024
26025fi
26026
26027 fi
26028 # If that didn't work, fall back to XPG5/UNIX98 with C89
26029 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
26030     unset ac_cv_member_struct_msghdr_msg_control
26031     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=500" >&5
26032printf "%s\n" "$as_me: trying again with _XOPEN_SOURCE=500" >&6;}
26033     ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
26034#define _XOPEN_SOURCE 500
26035$ac_includes_default
26036#include <sys/socket.h>
26037
26038"
26039if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes
26040then :
26041
26042printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
26043
26044
26045fi
26046
26047 fi
26048
26049
26050
26051 fi
26052 case $host_os in
26053	solaris*|sco*|sysv4*)	localdef="yes" ;;
26054	*)			localdef="no"  ;;
26055 esac
26056 # Check whether --enable-local-transport was given.
26057if test ${enable_local_transport+y}
26058then :
26059  enableval=$enable_local_transport; LOCALCONN=$enableval
26060else $as_nop
26061  LOCALCONN=$localdef
26062fi
26063
26064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5
26065printf %s "checking if Xtrans should support os-specific local connections... " >&6; }
26066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5
26067printf "%s\n" "$LOCALCONN" >&6; }
26068 if test "$LOCALCONN" = "yes"; then
26069
26070printf "%s\n" "#define LOCALCONN 1" >>confdefs.h
26071
26072 fi
26073
26074 # Other functions Xtrans may need
26075 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
26076if test "x$ac_cv_func_strcasecmp" = xyes
26077then :
26078  printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
26079
26080fi
26081ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
26082if test "x$ac_cv_func_strlcpy" = xyes
26083then :
26084  printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
26085
26086fi
26087
26088
26089
26090
26091# Secure RPC detection macro from xtrans.m4
26092
26093 # Check whether --enable-secure-rpc was given.
26094if test ${enable_secure_rpc+y}
26095then :
26096  enableval=$enable_secure_rpc; SECURE_RPC=$enableval
26097else $as_nop
26098  SECURE_RPC="try"
26099fi
26100
26101
26102 if test "x$SECURE_RPC" = "xyes" -o "x$SECURE_RPC" = "xtry" ; then
26103	FOUND_SECURE_RPC="no"
26104
26105  for ac_func in authdes_seccreate authdes_create
26106do :
26107  as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | $as_tr_sh`
26108ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
26109if eval test \"x\$"$as_ac_var"\" = x"yes"
26110then :
26111  cat >>confdefs.h <<_ACEOF
26112#define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1
26113_ACEOF
26114 FOUND_SECURE_RPC="yes"
26115fi
26116
26117done
26118	if test "x$FOUND_SECURE_RPC" = "xno" ; then
26119		if test "x$SECURE_RPC" = "xyes" ; then
26120	as_fn_error $? "Secure RPC requested, but required functions not found" "$LINENO" 5
26121		fi
26122		SECURE_RPC="no"
26123	else
26124				{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing getsecretkey" >&5
26125printf %s "checking for library containing getsecretkey... " >&6; }
26126if test ${ac_cv_search_getsecretkey+y}
26127then :
26128  printf %s "(cached) " >&6
26129else $as_nop
26130  ac_func_search_save_LIBS=$LIBS
26131cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26132/* end confdefs.h.  */
26133
26134/* Override any GCC internal prototype to avoid an error.
26135   Use char because int might match the return type of a GCC
26136   builtin and then its argument prototype would still apply.  */
26137char getsecretkey ();
26138int
26139main (void)
26140{
26141return getsecretkey ();
26142  ;
26143  return 0;
26144}
26145_ACEOF
26146for ac_lib in '' rpcsvc
26147do
26148  if test -z "$ac_lib"; then
26149    ac_res="none required"
26150  else
26151    ac_res=-l$ac_lib
26152    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26153  fi
26154  if ac_fn_c_try_link "$LINENO"
26155then :
26156  ac_cv_search_getsecretkey=$ac_res
26157fi
26158rm -f core conftest.err conftest.$ac_objext conftest.beam \
26159    conftest$ac_exeext
26160  if test ${ac_cv_search_getsecretkey+y}
26161then :
26162  break
26163fi
26164done
26165if test ${ac_cv_search_getsecretkey+y}
26166then :
26167
26168else $as_nop
26169  ac_cv_search_getsecretkey=no
26170fi
26171rm conftest.$ac_ext
26172LIBS=$ac_func_search_save_LIBS
26173fi
26174{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getsecretkey" >&5
26175printf "%s\n" "$ac_cv_search_getsecretkey" >&6; }
26176ac_res=$ac_cv_search_getsecretkey
26177if test "$ac_res" != no
26178then :
26179  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26180
26181fi
26182
26183		SECURE_RPC="yes"
26184	fi
26185 fi
26186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Secure RPC authentication (\"SUN-DES-1\") should be supported" >&5
26187printf %s "checking if Secure RPC authentication (\"SUN-DES-1\") should be supported... " >&6; }
26188 if test "x$SECURE_RPC" = "xyes" ; then
26189
26190printf "%s\n" "#define SECURE_RPC 1" >>confdefs.h
26191
26192 fi
26193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SECURE_RPC" >&5
26194printf "%s\n" "$SECURE_RPC" >&6; }
26195
26196 if test "x$SECURE_RPC" = xyes; then
26197  SECURE_RPC_TRUE=
26198  SECURE_RPC_FALSE='#'
26199else
26200  SECURE_RPC_TRUE='#'
26201  SECURE_RPC_FALSE=
26202fi
26203
26204
26205 if test "x$INT10" = xvm86; then
26206  INT10_VM86_TRUE=
26207  INT10_VM86_FALSE='#'
26208else
26209  INT10_VM86_TRUE='#'
26210  INT10_VM86_FALSE=
26211fi
26212
26213 if test "x$INT10" = xx86emu; then
26214  INT10_X86EMU_TRUE=
26215  INT10_X86EMU_FALSE='#'
26216else
26217  INT10_X86EMU_TRUE='#'
26218  INT10_X86EMU_FALSE=
26219fi
26220
26221 if test "x$INT10" = xstub; then
26222  INT10_STUB_TRUE=
26223  INT10_STUB_FALSE='#'
26224else
26225  INT10_STUB_TRUE='#'
26226  INT10_STUB_FALSE=
26227fi
26228
26229
26230case $host_os in
26231	cygwin* | mingw*)
26232		CONFIG_HAL=no
26233		CONFIG_UDEV=no
26234		CONFIG_UDEV_KMS=no
26235		DGA=no
26236		DRM=no
26237		DRI2=no
26238		DRI3=no
26239		INT10MODULE=no
26240		PCI=no
26241		VGAHW=no
26242		XF86UTILS=no
26243		XF86VIDMODE=no
26244		XSELINUX=no
26245		SYMBOL_VISIBILITY=no
26246		;;
26247	darwin*)
26248		PCI=no
26249		INT10MODULE=no
26250		VGAHW=no
26251		DRM=no
26252		DRI2=no
26253		DRI3=no
26254
26255		if test x$XQUARTZ = xauto; then
26256			{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build Xquartz" >&5
26257printf %s "checking whether to build Xquartz... " >&6; }
26258if test ${xorg_cv_Carbon_framework+y}
26259then :
26260  printf %s "(cached) " >&6
26261else $as_nop
26262
26263		 		save_LDFLAGS=$LDFLAGS
26264				LDFLAGS="$LDFLAGS -framework Carbon"
26265				cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26266/* end confdefs.h.  */
26267char FSFindFolder(); int main() { FSFindFolder(); return 0;}
26268_ACEOF
26269if ac_fn_c_try_link "$LINENO"
26270then :
26271  xorg_cv_Carbon_framework=yes
26272else $as_nop
26273  xorg_cv_Carbon_framework=no
26274fi
26275rm -f core conftest.err conftest.$ac_objext conftest.beam \
26276    conftest$ac_exeext conftest.$ac_ext
26277			        LDFLAGS=$save_LDFLAGS
26278fi
26279{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_Carbon_framework" >&5
26280printf "%s\n" "$xorg_cv_Carbon_framework" >&6; }
26281
26282			if test "X$xorg_cv_Carbon_framework" = Xyes; then
26283				XQUARTZ=yes
26284			else
26285				XQUARTZ=no
26286			fi
26287		fi
26288
26289		if test "x$XQUARTZ" = xyes ; then
26290			XQUARTZ=yes
26291			XVFB=no
26292			XNEST=no
26293
26294			DGA=no
26295			DPMSExtension=no
26296			XF86VIDMODE=no
26297		fi
26298		;;
26299	gnu*)
26300		DRM=no
26301		DRI2=no
26302		DRI3=no
26303		;;
26304	*) XQUARTZ=no ;;
26305esac
26306
26307XEXT_INC='-I$(top_srcdir)/Xext'
26308XEXT_LIB='$(top_builddir)/Xext/libXext.la'
26309
26310VIDEOPROTO="videoproto"
26311COMPOSITEPROTO="compositeproto >= 0.4"
26312RECORDPROTO="recordproto >= 1.13.99.1"
26313SCRNSAVERPROTO="scrnsaverproto >= 1.1"
26314RESOURCEPROTO="resourceproto >= 1.2.0"
26315DRIPROTO="xf86driproto >= 2.1.0"
26316DRI2PROTO="dri2proto >= 2.8"
26317DRI3PROTO="dri3proto >= 1.2"
26318XINERAMAPROTO="xineramaproto"
26319BIGFONTPROTO="xf86bigfontproto >= 1.2.0"
26320DGAPROTO="xf86dgaproto >= 2.0.99.1"
26321GLPROTO="glproto >= 1.4.17"
26322VIDMODEPROTO="xf86vidmodeproto >= 2.2.99.1"
26323APPLEWMPROTO="applewmproto >= 1.4"
26324LIBXSHMFENCE="xshmfence >= 1.1"
26325
26326XPROTO="xproto >= 7.0.31"
26327RANDRPROTO="randrproto >= 1.6.0"
26328RENDERPROTO="renderproto >= 0.11"
26329XEXTPROTO="xextproto >= 7.2.99.901"
26330INPUTPROTO="inputproto >= 2.3.99.1"
26331KBPROTO="kbproto >= 1.0.3"
26332FONTSPROTO="fontsproto >= 2.1.3"
26333FIXESPROTO="fixesproto >= 6.0"
26334DAMAGEPROTO="damageproto >= 1.1"
26335XCMISCPROTO="xcmiscproto >= 1.2.0"
26336BIGREQSPROTO="bigreqsproto >= 1.1.0"
26337XTRANS="xtrans >= 1.3.5"
26338PRESENTPROTO="presentproto >= 1.2"
26339
26340LIBAPPLEWM="applewm >= 1.4"
26341LIBDRI="dri >= 7.8.0"
26342LIBDRM="libdrm >= 2.4.89"
26343LIBEGL="egl"
26344LIBGBM="gbm >= 10.2.0"
26345LIBGL="gl >= 1.2"
26346LIBXEXT="xext >= 1.0.99.4"
26347LIBXFONT="xfont2 >= 2.0.0"
26348LIBXI="xi >= 1.2.99.1"
26349LIBXTST="xtst >= 1.0.99.2"
26350LIBPCIACCESS="pciaccess >= 0.12.901"
26351LIBUDEV="libudev >= 143"
26352LIBSELINUX="libselinux >= 2.0.86"
26353LIBDBUS="dbus-1 >= 1.0"
26354LIBPIXMAN="pixman-1 >= 0.27.2"
26355LIBXCVT="libxcvt"
26356
26357
26358pkg_failed=no
26359{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LIBPIXMAN" >&5
26360printf %s "checking for $LIBPIXMAN... " >&6; }
26361
26362if test -n "$PIXMAN_CFLAGS"; then
26363    pkg_cv_PIXMAN_CFLAGS="$PIXMAN_CFLAGS"
26364 elif test -n "$PKG_CONFIG"; then
26365    if test -n "$PKG_CONFIG" && \
26366    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBPIXMAN\""; } >&5
26367  ($PKG_CONFIG --exists --print-errors "$LIBPIXMAN") 2>&5
26368  ac_status=$?
26369  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26370  test $ac_status = 0; }; then
26371  pkg_cv_PIXMAN_CFLAGS=`$PKG_CONFIG --cflags "$LIBPIXMAN" 2>/dev/null`
26372		      test "x$?" != "x0" && pkg_failed=yes
26373else
26374  pkg_failed=yes
26375fi
26376 else
26377    pkg_failed=untried
26378fi
26379if test -n "$PIXMAN_LIBS"; then
26380    pkg_cv_PIXMAN_LIBS="$PIXMAN_LIBS"
26381 elif test -n "$PKG_CONFIG"; then
26382    if test -n "$PKG_CONFIG" && \
26383    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBPIXMAN\""; } >&5
26384  ($PKG_CONFIG --exists --print-errors "$LIBPIXMAN") 2>&5
26385  ac_status=$?
26386  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26387  test $ac_status = 0; }; then
26388  pkg_cv_PIXMAN_LIBS=`$PKG_CONFIG --libs "$LIBPIXMAN" 2>/dev/null`
26389		      test "x$?" != "x0" && pkg_failed=yes
26390else
26391  pkg_failed=yes
26392fi
26393 else
26394    pkg_failed=untried
26395fi
26396
26397
26398
26399if test $pkg_failed = yes; then
26400        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26401printf "%s\n" "no" >&6; }
26402
26403if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26404        _pkg_short_errors_supported=yes
26405else
26406        _pkg_short_errors_supported=no
26407fi
26408        if test $_pkg_short_errors_supported = yes; then
26409                PIXMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBPIXMAN" 2>&1`
26410        else
26411                PIXMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBPIXMAN" 2>&1`
26412        fi
26413        # Put the nasty error message in config.log where it belongs
26414        echo "$PIXMAN_PKG_ERRORS" >&5
26415
26416        as_fn_error $? "Package requirements ($LIBPIXMAN) were not met:
26417
26418$PIXMAN_PKG_ERRORS
26419
26420Consider adjusting the PKG_CONFIG_PATH environment variable if you
26421installed software in a non-standard prefix.
26422
26423Alternatively, you may set the environment variables PIXMAN_CFLAGS
26424and PIXMAN_LIBS to avoid the need to call pkg-config.
26425See the pkg-config man page for more details." "$LINENO" 5
26426elif test $pkg_failed = untried; then
26427        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26428printf "%s\n" "no" >&6; }
26429        { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26430printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
26431as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
26432is in your PATH or set the PKG_CONFIG environment variable to the full
26433path to pkg-config.
26434
26435Alternatively, you may set the environment variables PIXMAN_CFLAGS
26436and PIXMAN_LIBS to avoid the need to call pkg-config.
26437See the pkg-config man page for more details.
26438
26439To get pkg-config, see <http://pkg-config.freedesktop.org/>.
26440See \`config.log' for more details" "$LINENO" 5; }
26441else
26442        PIXMAN_CFLAGS=$pkg_cv_PIXMAN_CFLAGS
26443        PIXMAN_LIBS=$pkg_cv_PIXMAN_LIBS
26444        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26445printf "%s\n" "yes" >&6; }
26446
26447fi
26448REQUIRED_LIBS="$REQUIRED_LIBS $LIBPIXMAN $LIBXFONT xau"
26449
26450SDK_REQUIRED_MODULES="$XPROTO $RANDRPROTO $RENDERPROTO $XEXTPROTO $INPUTPROTO $KBPROTO $FONTSPROTO $LIBPIXMAN $LIBXCVT"
26451# Make SDK_REQUIRED_MODULES available for inclusion in xorg-server.pc
26452
26453
26454ac_fn_check_decl "$LINENO" "PTHREAD_MUTEX_RECURSIVE" "ac_cv_have_decl_PTHREAD_MUTEX_RECURSIVE" "#include <pthread.h>
26455" "$ac_c_undeclared_builtin_options" "CFLAGS"
26456if test "x$ac_cv_have_decl_PTHREAD_MUTEX_RECURSIVE" = xyes
26457then :
26458  HAVE_RECURSIVE_MUTEX=yes
26459else $as_nop
26460  HAVE_RECURSIVE_MUTEX=no
26461fi
26462
26463THREAD_DEFAULT=no
26464
26465if test "x$HAVE_RECURSIVE_MUTEX" = "xyes" ; then
26466	THREAD_DEFAULT=yes
26467fi
26468
26469case $host_os in
26470	mingw*) THREAD_DEFAULT=no  ;;
26471	*)
26472esac
26473
26474# Check whether --enable-input-thread was given.
26475if test ${enable_input_thread+y}
26476then :
26477  enableval=$enable_input_thread; INPUTTHREAD=$enableval
26478else $as_nop
26479  INPUTTHREAD=$THREAD_DEFAULT
26480fi
26481
26482
26483if test "x$INPUTTHREAD" = "xyes" ; then
26484
26485
26486ac_ext=c
26487ac_cpp='$CPP $CPPFLAGS'
26488ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26489ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26490ac_compiler_gnu=$ac_cv_c_compiler_gnu
26491
26492ax_pthread_ok=no
26493
26494# We used to check for pthread.h first, but this fails if pthread.h
26495# requires special compiler flags (e.g. on True64 or Sequent).
26496# It gets checked for in the link test anyway.
26497
26498# First of all, check if the user has set any of the PTHREAD_LIBS,
26499# etcetera environment variables, and if threads linking works using
26500# them:
26501if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
26502        save_CFLAGS="$CFLAGS"
26503        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
26504        save_LIBS="$LIBS"
26505        LIBS="$PTHREAD_LIBS $LIBS"
26506        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
26507printf %s "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
26508        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26509/* end confdefs.h.  */
26510
26511/* Override any GCC internal prototype to avoid an error.
26512   Use char because int might match the return type of a GCC
26513   builtin and then its argument prototype would still apply.  */
26514char pthread_join ();
26515int
26516main (void)
26517{
26518return pthread_join ();
26519  ;
26520  return 0;
26521}
26522_ACEOF
26523if ac_fn_c_try_link "$LINENO"
26524then :
26525  ax_pthread_ok=yes
26526fi
26527rm -f core conftest.err conftest.$ac_objext conftest.beam \
26528    conftest$ac_exeext conftest.$ac_ext
26529        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
26530printf "%s\n" "$ax_pthread_ok" >&6; }
26531        if test x"$ax_pthread_ok" = xno; then
26532                PTHREAD_LIBS=""
26533                PTHREAD_CFLAGS=""
26534        fi
26535        LIBS="$save_LIBS"
26536        CFLAGS="$save_CFLAGS"
26537fi
26538
26539# We must check for the threads library under a number of different
26540# names; the ordering is very important because some systems
26541# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
26542# libraries is broken (non-POSIX).
26543
26544# Create a list of thread flags to try.  Items starting with a "-" are
26545# C compiler flags, and other items are library names, except for "none"
26546# which indicates that we try without any flags at all, and "pthread-config"
26547# which is a program returning the flags for the Pth emulation library.
26548
26549ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
26550
26551# The ordering *is* (sometimes) important.  Some notes on the
26552# individual items follow:
26553
26554# pthreads: AIX (must check this before -lpthread)
26555# none: in case threads are in libc; should be tried before -Kthread and
26556#       other compiler flags to prevent continual compiler warnings
26557# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
26558# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
26559# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
26560# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
26561# -pthreads: Solaris/gcc
26562# -mthreads: Mingw32/gcc, Lynx/gcc
26563# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
26564#      doesn't hurt to check since this sometimes defines pthreads too;
26565#      also defines -D_REENTRANT)
26566#      ... -mt is also the pthreads flag for HP/aCC
26567# pthread: Linux, etcetera
26568# --thread-safe: KAI C++
26569# pthread-config: use pthread-config program (for GNU Pth library)
26570
26571case ${host_os} in
26572        solaris*)
26573
26574        # On Solaris (at least, for some versions), libc contains stubbed
26575        # (non-functional) versions of the pthreads routines, so link-based
26576        # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
26577        # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
26578        # a function called by this macro, so we could check for that, but
26579        # who knows whether they'll stub that too in a future libc.)  So,
26580        # we'll just look for -pthreads and -lpthread first:
26581
26582        ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
26583        ;;
26584
26585        darwin*)
26586        ax_pthread_flags="-pthread $ax_pthread_flags"
26587        ;;
26588	netbsd*)
26589	# use libc stubs, don't link against libpthread, to allow
26590	# dynamic loading
26591	ax_pthread_flags=""
26592	;;
26593esac
26594
26595# Clang doesn't consider unrecognized options an error unless we specify
26596# -Werror. We throw in some extra Clang-specific options to ensure that
26597# this doesn't happen for GCC, which also accepts -Werror.
26598
26599{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5
26600printf %s "checking if compiler needs -Werror to reject unknown flags... " >&6; }
26601save_CFLAGS="$CFLAGS"
26602ax_pthread_extra_flags="-Werror"
26603CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument"
26604cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26605/* end confdefs.h.  */
26606int foo(void);
26607int
26608main (void)
26609{
26610foo()
26611  ;
26612  return 0;
26613}
26614_ACEOF
26615if ac_fn_c_try_compile "$LINENO"
26616then :
26617  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26618printf "%s\n" "yes" >&6; }
26619else $as_nop
26620  ax_pthread_extra_flags=
26621                   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26622printf "%s\n" "no" >&6; }
26623fi
26624rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26625CFLAGS="$save_CFLAGS"
26626
26627if test x"$ax_pthread_ok" = xno; then
26628for flag in $ax_pthread_flags; do
26629
26630        case $flag in
26631                none)
26632                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
26633printf %s "checking whether pthreads work without any flags... " >&6; }
26634                ;;
26635
26636                -*)
26637                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
26638printf %s "checking whether pthreads work with $flag... " >&6; }
26639                PTHREAD_CFLAGS="$flag"
26640                ;;
26641
26642                pthread-config)
26643                # Extract the first word of "pthread-config", so it can be a program name with args.
26644set dummy pthread-config; ac_word=$2
26645{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26646printf %s "checking for $ac_word... " >&6; }
26647if test ${ac_cv_prog_ax_pthread_config+y}
26648then :
26649  printf %s "(cached) " >&6
26650else $as_nop
26651  if test -n "$ax_pthread_config"; then
26652  ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
26653else
26654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26655for as_dir in $PATH
26656do
26657  IFS=$as_save_IFS
26658  case $as_dir in #(((
26659    '') as_dir=./ ;;
26660    */) ;;
26661    *) as_dir=$as_dir/ ;;
26662  esac
26663    for ac_exec_ext in '' $ac_executable_extensions; do
26664  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
26665    ac_cv_prog_ax_pthread_config="yes"
26666    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
26667    break 2
26668  fi
26669done
26670  done
26671IFS=$as_save_IFS
26672
26673  test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
26674fi
26675fi
26676ax_pthread_config=$ac_cv_prog_ax_pthread_config
26677if test -n "$ax_pthread_config"; then
26678  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
26679printf "%s\n" "$ax_pthread_config" >&6; }
26680else
26681  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26682printf "%s\n" "no" >&6; }
26683fi
26684
26685
26686                if test x"$ax_pthread_config" = xno; then continue; fi
26687                PTHREAD_CFLAGS="`pthread-config --cflags`"
26688                PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
26689                ;;
26690
26691                *)
26692                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
26693printf %s "checking for the pthreads library -l$flag... " >&6; }
26694                PTHREAD_LIBS="-l$flag"
26695                ;;
26696        esac
26697
26698        save_LIBS="$LIBS"
26699        save_CFLAGS="$CFLAGS"
26700        LIBS="$PTHREAD_LIBS $LIBS"
26701        CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
26702
26703        # Check for various functions.  We must include pthread.h,
26704        # since some functions may be macros.  (On the Sequent, we
26705        # need a special flag -Kthread to make this header compile.)
26706        # We check for pthread_join because it is in -lpthread on IRIX
26707        # while pthread_create is in libc.  We check for pthread_attr_init
26708        # due to DEC craziness with -lpthreads.  We check for
26709        # pthread_cleanup_push because it is one of the few pthread
26710        # functions on Solaris that doesn't have a non-functional libc stub.
26711        # We try pthread_create on general principles.
26712        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26713/* end confdefs.h.  */
26714#include <pthread.h>
26715                        static void routine(void *a) { a = 0; }
26716                        static void *start_routine(void *a) { return a; }
26717int
26718main (void)
26719{
26720pthread_t th; pthread_attr_t attr;
26721                        pthread_create(&th, 0, start_routine, 0);
26722                        pthread_join(th, 0);
26723                        pthread_attr_init(&attr);
26724                        pthread_cleanup_push(routine, 0);
26725                        pthread_cleanup_pop(0) /* ; */
26726  ;
26727  return 0;
26728}
26729_ACEOF
26730if ac_fn_c_try_link "$LINENO"
26731then :
26732  ax_pthread_ok=yes
26733fi
26734rm -f core conftest.err conftest.$ac_objext conftest.beam \
26735    conftest$ac_exeext conftest.$ac_ext
26736
26737        LIBS="$save_LIBS"
26738        CFLAGS="$save_CFLAGS"
26739
26740        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
26741printf "%s\n" "$ax_pthread_ok" >&6; }
26742        if test "x$ax_pthread_ok" = xyes; then
26743                break;
26744        fi
26745
26746        PTHREAD_LIBS=""
26747        PTHREAD_CFLAGS=""
26748done
26749fi
26750
26751# Various other checks:
26752if test "x$ax_pthread_ok" = xyes; then
26753        save_LIBS="$LIBS"
26754        LIBS="$PTHREAD_LIBS $LIBS"
26755        save_CFLAGS="$CFLAGS"
26756        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
26757
26758        # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
26759        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
26760printf %s "checking for joinable pthread attribute... " >&6; }
26761        attr_name=unknown
26762        for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
26763            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26764/* end confdefs.h.  */
26765#include <pthread.h>
26766int
26767main (void)
26768{
26769int attr = $attr; return attr /* ; */
26770  ;
26771  return 0;
26772}
26773_ACEOF
26774if ac_fn_c_try_link "$LINENO"
26775then :
26776  attr_name=$attr; break
26777fi
26778rm -f core conftest.err conftest.$ac_objext conftest.beam \
26779    conftest$ac_exeext conftest.$ac_ext
26780        done
26781        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
26782printf "%s\n" "$attr_name" >&6; }
26783        if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
26784
26785printf "%s\n" "#define PTHREAD_CREATE_JOINABLE $attr_name" >>confdefs.h
26786
26787        fi
26788
26789        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
26790printf %s "checking if more special flags are required for pthreads... " >&6; }
26791        flag=no
26792        case ${host_os} in
26793            aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
26794            osf* | hpux*) flag="-D_REENTRANT";;
26795            solaris*)
26796            if test "$GCC" = "yes"; then
26797                flag="-D_REENTRANT"
26798            else
26799                # TODO: What about Clang on Solaris?
26800                flag="-mt -D_REENTRANT"
26801            fi
26802            ;;
26803        esac
26804        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $flag" >&5
26805printf "%s\n" "$flag" >&6; }
26806        if test "x$flag" != xno; then
26807            PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
26808        fi
26809
26810        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
26811printf %s "checking for PTHREAD_PRIO_INHERIT... " >&6; }
26812if test ${ax_cv_PTHREAD_PRIO_INHERIT+y}
26813then :
26814  printf %s "(cached) " >&6
26815else $as_nop
26816
26817                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26818/* end confdefs.h.  */
26819#include <pthread.h>
26820int
26821main (void)
26822{
26823int i = PTHREAD_PRIO_INHERIT;
26824  ;
26825  return 0;
26826}
26827_ACEOF
26828if ac_fn_c_try_link "$LINENO"
26829then :
26830  ax_cv_PTHREAD_PRIO_INHERIT=yes
26831else $as_nop
26832  ax_cv_PTHREAD_PRIO_INHERIT=no
26833fi
26834rm -f core conftest.err conftest.$ac_objext conftest.beam \
26835    conftest$ac_exeext conftest.$ac_ext
26836
26837fi
26838{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
26839printf "%s\n" "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
26840        if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"
26841then :
26842
26843printf "%s\n" "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
26844
26845fi
26846
26847        LIBS="$save_LIBS"
26848        CFLAGS="$save_CFLAGS"
26849
26850        # More AIX lossage: compile with *_r variant
26851        if test "x$GCC" != xyes; then
26852            case $host_os in
26853                aix*)
26854                case "x/$CC" in #(
26855  x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
26856    #handle absolute path differently from PATH based program lookup
26857                   case "x$CC" in #(
26858  x/*) :
26859    if as_fn_executable_p ${CC}_r
26860then :
26861  PTHREAD_CC="${CC}_r"
26862fi ;; #(
26863  *) :
26864    for ac_prog in ${CC}_r
26865do
26866  # Extract the first word of "$ac_prog", so it can be a program name with args.
26867set dummy $ac_prog; ac_word=$2
26868{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26869printf %s "checking for $ac_word... " >&6; }
26870if test ${ac_cv_prog_PTHREAD_CC+y}
26871then :
26872  printf %s "(cached) " >&6
26873else $as_nop
26874  if test -n "$PTHREAD_CC"; then
26875  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
26876else
26877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26878for as_dir in $PATH
26879do
26880  IFS=$as_save_IFS
26881  case $as_dir in #(((
26882    '') as_dir=./ ;;
26883    */) ;;
26884    *) as_dir=$as_dir/ ;;
26885  esac
26886    for ac_exec_ext in '' $ac_executable_extensions; do
26887  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
26888    ac_cv_prog_PTHREAD_CC="$ac_prog"
26889    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
26890    break 2
26891  fi
26892done
26893  done
26894IFS=$as_save_IFS
26895
26896fi
26897fi
26898PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
26899if test -n "$PTHREAD_CC"; then
26900  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
26901printf "%s\n" "$PTHREAD_CC" >&6; }
26902else
26903  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26904printf "%s\n" "no" >&6; }
26905fi
26906
26907
26908  test -n "$PTHREAD_CC" && break
26909done
26910test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
26911 ;;
26912esac ;; #(
26913  *) :
26914     ;;
26915esac
26916                ;;
26917            esac
26918        fi
26919fi
26920
26921test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
26922
26923
26924
26925
26926
26927# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
26928if test x"$ax_pthread_ok" = xyes; then
26929
26930printf "%s\n" "#define HAVE_PTHREAD 1" >>confdefs.h
26931
26932        :
26933else
26934        ax_pthread_ok=no
26935        as_fn_error $? "threaded input requested but no pthread support has been found" "$LINENO" 5
26936fi
26937ac_ext=c
26938ac_cpp='$CPP $CPPFLAGS'
26939ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26940ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26941ac_compiler_gnu=$ac_cv_c_compiler_gnu
26942
26943
26944    SYS_LIBS="$SYS_LIBS $PTHREAD_LIBS"
26945    CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
26946
26947printf "%s\n" "#define INPUTTHREAD 1" >>confdefs.h
26948
26949
26950    save_LIBS="$LIBS"
26951    LIBS="$LIBS $SYS_LIBS"
26952        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np(const char*)" >&5
26953printf %s "checking for pthread_setname_np(const char*)... " >&6; }
26954    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26955/* end confdefs.h.  */
26956#include <pthread.h>
26957int
26958main (void)
26959{
26960pthread_setname_np("example")
26961  ;
26962  return 0;
26963}
26964_ACEOF
26965if ac_fn_c_try_link "$LINENO"
26966then :
26967  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26968printf "%s\n" "yes" >&6; }
26969
26970printf "%s\n" "#define HAVE_PTHREAD_SETNAME_NP_WITHOUT_TID 1" >>confdefs.h
26971
26972else $as_nop
26973  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26974printf "%s\n" "no" >&6; }
26975fi
26976rm -f core conftest.err conftest.$ac_objext conftest.beam \
26977    conftest$ac_exeext conftest.$ac_ext
26978        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np(pthread_t, const char*)" >&5
26979printf %s "checking for pthread_setname_np(pthread_t, const char*)... " >&6; }
26980    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26981/* end confdefs.h.  */
26982#include <pthread.h>
26983int
26984main (void)
26985{
26986pthread_setname_np(pthread_self(), "example")
26987  ;
26988  return 0;
26989}
26990_ACEOF
26991if ac_fn_c_try_link "$LINENO"
26992then :
26993  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26994printf "%s\n" "yes" >&6; }
26995
26996printf "%s\n" "#define HAVE_PTHREAD_SETNAME_NP_WITH_TID 1" >>confdefs.h
26997
26998else $as_nop
26999  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27000printf "%s\n" "no" >&6; }
27001fi
27002rm -f core conftest.err conftest.$ac_objext conftest.beam \
27003    conftest$ac_exeext conftest.$ac_ext
27004    LIBS="$save_LIBS"
27005fi
27006
27007REQUIRED_MODULES="$FIXESPROTO $DAMAGEPROTO $XCMISCPROTO $XTRANS $BIGREQSPROTO $SDK_REQUIRED_MODULES"
27008
27009LIBSYSTEMD="libsystemd >= 209"
27010
27011# Check whether --with-systemd-daemon was given.
27012if test ${with_systemd_daemon+y}
27013then :
27014  withval=$with_systemd_daemon; WITH_SYSTEMD_DAEMON=$withval
27015else $as_nop
27016  WITH_SYSTEMD_DAEMON=auto
27017fi
27018
27019if test "x$WITH_SYSTEMD_DAEMON" = "xyes" -o "x$WITH_SYSTEMD_DAEMON" = "xauto" ; then
27020
27021pkg_failed=no
27022{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LIBSYSTEMD" >&5
27023printf %s "checking for $LIBSYSTEMD... " >&6; }
27024
27025if test -n "$SYSTEMD_DAEMON_CFLAGS"; then
27026    pkg_cv_SYSTEMD_DAEMON_CFLAGS="$SYSTEMD_DAEMON_CFLAGS"
27027 elif test -n "$PKG_CONFIG"; then
27028    if test -n "$PKG_CONFIG" && \
27029    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBSYSTEMD\""; } >&5
27030  ($PKG_CONFIG --exists --print-errors "$LIBSYSTEMD") 2>&5
27031  ac_status=$?
27032  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27033  test $ac_status = 0; }; then
27034  pkg_cv_SYSTEMD_DAEMON_CFLAGS=`$PKG_CONFIG --cflags "$LIBSYSTEMD" 2>/dev/null`
27035		      test "x$?" != "x0" && pkg_failed=yes
27036else
27037  pkg_failed=yes
27038fi
27039 else
27040    pkg_failed=untried
27041fi
27042if test -n "$SYSTEMD_DAEMON_LIBS"; then
27043    pkg_cv_SYSTEMD_DAEMON_LIBS="$SYSTEMD_DAEMON_LIBS"
27044 elif test -n "$PKG_CONFIG"; then
27045    if test -n "$PKG_CONFIG" && \
27046    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBSYSTEMD\""; } >&5
27047  ($PKG_CONFIG --exists --print-errors "$LIBSYSTEMD") 2>&5
27048  ac_status=$?
27049  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27050  test $ac_status = 0; }; then
27051  pkg_cv_SYSTEMD_DAEMON_LIBS=`$PKG_CONFIG --libs "$LIBSYSTEMD" 2>/dev/null`
27052		      test "x$?" != "x0" && pkg_failed=yes
27053else
27054  pkg_failed=yes
27055fi
27056 else
27057    pkg_failed=untried
27058fi
27059
27060
27061
27062if test $pkg_failed = yes; then
27063        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27064printf "%s\n" "no" >&6; }
27065
27066if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27067        _pkg_short_errors_supported=yes
27068else
27069        _pkg_short_errors_supported=no
27070fi
27071        if test $_pkg_short_errors_supported = yes; then
27072                SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBSYSTEMD" 2>&1`
27073        else
27074                SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBSYSTEMD" 2>&1`
27075        fi
27076        # Put the nasty error message in config.log where it belongs
27077        echo "$SYSTEMD_DAEMON_PKG_ERRORS" >&5
27078
27079
27080pkg_failed=no
27081{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libsystemd-daemon" >&5
27082printf %s "checking for libsystemd-daemon... " >&6; }
27083
27084if test -n "$SYSTEMD_DAEMON_CFLAGS"; then
27085    pkg_cv_SYSTEMD_DAEMON_CFLAGS="$SYSTEMD_DAEMON_CFLAGS"
27086 elif test -n "$PKG_CONFIG"; then
27087    if test -n "$PKG_CONFIG" && \
27088    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
27089  ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
27090  ac_status=$?
27091  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27092  test $ac_status = 0; }; then
27093  pkg_cv_SYSTEMD_DAEMON_CFLAGS=`$PKG_CONFIG --cflags "libsystemd-daemon" 2>/dev/null`
27094		      test "x$?" != "x0" && pkg_failed=yes
27095else
27096  pkg_failed=yes
27097fi
27098 else
27099    pkg_failed=untried
27100fi
27101if test -n "$SYSTEMD_DAEMON_LIBS"; then
27102    pkg_cv_SYSTEMD_DAEMON_LIBS="$SYSTEMD_DAEMON_LIBS"
27103 elif test -n "$PKG_CONFIG"; then
27104    if test -n "$PKG_CONFIG" && \
27105    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
27106  ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
27107  ac_status=$?
27108  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27109  test $ac_status = 0; }; then
27110  pkg_cv_SYSTEMD_DAEMON_LIBS=`$PKG_CONFIG --libs "libsystemd-daemon" 2>/dev/null`
27111		      test "x$?" != "x0" && pkg_failed=yes
27112else
27113  pkg_failed=yes
27114fi
27115 else
27116    pkg_failed=untried
27117fi
27118
27119
27120
27121if test $pkg_failed = yes; then
27122        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27123printf "%s\n" "no" >&6; }
27124
27125if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27126        _pkg_short_errors_supported=yes
27127else
27128        _pkg_short_errors_supported=no
27129fi
27130        if test $_pkg_short_errors_supported = yes; then
27131                SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-daemon" 2>&1`
27132        else
27133                SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-daemon" 2>&1`
27134        fi
27135        # Put the nasty error message in config.log where it belongs
27136        echo "$SYSTEMD_DAEMON_PKG_ERRORS" >&5
27137
27138        HAVE_SYSTEMD_DAEMON=no
27139elif test $pkg_failed = untried; then
27140        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27141printf "%s\n" "no" >&6; }
27142        HAVE_SYSTEMD_DAEMON=no
27143else
27144        SYSTEMD_DAEMON_CFLAGS=$pkg_cv_SYSTEMD_DAEMON_CFLAGS
27145        SYSTEMD_DAEMON_LIBS=$pkg_cv_SYSTEMD_DAEMON_LIBS
27146        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27147printf "%s\n" "yes" >&6; }
27148        HAVE_SYSTEMD_DAEMON=yes;
27149					      LIBSYSTEMD_DAEMON=libsystemd-daemon
27150fi
27151elif test $pkg_failed = untried; then
27152        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27153printf "%s\n" "no" >&6; }
27154
27155pkg_failed=no
27156{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libsystemd-daemon" >&5
27157printf %s "checking for libsystemd-daemon... " >&6; }
27158
27159if test -n "$SYSTEMD_DAEMON_CFLAGS"; then
27160    pkg_cv_SYSTEMD_DAEMON_CFLAGS="$SYSTEMD_DAEMON_CFLAGS"
27161 elif test -n "$PKG_CONFIG"; then
27162    if test -n "$PKG_CONFIG" && \
27163    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
27164  ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
27165  ac_status=$?
27166  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27167  test $ac_status = 0; }; then
27168  pkg_cv_SYSTEMD_DAEMON_CFLAGS=`$PKG_CONFIG --cflags "libsystemd-daemon" 2>/dev/null`
27169		      test "x$?" != "x0" && pkg_failed=yes
27170else
27171  pkg_failed=yes
27172fi
27173 else
27174    pkg_failed=untried
27175fi
27176if test -n "$SYSTEMD_DAEMON_LIBS"; then
27177    pkg_cv_SYSTEMD_DAEMON_LIBS="$SYSTEMD_DAEMON_LIBS"
27178 elif test -n "$PKG_CONFIG"; then
27179    if test -n "$PKG_CONFIG" && \
27180    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
27181  ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
27182  ac_status=$?
27183  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27184  test $ac_status = 0; }; then
27185  pkg_cv_SYSTEMD_DAEMON_LIBS=`$PKG_CONFIG --libs "libsystemd-daemon" 2>/dev/null`
27186		      test "x$?" != "x0" && pkg_failed=yes
27187else
27188  pkg_failed=yes
27189fi
27190 else
27191    pkg_failed=untried
27192fi
27193
27194
27195
27196if test $pkg_failed = yes; then
27197        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27198printf "%s\n" "no" >&6; }
27199
27200if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27201        _pkg_short_errors_supported=yes
27202else
27203        _pkg_short_errors_supported=no
27204fi
27205        if test $_pkg_short_errors_supported = yes; then
27206                SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-daemon" 2>&1`
27207        else
27208                SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-daemon" 2>&1`
27209        fi
27210        # Put the nasty error message in config.log where it belongs
27211        echo "$SYSTEMD_DAEMON_PKG_ERRORS" >&5
27212
27213        HAVE_SYSTEMD_DAEMON=no
27214elif test $pkg_failed = untried; then
27215        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27216printf "%s\n" "no" >&6; }
27217        HAVE_SYSTEMD_DAEMON=no
27218else
27219        SYSTEMD_DAEMON_CFLAGS=$pkg_cv_SYSTEMD_DAEMON_CFLAGS
27220        SYSTEMD_DAEMON_LIBS=$pkg_cv_SYSTEMD_DAEMON_LIBS
27221        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27222printf "%s\n" "yes" >&6; }
27223        HAVE_SYSTEMD_DAEMON=yes;
27224					      LIBSYSTEMD_DAEMON=libsystemd-daemon
27225fi
27226else
27227        SYSTEMD_DAEMON_CFLAGS=$pkg_cv_SYSTEMD_DAEMON_CFLAGS
27228        SYSTEMD_DAEMON_LIBS=$pkg_cv_SYSTEMD_DAEMON_LIBS
27229        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27230printf "%s\n" "yes" >&6; }
27231        HAVE_SYSTEMD_DAEMON=yes;
27232			   LIBSYSTEMD_DAEMON="$LIBSYSTEMD"
27233fi
27234	if test "x$HAVE_SYSTEMD_DAEMON" = xyes; then
27235
27236printf "%s\n" "#define HAVE_SYSTEMD_DAEMON 1" >>confdefs.h
27237
27238		REQUIRED_LIBS="$REQUIRED_LIBS $LIBSYSTEMD_DAEMON"
27239	elif test "x$WITH_SYSTEMD_DAEMON" = xyes; then
27240		as_fn_error $? "systemd support requested but no library has been found" "$LINENO" 5
27241	fi
27242fi
27243 if test "x$HAVE_SYSTEMD_DAEMON" = "xyes"; then
27244  HAVE_SYSTEMD_DAEMON_TRUE=
27245  HAVE_SYSTEMD_DAEMON_FALSE='#'
27246else
27247  HAVE_SYSTEMD_DAEMON_TRUE='#'
27248  HAVE_SYSTEMD_DAEMON_FALSE=
27249fi
27250
27251
27252if test "x$CONFIG_UDEV" = xyes && test "x$CONFIG_HAL" = xyes; then
27253	as_fn_error $? "Hotplugging through both libudev and hal not allowed" "$LINENO" 5
27254fi
27255
27256
27257pkg_failed=no
27258{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LIBUDEV" >&5
27259printf %s "checking for $LIBUDEV... " >&6; }
27260
27261if test -n "$UDEV_CFLAGS"; then
27262    pkg_cv_UDEV_CFLAGS="$UDEV_CFLAGS"
27263 elif test -n "$PKG_CONFIG"; then
27264    if test -n "$PKG_CONFIG" && \
27265    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBUDEV\""; } >&5
27266  ($PKG_CONFIG --exists --print-errors "$LIBUDEV") 2>&5
27267  ac_status=$?
27268  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27269  test $ac_status = 0; }; then
27270  pkg_cv_UDEV_CFLAGS=`$PKG_CONFIG --cflags "$LIBUDEV" 2>/dev/null`
27271		      test "x$?" != "x0" && pkg_failed=yes
27272else
27273  pkg_failed=yes
27274fi
27275 else
27276    pkg_failed=untried
27277fi
27278if test -n "$UDEV_LIBS"; then
27279    pkg_cv_UDEV_LIBS="$UDEV_LIBS"
27280 elif test -n "$PKG_CONFIG"; then
27281    if test -n "$PKG_CONFIG" && \
27282    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBUDEV\""; } >&5
27283  ($PKG_CONFIG --exists --print-errors "$LIBUDEV") 2>&5
27284  ac_status=$?
27285  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27286  test $ac_status = 0; }; then
27287  pkg_cv_UDEV_LIBS=`$PKG_CONFIG --libs "$LIBUDEV" 2>/dev/null`
27288		      test "x$?" != "x0" && pkg_failed=yes
27289else
27290  pkg_failed=yes
27291fi
27292 else
27293    pkg_failed=untried
27294fi
27295
27296
27297
27298if test $pkg_failed = yes; then
27299        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27300printf "%s\n" "no" >&6; }
27301
27302if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27303        _pkg_short_errors_supported=yes
27304else
27305        _pkg_short_errors_supported=no
27306fi
27307        if test $_pkg_short_errors_supported = yes; then
27308                UDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBUDEV" 2>&1`
27309        else
27310                UDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBUDEV" 2>&1`
27311        fi
27312        # Put the nasty error message in config.log where it belongs
27313        echo "$UDEV_PKG_ERRORS" >&5
27314
27315        HAVE_LIBUDEV=no
27316elif test $pkg_failed = untried; then
27317        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27318printf "%s\n" "no" >&6; }
27319        HAVE_LIBUDEV=no
27320else
27321        UDEV_CFLAGS=$pkg_cv_UDEV_CFLAGS
27322        UDEV_LIBS=$pkg_cv_UDEV_LIBS
27323        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27324printf "%s\n" "yes" >&6; }
27325        HAVE_LIBUDEV=yes
27326fi
27327if test "x$CONFIG_UDEV" = xauto; then
27328	CONFIG_UDEV="$HAVE_LIBUDEV"
27329fi
27330 if test "x$CONFIG_UDEV" = xyes; then
27331  CONFIG_UDEV_TRUE=
27332  CONFIG_UDEV_FALSE='#'
27333else
27334  CONFIG_UDEV_TRUE='#'
27335  CONFIG_UDEV_FALSE=
27336fi
27337
27338if test "x$CONFIG_UDEV" = xyes; then
27339	CONFIG_HAL=no
27340	if test "x$CONFIG_UDEV_KMS" = xauto; then
27341		CONFIG_UDEV_KMS="$HAVE_LIBUDEV"
27342	fi
27343	if ! test "x$HAVE_LIBUDEV" = xyes; then
27344		as_fn_error $? "udev configuration API requested, but libudev is not installed" "$LINENO" 5
27345	fi
27346
27347printf "%s\n" "#define CONFIG_UDEV 1" >>confdefs.h
27348
27349	if test "x$CONFIG_UDEV_KMS" = xyes; then
27350
27351printf "%s\n" "#define CONFIG_UDEV_KMS 1" >>confdefs.h
27352
27353	fi
27354	SAVE_LIBS=$LIBS
27355	SAVE_CFLAGS=$CFLAGS
27356	CFLAGS="$CFLAGS $UDEV_CFLAGS"
27357	LIBS=$UDEV_LIBS
27358	ac_fn_c_check_func "$LINENO" "udev_monitor_filter_add_match_tag" "ac_cv_func_udev_monitor_filter_add_match_tag"
27359if test "x$ac_cv_func_udev_monitor_filter_add_match_tag" = xyes
27360then :
27361  printf "%s\n" "#define HAVE_UDEV_MONITOR_FILTER_ADD_MATCH_TAG 1" >>confdefs.h
27362
27363fi
27364
27365	ac_fn_c_check_func "$LINENO" "udev_enumerate_add_match_tag" "ac_cv_func_udev_enumerate_add_match_tag"
27366if test "x$ac_cv_func_udev_enumerate_add_match_tag" = xyes
27367then :
27368  printf "%s\n" "#define HAVE_UDEV_ENUMERATE_ADD_MATCH_TAG 1" >>confdefs.h
27369
27370fi
27371
27372	LIBS=$SAVE_LIBS
27373	CFLAGS=$SAVE_CFLAGS
27374fi
27375 if test "x$CONFIG_UDEV_KMS" = xyes; then
27376  CONFIG_UDEV_KMS_TRUE=
27377  CONFIG_UDEV_KMS_FALSE='#'
27378else
27379  CONFIG_UDEV_KMS_TRUE='#'
27380  CONFIG_UDEV_KMS_FALSE=
27381fi
27382
27383
27384
27385pkg_failed=no
27386{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LIBDBUS" >&5
27387printf %s "checking for $LIBDBUS... " >&6; }
27388
27389if test -n "$DBUS_CFLAGS"; then
27390    pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
27391 elif test -n "$PKG_CONFIG"; then
27392    if test -n "$PKG_CONFIG" && \
27393    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDBUS\""; } >&5
27394  ($PKG_CONFIG --exists --print-errors "$LIBDBUS") 2>&5
27395  ac_status=$?
27396  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27397  test $ac_status = 0; }; then
27398  pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "$LIBDBUS" 2>/dev/null`
27399		      test "x$?" != "x0" && pkg_failed=yes
27400else
27401  pkg_failed=yes
27402fi
27403 else
27404    pkg_failed=untried
27405fi
27406if test -n "$DBUS_LIBS"; then
27407    pkg_cv_DBUS_LIBS="$DBUS_LIBS"
27408 elif test -n "$PKG_CONFIG"; then
27409    if test -n "$PKG_CONFIG" && \
27410    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDBUS\""; } >&5
27411  ($PKG_CONFIG --exists --print-errors "$LIBDBUS") 2>&5
27412  ac_status=$?
27413  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27414  test $ac_status = 0; }; then
27415  pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "$LIBDBUS" 2>/dev/null`
27416		      test "x$?" != "x0" && pkg_failed=yes
27417else
27418  pkg_failed=yes
27419fi
27420 else
27421    pkg_failed=untried
27422fi
27423
27424
27425
27426if test $pkg_failed = yes; then
27427        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27428printf "%s\n" "no" >&6; }
27429
27430if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27431        _pkg_short_errors_supported=yes
27432else
27433        _pkg_short_errors_supported=no
27434fi
27435        if test $_pkg_short_errors_supported = yes; then
27436                DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBDBUS" 2>&1`
27437        else
27438                DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBDBUS" 2>&1`
27439        fi
27440        # Put the nasty error message in config.log where it belongs
27441        echo "$DBUS_PKG_ERRORS" >&5
27442
27443        HAVE_DBUS=no
27444elif test $pkg_failed = untried; then
27445        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27446printf "%s\n" "no" >&6; }
27447        HAVE_DBUS=no
27448else
27449        DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
27450        DBUS_LIBS=$pkg_cv_DBUS_LIBS
27451        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27452printf "%s\n" "yes" >&6; }
27453        HAVE_DBUS=yes
27454fi
27455if test "x$HAVE_DBUS" = xyes; then
27456
27457printf "%s\n" "#define HAVE_DBUS 1" >>confdefs.h
27458
27459fi
27460 if test "x$HAVE_DBUS" = xyes; then
27461  HAVE_DBUS_TRUE=
27462  HAVE_DBUS_FALSE='#'
27463else
27464  HAVE_DBUS_TRUE='#'
27465  HAVE_DBUS_FALSE=
27466fi
27467
27468
27469
27470pkg_failed=no
27471{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hal" >&5
27472printf %s "checking for hal... " >&6; }
27473
27474if test -n "$HAL_CFLAGS"; then
27475    pkg_cv_HAL_CFLAGS="$HAL_CFLAGS"
27476 elif test -n "$PKG_CONFIG"; then
27477    if test -n "$PKG_CONFIG" && \
27478    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"hal\""; } >&5
27479  ($PKG_CONFIG --exists --print-errors "hal") 2>&5
27480  ac_status=$?
27481  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27482  test $ac_status = 0; }; then
27483  pkg_cv_HAL_CFLAGS=`$PKG_CONFIG --cflags "hal" 2>/dev/null`
27484		      test "x$?" != "x0" && pkg_failed=yes
27485else
27486  pkg_failed=yes
27487fi
27488 else
27489    pkg_failed=untried
27490fi
27491if test -n "$HAL_LIBS"; then
27492    pkg_cv_HAL_LIBS="$HAL_LIBS"
27493 elif test -n "$PKG_CONFIG"; then
27494    if test -n "$PKG_CONFIG" && \
27495    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"hal\""; } >&5
27496  ($PKG_CONFIG --exists --print-errors "hal") 2>&5
27497  ac_status=$?
27498  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27499  test $ac_status = 0; }; then
27500  pkg_cv_HAL_LIBS=`$PKG_CONFIG --libs "hal" 2>/dev/null`
27501		      test "x$?" != "x0" && pkg_failed=yes
27502else
27503  pkg_failed=yes
27504fi
27505 else
27506    pkg_failed=untried
27507fi
27508
27509
27510
27511if test $pkg_failed = yes; then
27512        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27513printf "%s\n" "no" >&6; }
27514
27515if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27516        _pkg_short_errors_supported=yes
27517else
27518        _pkg_short_errors_supported=no
27519fi
27520        if test $_pkg_short_errors_supported = yes; then
27521                HAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "hal" 2>&1`
27522        else
27523                HAL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "hal" 2>&1`
27524        fi
27525        # Put the nasty error message in config.log where it belongs
27526        echo "$HAL_PKG_ERRORS" >&5
27527
27528        HAVE_HAL=no
27529elif test $pkg_failed = untried; then
27530        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27531printf "%s\n" "no" >&6; }
27532        HAVE_HAL=no
27533else
27534        HAL_CFLAGS=$pkg_cv_HAL_CFLAGS
27535        HAL_LIBS=$pkg_cv_HAL_LIBS
27536        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27537printf "%s\n" "yes" >&6; }
27538        HAVE_HAL=yes
27539fi
27540if test "x$CONFIG_HAL" = xauto; then
27541	CONFIG_HAL="$HAVE_HAL"
27542fi
27543if test "x$CONFIG_HAL" = xyes; then
27544	if ! test "x$HAVE_HAL" = xyes; then
27545		as_fn_error $? "HAL hotplug API requested, but HAL is not installed." "$LINENO" 5
27546	fi
27547
27548
27549printf "%s\n" "#define CONFIG_HAL 1" >>confdefs.h
27550
27551	NEED_DBUS="yes"
27552fi
27553 if test "x$CONFIG_HAL" = xyes; then
27554  CONFIG_HAL_TRUE=
27555  CONFIG_HAL_FALSE='#'
27556else
27557  CONFIG_HAL_TRUE='#'
27558  CONFIG_HAL_FALSE=
27559fi
27560
27561
27562if test "x$SYSTEMD_LOGIND" = xauto; then
27563        if test "x$HAVE_DBUS" = xyes -a "x$CONFIG_UDEV" = xyes ; then
27564                SYSTEMD_LOGIND=yes
27565        else
27566                SYSTEMD_LOGIND=no
27567        fi
27568fi
27569if test "x$SYSTEMD_LOGIND" = xyes; then
27570        if ! test "x$HAVE_DBUS" = xyes; then
27571                as_fn_error $? "systemd-logind requested, but D-Bus is not installed." "$LINENO" 5
27572        fi
27573        if ! test "x$CONFIG_UDEV" = xyes ; then
27574                as_fn_error $? "systemd-logind is only supported in combination with udev configuration." "$LINENO" 5
27575        fi
27576
27577
27578printf "%s\n" "#define SYSTEMD_LOGIND 1" >>confdefs.h
27579
27580        NEED_DBUS="yes"
27581fi
27582 if test "x$SYSTEMD_LOGIND" = xyes; then
27583  SYSTEMD_LOGIND_TRUE=
27584  SYSTEMD_LOGIND_FALSE='#'
27585else
27586  SYSTEMD_LOGIND_TRUE='#'
27587  SYSTEMD_LOGIND_FALSE=
27588fi
27589
27590
27591if test "x$SUID_WRAPPER" = xyes; then
27592
27593  prefix_NONE=
27594  exec_prefix_NONE=
27595  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
27596  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
27597  eval ac_define_dir="\"$libexecdir\""
27598  eval ac_define_dir="\"$ac_define_dir\""
27599  SUID_WRAPPER_DIR="$ac_define_dir"
27600
27601
27602printf "%s\n" "#define SUID_WRAPPER_DIR \"$ac_define_dir\"" >>confdefs.h
27603
27604  test "$prefix_NONE" && prefix=NONE
27605  test "$exec_prefix_NONE" && exec_prefix=NONE
27606
27607        SETUID="no"
27608fi
27609 if test "x$SUID_WRAPPER" = xyes; then
27610  SUID_WRAPPER_TRUE=
27611  SUID_WRAPPER_FALSE='#'
27612else
27613  SUID_WRAPPER_TRUE='#'
27614  SUID_WRAPPER_FALSE=
27615fi
27616
27617
27618if test "x$NEED_DBUS" = xyes; then
27619
27620printf "%s\n" "#define NEED_DBUS 1" >>confdefs.h
27621
27622fi
27623 if test "x$NEED_DBUS" = xyes; then
27624  NEED_DBUS_TRUE=
27625  NEED_DBUS_FALSE='#'
27626else
27627  NEED_DBUS_TRUE='#'
27628  NEED_DBUS_FALSE=
27629fi
27630
27631
27632if test "x$CONFIG_WSCONS" = xauto; then
27633	case $host_os in
27634		*openbsd*)
27635			CONFIG_WSCONS=yes;
27636			;;
27637		*)
27638			CONFIG_WSCONS=no;
27639			;;
27640	esac
27641fi
27642 if test "x$CONFIG_WSCONS" = xyes; then
27643  CONFIG_WSCONS_TRUE=
27644  CONFIG_WSCONS_FALSE='#'
27645else
27646  CONFIG_WSCONS_TRUE='#'
27647  CONFIG_WSCONS_FALSE=
27648fi
27649
27650if test "x$CONFIG_WSCONS" = xyes; then
27651
27652printf "%s\n" "#define CONFIG_WSCONS 1" >>confdefs.h
27653
27654fi
27655
27656
27657{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for glibc..." >&5
27658printf %s "checking for glibc...... " >&6; }
27659cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27660/* end confdefs.h.  */
27661
27662#include <features.h>
27663#ifndef __GLIBC__
27664#error
27665#endif
27666
27667_ACEOF
27668if ac_fn_c_try_cpp "$LINENO"
27669then :
27670  glibc=yes
27671else $as_nop
27672  glibc=no
27673fi
27674rm -f conftest.err conftest.i conftest.$ac_ext
27675{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $glibc" >&5
27676printf "%s\n" "$glibc" >&6; }
27677
27678
27679  for ac_func in clock_gettime
27680do :
27681  ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
27682if test "x$ac_cv_func_clock_gettime" = xyes
27683then :
27684  printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
27685 have_clock_gettime=yes
27686else $as_nop
27687  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
27688printf %s "checking for clock_gettime in -lrt... " >&6; }
27689if test ${ac_cv_lib_rt_clock_gettime+y}
27690then :
27691  printf %s "(cached) " >&6
27692else $as_nop
27693  ac_check_lib_save_LIBS=$LIBS
27694LIBS="-lrt  $LIBS"
27695cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27696/* end confdefs.h.  */
27697
27698/* Override any GCC internal prototype to avoid an error.
27699   Use char because int might match the return type of a GCC
27700   builtin and then its argument prototype would still apply.  */
27701char clock_gettime ();
27702int
27703main (void)
27704{
27705return clock_gettime ();
27706  ;
27707  return 0;
27708}
27709_ACEOF
27710if ac_fn_c_try_link "$LINENO"
27711then :
27712  ac_cv_lib_rt_clock_gettime=yes
27713else $as_nop
27714  ac_cv_lib_rt_clock_gettime=no
27715fi
27716rm -f core conftest.err conftest.$ac_objext conftest.beam \
27717    conftest$ac_exeext conftest.$ac_ext
27718LIBS=$ac_check_lib_save_LIBS
27719fi
27720{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
27721printf "%s\n" "$ac_cv_lib_rt_clock_gettime" >&6; }
27722if test "x$ac_cv_lib_rt_clock_gettime" = xyes
27723then :
27724  have_clock_gettime=-lrt
27725else $as_nop
27726  have_clock_gettime=no
27727fi
27728
27729fi
27730
27731done
27732
27733{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a useful monotonic clock ..." >&5
27734printf %s "checking for a useful monotonic clock ...... " >&6; }
27735
27736if ! test "x$have_clock_gettime" = xno; then
27737    if ! test "x$have_clock_gettime" = xyes; then
27738        CLOCK_LIBS="$have_clock_gettime"
27739    else
27740        CLOCK_LIBS=""
27741    fi
27742
27743    LIBS_SAVE="$LIBS"
27744    LIBS="$CLOCK_LIBS"
27745    CPPFLAGS_SAVE="$CPPFLAGS"
27746
27747    if test x"$glibc" = xyes; then
27748        CPPFLAGS="$CPPFLAGS -D_POSIX_C_SOURCE=200112L"
27749    fi
27750
27751    if test "$cross_compiling" = yes
27752then :
27753  MONOTONIC_CLOCK="cross compiling"
27754else $as_nop
27755  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27756/* end confdefs.h.  */
27757
27758#include <time.h>
27759
27760int main(int argc, char *argv[]) {
27761    struct timespec tp;
27762
27763    if (clock_gettime(CLOCK_MONOTONIC, &tp) == 0)
27764        return 0;
27765    else
27766        return 1;
27767}
27768
27769_ACEOF
27770if ac_fn_c_try_run "$LINENO"
27771then :
27772  MONOTONIC_CLOCK=yes
27773else $as_nop
27774  MONOTONIC_CLOCK=no
27775fi
27776rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27777  conftest.$ac_objext conftest.beam conftest.$ac_ext
27778fi
27779
27780
27781    if test "$MONOTONIC_CLOCK" = "cross compiling"; then
27782        ac_fn_check_decl "$LINENO" "CLOCK_MONOTONIC" "ac_cv_have_decl_CLOCK_MONOTONIC" "#include <time.h>
27783" "$ac_c_undeclared_builtin_options" "CFLAGS"
27784if test "x$ac_cv_have_decl_CLOCK_MONOTONIC" = xyes
27785then :
27786  MONOTONIC_CLOCK="guessing yes"
27787else $as_nop
27788  MONOTONIC_CLOCK=no
27789fi
27790    fi
27791
27792    LIBS="$LIBS_SAVE"
27793    CPPFLAGS="$CPPFLAGS_SAVE"
27794else
27795    MONOTONIC_CLOCK=no
27796fi
27797
27798{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MONOTONIC_CLOCK" >&5
27799printf "%s\n" "$MONOTONIC_CLOCK" >&6; }
27800if test "$MONOTONIC_CLOCK" = "guessing yes"; then
27801	MONOTONIC_CLOCK=yes
27802fi
27803
27804if test "x$MONOTONIC_CLOCK" = xyes; then
27805
27806printf "%s\n" "#define MONOTONIC_CLOCK 1" >>confdefs.h
27807
27808    LIBS="$LIBS $CLOCK_LIBS"
27809fi
27810
27811 if test "x$XV" = xyes; then
27812  XV_TRUE=
27813  XV_FALSE='#'
27814else
27815  XV_TRUE='#'
27816  XV_FALSE=
27817fi
27818
27819if test "x$XV" = xyes; then
27820
27821printf "%s\n" "#define XV 1" >>confdefs.h
27822
27823
27824printf "%s\n" "#define XvExtension 1" >>confdefs.h
27825
27826	REQUIRED_MODULES="$REQUIRED_MODULES $VIDEOPROTO"
27827	SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $VIDEOPROTO"
27828else
27829	XVMC=no
27830fi
27831
27832 if test "x$XVMC" = xyes; then
27833  XVMC_TRUE=
27834  XVMC_FALSE='#'
27835else
27836  XVMC_TRUE='#'
27837  XVMC_FALSE=
27838fi
27839
27840if test "x$XVMC" = xyes; then
27841
27842printf "%s\n" "#define XvMCExtension 1" >>confdefs.h
27843
27844fi
27845
27846 if test "x$COMPOSITE" = xyes; then
27847  COMPOSITE_TRUE=
27848  COMPOSITE_FALSE='#'
27849else
27850  COMPOSITE_TRUE='#'
27851  COMPOSITE_FALSE=
27852fi
27853
27854if test "x$COMPOSITE" = xyes; then
27855
27856printf "%s\n" "#define COMPOSITE 1" >>confdefs.h
27857
27858	REQUIRED_MODULES="$REQUIRED_MODULES $COMPOSITEPROTO"
27859	COMPOSITE_LIB='$(top_builddir)/composite/libcomposite.la'
27860	COMPOSITE_INC='-I$(top_srcdir)/composite'
27861fi
27862
27863if test "x$MITSHM" = xauto; then
27864	MITSHM="$ac_cv_sysv_ipc"
27865fi
27866 if test "x$MITSHM" = xyes; then
27867  MITSHM_TRUE=
27868  MITSHM_FALSE='#'
27869else
27870  MITSHM_TRUE='#'
27871  MITSHM_FALSE=
27872fi
27873
27874if test "x$MITSHM" = xyes; then
27875
27876printf "%s\n" "#define MITSHM 1" >>confdefs.h
27877
27878
27879printf "%s\n" "#define HAS_SHM 1" >>confdefs.h
27880
27881fi
27882
27883 if test "x$RECORD" = xyes; then
27884  RECORD_TRUE=
27885  RECORD_FALSE='#'
27886else
27887  RECORD_TRUE='#'
27888  RECORD_FALSE=
27889fi
27890
27891if test "x$RECORD" = xyes; then
27892
27893printf "%s\n" "#define XRECORD 1" >>confdefs.h
27894
27895	REQUIRED_MODULES="$REQUIRED_MODULES $RECORDPROTO"
27896	RECORD_LIB='$(top_builddir)/record/librecord.la'
27897fi
27898
27899 if test "x$SCREENSAVER" = xyes; then
27900  SCREENSAVER_TRUE=
27901  SCREENSAVER_FALSE='#'
27902else
27903  SCREENSAVER_TRUE='#'
27904  SCREENSAVER_FALSE=
27905fi
27906
27907if test "x$SCREENSAVER" = xyes; then
27908
27909printf "%s\n" "#define SCREENSAVER 1" >>confdefs.h
27910
27911	REQUIRED_MODULES="$REQUIRED_MODULES $SCRNSAVERPROTO"
27912	SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $SCRNSAVERPROTO"
27913fi
27914
27915HASHTABLE=no
27916 if test "x$RES" = xyes; then
27917  RES_TRUE=
27918  RES_FALSE='#'
27919else
27920  RES_TRUE='#'
27921  RES_FALSE=
27922fi
27923
27924if test "x$RES" = xyes; then
27925
27926printf "%s\n" "#define RES 1" >>confdefs.h
27927
27928	HASHTABLE=yes
27929	REQUIRED_MODULES="$REQUIRED_MODULES $RESOURCEPROTO"
27930	SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $RESOURCEPROTO"
27931fi
27932
27933if test "x$LISTEN_TCP" = xyes; then
27934
27935printf "%s\n" "#define LISTEN_TCP 1" >>confdefs.h
27936
27937fi
27938if test "x$LISTEN_UNIX" = xyes; then
27939
27940printf "%s\n" "#define LISTEN_UNIX 1" >>confdefs.h
27941
27942fi
27943if test "x$LISTEN_LOCAL" = xyes; then
27944
27945printf "%s\n" "#define LISTEN_LOCAL 1" >>confdefs.h
27946
27947fi
27948
27949# The XRes extension may support client ID tracking only if it has
27950# been specifically enabled. Client ID tracking is implicitly not
27951# supported if XRes extension is disabled.
27952{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to track client ids" >&5
27953printf %s "checking whether to track client ids... " >&6; }
27954if test "x$RES" = xyes && test "x$CLIENTIDS" = xyes; then
27955
27956printf "%s\n" "#define CLIENTIDS 1" >>confdefs.h
27957
27958else
27959	CLIENTIDS=no
27960fi
27961if test "x$CLIENTIDS" = xyes; then
27962	case $host_os in
27963	openbsd*)
27964		SYS_LIBS="$SYS_LIBS -lkvm"
27965	;;
27966	esac
27967fi
27968{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CLIENTIDS" >&5
27969printf "%s\n" "$CLIENTIDS" >&6; }
27970 if test "x$CLIENTIDS" = xyes; then
27971  CLIENTIDS_TRUE=
27972  CLIENTIDS_FALSE='#'
27973else
27974  CLIENTIDS_TRUE='#'
27975  CLIENTIDS_FALSE=
27976fi
27977
27978
27979 if test "x$DRI" = xyes; then
27980  DRI_TRUE=
27981  DRI_FALSE='#'
27982else
27983  DRI_TRUE='#'
27984  DRI_FALSE=
27985fi
27986
27987if test "x$DRI" = xyes; then
27988
27989printf "%s\n" "#define XF86DRI 1" >>confdefs.h
27990
27991	REQUIRED_MODULES="$REQUIRED_MODULES $DRIPROTO $GLPROTO $LIBDRI"
27992	SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $DRIPROTO $GLPROTO $LIBDRI"
27993fi
27994
27995
27996pkg_failed=no
27997{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $DRI2PROTO" >&5
27998printf %s "checking for $DRI2PROTO... " >&6; }
27999
28000if test -n "$DRI2PROTO_CFLAGS"; then
28001    pkg_cv_DRI2PROTO_CFLAGS="$DRI2PROTO_CFLAGS"
28002 elif test -n "$PKG_CONFIG"; then
28003    if test -n "$PKG_CONFIG" && \
28004    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DRI2PROTO\""; } >&5
28005  ($PKG_CONFIG --exists --print-errors "$DRI2PROTO") 2>&5
28006  ac_status=$?
28007  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28008  test $ac_status = 0; }; then
28009  pkg_cv_DRI2PROTO_CFLAGS=`$PKG_CONFIG --cflags "$DRI2PROTO" 2>/dev/null`
28010		      test "x$?" != "x0" && pkg_failed=yes
28011else
28012  pkg_failed=yes
28013fi
28014 else
28015    pkg_failed=untried
28016fi
28017if test -n "$DRI2PROTO_LIBS"; then
28018    pkg_cv_DRI2PROTO_LIBS="$DRI2PROTO_LIBS"
28019 elif test -n "$PKG_CONFIG"; then
28020    if test -n "$PKG_CONFIG" && \
28021    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DRI2PROTO\""; } >&5
28022  ($PKG_CONFIG --exists --print-errors "$DRI2PROTO") 2>&5
28023  ac_status=$?
28024  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28025  test $ac_status = 0; }; then
28026  pkg_cv_DRI2PROTO_LIBS=`$PKG_CONFIG --libs "$DRI2PROTO" 2>/dev/null`
28027		      test "x$?" != "x0" && pkg_failed=yes
28028else
28029  pkg_failed=yes
28030fi
28031 else
28032    pkg_failed=untried
28033fi
28034
28035
28036
28037if test $pkg_failed = yes; then
28038        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28039printf "%s\n" "no" >&6; }
28040
28041if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28042        _pkg_short_errors_supported=yes
28043else
28044        _pkg_short_errors_supported=no
28045fi
28046        if test $_pkg_short_errors_supported = yes; then
28047                DRI2PROTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$DRI2PROTO" 2>&1`
28048        else
28049                DRI2PROTO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$DRI2PROTO" 2>&1`
28050        fi
28051        # Put the nasty error message in config.log where it belongs
28052        echo "$DRI2PROTO_PKG_ERRORS" >&5
28053
28054        HAVE_DRI2PROTO=no
28055elif test $pkg_failed = untried; then
28056        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28057printf "%s\n" "no" >&6; }
28058        HAVE_DRI2PROTO=no
28059else
28060        DRI2PROTO_CFLAGS=$pkg_cv_DRI2PROTO_CFLAGS
28061        DRI2PROTO_LIBS=$pkg_cv_DRI2PROTO_LIBS
28062        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28063printf "%s\n" "yes" >&6; }
28064        HAVE_DRI2PROTO=yes
28065fi
28066case "$DRI2,$HAVE_DRI2PROTO" in
28067	yes,no)
28068		as_fn_error $? "DRI2 requested, but dri2proto not found." "$LINENO" 5
28069		;;
28070	yes,yes | auto,yes)
28071
28072printf "%s\n" "#define DRI2 1" >>confdefs.h
28073
28074		DRI2=yes
28075		LIBGL="gl >= 1.2"
28076		SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $DRI2PROTO"
28077		;;
28078esac
28079 if test "x$DRI2" = xyes; then
28080  DRI2_TRUE=
28081  DRI2_FALSE='#'
28082else
28083  DRI2_TRUE='#'
28084  DRI2_FALSE=
28085fi
28086
28087
28088# Check whether --enable-xtrans-send-fds was given.
28089if test ${enable_xtrans_send_fds+y}
28090then :
28091  enableval=$enable_xtrans_send_fds; XTRANS_SEND_FDS=$enableval
28092else $as_nop
28093  XTRANS_SEND_FDS=auto
28094fi
28095
28096
28097case "x$XTRANS_SEND_FDS" in
28098xauto)
28099	case "$host_os" in
28100	linux*|solaris*|freebsd*|dragonfly*|openbsd*)
28101		XTRANS_SEND_FDS=yes
28102		;;
28103	*)
28104		XTRANS_SEND_FDS=no
28105		;;
28106	esac
28107esac
28108
28109case "x$XTRANS_SEND_FDS" in
28110xyes)
28111
28112printf "%s\n" "#define XTRANS_SEND_FDS 1" >>confdefs.h
28113
28114	;;
28115esac
28116
28117case "$DRI3,$XTRANS_SEND_FDS" in
28118	yes,yes | auto,yes)
28119		;;
28120	yes,no)
28121		as_fn_error $? "DRI3 requested, but xtrans fd passing support not found." "$LINENO" 5
28122		DRI3=no
28123		;;
28124	no,*)
28125		;;
28126	*)
28127		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: DRI3 disabled because xtrans fd passing support not found." >&5
28128printf "%s\n" "$as_me: DRI3 disabled because xtrans fd passing support not found." >&6;}
28129		DRI3=no
28130		;;
28131esac
28132
28133
28134pkg_failed=no
28135{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $DRI3PROTO" >&5
28136printf %s "checking for $DRI3PROTO... " >&6; }
28137
28138if test -n "$DRI3PROTO_CFLAGS"; then
28139    pkg_cv_DRI3PROTO_CFLAGS="$DRI3PROTO_CFLAGS"
28140 elif test -n "$PKG_CONFIG"; then
28141    if test -n "$PKG_CONFIG" && \
28142    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DRI3PROTO\""; } >&5
28143  ($PKG_CONFIG --exists --print-errors "$DRI3PROTO") 2>&5
28144  ac_status=$?
28145  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28146  test $ac_status = 0; }; then
28147  pkg_cv_DRI3PROTO_CFLAGS=`$PKG_CONFIG --cflags "$DRI3PROTO" 2>/dev/null`
28148		      test "x$?" != "x0" && pkg_failed=yes
28149else
28150  pkg_failed=yes
28151fi
28152 else
28153    pkg_failed=untried
28154fi
28155if test -n "$DRI3PROTO_LIBS"; then
28156    pkg_cv_DRI3PROTO_LIBS="$DRI3PROTO_LIBS"
28157 elif test -n "$PKG_CONFIG"; then
28158    if test -n "$PKG_CONFIG" && \
28159    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DRI3PROTO\""; } >&5
28160  ($PKG_CONFIG --exists --print-errors "$DRI3PROTO") 2>&5
28161  ac_status=$?
28162  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28163  test $ac_status = 0; }; then
28164  pkg_cv_DRI3PROTO_LIBS=`$PKG_CONFIG --libs "$DRI3PROTO" 2>/dev/null`
28165		      test "x$?" != "x0" && pkg_failed=yes
28166else
28167  pkg_failed=yes
28168fi
28169 else
28170    pkg_failed=untried
28171fi
28172
28173
28174
28175if test $pkg_failed = yes; then
28176        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28177printf "%s\n" "no" >&6; }
28178
28179if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28180        _pkg_short_errors_supported=yes
28181else
28182        _pkg_short_errors_supported=no
28183fi
28184        if test $_pkg_short_errors_supported = yes; then
28185                DRI3PROTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$DRI3PROTO" 2>&1`
28186        else
28187                DRI3PROTO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$DRI3PROTO" 2>&1`
28188        fi
28189        # Put the nasty error message in config.log where it belongs
28190        echo "$DRI3PROTO_PKG_ERRORS" >&5
28191
28192        HAVE_DRI3PROTO=no
28193elif test $pkg_failed = untried; then
28194        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28195printf "%s\n" "no" >&6; }
28196        HAVE_DRI3PROTO=no
28197else
28198        DRI3PROTO_CFLAGS=$pkg_cv_DRI3PROTO_CFLAGS
28199        DRI3PROTO_LIBS=$pkg_cv_DRI3PROTO_LIBS
28200        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28201printf "%s\n" "yes" >&6; }
28202        HAVE_DRI3PROTO=yes
28203fi
28204
28205case "$DRI3,$HAVE_DRI3PROTO" in
28206	yes,yes | auto,yes)
28207		REQUIRED_MODULES="$REQUIRED_MODULES dri3proto"
28208		;;
28209	yes,no)
28210		as_fn_error $? "DRI3 requested, but dri3proto not found." "$LINENO" 5
28211		DRI3=no
28212		;;
28213	no,*)
28214		;;
28215	*)
28216		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: DRI3 disabled because dri3proto not found." >&5
28217printf "%s\n" "$as_me: DRI3 disabled because dri3proto not found." >&6;}
28218		DRI3=no
28219		;;
28220esac
28221
28222ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
28223if test "x$ac_cv_func_sigaction" = xyes
28224then :
28225  printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h
28226
28227fi
28228
28229
28230BUSFAULT=no
28231
28232case x"$ac_cv_func_sigaction" in
28233	xyes)
28234
28235printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h
28236
28237		BUSFAULT=yes
28238		;;
28239esac
28240
28241case x"$BUSFAULT" in
28242	xyes)
28243
28244printf "%s\n" "#define BUSFAULT 1" >>confdefs.h
28245
28246		;;
28247esac
28248
28249 if test x"$BUSFAULT" = xyes; then
28250  BUSFAULT_TRUE=
28251  BUSFAULT_FALSE='#'
28252else
28253  BUSFAULT_TRUE='#'
28254  BUSFAULT_FALSE=
28255fi
28256
28257
28258
28259
28260pkg_failed=no
28261{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LIBXSHMFENCE" >&5
28262printf %s "checking for $LIBXSHMFENCE... " >&6; }
28263
28264if test -n "$XSHMFENCE_CFLAGS"; then
28265    pkg_cv_XSHMFENCE_CFLAGS="$XSHMFENCE_CFLAGS"
28266 elif test -n "$PKG_CONFIG"; then
28267    if test -n "$PKG_CONFIG" && \
28268    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXSHMFENCE\""; } >&5
28269  ($PKG_CONFIG --exists --print-errors "$LIBXSHMFENCE") 2>&5
28270  ac_status=$?
28271  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28272  test $ac_status = 0; }; then
28273  pkg_cv_XSHMFENCE_CFLAGS=`$PKG_CONFIG --cflags "$LIBXSHMFENCE" 2>/dev/null`
28274		      test "x$?" != "x0" && pkg_failed=yes
28275else
28276  pkg_failed=yes
28277fi
28278 else
28279    pkg_failed=untried
28280fi
28281if test -n "$XSHMFENCE_LIBS"; then
28282    pkg_cv_XSHMFENCE_LIBS="$XSHMFENCE_LIBS"
28283 elif test -n "$PKG_CONFIG"; then
28284    if test -n "$PKG_CONFIG" && \
28285    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXSHMFENCE\""; } >&5
28286  ($PKG_CONFIG --exists --print-errors "$LIBXSHMFENCE") 2>&5
28287  ac_status=$?
28288  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28289  test $ac_status = 0; }; then
28290  pkg_cv_XSHMFENCE_LIBS=`$PKG_CONFIG --libs "$LIBXSHMFENCE" 2>/dev/null`
28291		      test "x$?" != "x0" && pkg_failed=yes
28292else
28293  pkg_failed=yes
28294fi
28295 else
28296    pkg_failed=untried
28297fi
28298
28299
28300
28301if test $pkg_failed = yes; then
28302        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28303printf "%s\n" "no" >&6; }
28304
28305if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28306        _pkg_short_errors_supported=yes
28307else
28308        _pkg_short_errors_supported=no
28309fi
28310        if test $_pkg_short_errors_supported = yes; then
28311                XSHMFENCE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBXSHMFENCE" 2>&1`
28312        else
28313                XSHMFENCE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBXSHMFENCE" 2>&1`
28314        fi
28315        # Put the nasty error message in config.log where it belongs
28316        echo "$XSHMFENCE_PKG_ERRORS" >&5
28317
28318        HAVE_XSHMFENCE=no
28319elif test $pkg_failed = untried; then
28320        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28321printf "%s\n" "no" >&6; }
28322        HAVE_XSHMFENCE=no
28323else
28324        XSHMFENCE_CFLAGS=$pkg_cv_XSHMFENCE_CFLAGS
28325        XSHMFENCE_LIBS=$pkg_cv_XSHMFENCE_LIBS
28326        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28327printf "%s\n" "yes" >&6; }
28328        HAVE_XSHMFENCE=yes
28329fi
28330if test "x$XSHMFENCE" = "xauto"; then
28331    XSHMFENCE="$HAVE_XSHMFENCE"
28332fi
28333
28334if test "x$XSHMFENCE" = "xyes"; then
28335    if test "x$HAVE_XSHMFENCE" != "xyes"; then
28336        as_fn_error $? "xshmfence requested but not installed." "$LINENO" 5
28337    fi
28338
28339printf "%s\n" "#define HAVE_XSHMFENCE 1" >>confdefs.h
28340
28341    REQUIRED_LIBS="$REQUIRED_LIBS $LIBXSHMFENCE"
28342fi
28343
28344 if test "x$XSHMFENCE" = xyes; then
28345  XSHMFENCE_TRUE=
28346  XSHMFENCE_FALSE='#'
28347else
28348  XSHMFENCE_TRUE='#'
28349  XSHMFENCE_FALSE=
28350fi
28351
28352
28353case "$DRI3,$XSHMFENCE" in
28354	yes,yes | auto,yes)
28355		;;
28356	yes,no)
28357		as_fn_error $? "DRI3 requested, but xshmfence not found." "$LINENO" 5
28358		DRI3=no
28359		;;
28360	no,*)
28361		;;
28362	*)
28363		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: DRI3 disabled because xshmfence not found." >&5
28364printf "%s\n" "$as_me: DRI3 disabled because xshmfence not found." >&6;}
28365		DRI3=no
28366		;;
28367esac
28368
28369case x"$DRI3" in
28370	xyes|xauto)
28371		DRI3=yes
28372
28373printf "%s\n" "#define DRI3 1" >>confdefs.h
28374
28375		DRI3_LIB='$(top_builddir)/dri3/libdri3.la'
28376		SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $DRI3PROTO"
28377		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: DRI3 enabled" >&5
28378printf "%s\n" "$as_me: DRI3 enabled" >&6;};
28379		;;
28380esac
28381
28382 if test "x$DRI3" = xyes; then
28383  DRI3_TRUE=
28384  DRI3_FALSE='#'
28385else
28386  DRI3_TRUE='#'
28387  DRI3_FALSE=
28388fi
28389
28390
28391if test "x$DRI" = xyes || test "x$DRI2" = xyes || test "x$DRI3" = xyes || test "x$CONFIG_UDEV_KMS" = xyes || test "x$XORG" = xyes; then
28392	if test "x$DRM" = xyes; then
28393
28394printf "%s\n" "#define WITH_LIBDRM 1" >>confdefs.h
28395
28396
28397pkg_failed=no
28398{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LIBDRM" >&5
28399printf %s "checking for $LIBDRM... " >&6; }
28400
28401if test -n "$LIBDRM_CFLAGS"; then
28402    pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS"
28403 elif test -n "$PKG_CONFIG"; then
28404    if test -n "$PKG_CONFIG" && \
28405    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDRM\""; } >&5
28406  ($PKG_CONFIG --exists --print-errors "$LIBDRM") 2>&5
28407  ac_status=$?
28408  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28409  test $ac_status = 0; }; then
28410  pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "$LIBDRM" 2>/dev/null`
28411		      test "x$?" != "x0" && pkg_failed=yes
28412else
28413  pkg_failed=yes
28414fi
28415 else
28416    pkg_failed=untried
28417fi
28418if test -n "$LIBDRM_LIBS"; then
28419    pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS"
28420 elif test -n "$PKG_CONFIG"; then
28421    if test -n "$PKG_CONFIG" && \
28422    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDRM\""; } >&5
28423  ($PKG_CONFIG --exists --print-errors "$LIBDRM") 2>&5
28424  ac_status=$?
28425  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28426  test $ac_status = 0; }; then
28427  pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "$LIBDRM" 2>/dev/null`
28428		      test "x$?" != "x0" && pkg_failed=yes
28429else
28430  pkg_failed=yes
28431fi
28432 else
28433    pkg_failed=untried
28434fi
28435
28436
28437
28438if test $pkg_failed = yes; then
28439        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28440printf "%s\n" "no" >&6; }
28441
28442if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28443        _pkg_short_errors_supported=yes
28444else
28445        _pkg_short_errors_supported=no
28446fi
28447        if test $_pkg_short_errors_supported = yes; then
28448                LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBDRM" 2>&1`
28449        else
28450                LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBDRM" 2>&1`
28451        fi
28452        # Put the nasty error message in config.log where it belongs
28453        echo "$LIBDRM_PKG_ERRORS" >&5
28454
28455        as_fn_error $? "Package requirements ($LIBDRM) were not met:
28456
28457$LIBDRM_PKG_ERRORS
28458
28459Consider adjusting the PKG_CONFIG_PATH environment variable if you
28460installed software in a non-standard prefix.
28461
28462Alternatively, you may set the environment variables LIBDRM_CFLAGS
28463and LIBDRM_LIBS to avoid the need to call pkg-config.
28464See the pkg-config man page for more details." "$LINENO" 5
28465elif test $pkg_failed = untried; then
28466        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28467printf "%s\n" "no" >&6; }
28468        { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28469printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
28470as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
28471is in your PATH or set the PKG_CONFIG environment variable to the full
28472path to pkg-config.
28473
28474Alternatively, you may set the environment variables LIBDRM_CFLAGS
28475and LIBDRM_LIBS to avoid the need to call pkg-config.
28476See the pkg-config man page for more details.
28477
28478To get pkg-config, see <http://pkg-config.freedesktop.org/>.
28479See \`config.log' for more details" "$LINENO" 5; }
28480else
28481        LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS
28482        LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS
28483        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28484printf "%s\n" "yes" >&6; }
28485
28486fi
28487	fi
28488fi
28489
28490if test "x$GLX" = xyes; then
28491
28492pkg_failed=no
28493{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for x11" >&5
28494printf %s "checking for x11... " >&6; }
28495
28496if test -n "$XLIB_CFLAGS"; then
28497    pkg_cv_XLIB_CFLAGS="$XLIB_CFLAGS"
28498 elif test -n "$PKG_CONFIG"; then
28499    if test -n "$PKG_CONFIG" && \
28500    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
28501  ($PKG_CONFIG --exists --print-errors "x11") 2>&5
28502  ac_status=$?
28503  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28504  test $ac_status = 0; }; then
28505  pkg_cv_XLIB_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
28506		      test "x$?" != "x0" && pkg_failed=yes
28507else
28508  pkg_failed=yes
28509fi
28510 else
28511    pkg_failed=untried
28512fi
28513if test -n "$XLIB_LIBS"; then
28514    pkg_cv_XLIB_LIBS="$XLIB_LIBS"
28515 elif test -n "$PKG_CONFIG"; then
28516    if test -n "$PKG_CONFIG" && \
28517    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
28518  ($PKG_CONFIG --exists --print-errors "x11") 2>&5
28519  ac_status=$?
28520  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28521  test $ac_status = 0; }; then
28522  pkg_cv_XLIB_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
28523		      test "x$?" != "x0" && pkg_failed=yes
28524else
28525  pkg_failed=yes
28526fi
28527 else
28528    pkg_failed=untried
28529fi
28530
28531
28532
28533if test $pkg_failed = yes; then
28534        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28535printf "%s\n" "no" >&6; }
28536
28537if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28538        _pkg_short_errors_supported=yes
28539else
28540        _pkg_short_errors_supported=no
28541fi
28542        if test $_pkg_short_errors_supported = yes; then
28543                XLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11" 2>&1`
28544        else
28545                XLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11" 2>&1`
28546        fi
28547        # Put the nasty error message in config.log where it belongs
28548        echo "$XLIB_PKG_ERRORS" >&5
28549
28550        as_fn_error $? "Package requirements (x11) were not met:
28551
28552$XLIB_PKG_ERRORS
28553
28554Consider adjusting the PKG_CONFIG_PATH environment variable if you
28555installed software in a non-standard prefix.
28556
28557Alternatively, you may set the environment variables XLIB_CFLAGS
28558and XLIB_LIBS to avoid the need to call pkg-config.
28559See the pkg-config man page for more details." "$LINENO" 5
28560elif test $pkg_failed = untried; then
28561        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28562printf "%s\n" "no" >&6; }
28563        { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28564printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
28565as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
28566is in your PATH or set the PKG_CONFIG environment variable to the full
28567path to pkg-config.
28568
28569Alternatively, you may set the environment variables XLIB_CFLAGS
28570and XLIB_LIBS to avoid the need to call pkg-config.
28571See the pkg-config man page for more details.
28572
28573To get pkg-config, see <http://pkg-config.freedesktop.org/>.
28574See \`config.log' for more details" "$LINENO" 5; }
28575else
28576        XLIB_CFLAGS=$pkg_cv_XLIB_CFLAGS
28577        XLIB_LIBS=$pkg_cv_XLIB_LIBS
28578        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28579printf "%s\n" "yes" >&6; }
28580
28581fi
28582
28583pkg_failed=no
28584{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $GLPROTO $LIBGL" >&5
28585printf %s "checking for $GLPROTO $LIBGL... " >&6; }
28586
28587if test -n "$GL_CFLAGS"; then
28588    pkg_cv_GL_CFLAGS="$GL_CFLAGS"
28589 elif test -n "$PKG_CONFIG"; then
28590    if test -n "$PKG_CONFIG" && \
28591    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GLPROTO \$LIBGL\""; } >&5
28592  ($PKG_CONFIG --exists --print-errors "$GLPROTO $LIBGL") 2>&5
28593  ac_status=$?
28594  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28595  test $ac_status = 0; }; then
28596  pkg_cv_GL_CFLAGS=`$PKG_CONFIG --cflags "$GLPROTO $LIBGL" 2>/dev/null`
28597		      test "x$?" != "x0" && pkg_failed=yes
28598else
28599  pkg_failed=yes
28600fi
28601 else
28602    pkg_failed=untried
28603fi
28604if test -n "$GL_LIBS"; then
28605    pkg_cv_GL_LIBS="$GL_LIBS"
28606 elif test -n "$PKG_CONFIG"; then
28607    if test -n "$PKG_CONFIG" && \
28608    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GLPROTO \$LIBGL\""; } >&5
28609  ($PKG_CONFIG --exists --print-errors "$GLPROTO $LIBGL") 2>&5
28610  ac_status=$?
28611  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28612  test $ac_status = 0; }; then
28613  pkg_cv_GL_LIBS=`$PKG_CONFIG --libs "$GLPROTO $LIBGL" 2>/dev/null`
28614		      test "x$?" != "x0" && pkg_failed=yes
28615else
28616  pkg_failed=yes
28617fi
28618 else
28619    pkg_failed=untried
28620fi
28621
28622
28623
28624if test $pkg_failed = yes; then
28625        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28626printf "%s\n" "no" >&6; }
28627
28628if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28629        _pkg_short_errors_supported=yes
28630else
28631        _pkg_short_errors_supported=no
28632fi
28633        if test $_pkg_short_errors_supported = yes; then
28634                GL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$GLPROTO $LIBGL" 2>&1`
28635        else
28636                GL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$GLPROTO $LIBGL" 2>&1`
28637        fi
28638        # Put the nasty error message in config.log where it belongs
28639        echo "$GL_PKG_ERRORS" >&5
28640
28641        as_fn_error $? "Package requirements ($GLPROTO $LIBGL) were not met:
28642
28643$GL_PKG_ERRORS
28644
28645Consider adjusting the PKG_CONFIG_PATH environment variable if you
28646installed software in a non-standard prefix.
28647
28648Alternatively, you may set the environment variables GL_CFLAGS
28649and GL_LIBS to avoid the need to call pkg-config.
28650See the pkg-config man page for more details." "$LINENO" 5
28651elif test $pkg_failed = untried; then
28652        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28653printf "%s\n" "no" >&6; }
28654        { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28655printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
28656as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
28657is in your PATH or set the PKG_CONFIG environment variable to the full
28658path to pkg-config.
28659
28660Alternatively, you may set the environment variables GL_CFLAGS
28661and GL_LIBS to avoid the need to call pkg-config.
28662See the pkg-config man page for more details.
28663
28664To get pkg-config, see <http://pkg-config.freedesktop.org/>.
28665See \`config.log' for more details" "$LINENO" 5; }
28666else
28667        GL_CFLAGS=$pkg_cv_GL_CFLAGS
28668        GL_LIBS=$pkg_cv_GL_LIBS
28669        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28670printf "%s\n" "yes" >&6; }
28671
28672fi
28673
28674
28675printf "%s\n" "#define GLXEXT 1" >>confdefs.h
28676
28677	HASHTABLE=yes
28678	GLX_LIBS='$(top_builddir)/glx/libglx.la $(top_builddir)/glx/libglxvnd.la'
28679	GLX_SYS_LIBS="$GLX_SYS_LIBS $GL_LIBS"
28680else
28681        GLX=no
28682fi
28683 if test "x$GLX" = xyes; then
28684  GLX_TRUE=
28685  GLX_FALSE='#'
28686else
28687  GLX_TRUE='#'
28688  GLX_FALSE=
28689fi
28690
28691
28692 if test "x$HASHTABLE" = xyes; then
28693  HASHTABLE_TRUE=
28694  HASHTABLE_FALSE='#'
28695else
28696  HASHTABLE_TRUE='#'
28697  HASHTABLE_FALSE=
28698fi
28699
28700
28701
28702
28703
28704 if test "x$PRESENT" = xyes; then
28705  PRESENT_TRUE=
28706  PRESENT_FALSE='#'
28707else
28708  PRESENT_TRUE='#'
28709  PRESENT_FALSE=
28710fi
28711
28712if test "x$PRESENT" = xyes; then
28713
28714printf "%s\n" "#define PRESENT 1" >>confdefs.h
28715
28716	REQUIRED_MODULES="$REQUIRED_MODULES $PRESENTPROTO"
28717	SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $PRESENTPROTO"
28718	PRESENT_INC='-I$(top_srcdir)/present'
28719	PRESENT_LIB='$(top_builddir)/present/libpresent.la'
28720fi
28721
28722 if test "x$XINERAMA" = xyes; then
28723  XINERAMA_TRUE=
28724  XINERAMA_FALSE='#'
28725else
28726  XINERAMA_TRUE='#'
28727  XINERAMA_FALSE=
28728fi
28729
28730if test "x$XINERAMA" = xyes; then
28731
28732printf "%s\n" "#define XINERAMA 1" >>confdefs.h
28733
28734
28735printf "%s\n" "#define PANORAMIX 1" >>confdefs.h
28736
28737	REQUIRED_MODULES="$REQUIRED_MODULES $XINERAMAPROTO"
28738	SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $XINERAMAPROTO"
28739fi
28740
28741 if test "x$XACE" = xyes; then
28742  XACE_TRUE=
28743  XACE_FALSE='#'
28744else
28745  XACE_TRUE='#'
28746  XACE_FALSE=
28747fi
28748
28749if test "x$XACE" = xyes; then
28750
28751printf "%s\n" "#define XACE 1" >>confdefs.h
28752
28753fi
28754
28755 if test "x$XSELINUX" = xyes; then
28756  XSELINUX_TRUE=
28757  XSELINUX_FALSE='#'
28758else
28759  XSELINUX_TRUE='#'
28760  XSELINUX_FALSE=
28761fi
28762
28763if test "x$XSELINUX" = xyes; then
28764	if test "x$XACE" != xyes; then
28765		as_fn_error $? "cannot build SELinux extension without X-ACE" "$LINENO" 5
28766	fi
28767	       for ac_header in libaudit.h
28768do :
28769  ac_fn_c_check_header_compile "$LINENO" "libaudit.h" "ac_cv_header_libaudit_h" "$ac_includes_default"
28770if test "x$ac_cv_header_libaudit_h" = xyes
28771then :
28772  printf "%s\n" "#define HAVE_LIBAUDIT_H 1" >>confdefs.h
28773
28774else $as_nop
28775  as_fn_error $? "SELinux extension requires audit system headers" "$LINENO" 5
28776fi
28777
28778done
28779	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for audit_open in -laudit" >&5
28780printf %s "checking for audit_open in -laudit... " >&6; }
28781if test ${ac_cv_lib_audit_audit_open+y}
28782then :
28783  printf %s "(cached) " >&6
28784else $as_nop
28785  ac_check_lib_save_LIBS=$LIBS
28786LIBS="-laudit  $LIBS"
28787cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28788/* end confdefs.h.  */
28789
28790/* Override any GCC internal prototype to avoid an error.
28791   Use char because int might match the return type of a GCC
28792   builtin and then its argument prototype would still apply.  */
28793char audit_open ();
28794int
28795main (void)
28796{
28797return audit_open ();
28798  ;
28799  return 0;
28800}
28801_ACEOF
28802if ac_fn_c_try_link "$LINENO"
28803then :
28804  ac_cv_lib_audit_audit_open=yes
28805else $as_nop
28806  ac_cv_lib_audit_audit_open=no
28807fi
28808rm -f core conftest.err conftest.$ac_objext conftest.beam \
28809    conftest$ac_exeext conftest.$ac_ext
28810LIBS=$ac_check_lib_save_LIBS
28811fi
28812{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audit_audit_open" >&5
28813printf "%s\n" "$ac_cv_lib_audit_audit_open" >&6; }
28814if test "x$ac_cv_lib_audit_audit_open" = xyes
28815then :
28816  printf "%s\n" "#define HAVE_LIBAUDIT 1" >>confdefs.h
28817
28818  LIBS="-laudit $LIBS"
28819
28820else $as_nop
28821  as_fn_error $? "SELinux extension requires audit system library" "$LINENO" 5
28822fi
28823
28824
28825pkg_failed=no
28826{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LIBSELINUX" >&5
28827printf %s "checking for $LIBSELINUX... " >&6; }
28828
28829if test -n "$SELINUX_CFLAGS"; then
28830    pkg_cv_SELINUX_CFLAGS="$SELINUX_CFLAGS"
28831 elif test -n "$PKG_CONFIG"; then
28832    if test -n "$PKG_CONFIG" && \
28833    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBSELINUX\""; } >&5
28834  ($PKG_CONFIG --exists --print-errors "$LIBSELINUX") 2>&5
28835  ac_status=$?
28836  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28837  test $ac_status = 0; }; then
28838  pkg_cv_SELINUX_CFLAGS=`$PKG_CONFIG --cflags "$LIBSELINUX" 2>/dev/null`
28839		      test "x$?" != "x0" && pkg_failed=yes
28840else
28841  pkg_failed=yes
28842fi
28843 else
28844    pkg_failed=untried
28845fi
28846if test -n "$SELINUX_LIBS"; then
28847    pkg_cv_SELINUX_LIBS="$SELINUX_LIBS"
28848 elif test -n "$PKG_CONFIG"; then
28849    if test -n "$PKG_CONFIG" && \
28850    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBSELINUX\""; } >&5
28851  ($PKG_CONFIG --exists --print-errors "$LIBSELINUX") 2>&5
28852  ac_status=$?
28853  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28854  test $ac_status = 0; }; then
28855  pkg_cv_SELINUX_LIBS=`$PKG_CONFIG --libs "$LIBSELINUX" 2>/dev/null`
28856		      test "x$?" != "x0" && pkg_failed=yes
28857else
28858  pkg_failed=yes
28859fi
28860 else
28861    pkg_failed=untried
28862fi
28863
28864
28865
28866if test $pkg_failed = yes; then
28867        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28868printf "%s\n" "no" >&6; }
28869
28870if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28871        _pkg_short_errors_supported=yes
28872else
28873        _pkg_short_errors_supported=no
28874fi
28875        if test $_pkg_short_errors_supported = yes; then
28876                SELINUX_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBSELINUX" 2>&1`
28877        else
28878                SELINUX_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBSELINUX" 2>&1`
28879        fi
28880        # Put the nasty error message in config.log where it belongs
28881        echo "$SELINUX_PKG_ERRORS" >&5
28882
28883        as_fn_error $? "Package requirements ($LIBSELINUX) were not met:
28884
28885$SELINUX_PKG_ERRORS
28886
28887Consider adjusting the PKG_CONFIG_PATH environment variable if you
28888installed software in a non-standard prefix.
28889
28890Alternatively, you may set the environment variables SELINUX_CFLAGS
28891and SELINUX_LIBS to avoid the need to call pkg-config.
28892See the pkg-config man page for more details." "$LINENO" 5
28893elif test $pkg_failed = untried; then
28894        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28895printf "%s\n" "no" >&6; }
28896        { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28897printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
28898as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
28899is in your PATH or set the PKG_CONFIG environment variable to the full
28900path to pkg-config.
28901
28902Alternatively, you may set the environment variables SELINUX_CFLAGS
28903and SELINUX_LIBS to avoid the need to call pkg-config.
28904See the pkg-config man page for more details.
28905
28906To get pkg-config, see <http://pkg-config.freedesktop.org/>.
28907See \`config.log' for more details" "$LINENO" 5; }
28908else
28909        SELINUX_CFLAGS=$pkg_cv_SELINUX_CFLAGS
28910        SELINUX_LIBS=$pkg_cv_SELINUX_LIBS
28911        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28912printf "%s\n" "yes" >&6; }
28913
28914fi
28915	SELINUX_LIBS="$SELINUX_LIBS -laudit"
28916
28917printf "%s\n" "#define XSELINUX 1" >>confdefs.h
28918
28919fi
28920
28921 if test "x$XCSECURITY" = xyes; then
28922  XCSECURITY_TRUE=
28923  XCSECURITY_FALSE='#'
28924else
28925  XCSECURITY_TRUE='#'
28926  XCSECURITY_FALSE=
28927fi
28928
28929if test "x$XCSECURITY" = xyes; then
28930	if test "x$XACE" != xyes; then
28931		as_fn_error $? "cannot build Security extension without X-ACE" "$LINENO" 5
28932	fi
28933
28934printf "%s\n" "#define XCSECURITY 1" >>confdefs.h
28935
28936fi
28937
28938 if test "x$DBE" = xyes; then
28939  DBE_TRUE=
28940  DBE_FALSE='#'
28941else
28942  DBE_TRUE='#'
28943  DBE_FALSE=
28944fi
28945
28946if test "x$DBE" = xyes; then
28947
28948printf "%s\n" "#define DBE 1" >>confdefs.h
28949
28950	DBE_LIB='$(top_builddir)/dbe/libdbe.la'
28951	DBE_INC='-I$(top_srcdir)/dbe'
28952fi
28953
28954 if test "x$XF86BIGFONT" = xyes; then
28955  XF86BIGFONT_TRUE=
28956  XF86BIGFONT_FALSE='#'
28957else
28958  XF86BIGFONT_TRUE='#'
28959  XF86BIGFONT_FALSE=
28960fi
28961
28962if test "x$XF86BIGFONT" = xyes; then
28963
28964printf "%s\n" "#define XF86BIGFONT 1" >>confdefs.h
28965
28966	REQUIRED_MODULES="$REQUIRED_MODULES $BIGFONTPROTO"
28967	SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $BIGFONTPROTO"
28968fi
28969
28970 if test "x$DPMSExtension" = xyes; then
28971  DPMSExtension_TRUE=
28972  DPMSExtension_FALSE='#'
28973else
28974  DPMSExtension_TRUE='#'
28975  DPMSExtension_FALSE=
28976fi
28977
28978if test "x$DPMSExtension" = xyes; then
28979
28980printf "%s\n" "#define DPMSExtension 1" >>confdefs.h
28981
28982fi
28983
28984
28985printf "%s\n" "#define RENDER 1" >>confdefs.h
28986
28987RENDER_LIB='$(top_builddir)/render/librender.la'
28988RENDER_INC='-I$(top_srcdir)/render'
28989
28990
28991printf "%s\n" "#define RANDR 1" >>confdefs.h
28992
28993RANDR_LIB='$(top_builddir)/randr/librandr.la'
28994RANDR_INC='-I$(top_srcdir)/randr'
28995
28996
28997printf "%s\n" "#define XFIXES 1" >>confdefs.h
28998
28999FIXES_LIB='$(top_builddir)/xfixes/libxfixes.la'
29000FIXES_INC='-I$(top_srcdir)/xfixes'
29001
29002
29003printf "%s\n" "#define DAMAGE 1" >>confdefs.h
29004
29005DAMAGE_LIB='$(top_builddir)/damageext/libdamageext.la'
29006DAMAGE_INC='-I$(top_srcdir)/damageext'
29007MIEXT_DAMAGE_LIB='$(top_builddir)/miext/damage/libdamage.la'
29008MIEXT_DAMAGE_INC='-I$(top_srcdir)/miext/damage'
29009
29010# XINPUT extension is integral part of the server
29011
29012printf "%s\n" "#define XINPUT 1" >>confdefs.h
29013
29014XI_LIB='$(top_builddir)/Xi/libXi.la'
29015XI_INC='-I$(top_srcdir)/Xi'
29016
29017 if test "x$XF86UTILS" = xyes; then
29018  XF86UTILS_TRUE=
29019  XF86UTILS_FALSE='#'
29020else
29021  XF86UTILS_TRUE='#'
29022  XF86UTILS_FALSE=
29023fi
29024
29025 if test "x$VGAHW" = xyes; then
29026  VGAHW_TRUE=
29027  VGAHW_FALSE='#'
29028else
29029  VGAHW_TRUE='#'
29030  VGAHW_FALSE=
29031fi
29032
29033 if test "x$INT10MODULE" = xyes; then
29034  INT10MODULE_TRUE=
29035  INT10MODULE_FALSE='#'
29036else
29037  INT10MODULE_TRUE='#'
29038  INT10MODULE_FALSE=
29039fi
29040
29041
29042
29043printf "%s\n" "#define SHAPE 1" >>confdefs.h
29044
29045
29046if test "x$XKBPATH" = "xauto"; then
29047    XKBPATH=$(pkg-config --variable datadir xkbcomp || echo ${datadir})/X11/xkb
29048fi
29049
29050
29051  prefix_NONE=
29052  exec_prefix_NONE=
29053  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
29054  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
29055  eval ac_define_dir="\"$XKBPATH\""
29056  eval ac_define_dir="\"$ac_define_dir\""
29057  XKB_BASE_DIRECTORY="$ac_define_dir"
29058
29059
29060printf "%s\n" "#define XKB_BASE_DIRECTORY \"$ac_define_dir\"" >>confdefs.h
29061
29062  test "$prefix_NONE" && prefix=NONE
29063  test "$exec_prefix_NONE" && exec_prefix=NONE
29064
29065
29066# Check whether --with-xkb-bin-directory was given.
29067if test ${with_xkb_bin_directory+y}
29068then :
29069  withval=$with_xkb_bin_directory; XKB_BIN_DIRECTORY="$withval"
29070else $as_nop
29071  XKB_BIN_DIRECTORY="auto"
29072fi
29073
29074
29075if test "x$XKB_BIN_DIRECTORY" = "xauto"; then
29076    XKB_BIN_DIRECTORY=$(pkg-config --variable bindir xkbcomp)
29077    if test -z $XKB_BIN_DIRECTORY; then
29078        XKB_BIN_DIRECTORY="$bindir"
29079    fi
29080fi
29081
29082
29083  prefix_NONE=
29084  exec_prefix_NONE=
29085  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
29086  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
29087  eval ac_define_dir="\"$XKB_BIN_DIRECTORY\""
29088  eval ac_define_dir="\"$ac_define_dir\""
29089  XKB_BIN_DIRECTORY="$ac_define_dir"
29090
29091
29092printf "%s\n" "#define XKB_BIN_DIRECTORY \"$ac_define_dir\"" >>confdefs.h
29093
29094  test "$prefix_NONE" && prefix=NONE
29095  test "$exec_prefix_NONE" && exec_prefix=NONE
29096
29097
29098XKBOUTPUT_FIRSTCHAR=`echo $XKBOUTPUT | cut -b 1`
29099if [ x$XKBOUTPUT_FIRSTCHAR != x/ -a x$XKBOUTPUT_FIRSTCHAR != 'x$' ] ; then
29100   XKBOUTPUT="$XKB_BASE_DIRECTORY/$XKBOUTPUT"
29101fi
29102
29103
29104XKBOUTPUT=`echo $XKBOUTPUT/ | $SED 's|/*$|/|'`
29105XKB_COMPILED_DIR=`echo $XKBOUTPUT | $SED 's|/*$||'`
29106
29107  prefix_NONE=
29108  exec_prefix_NONE=
29109  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
29110  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
29111  eval ac_define_dir="\"$XKBOUTPUT\""
29112  eval ac_define_dir="\"$ac_define_dir\""
29113  XKM_OUTPUT_DIR="$ac_define_dir"
29114
29115
29116printf "%s\n" "#define XKM_OUTPUT_DIR \"$ac_define_dir\"" >>confdefs.h
29117
29118  test "$prefix_NONE" && prefix=NONE
29119  test "$exec_prefix_NONE" && exec_prefix=NONE
29120
29121
29122
29123if test "x$XKB_DFLT_RULES" = x; then
29124    case $host_os in
29125    linux*)
29126                XKB_DFLT_RULES="evdev"
29127        ;;
29128    *)
29129        XKB_DFLT_RULES="base"
29130        ;;
29131    esac
29132fi
29133
29134printf "%s\n" "#define XKB_DFLT_RULES \"$XKB_DFLT_RULES\"" >>confdefs.h
29135
29136
29137printf "%s\n" "#define XKB_DFLT_MODEL \"$XKB_DFLT_MODEL\"" >>confdefs.h
29138
29139
29140printf "%s\n" "#define XKB_DFLT_LAYOUT \"$XKB_DFLT_LAYOUT\"" >>confdefs.h
29141
29142
29143printf "%s\n" "#define XKB_DFLT_VARIANT \"$XKB_DFLT_VARIANT\"" >>confdefs.h
29144
29145
29146printf "%s\n" "#define XKB_DFLT_OPTIONS \"$XKB_DFLT_OPTIONS\"" >>confdefs.h
29147
29148
29149
29150
29151
29152
29153
29154XKB_LIB='$(top_builddir)/xkb/libxkb.la'
29155XKB_STUB_LIB='$(top_builddir)/xkb/libxkbstubs.la'
29156REQUIRED_MODULES="$REQUIRED_MODULES xkbfile"
29157
29158
29159pkg_failed=no
29160{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xdmcp" >&5
29161printf %s "checking for xdmcp... " >&6; }
29162
29163if test -n "$XDMCP_CFLAGS"; then
29164    pkg_cv_XDMCP_CFLAGS="$XDMCP_CFLAGS"
29165 elif test -n "$PKG_CONFIG"; then
29166    if test -n "$PKG_CONFIG" && \
29167    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xdmcp\""; } >&5
29168  ($PKG_CONFIG --exists --print-errors "xdmcp") 2>&5
29169  ac_status=$?
29170  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29171  test $ac_status = 0; }; then
29172  pkg_cv_XDMCP_CFLAGS=`$PKG_CONFIG --cflags "xdmcp" 2>/dev/null`
29173		      test "x$?" != "x0" && pkg_failed=yes
29174else
29175  pkg_failed=yes
29176fi
29177 else
29178    pkg_failed=untried
29179fi
29180if test -n "$XDMCP_LIBS"; then
29181    pkg_cv_XDMCP_LIBS="$XDMCP_LIBS"
29182 elif test -n "$PKG_CONFIG"; then
29183    if test -n "$PKG_CONFIG" && \
29184    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xdmcp\""; } >&5
29185  ($PKG_CONFIG --exists --print-errors "xdmcp") 2>&5
29186  ac_status=$?
29187  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29188  test $ac_status = 0; }; then
29189  pkg_cv_XDMCP_LIBS=`$PKG_CONFIG --libs "xdmcp" 2>/dev/null`
29190		      test "x$?" != "x0" && pkg_failed=yes
29191else
29192  pkg_failed=yes
29193fi
29194 else
29195    pkg_failed=untried
29196fi
29197
29198
29199
29200if test $pkg_failed = yes; then
29201        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29202printf "%s\n" "no" >&6; }
29203
29204if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29205        _pkg_short_errors_supported=yes
29206else
29207        _pkg_short_errors_supported=no
29208fi
29209        if test $_pkg_short_errors_supported = yes; then
29210                XDMCP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xdmcp" 2>&1`
29211        else
29212                XDMCP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xdmcp" 2>&1`
29213        fi
29214        # Put the nasty error message in config.log where it belongs
29215        echo "$XDMCP_PKG_ERRORS" >&5
29216
29217        have_libxdmcp="no"
29218elif test $pkg_failed = untried; then
29219        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29220printf "%s\n" "no" >&6; }
29221        have_libxdmcp="no"
29222else
29223        XDMCP_CFLAGS=$pkg_cv_XDMCP_CFLAGS
29224        XDMCP_LIBS=$pkg_cv_XDMCP_LIBS
29225        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29226printf "%s\n" "yes" >&6; }
29227        have_libxdmcp="yes"
29228fi
29229if test "x$XDMCP" = xauto; then
29230	if test "x$have_libxdmcp" = xyes; then
29231		XDMCP=yes
29232	else
29233		XDMCP=no
29234	fi
29235fi
29236if test "x$XDMAUTH" = xauto; then
29237	if test "x$have_libxdmcp" = xyes; then
29238		XDMAUTH=yes
29239	else
29240		XDMAUTH=no
29241	fi
29242fi
29243
29244 if test "x$XDMCP" = xyes; then
29245  XDMCP_TRUE=
29246  XDMCP_FALSE='#'
29247else
29248  XDMCP_TRUE='#'
29249  XDMCP_FALSE=
29250fi
29251
29252if test "x$XDMCP" = xyes; then
29253
29254printf "%s\n" "#define XDMCP 1" >>confdefs.h
29255
29256	REQUIRED_LIBS="$REQUIRED_LIBS xdmcp"
29257	XDMCP_MODULES="xdmcp"
29258fi
29259
29260 if test "x$XDMAUTH" = xyes; then
29261  XDMAUTH_TRUE=
29262  XDMAUTH_FALSE='#'
29263else
29264  XDMAUTH_TRUE='#'
29265  XDMAUTH_FALSE=
29266fi
29267
29268if test "x$XDMAUTH" = xyes; then
29269
29270printf "%s\n" "#define HASXDMAUTH 1" >>confdefs.h
29271
29272	if ! test "x$XDMCP" = xyes; then
29273		REQUIRED_LIBS="$REQUIRED_LIBS xdmcp"
29274		XDMCP_MODULES="xdmcp"
29275	fi
29276fi
29277
29278if test "x$XF86VIDMODE" = xauto; then
29279	if test -n "$PKG_CONFIG" && \
29280    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$VIDMODEPROTO\""; } >&5
29281  ($PKG_CONFIG --exists --print-errors "$VIDMODEPROTO") 2>&5
29282  ac_status=$?
29283  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29284  test $ac_status = 0; }; then
29285  XF86VIDMODE=yes
29286else
29287  XF86VIDMODE=no
29288fi
29289fi
29290if test "x$XF86VIDMODE" = xyes; then
29291
29292printf "%s\n" "#define XF86VIDMODE 1" >>confdefs.h
29293
29294fi
29295 if test "x$XF86VIDMODE" = xyes; then
29296  XF86VIDMODE_TRUE=
29297  XF86VIDMODE_FALSE='#'
29298else
29299  XF86VIDMODE_TRUE='#'
29300  XF86VIDMODE_FALSE=
29301fi
29302
29303
29304
29305  prefix_NONE=
29306  exec_prefix_NONE=
29307  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
29308  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
29309  eval ac_define_dir="\"$FONTPATH\""
29310  eval ac_define_dir="\"$ac_define_dir\""
29311  COMPILEDDEFAULTFONTPATH="$ac_define_dir"
29312
29313
29314printf "%s\n" "#define COMPILEDDEFAULTFONTPATH \"$ac_define_dir\"" >>confdefs.h
29315
29316  test "$prefix_NONE" && prefix=NONE
29317  test "$exec_prefix_NONE" && exec_prefix=NONE
29318
29319
29320  prefix_NONE=
29321  exec_prefix_NONE=
29322  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
29323  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
29324  eval ac_define_dir="\"$SERVERCONFIG\""
29325  eval ac_define_dir="\"$ac_define_dir\""
29326  SERVER_MISC_CONFIG_PATH="$ac_define_dir"
29327
29328
29329printf "%s\n" "#define SERVER_MISC_CONFIG_PATH \"$ac_define_dir\"" >>confdefs.h
29330
29331  test "$prefix_NONE" && prefix=NONE
29332  test "$exec_prefix_NONE" && exec_prefix=NONE
29333
29334
29335  prefix_NONE=
29336  exec_prefix_NONE=
29337  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
29338  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
29339  eval ac_define_dir="\"$FONTROOTDIR\""
29340  eval ac_define_dir="\"$ac_define_dir\""
29341  BASE_FONT_PATH="$ac_define_dir"
29342
29343
29344printf "%s\n" "#define BASE_FONT_PATH \"$ac_define_dir\"" >>confdefs.h
29345
29346  test "$prefix_NONE" && prefix=NONE
29347  test "$exec_prefix_NONE" && exec_prefix=NONE
29348
29349dridriverdir=`$PKG_CONFIG --variable=dridriverdir dri`
29350
29351  prefix_NONE=
29352  exec_prefix_NONE=
29353  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
29354  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
29355  eval ac_define_dir="\"$dridriverdir\""
29356  eval ac_define_dir="\"$ac_define_dir\""
29357  DRI_DRIVER_PATH="$ac_define_dir"
29358
29359
29360printf "%s\n" "#define DRI_DRIVER_PATH \"$ac_define_dir\"" >>confdefs.h
29361
29362  test "$prefix_NONE" && prefix=NONE
29363  test "$exec_prefix_NONE" && exec_prefix=NONE
29364
29365
29366printf "%s\n" "#define XVENDORNAME \"$VENDOR_NAME\"" >>confdefs.h
29367
29368
29369printf "%s\n" "#define XVENDORNAMESHORT \"$VENDOR_NAME_SHORT\"" >>confdefs.h
29370
29371
29372printf "%s\n" "#define XORG_MAN_VERSION \"$VENDOR_MAN_VERSION\"" >>confdefs.h
29373
29374
29375printf "%s\n" "#define BUILDERADDR \"$BUILDERADDR\"" >>confdefs.h
29376
29377
29378
29379printf "%s\n" "#define BUILDERSTRING \"$BUILDERSTRING\"" >>confdefs.h
29380
29381
29382
29383
29384printf "%s\n" "#define VENDOR_NAME \"$VENDOR_NAME\"" >>confdefs.h
29385
29386
29387printf "%s\n" "#define VENDOR_NAME_SHORT \"$VENDOR_NAME_SHORT\"" >>confdefs.h
29388
29389
29390printf "%s\n" "#define VENDOR_RELEASE $VENDOR_RELEASE" >>confdefs.h
29391
29392
29393printf "%s\n" "#define VENDOR_MAN_VERSION \"$VENDOR_MAN_VERSION\"" >>confdefs.h
29394
29395
29396if test "x$DEBUGGING" = xyes; then
29397
29398printf "%s\n" "#define DEBUG 1" >>confdefs.h
29399
29400fi
29401 if test "x$DEBUGGING" = xyes; then
29402  DEBUG_TRUE=
29403  DEBUG_FALSE='#'
29404else
29405  DEBUG_TRUE='#'
29406  DEBUG_FALSE=
29407fi
29408
29409
29410
29411printf "%s\n" "#define XTEST 1" >>confdefs.h
29412
29413
29414printf "%s\n" "#define XSYNC 1" >>confdefs.h
29415
29416
29417printf "%s\n" "#define XCMISC 1" >>confdefs.h
29418
29419
29420printf "%s\n" "#define BIGREQS 1" >>confdefs.h
29421
29422
29423if test "x$SPECIAL_DTRACE_OBJECTS" = "xyes" ; then
29424  DIX_LIB='$(top_builddir)/dix/dix.O'
29425  OS_LIB='$(top_builddir)/os/os.O $(SHA1_LIBS) $(DLOPEN_LIBS) $(LIBUNWIND_LIBS)'
29426else
29427  DIX_LIB='$(top_builddir)/dix/libdix.la'
29428  OS_LIB='$(top_builddir)/os/libos.la'
29429fi
29430
29431
29432
29433MAIN_LIB='$(top_builddir)/dix/libmain.la'
29434
29435
29436MI_LIB='$(top_builddir)/mi/libmi.la'
29437MI_EXT_LIB='$(top_builddir)/mi/libmiext.la'
29438MI_INC='-I$(top_srcdir)/mi'
29439FB_LIB='$(top_builddir)/fb/libfb.la'
29440FB_INC='-I$(top_srcdir)/fb'
29441MIEXT_SHADOW_INC='-I$(top_srcdir)/miext/shadow'
29442MIEXT_SHADOW_LIB='$(top_builddir)/miext/shadow/libshadow.la'
29443MIEXT_SYNC_INC='-I$(top_srcdir)/miext/sync'
29444MIEXT_SYNC_LIB='$(top_builddir)/miext/sync/libsync.la'
29445CORE_INCS='-I$(top_srcdir)/include -I$(top_builddir)/include'
29446
29447# SHA1 hashing
29448
29449# Check whether --with-sha1 was given.
29450if test ${with_sha1+y}
29451then :
29452  withval=$with_sha1;
29453fi
29454
29455ac_fn_c_check_func "$LINENO" "SHA1Init" "ac_cv_func_SHA1Init"
29456if test "x$ac_cv_func_SHA1Init" = xyes
29457then :
29458  HAVE_SHA1_IN_LIBC=yes
29459fi
29460
29461if test "x$with_sha1" = x && test "x$HAVE_SHA1_IN_LIBC" = xyes; then
29462	with_sha1=libc
29463fi
29464if test "x$with_sha1" = xlibc && test "x$HAVE_SHA1_IN_LIBC" != xyes; then
29465	as_fn_error $? "libc requested but not found" "$LINENO" 5
29466fi
29467if test "x$with_sha1" = xlibc; then
29468
29469printf "%s\n" "#define HAVE_SHA1_IN_LIBC 1" >>confdefs.h
29470
29471	SHA1_LIBS=""
29472fi
29473ac_fn_c_check_func "$LINENO" "CC_SHA1_Init" "ac_cv_func_CC_SHA1_Init"
29474if test "x$ac_cv_func_CC_SHA1_Init" = xyes
29475then :
29476  HAVE_SHA1_IN_COMMONCRYPTO=yes
29477fi
29478
29479if test "x$with_sha1" = x && test "x$HAVE_SHA1_IN_COMMONCRYPTO" = xyes; then
29480	with_sha1=CommonCrypto
29481fi
29482if test "x$with_sha1" = xCommonCrypto && test "x$HAVE_SHA1_IN_COMMONCRYPTO" != xyes; then
29483	as_fn_error $? "CommonCrypto requested but not found" "$LINENO" 5
29484fi
29485if test "x$with_sha1" = xCommonCrypto; then
29486
29487printf "%s\n" "#define HAVE_SHA1_IN_COMMONCRYPTO 1" >>confdefs.h
29488
29489	SHA1_LIBS=""
29490fi
29491ac_fn_c_check_header_compile "$LINENO" "wincrypt.h" "ac_cv_header_wincrypt_h" "#include <windows.h>
29492"
29493if test "x$ac_cv_header_wincrypt_h" = xyes
29494then :
29495  HAVE_SHA1_IN_CRYPTOAPI=yes
29496fi
29497
29498if test "x$with_sha1" = x && test "x$HAVE_SHA1_IN_CRYPTOAPI" = xyes; then
29499	with_sha1=CryptoAPI
29500fi
29501if test "x$with_sha1" = xCryptoAPI && test "x$HAVE_SHA1_IN_CRYPTOAPI" != xyes; then
29502	as_fn_error $? "CryptoAPI requested but not found" "$LINENO" 5
29503fi
29504if test "x$with_sha1" = xCryptoAPI; then
29505
29506printf "%s\n" "#define HAVE_SHA1_IN_CRYPTOAPI 1" >>confdefs.h
29507
29508	SHA1_LIBS=""
29509fi
29510{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SHA1Init in -lmd" >&5
29511printf %s "checking for SHA1Init in -lmd... " >&6; }
29512if test ${ac_cv_lib_md_SHA1Init+y}
29513then :
29514  printf %s "(cached) " >&6
29515else $as_nop
29516  ac_check_lib_save_LIBS=$LIBS
29517LIBS="-lmd  $LIBS"
29518cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29519/* end confdefs.h.  */
29520
29521/* Override any GCC internal prototype to avoid an error.
29522   Use char because int might match the return type of a GCC
29523   builtin and then its argument prototype would still apply.  */
29524char SHA1Init ();
29525int
29526main (void)
29527{
29528return SHA1Init ();
29529  ;
29530  return 0;
29531}
29532_ACEOF
29533if ac_fn_c_try_link "$LINENO"
29534then :
29535  ac_cv_lib_md_SHA1Init=yes
29536else $as_nop
29537  ac_cv_lib_md_SHA1Init=no
29538fi
29539rm -f core conftest.err conftest.$ac_objext conftest.beam \
29540    conftest$ac_exeext conftest.$ac_ext
29541LIBS=$ac_check_lib_save_LIBS
29542fi
29543{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_md_SHA1Init" >&5
29544printf "%s\n" "$ac_cv_lib_md_SHA1Init" >&6; }
29545if test "x$ac_cv_lib_md_SHA1Init" = xyes
29546then :
29547  HAVE_LIBMD=yes
29548fi
29549
29550if test "x$with_sha1" = x && test "x$HAVE_LIBMD" = xyes; then
29551	with_sha1=libmd
29552fi
29553if test "x$with_sha1" = xlibmd && test "x$HAVE_LIBMD" != xyes; then
29554	as_fn_error $? "libmd requested but not found" "$LINENO" 5
29555fi
29556if test "x$with_sha1" = xlibmd; then
29557
29558printf "%s\n" "#define HAVE_SHA1_IN_LIBMD 1" >>confdefs.h
29559
29560	SHA1_LIBS=-lmd
29561fi
29562
29563pkg_failed=no
29564{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libsha1" >&5
29565printf %s "checking for libsha1... " >&6; }
29566
29567if test -n "$LIBSHA1_CFLAGS"; then
29568    pkg_cv_LIBSHA1_CFLAGS="$LIBSHA1_CFLAGS"
29569 elif test -n "$PKG_CONFIG"; then
29570    if test -n "$PKG_CONFIG" && \
29571    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsha1\""; } >&5
29572  ($PKG_CONFIG --exists --print-errors "libsha1") 2>&5
29573  ac_status=$?
29574  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29575  test $ac_status = 0; }; then
29576  pkg_cv_LIBSHA1_CFLAGS=`$PKG_CONFIG --cflags "libsha1" 2>/dev/null`
29577		      test "x$?" != "x0" && pkg_failed=yes
29578else
29579  pkg_failed=yes
29580fi
29581 else
29582    pkg_failed=untried
29583fi
29584if test -n "$LIBSHA1_LIBS"; then
29585    pkg_cv_LIBSHA1_LIBS="$LIBSHA1_LIBS"
29586 elif test -n "$PKG_CONFIG"; then
29587    if test -n "$PKG_CONFIG" && \
29588    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsha1\""; } >&5
29589  ($PKG_CONFIG --exists --print-errors "libsha1") 2>&5
29590  ac_status=$?
29591  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29592  test $ac_status = 0; }; then
29593  pkg_cv_LIBSHA1_LIBS=`$PKG_CONFIG --libs "libsha1" 2>/dev/null`
29594		      test "x$?" != "x0" && pkg_failed=yes
29595else
29596  pkg_failed=yes
29597fi
29598 else
29599    pkg_failed=untried
29600fi
29601
29602
29603
29604if test $pkg_failed = yes; then
29605        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29606printf "%s\n" "no" >&6; }
29607
29608if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29609        _pkg_short_errors_supported=yes
29610else
29611        _pkg_short_errors_supported=no
29612fi
29613        if test $_pkg_short_errors_supported = yes; then
29614                LIBSHA1_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsha1" 2>&1`
29615        else
29616                LIBSHA1_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsha1" 2>&1`
29617        fi
29618        # Put the nasty error message in config.log where it belongs
29619        echo "$LIBSHA1_PKG_ERRORS" >&5
29620
29621        HAVE_LIBSHA1=no
29622elif test $pkg_failed = untried; then
29623        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29624printf "%s\n" "no" >&6; }
29625        HAVE_LIBSHA1=no
29626else
29627        LIBSHA1_CFLAGS=$pkg_cv_LIBSHA1_CFLAGS
29628        LIBSHA1_LIBS=$pkg_cv_LIBSHA1_LIBS
29629        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29630printf "%s\n" "yes" >&6; }
29631        HAVE_LIBSHA1=yes
29632fi
29633if test "x$with_sha1" = x && test "x$HAVE_LIBSHA1" = xyes; then
29634   with_sha1=libsha1
29635fi
29636if test "x$with_sha1" = xlibsha1 && test "x$HAVE_LIBSHA1" != xyes; then
29637	as_fn_error $? "libsha1 requested but not found" "$LINENO" 5
29638fi
29639if test "x$with_sha1" = xlibsha1; then
29640
29641printf "%s\n" "#define HAVE_SHA1_IN_LIBSHA1 1" >>confdefs.h
29642
29643	SHA1_LIBS=-lsha1
29644fi
29645{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nettle_sha1_init in -lnettle" >&5
29646printf %s "checking for nettle_sha1_init in -lnettle... " >&6; }
29647if test ${ac_cv_lib_nettle_nettle_sha1_init+y}
29648then :
29649  printf %s "(cached) " >&6
29650else $as_nop
29651  ac_check_lib_save_LIBS=$LIBS
29652LIBS="-lnettle  $LIBS"
29653cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29654/* end confdefs.h.  */
29655
29656/* Override any GCC internal prototype to avoid an error.
29657   Use char because int might match the return type of a GCC
29658   builtin and then its argument prototype would still apply.  */
29659char nettle_sha1_init ();
29660int
29661main (void)
29662{
29663return nettle_sha1_init ();
29664  ;
29665  return 0;
29666}
29667_ACEOF
29668if ac_fn_c_try_link "$LINENO"
29669then :
29670  ac_cv_lib_nettle_nettle_sha1_init=yes
29671else $as_nop
29672  ac_cv_lib_nettle_nettle_sha1_init=no
29673fi
29674rm -f core conftest.err conftest.$ac_objext conftest.beam \
29675    conftest$ac_exeext conftest.$ac_ext
29676LIBS=$ac_check_lib_save_LIBS
29677fi
29678{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nettle_nettle_sha1_init" >&5
29679printf "%s\n" "$ac_cv_lib_nettle_nettle_sha1_init" >&6; }
29680if test "x$ac_cv_lib_nettle_nettle_sha1_init" = xyes
29681then :
29682  HAVE_LIBNETTLE=yes
29683fi
29684
29685if test "x$with_sha1" = x && test "x$HAVE_LIBNETTLE" = xyes; then
29686	with_sha1=libnettle
29687fi
29688if test "x$with_sha1" = xlibnettle && test "x$HAVE_LIBNETTLE" != xyes; then
29689	as_fn_error $? "libnettle requested but not found" "$LINENO" 5
29690fi
29691if test "x$with_sha1" = xlibnettle; then
29692
29693printf "%s\n" "#define HAVE_SHA1_IN_LIBNETTLE 1" >>confdefs.h
29694
29695	SHA1_LIBS=-lnettle
29696fi
29697{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gcry_md_open in -lgcrypt" >&5
29698printf %s "checking for gcry_md_open in -lgcrypt... " >&6; }
29699if test ${ac_cv_lib_gcrypt_gcry_md_open+y}
29700then :
29701  printf %s "(cached) " >&6
29702else $as_nop
29703  ac_check_lib_save_LIBS=$LIBS
29704LIBS="-lgcrypt  $LIBS"
29705cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29706/* end confdefs.h.  */
29707
29708/* Override any GCC internal prototype to avoid an error.
29709   Use char because int might match the return type of a GCC
29710   builtin and then its argument prototype would still apply.  */
29711char gcry_md_open ();
29712int
29713main (void)
29714{
29715return gcry_md_open ();
29716  ;
29717  return 0;
29718}
29719_ACEOF
29720if ac_fn_c_try_link "$LINENO"
29721then :
29722  ac_cv_lib_gcrypt_gcry_md_open=yes
29723else $as_nop
29724  ac_cv_lib_gcrypt_gcry_md_open=no
29725fi
29726rm -f core conftest.err conftest.$ac_objext conftest.beam \
29727    conftest$ac_exeext conftest.$ac_ext
29728LIBS=$ac_check_lib_save_LIBS
29729fi
29730{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcrypt_gcry_md_open" >&5
29731printf "%s\n" "$ac_cv_lib_gcrypt_gcry_md_open" >&6; }
29732if test "x$ac_cv_lib_gcrypt_gcry_md_open" = xyes
29733then :
29734  HAVE_LIBGCRYPT=yes
29735fi
29736
29737if test "x$with_sha1" = x && test "x$HAVE_LIBGCRYPT" = xyes; then
29738	with_sha1=libgcrypt
29739fi
29740if test "x$with_sha1" = xlibgcrypt && test "x$HAVE_LIBGCRYPT" != xyes; then
29741	as_fn_error $? "libgcrypt requested but not found" "$LINENO" 5
29742fi
29743if test "x$with_sha1" = xlibgcrypt; then
29744
29745printf "%s\n" "#define HAVE_SHA1_IN_LIBGCRYPT 1" >>confdefs.h
29746
29747	SHA1_LIBS=-lgcrypt
29748fi
29749# We don't need all of the OpenSSL libraries, just libcrypto
29750{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SHA1_Init in -lcrypto" >&5
29751printf %s "checking for SHA1_Init in -lcrypto... " >&6; }
29752if test ${ac_cv_lib_crypto_SHA1_Init+y}
29753then :
29754  printf %s "(cached) " >&6
29755else $as_nop
29756  ac_check_lib_save_LIBS=$LIBS
29757LIBS="-lcrypto  $LIBS"
29758cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29759/* end confdefs.h.  */
29760
29761/* Override any GCC internal prototype to avoid an error.
29762   Use char because int might match the return type of a GCC
29763   builtin and then its argument prototype would still apply.  */
29764char SHA1_Init ();
29765int
29766main (void)
29767{
29768return SHA1_Init ();
29769  ;
29770  return 0;
29771}
29772_ACEOF
29773if ac_fn_c_try_link "$LINENO"
29774then :
29775  ac_cv_lib_crypto_SHA1_Init=yes
29776else $as_nop
29777  ac_cv_lib_crypto_SHA1_Init=no
29778fi
29779rm -f core conftest.err conftest.$ac_objext conftest.beam \
29780    conftest$ac_exeext conftest.$ac_ext
29781LIBS=$ac_check_lib_save_LIBS
29782fi
29783{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_SHA1_Init" >&5
29784printf "%s\n" "$ac_cv_lib_crypto_SHA1_Init" >&6; }
29785if test "x$ac_cv_lib_crypto_SHA1_Init" = xyes
29786then :
29787  HAVE_LIBCRYPTO=yes
29788fi
29789
29790
29791pkg_failed=no
29792{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for openssl" >&5
29793printf %s "checking for openssl... " >&6; }
29794
29795if test -n "$OPENSSL_CFLAGS"; then
29796    pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
29797 elif test -n "$PKG_CONFIG"; then
29798    if test -n "$PKG_CONFIG" && \
29799    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5
29800  ($PKG_CONFIG --exists --print-errors "openssl") 2>&5
29801  ac_status=$?
29802  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29803  test $ac_status = 0; }; then
29804  pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl" 2>/dev/null`
29805		      test "x$?" != "x0" && pkg_failed=yes
29806else
29807  pkg_failed=yes
29808fi
29809 else
29810    pkg_failed=untried
29811fi
29812if test -n "$OPENSSL_LIBS"; then
29813    pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
29814 elif test -n "$PKG_CONFIG"; then
29815    if test -n "$PKG_CONFIG" && \
29816    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5
29817  ($PKG_CONFIG --exists --print-errors "openssl") 2>&5
29818  ac_status=$?
29819  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29820  test $ac_status = 0; }; then
29821  pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl" 2>/dev/null`
29822		      test "x$?" != "x0" && pkg_failed=yes
29823else
29824  pkg_failed=yes
29825fi
29826 else
29827    pkg_failed=untried
29828fi
29829
29830
29831
29832if test $pkg_failed = yes; then
29833        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29834printf "%s\n" "no" >&6; }
29835
29836if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29837        _pkg_short_errors_supported=yes
29838else
29839        _pkg_short_errors_supported=no
29840fi
29841        if test $_pkg_short_errors_supported = yes; then
29842                OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl" 2>&1`
29843        else
29844                OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl" 2>&1`
29845        fi
29846        # Put the nasty error message in config.log where it belongs
29847        echo "$OPENSSL_PKG_ERRORS" >&5
29848
29849        HAVE_OPENSSL_PKC=no
29850elif test $pkg_failed = untried; then
29851        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29852printf "%s\n" "no" >&6; }
29853        HAVE_OPENSSL_PKC=no
29854else
29855        OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
29856        OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
29857        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29858printf "%s\n" "yes" >&6; }
29859        HAVE_OPENSSL_PKC=yes
29860fi
29861if test "x$HAVE_LIBCRYPTO" = xyes || test "x$HAVE_OPENSSL_PKC" = xyes; then
29862	if test "x$with_sha1" = x; then
29863		with_sha1=libcrypto
29864	fi
29865else
29866	if test "x$with_sha1" = xlibcrypto; then
29867		as_fn_error $? "OpenSSL libcrypto requested but not found" "$LINENO" 5
29868	fi
29869fi
29870if test "x$with_sha1" = xlibcrypto; then
29871	if test "x$HAVE_LIBCRYPTO" = xyes; then
29872		SHA1_LIBS=-lcrypto
29873	else
29874		SHA1_LIBS="$OPENSSL_LIBS"
29875		SHA1_CFLAGS="$OPENSSL_CFLAGS"
29876	fi
29877fi
29878{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SHA1 implementation" >&5
29879printf %s "checking for SHA1 implementation... " >&6; }
29880if test "x$with_sha1" = x; then
29881	as_fn_error $? "No suitable SHA1 implementation found" "$LINENO" 5
29882fi
29883{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sha1" >&5
29884printf "%s\n" "$with_sha1" >&6; }
29885
29886
29887
29888
29889pkg_failed=no
29890{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $REQUIRED_MODULES $REQUIRED_LIBS" >&5
29891printf %s "checking for $REQUIRED_MODULES $REQUIRED_LIBS... " >&6; }
29892
29893if test -n "$XSERVERCFLAGS_CFLAGS"; then
29894    pkg_cv_XSERVERCFLAGS_CFLAGS="$XSERVERCFLAGS_CFLAGS"
29895 elif test -n "$PKG_CONFIG"; then
29896    if test -n "$PKG_CONFIG" && \
29897    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$REQUIRED_MODULES \$REQUIRED_LIBS\""; } >&5
29898  ($PKG_CONFIG --exists --print-errors "$REQUIRED_MODULES $REQUIRED_LIBS") 2>&5
29899  ac_status=$?
29900  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29901  test $ac_status = 0; }; then
29902  pkg_cv_XSERVERCFLAGS_CFLAGS=`$PKG_CONFIG --cflags "$REQUIRED_MODULES $REQUIRED_LIBS" 2>/dev/null`
29903		      test "x$?" != "x0" && pkg_failed=yes
29904else
29905  pkg_failed=yes
29906fi
29907 else
29908    pkg_failed=untried
29909fi
29910if test -n "$XSERVERCFLAGS_LIBS"; then
29911    pkg_cv_XSERVERCFLAGS_LIBS="$XSERVERCFLAGS_LIBS"
29912 elif test -n "$PKG_CONFIG"; then
29913    if test -n "$PKG_CONFIG" && \
29914    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$REQUIRED_MODULES \$REQUIRED_LIBS\""; } >&5
29915  ($PKG_CONFIG --exists --print-errors "$REQUIRED_MODULES $REQUIRED_LIBS") 2>&5
29916  ac_status=$?
29917  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29918  test $ac_status = 0; }; then
29919  pkg_cv_XSERVERCFLAGS_LIBS=`$PKG_CONFIG --libs "$REQUIRED_MODULES $REQUIRED_LIBS" 2>/dev/null`
29920		      test "x$?" != "x0" && pkg_failed=yes
29921else
29922  pkg_failed=yes
29923fi
29924 else
29925    pkg_failed=untried
29926fi
29927
29928
29929
29930if test $pkg_failed = yes; then
29931        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29932printf "%s\n" "no" >&6; }
29933
29934if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29935        _pkg_short_errors_supported=yes
29936else
29937        _pkg_short_errors_supported=no
29938fi
29939        if test $_pkg_short_errors_supported = yes; then
29940                XSERVERCFLAGS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$REQUIRED_MODULES $REQUIRED_LIBS" 2>&1`
29941        else
29942                XSERVERCFLAGS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$REQUIRED_MODULES $REQUIRED_LIBS" 2>&1`
29943        fi
29944        # Put the nasty error message in config.log where it belongs
29945        echo "$XSERVERCFLAGS_PKG_ERRORS" >&5
29946
29947        as_fn_error $? "Package requirements ($REQUIRED_MODULES $REQUIRED_LIBS) were not met:
29948
29949$XSERVERCFLAGS_PKG_ERRORS
29950
29951Consider adjusting the PKG_CONFIG_PATH environment variable if you
29952installed software in a non-standard prefix.
29953
29954Alternatively, you may set the environment variables XSERVERCFLAGS_CFLAGS
29955and XSERVERCFLAGS_LIBS to avoid the need to call pkg-config.
29956See the pkg-config man page for more details." "$LINENO" 5
29957elif test $pkg_failed = untried; then
29958        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29959printf "%s\n" "no" >&6; }
29960        { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
29961printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
29962as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
29963is in your PATH or set the PKG_CONFIG environment variable to the full
29964path to pkg-config.
29965
29966Alternatively, you may set the environment variables XSERVERCFLAGS_CFLAGS
29967and XSERVERCFLAGS_LIBS to avoid the need to call pkg-config.
29968See the pkg-config man page for more details.
29969
29970To get pkg-config, see <http://pkg-config.freedesktop.org/>.
29971See \`config.log' for more details" "$LINENO" 5; }
29972else
29973        XSERVERCFLAGS_CFLAGS=$pkg_cv_XSERVERCFLAGS_CFLAGS
29974        XSERVERCFLAGS_LIBS=$pkg_cv_XSERVERCFLAGS_LIBS
29975        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29976printf "%s\n" "yes" >&6; }
29977
29978fi
29979
29980pkg_failed=no
29981{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $REQUIRED_LIBS" >&5
29982printf %s "checking for $REQUIRED_LIBS... " >&6; }
29983
29984if test -n "$XSERVERLIBS_CFLAGS"; then
29985    pkg_cv_XSERVERLIBS_CFLAGS="$XSERVERLIBS_CFLAGS"
29986 elif test -n "$PKG_CONFIG"; then
29987    if test -n "$PKG_CONFIG" && \
29988    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$REQUIRED_LIBS\""; } >&5
29989  ($PKG_CONFIG --exists --print-errors "$REQUIRED_LIBS") 2>&5
29990  ac_status=$?
29991  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29992  test $ac_status = 0; }; then
29993  pkg_cv_XSERVERLIBS_CFLAGS=`$PKG_CONFIG --cflags "$REQUIRED_LIBS" 2>/dev/null`
29994		      test "x$?" != "x0" && pkg_failed=yes
29995else
29996  pkg_failed=yes
29997fi
29998 else
29999    pkg_failed=untried
30000fi
30001if test -n "$XSERVERLIBS_LIBS"; then
30002    pkg_cv_XSERVERLIBS_LIBS="$XSERVERLIBS_LIBS"
30003 elif test -n "$PKG_CONFIG"; then
30004    if test -n "$PKG_CONFIG" && \
30005    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$REQUIRED_LIBS\""; } >&5
30006  ($PKG_CONFIG --exists --print-errors "$REQUIRED_LIBS") 2>&5
30007  ac_status=$?
30008  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30009  test $ac_status = 0; }; then
30010  pkg_cv_XSERVERLIBS_LIBS=`$PKG_CONFIG --libs "$REQUIRED_LIBS" 2>/dev/null`
30011		      test "x$?" != "x0" && pkg_failed=yes
30012else
30013  pkg_failed=yes
30014fi
30015 else
30016    pkg_failed=untried
30017fi
30018
30019
30020
30021if test $pkg_failed = yes; then
30022        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30023printf "%s\n" "no" >&6; }
30024
30025if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30026        _pkg_short_errors_supported=yes
30027else
30028        _pkg_short_errors_supported=no
30029fi
30030        if test $_pkg_short_errors_supported = yes; then
30031                XSERVERLIBS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$REQUIRED_LIBS" 2>&1`
30032        else
30033                XSERVERLIBS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$REQUIRED_LIBS" 2>&1`
30034        fi
30035        # Put the nasty error message in config.log where it belongs
30036        echo "$XSERVERLIBS_PKG_ERRORS" >&5
30037
30038        as_fn_error $? "Package requirements ($REQUIRED_LIBS) were not met:
30039
30040$XSERVERLIBS_PKG_ERRORS
30041
30042Consider adjusting the PKG_CONFIG_PATH environment variable if you
30043installed software in a non-standard prefix.
30044
30045Alternatively, you may set the environment variables XSERVERLIBS_CFLAGS
30046and XSERVERLIBS_LIBS to avoid the need to call pkg-config.
30047See the pkg-config man page for more details." "$LINENO" 5
30048elif test $pkg_failed = untried; then
30049        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30050printf "%s\n" "no" >&6; }
30051        { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
30052printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
30053as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
30054is in your PATH or set the PKG_CONFIG environment variable to the full
30055path to pkg-config.
30056
30057Alternatively, you may set the environment variables XSERVERLIBS_CFLAGS
30058and XSERVERLIBS_LIBS to avoid the need to call pkg-config.
30059See the pkg-config man page for more details.
30060
30061To get pkg-config, see <http://pkg-config.freedesktop.org/>.
30062See \`config.log' for more details" "$LINENO" 5; }
30063else
30064        XSERVERLIBS_CFLAGS=$pkg_cv_XSERVERLIBS_CFLAGS
30065        XSERVERLIBS_LIBS=$pkg_cv_XSERVERLIBS_LIBS
30066        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30067printf "%s\n" "yes" >&6; }
30068
30069fi
30070
30071
30072pkg_failed=no
30073{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libunwind" >&5
30074printf %s "checking for libunwind... " >&6; }
30075
30076if test -n "$LIBUNWIND_CFLAGS"; then
30077    pkg_cv_LIBUNWIND_CFLAGS="$LIBUNWIND_CFLAGS"
30078 elif test -n "$PKG_CONFIG"; then
30079    if test -n "$PKG_CONFIG" && \
30080    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libunwind\""; } >&5
30081  ($PKG_CONFIG --exists --print-errors "libunwind") 2>&5
30082  ac_status=$?
30083  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30084  test $ac_status = 0; }; then
30085  pkg_cv_LIBUNWIND_CFLAGS=`$PKG_CONFIG --cflags "libunwind" 2>/dev/null`
30086		      test "x$?" != "x0" && pkg_failed=yes
30087else
30088  pkg_failed=yes
30089fi
30090 else
30091    pkg_failed=untried
30092fi
30093if test -n "$LIBUNWIND_LIBS"; then
30094    pkg_cv_LIBUNWIND_LIBS="$LIBUNWIND_LIBS"
30095 elif test -n "$PKG_CONFIG"; then
30096    if test -n "$PKG_CONFIG" && \
30097    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libunwind\""; } >&5
30098  ($PKG_CONFIG --exists --print-errors "libunwind") 2>&5
30099  ac_status=$?
30100  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30101  test $ac_status = 0; }; then
30102  pkg_cv_LIBUNWIND_LIBS=`$PKG_CONFIG --libs "libunwind" 2>/dev/null`
30103		      test "x$?" != "x0" && pkg_failed=yes
30104else
30105  pkg_failed=yes
30106fi
30107 else
30108    pkg_failed=untried
30109fi
30110
30111
30112
30113if test $pkg_failed = yes; then
30114        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30115printf "%s\n" "no" >&6; }
30116
30117if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30118        _pkg_short_errors_supported=yes
30119else
30120        _pkg_short_errors_supported=no
30121fi
30122        if test $_pkg_short_errors_supported = yes; then
30123                LIBUNWIND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libunwind" 2>&1`
30124        else
30125                LIBUNWIND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libunwind" 2>&1`
30126        fi
30127        # Put the nasty error message in config.log where it belongs
30128        echo "$LIBUNWIND_PKG_ERRORS" >&5
30129
30130        HAVE_LIBUNWIND=no
30131elif test $pkg_failed = untried; then
30132        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30133printf "%s\n" "no" >&6; }
30134        HAVE_LIBUNWIND=no
30135else
30136        LIBUNWIND_CFLAGS=$pkg_cv_LIBUNWIND_CFLAGS
30137        LIBUNWIND_LIBS=$pkg_cv_LIBUNWIND_LIBS
30138        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30139printf "%s\n" "yes" >&6; }
30140        HAVE_LIBUNWIND=yes
30141fi
30142if test "x$LIBUNWIND" = "xauto"; then
30143    LIBUNWIND="$HAVE_LIBUNWIND"
30144fi
30145
30146if test "x$LIBUNWIND" = "xyes"; then
30147    if test "x$HAVE_LIBUNWIND" != "xyes"; then
30148        as_fn_error $? "libunwind requested but not installed." "$LINENO" 5
30149    fi
30150
30151printf "%s\n" "#define HAVE_LIBUNWIND 1" >>confdefs.h
30152
30153fi
30154
30155 if test "x$LIBUNWIND" = xyes; then
30156  HAVE_LIBUNWIND_TRUE=
30157  HAVE_LIBUNWIND_FALSE='#'
30158else
30159  HAVE_LIBUNWIND_TRUE='#'
30160  HAVE_LIBUNWIND_FALSE=
30161fi
30162
30163
30164# Autotools has some unfortunate issues with library handling.  In order to
30165# get a server to rebuild when a dependency in the tree is changed, it must
30166# be listed in SERVERNAME_DEPENDENCIES.  However, no system libraries may be
30167# listed there, or some versions of autotools will break (especially if a -L
30168# is required to find the library).  So, we keep two sets of libraries
30169# detected: NAMESPACE_LIBS for in-tree libraries to be linked against, which
30170# will go into the _DEPENDENCIES and _LDADD of the server, and
30171# NAMESPACE_SYS_LIBS which will go into only the _LDADD.  The
30172# NAMESPACEMODULES_LIBS detected from pkgconfig should always go in
30173# NAMESPACE_SYS_LIBS.
30174#
30175# XSERVER_LIBS is the set of in-tree libraries which all servers require.
30176# XSERVER_SYS_LIBS is the set of out-of-tree libraries which all servers
30177# require.
30178#
30179XSERVER_CFLAGS="${XSERVER_CFLAGS} ${XSERVERCFLAGS_CFLAGS}"
30180XSERVER_LIBS="$DIX_LIB $MI_LIB $OS_LIB"
30181XSERVER_SYS_LIBS="${XSERVERLIBS_LIBS} ${SYS_LIBS} ${LIBS}"
30182
30183
30184
30185UTILS_SYS_LIBS="${SYS_LIBS}"
30186
30187
30188# The Xorg binary needs to export symbols so that they can be used from modules
30189# Some platforms require extra flags to do this.   libtool should set the
30190# necessary flags for each platform when -export-dynamic is passed to it.
30191LD_EXPORT_SYMBOLS_FLAG="-export-dynamic"
30192LD_NO_UNDEFINED_FLAG=
30193XORG_DRIVER_LIBS=
30194case "$host_os" in
30195    cygwin*)
30196	LD_EXPORT_SYMBOLS_FLAG="-Wl,--export-all,--out-implib,lib\$@.a"
30197	LD_NO_UNDEFINED_FLAG="-no-undefined -Wl,\$(top_builddir)/hw/xfree86/libXorg.exe.a"
30198	XORG_DRIVER_LIBS="-lXorg.exe -L\${moduledir} -lshadow -lfb -no-undefined"
30199	CYGWIN=yes
30200	;;
30201    solaris*)
30202	# We use AC_LINK_IFELSE to generate a temporary program conftest$EXEEXT
30203	# that we can link against for testing if the system linker is new
30204	# enough to support -z parent=<program> for verifying loadable modules
30205	# are only calling functions defined in either the loading program or
30206	# the libraries they're linked with.
30207	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30208/* end confdefs.h.  */
30209int main(int argc, char **argv) { return 0; }
30210_ACEOF
30211if ac_fn_c_try_link "$LINENO"
30212then :
30213  mv conftest$EXEEXT conftest.parent
30214	     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-z,parent=conftest.parent -G" >&5
30215printf %s "checking whether the linker accepts -Wl,-z,parent=conftest.parent -G... " >&6; }
30216if test ${xorg_cv_linker_flags__Wl__z_parent_conftest_parent__G+y}
30217then :
30218  printf %s "(cached) " >&6
30219else $as_nop
30220
30221      ax_save_FLAGS=$LDFLAGS
30222      LDFLAGS="-Wl,-z,parent=conftest.parent -G"
30223      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30224/* end confdefs.h.  */
30225extern int main(int argc, char **argv);
30226			int call_main(void) { return main(0, (void *)0); }
30227_ACEOF
30228if ac_fn_c_try_link "$LINENO"
30229then :
30230  xorg_cv_linker_flags__Wl__z_parent_conftest_parent__G=yes
30231else $as_nop
30232  xorg_cv_linker_flags__Wl__z_parent_conftest_parent__G=no
30233fi
30234rm -f core conftest.err conftest.$ac_objext conftest.beam \
30235    conftest$ac_exeext conftest.$ac_ext
30236      LDFLAGS=$ax_save_FLAGS
30237fi
30238
30239eval xorg_check_linker_flags=$xorg_cv_linker_flags__Wl__z_parent_conftest_parent__G
30240{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_check_linker_flags" >&5
30241printf "%s\n" "$xorg_check_linker_flags" >&6; }
30242if test "x$xorg_check_linker_flags" = xyes; then
30243	LD_NO_UNDEFINED_FLAG="-Wl,-z,defs -Wl,-z,parent=\$(top_builddir)/hw/xfree86/Xorg"
30244# Not set yet, since this gets exported in xorg-server.pc to all the drivers,
30245# and they're not all fixed to build correctly with it yet.
30246#		 XORG_DRIVER_LIBS="-Wl,-z,defs -Wl,-z,parent=${bindir}/Xorg"
30247
30248else
30249	:
30250fi
30251
30252	     rm -f conftest.parent
30253
30254fi
30255rm -f core conftest.err conftest.$ac_objext conftest.beam \
30256    conftest$ac_exeext conftest.$ac_ext
30257	;;
30258esac
30259
30260
30261
30262 if test x"$CYGWIN" = xyes; then
30263  CYGWIN_TRUE=
30264  CYGWIN_FALSE='#'
30265else
30266  CYGWIN_TRUE='#'
30267  CYGWIN_FALSE=
30268fi
30269
30270 if test x"$LD_NO_UNDEFINED_FLAG" != x; then
30271  NO_UNDEFINED_TRUE=
30272  NO_UNDEFINED_FALSE='#'
30273else
30274  NO_UNDEFINED_TRUE='#'
30275  NO_UNDEFINED_FALSE=
30276fi
30277
30278
30279{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if SVR4 needs to be defined" >&5
30280printf %s "checking if SVR4 needs to be defined... " >&6; }
30281cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30282/* end confdefs.h.  */
30283
30284#if defined(SVR4) || defined(__svr4__) || defined(__SVR4)
30285 I_AM_SVR4
30286#endif
30287
30288_ACEOF
30289if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30290  $EGREP "I_AM_SVR4" >/dev/null 2>&1
30291then :
30292
30293
30294printf "%s\n" "#define SVR4 1" >>confdefs.h
30295
30296{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30297printf "%s\n" "yes" >&6; }
30298else $as_nop
30299  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30300printf "%s\n" "no" >&6; }
30301fi
30302rm -rf conftest*
30303
30304
30305XSERVER_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"
30306
30307
30308
30309{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build Xvfb DDX" >&5
30310printf %s "checking whether to build Xvfb DDX... " >&6; }
30311{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XVFB" >&5
30312printf "%s\n" "$XVFB" >&6; }
30313 if test "x$XVFB" = xyes; then
30314  XVFB_TRUE=
30315  XVFB_FALSE='#'
30316else
30317  XVFB_TRUE='#'
30318  XVFB_FALSE=
30319fi
30320
30321
30322if test "x$XVFB" = xyes; then
30323	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"
30324	XVFB_SYS_LIBS="$XVFBMODULES_LIBS $GLX_SYS_LIBS"
30325
30326
30327fi
30328
30329
30330
30331
30332pkg_failed=no
30333{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LIBXEXT x11 xau $XDMCP_MODULES" >&5
30334printf %s "checking for $LIBXEXT x11 xau $XDMCP_MODULES... " >&6; }
30335
30336if test -n "$XNESTMODULES_CFLAGS"; then
30337    pkg_cv_XNESTMODULES_CFLAGS="$XNESTMODULES_CFLAGS"
30338 elif test -n "$PKG_CONFIG"; then
30339    if test -n "$PKG_CONFIG" && \
30340    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXEXT x11 xau \$XDMCP_MODULES\""; } >&5
30341  ($PKG_CONFIG --exists --print-errors "$LIBXEXT x11 xau $XDMCP_MODULES") 2>&5
30342  ac_status=$?
30343  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30344  test $ac_status = 0; }; then
30345  pkg_cv_XNESTMODULES_CFLAGS=`$PKG_CONFIG --cflags "$LIBXEXT x11 xau $XDMCP_MODULES" 2>/dev/null`
30346		      test "x$?" != "x0" && pkg_failed=yes
30347else
30348  pkg_failed=yes
30349fi
30350 else
30351    pkg_failed=untried
30352fi
30353if test -n "$XNESTMODULES_LIBS"; then
30354    pkg_cv_XNESTMODULES_LIBS="$XNESTMODULES_LIBS"
30355 elif test -n "$PKG_CONFIG"; then
30356    if test -n "$PKG_CONFIG" && \
30357    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXEXT x11 xau \$XDMCP_MODULES\""; } >&5
30358  ($PKG_CONFIG --exists --print-errors "$LIBXEXT x11 xau $XDMCP_MODULES") 2>&5
30359  ac_status=$?
30360  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30361  test $ac_status = 0; }; then
30362  pkg_cv_XNESTMODULES_LIBS=`$PKG_CONFIG --libs "$LIBXEXT x11 xau $XDMCP_MODULES" 2>/dev/null`
30363		      test "x$?" != "x0" && pkg_failed=yes
30364else
30365  pkg_failed=yes
30366fi
30367 else
30368    pkg_failed=untried
30369fi
30370
30371
30372
30373if test $pkg_failed = yes; then
30374        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30375printf "%s\n" "no" >&6; }
30376
30377if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30378        _pkg_short_errors_supported=yes
30379else
30380        _pkg_short_errors_supported=no
30381fi
30382        if test $_pkg_short_errors_supported = yes; then
30383                XNESTMODULES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBXEXT x11 xau $XDMCP_MODULES" 2>&1`
30384        else
30385                XNESTMODULES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBXEXT x11 xau $XDMCP_MODULES" 2>&1`
30386        fi
30387        # Put the nasty error message in config.log where it belongs
30388        echo "$XNESTMODULES_PKG_ERRORS" >&5
30389
30390        have_xnest=no
30391elif test $pkg_failed = untried; then
30392        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30393printf "%s\n" "no" >&6; }
30394        have_xnest=no
30395else
30396        XNESTMODULES_CFLAGS=$pkg_cv_XNESTMODULES_CFLAGS
30397        XNESTMODULES_LIBS=$pkg_cv_XNESTMODULES_LIBS
30398        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30399printf "%s\n" "yes" >&6; }
30400        have_xnest=yes
30401fi
30402{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build Xnest DDX" >&5
30403printf %s "checking whether to build Xnest DDX... " >&6; }
30404if test "x$XNEST" = xauto; then
30405	XNEST="$have_xnest"
30406fi
30407{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XNEST" >&5
30408printf "%s\n" "$XNEST" >&6; }
30409 if test "x$XNEST" = xyes; then
30410  XNEST_TRUE=
30411  XNEST_FALSE='#'
30412else
30413  XNEST_TRUE='#'
30414  XNEST_FALSE=
30415fi
30416
30417
30418if test "x$XNEST" = xyes; then
30419	if test "x$have_xnest" = xno; then
30420		as_fn_error $? "Xnest build explicitly requested, but required modules not found." "$LINENO" 5
30421	fi
30422	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"
30423	XNEST_SYS_LIBS="$XNESTMODULES_LIBS $GLX_SYS_LIBS"
30424
30425
30426fi
30427
30428
30429
30430{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build Xorg DDX" >&5
30431printf %s "checking whether to build Xorg DDX... " >&6; }
30432if test "x$XORG" = xauto; then
30433	XORG="yes"
30434	case $host_os in
30435		cygwin*) XORG="no" ;;
30436		mingw*)  XORG="no" ;;
30437		darwin*) XORG="no" ;;
30438	esac
30439fi
30440{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XORG" >&5
30441printf "%s\n" "$XORG" >&6; }
30442
30443if test "x$XORG" = xyes; then
30444
30445pkg_failed=no
30446{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LIBXCVT" >&5
30447printf %s "checking for $LIBXCVT... " >&6; }
30448
30449if test -n "$LIBXCVT_CFLAGS"; then
30450    pkg_cv_LIBXCVT_CFLAGS="$LIBXCVT_CFLAGS"
30451 elif test -n "$PKG_CONFIG"; then
30452    if test -n "$PKG_CONFIG" && \
30453    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXCVT\""; } >&5
30454  ($PKG_CONFIG --exists --print-errors "$LIBXCVT") 2>&5
30455  ac_status=$?
30456  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30457  test $ac_status = 0; }; then
30458  pkg_cv_LIBXCVT_CFLAGS=`$PKG_CONFIG --cflags "$LIBXCVT" 2>/dev/null`
30459		      test "x$?" != "x0" && pkg_failed=yes
30460else
30461  pkg_failed=yes
30462fi
30463 else
30464    pkg_failed=untried
30465fi
30466if test -n "$LIBXCVT_LIBS"; then
30467    pkg_cv_LIBXCVT_LIBS="$LIBXCVT_LIBS"
30468 elif test -n "$PKG_CONFIG"; then
30469    if test -n "$PKG_CONFIG" && \
30470    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXCVT\""; } >&5
30471  ($PKG_CONFIG --exists --print-errors "$LIBXCVT") 2>&5
30472  ac_status=$?
30473  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30474  test $ac_status = 0; }; then
30475  pkg_cv_LIBXCVT_LIBS=`$PKG_CONFIG --libs "$LIBXCVT" 2>/dev/null`
30476		      test "x$?" != "x0" && pkg_failed=yes
30477else
30478  pkg_failed=yes
30479fi
30480 else
30481    pkg_failed=untried
30482fi
30483
30484
30485
30486if test $pkg_failed = yes; then
30487        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30488printf "%s\n" "no" >&6; }
30489
30490if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30491        _pkg_short_errors_supported=yes
30492else
30493        _pkg_short_errors_supported=no
30494fi
30495        if test $_pkg_short_errors_supported = yes; then
30496                LIBXCVT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBXCVT" 2>&1`
30497        else
30498                LIBXCVT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBXCVT" 2>&1`
30499        fi
30500        # Put the nasty error message in config.log where it belongs
30501        echo "$LIBXCVT_PKG_ERRORS" >&5
30502
30503        as_fn_error $? "Package requirements ($LIBXCVT) were not met:
30504
30505$LIBXCVT_PKG_ERRORS
30506
30507Consider adjusting the PKG_CONFIG_PATH environment variable if you
30508installed software in a non-standard prefix.
30509
30510Alternatively, you may set the environment variables LIBXCVT_CFLAGS
30511and LIBXCVT_LIBS to avoid the need to call pkg-config.
30512See the pkg-config man page for more details." "$LINENO" 5
30513elif test $pkg_failed = untried; then
30514        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30515printf "%s\n" "no" >&6; }
30516        { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
30517printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
30518as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
30519is in your PATH or set the PKG_CONFIG environment variable to the full
30520path to pkg-config.
30521
30522Alternatively, you may set the environment variables LIBXCVT_CFLAGS
30523and LIBXCVT_LIBS to avoid the need to call pkg-config.
30524See the pkg-config man page for more details.
30525
30526To get pkg-config, see <http://pkg-config.freedesktop.org/>.
30527See \`config.log' for more details" "$LINENO" 5; }
30528else
30529        LIBXCVT_CFLAGS=$pkg_cv_LIBXCVT_CFLAGS
30530        LIBXCVT_LIBS=$pkg_cv_LIBXCVT_LIBS
30531        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30532printf "%s\n" "yes" >&6; }
30533
30534fi
30535
30536	XORG_DDXINCS='-I$(top_srcdir)/hw/xfree86 -I$(top_srcdir)/hw/xfree86/include -I$(top_srcdir)/hw/xfree86/common'
30537	XORG_OSINCS='-I$(top_srcdir)/hw/xfree86/os-support -I$(top_srcdir)/hw/xfree86/os-support/bus -I$(top_srcdir)/os'
30538	XORG_INCS="$XORG_DDXINCS $XORG_OSINCS"
30539	XORG_CFLAGS="$XORGSERVER_CFLAGS $LIBXCVT_CFLAGS -DHAVE_XORG_CONFIG_H"
30540	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"
30541	XORG_SYS_LIBS="$XORG_SYS_LIBS $LIBXCVT_LIBS"
30542
30543			symbol_visibility=
30544	have_visibility=disabled
30545	if test x$SYMBOL_VISIBILITY != xno; then
30546	    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for symbol visibility support" >&5
30547printf %s "checking for symbol visibility support... " >&6; }
30548	    if test x$GCC = xyes; then
30549		VISIBILITY_CFLAGS="-fvisibility=hidden"
30550	    else
30551		if test x$SUNCC = xyes; then
30552		    VISIBILITY_CFLAGS="-xldscope=hidden"
30553		else
30554		    have_visibility=no
30555		fi
30556	    fi
30557	    if test x$have_visibility != xno; then
30558		save_CFLAGS="$CFLAGS"
30559		proto_inc=`$PKG_CONFIG --cflags xproto`
30560		CFLAGS="$CFLAGS $VISIBILITY_CFLAGS $proto_inc"
30561		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30562/* end confdefs.h.  */
30563
30564		    #include <X11/Xfuncproto.h>
30565		     extern _X_HIDDEN int hidden_int;
30566		     extern _X_EXPORT int public_int;
30567		     extern _X_HIDDEN int hidden_int_func(void);
30568		     extern _X_EXPORT int public_int_func(void);
30569int
30570main (void)
30571{
30572
30573  ;
30574  return 0;
30575}
30576_ACEOF
30577if ac_fn_c_try_compile "$LINENO"
30578then :
30579  have_visibility=yes
30580else $as_nop
30581  have_visibility=no
30582fi
30583rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
30584		CFLAGS=$save_CFLAGS
30585	    fi
30586	    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_visibility" >&5
30587printf "%s\n" "$have_visibility" >&6; }
30588	    if test x$have_visibility != xno; then
30589		symbol_visibility=$VISIBILITY_CFLAGS
30590		XORG_CFLAGS="$XORG_CFLAGS $VISIBILITY_CFLAGS"
30591		XSERVER_CFLAGS="$XSERVER_CFLAGS $VISIBILITY_CFLAGS"
30592	    fi
30593	fi
30594
30595
30596				xorg_bus_bsdpci=no
30597	xorg_bus_sparc=no
30598
30599	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build Xorg PCI functions" >&5
30600printf %s "checking whether to build Xorg PCI functions... " >&6; }
30601	if test "x$PCI" = xyes; then
30602
30603pkg_failed=no
30604{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LIBPCIACCESS" >&5
30605printf %s "checking for $LIBPCIACCESS... " >&6; }
30606
30607if test -n "$PCIACCESS_CFLAGS"; then
30608    pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
30609 elif test -n "$PKG_CONFIG"; then
30610    if test -n "$PKG_CONFIG" && \
30611    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBPCIACCESS\""; } >&5
30612  ($PKG_CONFIG --exists --print-errors "$LIBPCIACCESS") 2>&5
30613  ac_status=$?
30614  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30615  test $ac_status = 0; }; then
30616  pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "$LIBPCIACCESS" 2>/dev/null`
30617		      test "x$?" != "x0" && pkg_failed=yes
30618else
30619  pkg_failed=yes
30620fi
30621 else
30622    pkg_failed=untried
30623fi
30624if test -n "$PCIACCESS_LIBS"; then
30625    pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
30626 elif test -n "$PKG_CONFIG"; then
30627    if test -n "$PKG_CONFIG" && \
30628    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBPCIACCESS\""; } >&5
30629  ($PKG_CONFIG --exists --print-errors "$LIBPCIACCESS") 2>&5
30630  ac_status=$?
30631  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30632  test $ac_status = 0; }; then
30633  pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "$LIBPCIACCESS" 2>/dev/null`
30634		      test "x$?" != "x0" && pkg_failed=yes
30635else
30636  pkg_failed=yes
30637fi
30638 else
30639    pkg_failed=untried
30640fi
30641
30642
30643
30644if test $pkg_failed = yes; then
30645        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30646printf "%s\n" "no" >&6; }
30647
30648if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30649        _pkg_short_errors_supported=yes
30650else
30651        _pkg_short_errors_supported=no
30652fi
30653        if test $_pkg_short_errors_supported = yes; then
30654                PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBPCIACCESS" 2>&1`
30655        else
30656                PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBPCIACCESS" 2>&1`
30657        fi
30658        # Put the nasty error message in config.log where it belongs
30659        echo "$PCIACCESS_PKG_ERRORS" >&5
30660
30661        as_fn_error $? "Package requirements ($LIBPCIACCESS) were not met:
30662
30663$PCIACCESS_PKG_ERRORS
30664
30665Consider adjusting the PKG_CONFIG_PATH environment variable if you
30666installed software in a non-standard prefix.
30667
30668Alternatively, you may set the environment variables PCIACCESS_CFLAGS
30669and PCIACCESS_LIBS to avoid the need to call pkg-config.
30670See the pkg-config man page for more details." "$LINENO" 5
30671elif test $pkg_failed = untried; then
30672        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30673printf "%s\n" "no" >&6; }
30674        { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
30675printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
30676as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
30677is in your PATH or set the PKG_CONFIG environment variable to the full
30678path to pkg-config.
30679
30680Alternatively, you may set the environment variables PCIACCESS_CFLAGS
30681and PCIACCESS_LIBS to avoid the need to call pkg-config.
30682See the pkg-config man page for more details.
30683
30684To get pkg-config, see <http://pkg-config.freedesktop.org/>.
30685See \`config.log' for more details" "$LINENO" 5; }
30686else
30687        PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
30688        PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
30689        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30690printf "%s\n" "yes" >&6; }
30691
30692fi
30693		SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $LIBPCIACCESS"
30694		XORG_SYS_LIBS="$XORG_SYS_LIBS $PCIACCESS_LIBS $LIBDRM_LIBS"
30695		XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS $LIBDRM_CFLAGS"
30696
30697
30698printf "%s\n" "#define XSERVER_LIBPCIACCESS 1" >>confdefs.h
30699
30700
30701  prefix_NONE=
30702  exec_prefix_NONE=
30703  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
30704  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
30705  eval ac_define_dir="\"$PCI_TXT_IDS_DIR\""
30706  eval ac_define_dir="\"$ac_define_dir\""
30707  PCI_TXT_IDS_PATH="$ac_define_dir"
30708
30709
30710printf "%s\n" "#define PCI_TXT_IDS_PATH \"$ac_define_dir\"" >>confdefs.h
30711
30712  test "$prefix_NONE" && prefix=NONE
30713  test "$exec_prefix_NONE" && exec_prefix=NONE
30714
30715		case $host_os in
30716		  gnu* | freebsd* | kfreebsd*-gnu | netbsd* | openbsd* | solaris* | dragonfly*)
30717			xorg_bus_bsdpci="yes"
30718			;;
30719		esac
30720		case $host_cpu in
30721		  sparc*)
30722			xorg_bus_sparc="yes"
30723			;;
30724		esac
30725	else
30726		if test "x$CONFIG_UDEV_KMS" = xyes; then
30727			as_fn_error $? "Platform device enumeration requires libpciaccess" "$LINENO" 5
30728		fi
30729		if test "x$INT10MODULE" = xyes && test "x$INT10" != xstub; then
30730			as_fn_error $? "Cannot build int10 without libpciaccess" "$LINENO" 5
30731		fi
30732	fi
30733	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PCI" >&5
30734printf "%s\n" "$PCI" >&6; }
30735
30736	if test "x$CONFIG_UDEV_KMS" = xyes; then
30737
30738printf "%s\n" "#define XSERVER_PLATFORM_BUS 1" >>confdefs.h
30739
30740	fi
30741	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSERVER_PLATFORM_BUS" >&5
30742printf "%s\n" "$XSERVER_PLATFORM_BUS" >&6; }
30743
30744	case $host_os in
30745	  linux*)
30746		XORG_OS_SUBDIR="linux"
30747		linux_acpi="no"
30748		case $host_cpu in
30749		  i*86|amd64*|x86_64*|ia64*)
30750			linux_acpi=$enable_linux_acpi
30751			;;
30752		  *)
30753			;;
30754		esac
30755				       for ac_header in linux/apm_bios.h
30756do :
30757  ac_fn_c_check_header_compile "$LINENO" "linux/apm_bios.h" "ac_cv_header_linux_apm_bios_h" "$ac_includes_default"
30758if test "x$ac_cv_header_linux_apm_bios_h" = xyes
30759then :
30760  printf "%s\n" "#define HAVE_LINUX_APM_BIOS_H 1" >>confdefs.h
30761 linux_apm=$enable_linux_apm
30762fi
30763
30764done
30765		;;
30766	  freebsd* | kfreebsd*-gnu | dragonfly*)
30767		XORG_OS_SUBDIR="bsd"
30768		;;
30769	  netbsd*)
30770		XORG_OS_SUBDIR="bsd"
30771		;;
30772	  openbsd*)
30773		XORG_OS_SUBDIR="bsd"
30774		;;
30775	  solaris*)
30776		XORG_OS_SUBDIR="solaris"
30777		ac_fn_c_check_header_compile "$LINENO" "sys/kd.h" "ac_cv_header_sys_kd_h" "$ac_includes_default"
30778if test "x$ac_cv_header_sys_kd_h" = xyes
30779then :
30780  printf "%s\n" "#define HAVE_SYS_KD_H 1" >>confdefs.h
30781
30782fi
30783
30784		       for ac_header in sys/vt.h
30785do :
30786  ac_fn_c_check_header_compile "$LINENO" "sys/vt.h" "ac_cv_header_sys_vt_h" "$ac_includes_default"
30787if test "x$ac_cv_header_sys_vt_h" = xyes
30788then :
30789  printf "%s\n" "#define HAVE_SYS_VT_H 1" >>confdefs.h
30790 solaris_vt=yes
30791else $as_nop
30792  solaris_vt=no
30793fi
30794
30795done
30796		# Check for minimum supported release
30797		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Solaris version" >&5
30798printf %s "checking Solaris version... " >&6; }
30799	        OS_MINOR=`echo ${host_os}|$SED -e 's/^.*solaris2\.//' -e s'/\..*$//'`
30800		if test "${OS_MINOR}" -ge 7 ; then
30801	        	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Solaris ${OS_MINOR}" >&5
30802printf "%s\n" "Solaris ${OS_MINOR}" >&6; }
30803		else
30804			{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Solaris \`echo ${host_os}|$SED -e 's/^.*solaris//\`" >&5
30805printf "%s\n" "Solaris \`echo ${host_os}|$SED -e 's/^.*solaris//\`" >&6; }
30806		fi
30807		if test "${OS_MINOR}" -lt 8 ; then
30808			as_fn_error $? "This release no longer supports Solaris versions older than Solaris 8." "$LINENO" 5
30809		fi
30810		ac_fn_check_decl "$LINENO" "_LP64" "ac_cv_have_decl__LP64" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
30811if test "x$ac_cv_have_decl__LP64" = xyes
30812then :
30813  SOLARIS_64="yes"
30814else $as_nop
30815  SOLARIS_64="no"
30816fi
30817
30818		case $host_cpu in
30819		  sparc*)
30820			SOLARIS_INOUT_ARCH="sparcv8plus"
30821			;;
30822		  i*86|x86_64*)
30823			if test x$SOLARIS_64 = xyes ; then
30824				SOLARIS_INOUT_ARCH="amd64"
30825			else
30826				SOLARIS_INOUT_ARCH="ia32"
30827			fi
30828			;;
30829		  *)
30830			as_fn_error $? "Unsupported Solaris platform. Only SPARC & x86 \
30831			are supported on Solaris in this release.   If you are \
30832			interested in porting Xorg to your platform, please email \
30833			xorg@lists.freedesktop.org." "$LINENO" 5 ;;
30834		esac
30835
30836		;;
30837	  gnu*)
30838		XORG_OS_SUBDIR="hurd"
30839		;;
30840	  cygwin*)
30841		XORG_OS_SUBDIR="stub"
30842		;;
30843	  *)
30844		XORG_OS_SUBDIR="stub"
30845		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: Your OS is unknown. If you are interested in porting Xorg to your platform,
30846please email xorg@lists.freedesktop.org." >&5
30847printf "%s\n" "$as_me: Your OS is unknown. If you are interested in porting Xorg to your platform,
30848please email xorg@lists.freedesktop.org." >&6;}
30849		;;
30850	esac
30851
30852	if test "x$DGA" = xauto; then
30853
30854pkg_failed=no
30855{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $DGAPROTO" >&5
30856printf %s "checking for $DGAPROTO... " >&6; }
30857
30858if test -n "$DGA_CFLAGS"; then
30859    pkg_cv_DGA_CFLAGS="$DGA_CFLAGS"
30860 elif test -n "$PKG_CONFIG"; then
30861    if test -n "$PKG_CONFIG" && \
30862    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DGAPROTO\""; } >&5
30863  ($PKG_CONFIG --exists --print-errors "$DGAPROTO") 2>&5
30864  ac_status=$?
30865  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30866  test $ac_status = 0; }; then
30867  pkg_cv_DGA_CFLAGS=`$PKG_CONFIG --cflags "$DGAPROTO" 2>/dev/null`
30868		      test "x$?" != "x0" && pkg_failed=yes
30869else
30870  pkg_failed=yes
30871fi
30872 else
30873    pkg_failed=untried
30874fi
30875if test -n "$DGA_LIBS"; then
30876    pkg_cv_DGA_LIBS="$DGA_LIBS"
30877 elif test -n "$PKG_CONFIG"; then
30878    if test -n "$PKG_CONFIG" && \
30879    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DGAPROTO\""; } >&5
30880  ($PKG_CONFIG --exists --print-errors "$DGAPROTO") 2>&5
30881  ac_status=$?
30882  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30883  test $ac_status = 0; }; then
30884  pkg_cv_DGA_LIBS=`$PKG_CONFIG --libs "$DGAPROTO" 2>/dev/null`
30885		      test "x$?" != "x0" && pkg_failed=yes
30886else
30887  pkg_failed=yes
30888fi
30889 else
30890    pkg_failed=untried
30891fi
30892
30893
30894
30895if test $pkg_failed = yes; then
30896        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30897printf "%s\n" "no" >&6; }
30898
30899if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30900        _pkg_short_errors_supported=yes
30901else
30902        _pkg_short_errors_supported=no
30903fi
30904        if test $_pkg_short_errors_supported = yes; then
30905                DGA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$DGAPROTO" 2>&1`
30906        else
30907                DGA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$DGAPROTO" 2>&1`
30908        fi
30909        # Put the nasty error message in config.log where it belongs
30910        echo "$DGA_PKG_ERRORS" >&5
30911
30912        DGA=no
30913elif test $pkg_failed = untried; then
30914        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30915printf "%s\n" "no" >&6; }
30916        DGA=no
30917else
30918        DGA_CFLAGS=$pkg_cv_DGA_CFLAGS
30919        DGA_LIBS=$pkg_cv_DGA_LIBS
30920        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30921printf "%s\n" "yes" >&6; }
30922        DGA=yes
30923fi
30924	fi
30925	if test "x$DGA" = xyes; then
30926		XORG_MODULES="$XORG_MODULES $DGAPROTO"
30927
30928pkg_failed=no
30929{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $DGAPROTO" >&5
30930printf %s "checking for $DGAPROTO... " >&6; }
30931
30932if test -n "$DGA_CFLAGS"; then
30933    pkg_cv_DGA_CFLAGS="$DGA_CFLAGS"
30934 elif test -n "$PKG_CONFIG"; then
30935    if test -n "$PKG_CONFIG" && \
30936    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DGAPROTO\""; } >&5
30937  ($PKG_CONFIG --exists --print-errors "$DGAPROTO") 2>&5
30938  ac_status=$?
30939  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30940  test $ac_status = 0; }; then
30941  pkg_cv_DGA_CFLAGS=`$PKG_CONFIG --cflags "$DGAPROTO" 2>/dev/null`
30942		      test "x$?" != "x0" && pkg_failed=yes
30943else
30944  pkg_failed=yes
30945fi
30946 else
30947    pkg_failed=untried
30948fi
30949if test -n "$DGA_LIBS"; then
30950    pkg_cv_DGA_LIBS="$DGA_LIBS"
30951 elif test -n "$PKG_CONFIG"; then
30952    if test -n "$PKG_CONFIG" && \
30953    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DGAPROTO\""; } >&5
30954  ($PKG_CONFIG --exists --print-errors "$DGAPROTO") 2>&5
30955  ac_status=$?
30956  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30957  test $ac_status = 0; }; then
30958  pkg_cv_DGA_LIBS=`$PKG_CONFIG --libs "$DGAPROTO" 2>/dev/null`
30959		      test "x$?" != "x0" && pkg_failed=yes
30960else
30961  pkg_failed=yes
30962fi
30963 else
30964    pkg_failed=untried
30965fi
30966
30967
30968
30969if test $pkg_failed = yes; then
30970        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30971printf "%s\n" "no" >&6; }
30972
30973if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30974        _pkg_short_errors_supported=yes
30975else
30976        _pkg_short_errors_supported=no
30977fi
30978        if test $_pkg_short_errors_supported = yes; then
30979                DGA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$DGAPROTO" 2>&1`
30980        else
30981                DGA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$DGAPROTO" 2>&1`
30982        fi
30983        # Put the nasty error message in config.log where it belongs
30984        echo "$DGA_PKG_ERRORS" >&5
30985
30986        as_fn_error $? "Package requirements ($DGAPROTO) were not met:
30987
30988$DGA_PKG_ERRORS
30989
30990Consider adjusting the PKG_CONFIG_PATH environment variable if you
30991installed software in a non-standard prefix.
30992
30993Alternatively, you may set the environment variables DGA_CFLAGS
30994and DGA_LIBS to avoid the need to call pkg-config.
30995See the pkg-config man page for more details." "$LINENO" 5
30996elif test $pkg_failed = untried; then
30997        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30998printf "%s\n" "no" >&6; }
30999        { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
31000printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
31001as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
31002is in your PATH or set the PKG_CONFIG environment variable to the full
31003path to pkg-config.
31004
31005Alternatively, you may set the environment variables DGA_CFLAGS
31006and DGA_LIBS to avoid the need to call pkg-config.
31007See the pkg-config man page for more details.
31008
31009To get pkg-config, see <http://pkg-config.freedesktop.org/>.
31010See \`config.log' for more details" "$LINENO" 5; }
31011else
31012        DGA_CFLAGS=$pkg_cv_DGA_CFLAGS
31013        DGA_LIBS=$pkg_cv_DGA_LIBS
31014        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31015printf "%s\n" "yes" >&6; }
31016
31017fi
31018
31019printf "%s\n" "#define DGA 1" >>confdefs.h
31020
31021
31022printf "%s\n" "#define XFreeXDGA 1" >>confdefs.h
31023
31024	fi
31025
31026	if test "x$XF86VIDMODE" = xyes; then
31027		XORG_MODULES="$XORG_MODULES $VIDMODEPROTO"
31028	fi
31029
31030	if test -n "$XORG_MODULES"; then
31031
31032pkg_failed=no
31033{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $XORG_MODULES" >&5
31034printf %s "checking for $XORG_MODULES... " >&6; }
31035
31036if test -n "$XORG_MODULES_CFLAGS"; then
31037    pkg_cv_XORG_MODULES_CFLAGS="$XORG_MODULES_CFLAGS"
31038 elif test -n "$PKG_CONFIG"; then
31039    if test -n "$PKG_CONFIG" && \
31040    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XORG_MODULES\""; } >&5
31041  ($PKG_CONFIG --exists --print-errors "$XORG_MODULES") 2>&5
31042  ac_status=$?
31043  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31044  test $ac_status = 0; }; then
31045  pkg_cv_XORG_MODULES_CFLAGS=`$PKG_CONFIG --cflags "$XORG_MODULES" 2>/dev/null`
31046		      test "x$?" != "x0" && pkg_failed=yes
31047else
31048  pkg_failed=yes
31049fi
31050 else
31051    pkg_failed=untried
31052fi
31053if test -n "$XORG_MODULES_LIBS"; then
31054    pkg_cv_XORG_MODULES_LIBS="$XORG_MODULES_LIBS"
31055 elif test -n "$PKG_CONFIG"; then
31056    if test -n "$PKG_CONFIG" && \
31057    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XORG_MODULES\""; } >&5
31058  ($PKG_CONFIG --exists --print-errors "$XORG_MODULES") 2>&5
31059  ac_status=$?
31060  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31061  test $ac_status = 0; }; then
31062  pkg_cv_XORG_MODULES_LIBS=`$PKG_CONFIG --libs "$XORG_MODULES" 2>/dev/null`
31063		      test "x$?" != "x0" && pkg_failed=yes
31064else
31065  pkg_failed=yes
31066fi
31067 else
31068    pkg_failed=untried
31069fi
31070
31071
31072
31073if test $pkg_failed = yes; then
31074        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31075printf "%s\n" "no" >&6; }
31076
31077if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31078        _pkg_short_errors_supported=yes
31079else
31080        _pkg_short_errors_supported=no
31081fi
31082        if test $_pkg_short_errors_supported = yes; then
31083                XORG_MODULES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$XORG_MODULES" 2>&1`
31084        else
31085                XORG_MODULES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$XORG_MODULES" 2>&1`
31086        fi
31087        # Put the nasty error message in config.log where it belongs
31088        echo "$XORG_MODULES_PKG_ERRORS" >&5
31089
31090        as_fn_error $? "Package requirements ($XORG_MODULES) were not met:
31091
31092$XORG_MODULES_PKG_ERRORS
31093
31094Consider adjusting the PKG_CONFIG_PATH environment variable if you
31095installed software in a non-standard prefix.
31096
31097Alternatively, you may set the environment variables XORG_MODULES_CFLAGS
31098and XORG_MODULES_LIBS to avoid the need to call pkg-config.
31099See the pkg-config man page for more details." "$LINENO" 5
31100elif test $pkg_failed = untried; then
31101        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31102printf "%s\n" "no" >&6; }
31103        { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
31104printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
31105as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
31106is in your PATH or set the PKG_CONFIG environment variable to the full
31107path to pkg-config.
31108
31109Alternatively, you may set the environment variables XORG_MODULES_CFLAGS
31110and XORG_MODULES_LIBS to avoid the need to call pkg-config.
31111See the pkg-config man page for more details.
31112
31113To get pkg-config, see <http://pkg-config.freedesktop.org/>.
31114See \`config.log' for more details" "$LINENO" 5; }
31115else
31116        XORG_MODULES_CFLAGS=$pkg_cv_XORG_MODULES_CFLAGS
31117        XORG_MODULES_LIBS=$pkg_cv_XORG_MODULES_LIBS
31118        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31119printf "%s\n" "yes" >&6; }
31120
31121fi
31122	        XORG_CFLAGS="$XORG_CFLAGS $XORG_MODULES_CFLAGS"
31123	        XORG_SYS_LIBS="$XORG_SYS_LIBS $XORG_MODULES_LIBS"
31124	fi
31125
31126	if test "x$DRM" = xyes -a "x$DRI2" = xyes; then
31127		XORG_DRIVER_MODESETTING=yes
31128	fi
31129
31130
31131
31132
31133
31134
31135
31136		XF86CONFIGFILE="xorg.conf"
31137	XF86CONFIGDIR="xorg.conf.d"
31138
31139	LOGPREFIX="Xorg."
31140	XDG_DATA_HOME=".local/share"
31141	XDG_DATA_HOME_LOGDIR="xorg"
31142
31143printf "%s\n" "#define XORG_SERVER 1" >>confdefs.h
31144
31145
31146printf "%s\n" "#define XORGSERVER 1" >>confdefs.h
31147
31148
31149printf "%s\n" "#define XFree86Server 1" >>confdefs.h
31150
31151
31152printf "%s\n" "#define XORG_VERSION_CURRENT $VENDOR_RELEASE" >>confdefs.h
31153
31154
31155printf "%s\n" "#define NEED_XF86_TYPES 1" >>confdefs.h
31156
31157
31158printf "%s\n" "#define NEED_XF86_PROTOTYPES 1" >>confdefs.h
31159
31160
31161printf "%s\n" "#define __XSERVERNAME__ \"Xorg\"" >>confdefs.h
31162
31163
31164  prefix_NONE=
31165  exec_prefix_NONE=
31166  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
31167  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
31168  eval ac_define_dir="\"$XF86CONFIGFILE\""
31169  eval ac_define_dir="\"$ac_define_dir\""
31170  XCONFIGFILE="$ac_define_dir"
31171
31172
31173printf "%s\n" "#define XCONFIGFILE \"$ac_define_dir\"" >>confdefs.h
31174
31175  test "$prefix_NONE" && prefix=NONE
31176  test "$exec_prefix_NONE" && exec_prefix=NONE
31177
31178
31179  prefix_NONE=
31180  exec_prefix_NONE=
31181  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
31182  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
31183  eval ac_define_dir="\"$XF86CONFIGFILE\""
31184  eval ac_define_dir="\"$ac_define_dir\""
31185  XF86CONFIGFILE="$ac_define_dir"
31186
31187
31188printf "%s\n" "#define XF86CONFIGFILE \"$ac_define_dir\"" >>confdefs.h
31189
31190  test "$prefix_NONE" && prefix=NONE
31191  test "$exec_prefix_NONE" && exec_prefix=NONE
31192
31193
31194  prefix_NONE=
31195  exec_prefix_NONE=
31196  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
31197  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
31198  eval ac_define_dir="\"$XF86CONFIGDIR\""
31199  eval ac_define_dir="\"$ac_define_dir\""
31200  XCONFIGDIR="$ac_define_dir"
31201
31202
31203printf "%s\n" "#define XCONFIGDIR \"$ac_define_dir\"" >>confdefs.h
31204
31205  test "$prefix_NONE" && prefix=NONE
31206  test "$exec_prefix_NONE" && exec_prefix=NONE
31207
31208
31209  prefix_NONE=
31210  exec_prefix_NONE=
31211  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
31212  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
31213  eval ac_define_dir="\"$moduledir\""
31214  eval ac_define_dir="\"$ac_define_dir\""
31215  DEFAULT_MODULE_PATH="$ac_define_dir"
31216
31217
31218printf "%s\n" "#define DEFAULT_MODULE_PATH \"$ac_define_dir\"" >>confdefs.h
31219
31220  test "$prefix_NONE" && prefix=NONE
31221  test "$exec_prefix_NONE" && exec_prefix=NONE
31222
31223
31224  prefix_NONE=
31225  exec_prefix_NONE=
31226  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
31227  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
31228  eval ac_define_dir="\"$libdir\""
31229  eval ac_define_dir="\"$ac_define_dir\""
31230  DEFAULT_LIBRARY_PATH="$ac_define_dir"
31231
31232
31233printf "%s\n" "#define DEFAULT_LIBRARY_PATH \"$ac_define_dir\"" >>confdefs.h
31234
31235  test "$prefix_NONE" && prefix=NONE
31236  test "$exec_prefix_NONE" && exec_prefix=NONE
31237
31238
31239  prefix_NONE=
31240  exec_prefix_NONE=
31241  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
31242  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
31243  eval ac_define_dir="\"$logdir\""
31244  eval ac_define_dir="\"$ac_define_dir\""
31245  DEFAULT_LOGDIR="$ac_define_dir"
31246
31247
31248printf "%s\n" "#define DEFAULT_LOGDIR \"$ac_define_dir\"" >>confdefs.h
31249
31250  test "$prefix_NONE" && prefix=NONE
31251  test "$exec_prefix_NONE" && exec_prefix=NONE
31252
31253
31254  prefix_NONE=
31255  exec_prefix_NONE=
31256  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
31257  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
31258  eval ac_define_dir="\"$LOGPREFIX\""
31259  eval ac_define_dir="\"$ac_define_dir\""
31260  DEFAULT_LOGPREFIX="$ac_define_dir"
31261
31262
31263printf "%s\n" "#define DEFAULT_LOGPREFIX \"$ac_define_dir\"" >>confdefs.h
31264
31265  test "$prefix_NONE" && prefix=NONE
31266  test "$exec_prefix_NONE" && exec_prefix=NONE
31267
31268
31269  prefix_NONE=
31270  exec_prefix_NONE=
31271  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
31272  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
31273  eval ac_define_dir="\"$XDG_DATA_HOME\""
31274  eval ac_define_dir="\"$ac_define_dir\""
31275  DEFAULT_XDG_DATA_HOME="$ac_define_dir"
31276
31277
31278printf "%s\n" "#define DEFAULT_XDG_DATA_HOME \"$ac_define_dir\"" >>confdefs.h
31279
31280  test "$prefix_NONE" && prefix=NONE
31281  test "$exec_prefix_NONE" && exec_prefix=NONE
31282
31283
31284  prefix_NONE=
31285  exec_prefix_NONE=
31286  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
31287  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
31288  eval ac_define_dir="\"$XDG_DATA_HOME_LOGDIR\""
31289  eval ac_define_dir="\"$ac_define_dir\""
31290  DEFAULT_XDG_DATA_HOME_LOGDIR="$ac_define_dir"
31291
31292
31293printf "%s\n" "#define DEFAULT_XDG_DATA_HOME_LOGDIR \"$ac_define_dir\"" >>confdefs.h
31294
31295  test "$prefix_NONE" && prefix=NONE
31296  test "$exec_prefix_NONE" && exec_prefix=NONE
31297
31298
31299printf "%s\n" "#define __VENDORDWEBSUPPORT__ \"$VENDOR_WEB\"" >>confdefs.h
31300
31301	if test "x$VGAHW" = xyes; then
31302
31303printf "%s\n" "#define WITH_VGAHW 1" >>confdefs.h
31304
31305	fi
31306
31307	driverdir="$moduledir/drivers"
31308
31309
31310	sdkdir="$includedir/xorg"
31311	extdir="$includedir/X11/extensions"
31312	sysconfigdir="$datadir/X11/$XF86CONFIGDIR"
31313
31314
31315
31316
31317
31318	# stuff the ABI versions into the pc file too
31319	extract_abi() {
31320	    grep ^.define.*${1}_VERSION ${srcdir}/hw/xfree86/common/xf86Module.h | tr '(),' '  .' | awk '{ print $4$5 }'
31321	}
31322	abi_ansic=`extract_abi ANSIC`
31323	abi_videodrv=`extract_abi VIDEODRV`
31324	abi_xinput=`extract_abi XINPUT`
31325	abi_extension=`extract_abi EXTENSION`
31326
31327
31328
31329
31330fi
31331 if test "x$XORG" = xyes; then
31332  XORG_TRUE=
31333  XORG_FALSE='#'
31334else
31335  XORG_TRUE='#'
31336  XORG_FALSE=
31337fi
31338
31339 if test "x$PCI" = xyes; then
31340  XORG_BUS_PCI_TRUE=
31341  XORG_BUS_PCI_FALSE='#'
31342else
31343  XORG_BUS_PCI_TRUE='#'
31344  XORG_BUS_PCI_FALSE=
31345fi
31346
31347 if test "x$xorg_bus_bsdpci" = xyes; then
31348  XORG_BUS_BSDPCI_TRUE=
31349  XORG_BUS_BSDPCI_FALSE='#'
31350else
31351  XORG_BUS_BSDPCI_TRUE='#'
31352  XORG_BUS_BSDPCI_FALSE=
31353fi
31354
31355 if test "x$xorg_bus_sparc" = xyes; then
31356  XORG_BUS_SPARC_TRUE=
31357  XORG_BUS_SPARC_FALSE='#'
31358else
31359  XORG_BUS_SPARC_TRUE='#'
31360  XORG_BUS_SPARC_FALSE=
31361fi
31362
31363 if test "x$linux_acpi" = xyes; then
31364  LNXACPI_TRUE=
31365  LNXACPI_FALSE='#'
31366else
31367  LNXACPI_TRUE='#'
31368  LNXACPI_FALSE=
31369fi
31370
31371 if test "x$linux_apm" = xyes; then
31372  LNXAPM_TRUE=
31373  LNXAPM_FALSE='#'
31374else
31375  LNXAPM_TRUE='#'
31376  LNXAPM_FALSE=
31377fi
31378
31379 if test "x$solaris_vt" = xyes; then
31380  SOLARIS_VT_TRUE=
31381  SOLARIS_VT_FALSE='#'
31382else
31383  SOLARIS_VT_TRUE='#'
31384  SOLARIS_VT_FALSE=
31385fi
31386
31387 if test "x$DGA" = xyes; then
31388  DGA_TRUE=
31389  DGA_FALSE='#'
31390else
31391  DGA_TRUE='#'
31392  DGA_FALSE=
31393fi
31394
31395 if test "x$CONFIG_UDEV_KMS" = xyes; then
31396  XORG_BUS_PLATFORM_TRUE=
31397  XORG_BUS_PLATFORM_FALSE='#'
31398else
31399  XORG_BUS_PLATFORM_TRUE='#'
31400  XORG_BUS_PLATFORM_FALSE=
31401fi
31402
31403 if test "x$XORG_DRIVER_MODESETTING" = xyes; then
31404  XORG_DRIVER_MODESETTING_TRUE=
31405  XORG_DRIVER_MODESETTING_FALSE='#'
31406else
31407  XORG_DRIVER_MODESETTING_TRUE='#'
31408  XORG_DRIVER_MODESETTING_FALSE=
31409fi
31410
31411 if test "x$XORG_DRIVER_INPUT_INPUTTEST" = xyes; then
31412  XORG_DRIVER_INPUT_INPUTTEST_TRUE=
31413  XORG_DRIVER_INPUT_INPUTTEST_FALSE='#'
31414else
31415  XORG_DRIVER_INPUT_INPUTTEST_TRUE='#'
31416  XORG_DRIVER_INPUT_INPUTTEST_FALSE=
31417fi
31418
31419
31420if test "x$GLAMOR" = xauto; then
31421	if echo "$XORG" "$XEPHYR" | grep -q yes ; then
31422		GLAMOR=yes
31423	fi
31424fi
31425
31426 if test "x$GLAMOR" = xyes; then
31427  GLAMOR_TRUE=
31428  GLAMOR_FALSE='#'
31429else
31430  GLAMOR_TRUE='#'
31431  GLAMOR_FALSE=
31432fi
31433
31434
31435if test "x$GLAMOR" = xyes; then
31436
31437printf "%s\n" "#define GLAMOR 1" >>confdefs.h
31438
31439
31440pkg_failed=no
31441{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for epoxy" >&5
31442printf %s "checking for epoxy... " >&6; }
31443
31444if test -n "$GLAMOR_CFLAGS"; then
31445    pkg_cv_GLAMOR_CFLAGS="$GLAMOR_CFLAGS"
31446 elif test -n "$PKG_CONFIG"; then
31447    if test -n "$PKG_CONFIG" && \
31448    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"epoxy\""; } >&5
31449  ($PKG_CONFIG --exists --print-errors "epoxy") 2>&5
31450  ac_status=$?
31451  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31452  test $ac_status = 0; }; then
31453  pkg_cv_GLAMOR_CFLAGS=`$PKG_CONFIG --cflags "epoxy" 2>/dev/null`
31454		      test "x$?" != "x0" && pkg_failed=yes
31455else
31456  pkg_failed=yes
31457fi
31458 else
31459    pkg_failed=untried
31460fi
31461if test -n "$GLAMOR_LIBS"; then
31462    pkg_cv_GLAMOR_LIBS="$GLAMOR_LIBS"
31463 elif test -n "$PKG_CONFIG"; then
31464    if test -n "$PKG_CONFIG" && \
31465    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"epoxy\""; } >&5
31466  ($PKG_CONFIG --exists --print-errors "epoxy") 2>&5
31467  ac_status=$?
31468  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31469  test $ac_status = 0; }; then
31470  pkg_cv_GLAMOR_LIBS=`$PKG_CONFIG --libs "epoxy" 2>/dev/null`
31471		      test "x$?" != "x0" && pkg_failed=yes
31472else
31473  pkg_failed=yes
31474fi
31475 else
31476    pkg_failed=untried
31477fi
31478
31479
31480
31481if test $pkg_failed = yes; then
31482        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31483printf "%s\n" "no" >&6; }
31484
31485if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31486        _pkg_short_errors_supported=yes
31487else
31488        _pkg_short_errors_supported=no
31489fi
31490        if test $_pkg_short_errors_supported = yes; then
31491                GLAMOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "epoxy" 2>&1`
31492        else
31493                GLAMOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "epoxy" 2>&1`
31494        fi
31495        # Put the nasty error message in config.log where it belongs
31496        echo "$GLAMOR_PKG_ERRORS" >&5
31497
31498        as_fn_error $? "Package requirements (epoxy) were not met:
31499
31500$GLAMOR_PKG_ERRORS
31501
31502Consider adjusting the PKG_CONFIG_PATH environment variable if you
31503installed software in a non-standard prefix.
31504
31505Alternatively, you may set the environment variables GLAMOR_CFLAGS
31506and GLAMOR_LIBS to avoid the need to call pkg-config.
31507See the pkg-config man page for more details." "$LINENO" 5
31508elif test $pkg_failed = untried; then
31509        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31510printf "%s\n" "no" >&6; }
31511        { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
31512printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
31513as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
31514is in your PATH or set the PKG_CONFIG environment variable to the full
31515path to pkg-config.
31516
31517Alternatively, you may set the environment variables GLAMOR_CFLAGS
31518and GLAMOR_LIBS to avoid the need to call pkg-config.
31519See the pkg-config man page for more details.
31520
31521To get pkg-config, see <http://pkg-config.freedesktop.org/>.
31522See \`config.log' for more details" "$LINENO" 5; }
31523else
31524        GLAMOR_CFLAGS=$pkg_cv_GLAMOR_CFLAGS
31525        GLAMOR_LIBS=$pkg_cv_GLAMOR_LIBS
31526        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31527printf "%s\n" "yes" >&6; }
31528
31529fi
31530
31531	if test -n "$PKG_CONFIG" && \
31532    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"epoxy >= 1.4.4\""; } >&5
31533  ($PKG_CONFIG --exists --print-errors "epoxy >= 1.4.4") 2>&5
31534  ac_status=$?
31535  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31536  test $ac_status = 0; }; then
31537
31538printf "%s\n" "#define GLAMOR_HAS_EGL_QUERY_DMABUF 1" >>confdefs.h
31539
31540fi
31541
31542	if test -n "$PKG_CONFIG" && \
31543    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"epoxy >= 1.5.4\""; } >&5
31544  ($PKG_CONFIG --exists --print-errors "epoxy >= 1.5.4") 2>&5
31545  ac_status=$?
31546  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31547  test $ac_status = 0; }; then
31548
31549printf "%s\n" "#define GLAMOR_HAS_EGL_QUERY_DRIVER 1" >>confdefs.h
31550
31551fi
31552
31553
31554pkg_failed=no
31555{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for \"$LIBGBM\"" >&5
31556printf %s "checking for \"$LIBGBM\"... " >&6; }
31557
31558if test -n "$GBM_CFLAGS"; then
31559    pkg_cv_GBM_CFLAGS="$GBM_CFLAGS"
31560 elif test -n "$PKG_CONFIG"; then
31561    if test -n "$PKG_CONFIG" && \
31562    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"\$LIBGBM\"\""; } >&5
31563  ($PKG_CONFIG --exists --print-errors ""$LIBGBM"") 2>&5
31564  ac_status=$?
31565  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31566  test $ac_status = 0; }; then
31567  pkg_cv_GBM_CFLAGS=`$PKG_CONFIG --cflags ""$LIBGBM"" 2>/dev/null`
31568		      test "x$?" != "x0" && pkg_failed=yes
31569else
31570  pkg_failed=yes
31571fi
31572 else
31573    pkg_failed=untried
31574fi
31575if test -n "$GBM_LIBS"; then
31576    pkg_cv_GBM_LIBS="$GBM_LIBS"
31577 elif test -n "$PKG_CONFIG"; then
31578    if test -n "$PKG_CONFIG" && \
31579    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"\$LIBGBM\"\""; } >&5
31580  ($PKG_CONFIG --exists --print-errors ""$LIBGBM"") 2>&5
31581  ac_status=$?
31582  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31583  test $ac_status = 0; }; then
31584  pkg_cv_GBM_LIBS=`$PKG_CONFIG --libs ""$LIBGBM"" 2>/dev/null`
31585		      test "x$?" != "x0" && pkg_failed=yes
31586else
31587  pkg_failed=yes
31588fi
31589 else
31590    pkg_failed=untried
31591fi
31592
31593
31594
31595if test $pkg_failed = yes; then
31596        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31597printf "%s\n" "no" >&6; }
31598
31599if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31600        _pkg_short_errors_supported=yes
31601else
31602        _pkg_short_errors_supported=no
31603fi
31604        if test $_pkg_short_errors_supported = yes; then
31605                GBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs ""$LIBGBM"" 2>&1`
31606        else
31607                GBM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs ""$LIBGBM"" 2>&1`
31608        fi
31609        # Put the nasty error message in config.log where it belongs
31610        echo "$GBM_PKG_ERRORS" >&5
31611
31612        GBM=no
31613elif test $pkg_failed = untried; then
31614        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31615printf "%s\n" "no" >&6; }
31616        GBM=no
31617else
31618        GBM_CFLAGS=$pkg_cv_GBM_CFLAGS
31619        GBM_LIBS=$pkg_cv_GBM_LIBS
31620        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31621printf "%s\n" "yes" >&6; }
31622        GBM=yes
31623fi
31624	if test "x$GBM" = xyes; then
31625
31626printf "%s\n" "#define GLAMOR_HAS_GBM 1" >>confdefs.h
31627
31628		ac_fn_check_decl "$LINENO" "GBM_BO_USE_LINEAR" "ac_cv_have_decl_GBM_BO_USE_LINEAR" "#include <stdlib.h>
31629			 #include <gbm.h>
31630" "$ac_c_undeclared_builtin_options" "CFLAGS"
31631if test "x$ac_cv_have_decl_GBM_BO_USE_LINEAR" = xyes
31632then :
31633
31634printf "%s\n" "#define GLAMOR_HAS_GBM_LINEAR 1" >>confdefs.h
31635
31636fi
31637				if test -n "$PKG_CONFIG" && \
31638    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 17.1.0\""; } >&5
31639  ($PKG_CONFIG --exists --print-errors "gbm >= 17.1.0") 2>&5
31640  ac_status=$?
31641  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31642  test $ac_status = 0; }; then
31643
31644printf "%s\n" "#define GBM_BO_WITH_MODIFIERS 1" >>confdefs.h
31645
31646fi
31647	else
31648		if test "x$XORG" = xyes; then
31649			as_fn_error $? "Glamor for Xorg requires $LIBGBM" "$LINENO" 5
31650		fi
31651	fi
31652fi
31653 if test "x$GBM" = xyes; then
31654  GLAMOR_EGL_TRUE=
31655  GLAMOR_EGL_FALSE='#'
31656else
31657  GLAMOR_EGL_TRUE='#'
31658  GLAMOR_EGL_FALSE=
31659fi
31660
31661
31662
31663{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build XWin DDX" >&5
31664printf %s "checking whether to build XWin DDX... " >&6; }
31665if test "x$XWIN" = xauto; then
31666	case $host_os in
31667		cygwin*) XWIN="yes" ;;
31668		mingw*) XWIN="yes" ;;
31669		*) XWIN="no" ;;
31670	esac
31671fi
31672{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XWIN" >&5
31673printf "%s\n" "$XWIN" >&6; }
31674
31675if test "x$XWIN" = xyes; then
31676
31677  prefix_NONE=
31678  exec_prefix_NONE=
31679  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
31680  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
31681  eval ac_define_dir="\"$logdir\""
31682  eval ac_define_dir="\"$ac_define_dir\""
31683  DEFAULT_LOGDIR="$ac_define_dir"
31684
31685
31686printf "%s\n" "#define DEFAULT_LOGDIR \"$ac_define_dir\"" >>confdefs.h
31687
31688  test "$prefix_NONE" && prefix=NONE
31689  test "$exec_prefix_NONE" && exec_prefix=NONE
31690
31691
31692printf "%s\n" "#define XORG_VERSION_CURRENT $VENDOR_RELEASE" >>confdefs.h
31693
31694
31695printf "%s\n" "#define __VENDORDWEBSUPPORT__ \"$VENDOR_WEB\"" >>confdefs.h
31696
31697	if test -n "$ac_tool_prefix"; then
31698  # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
31699set dummy ${ac_tool_prefix}windres; ac_word=$2
31700{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31701printf %s "checking for $ac_word... " >&6; }
31702if test ${ac_cv_prog_WINDRES+y}
31703then :
31704  printf %s "(cached) " >&6
31705else $as_nop
31706  if test -n "$WINDRES"; then
31707  ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
31708else
31709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31710for as_dir in $PATH
31711do
31712  IFS=$as_save_IFS
31713  case $as_dir in #(((
31714    '') as_dir=./ ;;
31715    */) ;;
31716    *) as_dir=$as_dir/ ;;
31717  esac
31718    for ac_exec_ext in '' $ac_executable_extensions; do
31719  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
31720    ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
31721    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
31722    break 2
31723  fi
31724done
31725  done
31726IFS=$as_save_IFS
31727
31728fi
31729fi
31730WINDRES=$ac_cv_prog_WINDRES
31731if test -n "$WINDRES"; then
31732  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
31733printf "%s\n" "$WINDRES" >&6; }
31734else
31735  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31736printf "%s\n" "no" >&6; }
31737fi
31738
31739
31740fi
31741if test -z "$ac_cv_prog_WINDRES"; then
31742  ac_ct_WINDRES=$WINDRES
31743  # Extract the first word of "windres", so it can be a program name with args.
31744set dummy windres; ac_word=$2
31745{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31746printf %s "checking for $ac_word... " >&6; }
31747if test ${ac_cv_prog_ac_ct_WINDRES+y}
31748then :
31749  printf %s "(cached) " >&6
31750else $as_nop
31751  if test -n "$ac_ct_WINDRES"; then
31752  ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
31753else
31754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31755for as_dir in $PATH
31756do
31757  IFS=$as_save_IFS
31758  case $as_dir in #(((
31759    '') as_dir=./ ;;
31760    */) ;;
31761    *) as_dir=$as_dir/ ;;
31762  esac
31763    for ac_exec_ext in '' $ac_executable_extensions; do
31764  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
31765    ac_cv_prog_ac_ct_WINDRES="windres"
31766    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
31767    break 2
31768  fi
31769done
31770  done
31771IFS=$as_save_IFS
31772
31773fi
31774fi
31775ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
31776if test -n "$ac_ct_WINDRES"; then
31777  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
31778printf "%s\n" "$ac_ct_WINDRES" >&6; }
31779else
31780  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31781printf "%s\n" "no" >&6; }
31782fi
31783
31784  if test "x$ac_ct_WINDRES" = x; then
31785    WINDRES=""
31786  else
31787    case $cross_compiling:$ac_tool_warned in
31788yes:)
31789{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
31790printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
31791ac_tool_warned=yes ;;
31792esac
31793    WINDRES=$ac_ct_WINDRES
31794  fi
31795else
31796  WINDRES="$ac_cv_prog_WINDRES"
31797fi
31798
31799
31800
31801pkg_failed=no
31802{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xcb-aux xcb-composite xcb-image xcb-ewmh xcb-icccm xcb-xfixes" >&5
31803printf %s "checking for xcb-aux xcb-composite xcb-image xcb-ewmh xcb-icccm xcb-xfixes... " >&6; }
31804
31805if test -n "$XWINMODULES_CFLAGS"; then
31806    pkg_cv_XWINMODULES_CFLAGS="$XWINMODULES_CFLAGS"
31807 elif test -n "$PKG_CONFIG"; then
31808    if test -n "$PKG_CONFIG" && \
31809    { { 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
31810  ($PKG_CONFIG --exists --print-errors "xcb-aux xcb-composite xcb-image xcb-ewmh xcb-icccm xcb-xfixes") 2>&5
31811  ac_status=$?
31812  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31813  test $ac_status = 0; }; then
31814  pkg_cv_XWINMODULES_CFLAGS=`$PKG_CONFIG --cflags "xcb-aux xcb-composite xcb-image xcb-ewmh xcb-icccm xcb-xfixes" 2>/dev/null`
31815		      test "x$?" != "x0" && pkg_failed=yes
31816else
31817  pkg_failed=yes
31818fi
31819 else
31820    pkg_failed=untried
31821fi
31822if test -n "$XWINMODULES_LIBS"; then
31823    pkg_cv_XWINMODULES_LIBS="$XWINMODULES_LIBS"
31824 elif test -n "$PKG_CONFIG"; then
31825    if test -n "$PKG_CONFIG" && \
31826    { { 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
31827  ($PKG_CONFIG --exists --print-errors "xcb-aux xcb-composite xcb-image xcb-ewmh xcb-icccm xcb-xfixes") 2>&5
31828  ac_status=$?
31829  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31830  test $ac_status = 0; }; then
31831  pkg_cv_XWINMODULES_LIBS=`$PKG_CONFIG --libs "xcb-aux xcb-composite xcb-image xcb-ewmh xcb-icccm xcb-xfixes" 2>/dev/null`
31832		      test "x$?" != "x0" && pkg_failed=yes
31833else
31834  pkg_failed=yes
31835fi
31836 else
31837    pkg_failed=untried
31838fi
31839
31840
31841
31842if test $pkg_failed = yes; then
31843        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31844printf "%s\n" "no" >&6; }
31845
31846if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31847        _pkg_short_errors_supported=yes
31848else
31849        _pkg_short_errors_supported=no
31850fi
31851        if test $_pkg_short_errors_supported = yes; then
31852                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`
31853        else
31854                XWINMODULES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xcb-aux xcb-composite xcb-image xcb-ewmh xcb-icccm xcb-xfixes" 2>&1`
31855        fi
31856        # Put the nasty error message in config.log where it belongs
31857        echo "$XWINMODULES_PKG_ERRORS" >&5
31858
31859        as_fn_error $? "Package requirements (xcb-aux xcb-composite xcb-image xcb-ewmh xcb-icccm xcb-xfixes) were not met:
31860
31861$XWINMODULES_PKG_ERRORS
31862
31863Consider adjusting the PKG_CONFIG_PATH environment variable if you
31864installed software in a non-standard prefix.
31865
31866Alternatively, you may set the environment variables XWINMODULES_CFLAGS
31867and XWINMODULES_LIBS to avoid the need to call pkg-config.
31868See the pkg-config man page for more details." "$LINENO" 5
31869elif test $pkg_failed = untried; then
31870        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31871printf "%s\n" "no" >&6; }
31872        { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
31873printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
31874as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
31875is in your PATH or set the PKG_CONFIG environment variable to the full
31876path to pkg-config.
31877
31878Alternatively, you may set the environment variables XWINMODULES_CFLAGS
31879and XWINMODULES_LIBS to avoid the need to call pkg-config.
31880See the pkg-config man page for more details.
31881
31882To get pkg-config, see <http://pkg-config.freedesktop.org/>.
31883See \`config.log' for more details" "$LINENO" 5; }
31884else
31885        XWINMODULES_CFLAGS=$pkg_cv_XWINMODULES_CFLAGS
31886        XWINMODULES_LIBS=$pkg_cv_XWINMODULES_LIBS
31887        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31888printf "%s\n" "yes" >&6; }
31889
31890fi
31891
31892	if test "x$WINDOWSDRI" = xauto; then
31893		if test -n "$PKG_CONFIG" && \
31894    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"windowsdriproto\""; } >&5
31895  ($PKG_CONFIG --exists --print-errors "windowsdriproto") 2>&5
31896  ac_status=$?
31897  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31898  test $ac_status = 0; }; then
31899  WINDOWSDRI=yes
31900else
31901  WINDOWSDRI=no
31902fi
31903	fi
31904	if test "x$WINDOWSDRI" = xyes ; then
31905
31906pkg_failed=no
31907{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for windowsdriproto" >&5
31908printf %s "checking for windowsdriproto... " >&6; }
31909
31910if test -n "$WINDOWSDRI_CFLAGS"; then
31911    pkg_cv_WINDOWSDRI_CFLAGS="$WINDOWSDRI_CFLAGS"
31912 elif test -n "$PKG_CONFIG"; then
31913    if test -n "$PKG_CONFIG" && \
31914    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"windowsdriproto\""; } >&5
31915  ($PKG_CONFIG --exists --print-errors "windowsdriproto") 2>&5
31916  ac_status=$?
31917  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31918  test $ac_status = 0; }; then
31919  pkg_cv_WINDOWSDRI_CFLAGS=`$PKG_CONFIG --cflags "windowsdriproto" 2>/dev/null`
31920		      test "x$?" != "x0" && pkg_failed=yes
31921else
31922  pkg_failed=yes
31923fi
31924 else
31925    pkg_failed=untried
31926fi
31927if test -n "$WINDOWSDRI_LIBS"; then
31928    pkg_cv_WINDOWSDRI_LIBS="$WINDOWSDRI_LIBS"
31929 elif test -n "$PKG_CONFIG"; then
31930    if test -n "$PKG_CONFIG" && \
31931    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"windowsdriproto\""; } >&5
31932  ($PKG_CONFIG --exists --print-errors "windowsdriproto") 2>&5
31933  ac_status=$?
31934  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31935  test $ac_status = 0; }; then
31936  pkg_cv_WINDOWSDRI_LIBS=`$PKG_CONFIG --libs "windowsdriproto" 2>/dev/null`
31937		      test "x$?" != "x0" && pkg_failed=yes
31938else
31939  pkg_failed=yes
31940fi
31941 else
31942    pkg_failed=untried
31943fi
31944
31945
31946
31947if test $pkg_failed = yes; then
31948        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31949printf "%s\n" "no" >&6; }
31950
31951if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31952        _pkg_short_errors_supported=yes
31953else
31954        _pkg_short_errors_supported=no
31955fi
31956        if test $_pkg_short_errors_supported = yes; then
31957                WINDOWSDRI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "windowsdriproto" 2>&1`
31958        else
31959                WINDOWSDRI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "windowsdriproto" 2>&1`
31960        fi
31961        # Put the nasty error message in config.log where it belongs
31962        echo "$WINDOWSDRI_PKG_ERRORS" >&5
31963
31964        as_fn_error $? "Package requirements (windowsdriproto) were not met:
31965
31966$WINDOWSDRI_PKG_ERRORS
31967
31968Consider adjusting the PKG_CONFIG_PATH environment variable if you
31969installed software in a non-standard prefix.
31970
31971Alternatively, you may set the environment variables WINDOWSDRI_CFLAGS
31972and WINDOWSDRI_LIBS to avoid the need to call pkg-config.
31973See the pkg-config man page for more details." "$LINENO" 5
31974elif test $pkg_failed = untried; then
31975        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31976printf "%s\n" "no" >&6; }
31977        { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
31978printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
31979as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
31980is in your PATH or set the PKG_CONFIG environment variable to the full
31981path to pkg-config.
31982
31983Alternatively, you may set the environment variables WINDOWSDRI_CFLAGS
31984and WINDOWSDRI_LIBS to avoid the need to call pkg-config.
31985See the pkg-config man page for more details.
31986
31987To get pkg-config, see <http://pkg-config.freedesktop.org/>.
31988See \`config.log' for more details" "$LINENO" 5; }
31989else
31990        WINDOWSDRI_CFLAGS=$pkg_cv_WINDOWSDRI_CFLAGS
31991        WINDOWSDRI_LIBS=$pkg_cv_WINDOWSDRI_LIBS
31992        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31993printf "%s\n" "yes" >&6; }
31994
31995fi
31996	fi
31997
31998	case $host_os in
31999		cygwin*)
32000			XWIN_SERVER_NAME=XWin
32001
32002printf "%s\n" "#define HAS_DEVWINDOWS 1" >>confdefs.h
32003
32004			;;
32005		mingw*)
32006			XWIN_SERVER_NAME=Xming
32007
32008printf "%s\n" "#define RELOCATE_PROJECTROOT 1" >>confdefs.h
32009
32010
32011printf "%s\n" "#define HAS_WINSOCK 1" >>confdefs.h
32012
32013			XWIN_SYS_LIBS="-lpthread -lws2_32"
32014			;;
32015	esac
32016
32017	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"
32018	XWIN_SYS_LIBS="$XWIN_SYS_LIBS $XWINMODULES_LIBS"
32019
32020
32021
32022
32023	if test "x$DEBUGGING" = xyes; then
32024
32025printf "%s\n" "#define CYGDEBUG 1" >>confdefs.h
32026
32027
32028printf "%s\n" "#define CYGWINDOWING_DEBUG 1" >>confdefs.h
32029
32030
32031printf "%s\n" "#define CYGMULTIWINDOW_DEBUG 1" >>confdefs.h
32032
32033	fi
32034
32035
32036printf "%s\n" "#define DDXOSVERRORF 1" >>confdefs.h
32037
32038
32039printf "%s\n" "#define DDXBEFORERESET 1" >>confdefs.h
32040
32041
32042	if test "x$XWIN" = xyes && test "x$GLX" = xyes ; then
32043           # Extract the first word of "python3", so it can be a program name with args.
32044set dummy python3; ac_word=$2
32045{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32046printf %s "checking for $ac_word... " >&6; }
32047if test ${ac_cv_prog_PYTHON3+y}
32048then :
32049  printf %s "(cached) " >&6
32050else $as_nop
32051  if test -n "$PYTHON3"; then
32052  ac_cv_prog_PYTHON3="$PYTHON3" # Let the user override the test.
32053else
32054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32055for as_dir in $PATH
32056do
32057  IFS=$as_save_IFS
32058  case $as_dir in #(((
32059    '') as_dir=./ ;;
32060    */) ;;
32061    *) as_dir=$as_dir/ ;;
32062  esac
32063    for ac_exec_ext in '' $ac_executable_extensions; do
32064  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
32065    ac_cv_prog_PYTHON3="python3"
32066    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
32067    break 2
32068  fi
32069done
32070  done
32071IFS=$as_save_IFS
32072
32073fi
32074fi
32075PYTHON3=$ac_cv_prog_PYTHON3
32076if test -n "$PYTHON3"; then
32077  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON3" >&5
32078printf "%s\n" "$PYTHON3" >&6; }
32079else
32080  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32081printf "%s\n" "no" >&6; }
32082fi
32083
32084
32085           if test -z "$PYTHON3"; then
32086                as_fn_error $? "python3 not found" "$LINENO" 5
32087           fi
32088           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python module lxml" >&5
32089printf %s "checking for python module lxml... " >&6; }
32090           $PYTHON3 -c "import lxml;"
32091           if test $? -ne 0 ; then
32092                as_fn_error $? "not found" "$LINENO" 5
32093           fi
32094           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32095printf "%s\n" "yes" >&6; }
32096           if test "x$KHRONOS_SPEC_DIR" = "xauto" ; then
32097
32098pkg_failed=no
32099{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for khronos-opengl-registry" >&5
32100printf %s "checking for khronos-opengl-registry... " >&6; }
32101
32102if test -n "$KHRONOS_OPENGL_REGISTRY_CFLAGS"; then
32103    pkg_cv_KHRONOS_OPENGL_REGISTRY_CFLAGS="$KHRONOS_OPENGL_REGISTRY_CFLAGS"
32104 elif test -n "$PKG_CONFIG"; then
32105    if test -n "$PKG_CONFIG" && \
32106    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"khronos-opengl-registry\""; } >&5
32107  ($PKG_CONFIG --exists --print-errors "khronos-opengl-registry") 2>&5
32108  ac_status=$?
32109  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32110  test $ac_status = 0; }; then
32111  pkg_cv_KHRONOS_OPENGL_REGISTRY_CFLAGS=`$PKG_CONFIG --cflags "khronos-opengl-registry" 2>/dev/null`
32112		      test "x$?" != "x0" && pkg_failed=yes
32113else
32114  pkg_failed=yes
32115fi
32116 else
32117    pkg_failed=untried
32118fi
32119if test -n "$KHRONOS_OPENGL_REGISTRY_LIBS"; then
32120    pkg_cv_KHRONOS_OPENGL_REGISTRY_LIBS="$KHRONOS_OPENGL_REGISTRY_LIBS"
32121 elif test -n "$PKG_CONFIG"; then
32122    if test -n "$PKG_CONFIG" && \
32123    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"khronos-opengl-registry\""; } >&5
32124  ($PKG_CONFIG --exists --print-errors "khronos-opengl-registry") 2>&5
32125  ac_status=$?
32126  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32127  test $ac_status = 0; }; then
32128  pkg_cv_KHRONOS_OPENGL_REGISTRY_LIBS=`$PKG_CONFIG --libs "khronos-opengl-registry" 2>/dev/null`
32129		      test "x$?" != "x0" && pkg_failed=yes
32130else
32131  pkg_failed=yes
32132fi
32133 else
32134    pkg_failed=untried
32135fi
32136
32137
32138
32139if test $pkg_failed = yes; then
32140        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32141printf "%s\n" "no" >&6; }
32142
32143if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32144        _pkg_short_errors_supported=yes
32145else
32146        _pkg_short_errors_supported=no
32147fi
32148        if test $_pkg_short_errors_supported = yes; then
32149                KHRONOS_OPENGL_REGISTRY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "khronos-opengl-registry" 2>&1`
32150        else
32151                KHRONOS_OPENGL_REGISTRY_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "khronos-opengl-registry" 2>&1`
32152        fi
32153        # Put the nasty error message in config.log where it belongs
32154        echo "$KHRONOS_OPENGL_REGISTRY_PKG_ERRORS" >&5
32155
32156        as_fn_error $? "Package requirements (khronos-opengl-registry) were not met:
32157
32158$KHRONOS_OPENGL_REGISTRY_PKG_ERRORS
32159
32160Consider adjusting the PKG_CONFIG_PATH environment variable if you
32161installed software in a non-standard prefix.
32162
32163Alternatively, you may set the environment variables KHRONOS_OPENGL_REGISTRY_CFLAGS
32164and KHRONOS_OPENGL_REGISTRY_LIBS to avoid the need to call pkg-config.
32165See the pkg-config man page for more details." "$LINENO" 5
32166elif test $pkg_failed = untried; then
32167        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32168printf "%s\n" "no" >&6; }
32169        { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32170printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
32171as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
32172is in your PATH or set the PKG_CONFIG environment variable to the full
32173path to pkg-config.
32174
32175Alternatively, you may set the environment variables KHRONOS_OPENGL_REGISTRY_CFLAGS
32176and KHRONOS_OPENGL_REGISTRY_LIBS to avoid the need to call pkg-config.
32177See the pkg-config man page for more details.
32178
32179To get pkg-config, see <http://pkg-config.freedesktop.org/>.
32180See \`config.log' for more details" "$LINENO" 5; }
32181else
32182        KHRONOS_OPENGL_REGISTRY_CFLAGS=$pkg_cv_KHRONOS_OPENGL_REGISTRY_CFLAGS
32183        KHRONOS_OPENGL_REGISTRY_LIBS=$pkg_cv_KHRONOS_OPENGL_REGISTRY_LIBS
32184        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32185printf "%s\n" "yes" >&6; }
32186
32187fi
32188		KHRONOS_SPEC_DIR=`pkg-config khronos-opengl-registry --variable=specdir`
32189           fi
32190
32191	fi
32192
32193fi
32194 if test "x$XWIN" = xyes; then
32195  XWIN_TRUE=
32196  XWIN_FALSE='#'
32197else
32198  XWIN_TRUE='#'
32199  XWIN_FALSE=
32200fi
32201
32202 if test "x$XWIN" = xyes && test "x$GLX" = xyes; then
32203  XWIN_GLX_WINDOWS_TRUE=
32204  XWIN_GLX_WINDOWS_FALSE='#'
32205else
32206  XWIN_GLX_WINDOWS_TRUE='#'
32207  XWIN_GLX_WINDOWS_FALSE=
32208fi
32209
32210 if test "x$XWIN" = xyes && test "x$WINDOWSDRI" = xyes; then
32211  XWIN_WINDOWS_DRI_TRUE=
32212  XWIN_WINDOWS_DRI_FALSE='#'
32213else
32214  XWIN_WINDOWS_DRI_TRUE='#'
32215  XWIN_WINDOWS_DRI_FALSE=
32216fi
32217
32218
32219if test "x$XQUARTZ" = xyes; then
32220
32221printf "%s\n" "#define XQUARTZ 1" >>confdefs.h
32222
32223
32224printf "%s\n" "#define ROOTLESS 1" >>confdefs.h
32225
32226
32227	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"
32228
32229
32230	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xp_init in -lXplugin" >&5
32231printf %s "checking for xp_init in -lXplugin... " >&6; }
32232if test ${ac_cv_lib_Xplugin_xp_init+y}
32233then :
32234  printf %s "(cached) " >&6
32235else $as_nop
32236  ac_check_lib_save_LIBS=$LIBS
32237LIBS="-lXplugin  $LIBS"
32238cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32239/* end confdefs.h.  */
32240
32241/* Override any GCC internal prototype to avoid an error.
32242   Use char because int might match the return type of a GCC
32243   builtin and then its argument prototype would still apply.  */
32244char xp_init ();
32245int
32246main (void)
32247{
32248return xp_init ();
32249  ;
32250  return 0;
32251}
32252_ACEOF
32253if ac_fn_c_try_link "$LINENO"
32254then :
32255  ac_cv_lib_Xplugin_xp_init=yes
32256else $as_nop
32257  ac_cv_lib_Xplugin_xp_init=no
32258fi
32259rm -f core conftest.err conftest.$ac_objext conftest.beam \
32260    conftest$ac_exeext conftest.$ac_ext
32261LIBS=$ac_check_lib_save_LIBS
32262fi
32263{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xplugin_xp_init" >&5
32264printf "%s\n" "$ac_cv_lib_Xplugin_xp_init" >&6; }
32265if test "x$ac_cv_lib_Xplugin_xp_init" = xyes
32266then :
32267  :
32268fi
32269
32270
32271	CFLAGS="${CFLAGS} -DROOTLESS_WORKAROUND -DROOTLESS_SAFEALPHA -DNO_ALLOCA"
32272
32273
32274pkg_failed=no
32275{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $APPLEWMPROTO $LIBAPPLEWM xfixes x11" >&5
32276printf %s "checking for $APPLEWMPROTO $LIBAPPLEWM xfixes x11... " >&6; }
32277
32278if test -n "$XPBPROXY_CFLAGS"; then
32279    pkg_cv_XPBPROXY_CFLAGS="$XPBPROXY_CFLAGS"
32280 elif test -n "$PKG_CONFIG"; then
32281    if test -n "$PKG_CONFIG" && \
32282    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$APPLEWMPROTO \$LIBAPPLEWM xfixes x11\""; } >&5
32283  ($PKG_CONFIG --exists --print-errors "$APPLEWMPROTO $LIBAPPLEWM xfixes x11") 2>&5
32284  ac_status=$?
32285  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32286  test $ac_status = 0; }; then
32287  pkg_cv_XPBPROXY_CFLAGS=`$PKG_CONFIG --cflags "$APPLEWMPROTO $LIBAPPLEWM xfixes x11" 2>/dev/null`
32288		      test "x$?" != "x0" && pkg_failed=yes
32289else
32290  pkg_failed=yes
32291fi
32292 else
32293    pkg_failed=untried
32294fi
32295if test -n "$XPBPROXY_LIBS"; then
32296    pkg_cv_XPBPROXY_LIBS="$XPBPROXY_LIBS"
32297 elif test -n "$PKG_CONFIG"; then
32298    if test -n "$PKG_CONFIG" && \
32299    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$APPLEWMPROTO \$LIBAPPLEWM xfixes x11\""; } >&5
32300  ($PKG_CONFIG --exists --print-errors "$APPLEWMPROTO $LIBAPPLEWM xfixes x11") 2>&5
32301  ac_status=$?
32302  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32303  test $ac_status = 0; }; then
32304  pkg_cv_XPBPROXY_LIBS=`$PKG_CONFIG --libs "$APPLEWMPROTO $LIBAPPLEWM xfixes x11" 2>/dev/null`
32305		      test "x$?" != "x0" && pkg_failed=yes
32306else
32307  pkg_failed=yes
32308fi
32309 else
32310    pkg_failed=untried
32311fi
32312
32313
32314
32315if test $pkg_failed = yes; then
32316        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32317printf "%s\n" "no" >&6; }
32318
32319if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32320        _pkg_short_errors_supported=yes
32321else
32322        _pkg_short_errors_supported=no
32323fi
32324        if test $_pkg_short_errors_supported = yes; then
32325                XPBPROXY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$APPLEWMPROTO $LIBAPPLEWM xfixes x11" 2>&1`
32326        else
32327                XPBPROXY_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$APPLEWMPROTO $LIBAPPLEWM xfixes x11" 2>&1`
32328        fi
32329        # Put the nasty error message in config.log where it belongs
32330        echo "$XPBPROXY_PKG_ERRORS" >&5
32331
32332        as_fn_error $? "Package requirements ($APPLEWMPROTO $LIBAPPLEWM xfixes x11) were not met:
32333
32334$XPBPROXY_PKG_ERRORS
32335
32336Consider adjusting the PKG_CONFIG_PATH environment variable if you
32337installed software in a non-standard prefix.
32338
32339Alternatively, you may set the environment variables XPBPROXY_CFLAGS
32340and XPBPROXY_LIBS to avoid the need to call pkg-config.
32341See the pkg-config man page for more details." "$LINENO" 5
32342elif test $pkg_failed = untried; then
32343        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32344printf "%s\n" "no" >&6; }
32345        { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32346printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
32347as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
32348is in your PATH or set the PKG_CONFIG environment variable to the full
32349path to pkg-config.
32350
32351Alternatively, you may set the environment variables XPBPROXY_CFLAGS
32352and XPBPROXY_LIBS to avoid the need to call pkg-config.
32353See the pkg-config man page for more details.
32354
32355To get pkg-config, see <http://pkg-config.freedesktop.org/>.
32356See \`config.log' for more details" "$LINENO" 5; }
32357else
32358        XPBPROXY_CFLAGS=$pkg_cv_XPBPROXY_CFLAGS
32359        XPBPROXY_LIBS=$pkg_cv_XPBPROXY_LIBS
32360        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32361printf "%s\n" "yes" >&6; }
32362
32363fi
32364
32365        if test "x$XQUARTZ_SPARKLE" = xyes ; then
32366
32367printf "%s\n" "#define XQUARTZ_SPARKLE 1" >>confdefs.h
32368
32369        fi
32370
32371	if test "x$STANDALONE_XPBPROXY" = xyes ; then
32372
32373printf "%s\n" "#define STANDALONE_XPBPROXY 1" >>confdefs.h
32374
32375	fi
32376fi
32377
32378 if test "x$XQUARTZ" = xyes -o "x$XWIN" = xyes ; then
32379  PSEUDORAMIX_TRUE=
32380  PSEUDORAMIX_FALSE='#'
32381else
32382  PSEUDORAMIX_TRUE='#'
32383  PSEUDORAMIX_FALSE=
32384fi
32385
32386
32387# Support for objc in autotools is minimal and not documented.
32388OBJC='$(CC)'
32389OBJCLD='$(CCLD)'
32390OBJCLINK='$(LINK)'
32391OBJCFLAGS='$(CFLAGS)'
32392
32393
32394
32395
32396# internal, undocumented automake func follows :(
32397
32398depcc="$OBJC" am_compiler_list='gcc3 gcc'
32399
32400{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
32401printf %s "checking dependency style of $depcc... " >&6; }
32402if test ${am_cv_OBJC_dependencies_compiler_type+y}
32403then :
32404  printf %s "(cached) " >&6
32405else $as_nop
32406  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
32407  # We make a subdir and do the tests there.  Otherwise we can end up
32408  # making bogus files that we don't know about and never remove.  For
32409  # instance it was reported that on HP-UX the gcc test will end up
32410  # making a dummy file named 'D' -- because '-MD' means "put the output
32411  # in D".
32412  rm -rf conftest.dir
32413  mkdir conftest.dir
32414  # Copy depcomp to subdir because otherwise we won't find it if we're
32415  # using a relative directory.
32416  cp "$am_depcomp" conftest.dir
32417  cd conftest.dir
32418  # We will build objects and dependencies in a subdirectory because
32419  # it helps to detect inapplicable dependency modes.  For instance
32420  # both Tru64's cc and ICC support -MD to output dependencies as a
32421  # side effect of compilation, but ICC will put the dependencies in
32422  # the current directory while Tru64 will put them in the object
32423  # directory.
32424  mkdir sub
32425
32426  am_cv_OBJC_dependencies_compiler_type=none
32427  if test "$am_compiler_list" = ""; then
32428     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
32429  fi
32430  am__universal=false
32431
32432
32433  for depmode in $am_compiler_list; do
32434    # Setup a source with many dependencies, because some compilers
32435    # like to wrap large dependency lists on column 80 (with \), and
32436    # we should not choose a depcomp mode which is confused by this.
32437    #
32438    # We need to recreate these files for each test, as the compiler may
32439    # overwrite some of them when testing with obscure command lines.
32440    # This happens at least with the AIX C compiler.
32441    : > sub/conftest.c
32442    for i in 1 2 3 4 5 6; do
32443      echo '#include "conftst'$i'.h"' >> sub/conftest.c
32444      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
32445      # Solaris 10 /bin/sh.
32446      echo '/* dummy */' > sub/conftst$i.h
32447    done
32448    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
32449
32450    # We check with '-c' and '-o' for the sake of the "dashmstdout"
32451    # mode.  It turns out that the SunPro C++ compiler does not properly
32452    # handle '-M -o', and we need to detect this.  Also, some Intel
32453    # versions had trouble with output in subdirs.
32454    am__obj=sub/conftest.${OBJEXT-o}
32455    am__minus_obj="-o $am__obj"
32456    case $depmode in
32457    gcc)
32458      # This depmode causes a compiler race in universal mode.
32459      test "$am__universal" = false || continue
32460      ;;
32461    nosideeffect)
32462      # After this tag, mechanisms are not by side-effect, so they'll
32463      # only be used when explicitly requested.
32464      if test "x$enable_dependency_tracking" = xyes; then
32465	continue
32466      else
32467	break
32468      fi
32469      ;;
32470    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
32471      # This compiler won't grok '-c -o', but also, the minuso test has
32472      # not run yet.  These depmodes are late enough in the game, and
32473      # so weak that their functioning should not be impacted.
32474      am__obj=conftest.${OBJEXT-o}
32475      am__minus_obj=
32476      ;;
32477    none) break ;;
32478    esac
32479    if depmode=$depmode \
32480       source=sub/conftest.c object=$am__obj \
32481       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
32482       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
32483         >/dev/null 2>conftest.err &&
32484       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
32485       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
32486       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
32487       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
32488      # icc doesn't choke on unknown options, it will just issue warnings
32489      # or remarks (even with -Werror).  So we grep stderr for any message
32490      # that says an option was ignored or not supported.
32491      # When given -MP, icc 7.0 and 7.1 complain thusly:
32492      #   icc: Command line warning: ignoring option '-M'; no argument required
32493      # The diagnosis changed in icc 8.0:
32494      #   icc: Command line remark: option '-MP' not supported
32495      if (grep 'ignoring option' conftest.err ||
32496          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
32497        am_cv_OBJC_dependencies_compiler_type=$depmode
32498        break
32499      fi
32500    fi
32501  done
32502
32503  cd ..
32504  rm -rf conftest.dir
32505else
32506  am_cv_OBJC_dependencies_compiler_type=none
32507fi
32508
32509fi
32510{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_OBJC_dependencies_compiler_type" >&5
32511printf "%s\n" "$am_cv_OBJC_dependencies_compiler_type" >&6; }
32512OBJCDEPMODE=depmode=$am_cv_OBJC_dependencies_compiler_type
32513
32514 if
32515  test "x$enable_dependency_tracking" != xno \
32516  && test "$am_cv_OBJC_dependencies_compiler_type" = gcc3; then
32517  am__fastdepOBJC_TRUE=
32518  am__fastdepOBJC_FALSE='#'
32519else
32520  am__fastdepOBJC_TRUE='#'
32521  am__fastdepOBJC_FALSE=
32522fi
32523
32524
32525 if test "x$XQUARTZ" = xyes; then
32526  XQUARTZ_TRUE=
32527  XQUARTZ_FALSE='#'
32528else
32529  XQUARTZ_TRUE='#'
32530  XQUARTZ_FALSE=
32531fi
32532
32533 if test "x$XQUARTZ_SPARKLE" != "xno"; then
32534  XQUARTZ_SPARKLE_TRUE=
32535  XQUARTZ_SPARKLE_FALSE='#'
32536else
32537  XQUARTZ_SPARKLE_TRUE='#'
32538  XQUARTZ_SPARKLE_FALSE=
32539fi
32540
32541 if test "x$STANDALONE_XPBPROXY" = xyes; then
32542  STANDALONE_XPBPROXY_TRUE=
32543  STANDALONE_XPBPROXY_FALSE='#'
32544else
32545  STANDALONE_XPBPROXY_TRUE='#'
32546  STANDALONE_XPBPROXY_FALSE=
32547fi
32548
32549
32550
32551XEPHYR_LIBS=
32552XEPHYR_INCS=
32553
32554 if test x$KDRIVE = xyes; then
32555  KDRIVE_TRUE=
32556  KDRIVE_FALSE='#'
32557else
32558  KDRIVE_TRUE='#'
32559  KDRIVE_FALSE=
32560fi
32561
32562
32563if test "$KDRIVE" = yes; then
32564    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"
32565    if test "x$XV" = xyes; then
32566        XEPHYR_REQUIRED_LIBS="$XEPHYR_REQUIRED_LIBS xcb-xv"
32567    fi
32568    if test "x$DRI" = xyes && test "x$GLX" = xyes; then
32569        XEPHYR_REQUIRED_LIBS="$XEPHYR_REQUIRED_LIBS $LIBDRM xcb-glx xcb-xf86dri > 1.6"
32570    fi
32571    if test "x$GLAMOR" = xyes; then
32572        XEPHYR_REQUIRED_LIBS="$XEPHYR_REQUIRED_LIBS x11-xcb"
32573    fi
32574
32575    if test "x$XEPHYR" = xauto; then
32576
32577pkg_failed=no
32578{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $XEPHYR_REQUIRED_LIBS" >&5
32579printf %s "checking for $XEPHYR_REQUIRED_LIBS... " >&6; }
32580
32581if test -n "$XEPHYR_CFLAGS"; then
32582    pkg_cv_XEPHYR_CFLAGS="$XEPHYR_CFLAGS"
32583 elif test -n "$PKG_CONFIG"; then
32584    if test -n "$PKG_CONFIG" && \
32585    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XEPHYR_REQUIRED_LIBS\""; } >&5
32586  ($PKG_CONFIG --exists --print-errors "$XEPHYR_REQUIRED_LIBS") 2>&5
32587  ac_status=$?
32588  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32589  test $ac_status = 0; }; then
32590  pkg_cv_XEPHYR_CFLAGS=`$PKG_CONFIG --cflags "$XEPHYR_REQUIRED_LIBS" 2>/dev/null`
32591		      test "x$?" != "x0" && pkg_failed=yes
32592else
32593  pkg_failed=yes
32594fi
32595 else
32596    pkg_failed=untried
32597fi
32598if test -n "$XEPHYR_LIBS"; then
32599    pkg_cv_XEPHYR_LIBS="$XEPHYR_LIBS"
32600 elif test -n "$PKG_CONFIG"; then
32601    if test -n "$PKG_CONFIG" && \
32602    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XEPHYR_REQUIRED_LIBS\""; } >&5
32603  ($PKG_CONFIG --exists --print-errors "$XEPHYR_REQUIRED_LIBS") 2>&5
32604  ac_status=$?
32605  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32606  test $ac_status = 0; }; then
32607  pkg_cv_XEPHYR_LIBS=`$PKG_CONFIG --libs "$XEPHYR_REQUIRED_LIBS" 2>/dev/null`
32608		      test "x$?" != "x0" && pkg_failed=yes
32609else
32610  pkg_failed=yes
32611fi
32612 else
32613    pkg_failed=untried
32614fi
32615
32616
32617
32618if test $pkg_failed = yes; then
32619        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32620printf "%s\n" "no" >&6; }
32621
32622if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32623        _pkg_short_errors_supported=yes
32624else
32625        _pkg_short_errors_supported=no
32626fi
32627        if test $_pkg_short_errors_supported = yes; then
32628                XEPHYR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$XEPHYR_REQUIRED_LIBS" 2>&1`
32629        else
32630                XEPHYR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$XEPHYR_REQUIRED_LIBS" 2>&1`
32631        fi
32632        # Put the nasty error message in config.log where it belongs
32633        echo "$XEPHYR_PKG_ERRORS" >&5
32634
32635        XEPHYR="no"
32636elif test $pkg_failed = untried; then
32637        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32638printf "%s\n" "no" >&6; }
32639        XEPHYR="no"
32640else
32641        XEPHYR_CFLAGS=$pkg_cv_XEPHYR_CFLAGS
32642        XEPHYR_LIBS=$pkg_cv_XEPHYR_LIBS
32643        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32644printf "%s\n" "yes" >&6; }
32645        XEPHYR="yes"
32646fi
32647    elif test "x$XEPHYR" = xyes ; then
32648
32649pkg_failed=no
32650{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $XEPHYR_REQUIRED_LIBS" >&5
32651printf %s "checking for $XEPHYR_REQUIRED_LIBS... " >&6; }
32652
32653if test -n "$XEPHYR_CFLAGS"; then
32654    pkg_cv_XEPHYR_CFLAGS="$XEPHYR_CFLAGS"
32655 elif test -n "$PKG_CONFIG"; then
32656    if test -n "$PKG_CONFIG" && \
32657    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XEPHYR_REQUIRED_LIBS\""; } >&5
32658  ($PKG_CONFIG --exists --print-errors "$XEPHYR_REQUIRED_LIBS") 2>&5
32659  ac_status=$?
32660  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32661  test $ac_status = 0; }; then
32662  pkg_cv_XEPHYR_CFLAGS=`$PKG_CONFIG --cflags "$XEPHYR_REQUIRED_LIBS" 2>/dev/null`
32663		      test "x$?" != "x0" && pkg_failed=yes
32664else
32665  pkg_failed=yes
32666fi
32667 else
32668    pkg_failed=untried
32669fi
32670if test -n "$XEPHYR_LIBS"; then
32671    pkg_cv_XEPHYR_LIBS="$XEPHYR_LIBS"
32672 elif test -n "$PKG_CONFIG"; then
32673    if test -n "$PKG_CONFIG" && \
32674    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XEPHYR_REQUIRED_LIBS\""; } >&5
32675  ($PKG_CONFIG --exists --print-errors "$XEPHYR_REQUIRED_LIBS") 2>&5
32676  ac_status=$?
32677  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32678  test $ac_status = 0; }; then
32679  pkg_cv_XEPHYR_LIBS=`$PKG_CONFIG --libs "$XEPHYR_REQUIRED_LIBS" 2>/dev/null`
32680		      test "x$?" != "x0" && pkg_failed=yes
32681else
32682  pkg_failed=yes
32683fi
32684 else
32685    pkg_failed=untried
32686fi
32687
32688
32689
32690if test $pkg_failed = yes; then
32691        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32692printf "%s\n" "no" >&6; }
32693
32694if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32695        _pkg_short_errors_supported=yes
32696else
32697        _pkg_short_errors_supported=no
32698fi
32699        if test $_pkg_short_errors_supported = yes; then
32700                XEPHYR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$XEPHYR_REQUIRED_LIBS" 2>&1`
32701        else
32702                XEPHYR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$XEPHYR_REQUIRED_LIBS" 2>&1`
32703        fi
32704        # Put the nasty error message in config.log where it belongs
32705        echo "$XEPHYR_PKG_ERRORS" >&5
32706
32707        as_fn_error $? "Package requirements ($XEPHYR_REQUIRED_LIBS) were not met:
32708
32709$XEPHYR_PKG_ERRORS
32710
32711Consider adjusting the PKG_CONFIG_PATH environment variable if you
32712installed software in a non-standard prefix.
32713
32714Alternatively, you may set the environment variables XEPHYR_CFLAGS
32715and XEPHYR_LIBS to avoid the need to call pkg-config.
32716See the pkg-config man page for more details." "$LINENO" 5
32717elif test $pkg_failed = untried; then
32718        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32719printf "%s\n" "no" >&6; }
32720        { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32721printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
32722as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
32723is in your PATH or set the PKG_CONFIG environment variable to the full
32724path to pkg-config.
32725
32726Alternatively, you may set the environment variables XEPHYR_CFLAGS
32727and XEPHYR_LIBS to avoid the need to call pkg-config.
32728See the pkg-config man page for more details.
32729
32730To get pkg-config, see <http://pkg-config.freedesktop.org/>.
32731See \`config.log' for more details" "$LINENO" 5; }
32732else
32733        XEPHYR_CFLAGS=$pkg_cv_XEPHYR_CFLAGS
32734        XEPHYR_LIBS=$pkg_cv_XEPHYR_LIBS
32735        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32736printf "%s\n" "yes" >&6; }
32737
32738fi
32739    fi
32740
32741    # Xephyr needs nanosleep() which is in librt on Solaris
32742    ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
32743if test "x$ac_cv_func_nanosleep" = xyes
32744then :
32745
32746else $as_nop
32747  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
32748printf %s "checking for nanosleep in -lrt... " >&6; }
32749if test ${ac_cv_lib_rt_nanosleep+y}
32750then :
32751  printf %s "(cached) " >&6
32752else $as_nop
32753  ac_check_lib_save_LIBS=$LIBS
32754LIBS="-lrt  $LIBS"
32755cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32756/* end confdefs.h.  */
32757
32758/* Override any GCC internal prototype to avoid an error.
32759   Use char because int might match the return type of a GCC
32760   builtin and then its argument prototype would still apply.  */
32761char nanosleep ();
32762int
32763main (void)
32764{
32765return nanosleep ();
32766  ;
32767  return 0;
32768}
32769_ACEOF
32770if ac_fn_c_try_link "$LINENO"
32771then :
32772  ac_cv_lib_rt_nanosleep=yes
32773else $as_nop
32774  ac_cv_lib_rt_nanosleep=no
32775fi
32776rm -f core conftest.err conftest.$ac_objext conftest.beam \
32777    conftest$ac_exeext conftest.$ac_ext
32778LIBS=$ac_check_lib_save_LIBS
32779fi
32780{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
32781printf "%s\n" "$ac_cv_lib_rt_nanosleep" >&6; }
32782if test "x$ac_cv_lib_rt_nanosleep" = xyes
32783then :
32784  XEPHYR_LIBS="$XEPHYR_LIBS -lrt"
32785fi
32786
32787fi
32788
32789
32790    # damage shadow extension glx (NOTYET) fb mi
32791    KDRIVE_INC='-I$(top_srcdir)/hw/kdrive/src'
32792    KDRIVE_PURE_INCS="$KDRIVE_INC $MIEXT_SYNC_INC $MIEXT_DAMAGE_INC $MIEXT_SHADOW_INC $XEXT_INC $FB_INC $MI_INC"
32793    KDRIVE_OS_INC='-I$(top_srcdir)/hw/kdrive/linux'
32794    KDRIVE_INCS="$KDRIVE_PURE_INCS $KDRIVE_OS_INC"
32795
32796    KDRIVE_CFLAGS="$XSERVER_CFLAGS"
32797
32798    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"
32799    KDRIVE_LIB='$(top_builddir)/hw/kdrive/src/libkdrive.la'
32800    KDRIVE_MAIN_LIB="$MAIN_LIB"
32801    KDRIVE_LOCAL_LIBS="$DIX_LIB $KDRIVE_LIB"
32802    KDRIVE_LOCAL_LIBS="$KDRIVE_LOCAL_LIBS $FB_LIB $MI_LIB $KDRIVE_PURE_LIBS"
32803    KDRIVE_LOCAL_LIBS="$KDRIVE_LOCAL_LIBS $KDRIVE_OS_LIB"
32804    KDRIVE_LIBS="$KDRIVE_LOCAL_LIBS $XSERVER_SYS_LIBS $GLX_SYS_LIBS $DLOPEN_LIBS"
32805
32806
32807
32808fi
32809
32810
32811
32812
32813
32814
32815
32816 if test "x$KDRIVE" = xyes && test "x$XEPHYR" = xyes; then
32817  XEPHYR_TRUE=
32818  XEPHYR_FALSE='#'
32819else
32820  XEPHYR_TRUE='#'
32821  XEPHYR_FALSE=
32822fi
32823
32824
32825
32826
32827cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32828/* end confdefs.h.  */
32829
32830#include <features.h>
32831#ifndef __GLIBC__
32832#error not glibc
32833#endif
32834
32835int
32836main (void)
32837{
32838
32839  ;
32840  return 0;
32841}
32842_ACEOF
32843if ac_fn_c_try_compile "$LINENO"
32844then :
32845
32846printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
32847
32848fi
32849rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
32850
32851
32852  prefix_NONE=
32853  exec_prefix_NONE=
32854  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
32855  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
32856  eval ac_define_dir="\"$prefix\""
32857  eval ac_define_dir="\"$ac_define_dir\""
32858  PROJECTROOT="$ac_define_dir"
32859
32860
32861printf "%s\n" "#define PROJECTROOT \"$ac_define_dir\"" >>confdefs.h
32862
32863  test "$prefix_NONE" && prefix=NONE
32864  test "$exec_prefix_NONE" && exec_prefix=NONE
32865
32866
32867  prefix_NONE=
32868  exec_prefix_NONE=
32869  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
32870  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
32871  eval ac_define_dir="\"$sysconfdir\""
32872  eval ac_define_dir="\"$ac_define_dir\""
32873  SYSCONFDIR="$ac_define_dir"
32874
32875
32876printf "%s\n" "#define SYSCONFDIR \"$ac_define_dir\"" >>confdefs.h
32877
32878  test "$prefix_NONE" && prefix=NONE
32879  test "$exec_prefix_NONE" && exec_prefix=NONE
32880
32881
32882
32883
32884DIX_CFLAGS="-DHAVE_DIX_CONFIG_H $XSERVER_CFLAGS"
32885
32886
32887
32888
32889
32890
32891
32892ac_config_commands="$ac_config_commands sdksyms"
32893
32894
32895if test "x$CONFIG_HAL" = xno && test "x$CONFIG_UDEV" = xno; then
32896    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:
32897             ***********************************************
32898             Neither HAL nor udev backend will be enabled.
32899             Input device hotplugging will not be available!
32900             ***********************************************" >&5
32901printf "%s\n" "$as_me: WARNING:
32902             ***********************************************
32903             Neither HAL nor udev backend will be enabled.
32904             Input device hotplugging will not be available!
32905             ***********************************************" >&2;}
32906fi
32907
32908ac_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"
32909
32910cat >confcache <<\_ACEOF
32911# This file is a shell script that caches the results of configure
32912# tests run on this system so they can be shared between configure
32913# scripts and configure runs, see configure's option --config-cache.
32914# It is not useful on other systems.  If it contains results you don't
32915# want to keep, you may remove or edit it.
32916#
32917# config.status only pays attention to the cache file if you give it
32918# the --recheck option to rerun configure.
32919#
32920# `ac_cv_env_foo' variables (set or unset) will be overridden when
32921# loading this file, other *unset* `ac_cv_foo' will be assigned the
32922# following values.
32923
32924_ACEOF
32925
32926# The following way of writing the cache mishandles newlines in values,
32927# but we know of no workaround that is simple, portable, and efficient.
32928# So, we kill variables containing newlines.
32929# Ultrix sh set writes to stderr and can't be redirected directly,
32930# and sets the high bit in the cache file unless we assign to the vars.
32931(
32932  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32933    eval ac_val=\$$ac_var
32934    case $ac_val in #(
32935    *${as_nl}*)
32936      case $ac_var in #(
32937      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
32938printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
32939      esac
32940      case $ac_var in #(
32941      _ | IFS | as_nl) ;; #(
32942      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
32943      *) { eval $ac_var=; unset $ac_var;} ;;
32944      esac ;;
32945    esac
32946  done
32947
32948  (set) 2>&1 |
32949    case $as_nl`(ac_space=' '; set) 2>&1` in #(
32950    *${as_nl}ac_space=\ *)
32951      # `set' does not quote correctly, so add quotes: double-quote
32952      # substitution turns \\\\ into \\, and sed turns \\ into \.
32953      sed -n \
32954	"s/'/'\\\\''/g;
32955	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32956      ;; #(
32957    *)
32958      # `set' quotes correctly as required by POSIX, so do not add quotes.
32959      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32960      ;;
32961    esac |
32962    sort
32963) |
32964  sed '
32965     /^ac_cv_env_/b end
32966     t clear
32967     :clear
32968     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
32969     t end
32970     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32971     :end' >>confcache
32972if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
32973  if test -w "$cache_file"; then
32974    if test "x$cache_file" != "x/dev/null"; then
32975      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
32976printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
32977      if test ! -f "$cache_file" || test -h "$cache_file"; then
32978	cat confcache >"$cache_file"
32979      else
32980        case $cache_file in #(
32981        */* | ?:*)
32982	  mv -f confcache "$cache_file"$$ &&
32983	  mv -f "$cache_file"$$ "$cache_file" ;; #(
32984        *)
32985	  mv -f confcache "$cache_file" ;;
32986	esac
32987      fi
32988    fi
32989  else
32990    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
32991printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
32992  fi
32993fi
32994rm -f confcache
32995
32996test "x$prefix" = xNONE && prefix=$ac_default_prefix
32997# Let make expand exec_prefix.
32998test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32999
33000DEFS=-DHAVE_CONFIG_H
33001
33002ac_libobjs=
33003ac_ltlibobjs=
33004U=
33005for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
33006  # 1. Remove the extension, and $U if already installed.
33007  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
33008  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
33009  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
33010  #    will be set to the directory where LIBOBJS objects are built.
33011  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
33012  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
33013done
33014LIBOBJS=$ac_libobjs
33015
33016LTLIBOBJS=$ac_ltlibobjs
33017
33018
33019{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
33020printf %s "checking that generated files are newer than configure... " >&6; }
33021   if test -n "$am_sleep_pid"; then
33022     # Hide warnings about reused PIDs.
33023     wait $am_sleep_pid 2>/dev/null
33024   fi
33025   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
33026printf "%s\n" "done" >&6; }
33027 if test -n "$EXEEXT"; then
33028  am__EXEEXT_TRUE=
33029  am__EXEEXT_FALSE='#'
33030else
33031  am__EXEEXT_TRUE='#'
33032  am__EXEEXT_FALSE=
33033fi
33034
33035if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
33036  as_fn_error $? "conditional \"AMDEP\" was never defined.
33037Usually this means the macro was only invoked conditionally." "$LINENO" 5
33038fi
33039if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
33040  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
33041Usually this means the macro was only invoked conditionally." "$LINENO" 5
33042fi
33043if test -z "${HAVE_DOT_TRUE}" && test -z "${HAVE_DOT_FALSE}"; then
33044  as_fn_error $? "conditional \"HAVE_DOT\" was never defined.
33045Usually this means the macro was only invoked conditionally." "$LINENO" 5
33046fi
33047if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then
33048  as_fn_error $? "conditional \"HAVE_DOXYGEN\" was never defined.
33049Usually this means the macro was only invoked conditionally." "$LINENO" 5
33050fi
33051if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then
33052  as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined.
33053Usually this means the macro was only invoked conditionally." "$LINENO" 5
33054fi
33055if test -z "${ENABLE_DOCS_TRUE}" && test -z "${ENABLE_DOCS_FALSE}"; then
33056  as_fn_error $? "conditional \"ENABLE_DOCS\" was never defined.
33057Usually this means the macro was only invoked conditionally." "$LINENO" 5
33058fi
33059if test -z "${ENABLE_DEVEL_DOCS_TRUE}" && test -z "${ENABLE_DEVEL_DOCS_FALSE}"; then
33060  as_fn_error $? "conditional \"ENABLE_DEVEL_DOCS\" was never defined.
33061Usually this means the macro was only invoked conditionally." "$LINENO" 5
33062fi
33063if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then
33064  as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined.
33065Usually this means the macro was only invoked conditionally." "$LINENO" 5
33066fi
33067if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
33068  as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined.
33069Usually this means the macro was only invoked conditionally." "$LINENO" 5
33070fi
33071if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then
33072  as_fn_error $? "conditional \"HAVE_FOP\" was never defined.
33073Usually this means the macro was only invoked conditionally." "$LINENO" 5
33074fi
33075if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then
33076  as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined.
33077Usually this means the macro was only invoked conditionally." "$LINENO" 5
33078fi
33079if test -z "${ENABLE_UNIT_TESTS_TRUE}" && test -z "${ENABLE_UNIT_TESTS_FALSE}"; then
33080  as_fn_error $? "conditional \"ENABLE_UNIT_TESTS\" was never defined.
33081Usually this means the macro was only invoked conditionally." "$LINENO" 5
33082fi
33083if test -z "${HAVE_LD_WRAP_TRUE}" && test -z "${HAVE_LD_WRAP_FALSE}"; then
33084  as_fn_error $? "conditional \"HAVE_LD_WRAP\" was never defined.
33085Usually this means the macro was only invoked conditionally." "$LINENO" 5
33086fi
33087if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
33088  as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
33089Usually this means the macro was only invoked conditionally." "$LINENO" 5
33090fi
33091if test -z "${XSERVER_DTRACE_TRUE}" && test -z "${XSERVER_DTRACE_FALSE}"; then
33092  as_fn_error $? "conditional \"XSERVER_DTRACE\" was never defined.
33093Usually this means the macro was only invoked conditionally." "$LINENO" 5
33094fi
33095if test -z "${SPECIAL_DTRACE_OBJECTS_TRUE}" && test -z "${SPECIAL_DTRACE_OBJECTS_FALSE}"; then
33096  as_fn_error $? "conditional \"SPECIAL_DTRACE_OBJECTS\" was never defined.
33097Usually this means the macro was only invoked conditionally." "$LINENO" 5
33098fi
33099
33100if test -z "${POLL_TRUE}" && test -z "${POLL_FALSE}"; then
33101  as_fn_error $? "conditional \"POLL\" was never defined.
33102Usually this means the macro was only invoked conditionally." "$LINENO" 5
33103fi
33104if test -z "${AGP_TRUE}" && test -z "${AGP_FALSE}"; then
33105  as_fn_error $? "conditional \"AGP\" was never defined.
33106Usually this means the macro was only invoked conditionally." "$LINENO" 5
33107fi
33108if test -z "${FBDEVHW_TRUE}" && test -z "${FBDEVHW_FALSE}"; then
33109  as_fn_error $? "conditional \"FBDEVHW\" was never defined.
33110Usually this means the macro was only invoked conditionally." "$LINENO" 5
33111fi
33112if test -z "${FREEBSD_KLDLOAD_TRUE}" && test -z "${FREEBSD_KLDLOAD_FALSE}"; then
33113  as_fn_error $? "conditional \"FREEBSD_KLDLOAD\" was never defined.
33114Usually this means the macro was only invoked conditionally." "$LINENO" 5
33115fi
33116if test -z "${ALPHA_VIDEO_TRUE}" && test -z "${ALPHA_VIDEO_FALSE}"; then
33117  as_fn_error $? "conditional \"ALPHA_VIDEO\" was never defined.
33118Usually this means the macro was only invoked conditionally." "$LINENO" 5
33119fi
33120if test -z "${ARM_VIDEO_TRUE}" && test -z "${ARM_VIDEO_FALSE}"; then
33121  as_fn_error $? "conditional \"ARM_VIDEO\" was never defined.
33122Usually this means the macro was only invoked conditionally." "$LINENO" 5
33123fi
33124if test -z "${I386_VIDEO_TRUE}" && test -z "${I386_VIDEO_FALSE}"; then
33125  as_fn_error $? "conditional \"I386_VIDEO\" was never defined.
33126Usually this means the macro was only invoked conditionally." "$LINENO" 5
33127fi
33128if test -z "${PPC_VIDEO_TRUE}" && test -z "${PPC_VIDEO_FALSE}"; then
33129  as_fn_error $? "conditional \"PPC_VIDEO\" was never defined.
33130Usually this means the macro was only invoked conditionally." "$LINENO" 5
33131fi
33132if test -z "${SPARC64_VIDEO_TRUE}" && test -z "${SPARC64_VIDEO_FALSE}"; then
33133  as_fn_error $? "conditional \"SPARC64_VIDEO\" was never defined.
33134Usually this means the macro was only invoked conditionally." "$LINENO" 5
33135fi
33136if test -z "${INSTALL_SETUID_TRUE}" && test -z "${INSTALL_SETUID_FALSE}"; then
33137  as_fn_error $? "conditional \"INSTALL_SETUID\" was never defined.
33138Usually this means the macro was only invoked conditionally." "$LINENO" 5
33139fi
33140if test -z "${SECURE_RPC_TRUE}" && test -z "${SECURE_RPC_FALSE}"; then
33141  as_fn_error $? "conditional \"SECURE_RPC\" was never defined.
33142Usually this means the macro was only invoked conditionally." "$LINENO" 5
33143fi
33144if test -z "${INT10_VM86_TRUE}" && test -z "${INT10_VM86_FALSE}"; then
33145  as_fn_error $? "conditional \"INT10_VM86\" was never defined.
33146Usually this means the macro was only invoked conditionally." "$LINENO" 5
33147fi
33148if test -z "${INT10_X86EMU_TRUE}" && test -z "${INT10_X86EMU_FALSE}"; then
33149  as_fn_error $? "conditional \"INT10_X86EMU\" was never defined.
33150Usually this means the macro was only invoked conditionally." "$LINENO" 5
33151fi
33152if test -z "${INT10_STUB_TRUE}" && test -z "${INT10_STUB_FALSE}"; then
33153  as_fn_error $? "conditional \"INT10_STUB\" was never defined.
33154Usually this means the macro was only invoked conditionally." "$LINENO" 5
33155fi
33156if test -z "${HAVE_SYSTEMD_DAEMON_TRUE}" && test -z "${HAVE_SYSTEMD_DAEMON_FALSE}"; then
33157  as_fn_error $? "conditional \"HAVE_SYSTEMD_DAEMON\" was never defined.
33158Usually this means the macro was only invoked conditionally." "$LINENO" 5
33159fi
33160if test -z "${CONFIG_UDEV_TRUE}" && test -z "${CONFIG_UDEV_FALSE}"; then
33161  as_fn_error $? "conditional \"CONFIG_UDEV\" was never defined.
33162Usually this means the macro was only invoked conditionally." "$LINENO" 5
33163fi
33164if test -z "${CONFIG_UDEV_KMS_TRUE}" && test -z "${CONFIG_UDEV_KMS_FALSE}"; then
33165  as_fn_error $? "conditional \"CONFIG_UDEV_KMS\" was never defined.
33166Usually this means the macro was only invoked conditionally." "$LINENO" 5
33167fi
33168if test -z "${HAVE_DBUS_TRUE}" && test -z "${HAVE_DBUS_FALSE}"; then
33169  as_fn_error $? "conditional \"HAVE_DBUS\" was never defined.
33170Usually this means the macro was only invoked conditionally." "$LINENO" 5
33171fi
33172if test -z "${CONFIG_HAL_TRUE}" && test -z "${CONFIG_HAL_FALSE}"; then
33173  as_fn_error $? "conditional \"CONFIG_HAL\" was never defined.
33174Usually this means the macro was only invoked conditionally." "$LINENO" 5
33175fi
33176if test -z "${SYSTEMD_LOGIND_TRUE}" && test -z "${SYSTEMD_LOGIND_FALSE}"; then
33177  as_fn_error $? "conditional \"SYSTEMD_LOGIND\" was never defined.
33178Usually this means the macro was only invoked conditionally." "$LINENO" 5
33179fi
33180if test -z "${SUID_WRAPPER_TRUE}" && test -z "${SUID_WRAPPER_FALSE}"; then
33181  as_fn_error $? "conditional \"SUID_WRAPPER\" was never defined.
33182Usually this means the macro was only invoked conditionally." "$LINENO" 5
33183fi
33184if test -z "${NEED_DBUS_TRUE}" && test -z "${NEED_DBUS_FALSE}"; then
33185  as_fn_error $? "conditional \"NEED_DBUS\" was never defined.
33186Usually this means the macro was only invoked conditionally." "$LINENO" 5
33187fi
33188if test -z "${CONFIG_WSCONS_TRUE}" && test -z "${CONFIG_WSCONS_FALSE}"; then
33189  as_fn_error $? "conditional \"CONFIG_WSCONS\" was never defined.
33190Usually this means the macro was only invoked conditionally." "$LINENO" 5
33191fi
33192if test -z "${XV_TRUE}" && test -z "${XV_FALSE}"; then
33193  as_fn_error $? "conditional \"XV\" was never defined.
33194Usually this means the macro was only invoked conditionally." "$LINENO" 5
33195fi
33196if test -z "${XVMC_TRUE}" && test -z "${XVMC_FALSE}"; then
33197  as_fn_error $? "conditional \"XVMC\" was never defined.
33198Usually this means the macro was only invoked conditionally." "$LINENO" 5
33199fi
33200if test -z "${COMPOSITE_TRUE}" && test -z "${COMPOSITE_FALSE}"; then
33201  as_fn_error $? "conditional \"COMPOSITE\" was never defined.
33202Usually this means the macro was only invoked conditionally." "$LINENO" 5
33203fi
33204if test -z "${MITSHM_TRUE}" && test -z "${MITSHM_FALSE}"; then
33205  as_fn_error $? "conditional \"MITSHM\" was never defined.
33206Usually this means the macro was only invoked conditionally." "$LINENO" 5
33207fi
33208if test -z "${RECORD_TRUE}" && test -z "${RECORD_FALSE}"; then
33209  as_fn_error $? "conditional \"RECORD\" was never defined.
33210Usually this means the macro was only invoked conditionally." "$LINENO" 5
33211fi
33212if test -z "${SCREENSAVER_TRUE}" && test -z "${SCREENSAVER_FALSE}"; then
33213  as_fn_error $? "conditional \"SCREENSAVER\" was never defined.
33214Usually this means the macro was only invoked conditionally." "$LINENO" 5
33215fi
33216if test -z "${RES_TRUE}" && test -z "${RES_FALSE}"; then
33217  as_fn_error $? "conditional \"RES\" was never defined.
33218Usually this means the macro was only invoked conditionally." "$LINENO" 5
33219fi
33220if test -z "${CLIENTIDS_TRUE}" && test -z "${CLIENTIDS_FALSE}"; then
33221  as_fn_error $? "conditional \"CLIENTIDS\" was never defined.
33222Usually this means the macro was only invoked conditionally." "$LINENO" 5
33223fi
33224if test -z "${DRI_TRUE}" && test -z "${DRI_FALSE}"; then
33225  as_fn_error $? "conditional \"DRI\" was never defined.
33226Usually this means the macro was only invoked conditionally." "$LINENO" 5
33227fi
33228if test -z "${DRI2_TRUE}" && test -z "${DRI2_FALSE}"; then
33229  as_fn_error $? "conditional \"DRI2\" was never defined.
33230Usually this means the macro was only invoked conditionally." "$LINENO" 5
33231fi
33232if test -z "${BUSFAULT_TRUE}" && test -z "${BUSFAULT_FALSE}"; then
33233  as_fn_error $? "conditional \"BUSFAULT\" was never defined.
33234Usually this means the macro was only invoked conditionally." "$LINENO" 5
33235fi
33236if test -z "${XSHMFENCE_TRUE}" && test -z "${XSHMFENCE_FALSE}"; then
33237  as_fn_error $? "conditional \"XSHMFENCE\" was never defined.
33238Usually this means the macro was only invoked conditionally." "$LINENO" 5
33239fi
33240if test -z "${DRI3_TRUE}" && test -z "${DRI3_FALSE}"; then
33241  as_fn_error $? "conditional \"DRI3\" was never defined.
33242Usually this means the macro was only invoked conditionally." "$LINENO" 5
33243fi
33244if test -z "${GLX_TRUE}" && test -z "${GLX_FALSE}"; then
33245  as_fn_error $? "conditional \"GLX\" was never defined.
33246Usually this means the macro was only invoked conditionally." "$LINENO" 5
33247fi
33248if test -z "${HASHTABLE_TRUE}" && test -z "${HASHTABLE_FALSE}"; then
33249  as_fn_error $? "conditional \"HASHTABLE\" was never defined.
33250Usually this means the macro was only invoked conditionally." "$LINENO" 5
33251fi
33252if test -z "${PRESENT_TRUE}" && test -z "${PRESENT_FALSE}"; then
33253  as_fn_error $? "conditional \"PRESENT\" was never defined.
33254Usually this means the macro was only invoked conditionally." "$LINENO" 5
33255fi
33256if test -z "${XINERAMA_TRUE}" && test -z "${XINERAMA_FALSE}"; then
33257  as_fn_error $? "conditional \"XINERAMA\" was never defined.
33258Usually this means the macro was only invoked conditionally." "$LINENO" 5
33259fi
33260if test -z "${XACE_TRUE}" && test -z "${XACE_FALSE}"; then
33261  as_fn_error $? "conditional \"XACE\" was never defined.
33262Usually this means the macro was only invoked conditionally." "$LINENO" 5
33263fi
33264if test -z "${XSELINUX_TRUE}" && test -z "${XSELINUX_FALSE}"; then
33265  as_fn_error $? "conditional \"XSELINUX\" was never defined.
33266Usually this means the macro was only invoked conditionally." "$LINENO" 5
33267fi
33268if test -z "${XCSECURITY_TRUE}" && test -z "${XCSECURITY_FALSE}"; then
33269  as_fn_error $? "conditional \"XCSECURITY\" was never defined.
33270Usually this means the macro was only invoked conditionally." "$LINENO" 5
33271fi
33272if test -z "${DBE_TRUE}" && test -z "${DBE_FALSE}"; then
33273  as_fn_error $? "conditional \"DBE\" was never defined.
33274Usually this means the macro was only invoked conditionally." "$LINENO" 5
33275fi
33276if test -z "${XF86BIGFONT_TRUE}" && test -z "${XF86BIGFONT_FALSE}"; then
33277  as_fn_error $? "conditional \"XF86BIGFONT\" was never defined.
33278Usually this means the macro was only invoked conditionally." "$LINENO" 5
33279fi
33280if test -z "${DPMSExtension_TRUE}" && test -z "${DPMSExtension_FALSE}"; then
33281  as_fn_error $? "conditional \"DPMSExtension\" was never defined.
33282Usually this means the macro was only invoked conditionally." "$LINENO" 5
33283fi
33284if test -z "${XF86UTILS_TRUE}" && test -z "${XF86UTILS_FALSE}"; then
33285  as_fn_error $? "conditional \"XF86UTILS\" was never defined.
33286Usually this means the macro was only invoked conditionally." "$LINENO" 5
33287fi
33288if test -z "${VGAHW_TRUE}" && test -z "${VGAHW_FALSE}"; then
33289  as_fn_error $? "conditional \"VGAHW\" was never defined.
33290Usually this means the macro was only invoked conditionally." "$LINENO" 5
33291fi
33292if test -z "${INT10MODULE_TRUE}" && test -z "${INT10MODULE_FALSE}"; then
33293  as_fn_error $? "conditional \"INT10MODULE\" was never defined.
33294Usually this means the macro was only invoked conditionally." "$LINENO" 5
33295fi
33296if test -z "${XDMCP_TRUE}" && test -z "${XDMCP_FALSE}"; then
33297  as_fn_error $? "conditional \"XDMCP\" was never defined.
33298Usually this means the macro was only invoked conditionally." "$LINENO" 5
33299fi
33300if test -z "${XDMAUTH_TRUE}" && test -z "${XDMAUTH_FALSE}"; then
33301  as_fn_error $? "conditional \"XDMAUTH\" was never defined.
33302Usually this means the macro was only invoked conditionally." "$LINENO" 5
33303fi
33304if test -z "${XF86VIDMODE_TRUE}" && test -z "${XF86VIDMODE_FALSE}"; then
33305  as_fn_error $? "conditional \"XF86VIDMODE\" was never defined.
33306Usually this means the macro was only invoked conditionally." "$LINENO" 5
33307fi
33308if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then
33309  as_fn_error $? "conditional \"DEBUG\" was never defined.
33310Usually this means the macro was only invoked conditionally." "$LINENO" 5
33311fi
33312if test -z "${HAVE_LIBUNWIND_TRUE}" && test -z "${HAVE_LIBUNWIND_FALSE}"; then
33313  as_fn_error $? "conditional \"HAVE_LIBUNWIND\" was never defined.
33314Usually this means the macro was only invoked conditionally." "$LINENO" 5
33315fi
33316if test -z "${CYGWIN_TRUE}" && test -z "${CYGWIN_FALSE}"; then
33317  as_fn_error $? "conditional \"CYGWIN\" was never defined.
33318Usually this means the macro was only invoked conditionally." "$LINENO" 5
33319fi
33320if test -z "${NO_UNDEFINED_TRUE}" && test -z "${NO_UNDEFINED_FALSE}"; then
33321  as_fn_error $? "conditional \"NO_UNDEFINED\" was never defined.
33322Usually this means the macro was only invoked conditionally." "$LINENO" 5
33323fi
33324if test -z "${XVFB_TRUE}" && test -z "${XVFB_FALSE}"; then
33325  as_fn_error $? "conditional \"XVFB\" was never defined.
33326Usually this means the macro was only invoked conditionally." "$LINENO" 5
33327fi
33328if test -z "${XNEST_TRUE}" && test -z "${XNEST_FALSE}"; then
33329  as_fn_error $? "conditional \"XNEST\" was never defined.
33330Usually this means the macro was only invoked conditionally." "$LINENO" 5
33331fi
33332if test -z "${XORG_TRUE}" && test -z "${XORG_FALSE}"; then
33333  as_fn_error $? "conditional \"XORG\" was never defined.
33334Usually this means the macro was only invoked conditionally." "$LINENO" 5
33335fi
33336if test -z "${XORG_BUS_PCI_TRUE}" && test -z "${XORG_BUS_PCI_FALSE}"; then
33337  as_fn_error $? "conditional \"XORG_BUS_PCI\" was never defined.
33338Usually this means the macro was only invoked conditionally." "$LINENO" 5
33339fi
33340if test -z "${XORG_BUS_BSDPCI_TRUE}" && test -z "${XORG_BUS_BSDPCI_FALSE}"; then
33341  as_fn_error $? "conditional \"XORG_BUS_BSDPCI\" was never defined.
33342Usually this means the macro was only invoked conditionally." "$LINENO" 5
33343fi
33344if test -z "${XORG_BUS_SPARC_TRUE}" && test -z "${XORG_BUS_SPARC_FALSE}"; then
33345  as_fn_error $? "conditional \"XORG_BUS_SPARC\" was never defined.
33346Usually this means the macro was only invoked conditionally." "$LINENO" 5
33347fi
33348if test -z "${LNXACPI_TRUE}" && test -z "${LNXACPI_FALSE}"; then
33349  as_fn_error $? "conditional \"LNXACPI\" was never defined.
33350Usually this means the macro was only invoked conditionally." "$LINENO" 5
33351fi
33352if test -z "${LNXAPM_TRUE}" && test -z "${LNXAPM_FALSE}"; then
33353  as_fn_error $? "conditional \"LNXAPM\" was never defined.
33354Usually this means the macro was only invoked conditionally." "$LINENO" 5
33355fi
33356if test -z "${SOLARIS_VT_TRUE}" && test -z "${SOLARIS_VT_FALSE}"; then
33357  as_fn_error $? "conditional \"SOLARIS_VT\" was never defined.
33358Usually this means the macro was only invoked conditionally." "$LINENO" 5
33359fi
33360if test -z "${DGA_TRUE}" && test -z "${DGA_FALSE}"; then
33361  as_fn_error $? "conditional \"DGA\" was never defined.
33362Usually this means the macro was only invoked conditionally." "$LINENO" 5
33363fi
33364if test -z "${XORG_BUS_PLATFORM_TRUE}" && test -z "${XORG_BUS_PLATFORM_FALSE}"; then
33365  as_fn_error $? "conditional \"XORG_BUS_PLATFORM\" was never defined.
33366Usually this means the macro was only invoked conditionally." "$LINENO" 5
33367fi
33368if test -z "${XORG_DRIVER_MODESETTING_TRUE}" && test -z "${XORG_DRIVER_MODESETTING_FALSE}"; then
33369  as_fn_error $? "conditional \"XORG_DRIVER_MODESETTING\" was never defined.
33370Usually this means the macro was only invoked conditionally." "$LINENO" 5
33371fi
33372if test -z "${XORG_DRIVER_INPUT_INPUTTEST_TRUE}" && test -z "${XORG_DRIVER_INPUT_INPUTTEST_FALSE}"; then
33373  as_fn_error $? "conditional \"XORG_DRIVER_INPUT_INPUTTEST\" was never defined.
33374Usually this means the macro was only invoked conditionally." "$LINENO" 5
33375fi
33376if test -z "${GLAMOR_TRUE}" && test -z "${GLAMOR_FALSE}"; then
33377  as_fn_error $? "conditional \"GLAMOR\" was never defined.
33378Usually this means the macro was only invoked conditionally." "$LINENO" 5
33379fi
33380if test -z "${GLAMOR_EGL_TRUE}" && test -z "${GLAMOR_EGL_FALSE}"; then
33381  as_fn_error $? "conditional \"GLAMOR_EGL\" was never defined.
33382Usually this means the macro was only invoked conditionally." "$LINENO" 5
33383fi
33384if test -z "${XWIN_TRUE}" && test -z "${XWIN_FALSE}"; then
33385  as_fn_error $? "conditional \"XWIN\" was never defined.
33386Usually this means the macro was only invoked conditionally." "$LINENO" 5
33387fi
33388if test -z "${XWIN_GLX_WINDOWS_TRUE}" && test -z "${XWIN_GLX_WINDOWS_FALSE}"; then
33389  as_fn_error $? "conditional \"XWIN_GLX_WINDOWS\" was never defined.
33390Usually this means the macro was only invoked conditionally." "$LINENO" 5
33391fi
33392if test -z "${XWIN_WINDOWS_DRI_TRUE}" && test -z "${XWIN_WINDOWS_DRI_FALSE}"; then
33393  as_fn_error $? "conditional \"XWIN_WINDOWS_DRI\" was never defined.
33394Usually this means the macro was only invoked conditionally." "$LINENO" 5
33395fi
33396if test -z "${PSEUDORAMIX_TRUE}" && test -z "${PSEUDORAMIX_FALSE}"; then
33397  as_fn_error $? "conditional \"PSEUDORAMIX\" was never defined.
33398Usually this means the macro was only invoked conditionally." "$LINENO" 5
33399fi
33400if test -z "${am__fastdepOBJC_TRUE}" && test -z "${am__fastdepOBJC_FALSE}"; then
33401  as_fn_error $? "conditional \"am__fastdepOBJC\" was never defined.
33402Usually this means the macro was only invoked conditionally." "$LINENO" 5
33403fi
33404if test -z "${XQUARTZ_TRUE}" && test -z "${XQUARTZ_FALSE}"; then
33405  as_fn_error $? "conditional \"XQUARTZ\" was never defined.
33406Usually this means the macro was only invoked conditionally." "$LINENO" 5
33407fi
33408if test -z "${XQUARTZ_SPARKLE_TRUE}" && test -z "${XQUARTZ_SPARKLE_FALSE}"; then
33409  as_fn_error $? "conditional \"XQUARTZ_SPARKLE\" was never defined.
33410Usually this means the macro was only invoked conditionally." "$LINENO" 5
33411fi
33412if test -z "${STANDALONE_XPBPROXY_TRUE}" && test -z "${STANDALONE_XPBPROXY_FALSE}"; then
33413  as_fn_error $? "conditional \"STANDALONE_XPBPROXY\" was never defined.
33414Usually this means the macro was only invoked conditionally." "$LINENO" 5
33415fi
33416if test -z "${KDRIVE_TRUE}" && test -z "${KDRIVE_FALSE}"; then
33417  as_fn_error $? "conditional \"KDRIVE\" was never defined.
33418Usually this means the macro was only invoked conditionally." "$LINENO" 5
33419fi
33420if test -z "${XEPHYR_TRUE}" && test -z "${XEPHYR_FALSE}"; then
33421  as_fn_error $? "conditional \"XEPHYR\" was never defined.
33422Usually this means the macro was only invoked conditionally." "$LINENO" 5
33423fi
33424
33425: "${CONFIG_STATUS=./config.status}"
33426ac_write_fail=0
33427ac_clean_files_save=$ac_clean_files
33428ac_clean_files="$ac_clean_files $CONFIG_STATUS"
33429{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
33430printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
33431as_write_fail=0
33432cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
33433#! $SHELL
33434# Generated by $as_me.
33435# Run this file to recreate the current configuration.
33436# Compiler output produced by configure, useful for debugging
33437# configure, is in config.log if it exists.
33438
33439debug=false
33440ac_cs_recheck=false
33441ac_cs_silent=false
33442
33443SHELL=\${CONFIG_SHELL-$SHELL}
33444export SHELL
33445_ASEOF
33446cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
33447## -------------------- ##
33448## M4sh Initialization. ##
33449## -------------------- ##
33450
33451# Be more Bourne compatible
33452DUALCASE=1; export DUALCASE # for MKS sh
33453as_nop=:
33454if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
33455then :
33456  emulate sh
33457  NULLCMD=:
33458  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
33459  # is contrary to our usage.  Disable this feature.
33460  alias -g '${1+"$@"}'='"$@"'
33461  setopt NO_GLOB_SUBST
33462else $as_nop
33463  case `(set -o) 2>/dev/null` in #(
33464  *posix*) :
33465    set -o posix ;; #(
33466  *) :
33467     ;;
33468esac
33469fi
33470
33471
33472
33473# Reset variables that may have inherited troublesome values from
33474# the environment.
33475
33476# IFS needs to be set, to space, tab, and newline, in precisely that order.
33477# (If _AS_PATH_WALK were called with IFS unset, it would have the
33478# side effect of setting IFS to empty, thus disabling word splitting.)
33479# Quoting is to prevent editors from complaining about space-tab.
33480as_nl='
33481'
33482export as_nl
33483IFS=" ""	$as_nl"
33484
33485PS1='$ '
33486PS2='> '
33487PS4='+ '
33488
33489# Ensure predictable behavior from utilities with locale-dependent output.
33490LC_ALL=C
33491export LC_ALL
33492LANGUAGE=C
33493export LANGUAGE
33494
33495# We cannot yet rely on "unset" to work, but we need these variables
33496# to be unset--not just set to an empty or harmless value--now, to
33497# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
33498# also avoids known problems related to "unset" and subshell syntax
33499# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
33500for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
33501do eval test \${$as_var+y} \
33502  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
33503done
33504
33505# Ensure that fds 0, 1, and 2 are open.
33506if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
33507if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
33508if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
33509
33510# The user is always right.
33511if ${PATH_SEPARATOR+false} :; then
33512  PATH_SEPARATOR=:
33513  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
33514    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
33515      PATH_SEPARATOR=';'
33516  }
33517fi
33518
33519
33520# Find who we are.  Look in the path if we contain no directory separator.
33521as_myself=
33522case $0 in #((
33523  *[\\/]* ) as_myself=$0 ;;
33524  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33525for as_dir in $PATH
33526do
33527  IFS=$as_save_IFS
33528  case $as_dir in #(((
33529    '') as_dir=./ ;;
33530    */) ;;
33531    *) as_dir=$as_dir/ ;;
33532  esac
33533    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
33534  done
33535IFS=$as_save_IFS
33536
33537     ;;
33538esac
33539# We did not find ourselves, most probably we were run as `sh COMMAND'
33540# in which case we are not to be found in the path.
33541if test "x$as_myself" = x; then
33542  as_myself=$0
33543fi
33544if test ! -f "$as_myself"; then
33545  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
33546  exit 1
33547fi
33548
33549
33550
33551# as_fn_error STATUS ERROR [LINENO LOG_FD]
33552# ----------------------------------------
33553# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
33554# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
33555# script with STATUS, using 1 if that was 0.
33556as_fn_error ()
33557{
33558  as_status=$1; test $as_status -eq 0 && as_status=1
33559  if test "$4"; then
33560    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
33561    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
33562  fi
33563  printf "%s\n" "$as_me: error: $2" >&2
33564  as_fn_exit $as_status
33565} # as_fn_error
33566
33567
33568
33569# as_fn_set_status STATUS
33570# -----------------------
33571# Set $? to STATUS, without forking.
33572as_fn_set_status ()
33573{
33574  return $1
33575} # as_fn_set_status
33576
33577# as_fn_exit STATUS
33578# -----------------
33579# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
33580as_fn_exit ()
33581{
33582  set +e
33583  as_fn_set_status $1
33584  exit $1
33585} # as_fn_exit
33586
33587# as_fn_unset VAR
33588# ---------------
33589# Portably unset VAR.
33590as_fn_unset ()
33591{
33592  { eval $1=; unset $1;}
33593}
33594as_unset=as_fn_unset
33595
33596# as_fn_append VAR VALUE
33597# ----------------------
33598# Append the text in VALUE to the end of the definition contained in VAR. Take
33599# advantage of any shell optimizations that allow amortized linear growth over
33600# repeated appends, instead of the typical quadratic growth present in naive
33601# implementations.
33602if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
33603then :
33604  eval 'as_fn_append ()
33605  {
33606    eval $1+=\$2
33607  }'
33608else $as_nop
33609  as_fn_append ()
33610  {
33611    eval $1=\$$1\$2
33612  }
33613fi # as_fn_append
33614
33615# as_fn_arith ARG...
33616# ------------------
33617# Perform arithmetic evaluation on the ARGs, and store the result in the
33618# global $as_val. Take advantage of shells that can avoid forks. The arguments
33619# must be portable across $(()) and expr.
33620if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
33621then :
33622  eval 'as_fn_arith ()
33623  {
33624    as_val=$(( $* ))
33625  }'
33626else $as_nop
33627  as_fn_arith ()
33628  {
33629    as_val=`expr "$@" || test $? -eq 1`
33630  }
33631fi # as_fn_arith
33632
33633
33634if expr a : '\(a\)' >/dev/null 2>&1 &&
33635   test "X`expr 00001 : '.*\(...\)'`" = X001; then
33636  as_expr=expr
33637else
33638  as_expr=false
33639fi
33640
33641if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33642  as_basename=basename
33643else
33644  as_basename=false
33645fi
33646
33647if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
33648  as_dirname=dirname
33649else
33650  as_dirname=false
33651fi
33652
33653as_me=`$as_basename -- "$0" ||
33654$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33655	 X"$0" : 'X\(//\)$' \| \
33656	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33657printf "%s\n" X/"$0" |
33658    sed '/^.*\/\([^/][^/]*\)\/*$/{
33659	    s//\1/
33660	    q
33661	  }
33662	  /^X\/\(\/\/\)$/{
33663	    s//\1/
33664	    q
33665	  }
33666	  /^X\/\(\/\).*/{
33667	    s//\1/
33668	    q
33669	  }
33670	  s/.*/./; q'`
33671
33672# Avoid depending upon Character Ranges.
33673as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33674as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33675as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33676as_cr_digits='0123456789'
33677as_cr_alnum=$as_cr_Letters$as_cr_digits
33678
33679
33680# Determine whether it's possible to make 'echo' print without a newline.
33681# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
33682# for compatibility with existing Makefiles.
33683ECHO_C= ECHO_N= ECHO_T=
33684case `echo -n x` in #(((((
33685-n*)
33686  case `echo 'xy\c'` in
33687  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
33688  xy)  ECHO_C='\c';;
33689  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
33690       ECHO_T='	';;
33691  esac;;
33692*)
33693  ECHO_N='-n';;
33694esac
33695
33696# For backward compatibility with old third-party macros, we provide
33697# the shell variables $as_echo and $as_echo_n.  New code should use
33698# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
33699as_echo='printf %s\n'
33700as_echo_n='printf %s'
33701
33702rm -f conf$$ conf$$.exe conf$$.file
33703if test -d conf$$.dir; then
33704  rm -f conf$$.dir/conf$$.file
33705else
33706  rm -f conf$$.dir
33707  mkdir conf$$.dir 2>/dev/null
33708fi
33709if (echo >conf$$.file) 2>/dev/null; then
33710  if ln -s conf$$.file conf$$ 2>/dev/null; then
33711    as_ln_s='ln -s'
33712    # ... but there are two gotchas:
33713    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33714    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33715    # In both cases, we have to default to `cp -pR'.
33716    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
33717      as_ln_s='cp -pR'
33718  elif ln conf$$.file conf$$ 2>/dev/null; then
33719    as_ln_s=ln
33720  else
33721    as_ln_s='cp -pR'
33722  fi
33723else
33724  as_ln_s='cp -pR'
33725fi
33726rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
33727rmdir conf$$.dir 2>/dev/null
33728
33729
33730# as_fn_mkdir_p
33731# -------------
33732# Create "$as_dir" as a directory, including parents if necessary.
33733as_fn_mkdir_p ()
33734{
33735
33736  case $as_dir in #(
33737  -*) as_dir=./$as_dir;;
33738  esac
33739  test -d "$as_dir" || eval $as_mkdir_p || {
33740    as_dirs=
33741    while :; do
33742      case $as_dir in #(
33743      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
33744      *) as_qdir=$as_dir;;
33745      esac
33746      as_dirs="'$as_qdir' $as_dirs"
33747      as_dir=`$as_dirname -- "$as_dir" ||
33748$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33749	 X"$as_dir" : 'X\(//\)[^/]' \| \
33750	 X"$as_dir" : 'X\(//\)$' \| \
33751	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33752printf "%s\n" X"$as_dir" |
33753    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33754	    s//\1/
33755	    q
33756	  }
33757	  /^X\(\/\/\)[^/].*/{
33758	    s//\1/
33759	    q
33760	  }
33761	  /^X\(\/\/\)$/{
33762	    s//\1/
33763	    q
33764	  }
33765	  /^X\(\/\).*/{
33766	    s//\1/
33767	    q
33768	  }
33769	  s/.*/./; q'`
33770      test -d "$as_dir" && break
33771    done
33772    test -z "$as_dirs" || eval "mkdir $as_dirs"
33773  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
33774
33775
33776} # as_fn_mkdir_p
33777if mkdir -p . 2>/dev/null; then
33778  as_mkdir_p='mkdir -p "$as_dir"'
33779else
33780  test -d ./-p && rmdir ./-p
33781  as_mkdir_p=false
33782fi
33783
33784
33785# as_fn_executable_p FILE
33786# -----------------------
33787# Test if FILE is an executable regular file.
33788as_fn_executable_p ()
33789{
33790  test -f "$1" && test -x "$1"
33791} # as_fn_executable_p
33792as_test_x='test -x'
33793as_executable_p=as_fn_executable_p
33794
33795# Sed expression to map a string onto a valid CPP name.
33796as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33797
33798# Sed expression to map a string onto a valid variable name.
33799as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33800
33801
33802exec 6>&1
33803## ----------------------------------- ##
33804## Main body of $CONFIG_STATUS script. ##
33805## ----------------------------------- ##
33806_ASEOF
33807test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
33808
33809cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33810# Save the log message, to keep $0 and so on meaningful, and to
33811# report actual input values of CONFIG_FILES etc. instead of their
33812# values after options handling.
33813ac_log="
33814This file was extended by xorg-server $as_me 21.1.9, which was
33815generated by GNU Autoconf 2.71.  Invocation command line was
33816
33817  CONFIG_FILES    = $CONFIG_FILES
33818  CONFIG_HEADERS  = $CONFIG_HEADERS
33819  CONFIG_LINKS    = $CONFIG_LINKS
33820  CONFIG_COMMANDS = $CONFIG_COMMANDS
33821  $ $0 $@
33822
33823on `(hostname || uname -n) 2>/dev/null | sed 1q`
33824"
33825
33826_ACEOF
33827
33828case $ac_config_files in *"
33829"*) set x $ac_config_files; shift; ac_config_files=$*;;
33830esac
33831
33832case $ac_config_headers in *"
33833"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
33834esac
33835
33836
33837cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33838# Files that config.status was made for.
33839config_files="$ac_config_files"
33840config_headers="$ac_config_headers"
33841config_commands="$ac_config_commands"
33842
33843_ACEOF
33844
33845cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33846ac_cs_usage="\
33847\`$as_me' instantiates files and other configuration actions
33848from templates according to the current configuration.  Unless the files
33849and actions are specified as TAGs, all are instantiated by default.
33850
33851Usage: $0 [OPTION]... [TAG]...
33852
33853  -h, --help       print this help, then exit
33854  -V, --version    print version number and configuration settings, then exit
33855      --config     print configuration, then exit
33856  -q, --quiet, --silent
33857                   do not print progress messages
33858  -d, --debug      don't remove temporary files
33859      --recheck    update $as_me by reconfiguring in the same conditions
33860      --file=FILE[:TEMPLATE]
33861                   instantiate the configuration file FILE
33862      --header=FILE[:TEMPLATE]
33863                   instantiate the configuration header FILE
33864
33865Configuration files:
33866$config_files
33867
33868Configuration headers:
33869$config_headers
33870
33871Configuration commands:
33872$config_commands
33873
33874Report bugs to <https://gitlab.freedesktop.org/xorg/xserver/issues>."
33875
33876_ACEOF
33877ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
33878ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
33879cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33880ac_cs_config='$ac_cs_config_escaped'
33881ac_cs_version="\\
33882xorg-server config.status 21.1.9
33883configured by $0, generated by GNU Autoconf 2.71,
33884  with options \\"\$ac_cs_config\\"
33885
33886Copyright (C) 2021 Free Software Foundation, Inc.
33887This config.status script is free software; the Free Software Foundation
33888gives unlimited permission to copy, distribute and modify it."
33889
33890ac_pwd='$ac_pwd'
33891srcdir='$srcdir'
33892INSTALL='$INSTALL'
33893MKDIR_P='$MKDIR_P'
33894AWK='$AWK'
33895test -n "\$AWK" || AWK=awk
33896_ACEOF
33897
33898cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33899# The default lists apply if the user does not specify any file.
33900ac_need_defaults=:
33901while test $# != 0
33902do
33903  case $1 in
33904  --*=?*)
33905    ac_option=`expr "X$1" : 'X\([^=]*\)='`
33906    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
33907    ac_shift=:
33908    ;;
33909  --*=)
33910    ac_option=`expr "X$1" : 'X\([^=]*\)='`
33911    ac_optarg=
33912    ac_shift=:
33913    ;;
33914  *)
33915    ac_option=$1
33916    ac_optarg=$2
33917    ac_shift=shift
33918    ;;
33919  esac
33920
33921  case $ac_option in
33922  # Handling of the options.
33923  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33924    ac_cs_recheck=: ;;
33925  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
33926    printf "%s\n" "$ac_cs_version"; exit ;;
33927  --config | --confi | --conf | --con | --co | --c )
33928    printf "%s\n" "$ac_cs_config"; exit ;;
33929  --debug | --debu | --deb | --de | --d | -d )
33930    debug=: ;;
33931  --file | --fil | --fi | --f )
33932    $ac_shift
33933    case $ac_optarg in
33934    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33935    '') as_fn_error $? "missing file argument" ;;
33936    esac
33937    as_fn_append CONFIG_FILES " '$ac_optarg'"
33938    ac_need_defaults=false;;
33939  --header | --heade | --head | --hea )
33940    $ac_shift
33941    case $ac_optarg in
33942    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33943    esac
33944    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
33945    ac_need_defaults=false;;
33946  --he | --h)
33947    # Conflict between --help and --header
33948    as_fn_error $? "ambiguous option: \`$1'
33949Try \`$0 --help' for more information.";;
33950  --help | --hel | -h )
33951    printf "%s\n" "$ac_cs_usage"; exit ;;
33952  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33953  | -silent | --silent | --silen | --sile | --sil | --si | --s)
33954    ac_cs_silent=: ;;
33955
33956  # This is an error.
33957  -*) as_fn_error $? "unrecognized option: \`$1'
33958Try \`$0 --help' for more information." ;;
33959
33960  *) as_fn_append ac_config_targets " $1"
33961     ac_need_defaults=false ;;
33962
33963  esac
33964  shift
33965done
33966
33967ac_configure_extra_args=
33968
33969if $ac_cs_silent; then
33970  exec 6>/dev/null
33971  ac_configure_extra_args="$ac_configure_extra_args --silent"
33972fi
33973
33974_ACEOF
33975cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33976if \$ac_cs_recheck; then
33977  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33978  shift
33979  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
33980  CONFIG_SHELL='$SHELL'
33981  export CONFIG_SHELL
33982  exec "\$@"
33983fi
33984
33985_ACEOF
33986cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33987exec 5>>config.log
33988{
33989  echo
33990  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33991## Running $as_me. ##
33992_ASBOX
33993  printf "%s\n" "$ac_log"
33994} >&5
33995
33996_ACEOF
33997cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33998#
33999# INIT-COMMANDS
34000#
34001AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
34002
34003
34004# The HP-UX ksh and POSIX shell print the target directory to stdout
34005# if CDPATH is set.
34006(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
34007
34008sed_quote_subst='$sed_quote_subst'
34009double_quote_subst='$double_quote_subst'
34010delay_variable_subst='$delay_variable_subst'
34011macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
34012macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
34013enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
34014AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
34015DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
34016OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
34017enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
34018pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
34019enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
34020shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
34021SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
34022ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
34023PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
34024host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
34025host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
34026host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
34027build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
34028build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
34029build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
34030SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
34031Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
34032GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
34033EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
34034FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
34035LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
34036NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
34037LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
34038max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
34039ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
34040exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
34041lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
34042lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
34043lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
34044lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
34045lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
34046reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
34047reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
34048FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
34049deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
34050file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
34051file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
34052want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
34053sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
34054AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
34055lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
34056AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
34057archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
34058STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
34059RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
34060old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
34061old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
34062old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
34063lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
34064CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
34065CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
34066compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
34067GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
34068lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
34069lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
34070lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
34071lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
34072lt_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"`'
34073lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
34074nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
34075lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
34076lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
34077objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
34078MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
34079lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
34080lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
34081lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
34082lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
34083lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
34084need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
34085MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
34086DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
34087NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
34088LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
34089OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
34090OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
34091libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
34092shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
34093extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
34094archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
34095enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
34096export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
34097whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
34098compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
34099old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
34100old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
34101archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
34102archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
34103module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
34104module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
34105with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
34106allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
34107no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
34108hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
34109hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
34110hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
34111hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
34112hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
34113hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
34114hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
34115inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
34116link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
34117always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
34118export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
34119exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
34120include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
34121prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
34122postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
34123file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
34124variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
34125need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
34126need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
34127version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
34128runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
34129shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
34130shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
34131libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
34132library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
34133soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
34134install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
34135postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
34136postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
34137finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
34138finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
34139hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
34140sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
34141configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
34142configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
34143hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
34144enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
34145enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
34146enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
34147old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
34148striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
34149
34150LTCC='$LTCC'
34151LTCFLAGS='$LTCFLAGS'
34152compiler='$compiler_DEFAULT'
34153
34154# A function that is used when there is no print builtin or printf.
34155func_fallback_echo ()
34156{
34157  eval 'cat <<_LTECHO_EOF
34158\$1
34159_LTECHO_EOF'
34160}
34161
34162# Quote evaled strings.
34163for var in AS \
34164DLLTOOL \
34165OBJDUMP \
34166SHELL \
34167ECHO \
34168PATH_SEPARATOR \
34169SED \
34170GREP \
34171EGREP \
34172FGREP \
34173LD \
34174NM \
34175LN_S \
34176lt_SP2NL \
34177lt_NL2SP \
34178reload_flag \
34179FILECMD \
34180deplibs_check_method \
34181file_magic_cmd \
34182file_magic_glob \
34183want_nocaseglob \
34184sharedlib_from_linklib_cmd \
34185AR \
34186archiver_list_spec \
34187STRIP \
34188RANLIB \
34189CC \
34190CFLAGS \
34191compiler \
34192lt_cv_sys_global_symbol_pipe \
34193lt_cv_sys_global_symbol_to_cdecl \
34194lt_cv_sys_global_symbol_to_import \
34195lt_cv_sys_global_symbol_to_c_name_address \
34196lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
34197lt_cv_nm_interface \
34198nm_file_list_spec \
34199lt_cv_truncate_bin \
34200lt_prog_compiler_no_builtin_flag \
34201lt_prog_compiler_pic \
34202lt_prog_compiler_wl \
34203lt_prog_compiler_static \
34204lt_cv_prog_compiler_c_o \
34205need_locks \
34206MANIFEST_TOOL \
34207DSYMUTIL \
34208NMEDIT \
34209LIPO \
34210OTOOL \
34211OTOOL64 \
34212shrext_cmds \
34213export_dynamic_flag_spec \
34214whole_archive_flag_spec \
34215compiler_needs_object \
34216with_gnu_ld \
34217allow_undefined_flag \
34218no_undefined_flag \
34219hardcode_libdir_flag_spec \
34220hardcode_libdir_separator \
34221exclude_expsyms \
34222include_expsyms \
34223file_list_spec \
34224variables_saved_for_relink \
34225libname_spec \
34226library_names_spec \
34227soname_spec \
34228install_override_mode \
34229finish_eval \
34230old_striplib \
34231striplib; do
34232    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
34233    *[\\\\\\\`\\"\\\$]*)
34234      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
34235      ;;
34236    *)
34237      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
34238      ;;
34239    esac
34240done
34241
34242# Double-quote double-evaled strings.
34243for var in reload_cmds \
34244old_postinstall_cmds \
34245old_postuninstall_cmds \
34246old_archive_cmds \
34247extract_expsyms_cmds \
34248old_archive_from_new_cmds \
34249old_archive_from_expsyms_cmds \
34250archive_cmds \
34251archive_expsym_cmds \
34252module_cmds \
34253module_expsym_cmds \
34254export_symbols_cmds \
34255prelink_cmds \
34256postlink_cmds \
34257postinstall_cmds \
34258postuninstall_cmds \
34259finish_cmds \
34260sys_lib_search_path_spec \
34261configure_time_dlsearch_path \
34262configure_time_lt_sys_library_path; do
34263    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
34264    *[\\\\\\\`\\"\\\$]*)
34265      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
34266      ;;
34267    *)
34268      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
34269      ;;
34270    esac
34271done
34272
34273ac_aux_dir='$ac_aux_dir'
34274
34275# See if we are running on zsh, and set the options that allow our
34276# commands through without removal of \ escapes INIT.
34277if test -n "\${ZSH_VERSION+set}"; then
34278   setopt NO_GLOB_SUBST
34279fi
34280
34281
34282    PACKAGE='$PACKAGE'
34283    VERSION='$VERSION'
34284    RM='$RM'
34285    ofile='$ofile'
34286
34287
34288
34289
34290_ACEOF
34291
34292cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34293
34294# Handling of arguments.
34295for ac_config_target in $ac_config_targets
34296do
34297  case $ac_config_target in
34298    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
34299    "include/do-not-use-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/do-not-use-config.h" ;;
34300    "include/xorg-server.h") CONFIG_HEADERS="$CONFIG_HEADERS include/xorg-server.h" ;;
34301    "include/dix-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/dix-config.h" ;;
34302    "include/xorg-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/xorg-config.h" ;;
34303    "include/xkb-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/xkb-config.h" ;;
34304    "include/xwin-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/xwin-config.h" ;;
34305    "include/version-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/version-config.h" ;;
34306    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
34307    "sdksyms") CONFIG_COMMANDS="$CONFIG_COMMANDS sdksyms" ;;
34308    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
34309    "glx/Makefile") CONFIG_FILES="$CONFIG_FILES glx/Makefile" ;;
34310    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
34311    "composite/Makefile") CONFIG_FILES="$CONFIG_FILES composite/Makefile" ;;
34312    "damageext/Makefile") CONFIG_FILES="$CONFIG_FILES damageext/Makefile" ;;
34313    "dbe/Makefile") CONFIG_FILES="$CONFIG_FILES dbe/Makefile" ;;
34314    "dix/Makefile") CONFIG_FILES="$CONFIG_FILES dix/Makefile" ;;
34315    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
34316    "doc/dtrace/Makefile") CONFIG_FILES="$CONFIG_FILES doc/dtrace/Makefile" ;;
34317    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
34318    "fb/Makefile") CONFIG_FILES="$CONFIG_FILES fb/Makefile" ;;
34319    "glamor/Makefile") CONFIG_FILES="$CONFIG_FILES glamor/Makefile" ;;
34320    "record/Makefile") CONFIG_FILES="$CONFIG_FILES record/Makefile" ;;
34321    "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
34322    "mi/Makefile") CONFIG_FILES="$CONFIG_FILES mi/Makefile" ;;
34323    "miext/Makefile") CONFIG_FILES="$CONFIG_FILES miext/Makefile" ;;
34324    "miext/sync/Makefile") CONFIG_FILES="$CONFIG_FILES miext/sync/Makefile" ;;
34325    "miext/damage/Makefile") CONFIG_FILES="$CONFIG_FILES miext/damage/Makefile" ;;
34326    "miext/shadow/Makefile") CONFIG_FILES="$CONFIG_FILES miext/shadow/Makefile" ;;
34327    "miext/rootless/Makefile") CONFIG_FILES="$CONFIG_FILES miext/rootless/Makefile" ;;
34328    "os/Makefile") CONFIG_FILES="$CONFIG_FILES os/Makefile" ;;
34329    "pseudoramiX/Makefile") CONFIG_FILES="$CONFIG_FILES pseudoramiX/Makefile" ;;
34330    "randr/Makefile") CONFIG_FILES="$CONFIG_FILES randr/Makefile" ;;
34331    "render/Makefile") CONFIG_FILES="$CONFIG_FILES render/Makefile" ;;
34332    "xkb/Makefile") CONFIG_FILES="$CONFIG_FILES xkb/Makefile" ;;
34333    "Xext/Makefile") CONFIG_FILES="$CONFIG_FILES Xext/Makefile" ;;
34334    "Xi/Makefile") CONFIG_FILES="$CONFIG_FILES Xi/Makefile" ;;
34335    "xfixes/Makefile") CONFIG_FILES="$CONFIG_FILES xfixes/Makefile" ;;
34336    "exa/Makefile") CONFIG_FILES="$CONFIG_FILES exa/Makefile" ;;
34337    "dri3/Makefile") CONFIG_FILES="$CONFIG_FILES dri3/Makefile" ;;
34338    "present/Makefile") CONFIG_FILES="$CONFIG_FILES present/Makefile" ;;
34339    "hw/Makefile") CONFIG_FILES="$CONFIG_FILES hw/Makefile" ;;
34340    "hw/xfree86/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/Makefile" ;;
34341    "hw/xfree86/Xorg.sh") CONFIG_FILES="$CONFIG_FILES hw/xfree86/Xorg.sh" ;;
34342    "hw/xfree86/common/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/common/Makefile" ;;
34343    "hw/xfree86/ddc/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/ddc/Makefile" ;;
34344    "hw/xfree86/dixmods/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/dixmods/Makefile" ;;
34345    "hw/xfree86/doc/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/doc/Makefile" ;;
34346    "hw/xfree86/dri/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/dri/Makefile" ;;
34347    "hw/xfree86/dri2/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/dri2/Makefile" ;;
34348    "hw/xfree86/dri2/pci_ids/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/dri2/pci_ids/Makefile" ;;
34349    "hw/xfree86/drivers/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/drivers/Makefile" ;;
34350    "hw/xfree86/drivers/inputtest/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/drivers/inputtest/Makefile" ;;
34351    "hw/xfree86/drivers/modesetting/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/drivers/modesetting/Makefile" ;;
34352    "hw/xfree86/exa/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/exa/Makefile" ;;
34353    "hw/xfree86/exa/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/exa/man/Makefile" ;;
34354    "hw/xfree86/fbdevhw/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/fbdevhw/Makefile" ;;
34355    "hw/xfree86/fbdevhw/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/fbdevhw/man/Makefile" ;;
34356    "hw/xfree86/glamor_egl/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/glamor_egl/Makefile" ;;
34357    "hw/xfree86/i2c/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/i2c/Makefile" ;;
34358    "hw/xfree86/int10/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/int10/Makefile" ;;
34359    "hw/xfree86/loader/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/loader/Makefile" ;;
34360    "hw/xfree86/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/man/Makefile" ;;
34361    "hw/xfree86/modes/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/modes/Makefile" ;;
34362    "hw/xfree86/os-support/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/Makefile" ;;
34363    "hw/xfree86/os-support/bsd/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/bsd/Makefile" ;;
34364    "hw/xfree86/os-support/bus/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/bus/Makefile" ;;
34365    "hw/xfree86/os-support/hurd/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/hurd/Makefile" ;;
34366    "hw/xfree86/os-support/misc/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/misc/Makefile" ;;
34367    "hw/xfree86/os-support/linux/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/linux/Makefile" ;;
34368    "hw/xfree86/os-support/solaris/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/solaris/Makefile" ;;
34369    "hw/xfree86/os-support/stub/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/stub/Makefile" ;;
34370    "hw/xfree86/parser/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/parser/Makefile" ;;
34371    "hw/xfree86/ramdac/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/ramdac/Makefile" ;;
34372    "hw/xfree86/shadowfb/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/shadowfb/Makefile" ;;
34373    "hw/xfree86/vgahw/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/vgahw/Makefile" ;;
34374    "hw/xfree86/x86emu/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/x86emu/Makefile" ;;
34375    "hw/xfree86/xkb/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/xkb/Makefile" ;;
34376    "hw/xfree86/utils/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/utils/Makefile" ;;
34377    "hw/xfree86/utils/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/utils/man/Makefile" ;;
34378    "hw/xfree86/utils/gtf/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/utils/gtf/Makefile" ;;
34379    "hw/vfb/Makefile") CONFIG_FILES="$CONFIG_FILES hw/vfb/Makefile" ;;
34380    "hw/vfb/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/vfb/man/Makefile" ;;
34381    "hw/xnest/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xnest/Makefile" ;;
34382    "hw/xnest/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xnest/man/Makefile" ;;
34383    "hw/xwin/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xwin/Makefile" ;;
34384    "hw/xwin/dri/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xwin/dri/Makefile" ;;
34385    "hw/xwin/glx/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xwin/glx/Makefile" ;;
34386    "hw/xwin/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xwin/man/Makefile" ;;
34387    "hw/xwin/winclipboard/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xwin/winclipboard/Makefile" ;;
34388    "hw/xquartz/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/Makefile" ;;
34389    "hw/xquartz/GL/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/GL/Makefile" ;;
34390    "hw/xquartz/bundle/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/bundle/Makefile" ;;
34391    "hw/xquartz/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/man/Makefile" ;;
34392    "hw/xquartz/mach-startup/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/mach-startup/Makefile" ;;
34393    "hw/xquartz/pbproxy/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/pbproxy/Makefile" ;;
34394    "hw/xquartz/xpr/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/xpr/Makefile" ;;
34395    "hw/kdrive/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/Makefile" ;;
34396    "hw/kdrive/ephyr/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/ephyr/Makefile" ;;
34397    "hw/kdrive/ephyr/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/ephyr/man/Makefile" ;;
34398    "hw/kdrive/src/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/src/Makefile" ;;
34399    "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
34400    "xserver.ent") CONFIG_FILES="$CONFIG_FILES xserver.ent" ;;
34401    "xorg-server.pc") CONFIG_FILES="$CONFIG_FILES xorg-server.pc" ;;
34402
34403  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
34404  esac
34405done
34406
34407
34408# If the user did not use the arguments to specify the items to instantiate,
34409# then the envvar interface is used.  Set only those that are not.
34410# We use the long form for the default assignment because of an extremely
34411# bizarre bug on SunOS 4.1.3.
34412if $ac_need_defaults; then
34413  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
34414  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
34415  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
34416fi
34417
34418# Have a temporary directory for convenience.  Make it in the build tree
34419# simply because there is no reason against having it here, and in addition,
34420# creating and moving files from /tmp can sometimes cause problems.
34421# Hook for its removal unless debugging.
34422# Note that there is a small window in which the directory will not be cleaned:
34423# after its creation but before its name has been assigned to `$tmp'.
34424$debug ||
34425{
34426  tmp= ac_tmp=
34427  trap 'exit_status=$?
34428  : "${ac_tmp:=$tmp}"
34429  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
34430' 0
34431  trap 'as_fn_exit 1' 1 2 13 15
34432}
34433# Create a (secure) tmp directory for tmp files.
34434
34435{
34436  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34437  test -d "$tmp"
34438}  ||
34439{
34440  tmp=./conf$$-$RANDOM
34441  (umask 077 && mkdir "$tmp")
34442} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
34443ac_tmp=$tmp
34444
34445# Set up the scripts for CONFIG_FILES section.
34446# No need to generate them if there are no CONFIG_FILES.
34447# This happens for instance with `./config.status config.h'.
34448if test -n "$CONFIG_FILES"; then
34449
34450
34451ac_cr=`echo X | tr X '\015'`
34452# On cygwin, bash can eat \r inside `` if the user requested igncr.
34453# But we know of no other shell where ac_cr would be empty at this
34454# point, so we can use a bashism as a fallback.
34455if test "x$ac_cr" = x; then
34456  eval ac_cr=\$\'\\r\'
34457fi
34458ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
34459if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
34460  ac_cs_awk_cr='\\r'
34461else
34462  ac_cs_awk_cr=$ac_cr
34463fi
34464
34465echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
34466_ACEOF
34467
34468
34469{
34470  echo "cat >conf$$subs.awk <<_ACEOF" &&
34471  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
34472  echo "_ACEOF"
34473} >conf$$subs.sh ||
34474  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
34475ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
34476ac_delim='%!_!# '
34477for ac_last_try in false false false false false :; do
34478  . ./conf$$subs.sh ||
34479    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
34480
34481  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
34482  if test $ac_delim_n = $ac_delim_num; then
34483    break
34484  elif $ac_last_try; then
34485    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
34486  else
34487    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34488  fi
34489done
34490rm -f conf$$subs.sh
34491
34492cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34493cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
34494_ACEOF
34495sed -n '
34496h
34497s/^/S["/; s/!.*/"]=/
34498p
34499g
34500s/^[^!]*!//
34501:repl
34502t repl
34503s/'"$ac_delim"'$//
34504t delim
34505:nl
34506h
34507s/\(.\{148\}\)..*/\1/
34508t more1
34509s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
34510p
34511n
34512b repl
34513:more1
34514s/["\\]/\\&/g; s/^/"/; s/$/"\\/
34515p
34516g
34517s/.\{148\}//
34518t nl
34519:delim
34520h
34521s/\(.\{148\}\)..*/\1/
34522t more2
34523s/["\\]/\\&/g; s/^/"/; s/$/"/
34524p
34525b
34526:more2
34527s/["\\]/\\&/g; s/^/"/; s/$/"\\/
34528p
34529g
34530s/.\{148\}//
34531t delim
34532' <conf$$subs.awk | sed '
34533/^[^""]/{
34534  N
34535  s/\n//
34536}
34537' >>$CONFIG_STATUS || ac_write_fail=1
34538rm -f conf$$subs.awk
34539cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34540_ACAWK
34541cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
34542  for (key in S) S_is_set[key] = 1
34543  FS = ""
34544
34545}
34546{
34547  line = $ 0
34548  nfields = split(line, field, "@")
34549  substed = 0
34550  len = length(field[1])
34551  for (i = 2; i < nfields; i++) {
34552    key = field[i]
34553    keylen = length(key)
34554    if (S_is_set[key]) {
34555      value = S[key]
34556      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
34557      len += length(value) + length(field[++i])
34558      substed = 1
34559    } else
34560      len += 1 + keylen
34561  }
34562
34563  print line
34564}
34565
34566_ACAWK
34567_ACEOF
34568cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34569if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
34570  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
34571else
34572  cat
34573fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
34574  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
34575_ACEOF
34576
34577# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
34578# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
34579# trailing colons and then remove the whole line if VPATH becomes empty
34580# (actually we leave an empty line to preserve line numbers).
34581if test "x$srcdir" = x.; then
34582  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
34583h
34584s///
34585s/^/:/
34586s/[	 ]*$/:/
34587s/:\$(srcdir):/:/g
34588s/:\${srcdir}:/:/g
34589s/:@srcdir@:/:/g
34590s/^:*//
34591s/:*$//
34592x
34593s/\(=[	 ]*\).*/\1/
34594G
34595s/\n//
34596s/^[^=]*=[	 ]*$//
34597}'
34598fi
34599
34600cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34601fi # test -n "$CONFIG_FILES"
34602
34603# Set up the scripts for CONFIG_HEADERS section.
34604# No need to generate them if there are no CONFIG_HEADERS.
34605# This happens for instance with `./config.status Makefile'.
34606if test -n "$CONFIG_HEADERS"; then
34607cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
34608BEGIN {
34609_ACEOF
34610
34611# Transform confdefs.h into an awk script `defines.awk', embedded as
34612# here-document in config.status, that substitutes the proper values into
34613# config.h.in to produce config.h.
34614
34615# Create a delimiter string that does not exist in confdefs.h, to ease
34616# handling of long lines.
34617ac_delim='%!_!# '
34618for ac_last_try in false false :; do
34619  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
34620  if test -z "$ac_tt"; then
34621    break
34622  elif $ac_last_try; then
34623    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
34624  else
34625    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34626  fi
34627done
34628
34629# For the awk script, D is an array of macro values keyed by name,
34630# likewise P contains macro parameters if any.  Preserve backslash
34631# newline sequences.
34632
34633ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
34634sed -n '
34635s/.\{148\}/&'"$ac_delim"'/g
34636t rset
34637:rset
34638s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
34639t def
34640d
34641:def
34642s/\\$//
34643t bsnl
34644s/["\\]/\\&/g
34645s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
34646D["\1"]=" \3"/p
34647s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
34648d
34649:bsnl
34650s/["\\]/\\&/g
34651s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
34652D["\1"]=" \3\\\\\\n"\\/p
34653t cont
34654s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
34655t cont
34656d
34657:cont
34658n
34659s/.\{148\}/&'"$ac_delim"'/g
34660t clear
34661:clear
34662s/\\$//
34663t bsnlc
34664s/["\\]/\\&/g; s/^/"/; s/$/"/p
34665d
34666:bsnlc
34667s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
34668b cont
34669' <confdefs.h | sed '
34670s/'"$ac_delim"'/"\\\
34671"/g' >>$CONFIG_STATUS || ac_write_fail=1
34672
34673cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34674  for (key in D) D_is_set[key] = 1
34675  FS = ""
34676}
34677/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
34678  line = \$ 0
34679  split(line, arg, " ")
34680  if (arg[1] == "#") {
34681    defundef = arg[2]
34682    mac1 = arg[3]
34683  } else {
34684    defundef = substr(arg[1], 2)
34685    mac1 = arg[2]
34686  }
34687  split(mac1, mac2, "(") #)
34688  macro = mac2[1]
34689  prefix = substr(line, 1, index(line, defundef) - 1)
34690  if (D_is_set[macro]) {
34691    # Preserve the white space surrounding the "#".
34692    print prefix "define", macro P[macro] D[macro]
34693    next
34694  } else {
34695    # Replace #undef with comments.  This is necessary, for example,
34696    # in the case of _POSIX_SOURCE, which is predefined and required
34697    # on some systems where configure will not decide to define it.
34698    if (defundef == "undef") {
34699      print "/*", prefix defundef, macro, "*/"
34700      next
34701    }
34702  }
34703}
34704{ print }
34705_ACAWK
34706_ACEOF
34707cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34708  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
34709fi # test -n "$CONFIG_HEADERS"
34710
34711
34712eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
34713shift
34714for ac_tag
34715do
34716  case $ac_tag in
34717  :[FHLC]) ac_mode=$ac_tag; continue;;
34718  esac
34719  case $ac_mode$ac_tag in
34720  :[FHL]*:*);;
34721  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
34722  :[FH]-) ac_tag=-:-;;
34723  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34724  esac
34725  ac_save_IFS=$IFS
34726  IFS=:
34727  set x $ac_tag
34728  IFS=$ac_save_IFS
34729  shift
34730  ac_file=$1
34731  shift
34732
34733  case $ac_mode in
34734  :L) ac_source=$1;;
34735  :[FH])
34736    ac_file_inputs=
34737    for ac_f
34738    do
34739      case $ac_f in
34740      -) ac_f="$ac_tmp/stdin";;
34741      *) # Look for the file first in the build tree, then in the source tree
34742	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
34743	 # because $ac_f cannot contain `:'.
34744	 test -f "$ac_f" ||
34745	   case $ac_f in
34746	   [\\/$]*) false;;
34747	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34748	   esac ||
34749	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
34750      esac
34751      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
34752      as_fn_append ac_file_inputs " '$ac_f'"
34753    done
34754
34755    # Let's still pretend it is `configure' which instantiates (i.e., don't
34756    # use $as_me), people would be surprised to read:
34757    #    /* config.h.  Generated by config.status.  */
34758    configure_input='Generated from '`
34759	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
34760	`' by configure.'
34761    if test x"$ac_file" != x-; then
34762      configure_input="$ac_file.  $configure_input"
34763      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
34764printf "%s\n" "$as_me: creating $ac_file" >&6;}
34765    fi
34766    # Neutralize special characters interpreted by sed in replacement strings.
34767    case $configure_input in #(
34768    *\&* | *\|* | *\\* )
34769       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
34770       sed 's/[\\\\&|]/\\\\&/g'`;; #(
34771    *) ac_sed_conf_input=$configure_input;;
34772    esac
34773
34774    case $ac_tag in
34775    *:-:* | *:-) cat >"$ac_tmp/stdin" \
34776      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
34777    esac
34778    ;;
34779  esac
34780
34781  ac_dir=`$as_dirname -- "$ac_file" ||
34782$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34783	 X"$ac_file" : 'X\(//\)[^/]' \| \
34784	 X"$ac_file" : 'X\(//\)$' \| \
34785	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
34786printf "%s\n" X"$ac_file" |
34787    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34788	    s//\1/
34789	    q
34790	  }
34791	  /^X\(\/\/\)[^/].*/{
34792	    s//\1/
34793	    q
34794	  }
34795	  /^X\(\/\/\)$/{
34796	    s//\1/
34797	    q
34798	  }
34799	  /^X\(\/\).*/{
34800	    s//\1/
34801	    q
34802	  }
34803	  s/.*/./; q'`
34804  as_dir="$ac_dir"; as_fn_mkdir_p
34805  ac_builddir=.
34806
34807case "$ac_dir" in
34808.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34809*)
34810  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
34811  # A ".." for each directory in $ac_dir_suffix.
34812  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
34813  case $ac_top_builddir_sub in
34814  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34815  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34816  esac ;;
34817esac
34818ac_abs_top_builddir=$ac_pwd
34819ac_abs_builddir=$ac_pwd$ac_dir_suffix
34820# for backward compatibility:
34821ac_top_builddir=$ac_top_build_prefix
34822
34823case $srcdir in
34824  .)  # We are building in place.
34825    ac_srcdir=.
34826    ac_top_srcdir=$ac_top_builddir_sub
34827    ac_abs_top_srcdir=$ac_pwd ;;
34828  [\\/]* | ?:[\\/]* )  # Absolute name.
34829    ac_srcdir=$srcdir$ac_dir_suffix;
34830    ac_top_srcdir=$srcdir
34831    ac_abs_top_srcdir=$srcdir ;;
34832  *) # Relative name.
34833    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34834    ac_top_srcdir=$ac_top_build_prefix$srcdir
34835    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
34836esac
34837ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
34838
34839
34840  case $ac_mode in
34841  :F)
34842  #
34843  # CONFIG_FILE
34844  #
34845
34846  case $INSTALL in
34847  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
34848  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
34849  esac
34850  ac_MKDIR_P=$MKDIR_P
34851  case $MKDIR_P in
34852  [\\/$]* | ?:[\\/]* ) ;;
34853  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
34854  esac
34855_ACEOF
34856
34857cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34858# If the template does not know about datarootdir, expand it.
34859# FIXME: This hack should be removed a few years after 2.60.
34860ac_datarootdir_hack=; ac_datarootdir_seen=
34861ac_sed_dataroot='
34862/datarootdir/ {
34863  p
34864  q
34865}
34866/@datadir@/p
34867/@docdir@/p
34868/@infodir@/p
34869/@localedir@/p
34870/@mandir@/p'
34871case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
34872*datarootdir*) ac_datarootdir_seen=yes;;
34873*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
34874  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
34875printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
34876_ACEOF
34877cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34878  ac_datarootdir_hack='
34879  s&@datadir@&$datadir&g
34880  s&@docdir@&$docdir&g
34881  s&@infodir@&$infodir&g
34882  s&@localedir@&$localedir&g
34883  s&@mandir@&$mandir&g
34884  s&\\\${datarootdir}&$datarootdir&g' ;;
34885esac
34886_ACEOF
34887
34888# Neutralize VPATH when `$srcdir' = `.'.
34889# Shell code in configure.ac might set extrasub.
34890# FIXME: do we really want to maintain this feature?
34891cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34892ac_sed_extra="$ac_vpsub
34893$extrasub
34894_ACEOF
34895cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34896:t
34897/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34898s|@configure_input@|$ac_sed_conf_input|;t t
34899s&@top_builddir@&$ac_top_builddir_sub&;t t
34900s&@top_build_prefix@&$ac_top_build_prefix&;t t
34901s&@srcdir@&$ac_srcdir&;t t
34902s&@abs_srcdir@&$ac_abs_srcdir&;t t
34903s&@top_srcdir@&$ac_top_srcdir&;t t
34904s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
34905s&@builddir@&$ac_builddir&;t t
34906s&@abs_builddir@&$ac_abs_builddir&;t t
34907s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
34908s&@INSTALL@&$ac_INSTALL&;t t
34909s&@MKDIR_P@&$ac_MKDIR_P&;t t
34910$ac_datarootdir_hack
34911"
34912eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
34913  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34914
34915test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34916  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
34917  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
34918      "$ac_tmp/out"`; test -z "$ac_out"; } &&
34919  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34920which seems to be undefined.  Please make sure it is defined" >&5
34921printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34922which seems to be undefined.  Please make sure it is defined" >&2;}
34923
34924  rm -f "$ac_tmp/stdin"
34925  case $ac_file in
34926  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
34927  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
34928  esac \
34929  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34930 ;;
34931  :H)
34932  #
34933  # CONFIG_HEADER
34934  #
34935  if test x"$ac_file" != x-; then
34936    {
34937      printf "%s\n" "/* $configure_input  */" >&1 \
34938      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
34939    } >"$ac_tmp/config.h" \
34940      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34941    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
34942      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
34943printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
34944    else
34945      rm -f "$ac_file"
34946      mv "$ac_tmp/config.h" "$ac_file" \
34947	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
34948    fi
34949  else
34950    printf "%s\n" "/* $configure_input  */" >&1 \
34951      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
34952      || as_fn_error $? "could not create -" "$LINENO" 5
34953  fi
34954# Compute "$ac_file"'s index in $config_headers.
34955_am_arg="$ac_file"
34956_am_stamp_count=1
34957for _am_header in $config_headers :; do
34958  case $_am_header in
34959    $_am_arg | $_am_arg:* )
34960      break ;;
34961    * )
34962      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
34963  esac
34964done
34965echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
34966$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34967	 X"$_am_arg" : 'X\(//\)[^/]' \| \
34968	 X"$_am_arg" : 'X\(//\)$' \| \
34969	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
34970printf "%s\n" X"$_am_arg" |
34971    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34972	    s//\1/
34973	    q
34974	  }
34975	  /^X\(\/\/\)[^/].*/{
34976	    s//\1/
34977	    q
34978	  }
34979	  /^X\(\/\/\)$/{
34980	    s//\1/
34981	    q
34982	  }
34983	  /^X\(\/\).*/{
34984	    s//\1/
34985	    q
34986	  }
34987	  s/.*/./; q'`/stamp-h$_am_stamp_count
34988 ;;
34989
34990  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
34991printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
34992 ;;
34993  esac
34994
34995
34996  case $ac_file$ac_mode in
34997    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
34998  # Older Autoconf quotes --file arguments for eval, but not when files
34999  # are listed without --file.  Let's play safe and only enable the eval
35000  # if we detect the quoting.
35001  # TODO: see whether this extra hack can be removed once we start
35002  # requiring Autoconf 2.70 or later.
35003  case $CONFIG_FILES in #(
35004  *\'*) :
35005    eval set x "$CONFIG_FILES" ;; #(
35006  *) :
35007    set x $CONFIG_FILES ;; #(
35008  *) :
35009     ;;
35010esac
35011  shift
35012  # Used to flag and report bootstrapping failures.
35013  am_rc=0
35014  for am_mf
35015  do
35016    # Strip MF so we end up with the name of the file.
35017    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
35018    # Check whether this is an Automake generated Makefile which includes
35019    # dependency-tracking related rules and includes.
35020    # Grep'ing the whole file directly is not great: AIX grep has a line
35021    # limit of 2048, but all sed's we know have understand at least 4000.
35022    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
35023      || continue
35024    am_dirpart=`$as_dirname -- "$am_mf" ||
35025$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35026	 X"$am_mf" : 'X\(//\)[^/]' \| \
35027	 X"$am_mf" : 'X\(//\)$' \| \
35028	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
35029printf "%s\n" X"$am_mf" |
35030    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35031	    s//\1/
35032	    q
35033	  }
35034	  /^X\(\/\/\)[^/].*/{
35035	    s//\1/
35036	    q
35037	  }
35038	  /^X\(\/\/\)$/{
35039	    s//\1/
35040	    q
35041	  }
35042	  /^X\(\/\).*/{
35043	    s//\1/
35044	    q
35045	  }
35046	  s/.*/./; q'`
35047    am_filepart=`$as_basename -- "$am_mf" ||
35048$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
35049	 X"$am_mf" : 'X\(//\)$' \| \
35050	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
35051printf "%s\n" X/"$am_mf" |
35052    sed '/^.*\/\([^/][^/]*\)\/*$/{
35053	    s//\1/
35054	    q
35055	  }
35056	  /^X\/\(\/\/\)$/{
35057	    s//\1/
35058	    q
35059	  }
35060	  /^X\/\(\/\).*/{
35061	    s//\1/
35062	    q
35063	  }
35064	  s/.*/./; q'`
35065    { echo "$as_me:$LINENO: cd "$am_dirpart" \
35066      && sed -e '/# am--include-marker/d' "$am_filepart" \
35067        | $MAKE -f - am--depfiles" >&5
35068   (cd "$am_dirpart" \
35069      && sed -e '/# am--include-marker/d' "$am_filepart" \
35070        | $MAKE -f - am--depfiles) >&5 2>&5
35071   ac_status=$?
35072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35073   (exit $ac_status); } || am_rc=$?
35074  done
35075  if test $am_rc -ne 0; then
35076    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
35077printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
35078as_fn_error $? "Something went wrong bootstrapping makefile fragments
35079    for automatic dependency tracking.  If GNU make was not used, consider
35080    re-running the configure script with MAKE=\"gmake\" (or whatever is
35081    necessary).  You can also try re-running configure with the
35082    '--disable-dependency-tracking' option to at least be able to build
35083    the package (albeit without support for automatic dependency tracking).
35084See \`config.log' for more details" "$LINENO" 5; }
35085  fi
35086  { am_dirpart=; unset am_dirpart;}
35087  { am_filepart=; unset am_filepart;}
35088  { am_mf=; unset am_mf;}
35089  { am_rc=; unset am_rc;}
35090  rm -f conftest-deps.mk
35091}
35092 ;;
35093    "libtool":C)
35094
35095    # See if we are running on zsh, and set the options that allow our
35096    # commands through without removal of \ escapes.
35097    if test -n "${ZSH_VERSION+set}"; then
35098      setopt NO_GLOB_SUBST
35099    fi
35100
35101    cfgfile=${ofile}T
35102    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
35103    $RM "$cfgfile"
35104
35105    cat <<_LT_EOF >> "$cfgfile"
35106#! $SHELL
35107# Generated automatically by $as_me ($PACKAGE) $VERSION
35108# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
35109# NOTE: Changes made to this file will be lost: look at ltmain.sh.
35110
35111# Provide generalized library-building support services.
35112# Written by Gordon Matzigkeit, 1996
35113
35114# Copyright (C) 2014 Free Software Foundation, Inc.
35115# This is free software; see the source for copying conditions.  There is NO
35116# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
35117
35118# GNU Libtool is free software; you can redistribute it and/or modify
35119# it under the terms of the GNU General Public License as published by
35120# the Free Software Foundation; either version 2 of of the License, or
35121# (at your option) any later version.
35122#
35123# As a special exception to the GNU General Public License, if you
35124# distribute this file as part of a program or library that is built
35125# using GNU Libtool, you may include this file under the  same
35126# distribution terms that you use for the rest of that program.
35127#
35128# GNU Libtool is distributed in the hope that it will be useful, but
35129# WITHOUT ANY WARRANTY; without even the implied warranty of
35130# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
35131# GNU General Public License for more details.
35132#
35133# You should have received a copy of the GNU General Public License
35134# along with this program.  If not, see <http://www.gnu.org/licenses/>.
35135
35136
35137# The names of the tagged configurations supported by this script.
35138available_tags=''
35139
35140# Configured defaults for sys_lib_dlsearch_path munging.
35141: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
35142
35143# ### BEGIN LIBTOOL CONFIG
35144
35145# Which release of libtool.m4 was used?
35146macro_version=$macro_version
35147macro_revision=$macro_revision
35148
35149# Whether or not to build static libraries.
35150build_old_libs=$enable_static
35151
35152# Assembler program.
35153AS=$lt_AS
35154
35155# DLL creation program.
35156DLLTOOL=$lt_DLLTOOL
35157
35158# Object dumper program.
35159OBJDUMP=$lt_OBJDUMP
35160
35161# Whether or not to build shared libraries.
35162build_libtool_libs=$enable_shared
35163
35164# What type of objects to build.
35165pic_mode=$pic_mode
35166
35167# Whether or not to optimize for fast installation.
35168fast_install=$enable_fast_install
35169
35170# Shared archive member basename,for filename based shared library versioning on AIX.
35171shared_archive_member_spec=$shared_archive_member_spec
35172
35173# Shell to use when invoking shell scripts.
35174SHELL=$lt_SHELL
35175
35176# An echo program that protects backslashes.
35177ECHO=$lt_ECHO
35178
35179# The PATH separator for the build system.
35180PATH_SEPARATOR=$lt_PATH_SEPARATOR
35181
35182# The host system.
35183host_alias=$host_alias
35184host=$host
35185host_os=$host_os
35186
35187# The build system.
35188build_alias=$build_alias
35189build=$build
35190build_os=$build_os
35191
35192# A sed program that does not truncate output.
35193SED=$lt_SED
35194
35195# Sed that helps us avoid accidentally triggering echo(1) options like -n.
35196Xsed="\$SED -e 1s/^X//"
35197
35198# A grep program that handles long lines.
35199GREP=$lt_GREP
35200
35201# An ERE matcher.
35202EGREP=$lt_EGREP
35203
35204# A literal string matcher.
35205FGREP=$lt_FGREP
35206
35207# A BSD- or MS-compatible name lister.
35208NM=$lt_NM
35209
35210# Whether we need soft or hard links.
35211LN_S=$lt_LN_S
35212
35213# What is the maximum length of a command?
35214max_cmd_len=$max_cmd_len
35215
35216# Object file suffix (normally "o").
35217objext=$ac_objext
35218
35219# Executable file suffix (normally "").
35220exeext=$exeext
35221
35222# whether the shell understands "unset".
35223lt_unset=$lt_unset
35224
35225# turn spaces into newlines.
35226SP2NL=$lt_lt_SP2NL
35227
35228# turn newlines into spaces.
35229NL2SP=$lt_lt_NL2SP
35230
35231# convert \$build file names to \$host format.
35232to_host_file_cmd=$lt_cv_to_host_file_cmd
35233
35234# convert \$build files to toolchain format.
35235to_tool_file_cmd=$lt_cv_to_tool_file_cmd
35236
35237# A file(cmd) program that detects file types.
35238FILECMD=$lt_FILECMD
35239
35240# Method to check whether dependent libraries are shared objects.
35241deplibs_check_method=$lt_deplibs_check_method
35242
35243# Command to use when deplibs_check_method = "file_magic".
35244file_magic_cmd=$lt_file_magic_cmd
35245
35246# How to find potential files when deplibs_check_method = "file_magic".
35247file_magic_glob=$lt_file_magic_glob
35248
35249# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
35250want_nocaseglob=$lt_want_nocaseglob
35251
35252# Command to associate shared and link libraries.
35253sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
35254
35255# The archiver.
35256AR=$lt_AR
35257
35258# Flags to create an archive (by configure).
35259lt_ar_flags=$lt_ar_flags
35260
35261# Flags to create an archive.
35262AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
35263
35264# How to feed a file listing to the archiver.
35265archiver_list_spec=$lt_archiver_list_spec
35266
35267# A symbol stripping program.
35268STRIP=$lt_STRIP
35269
35270# Commands used to install an old-style archive.
35271RANLIB=$lt_RANLIB
35272old_postinstall_cmds=$lt_old_postinstall_cmds
35273old_postuninstall_cmds=$lt_old_postuninstall_cmds
35274
35275# Whether to use a lock for old archive extraction.
35276lock_old_archive_extraction=$lock_old_archive_extraction
35277
35278# A C compiler.
35279LTCC=$lt_CC
35280
35281# LTCC compiler flags.
35282LTCFLAGS=$lt_CFLAGS
35283
35284# Take the output of nm and produce a listing of raw symbols and C names.
35285global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
35286
35287# Transform the output of nm in a proper C declaration.
35288global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
35289
35290# Transform the output of nm into a list of symbols to manually relocate.
35291global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
35292
35293# Transform the output of nm in a C name address pair.
35294global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
35295
35296# Transform the output of nm in a C name address pair when lib prefix is needed.
35297global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
35298
35299# The name lister interface.
35300nm_interface=$lt_lt_cv_nm_interface
35301
35302# Specify filename containing input files for \$NM.
35303nm_file_list_spec=$lt_nm_file_list_spec
35304
35305# The root where to search for dependent libraries,and where our libraries should be installed.
35306lt_sysroot=$lt_sysroot
35307
35308# Command to truncate a binary pipe.
35309lt_truncate_bin=$lt_lt_cv_truncate_bin
35310
35311# The name of the directory that contains temporary libtool files.
35312objdir=$objdir
35313
35314# Used to examine libraries when file_magic_cmd begins with "file".
35315MAGIC_CMD=$MAGIC_CMD
35316
35317# Must we lock files when doing compilation?
35318need_locks=$lt_need_locks
35319
35320# Manifest tool.
35321MANIFEST_TOOL=$lt_MANIFEST_TOOL
35322
35323# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
35324DSYMUTIL=$lt_DSYMUTIL
35325
35326# Tool to change global to local symbols on Mac OS X.
35327NMEDIT=$lt_NMEDIT
35328
35329# Tool to manipulate fat objects and archives on Mac OS X.
35330LIPO=$lt_LIPO
35331
35332# ldd/readelf like tool for Mach-O binaries on Mac OS X.
35333OTOOL=$lt_OTOOL
35334
35335# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
35336OTOOL64=$lt_OTOOL64
35337
35338# Old archive suffix (normally "a").
35339libext=$libext
35340
35341# Shared library suffix (normally ".so").
35342shrext_cmds=$lt_shrext_cmds
35343
35344# The commands to extract the exported symbol list from a shared archive.
35345extract_expsyms_cmds=$lt_extract_expsyms_cmds
35346
35347# Variables whose values should be saved in libtool wrapper scripts and
35348# restored at link time.
35349variables_saved_for_relink=$lt_variables_saved_for_relink
35350
35351# Do we need the "lib" prefix for modules?
35352need_lib_prefix=$need_lib_prefix
35353
35354# Do we need a version for libraries?
35355need_version=$need_version
35356
35357# Library versioning type.
35358version_type=$version_type
35359
35360# Shared library runtime path variable.
35361runpath_var=$runpath_var
35362
35363# Shared library path variable.
35364shlibpath_var=$shlibpath_var
35365
35366# Is shlibpath searched before the hard-coded library search path?
35367shlibpath_overrides_runpath=$shlibpath_overrides_runpath
35368
35369# Format of library name prefix.
35370libname_spec=$lt_libname_spec
35371
35372# List of archive names.  First name is the real one, the rest are links.
35373# The last name is the one that the linker finds with -lNAME
35374library_names_spec=$lt_library_names_spec
35375
35376# The coded name of the library, if different from the real name.
35377soname_spec=$lt_soname_spec
35378
35379# Permission mode override for installation of shared libraries.
35380install_override_mode=$lt_install_override_mode
35381
35382# Command to use after installation of a shared archive.
35383postinstall_cmds=$lt_postinstall_cmds
35384
35385# Command to use after uninstallation of a shared archive.
35386postuninstall_cmds=$lt_postuninstall_cmds
35387
35388# Commands used to finish a libtool library installation in a directory.
35389finish_cmds=$lt_finish_cmds
35390
35391# As "finish_cmds", except a single script fragment to be evaled but
35392# not shown.
35393finish_eval=$lt_finish_eval
35394
35395# Whether we should hardcode library paths into libraries.
35396hardcode_into_libs=$hardcode_into_libs
35397
35398# Compile-time system search path for libraries.
35399sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
35400
35401# Detected run-time system search path for libraries.
35402sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
35403
35404# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
35405configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
35406
35407# Whether dlopen is supported.
35408dlopen_support=$enable_dlopen
35409
35410# Whether dlopen of programs is supported.
35411dlopen_self=$enable_dlopen_self
35412
35413# Whether dlopen of statically linked programs is supported.
35414dlopen_self_static=$enable_dlopen_self_static
35415
35416# Commands to strip libraries.
35417old_striplib=$lt_old_striplib
35418striplib=$lt_striplib
35419
35420
35421# The linker used to build libraries.
35422LD=$lt_LD
35423
35424# How to create reloadable object files.
35425reload_flag=$lt_reload_flag
35426reload_cmds=$lt_reload_cmds
35427
35428# Commands used to build an old-style archive.
35429old_archive_cmds=$lt_old_archive_cmds
35430
35431# A language specific compiler.
35432CC=$lt_compiler
35433
35434# Is the compiler the GNU compiler?
35435with_gcc=$GCC
35436
35437# Compiler flag to turn off builtin functions.
35438no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
35439
35440# Additional compiler flags for building library objects.
35441pic_flag=$lt_lt_prog_compiler_pic
35442
35443# How to pass a linker flag through the compiler.
35444wl=$lt_lt_prog_compiler_wl
35445
35446# Compiler flag to prevent dynamic linking.
35447link_static_flag=$lt_lt_prog_compiler_static
35448
35449# Does compiler simultaneously support -c and -o options?
35450compiler_c_o=$lt_lt_cv_prog_compiler_c_o
35451
35452# Whether or not to add -lc for building shared libraries.
35453build_libtool_need_lc=$archive_cmds_need_lc
35454
35455# Whether or not to disallow shared libs when runtime libs are static.
35456allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
35457
35458# Compiler flag to allow reflexive dlopens.
35459export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
35460
35461# Compiler flag to generate shared objects directly from archives.
35462whole_archive_flag_spec=$lt_whole_archive_flag_spec
35463
35464# Whether the compiler copes with passing no objects directly.
35465compiler_needs_object=$lt_compiler_needs_object
35466
35467# Create an old-style archive from a shared archive.
35468old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
35469
35470# Create a temporary old-style archive to link instead of a shared archive.
35471old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
35472
35473# Commands used to build a shared archive.
35474archive_cmds=$lt_archive_cmds
35475archive_expsym_cmds=$lt_archive_expsym_cmds
35476
35477# Commands used to build a loadable module if different from building
35478# a shared archive.
35479module_cmds=$lt_module_cmds
35480module_expsym_cmds=$lt_module_expsym_cmds
35481
35482# Whether we are building with GNU ld or not.
35483with_gnu_ld=$lt_with_gnu_ld
35484
35485# Flag that allows shared libraries with undefined symbols to be built.
35486allow_undefined_flag=$lt_allow_undefined_flag
35487
35488# Flag that enforces no undefined symbols.
35489no_undefined_flag=$lt_no_undefined_flag
35490
35491# Flag to hardcode \$libdir into a binary during linking.
35492# This must work even if \$libdir does not exist
35493hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
35494
35495# Whether we need a single "-rpath" flag with a separated argument.
35496hardcode_libdir_separator=$lt_hardcode_libdir_separator
35497
35498# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
35499# DIR into the resulting binary.
35500hardcode_direct=$hardcode_direct
35501
35502# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
35503# DIR into the resulting binary and the resulting library dependency is
35504# "absolute",i.e impossible to change by setting \$shlibpath_var if the
35505# library is relocated.
35506hardcode_direct_absolute=$hardcode_direct_absolute
35507
35508# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
35509# into the resulting binary.
35510hardcode_minus_L=$hardcode_minus_L
35511
35512# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
35513# into the resulting binary.
35514hardcode_shlibpath_var=$hardcode_shlibpath_var
35515
35516# Set to "yes" if building a shared library automatically hardcodes DIR
35517# into the library and all subsequent libraries and executables linked
35518# against it.
35519hardcode_automatic=$hardcode_automatic
35520
35521# Set to yes if linker adds runtime paths of dependent libraries
35522# to runtime path list.
35523inherit_rpath=$inherit_rpath
35524
35525# Whether libtool must link a program against all its dependency libraries.
35526link_all_deplibs=$link_all_deplibs
35527
35528# Set to "yes" if exported symbols are required.
35529always_export_symbols=$always_export_symbols
35530
35531# The commands to list exported symbols.
35532export_symbols_cmds=$lt_export_symbols_cmds
35533
35534# Symbols that should not be listed in the preloaded symbols.
35535exclude_expsyms=$lt_exclude_expsyms
35536
35537# Symbols that must always be exported.
35538include_expsyms=$lt_include_expsyms
35539
35540# Commands necessary for linking programs (against libraries) with templates.
35541prelink_cmds=$lt_prelink_cmds
35542
35543# Commands necessary for finishing linking programs.
35544postlink_cmds=$lt_postlink_cmds
35545
35546# Specify filename containing input files.
35547file_list_spec=$lt_file_list_spec
35548
35549# How to hardcode a shared library path into an executable.
35550hardcode_action=$hardcode_action
35551
35552# ### END LIBTOOL CONFIG
35553
35554_LT_EOF
35555
35556    cat <<'_LT_EOF' >> "$cfgfile"
35557
35558# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
35559
35560# func_munge_path_list VARIABLE PATH
35561# -----------------------------------
35562# VARIABLE is name of variable containing _space_ separated list of
35563# directories to be munged by the contents of PATH, which is string
35564# having a format:
35565# "DIR[:DIR]:"
35566#       string "DIR[ DIR]" will be prepended to VARIABLE
35567# ":DIR[:DIR]"
35568#       string "DIR[ DIR]" will be appended to VARIABLE
35569# "DIRP[:DIRP]::[DIRA:]DIRA"
35570#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
35571#       "DIRA[ DIRA]" will be appended to VARIABLE
35572# "DIR[:DIR]"
35573#       VARIABLE will be replaced by "DIR[ DIR]"
35574func_munge_path_list ()
35575{
35576    case x$2 in
35577    x)
35578        ;;
35579    *:)
35580        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
35581        ;;
35582    x:*)
35583        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
35584        ;;
35585    *::*)
35586        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
35587        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
35588        ;;
35589    *)
35590        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
35591        ;;
35592    esac
35593}
35594
35595
35596# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
35597func_cc_basename ()
35598{
35599    for cc_temp in $*""; do
35600      case $cc_temp in
35601        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
35602        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
35603        \-*) ;;
35604        *) break;;
35605      esac
35606    done
35607    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
35608}
35609
35610
35611# ### END FUNCTIONS SHARED WITH CONFIGURE
35612
35613_LT_EOF
35614
35615  case $host_os in
35616  aix3*)
35617    cat <<\_LT_EOF >> "$cfgfile"
35618# AIX sometimes has problems with the GCC collect2 program.  For some
35619# reason, if we set the COLLECT_NAMES environment variable, the problems
35620# vanish in a puff of smoke.
35621if test set != "${COLLECT_NAMES+set}"; then
35622  COLLECT_NAMES=
35623  export COLLECT_NAMES
35624fi
35625_LT_EOF
35626    ;;
35627  esac
35628
35629
35630
35631ltmain=$ac_aux_dir/ltmain.sh
35632
35633
35634  # We use sed instead of cat because bash on DJGPP gets confused if
35635  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
35636  # text mode, it properly converts lines to CR/LF.  This bash problem
35637  # is reportedly fixed, but why not run on old versions too?
35638  $SED '$q' "$ltmain" >> "$cfgfile" \
35639     || (rm -f "$cfgfile"; exit 1)
35640
35641   mv -f "$cfgfile" "$ofile" ||
35642    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
35643  chmod +x "$ofile"
35644
35645 ;;
35646    "sdksyms":C) touch hw/xfree86/sdksyms.dep ;;
35647
35648  esac
35649done # for ac_tag
35650
35651
35652as_fn_exit 0
35653_ACEOF
35654ac_clean_files=$ac_clean_files_save
35655
35656test $ac_write_fail = 0 ||
35657  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
35658
35659
35660# configure is writing to config.log, and then calls config.status.
35661# config.status does its own redirection, appending to config.log.
35662# Unfortunately, on DOS this fails, as config.log is still kept open
35663# by configure, so config.status won't be able to write to it; its
35664# output is simply discarded.  So we exec the FD to /dev/null,
35665# effectively closing config.log, so it can be properly (re)opened and
35666# appended to by config.status.  When coming back to configure, we
35667# need to make the FD available again.
35668if test "$no_create" != yes; then
35669  ac_cs_success=:
35670  ac_config_status_args=
35671  test "$silent" = yes &&
35672    ac_config_status_args="$ac_config_status_args --quiet"
35673  exec 5>/dev/null
35674  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35675  exec 5>>config.log
35676  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35677  # would make configure fail if this is the last instruction.
35678  $ac_cs_success || as_fn_exit 1
35679fi
35680if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
35681  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
35682printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
35683fi
35684
35685
35686