1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for xorg-server 1.20.13.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/xserver/issues>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
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  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1
202
203  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207    PATH=/empty FPATH=/empty; export PATH FPATH
208    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210  if (eval "$as_required") 2>/dev/null; then :
211  as_have_required=yes
212else
213  as_have_required=no
214fi
215  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  as_found=:
225  case $as_dir in #(
226	 /*)
227	   for as_base in sh bash ksh sh5; do
228	     # Try only shells that exist, to save several forks.
229	     as_shell=$as_dir/$as_base
230	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  CONFIG_SHELL=$as_shell as_have_required=yes
233		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234  break 2
235fi
236fi
237	   done;;
238       esac
239  as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243  CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248      if test "x$CONFIG_SHELL" != x; then :
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'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno; then :
271  $as_echo "$0: This script requires a shell more modern than all"
272  $as_echo "$0: the shells that I found on your system."
273  if test x${ZSH_VERSION+set} = xset ; then
274    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276  else
277    $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: https://gitlab.freedesktop.org/xorg/xserver/issues
279$0: about your system, including any error possibly output
280$0: before this message. Then install a modern shell, or
281$0: manually run the script under such a shell if you do
282$0: have one."
283  fi
284  exit 1
285fi
286fi
287fi
288SHELL=${CONFIG_SHELL-/bin/sh}
289export SHELL
290# Unset more variables known to interfere with behavior of common tools.
291CLICOLOR_FORCE= GREP_OPTIONS=
292unset CLICOLOR_FORCE GREP_OPTIONS
293
294## --------------------- ##
295## M4sh Shell Functions. ##
296## --------------------- ##
297# as_fn_unset VAR
298# ---------------
299# Portably unset VAR.
300as_fn_unset ()
301{
302  { eval $1=; unset $1;}
303}
304as_unset=as_fn_unset
305
306# as_fn_set_status STATUS
307# -----------------------
308# Set $? to STATUS, without forking.
309as_fn_set_status ()
310{
311  return $1
312} # as_fn_set_status
313
314# as_fn_exit STATUS
315# -----------------
316# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317as_fn_exit ()
318{
319  set +e
320  as_fn_set_status $1
321  exit $1
322} # as_fn_exit
323
324# as_fn_mkdir_p
325# -------------
326# Create "$as_dir" as a directory, including parents if necessary.
327as_fn_mkdir_p ()
328{
329
330  case $as_dir in #(
331  -*) as_dir=./$as_dir;;
332  esac
333  test -d "$as_dir" || eval $as_mkdir_p || {
334    as_dirs=
335    while :; do
336      case $as_dir in #(
337      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338      *) as_qdir=$as_dir;;
339      esac
340      as_dirs="'$as_qdir' $as_dirs"
341      as_dir=`$as_dirname -- "$as_dir" ||
342$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343	 X"$as_dir" : 'X\(//\)[^/]' \| \
344	 X"$as_dir" : 'X\(//\)$' \| \
345	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346$as_echo X"$as_dir" |
347    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348	    s//\1/
349	    q
350	  }
351	  /^X\(\/\/\)[^/].*/{
352	    s//\1/
353	    q
354	  }
355	  /^X\(\/\/\)$/{
356	    s//\1/
357	    q
358	  }
359	  /^X\(\/\).*/{
360	    s//\1/
361	    q
362	  }
363	  s/.*/./; q'`
364      test -d "$as_dir" && break
365    done
366    test -z "$as_dirs" || eval "mkdir $as_dirs"
367  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370} # as_fn_mkdir_p
371
372# as_fn_executable_p FILE
373# -----------------------
374# Test if FILE is an executable regular file.
375as_fn_executable_p ()
376{
377  test -f "$1" && test -x "$1"
378} # as_fn_executable_p
379# as_fn_append VAR VALUE
380# ----------------------
381# Append the text in VALUE to the end of the definition contained in VAR. Take
382# advantage of any shell optimizations that allow amortized linear growth over
383# repeated appends, instead of the typical quadratic growth present in naive
384# implementations.
385if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386  eval 'as_fn_append ()
387  {
388    eval $1+=\$2
389  }'
390else
391  as_fn_append ()
392  {
393    eval $1=\$$1\$2
394  }
395fi # as_fn_append
396
397# as_fn_arith ARG...
398# ------------------
399# Perform arithmetic evaluation on the ARGs, and store the result in the
400# global $as_val. Take advantage of shells that can avoid forks. The arguments
401# must be portable across $(()) and expr.
402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403  eval 'as_fn_arith ()
404  {
405    as_val=$(( $* ))
406  }'
407else
408  as_fn_arith ()
409  {
410    as_val=`expr "$@" || test $? -eq 1`
411  }
412fi # as_fn_arith
413
414
415# as_fn_error STATUS ERROR [LINENO LOG_FD]
416# ----------------------------------------
417# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419# script with STATUS, using 1 if that was 0.
420as_fn_error ()
421{
422  as_status=$1; test $as_status -eq 0 && as_status=1
423  if test "$4"; then
424    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426  fi
427  $as_echo "$as_me: error: $2" >&2
428  as_fn_exit $as_status
429} # as_fn_error
430
431if expr a : '\(a\)' >/dev/null 2>&1 &&
432   test "X`expr 00001 : '.*\(...\)'`" = X001; then
433  as_expr=expr
434else
435  as_expr=false
436fi
437
438if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439  as_basename=basename
440else
441  as_basename=false
442fi
443
444if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445  as_dirname=dirname
446else
447  as_dirname=false
448fi
449
450as_me=`$as_basename -- "$0" ||
451$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452	 X"$0" : 'X\(//\)$' \| \
453	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454$as_echo X/"$0" |
455    sed '/^.*\/\([^/][^/]*\)\/*$/{
456	    s//\1/
457	    q
458	  }
459	  /^X\/\(\/\/\)$/{
460	    s//\1/
461	    q
462	  }
463	  /^X\/\(\/\).*/{
464	    s//\1/
465	    q
466	  }
467	  s/.*/./; q'`
468
469# Avoid depending upon Character Ranges.
470as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473as_cr_digits='0123456789'
474as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477  as_lineno_1=$LINENO as_lineno_1a=$LINENO
478  as_lineno_2=$LINENO as_lineno_2a=$LINENO
479  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
482  sed -n '
483    p
484    /[$]LINENO/=
485  ' <$as_myself |
486    sed '
487      s/[$]LINENO.*/&-/
488      t lineno
489      b
490      :lineno
491      N
492      :loop
493      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494      t loop
495      s/-\n.*//
496    ' >$as_me.lineno &&
497  chmod +x "$as_me.lineno" ||
498    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501  # already done that, so ensure we don't try to do so again and fall
502  # in an infinite loop.  This has already happened in practice.
503  _as_can_reexec=no; export _as_can_reexec
504  # Don't try to exec as it changes $[0], causing all sort of problems
505  # (the dirname of $[0] is not the place where we might find the
506  # original and so on.  Autoconf is especially sensitive to this).
507  . "./$as_me.lineno"
508  # Exit status is that of the last command.
509  exit
510}
511
512ECHO_C= ECHO_N= ECHO_T=
513case `echo -n x` in #(((((
514-n*)
515  case `echo 'xy\c'` in
516  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
517  xy)  ECHO_C='\c';;
518  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
519       ECHO_T='	';;
520  esac;;
521*)
522  ECHO_N='-n';;
523esac
524
525rm -f conf$$ conf$$.exe conf$$.file
526if test -d conf$$.dir; then
527  rm -f conf$$.dir/conf$$.file
528else
529  rm -f conf$$.dir
530  mkdir conf$$.dir 2>/dev/null
531fi
532if (echo >conf$$.file) 2>/dev/null; then
533  if ln -s conf$$.file conf$$ 2>/dev/null; then
534    as_ln_s='ln -s'
535    # ... but there are two gotchas:
536    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538    # In both cases, we have to default to `cp -pR'.
539    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540      as_ln_s='cp -pR'
541  elif ln conf$$.file conf$$ 2>/dev/null; then
542    as_ln_s=ln
543  else
544    as_ln_s='cp -pR'
545  fi
546else
547  as_ln_s='cp -pR'
548fi
549rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550rmdir conf$$.dir 2>/dev/null
551
552if mkdir -p . 2>/dev/null; then
553  as_mkdir_p='mkdir -p "$as_dir"'
554else
555  test -d ./-p && rmdir ./-p
556  as_mkdir_p=false
557fi
558
559as_test_x='test -x'
560as_executable_p=as_fn_executable_p
561
562# Sed expression to map a string onto a valid CPP name.
563as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565# Sed expression to map a string onto a valid variable name.
566as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568as_awk_strverscmp='
569  # Use only awk features that work with 7th edition Unix awk (1978).
570  # My, what an old awk you have, Mr. Solaris!
571  END {
572    while (length(v1) && length(v2)) {
573      # Set d1 to be the next thing to compare from v1, and likewise for d2.
574      # Normally this is a single character, but if v1 and v2 contain digits,
575      # compare them as integers and fractions as strverscmp does.
576      if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) {
577	# Split v1 and v2 into their leading digit string components d1 and d2,
578	# and advance v1 and v2 past the leading digit strings.
579	for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue
580	for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue
581	d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
582	d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
583	if (d1 ~ /^0/) {
584	  if (d2 ~ /^0/) {
585	    # Compare two fractions.
586	    while (d1 ~ /^0/ && d2 ~ /^0/) {
587	      d1 = substr(d1, 2); len1--
588	      d2 = substr(d2, 2); len2--
589	    }
590	    if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
591	      # The two components differ in length, and the common prefix
592	      # contains only leading zeros.  Consider the longer to be less.
593	      d1 = -len1
594	      d2 = -len2
595	    } else {
596	      # Otherwise, compare as strings.
597	      d1 = "x" d1
598	      d2 = "x" d2
599	    }
600	  } else {
601	    # A fraction is less than an integer.
602	    exit 1
603	  }
604	} else {
605	  if (d2 ~ /^0/) {
606	    # An integer is greater than a fraction.
607	    exit 2
608	  } else {
609	    # Compare two integers.
610	    d1 += 0
611	    d2 += 0
612	  }
613	}
614      } else {
615	# The normal case, without worrying about digits.
616	d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
617	d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
618      }
619      if (d1 < d2) exit 1
620      if (d1 > d2) exit 2
621    }
622    # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
623    # which mishandles some comparisons of empty strings to integers.
624    if (length(v2)) exit 1
625    if (length(v1)) exit 2
626  }
627'
628SHELL=${CONFIG_SHELL-/bin/sh}
629
630
631test -n "$DJDIR" || exec 7<&0 </dev/null
632exec 6>&1
633
634# Name of the host.
635# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
636# so uname gets run too.
637ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
638
639#
640# Initializations.
641#
642ac_default_prefix=/usr/local
643ac_clean_files=
644ac_config_libobj_dir=.
645LIBOBJS=
646cross_compiling=no
647subdirs=
648MFLAGS=
649MAKEFLAGS=
650
651# Identity of this package.
652PACKAGE_NAME='xorg-server'
653PACKAGE_TARNAME='xorg-server'
654PACKAGE_VERSION='1.20.13'
655PACKAGE_STRING='xorg-server 1.20.13'
656PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/xserver/issues'
657PACKAGE_URL=''
658
659ac_unique_file="Makefile.am"
660# Factoring default headers for most tests.
661ac_includes_default="\
662#include <stdio.h>
663#ifdef HAVE_SYS_TYPES_H
664# include <sys/types.h>
665#endif
666#ifdef HAVE_SYS_STAT_H
667# include <sys/stat.h>
668#endif
669#ifdef STDC_HEADERS
670# include <stdlib.h>
671# include <stddef.h>
672#else
673# ifdef HAVE_STDLIB_H
674#  include <stdlib.h>
675# endif
676#endif
677#ifdef HAVE_STRING_H
678# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
679#  include <memory.h>
680# endif
681# include <string.h>
682#endif
683#ifdef HAVE_STRINGS_H
684# include <strings.h>
685#endif
686#ifdef HAVE_INTTYPES_H
687# include <inttypes.h>
688#endif
689#ifdef HAVE_STDINT_H
690# include <stdint.h>
691#endif
692#ifdef HAVE_UNISTD_H
693# include <unistd.h>
694#endif"
695
696ac_config_libobj_dir=os
697ac_subst_vars='am__EXEEXT_FALSE
698am__EXEEXT_TRUE
699LTLIBOBJS
700DIX_CFLAGS
701BUILD_TIME
702BUILD_DATE
703RELEASE_DATE
704SYSCONFDIR
705PROJECTROOT
706XWAYLAND_EGLSTREAM_FALSE
707XWAYLAND_EGLSTREAM_TRUE
708WAYLAND_PROTOCOLS_DATADIR
709SCANNER_ARG
710WAYLAND_SCANNER_LIBS
711WAYLAND_SCANNER_CFLAGS
712WAYLAND_SCANNER
713XWAYLAND_SYS_LIBS
714XWAYLAND_LIBS
715WAYLAND_EGLSTREAM_DATADIR
716WAYLAND_EGLSTREAM_LIBS
717WAYLAND_EGLSTREAM_CFLAGS
718XWAYLAND_FALSE
719XWAYLAND_TRUE
720XWAYLANDMODULES_LIBS
721XWAYLANDMODULES_CFLAGS
722XEPHYR_FALSE
723XEPHYR_TRUE
724KDRIVE_LIBS
725KDRIVE_LOCAL_LIBS
726KDRIVE_MAIN_LIB
727KDRIVE_PURE_LIBS
728KDRIVE_CFLAGS
729KDRIVE_PURE_INCS
730KDRIVE_INCS
731XEPHYR_INCS
732XEPHYR_LIBS
733XEPHYR_CFLAGS
734KDRIVE_FALSE
735KDRIVE_TRUE
736DMX_BUILD_USB_FALSE
737DMX_BUILD_USB_TRUE
738X11EXAMPLES_DEP_LIBS
739X11EXAMPLES_DEP_CFLAGS
740XRESEXAMPLES_DEP_LIBS
741XRESEXAMPLES_DEP_CFLAGS
742XTSTEXAMPLES_DEP_LIBS
743XTSTEXAMPLES_DEP_CFLAGS
744DMXXIEXAMPLES_DEP_LIBS
745DMXXIEXAMPLES_DEP_CFLAGS
746DMXXMUEXAMPLES_DEP_LIBS
747DMXXMUEXAMPLES_DEP_CFLAGS
748DMXEXAMPLES_DEP_LIBS
749DMXEXAMPLES_DEP_CFLAGS
750XDMX_SYS_LIBS
751XDMX_LIBS
752XDMX_CFLAGS
753DMX_FALSE
754DMX_TRUE
755XDMXCONFIG_DEP_LIBS
756XDMXCONFIG_DEP_CFLAGS
757DMXMODULES_LIBS
758DMXMODULES_CFLAGS
759STANDALONE_XPBPROXY_FALSE
760STANDALONE_XPBPROXY_TRUE
761XQUARTZ_SPARKLE_FALSE
762XQUARTZ_SPARKLE_TRUE
763XQUARTZ_FALSE
764XQUARTZ_TRUE
765am__fastdepOBJC_FALSE
766am__fastdepOBJC_TRUE
767OBJCDEPMODE
768OBJCFLAGS
769OBJCLINK
770OBJCCLD
771OBJC
772PSEUDORAMIX_FALSE
773PSEUDORAMIX_TRUE
774XPBPROXY_LIBS
775XPBPROXY_CFLAGS
776XQUARTZ_LIBS
777XWIN_WINDOWS_DRI_FALSE
778XWIN_WINDOWS_DRI_TRUE
779XWIN_GLX_WINDOWS_FALSE
780XWIN_GLX_WINDOWS_TRUE
781XWIN_MULTIWINDOWEXTWM_FALSE
782XWIN_MULTIWINDOWEXTWM_TRUE
783XWIN_FALSE
784XWIN_TRUE
785KHRONOS_SPEC_DIR
786KHRONOS_OPENGL_REGISTRY_LIBS
787KHRONOS_OPENGL_REGISTRY_CFLAGS
788PYTHON3
789XWIN_SYS_LIBS
790XWIN_SERVER_NAME
791XWIN_LIBS
792WINDOWSDRI_LIBS
793WINDOWSDRI_CFLAGS
794WINDOWSWM_LIBS
795WINDOWSWM_CFLAGS
796XWINMODULES_LIBS
797XWINMODULES_CFLAGS
798WINDRES
799GLAMOR_EGL_FALSE
800GLAMOR_EGL_TRUE
801GBM_LIBS
802GBM_CFLAGS
803GLAMOR_LIBS
804GLAMOR_CFLAGS
805GLAMOR_FALSE
806GLAMOR_TRUE
807XORG_DRIVER_MODESETTING_FALSE
808XORG_DRIVER_MODESETTING_TRUE
809XORG_BUS_PLATFORM_FALSE
810XORG_BUS_PLATFORM_TRUE
811DGA_FALSE
812DGA_TRUE
813SOLARIS_VT_FALSE
814SOLARIS_VT_TRUE
815LNXAPM_FALSE
816LNXAPM_TRUE
817LNXACPI_FALSE
818LNXACPI_TRUE
819XORG_BUS_SPARC_FALSE
820XORG_BUS_SPARC_TRUE
821XORG_BUS_BSDPCI_FALSE
822XORG_BUS_BSDPCI_TRUE
823XORG_BUS_PCI_FALSE
824XORG_BUS_PCI_TRUE
825XORG_FALSE
826XORG_TRUE
827abi_extension
828abi_xinput
829abi_videodrv
830abi_ansic
831logdir
832sysconfigdir
833extdir
834sdkdir
835driverdir
836moduledir
837DEFAULT_XDG_DATA_HOME_LOGDIR
838DEFAULT_XDG_DATA_HOME
839DEFAULT_LOGPREFIX
840DEFAULT_LOGDIR
841DEFAULT_LIBRARY_PATH
842DEFAULT_MODULE_PATH
843XCONFIGDIR
844XF86CONFIGFILE
845XCONFIGFILE
846XF86CONFIGDIR
847XORG_CFLAGS
848XORG_OS_SUBDIR
849XORG_INCS
850XORG_SYS_LIBS
851XORG_LIBS
852XORG_MODULES_LIBS
853XORG_MODULES_CFLAGS
854DGA_LIBS
855DGA_CFLAGS
856SOLARIS_INOUT_ARCH
857PCI_TXT_IDS_PATH
858PCIACCESS_LIBS
859PCIACCESS_CFLAGS
860symbol_visibility
861XNEST_SYS_LIBS
862XNEST_LIBS
863XNEST_FALSE
864XNEST_TRUE
865XNESTMODULES_LIBS
866XNESTMODULES_CFLAGS
867XVFB_SYS_LIBS
868XVFB_LIBS
869XVFB_FALSE
870XVFB_TRUE
871NO_UNDEFINED_FALSE
872NO_UNDEFINED_TRUE
873CYGWIN_FALSE
874CYGWIN_TRUE
875XORG_DRIVER_LIBS
876LD_NO_UNDEFINED_FLAG
877LD_EXPORT_SYMBOLS_FLAG
878UTILS_SYS_LIBS
879XSERVER_SYS_LIBS
880XSERVER_LIBS
881HAVE_LIBUNWIND_FALSE
882HAVE_LIBUNWIND_TRUE
883LIBUNWIND_LIBS
884LIBUNWIND_CFLAGS
885XSERVERLIBS_LIBS
886XSERVERLIBS_CFLAGS
887XSERVERCFLAGS_LIBS
888XSERVERCFLAGS_CFLAGS
889SHA1_CFLAGS
890SHA1_LIBS
891OPENSSL_LIBS
892OPENSSL_CFLAGS
893LIBSHA1_LIBS
894LIBSHA1_CFLAGS
895MAIN_LIB
896OS_LIB
897DIX_LIB
898DEBUG_FALSE
899DEBUG_TRUE
900VENDOR_NAME_SHORT
901DRI_DRIVER_PATH
902BASE_FONT_PATH
903SERVER_MISC_CONFIG_PATH
904COMPILEDDEFAULTFONTPATH
905XF86VIDMODE_FALSE
906XF86VIDMODE_TRUE
907XDMAUTH_FALSE
908XDMAUTH_TRUE
909XDMCP_FALSE
910XDMCP_TRUE
911XDMCP_LIBS
912XDMCP_CFLAGS
913XKB_DFLT_OPTIONS
914XKB_DFLT_VARIANT
915XKB_DFLT_LAYOUT
916XKB_DFLT_MODEL
917XKB_DFLT_RULES
918XKB_COMPILED_DIR
919XKM_OUTPUT_DIR
920XKB_BIN_DIRECTORY
921XKB_BASE_DIRECTORY
922INT10MODULE_FALSE
923INT10MODULE_TRUE
924VBE_FALSE
925VBE_TRUE
926VGAHW_FALSE
927VGAHW_TRUE
928XF86UTILS_FALSE
929XF86UTILS_TRUE
930DPMSExtension_FALSE
931DPMSExtension_TRUE
932XF86BIGFONT_FALSE
933XF86BIGFONT_TRUE
934DBE_FALSE
935DBE_TRUE
936XCSECURITY_FALSE
937XCSECURITY_TRUE
938SELINUX_LIBS
939SELINUX_CFLAGS
940XSELINUX_FALSE
941XSELINUX_TRUE
942XACE_FALSE
943XACE_TRUE
944XINERAMA_FALSE
945XINERAMA_TRUE
946PRESENT_FALSE
947PRESENT_TRUE
948GLX_SYS_LIBS
949GLX_DEFINES
950HASHTABLE_FALSE
951HASHTABLE_TRUE
952GLX_FALSE
953GLX_TRUE
954GL_LIBS
955GL_CFLAGS
956XLIB_LIBS
957XLIB_CFLAGS
958LIBDRM_LIBS
959LIBDRM_CFLAGS
960DRI3_FALSE
961DRI3_TRUE
962XSHMFENCE_FALSE
963XSHMFENCE_TRUE
964XSHMFENCE_LIBS
965XSHMFENCE_CFLAGS
966BUSFAULT_FALSE
967BUSFAULT_TRUE
968DRI3PROTO_LIBS
969DRI3PROTO_CFLAGS
970DRI2_FALSE
971DRI2_TRUE
972DRI2PROTO_LIBS
973DRI2PROTO_CFLAGS
974DRI_FALSE
975DRI_TRUE
976CLIENTIDS_FALSE
977CLIENTIDS_TRUE
978RES_FALSE
979RES_TRUE
980SCREENSAVER_FALSE
981SCREENSAVER_TRUE
982RECORD_FALSE
983RECORD_TRUE
984MITSHM_FALSE
985MITSHM_TRUE
986COMPOSITE_FALSE
987COMPOSITE_TRUE
988XVMC_FALSE
989XVMC_TRUE
990XV_FALSE
991XV_TRUE
992CONFIG_WSCONS_FALSE
993CONFIG_WSCONS_TRUE
994NEED_DBUS_FALSE
995NEED_DBUS_TRUE
996SUID_WRAPPER_FALSE
997SUID_WRAPPER_TRUE
998SUID_WRAPPER_DIR
999SYSTEMD_LOGIND_FALSE
1000SYSTEMD_LOGIND_TRUE
1001CONFIG_HAL_FALSE
1002CONFIG_HAL_TRUE
1003HAL_LIBS
1004HAL_CFLAGS
1005HAVE_DBUS_FALSE
1006HAVE_DBUS_TRUE
1007DBUS_LIBS
1008DBUS_CFLAGS
1009CONFIG_UDEV_KMS_FALSE
1010CONFIG_UDEV_KMS_TRUE
1011CONFIG_UDEV_FALSE
1012CONFIG_UDEV_TRUE
1013UDEV_LIBS
1014UDEV_CFLAGS
1015CONFIG_DEVD_FALSE
1016CONFIG_DEVD_TRUE
1017HAVE_SYSTEMD_DAEMON_FALSE
1018HAVE_SYSTEMD_DAEMON_TRUE
1019SYSTEMD_DAEMON_LIBS
1020SYSTEMD_DAEMON_CFLAGS
1021PTHREAD_CFLAGS
1022PTHREAD_LIBS
1023PTHREAD_CC
1024ax_pthread_config
1025SDK_REQUIRED_MODULES
1026PIXMAN_LIBS
1027PIXMAN_CFLAGS
1028INT10_STUB_FALSE
1029INT10_STUB_TRUE
1030INT10_X86EMU_FALSE
1031INT10_X86EMU_TRUE
1032INT10_VM86_FALSE
1033INT10_VM86_TRUE
1034SECURE_RPC_FALSE
1035SECURE_RPC_TRUE
1036INSTALL_SETUID_FALSE
1037INSTALL_SETUID_TRUE
1038XQUARTZ_SPARKLE_FEED_URL
1039XQUARTZ_SPARKLE
1040BUNDLE_VERSION_STRING
1041BUNDLE_VERSION
1042BUNDLE_ID_PREFIX
1043APPLE_APPLICATION_NAME
1044APPLE_APPLICATIONS_DIR
1045FONT100DPIDIR
1046FONT75DPIDIR
1047FONTTYPE1DIR
1048FONTTTFDIR
1049FONTOTFDIR
1050FONTMISCDIR
1051FONTROOTDIR
1052SPARC64_VIDEO_FALSE
1053SPARC64_VIDEO_TRUE
1054PPC_VIDEO_FALSE
1055PPC_VIDEO_TRUE
1056I386_VIDEO_FALSE
1057I386_VIDEO_TRUE
1058ARM_VIDEO_FALSE
1059ARM_VIDEO_TRUE
1060ALPHA_VIDEO_FALSE
1061ALPHA_VIDEO_TRUE
1062GLX_ARCH_DEFINES
1063BSD_KQUEUE_APM_FALSE
1064BSD_KQUEUE_APM_TRUE
1065BSD_APM_FALSE
1066BSD_APM_TRUE
1067FREEBSD_KLDLOAD_FALSE
1068FREEBSD_KLDLOAD_TRUE
1069FBDEVHW_FALSE
1070FBDEVHW_TRUE
1071AGP_FALSE
1072AGP_TRUE
1073POLL_FALSE
1074POLL_TRUE
1075LIBOBJS
1076DLOPEN_LIBS
1077SPECIAL_DTRACE_OBJECTS_FALSE
1078SPECIAL_DTRACE_OBJECTS_TRUE
1079XSERVER_DTRACE_FALSE
1080XSERVER_DTRACE_TRUE
1081DTRACE
1082TRADITIONALCPPFLAGS
1083RAWCPPFLAGS
1084RAWCPP
1085YFLAGS
1086YACC
1087LEXLIB
1088LEX_OUTPUT_ROOT
1089LEX
1090LT_SYS_LIBRARY_PATH
1091OTOOL64
1092OTOOL
1093LIPO
1094NMEDIT
1095DSYMUTIL
1096MANIFEST_TOOL
1097RANLIB
1098ac_ct_AR
1099AR
1100NM
1101ac_ct_DUMPBIN
1102DUMPBIN
1103LD
1104FGREP
1105LIBTOOL
1106OBJDUMP
1107DLLTOOL
1108AS
1109LN_S
1110am__fastdepCCAS_FALSE
1111am__fastdepCCAS_TRUE
1112CCASDEPMODE
1113CCASFLAGS
1114CCAS
1115HAVE_LD_WRAP_FALSE
1116HAVE_LD_WRAP_TRUE
1117ENABLE_UNIT_TESTS_FALSE
1118ENABLE_UNIT_TESTS_TRUE
1119XORG_MALLOC_DEBUG_ENV
1120HAVE_XSLTPROC_FALSE
1121HAVE_XSLTPROC_TRUE
1122XSLTPROC
1123HAVE_FOP_FALSE
1124HAVE_FOP_TRUE
1125FOP
1126HAVE_XMLTO_FALSE
1127HAVE_XMLTO_TRUE
1128HAVE_XMLTO_TEXT_FALSE
1129HAVE_XMLTO_TEXT_TRUE
1130XMLTO
1131ENABLE_DEVEL_DOCS_FALSE
1132ENABLE_DEVEL_DOCS_TRUE
1133ENABLE_DOCS_FALSE
1134ENABLE_DOCS_TRUE
1135HAVE_STYLESHEETS_FALSE
1136HAVE_STYLESHEETS_TRUE
1137XSL_STYLESHEET
1138STYLESHEET_SRCDIR
1139XORG_SGML_PATH
1140HAVE_DOXYGEN_FALSE
1141HAVE_DOXYGEN_TRUE
1142HAVE_DOT_FALSE
1143HAVE_DOT_TRUE
1144HAVE_DOT
1145DOT
1146DOXYGEN
1147MAN_SUBSTS
1148XORG_MAN_PAGE
1149ADMIN_MAN_DIR
1150DRIVER_MAN_DIR
1151MISC_MAN_DIR
1152FILE_MAN_DIR
1153LIB_MAN_DIR
1154APP_MAN_DIR
1155ADMIN_MAN_SUFFIX
1156DRIVER_MAN_SUFFIX
1157MISC_MAN_SUFFIX
1158FILE_MAN_SUFFIX
1159LIB_MAN_SUFFIX
1160APP_MAN_SUFFIX
1161SED
1162host_os
1163host_vendor
1164host_cpu
1165host
1166build_os
1167build_vendor
1168build_cpu
1169build
1170INSTALL_CMD
1171PKG_CONFIG_LIBDIR
1172PKG_CONFIG_PATH
1173PKG_CONFIG
1174CHANGELOG_CMD
1175STRICT_CFLAGS
1176CWARNFLAGS
1177BASE_CFLAGS
1178EGREP
1179GREP
1180CPP
1181am__fastdepCC_FALSE
1182am__fastdepCC_TRUE
1183CCDEPMODE
1184am__nodep
1185AMDEPBACKSLASH
1186AMDEP_FALSE
1187AMDEP_TRUE
1188am__include
1189DEPDIR
1190OBJEXT
1191EXEEXT
1192ac_ct_CC
1193CPPFLAGS
1194LDFLAGS
1195CFLAGS
1196CC
1197AM_BACKSLASH
1198AM_DEFAULT_VERBOSITY
1199AM_DEFAULT_V
1200AM_V
1201am__untar
1202am__tar
1203AMTAR
1204am__leading_dot
1205SET_MAKE
1206AWK
1207mkdir_p
1208MKDIR_P
1209INSTALL_STRIP_PROGRAM
1210STRIP
1211install_sh
1212MAKEINFO
1213AUTOHEADER
1214AUTOMAKE
1215AUTOCONF
1216ACLOCAL
1217VERSION
1218PACKAGE
1219CYGPATH_W
1220am__isrc
1221INSTALL_DATA
1222INSTALL_SCRIPT
1223INSTALL_PROGRAM
1224target_alias
1225host_alias
1226build_alias
1227LIBS
1228ECHO_T
1229ECHO_N
1230ECHO_C
1231DEFS
1232mandir
1233localedir
1234libdir
1235psdir
1236pdfdir
1237dvidir
1238htmldir
1239infodir
1240docdir
1241oldincludedir
1242includedir
1243runstatedir
1244localstatedir
1245sharedstatedir
1246sysconfdir
1247datadir
1248datarootdir
1249libexecdir
1250sbindir
1251bindir
1252program_transform_name
1253prefix
1254exec_prefix
1255PACKAGE_URL
1256PACKAGE_BUGREPORT
1257PACKAGE_STRING
1258PACKAGE_VERSION
1259PACKAGE_TARNAME
1260PACKAGE_NAME
1261PATH_SEPARATOR
1262SHELL
1263am__quote'
1264ac_subst_files=''
1265ac_user_opts='
1266enable_option_checking
1267enable_silent_rules
1268enable_dependency_tracking
1269enable_selective_werror
1270enable_strict_compilation
1271with_doxygen
1272enable_docs
1273enable_devel_docs
1274with_xmlto
1275with_fop
1276with_xsltproc
1277enable_unit_tests
1278enable_static
1279enable_shared
1280with_pic
1281enable_fast_install
1282with_aix_soname
1283with_gnu_ld
1284with_sysroot
1285enable_libtool_lock
1286enable_largefile
1287with_dtrace
1288enable_werror
1289enable_debug
1290with_int10
1291with_vendor_name
1292with_vendor_name_short
1293with_vendor_web
1294with_module_dir
1295with_log_dir
1296with_builder_addr
1297with_os_name
1298with_os_vendor
1299with_builderstring
1300enable_listen_tcp
1301enable_listen_unix
1302enable_listen_local
1303with_fallback_input_driver
1304with_fontrootdir
1305with_fontmiscdir
1306with_fontotfdir
1307with_fontttfdir
1308with_fonttype1dir
1309with_font75dpidir
1310with_font100dpidir
1311with_default_font_path
1312with_xkb_path
1313with_xkb_output
1314with_default_xkb_rules
1315with_default_xkb_model
1316with_default_xkb_layout
1317with_default_xkb_variant
1318with_default_xkb_options
1319with_serverconfig_path
1320with_apple_applications_dir
1321with_apple_application_name
1322with_bundle_id_prefix
1323with_bundle_version
1324with_bundle_version_string
1325enable_sparkle
1326with_sparkle_feed_url
1327enable_visibility
1328with_khronos_spec_dir
1329enable_composite
1330enable_mitshm
1331enable_xres
1332enable_record
1333enable_xv
1334enable_xvmc
1335enable_dga
1336enable_screensaver
1337enable_xdmcp
1338enable_xdm_auth_1
1339enable_glx
1340enable_dri
1341enable_dri2
1342enable_dri3
1343enable_present
1344enable_xinerama
1345enable_xf86vidmode
1346enable_xace
1347enable_xselinux
1348enable_xcsecurity
1349enable_dbe
1350enable_xf86bigfont
1351enable_dpms
1352enable_config_devd
1353enable_config_udev
1354enable_config_udev_kms
1355enable_config_hal
1356enable_config_wscons
1357enable_xfree86_utils
1358enable_vgahw
1359enable_vbe
1360enable_int10_module
1361enable_windowswm
1362enable_windowsdri
1363enable_libdrm
1364enable_clientids
1365enable_pciaccess
1366enable_linux_acpi
1367enable_linux_apm
1368enable_systemd_logind
1369enable_suid_wrapper
1370enable_xorg
1371enable_dmx
1372enable_xvfb
1373enable_xnest
1374enable_xquartz
1375enable_xwayland
1376enable_xwayland_eglstream
1377enable_standalone_xpbproxy
1378enable_xwin
1379enable_glamor
1380enable_kdrive
1381enable_xephyr
1382enable_libunwind
1383enable_xshmfence
1384enable_install_setuid
1385enable_unix_transport
1386enable_tcp_transport
1387enable_ipv6
1388enable_local_transport
1389enable_secure_rpc
1390enable_input_thread
1391with_systemd_daemon
1392enable_xtrans_send_fds
1393with_xkb_bin_directory
1394with_sha1
1395'
1396      ac_precious_vars='build_alias
1397host_alias
1398target_alias
1399CC
1400CFLAGS
1401LDFLAGS
1402LIBS
1403CPPFLAGS
1404CPP
1405PKG_CONFIG
1406PKG_CONFIG_PATH
1407PKG_CONFIG_LIBDIR
1408DOXYGEN
1409DOT
1410XMLTO
1411FOP
1412XSLTPROC
1413XORG_MALLOC_DEBUG_ENV
1414CCAS
1415CCASFLAGS
1416LT_SYS_LIBRARY_PATH
1417YACC
1418YFLAGS
1419PIXMAN_CFLAGS
1420PIXMAN_LIBS
1421SYSTEMD_DAEMON_CFLAGS
1422SYSTEMD_DAEMON_LIBS
1423UDEV_CFLAGS
1424UDEV_LIBS
1425DBUS_CFLAGS
1426DBUS_LIBS
1427HAL_CFLAGS
1428HAL_LIBS
1429DRI2PROTO_CFLAGS
1430DRI2PROTO_LIBS
1431DRI3PROTO_CFLAGS
1432DRI3PROTO_LIBS
1433XSHMFENCE_CFLAGS
1434XSHMFENCE_LIBS
1435LIBDRM_CFLAGS
1436LIBDRM_LIBS
1437XLIB_CFLAGS
1438XLIB_LIBS
1439GL_CFLAGS
1440GL_LIBS
1441SELINUX_CFLAGS
1442SELINUX_LIBS
1443XDMCP_CFLAGS
1444XDMCP_LIBS
1445LIBSHA1_CFLAGS
1446LIBSHA1_LIBS
1447OPENSSL_CFLAGS
1448OPENSSL_LIBS
1449XSERVERCFLAGS_CFLAGS
1450XSERVERCFLAGS_LIBS
1451XSERVERLIBS_CFLAGS
1452XSERVERLIBS_LIBS
1453LIBUNWIND_CFLAGS
1454LIBUNWIND_LIBS
1455XNESTMODULES_CFLAGS
1456XNESTMODULES_LIBS
1457PCIACCESS_CFLAGS
1458PCIACCESS_LIBS
1459DGA_CFLAGS
1460DGA_LIBS
1461XORG_MODULES_CFLAGS
1462XORG_MODULES_LIBS
1463GLAMOR_CFLAGS
1464GLAMOR_LIBS
1465GBM_CFLAGS
1466GBM_LIBS
1467XWINMODULES_CFLAGS
1468XWINMODULES_LIBS
1469WINDOWSWM_CFLAGS
1470WINDOWSWM_LIBS
1471WINDOWSDRI_CFLAGS
1472WINDOWSDRI_LIBS
1473KHRONOS_OPENGL_REGISTRY_CFLAGS
1474KHRONOS_OPENGL_REGISTRY_LIBS
1475XPBPROXY_CFLAGS
1476XPBPROXY_LIBS
1477DMXMODULES_CFLAGS
1478DMXMODULES_LIBS
1479XDMXCONFIG_DEP_CFLAGS
1480XDMXCONFIG_DEP_LIBS
1481DMXEXAMPLES_DEP_CFLAGS
1482DMXEXAMPLES_DEP_LIBS
1483DMXXMUEXAMPLES_DEP_CFLAGS
1484DMXXMUEXAMPLES_DEP_LIBS
1485DMXXIEXAMPLES_DEP_CFLAGS
1486DMXXIEXAMPLES_DEP_LIBS
1487XTSTEXAMPLES_DEP_CFLAGS
1488XTSTEXAMPLES_DEP_LIBS
1489XRESEXAMPLES_DEP_CFLAGS
1490XRESEXAMPLES_DEP_LIBS
1491X11EXAMPLES_DEP_CFLAGS
1492X11EXAMPLES_DEP_LIBS
1493XEPHYR_CFLAGS
1494XEPHYR_LIBS
1495XWAYLANDMODULES_CFLAGS
1496XWAYLANDMODULES_LIBS
1497WAYLAND_EGLSTREAM_CFLAGS
1498WAYLAND_EGLSTREAM_LIBS
1499WAYLAND_SCANNER_CFLAGS
1500WAYLAND_SCANNER_LIBS'
1501
1502
1503# Initialize some variables set by options.
1504ac_init_help=
1505ac_init_version=false
1506ac_unrecognized_opts=
1507ac_unrecognized_sep=
1508# The variables have the same names as the options, with
1509# dashes changed to underlines.
1510cache_file=/dev/null
1511exec_prefix=NONE
1512no_create=
1513no_recursion=
1514prefix=NONE
1515program_prefix=NONE
1516program_suffix=NONE
1517program_transform_name=s,x,x,
1518silent=
1519site=
1520srcdir=
1521verbose=
1522x_includes=NONE
1523x_libraries=NONE
1524
1525# Installation directory options.
1526# These are left unexpanded so users can "make install exec_prefix=/foo"
1527# and all the variables that are supposed to be based on exec_prefix
1528# by default will actually change.
1529# Use braces instead of parens because sh, perl, etc. also accept them.
1530# (The list follows the same order as the GNU Coding Standards.)
1531bindir='${exec_prefix}/bin'
1532sbindir='${exec_prefix}/sbin'
1533libexecdir='${exec_prefix}/libexec'
1534datarootdir='${prefix}/share'
1535datadir='${datarootdir}'
1536sysconfdir='${prefix}/etc'
1537sharedstatedir='${prefix}/com'
1538localstatedir='${prefix}/var'
1539runstatedir='${localstatedir}/run'
1540includedir='${prefix}/include'
1541oldincludedir='/usr/include'
1542docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1543infodir='${datarootdir}/info'
1544htmldir='${docdir}'
1545dvidir='${docdir}'
1546pdfdir='${docdir}'
1547psdir='${docdir}'
1548libdir='${exec_prefix}/lib'
1549localedir='${datarootdir}/locale'
1550mandir='${datarootdir}/man'
1551
1552ac_prev=
1553ac_dashdash=
1554for ac_option
1555do
1556  # If the previous option needs an argument, assign it.
1557  if test -n "$ac_prev"; then
1558    eval $ac_prev=\$ac_option
1559    ac_prev=
1560    continue
1561  fi
1562
1563  case $ac_option in
1564  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1565  *=)   ac_optarg= ;;
1566  *)    ac_optarg=yes ;;
1567  esac
1568
1569  # Accept the important Cygnus configure options, so we can diagnose typos.
1570
1571  case $ac_dashdash$ac_option in
1572  --)
1573    ac_dashdash=yes ;;
1574
1575  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1576    ac_prev=bindir ;;
1577  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1578    bindir=$ac_optarg ;;
1579
1580  -build | --build | --buil | --bui | --bu)
1581    ac_prev=build_alias ;;
1582  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1583    build_alias=$ac_optarg ;;
1584
1585  -cache-file | --cache-file | --cache-fil | --cache-fi \
1586  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1587    ac_prev=cache_file ;;
1588  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1589  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1590    cache_file=$ac_optarg ;;
1591
1592  --config-cache | -C)
1593    cache_file=config.cache ;;
1594
1595  -datadir | --datadir | --datadi | --datad)
1596    ac_prev=datadir ;;
1597  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1598    datadir=$ac_optarg ;;
1599
1600  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1601  | --dataroo | --dataro | --datar)
1602    ac_prev=datarootdir ;;
1603  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1604  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1605    datarootdir=$ac_optarg ;;
1606
1607  -disable-* | --disable-*)
1608    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1609    # Reject names that are not valid shell variable names.
1610    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1611      as_fn_error $? "invalid feature name: $ac_useropt"
1612    ac_useropt_orig=$ac_useropt
1613    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1614    case $ac_user_opts in
1615      *"
1616"enable_$ac_useropt"
1617"*) ;;
1618      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1619	 ac_unrecognized_sep=', ';;
1620    esac
1621    eval enable_$ac_useropt=no ;;
1622
1623  -docdir | --docdir | --docdi | --doc | --do)
1624    ac_prev=docdir ;;
1625  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1626    docdir=$ac_optarg ;;
1627
1628  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1629    ac_prev=dvidir ;;
1630  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1631    dvidir=$ac_optarg ;;
1632
1633  -enable-* | --enable-*)
1634    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1635    # Reject names that are not valid shell variable names.
1636    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1637      as_fn_error $? "invalid feature name: $ac_useropt"
1638    ac_useropt_orig=$ac_useropt
1639    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1640    case $ac_user_opts in
1641      *"
1642"enable_$ac_useropt"
1643"*) ;;
1644      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1645	 ac_unrecognized_sep=', ';;
1646    esac
1647    eval enable_$ac_useropt=\$ac_optarg ;;
1648
1649  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1650  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1651  | --exec | --exe | --ex)
1652    ac_prev=exec_prefix ;;
1653  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1654  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1655  | --exec=* | --exe=* | --ex=*)
1656    exec_prefix=$ac_optarg ;;
1657
1658  -gas | --gas | --ga | --g)
1659    # Obsolete; use --with-gas.
1660    with_gas=yes ;;
1661
1662  -help | --help | --hel | --he | -h)
1663    ac_init_help=long ;;
1664  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1665    ac_init_help=recursive ;;
1666  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1667    ac_init_help=short ;;
1668
1669  -host | --host | --hos | --ho)
1670    ac_prev=host_alias ;;
1671  -host=* | --host=* | --hos=* | --ho=*)
1672    host_alias=$ac_optarg ;;
1673
1674  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1675    ac_prev=htmldir ;;
1676  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1677  | --ht=*)
1678    htmldir=$ac_optarg ;;
1679
1680  -includedir | --includedir | --includedi | --included | --include \
1681  | --includ | --inclu | --incl | --inc)
1682    ac_prev=includedir ;;
1683  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1684  | --includ=* | --inclu=* | --incl=* | --inc=*)
1685    includedir=$ac_optarg ;;
1686
1687  -infodir | --infodir | --infodi | --infod | --info | --inf)
1688    ac_prev=infodir ;;
1689  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1690    infodir=$ac_optarg ;;
1691
1692  -libdir | --libdir | --libdi | --libd)
1693    ac_prev=libdir ;;
1694  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1695    libdir=$ac_optarg ;;
1696
1697  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1698  | --libexe | --libex | --libe)
1699    ac_prev=libexecdir ;;
1700  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1701  | --libexe=* | --libex=* | --libe=*)
1702    libexecdir=$ac_optarg ;;
1703
1704  -localedir | --localedir | --localedi | --localed | --locale)
1705    ac_prev=localedir ;;
1706  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1707    localedir=$ac_optarg ;;
1708
1709  -localstatedir | --localstatedir | --localstatedi | --localstated \
1710  | --localstate | --localstat | --localsta | --localst | --locals)
1711    ac_prev=localstatedir ;;
1712  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1713  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1714    localstatedir=$ac_optarg ;;
1715
1716  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1717    ac_prev=mandir ;;
1718  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1719    mandir=$ac_optarg ;;
1720
1721  -nfp | --nfp | --nf)
1722    # Obsolete; use --without-fp.
1723    with_fp=no ;;
1724
1725  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1726  | --no-cr | --no-c | -n)
1727    no_create=yes ;;
1728
1729  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1730  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1731    no_recursion=yes ;;
1732
1733  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1734  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1735  | --oldin | --oldi | --old | --ol | --o)
1736    ac_prev=oldincludedir ;;
1737  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1738  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1739  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1740    oldincludedir=$ac_optarg ;;
1741
1742  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1743    ac_prev=prefix ;;
1744  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1745    prefix=$ac_optarg ;;
1746
1747  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1748  | --program-pre | --program-pr | --program-p)
1749    ac_prev=program_prefix ;;
1750  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1751  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1752    program_prefix=$ac_optarg ;;
1753
1754  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1755  | --program-suf | --program-su | --program-s)
1756    ac_prev=program_suffix ;;
1757  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1758  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1759    program_suffix=$ac_optarg ;;
1760
1761  -program-transform-name | --program-transform-name \
1762  | --program-transform-nam | --program-transform-na \
1763  | --program-transform-n | --program-transform- \
1764  | --program-transform | --program-transfor \
1765  | --program-transfo | --program-transf \
1766  | --program-trans | --program-tran \
1767  | --progr-tra | --program-tr | --program-t)
1768    ac_prev=program_transform_name ;;
1769  -program-transform-name=* | --program-transform-name=* \
1770  | --program-transform-nam=* | --program-transform-na=* \
1771  | --program-transform-n=* | --program-transform-=* \
1772  | --program-transform=* | --program-transfor=* \
1773  | --program-transfo=* | --program-transf=* \
1774  | --program-trans=* | --program-tran=* \
1775  | --progr-tra=* | --program-tr=* | --program-t=*)
1776    program_transform_name=$ac_optarg ;;
1777
1778  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1779    ac_prev=pdfdir ;;
1780  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1781    pdfdir=$ac_optarg ;;
1782
1783  -psdir | --psdir | --psdi | --psd | --ps)
1784    ac_prev=psdir ;;
1785  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1786    psdir=$ac_optarg ;;
1787
1788  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1789  | -silent | --silent | --silen | --sile | --sil)
1790    silent=yes ;;
1791
1792  -runstatedir | --runstatedir | --runstatedi | --runstated \
1793  | --runstate | --runstat | --runsta | --runst | --runs \
1794  | --run | --ru | --r)
1795    ac_prev=runstatedir ;;
1796  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1797  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1798  | --run=* | --ru=* | --r=*)
1799    runstatedir=$ac_optarg ;;
1800
1801  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1802    ac_prev=sbindir ;;
1803  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1804  | --sbi=* | --sb=*)
1805    sbindir=$ac_optarg ;;
1806
1807  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1808  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1809  | --sharedst | --shareds | --shared | --share | --shar \
1810  | --sha | --sh)
1811    ac_prev=sharedstatedir ;;
1812  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1813  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1814  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1815  | --sha=* | --sh=*)
1816    sharedstatedir=$ac_optarg ;;
1817
1818  -site | --site | --sit)
1819    ac_prev=site ;;
1820  -site=* | --site=* | --sit=*)
1821    site=$ac_optarg ;;
1822
1823  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1824    ac_prev=srcdir ;;
1825  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1826    srcdir=$ac_optarg ;;
1827
1828  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1829  | --syscon | --sysco | --sysc | --sys | --sy)
1830    ac_prev=sysconfdir ;;
1831  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1832  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1833    sysconfdir=$ac_optarg ;;
1834
1835  -target | --target | --targe | --targ | --tar | --ta | --t)
1836    ac_prev=target_alias ;;
1837  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1838    target_alias=$ac_optarg ;;
1839
1840  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1841    verbose=yes ;;
1842
1843  -version | --version | --versio | --versi | --vers | -V)
1844    ac_init_version=: ;;
1845
1846  -with-* | --with-*)
1847    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1848    # Reject names that are not valid shell variable names.
1849    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1850      as_fn_error $? "invalid package name: $ac_useropt"
1851    ac_useropt_orig=$ac_useropt
1852    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1853    case $ac_user_opts in
1854      *"
1855"with_$ac_useropt"
1856"*) ;;
1857      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1858	 ac_unrecognized_sep=', ';;
1859    esac
1860    eval with_$ac_useropt=\$ac_optarg ;;
1861
1862  -without-* | --without-*)
1863    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1864    # Reject names that are not valid shell variable names.
1865    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1866      as_fn_error $? "invalid package name: $ac_useropt"
1867    ac_useropt_orig=$ac_useropt
1868    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1869    case $ac_user_opts in
1870      *"
1871"with_$ac_useropt"
1872"*) ;;
1873      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1874	 ac_unrecognized_sep=', ';;
1875    esac
1876    eval with_$ac_useropt=no ;;
1877
1878  --x)
1879    # Obsolete; use --with-x.
1880    with_x=yes ;;
1881
1882  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1883  | --x-incl | --x-inc | --x-in | --x-i)
1884    ac_prev=x_includes ;;
1885  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1886  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1887    x_includes=$ac_optarg ;;
1888
1889  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1890  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1891    ac_prev=x_libraries ;;
1892  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1893  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1894    x_libraries=$ac_optarg ;;
1895
1896  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1897Try \`$0 --help' for more information"
1898    ;;
1899
1900  *=*)
1901    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1902    # Reject names that are not valid shell variable names.
1903    case $ac_envvar in #(
1904      '' | [0-9]* | *[!_$as_cr_alnum]* )
1905      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1906    esac
1907    eval $ac_envvar=\$ac_optarg
1908    export $ac_envvar ;;
1909
1910  *)
1911    # FIXME: should be removed in autoconf 3.0.
1912    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1913    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1914      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1915    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1916    ;;
1917
1918  esac
1919done
1920
1921if test -n "$ac_prev"; then
1922  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1923  as_fn_error $? "missing argument to $ac_option"
1924fi
1925
1926if test -n "$ac_unrecognized_opts"; then
1927  case $enable_option_checking in
1928    no) ;;
1929    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1930    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1931  esac
1932fi
1933
1934# Check all directory arguments for consistency.
1935for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1936		datadir sysconfdir sharedstatedir localstatedir includedir \
1937		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1938		libdir localedir mandir runstatedir
1939do
1940  eval ac_val=\$$ac_var
1941  # Remove trailing slashes.
1942  case $ac_val in
1943    */ )
1944      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1945      eval $ac_var=\$ac_val;;
1946  esac
1947  # Be sure to have absolute directory names.
1948  case $ac_val in
1949    [\\/$]* | ?:[\\/]* )  continue;;
1950    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1951  esac
1952  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1953done
1954
1955# There might be people who depend on the old broken behavior: `$host'
1956# used to hold the argument of --host etc.
1957# FIXME: To remove some day.
1958build=$build_alias
1959host=$host_alias
1960target=$target_alias
1961
1962# FIXME: To remove some day.
1963if test "x$host_alias" != x; then
1964  if test "x$build_alias" = x; then
1965    cross_compiling=maybe
1966  elif test "x$build_alias" != "x$host_alias"; then
1967    cross_compiling=yes
1968  fi
1969fi
1970
1971ac_tool_prefix=
1972test -n "$host_alias" && ac_tool_prefix=$host_alias-
1973
1974test "$silent" = yes && exec 6>/dev/null
1975
1976
1977ac_pwd=`pwd` && test -n "$ac_pwd" &&
1978ac_ls_di=`ls -di .` &&
1979ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1980  as_fn_error $? "working directory cannot be determined"
1981test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1982  as_fn_error $? "pwd does not report name of working directory"
1983
1984
1985# Find the source files, if location was not specified.
1986if test -z "$srcdir"; then
1987  ac_srcdir_defaulted=yes
1988  # Try the directory containing this script, then the parent directory.
1989  ac_confdir=`$as_dirname -- "$as_myself" ||
1990$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1991	 X"$as_myself" : 'X\(//\)[^/]' \| \
1992	 X"$as_myself" : 'X\(//\)$' \| \
1993	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1994$as_echo X"$as_myself" |
1995    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1996	    s//\1/
1997	    q
1998	  }
1999	  /^X\(\/\/\)[^/].*/{
2000	    s//\1/
2001	    q
2002	  }
2003	  /^X\(\/\/\)$/{
2004	    s//\1/
2005	    q
2006	  }
2007	  /^X\(\/\).*/{
2008	    s//\1/
2009	    q
2010	  }
2011	  s/.*/./; q'`
2012  srcdir=$ac_confdir
2013  if test ! -r "$srcdir/$ac_unique_file"; then
2014    srcdir=..
2015  fi
2016else
2017  ac_srcdir_defaulted=no
2018fi
2019if test ! -r "$srcdir/$ac_unique_file"; then
2020  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
2021  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
2022fi
2023ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
2024ac_abs_confdir=`(
2025	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
2026	pwd)`
2027# When building in place, set srcdir=.
2028if test "$ac_abs_confdir" = "$ac_pwd"; then
2029  srcdir=.
2030fi
2031# Remove unnecessary trailing slashes from srcdir.
2032# Double slashes in file names in object file debugging info
2033# mess up M-x gdb in Emacs.
2034case $srcdir in
2035*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2036esac
2037for ac_var in $ac_precious_vars; do
2038  eval ac_env_${ac_var}_set=\${${ac_var}+set}
2039  eval ac_env_${ac_var}_value=\$${ac_var}
2040  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
2041  eval ac_cv_env_${ac_var}_value=\$${ac_var}
2042done
2043
2044#
2045# Report the --help message.
2046#
2047if test "$ac_init_help" = "long"; then
2048  # Omit some internal or obsolete options to make the list less imposing.
2049  # This message is too long to be a string in the A/UX 3.1 sh.
2050  cat <<_ACEOF
2051\`configure' configures xorg-server 1.20.13 to adapt to many kinds of systems.
2052
2053Usage: $0 [OPTION]... [VAR=VALUE]...
2054
2055To assign environment variables (e.g., CC, CFLAGS...), specify them as
2056VAR=VALUE.  See below for descriptions of some of the useful variables.
2057
2058Defaults for the options are specified in brackets.
2059
2060Configuration:
2061  -h, --help              display this help and exit
2062      --help=short        display options specific to this package
2063      --help=recursive    display the short help of all the included packages
2064  -V, --version           display version information and exit
2065  -q, --quiet, --silent   do not print \`checking ...' messages
2066      --cache-file=FILE   cache test results in FILE [disabled]
2067  -C, --config-cache      alias for \`--cache-file=config.cache'
2068  -n, --no-create         do not create output files
2069      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
2070
2071Installation directories:
2072  --prefix=PREFIX         install architecture-independent files in PREFIX
2073                          [$ac_default_prefix]
2074  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
2075                          [PREFIX]
2076
2077By default, \`make install' will install all the files in
2078\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
2079an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2080for instance \`--prefix=\$HOME'.
2081
2082For better control, use the options below.
2083
2084Fine tuning of the installation directories:
2085  --bindir=DIR            user executables [EPREFIX/bin]
2086  --sbindir=DIR           system admin executables [EPREFIX/sbin]
2087  --libexecdir=DIR        program executables [EPREFIX/libexec]
2088  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
2089  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
2090  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
2091  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
2092  --libdir=DIR            object code libraries [EPREFIX/lib]
2093  --includedir=DIR        C header files [PREFIX/include]
2094  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
2095  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
2096  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
2097  --infodir=DIR           info documentation [DATAROOTDIR/info]
2098  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
2099  --mandir=DIR            man documentation [DATAROOTDIR/man]
2100  --docdir=DIR            documentation root [DATAROOTDIR/doc/xorg-server]
2101  --htmldir=DIR           html documentation [DOCDIR]
2102  --dvidir=DIR            dvi documentation [DOCDIR]
2103  --pdfdir=DIR            pdf documentation [DOCDIR]
2104  --psdir=DIR             ps documentation [DOCDIR]
2105_ACEOF
2106
2107  cat <<\_ACEOF
2108
2109Program names:
2110  --program-prefix=PREFIX            prepend PREFIX to installed program names
2111  --program-suffix=SUFFIX            append SUFFIX to installed program names
2112  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
2113
2114System types:
2115  --build=BUILD     configure for building on BUILD [guessed]
2116  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
2117_ACEOF
2118fi
2119
2120if test -n "$ac_init_help"; then
2121  case $ac_init_help in
2122     short | recursive ) echo "Configuration of xorg-server 1.20.13:";;
2123   esac
2124  cat <<\_ACEOF
2125
2126Optional Features:
2127  --disable-option-checking  ignore unrecognized --enable/--with options
2128  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
2129  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
2130  --enable-silent-rules   less verbose build output (undo: "make V=1")
2131  --disable-silent-rules  verbose build output (undo: "make V=0")
2132  --enable-dependency-tracking
2133                          do not reject slow dependency extractors
2134  --disable-dependency-tracking
2135                          speeds up one-time build
2136  --disable-selective-werror
2137                          Turn off selective compiler errors. (default:
2138                          enabled)
2139  --enable-strict-compilation
2140                          Enable all warnings from compiler and make them
2141                          errors (default: disabled)
2142  --enable-docs           Enable building the documentation (default: yes)
2143  --enable-devel-docs     Enable building the developer documentation
2144                          (default: yes)
2145  --enable-unit-tests     Enable building unit test cases (default: auto)
2146  --enable-static[=PKGS]  build static libraries [default=no]
2147  --enable-shared[=PKGS]  build shared libraries [default=yes]
2148  --enable-fast-install[=PKGS]
2149                          optimize for fast installation [default=yes]
2150  --disable-libtool-lock  avoid locking (might break parallel builds)
2151  --disable-largefile     omit support for large files
2152  --enable-werror         Obsolete - use --enable-strict-compilation instead
2153  --enable-debug          Enable debugging (default: disabled)
2154  --enable-listen-tcp     Listen on TCP by default (default:disabled)
2155  --disable-listen-unix   Listen on Unix by default (default:enabled)
2156  --disable-listen-local  Listen on local by default (default:enabled)
2157  --enable-sparkle        Enable updating of X11.app using the Sparkle
2158                          Framework (default: disabled)
2159  --enable-visibility     Enable symbol visibility (default: auto)
2160  --disable-composite     Build Composite extension (default: enabled)
2161  --disable-mitshm        Build SHM extension (default: auto)
2162  --disable-xres          Build XRes extension (default: enabled)
2163  --disable-record        Build Record extension (default: enabled)
2164  --disable-xv            Build Xv extension (default: enabled)
2165  --disable-xvmc          Build XvMC extension (default: enabled)
2166  --disable-dga           Build DGA extension (default: auto)
2167  --disable-screensaver   Build ScreenSaver extension (default: enabled)
2168  --disable-xdmcp         Build XDMCP extension (default: auto)
2169  --disable-xdm-auth-1    Build XDM-Auth-1 extension (default: auto)
2170  --disable-glx           Build GLX extension (default: enabled)
2171  --enable-dri            Build DRI extension (default: auto)
2172  --enable-dri2           Build DRI2 extension (default: auto)
2173  --enable-dri3           Build DRI3 extension (default: auto)
2174  --disable-present       Build Present extension (default: enabled)
2175  --disable-xinerama      Build Xinerama extension (default: enabled)
2176  --disable-xf86vidmode   Build XF86VidMode extension (default: auto)
2177  --disable-xace          Build X-ACE extension (default: enabled)
2178  --enable-xselinux       Build SELinux extension (default: disabled)
2179  --enable-xcsecurity     Build Security extension (default: disabled)
2180  --disable-dbe           Build DBE extension (default: enabled)
2181  --enable-xf86bigfont    Build XF86 Big Font extension (default: disabled)
2182  --disable-dpms          Build DPMS extension (default: enabled)
2183  --enable-config-devd    Build devd support (default: auto)
2184  --enable-config-udev    Build udev support (default: auto)
2185  --enable-config-udev-kms
2186                          Build udev kms support (default: auto)
2187  --disable-config-hal    Build HAL support (default: auto)
2188  --enable-config-wscons  Build wscons config support (default: auto)
2189  --enable-xfree86-utils  Build xfree86 DDX utilities (default: enabled)
2190  --enable-vgahw          Build Xorg with vga access (default: enabled)
2191  --enable-vbe            Build Xorg with VBE module (default: enabled)
2192  --enable-int10-module   Build Xorg with int10 module (default: enabled)
2193  --enable-windowswm      Build XWin with WindowsWM extension (default: no)
2194  --enable-windowsdri     Build XWin with WindowsDRI extension (default: auto)
2195  --enable-libdrm         Build Xorg with libdrm support (default: enabled)
2196  --disable-clientids     Build Xorg with client ID tracking (default:
2197                          enabled)
2198  --enable-pciaccess      Build Xorg with pciaccess library (default: enabled)
2199  --disable-linux-acpi    Disable building ACPI support on Linux (if
2200                          available).
2201  --disable-linux-apm     Disable building APM support on Linux (if
2202                          available).
2203  --enable-systemd-logind Build systemd-logind support (default: auto)
2204  --enable-suid-wrapper   Build suid-root wrapper for legacy driver support on
2205                          rootless xserver systems (default: no)
2206  --enable-xorg           Build Xorg server (default: auto)
2207  --enable-dmx            Build DMX server (default: no)
2208  --enable-xvfb           Build Xvfb server (default: yes)
2209  --enable-xnest          Build Xnest server (default: auto)
2210  --enable-xquartz        Build Xquartz server for OS-X (default: auto)
2211  --enable-xwayland       Build Xwayland server (default: auto)
2212  --enable-xwayland-eglstream
2213                          Build Xwayland eglstream support (default: no)
2214  --enable-standalone-xpbproxy
2215                          Build a standalone xpbproxy (in addition to the one
2216                          integrated into Xquartz as a separate thread)
2217                          (default: no)
2218  --enable-xwin           Build XWin server (default: auto)
2219  --enable-glamor         Build glamor dix module (default: auto)
2220  --enable-kdrive         Build kdrive servers (default: no)
2221  --enable-xephyr         Build the kdrive Xephyr server (default: auto)
2222  --enable-libunwind      Use libunwind for backtracing (default: auto)
2223  --disable-xshmfence     Disable xshmfence (default: auto)
2224  --enable-install-setuid Install Xorg server as owned by root with setuid bit
2225                          (default: auto)
2226  --enable-unix-transport Enable UNIX domain socket transport
2227  --enable-tcp-transport  Enable TCP socket transport
2228  --enable-ipv6           Enable IPv6 support
2229  --enable-local-transport
2230                          Enable os-specific local transport
2231  --enable-secure-rpc     Enable Secure RPC
2232  --enable-input-thread   Enable input threads
2233  --disable-xtrans-send-fds
2234                          Use Xtrans support for fd passing (default: auto)
2235
2236Optional Packages:
2237  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
2238  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
2239  --with-doxygen          Use doxygen to regenerate documentation (default:
2240                          auto)
2241  --with-xmlto            Use xmlto to regenerate documentation (default:
2242                          auto)
2243  --with-fop              Use fop to regenerate documentation (default: auto)
2244  --with-xsltproc         Use xsltproc for the transformation of XML documents
2245                          (default: auto)
2246  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
2247                          both]
2248  --with-aix-soname=aix|svr4|both
2249                          shared library versioning (aka "SONAME") variant to
2250                          provide on AIX, [default=aix].
2251  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
2252  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
2253                          compiler's sysroot if not specified).
2254  --with-dtrace=PATH      Enable dtrace probes (default: enabled if dtrace
2255                          found)
2256  --with-int10=BACKEND    int10 backend: vm86, x86emu or stub
2257  --with-vendor-name=VENDOR
2258                          Vendor string reported by the server
2259  --with-vendor-name-short=VENDOR
2260                          Short version of vendor string reported by the
2261                          server
2262  --with-vendor-web=URL   Vendor web address reported by the server
2263  --with-module-dir=DIR   Directory where modules are installed (default:
2264                          $libdir/xorg/modules)
2265  --with-log-dir=DIR      Directory where log files are kept (default:
2266                          $localstatedir/log)
2267  --with-builder-addr=ADDRESS
2268                          Builder address (default:
2269                          xorg@lists.freedesktop.org)
2270  --with-os-name=OSNAME   Name of OS (default: output of "uname -srm")
2271  --with-os-vendor=OSVENDOR
2272                          Name of OS vendor
2273  --with-builderstring=BUILDERSTRING
2274                          Additional builder string
2275  --with-fallback-input-driver=$FALLBACK_INPUT_DRIVER
2276                          Input driver fallback if the requested driver for a
2277                          device is unavailable
2278  --with-fontrootdir=DIR  Path to root directory for font files
2279  --with-fontmiscdir=DIR  Path to misc files [FONTROOTDIR/misc]
2280  --with-fontotfdir=DIR   Path to OTF files [FONTROOTDIR/OTF]
2281  --with-fontttfdir=DIR   Path to TTF files [FONTROOTDIR/TTF]
2282  --with-fonttype1dir=DIR Path to Type1 files [FONTROOTDIR/Type1]
2283  --with-font75dpidir=DIR Path to 75dpi files [FONTROOTDIR/75dpi]
2284  --with-font100dpidir=DIR
2285                          Path to 100dpi files [FONTROOTDIR/100dpi]
2286  --with-default-font-path=PATH
2287                          Comma separated list of font dirs
2288  --with-xkb-path=PATH    Path to XKB base dir (default: auto)
2289  --with-xkb-output=PATH  Path to XKB output dir (default:
2290                          ${datadir}/X11/xkb/compiled)
2291  --with-default-xkb-rules=RULES
2292                          Keyboard ruleset (default: base/evdev)
2293  --with-default-xkb-model=MODEL
2294                          Keyboard model (default: pc105)
2295  --with-default-xkb-layout=LAYOUT
2296                          Keyboard layout (default: us)
2297  --with-default-xkb-variant=VARIANT
2298                          Keyboard variant (default: (none))
2299  --with-default-xkb-options=OPTIONS
2300                          Keyboard layout options (default: (none))
2301  --with-serverconfig-path=PATH
2302                          Directory where ancillary server config files are
2303                          installed (default: ${libdir}/xorg)
2304  --with-apple-applications-dir=PATH
2305                          Path to the Applications directory (default:
2306                          /Applications/Utilities)
2307  --with-apple-application-name=NAME
2308                          Name for the .app (default: X11)
2309  --with-bundle-id-prefix=RDNS_PREFIX
2310                          Prefix to use for bundle identifiers (default:
2311                          org.x)
2312  --with-bundle-version=VERSION
2313                          Version to use for X11.app's CFBundleVersion
2314                          (default: 1.20.13)
2315  --with-bundle-version-string=VERSION
2316                          Version to use for X11.app's
2317                          CFBundleShortVersionString (default: 1.20.13)
2318  --with-sparkle-feed-url=URL
2319                          URL for the Sparkle feed (default:
2320                          https://www.xquartz.org/releases/sparkle/release.xml)
2321  --with-khronos-spec-dir=PATH
2322                          Path to Khronos OpenGL registry database files
2323                          (default: auto)
2324  --with-systemd-daemon   support systemd socket activation (default: auto)
2325  --with-xkb-bin-directory=DIR
2326                          Directory containing xkbcomp program (default: auto)
2327  --with-sha1=libc|libmd|libnettle|libgcrypt|libcrypto|libsha1|CommonCrypto|CryptoAPI
2328                          choose SHA1 implementation
2329
2330Some influential environment variables:
2331  CC          C compiler command
2332  CFLAGS      C compiler flags
2333  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2334              nonstandard directory <lib dir>
2335  LIBS        libraries to pass to the linker, e.g. -l<library>
2336  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2337              you have headers in a nonstandard directory <include dir>
2338  CPP         C preprocessor
2339  PKG_CONFIG  path to pkg-config utility
2340  PKG_CONFIG_PATH
2341              directories to add to pkg-config's search path
2342  PKG_CONFIG_LIBDIR
2343              path overriding pkg-config's built-in search path
2344  DOXYGEN     Path to doxygen command
2345  DOT         Path to the dot graphics utility
2346  XMLTO       Path to xmlto command
2347  FOP         Path to fop command
2348  XSLTPROC    Path to xsltproc command
2349  XORG_MALLOC_DEBUG_ENV
2350              Environment variables to enable memory checking in tests
2351  CCAS        assembler compiler command (defaults to CC)
2352  CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
2353  LT_SYS_LIBRARY_PATH
2354              User-defined run-time library search path.
2355  YACC        The `Yet Another Compiler Compiler' implementation to use.
2356              Defaults to the first program found out of: `bison -y', `byacc',
2357              `yacc'.
2358  YFLAGS      The list of arguments that will be passed by default to $YACC.
2359              This script will default YFLAGS to the empty string to avoid a
2360              default value of `-d' given by some make applications.
2361  PIXMAN_CFLAGS
2362              C compiler flags for PIXMAN, overriding pkg-config
2363  PIXMAN_LIBS linker flags for PIXMAN, overriding pkg-config
2364  SYSTEMD_DAEMON_CFLAGS
2365              C compiler flags for SYSTEMD_DAEMON, overriding pkg-config
2366  SYSTEMD_DAEMON_LIBS
2367              linker flags for SYSTEMD_DAEMON, overriding pkg-config
2368  UDEV_CFLAGS C compiler flags for UDEV, overriding pkg-config
2369  UDEV_LIBS   linker flags for UDEV, overriding pkg-config
2370  DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
2371  DBUS_LIBS   linker flags for DBUS, overriding pkg-config
2372  HAL_CFLAGS  C compiler flags for HAL, overriding pkg-config
2373  HAL_LIBS    linker flags for HAL, overriding pkg-config
2374  DRI2PROTO_CFLAGS
2375              C compiler flags for DRI2PROTO, overriding pkg-config
2376  DRI2PROTO_LIBS
2377              linker flags for DRI2PROTO, overriding pkg-config
2378  DRI3PROTO_CFLAGS
2379              C compiler flags for DRI3PROTO, overriding pkg-config
2380  DRI3PROTO_LIBS
2381              linker flags for DRI3PROTO, overriding pkg-config
2382  XSHMFENCE_CFLAGS
2383              C compiler flags for XSHMFENCE, overriding pkg-config
2384  XSHMFENCE_LIBS
2385              linker flags for XSHMFENCE, overriding pkg-config
2386  LIBDRM_CFLAGS
2387              C compiler flags for LIBDRM, overriding pkg-config
2388  LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config
2389  XLIB_CFLAGS C compiler flags for XLIB, overriding pkg-config
2390  XLIB_LIBS   linker flags for XLIB, overriding pkg-config
2391  GL_CFLAGS   C compiler flags for GL, overriding pkg-config
2392  GL_LIBS     linker flags for GL, overriding pkg-config
2393  SELINUX_CFLAGS
2394              C compiler flags for SELINUX, overriding pkg-config
2395  SELINUX_LIBS
2396              linker flags for SELINUX, overriding pkg-config
2397  XDMCP_CFLAGS
2398              C compiler flags for XDMCP, overriding pkg-config
2399  XDMCP_LIBS  linker flags for XDMCP, overriding pkg-config
2400  LIBSHA1_CFLAGS
2401              C compiler flags for LIBSHA1, overriding pkg-config
2402  LIBSHA1_LIBS
2403              linker flags for LIBSHA1, overriding pkg-config
2404  OPENSSL_CFLAGS
2405              C compiler flags for OPENSSL, overriding pkg-config
2406  OPENSSL_LIBS
2407              linker flags for OPENSSL, overriding pkg-config
2408  XSERVERCFLAGS_CFLAGS
2409              C compiler flags for XSERVERCFLAGS, overriding pkg-config
2410  XSERVERCFLAGS_LIBS
2411              linker flags for XSERVERCFLAGS, overriding pkg-config
2412  XSERVERLIBS_CFLAGS
2413              C compiler flags for XSERVERLIBS, overriding pkg-config
2414  XSERVERLIBS_LIBS
2415              linker flags for XSERVERLIBS, overriding pkg-config
2416  LIBUNWIND_CFLAGS
2417              C compiler flags for LIBUNWIND, overriding pkg-config
2418  LIBUNWIND_LIBS
2419              linker flags for LIBUNWIND, overriding pkg-config
2420  XNESTMODULES_CFLAGS
2421              C compiler flags for XNESTMODULES, overriding pkg-config
2422  XNESTMODULES_LIBS
2423              linker flags for XNESTMODULES, overriding pkg-config
2424  PCIACCESS_CFLAGS
2425              C compiler flags for PCIACCESS, overriding pkg-config
2426  PCIACCESS_LIBS
2427              linker flags for PCIACCESS, overriding pkg-config
2428  DGA_CFLAGS  C compiler flags for DGA, overriding pkg-config
2429  DGA_LIBS    linker flags for DGA, overriding pkg-config
2430  XORG_MODULES_CFLAGS
2431              C compiler flags for XORG_MODULES, overriding pkg-config
2432  XORG_MODULES_LIBS
2433              linker flags for XORG_MODULES, overriding pkg-config
2434  GLAMOR_CFLAGS
2435              C compiler flags for GLAMOR, overriding pkg-config
2436  GLAMOR_LIBS linker flags for GLAMOR, overriding pkg-config
2437  GBM_CFLAGS  C compiler flags for GBM, overriding pkg-config
2438  GBM_LIBS    linker flags for GBM, overriding pkg-config
2439  XWINMODULES_CFLAGS
2440              C compiler flags for XWINMODULES, overriding pkg-config
2441  XWINMODULES_LIBS
2442              linker flags for XWINMODULES, overriding pkg-config
2443  WINDOWSWM_CFLAGS
2444              C compiler flags for WINDOWSWM, overriding pkg-config
2445  WINDOWSWM_LIBS
2446              linker flags for WINDOWSWM, overriding pkg-config
2447  WINDOWSDRI_CFLAGS
2448              C compiler flags for WINDOWSDRI, overriding pkg-config
2449  WINDOWSDRI_LIBS
2450              linker flags for WINDOWSDRI, overriding pkg-config
2451  KHRONOS_OPENGL_REGISTRY_CFLAGS
2452              C compiler flags for KHRONOS_OPENGL_REGISTRY, overriding
2453              pkg-config
2454  KHRONOS_OPENGL_REGISTRY_LIBS
2455              linker flags for KHRONOS_OPENGL_REGISTRY, overriding pkg-config
2456  XPBPROXY_CFLAGS
2457              C compiler flags for XPBPROXY, overriding pkg-config
2458  XPBPROXY_LIBS
2459              linker flags for XPBPROXY, overriding pkg-config
2460  DMXMODULES_CFLAGS
2461              C compiler flags for DMXMODULES, overriding pkg-config
2462  DMXMODULES_LIBS
2463              linker flags for DMXMODULES, overriding pkg-config
2464  XDMXCONFIG_DEP_CFLAGS
2465              C compiler flags for XDMXCONFIG_DEP, overriding pkg-config
2466  XDMXCONFIG_DEP_LIBS
2467              linker flags for XDMXCONFIG_DEP, overriding pkg-config
2468  DMXEXAMPLES_DEP_CFLAGS
2469              C compiler flags for DMXEXAMPLES_DEP, overriding pkg-config
2470  DMXEXAMPLES_DEP_LIBS
2471              linker flags for DMXEXAMPLES_DEP, overriding pkg-config
2472  DMXXMUEXAMPLES_DEP_CFLAGS
2473              C compiler flags for DMXXMUEXAMPLES_DEP, overriding pkg-config
2474  DMXXMUEXAMPLES_DEP_LIBS
2475              linker flags for DMXXMUEXAMPLES_DEP, overriding pkg-config
2476  DMXXIEXAMPLES_DEP_CFLAGS
2477              C compiler flags for DMXXIEXAMPLES_DEP, overriding pkg-config
2478  DMXXIEXAMPLES_DEP_LIBS
2479              linker flags for DMXXIEXAMPLES_DEP, overriding pkg-config
2480  XTSTEXAMPLES_DEP_CFLAGS
2481              C compiler flags for XTSTEXAMPLES_DEP, overriding pkg-config
2482  XTSTEXAMPLES_DEP_LIBS
2483              linker flags for XTSTEXAMPLES_DEP, overriding pkg-config
2484  XRESEXAMPLES_DEP_CFLAGS
2485              C compiler flags for XRESEXAMPLES_DEP, overriding pkg-config
2486  XRESEXAMPLES_DEP_LIBS
2487              linker flags for XRESEXAMPLES_DEP, overriding pkg-config
2488  X11EXAMPLES_DEP_CFLAGS
2489              C compiler flags for X11EXAMPLES_DEP, overriding pkg-config
2490  X11EXAMPLES_DEP_LIBS
2491              linker flags for X11EXAMPLES_DEP, overriding pkg-config
2492  XEPHYR_CFLAGS
2493              C compiler flags for XEPHYR, overriding pkg-config
2494  XEPHYR_LIBS linker flags for XEPHYR, overriding pkg-config
2495  XWAYLANDMODULES_CFLAGS
2496              C compiler flags for XWAYLANDMODULES, overriding pkg-config
2497  XWAYLANDMODULES_LIBS
2498              linker flags for XWAYLANDMODULES, overriding pkg-config
2499  WAYLAND_EGLSTREAM_CFLAGS
2500              C compiler flags for WAYLAND_EGLSTREAM, overriding pkg-config
2501  WAYLAND_EGLSTREAM_LIBS
2502              linker flags for WAYLAND_EGLSTREAM, overriding pkg-config
2503  WAYLAND_SCANNER_CFLAGS
2504              C compiler flags for WAYLAND_SCANNER, overriding pkg-config
2505  WAYLAND_SCANNER_LIBS
2506              linker flags for WAYLAND_SCANNER, overriding pkg-config
2507
2508Use these variables to override the choices made by `configure' or to help
2509it to find libraries and programs with nonstandard names/locations.
2510
2511Report bugs to <https://gitlab.freedesktop.org/xorg/xserver/issues>.
2512_ACEOF
2513ac_status=$?
2514fi
2515
2516if test "$ac_init_help" = "recursive"; then
2517  # If there are subdirs, report their specific --help.
2518  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2519    test -d "$ac_dir" ||
2520      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2521      continue
2522    ac_builddir=.
2523
2524case "$ac_dir" in
2525.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2526*)
2527  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2528  # A ".." for each directory in $ac_dir_suffix.
2529  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2530  case $ac_top_builddir_sub in
2531  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2532  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2533  esac ;;
2534esac
2535ac_abs_top_builddir=$ac_pwd
2536ac_abs_builddir=$ac_pwd$ac_dir_suffix
2537# for backward compatibility:
2538ac_top_builddir=$ac_top_build_prefix
2539
2540case $srcdir in
2541  .)  # We are building in place.
2542    ac_srcdir=.
2543    ac_top_srcdir=$ac_top_builddir_sub
2544    ac_abs_top_srcdir=$ac_pwd ;;
2545  [\\/]* | ?:[\\/]* )  # Absolute name.
2546    ac_srcdir=$srcdir$ac_dir_suffix;
2547    ac_top_srcdir=$srcdir
2548    ac_abs_top_srcdir=$srcdir ;;
2549  *) # Relative name.
2550    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2551    ac_top_srcdir=$ac_top_build_prefix$srcdir
2552    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2553esac
2554ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2555
2556    cd "$ac_dir" || { ac_status=$?; continue; }
2557    # Check for guested configure.
2558    if test -f "$ac_srcdir/configure.gnu"; then
2559      echo &&
2560      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2561    elif test -f "$ac_srcdir/configure"; then
2562      echo &&
2563      $SHELL "$ac_srcdir/configure" --help=recursive
2564    else
2565      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2566    fi || ac_status=$?
2567    cd "$ac_pwd" || { ac_status=$?; break; }
2568  done
2569fi
2570
2571test -n "$ac_init_help" && exit $ac_status
2572if $ac_init_version; then
2573  cat <<\_ACEOF
2574xorg-server configure 1.20.13
2575generated by GNU Autoconf 2.69
2576
2577Copyright (C) 2012 Free Software Foundation, Inc.
2578This configure script is free software; the Free Software Foundation
2579gives unlimited permission to copy, distribute and modify it.
2580_ACEOF
2581  exit
2582fi
2583
2584## ------------------------ ##
2585## Autoconf initialization. ##
2586## ------------------------ ##
2587
2588# ac_fn_c_try_compile LINENO
2589# --------------------------
2590# Try to compile conftest.$ac_ext, and return whether this succeeded.
2591ac_fn_c_try_compile ()
2592{
2593  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2594  rm -f conftest.$ac_objext
2595  if { { ac_try="$ac_compile"
2596case "(($ac_try" in
2597  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2598  *) ac_try_echo=$ac_try;;
2599esac
2600eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2601$as_echo "$ac_try_echo"; } >&5
2602  (eval "$ac_compile") 2>conftest.err
2603  ac_status=$?
2604  if test -s conftest.err; then
2605    grep -v '^ *+' conftest.err >conftest.er1
2606    cat conftest.er1 >&5
2607    mv -f conftest.er1 conftest.err
2608  fi
2609  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2610  test $ac_status = 0; } && {
2611	 test -z "$ac_c_werror_flag" ||
2612	 test ! -s conftest.err
2613       } && test -s conftest.$ac_objext; then :
2614  ac_retval=0
2615else
2616  $as_echo "$as_me: failed program was:" >&5
2617sed 's/^/| /' conftest.$ac_ext >&5
2618
2619	ac_retval=1
2620fi
2621  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2622  as_fn_set_status $ac_retval
2623
2624} # ac_fn_c_try_compile
2625
2626# ac_fn_c_try_cpp LINENO
2627# ----------------------
2628# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2629ac_fn_c_try_cpp ()
2630{
2631  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2632  if { { ac_try="$ac_cpp conftest.$ac_ext"
2633case "(($ac_try" in
2634  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2635  *) ac_try_echo=$ac_try;;
2636esac
2637eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2638$as_echo "$ac_try_echo"; } >&5
2639  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2640  ac_status=$?
2641  if test -s conftest.err; then
2642    grep -v '^ *+' conftest.err >conftest.er1
2643    cat conftest.er1 >&5
2644    mv -f conftest.er1 conftest.err
2645  fi
2646  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2647  test $ac_status = 0; } > conftest.i && {
2648	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2649	 test ! -s conftest.err
2650       }; then :
2651  ac_retval=0
2652else
2653  $as_echo "$as_me: failed program was:" >&5
2654sed 's/^/| /' conftest.$ac_ext >&5
2655
2656    ac_retval=1
2657fi
2658  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2659  as_fn_set_status $ac_retval
2660
2661} # ac_fn_c_try_cpp
2662
2663# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2664# -------------------------------------------------------
2665# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2666# the include files in INCLUDES and setting the cache variable VAR
2667# accordingly.
2668ac_fn_c_check_header_mongrel ()
2669{
2670  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2671  if eval \${$3+:} false; then :
2672  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2673$as_echo_n "checking for $2... " >&6; }
2674if eval \${$3+:} false; then :
2675  $as_echo_n "(cached) " >&6
2676fi
2677eval ac_res=\$$3
2678	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2679$as_echo "$ac_res" >&6; }
2680else
2681  # Is the header compilable?
2682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2683$as_echo_n "checking $2 usability... " >&6; }
2684cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2685/* end confdefs.h.  */
2686$4
2687#include <$2>
2688_ACEOF
2689if ac_fn_c_try_compile "$LINENO"; then :
2690  ac_header_compiler=yes
2691else
2692  ac_header_compiler=no
2693fi
2694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2696$as_echo "$ac_header_compiler" >&6; }
2697
2698# Is the header present?
2699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2700$as_echo_n "checking $2 presence... " >&6; }
2701cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2702/* end confdefs.h.  */
2703#include <$2>
2704_ACEOF
2705if ac_fn_c_try_cpp "$LINENO"; then :
2706  ac_header_preproc=yes
2707else
2708  ac_header_preproc=no
2709fi
2710rm -f conftest.err conftest.i conftest.$ac_ext
2711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2712$as_echo "$ac_header_preproc" >&6; }
2713
2714# So?  What about this header?
2715case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2716  yes:no: )
2717    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2718$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2719    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2720$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2721    ;;
2722  no:yes:* )
2723    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2724$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2725    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2726$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2727    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2728$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2729    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2730$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2731    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2732$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2733( $as_echo "## ----------------------------------------------------------------- ##
2734## Report this to https://gitlab.freedesktop.org/xorg/xserver/issues ##
2735## ----------------------------------------------------------------- ##"
2736     ) | sed "s/^/$as_me: WARNING:     /" >&2
2737    ;;
2738esac
2739  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2740$as_echo_n "checking for $2... " >&6; }
2741if eval \${$3+:} false; then :
2742  $as_echo_n "(cached) " >&6
2743else
2744  eval "$3=\$ac_header_compiler"
2745fi
2746eval ac_res=\$$3
2747	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2748$as_echo "$ac_res" >&6; }
2749fi
2750  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2751
2752} # ac_fn_c_check_header_mongrel
2753
2754# ac_fn_c_try_run LINENO
2755# ----------------------
2756# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2757# that executables *can* be run.
2758ac_fn_c_try_run ()
2759{
2760  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2761  if { { ac_try="$ac_link"
2762case "(($ac_try" in
2763  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2764  *) ac_try_echo=$ac_try;;
2765esac
2766eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2767$as_echo "$ac_try_echo"; } >&5
2768  (eval "$ac_link") 2>&5
2769  ac_status=$?
2770  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2771  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2772  { { case "(($ac_try" in
2773  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2774  *) ac_try_echo=$ac_try;;
2775esac
2776eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2777$as_echo "$ac_try_echo"; } >&5
2778  (eval "$ac_try") 2>&5
2779  ac_status=$?
2780  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2781  test $ac_status = 0; }; }; then :
2782  ac_retval=0
2783else
2784  $as_echo "$as_me: program exited with status $ac_status" >&5
2785       $as_echo "$as_me: failed program was:" >&5
2786sed 's/^/| /' conftest.$ac_ext >&5
2787
2788       ac_retval=$ac_status
2789fi
2790  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2791  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2792  as_fn_set_status $ac_retval
2793
2794} # ac_fn_c_try_run
2795
2796# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2797# -------------------------------------------------------
2798# Tests whether HEADER exists and can be compiled using the include files in
2799# INCLUDES, setting the cache variable VAR accordingly.
2800ac_fn_c_check_header_compile ()
2801{
2802  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2803  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2804$as_echo_n "checking for $2... " >&6; }
2805if eval \${$3+:} false; then :
2806  $as_echo_n "(cached) " >&6
2807else
2808  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2809/* end confdefs.h.  */
2810$4
2811#include <$2>
2812_ACEOF
2813if ac_fn_c_try_compile "$LINENO"; then :
2814  eval "$3=yes"
2815else
2816  eval "$3=no"
2817fi
2818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2819fi
2820eval ac_res=\$$3
2821	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2822$as_echo "$ac_res" >&6; }
2823  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2824
2825} # ac_fn_c_check_header_compile
2826
2827# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2828# ---------------------------------------------
2829# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2830# accordingly.
2831ac_fn_c_check_decl ()
2832{
2833  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2834  as_decl_name=`echo $2|sed 's/ *(.*//'`
2835  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2836  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2837$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2838if eval \${$3+:} false; then :
2839  $as_echo_n "(cached) " >&6
2840else
2841  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2842/* end confdefs.h.  */
2843$4
2844int
2845main ()
2846{
2847#ifndef $as_decl_name
2848#ifdef __cplusplus
2849  (void) $as_decl_use;
2850#else
2851  (void) $as_decl_name;
2852#endif
2853#endif
2854
2855  ;
2856  return 0;
2857}
2858_ACEOF
2859if ac_fn_c_try_compile "$LINENO"; then :
2860  eval "$3=yes"
2861else
2862  eval "$3=no"
2863fi
2864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2865fi
2866eval ac_res=\$$3
2867	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2868$as_echo "$ac_res" >&6; }
2869  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2870
2871} # ac_fn_c_check_decl
2872
2873# ac_fn_c_try_link LINENO
2874# -----------------------
2875# Try to link conftest.$ac_ext, and return whether this succeeded.
2876ac_fn_c_try_link ()
2877{
2878  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2879  rm -f conftest.$ac_objext conftest$ac_exeext
2880  if { { ac_try="$ac_link"
2881case "(($ac_try" in
2882  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2883  *) ac_try_echo=$ac_try;;
2884esac
2885eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2886$as_echo "$ac_try_echo"; } >&5
2887  (eval "$ac_link") 2>conftest.err
2888  ac_status=$?
2889  if test -s conftest.err; then
2890    grep -v '^ *+' conftest.err >conftest.er1
2891    cat conftest.er1 >&5
2892    mv -f conftest.er1 conftest.err
2893  fi
2894  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2895  test $ac_status = 0; } && {
2896	 test -z "$ac_c_werror_flag" ||
2897	 test ! -s conftest.err
2898       } && test -s conftest$ac_exeext && {
2899	 test "$cross_compiling" = yes ||
2900	 test -x conftest$ac_exeext
2901       }; then :
2902  ac_retval=0
2903else
2904  $as_echo "$as_me: failed program was:" >&5
2905sed 's/^/| /' conftest.$ac_ext >&5
2906
2907	ac_retval=1
2908fi
2909  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2910  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2911  # interfere with the next link command; also delete a directory that is
2912  # left behind by Apple's compiler.  We do this before executing the actions.
2913  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2914  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2915  as_fn_set_status $ac_retval
2916
2917} # ac_fn_c_try_link
2918
2919# ac_fn_c_check_func LINENO FUNC VAR
2920# ----------------------------------
2921# Tests whether FUNC exists, setting the cache variable VAR accordingly
2922ac_fn_c_check_func ()
2923{
2924  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2925  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2926$as_echo_n "checking for $2... " >&6; }
2927if eval \${$3+:} false; then :
2928  $as_echo_n "(cached) " >&6
2929else
2930  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2931/* end confdefs.h.  */
2932/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2933   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2934#define $2 innocuous_$2
2935
2936/* System header to define __stub macros and hopefully few prototypes,
2937    which can conflict with char $2 (); below.
2938    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2939    <limits.h> exists even on freestanding compilers.  */
2940
2941#ifdef __STDC__
2942# include <limits.h>
2943#else
2944# include <assert.h>
2945#endif
2946
2947#undef $2
2948
2949/* Override any GCC internal prototype to avoid an error.
2950   Use char because int might match the return type of a GCC
2951   builtin and then its argument prototype would still apply.  */
2952#ifdef __cplusplus
2953extern "C"
2954#endif
2955char $2 ();
2956/* The GNU C library defines this for functions which it implements
2957    to always fail with ENOSYS.  Some functions are actually named
2958    something starting with __ and the normal name is an alias.  */
2959#if defined __stub_$2 || defined __stub___$2
2960choke me
2961#endif
2962
2963int
2964main ()
2965{
2966return $2 ();
2967  ;
2968  return 0;
2969}
2970_ACEOF
2971if ac_fn_c_try_link "$LINENO"; then :
2972  eval "$3=yes"
2973else
2974  eval "$3=no"
2975fi
2976rm -f core conftest.err conftest.$ac_objext \
2977    conftest$ac_exeext conftest.$ac_ext
2978fi
2979eval ac_res=\$$3
2980	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2981$as_echo "$ac_res" >&6; }
2982  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2983
2984} # ac_fn_c_check_func
2985
2986# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2987# --------------------------------------------
2988# Tries to find the compile-time value of EXPR in a program that includes
2989# INCLUDES, setting VAR accordingly. Returns whether the value could be
2990# computed
2991ac_fn_c_compute_int ()
2992{
2993  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2994  if test "$cross_compiling" = yes; then
2995    # Depending upon the size, compute the lo and hi bounds.
2996cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2997/* end confdefs.h.  */
2998$4
2999int
3000main ()
3001{
3002static int test_array [1 - 2 * !(($2) >= 0)];
3003test_array [0] = 0;
3004return test_array [0];
3005
3006  ;
3007  return 0;
3008}
3009_ACEOF
3010if ac_fn_c_try_compile "$LINENO"; then :
3011  ac_lo=0 ac_mid=0
3012  while :; do
3013    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3014/* end confdefs.h.  */
3015$4
3016int
3017main ()
3018{
3019static int test_array [1 - 2 * !(($2) <= $ac_mid)];
3020test_array [0] = 0;
3021return test_array [0];
3022
3023  ;
3024  return 0;
3025}
3026_ACEOF
3027if ac_fn_c_try_compile "$LINENO"; then :
3028  ac_hi=$ac_mid; break
3029else
3030  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
3031			if test $ac_lo -le $ac_mid; then
3032			  ac_lo= ac_hi=
3033			  break
3034			fi
3035			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
3036fi
3037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3038  done
3039else
3040  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3041/* end confdefs.h.  */
3042$4
3043int
3044main ()
3045{
3046static int test_array [1 - 2 * !(($2) < 0)];
3047test_array [0] = 0;
3048return test_array [0];
3049
3050  ;
3051  return 0;
3052}
3053_ACEOF
3054if ac_fn_c_try_compile "$LINENO"; then :
3055  ac_hi=-1 ac_mid=-1
3056  while :; do
3057    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3058/* end confdefs.h.  */
3059$4
3060int
3061main ()
3062{
3063static int test_array [1 - 2 * !(($2) >= $ac_mid)];
3064test_array [0] = 0;
3065return test_array [0];
3066
3067  ;
3068  return 0;
3069}
3070_ACEOF
3071if ac_fn_c_try_compile "$LINENO"; then :
3072  ac_lo=$ac_mid; break
3073else
3074  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
3075			if test $ac_mid -le $ac_hi; then
3076			  ac_lo= ac_hi=
3077			  break
3078			fi
3079			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
3080fi
3081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3082  done
3083else
3084  ac_lo= ac_hi=
3085fi
3086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3087fi
3088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3089# Binary search between lo and hi bounds.
3090while test "x$ac_lo" != "x$ac_hi"; do
3091  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
3092  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3093/* end confdefs.h.  */
3094$4
3095int
3096main ()
3097{
3098static int test_array [1 - 2 * !(($2) <= $ac_mid)];
3099test_array [0] = 0;
3100return test_array [0];
3101
3102  ;
3103  return 0;
3104}
3105_ACEOF
3106if ac_fn_c_try_compile "$LINENO"; then :
3107  ac_hi=$ac_mid
3108else
3109  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
3110fi
3111rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3112done
3113case $ac_lo in #((
3114?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
3115'') ac_retval=1 ;;
3116esac
3117  else
3118    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3119/* end confdefs.h.  */
3120$4
3121static long int longval () { return $2; }
3122static unsigned long int ulongval () { return $2; }
3123#include <stdio.h>
3124#include <stdlib.h>
3125int
3126main ()
3127{
3128
3129  FILE *f = fopen ("conftest.val", "w");
3130  if (! f)
3131    return 1;
3132  if (($2) < 0)
3133    {
3134      long int i = longval ();
3135      if (i != ($2))
3136	return 1;
3137      fprintf (f, "%ld", i);
3138    }
3139  else
3140    {
3141      unsigned long int i = ulongval ();
3142      if (i != ($2))
3143	return 1;
3144      fprintf (f, "%lu", i);
3145    }
3146  /* Do not output a trailing newline, as this causes \r\n confusion
3147     on some platforms.  */
3148  return ferror (f) || fclose (f) != 0;
3149
3150  ;
3151  return 0;
3152}
3153_ACEOF
3154if ac_fn_c_try_run "$LINENO"; then :
3155  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
3156else
3157  ac_retval=1
3158fi
3159rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3160  conftest.$ac_objext conftest.beam conftest.$ac_ext
3161rm -f conftest.val
3162
3163  fi
3164  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3165  as_fn_set_status $ac_retval
3166
3167} # ac_fn_c_compute_int
3168
3169# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
3170# -------------------------------------------
3171# Tests whether TYPE exists after having included INCLUDES, setting cache
3172# variable VAR accordingly.
3173ac_fn_c_check_type ()
3174{
3175  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3176  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3177$as_echo_n "checking for $2... " >&6; }
3178if eval \${$3+:} false; then :
3179  $as_echo_n "(cached) " >&6
3180else
3181  eval "$3=no"
3182  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3183/* end confdefs.h.  */
3184$4
3185int
3186main ()
3187{
3188if (sizeof ($2))
3189	 return 0;
3190  ;
3191  return 0;
3192}
3193_ACEOF
3194if ac_fn_c_try_compile "$LINENO"; then :
3195  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3196/* end confdefs.h.  */
3197$4
3198int
3199main ()
3200{
3201if (sizeof (($2)))
3202	    return 0;
3203  ;
3204  return 0;
3205}
3206_ACEOF
3207if ac_fn_c_try_compile "$LINENO"; then :
3208
3209else
3210  eval "$3=yes"
3211fi
3212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3213fi
3214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3215fi
3216eval ac_res=\$$3
3217	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3218$as_echo "$ac_res" >&6; }
3219  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3220
3221} # ac_fn_c_check_type
3222
3223# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
3224# ----------------------------------------------------
3225# Tries to find if the field MEMBER exists in type AGGR, after including
3226# INCLUDES, setting cache variable VAR accordingly.
3227ac_fn_c_check_member ()
3228{
3229  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3230  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
3231$as_echo_n "checking for $2.$3... " >&6; }
3232if eval \${$4+:} false; then :
3233  $as_echo_n "(cached) " >&6
3234else
3235  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3236/* end confdefs.h.  */
3237$5
3238int
3239main ()
3240{
3241static $2 ac_aggr;
3242if (ac_aggr.$3)
3243return 0;
3244  ;
3245  return 0;
3246}
3247_ACEOF
3248if ac_fn_c_try_compile "$LINENO"; then :
3249  eval "$4=yes"
3250else
3251  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3252/* end confdefs.h.  */
3253$5
3254int
3255main ()
3256{
3257static $2 ac_aggr;
3258if (sizeof ac_aggr.$3)
3259return 0;
3260  ;
3261  return 0;
3262}
3263_ACEOF
3264if ac_fn_c_try_compile "$LINENO"; then :
3265  eval "$4=yes"
3266else
3267  eval "$4=no"
3268fi
3269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3270fi
3271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3272fi
3273eval ac_res=\$$4
3274	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3275$as_echo "$ac_res" >&6; }
3276  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3277
3278} # ac_fn_c_check_member
3279cat >config.log <<_ACEOF
3280This file contains any messages produced by compilers while
3281running configure, to aid debugging if configure makes a mistake.
3282
3283It was created by xorg-server $as_me 1.20.13, which was
3284generated by GNU Autoconf 2.69.  Invocation command line was
3285
3286  $ $0 $@
3287
3288_ACEOF
3289exec 5>>config.log
3290{
3291cat <<_ASUNAME
3292## --------- ##
3293## Platform. ##
3294## --------- ##
3295
3296hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3297uname -m = `(uname -m) 2>/dev/null || echo unknown`
3298uname -r = `(uname -r) 2>/dev/null || echo unknown`
3299uname -s = `(uname -s) 2>/dev/null || echo unknown`
3300uname -v = `(uname -v) 2>/dev/null || echo unknown`
3301
3302/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3303/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
3304
3305/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
3306/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
3307/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3308/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
3309/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
3310/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
3311/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
3312
3313_ASUNAME
3314
3315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3316for as_dir in $PATH
3317do
3318  IFS=$as_save_IFS
3319  test -z "$as_dir" && as_dir=.
3320    $as_echo "PATH: $as_dir"
3321  done
3322IFS=$as_save_IFS
3323
3324} >&5
3325
3326cat >&5 <<_ACEOF
3327
3328
3329## ----------- ##
3330## Core tests. ##
3331## ----------- ##
3332
3333_ACEOF
3334
3335
3336# Keep a trace of the command line.
3337# Strip out --no-create and --no-recursion so they do not pile up.
3338# Strip out --silent because we don't want to record it for future runs.
3339# Also quote any args containing shell meta-characters.
3340# Make two passes to allow for proper duplicate-argument suppression.
3341ac_configure_args=
3342ac_configure_args0=
3343ac_configure_args1=
3344ac_must_keep_next=false
3345for ac_pass in 1 2
3346do
3347  for ac_arg
3348  do
3349    case $ac_arg in
3350    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3351    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3352    | -silent | --silent | --silen | --sile | --sil)
3353      continue ;;
3354    *\'*)
3355      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3356    esac
3357    case $ac_pass in
3358    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3359    2)
3360      as_fn_append ac_configure_args1 " '$ac_arg'"
3361      if test $ac_must_keep_next = true; then
3362	ac_must_keep_next=false # Got value, back to normal.
3363      else
3364	case $ac_arg in
3365	  *=* | --config-cache | -C | -disable-* | --disable-* \
3366	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3367	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3368	  | -with-* | --with-* | -without-* | --without-* | --x)
3369	    case "$ac_configure_args0 " in
3370	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3371	    esac
3372	    ;;
3373	  -* ) ac_must_keep_next=true ;;
3374	esac
3375      fi
3376      as_fn_append ac_configure_args " '$ac_arg'"
3377      ;;
3378    esac
3379  done
3380done
3381{ ac_configure_args0=; unset ac_configure_args0;}
3382{ ac_configure_args1=; unset ac_configure_args1;}
3383
3384# When interrupted or exit'd, cleanup temporary files, and complete
3385# config.log.  We remove comments because anyway the quotes in there
3386# would cause problems or look ugly.
3387# WARNING: Use '\'' to represent an apostrophe within the trap.
3388# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3389trap 'exit_status=$?
3390  # Save into config.log some information that might help in debugging.
3391  {
3392    echo
3393
3394    $as_echo "## ---------------- ##
3395## Cache variables. ##
3396## ---------------- ##"
3397    echo
3398    # The following way of writing the cache mishandles newlines in values,
3399(
3400  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3401    eval ac_val=\$$ac_var
3402    case $ac_val in #(
3403    *${as_nl}*)
3404      case $ac_var in #(
3405      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3406$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3407      esac
3408      case $ac_var in #(
3409      _ | IFS | as_nl) ;; #(
3410      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3411      *) { eval $ac_var=; unset $ac_var;} ;;
3412      esac ;;
3413    esac
3414  done
3415  (set) 2>&1 |
3416    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3417    *${as_nl}ac_space=\ *)
3418      sed -n \
3419	"s/'\''/'\''\\\\'\'''\''/g;
3420	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3421      ;; #(
3422    *)
3423      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3424      ;;
3425    esac |
3426    sort
3427)
3428    echo
3429
3430    $as_echo "## ----------------- ##
3431## Output variables. ##
3432## ----------------- ##"
3433    echo
3434    for ac_var in $ac_subst_vars
3435    do
3436      eval ac_val=\$$ac_var
3437      case $ac_val in
3438      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3439      esac
3440      $as_echo "$ac_var='\''$ac_val'\''"
3441    done | sort
3442    echo
3443
3444    if test -n "$ac_subst_files"; then
3445      $as_echo "## ------------------- ##
3446## File substitutions. ##
3447## ------------------- ##"
3448      echo
3449      for ac_var in $ac_subst_files
3450      do
3451	eval ac_val=\$$ac_var
3452	case $ac_val in
3453	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3454	esac
3455	$as_echo "$ac_var='\''$ac_val'\''"
3456      done | sort
3457      echo
3458    fi
3459
3460    if test -s confdefs.h; then
3461      $as_echo "## ----------- ##
3462## confdefs.h. ##
3463## ----------- ##"
3464      echo
3465      cat confdefs.h
3466      echo
3467    fi
3468    test "$ac_signal" != 0 &&
3469      $as_echo "$as_me: caught signal $ac_signal"
3470    $as_echo "$as_me: exit $exit_status"
3471  } >&5
3472  rm -f core *.core core.conftest.* &&
3473    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3474    exit $exit_status
3475' 0
3476for ac_signal in 1 2 13 15; do
3477  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3478done
3479ac_signal=0
3480
3481# confdefs.h avoids OS command line length limits that DEFS can exceed.
3482rm -f -r conftest* confdefs.h
3483
3484$as_echo "/* confdefs.h */" > confdefs.h
3485
3486# Predefined preprocessor variables.
3487
3488cat >>confdefs.h <<_ACEOF
3489#define PACKAGE_NAME "$PACKAGE_NAME"
3490_ACEOF
3491
3492cat >>confdefs.h <<_ACEOF
3493#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3494_ACEOF
3495
3496cat >>confdefs.h <<_ACEOF
3497#define PACKAGE_VERSION "$PACKAGE_VERSION"
3498_ACEOF
3499
3500cat >>confdefs.h <<_ACEOF
3501#define PACKAGE_STRING "$PACKAGE_STRING"
3502_ACEOF
3503
3504cat >>confdefs.h <<_ACEOF
3505#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3506_ACEOF
3507
3508cat >>confdefs.h <<_ACEOF
3509#define PACKAGE_URL "$PACKAGE_URL"
3510_ACEOF
3511
3512
3513# Let the site file select an alternate cache file if it wants to.
3514# Prefer an explicitly selected file to automatically selected ones.
3515ac_site_file1=NONE
3516ac_site_file2=NONE
3517if test -n "$CONFIG_SITE"; then
3518  # We do not want a PATH search for config.site.
3519  case $CONFIG_SITE in #((
3520    -*)  ac_site_file1=./$CONFIG_SITE;;
3521    */*) ac_site_file1=$CONFIG_SITE;;
3522    *)   ac_site_file1=./$CONFIG_SITE;;
3523  esac
3524elif test "x$prefix" != xNONE; then
3525  ac_site_file1=$prefix/share/config.site
3526  ac_site_file2=$prefix/etc/config.site
3527else
3528  ac_site_file1=$ac_default_prefix/share/config.site
3529  ac_site_file2=$ac_default_prefix/etc/config.site
3530fi
3531for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3532do
3533  test "x$ac_site_file" = xNONE && continue
3534  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3535    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3536$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3537    sed 's/^/| /' "$ac_site_file" >&5
3538    . "$ac_site_file" \
3539      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3540$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3541as_fn_error $? "failed to load site script $ac_site_file
3542See \`config.log' for more details" "$LINENO" 5; }
3543  fi
3544done
3545
3546if test -r "$cache_file"; then
3547  # Some versions of bash will fail to source /dev/null (special files
3548  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3549  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3550    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3551$as_echo "$as_me: loading cache $cache_file" >&6;}
3552    case $cache_file in
3553      [\\/]* | ?:[\\/]* ) . "$cache_file";;
3554      *)                      . "./$cache_file";;
3555    esac
3556  fi
3557else
3558  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3559$as_echo "$as_me: creating cache $cache_file" >&6;}
3560  >$cache_file
3561fi
3562
3563# Check that the precious variables saved in the cache have kept the same
3564# value.
3565ac_cache_corrupted=false
3566for ac_var in $ac_precious_vars; do
3567  eval ac_old_set=\$ac_cv_env_${ac_var}_set
3568  eval ac_new_set=\$ac_env_${ac_var}_set
3569  eval ac_old_val=\$ac_cv_env_${ac_var}_value
3570  eval ac_new_val=\$ac_env_${ac_var}_value
3571  case $ac_old_set,$ac_new_set in
3572    set,)
3573      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3574$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3575      ac_cache_corrupted=: ;;
3576    ,set)
3577      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3578$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3579      ac_cache_corrupted=: ;;
3580    ,);;
3581    *)
3582      if test "x$ac_old_val" != "x$ac_new_val"; then
3583	# differences in whitespace do not lead to failure.
3584	ac_old_val_w=`echo x $ac_old_val`
3585	ac_new_val_w=`echo x $ac_new_val`
3586	if test "$ac_old_val_w" != "$ac_new_val_w"; then
3587	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3588$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3589	  ac_cache_corrupted=:
3590	else
3591	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3592$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3593	  eval $ac_var=\$ac_old_val
3594	fi
3595	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3596$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3597	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3598$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3599      fi;;
3600  esac
3601  # Pass precious variables to config.status.
3602  if test "$ac_new_set" = set; then
3603    case $ac_new_val in
3604    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3605    *) ac_arg=$ac_var=$ac_new_val ;;
3606    esac
3607    case " $ac_configure_args " in
3608      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3609      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3610    esac
3611  fi
3612done
3613if $ac_cache_corrupted; then
3614  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3615$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3616  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3617$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3618  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3619fi
3620## -------------------- ##
3621## Main body of script. ##
3622## -------------------- ##
3623
3624ac_ext=c
3625ac_cpp='$CPP $CPPFLAGS'
3626ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3627ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3628ac_compiler_gnu=$ac_cv_c_compiler_gnu
3629
3630
3631RELEASE_DATE="2021-07-29"
3632RELEASE_NAME="Lemon Pepper Chicken"
3633
3634
3635am__api_version='1.16'
3636
3637ac_aux_dir=
3638for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3639  if test -f "$ac_dir/install-sh"; then
3640    ac_aux_dir=$ac_dir
3641    ac_install_sh="$ac_aux_dir/install-sh -c"
3642    break
3643  elif test -f "$ac_dir/install.sh"; then
3644    ac_aux_dir=$ac_dir
3645    ac_install_sh="$ac_aux_dir/install.sh -c"
3646    break
3647  elif test -f "$ac_dir/shtool"; then
3648    ac_aux_dir=$ac_dir
3649    ac_install_sh="$ac_aux_dir/shtool install -c"
3650    break
3651  fi
3652done
3653if test -z "$ac_aux_dir"; then
3654  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3655fi
3656
3657# These three variables are undocumented and unsupported,
3658# and are intended to be withdrawn in a future Autoconf release.
3659# They can cause serious problems if a builder's source tree is in a directory
3660# whose full name contains unusual characters.
3661ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3662ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3663ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3664
3665
3666# Find a good install program.  We prefer a C program (faster),
3667# so one script is as good as another.  But avoid the broken or
3668# incompatible versions:
3669# SysV /etc/install, /usr/sbin/install
3670# SunOS /usr/etc/install
3671# IRIX /sbin/install
3672# AIX /bin/install
3673# AmigaOS /C/install, which installs bootblocks on floppy discs
3674# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3675# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3676# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3677# OS/2's system install, which has a completely different semantic
3678# ./install, which can be erroneously created by make from ./install.sh.
3679# Reject install programs that cannot install multiple files.
3680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3681$as_echo_n "checking for a BSD-compatible install... " >&6; }
3682if test -z "$INSTALL"; then
3683if ${ac_cv_path_install+:} false; then :
3684  $as_echo_n "(cached) " >&6
3685else
3686  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3687for as_dir in $PATH
3688do
3689  IFS=$as_save_IFS
3690  test -z "$as_dir" && as_dir=.
3691    # Account for people who put trailing slashes in PATH elements.
3692case $as_dir/ in #((
3693  ./ | .// | /[cC]/* | \
3694  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3695  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3696  /usr/ucb/* ) ;;
3697  *)
3698    # OSF1 and SCO ODT 3.0 have their own names for install.
3699    # Don't use installbsd from OSF since it installs stuff as root
3700    # by default.
3701    for ac_prog in ginstall scoinst install; do
3702      for ac_exec_ext in '' $ac_executable_extensions; do
3703	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3704	  if test $ac_prog = install &&
3705	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3706	    # AIX install.  It has an incompatible calling convention.
3707	    :
3708	  elif test $ac_prog = install &&
3709	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3710	    # program-specific install script used by HP pwplus--don't use.
3711	    :
3712	  else
3713	    rm -rf conftest.one conftest.two conftest.dir
3714	    echo one > conftest.one
3715	    echo two > conftest.two
3716	    mkdir conftest.dir
3717	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3718	      test -s conftest.one && test -s conftest.two &&
3719	      test -s conftest.dir/conftest.one &&
3720	      test -s conftest.dir/conftest.two
3721	    then
3722	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3723	      break 3
3724	    fi
3725	  fi
3726	fi
3727      done
3728    done
3729    ;;
3730esac
3731
3732  done
3733IFS=$as_save_IFS
3734
3735rm -rf conftest.one conftest.two conftest.dir
3736
3737fi
3738  if test "${ac_cv_path_install+set}" = set; then
3739    INSTALL=$ac_cv_path_install
3740  else
3741    # As a last resort, use the slow shell script.  Don't cache a
3742    # value for INSTALL within a source directory, because that will
3743    # break other packages using the cache if that directory is
3744    # removed, or if the value is a relative name.
3745    INSTALL=$ac_install_sh
3746  fi
3747fi
3748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3749$as_echo "$INSTALL" >&6; }
3750
3751# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3752# It thinks the first close brace ends the variable substitution.
3753test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3754
3755test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3756
3757test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3758
3759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3760$as_echo_n "checking whether build environment is sane... " >&6; }
3761# Reject unsafe characters in $srcdir or the absolute working directory
3762# name.  Accept space and tab only in the latter.
3763am_lf='
3764'
3765case `pwd` in
3766  *[\\\"\#\$\&\'\`$am_lf]*)
3767    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3768esac
3769case $srcdir in
3770  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3771    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3772esac
3773
3774# Do 'set' in a subshell so we don't clobber the current shell's
3775# arguments.  Must try -L first in case configure is actually a
3776# symlink; some systems play weird games with the mod time of symlinks
3777# (eg FreeBSD returns the mod time of the symlink's containing
3778# directory).
3779if (
3780   am_has_slept=no
3781   for am_try in 1 2; do
3782     echo "timestamp, slept: $am_has_slept" > conftest.file
3783     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3784     if test "$*" = "X"; then
3785	# -L didn't work.
3786	set X `ls -t "$srcdir/configure" conftest.file`
3787     fi
3788     if test "$*" != "X $srcdir/configure conftest.file" \
3789	&& test "$*" != "X conftest.file $srcdir/configure"; then
3790
3791	# If neither matched, then we have a broken ls.  This can happen
3792	# if, for instance, CONFIG_SHELL is bash and it inherits a
3793	# broken ls alias from the environment.  This has actually
3794	# happened.  Such a system could not be considered "sane".
3795	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3796  alias in your environment" "$LINENO" 5
3797     fi
3798     if test "$2" = conftest.file || test $am_try -eq 2; then
3799       break
3800     fi
3801     # Just in case.
3802     sleep 1
3803     am_has_slept=yes
3804   done
3805   test "$2" = conftest.file
3806   )
3807then
3808   # Ok.
3809   :
3810else
3811   as_fn_error $? "newly created file is older than distributed files!
3812Check your system clock" "$LINENO" 5
3813fi
3814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3815$as_echo "yes" >&6; }
3816# If we didn't sleep, we still need to ensure time stamps of config.status and
3817# generated files are strictly newer.
3818am_sleep_pid=
3819if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3820  ( sleep 1 ) &
3821  am_sleep_pid=$!
3822fi
3823
3824rm -f conftest.file
3825
3826test "$program_prefix" != NONE &&
3827  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3828# Use a double $ so make ignores it.
3829test "$program_suffix" != NONE &&
3830  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3831# Double any \ or $.
3832# By default was `s,x,x', remove it if useless.
3833ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3834program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3835
3836# Expand $ac_aux_dir to an absolute path.
3837am_aux_dir=`cd "$ac_aux_dir" && pwd`
3838
3839if test x"${MISSING+set}" != xset; then
3840  MISSING="\${SHELL} '$am_aux_dir/missing'"
3841fi
3842# Use eval to expand $SHELL
3843if eval "$MISSING --is-lightweight"; then
3844  am_missing_run="$MISSING "
3845else
3846  am_missing_run=
3847  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3848$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3849fi
3850
3851if test x"${install_sh+set}" != xset; then
3852  case $am_aux_dir in
3853  *\ * | *\	*)
3854    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3855  *)
3856    install_sh="\${SHELL} $am_aux_dir/install-sh"
3857  esac
3858fi
3859
3860# Installed binaries are usually stripped using 'strip' when the user
3861# run "make install-strip".  However 'strip' might not be the right
3862# tool to use in cross-compilation environments, therefore Automake
3863# will honor the 'STRIP' environment variable to overrule this program.
3864if test "$cross_compiling" != no; then
3865  if test -n "$ac_tool_prefix"; then
3866  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3867set dummy ${ac_tool_prefix}strip; ac_word=$2
3868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3869$as_echo_n "checking for $ac_word... " >&6; }
3870if ${ac_cv_prog_STRIP+:} false; then :
3871  $as_echo_n "(cached) " >&6
3872else
3873  if test -n "$STRIP"; then
3874  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3875else
3876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3877for as_dir in $PATH
3878do
3879  IFS=$as_save_IFS
3880  test -z "$as_dir" && as_dir=.
3881    for ac_exec_ext in '' $ac_executable_extensions; do
3882  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3883    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3884    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3885    break 2
3886  fi
3887done
3888  done
3889IFS=$as_save_IFS
3890
3891fi
3892fi
3893STRIP=$ac_cv_prog_STRIP
3894if test -n "$STRIP"; then
3895  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3896$as_echo "$STRIP" >&6; }
3897else
3898  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3899$as_echo "no" >&6; }
3900fi
3901
3902
3903fi
3904if test -z "$ac_cv_prog_STRIP"; then
3905  ac_ct_STRIP=$STRIP
3906  # Extract the first word of "strip", so it can be a program name with args.
3907set dummy strip; ac_word=$2
3908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3909$as_echo_n "checking for $ac_word... " >&6; }
3910if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3911  $as_echo_n "(cached) " >&6
3912else
3913  if test -n "$ac_ct_STRIP"; then
3914  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3915else
3916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3917for as_dir in $PATH
3918do
3919  IFS=$as_save_IFS
3920  test -z "$as_dir" && as_dir=.
3921    for ac_exec_ext in '' $ac_executable_extensions; do
3922  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3923    ac_cv_prog_ac_ct_STRIP="strip"
3924    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3925    break 2
3926  fi
3927done
3928  done
3929IFS=$as_save_IFS
3930
3931fi
3932fi
3933ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3934if test -n "$ac_ct_STRIP"; then
3935  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3936$as_echo "$ac_ct_STRIP" >&6; }
3937else
3938  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3939$as_echo "no" >&6; }
3940fi
3941
3942  if test "x$ac_ct_STRIP" = x; then
3943    STRIP=":"
3944  else
3945    case $cross_compiling:$ac_tool_warned in
3946yes:)
3947{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3948$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3949ac_tool_warned=yes ;;
3950esac
3951    STRIP=$ac_ct_STRIP
3952  fi
3953else
3954  STRIP="$ac_cv_prog_STRIP"
3955fi
3956
3957fi
3958INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3959
3960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3961$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3962if test -z "$MKDIR_P"; then
3963  if ${ac_cv_path_mkdir+:} false; then :
3964  $as_echo_n "(cached) " >&6
3965else
3966  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3967for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3968do
3969  IFS=$as_save_IFS
3970  test -z "$as_dir" && as_dir=.
3971    for ac_prog in mkdir gmkdir; do
3972	 for ac_exec_ext in '' $ac_executable_extensions; do
3973	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3974	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3975	     'mkdir (GNU coreutils) '* | \
3976	     'mkdir (coreutils) '* | \
3977	     'mkdir (fileutils) '4.1*)
3978	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3979	       break 3;;
3980	   esac
3981	 done
3982       done
3983  done
3984IFS=$as_save_IFS
3985
3986fi
3987
3988  test -d ./--version && rmdir ./--version
3989  if test "${ac_cv_path_mkdir+set}" = set; then
3990    MKDIR_P="$ac_cv_path_mkdir -p"
3991  else
3992    # As a last resort, use the slow shell script.  Don't cache a
3993    # value for MKDIR_P within a source directory, because that will
3994    # break other packages using the cache if that directory is
3995    # removed, or if the value is a relative name.
3996    MKDIR_P="$ac_install_sh -d"
3997  fi
3998fi
3999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4000$as_echo "$MKDIR_P" >&6; }
4001
4002for ac_prog in gawk mawk nawk awk
4003do
4004  # Extract the first word of "$ac_prog", so it can be a program name with args.
4005set dummy $ac_prog; ac_word=$2
4006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4007$as_echo_n "checking for $ac_word... " >&6; }
4008if ${ac_cv_prog_AWK+:} false; then :
4009  $as_echo_n "(cached) " >&6
4010else
4011  if test -n "$AWK"; then
4012  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4013else
4014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4015for as_dir in $PATH
4016do
4017  IFS=$as_save_IFS
4018  test -z "$as_dir" && as_dir=.
4019    for ac_exec_ext in '' $ac_executable_extensions; do
4020  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4021    ac_cv_prog_AWK="$ac_prog"
4022    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4023    break 2
4024  fi
4025done
4026  done
4027IFS=$as_save_IFS
4028
4029fi
4030fi
4031AWK=$ac_cv_prog_AWK
4032if test -n "$AWK"; then
4033  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4034$as_echo "$AWK" >&6; }
4035else
4036  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4037$as_echo "no" >&6; }
4038fi
4039
4040
4041  test -n "$AWK" && break
4042done
4043
4044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4045$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4046set x ${MAKE-make}
4047ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4048if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4049  $as_echo_n "(cached) " >&6
4050else
4051  cat >conftest.make <<\_ACEOF
4052SHELL = /bin/sh
4053all:
4054	@echo '@@@%%%=$(MAKE)=@@@%%%'
4055_ACEOF
4056# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4057case `${MAKE-make} -f conftest.make 2>/dev/null` in
4058  *@@@%%%=?*=@@@%%%*)
4059    eval ac_cv_prog_make_${ac_make}_set=yes;;
4060  *)
4061    eval ac_cv_prog_make_${ac_make}_set=no;;
4062esac
4063rm -f conftest.make
4064fi
4065if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4066  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4067$as_echo "yes" >&6; }
4068  SET_MAKE=
4069else
4070  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4071$as_echo "no" >&6; }
4072  SET_MAKE="MAKE=${MAKE-make}"
4073fi
4074
4075rm -rf .tst 2>/dev/null
4076mkdir .tst 2>/dev/null
4077if test -d .tst; then
4078  am__leading_dot=.
4079else
4080  am__leading_dot=_
4081fi
4082rmdir .tst 2>/dev/null
4083
4084# Check whether --enable-silent-rules was given.
4085if test "${enable_silent_rules+set}" = set; then :
4086  enableval=$enable_silent_rules;
4087fi
4088
4089case $enable_silent_rules in # (((
4090  yes) AM_DEFAULT_VERBOSITY=0;;
4091   no) AM_DEFAULT_VERBOSITY=1;;
4092    *) AM_DEFAULT_VERBOSITY=1;;
4093esac
4094am_make=${MAKE-make}
4095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4096$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4097if ${am_cv_make_support_nested_variables+:} false; then :
4098  $as_echo_n "(cached) " >&6
4099else
4100  if $as_echo 'TRUE=$(BAR$(V))
4101BAR0=false
4102BAR1=true
4103V=1
4104am__doit:
4105	@$(TRUE)
4106.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4107  am_cv_make_support_nested_variables=yes
4108else
4109  am_cv_make_support_nested_variables=no
4110fi
4111fi
4112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4113$as_echo "$am_cv_make_support_nested_variables" >&6; }
4114if test $am_cv_make_support_nested_variables = yes; then
4115    AM_V='$(V)'
4116  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4117else
4118  AM_V=$AM_DEFAULT_VERBOSITY
4119  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4120fi
4121AM_BACKSLASH='\'
4122
4123if test "`cd $srcdir && pwd`" != "`pwd`"; then
4124  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4125  # is not polluted with repeated "-I."
4126  am__isrc=' -I$(srcdir)'
4127  # test to see if srcdir already configured
4128  if test -f $srcdir/config.status; then
4129    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4130  fi
4131fi
4132
4133# test whether we have cygpath
4134if test -z "$CYGPATH_W"; then
4135  if (cygpath --version) >/dev/null 2>/dev/null; then
4136    CYGPATH_W='cygpath -w'
4137  else
4138    CYGPATH_W=echo
4139  fi
4140fi
4141
4142
4143# Define the identity of the package.
4144 PACKAGE='xorg-server'
4145 VERSION='1.20.13'
4146
4147
4148cat >>confdefs.h <<_ACEOF
4149#define PACKAGE "$PACKAGE"
4150_ACEOF
4151
4152
4153cat >>confdefs.h <<_ACEOF
4154#define VERSION "$VERSION"
4155_ACEOF
4156
4157# Some tools Automake needs.
4158
4159ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4160
4161
4162AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4163
4164
4165AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4166
4167
4168AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4169
4170
4171MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4172
4173# For better backward compatibility.  To be removed once Automake 1.9.x
4174# dies out for good.  For more background, see:
4175# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4176# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4177mkdir_p='$(MKDIR_P)'
4178
4179# We need awk for the "check" target (and possibly the TAP driver).  The
4180# system "awk" is bad on some platforms.
4181# Always define AMTAR for backward compatibility.  Yes, it's still used
4182# in the wild :-(  We should find a proper way to deprecate it ...
4183AMTAR='$${TAR-tar}'
4184
4185
4186# We'll loop over all known methods to create a tar archive until one works.
4187_am_tools='gnutar  pax cpio none'
4188
4189am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4190
4191
4192
4193
4194
4195
4196# POSIX will say in a future version that running "rm -f" with no argument
4197# is OK; and we want to be able to make that assumption in our Makefile
4198# recipes.  So use an aggressive probe to check that the usage we want is
4199# actually supported "in the wild" to an acceptable degree.
4200# See automake bug#10828.
4201# To make any issue more visible, cause the running configure to be aborted
4202# by default if the 'rm' program in use doesn't match our expectations; the
4203# user can still override this though.
4204if rm -f && rm -fr && rm -rf; then : OK; else
4205  cat >&2 <<'END'
4206Oops!
4207
4208Your 'rm' program seems unable to run without file operands specified
4209on the command line, even when the '-f' option is present.  This is contrary
4210to the behaviour of most rm programs out there, and not conforming with
4211the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4212
4213Please tell bug-automake@gnu.org about your system, including the value
4214of your $PATH and any error possibly output before this message.  This
4215can help us improve future automake versions.
4216
4217END
4218  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4219    echo 'Configuration will proceed anyway, since you have set the' >&2
4220    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4221    echo >&2
4222  else
4223    cat >&2 <<'END'
4224Aborting the configuration process, to ensure you take notice of the issue.
4225
4226You can download and install GNU coreutils to get an 'rm' implementation
4227that behaves properly: <https://www.gnu.org/software/coreutils/>.
4228
4229If you want to complete the configuration process using your problematic
4230'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4231to "yes", and re-run configure.
4232
4233END
4234    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4235  fi
4236fi
4237
4238DEPDIR="${am__leading_dot}deps"
4239
4240ac_config_commands="$ac_config_commands depfiles"
4241
4242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4243$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
4244cat > confinc.mk << 'END'
4245am__doit:
4246	@echo this is the am__doit target >confinc.out
4247.PHONY: am__doit
4248END
4249am__include="#"
4250am__quote=
4251# BSD make does it like this.
4252echo '.include "confinc.mk" # ignored' > confmf.BSD
4253# Other make implementations (GNU, Solaris 10, AIX) do it like this.
4254echo 'include confinc.mk # ignored' > confmf.GNU
4255_am_result=no
4256for s in GNU BSD; do
4257  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4258   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4259   ac_status=$?
4260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261   (exit $ac_status); }
4262  case $?:`cat confinc.out 2>/dev/null` in #(
4263  '0:this is the am__doit target') :
4264    case $s in #(
4265  BSD) :
4266    am__include='.include' am__quote='"' ;; #(
4267  *) :
4268    am__include='include' am__quote='' ;;
4269esac ;; #(
4270  *) :
4271     ;;
4272esac
4273  if test "$am__include" != "#"; then
4274    _am_result="yes ($s style)"
4275    break
4276  fi
4277done
4278rm -f confinc.* confmf.*
4279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4280$as_echo "${_am_result}" >&6; }
4281
4282# Check whether --enable-dependency-tracking was given.
4283if test "${enable_dependency_tracking+set}" = set; then :
4284  enableval=$enable_dependency_tracking;
4285fi
4286
4287if test "x$enable_dependency_tracking" != xno; then
4288  am_depcomp="$ac_aux_dir/depcomp"
4289  AMDEPBACKSLASH='\'
4290  am__nodep='_no'
4291fi
4292 if test "x$enable_dependency_tracking" != xno; then
4293  AMDEP_TRUE=
4294  AMDEP_FALSE='#'
4295else
4296  AMDEP_TRUE='#'
4297  AMDEP_FALSE=
4298fi
4299
4300
4301ac_ext=c
4302ac_cpp='$CPP $CPPFLAGS'
4303ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4304ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4305ac_compiler_gnu=$ac_cv_c_compiler_gnu
4306if test -n "$ac_tool_prefix"; then
4307  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4308set dummy ${ac_tool_prefix}gcc; ac_word=$2
4309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4310$as_echo_n "checking for $ac_word... " >&6; }
4311if ${ac_cv_prog_CC+:} false; then :
4312  $as_echo_n "(cached) " >&6
4313else
4314  if test -n "$CC"; then
4315  ac_cv_prog_CC="$CC" # Let the user override the test.
4316else
4317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4318for as_dir in $PATH
4319do
4320  IFS=$as_save_IFS
4321  test -z "$as_dir" && as_dir=.
4322    for ac_exec_ext in '' $ac_executable_extensions; do
4323  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4324    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4325    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4326    break 2
4327  fi
4328done
4329  done
4330IFS=$as_save_IFS
4331
4332fi
4333fi
4334CC=$ac_cv_prog_CC
4335if test -n "$CC"; then
4336  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4337$as_echo "$CC" >&6; }
4338else
4339  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4340$as_echo "no" >&6; }
4341fi
4342
4343
4344fi
4345if test -z "$ac_cv_prog_CC"; then
4346  ac_ct_CC=$CC
4347  # Extract the first word of "gcc", so it can be a program name with args.
4348set dummy gcc; ac_word=$2
4349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4350$as_echo_n "checking for $ac_word... " >&6; }
4351if ${ac_cv_prog_ac_ct_CC+:} false; then :
4352  $as_echo_n "(cached) " >&6
4353else
4354  if test -n "$ac_ct_CC"; then
4355  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4356else
4357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4358for as_dir in $PATH
4359do
4360  IFS=$as_save_IFS
4361  test -z "$as_dir" && as_dir=.
4362    for ac_exec_ext in '' $ac_executable_extensions; do
4363  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4364    ac_cv_prog_ac_ct_CC="gcc"
4365    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4366    break 2
4367  fi
4368done
4369  done
4370IFS=$as_save_IFS
4371
4372fi
4373fi
4374ac_ct_CC=$ac_cv_prog_ac_ct_CC
4375if test -n "$ac_ct_CC"; then
4376  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4377$as_echo "$ac_ct_CC" >&6; }
4378else
4379  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4380$as_echo "no" >&6; }
4381fi
4382
4383  if test "x$ac_ct_CC" = x; then
4384    CC=""
4385  else
4386    case $cross_compiling:$ac_tool_warned in
4387yes:)
4388{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4389$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4390ac_tool_warned=yes ;;
4391esac
4392    CC=$ac_ct_CC
4393  fi
4394else
4395  CC="$ac_cv_prog_CC"
4396fi
4397
4398if test -z "$CC"; then
4399          if test -n "$ac_tool_prefix"; then
4400    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4401set dummy ${ac_tool_prefix}cc; ac_word=$2
4402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4403$as_echo_n "checking for $ac_word... " >&6; }
4404if ${ac_cv_prog_CC+:} false; then :
4405  $as_echo_n "(cached) " >&6
4406else
4407  if test -n "$CC"; then
4408  ac_cv_prog_CC="$CC" # Let the user override the test.
4409else
4410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4411for as_dir in $PATH
4412do
4413  IFS=$as_save_IFS
4414  test -z "$as_dir" && as_dir=.
4415    for ac_exec_ext in '' $ac_executable_extensions; do
4416  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4417    ac_cv_prog_CC="${ac_tool_prefix}cc"
4418    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4419    break 2
4420  fi
4421done
4422  done
4423IFS=$as_save_IFS
4424
4425fi
4426fi
4427CC=$ac_cv_prog_CC
4428if test -n "$CC"; then
4429  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4430$as_echo "$CC" >&6; }
4431else
4432  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4433$as_echo "no" >&6; }
4434fi
4435
4436
4437  fi
4438fi
4439if test -z "$CC"; then
4440  # Extract the first word of "cc", so it can be a program name with args.
4441set dummy cc; ac_word=$2
4442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4443$as_echo_n "checking for $ac_word... " >&6; }
4444if ${ac_cv_prog_CC+:} false; then :
4445  $as_echo_n "(cached) " >&6
4446else
4447  if test -n "$CC"; then
4448  ac_cv_prog_CC="$CC" # Let the user override the test.
4449else
4450  ac_prog_rejected=no
4451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4452for as_dir in $PATH
4453do
4454  IFS=$as_save_IFS
4455  test -z "$as_dir" && as_dir=.
4456    for ac_exec_ext in '' $ac_executable_extensions; do
4457  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4458    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4459       ac_prog_rejected=yes
4460       continue
4461     fi
4462    ac_cv_prog_CC="cc"
4463    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4464    break 2
4465  fi
4466done
4467  done
4468IFS=$as_save_IFS
4469
4470if test $ac_prog_rejected = yes; then
4471  # We found a bogon in the path, so make sure we never use it.
4472  set dummy $ac_cv_prog_CC
4473  shift
4474  if test $# != 0; then
4475    # We chose a different compiler from the bogus one.
4476    # However, it has the same basename, so the bogon will be chosen
4477    # first if we set CC to just the basename; use the full file name.
4478    shift
4479    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4480  fi
4481fi
4482fi
4483fi
4484CC=$ac_cv_prog_CC
4485if test -n "$CC"; then
4486  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4487$as_echo "$CC" >&6; }
4488else
4489  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4490$as_echo "no" >&6; }
4491fi
4492
4493
4494fi
4495if test -z "$CC"; then
4496  if test -n "$ac_tool_prefix"; then
4497  for ac_prog in cl.exe
4498  do
4499    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4500set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4502$as_echo_n "checking for $ac_word... " >&6; }
4503if ${ac_cv_prog_CC+:} false; then :
4504  $as_echo_n "(cached) " >&6
4505else
4506  if test -n "$CC"; then
4507  ac_cv_prog_CC="$CC" # Let the user override the test.
4508else
4509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4510for as_dir in $PATH
4511do
4512  IFS=$as_save_IFS
4513  test -z "$as_dir" && as_dir=.
4514    for ac_exec_ext in '' $ac_executable_extensions; do
4515  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4516    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4517    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4518    break 2
4519  fi
4520done
4521  done
4522IFS=$as_save_IFS
4523
4524fi
4525fi
4526CC=$ac_cv_prog_CC
4527if test -n "$CC"; then
4528  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4529$as_echo "$CC" >&6; }
4530else
4531  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4532$as_echo "no" >&6; }
4533fi
4534
4535
4536    test -n "$CC" && break
4537  done
4538fi
4539if test -z "$CC"; then
4540  ac_ct_CC=$CC
4541  for ac_prog in cl.exe
4542do
4543  # Extract the first word of "$ac_prog", so it can be a program name with args.
4544set dummy $ac_prog; ac_word=$2
4545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4546$as_echo_n "checking for $ac_word... " >&6; }
4547if ${ac_cv_prog_ac_ct_CC+:} false; then :
4548  $as_echo_n "(cached) " >&6
4549else
4550  if test -n "$ac_ct_CC"; then
4551  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4552else
4553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4554for as_dir in $PATH
4555do
4556  IFS=$as_save_IFS
4557  test -z "$as_dir" && as_dir=.
4558    for ac_exec_ext in '' $ac_executable_extensions; do
4559  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4560    ac_cv_prog_ac_ct_CC="$ac_prog"
4561    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4562    break 2
4563  fi
4564done
4565  done
4566IFS=$as_save_IFS
4567
4568fi
4569fi
4570ac_ct_CC=$ac_cv_prog_ac_ct_CC
4571if test -n "$ac_ct_CC"; then
4572  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4573$as_echo "$ac_ct_CC" >&6; }
4574else
4575  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4576$as_echo "no" >&6; }
4577fi
4578
4579
4580  test -n "$ac_ct_CC" && break
4581done
4582
4583  if test "x$ac_ct_CC" = x; then
4584    CC=""
4585  else
4586    case $cross_compiling:$ac_tool_warned in
4587yes:)
4588{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4589$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4590ac_tool_warned=yes ;;
4591esac
4592    CC=$ac_ct_CC
4593  fi
4594fi
4595
4596fi
4597
4598
4599test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4600$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4601as_fn_error $? "no acceptable C compiler found in \$PATH
4602See \`config.log' for more details" "$LINENO" 5; }
4603
4604# Provide some information about the compiler.
4605$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4606set X $ac_compile
4607ac_compiler=$2
4608for ac_option in --version -v -V -qversion; do
4609  { { ac_try="$ac_compiler $ac_option >&5"
4610case "(($ac_try" in
4611  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4612  *) ac_try_echo=$ac_try;;
4613esac
4614eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4615$as_echo "$ac_try_echo"; } >&5
4616  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4617  ac_status=$?
4618  if test -s conftest.err; then
4619    sed '10a\
4620... rest of stderr output deleted ...
4621         10q' conftest.err >conftest.er1
4622    cat conftest.er1 >&5
4623  fi
4624  rm -f conftest.er1 conftest.err
4625  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4626  test $ac_status = 0; }
4627done
4628
4629cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4630/* end confdefs.h.  */
4631
4632int
4633main ()
4634{
4635
4636  ;
4637  return 0;
4638}
4639_ACEOF
4640ac_clean_files_save=$ac_clean_files
4641ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4642# Try to create an executable without -o first, disregard a.out.
4643# It will help us diagnose broken compilers, and finding out an intuition
4644# of exeext.
4645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4646$as_echo_n "checking whether the C compiler works... " >&6; }
4647ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4648
4649# The possible output files:
4650ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4651
4652ac_rmfiles=
4653for ac_file in $ac_files
4654do
4655  case $ac_file in
4656    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4657    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4658  esac
4659done
4660rm -f $ac_rmfiles
4661
4662if { { ac_try="$ac_link_default"
4663case "(($ac_try" in
4664  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4665  *) ac_try_echo=$ac_try;;
4666esac
4667eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4668$as_echo "$ac_try_echo"; } >&5
4669  (eval "$ac_link_default") 2>&5
4670  ac_status=$?
4671  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4672  test $ac_status = 0; }; then :
4673  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4674# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4675# in a Makefile.  We should not override ac_cv_exeext if it was cached,
4676# so that the user can short-circuit this test for compilers unknown to
4677# Autoconf.
4678for ac_file in $ac_files ''
4679do
4680  test -f "$ac_file" || continue
4681  case $ac_file in
4682    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4683	;;
4684    [ab].out )
4685	# We found the default executable, but exeext='' is most
4686	# certainly right.
4687	break;;
4688    *.* )
4689	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4690	then :; else
4691	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4692	fi
4693	# We set ac_cv_exeext here because the later test for it is not
4694	# safe: cross compilers may not add the suffix if given an `-o'
4695	# argument, so we may need to know it at that point already.
4696	# Even if this section looks crufty: it has the advantage of
4697	# actually working.
4698	break;;
4699    * )
4700	break;;
4701  esac
4702done
4703test "$ac_cv_exeext" = no && ac_cv_exeext=
4704
4705else
4706  ac_file=''
4707fi
4708if test -z "$ac_file"; then :
4709  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4710$as_echo "no" >&6; }
4711$as_echo "$as_me: failed program was:" >&5
4712sed 's/^/| /' conftest.$ac_ext >&5
4713
4714{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4715$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4716as_fn_error 77 "C compiler cannot create executables
4717See \`config.log' for more details" "$LINENO" 5; }
4718else
4719  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4720$as_echo "yes" >&6; }
4721fi
4722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4723$as_echo_n "checking for C compiler default output file name... " >&6; }
4724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4725$as_echo "$ac_file" >&6; }
4726ac_exeext=$ac_cv_exeext
4727
4728rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4729ac_clean_files=$ac_clean_files_save
4730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4731$as_echo_n "checking for suffix of executables... " >&6; }
4732if { { ac_try="$ac_link"
4733case "(($ac_try" in
4734  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4735  *) ac_try_echo=$ac_try;;
4736esac
4737eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4738$as_echo "$ac_try_echo"; } >&5
4739  (eval "$ac_link") 2>&5
4740  ac_status=$?
4741  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4742  test $ac_status = 0; }; then :
4743  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4744# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4745# work properly (i.e., refer to `conftest.exe'), while it won't with
4746# `rm'.
4747for ac_file in conftest.exe conftest conftest.*; do
4748  test -f "$ac_file" || continue
4749  case $ac_file in
4750    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4751    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4752	  break;;
4753    * ) break;;
4754  esac
4755done
4756else
4757  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4758$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4759as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4760See \`config.log' for more details" "$LINENO" 5; }
4761fi
4762rm -f conftest conftest$ac_cv_exeext
4763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4764$as_echo "$ac_cv_exeext" >&6; }
4765
4766rm -f conftest.$ac_ext
4767EXEEXT=$ac_cv_exeext
4768ac_exeext=$EXEEXT
4769cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4770/* end confdefs.h.  */
4771#include <stdio.h>
4772int
4773main ()
4774{
4775FILE *f = fopen ("conftest.out", "w");
4776 return ferror (f) || fclose (f) != 0;
4777
4778  ;
4779  return 0;
4780}
4781_ACEOF
4782ac_clean_files="$ac_clean_files conftest.out"
4783# Check that the compiler produces executables we can run.  If not, either
4784# the compiler is broken, or we cross compile.
4785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4786$as_echo_n "checking whether we are cross compiling... " >&6; }
4787if test "$cross_compiling" != yes; then
4788  { { ac_try="$ac_link"
4789case "(($ac_try" in
4790  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4791  *) ac_try_echo=$ac_try;;
4792esac
4793eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4794$as_echo "$ac_try_echo"; } >&5
4795  (eval "$ac_link") 2>&5
4796  ac_status=$?
4797  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4798  test $ac_status = 0; }
4799  if { ac_try='./conftest$ac_cv_exeext'
4800  { { case "(($ac_try" in
4801  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4802  *) ac_try_echo=$ac_try;;
4803esac
4804eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4805$as_echo "$ac_try_echo"; } >&5
4806  (eval "$ac_try") 2>&5
4807  ac_status=$?
4808  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4809  test $ac_status = 0; }; }; then
4810    cross_compiling=no
4811  else
4812    if test "$cross_compiling" = maybe; then
4813	cross_compiling=yes
4814    else
4815	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4816$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4817as_fn_error $? "cannot run C compiled programs.
4818If you meant to cross compile, use \`--host'.
4819See \`config.log' for more details" "$LINENO" 5; }
4820    fi
4821  fi
4822fi
4823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4824$as_echo "$cross_compiling" >&6; }
4825
4826rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4827ac_clean_files=$ac_clean_files_save
4828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4829$as_echo_n "checking for suffix of object files... " >&6; }
4830if ${ac_cv_objext+:} false; then :
4831  $as_echo_n "(cached) " >&6
4832else
4833  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4834/* end confdefs.h.  */
4835
4836int
4837main ()
4838{
4839
4840  ;
4841  return 0;
4842}
4843_ACEOF
4844rm -f conftest.o conftest.obj
4845if { { ac_try="$ac_compile"
4846case "(($ac_try" in
4847  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4848  *) ac_try_echo=$ac_try;;
4849esac
4850eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4851$as_echo "$ac_try_echo"; } >&5
4852  (eval "$ac_compile") 2>&5
4853  ac_status=$?
4854  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4855  test $ac_status = 0; }; then :
4856  for ac_file in conftest.o conftest.obj conftest.*; do
4857  test -f "$ac_file" || continue;
4858  case $ac_file in
4859    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4860    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4861       break;;
4862  esac
4863done
4864else
4865  $as_echo "$as_me: failed program was:" >&5
4866sed 's/^/| /' conftest.$ac_ext >&5
4867
4868{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4869$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4870as_fn_error $? "cannot compute suffix of object files: cannot compile
4871See \`config.log' for more details" "$LINENO" 5; }
4872fi
4873rm -f conftest.$ac_cv_objext conftest.$ac_ext
4874fi
4875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4876$as_echo "$ac_cv_objext" >&6; }
4877OBJEXT=$ac_cv_objext
4878ac_objext=$OBJEXT
4879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4880$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4881if ${ac_cv_c_compiler_gnu+:} false; then :
4882  $as_echo_n "(cached) " >&6
4883else
4884  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4885/* end confdefs.h.  */
4886
4887int
4888main ()
4889{
4890#ifndef __GNUC__
4891       choke me
4892#endif
4893
4894  ;
4895  return 0;
4896}
4897_ACEOF
4898if ac_fn_c_try_compile "$LINENO"; then :
4899  ac_compiler_gnu=yes
4900else
4901  ac_compiler_gnu=no
4902fi
4903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4904ac_cv_c_compiler_gnu=$ac_compiler_gnu
4905
4906fi
4907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4908$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4909if test $ac_compiler_gnu = yes; then
4910  GCC=yes
4911else
4912  GCC=
4913fi
4914ac_test_CFLAGS=${CFLAGS+set}
4915ac_save_CFLAGS=$CFLAGS
4916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4917$as_echo_n "checking whether $CC accepts -g... " >&6; }
4918if ${ac_cv_prog_cc_g+:} false; then :
4919  $as_echo_n "(cached) " >&6
4920else
4921  ac_save_c_werror_flag=$ac_c_werror_flag
4922   ac_c_werror_flag=yes
4923   ac_cv_prog_cc_g=no
4924   CFLAGS="-g"
4925   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4926/* end confdefs.h.  */
4927
4928int
4929main ()
4930{
4931
4932  ;
4933  return 0;
4934}
4935_ACEOF
4936if ac_fn_c_try_compile "$LINENO"; then :
4937  ac_cv_prog_cc_g=yes
4938else
4939  CFLAGS=""
4940      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4941/* end confdefs.h.  */
4942
4943int
4944main ()
4945{
4946
4947  ;
4948  return 0;
4949}
4950_ACEOF
4951if ac_fn_c_try_compile "$LINENO"; then :
4952
4953else
4954  ac_c_werror_flag=$ac_save_c_werror_flag
4955	 CFLAGS="-g"
4956	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4957/* end confdefs.h.  */
4958
4959int
4960main ()
4961{
4962
4963  ;
4964  return 0;
4965}
4966_ACEOF
4967if ac_fn_c_try_compile "$LINENO"; then :
4968  ac_cv_prog_cc_g=yes
4969fi
4970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4971fi
4972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4973fi
4974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4975   ac_c_werror_flag=$ac_save_c_werror_flag
4976fi
4977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4978$as_echo "$ac_cv_prog_cc_g" >&6; }
4979if test "$ac_test_CFLAGS" = set; then
4980  CFLAGS=$ac_save_CFLAGS
4981elif test $ac_cv_prog_cc_g = yes; then
4982  if test "$GCC" = yes; then
4983    CFLAGS="-g -O2"
4984  else
4985    CFLAGS="-g"
4986  fi
4987else
4988  if test "$GCC" = yes; then
4989    CFLAGS="-O2"
4990  else
4991    CFLAGS=
4992  fi
4993fi
4994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4995$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4996if ${ac_cv_prog_cc_c89+:} false; then :
4997  $as_echo_n "(cached) " >&6
4998else
4999  ac_cv_prog_cc_c89=no
5000ac_save_CC=$CC
5001cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5002/* end confdefs.h.  */
5003#include <stdarg.h>
5004#include <stdio.h>
5005struct stat;
5006/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5007struct buf { int x; };
5008FILE * (*rcsopen) (struct buf *, struct stat *, int);
5009static char *e (p, i)
5010     char **p;
5011     int i;
5012{
5013  return p[i];
5014}
5015static char *f (char * (*g) (char **, int), char **p, ...)
5016{
5017  char *s;
5018  va_list v;
5019  va_start (v,p);
5020  s = g (p, va_arg (v,int));
5021  va_end (v);
5022  return s;
5023}
5024
5025/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5026   function prototypes and stuff, but not '\xHH' hex character constants.
5027   These don't provoke an error unfortunately, instead are silently treated
5028   as 'x'.  The following induces an error, until -std is added to get
5029   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5030   array size at least.  It's necessary to write '\x00'==0 to get something
5031   that's true only with -std.  */
5032int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5033
5034/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5035   inside strings and character constants.  */
5036#define FOO(x) 'x'
5037int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5038
5039int test (int i, double x);
5040struct s1 {int (*f) (int a);};
5041struct s2 {int (*f) (double a);};
5042int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5043int argc;
5044char **argv;
5045int
5046main ()
5047{
5048return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5049  ;
5050  return 0;
5051}
5052_ACEOF
5053for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5054	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5055do
5056  CC="$ac_save_CC $ac_arg"
5057  if ac_fn_c_try_compile "$LINENO"; then :
5058  ac_cv_prog_cc_c89=$ac_arg
5059fi
5060rm -f core conftest.err conftest.$ac_objext
5061  test "x$ac_cv_prog_cc_c89" != "xno" && break
5062done
5063rm -f conftest.$ac_ext
5064CC=$ac_save_CC
5065
5066fi
5067# AC_CACHE_VAL
5068case "x$ac_cv_prog_cc_c89" in
5069  x)
5070    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5071$as_echo "none needed" >&6; } ;;
5072  xno)
5073    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5074$as_echo "unsupported" >&6; } ;;
5075  *)
5076    CC="$CC $ac_cv_prog_cc_c89"
5077    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5078$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5079esac
5080if test "x$ac_cv_prog_cc_c89" != xno; then :
5081
5082fi
5083
5084ac_ext=c
5085ac_cpp='$CPP $CPPFLAGS'
5086ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5087ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5088ac_compiler_gnu=$ac_cv_c_compiler_gnu
5089
5090ac_ext=c
5091ac_cpp='$CPP $CPPFLAGS'
5092ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5093ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5094ac_compiler_gnu=$ac_cv_c_compiler_gnu
5095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5096$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5097if ${am_cv_prog_cc_c_o+:} false; then :
5098  $as_echo_n "(cached) " >&6
5099else
5100  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5101/* end confdefs.h.  */
5102
5103int
5104main ()
5105{
5106
5107  ;
5108  return 0;
5109}
5110_ACEOF
5111  # Make sure it works both with $CC and with simple cc.
5112  # Following AC_PROG_CC_C_O, we do the test twice because some
5113  # compilers refuse to overwrite an existing .o file with -o,
5114  # though they will create one.
5115  am_cv_prog_cc_c_o=yes
5116  for am_i in 1 2; do
5117    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5118   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5119   ac_status=$?
5120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5121   (exit $ac_status); } \
5122         && test -f conftest2.$ac_objext; then
5123      : OK
5124    else
5125      am_cv_prog_cc_c_o=no
5126      break
5127    fi
5128  done
5129  rm -f core conftest*
5130  unset am_i
5131fi
5132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5133$as_echo "$am_cv_prog_cc_c_o" >&6; }
5134if test "$am_cv_prog_cc_c_o" != yes; then
5135   # Losing compiler, so override with the script.
5136   # FIXME: It is wrong to rewrite CC.
5137   # But if we don't then we get into trouble of one sort or another.
5138   # A longer-term fix would be to have automake use am__CC in this case,
5139   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5140   CC="$am_aux_dir/compile $CC"
5141fi
5142ac_ext=c
5143ac_cpp='$CPP $CPPFLAGS'
5144ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5145ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5146ac_compiler_gnu=$ac_cv_c_compiler_gnu
5147
5148
5149depcc="$CC"   am_compiler_list=
5150
5151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5152$as_echo_n "checking dependency style of $depcc... " >&6; }
5153if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5154  $as_echo_n "(cached) " >&6
5155else
5156  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5157  # We make a subdir and do the tests there.  Otherwise we can end up
5158  # making bogus files that we don't know about and never remove.  For
5159  # instance it was reported that on HP-UX the gcc test will end up
5160  # making a dummy file named 'D' -- because '-MD' means "put the output
5161  # in D".
5162  rm -rf conftest.dir
5163  mkdir conftest.dir
5164  # Copy depcomp to subdir because otherwise we won't find it if we're
5165  # using a relative directory.
5166  cp "$am_depcomp" conftest.dir
5167  cd conftest.dir
5168  # We will build objects and dependencies in a subdirectory because
5169  # it helps to detect inapplicable dependency modes.  For instance
5170  # both Tru64's cc and ICC support -MD to output dependencies as a
5171  # side effect of compilation, but ICC will put the dependencies in
5172  # the current directory while Tru64 will put them in the object
5173  # directory.
5174  mkdir sub
5175
5176  am_cv_CC_dependencies_compiler_type=none
5177  if test "$am_compiler_list" = ""; then
5178     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5179  fi
5180  am__universal=false
5181  case " $depcc " in #(
5182     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5183     esac
5184
5185  for depmode in $am_compiler_list; do
5186    # Setup a source with many dependencies, because some compilers
5187    # like to wrap large dependency lists on column 80 (with \), and
5188    # we should not choose a depcomp mode which is confused by this.
5189    #
5190    # We need to recreate these files for each test, as the compiler may
5191    # overwrite some of them when testing with obscure command lines.
5192    # This happens at least with the AIX C compiler.
5193    : > sub/conftest.c
5194    for i in 1 2 3 4 5 6; do
5195      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5196      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5197      # Solaris 10 /bin/sh.
5198      echo '/* dummy */' > sub/conftst$i.h
5199    done
5200    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5201
5202    # We check with '-c' and '-o' for the sake of the "dashmstdout"
5203    # mode.  It turns out that the SunPro C++ compiler does not properly
5204    # handle '-M -o', and we need to detect this.  Also, some Intel
5205    # versions had trouble with output in subdirs.
5206    am__obj=sub/conftest.${OBJEXT-o}
5207    am__minus_obj="-o $am__obj"
5208    case $depmode in
5209    gcc)
5210      # This depmode causes a compiler race in universal mode.
5211      test "$am__universal" = false || continue
5212      ;;
5213    nosideeffect)
5214      # After this tag, mechanisms are not by side-effect, so they'll
5215      # only be used when explicitly requested.
5216      if test "x$enable_dependency_tracking" = xyes; then
5217	continue
5218      else
5219	break
5220      fi
5221      ;;
5222    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5223      # This compiler won't grok '-c -o', but also, the minuso test has
5224      # not run yet.  These depmodes are late enough in the game, and
5225      # so weak that their functioning should not be impacted.
5226      am__obj=conftest.${OBJEXT-o}
5227      am__minus_obj=
5228      ;;
5229    none) break ;;
5230    esac
5231    if depmode=$depmode \
5232       source=sub/conftest.c object=$am__obj \
5233       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5234       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5235         >/dev/null 2>conftest.err &&
5236       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5237       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5238       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5239       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5240      # icc doesn't choke on unknown options, it will just issue warnings
5241      # or remarks (even with -Werror).  So we grep stderr for any message
5242      # that says an option was ignored or not supported.
5243      # When given -MP, icc 7.0 and 7.1 complain thusly:
5244      #   icc: Command line warning: ignoring option '-M'; no argument required
5245      # The diagnosis changed in icc 8.0:
5246      #   icc: Command line remark: option '-MP' not supported
5247      if (grep 'ignoring option' conftest.err ||
5248          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5249        am_cv_CC_dependencies_compiler_type=$depmode
5250        break
5251      fi
5252    fi
5253  done
5254
5255  cd ..
5256  rm -rf conftest.dir
5257else
5258  am_cv_CC_dependencies_compiler_type=none
5259fi
5260
5261fi
5262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5263$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5264CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5265
5266 if
5267  test "x$enable_dependency_tracking" != xno \
5268  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5269  am__fastdepCC_TRUE=
5270  am__fastdepCC_FALSE='#'
5271else
5272  am__fastdepCC_TRUE='#'
5273  am__fastdepCC_FALSE=
5274fi
5275
5276
5277
5278ac_ext=c
5279ac_cpp='$CPP $CPPFLAGS'
5280ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5281ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5282ac_compiler_gnu=$ac_cv_c_compiler_gnu
5283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5284$as_echo_n "checking how to run the C preprocessor... " >&6; }
5285# On Suns, sometimes $CPP names a directory.
5286if test -n "$CPP" && test -d "$CPP"; then
5287  CPP=
5288fi
5289if test -z "$CPP"; then
5290  if ${ac_cv_prog_CPP+:} false; then :
5291  $as_echo_n "(cached) " >&6
5292else
5293      # Double quotes because CPP needs to be expanded
5294    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5295    do
5296      ac_preproc_ok=false
5297for ac_c_preproc_warn_flag in '' yes
5298do
5299  # Use a header file that comes with gcc, so configuring glibc
5300  # with a fresh cross-compiler works.
5301  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5302  # <limits.h> exists even on freestanding compilers.
5303  # On the NeXT, cc -E runs the code through the compiler's parser,
5304  # not just through cpp. "Syntax error" is here to catch this case.
5305  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5306/* end confdefs.h.  */
5307#ifdef __STDC__
5308# include <limits.h>
5309#else
5310# include <assert.h>
5311#endif
5312		     Syntax error
5313_ACEOF
5314if ac_fn_c_try_cpp "$LINENO"; then :
5315
5316else
5317  # Broken: fails on valid input.
5318continue
5319fi
5320rm -f conftest.err conftest.i conftest.$ac_ext
5321
5322  # OK, works on sane cases.  Now check whether nonexistent headers
5323  # can be detected and how.
5324  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5325/* end confdefs.h.  */
5326#include <ac_nonexistent.h>
5327_ACEOF
5328if ac_fn_c_try_cpp "$LINENO"; then :
5329  # Broken: success on invalid input.
5330continue
5331else
5332  # Passes both tests.
5333ac_preproc_ok=:
5334break
5335fi
5336rm -f conftest.err conftest.i conftest.$ac_ext
5337
5338done
5339# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5340rm -f conftest.i conftest.err conftest.$ac_ext
5341if $ac_preproc_ok; then :
5342  break
5343fi
5344
5345    done
5346    ac_cv_prog_CPP=$CPP
5347
5348fi
5349  CPP=$ac_cv_prog_CPP
5350else
5351  ac_cv_prog_CPP=$CPP
5352fi
5353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5354$as_echo "$CPP" >&6; }
5355ac_preproc_ok=false
5356for ac_c_preproc_warn_flag in '' yes
5357do
5358  # Use a header file that comes with gcc, so configuring glibc
5359  # with a fresh cross-compiler works.
5360  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5361  # <limits.h> exists even on freestanding compilers.
5362  # On the NeXT, cc -E runs the code through the compiler's parser,
5363  # not just through cpp. "Syntax error" is here to catch this case.
5364  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5365/* end confdefs.h.  */
5366#ifdef __STDC__
5367# include <limits.h>
5368#else
5369# include <assert.h>
5370#endif
5371		     Syntax error
5372_ACEOF
5373if ac_fn_c_try_cpp "$LINENO"; then :
5374
5375else
5376  # Broken: fails on valid input.
5377continue
5378fi
5379rm -f conftest.err conftest.i conftest.$ac_ext
5380
5381  # OK, works on sane cases.  Now check whether nonexistent headers
5382  # can be detected and how.
5383  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5384/* end confdefs.h.  */
5385#include <ac_nonexistent.h>
5386_ACEOF
5387if ac_fn_c_try_cpp "$LINENO"; then :
5388  # Broken: success on invalid input.
5389continue
5390else
5391  # Passes both tests.
5392ac_preproc_ok=:
5393break
5394fi
5395rm -f conftest.err conftest.i conftest.$ac_ext
5396
5397done
5398# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5399rm -f conftest.i conftest.err conftest.$ac_ext
5400if $ac_preproc_ok; then :
5401
5402else
5403  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5404$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5405as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5406See \`config.log' for more details" "$LINENO" 5; }
5407fi
5408
5409ac_ext=c
5410ac_cpp='$CPP $CPPFLAGS'
5411ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5412ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5413ac_compiler_gnu=$ac_cv_c_compiler_gnu
5414
5415
5416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5417$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5418if ${ac_cv_path_GREP+:} false; then :
5419  $as_echo_n "(cached) " >&6
5420else
5421  if test -z "$GREP"; then
5422  ac_path_GREP_found=false
5423  # Loop through the user's path and test for each of PROGNAME-LIST
5424  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5425for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5426do
5427  IFS=$as_save_IFS
5428  test -z "$as_dir" && as_dir=.
5429    for ac_prog in grep ggrep; do
5430    for ac_exec_ext in '' $ac_executable_extensions; do
5431      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5432      as_fn_executable_p "$ac_path_GREP" || continue
5433# Check for GNU ac_path_GREP and select it if it is found.
5434  # Check for GNU $ac_path_GREP
5435case `"$ac_path_GREP" --version 2>&1` in
5436*GNU*)
5437  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5438*)
5439  ac_count=0
5440  $as_echo_n 0123456789 >"conftest.in"
5441  while :
5442  do
5443    cat "conftest.in" "conftest.in" >"conftest.tmp"
5444    mv "conftest.tmp" "conftest.in"
5445    cp "conftest.in" "conftest.nl"
5446    $as_echo 'GREP' >> "conftest.nl"
5447    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5448    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5449    as_fn_arith $ac_count + 1 && ac_count=$as_val
5450    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5451      # Best one so far, save it but keep looking for a better one
5452      ac_cv_path_GREP="$ac_path_GREP"
5453      ac_path_GREP_max=$ac_count
5454    fi
5455    # 10*(2^10) chars as input seems more than enough
5456    test $ac_count -gt 10 && break
5457  done
5458  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5459esac
5460
5461      $ac_path_GREP_found && break 3
5462    done
5463  done
5464  done
5465IFS=$as_save_IFS
5466  if test -z "$ac_cv_path_GREP"; then
5467    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5468  fi
5469else
5470  ac_cv_path_GREP=$GREP
5471fi
5472
5473fi
5474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5475$as_echo "$ac_cv_path_GREP" >&6; }
5476 GREP="$ac_cv_path_GREP"
5477
5478
5479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5480$as_echo_n "checking for egrep... " >&6; }
5481if ${ac_cv_path_EGREP+:} false; then :
5482  $as_echo_n "(cached) " >&6
5483else
5484  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5485   then ac_cv_path_EGREP="$GREP -E"
5486   else
5487     if test -z "$EGREP"; then
5488  ac_path_EGREP_found=false
5489  # Loop through the user's path and test for each of PROGNAME-LIST
5490  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5491for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5492do
5493  IFS=$as_save_IFS
5494  test -z "$as_dir" && as_dir=.
5495    for ac_prog in egrep; do
5496    for ac_exec_ext in '' $ac_executable_extensions; do
5497      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5498      as_fn_executable_p "$ac_path_EGREP" || continue
5499# Check for GNU ac_path_EGREP and select it if it is found.
5500  # Check for GNU $ac_path_EGREP
5501case `"$ac_path_EGREP" --version 2>&1` in
5502*GNU*)
5503  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5504*)
5505  ac_count=0
5506  $as_echo_n 0123456789 >"conftest.in"
5507  while :
5508  do
5509    cat "conftest.in" "conftest.in" >"conftest.tmp"
5510    mv "conftest.tmp" "conftest.in"
5511    cp "conftest.in" "conftest.nl"
5512    $as_echo 'EGREP' >> "conftest.nl"
5513    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5514    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5515    as_fn_arith $ac_count + 1 && ac_count=$as_val
5516    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5517      # Best one so far, save it but keep looking for a better one
5518      ac_cv_path_EGREP="$ac_path_EGREP"
5519      ac_path_EGREP_max=$ac_count
5520    fi
5521    # 10*(2^10) chars as input seems more than enough
5522    test $ac_count -gt 10 && break
5523  done
5524  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5525esac
5526
5527      $ac_path_EGREP_found && break 3
5528    done
5529  done
5530  done
5531IFS=$as_save_IFS
5532  if test -z "$ac_cv_path_EGREP"; then
5533    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5534  fi
5535else
5536  ac_cv_path_EGREP=$EGREP
5537fi
5538
5539   fi
5540fi
5541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5542$as_echo "$ac_cv_path_EGREP" >&6; }
5543 EGREP="$ac_cv_path_EGREP"
5544
5545
5546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5547$as_echo_n "checking for ANSI C header files... " >&6; }
5548if ${ac_cv_header_stdc+:} false; then :
5549  $as_echo_n "(cached) " >&6
5550else
5551  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5552/* end confdefs.h.  */
5553#include <stdlib.h>
5554#include <stdarg.h>
5555#include <string.h>
5556#include <float.h>
5557
5558int
5559main ()
5560{
5561
5562  ;
5563  return 0;
5564}
5565_ACEOF
5566if ac_fn_c_try_compile "$LINENO"; then :
5567  ac_cv_header_stdc=yes
5568else
5569  ac_cv_header_stdc=no
5570fi
5571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5572
5573if test $ac_cv_header_stdc = yes; then
5574  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5575  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5576/* end confdefs.h.  */
5577#include <string.h>
5578
5579_ACEOF
5580if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5581  $EGREP "memchr" >/dev/null 2>&1; then :
5582
5583else
5584  ac_cv_header_stdc=no
5585fi
5586rm -f conftest*
5587
5588fi
5589
5590if test $ac_cv_header_stdc = yes; then
5591  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5592  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5593/* end confdefs.h.  */
5594#include <stdlib.h>
5595
5596_ACEOF
5597if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5598  $EGREP "free" >/dev/null 2>&1; then :
5599
5600else
5601  ac_cv_header_stdc=no
5602fi
5603rm -f conftest*
5604
5605fi
5606
5607if test $ac_cv_header_stdc = yes; then
5608  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5609  if test "$cross_compiling" = yes; then :
5610  :
5611else
5612  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5613/* end confdefs.h.  */
5614#include <ctype.h>
5615#include <stdlib.h>
5616#if ((' ' & 0x0FF) == 0x020)
5617# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5618# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5619#else
5620# define ISLOWER(c) \
5621		   (('a' <= (c) && (c) <= 'i') \
5622		     || ('j' <= (c) && (c) <= 'r') \
5623		     || ('s' <= (c) && (c) <= 'z'))
5624# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5625#endif
5626
5627#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5628int
5629main ()
5630{
5631  int i;
5632  for (i = 0; i < 256; i++)
5633    if (XOR (islower (i), ISLOWER (i))
5634	|| toupper (i) != TOUPPER (i))
5635      return 2;
5636  return 0;
5637}
5638_ACEOF
5639if ac_fn_c_try_run "$LINENO"; then :
5640
5641else
5642  ac_cv_header_stdc=no
5643fi
5644rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5645  conftest.$ac_objext conftest.beam conftest.$ac_ext
5646fi
5647
5648fi
5649fi
5650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5651$as_echo "$ac_cv_header_stdc" >&6; }
5652if test $ac_cv_header_stdc = yes; then
5653
5654$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5655
5656fi
5657
5658# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5659for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5660		  inttypes.h stdint.h unistd.h
5661do :
5662  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5663ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5664"
5665if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5666  cat >>confdefs.h <<_ACEOF
5667#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5668_ACEOF
5669
5670fi
5671
5672done
5673
5674
5675
5676  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5677if test "x$ac_cv_header_minix_config_h" = xyes; then :
5678  MINIX=yes
5679else
5680  MINIX=
5681fi
5682
5683
5684  if test "$MINIX" = yes; then
5685
5686$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5687
5688
5689$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5690
5691
5692$as_echo "#define _MINIX 1" >>confdefs.h
5693
5694  fi
5695
5696
5697  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5698$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5699if ${ac_cv_safe_to_define___extensions__+:} false; then :
5700  $as_echo_n "(cached) " >&6
5701else
5702  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5703/* end confdefs.h.  */
5704
5705#         define __EXTENSIONS__ 1
5706          $ac_includes_default
5707int
5708main ()
5709{
5710
5711  ;
5712  return 0;
5713}
5714_ACEOF
5715if ac_fn_c_try_compile "$LINENO"; then :
5716  ac_cv_safe_to_define___extensions__=yes
5717else
5718  ac_cv_safe_to_define___extensions__=no
5719fi
5720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5721fi
5722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5723$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5724  test $ac_cv_safe_to_define___extensions__ = yes &&
5725    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5726
5727  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5728
5729  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5730
5731  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5732
5733  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5734
5735
5736
5737# Require xorg-macros minimum of 1.14 for XORG_COMPILER_BRAND in XORG_DEFAULT_OPTIONS
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
5750$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
5751if ${ac_cv_prog_cc_c99+:} false; then :
5752  $as_echo_n "(cached) " >&6
5753else
5754  ac_cv_prog_cc_c99=no
5755ac_save_CC=$CC
5756cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5757/* end confdefs.h.  */
5758#include <stdarg.h>
5759#include <stdbool.h>
5760#include <stdlib.h>
5761#include <wchar.h>
5762#include <stdio.h>
5763
5764// Check varargs macros.  These examples are taken from C99 6.10.3.5.
5765#define debug(...) fprintf (stderr, __VA_ARGS__)
5766#define showlist(...) puts (#__VA_ARGS__)
5767#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5768static void
5769test_varargs_macros (void)
5770{
5771  int x = 1234;
5772  int y = 5678;
5773  debug ("Flag");
5774  debug ("X = %d\n", x);
5775  showlist (The first, second, and third items.);
5776  report (x>y, "x is %d but y is %d", x, y);
5777}
5778
5779// Check long long types.
5780#define BIG64 18446744073709551615ull
5781#define BIG32 4294967295ul
5782#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5783#if !BIG_OK
5784  your preprocessor is broken;
5785#endif
5786#if BIG_OK
5787#else
5788  your preprocessor is broken;
5789#endif
5790static long long int bignum = -9223372036854775807LL;
5791static unsigned long long int ubignum = BIG64;
5792
5793struct incomplete_array
5794{
5795  int datasize;
5796  double data[];
5797};
5798
5799struct named_init {
5800  int number;
5801  const wchar_t *name;
5802  double average;
5803};
5804
5805typedef const char *ccp;
5806
5807static inline int
5808test_restrict (ccp restrict text)
5809{
5810  // See if C++-style comments work.
5811  // Iterate through items via the restricted pointer.
5812  // Also check for declarations in for loops.
5813  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5814    continue;
5815  return 0;
5816}
5817
5818// Check varargs and va_copy.
5819static void
5820test_varargs (const char *format, ...)
5821{
5822  va_list args;
5823  va_start (args, format);
5824  va_list args_copy;
5825  va_copy (args_copy, args);
5826
5827  const char *str;
5828  int number;
5829  float fnumber;
5830
5831  while (*format)
5832    {
5833      switch (*format++)
5834	{
5835	case 's': // string
5836	  str = va_arg (args_copy, const char *);
5837	  break;
5838	case 'd': // int
5839	  number = va_arg (args_copy, int);
5840	  break;
5841	case 'f': // float
5842	  fnumber = va_arg (args_copy, double);
5843	  break;
5844	default:
5845	  break;
5846	}
5847    }
5848  va_end (args_copy);
5849  va_end (args);
5850}
5851
5852int
5853main ()
5854{
5855
5856  // Check bool.
5857  _Bool success = false;
5858
5859  // Check restrict.
5860  if (test_restrict ("String literal") == 0)
5861    success = true;
5862  char *restrict newvar = "Another string";
5863
5864  // Check varargs.
5865  test_varargs ("s, d' f .", "string", 65, 34.234);
5866  test_varargs_macros ();
5867
5868  // Check flexible array members.
5869  struct incomplete_array *ia =
5870    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5871  ia->datasize = 10;
5872  for (int i = 0; i < ia->datasize; ++i)
5873    ia->data[i] = i * 1.234;
5874
5875  // Check named initializers.
5876  struct named_init ni = {
5877    .number = 34,
5878    .name = L"Test wide string",
5879    .average = 543.34343,
5880  };
5881
5882  ni.number = 58;
5883
5884  int dynamic_array[ni.number];
5885  dynamic_array[ni.number - 1] = 543;
5886
5887  // work around unused variable warnings
5888  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5889	  || dynamic_array[ni.number - 1] != 543);
5890
5891  ;
5892  return 0;
5893}
5894_ACEOF
5895for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5896do
5897  CC="$ac_save_CC $ac_arg"
5898  if ac_fn_c_try_compile "$LINENO"; then :
5899  ac_cv_prog_cc_c99=$ac_arg
5900fi
5901rm -f core conftest.err conftest.$ac_objext
5902  test "x$ac_cv_prog_cc_c99" != "xno" && break
5903done
5904rm -f conftest.$ac_ext
5905CC=$ac_save_CC
5906
5907fi
5908# AC_CACHE_VAL
5909case "x$ac_cv_prog_cc_c99" in
5910  x)
5911    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5912$as_echo "none needed" >&6; } ;;
5913  xno)
5914    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5915$as_echo "unsupported" >&6; } ;;
5916  *)
5917    CC="$CC $ac_cv_prog_cc_c99"
5918    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5919$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5920esac
5921if test "x$ac_cv_prog_cc_c99" != xno; then :
5922
5923fi
5924
5925
5926
5927
5928
5929
5930ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
5931if test "x$ac_cv_have_decl___clang__" = xyes; then :
5932  CLANGCC="yes"
5933else
5934  CLANGCC="no"
5935fi
5936
5937ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
5938if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
5939  INTELCC="yes"
5940else
5941  INTELCC="no"
5942fi
5943
5944ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
5945if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
5946  SUNCC="yes"
5947else
5948  SUNCC="no"
5949fi
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5960	if test -n "$ac_tool_prefix"; then
5961  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5962set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5964$as_echo_n "checking for $ac_word... " >&6; }
5965if ${ac_cv_path_PKG_CONFIG+:} false; then :
5966  $as_echo_n "(cached) " >&6
5967else
5968  case $PKG_CONFIG in
5969  [\\/]* | ?:[\\/]*)
5970  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5971  ;;
5972  *)
5973  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5974for as_dir in $PATH
5975do
5976  IFS=$as_save_IFS
5977  test -z "$as_dir" && as_dir=.
5978    for ac_exec_ext in '' $ac_executable_extensions; do
5979  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5980    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5981    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5982    break 2
5983  fi
5984done
5985  done
5986IFS=$as_save_IFS
5987
5988  ;;
5989esac
5990fi
5991PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5992if test -n "$PKG_CONFIG"; then
5993  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5994$as_echo "$PKG_CONFIG" >&6; }
5995else
5996  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5997$as_echo "no" >&6; }
5998fi
5999
6000
6001fi
6002if test -z "$ac_cv_path_PKG_CONFIG"; then
6003  ac_pt_PKG_CONFIG=$PKG_CONFIG
6004  # Extract the first word of "pkg-config", so it can be a program name with args.
6005set dummy pkg-config; ac_word=$2
6006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6007$as_echo_n "checking for $ac_word... " >&6; }
6008if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
6009  $as_echo_n "(cached) " >&6
6010else
6011  case $ac_pt_PKG_CONFIG in
6012  [\\/]* | ?:[\\/]*)
6013  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6014  ;;
6015  *)
6016  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6017for as_dir in $PATH
6018do
6019  IFS=$as_save_IFS
6020  test -z "$as_dir" && as_dir=.
6021    for ac_exec_ext in '' $ac_executable_extensions; do
6022  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6023    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6024    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6025    break 2
6026  fi
6027done
6028  done
6029IFS=$as_save_IFS
6030
6031  ;;
6032esac
6033fi
6034ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6035if test -n "$ac_pt_PKG_CONFIG"; then
6036  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
6037$as_echo "$ac_pt_PKG_CONFIG" >&6; }
6038else
6039  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6040$as_echo "no" >&6; }
6041fi
6042
6043  if test "x$ac_pt_PKG_CONFIG" = x; then
6044    PKG_CONFIG=""
6045  else
6046    case $cross_compiling:$ac_tool_warned in
6047yes:)
6048{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6049$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6050ac_tool_warned=yes ;;
6051esac
6052    PKG_CONFIG=$ac_pt_PKG_CONFIG
6053  fi
6054else
6055  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6056fi
6057
6058fi
6059if test -n "$PKG_CONFIG"; then
6060	_pkg_min_version=0.9.0
6061	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
6062$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6063	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6064		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6065$as_echo "yes" >&6; }
6066	else
6067		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6068$as_echo "no" >&6; }
6069		PKG_CONFIG=""
6070	fi
6071fi
6072# Make sure we can run config.sub.
6073$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6074  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6075
6076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6077$as_echo_n "checking build system type... " >&6; }
6078if ${ac_cv_build+:} false; then :
6079  $as_echo_n "(cached) " >&6
6080else
6081  ac_build_alias=$build_alias
6082test "x$ac_build_alias" = x &&
6083  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6084test "x$ac_build_alias" = x &&
6085  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6086ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6087  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6088
6089fi
6090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6091$as_echo "$ac_cv_build" >&6; }
6092case $ac_cv_build in
6093*-*-*) ;;
6094*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6095esac
6096build=$ac_cv_build
6097ac_save_IFS=$IFS; IFS='-'
6098set x $ac_cv_build
6099shift
6100build_cpu=$1
6101build_vendor=$2
6102shift; shift
6103# Remember, the first character of IFS is used to create $*,
6104# except with old shells:
6105build_os=$*
6106IFS=$ac_save_IFS
6107case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6108
6109
6110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6111$as_echo_n "checking host system type... " >&6; }
6112if ${ac_cv_host+:} false; then :
6113  $as_echo_n "(cached) " >&6
6114else
6115  if test "x$host_alias" = x; then
6116  ac_cv_host=$ac_cv_build
6117else
6118  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6119    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6120fi
6121
6122fi
6123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6124$as_echo "$ac_cv_host" >&6; }
6125case $ac_cv_host in
6126*-*-*) ;;
6127*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6128esac
6129host=$ac_cv_host
6130ac_save_IFS=$IFS; IFS='-'
6131set x $ac_cv_host
6132shift
6133host_cpu=$1
6134host_vendor=$2
6135shift; shift
6136# Remember, the first character of IFS is used to create $*,
6137# except with old shells:
6138host_os=$*
6139IFS=$ac_save_IFS
6140case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6141
6142
6143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6144$as_echo_n "checking for a sed that does not truncate output... " >&6; }
6145if ${ac_cv_path_SED+:} false; then :
6146  $as_echo_n "(cached) " >&6
6147else
6148            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6149     for ac_i in 1 2 3 4 5 6 7; do
6150       ac_script="$ac_script$as_nl$ac_script"
6151     done
6152     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6153     { ac_script=; unset ac_script;}
6154     if test -z "$SED"; then
6155  ac_path_SED_found=false
6156  # Loop through the user's path and test for each of PROGNAME-LIST
6157  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6158for as_dir in $PATH
6159do
6160  IFS=$as_save_IFS
6161  test -z "$as_dir" && as_dir=.
6162    for ac_prog in sed gsed; do
6163    for ac_exec_ext in '' $ac_executable_extensions; do
6164      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6165      as_fn_executable_p "$ac_path_SED" || continue
6166# Check for GNU ac_path_SED and select it if it is found.
6167  # Check for GNU $ac_path_SED
6168case `"$ac_path_SED" --version 2>&1` in
6169*GNU*)
6170  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6171*)
6172  ac_count=0
6173  $as_echo_n 0123456789 >"conftest.in"
6174  while :
6175  do
6176    cat "conftest.in" "conftest.in" >"conftest.tmp"
6177    mv "conftest.tmp" "conftest.in"
6178    cp "conftest.in" "conftest.nl"
6179    $as_echo '' >> "conftest.nl"
6180    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6181    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6182    as_fn_arith $ac_count + 1 && ac_count=$as_val
6183    if test $ac_count -gt ${ac_path_SED_max-0}; then
6184      # Best one so far, save it but keep looking for a better one
6185      ac_cv_path_SED="$ac_path_SED"
6186      ac_path_SED_max=$ac_count
6187    fi
6188    # 10*(2^10) chars as input seems more than enough
6189    test $ac_count -gt 10 && break
6190  done
6191  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6192esac
6193
6194      $ac_path_SED_found && break 3
6195    done
6196  done
6197  done
6198IFS=$as_save_IFS
6199  if test -z "$ac_cv_path_SED"; then
6200    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6201  fi
6202else
6203  ac_cv_path_SED=$SED
6204fi
6205
6206fi
6207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6208$as_echo "$ac_cv_path_SED" >&6; }
6209 SED="$ac_cv_path_SED"
6210  rm -f conftest.sed
6211
6212
6213
6214
6215
6216
6217# Check whether --enable-selective-werror was given.
6218if test "${enable_selective_werror+set}" = set; then :
6219  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
6220else
6221  SELECTIVE_WERROR=yes
6222fi
6223
6224
6225
6226
6227
6228# -v is too short to test reliably with XORG_TESTSET_CFLAG
6229if test "x$SUNCC" = "xyes"; then
6230    BASE_CFLAGS="-v"
6231else
6232    BASE_CFLAGS=""
6233fi
6234
6235# This chunk of warnings were those that existed in the legacy CWARNFLAGS
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249xorg_testset_save_CFLAGS="$CFLAGS"
6250
6251if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6252	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6253	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6254$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6255if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6256  $as_echo_n "(cached) " >&6
6257else
6258  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6259/* end confdefs.h.  */
6260int i;
6261_ACEOF
6262if ac_fn_c_try_compile "$LINENO"; then :
6263  xorg_cv_cc_flag_unknown_warning_option=yes
6264else
6265  xorg_cv_cc_flag_unknown_warning_option=no
6266fi
6267rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6268fi
6269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6270$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6271	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6272	CFLAGS="$xorg_testset_save_CFLAGS"
6273fi
6274
6275if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6276	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6277		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6278	fi
6279	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6280	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6281$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6282if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6283  $as_echo_n "(cached) " >&6
6284else
6285  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6286/* end confdefs.h.  */
6287int i;
6288_ACEOF
6289if ac_fn_c_try_compile "$LINENO"; then :
6290  xorg_cv_cc_flag_unused_command_line_argument=yes
6291else
6292  xorg_cv_cc_flag_unused_command_line_argument=no
6293fi
6294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6295fi
6296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6297$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6298	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6299	CFLAGS="$xorg_testset_save_CFLAGS"
6300fi
6301
6302found="no"
6303
6304	if test $found = "no" ; then
6305		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6306			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6307		fi
6308
6309		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6310			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6311		fi
6312
6313		CFLAGS="$CFLAGS -Wall"
6314
6315		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
6316$as_echo_n "checking if $CC supports -Wall... " >&6; }
6317		cacheid=xorg_cv_cc_flag__Wall
6318		if eval \${$cacheid+:} false; then :
6319  $as_echo_n "(cached) " >&6
6320else
6321  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6322/* end confdefs.h.  */
6323int i;
6324int
6325main ()
6326{
6327
6328  ;
6329  return 0;
6330}
6331_ACEOF
6332if ac_fn_c_try_link "$LINENO"; then :
6333  eval $cacheid=yes
6334else
6335  eval $cacheid=no
6336fi
6337rm -f core conftest.err conftest.$ac_objext \
6338    conftest$ac_exeext conftest.$ac_ext
6339fi
6340
6341
6342		CFLAGS="$xorg_testset_save_CFLAGS"
6343
6344		eval supported=\$$cacheid
6345		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6346$as_echo "$supported" >&6; }
6347		if test "$supported" = "yes" ; then
6348			BASE_CFLAGS="$BASE_CFLAGS -Wall"
6349			found="yes"
6350		fi
6351	fi
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367xorg_testset_save_CFLAGS="$CFLAGS"
6368
6369if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6370	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6371	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6372$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6373if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6374  $as_echo_n "(cached) " >&6
6375else
6376  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6377/* end confdefs.h.  */
6378int i;
6379_ACEOF
6380if ac_fn_c_try_compile "$LINENO"; then :
6381  xorg_cv_cc_flag_unknown_warning_option=yes
6382else
6383  xorg_cv_cc_flag_unknown_warning_option=no
6384fi
6385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6386fi
6387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6388$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6389	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6390	CFLAGS="$xorg_testset_save_CFLAGS"
6391fi
6392
6393if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6394	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6395		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6396	fi
6397	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6398	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6399$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6400if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6401  $as_echo_n "(cached) " >&6
6402else
6403  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6404/* end confdefs.h.  */
6405int i;
6406_ACEOF
6407if ac_fn_c_try_compile "$LINENO"; then :
6408  xorg_cv_cc_flag_unused_command_line_argument=yes
6409else
6410  xorg_cv_cc_flag_unused_command_line_argument=no
6411fi
6412rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6413fi
6414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6415$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6416	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6417	CFLAGS="$xorg_testset_save_CFLAGS"
6418fi
6419
6420found="no"
6421
6422	if test $found = "no" ; then
6423		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6424			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6425		fi
6426
6427		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6428			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6429		fi
6430
6431		CFLAGS="$CFLAGS -Wpointer-arith"
6432
6433		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
6434$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
6435		cacheid=xorg_cv_cc_flag__Wpointer_arith
6436		if eval \${$cacheid+:} false; then :
6437  $as_echo_n "(cached) " >&6
6438else
6439  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6440/* end confdefs.h.  */
6441int i;
6442int
6443main ()
6444{
6445
6446  ;
6447  return 0;
6448}
6449_ACEOF
6450if ac_fn_c_try_link "$LINENO"; then :
6451  eval $cacheid=yes
6452else
6453  eval $cacheid=no
6454fi
6455rm -f core conftest.err conftest.$ac_objext \
6456    conftest$ac_exeext conftest.$ac_ext
6457fi
6458
6459
6460		CFLAGS="$xorg_testset_save_CFLAGS"
6461
6462		eval supported=\$$cacheid
6463		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6464$as_echo "$supported" >&6; }
6465		if test "$supported" = "yes" ; then
6466			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
6467			found="yes"
6468		fi
6469	fi
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485xorg_testset_save_CFLAGS="$CFLAGS"
6486
6487if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6488	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6489	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6490$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6491if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6492  $as_echo_n "(cached) " >&6
6493else
6494  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6495/* end confdefs.h.  */
6496int i;
6497_ACEOF
6498if ac_fn_c_try_compile "$LINENO"; then :
6499  xorg_cv_cc_flag_unknown_warning_option=yes
6500else
6501  xorg_cv_cc_flag_unknown_warning_option=no
6502fi
6503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6504fi
6505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6506$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6507	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6508	CFLAGS="$xorg_testset_save_CFLAGS"
6509fi
6510
6511if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6512	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6513		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6514	fi
6515	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6516	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6517$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6518if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6519  $as_echo_n "(cached) " >&6
6520else
6521  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6522/* end confdefs.h.  */
6523int i;
6524_ACEOF
6525if ac_fn_c_try_compile "$LINENO"; then :
6526  xorg_cv_cc_flag_unused_command_line_argument=yes
6527else
6528  xorg_cv_cc_flag_unused_command_line_argument=no
6529fi
6530rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6531fi
6532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6533$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6534	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6535	CFLAGS="$xorg_testset_save_CFLAGS"
6536fi
6537
6538found="no"
6539
6540	if test $found = "no" ; then
6541		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6542			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6543		fi
6544
6545		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6546			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6547		fi
6548
6549		CFLAGS="$CFLAGS -Wmissing-declarations"
6550
6551		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
6552$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
6553		cacheid=xorg_cv_cc_flag__Wmissing_declarations
6554		if eval \${$cacheid+:} false; then :
6555  $as_echo_n "(cached) " >&6
6556else
6557  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6558/* end confdefs.h.  */
6559int i;
6560int
6561main ()
6562{
6563
6564  ;
6565  return 0;
6566}
6567_ACEOF
6568if ac_fn_c_try_link "$LINENO"; then :
6569  eval $cacheid=yes
6570else
6571  eval $cacheid=no
6572fi
6573rm -f core conftest.err conftest.$ac_objext \
6574    conftest$ac_exeext conftest.$ac_ext
6575fi
6576
6577
6578		CFLAGS="$xorg_testset_save_CFLAGS"
6579
6580		eval supported=\$$cacheid
6581		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6582$as_echo "$supported" >&6; }
6583		if test "$supported" = "yes" ; then
6584			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
6585			found="yes"
6586		fi
6587	fi
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603xorg_testset_save_CFLAGS="$CFLAGS"
6604
6605if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6606	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6607	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6608$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6609if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6610  $as_echo_n "(cached) " >&6
6611else
6612  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6613/* end confdefs.h.  */
6614int i;
6615_ACEOF
6616if ac_fn_c_try_compile "$LINENO"; then :
6617  xorg_cv_cc_flag_unknown_warning_option=yes
6618else
6619  xorg_cv_cc_flag_unknown_warning_option=no
6620fi
6621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6622fi
6623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6624$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6625	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6626	CFLAGS="$xorg_testset_save_CFLAGS"
6627fi
6628
6629if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6630	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6631		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6632	fi
6633	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6634	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6635$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6636if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6637  $as_echo_n "(cached) " >&6
6638else
6639  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6640/* end confdefs.h.  */
6641int i;
6642_ACEOF
6643if ac_fn_c_try_compile "$LINENO"; then :
6644  xorg_cv_cc_flag_unused_command_line_argument=yes
6645else
6646  xorg_cv_cc_flag_unused_command_line_argument=no
6647fi
6648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6649fi
6650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6651$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6652	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6653	CFLAGS="$xorg_testset_save_CFLAGS"
6654fi
6655
6656found="no"
6657
6658	if test $found = "no" ; then
6659		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6660			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6661		fi
6662
6663		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6664			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6665		fi
6666
6667		CFLAGS="$CFLAGS -Wformat=2"
6668
6669		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
6670$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
6671		cacheid=xorg_cv_cc_flag__Wformat_2
6672		if eval \${$cacheid+:} false; then :
6673  $as_echo_n "(cached) " >&6
6674else
6675  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6676/* end confdefs.h.  */
6677int i;
6678int
6679main ()
6680{
6681
6682  ;
6683  return 0;
6684}
6685_ACEOF
6686if ac_fn_c_try_link "$LINENO"; then :
6687  eval $cacheid=yes
6688else
6689  eval $cacheid=no
6690fi
6691rm -f core conftest.err conftest.$ac_objext \
6692    conftest$ac_exeext conftest.$ac_ext
6693fi
6694
6695
6696		CFLAGS="$xorg_testset_save_CFLAGS"
6697
6698		eval supported=\$$cacheid
6699		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6700$as_echo "$supported" >&6; }
6701		if test "$supported" = "yes" ; then
6702			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
6703			found="yes"
6704		fi
6705	fi
6706
6707	if test $found = "no" ; then
6708		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6709			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6710		fi
6711
6712		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6713			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6714		fi
6715
6716		CFLAGS="$CFLAGS -Wformat"
6717
6718		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
6719$as_echo_n "checking if $CC supports -Wformat... " >&6; }
6720		cacheid=xorg_cv_cc_flag__Wformat
6721		if eval \${$cacheid+:} false; then :
6722  $as_echo_n "(cached) " >&6
6723else
6724  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6725/* end confdefs.h.  */
6726int i;
6727int
6728main ()
6729{
6730
6731  ;
6732  return 0;
6733}
6734_ACEOF
6735if ac_fn_c_try_link "$LINENO"; then :
6736  eval $cacheid=yes
6737else
6738  eval $cacheid=no
6739fi
6740rm -f core conftest.err conftest.$ac_objext \
6741    conftest$ac_exeext conftest.$ac_ext
6742fi
6743
6744
6745		CFLAGS="$xorg_testset_save_CFLAGS"
6746
6747		eval supported=\$$cacheid
6748		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6749$as_echo "$supported" >&6; }
6750		if test "$supported" = "yes" ; then
6751			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
6752			found="yes"
6753		fi
6754	fi
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772xorg_testset_save_CFLAGS="$CFLAGS"
6773
6774if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6775	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6776	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6777$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6778if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6779  $as_echo_n "(cached) " >&6
6780else
6781  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6782/* end confdefs.h.  */
6783int i;
6784_ACEOF
6785if ac_fn_c_try_compile "$LINENO"; then :
6786  xorg_cv_cc_flag_unknown_warning_option=yes
6787else
6788  xorg_cv_cc_flag_unknown_warning_option=no
6789fi
6790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6791fi
6792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6793$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6794	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6795	CFLAGS="$xorg_testset_save_CFLAGS"
6796fi
6797
6798if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6799	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6800		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6801	fi
6802	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6803	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6804$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6805if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6806  $as_echo_n "(cached) " >&6
6807else
6808  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6809/* end confdefs.h.  */
6810int i;
6811_ACEOF
6812if ac_fn_c_try_compile "$LINENO"; then :
6813  xorg_cv_cc_flag_unused_command_line_argument=yes
6814else
6815  xorg_cv_cc_flag_unused_command_line_argument=no
6816fi
6817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6818fi
6819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6820$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6821	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6822	CFLAGS="$xorg_testset_save_CFLAGS"
6823fi
6824
6825found="no"
6826
6827	if test $found = "no" ; then
6828		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6829			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6830		fi
6831
6832		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6833			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6834		fi
6835
6836		CFLAGS="$CFLAGS -Wstrict-prototypes"
6837
6838		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
6839$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
6840		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
6841		if eval \${$cacheid+:} false; then :
6842  $as_echo_n "(cached) " >&6
6843else
6844  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6845/* end confdefs.h.  */
6846int i;
6847int
6848main ()
6849{
6850
6851  ;
6852  return 0;
6853}
6854_ACEOF
6855if ac_fn_c_try_link "$LINENO"; then :
6856  eval $cacheid=yes
6857else
6858  eval $cacheid=no
6859fi
6860rm -f core conftest.err conftest.$ac_objext \
6861    conftest$ac_exeext conftest.$ac_ext
6862fi
6863
6864
6865		CFLAGS="$xorg_testset_save_CFLAGS"
6866
6867		eval supported=\$$cacheid
6868		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6869$as_echo "$supported" >&6; }
6870		if test "$supported" = "yes" ; then
6871			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
6872			found="yes"
6873		fi
6874	fi
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890xorg_testset_save_CFLAGS="$CFLAGS"
6891
6892if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6893	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6894	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6895$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6896if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6897  $as_echo_n "(cached) " >&6
6898else
6899  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6900/* end confdefs.h.  */
6901int i;
6902_ACEOF
6903if ac_fn_c_try_compile "$LINENO"; then :
6904  xorg_cv_cc_flag_unknown_warning_option=yes
6905else
6906  xorg_cv_cc_flag_unknown_warning_option=no
6907fi
6908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6909fi
6910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6911$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6912	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6913	CFLAGS="$xorg_testset_save_CFLAGS"
6914fi
6915
6916if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6917	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6918		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6919	fi
6920	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6921	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6922$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6923if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6924  $as_echo_n "(cached) " >&6
6925else
6926  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6927/* end confdefs.h.  */
6928int i;
6929_ACEOF
6930if ac_fn_c_try_compile "$LINENO"; then :
6931  xorg_cv_cc_flag_unused_command_line_argument=yes
6932else
6933  xorg_cv_cc_flag_unused_command_line_argument=no
6934fi
6935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6936fi
6937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6938$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6939	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6940	CFLAGS="$xorg_testset_save_CFLAGS"
6941fi
6942
6943found="no"
6944
6945	if test $found = "no" ; then
6946		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6947			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6948		fi
6949
6950		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6951			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6952		fi
6953
6954		CFLAGS="$CFLAGS -Wmissing-prototypes"
6955
6956		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
6957$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
6958		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
6959		if eval \${$cacheid+:} false; then :
6960  $as_echo_n "(cached) " >&6
6961else
6962  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6963/* end confdefs.h.  */
6964int i;
6965int
6966main ()
6967{
6968
6969  ;
6970  return 0;
6971}
6972_ACEOF
6973if ac_fn_c_try_link "$LINENO"; then :
6974  eval $cacheid=yes
6975else
6976  eval $cacheid=no
6977fi
6978rm -f core conftest.err conftest.$ac_objext \
6979    conftest$ac_exeext conftest.$ac_ext
6980fi
6981
6982
6983		CFLAGS="$xorg_testset_save_CFLAGS"
6984
6985		eval supported=\$$cacheid
6986		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6987$as_echo "$supported" >&6; }
6988		if test "$supported" = "yes" ; then
6989			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
6990			found="yes"
6991		fi
6992	fi
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008xorg_testset_save_CFLAGS="$CFLAGS"
7009
7010if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7011	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7012	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7013$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7014if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7015  $as_echo_n "(cached) " >&6
7016else
7017  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7018/* end confdefs.h.  */
7019int i;
7020_ACEOF
7021if ac_fn_c_try_compile "$LINENO"; then :
7022  xorg_cv_cc_flag_unknown_warning_option=yes
7023else
7024  xorg_cv_cc_flag_unknown_warning_option=no
7025fi
7026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7027fi
7028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7029$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7030	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7031	CFLAGS="$xorg_testset_save_CFLAGS"
7032fi
7033
7034if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7035	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7036		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7037	fi
7038	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7039	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7040$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7041if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7042  $as_echo_n "(cached) " >&6
7043else
7044  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7045/* end confdefs.h.  */
7046int i;
7047_ACEOF
7048if ac_fn_c_try_compile "$LINENO"; then :
7049  xorg_cv_cc_flag_unused_command_line_argument=yes
7050else
7051  xorg_cv_cc_flag_unused_command_line_argument=no
7052fi
7053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7054fi
7055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7056$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7057	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7058	CFLAGS="$xorg_testset_save_CFLAGS"
7059fi
7060
7061found="no"
7062
7063	if test $found = "no" ; then
7064		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7065			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7066		fi
7067
7068		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7069			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7070		fi
7071
7072		CFLAGS="$CFLAGS -Wnested-externs"
7073
7074		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
7075$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
7076		cacheid=xorg_cv_cc_flag__Wnested_externs
7077		if eval \${$cacheid+:} false; then :
7078  $as_echo_n "(cached) " >&6
7079else
7080  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7081/* end confdefs.h.  */
7082int i;
7083int
7084main ()
7085{
7086
7087  ;
7088  return 0;
7089}
7090_ACEOF
7091if ac_fn_c_try_link "$LINENO"; then :
7092  eval $cacheid=yes
7093else
7094  eval $cacheid=no
7095fi
7096rm -f core conftest.err conftest.$ac_objext \
7097    conftest$ac_exeext conftest.$ac_ext
7098fi
7099
7100
7101		CFLAGS="$xorg_testset_save_CFLAGS"
7102
7103		eval supported=\$$cacheid
7104		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7105$as_echo "$supported" >&6; }
7106		if test "$supported" = "yes" ; then
7107			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
7108			found="yes"
7109		fi
7110	fi
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126xorg_testset_save_CFLAGS="$CFLAGS"
7127
7128if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7129	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7130	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7131$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7132if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7133  $as_echo_n "(cached) " >&6
7134else
7135  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7136/* end confdefs.h.  */
7137int i;
7138_ACEOF
7139if ac_fn_c_try_compile "$LINENO"; then :
7140  xorg_cv_cc_flag_unknown_warning_option=yes
7141else
7142  xorg_cv_cc_flag_unknown_warning_option=no
7143fi
7144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7145fi
7146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7147$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7148	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7149	CFLAGS="$xorg_testset_save_CFLAGS"
7150fi
7151
7152if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7153	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7154		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7155	fi
7156	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7157	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7158$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7159if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7160  $as_echo_n "(cached) " >&6
7161else
7162  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7163/* end confdefs.h.  */
7164int i;
7165_ACEOF
7166if ac_fn_c_try_compile "$LINENO"; then :
7167  xorg_cv_cc_flag_unused_command_line_argument=yes
7168else
7169  xorg_cv_cc_flag_unused_command_line_argument=no
7170fi
7171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7172fi
7173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7174$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7175	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7176	CFLAGS="$xorg_testset_save_CFLAGS"
7177fi
7178
7179found="no"
7180
7181	if test $found = "no" ; then
7182		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7183			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7184		fi
7185
7186		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7187			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7188		fi
7189
7190		CFLAGS="$CFLAGS -Wbad-function-cast"
7191
7192		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
7193$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
7194		cacheid=xorg_cv_cc_flag__Wbad_function_cast
7195		if eval \${$cacheid+:} false; then :
7196  $as_echo_n "(cached) " >&6
7197else
7198  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7199/* end confdefs.h.  */
7200int i;
7201int
7202main ()
7203{
7204
7205  ;
7206  return 0;
7207}
7208_ACEOF
7209if ac_fn_c_try_link "$LINENO"; then :
7210  eval $cacheid=yes
7211else
7212  eval $cacheid=no
7213fi
7214rm -f core conftest.err conftest.$ac_objext \
7215    conftest$ac_exeext conftest.$ac_ext
7216fi
7217
7218
7219		CFLAGS="$xorg_testset_save_CFLAGS"
7220
7221		eval supported=\$$cacheid
7222		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7223$as_echo "$supported" >&6; }
7224		if test "$supported" = "yes" ; then
7225			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
7226			found="yes"
7227		fi
7228	fi
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244xorg_testset_save_CFLAGS="$CFLAGS"
7245
7246if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7247	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7248	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7249$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7250if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7251  $as_echo_n "(cached) " >&6
7252else
7253  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7254/* end confdefs.h.  */
7255int i;
7256_ACEOF
7257if ac_fn_c_try_compile "$LINENO"; then :
7258  xorg_cv_cc_flag_unknown_warning_option=yes
7259else
7260  xorg_cv_cc_flag_unknown_warning_option=no
7261fi
7262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7263fi
7264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7265$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7266	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7267	CFLAGS="$xorg_testset_save_CFLAGS"
7268fi
7269
7270if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7271	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7272		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7273	fi
7274	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7275	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7276$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7277if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7278  $as_echo_n "(cached) " >&6
7279else
7280  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7281/* end confdefs.h.  */
7282int i;
7283_ACEOF
7284if ac_fn_c_try_compile "$LINENO"; then :
7285  xorg_cv_cc_flag_unused_command_line_argument=yes
7286else
7287  xorg_cv_cc_flag_unused_command_line_argument=no
7288fi
7289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7290fi
7291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7292$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7293	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7294	CFLAGS="$xorg_testset_save_CFLAGS"
7295fi
7296
7297found="no"
7298
7299	if test $found = "no" ; then
7300		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7301			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7302		fi
7303
7304		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7305			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7306		fi
7307
7308		CFLAGS="$CFLAGS -Wold-style-definition"
7309
7310		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
7311$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
7312		cacheid=xorg_cv_cc_flag__Wold_style_definition
7313		if eval \${$cacheid+:} false; then :
7314  $as_echo_n "(cached) " >&6
7315else
7316  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7317/* end confdefs.h.  */
7318int i;
7319int
7320main ()
7321{
7322
7323  ;
7324  return 0;
7325}
7326_ACEOF
7327if ac_fn_c_try_link "$LINENO"; then :
7328  eval $cacheid=yes
7329else
7330  eval $cacheid=no
7331fi
7332rm -f core conftest.err conftest.$ac_objext \
7333    conftest$ac_exeext conftest.$ac_ext
7334fi
7335
7336
7337		CFLAGS="$xorg_testset_save_CFLAGS"
7338
7339		eval supported=\$$cacheid
7340		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7341$as_echo "$supported" >&6; }
7342		if test "$supported" = "yes" ; then
7343			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
7344			found="yes"
7345		fi
7346	fi
7347
7348	if test $found = "no" ; then
7349		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7350			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7351		fi
7352
7353		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7354			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7355		fi
7356
7357		CFLAGS="$CFLAGS -fd"
7358
7359		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
7360$as_echo_n "checking if $CC supports -fd... " >&6; }
7361		cacheid=xorg_cv_cc_flag__fd
7362		if eval \${$cacheid+:} false; then :
7363  $as_echo_n "(cached) " >&6
7364else
7365  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7366/* end confdefs.h.  */
7367int i;
7368int
7369main ()
7370{
7371
7372  ;
7373  return 0;
7374}
7375_ACEOF
7376if ac_fn_c_try_link "$LINENO"; then :
7377  eval $cacheid=yes
7378else
7379  eval $cacheid=no
7380fi
7381rm -f core conftest.err conftest.$ac_objext \
7382    conftest$ac_exeext conftest.$ac_ext
7383fi
7384
7385
7386		CFLAGS="$xorg_testset_save_CFLAGS"
7387
7388		eval supported=\$$cacheid
7389		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7390$as_echo "$supported" >&6; }
7391		if test "$supported" = "yes" ; then
7392			BASE_CFLAGS="$BASE_CFLAGS -fd"
7393			found="yes"
7394		fi
7395	fi
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411xorg_testset_save_CFLAGS="$CFLAGS"
7412
7413if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7414	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7415	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7416$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7417if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7418  $as_echo_n "(cached) " >&6
7419else
7420  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7421/* end confdefs.h.  */
7422int i;
7423_ACEOF
7424if ac_fn_c_try_compile "$LINENO"; then :
7425  xorg_cv_cc_flag_unknown_warning_option=yes
7426else
7427  xorg_cv_cc_flag_unknown_warning_option=no
7428fi
7429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7430fi
7431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7432$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7433	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7434	CFLAGS="$xorg_testset_save_CFLAGS"
7435fi
7436
7437if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7438	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7439		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7440	fi
7441	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7442	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7443$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7444if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7445  $as_echo_n "(cached) " >&6
7446else
7447  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7448/* end confdefs.h.  */
7449int i;
7450_ACEOF
7451if ac_fn_c_try_compile "$LINENO"; then :
7452  xorg_cv_cc_flag_unused_command_line_argument=yes
7453else
7454  xorg_cv_cc_flag_unused_command_line_argument=no
7455fi
7456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7457fi
7458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7459$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7460	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7461	CFLAGS="$xorg_testset_save_CFLAGS"
7462fi
7463
7464found="no"
7465
7466	if test $found = "no" ; then
7467		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7468			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7469		fi
7470
7471		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7472			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7473		fi
7474
7475		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
7476
7477		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
7478$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
7479		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
7480		if eval \${$cacheid+:} false; then :
7481  $as_echo_n "(cached) " >&6
7482else
7483  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7484/* end confdefs.h.  */
7485int i;
7486int
7487main ()
7488{
7489
7490  ;
7491  return 0;
7492}
7493_ACEOF
7494if ac_fn_c_try_link "$LINENO"; then :
7495  eval $cacheid=yes
7496else
7497  eval $cacheid=no
7498fi
7499rm -f core conftest.err conftest.$ac_objext \
7500    conftest$ac_exeext conftest.$ac_ext
7501fi
7502
7503
7504		CFLAGS="$xorg_testset_save_CFLAGS"
7505
7506		eval supported=\$$cacheid
7507		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7508$as_echo "$supported" >&6; }
7509		if test "$supported" = "yes" ; then
7510			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
7511			found="yes"
7512		fi
7513	fi
7514
7515
7516
7517
7518
7519# This chunk adds additional warnings that could catch undesired effects.
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533xorg_testset_save_CFLAGS="$CFLAGS"
7534
7535if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7536	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7537	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7538$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7539if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7540  $as_echo_n "(cached) " >&6
7541else
7542  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7543/* end confdefs.h.  */
7544int i;
7545_ACEOF
7546if ac_fn_c_try_compile "$LINENO"; then :
7547  xorg_cv_cc_flag_unknown_warning_option=yes
7548else
7549  xorg_cv_cc_flag_unknown_warning_option=no
7550fi
7551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7552fi
7553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7554$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7555	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7556	CFLAGS="$xorg_testset_save_CFLAGS"
7557fi
7558
7559if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7560	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7561		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7562	fi
7563	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7564	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7565$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7566if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7567  $as_echo_n "(cached) " >&6
7568else
7569  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7570/* end confdefs.h.  */
7571int i;
7572_ACEOF
7573if ac_fn_c_try_compile "$LINENO"; then :
7574  xorg_cv_cc_flag_unused_command_line_argument=yes
7575else
7576  xorg_cv_cc_flag_unused_command_line_argument=no
7577fi
7578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7579fi
7580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7581$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7582	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7583	CFLAGS="$xorg_testset_save_CFLAGS"
7584fi
7585
7586found="no"
7587
7588	if test $found = "no" ; then
7589		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7590			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7591		fi
7592
7593		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7594			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7595		fi
7596
7597		CFLAGS="$CFLAGS -Wunused"
7598
7599		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
7600$as_echo_n "checking if $CC supports -Wunused... " >&6; }
7601		cacheid=xorg_cv_cc_flag__Wunused
7602		if eval \${$cacheid+:} false; then :
7603  $as_echo_n "(cached) " >&6
7604else
7605  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7606/* end confdefs.h.  */
7607int i;
7608int
7609main ()
7610{
7611
7612  ;
7613  return 0;
7614}
7615_ACEOF
7616if ac_fn_c_try_link "$LINENO"; then :
7617  eval $cacheid=yes
7618else
7619  eval $cacheid=no
7620fi
7621rm -f core conftest.err conftest.$ac_objext \
7622    conftest$ac_exeext conftest.$ac_ext
7623fi
7624
7625
7626		CFLAGS="$xorg_testset_save_CFLAGS"
7627
7628		eval supported=\$$cacheid
7629		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7630$as_echo "$supported" >&6; }
7631		if test "$supported" = "yes" ; then
7632			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
7633			found="yes"
7634		fi
7635	fi
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651xorg_testset_save_CFLAGS="$CFLAGS"
7652
7653if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7654	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7655	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7656$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7657if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7658  $as_echo_n "(cached) " >&6
7659else
7660  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7661/* end confdefs.h.  */
7662int i;
7663_ACEOF
7664if ac_fn_c_try_compile "$LINENO"; then :
7665  xorg_cv_cc_flag_unknown_warning_option=yes
7666else
7667  xorg_cv_cc_flag_unknown_warning_option=no
7668fi
7669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7670fi
7671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7672$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7673	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7674	CFLAGS="$xorg_testset_save_CFLAGS"
7675fi
7676
7677if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7678	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7679		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7680	fi
7681	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7682	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7683$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7684if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7685  $as_echo_n "(cached) " >&6
7686else
7687  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7688/* end confdefs.h.  */
7689int i;
7690_ACEOF
7691if ac_fn_c_try_compile "$LINENO"; then :
7692  xorg_cv_cc_flag_unused_command_line_argument=yes
7693else
7694  xorg_cv_cc_flag_unused_command_line_argument=no
7695fi
7696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7697fi
7698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7699$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7700	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7701	CFLAGS="$xorg_testset_save_CFLAGS"
7702fi
7703
7704found="no"
7705
7706	if test $found = "no" ; then
7707		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7708			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7709		fi
7710
7711		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7712			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7713		fi
7714
7715		CFLAGS="$CFLAGS -Wuninitialized"
7716
7717		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
7718$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
7719		cacheid=xorg_cv_cc_flag__Wuninitialized
7720		if eval \${$cacheid+:} false; then :
7721  $as_echo_n "(cached) " >&6
7722else
7723  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7724/* end confdefs.h.  */
7725int i;
7726int
7727main ()
7728{
7729
7730  ;
7731  return 0;
7732}
7733_ACEOF
7734if ac_fn_c_try_link "$LINENO"; then :
7735  eval $cacheid=yes
7736else
7737  eval $cacheid=no
7738fi
7739rm -f core conftest.err conftest.$ac_objext \
7740    conftest$ac_exeext conftest.$ac_ext
7741fi
7742
7743
7744		CFLAGS="$xorg_testset_save_CFLAGS"
7745
7746		eval supported=\$$cacheid
7747		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7748$as_echo "$supported" >&6; }
7749		if test "$supported" = "yes" ; then
7750			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
7751			found="yes"
7752		fi
7753	fi
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769xorg_testset_save_CFLAGS="$CFLAGS"
7770
7771if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7772	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7773	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7774$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7775if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7776  $as_echo_n "(cached) " >&6
7777else
7778  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7779/* end confdefs.h.  */
7780int i;
7781_ACEOF
7782if ac_fn_c_try_compile "$LINENO"; then :
7783  xorg_cv_cc_flag_unknown_warning_option=yes
7784else
7785  xorg_cv_cc_flag_unknown_warning_option=no
7786fi
7787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7788fi
7789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7790$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7791	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7792	CFLAGS="$xorg_testset_save_CFLAGS"
7793fi
7794
7795if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7796	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7797		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7798	fi
7799	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7800	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7801$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7802if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7803  $as_echo_n "(cached) " >&6
7804else
7805  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7806/* end confdefs.h.  */
7807int i;
7808_ACEOF
7809if ac_fn_c_try_compile "$LINENO"; then :
7810  xorg_cv_cc_flag_unused_command_line_argument=yes
7811else
7812  xorg_cv_cc_flag_unused_command_line_argument=no
7813fi
7814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7815fi
7816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7817$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7818	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7819	CFLAGS="$xorg_testset_save_CFLAGS"
7820fi
7821
7822found="no"
7823
7824	if test $found = "no" ; then
7825		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7826			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7827		fi
7828
7829		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7830			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7831		fi
7832
7833		CFLAGS="$CFLAGS -Wshadow"
7834
7835		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
7836$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
7837		cacheid=xorg_cv_cc_flag__Wshadow
7838		if eval \${$cacheid+:} false; then :
7839  $as_echo_n "(cached) " >&6
7840else
7841  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7842/* end confdefs.h.  */
7843int i;
7844int
7845main ()
7846{
7847
7848  ;
7849  return 0;
7850}
7851_ACEOF
7852if ac_fn_c_try_link "$LINENO"; then :
7853  eval $cacheid=yes
7854else
7855  eval $cacheid=no
7856fi
7857rm -f core conftest.err conftest.$ac_objext \
7858    conftest$ac_exeext conftest.$ac_ext
7859fi
7860
7861
7862		CFLAGS="$xorg_testset_save_CFLAGS"
7863
7864		eval supported=\$$cacheid
7865		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7866$as_echo "$supported" >&6; }
7867		if test "$supported" = "yes" ; then
7868			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
7869			found="yes"
7870		fi
7871	fi
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887xorg_testset_save_CFLAGS="$CFLAGS"
7888
7889if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7890	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7891	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7892$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7893if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7894  $as_echo_n "(cached) " >&6
7895else
7896  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7897/* end confdefs.h.  */
7898int i;
7899_ACEOF
7900if ac_fn_c_try_compile "$LINENO"; then :
7901  xorg_cv_cc_flag_unknown_warning_option=yes
7902else
7903  xorg_cv_cc_flag_unknown_warning_option=no
7904fi
7905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7906fi
7907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7908$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7909	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7910	CFLAGS="$xorg_testset_save_CFLAGS"
7911fi
7912
7913if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7914	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7915		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7916	fi
7917	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7918	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7919$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7920if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7921  $as_echo_n "(cached) " >&6
7922else
7923  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7924/* end confdefs.h.  */
7925int i;
7926_ACEOF
7927if ac_fn_c_try_compile "$LINENO"; then :
7928  xorg_cv_cc_flag_unused_command_line_argument=yes
7929else
7930  xorg_cv_cc_flag_unused_command_line_argument=no
7931fi
7932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7933fi
7934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7935$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7936	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7937	CFLAGS="$xorg_testset_save_CFLAGS"
7938fi
7939
7940found="no"
7941
7942	if test $found = "no" ; then
7943		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7944			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7945		fi
7946
7947		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7948			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7949		fi
7950
7951		CFLAGS="$CFLAGS -Wmissing-noreturn"
7952
7953		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
7954$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
7955		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
7956		if eval \${$cacheid+:} false; then :
7957  $as_echo_n "(cached) " >&6
7958else
7959  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7960/* end confdefs.h.  */
7961int i;
7962int
7963main ()
7964{
7965
7966  ;
7967  return 0;
7968}
7969_ACEOF
7970if ac_fn_c_try_link "$LINENO"; then :
7971  eval $cacheid=yes
7972else
7973  eval $cacheid=no
7974fi
7975rm -f core conftest.err conftest.$ac_objext \
7976    conftest$ac_exeext conftest.$ac_ext
7977fi
7978
7979
7980		CFLAGS="$xorg_testset_save_CFLAGS"
7981
7982		eval supported=\$$cacheid
7983		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7984$as_echo "$supported" >&6; }
7985		if test "$supported" = "yes" ; then
7986			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
7987			found="yes"
7988		fi
7989	fi
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005xorg_testset_save_CFLAGS="$CFLAGS"
8006
8007if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8008	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8009	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8010$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8011if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8012  $as_echo_n "(cached) " >&6
8013else
8014  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8015/* end confdefs.h.  */
8016int i;
8017_ACEOF
8018if ac_fn_c_try_compile "$LINENO"; then :
8019  xorg_cv_cc_flag_unknown_warning_option=yes
8020else
8021  xorg_cv_cc_flag_unknown_warning_option=no
8022fi
8023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8024fi
8025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8026$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8027	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8028	CFLAGS="$xorg_testset_save_CFLAGS"
8029fi
8030
8031if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8032	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8033		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8034	fi
8035	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8036	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8037$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8038if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8039  $as_echo_n "(cached) " >&6
8040else
8041  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8042/* end confdefs.h.  */
8043int i;
8044_ACEOF
8045if ac_fn_c_try_compile "$LINENO"; then :
8046  xorg_cv_cc_flag_unused_command_line_argument=yes
8047else
8048  xorg_cv_cc_flag_unused_command_line_argument=no
8049fi
8050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8051fi
8052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8053$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8054	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8055	CFLAGS="$xorg_testset_save_CFLAGS"
8056fi
8057
8058found="no"
8059
8060	if test $found = "no" ; then
8061		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8062			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8063		fi
8064
8065		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8066			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8067		fi
8068
8069		CFLAGS="$CFLAGS -Wmissing-format-attribute"
8070
8071		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
8072$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
8073		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
8074		if eval \${$cacheid+:} false; then :
8075  $as_echo_n "(cached) " >&6
8076else
8077  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8078/* end confdefs.h.  */
8079int i;
8080int
8081main ()
8082{
8083
8084  ;
8085  return 0;
8086}
8087_ACEOF
8088if ac_fn_c_try_link "$LINENO"; then :
8089  eval $cacheid=yes
8090else
8091  eval $cacheid=no
8092fi
8093rm -f core conftest.err conftest.$ac_objext \
8094    conftest$ac_exeext conftest.$ac_ext
8095fi
8096
8097
8098		CFLAGS="$xorg_testset_save_CFLAGS"
8099
8100		eval supported=\$$cacheid
8101		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8102$as_echo "$supported" >&6; }
8103		if test "$supported" = "yes" ; then
8104			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
8105			found="yes"
8106		fi
8107	fi
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123xorg_testset_save_CFLAGS="$CFLAGS"
8124
8125if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8126	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8127	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8128$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8129if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8130  $as_echo_n "(cached) " >&6
8131else
8132  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8133/* end confdefs.h.  */
8134int i;
8135_ACEOF
8136if ac_fn_c_try_compile "$LINENO"; then :
8137  xorg_cv_cc_flag_unknown_warning_option=yes
8138else
8139  xorg_cv_cc_flag_unknown_warning_option=no
8140fi
8141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8142fi
8143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8144$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8145	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8146	CFLAGS="$xorg_testset_save_CFLAGS"
8147fi
8148
8149if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8150	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8151		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8152	fi
8153	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8154	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8155$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8156if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8157  $as_echo_n "(cached) " >&6
8158else
8159  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8160/* end confdefs.h.  */
8161int i;
8162_ACEOF
8163if ac_fn_c_try_compile "$LINENO"; then :
8164  xorg_cv_cc_flag_unused_command_line_argument=yes
8165else
8166  xorg_cv_cc_flag_unused_command_line_argument=no
8167fi
8168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8169fi
8170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8171$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8172	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8173	CFLAGS="$xorg_testset_save_CFLAGS"
8174fi
8175
8176found="no"
8177
8178	if test $found = "no" ; then
8179		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8180			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8181		fi
8182
8183		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8184			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8185		fi
8186
8187		CFLAGS="$CFLAGS -Wredundant-decls"
8188
8189		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
8190$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
8191		cacheid=xorg_cv_cc_flag__Wredundant_decls
8192		if eval \${$cacheid+:} false; then :
8193  $as_echo_n "(cached) " >&6
8194else
8195  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8196/* end confdefs.h.  */
8197int i;
8198int
8199main ()
8200{
8201
8202  ;
8203  return 0;
8204}
8205_ACEOF
8206if ac_fn_c_try_link "$LINENO"; then :
8207  eval $cacheid=yes
8208else
8209  eval $cacheid=no
8210fi
8211rm -f core conftest.err conftest.$ac_objext \
8212    conftest$ac_exeext conftest.$ac_ext
8213fi
8214
8215
8216		CFLAGS="$xorg_testset_save_CFLAGS"
8217
8218		eval supported=\$$cacheid
8219		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8220$as_echo "$supported" >&6; }
8221		if test "$supported" = "yes" ; then
8222			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
8223			found="yes"
8224		fi
8225	fi
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241xorg_testset_save_CFLAGS="$CFLAGS"
8242
8243if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8244	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8245	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8246$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8247if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8248  $as_echo_n "(cached) " >&6
8249else
8250  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8251/* end confdefs.h.  */
8252int i;
8253_ACEOF
8254if ac_fn_c_try_compile "$LINENO"; then :
8255  xorg_cv_cc_flag_unknown_warning_option=yes
8256else
8257  xorg_cv_cc_flag_unknown_warning_option=no
8258fi
8259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8260fi
8261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8262$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8263	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8264	CFLAGS="$xorg_testset_save_CFLAGS"
8265fi
8266
8267if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8268	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8269		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8270	fi
8271	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8272	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8273$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8274if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8275  $as_echo_n "(cached) " >&6
8276else
8277  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8278/* end confdefs.h.  */
8279int i;
8280_ACEOF
8281if ac_fn_c_try_compile "$LINENO"; then :
8282  xorg_cv_cc_flag_unused_command_line_argument=yes
8283else
8284  xorg_cv_cc_flag_unused_command_line_argument=no
8285fi
8286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8287fi
8288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8289$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8290	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8291	CFLAGS="$xorg_testset_save_CFLAGS"
8292fi
8293
8294found="no"
8295
8296	if test $found = "no" ; then
8297		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8298			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8299		fi
8300
8301		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8302			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8303		fi
8304
8305		CFLAGS="$CFLAGS -Wlogical-op"
8306
8307		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
8308$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
8309		cacheid=xorg_cv_cc_flag__Wlogical_op
8310		if eval \${$cacheid+:} false; then :
8311  $as_echo_n "(cached) " >&6
8312else
8313  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8314/* end confdefs.h.  */
8315int i;
8316int
8317main ()
8318{
8319
8320  ;
8321  return 0;
8322}
8323_ACEOF
8324if ac_fn_c_try_link "$LINENO"; then :
8325  eval $cacheid=yes
8326else
8327  eval $cacheid=no
8328fi
8329rm -f core conftest.err conftest.$ac_objext \
8330    conftest$ac_exeext conftest.$ac_ext
8331fi
8332
8333
8334		CFLAGS="$xorg_testset_save_CFLAGS"
8335
8336		eval supported=\$$cacheid
8337		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8338$as_echo "$supported" >&6; }
8339		if test "$supported" = "yes" ; then
8340			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
8341			found="yes"
8342		fi
8343	fi
8344
8345
8346
8347# These are currently disabled because they are noisy.  They will be enabled
8348# in the future once the codebase is sufficiently modernized to silence
8349# them.  For now, I don't want them to drown out the other warnings.
8350# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
8351# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
8352# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
8353
8354# Turn some warnings into errors, so we don't accidently get successful builds
8355# when there are problems that should be fixed.
8356
8357if test "x$SELECTIVE_WERROR" = "xyes" ; then
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371xorg_testset_save_CFLAGS="$CFLAGS"
8372
8373if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8374	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8375	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8376$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8377if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8378  $as_echo_n "(cached) " >&6
8379else
8380  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8381/* end confdefs.h.  */
8382int i;
8383_ACEOF
8384if ac_fn_c_try_compile "$LINENO"; then :
8385  xorg_cv_cc_flag_unknown_warning_option=yes
8386else
8387  xorg_cv_cc_flag_unknown_warning_option=no
8388fi
8389rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8390fi
8391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8392$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8393	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8394	CFLAGS="$xorg_testset_save_CFLAGS"
8395fi
8396
8397if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8398	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8399		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8400	fi
8401	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8402	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8403$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8404if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8405  $as_echo_n "(cached) " >&6
8406else
8407  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8408/* end confdefs.h.  */
8409int i;
8410_ACEOF
8411if ac_fn_c_try_compile "$LINENO"; then :
8412  xorg_cv_cc_flag_unused_command_line_argument=yes
8413else
8414  xorg_cv_cc_flag_unused_command_line_argument=no
8415fi
8416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8417fi
8418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8419$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8420	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8421	CFLAGS="$xorg_testset_save_CFLAGS"
8422fi
8423
8424found="no"
8425
8426	if test $found = "no" ; then
8427		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8428			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8429		fi
8430
8431		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8432			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8433		fi
8434
8435		CFLAGS="$CFLAGS -Werror=implicit"
8436
8437		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
8438$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
8439		cacheid=xorg_cv_cc_flag__Werror_implicit
8440		if eval \${$cacheid+:} false; then :
8441  $as_echo_n "(cached) " >&6
8442else
8443  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8444/* end confdefs.h.  */
8445int i;
8446int
8447main ()
8448{
8449
8450  ;
8451  return 0;
8452}
8453_ACEOF
8454if ac_fn_c_try_link "$LINENO"; then :
8455  eval $cacheid=yes
8456else
8457  eval $cacheid=no
8458fi
8459rm -f core conftest.err conftest.$ac_objext \
8460    conftest$ac_exeext conftest.$ac_ext
8461fi
8462
8463
8464		CFLAGS="$xorg_testset_save_CFLAGS"
8465
8466		eval supported=\$$cacheid
8467		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8468$as_echo "$supported" >&6; }
8469		if test "$supported" = "yes" ; then
8470			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
8471			found="yes"
8472		fi
8473	fi
8474
8475	if test $found = "no" ; then
8476		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8477			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8478		fi
8479
8480		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8481			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8482		fi
8483
8484		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
8485
8486		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
8487$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
8488		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
8489		if eval \${$cacheid+:} false; then :
8490  $as_echo_n "(cached) " >&6
8491else
8492  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8493/* end confdefs.h.  */
8494int i;
8495int
8496main ()
8497{
8498
8499  ;
8500  return 0;
8501}
8502_ACEOF
8503if ac_fn_c_try_link "$LINENO"; then :
8504  eval $cacheid=yes
8505else
8506  eval $cacheid=no
8507fi
8508rm -f core conftest.err conftest.$ac_objext \
8509    conftest$ac_exeext conftest.$ac_ext
8510fi
8511
8512
8513		CFLAGS="$xorg_testset_save_CFLAGS"
8514
8515		eval supported=\$$cacheid
8516		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8517$as_echo "$supported" >&6; }
8518		if test "$supported" = "yes" ; then
8519			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
8520			found="yes"
8521		fi
8522	fi
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538xorg_testset_save_CFLAGS="$CFLAGS"
8539
8540if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8541	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8542	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8543$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8544if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8545  $as_echo_n "(cached) " >&6
8546else
8547  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8548/* end confdefs.h.  */
8549int i;
8550_ACEOF
8551if ac_fn_c_try_compile "$LINENO"; then :
8552  xorg_cv_cc_flag_unknown_warning_option=yes
8553else
8554  xorg_cv_cc_flag_unknown_warning_option=no
8555fi
8556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8557fi
8558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8559$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8560	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8561	CFLAGS="$xorg_testset_save_CFLAGS"
8562fi
8563
8564if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8565	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8566		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8567	fi
8568	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8569	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8570$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8571if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8572  $as_echo_n "(cached) " >&6
8573else
8574  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8575/* end confdefs.h.  */
8576int i;
8577_ACEOF
8578if ac_fn_c_try_compile "$LINENO"; then :
8579  xorg_cv_cc_flag_unused_command_line_argument=yes
8580else
8581  xorg_cv_cc_flag_unused_command_line_argument=no
8582fi
8583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8584fi
8585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8586$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8587	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8588	CFLAGS="$xorg_testset_save_CFLAGS"
8589fi
8590
8591found="no"
8592
8593	if test $found = "no" ; then
8594		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8595			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8596		fi
8597
8598		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8599			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8600		fi
8601
8602		CFLAGS="$CFLAGS -Werror=nonnull"
8603
8604		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
8605$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
8606		cacheid=xorg_cv_cc_flag__Werror_nonnull
8607		if eval \${$cacheid+:} false; then :
8608  $as_echo_n "(cached) " >&6
8609else
8610  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8611/* end confdefs.h.  */
8612int i;
8613int
8614main ()
8615{
8616
8617  ;
8618  return 0;
8619}
8620_ACEOF
8621if ac_fn_c_try_link "$LINENO"; then :
8622  eval $cacheid=yes
8623else
8624  eval $cacheid=no
8625fi
8626rm -f core conftest.err conftest.$ac_objext \
8627    conftest$ac_exeext conftest.$ac_ext
8628fi
8629
8630
8631		CFLAGS="$xorg_testset_save_CFLAGS"
8632
8633		eval supported=\$$cacheid
8634		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8635$as_echo "$supported" >&6; }
8636		if test "$supported" = "yes" ; then
8637			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
8638			found="yes"
8639		fi
8640	fi
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656xorg_testset_save_CFLAGS="$CFLAGS"
8657
8658if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8659	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8660	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8661$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8662if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8663  $as_echo_n "(cached) " >&6
8664else
8665  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8666/* end confdefs.h.  */
8667int i;
8668_ACEOF
8669if ac_fn_c_try_compile "$LINENO"; then :
8670  xorg_cv_cc_flag_unknown_warning_option=yes
8671else
8672  xorg_cv_cc_flag_unknown_warning_option=no
8673fi
8674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8675fi
8676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8677$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8678	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8679	CFLAGS="$xorg_testset_save_CFLAGS"
8680fi
8681
8682if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8683	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8684		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8685	fi
8686	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8687	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8688$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8689if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8690  $as_echo_n "(cached) " >&6
8691else
8692  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8693/* end confdefs.h.  */
8694int i;
8695_ACEOF
8696if ac_fn_c_try_compile "$LINENO"; then :
8697  xorg_cv_cc_flag_unused_command_line_argument=yes
8698else
8699  xorg_cv_cc_flag_unused_command_line_argument=no
8700fi
8701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8702fi
8703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8704$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8705	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8706	CFLAGS="$xorg_testset_save_CFLAGS"
8707fi
8708
8709found="no"
8710
8711	if test $found = "no" ; then
8712		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8713			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8714		fi
8715
8716		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8717			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8718		fi
8719
8720		CFLAGS="$CFLAGS -Werror=init-self"
8721
8722		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
8723$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
8724		cacheid=xorg_cv_cc_flag__Werror_init_self
8725		if eval \${$cacheid+:} false; then :
8726  $as_echo_n "(cached) " >&6
8727else
8728  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8729/* end confdefs.h.  */
8730int i;
8731int
8732main ()
8733{
8734
8735  ;
8736  return 0;
8737}
8738_ACEOF
8739if ac_fn_c_try_link "$LINENO"; then :
8740  eval $cacheid=yes
8741else
8742  eval $cacheid=no
8743fi
8744rm -f core conftest.err conftest.$ac_objext \
8745    conftest$ac_exeext conftest.$ac_ext
8746fi
8747
8748
8749		CFLAGS="$xorg_testset_save_CFLAGS"
8750
8751		eval supported=\$$cacheid
8752		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8753$as_echo "$supported" >&6; }
8754		if test "$supported" = "yes" ; then
8755			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
8756			found="yes"
8757		fi
8758	fi
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774xorg_testset_save_CFLAGS="$CFLAGS"
8775
8776if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8777	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8778	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8779$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8780if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8781  $as_echo_n "(cached) " >&6
8782else
8783  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8784/* end confdefs.h.  */
8785int i;
8786_ACEOF
8787if ac_fn_c_try_compile "$LINENO"; then :
8788  xorg_cv_cc_flag_unknown_warning_option=yes
8789else
8790  xorg_cv_cc_flag_unknown_warning_option=no
8791fi
8792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8793fi
8794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8795$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8796	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8797	CFLAGS="$xorg_testset_save_CFLAGS"
8798fi
8799
8800if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8801	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8802		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8803	fi
8804	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8805	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8806$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8807if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8808  $as_echo_n "(cached) " >&6
8809else
8810  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8811/* end confdefs.h.  */
8812int i;
8813_ACEOF
8814if ac_fn_c_try_compile "$LINENO"; then :
8815  xorg_cv_cc_flag_unused_command_line_argument=yes
8816else
8817  xorg_cv_cc_flag_unused_command_line_argument=no
8818fi
8819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8820fi
8821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8822$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8823	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8824	CFLAGS="$xorg_testset_save_CFLAGS"
8825fi
8826
8827found="no"
8828
8829	if test $found = "no" ; then
8830		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8831			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8832		fi
8833
8834		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8835			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8836		fi
8837
8838		CFLAGS="$CFLAGS -Werror=main"
8839
8840		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
8841$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
8842		cacheid=xorg_cv_cc_flag__Werror_main
8843		if eval \${$cacheid+:} false; then :
8844  $as_echo_n "(cached) " >&6
8845else
8846  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8847/* end confdefs.h.  */
8848int i;
8849int
8850main ()
8851{
8852
8853  ;
8854  return 0;
8855}
8856_ACEOF
8857if ac_fn_c_try_link "$LINENO"; then :
8858  eval $cacheid=yes
8859else
8860  eval $cacheid=no
8861fi
8862rm -f core conftest.err conftest.$ac_objext \
8863    conftest$ac_exeext conftest.$ac_ext
8864fi
8865
8866
8867		CFLAGS="$xorg_testset_save_CFLAGS"
8868
8869		eval supported=\$$cacheid
8870		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8871$as_echo "$supported" >&6; }
8872		if test "$supported" = "yes" ; then
8873			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
8874			found="yes"
8875		fi
8876	fi
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892xorg_testset_save_CFLAGS="$CFLAGS"
8893
8894if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8895	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8896	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8897$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8898if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8899  $as_echo_n "(cached) " >&6
8900else
8901  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8902/* end confdefs.h.  */
8903int i;
8904_ACEOF
8905if ac_fn_c_try_compile "$LINENO"; then :
8906  xorg_cv_cc_flag_unknown_warning_option=yes
8907else
8908  xorg_cv_cc_flag_unknown_warning_option=no
8909fi
8910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8911fi
8912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8913$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8914	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8915	CFLAGS="$xorg_testset_save_CFLAGS"
8916fi
8917
8918if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8919	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8920		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8921	fi
8922	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8923	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8924$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8925if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8926  $as_echo_n "(cached) " >&6
8927else
8928  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8929/* end confdefs.h.  */
8930int i;
8931_ACEOF
8932if ac_fn_c_try_compile "$LINENO"; then :
8933  xorg_cv_cc_flag_unused_command_line_argument=yes
8934else
8935  xorg_cv_cc_flag_unused_command_line_argument=no
8936fi
8937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8938fi
8939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8940$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8941	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8942	CFLAGS="$xorg_testset_save_CFLAGS"
8943fi
8944
8945found="no"
8946
8947	if test $found = "no" ; then
8948		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8949			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8950		fi
8951
8952		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8953			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8954		fi
8955
8956		CFLAGS="$CFLAGS -Werror=missing-braces"
8957
8958		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
8959$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
8960		cacheid=xorg_cv_cc_flag__Werror_missing_braces
8961		if eval \${$cacheid+:} false; then :
8962  $as_echo_n "(cached) " >&6
8963else
8964  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8965/* end confdefs.h.  */
8966int i;
8967int
8968main ()
8969{
8970
8971  ;
8972  return 0;
8973}
8974_ACEOF
8975if ac_fn_c_try_link "$LINENO"; then :
8976  eval $cacheid=yes
8977else
8978  eval $cacheid=no
8979fi
8980rm -f core conftest.err conftest.$ac_objext \
8981    conftest$ac_exeext conftest.$ac_ext
8982fi
8983
8984
8985		CFLAGS="$xorg_testset_save_CFLAGS"
8986
8987		eval supported=\$$cacheid
8988		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8989$as_echo "$supported" >&6; }
8990		if test "$supported" = "yes" ; then
8991			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
8992			found="yes"
8993		fi
8994	fi
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010xorg_testset_save_CFLAGS="$CFLAGS"
9011
9012if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9013	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9014	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9015$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9016if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9017  $as_echo_n "(cached) " >&6
9018else
9019  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9020/* end confdefs.h.  */
9021int i;
9022_ACEOF
9023if ac_fn_c_try_compile "$LINENO"; then :
9024  xorg_cv_cc_flag_unknown_warning_option=yes
9025else
9026  xorg_cv_cc_flag_unknown_warning_option=no
9027fi
9028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9029fi
9030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9031$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9032	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9033	CFLAGS="$xorg_testset_save_CFLAGS"
9034fi
9035
9036if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9037	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9038		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9039	fi
9040	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9041	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9042$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9043if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9044  $as_echo_n "(cached) " >&6
9045else
9046  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9047/* end confdefs.h.  */
9048int i;
9049_ACEOF
9050if ac_fn_c_try_compile "$LINENO"; then :
9051  xorg_cv_cc_flag_unused_command_line_argument=yes
9052else
9053  xorg_cv_cc_flag_unused_command_line_argument=no
9054fi
9055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9056fi
9057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9058$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9059	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9060	CFLAGS="$xorg_testset_save_CFLAGS"
9061fi
9062
9063found="no"
9064
9065	if test $found = "no" ; then
9066		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9067			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9068		fi
9069
9070		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9071			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9072		fi
9073
9074		CFLAGS="$CFLAGS -Werror=sequence-point"
9075
9076		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
9077$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
9078		cacheid=xorg_cv_cc_flag__Werror_sequence_point
9079		if eval \${$cacheid+:} false; then :
9080  $as_echo_n "(cached) " >&6
9081else
9082  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9083/* end confdefs.h.  */
9084int i;
9085int
9086main ()
9087{
9088
9089  ;
9090  return 0;
9091}
9092_ACEOF
9093if ac_fn_c_try_link "$LINENO"; then :
9094  eval $cacheid=yes
9095else
9096  eval $cacheid=no
9097fi
9098rm -f core conftest.err conftest.$ac_objext \
9099    conftest$ac_exeext conftest.$ac_ext
9100fi
9101
9102
9103		CFLAGS="$xorg_testset_save_CFLAGS"
9104
9105		eval supported=\$$cacheid
9106		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9107$as_echo "$supported" >&6; }
9108		if test "$supported" = "yes" ; then
9109			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
9110			found="yes"
9111		fi
9112	fi
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128xorg_testset_save_CFLAGS="$CFLAGS"
9129
9130if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9131	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9132	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9133$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9134if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9135  $as_echo_n "(cached) " >&6
9136else
9137  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9138/* end confdefs.h.  */
9139int i;
9140_ACEOF
9141if ac_fn_c_try_compile "$LINENO"; then :
9142  xorg_cv_cc_flag_unknown_warning_option=yes
9143else
9144  xorg_cv_cc_flag_unknown_warning_option=no
9145fi
9146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9147fi
9148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9149$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9150	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9151	CFLAGS="$xorg_testset_save_CFLAGS"
9152fi
9153
9154if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9155	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9156		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9157	fi
9158	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9159	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9160$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9161if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9162  $as_echo_n "(cached) " >&6
9163else
9164  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9165/* end confdefs.h.  */
9166int i;
9167_ACEOF
9168if ac_fn_c_try_compile "$LINENO"; then :
9169  xorg_cv_cc_flag_unused_command_line_argument=yes
9170else
9171  xorg_cv_cc_flag_unused_command_line_argument=no
9172fi
9173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9174fi
9175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9176$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9177	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9178	CFLAGS="$xorg_testset_save_CFLAGS"
9179fi
9180
9181found="no"
9182
9183	if test $found = "no" ; then
9184		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9185			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9186		fi
9187
9188		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9189			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9190		fi
9191
9192		CFLAGS="$CFLAGS -Werror=return-type"
9193
9194		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
9195$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
9196		cacheid=xorg_cv_cc_flag__Werror_return_type
9197		if eval \${$cacheid+:} false; then :
9198  $as_echo_n "(cached) " >&6
9199else
9200  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9201/* end confdefs.h.  */
9202int i;
9203int
9204main ()
9205{
9206
9207  ;
9208  return 0;
9209}
9210_ACEOF
9211if ac_fn_c_try_link "$LINENO"; then :
9212  eval $cacheid=yes
9213else
9214  eval $cacheid=no
9215fi
9216rm -f core conftest.err conftest.$ac_objext \
9217    conftest$ac_exeext conftest.$ac_ext
9218fi
9219
9220
9221		CFLAGS="$xorg_testset_save_CFLAGS"
9222
9223		eval supported=\$$cacheid
9224		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9225$as_echo "$supported" >&6; }
9226		if test "$supported" = "yes" ; then
9227			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
9228			found="yes"
9229		fi
9230	fi
9231
9232	if test $found = "no" ; then
9233		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9234			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9235		fi
9236
9237		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9238			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9239		fi
9240
9241		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
9242
9243		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
9244$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
9245		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
9246		if eval \${$cacheid+:} false; then :
9247  $as_echo_n "(cached) " >&6
9248else
9249  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9250/* end confdefs.h.  */
9251int i;
9252int
9253main ()
9254{
9255
9256  ;
9257  return 0;
9258}
9259_ACEOF
9260if ac_fn_c_try_link "$LINENO"; then :
9261  eval $cacheid=yes
9262else
9263  eval $cacheid=no
9264fi
9265rm -f core conftest.err conftest.$ac_objext \
9266    conftest$ac_exeext conftest.$ac_ext
9267fi
9268
9269
9270		CFLAGS="$xorg_testset_save_CFLAGS"
9271
9272		eval supported=\$$cacheid
9273		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9274$as_echo "$supported" >&6; }
9275		if test "$supported" = "yes" ; then
9276			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
9277			found="yes"
9278		fi
9279	fi
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295xorg_testset_save_CFLAGS="$CFLAGS"
9296
9297if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9298	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9299	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9300$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9301if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9302  $as_echo_n "(cached) " >&6
9303else
9304  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9305/* end confdefs.h.  */
9306int i;
9307_ACEOF
9308if ac_fn_c_try_compile "$LINENO"; then :
9309  xorg_cv_cc_flag_unknown_warning_option=yes
9310else
9311  xorg_cv_cc_flag_unknown_warning_option=no
9312fi
9313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9314fi
9315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9316$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9317	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9318	CFLAGS="$xorg_testset_save_CFLAGS"
9319fi
9320
9321if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9322	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9323		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9324	fi
9325	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9326	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9327$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9328if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9329  $as_echo_n "(cached) " >&6
9330else
9331  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9332/* end confdefs.h.  */
9333int i;
9334_ACEOF
9335if ac_fn_c_try_compile "$LINENO"; then :
9336  xorg_cv_cc_flag_unused_command_line_argument=yes
9337else
9338  xorg_cv_cc_flag_unused_command_line_argument=no
9339fi
9340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9341fi
9342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9343$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9344	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9345	CFLAGS="$xorg_testset_save_CFLAGS"
9346fi
9347
9348found="no"
9349
9350	if test $found = "no" ; then
9351		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9352			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9353		fi
9354
9355		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9356			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9357		fi
9358
9359		CFLAGS="$CFLAGS -Werror=trigraphs"
9360
9361		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
9362$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
9363		cacheid=xorg_cv_cc_flag__Werror_trigraphs
9364		if eval \${$cacheid+:} false; then :
9365  $as_echo_n "(cached) " >&6
9366else
9367  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9368/* end confdefs.h.  */
9369int i;
9370int
9371main ()
9372{
9373
9374  ;
9375  return 0;
9376}
9377_ACEOF
9378if ac_fn_c_try_link "$LINENO"; then :
9379  eval $cacheid=yes
9380else
9381  eval $cacheid=no
9382fi
9383rm -f core conftest.err conftest.$ac_objext \
9384    conftest$ac_exeext conftest.$ac_ext
9385fi
9386
9387
9388		CFLAGS="$xorg_testset_save_CFLAGS"
9389
9390		eval supported=\$$cacheid
9391		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9392$as_echo "$supported" >&6; }
9393		if test "$supported" = "yes" ; then
9394			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
9395			found="yes"
9396		fi
9397	fi
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413xorg_testset_save_CFLAGS="$CFLAGS"
9414
9415if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9416	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9417	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9418$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9419if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9420  $as_echo_n "(cached) " >&6
9421else
9422  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9423/* end confdefs.h.  */
9424int i;
9425_ACEOF
9426if ac_fn_c_try_compile "$LINENO"; then :
9427  xorg_cv_cc_flag_unknown_warning_option=yes
9428else
9429  xorg_cv_cc_flag_unknown_warning_option=no
9430fi
9431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9432fi
9433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9434$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9435	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9436	CFLAGS="$xorg_testset_save_CFLAGS"
9437fi
9438
9439if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9440	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9441		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9442	fi
9443	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9444	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9445$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9446if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9447  $as_echo_n "(cached) " >&6
9448else
9449  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9450/* end confdefs.h.  */
9451int i;
9452_ACEOF
9453if ac_fn_c_try_compile "$LINENO"; then :
9454  xorg_cv_cc_flag_unused_command_line_argument=yes
9455else
9456  xorg_cv_cc_flag_unused_command_line_argument=no
9457fi
9458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9459fi
9460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9461$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9462	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9463	CFLAGS="$xorg_testset_save_CFLAGS"
9464fi
9465
9466found="no"
9467
9468	if test $found = "no" ; then
9469		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9470			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9471		fi
9472
9473		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9474			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9475		fi
9476
9477		CFLAGS="$CFLAGS -Werror=array-bounds"
9478
9479		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
9480$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
9481		cacheid=xorg_cv_cc_flag__Werror_array_bounds
9482		if eval \${$cacheid+:} false; then :
9483  $as_echo_n "(cached) " >&6
9484else
9485  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9486/* end confdefs.h.  */
9487int i;
9488int
9489main ()
9490{
9491
9492  ;
9493  return 0;
9494}
9495_ACEOF
9496if ac_fn_c_try_link "$LINENO"; then :
9497  eval $cacheid=yes
9498else
9499  eval $cacheid=no
9500fi
9501rm -f core conftest.err conftest.$ac_objext \
9502    conftest$ac_exeext conftest.$ac_ext
9503fi
9504
9505
9506		CFLAGS="$xorg_testset_save_CFLAGS"
9507
9508		eval supported=\$$cacheid
9509		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9510$as_echo "$supported" >&6; }
9511		if test "$supported" = "yes" ; then
9512			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
9513			found="yes"
9514		fi
9515	fi
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531xorg_testset_save_CFLAGS="$CFLAGS"
9532
9533if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9534	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9535	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9536$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9537if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9538  $as_echo_n "(cached) " >&6
9539else
9540  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9541/* end confdefs.h.  */
9542int i;
9543_ACEOF
9544if ac_fn_c_try_compile "$LINENO"; then :
9545  xorg_cv_cc_flag_unknown_warning_option=yes
9546else
9547  xorg_cv_cc_flag_unknown_warning_option=no
9548fi
9549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9550fi
9551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9552$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9553	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9554	CFLAGS="$xorg_testset_save_CFLAGS"
9555fi
9556
9557if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9558	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9559		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9560	fi
9561	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9562	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9563$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9564if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9565  $as_echo_n "(cached) " >&6
9566else
9567  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9568/* end confdefs.h.  */
9569int i;
9570_ACEOF
9571if ac_fn_c_try_compile "$LINENO"; then :
9572  xorg_cv_cc_flag_unused_command_line_argument=yes
9573else
9574  xorg_cv_cc_flag_unused_command_line_argument=no
9575fi
9576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9577fi
9578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9579$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9580	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9581	CFLAGS="$xorg_testset_save_CFLAGS"
9582fi
9583
9584found="no"
9585
9586	if test $found = "no" ; then
9587		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9588			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9589		fi
9590
9591		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9592			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9593		fi
9594
9595		CFLAGS="$CFLAGS -Werror=write-strings"
9596
9597		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
9598$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
9599		cacheid=xorg_cv_cc_flag__Werror_write_strings
9600		if eval \${$cacheid+:} false; then :
9601  $as_echo_n "(cached) " >&6
9602else
9603  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9604/* end confdefs.h.  */
9605int i;
9606int
9607main ()
9608{
9609
9610  ;
9611  return 0;
9612}
9613_ACEOF
9614if ac_fn_c_try_link "$LINENO"; then :
9615  eval $cacheid=yes
9616else
9617  eval $cacheid=no
9618fi
9619rm -f core conftest.err conftest.$ac_objext \
9620    conftest$ac_exeext conftest.$ac_ext
9621fi
9622
9623
9624		CFLAGS="$xorg_testset_save_CFLAGS"
9625
9626		eval supported=\$$cacheid
9627		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9628$as_echo "$supported" >&6; }
9629		if test "$supported" = "yes" ; then
9630			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
9631			found="yes"
9632		fi
9633	fi
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649xorg_testset_save_CFLAGS="$CFLAGS"
9650
9651if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9652	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9653	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9654$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9655if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9656  $as_echo_n "(cached) " >&6
9657else
9658  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9659/* end confdefs.h.  */
9660int i;
9661_ACEOF
9662if ac_fn_c_try_compile "$LINENO"; then :
9663  xorg_cv_cc_flag_unknown_warning_option=yes
9664else
9665  xorg_cv_cc_flag_unknown_warning_option=no
9666fi
9667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9668fi
9669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9670$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9671	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9672	CFLAGS="$xorg_testset_save_CFLAGS"
9673fi
9674
9675if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9676	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9677		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9678	fi
9679	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9680	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9681$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9682if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9683  $as_echo_n "(cached) " >&6
9684else
9685  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9686/* end confdefs.h.  */
9687int i;
9688_ACEOF
9689if ac_fn_c_try_compile "$LINENO"; then :
9690  xorg_cv_cc_flag_unused_command_line_argument=yes
9691else
9692  xorg_cv_cc_flag_unused_command_line_argument=no
9693fi
9694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9695fi
9696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9697$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9698	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9699	CFLAGS="$xorg_testset_save_CFLAGS"
9700fi
9701
9702found="no"
9703
9704	if test $found = "no" ; then
9705		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9706			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9707		fi
9708
9709		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9710			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9711		fi
9712
9713		CFLAGS="$CFLAGS -Werror=address"
9714
9715		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
9716$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
9717		cacheid=xorg_cv_cc_flag__Werror_address
9718		if eval \${$cacheid+:} false; then :
9719  $as_echo_n "(cached) " >&6
9720else
9721  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9722/* end confdefs.h.  */
9723int i;
9724int
9725main ()
9726{
9727
9728  ;
9729  return 0;
9730}
9731_ACEOF
9732if ac_fn_c_try_link "$LINENO"; then :
9733  eval $cacheid=yes
9734else
9735  eval $cacheid=no
9736fi
9737rm -f core conftest.err conftest.$ac_objext \
9738    conftest$ac_exeext conftest.$ac_ext
9739fi
9740
9741
9742		CFLAGS="$xorg_testset_save_CFLAGS"
9743
9744		eval supported=\$$cacheid
9745		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9746$as_echo "$supported" >&6; }
9747		if test "$supported" = "yes" ; then
9748			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
9749			found="yes"
9750		fi
9751	fi
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767xorg_testset_save_CFLAGS="$CFLAGS"
9768
9769if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9770	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9771	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9772$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9773if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9774  $as_echo_n "(cached) " >&6
9775else
9776  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9777/* end confdefs.h.  */
9778int i;
9779_ACEOF
9780if ac_fn_c_try_compile "$LINENO"; then :
9781  xorg_cv_cc_flag_unknown_warning_option=yes
9782else
9783  xorg_cv_cc_flag_unknown_warning_option=no
9784fi
9785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9786fi
9787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9788$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9789	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9790	CFLAGS="$xorg_testset_save_CFLAGS"
9791fi
9792
9793if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9794	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9795		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9796	fi
9797	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9798	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9799$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9800if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9801  $as_echo_n "(cached) " >&6
9802else
9803  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9804/* end confdefs.h.  */
9805int i;
9806_ACEOF
9807if ac_fn_c_try_compile "$LINENO"; then :
9808  xorg_cv_cc_flag_unused_command_line_argument=yes
9809else
9810  xorg_cv_cc_flag_unused_command_line_argument=no
9811fi
9812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9813fi
9814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9815$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9816	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9817	CFLAGS="$xorg_testset_save_CFLAGS"
9818fi
9819
9820found="no"
9821
9822	if test $found = "no" ; then
9823		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9824			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9825		fi
9826
9827		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9828			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9829		fi
9830
9831		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
9832
9833		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
9834$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
9835		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
9836		if eval \${$cacheid+:} false; then :
9837  $as_echo_n "(cached) " >&6
9838else
9839  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9840/* end confdefs.h.  */
9841int i;
9842int
9843main ()
9844{
9845
9846  ;
9847  return 0;
9848}
9849_ACEOF
9850if ac_fn_c_try_link "$LINENO"; then :
9851  eval $cacheid=yes
9852else
9853  eval $cacheid=no
9854fi
9855rm -f core conftest.err conftest.$ac_objext \
9856    conftest$ac_exeext conftest.$ac_ext
9857fi
9858
9859
9860		CFLAGS="$xorg_testset_save_CFLAGS"
9861
9862		eval supported=\$$cacheid
9863		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9864$as_echo "$supported" >&6; }
9865		if test "$supported" = "yes" ; then
9866			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
9867			found="yes"
9868		fi
9869	fi
9870
9871	if test $found = "no" ; then
9872		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9873			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9874		fi
9875
9876		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9877			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9878		fi
9879
9880		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
9881
9882		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
9883$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
9884		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
9885		if eval \${$cacheid+:} false; then :
9886  $as_echo_n "(cached) " >&6
9887else
9888  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9889/* end confdefs.h.  */
9890int i;
9891int
9892main ()
9893{
9894
9895  ;
9896  return 0;
9897}
9898_ACEOF
9899if ac_fn_c_try_link "$LINENO"; then :
9900  eval $cacheid=yes
9901else
9902  eval $cacheid=no
9903fi
9904rm -f core conftest.err conftest.$ac_objext \
9905    conftest$ac_exeext conftest.$ac_ext
9906fi
9907
9908
9909		CFLAGS="$xorg_testset_save_CFLAGS"
9910
9911		eval supported=\$$cacheid
9912		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9913$as_echo "$supported" >&6; }
9914		if test "$supported" = "yes" ; then
9915			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
9916			found="yes"
9917		fi
9918	fi
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934xorg_testset_save_CFLAGS="$CFLAGS"
9935
9936if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9937	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9938	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9939$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9940if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9941  $as_echo_n "(cached) " >&6
9942else
9943  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9944/* end confdefs.h.  */
9945int i;
9946_ACEOF
9947if ac_fn_c_try_compile "$LINENO"; then :
9948  xorg_cv_cc_flag_unknown_warning_option=yes
9949else
9950  xorg_cv_cc_flag_unknown_warning_option=no
9951fi
9952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9953fi
9954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9955$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9956	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9957	CFLAGS="$xorg_testset_save_CFLAGS"
9958fi
9959
9960if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9961	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9962		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9963	fi
9964	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9965	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9966$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9967if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9968  $as_echo_n "(cached) " >&6
9969else
9970  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9971/* end confdefs.h.  */
9972int i;
9973_ACEOF
9974if ac_fn_c_try_compile "$LINENO"; then :
9975  xorg_cv_cc_flag_unused_command_line_argument=yes
9976else
9977  xorg_cv_cc_flag_unused_command_line_argument=no
9978fi
9979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9980fi
9981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9982$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9983	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9984	CFLAGS="$xorg_testset_save_CFLAGS"
9985fi
9986
9987found="no"
9988
9989	if test $found = "no" ; then
9990		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9991			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9992		fi
9993
9994		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9995			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9996		fi
9997
9998		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
9999
10000		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
10001$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
10002		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
10003		if eval \${$cacheid+:} false; then :
10004  $as_echo_n "(cached) " >&6
10005else
10006  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10007/* end confdefs.h.  */
10008int i;
10009int
10010main ()
10011{
10012
10013  ;
10014  return 0;
10015}
10016_ACEOF
10017if ac_fn_c_try_link "$LINENO"; then :
10018  eval $cacheid=yes
10019else
10020  eval $cacheid=no
10021fi
10022rm -f core conftest.err conftest.$ac_objext \
10023    conftest$ac_exeext conftest.$ac_ext
10024fi
10025
10026
10027		CFLAGS="$xorg_testset_save_CFLAGS"
10028
10029		eval supported=\$$cacheid
10030		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10031$as_echo "$supported" >&6; }
10032		if test "$supported" = "yes" ; then
10033			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
10034			found="yes"
10035		fi
10036	fi
10037
10038 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
10039else
10040{ $as_echo "$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
10041$as_echo "$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;}
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055xorg_testset_save_CFLAGS="$CFLAGS"
10056
10057if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10058	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10059	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10060$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10061if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10062  $as_echo_n "(cached) " >&6
10063else
10064  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10065/* end confdefs.h.  */
10066int i;
10067_ACEOF
10068if ac_fn_c_try_compile "$LINENO"; then :
10069  xorg_cv_cc_flag_unknown_warning_option=yes
10070else
10071  xorg_cv_cc_flag_unknown_warning_option=no
10072fi
10073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10074fi
10075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10076$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10077	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10078	CFLAGS="$xorg_testset_save_CFLAGS"
10079fi
10080
10081if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10082	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10083		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10084	fi
10085	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10086	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10087$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10088if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10089  $as_echo_n "(cached) " >&6
10090else
10091  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10092/* end confdefs.h.  */
10093int i;
10094_ACEOF
10095if ac_fn_c_try_compile "$LINENO"; then :
10096  xorg_cv_cc_flag_unused_command_line_argument=yes
10097else
10098  xorg_cv_cc_flag_unused_command_line_argument=no
10099fi
10100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10101fi
10102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10103$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10104	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10105	CFLAGS="$xorg_testset_save_CFLAGS"
10106fi
10107
10108found="no"
10109
10110	if test $found = "no" ; then
10111		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10112			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10113		fi
10114
10115		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10116			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10117		fi
10118
10119		CFLAGS="$CFLAGS -Wimplicit"
10120
10121		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
10122$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
10123		cacheid=xorg_cv_cc_flag__Wimplicit
10124		if eval \${$cacheid+:} false; then :
10125  $as_echo_n "(cached) " >&6
10126else
10127  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10128/* end confdefs.h.  */
10129int i;
10130int
10131main ()
10132{
10133
10134  ;
10135  return 0;
10136}
10137_ACEOF
10138if ac_fn_c_try_link "$LINENO"; then :
10139  eval $cacheid=yes
10140else
10141  eval $cacheid=no
10142fi
10143rm -f core conftest.err conftest.$ac_objext \
10144    conftest$ac_exeext conftest.$ac_ext
10145fi
10146
10147
10148		CFLAGS="$xorg_testset_save_CFLAGS"
10149
10150		eval supported=\$$cacheid
10151		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10152$as_echo "$supported" >&6; }
10153		if test "$supported" = "yes" ; then
10154			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
10155			found="yes"
10156		fi
10157	fi
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173xorg_testset_save_CFLAGS="$CFLAGS"
10174
10175if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10176	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10177	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10178$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10179if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10180  $as_echo_n "(cached) " >&6
10181else
10182  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10183/* end confdefs.h.  */
10184int i;
10185_ACEOF
10186if ac_fn_c_try_compile "$LINENO"; then :
10187  xorg_cv_cc_flag_unknown_warning_option=yes
10188else
10189  xorg_cv_cc_flag_unknown_warning_option=no
10190fi
10191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10192fi
10193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10194$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10195	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10196	CFLAGS="$xorg_testset_save_CFLAGS"
10197fi
10198
10199if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10200	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10201		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10202	fi
10203	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10204	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10205$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10206if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10207  $as_echo_n "(cached) " >&6
10208else
10209  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10210/* end confdefs.h.  */
10211int i;
10212_ACEOF
10213if ac_fn_c_try_compile "$LINENO"; then :
10214  xorg_cv_cc_flag_unused_command_line_argument=yes
10215else
10216  xorg_cv_cc_flag_unused_command_line_argument=no
10217fi
10218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10219fi
10220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10221$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10222	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10223	CFLAGS="$xorg_testset_save_CFLAGS"
10224fi
10225
10226found="no"
10227
10228	if test $found = "no" ; then
10229		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10230			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10231		fi
10232
10233		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10234			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10235		fi
10236
10237		CFLAGS="$CFLAGS -Wnonnull"
10238
10239		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
10240$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
10241		cacheid=xorg_cv_cc_flag__Wnonnull
10242		if eval \${$cacheid+:} false; then :
10243  $as_echo_n "(cached) " >&6
10244else
10245  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10246/* end confdefs.h.  */
10247int i;
10248int
10249main ()
10250{
10251
10252  ;
10253  return 0;
10254}
10255_ACEOF
10256if ac_fn_c_try_link "$LINENO"; then :
10257  eval $cacheid=yes
10258else
10259  eval $cacheid=no
10260fi
10261rm -f core conftest.err conftest.$ac_objext \
10262    conftest$ac_exeext conftest.$ac_ext
10263fi
10264
10265
10266		CFLAGS="$xorg_testset_save_CFLAGS"
10267
10268		eval supported=\$$cacheid
10269		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10270$as_echo "$supported" >&6; }
10271		if test "$supported" = "yes" ; then
10272			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
10273			found="yes"
10274		fi
10275	fi
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291xorg_testset_save_CFLAGS="$CFLAGS"
10292
10293if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10294	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10295	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10296$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10297if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10298  $as_echo_n "(cached) " >&6
10299else
10300  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10301/* end confdefs.h.  */
10302int i;
10303_ACEOF
10304if ac_fn_c_try_compile "$LINENO"; then :
10305  xorg_cv_cc_flag_unknown_warning_option=yes
10306else
10307  xorg_cv_cc_flag_unknown_warning_option=no
10308fi
10309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10310fi
10311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10312$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10313	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10314	CFLAGS="$xorg_testset_save_CFLAGS"
10315fi
10316
10317if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10318	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10319		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10320	fi
10321	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10322	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10323$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10324if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10325  $as_echo_n "(cached) " >&6
10326else
10327  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10328/* end confdefs.h.  */
10329int i;
10330_ACEOF
10331if ac_fn_c_try_compile "$LINENO"; then :
10332  xorg_cv_cc_flag_unused_command_line_argument=yes
10333else
10334  xorg_cv_cc_flag_unused_command_line_argument=no
10335fi
10336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10337fi
10338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10339$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10340	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10341	CFLAGS="$xorg_testset_save_CFLAGS"
10342fi
10343
10344found="no"
10345
10346	if test $found = "no" ; then
10347		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10348			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10349		fi
10350
10351		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10352			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10353		fi
10354
10355		CFLAGS="$CFLAGS -Winit-self"
10356
10357		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
10358$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
10359		cacheid=xorg_cv_cc_flag__Winit_self
10360		if eval \${$cacheid+:} false; then :
10361  $as_echo_n "(cached) " >&6
10362else
10363  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10364/* end confdefs.h.  */
10365int i;
10366int
10367main ()
10368{
10369
10370  ;
10371  return 0;
10372}
10373_ACEOF
10374if ac_fn_c_try_link "$LINENO"; then :
10375  eval $cacheid=yes
10376else
10377  eval $cacheid=no
10378fi
10379rm -f core conftest.err conftest.$ac_objext \
10380    conftest$ac_exeext conftest.$ac_ext
10381fi
10382
10383
10384		CFLAGS="$xorg_testset_save_CFLAGS"
10385
10386		eval supported=\$$cacheid
10387		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10388$as_echo "$supported" >&6; }
10389		if test "$supported" = "yes" ; then
10390			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
10391			found="yes"
10392		fi
10393	fi
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409xorg_testset_save_CFLAGS="$CFLAGS"
10410
10411if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10412	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10413	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10414$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10415if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10416  $as_echo_n "(cached) " >&6
10417else
10418  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10419/* end confdefs.h.  */
10420int i;
10421_ACEOF
10422if ac_fn_c_try_compile "$LINENO"; then :
10423  xorg_cv_cc_flag_unknown_warning_option=yes
10424else
10425  xorg_cv_cc_flag_unknown_warning_option=no
10426fi
10427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10428fi
10429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10430$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10431	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10432	CFLAGS="$xorg_testset_save_CFLAGS"
10433fi
10434
10435if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10436	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10437		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10438	fi
10439	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10440	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10441$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10442if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10443  $as_echo_n "(cached) " >&6
10444else
10445  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10446/* end confdefs.h.  */
10447int i;
10448_ACEOF
10449if ac_fn_c_try_compile "$LINENO"; then :
10450  xorg_cv_cc_flag_unused_command_line_argument=yes
10451else
10452  xorg_cv_cc_flag_unused_command_line_argument=no
10453fi
10454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10455fi
10456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10457$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10458	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10459	CFLAGS="$xorg_testset_save_CFLAGS"
10460fi
10461
10462found="no"
10463
10464	if test $found = "no" ; then
10465		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10466			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10467		fi
10468
10469		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10470			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10471		fi
10472
10473		CFLAGS="$CFLAGS -Wmain"
10474
10475		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
10476$as_echo_n "checking if $CC supports -Wmain... " >&6; }
10477		cacheid=xorg_cv_cc_flag__Wmain
10478		if eval \${$cacheid+:} false; then :
10479  $as_echo_n "(cached) " >&6
10480else
10481  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10482/* end confdefs.h.  */
10483int i;
10484int
10485main ()
10486{
10487
10488  ;
10489  return 0;
10490}
10491_ACEOF
10492if ac_fn_c_try_link "$LINENO"; then :
10493  eval $cacheid=yes
10494else
10495  eval $cacheid=no
10496fi
10497rm -f core conftest.err conftest.$ac_objext \
10498    conftest$ac_exeext conftest.$ac_ext
10499fi
10500
10501
10502		CFLAGS="$xorg_testset_save_CFLAGS"
10503
10504		eval supported=\$$cacheid
10505		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10506$as_echo "$supported" >&6; }
10507		if test "$supported" = "yes" ; then
10508			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
10509			found="yes"
10510		fi
10511	fi
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527xorg_testset_save_CFLAGS="$CFLAGS"
10528
10529if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10530	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10531	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10532$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10533if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10534  $as_echo_n "(cached) " >&6
10535else
10536  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10537/* end confdefs.h.  */
10538int i;
10539_ACEOF
10540if ac_fn_c_try_compile "$LINENO"; then :
10541  xorg_cv_cc_flag_unknown_warning_option=yes
10542else
10543  xorg_cv_cc_flag_unknown_warning_option=no
10544fi
10545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10546fi
10547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10548$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10549	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10550	CFLAGS="$xorg_testset_save_CFLAGS"
10551fi
10552
10553if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10554	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10555		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10556	fi
10557	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10558	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10559$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10560if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10561  $as_echo_n "(cached) " >&6
10562else
10563  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10564/* end confdefs.h.  */
10565int i;
10566_ACEOF
10567if ac_fn_c_try_compile "$LINENO"; then :
10568  xorg_cv_cc_flag_unused_command_line_argument=yes
10569else
10570  xorg_cv_cc_flag_unused_command_line_argument=no
10571fi
10572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10573fi
10574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10575$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10576	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10577	CFLAGS="$xorg_testset_save_CFLAGS"
10578fi
10579
10580found="no"
10581
10582	if test $found = "no" ; then
10583		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10584			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10585		fi
10586
10587		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10588			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10589		fi
10590
10591		CFLAGS="$CFLAGS -Wmissing-braces"
10592
10593		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
10594$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
10595		cacheid=xorg_cv_cc_flag__Wmissing_braces
10596		if eval \${$cacheid+:} false; then :
10597  $as_echo_n "(cached) " >&6
10598else
10599  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10600/* end confdefs.h.  */
10601int i;
10602int
10603main ()
10604{
10605
10606  ;
10607  return 0;
10608}
10609_ACEOF
10610if ac_fn_c_try_link "$LINENO"; then :
10611  eval $cacheid=yes
10612else
10613  eval $cacheid=no
10614fi
10615rm -f core conftest.err conftest.$ac_objext \
10616    conftest$ac_exeext conftest.$ac_ext
10617fi
10618
10619
10620		CFLAGS="$xorg_testset_save_CFLAGS"
10621
10622		eval supported=\$$cacheid
10623		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10624$as_echo "$supported" >&6; }
10625		if test "$supported" = "yes" ; then
10626			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
10627			found="yes"
10628		fi
10629	fi
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645xorg_testset_save_CFLAGS="$CFLAGS"
10646
10647if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10648	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10649	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10650$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10651if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10652  $as_echo_n "(cached) " >&6
10653else
10654  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10655/* end confdefs.h.  */
10656int i;
10657_ACEOF
10658if ac_fn_c_try_compile "$LINENO"; then :
10659  xorg_cv_cc_flag_unknown_warning_option=yes
10660else
10661  xorg_cv_cc_flag_unknown_warning_option=no
10662fi
10663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10664fi
10665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10666$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10667	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10668	CFLAGS="$xorg_testset_save_CFLAGS"
10669fi
10670
10671if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10672	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10673		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10674	fi
10675	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10676	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10677$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10678if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10679  $as_echo_n "(cached) " >&6
10680else
10681  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10682/* end confdefs.h.  */
10683int i;
10684_ACEOF
10685if ac_fn_c_try_compile "$LINENO"; then :
10686  xorg_cv_cc_flag_unused_command_line_argument=yes
10687else
10688  xorg_cv_cc_flag_unused_command_line_argument=no
10689fi
10690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10691fi
10692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10693$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10694	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10695	CFLAGS="$xorg_testset_save_CFLAGS"
10696fi
10697
10698found="no"
10699
10700	if test $found = "no" ; then
10701		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10702			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10703		fi
10704
10705		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10706			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10707		fi
10708
10709		CFLAGS="$CFLAGS -Wsequence-point"
10710
10711		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
10712$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
10713		cacheid=xorg_cv_cc_flag__Wsequence_point
10714		if eval \${$cacheid+:} false; then :
10715  $as_echo_n "(cached) " >&6
10716else
10717  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10718/* end confdefs.h.  */
10719int i;
10720int
10721main ()
10722{
10723
10724  ;
10725  return 0;
10726}
10727_ACEOF
10728if ac_fn_c_try_link "$LINENO"; then :
10729  eval $cacheid=yes
10730else
10731  eval $cacheid=no
10732fi
10733rm -f core conftest.err conftest.$ac_objext \
10734    conftest$ac_exeext conftest.$ac_ext
10735fi
10736
10737
10738		CFLAGS="$xorg_testset_save_CFLAGS"
10739
10740		eval supported=\$$cacheid
10741		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10742$as_echo "$supported" >&6; }
10743		if test "$supported" = "yes" ; then
10744			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
10745			found="yes"
10746		fi
10747	fi
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763xorg_testset_save_CFLAGS="$CFLAGS"
10764
10765if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10766	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10767	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10768$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10769if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10770  $as_echo_n "(cached) " >&6
10771else
10772  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10773/* end confdefs.h.  */
10774int i;
10775_ACEOF
10776if ac_fn_c_try_compile "$LINENO"; then :
10777  xorg_cv_cc_flag_unknown_warning_option=yes
10778else
10779  xorg_cv_cc_flag_unknown_warning_option=no
10780fi
10781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10782fi
10783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10784$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10785	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10786	CFLAGS="$xorg_testset_save_CFLAGS"
10787fi
10788
10789if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10790	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10791		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10792	fi
10793	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10794	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10795$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10796if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10797  $as_echo_n "(cached) " >&6
10798else
10799  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10800/* end confdefs.h.  */
10801int i;
10802_ACEOF
10803if ac_fn_c_try_compile "$LINENO"; then :
10804  xorg_cv_cc_flag_unused_command_line_argument=yes
10805else
10806  xorg_cv_cc_flag_unused_command_line_argument=no
10807fi
10808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10809fi
10810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10811$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10812	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10813	CFLAGS="$xorg_testset_save_CFLAGS"
10814fi
10815
10816found="no"
10817
10818	if test $found = "no" ; then
10819		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10820			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10821		fi
10822
10823		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10824			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10825		fi
10826
10827		CFLAGS="$CFLAGS -Wreturn-type"
10828
10829		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
10830$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
10831		cacheid=xorg_cv_cc_flag__Wreturn_type
10832		if eval \${$cacheid+:} false; then :
10833  $as_echo_n "(cached) " >&6
10834else
10835  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10836/* end confdefs.h.  */
10837int i;
10838int
10839main ()
10840{
10841
10842  ;
10843  return 0;
10844}
10845_ACEOF
10846if ac_fn_c_try_link "$LINENO"; then :
10847  eval $cacheid=yes
10848else
10849  eval $cacheid=no
10850fi
10851rm -f core conftest.err conftest.$ac_objext \
10852    conftest$ac_exeext conftest.$ac_ext
10853fi
10854
10855
10856		CFLAGS="$xorg_testset_save_CFLAGS"
10857
10858		eval supported=\$$cacheid
10859		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10860$as_echo "$supported" >&6; }
10861		if test "$supported" = "yes" ; then
10862			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
10863			found="yes"
10864		fi
10865	fi
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881xorg_testset_save_CFLAGS="$CFLAGS"
10882
10883if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10884	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10885	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10886$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10887if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10888  $as_echo_n "(cached) " >&6
10889else
10890  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10891/* end confdefs.h.  */
10892int i;
10893_ACEOF
10894if ac_fn_c_try_compile "$LINENO"; then :
10895  xorg_cv_cc_flag_unknown_warning_option=yes
10896else
10897  xorg_cv_cc_flag_unknown_warning_option=no
10898fi
10899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10900fi
10901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10902$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10903	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10904	CFLAGS="$xorg_testset_save_CFLAGS"
10905fi
10906
10907if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10908	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10909		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10910	fi
10911	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10912	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10913$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10914if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10915  $as_echo_n "(cached) " >&6
10916else
10917  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10918/* end confdefs.h.  */
10919int i;
10920_ACEOF
10921if ac_fn_c_try_compile "$LINENO"; then :
10922  xorg_cv_cc_flag_unused_command_line_argument=yes
10923else
10924  xorg_cv_cc_flag_unused_command_line_argument=no
10925fi
10926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10927fi
10928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10929$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10930	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10931	CFLAGS="$xorg_testset_save_CFLAGS"
10932fi
10933
10934found="no"
10935
10936	if test $found = "no" ; then
10937		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10938			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10939		fi
10940
10941		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10942			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10943		fi
10944
10945		CFLAGS="$CFLAGS -Wtrigraphs"
10946
10947		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
10948$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
10949		cacheid=xorg_cv_cc_flag__Wtrigraphs
10950		if eval \${$cacheid+:} false; then :
10951  $as_echo_n "(cached) " >&6
10952else
10953  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10954/* end confdefs.h.  */
10955int i;
10956int
10957main ()
10958{
10959
10960  ;
10961  return 0;
10962}
10963_ACEOF
10964if ac_fn_c_try_link "$LINENO"; then :
10965  eval $cacheid=yes
10966else
10967  eval $cacheid=no
10968fi
10969rm -f core conftest.err conftest.$ac_objext \
10970    conftest$ac_exeext conftest.$ac_ext
10971fi
10972
10973
10974		CFLAGS="$xorg_testset_save_CFLAGS"
10975
10976		eval supported=\$$cacheid
10977		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10978$as_echo "$supported" >&6; }
10979		if test "$supported" = "yes" ; then
10980			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
10981			found="yes"
10982		fi
10983	fi
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999xorg_testset_save_CFLAGS="$CFLAGS"
11000
11001if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11002	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11003	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11004$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11005if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
11006  $as_echo_n "(cached) " >&6
11007else
11008  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11009/* end confdefs.h.  */
11010int i;
11011_ACEOF
11012if ac_fn_c_try_compile "$LINENO"; then :
11013  xorg_cv_cc_flag_unknown_warning_option=yes
11014else
11015  xorg_cv_cc_flag_unknown_warning_option=no
11016fi
11017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11018fi
11019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11020$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11021	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11022	CFLAGS="$xorg_testset_save_CFLAGS"
11023fi
11024
11025if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11026	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11027		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11028	fi
11029	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11030	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11031$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11032if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
11033  $as_echo_n "(cached) " >&6
11034else
11035  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11036/* end confdefs.h.  */
11037int i;
11038_ACEOF
11039if ac_fn_c_try_compile "$LINENO"; then :
11040  xorg_cv_cc_flag_unused_command_line_argument=yes
11041else
11042  xorg_cv_cc_flag_unused_command_line_argument=no
11043fi
11044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11045fi
11046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11047$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11048	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11049	CFLAGS="$xorg_testset_save_CFLAGS"
11050fi
11051
11052found="no"
11053
11054	if test $found = "no" ; then
11055		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11056			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11057		fi
11058
11059		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11060			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11061		fi
11062
11063		CFLAGS="$CFLAGS -Warray-bounds"
11064
11065		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
11066$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
11067		cacheid=xorg_cv_cc_flag__Warray_bounds
11068		if eval \${$cacheid+:} false; then :
11069  $as_echo_n "(cached) " >&6
11070else
11071  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11072/* end confdefs.h.  */
11073int i;
11074int
11075main ()
11076{
11077
11078  ;
11079  return 0;
11080}
11081_ACEOF
11082if ac_fn_c_try_link "$LINENO"; then :
11083  eval $cacheid=yes
11084else
11085  eval $cacheid=no
11086fi
11087rm -f core conftest.err conftest.$ac_objext \
11088    conftest$ac_exeext conftest.$ac_ext
11089fi
11090
11091
11092		CFLAGS="$xorg_testset_save_CFLAGS"
11093
11094		eval supported=\$$cacheid
11095		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11096$as_echo "$supported" >&6; }
11097		if test "$supported" = "yes" ; then
11098			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
11099			found="yes"
11100		fi
11101	fi
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117xorg_testset_save_CFLAGS="$CFLAGS"
11118
11119if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11120	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11121	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11122$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11123if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
11124  $as_echo_n "(cached) " >&6
11125else
11126  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11127/* end confdefs.h.  */
11128int i;
11129_ACEOF
11130if ac_fn_c_try_compile "$LINENO"; then :
11131  xorg_cv_cc_flag_unknown_warning_option=yes
11132else
11133  xorg_cv_cc_flag_unknown_warning_option=no
11134fi
11135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11136fi
11137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11138$as_echo "$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	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11149$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11150if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
11151  $as_echo_n "(cached) " >&6
11152else
11153  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11154/* end confdefs.h.  */
11155int i;
11156_ACEOF
11157if ac_fn_c_try_compile "$LINENO"; then :
11158  xorg_cv_cc_flag_unused_command_line_argument=yes
11159else
11160  xorg_cv_cc_flag_unused_command_line_argument=no
11161fi
11162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11163fi
11164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11165$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11166	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11167	CFLAGS="$xorg_testset_save_CFLAGS"
11168fi
11169
11170found="no"
11171
11172	if test $found = "no" ; then
11173		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11174			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11175		fi
11176
11177		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11178			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11179		fi
11180
11181		CFLAGS="$CFLAGS -Wwrite-strings"
11182
11183		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
11184$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
11185		cacheid=xorg_cv_cc_flag__Wwrite_strings
11186		if eval \${$cacheid+:} false; then :
11187  $as_echo_n "(cached) " >&6
11188else
11189  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11190/* end confdefs.h.  */
11191int i;
11192int
11193main ()
11194{
11195
11196  ;
11197  return 0;
11198}
11199_ACEOF
11200if ac_fn_c_try_link "$LINENO"; then :
11201  eval $cacheid=yes
11202else
11203  eval $cacheid=no
11204fi
11205rm -f core conftest.err conftest.$ac_objext \
11206    conftest$ac_exeext conftest.$ac_ext
11207fi
11208
11209
11210		CFLAGS="$xorg_testset_save_CFLAGS"
11211
11212		eval supported=\$$cacheid
11213		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11214$as_echo "$supported" >&6; }
11215		if test "$supported" = "yes" ; then
11216			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
11217			found="yes"
11218		fi
11219	fi
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235xorg_testset_save_CFLAGS="$CFLAGS"
11236
11237if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11238	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11239	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11240$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11241if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
11242  $as_echo_n "(cached) " >&6
11243else
11244  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11245/* end confdefs.h.  */
11246int i;
11247_ACEOF
11248if ac_fn_c_try_compile "$LINENO"; then :
11249  xorg_cv_cc_flag_unknown_warning_option=yes
11250else
11251  xorg_cv_cc_flag_unknown_warning_option=no
11252fi
11253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11254fi
11255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11256$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11257	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11258	CFLAGS="$xorg_testset_save_CFLAGS"
11259fi
11260
11261if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11262	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11263		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11264	fi
11265	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11266	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11267$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11268if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
11269  $as_echo_n "(cached) " >&6
11270else
11271  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11272/* end confdefs.h.  */
11273int i;
11274_ACEOF
11275if ac_fn_c_try_compile "$LINENO"; then :
11276  xorg_cv_cc_flag_unused_command_line_argument=yes
11277else
11278  xorg_cv_cc_flag_unused_command_line_argument=no
11279fi
11280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11281fi
11282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11283$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11284	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11285	CFLAGS="$xorg_testset_save_CFLAGS"
11286fi
11287
11288found="no"
11289
11290	if test $found = "no" ; then
11291		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11292			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11293		fi
11294
11295		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11296			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11297		fi
11298
11299		CFLAGS="$CFLAGS -Waddress"
11300
11301		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
11302$as_echo_n "checking if $CC supports -Waddress... " >&6; }
11303		cacheid=xorg_cv_cc_flag__Waddress
11304		if eval \${$cacheid+:} false; then :
11305  $as_echo_n "(cached) " >&6
11306else
11307  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11308/* end confdefs.h.  */
11309int i;
11310int
11311main ()
11312{
11313
11314  ;
11315  return 0;
11316}
11317_ACEOF
11318if ac_fn_c_try_link "$LINENO"; then :
11319  eval $cacheid=yes
11320else
11321  eval $cacheid=no
11322fi
11323rm -f core conftest.err conftest.$ac_objext \
11324    conftest$ac_exeext conftest.$ac_ext
11325fi
11326
11327
11328		CFLAGS="$xorg_testset_save_CFLAGS"
11329
11330		eval supported=\$$cacheid
11331		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11332$as_echo "$supported" >&6; }
11333		if test "$supported" = "yes" ; then
11334			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
11335			found="yes"
11336		fi
11337	fi
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353xorg_testset_save_CFLAGS="$CFLAGS"
11354
11355if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11356	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11357	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11358$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11359if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
11360  $as_echo_n "(cached) " >&6
11361else
11362  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11363/* end confdefs.h.  */
11364int i;
11365_ACEOF
11366if ac_fn_c_try_compile "$LINENO"; then :
11367  xorg_cv_cc_flag_unknown_warning_option=yes
11368else
11369  xorg_cv_cc_flag_unknown_warning_option=no
11370fi
11371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11372fi
11373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11374$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11375	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11376	CFLAGS="$xorg_testset_save_CFLAGS"
11377fi
11378
11379if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11380	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11381		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11382	fi
11383	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11384	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11385$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11386if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
11387  $as_echo_n "(cached) " >&6
11388else
11389  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11390/* end confdefs.h.  */
11391int i;
11392_ACEOF
11393if ac_fn_c_try_compile "$LINENO"; then :
11394  xorg_cv_cc_flag_unused_command_line_argument=yes
11395else
11396  xorg_cv_cc_flag_unused_command_line_argument=no
11397fi
11398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11399fi
11400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11401$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11402	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11403	CFLAGS="$xorg_testset_save_CFLAGS"
11404fi
11405
11406found="no"
11407
11408	if test $found = "no" ; then
11409		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11410			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11411		fi
11412
11413		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11414			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11415		fi
11416
11417		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
11418
11419		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
11420$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
11421		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
11422		if eval \${$cacheid+:} false; then :
11423  $as_echo_n "(cached) " >&6
11424else
11425  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11426/* end confdefs.h.  */
11427int i;
11428int
11429main ()
11430{
11431
11432  ;
11433  return 0;
11434}
11435_ACEOF
11436if ac_fn_c_try_link "$LINENO"; then :
11437  eval $cacheid=yes
11438else
11439  eval $cacheid=no
11440fi
11441rm -f core conftest.err conftest.$ac_objext \
11442    conftest$ac_exeext conftest.$ac_ext
11443fi
11444
11445
11446		CFLAGS="$xorg_testset_save_CFLAGS"
11447
11448		eval supported=\$$cacheid
11449		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11450$as_echo "$supported" >&6; }
11451		if test "$supported" = "yes" ; then
11452			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
11453			found="yes"
11454		fi
11455	fi
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471xorg_testset_save_CFLAGS="$CFLAGS"
11472
11473if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11474	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11475	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11476$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11477if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
11478  $as_echo_n "(cached) " >&6
11479else
11480  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11481/* end confdefs.h.  */
11482int i;
11483_ACEOF
11484if ac_fn_c_try_compile "$LINENO"; then :
11485  xorg_cv_cc_flag_unknown_warning_option=yes
11486else
11487  xorg_cv_cc_flag_unknown_warning_option=no
11488fi
11489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11490fi
11491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11492$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11493	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11494	CFLAGS="$xorg_testset_save_CFLAGS"
11495fi
11496
11497if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11498	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11499		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11500	fi
11501	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11502	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11503$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11504if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
11505  $as_echo_n "(cached) " >&6
11506else
11507  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11508/* end confdefs.h.  */
11509int i;
11510_ACEOF
11511if ac_fn_c_try_compile "$LINENO"; then :
11512  xorg_cv_cc_flag_unused_command_line_argument=yes
11513else
11514  xorg_cv_cc_flag_unused_command_line_argument=no
11515fi
11516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11517fi
11518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11519$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11520	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11521	CFLAGS="$xorg_testset_save_CFLAGS"
11522fi
11523
11524found="no"
11525
11526	if test $found = "no" ; then
11527		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11528			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11529		fi
11530
11531		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11532			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11533		fi
11534
11535		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
11536
11537		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
11538$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
11539		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
11540		if eval \${$cacheid+:} false; then :
11541  $as_echo_n "(cached) " >&6
11542else
11543  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11544/* end confdefs.h.  */
11545int i;
11546int
11547main ()
11548{
11549
11550  ;
11551  return 0;
11552}
11553_ACEOF
11554if ac_fn_c_try_link "$LINENO"; then :
11555  eval $cacheid=yes
11556else
11557  eval $cacheid=no
11558fi
11559rm -f core conftest.err conftest.$ac_objext \
11560    conftest$ac_exeext conftest.$ac_ext
11561fi
11562
11563
11564		CFLAGS="$xorg_testset_save_CFLAGS"
11565
11566		eval supported=\$$cacheid
11567		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11568$as_echo "$supported" >&6; }
11569		if test "$supported" = "yes" ; then
11570			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
11571			found="yes"
11572		fi
11573	fi
11574
11575
11576fi
11577
11578
11579
11580
11581
11582
11583
11584		CWARNFLAGS="$BASE_CFLAGS"
11585		if  test "x$GCC" = xyes ; then
11586		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
11587		fi
11588
11589
11590
11591
11592
11593
11594
11595
11596# Check whether --enable-strict-compilation was given.
11597if test "${enable_strict_compilation+set}" = set; then :
11598  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
11599else
11600  STRICT_COMPILE=no
11601fi
11602
11603
11604
11605
11606
11607
11608STRICT_CFLAGS=""
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622xorg_testset_save_CFLAGS="$CFLAGS"
11623
11624if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11625	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11626	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11627$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11628if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
11629  $as_echo_n "(cached) " >&6
11630else
11631  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11632/* end confdefs.h.  */
11633int i;
11634_ACEOF
11635if ac_fn_c_try_compile "$LINENO"; then :
11636  xorg_cv_cc_flag_unknown_warning_option=yes
11637else
11638  xorg_cv_cc_flag_unknown_warning_option=no
11639fi
11640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11641fi
11642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11643$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11644	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11645	CFLAGS="$xorg_testset_save_CFLAGS"
11646fi
11647
11648if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11649	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11650		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11651	fi
11652	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11653	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11654$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11655if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
11656  $as_echo_n "(cached) " >&6
11657else
11658  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11659/* end confdefs.h.  */
11660int i;
11661_ACEOF
11662if ac_fn_c_try_compile "$LINENO"; then :
11663  xorg_cv_cc_flag_unused_command_line_argument=yes
11664else
11665  xorg_cv_cc_flag_unused_command_line_argument=no
11666fi
11667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11668fi
11669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11670$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11671	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11672	CFLAGS="$xorg_testset_save_CFLAGS"
11673fi
11674
11675found="no"
11676
11677	if test $found = "no" ; then
11678		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11679			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11680		fi
11681
11682		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11683			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11684		fi
11685
11686		CFLAGS="$CFLAGS -pedantic"
11687
11688		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
11689$as_echo_n "checking if $CC supports -pedantic... " >&6; }
11690		cacheid=xorg_cv_cc_flag__pedantic
11691		if eval \${$cacheid+:} false; then :
11692  $as_echo_n "(cached) " >&6
11693else
11694  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11695/* end confdefs.h.  */
11696int i;
11697int
11698main ()
11699{
11700
11701  ;
11702  return 0;
11703}
11704_ACEOF
11705if ac_fn_c_try_link "$LINENO"; then :
11706  eval $cacheid=yes
11707else
11708  eval $cacheid=no
11709fi
11710rm -f core conftest.err conftest.$ac_objext \
11711    conftest$ac_exeext conftest.$ac_ext
11712fi
11713
11714
11715		CFLAGS="$xorg_testset_save_CFLAGS"
11716
11717		eval supported=\$$cacheid
11718		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11719$as_echo "$supported" >&6; }
11720		if test "$supported" = "yes" ; then
11721			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
11722			found="yes"
11723		fi
11724	fi
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740xorg_testset_save_CFLAGS="$CFLAGS"
11741
11742if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11743	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11744	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11745$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11746if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
11747  $as_echo_n "(cached) " >&6
11748else
11749  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11750/* end confdefs.h.  */
11751int i;
11752_ACEOF
11753if ac_fn_c_try_compile "$LINENO"; then :
11754  xorg_cv_cc_flag_unknown_warning_option=yes
11755else
11756  xorg_cv_cc_flag_unknown_warning_option=no
11757fi
11758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11759fi
11760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11761$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11762	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11763	CFLAGS="$xorg_testset_save_CFLAGS"
11764fi
11765
11766if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11767	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11768		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11769	fi
11770	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11771	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11772$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11773if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
11774  $as_echo_n "(cached) " >&6
11775else
11776  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11777/* end confdefs.h.  */
11778int i;
11779_ACEOF
11780if ac_fn_c_try_compile "$LINENO"; then :
11781  xorg_cv_cc_flag_unused_command_line_argument=yes
11782else
11783  xorg_cv_cc_flag_unused_command_line_argument=no
11784fi
11785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11786fi
11787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11788$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11789	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11790	CFLAGS="$xorg_testset_save_CFLAGS"
11791fi
11792
11793found="no"
11794
11795	if test $found = "no" ; then
11796		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11797			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11798		fi
11799
11800		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11801			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11802		fi
11803
11804		CFLAGS="$CFLAGS -Werror"
11805
11806		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
11807$as_echo_n "checking if $CC supports -Werror... " >&6; }
11808		cacheid=xorg_cv_cc_flag__Werror
11809		if eval \${$cacheid+:} false; then :
11810  $as_echo_n "(cached) " >&6
11811else
11812  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11813/* end confdefs.h.  */
11814int i;
11815int
11816main ()
11817{
11818
11819  ;
11820  return 0;
11821}
11822_ACEOF
11823if ac_fn_c_try_link "$LINENO"; then :
11824  eval $cacheid=yes
11825else
11826  eval $cacheid=no
11827fi
11828rm -f core conftest.err conftest.$ac_objext \
11829    conftest$ac_exeext conftest.$ac_ext
11830fi
11831
11832
11833		CFLAGS="$xorg_testset_save_CFLAGS"
11834
11835		eval supported=\$$cacheid
11836		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11837$as_echo "$supported" >&6; }
11838		if test "$supported" = "yes" ; then
11839			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
11840			found="yes"
11841		fi
11842	fi
11843
11844	if test $found = "no" ; then
11845		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11846			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11847		fi
11848
11849		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11850			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11851		fi
11852
11853		CFLAGS="$CFLAGS -errwarn"
11854
11855		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
11856$as_echo_n "checking if $CC supports -errwarn... " >&6; }
11857		cacheid=xorg_cv_cc_flag__errwarn
11858		if eval \${$cacheid+:} false; then :
11859  $as_echo_n "(cached) " >&6
11860else
11861  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11862/* end confdefs.h.  */
11863int i;
11864int
11865main ()
11866{
11867
11868  ;
11869  return 0;
11870}
11871_ACEOF
11872if ac_fn_c_try_link "$LINENO"; then :
11873  eval $cacheid=yes
11874else
11875  eval $cacheid=no
11876fi
11877rm -f core conftest.err conftest.$ac_objext \
11878    conftest$ac_exeext conftest.$ac_ext
11879fi
11880
11881
11882		CFLAGS="$xorg_testset_save_CFLAGS"
11883
11884		eval supported=\$$cacheid
11885		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11886$as_echo "$supported" >&6; }
11887		if test "$supported" = "yes" ; then
11888			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
11889			found="yes"
11890		fi
11891	fi
11892
11893
11894
11895# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
11896# activate it with -Werror, so we add it here explicitly.
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910xorg_testset_save_CFLAGS="$CFLAGS"
11911
11912if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11913	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11914	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11915$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11916if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
11917  $as_echo_n "(cached) " >&6
11918else
11919  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11920/* end confdefs.h.  */
11921int i;
11922_ACEOF
11923if ac_fn_c_try_compile "$LINENO"; then :
11924  xorg_cv_cc_flag_unknown_warning_option=yes
11925else
11926  xorg_cv_cc_flag_unknown_warning_option=no
11927fi
11928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11929fi
11930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11931$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11932	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11933	CFLAGS="$xorg_testset_save_CFLAGS"
11934fi
11935
11936if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11937	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11938		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11939	fi
11940	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11941	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11942$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11943if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
11944  $as_echo_n "(cached) " >&6
11945else
11946  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11947/* end confdefs.h.  */
11948int i;
11949_ACEOF
11950if ac_fn_c_try_compile "$LINENO"; then :
11951  xorg_cv_cc_flag_unused_command_line_argument=yes
11952else
11953  xorg_cv_cc_flag_unused_command_line_argument=no
11954fi
11955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11956fi
11957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11958$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11959	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11960	CFLAGS="$xorg_testset_save_CFLAGS"
11961fi
11962
11963found="no"
11964
11965	if test $found = "no" ; then
11966		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11967			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11968		fi
11969
11970		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11971			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11972		fi
11973
11974		CFLAGS="$CFLAGS -Werror=attributes"
11975
11976		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
11977$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
11978		cacheid=xorg_cv_cc_flag__Werror_attributes
11979		if eval \${$cacheid+:} false; then :
11980  $as_echo_n "(cached) " >&6
11981else
11982  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11983/* end confdefs.h.  */
11984int i;
11985int
11986main ()
11987{
11988
11989  ;
11990  return 0;
11991}
11992_ACEOF
11993if ac_fn_c_try_link "$LINENO"; then :
11994  eval $cacheid=yes
11995else
11996  eval $cacheid=no
11997fi
11998rm -f core conftest.err conftest.$ac_objext \
11999    conftest$ac_exeext conftest.$ac_ext
12000fi
12001
12002
12003		CFLAGS="$xorg_testset_save_CFLAGS"
12004
12005		eval supported=\$$cacheid
12006		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12007$as_echo "$supported" >&6; }
12008		if test "$supported" = "yes" ; then
12009			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
12010			found="yes"
12011		fi
12012	fi
12013
12014
12015
12016if test "x$STRICT_COMPILE" = "xyes"; then
12017    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
12018    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
12019fi
12020
12021
12022
12023
12024
12025
12026cat >>confdefs.h <<_ACEOF
12027#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
12028_ACEOF
12029
12030	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
12031	if test "x$PVM" = "x"; then
12032		PVM="0"
12033	fi
12034
12035cat >>confdefs.h <<_ACEOF
12036#define PACKAGE_VERSION_MINOR $PVM
12037_ACEOF
12038
12039	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
12040	if test "x$PVP" = "x"; then
12041		PVP="0"
12042	fi
12043
12044cat >>confdefs.h <<_ACEOF
12045#define PACKAGE_VERSION_PATCHLEVEL $PVP
12046_ACEOF
12047
12048
12049
12050CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
12051mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
12052|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
12053touch \$(top_srcdir)/ChangeLog; \
12054echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
12055
12056
12057
12058
12059macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
12060INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
12061mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
12062|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
12063touch \$(top_srcdir)/INSTALL; \
12064echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
12065
12066
12067
12068
12069
12070
12071case $host_os in
12072    solaris*)
12073        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
12074        # check for a man page file found in later versions that use
12075        # traditional section numbers instead
12076        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
12077$as_echo_n "checking for /usr/share/man/man7/attributes.7... " >&6; }
12078if ${ac_cv_file__usr_share_man_man7_attributes_7+:} false; then :
12079  $as_echo_n "(cached) " >&6
12080else
12081  test "$cross_compiling" = yes &&
12082  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
12083if test -r "/usr/share/man/man7/attributes.7"; then
12084  ac_cv_file__usr_share_man_man7_attributes_7=yes
12085else
12086  ac_cv_file__usr_share_man_man7_attributes_7=no
12087fi
12088fi
12089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
12090$as_echo "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
12091if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes; then :
12092  SYSV_MAN_SECTIONS=false
12093else
12094  SYSV_MAN_SECTIONS=true
12095fi
12096
12097        ;;
12098    *) SYSV_MAN_SECTIONS=false ;;
12099esac
12100
12101if test x$APP_MAN_SUFFIX = x    ; then
12102    APP_MAN_SUFFIX=1
12103fi
12104if test x$APP_MAN_DIR = x    ; then
12105    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
12106fi
12107
12108if test x$LIB_MAN_SUFFIX = x    ; then
12109    LIB_MAN_SUFFIX=3
12110fi
12111if test x$LIB_MAN_DIR = x    ; then
12112    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
12113fi
12114
12115if test x$FILE_MAN_SUFFIX = x    ; then
12116    case $SYSV_MAN_SECTIONS in
12117	true)				FILE_MAN_SUFFIX=4  ;;
12118	*)				FILE_MAN_SUFFIX=5  ;;
12119    esac
12120fi
12121if test x$FILE_MAN_DIR = x    ; then
12122    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
12123fi
12124
12125if test x$MISC_MAN_SUFFIX = x    ; then
12126    case $SYSV_MAN_SECTIONS in
12127	true)				MISC_MAN_SUFFIX=5  ;;
12128	*)				MISC_MAN_SUFFIX=7  ;;
12129    esac
12130fi
12131if test x$MISC_MAN_DIR = x    ; then
12132    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
12133fi
12134
12135if test x$DRIVER_MAN_SUFFIX = x    ; then
12136    case $SYSV_MAN_SECTIONS in
12137	true)				DRIVER_MAN_SUFFIX=7  ;;
12138	*)				DRIVER_MAN_SUFFIX=4  ;;
12139    esac
12140fi
12141if test x$DRIVER_MAN_DIR = x    ; then
12142    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
12143fi
12144
12145if test x$ADMIN_MAN_SUFFIX = x    ; then
12146    case $SYSV_MAN_SECTIONS in
12147	true)				ADMIN_MAN_SUFFIX=1m ;;
12148	*)				ADMIN_MAN_SUFFIX=8  ;;
12149    esac
12150fi
12151if test x$ADMIN_MAN_DIR = x    ; then
12152    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
12153fi
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169XORG_MAN_PAGE="X Version 11"
12170
12171MAN_SUBSTS="\
12172	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
12173	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
12174	-e 's|__xservername__|Xorg|g' \
12175	-e 's|__xconfigfile__|xorg.conf|g' \
12176	-e 's|__projectroot__|\$(prefix)|g' \
12177	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
12178	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
12179	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
12180	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
12181	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
12182	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
12183	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
12184
12185
12186
12187# Check whether --enable-silent-rules was given.
12188if test "${enable_silent_rules+set}" = set; then :
12189  enableval=$enable_silent_rules;
12190fi
12191
12192case $enable_silent_rules in # (((
12193  yes) AM_DEFAULT_VERBOSITY=0;;
12194   no) AM_DEFAULT_VERBOSITY=1;;
12195    *) AM_DEFAULT_VERBOSITY=0;;
12196esac
12197am_make=${MAKE-make}
12198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
12199$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
12200if ${am_cv_make_support_nested_variables+:} false; then :
12201  $as_echo_n "(cached) " >&6
12202else
12203  if $as_echo 'TRUE=$(BAR$(V))
12204BAR0=false
12205BAR1=true
12206V=1
12207am__doit:
12208	@$(TRUE)
12209.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
12210  am_cv_make_support_nested_variables=yes
12211else
12212  am_cv_make_support_nested_variables=no
12213fi
12214fi
12215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
12216$as_echo "$am_cv_make_support_nested_variables" >&6; }
12217if test $am_cv_make_support_nested_variables = yes; then
12218    AM_V='$(V)'
12219  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
12220else
12221  AM_V=$AM_DEFAULT_VERBOSITY
12222  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
12223fi
12224AM_BACKSLASH='\'
12225
12226
12227
12228
12229
12230
12231
12232# Check whether --with-doxygen was given.
12233if test "${with_doxygen+set}" = set; then :
12234  withval=$with_doxygen; use_doxygen=$withval
12235else
12236  use_doxygen=auto
12237fi
12238
12239
12240
12241if test "x$use_doxygen" = x"auto"; then
12242   # Extract the first word of "doxygen", so it can be a program name with args.
12243set dummy doxygen; ac_word=$2
12244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12245$as_echo_n "checking for $ac_word... " >&6; }
12246if ${ac_cv_path_DOXYGEN+:} false; then :
12247  $as_echo_n "(cached) " >&6
12248else
12249  case $DOXYGEN in
12250  [\\/]* | ?:[\\/]*)
12251  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
12252  ;;
12253  *)
12254  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12255for as_dir in $PATH
12256do
12257  IFS=$as_save_IFS
12258  test -z "$as_dir" && as_dir=.
12259    for ac_exec_ext in '' $ac_executable_extensions; do
12260  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12261    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
12262    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12263    break 2
12264  fi
12265done
12266  done
12267IFS=$as_save_IFS
12268
12269  ;;
12270esac
12271fi
12272DOXYGEN=$ac_cv_path_DOXYGEN
12273if test -n "$DOXYGEN"; then
12274  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
12275$as_echo "$DOXYGEN" >&6; }
12276else
12277  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12278$as_echo "no" >&6; }
12279fi
12280
12281
12282   if test "x$DOXYGEN" = "x"; then
12283        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: doxygen not found - documentation targets will be skipped" >&5
12284$as_echo "$as_me: WARNING: doxygen not found - documentation targets will be skipped" >&2;}
12285	have_doxygen=no
12286   else
12287        have_doxygen=yes
12288   fi
12289elif test "x$use_doxygen" = x"yes" ; then
12290   # Extract the first word of "doxygen", so it can be a program name with args.
12291set dummy doxygen; ac_word=$2
12292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12293$as_echo_n "checking for $ac_word... " >&6; }
12294if ${ac_cv_path_DOXYGEN+:} false; then :
12295  $as_echo_n "(cached) " >&6
12296else
12297  case $DOXYGEN in
12298  [\\/]* | ?:[\\/]*)
12299  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
12300  ;;
12301  *)
12302  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12303for as_dir in $PATH
12304do
12305  IFS=$as_save_IFS
12306  test -z "$as_dir" && as_dir=.
12307    for ac_exec_ext in '' $ac_executable_extensions; do
12308  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12309    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
12310    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12311    break 2
12312  fi
12313done
12314  done
12315IFS=$as_save_IFS
12316
12317  ;;
12318esac
12319fi
12320DOXYGEN=$ac_cv_path_DOXYGEN
12321if test -n "$DOXYGEN"; then
12322  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
12323$as_echo "$DOXYGEN" >&6; }
12324else
12325  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12326$as_echo "no" >&6; }
12327fi
12328
12329
12330   if test "x$DOXYGEN" = "x"; then
12331        as_fn_error $? "--with-doxygen=yes specified but doxygen not found in PATH" "$LINENO" 5
12332   fi
12333   have_doxygen=yes
12334elif test "x$use_doxygen" = x"no" ; then
12335   if test "x$DOXYGEN" != "x"; then
12336      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring DOXYGEN environment variable since --with-doxygen=no was specified" >&5
12337$as_echo "$as_me: WARNING: ignoring DOXYGEN environment variable since --with-doxygen=no was specified" >&2;}
12338   fi
12339   have_doxygen=no
12340else
12341   as_fn_error $? "--with-doxygen expects 'yes' or 'no'" "$LINENO" 5
12342fi
12343if test "$have_doxygen" = yes; then
12344    # scrape the doxygen version
12345    { $as_echo "$as_me:${as_lineno-$LINENO}: checking the doxygen version" >&5
12346$as_echo_n "checking the doxygen version... " >&6; }
12347    doxygen_version=`$DOXYGEN --version 2>/dev/null`
12348    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doxygen_version" >&5
12349$as_echo "$doxygen_version" >&6; }
12350    as_arg_v1=$doxygen_version
12351as_arg_v2=1.6.1
12352awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
12353case $? in #(
12354  1) :
12355    if test "x$use_doxygen" = xauto; then
12356            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: doxygen version $doxygen_version found, but 1.6.1 needed" >&5
12357$as_echo "$as_me: WARNING: doxygen version $doxygen_version found, but 1.6.1 needed" >&2;}
12358            have_doxygen=no
12359        else
12360            as_fn_error $? "doxygen version $doxygen_version found, but 1.6.1 needed" "$LINENO" 5
12361        fi ;; #(
12362  0) :
12363     ;; #(
12364  2) :
12365     ;; #(
12366  *) :
12367     ;;
12368esac
12369fi
12370
12371HAVE_DOT=no
12372if test "x$have_doxygen" = "xyes"; then
12373  # Extract the first word of "dot", so it can be a program name with args.
12374set dummy dot; ac_word=$2
12375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12376$as_echo_n "checking for $ac_word... " >&6; }
12377if ${ac_cv_path_DOT+:} false; then :
12378  $as_echo_n "(cached) " >&6
12379else
12380  case $DOT in
12381  [\\/]* | ?:[\\/]*)
12382  ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
12383  ;;
12384  *)
12385  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12386for as_dir in $PATH
12387do
12388  IFS=$as_save_IFS
12389  test -z "$as_dir" && as_dir=.
12390    for ac_exec_ext in '' $ac_executable_extensions; do
12391  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12392    ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
12393    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12394    break 2
12395  fi
12396done
12397  done
12398IFS=$as_save_IFS
12399
12400  ;;
12401esac
12402fi
12403DOT=$ac_cv_path_DOT
12404if test -n "$DOT"; then
12405  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5
12406$as_echo "$DOT" >&6; }
12407else
12408  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12409$as_echo "no" >&6; }
12410fi
12411
12412
12413    if test "x$DOT" != "x"; then
12414      HAVE_DOT=yes
12415    fi
12416fi
12417
12418
12419 if test "$HAVE_DOT" = "yes"; then
12420  HAVE_DOT_TRUE=
12421  HAVE_DOT_FALSE='#'
12422else
12423  HAVE_DOT_TRUE='#'
12424  HAVE_DOT_FALSE=
12425fi
12426
12427 if test "$have_doxygen" = yes; then
12428  HAVE_DOXYGEN_TRUE=
12429  HAVE_DOXYGEN_FALSE='#'
12430else
12431  HAVE_DOXYGEN_TRUE='#'
12432  HAVE_DOXYGEN_FALSE=
12433fi
12434
12435
12436
12437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.8" >&5
12438$as_echo_n "checking for X.Org SGML entities >= 1.8... " >&6; }
12439XORG_SGML_PATH=
12440if test -n "$PKG_CONFIG" && \
12441    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.8\""; } >&5
12442  ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.8") 2>&5
12443  ac_status=$?
12444  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12445  test $ac_status = 0; }; then
12446  XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools`
12447else
12448  :
12449
12450fi
12451
12452# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing
12453# the path and the name of the doc stylesheet
12454if test "x$XORG_SGML_PATH" != "x" ; then
12455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5
12456$as_echo "$XORG_SGML_PATH" >&6; }
12457   STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11
12458   XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl
12459else
12460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12461$as_echo "no" >&6; }
12462fi
12463
12464
12465
12466
12467 if test "x$XSL_STYLESHEET" != "x"; then
12468  HAVE_STYLESHEETS_TRUE=
12469  HAVE_STYLESHEETS_FALSE='#'
12470else
12471  HAVE_STYLESHEETS_TRUE='#'
12472  HAVE_STYLESHEETS_FALSE=
12473fi
12474
12475
12476
12477
12478# Check whether --enable-docs was given.
12479if test "${enable_docs+set}" = set; then :
12480  enableval=$enable_docs; build_docs=$enableval
12481else
12482  build_docs=yes
12483fi
12484
12485
12486 if test x$build_docs = xyes; then
12487  ENABLE_DOCS_TRUE=
12488  ENABLE_DOCS_FALSE='#'
12489else
12490  ENABLE_DOCS_TRUE='#'
12491  ENABLE_DOCS_FALSE=
12492fi
12493
12494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build documentation" >&5
12495$as_echo_n "checking whether to build documentation... " >&6; }
12496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_docs" >&5
12497$as_echo "$build_docs" >&6; }
12498
12499
12500
12501# Check whether --enable-devel-docs was given.
12502if test "${enable_devel_docs+set}" = set; then :
12503  enableval=$enable_devel_docs; build_devel_docs=$enableval
12504else
12505  build_devel_docs=yes
12506fi
12507
12508
12509 if test x$build_devel_docs = xyes; then
12510  ENABLE_DEVEL_DOCS_TRUE=
12511  ENABLE_DEVEL_DOCS_FALSE='#'
12512else
12513  ENABLE_DEVEL_DOCS_TRUE='#'
12514  ENABLE_DEVEL_DOCS_FALSE=
12515fi
12516
12517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build developer documentation" >&5
12518$as_echo_n "checking whether to build developer documentation... " >&6; }
12519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_devel_docs" >&5
12520$as_echo "$build_devel_docs" >&6; }
12521
12522
12523
12524
12525
12526# Check whether --with-xmlto was given.
12527if test "${with_xmlto+set}" = set; then :
12528  withval=$with_xmlto; use_xmlto=$withval
12529else
12530  use_xmlto=auto
12531fi
12532
12533
12534
12535if test "x$use_xmlto" = x"auto"; then
12536   # Extract the first word of "xmlto", so it can be a program name with args.
12537set dummy xmlto; ac_word=$2
12538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12539$as_echo_n "checking for $ac_word... " >&6; }
12540if ${ac_cv_path_XMLTO+:} false; then :
12541  $as_echo_n "(cached) " >&6
12542else
12543  case $XMLTO in
12544  [\\/]* | ?:[\\/]*)
12545  ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
12546  ;;
12547  *)
12548  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12549for as_dir in $PATH
12550do
12551  IFS=$as_save_IFS
12552  test -z "$as_dir" && as_dir=.
12553    for ac_exec_ext in '' $ac_executable_extensions; do
12554  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12555    ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
12556    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12557    break 2
12558  fi
12559done
12560  done
12561IFS=$as_save_IFS
12562
12563  ;;
12564esac
12565fi
12566XMLTO=$ac_cv_path_XMLTO
12567if test -n "$XMLTO"; then
12568  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
12569$as_echo "$XMLTO" >&6; }
12570else
12571  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12572$as_echo "no" >&6; }
12573fi
12574
12575
12576   if test "x$XMLTO" = "x"; then
12577        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5
12578$as_echo "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;}
12579	have_xmlto=no
12580   else
12581        have_xmlto=yes
12582   fi
12583elif test "x$use_xmlto" = x"yes" ; then
12584   # Extract the first word of "xmlto", so it can be a program name with args.
12585set dummy xmlto; ac_word=$2
12586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12587$as_echo_n "checking for $ac_word... " >&6; }
12588if ${ac_cv_path_XMLTO+:} false; then :
12589  $as_echo_n "(cached) " >&6
12590else
12591  case $XMLTO in
12592  [\\/]* | ?:[\\/]*)
12593  ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
12594  ;;
12595  *)
12596  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12597for as_dir in $PATH
12598do
12599  IFS=$as_save_IFS
12600  test -z "$as_dir" && as_dir=.
12601    for ac_exec_ext in '' $ac_executable_extensions; do
12602  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12603    ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
12604    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12605    break 2
12606  fi
12607done
12608  done
12609IFS=$as_save_IFS
12610
12611  ;;
12612esac
12613fi
12614XMLTO=$ac_cv_path_XMLTO
12615if test -n "$XMLTO"; then
12616  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
12617$as_echo "$XMLTO" >&6; }
12618else
12619  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12620$as_echo "no" >&6; }
12621fi
12622
12623
12624   if test "x$XMLTO" = "x"; then
12625        as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5
12626   fi
12627   have_xmlto=yes
12628elif test "x$use_xmlto" = x"no" ; then
12629   if test "x$XMLTO" != "x"; then
12630      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5
12631$as_echo "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;}
12632   fi
12633   have_xmlto=no
12634else
12635   as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5
12636fi
12637
12638# Test for a minimum version of xmlto, if provided.
12639if test "$have_xmlto" = yes; then
12640    # scrape the xmlto version
12641    { $as_echo "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5
12642$as_echo_n "checking the xmlto version... " >&6; }
12643    xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3`
12644    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5
12645$as_echo "$xmlto_version" >&6; }
12646    as_arg_v1=$xmlto_version
12647as_arg_v2=0.0.20
12648awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
12649case $? in #(
12650  1) :
12651    if test "x$use_xmlto" = xauto; then
12652            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.20 needed" >&5
12653$as_echo "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.20 needed" >&2;}
12654            have_xmlto=no
12655        else
12656            as_fn_error $? "xmlto version $xmlto_version found, but 0.0.20 needed" "$LINENO" 5
12657        fi ;; #(
12658  0) :
12659     ;; #(
12660  2) :
12661     ;; #(
12662  *) :
12663     ;;
12664esac
12665fi
12666
12667# Test for the ability of xmlto to generate a text target
12668#
12669# NOTE: xmlto 0.0.27 or higher return a non-zero return code in the
12670# following test for empty XML docbook files.
12671# For compatibility reasons use the following empty XML docbook file and if
12672# it fails try it again with a non-empty XML file.
12673have_xmlto_text=no
12674cat > conftest.xml << "EOF"
12675EOF
12676if test "$have_xmlto" = yes; then :
12677  if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then :
12678  have_xmlto_text=yes
12679else
12680  # Try it again with a non-empty XML file.
12681              cat > conftest.xml << "EOF"
12682<x></x>
12683EOF
12684              if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then :
12685  have_xmlto_text=yes
12686else
12687  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5
12688$as_echo "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;}
12689fi
12690fi
12691fi
12692rm -f conftest.xml
12693 if test $have_xmlto_text = yes; then
12694  HAVE_XMLTO_TEXT_TRUE=
12695  HAVE_XMLTO_TEXT_FALSE='#'
12696else
12697  HAVE_XMLTO_TEXT_TRUE='#'
12698  HAVE_XMLTO_TEXT_FALSE=
12699fi
12700
12701 if test "$have_xmlto" = yes; then
12702  HAVE_XMLTO_TRUE=
12703  HAVE_XMLTO_FALSE='#'
12704else
12705  HAVE_XMLTO_TRUE='#'
12706  HAVE_XMLTO_FALSE=
12707fi
12708
12709
12710
12711
12712
12713
12714# Check whether --with-fop was given.
12715if test "${with_fop+set}" = set; then :
12716  withval=$with_fop; use_fop=$withval
12717else
12718  use_fop=auto
12719fi
12720
12721
12722
12723if test "x$use_fop" = x"auto"; then
12724   # Extract the first word of "fop", so it can be a program name with args.
12725set dummy fop; ac_word=$2
12726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12727$as_echo_n "checking for $ac_word... " >&6; }
12728if ${ac_cv_path_FOP+:} false; then :
12729  $as_echo_n "(cached) " >&6
12730else
12731  case $FOP in
12732  [\\/]* | ?:[\\/]*)
12733  ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
12734  ;;
12735  *)
12736  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12737for as_dir in $PATH
12738do
12739  IFS=$as_save_IFS
12740  test -z "$as_dir" && as_dir=.
12741    for ac_exec_ext in '' $ac_executable_extensions; do
12742  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12743    ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
12744    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12745    break 2
12746  fi
12747done
12748  done
12749IFS=$as_save_IFS
12750
12751  ;;
12752esac
12753fi
12754FOP=$ac_cv_path_FOP
12755if test -n "$FOP"; then
12756  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
12757$as_echo "$FOP" >&6; }
12758else
12759  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12760$as_echo "no" >&6; }
12761fi
12762
12763
12764   if test "x$FOP" = "x"; then
12765        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5
12766$as_echo "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;}
12767	have_fop=no
12768   else
12769        have_fop=yes
12770   fi
12771elif test "x$use_fop" = x"yes" ; then
12772   # Extract the first word of "fop", so it can be a program name with args.
12773set dummy fop; ac_word=$2
12774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12775$as_echo_n "checking for $ac_word... " >&6; }
12776if ${ac_cv_path_FOP+:} false; then :
12777  $as_echo_n "(cached) " >&6
12778else
12779  case $FOP in
12780  [\\/]* | ?:[\\/]*)
12781  ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
12782  ;;
12783  *)
12784  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12785for as_dir in $PATH
12786do
12787  IFS=$as_save_IFS
12788  test -z "$as_dir" && as_dir=.
12789    for ac_exec_ext in '' $ac_executable_extensions; do
12790  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12791    ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
12792    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12793    break 2
12794  fi
12795done
12796  done
12797IFS=$as_save_IFS
12798
12799  ;;
12800esac
12801fi
12802FOP=$ac_cv_path_FOP
12803if test -n "$FOP"; then
12804  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
12805$as_echo "$FOP" >&6; }
12806else
12807  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12808$as_echo "no" >&6; }
12809fi
12810
12811
12812   if test "x$FOP" = "x"; then
12813        as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5
12814   fi
12815   have_fop=yes
12816elif test "x$use_fop" = x"no" ; then
12817   if test "x$FOP" != "x"; then
12818      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5
12819$as_echo "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;}
12820   fi
12821   have_fop=no
12822else
12823   as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5
12824fi
12825
12826# Test for a minimum version of fop, if provided.
12827
12828 if test "$have_fop" = yes; then
12829  HAVE_FOP_TRUE=
12830  HAVE_FOP_FALSE='#'
12831else
12832  HAVE_FOP_TRUE='#'
12833  HAVE_FOP_FALSE=
12834fi
12835
12836
12837
12838
12839# Preserves the interface, should it be implemented later
12840
12841
12842
12843# Check whether --with-xsltproc was given.
12844if test "${with_xsltproc+set}" = set; then :
12845  withval=$with_xsltproc; use_xsltproc=$withval
12846else
12847  use_xsltproc=auto
12848fi
12849
12850
12851
12852if test "x$use_xsltproc" = x"auto"; then
12853   # Extract the first word of "xsltproc", so it can be a program name with args.
12854set dummy xsltproc; ac_word=$2
12855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12856$as_echo_n "checking for $ac_word... " >&6; }
12857if ${ac_cv_path_XSLTPROC+:} false; then :
12858  $as_echo_n "(cached) " >&6
12859else
12860  case $XSLTPROC in
12861  [\\/]* | ?:[\\/]*)
12862  ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
12863  ;;
12864  *)
12865  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12866for as_dir in $PATH
12867do
12868  IFS=$as_save_IFS
12869  test -z "$as_dir" && as_dir=.
12870    for ac_exec_ext in '' $ac_executable_extensions; do
12871  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12872    ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
12873    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12874    break 2
12875  fi
12876done
12877  done
12878IFS=$as_save_IFS
12879
12880  ;;
12881esac
12882fi
12883XSLTPROC=$ac_cv_path_XSLTPROC
12884if test -n "$XSLTPROC"; then
12885  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
12886$as_echo "$XSLTPROC" >&6; }
12887else
12888  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12889$as_echo "no" >&6; }
12890fi
12891
12892
12893   if test "x$XSLTPROC" = "x"; then
12894        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5
12895$as_echo "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;}
12896	have_xsltproc=no
12897   else
12898        have_xsltproc=yes
12899   fi
12900elif test "x$use_xsltproc" = x"yes" ; then
12901   # Extract the first word of "xsltproc", so it can be a program name with args.
12902set dummy xsltproc; ac_word=$2
12903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12904$as_echo_n "checking for $ac_word... " >&6; }
12905if ${ac_cv_path_XSLTPROC+:} false; then :
12906  $as_echo_n "(cached) " >&6
12907else
12908  case $XSLTPROC in
12909  [\\/]* | ?:[\\/]*)
12910  ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
12911  ;;
12912  *)
12913  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12914for as_dir in $PATH
12915do
12916  IFS=$as_save_IFS
12917  test -z "$as_dir" && as_dir=.
12918    for ac_exec_ext in '' $ac_executable_extensions; do
12919  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12920    ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
12921    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12922    break 2
12923  fi
12924done
12925  done
12926IFS=$as_save_IFS
12927
12928  ;;
12929esac
12930fi
12931XSLTPROC=$ac_cv_path_XSLTPROC
12932if test -n "$XSLTPROC"; then
12933  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
12934$as_echo "$XSLTPROC" >&6; }
12935else
12936  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12937$as_echo "no" >&6; }
12938fi
12939
12940
12941   if test "x$XSLTPROC" = "x"; then
12942        as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5
12943   fi
12944   have_xsltproc=yes
12945elif test "x$use_xsltproc" = x"no" ; then
12946   if test "x$XSLTPROC" != "x"; then
12947      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5
12948$as_echo "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;}
12949   fi
12950   have_xsltproc=no
12951else
12952   as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5
12953fi
12954
12955 if test "$have_xsltproc" = yes; then
12956  HAVE_XSLTPROC_TRUE=
12957  HAVE_XSLTPROC_FALSE='#'
12958else
12959  HAVE_XSLTPROC_TRUE='#'
12960  HAVE_XSLTPROC_FALSE=
12961fi
12962
12963
12964
12965
12966
12967
12968
12969# Check for different types of support on different platforms
12970case $host_os in
12971    solaris*)
12972        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
12973$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
12974if ${ac_cv_lib_umem_umem_alloc+:} false; then :
12975  $as_echo_n "(cached) " >&6
12976else
12977  ac_check_lib_save_LIBS=$LIBS
12978LIBS="-lumem  $LIBS"
12979cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12980/* end confdefs.h.  */
12981
12982/* Override any GCC internal prototype to avoid an error.
12983   Use char because int might match the return type of a GCC
12984   builtin and then its argument prototype would still apply.  */
12985#ifdef __cplusplus
12986extern "C"
12987#endif
12988char umem_alloc ();
12989int
12990main ()
12991{
12992return umem_alloc ();
12993  ;
12994  return 0;
12995}
12996_ACEOF
12997if ac_fn_c_try_link "$LINENO"; then :
12998  ac_cv_lib_umem_umem_alloc=yes
12999else
13000  ac_cv_lib_umem_umem_alloc=no
13001fi
13002rm -f core conftest.err conftest.$ac_objext \
13003    conftest$ac_exeext conftest.$ac_ext
13004LIBS=$ac_check_lib_save_LIBS
13005fi
13006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
13007$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
13008if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
13009  malloc_debug_env='LD_PRELOAD=libumem.so UMEM_DEBUG=default'
13010fi
13011
13012        ;;
13013    *-gnu*) # GNU libc - Value is used as a single byte bit pattern,
13014        # both directly and inverted, so should not be 0 or 255.
13015        malloc_debug_env='MALLOC_PERTURB_=15'
13016        ;;
13017    darwin*)
13018        malloc_debug_env='MallocPreScribble=1 MallocScribble=1 DYLD_INSERT_LIBRARIES=/usr/lib/libgmalloc.dylib'
13019        ;;
13020    *bsd*)
13021        malloc_debug_env='MallocPreScribble=1 MallocScribble=1'
13022        ;;
13023esac
13024
13025# User supplied flags override default flags
13026if test "x$XORG_MALLOC_DEBUG_ENV" != "x"; then
13027    malloc_debug_env="$XORG_MALLOC_DEBUG_ENV"
13028fi
13029
13030XORG_MALLOC_DEBUG_ENV=$malloc_debug_env
13031
13032
13033
13034
13035
13036
13037
13038# Check whether --enable-unit-tests was given.
13039if test "${enable_unit_tests+set}" = set; then :
13040  enableval=$enable_unit_tests; enable_unit_tests=$enableval
13041else
13042  enable_unit_tests=auto
13043fi
13044
13045
13046 if test "x$enable_unit_tests" != xno; then
13047  ENABLE_UNIT_TESTS_TRUE=
13048  ENABLE_UNIT_TESTS_FALSE='#'
13049else
13050  ENABLE_UNIT_TESTS_TRUE='#'
13051  ENABLE_UNIT_TESTS_FALSE=
13052fi
13053
13054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build unit test cases" >&5
13055$as_echo_n "checking whether to build unit test cases... " >&6; }
13056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_unit_tests" >&5
13057$as_echo "$enable_unit_tests" >&6; }
13058
13059
13060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-wrap,exit" >&5
13061$as_echo_n "checking whether the linker accepts -Wl,-wrap,exit... " >&6; }
13062if ${xorg_cv_linker_flags__Wl__wrap_exit+:} false; then :
13063  $as_echo_n "(cached) " >&6
13064else
13065
13066      ax_save_FLAGS=$LDFLAGS
13067      LDFLAGS="-Wl,-wrap,exit"
13068      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13069/* end confdefs.h.  */
13070#include <stdlib.h>
13071                      void __wrap_exit(int status) { return; }
13072int
13073main ()
13074{
13075exit(0);
13076  ;
13077  return 0;
13078}
13079_ACEOF
13080if ac_fn_c_try_link "$LINENO"; then :
13081  xorg_cv_linker_flags__Wl__wrap_exit=yes
13082else
13083  xorg_cv_linker_flags__Wl__wrap_exit=no
13084fi
13085rm -f core conftest.err conftest.$ac_objext \
13086    conftest$ac_exeext conftest.$ac_ext
13087      LDFLAGS=$ax_save_FLAGS
13088fi
13089
13090eval xorg_check_linker_flags=$xorg_cv_linker_flags__Wl__wrap_exit
13091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_check_linker_flags" >&5
13092$as_echo "$xorg_check_linker_flags" >&6; }
13093if test "x$xorg_check_linker_flags" = xyes; then
13094	have_ld_wrap=yes
13095else
13096	have_ld_wrap=no
13097fi
13098
13099# Not having ld wrap when unit testing has been explicitly requested is an error
13100if test "x$enable_unit_tests" = x"yes" -a "xoptional" != "xoptional"; then
13101  if test "x$have_ld_wrap" = x"no"; then
13102    as_fn_error $? "--enable-unit-tests=yes specified but ld -wrap support is not available" "$LINENO" 5
13103  fi
13104fi
13105 if test "$have_ld_wrap" = yes; then
13106  HAVE_LD_WRAP_TRUE=
13107  HAVE_LD_WRAP_FALSE='#'
13108else
13109  HAVE_LD_WRAP_TRUE='#'
13110  HAVE_LD_WRAP_FALSE=
13111fi
13112
13113#
13114
13115
13116
13117
13118
13119
13120
13121
13122
13123
13124
13125
13126
13127
13128ac_config_headers="$ac_config_headers include/do-not-use-config.h"
13129
13130ac_config_headers="$ac_config_headers include/xorg-server.h"
13131
13132ac_config_headers="$ac_config_headers include/dix-config.h"
13133
13134ac_config_headers="$ac_config_headers include/xorg-config.h"
13135
13136ac_config_headers="$ac_config_headers include/xkb-config.h"
13137
13138ac_config_headers="$ac_config_headers include/xwin-config.h"
13139
13140ac_config_headers="$ac_config_headers include/xwayland-config.h"
13141
13142ac_config_headers="$ac_config_headers include/version-config.h"
13143
13144
13145# By default we simply use the C compiler to build assembly code.
13146
13147test "${CCAS+set}" = set || CCAS=$CC
13148test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
13149
13150
13151
13152depcc="$CCAS"   am_compiler_list=
13153
13154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13155$as_echo_n "checking dependency style of $depcc... " >&6; }
13156if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
13157  $as_echo_n "(cached) " >&6
13158else
13159  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13160  # We make a subdir and do the tests there.  Otherwise we can end up
13161  # making bogus files that we don't know about and never remove.  For
13162  # instance it was reported that on HP-UX the gcc test will end up
13163  # making a dummy file named 'D' -- because '-MD' means "put the output
13164  # in D".
13165  rm -rf conftest.dir
13166  mkdir conftest.dir
13167  # Copy depcomp to subdir because otherwise we won't find it if we're
13168  # using a relative directory.
13169  cp "$am_depcomp" conftest.dir
13170  cd conftest.dir
13171  # We will build objects and dependencies in a subdirectory because
13172  # it helps to detect inapplicable dependency modes.  For instance
13173  # both Tru64's cc and ICC support -MD to output dependencies as a
13174  # side effect of compilation, but ICC will put the dependencies in
13175  # the current directory while Tru64 will put them in the object
13176  # directory.
13177  mkdir sub
13178
13179  am_cv_CCAS_dependencies_compiler_type=none
13180  if test "$am_compiler_list" = ""; then
13181     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13182  fi
13183  am__universal=false
13184
13185
13186  for depmode in $am_compiler_list; do
13187    # Setup a source with many dependencies, because some compilers
13188    # like to wrap large dependency lists on column 80 (with \), and
13189    # we should not choose a depcomp mode which is confused by this.
13190    #
13191    # We need to recreate these files for each test, as the compiler may
13192    # overwrite some of them when testing with obscure command lines.
13193    # This happens at least with the AIX C compiler.
13194    : > sub/conftest.c
13195    for i in 1 2 3 4 5 6; do
13196      echo '#include "conftst'$i'.h"' >> sub/conftest.c
13197      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
13198      # Solaris 10 /bin/sh.
13199      echo '/* dummy */' > sub/conftst$i.h
13200    done
13201    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13202
13203    # We check with '-c' and '-o' for the sake of the "dashmstdout"
13204    # mode.  It turns out that the SunPro C++ compiler does not properly
13205    # handle '-M -o', and we need to detect this.  Also, some Intel
13206    # versions had trouble with output in subdirs.
13207    am__obj=sub/conftest.${OBJEXT-o}
13208    am__minus_obj="-o $am__obj"
13209    case $depmode in
13210    gcc)
13211      # This depmode causes a compiler race in universal mode.
13212      test "$am__universal" = false || continue
13213      ;;
13214    nosideeffect)
13215      # After this tag, mechanisms are not by side-effect, so they'll
13216      # only be used when explicitly requested.
13217      if test "x$enable_dependency_tracking" = xyes; then
13218	continue
13219      else
13220	break
13221      fi
13222      ;;
13223    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
13224      # This compiler won't grok '-c -o', but also, the minuso test has
13225      # not run yet.  These depmodes are late enough in the game, and
13226      # so weak that their functioning should not be impacted.
13227      am__obj=conftest.${OBJEXT-o}
13228      am__minus_obj=
13229      ;;
13230    none) break ;;
13231    esac
13232    if depmode=$depmode \
13233       source=sub/conftest.c object=$am__obj \
13234       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13235       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13236         >/dev/null 2>conftest.err &&
13237       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13238       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13239       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13240       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13241      # icc doesn't choke on unknown options, it will just issue warnings
13242      # or remarks (even with -Werror).  So we grep stderr for any message
13243      # that says an option was ignored or not supported.
13244      # When given -MP, icc 7.0 and 7.1 complain thusly:
13245      #   icc: Command line warning: ignoring option '-M'; no argument required
13246      # The diagnosis changed in icc 8.0:
13247      #   icc: Command line remark: option '-MP' not supported
13248      if (grep 'ignoring option' conftest.err ||
13249          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13250        am_cv_CCAS_dependencies_compiler_type=$depmode
13251        break
13252      fi
13253    fi
13254  done
13255
13256  cd ..
13257  rm -rf conftest.dir
13258else
13259  am_cv_CCAS_dependencies_compiler_type=none
13260fi
13261
13262fi
13263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
13264$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
13265CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
13266
13267 if
13268  test "x$enable_dependency_tracking" != xno \
13269  && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
13270  am__fastdepCCAS_TRUE=
13271  am__fastdepCCAS_FALSE='#'
13272else
13273  am__fastdepCCAS_TRUE='#'
13274  am__fastdepCCAS_FALSE=
13275fi
13276
13277
13278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
13279$as_echo_n "checking whether ln -s works... " >&6; }
13280LN_S=$as_ln_s
13281if test "$LN_S" = "ln -s"; then
13282  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13283$as_echo "yes" >&6; }
13284else
13285  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
13286$as_echo "no, using $LN_S" >&6; }
13287fi
13288
13289
13290case `pwd` in
13291  *\ * | *\	*)
13292    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
13293$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
13294esac
13295
13296
13297
13298macro_version='2.4.6'
13299macro_revision='2.4.6'
13300
13301
13302
13303
13304
13305
13306
13307
13308
13309
13310
13311
13312
13313ltmain=$ac_aux_dir/ltmain.sh
13314
13315# Backslashify metacharacters that are still active within
13316# double-quoted strings.
13317sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
13318
13319# Same as above, but do not quote variable references.
13320double_quote_subst='s/\(["`\\]\)/\\\1/g'
13321
13322# Sed substitution to delay expansion of an escaped shell variable in a
13323# double_quote_subst'ed string.
13324delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13325
13326# Sed substitution to delay expansion of an escaped single quote.
13327delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
13328
13329# Sed substitution to avoid accidental globbing in evaled expressions
13330no_glob_subst='s/\*/\\\*/g'
13331
13332ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13333ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
13334ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
13335
13336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
13337$as_echo_n "checking how to print strings... " >&6; }
13338# Test print first, because it will be a builtin if present.
13339if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
13340   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
13341  ECHO='print -r --'
13342elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
13343  ECHO='printf %s\n'
13344else
13345  # Use this function as a fallback that always works.
13346  func_fallback_echo ()
13347  {
13348    eval 'cat <<_LTECHO_EOF
13349$1
13350_LTECHO_EOF'
13351  }
13352  ECHO='func_fallback_echo'
13353fi
13354
13355# func_echo_all arg...
13356# Invoke $ECHO with all args, space-separated.
13357func_echo_all ()
13358{
13359    $ECHO ""
13360}
13361
13362case $ECHO in
13363  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
13364$as_echo "printf" >&6; } ;;
13365  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
13366$as_echo "print -r" >&6; } ;;
13367  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
13368$as_echo "cat" >&6; } ;;
13369esac
13370
13371
13372
13373
13374
13375
13376
13377
13378
13379
13380
13381
13382
13383
13384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
13385$as_echo_n "checking for a sed that does not truncate output... " >&6; }
13386if ${ac_cv_path_SED+:} false; then :
13387  $as_echo_n "(cached) " >&6
13388else
13389            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
13390     for ac_i in 1 2 3 4 5 6 7; do
13391       ac_script="$ac_script$as_nl$ac_script"
13392     done
13393     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
13394     { ac_script=; unset ac_script;}
13395     if test -z "$SED"; then
13396  ac_path_SED_found=false
13397  # Loop through the user's path and test for each of PROGNAME-LIST
13398  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13399for as_dir in $PATH
13400do
13401  IFS=$as_save_IFS
13402  test -z "$as_dir" && as_dir=.
13403    for ac_prog in sed gsed; do
13404    for ac_exec_ext in '' $ac_executable_extensions; do
13405      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
13406      as_fn_executable_p "$ac_path_SED" || continue
13407# Check for GNU ac_path_SED and select it if it is found.
13408  # Check for GNU $ac_path_SED
13409case `"$ac_path_SED" --version 2>&1` in
13410*GNU*)
13411  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
13412*)
13413  ac_count=0
13414  $as_echo_n 0123456789 >"conftest.in"
13415  while :
13416  do
13417    cat "conftest.in" "conftest.in" >"conftest.tmp"
13418    mv "conftest.tmp" "conftest.in"
13419    cp "conftest.in" "conftest.nl"
13420    $as_echo '' >> "conftest.nl"
13421    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
13422    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13423    as_fn_arith $ac_count + 1 && ac_count=$as_val
13424    if test $ac_count -gt ${ac_path_SED_max-0}; then
13425      # Best one so far, save it but keep looking for a better one
13426      ac_cv_path_SED="$ac_path_SED"
13427      ac_path_SED_max=$ac_count
13428    fi
13429    # 10*(2^10) chars as input seems more than enough
13430    test $ac_count -gt 10 && break
13431  done
13432  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13433esac
13434
13435      $ac_path_SED_found && break 3
13436    done
13437  done
13438  done
13439IFS=$as_save_IFS
13440  if test -z "$ac_cv_path_SED"; then
13441    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
13442  fi
13443else
13444  ac_cv_path_SED=$SED
13445fi
13446
13447fi
13448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
13449$as_echo "$ac_cv_path_SED" >&6; }
13450 SED="$ac_cv_path_SED"
13451  rm -f conftest.sed
13452
13453test -z "$SED" && SED=sed
13454Xsed="$SED -e 1s/^X//"
13455
13456
13457
13458
13459
13460
13461
13462
13463
13464
13465
13466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
13467$as_echo_n "checking for fgrep... " >&6; }
13468if ${ac_cv_path_FGREP+:} false; then :
13469  $as_echo_n "(cached) " >&6
13470else
13471  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
13472   then ac_cv_path_FGREP="$GREP -F"
13473   else
13474     if test -z "$FGREP"; then
13475  ac_path_FGREP_found=false
13476  # Loop through the user's path and test for each of PROGNAME-LIST
13477  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13478for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13479do
13480  IFS=$as_save_IFS
13481  test -z "$as_dir" && as_dir=.
13482    for ac_prog in fgrep; do
13483    for ac_exec_ext in '' $ac_executable_extensions; do
13484      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
13485      as_fn_executable_p "$ac_path_FGREP" || continue
13486# Check for GNU ac_path_FGREP and select it if it is found.
13487  # Check for GNU $ac_path_FGREP
13488case `"$ac_path_FGREP" --version 2>&1` in
13489*GNU*)
13490  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
13491*)
13492  ac_count=0
13493  $as_echo_n 0123456789 >"conftest.in"
13494  while :
13495  do
13496    cat "conftest.in" "conftest.in" >"conftest.tmp"
13497    mv "conftest.tmp" "conftest.in"
13498    cp "conftest.in" "conftest.nl"
13499    $as_echo 'FGREP' >> "conftest.nl"
13500    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
13501    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13502    as_fn_arith $ac_count + 1 && ac_count=$as_val
13503    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
13504      # Best one so far, save it but keep looking for a better one
13505      ac_cv_path_FGREP="$ac_path_FGREP"
13506      ac_path_FGREP_max=$ac_count
13507    fi
13508    # 10*(2^10) chars as input seems more than enough
13509    test $ac_count -gt 10 && break
13510  done
13511  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13512esac
13513
13514      $ac_path_FGREP_found && break 3
13515    done
13516  done
13517  done
13518IFS=$as_save_IFS
13519  if test -z "$ac_cv_path_FGREP"; then
13520    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13521  fi
13522else
13523  ac_cv_path_FGREP=$FGREP
13524fi
13525
13526   fi
13527fi
13528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
13529$as_echo "$ac_cv_path_FGREP" >&6; }
13530 FGREP="$ac_cv_path_FGREP"
13531
13532
13533test -z "$GREP" && GREP=grep
13534
13535
13536
13537
13538
13539
13540
13541
13542
13543
13544
13545
13546
13547
13548
13549
13550
13551
13552
13553# Check whether --with-gnu-ld was given.
13554if test "${with_gnu_ld+set}" = set; then :
13555  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
13556else
13557  with_gnu_ld=no
13558fi
13559
13560ac_prog=ld
13561if test yes = "$GCC"; then
13562  # Check if gcc -print-prog-name=ld gives a path.
13563  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13564$as_echo_n "checking for ld used by $CC... " >&6; }
13565  case $host in
13566  *-*-mingw*)
13567    # gcc leaves a trailing carriage return, which upsets mingw
13568    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13569  *)
13570    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13571  esac
13572  case $ac_prog in
13573    # Accept absolute paths.
13574    [\\/]* | ?:[\\/]*)
13575      re_direlt='/[^/][^/]*/\.\./'
13576      # Canonicalize the pathname of ld
13577      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13578      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13579	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13580      done
13581      test -z "$LD" && LD=$ac_prog
13582      ;;
13583  "")
13584    # If it fails, then pretend we aren't using GCC.
13585    ac_prog=ld
13586    ;;
13587  *)
13588    # If it is relative, then search for the first ld in PATH.
13589    with_gnu_ld=unknown
13590    ;;
13591  esac
13592elif test yes = "$with_gnu_ld"; then
13593  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13594$as_echo_n "checking for GNU ld... " >&6; }
13595else
13596  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13597$as_echo_n "checking for non-GNU ld... " >&6; }
13598fi
13599if ${lt_cv_path_LD+:} false; then :
13600  $as_echo_n "(cached) " >&6
13601else
13602  if test -z "$LD"; then
13603  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
13604  for ac_dir in $PATH; do
13605    IFS=$lt_save_ifs
13606    test -z "$ac_dir" && ac_dir=.
13607    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13608      lt_cv_path_LD=$ac_dir/$ac_prog
13609      # Check to see if the program is GNU ld.  I'd rather use --version,
13610      # but apparently some variants of GNU ld only accept -v.
13611      # Break only if it was the GNU/non-GNU ld that we prefer.
13612      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13613      *GNU* | *'with BFD'*)
13614	test no != "$with_gnu_ld" && break
13615	;;
13616      *)
13617	test yes != "$with_gnu_ld" && break
13618	;;
13619      esac
13620    fi
13621  done
13622  IFS=$lt_save_ifs
13623else
13624  lt_cv_path_LD=$LD # Let the user override the test with a path.
13625fi
13626fi
13627
13628LD=$lt_cv_path_LD
13629if test -n "$LD"; then
13630  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13631$as_echo "$LD" >&6; }
13632else
13633  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13634$as_echo "no" >&6; }
13635fi
13636test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13638$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13639if ${lt_cv_prog_gnu_ld+:} false; then :
13640  $as_echo_n "(cached) " >&6
13641else
13642  # I'd rather use --version here, but apparently some GNU lds only accept -v.
13643case `$LD -v 2>&1 </dev/null` in
13644*GNU* | *'with BFD'*)
13645  lt_cv_prog_gnu_ld=yes
13646  ;;
13647*)
13648  lt_cv_prog_gnu_ld=no
13649  ;;
13650esac
13651fi
13652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13653$as_echo "$lt_cv_prog_gnu_ld" >&6; }
13654with_gnu_ld=$lt_cv_prog_gnu_ld
13655
13656
13657
13658
13659
13660
13661
13662
13663
13664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
13665$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
13666if ${lt_cv_path_NM+:} false; then :
13667  $as_echo_n "(cached) " >&6
13668else
13669  if test -n "$NM"; then
13670  # Let the user override the test.
13671  lt_cv_path_NM=$NM
13672else
13673  lt_nm_to_check=${ac_tool_prefix}nm
13674  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
13675    lt_nm_to_check="$lt_nm_to_check nm"
13676  fi
13677  for lt_tmp_nm in $lt_nm_to_check; do
13678    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
13679    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
13680      IFS=$lt_save_ifs
13681      test -z "$ac_dir" && ac_dir=.
13682      tmp_nm=$ac_dir/$lt_tmp_nm
13683      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
13684	# Check to see if the nm accepts a BSD-compat flag.
13685	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
13686	#   nm: unknown option "B" ignored
13687	# Tru64's nm complains that /dev/null is an invalid object file
13688	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
13689	case $build_os in
13690	mingw*) lt_bad_file=conftest.nm/nofile ;;
13691	*) lt_bad_file=/dev/null ;;
13692	esac
13693	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
13694	*$lt_bad_file* | *'Invalid file or object type'*)
13695	  lt_cv_path_NM="$tmp_nm -B"
13696	  break 2
13697	  ;;
13698	*)
13699	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
13700	  */dev/null*)
13701	    lt_cv_path_NM="$tmp_nm -p"
13702	    break 2
13703	    ;;
13704	  *)
13705	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
13706	    continue # so that we can try to find one that supports BSD flags
13707	    ;;
13708	  esac
13709	  ;;
13710	esac
13711      fi
13712    done
13713    IFS=$lt_save_ifs
13714  done
13715  : ${lt_cv_path_NM=no}
13716fi
13717fi
13718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
13719$as_echo "$lt_cv_path_NM" >&6; }
13720if test no != "$lt_cv_path_NM"; then
13721  NM=$lt_cv_path_NM
13722else
13723  # Didn't find any BSD compatible name lister, look for dumpbin.
13724  if test -n "$DUMPBIN"; then :
13725    # Let the user override the test.
13726  else
13727    if test -n "$ac_tool_prefix"; then
13728  for ac_prog in dumpbin "link -dump"
13729  do
13730    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13731set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13733$as_echo_n "checking for $ac_word... " >&6; }
13734if ${ac_cv_prog_DUMPBIN+:} false; then :
13735  $as_echo_n "(cached) " >&6
13736else
13737  if test -n "$DUMPBIN"; then
13738  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
13739else
13740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13741for as_dir in $PATH
13742do
13743  IFS=$as_save_IFS
13744  test -z "$as_dir" && as_dir=.
13745    for ac_exec_ext in '' $ac_executable_extensions; do
13746  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13747    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
13748    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13749    break 2
13750  fi
13751done
13752  done
13753IFS=$as_save_IFS
13754
13755fi
13756fi
13757DUMPBIN=$ac_cv_prog_DUMPBIN
13758if test -n "$DUMPBIN"; then
13759  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
13760$as_echo "$DUMPBIN" >&6; }
13761else
13762  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13763$as_echo "no" >&6; }
13764fi
13765
13766
13767    test -n "$DUMPBIN" && break
13768  done
13769fi
13770if test -z "$DUMPBIN"; then
13771  ac_ct_DUMPBIN=$DUMPBIN
13772  for ac_prog in dumpbin "link -dump"
13773do
13774  # Extract the first word of "$ac_prog", so it can be a program name with args.
13775set dummy $ac_prog; ac_word=$2
13776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13777$as_echo_n "checking for $ac_word... " >&6; }
13778if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
13779  $as_echo_n "(cached) " >&6
13780else
13781  if test -n "$ac_ct_DUMPBIN"; then
13782  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
13783else
13784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13785for as_dir in $PATH
13786do
13787  IFS=$as_save_IFS
13788  test -z "$as_dir" && as_dir=.
13789    for ac_exec_ext in '' $ac_executable_extensions; do
13790  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13791    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
13792    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13793    break 2
13794  fi
13795done
13796  done
13797IFS=$as_save_IFS
13798
13799fi
13800fi
13801ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
13802if test -n "$ac_ct_DUMPBIN"; then
13803  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
13804$as_echo "$ac_ct_DUMPBIN" >&6; }
13805else
13806  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13807$as_echo "no" >&6; }
13808fi
13809
13810
13811  test -n "$ac_ct_DUMPBIN" && break
13812done
13813
13814  if test "x$ac_ct_DUMPBIN" = x; then
13815    DUMPBIN=":"
13816  else
13817    case $cross_compiling:$ac_tool_warned in
13818yes:)
13819{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13820$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13821ac_tool_warned=yes ;;
13822esac
13823    DUMPBIN=$ac_ct_DUMPBIN
13824  fi
13825fi
13826
13827    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
13828    *COFF*)
13829      DUMPBIN="$DUMPBIN -symbols -headers"
13830      ;;
13831    *)
13832      DUMPBIN=:
13833      ;;
13834    esac
13835  fi
13836
13837  if test : != "$DUMPBIN"; then
13838    NM=$DUMPBIN
13839  fi
13840fi
13841test -z "$NM" && NM=nm
13842
13843
13844
13845
13846
13847
13848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
13849$as_echo_n "checking the name lister ($NM) interface... " >&6; }
13850if ${lt_cv_nm_interface+:} false; then :
13851  $as_echo_n "(cached) " >&6
13852else
13853  lt_cv_nm_interface="BSD nm"
13854  echo "int some_variable = 0;" > conftest.$ac_ext
13855  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
13856  (eval "$ac_compile" 2>conftest.err)
13857  cat conftest.err >&5
13858  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
13859  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
13860  cat conftest.err >&5
13861  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
13862  cat conftest.out >&5
13863  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
13864    lt_cv_nm_interface="MS dumpbin"
13865  fi
13866  rm -f conftest*
13867fi
13868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
13869$as_echo "$lt_cv_nm_interface" >&6; }
13870
13871# find the maximum length of command line arguments
13872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
13873$as_echo_n "checking the maximum length of command line arguments... " >&6; }
13874if ${lt_cv_sys_max_cmd_len+:} false; then :
13875  $as_echo_n "(cached) " >&6
13876else
13877    i=0
13878  teststring=ABCD
13879
13880  case $build_os in
13881  msdosdjgpp*)
13882    # On DJGPP, this test can blow up pretty badly due to problems in libc
13883    # (any single argument exceeding 2000 bytes causes a buffer overrun
13884    # during glob expansion).  Even if it were fixed, the result of this
13885    # check would be larger than it should be.
13886    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
13887    ;;
13888
13889  gnu*)
13890    # Under GNU Hurd, this test is not required because there is
13891    # no limit to the length of command line arguments.
13892    # Libtool will interpret -1 as no limit whatsoever
13893    lt_cv_sys_max_cmd_len=-1;
13894    ;;
13895
13896  cygwin* | mingw* | cegcc*)
13897    # On Win9x/ME, this test blows up -- it succeeds, but takes
13898    # about 5 minutes as the teststring grows exponentially.
13899    # Worse, since 9x/ME are not pre-emptively multitasking,
13900    # you end up with a "frozen" computer, even though with patience
13901    # the test eventually succeeds (with a max line length of 256k).
13902    # Instead, let's just punt: use the minimum linelength reported by
13903    # all of the supported platforms: 8192 (on NT/2K/XP).
13904    lt_cv_sys_max_cmd_len=8192;
13905    ;;
13906
13907  mint*)
13908    # On MiNT this can take a long time and run out of memory.
13909    lt_cv_sys_max_cmd_len=8192;
13910    ;;
13911
13912  mint*)
13913    # On MiNT this can take a long time and run out of memory.
13914    lt_cv_sys_max_cmd_len=8192;
13915    ;;
13916
13917  amigaos*)
13918    # On AmigaOS with pdksh, this test takes hours, literally.
13919    # So we just punt and use a minimum line length of 8192.
13920    lt_cv_sys_max_cmd_len=8192;
13921    ;;
13922
13923  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
13924    # This has been around since 386BSD, at least.  Likely further.
13925    if test -x /sbin/sysctl; then
13926      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13927    elif test -x /usr/sbin/sysctl; then
13928      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13929    else
13930      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
13931    fi
13932    # And add a safety zone
13933    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13934    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13935    ;;
13936
13937  interix*)
13938    # We know the value 262144 and hardcode it with a safety zone (like BSD)
13939    lt_cv_sys_max_cmd_len=196608
13940    ;;
13941
13942  os2*)
13943    # The test takes a long time on OS/2.
13944    lt_cv_sys_max_cmd_len=8192
13945    ;;
13946
13947  osf*)
13948    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13949    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13950    # nice to cause kernel panics so lets avoid the loop below.
13951    # First set a reasonable default.
13952    lt_cv_sys_max_cmd_len=16384
13953    #
13954    if test -x /sbin/sysconfig; then
13955      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13956        *1*) lt_cv_sys_max_cmd_len=-1 ;;
13957      esac
13958    fi
13959    ;;
13960  sco3.2v5*)
13961    lt_cv_sys_max_cmd_len=102400
13962    ;;
13963  sysv5* | sco5v6* | sysv4.2uw2*)
13964    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13965    if test -n "$kargmax"; then
13966      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
13967    else
13968      lt_cv_sys_max_cmd_len=32768
13969    fi
13970    ;;
13971  *)
13972    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
13973    if test -n "$lt_cv_sys_max_cmd_len" && \
13974       test undefined != "$lt_cv_sys_max_cmd_len"; then
13975      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13976      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13977    else
13978      # Make teststring a little bigger before we do anything with it.
13979      # a 1K string should be a reasonable start.
13980      for i in 1 2 3 4 5 6 7 8; do
13981        teststring=$teststring$teststring
13982      done
13983      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13984      # If test is not a shell built-in, we'll probably end up computing a
13985      # maximum length that is only half of the actual maximum length, but
13986      # we can't tell.
13987      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
13988	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
13989	      test 17 != "$i" # 1/2 MB should be enough
13990      do
13991        i=`expr $i + 1`
13992        teststring=$teststring$teststring
13993      done
13994      # Only check the string length outside the loop.
13995      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
13996      teststring=
13997      # Add a significant safety factor because C++ compilers can tack on
13998      # massive amounts of additional arguments before passing them to the
13999      # linker.  It appears as though 1/2 is a usable value.
14000      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
14001    fi
14002    ;;
14003  esac
14004
14005fi
14006
14007if test -n "$lt_cv_sys_max_cmd_len"; then
14008  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
14009$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
14010else
14011  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
14012$as_echo "none" >&6; }
14013fi
14014max_cmd_len=$lt_cv_sys_max_cmd_len
14015
14016
14017
14018
14019
14020
14021: ${CP="cp -f"}
14022: ${MV="mv -f"}
14023: ${RM="rm -f"}
14024
14025if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14026  lt_unset=unset
14027else
14028  lt_unset=false
14029fi
14030
14031
14032
14033
14034
14035# test EBCDIC or ASCII
14036case `echo X|tr X '\101'` in
14037 A) # ASCII based system
14038    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
14039  lt_SP2NL='tr \040 \012'
14040  lt_NL2SP='tr \015\012 \040\040'
14041  ;;
14042 *) # EBCDIC based system
14043  lt_SP2NL='tr \100 \n'
14044  lt_NL2SP='tr \r\n \100\100'
14045  ;;
14046esac
14047
14048
14049
14050
14051
14052
14053
14054
14055
14056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
14057$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
14058if ${lt_cv_to_host_file_cmd+:} false; then :
14059  $as_echo_n "(cached) " >&6
14060else
14061  case $host in
14062  *-*-mingw* )
14063    case $build in
14064      *-*-mingw* ) # actually msys
14065        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
14066        ;;
14067      *-*-cygwin* )
14068        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
14069        ;;
14070      * ) # otherwise, assume *nix
14071        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
14072        ;;
14073    esac
14074    ;;
14075  *-*-cygwin* )
14076    case $build in
14077      *-*-mingw* ) # actually msys
14078        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
14079        ;;
14080      *-*-cygwin* )
14081        lt_cv_to_host_file_cmd=func_convert_file_noop
14082        ;;
14083      * ) # otherwise, assume *nix
14084        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
14085        ;;
14086    esac
14087    ;;
14088  * ) # unhandled hosts (and "normal" native builds)
14089    lt_cv_to_host_file_cmd=func_convert_file_noop
14090    ;;
14091esac
14092
14093fi
14094
14095to_host_file_cmd=$lt_cv_to_host_file_cmd
14096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
14097$as_echo "$lt_cv_to_host_file_cmd" >&6; }
14098
14099
14100
14101
14102
14103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
14104$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
14105if ${lt_cv_to_tool_file_cmd+:} false; then :
14106  $as_echo_n "(cached) " >&6
14107else
14108  #assume ordinary cross tools, or native build.
14109lt_cv_to_tool_file_cmd=func_convert_file_noop
14110case $host in
14111  *-*-mingw* )
14112    case $build in
14113      *-*-mingw* ) # actually msys
14114        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
14115        ;;
14116    esac
14117    ;;
14118esac
14119
14120fi
14121
14122to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
14124$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
14125
14126
14127
14128
14129
14130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
14131$as_echo_n "checking for $LD option to reload object files... " >&6; }
14132if ${lt_cv_ld_reload_flag+:} false; then :
14133  $as_echo_n "(cached) " >&6
14134else
14135  lt_cv_ld_reload_flag='-r'
14136fi
14137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
14138$as_echo "$lt_cv_ld_reload_flag" >&6; }
14139reload_flag=$lt_cv_ld_reload_flag
14140case $reload_flag in
14141"" | " "*) ;;
14142*) reload_flag=" $reload_flag" ;;
14143esac
14144reload_cmds='$LD$reload_flag -o $output$reload_objs'
14145case $host_os in
14146  cygwin* | mingw* | pw32* | cegcc*)
14147    if test yes != "$GCC"; then
14148      reload_cmds=false
14149    fi
14150    ;;
14151  darwin*)
14152    if test yes = "$GCC"; then
14153      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
14154    else
14155      reload_cmds='$LD$reload_flag -o $output$reload_objs'
14156    fi
14157    ;;
14158esac
14159
14160
14161
14162
14163
14164
14165
14166
14167
14168if test -n "$ac_tool_prefix"; then
14169  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
14170set dummy ${ac_tool_prefix}objdump; ac_word=$2
14171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14172$as_echo_n "checking for $ac_word... " >&6; }
14173if ${ac_cv_prog_OBJDUMP+:} false; then :
14174  $as_echo_n "(cached) " >&6
14175else
14176  if test -n "$OBJDUMP"; then
14177  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
14178else
14179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14180for as_dir in $PATH
14181do
14182  IFS=$as_save_IFS
14183  test -z "$as_dir" && as_dir=.
14184    for ac_exec_ext in '' $ac_executable_extensions; do
14185  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14186    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
14187    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14188    break 2
14189  fi
14190done
14191  done
14192IFS=$as_save_IFS
14193
14194fi
14195fi
14196OBJDUMP=$ac_cv_prog_OBJDUMP
14197if test -n "$OBJDUMP"; then
14198  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
14199$as_echo "$OBJDUMP" >&6; }
14200else
14201  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14202$as_echo "no" >&6; }
14203fi
14204
14205
14206fi
14207if test -z "$ac_cv_prog_OBJDUMP"; then
14208  ac_ct_OBJDUMP=$OBJDUMP
14209  # Extract the first word of "objdump", so it can be a program name with args.
14210set dummy objdump; ac_word=$2
14211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14212$as_echo_n "checking for $ac_word... " >&6; }
14213if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
14214  $as_echo_n "(cached) " >&6
14215else
14216  if test -n "$ac_ct_OBJDUMP"; then
14217  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
14218else
14219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14220for as_dir in $PATH
14221do
14222  IFS=$as_save_IFS
14223  test -z "$as_dir" && as_dir=.
14224    for ac_exec_ext in '' $ac_executable_extensions; do
14225  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14226    ac_cv_prog_ac_ct_OBJDUMP="objdump"
14227    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14228    break 2
14229  fi
14230done
14231  done
14232IFS=$as_save_IFS
14233
14234fi
14235fi
14236ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
14237if test -n "$ac_ct_OBJDUMP"; then
14238  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
14239$as_echo "$ac_ct_OBJDUMP" >&6; }
14240else
14241  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14242$as_echo "no" >&6; }
14243fi
14244
14245  if test "x$ac_ct_OBJDUMP" = x; then
14246    OBJDUMP="false"
14247  else
14248    case $cross_compiling:$ac_tool_warned in
14249yes:)
14250{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14251$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14252ac_tool_warned=yes ;;
14253esac
14254    OBJDUMP=$ac_ct_OBJDUMP
14255  fi
14256else
14257  OBJDUMP="$ac_cv_prog_OBJDUMP"
14258fi
14259
14260test -z "$OBJDUMP" && OBJDUMP=objdump
14261
14262
14263
14264
14265
14266
14267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
14268$as_echo_n "checking how to recognize dependent libraries... " >&6; }
14269if ${lt_cv_deplibs_check_method+:} false; then :
14270  $as_echo_n "(cached) " >&6
14271else
14272  lt_cv_file_magic_cmd='$MAGIC_CMD'
14273lt_cv_file_magic_test_file=
14274lt_cv_deplibs_check_method='unknown'
14275# Need to set the preceding variable on all platforms that support
14276# interlibrary dependencies.
14277# 'none' -- dependencies not supported.
14278# 'unknown' -- same as none, but documents that we really don't know.
14279# 'pass_all' -- all dependencies passed with no checks.
14280# 'test_compile' -- check by making test program.
14281# 'file_magic [[regex]]' -- check by looking for files in library path
14282# that responds to the $file_magic_cmd with a given extended regex.
14283# If you have 'file' or equivalent on your system and you're not sure
14284# whether 'pass_all' will *always* work, you probably want this one.
14285
14286case $host_os in
14287aix[4-9]*)
14288  lt_cv_deplibs_check_method=pass_all
14289  ;;
14290
14291beos*)
14292  lt_cv_deplibs_check_method=pass_all
14293  ;;
14294
14295bsdi[45]*)
14296  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
14297  lt_cv_file_magic_cmd='/usr/bin/file -L'
14298  lt_cv_file_magic_test_file=/shlib/libc.so
14299  ;;
14300
14301cygwin*)
14302  # func_win32_libid is a shell function defined in ltmain.sh
14303  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14304  lt_cv_file_magic_cmd='func_win32_libid'
14305  ;;
14306
14307mingw* | pw32*)
14308  # Base MSYS/MinGW do not provide the 'file' command needed by
14309  # func_win32_libid shell function, so use a weaker test based on 'objdump',
14310  # unless we find 'file', for example because we are cross-compiling.
14311  if ( file / ) >/dev/null 2>&1; then
14312    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14313    lt_cv_file_magic_cmd='func_win32_libid'
14314  else
14315    # Keep this pattern in sync with the one in func_win32_libid.
14316    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
14317    lt_cv_file_magic_cmd='$OBJDUMP -f'
14318  fi
14319  ;;
14320
14321cegcc*)
14322  # use the weaker test based on 'objdump'. See mingw*.
14323  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
14324  lt_cv_file_magic_cmd='$OBJDUMP -f'
14325  ;;
14326
14327darwin* | rhapsody*)
14328  lt_cv_deplibs_check_method=pass_all
14329  ;;
14330
14331freebsd* | dragonfly*)
14332  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
14333    case $host_cpu in
14334    i*86 )
14335      # Not sure whether the presence of OpenBSD here was a mistake.
14336      # Let's accept both of them until this is cleared up.
14337      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
14338      lt_cv_file_magic_cmd=/usr/bin/file
14339      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
14340      ;;
14341    esac
14342  else
14343    lt_cv_deplibs_check_method=pass_all
14344  fi
14345  ;;
14346
14347haiku*)
14348  lt_cv_deplibs_check_method=pass_all
14349  ;;
14350
14351hpux10.20* | hpux11*)
14352  lt_cv_file_magic_cmd=/usr/bin/file
14353  case $host_cpu in
14354  ia64*)
14355    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
14356    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
14357    ;;
14358  hppa*64*)
14359    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]'
14360    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
14361    ;;
14362  *)
14363    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
14364    lt_cv_file_magic_test_file=/usr/lib/libc.sl
14365    ;;
14366  esac
14367  ;;
14368
14369interix[3-9]*)
14370  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
14371  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
14372  ;;
14373
14374irix5* | irix6* | nonstopux*)
14375  case $LD in
14376  *-32|*"-32 ") libmagic=32-bit;;
14377  *-n32|*"-n32 ") libmagic=N32;;
14378  *-64|*"-64 ") libmagic=64-bit;;
14379  *) libmagic=never-match;;
14380  esac
14381  lt_cv_deplibs_check_method=pass_all
14382  ;;
14383
14384# This must be glibc/ELF.
14385linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14386  lt_cv_deplibs_check_method=pass_all
14387  ;;
14388
14389netbsd*)
14390  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
14391    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14392  else
14393    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
14394  fi
14395  ;;
14396
14397newos6*)
14398  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
14399  lt_cv_file_magic_cmd=/usr/bin/file
14400  lt_cv_file_magic_test_file=/usr/lib/libnls.so
14401  ;;
14402
14403*nto* | *qnx*)
14404  lt_cv_deplibs_check_method=pass_all
14405  ;;
14406
14407openbsd* | bitrig*)
14408  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14409    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
14410  else
14411    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14412  fi
14413  ;;
14414
14415osf3* | osf4* | osf5*)
14416  lt_cv_deplibs_check_method=pass_all
14417  ;;
14418
14419rdos*)
14420  lt_cv_deplibs_check_method=pass_all
14421  ;;
14422
14423solaris*)
14424  lt_cv_deplibs_check_method=pass_all
14425  ;;
14426
14427sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14428  lt_cv_deplibs_check_method=pass_all
14429  ;;
14430
14431sysv4 | sysv4.3*)
14432  case $host_vendor in
14433  motorola)
14434    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]'
14435    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
14436    ;;
14437  ncr)
14438    lt_cv_deplibs_check_method=pass_all
14439    ;;
14440  sequent)
14441    lt_cv_file_magic_cmd='/bin/file'
14442    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
14443    ;;
14444  sni)
14445    lt_cv_file_magic_cmd='/bin/file'
14446    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
14447    lt_cv_file_magic_test_file=/lib/libc.so
14448    ;;
14449  siemens)
14450    lt_cv_deplibs_check_method=pass_all
14451    ;;
14452  pc)
14453    lt_cv_deplibs_check_method=pass_all
14454    ;;
14455  esac
14456  ;;
14457
14458tpf*)
14459  lt_cv_deplibs_check_method=pass_all
14460  ;;
14461os2*)
14462  lt_cv_deplibs_check_method=pass_all
14463  ;;
14464esac
14465
14466fi
14467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
14468$as_echo "$lt_cv_deplibs_check_method" >&6; }
14469
14470file_magic_glob=
14471want_nocaseglob=no
14472if test "$build" = "$host"; then
14473  case $host_os in
14474  mingw* | pw32*)
14475    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
14476      want_nocaseglob=yes
14477    else
14478      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
14479    fi
14480    ;;
14481  esac
14482fi
14483
14484file_magic_cmd=$lt_cv_file_magic_cmd
14485deplibs_check_method=$lt_cv_deplibs_check_method
14486test -z "$deplibs_check_method" && deplibs_check_method=unknown
14487
14488
14489
14490
14491
14492
14493
14494
14495
14496
14497
14498
14499
14500
14501
14502
14503
14504
14505
14506
14507
14508
14509if test -n "$ac_tool_prefix"; then
14510  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
14511set dummy ${ac_tool_prefix}dlltool; ac_word=$2
14512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14513$as_echo_n "checking for $ac_word... " >&6; }
14514if ${ac_cv_prog_DLLTOOL+:} false; then :
14515  $as_echo_n "(cached) " >&6
14516else
14517  if test -n "$DLLTOOL"; then
14518  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
14519else
14520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14521for as_dir in $PATH
14522do
14523  IFS=$as_save_IFS
14524  test -z "$as_dir" && as_dir=.
14525    for ac_exec_ext in '' $ac_executable_extensions; do
14526  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14527    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
14528    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14529    break 2
14530  fi
14531done
14532  done
14533IFS=$as_save_IFS
14534
14535fi
14536fi
14537DLLTOOL=$ac_cv_prog_DLLTOOL
14538if test -n "$DLLTOOL"; then
14539  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
14540$as_echo "$DLLTOOL" >&6; }
14541else
14542  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14543$as_echo "no" >&6; }
14544fi
14545
14546
14547fi
14548if test -z "$ac_cv_prog_DLLTOOL"; then
14549  ac_ct_DLLTOOL=$DLLTOOL
14550  # Extract the first word of "dlltool", so it can be a program name with args.
14551set dummy dlltool; ac_word=$2
14552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14553$as_echo_n "checking for $ac_word... " >&6; }
14554if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
14555  $as_echo_n "(cached) " >&6
14556else
14557  if test -n "$ac_ct_DLLTOOL"; then
14558  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
14559else
14560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14561for as_dir in $PATH
14562do
14563  IFS=$as_save_IFS
14564  test -z "$as_dir" && as_dir=.
14565    for ac_exec_ext in '' $ac_executable_extensions; do
14566  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14567    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
14568    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14569    break 2
14570  fi
14571done
14572  done
14573IFS=$as_save_IFS
14574
14575fi
14576fi
14577ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
14578if test -n "$ac_ct_DLLTOOL"; then
14579  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
14580$as_echo "$ac_ct_DLLTOOL" >&6; }
14581else
14582  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14583$as_echo "no" >&6; }
14584fi
14585
14586  if test "x$ac_ct_DLLTOOL" = x; then
14587    DLLTOOL="false"
14588  else
14589    case $cross_compiling:$ac_tool_warned in
14590yes:)
14591{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14592$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14593ac_tool_warned=yes ;;
14594esac
14595    DLLTOOL=$ac_ct_DLLTOOL
14596  fi
14597else
14598  DLLTOOL="$ac_cv_prog_DLLTOOL"
14599fi
14600
14601test -z "$DLLTOOL" && DLLTOOL=dlltool
14602
14603
14604
14605
14606
14607
14608
14609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
14610$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
14611if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
14612  $as_echo_n "(cached) " >&6
14613else
14614  lt_cv_sharedlib_from_linklib_cmd='unknown'
14615
14616case $host_os in
14617cygwin* | mingw* | pw32* | cegcc*)
14618  # two different shell functions defined in ltmain.sh;
14619  # decide which one to use based on capabilities of $DLLTOOL
14620  case `$DLLTOOL --help 2>&1` in
14621  *--identify-strict*)
14622    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
14623    ;;
14624  *)
14625    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
14626    ;;
14627  esac
14628  ;;
14629*)
14630  # fallback: assume linklib IS sharedlib
14631  lt_cv_sharedlib_from_linklib_cmd=$ECHO
14632  ;;
14633esac
14634
14635fi
14636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
14637$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
14638sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
14639test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
14640
14641
14642
14643
14644
14645
14646
14647if test -n "$ac_tool_prefix"; then
14648  for ac_prog in ar
14649  do
14650    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14651set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14653$as_echo_n "checking for $ac_word... " >&6; }
14654if ${ac_cv_prog_AR+:} false; then :
14655  $as_echo_n "(cached) " >&6
14656else
14657  if test -n "$AR"; then
14658  ac_cv_prog_AR="$AR" # Let the user override the test.
14659else
14660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14661for as_dir in $PATH
14662do
14663  IFS=$as_save_IFS
14664  test -z "$as_dir" && as_dir=.
14665    for ac_exec_ext in '' $ac_executable_extensions; do
14666  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14667    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
14668    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14669    break 2
14670  fi
14671done
14672  done
14673IFS=$as_save_IFS
14674
14675fi
14676fi
14677AR=$ac_cv_prog_AR
14678if test -n "$AR"; then
14679  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
14680$as_echo "$AR" >&6; }
14681else
14682  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14683$as_echo "no" >&6; }
14684fi
14685
14686
14687    test -n "$AR" && break
14688  done
14689fi
14690if test -z "$AR"; then
14691  ac_ct_AR=$AR
14692  for ac_prog in ar
14693do
14694  # Extract the first word of "$ac_prog", so it can be a program name with args.
14695set dummy $ac_prog; ac_word=$2
14696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14697$as_echo_n "checking for $ac_word... " >&6; }
14698if ${ac_cv_prog_ac_ct_AR+:} false; then :
14699  $as_echo_n "(cached) " >&6
14700else
14701  if test -n "$ac_ct_AR"; then
14702  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14703else
14704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14705for as_dir in $PATH
14706do
14707  IFS=$as_save_IFS
14708  test -z "$as_dir" && as_dir=.
14709    for ac_exec_ext in '' $ac_executable_extensions; do
14710  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14711    ac_cv_prog_ac_ct_AR="$ac_prog"
14712    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14713    break 2
14714  fi
14715done
14716  done
14717IFS=$as_save_IFS
14718
14719fi
14720fi
14721ac_ct_AR=$ac_cv_prog_ac_ct_AR
14722if test -n "$ac_ct_AR"; then
14723  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
14724$as_echo "$ac_ct_AR" >&6; }
14725else
14726  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14727$as_echo "no" >&6; }
14728fi
14729
14730
14731  test -n "$ac_ct_AR" && break
14732done
14733
14734  if test "x$ac_ct_AR" = x; then
14735    AR="false"
14736  else
14737    case $cross_compiling:$ac_tool_warned in
14738yes:)
14739{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14740$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14741ac_tool_warned=yes ;;
14742esac
14743    AR=$ac_ct_AR
14744  fi
14745fi
14746
14747: ${AR=ar}
14748: ${AR_FLAGS=cru}
14749
14750
14751
14752
14753
14754
14755
14756
14757
14758
14759
14760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
14761$as_echo_n "checking for archiver @FILE support... " >&6; }
14762if ${lt_cv_ar_at_file+:} false; then :
14763  $as_echo_n "(cached) " >&6
14764else
14765  lt_cv_ar_at_file=no
14766   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14767/* end confdefs.h.  */
14768
14769int
14770main ()
14771{
14772
14773  ;
14774  return 0;
14775}
14776_ACEOF
14777if ac_fn_c_try_compile "$LINENO"; then :
14778  echo conftest.$ac_objext > conftest.lst
14779      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
14780      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
14781  (eval $lt_ar_try) 2>&5
14782  ac_status=$?
14783  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14784  test $ac_status = 0; }
14785      if test 0 -eq "$ac_status"; then
14786	# Ensure the archiver fails upon bogus file names.
14787	rm -f conftest.$ac_objext libconftest.a
14788	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
14789  (eval $lt_ar_try) 2>&5
14790  ac_status=$?
14791  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14792  test $ac_status = 0; }
14793	if test 0 -ne "$ac_status"; then
14794          lt_cv_ar_at_file=@
14795        fi
14796      fi
14797      rm -f conftest.* libconftest.a
14798
14799fi
14800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14801
14802fi
14803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
14804$as_echo "$lt_cv_ar_at_file" >&6; }
14805
14806if test no = "$lt_cv_ar_at_file"; then
14807  archiver_list_spec=
14808else
14809  archiver_list_spec=$lt_cv_ar_at_file
14810fi
14811
14812
14813
14814
14815
14816
14817
14818if test -n "$ac_tool_prefix"; then
14819  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14820set dummy ${ac_tool_prefix}strip; ac_word=$2
14821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14822$as_echo_n "checking for $ac_word... " >&6; }
14823if ${ac_cv_prog_STRIP+:} false; then :
14824  $as_echo_n "(cached) " >&6
14825else
14826  if test -n "$STRIP"; then
14827  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14828else
14829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14830for as_dir in $PATH
14831do
14832  IFS=$as_save_IFS
14833  test -z "$as_dir" && as_dir=.
14834    for ac_exec_ext in '' $ac_executable_extensions; do
14835  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14836    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14837    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14838    break 2
14839  fi
14840done
14841  done
14842IFS=$as_save_IFS
14843
14844fi
14845fi
14846STRIP=$ac_cv_prog_STRIP
14847if test -n "$STRIP"; then
14848  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
14849$as_echo "$STRIP" >&6; }
14850else
14851  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14852$as_echo "no" >&6; }
14853fi
14854
14855
14856fi
14857if test -z "$ac_cv_prog_STRIP"; then
14858  ac_ct_STRIP=$STRIP
14859  # Extract the first word of "strip", so it can be a program name with args.
14860set dummy strip; ac_word=$2
14861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14862$as_echo_n "checking for $ac_word... " >&6; }
14863if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
14864  $as_echo_n "(cached) " >&6
14865else
14866  if test -n "$ac_ct_STRIP"; then
14867  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14868else
14869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14870for as_dir in $PATH
14871do
14872  IFS=$as_save_IFS
14873  test -z "$as_dir" && as_dir=.
14874    for ac_exec_ext in '' $ac_executable_extensions; do
14875  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14876    ac_cv_prog_ac_ct_STRIP="strip"
14877    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14878    break 2
14879  fi
14880done
14881  done
14882IFS=$as_save_IFS
14883
14884fi
14885fi
14886ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14887if test -n "$ac_ct_STRIP"; then
14888  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
14889$as_echo "$ac_ct_STRIP" >&6; }
14890else
14891  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14892$as_echo "no" >&6; }
14893fi
14894
14895  if test "x$ac_ct_STRIP" = x; then
14896    STRIP=":"
14897  else
14898    case $cross_compiling:$ac_tool_warned in
14899yes:)
14900{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14901$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14902ac_tool_warned=yes ;;
14903esac
14904    STRIP=$ac_ct_STRIP
14905  fi
14906else
14907  STRIP="$ac_cv_prog_STRIP"
14908fi
14909
14910test -z "$STRIP" && STRIP=:
14911
14912
14913
14914
14915
14916
14917if test -n "$ac_tool_prefix"; then
14918  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14919set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14921$as_echo_n "checking for $ac_word... " >&6; }
14922if ${ac_cv_prog_RANLIB+:} false; then :
14923  $as_echo_n "(cached) " >&6
14924else
14925  if test -n "$RANLIB"; then
14926  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14927else
14928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14929for as_dir in $PATH
14930do
14931  IFS=$as_save_IFS
14932  test -z "$as_dir" && as_dir=.
14933    for ac_exec_ext in '' $ac_executable_extensions; do
14934  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14935    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14936    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14937    break 2
14938  fi
14939done
14940  done
14941IFS=$as_save_IFS
14942
14943fi
14944fi
14945RANLIB=$ac_cv_prog_RANLIB
14946if test -n "$RANLIB"; then
14947  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
14948$as_echo "$RANLIB" >&6; }
14949else
14950  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14951$as_echo "no" >&6; }
14952fi
14953
14954
14955fi
14956if test -z "$ac_cv_prog_RANLIB"; then
14957  ac_ct_RANLIB=$RANLIB
14958  # Extract the first word of "ranlib", so it can be a program name with args.
14959set dummy ranlib; ac_word=$2
14960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14961$as_echo_n "checking for $ac_word... " >&6; }
14962if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
14963  $as_echo_n "(cached) " >&6
14964else
14965  if test -n "$ac_ct_RANLIB"; then
14966  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14967else
14968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14969for as_dir in $PATH
14970do
14971  IFS=$as_save_IFS
14972  test -z "$as_dir" && as_dir=.
14973    for ac_exec_ext in '' $ac_executable_extensions; do
14974  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14975    ac_cv_prog_ac_ct_RANLIB="ranlib"
14976    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14977    break 2
14978  fi
14979done
14980  done
14981IFS=$as_save_IFS
14982
14983fi
14984fi
14985ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14986if test -n "$ac_ct_RANLIB"; then
14987  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
14988$as_echo "$ac_ct_RANLIB" >&6; }
14989else
14990  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14991$as_echo "no" >&6; }
14992fi
14993
14994  if test "x$ac_ct_RANLIB" = x; then
14995    RANLIB=":"
14996  else
14997    case $cross_compiling:$ac_tool_warned in
14998yes:)
14999{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15000$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15001ac_tool_warned=yes ;;
15002esac
15003    RANLIB=$ac_ct_RANLIB
15004  fi
15005else
15006  RANLIB="$ac_cv_prog_RANLIB"
15007fi
15008
15009test -z "$RANLIB" && RANLIB=:
15010
15011
15012
15013
15014
15015
15016# Determine commands to create old-style static archives.
15017old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
15018old_postinstall_cmds='chmod 644 $oldlib'
15019old_postuninstall_cmds=
15020
15021if test -n "$RANLIB"; then
15022  case $host_os in
15023  bitrig* | openbsd*)
15024    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
15025    ;;
15026  *)
15027    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
15028    ;;
15029  esac
15030  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
15031fi
15032
15033case $host_os in
15034  darwin*)
15035    lock_old_archive_extraction=yes ;;
15036  *)
15037    lock_old_archive_extraction=no ;;
15038esac
15039
15040
15041
15042
15043
15044
15045
15046
15047
15048
15049
15050
15051
15052
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078# If no C compiler was specified, use CC.
15079LTCC=${LTCC-"$CC"}
15080
15081# If no C compiler flags were specified, use CFLAGS.
15082LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15083
15084# Allow CC to be a program name with arguments.
15085compiler=$CC
15086
15087
15088# Check for command to grab the raw symbol name followed by C symbol from nm.
15089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
15090$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
15091if ${lt_cv_sys_global_symbol_pipe+:} false; then :
15092  $as_echo_n "(cached) " >&6
15093else
15094
15095# These are sane defaults that work on at least a few old systems.
15096# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
15097
15098# Character class describing NM global symbol codes.
15099symcode='[BCDEGRST]'
15100
15101# Regexp to match symbols that can be accessed directly from C.
15102sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
15103
15104# Define system-specific variables.
15105case $host_os in
15106aix*)
15107  symcode='[BCDT]'
15108  ;;
15109cygwin* | mingw* | pw32* | cegcc*)
15110  symcode='[ABCDGISTW]'
15111  ;;
15112hpux*)
15113  if test ia64 = "$host_cpu"; then
15114    symcode='[ABCDEGRST]'
15115  fi
15116  ;;
15117irix* | nonstopux*)
15118  symcode='[BCDEGRST]'
15119  ;;
15120osf*)
15121  symcode='[BCDEGQRST]'
15122  ;;
15123solaris*)
15124  symcode='[BDRT]'
15125  ;;
15126sco3.2v5*)
15127  symcode='[DT]'
15128  ;;
15129sysv4.2uw2*)
15130  symcode='[DT]'
15131  ;;
15132sysv5* | sco5v6* | unixware* | OpenUNIX*)
15133  symcode='[ABDT]'
15134  ;;
15135sysv4)
15136  symcode='[DFNSTU]'
15137  ;;
15138esac
15139
15140# If we're using GNU nm, then use its standard symbol codes.
15141case `$NM -V 2>&1` in
15142*GNU* | *'with BFD'*)
15143  symcode='[ABCDGIRSTW]' ;;
15144esac
15145
15146if test "$lt_cv_nm_interface" = "MS dumpbin"; then
15147  # Gets list of data symbols to import.
15148  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
15149  # Adjust the below global symbol transforms to fixup imported variables.
15150  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
15151  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
15152  lt_c_name_lib_hook="\
15153  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
15154  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
15155else
15156  # Disable hooks by default.
15157  lt_cv_sys_global_symbol_to_import=
15158  lt_cdecl_hook=
15159  lt_c_name_hook=
15160  lt_c_name_lib_hook=
15161fi
15162
15163# Transform an extracted symbol line into a proper C declaration.
15164# Some systems (esp. on ia64) link data and code symbols differently,
15165# so use this general approach.
15166lt_cv_sys_global_symbol_to_cdecl="sed -n"\
15167$lt_cdecl_hook\
15168" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
15169" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
15170
15171# Transform an extracted symbol line into symbol name and symbol address
15172lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
15173$lt_c_name_hook\
15174" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
15175" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
15176
15177# Transform an extracted symbol line into symbol name with lib prefix and
15178# symbol address.
15179lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
15180$lt_c_name_lib_hook\
15181" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
15182" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
15183" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
15184
15185# Handle CRLF in mingw tool chain
15186opt_cr=
15187case $build_os in
15188mingw*)
15189  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
15190  ;;
15191esac
15192
15193# Try without a prefix underscore, then with it.
15194for ac_symprfx in "" "_"; do
15195
15196  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
15197  symxfrm="\\1 $ac_symprfx\\2 \\2"
15198
15199  # Write the raw and C identifiers.
15200  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
15201    # Fake it for dumpbin and say T for any non-static function,
15202    # D for any global variable and I for any imported variable.
15203    # Also find C++ and __fastcall symbols from MSVC++,
15204    # which start with @ or ?.
15205    lt_cv_sys_global_symbol_pipe="$AWK '"\
15206"     {last_section=section; section=\$ 3};"\
15207"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
15208"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
15209"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
15210"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
15211"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
15212"     \$ 0!~/External *\|/{next};"\
15213"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
15214"     {if(hide[section]) next};"\
15215"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
15216"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
15217"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
15218"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
15219"     ' prfx=^$ac_symprfx"
15220  else
15221    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
15222  fi
15223  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
15224
15225  # Check to see that the pipe works correctly.
15226  pipe_works=no
15227
15228  rm -f conftest*
15229  cat > conftest.$ac_ext <<_LT_EOF
15230#ifdef __cplusplus
15231extern "C" {
15232#endif
15233char nm_test_var;
15234void nm_test_func(void);
15235void nm_test_func(void){}
15236#ifdef __cplusplus
15237}
15238#endif
15239int main(){nm_test_var='a';nm_test_func();return(0);}
15240_LT_EOF
15241
15242  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15243  (eval $ac_compile) 2>&5
15244  ac_status=$?
15245  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15246  test $ac_status = 0; }; then
15247    # Now try to grab the symbols.
15248    nlist=conftest.nm
15249    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
15250  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
15251  ac_status=$?
15252  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15253  test $ac_status = 0; } && test -s "$nlist"; then
15254      # Try sorting and uniquifying the output.
15255      if sort "$nlist" | uniq > "$nlist"T; then
15256	mv -f "$nlist"T "$nlist"
15257      else
15258	rm -f "$nlist"T
15259      fi
15260
15261      # Make sure that we snagged all the symbols we need.
15262      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
15263	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
15264	  cat <<_LT_EOF > conftest.$ac_ext
15265/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
15266#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
15267/* DATA imports from DLLs on WIN32 can't be const, because runtime
15268   relocations are performed -- see ld's documentation on pseudo-relocs.  */
15269# define LT_DLSYM_CONST
15270#elif defined __osf__
15271/* This system does not cope well with relocations in const data.  */
15272# define LT_DLSYM_CONST
15273#else
15274# define LT_DLSYM_CONST const
15275#endif
15276
15277#ifdef __cplusplus
15278extern "C" {
15279#endif
15280
15281_LT_EOF
15282	  # Now generate the symbol file.
15283	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
15284
15285	  cat <<_LT_EOF >> conftest.$ac_ext
15286
15287/* The mapping between symbol names and symbols.  */
15288LT_DLSYM_CONST struct {
15289  const char *name;
15290  void       *address;
15291}
15292lt__PROGRAM__LTX_preloaded_symbols[] =
15293{
15294  { "@PROGRAM@", (void *) 0 },
15295_LT_EOF
15296	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
15297	  cat <<\_LT_EOF >> conftest.$ac_ext
15298  {0, (void *) 0}
15299};
15300
15301/* This works around a problem in FreeBSD linker */
15302#ifdef FREEBSD_WORKAROUND
15303static const void *lt_preloaded_setup() {
15304  return lt__PROGRAM__LTX_preloaded_symbols;
15305}
15306#endif
15307
15308#ifdef __cplusplus
15309}
15310#endif
15311_LT_EOF
15312	  # Now try linking the two files.
15313	  mv conftest.$ac_objext conftstm.$ac_objext
15314	  lt_globsym_save_LIBS=$LIBS
15315	  lt_globsym_save_CFLAGS=$CFLAGS
15316	  LIBS=conftstm.$ac_objext
15317	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
15318	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15319  (eval $ac_link) 2>&5
15320  ac_status=$?
15321  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15322  test $ac_status = 0; } && test -s conftest$ac_exeext; then
15323	    pipe_works=yes
15324	  fi
15325	  LIBS=$lt_globsym_save_LIBS
15326	  CFLAGS=$lt_globsym_save_CFLAGS
15327	else
15328	  echo "cannot find nm_test_func in $nlist" >&5
15329	fi
15330      else
15331	echo "cannot find nm_test_var in $nlist" >&5
15332      fi
15333    else
15334      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
15335    fi
15336  else
15337    echo "$progname: failed program was:" >&5
15338    cat conftest.$ac_ext >&5
15339  fi
15340  rm -rf conftest* conftst*
15341
15342  # Do not use the global_symbol_pipe unless it works.
15343  if test yes = "$pipe_works"; then
15344    break
15345  else
15346    lt_cv_sys_global_symbol_pipe=
15347  fi
15348done
15349
15350fi
15351
15352if test -z "$lt_cv_sys_global_symbol_pipe"; then
15353  lt_cv_sys_global_symbol_to_cdecl=
15354fi
15355if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
15356  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
15357$as_echo "failed" >&6; }
15358else
15359  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
15360$as_echo "ok" >&6; }
15361fi
15362
15363# Response file support.
15364if test "$lt_cv_nm_interface" = "MS dumpbin"; then
15365  nm_file_list_spec='@'
15366elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
15367  nm_file_list_spec='@'
15368fi
15369
15370
15371
15372
15373
15374
15375
15376
15377
15378
15379
15380
15381
15382
15383
15384
15385
15386
15387
15388
15389
15390
15391
15392
15393
15394
15395
15396
15397
15398
15399
15400
15401
15402
15403
15404
15405
15406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
15407$as_echo_n "checking for sysroot... " >&6; }
15408
15409# Check whether --with-sysroot was given.
15410if test "${with_sysroot+set}" = set; then :
15411  withval=$with_sysroot;
15412else
15413  with_sysroot=no
15414fi
15415
15416
15417lt_sysroot=
15418case $with_sysroot in #(
15419 yes)
15420   if test yes = "$GCC"; then
15421     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
15422   fi
15423   ;; #(
15424 /*)
15425   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
15426   ;; #(
15427 no|'')
15428   ;; #(
15429 *)
15430   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
15431$as_echo "$with_sysroot" >&6; }
15432   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
15433   ;;
15434esac
15435
15436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
15437$as_echo "${lt_sysroot:-no}" >&6; }
15438
15439
15440
15441
15442
15443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
15444$as_echo_n "checking for a working dd... " >&6; }
15445if ${ac_cv_path_lt_DD+:} false; then :
15446  $as_echo_n "(cached) " >&6
15447else
15448  printf 0123456789abcdef0123456789abcdef >conftest.i
15449cat conftest.i conftest.i >conftest2.i
15450: ${lt_DD:=$DD}
15451if test -z "$lt_DD"; then
15452  ac_path_lt_DD_found=false
15453  # Loop through the user's path and test for each of PROGNAME-LIST
15454  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15455for as_dir in $PATH
15456do
15457  IFS=$as_save_IFS
15458  test -z "$as_dir" && as_dir=.
15459    for ac_prog in dd; do
15460    for ac_exec_ext in '' $ac_executable_extensions; do
15461      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
15462      as_fn_executable_p "$ac_path_lt_DD" || continue
15463if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
15464  cmp -s conftest.i conftest.out \
15465  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
15466fi
15467      $ac_path_lt_DD_found && break 3
15468    done
15469  done
15470  done
15471IFS=$as_save_IFS
15472  if test -z "$ac_cv_path_lt_DD"; then
15473    :
15474  fi
15475else
15476  ac_cv_path_lt_DD=$lt_DD
15477fi
15478
15479rm -f conftest.i conftest2.i conftest.out
15480fi
15481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
15482$as_echo "$ac_cv_path_lt_DD" >&6; }
15483
15484
15485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
15486$as_echo_n "checking how to truncate binary pipes... " >&6; }
15487if ${lt_cv_truncate_bin+:} false; then :
15488  $as_echo_n "(cached) " >&6
15489else
15490  printf 0123456789abcdef0123456789abcdef >conftest.i
15491cat conftest.i conftest.i >conftest2.i
15492lt_cv_truncate_bin=
15493if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
15494  cmp -s conftest.i conftest.out \
15495  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
15496fi
15497rm -f conftest.i conftest2.i conftest.out
15498test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
15499fi
15500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
15501$as_echo "$lt_cv_truncate_bin" >&6; }
15502
15503
15504
15505
15506
15507
15508
15509# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
15510func_cc_basename ()
15511{
15512    for cc_temp in $*""; do
15513      case $cc_temp in
15514        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15515        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15516        \-*) ;;
15517        *) break;;
15518      esac
15519    done
15520    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15521}
15522
15523# Check whether --enable-libtool-lock was given.
15524if test "${enable_libtool_lock+set}" = set; then :
15525  enableval=$enable_libtool_lock;
15526fi
15527
15528test no = "$enable_libtool_lock" || enable_libtool_lock=yes
15529
15530# Some flags need to be propagated to the compiler or linker for good
15531# libtool support.
15532case $host in
15533ia64-*-hpux*)
15534  # Find out what ABI is being produced by ac_compile, and set mode
15535  # options accordingly.
15536  echo 'int i;' > conftest.$ac_ext
15537  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15538  (eval $ac_compile) 2>&5
15539  ac_status=$?
15540  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15541  test $ac_status = 0; }; then
15542    case `/usr/bin/file conftest.$ac_objext` in
15543      *ELF-32*)
15544	HPUX_IA64_MODE=32
15545	;;
15546      *ELF-64*)
15547	HPUX_IA64_MODE=64
15548	;;
15549    esac
15550  fi
15551  rm -rf conftest*
15552  ;;
15553*-*-irix6*)
15554  # Find out what ABI is being produced by ac_compile, and set linker
15555  # options accordingly.
15556  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
15557  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15558  (eval $ac_compile) 2>&5
15559  ac_status=$?
15560  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15561  test $ac_status = 0; }; then
15562    if test yes = "$lt_cv_prog_gnu_ld"; then
15563      case `/usr/bin/file conftest.$ac_objext` in
15564	*32-bit*)
15565	  LD="${LD-ld} -melf32bsmip"
15566	  ;;
15567	*N32*)
15568	  LD="${LD-ld} -melf32bmipn32"
15569	  ;;
15570	*64-bit*)
15571	  LD="${LD-ld} -melf64bmip"
15572	;;
15573      esac
15574    else
15575      case `/usr/bin/file conftest.$ac_objext` in
15576	*32-bit*)
15577	  LD="${LD-ld} -32"
15578	  ;;
15579	*N32*)
15580	  LD="${LD-ld} -n32"
15581	  ;;
15582	*64-bit*)
15583	  LD="${LD-ld} -64"
15584	  ;;
15585      esac
15586    fi
15587  fi
15588  rm -rf conftest*
15589  ;;
15590
15591mips64*-*linux*)
15592  # Find out what ABI is being produced by ac_compile, and set linker
15593  # options accordingly.
15594  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
15595  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15596  (eval $ac_compile) 2>&5
15597  ac_status=$?
15598  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15599  test $ac_status = 0; }; then
15600    emul=elf
15601    case `/usr/bin/file conftest.$ac_objext` in
15602      *32-bit*)
15603	emul="${emul}32"
15604	;;
15605      *64-bit*)
15606	emul="${emul}64"
15607	;;
15608    esac
15609    case `/usr/bin/file conftest.$ac_objext` in
15610      *MSB*)
15611	emul="${emul}btsmip"
15612	;;
15613      *LSB*)
15614	emul="${emul}ltsmip"
15615	;;
15616    esac
15617    case `/usr/bin/file conftest.$ac_objext` in
15618      *N32*)
15619	emul="${emul}n32"
15620	;;
15621    esac
15622    LD="${LD-ld} -m $emul"
15623  fi
15624  rm -rf conftest*
15625  ;;
15626
15627x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
15628s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
15629  # Find out what ABI is being produced by ac_compile, and set linker
15630  # options accordingly.  Note that the listed cases only cover the
15631  # situations where additional linker options are needed (such as when
15632  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
15633  # vice versa); the common cases where no linker options are needed do
15634  # not appear in the list.
15635  echo 'int i;' > conftest.$ac_ext
15636  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15637  (eval $ac_compile) 2>&5
15638  ac_status=$?
15639  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15640  test $ac_status = 0; }; then
15641    case `/usr/bin/file conftest.o` in
15642      *32-bit*)
15643	case $host in
15644	  x86_64-*kfreebsd*-gnu)
15645	    LD="${LD-ld} -m elf_i386_fbsd"
15646	    ;;
15647	  x86_64-*linux*)
15648	    case `/usr/bin/file conftest.o` in
15649	      *x86-64*)
15650		LD="${LD-ld} -m elf32_x86_64"
15651		;;
15652	      *)
15653		LD="${LD-ld} -m elf_i386"
15654		;;
15655	    esac
15656	    ;;
15657	  powerpc64le-*linux*)
15658	    LD="${LD-ld} -m elf32lppclinux"
15659	    ;;
15660	  powerpc64-*linux*)
15661	    LD="${LD-ld} -m elf32ppclinux"
15662	    ;;
15663	  s390x-*linux*)
15664	    LD="${LD-ld} -m elf_s390"
15665	    ;;
15666	  sparc64-*linux*)
15667	    LD="${LD-ld} -m elf32_sparc"
15668	    ;;
15669	esac
15670	;;
15671      *64-bit*)
15672	case $host in
15673	  x86_64-*kfreebsd*-gnu)
15674	    LD="${LD-ld} -m elf_x86_64_fbsd"
15675	    ;;
15676	  x86_64-*linux*)
15677	    LD="${LD-ld} -m elf_x86_64"
15678	    ;;
15679	  powerpcle-*linux*|powerpc64le-*linux*)
15680	    LD="${LD-ld} -m elf64lppc"
15681	    ;;
15682	  powerpc-*linux*|powerpc64-*linux*)
15683	    LD="${LD-ld} -m elf64ppc"
15684	    ;;
15685	  s390*-*linux*|s390*-*tpf*)
15686	    LD="${LD-ld} -m elf64_s390"
15687	    ;;
15688	  sparc*-*linux*)
15689	    LD="${LD-ld} -m elf64_sparc"
15690	    ;;
15691	esac
15692	;;
15693    esac
15694  fi
15695  rm -rf conftest*
15696  ;;
15697
15698*-*-sco3.2v5*)
15699  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
15700  SAVE_CFLAGS=$CFLAGS
15701  CFLAGS="$CFLAGS -belf"
15702  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
15703$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
15704if ${lt_cv_cc_needs_belf+:} false; then :
15705  $as_echo_n "(cached) " >&6
15706else
15707  ac_ext=c
15708ac_cpp='$CPP $CPPFLAGS'
15709ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15710ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15711ac_compiler_gnu=$ac_cv_c_compiler_gnu
15712
15713     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15714/* end confdefs.h.  */
15715
15716int
15717main ()
15718{
15719
15720  ;
15721  return 0;
15722}
15723_ACEOF
15724if ac_fn_c_try_link "$LINENO"; then :
15725  lt_cv_cc_needs_belf=yes
15726else
15727  lt_cv_cc_needs_belf=no
15728fi
15729rm -f core conftest.err conftest.$ac_objext \
15730    conftest$ac_exeext conftest.$ac_ext
15731     ac_ext=c
15732ac_cpp='$CPP $CPPFLAGS'
15733ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15734ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15735ac_compiler_gnu=$ac_cv_c_compiler_gnu
15736
15737fi
15738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
15739$as_echo "$lt_cv_cc_needs_belf" >&6; }
15740  if test yes != "$lt_cv_cc_needs_belf"; then
15741    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
15742    CFLAGS=$SAVE_CFLAGS
15743  fi
15744  ;;
15745*-*solaris*)
15746  # Find out what ABI is being produced by ac_compile, and set linker
15747  # options accordingly.
15748  echo 'int i;' > conftest.$ac_ext
15749  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15750  (eval $ac_compile) 2>&5
15751  ac_status=$?
15752  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15753  test $ac_status = 0; }; then
15754    case `/usr/bin/file conftest.o` in
15755    *64-bit*)
15756      case $lt_cv_prog_gnu_ld in
15757      yes*)
15758        case $host in
15759        i?86-*-solaris*|x86_64-*-solaris*)
15760          LD="${LD-ld} -m elf_x86_64"
15761          ;;
15762        sparc*-*-solaris*)
15763          LD="${LD-ld} -m elf64_sparc"
15764          ;;
15765        esac
15766        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
15767        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
15768          LD=${LD-ld}_sol2
15769        fi
15770        ;;
15771      *)
15772	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
15773	  LD="${LD-ld} -64"
15774	fi
15775	;;
15776      esac
15777      ;;
15778    esac
15779  fi
15780  rm -rf conftest*
15781  ;;
15782esac
15783
15784need_locks=$enable_libtool_lock
15785
15786if test -n "$ac_tool_prefix"; then
15787  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
15788set dummy ${ac_tool_prefix}mt; ac_word=$2
15789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15790$as_echo_n "checking for $ac_word... " >&6; }
15791if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
15792  $as_echo_n "(cached) " >&6
15793else
15794  if test -n "$MANIFEST_TOOL"; then
15795  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
15796else
15797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15798for as_dir in $PATH
15799do
15800  IFS=$as_save_IFS
15801  test -z "$as_dir" && as_dir=.
15802    for ac_exec_ext in '' $ac_executable_extensions; do
15803  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15804    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
15805    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15806    break 2
15807  fi
15808done
15809  done
15810IFS=$as_save_IFS
15811
15812fi
15813fi
15814MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
15815if test -n "$MANIFEST_TOOL"; then
15816  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
15817$as_echo "$MANIFEST_TOOL" >&6; }
15818else
15819  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15820$as_echo "no" >&6; }
15821fi
15822
15823
15824fi
15825if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
15826  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
15827  # Extract the first word of "mt", so it can be a program name with args.
15828set dummy mt; ac_word=$2
15829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15830$as_echo_n "checking for $ac_word... " >&6; }
15831if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
15832  $as_echo_n "(cached) " >&6
15833else
15834  if test -n "$ac_ct_MANIFEST_TOOL"; then
15835  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
15836else
15837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15838for as_dir in $PATH
15839do
15840  IFS=$as_save_IFS
15841  test -z "$as_dir" && as_dir=.
15842    for ac_exec_ext in '' $ac_executable_extensions; do
15843  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15844    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
15845    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15846    break 2
15847  fi
15848done
15849  done
15850IFS=$as_save_IFS
15851
15852fi
15853fi
15854ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
15855if test -n "$ac_ct_MANIFEST_TOOL"; then
15856  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
15857$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
15858else
15859  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15860$as_echo "no" >&6; }
15861fi
15862
15863  if test "x$ac_ct_MANIFEST_TOOL" = x; then
15864    MANIFEST_TOOL=":"
15865  else
15866    case $cross_compiling:$ac_tool_warned in
15867yes:)
15868{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15869$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15870ac_tool_warned=yes ;;
15871esac
15872    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
15873  fi
15874else
15875  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
15876fi
15877
15878test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
15879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
15880$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
15881if ${lt_cv_path_mainfest_tool+:} false; then :
15882  $as_echo_n "(cached) " >&6
15883else
15884  lt_cv_path_mainfest_tool=no
15885  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
15886  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
15887  cat conftest.err >&5
15888  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
15889    lt_cv_path_mainfest_tool=yes
15890  fi
15891  rm -f conftest*
15892fi
15893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
15894$as_echo "$lt_cv_path_mainfest_tool" >&6; }
15895if test yes != "$lt_cv_path_mainfest_tool"; then
15896  MANIFEST_TOOL=:
15897fi
15898
15899
15900
15901
15902
15903
15904  case $host_os in
15905    rhapsody* | darwin*)
15906    if test -n "$ac_tool_prefix"; then
15907  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
15908set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
15909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15910$as_echo_n "checking for $ac_word... " >&6; }
15911if ${ac_cv_prog_DSYMUTIL+:} false; then :
15912  $as_echo_n "(cached) " >&6
15913else
15914  if test -n "$DSYMUTIL"; then
15915  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
15916else
15917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15918for as_dir in $PATH
15919do
15920  IFS=$as_save_IFS
15921  test -z "$as_dir" && as_dir=.
15922    for ac_exec_ext in '' $ac_executable_extensions; do
15923  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15924    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
15925    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15926    break 2
15927  fi
15928done
15929  done
15930IFS=$as_save_IFS
15931
15932fi
15933fi
15934DSYMUTIL=$ac_cv_prog_DSYMUTIL
15935if test -n "$DSYMUTIL"; then
15936  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
15937$as_echo "$DSYMUTIL" >&6; }
15938else
15939  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15940$as_echo "no" >&6; }
15941fi
15942
15943
15944fi
15945if test -z "$ac_cv_prog_DSYMUTIL"; then
15946  ac_ct_DSYMUTIL=$DSYMUTIL
15947  # Extract the first word of "dsymutil", so it can be a program name with args.
15948set dummy dsymutil; ac_word=$2
15949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15950$as_echo_n "checking for $ac_word... " >&6; }
15951if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
15952  $as_echo_n "(cached) " >&6
15953else
15954  if test -n "$ac_ct_DSYMUTIL"; then
15955  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
15956else
15957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15958for as_dir in $PATH
15959do
15960  IFS=$as_save_IFS
15961  test -z "$as_dir" && as_dir=.
15962    for ac_exec_ext in '' $ac_executable_extensions; do
15963  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15964    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
15965    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15966    break 2
15967  fi
15968done
15969  done
15970IFS=$as_save_IFS
15971
15972fi
15973fi
15974ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
15975if test -n "$ac_ct_DSYMUTIL"; then
15976  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
15977$as_echo "$ac_ct_DSYMUTIL" >&6; }
15978else
15979  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15980$as_echo "no" >&6; }
15981fi
15982
15983  if test "x$ac_ct_DSYMUTIL" = x; then
15984    DSYMUTIL=":"
15985  else
15986    case $cross_compiling:$ac_tool_warned in
15987yes:)
15988{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15989$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15990ac_tool_warned=yes ;;
15991esac
15992    DSYMUTIL=$ac_ct_DSYMUTIL
15993  fi
15994else
15995  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
15996fi
15997
15998    if test -n "$ac_tool_prefix"; then
15999  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
16000set dummy ${ac_tool_prefix}nmedit; ac_word=$2
16001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16002$as_echo_n "checking for $ac_word... " >&6; }
16003if ${ac_cv_prog_NMEDIT+:} false; then :
16004  $as_echo_n "(cached) " >&6
16005else
16006  if test -n "$NMEDIT"; then
16007  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
16008else
16009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16010for as_dir in $PATH
16011do
16012  IFS=$as_save_IFS
16013  test -z "$as_dir" && as_dir=.
16014    for ac_exec_ext in '' $ac_executable_extensions; do
16015  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16016    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
16017    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16018    break 2
16019  fi
16020done
16021  done
16022IFS=$as_save_IFS
16023
16024fi
16025fi
16026NMEDIT=$ac_cv_prog_NMEDIT
16027if test -n "$NMEDIT"; then
16028  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
16029$as_echo "$NMEDIT" >&6; }
16030else
16031  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16032$as_echo "no" >&6; }
16033fi
16034
16035
16036fi
16037if test -z "$ac_cv_prog_NMEDIT"; then
16038  ac_ct_NMEDIT=$NMEDIT
16039  # Extract the first word of "nmedit", so it can be a program name with args.
16040set dummy nmedit; ac_word=$2
16041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16042$as_echo_n "checking for $ac_word... " >&6; }
16043if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
16044  $as_echo_n "(cached) " >&6
16045else
16046  if test -n "$ac_ct_NMEDIT"; then
16047  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
16048else
16049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16050for as_dir in $PATH
16051do
16052  IFS=$as_save_IFS
16053  test -z "$as_dir" && as_dir=.
16054    for ac_exec_ext in '' $ac_executable_extensions; do
16055  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16056    ac_cv_prog_ac_ct_NMEDIT="nmedit"
16057    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16058    break 2
16059  fi
16060done
16061  done
16062IFS=$as_save_IFS
16063
16064fi
16065fi
16066ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
16067if test -n "$ac_ct_NMEDIT"; then
16068  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
16069$as_echo "$ac_ct_NMEDIT" >&6; }
16070else
16071  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16072$as_echo "no" >&6; }
16073fi
16074
16075  if test "x$ac_ct_NMEDIT" = x; then
16076    NMEDIT=":"
16077  else
16078    case $cross_compiling:$ac_tool_warned in
16079yes:)
16080{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16081$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16082ac_tool_warned=yes ;;
16083esac
16084    NMEDIT=$ac_ct_NMEDIT
16085  fi
16086else
16087  NMEDIT="$ac_cv_prog_NMEDIT"
16088fi
16089
16090    if test -n "$ac_tool_prefix"; then
16091  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
16092set dummy ${ac_tool_prefix}lipo; ac_word=$2
16093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16094$as_echo_n "checking for $ac_word... " >&6; }
16095if ${ac_cv_prog_LIPO+:} false; then :
16096  $as_echo_n "(cached) " >&6
16097else
16098  if test -n "$LIPO"; then
16099  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
16100else
16101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16102for as_dir in $PATH
16103do
16104  IFS=$as_save_IFS
16105  test -z "$as_dir" && as_dir=.
16106    for ac_exec_ext in '' $ac_executable_extensions; do
16107  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16108    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
16109    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16110    break 2
16111  fi
16112done
16113  done
16114IFS=$as_save_IFS
16115
16116fi
16117fi
16118LIPO=$ac_cv_prog_LIPO
16119if test -n "$LIPO"; then
16120  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
16121$as_echo "$LIPO" >&6; }
16122else
16123  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16124$as_echo "no" >&6; }
16125fi
16126
16127
16128fi
16129if test -z "$ac_cv_prog_LIPO"; then
16130  ac_ct_LIPO=$LIPO
16131  # Extract the first word of "lipo", so it can be a program name with args.
16132set dummy lipo; ac_word=$2
16133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16134$as_echo_n "checking for $ac_word... " >&6; }
16135if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
16136  $as_echo_n "(cached) " >&6
16137else
16138  if test -n "$ac_ct_LIPO"; then
16139  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
16140else
16141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16142for as_dir in $PATH
16143do
16144  IFS=$as_save_IFS
16145  test -z "$as_dir" && as_dir=.
16146    for ac_exec_ext in '' $ac_executable_extensions; do
16147  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16148    ac_cv_prog_ac_ct_LIPO="lipo"
16149    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16150    break 2
16151  fi
16152done
16153  done
16154IFS=$as_save_IFS
16155
16156fi
16157fi
16158ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
16159if test -n "$ac_ct_LIPO"; then
16160  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
16161$as_echo "$ac_ct_LIPO" >&6; }
16162else
16163  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16164$as_echo "no" >&6; }
16165fi
16166
16167  if test "x$ac_ct_LIPO" = x; then
16168    LIPO=":"
16169  else
16170    case $cross_compiling:$ac_tool_warned in
16171yes:)
16172{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16173$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16174ac_tool_warned=yes ;;
16175esac
16176    LIPO=$ac_ct_LIPO
16177  fi
16178else
16179  LIPO="$ac_cv_prog_LIPO"
16180fi
16181
16182    if test -n "$ac_tool_prefix"; then
16183  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
16184set dummy ${ac_tool_prefix}otool; ac_word=$2
16185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16186$as_echo_n "checking for $ac_word... " >&6; }
16187if ${ac_cv_prog_OTOOL+:} false; then :
16188  $as_echo_n "(cached) " >&6
16189else
16190  if test -n "$OTOOL"; then
16191  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
16192else
16193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16194for as_dir in $PATH
16195do
16196  IFS=$as_save_IFS
16197  test -z "$as_dir" && as_dir=.
16198    for ac_exec_ext in '' $ac_executable_extensions; do
16199  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16200    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
16201    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16202    break 2
16203  fi
16204done
16205  done
16206IFS=$as_save_IFS
16207
16208fi
16209fi
16210OTOOL=$ac_cv_prog_OTOOL
16211if test -n "$OTOOL"; then
16212  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
16213$as_echo "$OTOOL" >&6; }
16214else
16215  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16216$as_echo "no" >&6; }
16217fi
16218
16219
16220fi
16221if test -z "$ac_cv_prog_OTOOL"; then
16222  ac_ct_OTOOL=$OTOOL
16223  # Extract the first word of "otool", so it can be a program name with args.
16224set dummy otool; ac_word=$2
16225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16226$as_echo_n "checking for $ac_word... " >&6; }
16227if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
16228  $as_echo_n "(cached) " >&6
16229else
16230  if test -n "$ac_ct_OTOOL"; then
16231  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
16232else
16233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16234for as_dir in $PATH
16235do
16236  IFS=$as_save_IFS
16237  test -z "$as_dir" && as_dir=.
16238    for ac_exec_ext in '' $ac_executable_extensions; do
16239  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16240    ac_cv_prog_ac_ct_OTOOL="otool"
16241    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16242    break 2
16243  fi
16244done
16245  done
16246IFS=$as_save_IFS
16247
16248fi
16249fi
16250ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
16251if test -n "$ac_ct_OTOOL"; then
16252  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
16253$as_echo "$ac_ct_OTOOL" >&6; }
16254else
16255  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16256$as_echo "no" >&6; }
16257fi
16258
16259  if test "x$ac_ct_OTOOL" = x; then
16260    OTOOL=":"
16261  else
16262    case $cross_compiling:$ac_tool_warned in
16263yes:)
16264{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16265$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16266ac_tool_warned=yes ;;
16267esac
16268    OTOOL=$ac_ct_OTOOL
16269  fi
16270else
16271  OTOOL="$ac_cv_prog_OTOOL"
16272fi
16273
16274    if test -n "$ac_tool_prefix"; then
16275  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
16276set dummy ${ac_tool_prefix}otool64; ac_word=$2
16277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16278$as_echo_n "checking for $ac_word... " >&6; }
16279if ${ac_cv_prog_OTOOL64+:} false; then :
16280  $as_echo_n "(cached) " >&6
16281else
16282  if test -n "$OTOOL64"; then
16283  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
16284else
16285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16286for as_dir in $PATH
16287do
16288  IFS=$as_save_IFS
16289  test -z "$as_dir" && as_dir=.
16290    for ac_exec_ext in '' $ac_executable_extensions; do
16291  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16292    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
16293    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16294    break 2
16295  fi
16296done
16297  done
16298IFS=$as_save_IFS
16299
16300fi
16301fi
16302OTOOL64=$ac_cv_prog_OTOOL64
16303if test -n "$OTOOL64"; then
16304  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
16305$as_echo "$OTOOL64" >&6; }
16306else
16307  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16308$as_echo "no" >&6; }
16309fi
16310
16311
16312fi
16313if test -z "$ac_cv_prog_OTOOL64"; then
16314  ac_ct_OTOOL64=$OTOOL64
16315  # Extract the first word of "otool64", so it can be a program name with args.
16316set dummy otool64; ac_word=$2
16317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16318$as_echo_n "checking for $ac_word... " >&6; }
16319if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
16320  $as_echo_n "(cached) " >&6
16321else
16322  if test -n "$ac_ct_OTOOL64"; then
16323  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
16324else
16325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16326for as_dir in $PATH
16327do
16328  IFS=$as_save_IFS
16329  test -z "$as_dir" && as_dir=.
16330    for ac_exec_ext in '' $ac_executable_extensions; do
16331  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16332    ac_cv_prog_ac_ct_OTOOL64="otool64"
16333    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16334    break 2
16335  fi
16336done
16337  done
16338IFS=$as_save_IFS
16339
16340fi
16341fi
16342ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
16343if test -n "$ac_ct_OTOOL64"; then
16344  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
16345$as_echo "$ac_ct_OTOOL64" >&6; }
16346else
16347  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16348$as_echo "no" >&6; }
16349fi
16350
16351  if test "x$ac_ct_OTOOL64" = x; then
16352    OTOOL64=":"
16353  else
16354    case $cross_compiling:$ac_tool_warned in
16355yes:)
16356{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16357$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16358ac_tool_warned=yes ;;
16359esac
16360    OTOOL64=$ac_ct_OTOOL64
16361  fi
16362else
16363  OTOOL64="$ac_cv_prog_OTOOL64"
16364fi
16365
16366
16367
16368
16369
16370
16371
16372
16373
16374
16375
16376
16377
16378
16379
16380
16381
16382
16383
16384
16385
16386
16387
16388
16389
16390
16391
16392    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
16393$as_echo_n "checking for -single_module linker flag... " >&6; }
16394if ${lt_cv_apple_cc_single_mod+:} false; then :
16395  $as_echo_n "(cached) " >&6
16396else
16397  lt_cv_apple_cc_single_mod=no
16398      if test -z "$LT_MULTI_MODULE"; then
16399	# By default we will add the -single_module flag. You can override
16400	# by either setting the environment variable LT_MULTI_MODULE
16401	# non-empty at configure time, or by adding -multi_module to the
16402	# link flags.
16403	rm -rf libconftest.dylib*
16404	echo "int foo(void){return 1;}" > conftest.c
16405	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
16406-dynamiclib -Wl,-single_module conftest.c" >&5
16407	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
16408	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
16409        _lt_result=$?
16410	# If there is a non-empty error log, and "single_module"
16411	# appears in it, assume the flag caused a linker warning
16412        if test -s conftest.err && $GREP single_module conftest.err; then
16413	  cat conftest.err >&5
16414	# Otherwise, if the output was created with a 0 exit code from
16415	# the compiler, it worked.
16416	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
16417	  lt_cv_apple_cc_single_mod=yes
16418	else
16419	  cat conftest.err >&5
16420	fi
16421	rm -rf libconftest.dylib*
16422	rm -f conftest.*
16423      fi
16424fi
16425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
16426$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
16427
16428    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
16429$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
16430if ${lt_cv_ld_exported_symbols_list+:} false; then :
16431  $as_echo_n "(cached) " >&6
16432else
16433  lt_cv_ld_exported_symbols_list=no
16434      save_LDFLAGS=$LDFLAGS
16435      echo "_main" > conftest.sym
16436      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
16437      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16438/* end confdefs.h.  */
16439
16440int
16441main ()
16442{
16443
16444  ;
16445  return 0;
16446}
16447_ACEOF
16448if ac_fn_c_try_link "$LINENO"; then :
16449  lt_cv_ld_exported_symbols_list=yes
16450else
16451  lt_cv_ld_exported_symbols_list=no
16452fi
16453rm -f core conftest.err conftest.$ac_objext \
16454    conftest$ac_exeext conftest.$ac_ext
16455	LDFLAGS=$save_LDFLAGS
16456
16457fi
16458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
16459$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
16460
16461    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
16462$as_echo_n "checking for -force_load linker flag... " >&6; }
16463if ${lt_cv_ld_force_load+:} false; then :
16464  $as_echo_n "(cached) " >&6
16465else
16466  lt_cv_ld_force_load=no
16467      cat > conftest.c << _LT_EOF
16468int forced_loaded() { return 2;}
16469_LT_EOF
16470      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
16471      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
16472      echo "$AR cru libconftest.a conftest.o" >&5
16473      $AR cru libconftest.a conftest.o 2>&5
16474      echo "$RANLIB libconftest.a" >&5
16475      $RANLIB libconftest.a 2>&5
16476      cat > conftest.c << _LT_EOF
16477int main() { return 0;}
16478_LT_EOF
16479      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
16480      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
16481      _lt_result=$?
16482      if test -s conftest.err && $GREP force_load conftest.err; then
16483	cat conftest.err >&5
16484      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
16485	lt_cv_ld_force_load=yes
16486      else
16487	cat conftest.err >&5
16488      fi
16489        rm -f conftest.err libconftest.a conftest conftest.c
16490        rm -rf conftest.dSYM
16491
16492fi
16493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
16494$as_echo "$lt_cv_ld_force_load" >&6; }
16495    case $host_os in
16496    rhapsody* | darwin1.[012])
16497      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
16498    darwin1.*)
16499      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
16500    darwin*) # darwin 5.x on
16501      # if running on 10.5 or later, the deployment target defaults
16502      # to the OS version, if on x86, and 10.4, the deployment
16503      # target defaults to 10.4. Don't you love it?
16504      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
16505	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
16506	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
16507	10.[012][,.]*)
16508	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
16509	10.*|11.*)
16510	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
16511      esac
16512    ;;
16513  esac
16514    if test yes = "$lt_cv_apple_cc_single_mod"; then
16515      _lt_dar_single_mod='$single_module'
16516    fi
16517    if test yes = "$lt_cv_ld_exported_symbols_list"; then
16518      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
16519    else
16520      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
16521    fi
16522    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
16523      _lt_dsymutil='~$DSYMUTIL $lib || :'
16524    else
16525      _lt_dsymutil=
16526    fi
16527    ;;
16528  esac
16529
16530# func_munge_path_list VARIABLE PATH
16531# -----------------------------------
16532# VARIABLE is name of variable containing _space_ separated list of
16533# directories to be munged by the contents of PATH, which is string
16534# having a format:
16535# "DIR[:DIR]:"
16536#       string "DIR[ DIR]" will be prepended to VARIABLE
16537# ":DIR[:DIR]"
16538#       string "DIR[ DIR]" will be appended to VARIABLE
16539# "DIRP[:DIRP]::[DIRA:]DIRA"
16540#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
16541#       "DIRA[ DIRA]" will be appended to VARIABLE
16542# "DIR[:DIR]"
16543#       VARIABLE will be replaced by "DIR[ DIR]"
16544func_munge_path_list ()
16545{
16546    case x$2 in
16547    x)
16548        ;;
16549    *:)
16550        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
16551        ;;
16552    x:*)
16553        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
16554        ;;
16555    *::*)
16556        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
16557        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
16558        ;;
16559    *)
16560        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
16561        ;;
16562    esac
16563}
16564
16565for ac_header in dlfcn.h
16566do :
16567  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
16568"
16569if test "x$ac_cv_header_dlfcn_h" = xyes; then :
16570  cat >>confdefs.h <<_ACEOF
16571#define HAVE_DLFCN_H 1
16572_ACEOF
16573
16574fi
16575
16576done
16577
16578
16579
16580
16581
16582# Set options
16583# Check whether --enable-static was given.
16584if test "${enable_static+set}" = set; then :
16585  enableval=$enable_static; p=${PACKAGE-default}
16586    case $enableval in
16587    yes) enable_static=yes ;;
16588    no) enable_static=no ;;
16589    *)
16590     enable_static=no
16591      # Look at the argument we got.  We use all the common list separators.
16592      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
16593      for pkg in $enableval; do
16594	IFS=$lt_save_ifs
16595	if test "X$pkg" = "X$p"; then
16596	  enable_static=yes
16597	fi
16598      done
16599      IFS=$lt_save_ifs
16600      ;;
16601    esac
16602else
16603  enable_static=no
16604fi
16605
16606
16607
16608
16609
16610
16611
16612enable_win32_dll=yes
16613
16614case $host in
16615*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
16616  if test -n "$ac_tool_prefix"; then
16617  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
16618set dummy ${ac_tool_prefix}as; ac_word=$2
16619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16620$as_echo_n "checking for $ac_word... " >&6; }
16621if ${ac_cv_prog_AS+:} false; then :
16622  $as_echo_n "(cached) " >&6
16623else
16624  if test -n "$AS"; then
16625  ac_cv_prog_AS="$AS" # Let the user override the test.
16626else
16627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16628for as_dir in $PATH
16629do
16630  IFS=$as_save_IFS
16631  test -z "$as_dir" && as_dir=.
16632    for ac_exec_ext in '' $ac_executable_extensions; do
16633  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16634    ac_cv_prog_AS="${ac_tool_prefix}as"
16635    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16636    break 2
16637  fi
16638done
16639  done
16640IFS=$as_save_IFS
16641
16642fi
16643fi
16644AS=$ac_cv_prog_AS
16645if test -n "$AS"; then
16646  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
16647$as_echo "$AS" >&6; }
16648else
16649  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16650$as_echo "no" >&6; }
16651fi
16652
16653
16654fi
16655if test -z "$ac_cv_prog_AS"; then
16656  ac_ct_AS=$AS
16657  # Extract the first word of "as", so it can be a program name with args.
16658set dummy as; ac_word=$2
16659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16660$as_echo_n "checking for $ac_word... " >&6; }
16661if ${ac_cv_prog_ac_ct_AS+:} false; then :
16662  $as_echo_n "(cached) " >&6
16663else
16664  if test -n "$ac_ct_AS"; then
16665  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
16666else
16667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16668for as_dir in $PATH
16669do
16670  IFS=$as_save_IFS
16671  test -z "$as_dir" && as_dir=.
16672    for ac_exec_ext in '' $ac_executable_extensions; do
16673  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16674    ac_cv_prog_ac_ct_AS="as"
16675    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16676    break 2
16677  fi
16678done
16679  done
16680IFS=$as_save_IFS
16681
16682fi
16683fi
16684ac_ct_AS=$ac_cv_prog_ac_ct_AS
16685if test -n "$ac_ct_AS"; then
16686  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
16687$as_echo "$ac_ct_AS" >&6; }
16688else
16689  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16690$as_echo "no" >&6; }
16691fi
16692
16693  if test "x$ac_ct_AS" = x; then
16694    AS="false"
16695  else
16696    case $cross_compiling:$ac_tool_warned in
16697yes:)
16698{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16699$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16700ac_tool_warned=yes ;;
16701esac
16702    AS=$ac_ct_AS
16703  fi
16704else
16705  AS="$ac_cv_prog_AS"
16706fi
16707
16708  if test -n "$ac_tool_prefix"; then
16709  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
16710set dummy ${ac_tool_prefix}dlltool; ac_word=$2
16711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16712$as_echo_n "checking for $ac_word... " >&6; }
16713if ${ac_cv_prog_DLLTOOL+:} false; then :
16714  $as_echo_n "(cached) " >&6
16715else
16716  if test -n "$DLLTOOL"; then
16717  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
16718else
16719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16720for as_dir in $PATH
16721do
16722  IFS=$as_save_IFS
16723  test -z "$as_dir" && as_dir=.
16724    for ac_exec_ext in '' $ac_executable_extensions; do
16725  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16726    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
16727    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16728    break 2
16729  fi
16730done
16731  done
16732IFS=$as_save_IFS
16733
16734fi
16735fi
16736DLLTOOL=$ac_cv_prog_DLLTOOL
16737if test -n "$DLLTOOL"; then
16738  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
16739$as_echo "$DLLTOOL" >&6; }
16740else
16741  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16742$as_echo "no" >&6; }
16743fi
16744
16745
16746fi
16747if test -z "$ac_cv_prog_DLLTOOL"; then
16748  ac_ct_DLLTOOL=$DLLTOOL
16749  # Extract the first word of "dlltool", so it can be a program name with args.
16750set dummy dlltool; ac_word=$2
16751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16752$as_echo_n "checking for $ac_word... " >&6; }
16753if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
16754  $as_echo_n "(cached) " >&6
16755else
16756  if test -n "$ac_ct_DLLTOOL"; then
16757  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
16758else
16759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16760for as_dir in $PATH
16761do
16762  IFS=$as_save_IFS
16763  test -z "$as_dir" && as_dir=.
16764    for ac_exec_ext in '' $ac_executable_extensions; do
16765  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16766    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
16767    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16768    break 2
16769  fi
16770done
16771  done
16772IFS=$as_save_IFS
16773
16774fi
16775fi
16776ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
16777if test -n "$ac_ct_DLLTOOL"; then
16778  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
16779$as_echo "$ac_ct_DLLTOOL" >&6; }
16780else
16781  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16782$as_echo "no" >&6; }
16783fi
16784
16785  if test "x$ac_ct_DLLTOOL" = x; then
16786    DLLTOOL="false"
16787  else
16788    case $cross_compiling:$ac_tool_warned in
16789yes:)
16790{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16791$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16792ac_tool_warned=yes ;;
16793esac
16794    DLLTOOL=$ac_ct_DLLTOOL
16795  fi
16796else
16797  DLLTOOL="$ac_cv_prog_DLLTOOL"
16798fi
16799
16800  if test -n "$ac_tool_prefix"; then
16801  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
16802set dummy ${ac_tool_prefix}objdump; ac_word=$2
16803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16804$as_echo_n "checking for $ac_word... " >&6; }
16805if ${ac_cv_prog_OBJDUMP+:} false; then :
16806  $as_echo_n "(cached) " >&6
16807else
16808  if test -n "$OBJDUMP"; then
16809  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
16810else
16811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16812for as_dir in $PATH
16813do
16814  IFS=$as_save_IFS
16815  test -z "$as_dir" && as_dir=.
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_OBJDUMP="${ac_tool_prefix}objdump"
16819    $as_echo "$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
16828OBJDUMP=$ac_cv_prog_OBJDUMP
16829if test -n "$OBJDUMP"; then
16830  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
16831$as_echo "$OBJDUMP" >&6; }
16832else
16833  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16834$as_echo "no" >&6; }
16835fi
16836
16837
16838fi
16839if test -z "$ac_cv_prog_OBJDUMP"; then
16840  ac_ct_OBJDUMP=$OBJDUMP
16841  # Extract the first word of "objdump", so it can be a program name with args.
16842set dummy objdump; ac_word=$2
16843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16844$as_echo_n "checking for $ac_word... " >&6; }
16845if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
16846  $as_echo_n "(cached) " >&6
16847else
16848  if test -n "$ac_ct_OBJDUMP"; then
16849  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
16850else
16851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16852for as_dir in $PATH
16853do
16854  IFS=$as_save_IFS
16855  test -z "$as_dir" && as_dir=.
16856    for ac_exec_ext in '' $ac_executable_extensions; do
16857  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16858    ac_cv_prog_ac_ct_OBJDUMP="objdump"
16859    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16860    break 2
16861  fi
16862done
16863  done
16864IFS=$as_save_IFS
16865
16866fi
16867fi
16868ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
16869if test -n "$ac_ct_OBJDUMP"; then
16870  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
16871$as_echo "$ac_ct_OBJDUMP" >&6; }
16872else
16873  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16874$as_echo "no" >&6; }
16875fi
16876
16877  if test "x$ac_ct_OBJDUMP" = x; then
16878    OBJDUMP="false"
16879  else
16880    case $cross_compiling:$ac_tool_warned in
16881yes:)
16882{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16883$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16884ac_tool_warned=yes ;;
16885esac
16886    OBJDUMP=$ac_ct_OBJDUMP
16887  fi
16888else
16889  OBJDUMP="$ac_cv_prog_OBJDUMP"
16890fi
16891
16892  ;;
16893esac
16894
16895test -z "$AS" && AS=as
16896
16897
16898
16899
16900
16901test -z "$DLLTOOL" && DLLTOOL=dlltool
16902
16903
16904
16905
16906
16907test -z "$OBJDUMP" && OBJDUMP=objdump
16908
16909
16910
16911
16912
16913
16914
16915        enable_dlopen=no
16916
16917
16918
16919            # Check whether --enable-shared was given.
16920if test "${enable_shared+set}" = set; then :
16921  enableval=$enable_shared; p=${PACKAGE-default}
16922    case $enableval in
16923    yes) enable_shared=yes ;;
16924    no) enable_shared=no ;;
16925    *)
16926      enable_shared=no
16927      # Look at the argument we got.  We use all the common list separators.
16928      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
16929      for pkg in $enableval; do
16930	IFS=$lt_save_ifs
16931	if test "X$pkg" = "X$p"; then
16932	  enable_shared=yes
16933	fi
16934      done
16935      IFS=$lt_save_ifs
16936      ;;
16937    esac
16938else
16939  enable_shared=yes
16940fi
16941
16942
16943
16944
16945
16946
16947
16948
16949
16950
16951
16952# Check whether --with-pic was given.
16953if test "${with_pic+set}" = set; then :
16954  withval=$with_pic; lt_p=${PACKAGE-default}
16955    case $withval in
16956    yes|no) pic_mode=$withval ;;
16957    *)
16958      pic_mode=default
16959      # Look at the argument we got.  We use all the common list separators.
16960      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
16961      for lt_pkg in $withval; do
16962	IFS=$lt_save_ifs
16963	if test "X$lt_pkg" = "X$lt_p"; then
16964	  pic_mode=yes
16965	fi
16966      done
16967      IFS=$lt_save_ifs
16968      ;;
16969    esac
16970else
16971  pic_mode=default
16972fi
16973
16974
16975
16976
16977
16978
16979
16980
16981  # Check whether --enable-fast-install was given.
16982if test "${enable_fast_install+set}" = set; then :
16983  enableval=$enable_fast_install; p=${PACKAGE-default}
16984    case $enableval in
16985    yes) enable_fast_install=yes ;;
16986    no) enable_fast_install=no ;;
16987    *)
16988      enable_fast_install=no
16989      # Look at the argument we got.  We use all the common list separators.
16990      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
16991      for pkg in $enableval; do
16992	IFS=$lt_save_ifs
16993	if test "X$pkg" = "X$p"; then
16994	  enable_fast_install=yes
16995	fi
16996      done
16997      IFS=$lt_save_ifs
16998      ;;
16999    esac
17000else
17001  enable_fast_install=yes
17002fi
17003
17004
17005
17006
17007
17008
17009
17010
17011  shared_archive_member_spec=
17012case $host,$enable_shared in
17013power*-*-aix[5-9]*,yes)
17014  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
17015$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
17016
17017# Check whether --with-aix-soname was given.
17018if test "${with_aix_soname+set}" = set; then :
17019  withval=$with_aix_soname; case $withval in
17020    aix|svr4|both)
17021      ;;
17022    *)
17023      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
17024      ;;
17025    esac
17026    lt_cv_with_aix_soname=$with_aix_soname
17027else
17028  if ${lt_cv_with_aix_soname+:} false; then :
17029  $as_echo_n "(cached) " >&6
17030else
17031  lt_cv_with_aix_soname=aix
17032fi
17033
17034    with_aix_soname=$lt_cv_with_aix_soname
17035fi
17036
17037  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
17038$as_echo "$with_aix_soname" >&6; }
17039  if test aix != "$with_aix_soname"; then
17040    # For the AIX way of multilib, we name the shared archive member
17041    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
17042    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
17043    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
17044    # the AIX toolchain works better with OBJECT_MODE set (default 32).
17045    if test 64 = "${OBJECT_MODE-32}"; then
17046      shared_archive_member_spec=shr_64
17047    else
17048      shared_archive_member_spec=shr
17049    fi
17050  fi
17051  ;;
17052*)
17053  with_aix_soname=aix
17054  ;;
17055esac
17056
17057
17058
17059
17060
17061
17062
17063
17064
17065
17066# This can be used to rebuild libtool when needed
17067LIBTOOL_DEPS=$ltmain
17068
17069# Always use our own libtool.
17070LIBTOOL='$(SHELL) $(top_builddir)/libtool'
17071
17072
17073
17074
17075
17076
17077
17078
17079
17080
17081
17082
17083
17084
17085
17086
17087
17088
17089
17090
17091
17092
17093
17094
17095
17096
17097
17098
17099
17100
17101test -z "$LN_S" && LN_S="ln -s"
17102
17103
17104
17105
17106
17107
17108
17109
17110
17111
17112
17113
17114
17115
17116if test -n "${ZSH_VERSION+set}"; then
17117   setopt NO_GLOB_SUBST
17118fi
17119
17120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
17121$as_echo_n "checking for objdir... " >&6; }
17122if ${lt_cv_objdir+:} false; then :
17123  $as_echo_n "(cached) " >&6
17124else
17125  rm -f .libs 2>/dev/null
17126mkdir .libs 2>/dev/null
17127if test -d .libs; then
17128  lt_cv_objdir=.libs
17129else
17130  # MS-DOS does not allow filenames that begin with a dot.
17131  lt_cv_objdir=_libs
17132fi
17133rmdir .libs 2>/dev/null
17134fi
17135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
17136$as_echo "$lt_cv_objdir" >&6; }
17137objdir=$lt_cv_objdir
17138
17139
17140
17141
17142
17143cat >>confdefs.h <<_ACEOF
17144#define LT_OBJDIR "$lt_cv_objdir/"
17145_ACEOF
17146
17147
17148
17149
17150case $host_os in
17151aix3*)
17152  # AIX sometimes has problems with the GCC collect2 program.  For some
17153  # reason, if we set the COLLECT_NAMES environment variable, the problems
17154  # vanish in a puff of smoke.
17155  if test set != "${COLLECT_NAMES+set}"; then
17156    COLLECT_NAMES=
17157    export COLLECT_NAMES
17158  fi
17159  ;;
17160esac
17161
17162# Global variables:
17163ofile=libtool
17164can_build_shared=yes
17165
17166# All known linkers require a '.a' archive for static linking (except MSVC,
17167# which needs '.lib').
17168libext=a
17169
17170with_gnu_ld=$lt_cv_prog_gnu_ld
17171
17172old_CC=$CC
17173old_CFLAGS=$CFLAGS
17174
17175# Set sane defaults for various variables
17176test -z "$CC" && CC=cc
17177test -z "$LTCC" && LTCC=$CC
17178test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
17179test -z "$LD" && LD=ld
17180test -z "$ac_objext" && ac_objext=o
17181
17182func_cc_basename $compiler
17183cc_basename=$func_cc_basename_result
17184
17185
17186# Only perform the check for file, if the check method requires it
17187test -z "$MAGIC_CMD" && MAGIC_CMD=file
17188case $deplibs_check_method in
17189file_magic*)
17190  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
17191    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
17192$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
17193if ${lt_cv_path_MAGIC_CMD+:} false; then :
17194  $as_echo_n "(cached) " >&6
17195else
17196  case $MAGIC_CMD in
17197[\\/*] |  ?:[\\/]*)
17198  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
17199  ;;
17200*)
17201  lt_save_MAGIC_CMD=$MAGIC_CMD
17202  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
17203  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
17204  for ac_dir in $ac_dummy; do
17205    IFS=$lt_save_ifs
17206    test -z "$ac_dir" && ac_dir=.
17207    if test -f "$ac_dir/${ac_tool_prefix}file"; then
17208      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
17209      if test -n "$file_magic_test_file"; then
17210	case $deplibs_check_method in
17211	"file_magic "*)
17212	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
17213	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
17214	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
17215	    $EGREP "$file_magic_regex" > /dev/null; then
17216	    :
17217	  else
17218	    cat <<_LT_EOF 1>&2
17219
17220*** Warning: the command libtool uses to detect shared libraries,
17221*** $file_magic_cmd, produces output that libtool cannot recognize.
17222*** The result is that libtool may fail to recognize shared libraries
17223*** as such.  This will affect the creation of libtool libraries that
17224*** depend on shared libraries, but programs linked with such libtool
17225*** libraries will work regardless of this problem.  Nevertheless, you
17226*** may want to report the problem to your system manager and/or to
17227*** bug-libtool@gnu.org
17228
17229_LT_EOF
17230	  fi ;;
17231	esac
17232      fi
17233      break
17234    fi
17235  done
17236  IFS=$lt_save_ifs
17237  MAGIC_CMD=$lt_save_MAGIC_CMD
17238  ;;
17239esac
17240fi
17241
17242MAGIC_CMD=$lt_cv_path_MAGIC_CMD
17243if test -n "$MAGIC_CMD"; then
17244  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
17245$as_echo "$MAGIC_CMD" >&6; }
17246else
17247  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17248$as_echo "no" >&6; }
17249fi
17250
17251
17252
17253
17254
17255if test -z "$lt_cv_path_MAGIC_CMD"; then
17256  if test -n "$ac_tool_prefix"; then
17257    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
17258$as_echo_n "checking for file... " >&6; }
17259if ${lt_cv_path_MAGIC_CMD+:} false; then :
17260  $as_echo_n "(cached) " >&6
17261else
17262  case $MAGIC_CMD in
17263[\\/*] |  ?:[\\/]*)
17264  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
17265  ;;
17266*)
17267  lt_save_MAGIC_CMD=$MAGIC_CMD
17268  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
17269  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
17270  for ac_dir in $ac_dummy; do
17271    IFS=$lt_save_ifs
17272    test -z "$ac_dir" && ac_dir=.
17273    if test -f "$ac_dir/file"; then
17274      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
17275      if test -n "$file_magic_test_file"; then
17276	case $deplibs_check_method in
17277	"file_magic "*)
17278	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
17279	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
17280	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
17281	    $EGREP "$file_magic_regex" > /dev/null; then
17282	    :
17283	  else
17284	    cat <<_LT_EOF 1>&2
17285
17286*** Warning: the command libtool uses to detect shared libraries,
17287*** $file_magic_cmd, produces output that libtool cannot recognize.
17288*** The result is that libtool may fail to recognize shared libraries
17289*** as such.  This will affect the creation of libtool libraries that
17290*** depend on shared libraries, but programs linked with such libtool
17291*** libraries will work regardless of this problem.  Nevertheless, you
17292*** may want to report the problem to your system manager and/or to
17293*** bug-libtool@gnu.org
17294
17295_LT_EOF
17296	  fi ;;
17297	esac
17298      fi
17299      break
17300    fi
17301  done
17302  IFS=$lt_save_ifs
17303  MAGIC_CMD=$lt_save_MAGIC_CMD
17304  ;;
17305esac
17306fi
17307
17308MAGIC_CMD=$lt_cv_path_MAGIC_CMD
17309if test -n "$MAGIC_CMD"; then
17310  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
17311$as_echo "$MAGIC_CMD" >&6; }
17312else
17313  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17314$as_echo "no" >&6; }
17315fi
17316
17317
17318  else
17319    MAGIC_CMD=:
17320  fi
17321fi
17322
17323  fi
17324  ;;
17325esac
17326
17327# Use C for the default configuration in the libtool script
17328
17329lt_save_CC=$CC
17330ac_ext=c
17331ac_cpp='$CPP $CPPFLAGS'
17332ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17333ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17334ac_compiler_gnu=$ac_cv_c_compiler_gnu
17335
17336
17337# Source file extension for C test sources.
17338ac_ext=c
17339
17340# Object file extension for compiled C test sources.
17341objext=o
17342objext=$objext
17343
17344# Code to be used in simple compile tests
17345lt_simple_compile_test_code="int some_variable = 0;"
17346
17347# Code to be used in simple link tests
17348lt_simple_link_test_code='int main(){return(0);}'
17349
17350
17351
17352
17353
17354
17355
17356# If no C compiler was specified, use CC.
17357LTCC=${LTCC-"$CC"}
17358
17359# If no C compiler flags were specified, use CFLAGS.
17360LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17361
17362# Allow CC to be a program name with arguments.
17363compiler=$CC
17364
17365# Save the default compiler, since it gets overwritten when the other
17366# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
17367compiler_DEFAULT=$CC
17368
17369# save warnings/boilerplate of simple test code
17370ac_outfile=conftest.$ac_objext
17371echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17372eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17373_lt_compiler_boilerplate=`cat conftest.err`
17374$RM conftest*
17375
17376ac_outfile=conftest.$ac_objext
17377echo "$lt_simple_link_test_code" >conftest.$ac_ext
17378eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17379_lt_linker_boilerplate=`cat conftest.err`
17380$RM -r conftest*
17381
17382
17383## CAVEAT EMPTOR:
17384## There is no encapsulation within the following macros, do not change
17385## the running order or otherwise move them around unless you know exactly
17386## what you are doing...
17387if test -n "$compiler"; then
17388
17389lt_prog_compiler_no_builtin_flag=
17390
17391if test yes = "$GCC"; then
17392  case $cc_basename in
17393  nvcc*)
17394    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
17395  *)
17396    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
17397  esac
17398
17399  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17400$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
17401if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
17402  $as_echo_n "(cached) " >&6
17403else
17404  lt_cv_prog_compiler_rtti_exceptions=no
17405   ac_outfile=conftest.$ac_objext
17406   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17407   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
17408   # Insert the option either (1) after the last *FLAGS variable, or
17409   # (2) before a word containing "conftest.", or (3) at the end.
17410   # Note that $ac_compile itself does not contain backslashes and begins
17411   # with a dollar sign (not a hyphen), so the echo should work correctly.
17412   # The option is referenced via a variable to avoid confusing sed.
17413   lt_compile=`echo "$ac_compile" | $SED \
17414   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17415   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17416   -e 's:$: $lt_compiler_flag:'`
17417   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17418   (eval "$lt_compile" 2>conftest.err)
17419   ac_status=$?
17420   cat conftest.err >&5
17421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17422   if (exit $ac_status) && test -s "$ac_outfile"; then
17423     # The compiler can only warn and ignore the option if not recognized
17424     # So say no if there are warnings other than the usual output.
17425     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17426     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17427     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17428       lt_cv_prog_compiler_rtti_exceptions=yes
17429     fi
17430   fi
17431   $RM conftest*
17432
17433fi
17434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17435$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17436
17437if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
17438    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
17439else
17440    :
17441fi
17442
17443fi
17444
17445
17446
17447
17448
17449
17450  lt_prog_compiler_wl=
17451lt_prog_compiler_pic=
17452lt_prog_compiler_static=
17453
17454
17455  if test yes = "$GCC"; then
17456    lt_prog_compiler_wl='-Wl,'
17457    lt_prog_compiler_static='-static'
17458
17459    case $host_os in
17460      aix*)
17461      # All AIX code is PIC.
17462      if test ia64 = "$host_cpu"; then
17463	# AIX 5 now supports IA64 processor
17464	lt_prog_compiler_static='-Bstatic'
17465      fi
17466      lt_prog_compiler_pic='-fPIC'
17467      ;;
17468
17469    amigaos*)
17470      case $host_cpu in
17471      powerpc)
17472            # see comment about AmigaOS4 .so support
17473            lt_prog_compiler_pic='-fPIC'
17474        ;;
17475      m68k)
17476            # FIXME: we need at least 68020 code to build shared libraries, but
17477            # adding the '-m68020' flag to GCC prevents building anything better,
17478            # like '-m68040'.
17479            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
17480        ;;
17481      esac
17482      ;;
17483
17484    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17485      # PIC is the default for these OSes.
17486      ;;
17487
17488    mingw* | cygwin* | pw32* | os2* | cegcc*)
17489      # This hack is so that the source file can tell whether it is being
17490      # built for inclusion in a dll (and should export symbols for example).
17491      # Although the cygwin gcc ignores -fPIC, still need this for old-style
17492      # (--disable-auto-import) libraries
17493      lt_prog_compiler_pic='-DDLL_EXPORT'
17494      case $host_os in
17495      os2*)
17496	lt_prog_compiler_static='$wl-static'
17497	;;
17498      esac
17499      ;;
17500
17501    darwin* | rhapsody*)
17502      # PIC is the default on this platform
17503      # Common symbols not allowed in MH_DYLIB files
17504      lt_prog_compiler_pic='-fno-common'
17505      ;;
17506
17507    haiku*)
17508      # PIC is the default for Haiku.
17509      # The "-static" flag exists, but is broken.
17510      lt_prog_compiler_static=
17511      ;;
17512
17513    hpux*)
17514      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17515      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
17516      # sets the default TLS model and affects inlining.
17517      case $host_cpu in
17518      hppa*64*)
17519	# +Z the default
17520	;;
17521      *)
17522	lt_prog_compiler_pic='-fPIC'
17523	;;
17524      esac
17525      ;;
17526
17527    interix[3-9]*)
17528      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17529      # Instead, we relocate shared libraries at runtime.
17530      ;;
17531
17532    msdosdjgpp*)
17533      # Just because we use GCC doesn't mean we suddenly get shared libraries
17534      # on systems that don't support them.
17535      lt_prog_compiler_can_build_shared=no
17536      enable_shared=no
17537      ;;
17538
17539    *nto* | *qnx*)
17540      # QNX uses GNU C++, but need to define -shared option too, otherwise
17541      # it will coredump.
17542      lt_prog_compiler_pic='-fPIC -shared'
17543      ;;
17544
17545    sysv4*MP*)
17546      if test -d /usr/nec; then
17547	lt_prog_compiler_pic=-Kconform_pic
17548      fi
17549      ;;
17550
17551    *)
17552      lt_prog_compiler_pic='-fPIC'
17553      ;;
17554    esac
17555
17556    case $cc_basename in
17557    nvcc*) # Cuda Compiler Driver 2.2
17558      lt_prog_compiler_wl='-Xlinker '
17559      if test -n "$lt_prog_compiler_pic"; then
17560        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
17561      fi
17562      ;;
17563    esac
17564  else
17565    # PORTME Check for flag to pass linker flags through the system compiler.
17566    case $host_os in
17567    aix*)
17568      lt_prog_compiler_wl='-Wl,'
17569      if test ia64 = "$host_cpu"; then
17570	# AIX 5 now supports IA64 processor
17571	lt_prog_compiler_static='-Bstatic'
17572      else
17573	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
17574      fi
17575      ;;
17576
17577    darwin* | rhapsody*)
17578      # PIC is the default on this platform
17579      # Common symbols not allowed in MH_DYLIB files
17580      lt_prog_compiler_pic='-fno-common'
17581      case $cc_basename in
17582      nagfor*)
17583        # NAG Fortran compiler
17584        lt_prog_compiler_wl='-Wl,-Wl,,'
17585        lt_prog_compiler_pic='-PIC'
17586        lt_prog_compiler_static='-Bstatic'
17587        ;;
17588      esac
17589      ;;
17590
17591    mingw* | cygwin* | pw32* | os2* | cegcc*)
17592      # This hack is so that the source file can tell whether it is being
17593      # built for inclusion in a dll (and should export symbols for example).
17594      lt_prog_compiler_pic='-DDLL_EXPORT'
17595      case $host_os in
17596      os2*)
17597	lt_prog_compiler_static='$wl-static'
17598	;;
17599      esac
17600      ;;
17601
17602    hpux9* | hpux10* | hpux11*)
17603      lt_prog_compiler_wl='-Wl,'
17604      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17605      # not for PA HP-UX.
17606      case $host_cpu in
17607      hppa*64*|ia64*)
17608	# +Z the default
17609	;;
17610      *)
17611	lt_prog_compiler_pic='+Z'
17612	;;
17613      esac
17614      # Is there a better lt_prog_compiler_static that works with the bundled CC?
17615      lt_prog_compiler_static='$wl-a ${wl}archive'
17616      ;;
17617
17618    irix5* | irix6* | nonstopux*)
17619      lt_prog_compiler_wl='-Wl,'
17620      # PIC (with -KPIC) is the default.
17621      lt_prog_compiler_static='-non_shared'
17622      ;;
17623
17624    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17625      case $cc_basename in
17626      # old Intel for x86_64, which still supported -KPIC.
17627      ecc*)
17628	lt_prog_compiler_wl='-Wl,'
17629	lt_prog_compiler_pic='-KPIC'
17630	lt_prog_compiler_static='-static'
17631        ;;
17632      # icc used to be incompatible with GCC.
17633      # ICC 10 doesn't accept -KPIC any more.
17634      icc* | ifort*)
17635	lt_prog_compiler_wl='-Wl,'
17636	lt_prog_compiler_pic='-fPIC'
17637	lt_prog_compiler_static='-static'
17638        ;;
17639      # Lahey Fortran 8.1.
17640      lf95*)
17641	lt_prog_compiler_wl='-Wl,'
17642	lt_prog_compiler_pic='--shared'
17643	lt_prog_compiler_static='--static'
17644	;;
17645      nagfor*)
17646	# NAG Fortran compiler
17647	lt_prog_compiler_wl='-Wl,-Wl,,'
17648	lt_prog_compiler_pic='-PIC'
17649	lt_prog_compiler_static='-Bstatic'
17650	;;
17651      tcc*)
17652	# Fabrice Bellard et al's Tiny C Compiler
17653	lt_prog_compiler_wl='-Wl,'
17654	lt_prog_compiler_pic='-fPIC'
17655	lt_prog_compiler_static='-static'
17656	;;
17657      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
17658        # Portland Group compilers (*not* the Pentium gcc compiler,
17659	# which looks to be a dead project)
17660	lt_prog_compiler_wl='-Wl,'
17661	lt_prog_compiler_pic='-fpic'
17662	lt_prog_compiler_static='-Bstatic'
17663        ;;
17664      ccc*)
17665        lt_prog_compiler_wl='-Wl,'
17666        # All Alpha code is PIC.
17667        lt_prog_compiler_static='-non_shared'
17668        ;;
17669      xl* | bgxl* | bgf* | mpixl*)
17670	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
17671	lt_prog_compiler_wl='-Wl,'
17672	lt_prog_compiler_pic='-qpic'
17673	lt_prog_compiler_static='-qstaticlink'
17674	;;
17675      *)
17676	case `$CC -V 2>&1 | sed 5q` in
17677	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
17678	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
17679	  lt_prog_compiler_pic='-KPIC'
17680	  lt_prog_compiler_static='-Bstatic'
17681	  lt_prog_compiler_wl=''
17682	  ;;
17683	*Sun\ F* | *Sun*Fortran*)
17684	  lt_prog_compiler_pic='-KPIC'
17685	  lt_prog_compiler_static='-Bstatic'
17686	  lt_prog_compiler_wl='-Qoption ld '
17687	  ;;
17688	*Sun\ C*)
17689	  # Sun C 5.9
17690	  lt_prog_compiler_pic='-KPIC'
17691	  lt_prog_compiler_static='-Bstatic'
17692	  lt_prog_compiler_wl='-Wl,'
17693	  ;;
17694        *Intel*\ [CF]*Compiler*)
17695	  lt_prog_compiler_wl='-Wl,'
17696	  lt_prog_compiler_pic='-fPIC'
17697	  lt_prog_compiler_static='-static'
17698	  ;;
17699	*Portland\ Group*)
17700	  lt_prog_compiler_wl='-Wl,'
17701	  lt_prog_compiler_pic='-fpic'
17702	  lt_prog_compiler_static='-Bstatic'
17703	  ;;
17704	esac
17705	;;
17706      esac
17707      ;;
17708
17709    newsos6)
17710      lt_prog_compiler_pic='-KPIC'
17711      lt_prog_compiler_static='-Bstatic'
17712      ;;
17713
17714    *nto* | *qnx*)
17715      # QNX uses GNU C++, but need to define -shared option too, otherwise
17716      # it will coredump.
17717      lt_prog_compiler_pic='-fPIC -shared'
17718      ;;
17719
17720    osf3* | osf4* | osf5*)
17721      lt_prog_compiler_wl='-Wl,'
17722      # All OSF/1 code is PIC.
17723      lt_prog_compiler_static='-non_shared'
17724      ;;
17725
17726    rdos*)
17727      lt_prog_compiler_static='-non_shared'
17728      ;;
17729
17730    solaris*)
17731      lt_prog_compiler_pic='-KPIC'
17732      lt_prog_compiler_static='-Bstatic'
17733      case $cc_basename in
17734      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
17735	lt_prog_compiler_wl='-Qoption ld ';;
17736      *)
17737	lt_prog_compiler_wl='-Wl,';;
17738      esac
17739      ;;
17740
17741    sunos4*)
17742      lt_prog_compiler_wl='-Qoption ld '
17743      lt_prog_compiler_pic='-PIC'
17744      lt_prog_compiler_static='-Bstatic'
17745      ;;
17746
17747    sysv4 | sysv4.2uw2* | sysv4.3*)
17748      lt_prog_compiler_wl='-Wl,'
17749      lt_prog_compiler_pic='-KPIC'
17750      lt_prog_compiler_static='-Bstatic'
17751      ;;
17752
17753    sysv4*MP*)
17754      if test -d /usr/nec; then
17755	lt_prog_compiler_pic='-Kconform_pic'
17756	lt_prog_compiler_static='-Bstatic'
17757      fi
17758      ;;
17759
17760    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17761      lt_prog_compiler_wl='-Wl,'
17762      lt_prog_compiler_pic='-KPIC'
17763      lt_prog_compiler_static='-Bstatic'
17764      ;;
17765
17766    unicos*)
17767      lt_prog_compiler_wl='-Wl,'
17768      lt_prog_compiler_can_build_shared=no
17769      ;;
17770
17771    uts4*)
17772      lt_prog_compiler_pic='-pic'
17773      lt_prog_compiler_static='-Bstatic'
17774      ;;
17775
17776    *)
17777      lt_prog_compiler_can_build_shared=no
17778      ;;
17779    esac
17780  fi
17781
17782case $host_os in
17783  # For platforms that do not support PIC, -DPIC is meaningless:
17784  *djgpp*)
17785    lt_prog_compiler_pic=
17786    ;;
17787  *)
17788    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
17789    ;;
17790esac
17791
17792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
17793$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17794if ${lt_cv_prog_compiler_pic+:} false; then :
17795  $as_echo_n "(cached) " >&6
17796else
17797  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
17798fi
17799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
17800$as_echo "$lt_cv_prog_compiler_pic" >&6; }
17801lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
17802
17803#
17804# Check to make sure the PIC flag actually works.
17805#
17806if test -n "$lt_prog_compiler_pic"; then
17807  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
17808$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
17809if ${lt_cv_prog_compiler_pic_works+:} false; then :
17810  $as_echo_n "(cached) " >&6
17811else
17812  lt_cv_prog_compiler_pic_works=no
17813   ac_outfile=conftest.$ac_objext
17814   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17815   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
17816   # Insert the option either (1) after the last *FLAGS variable, or
17817   # (2) before a word containing "conftest.", or (3) at the end.
17818   # Note that $ac_compile itself does not contain backslashes and begins
17819   # with a dollar sign (not a hyphen), so the echo should work correctly.
17820   # The option is referenced via a variable to avoid confusing sed.
17821   lt_compile=`echo "$ac_compile" | $SED \
17822   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17823   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17824   -e 's:$: $lt_compiler_flag:'`
17825   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17826   (eval "$lt_compile" 2>conftest.err)
17827   ac_status=$?
17828   cat conftest.err >&5
17829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17830   if (exit $ac_status) && test -s "$ac_outfile"; then
17831     # The compiler can only warn and ignore the option if not recognized
17832     # So say no if there are warnings other than the usual output.
17833     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17834     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17835     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17836       lt_cv_prog_compiler_pic_works=yes
17837     fi
17838   fi
17839   $RM conftest*
17840
17841fi
17842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
17843$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
17844
17845if test yes = "$lt_cv_prog_compiler_pic_works"; then
17846    case $lt_prog_compiler_pic in
17847     "" | " "*) ;;
17848     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
17849     esac
17850else
17851    lt_prog_compiler_pic=
17852     lt_prog_compiler_can_build_shared=no
17853fi
17854
17855fi
17856
17857
17858
17859
17860
17861
17862
17863
17864
17865
17866
17867#
17868# Check to make sure the static flag actually works.
17869#
17870wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
17871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17872$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17873if ${lt_cv_prog_compiler_static_works+:} false; then :
17874  $as_echo_n "(cached) " >&6
17875else
17876  lt_cv_prog_compiler_static_works=no
17877   save_LDFLAGS=$LDFLAGS
17878   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17879   echo "$lt_simple_link_test_code" > conftest.$ac_ext
17880   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17881     # The linker can only warn and ignore the option if not recognized
17882     # So say no if there are warnings
17883     if test -s conftest.err; then
17884       # Append any errors to the config.log.
17885       cat conftest.err 1>&5
17886       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17887       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17888       if diff conftest.exp conftest.er2 >/dev/null; then
17889         lt_cv_prog_compiler_static_works=yes
17890       fi
17891     else
17892       lt_cv_prog_compiler_static_works=yes
17893     fi
17894   fi
17895   $RM -r conftest*
17896   LDFLAGS=$save_LDFLAGS
17897
17898fi
17899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
17900$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
17901
17902if test yes = "$lt_cv_prog_compiler_static_works"; then
17903    :
17904else
17905    lt_prog_compiler_static=
17906fi
17907
17908
17909
17910
17911
17912
17913
17914  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17915$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17916if ${lt_cv_prog_compiler_c_o+:} false; then :
17917  $as_echo_n "(cached) " >&6
17918else
17919  lt_cv_prog_compiler_c_o=no
17920   $RM -r conftest 2>/dev/null
17921   mkdir conftest
17922   cd conftest
17923   mkdir out
17924   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17925
17926   lt_compiler_flag="-o out/conftest2.$ac_objext"
17927   # Insert the option either (1) after the last *FLAGS variable, or
17928   # (2) before a word containing "conftest.", or (3) at the end.
17929   # Note that $ac_compile itself does not contain backslashes and begins
17930   # with a dollar sign (not a hyphen), so the echo should work correctly.
17931   lt_compile=`echo "$ac_compile" | $SED \
17932   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17933   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17934   -e 's:$: $lt_compiler_flag:'`
17935   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17936   (eval "$lt_compile" 2>out/conftest.err)
17937   ac_status=$?
17938   cat out/conftest.err >&5
17939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17940   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17941   then
17942     # The compiler can only warn and ignore the option if not recognized
17943     # So say no if there are warnings
17944     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17945     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17946     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17947       lt_cv_prog_compiler_c_o=yes
17948     fi
17949   fi
17950   chmod u+w . 2>&5
17951   $RM conftest*
17952   # SGI C++ compiler will create directory out/ii_files/ for
17953   # template instantiation
17954   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17955   $RM out/* && rmdir out
17956   cd ..
17957   $RM -r conftest
17958   $RM conftest*
17959
17960fi
17961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
17962$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
17963
17964
17965
17966
17967
17968
17969  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17970$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17971if ${lt_cv_prog_compiler_c_o+:} false; then :
17972  $as_echo_n "(cached) " >&6
17973else
17974  lt_cv_prog_compiler_c_o=no
17975   $RM -r conftest 2>/dev/null
17976   mkdir conftest
17977   cd conftest
17978   mkdir out
17979   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17980
17981   lt_compiler_flag="-o out/conftest2.$ac_objext"
17982   # Insert the option either (1) after the last *FLAGS variable, or
17983   # (2) before a word containing "conftest.", or (3) at the end.
17984   # Note that $ac_compile itself does not contain backslashes and begins
17985   # with a dollar sign (not a hyphen), so the echo should work correctly.
17986   lt_compile=`echo "$ac_compile" | $SED \
17987   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17988   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17989   -e 's:$: $lt_compiler_flag:'`
17990   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17991   (eval "$lt_compile" 2>out/conftest.err)
17992   ac_status=$?
17993   cat out/conftest.err >&5
17994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17995   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17996   then
17997     # The compiler can only warn and ignore the option if not recognized
17998     # So say no if there are warnings
17999     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
18000     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18001     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18002       lt_cv_prog_compiler_c_o=yes
18003     fi
18004   fi
18005   chmod u+w . 2>&5
18006   $RM conftest*
18007   # SGI C++ compiler will create directory out/ii_files/ for
18008   # template instantiation
18009   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18010   $RM out/* && rmdir out
18011   cd ..
18012   $RM -r conftest
18013   $RM conftest*
18014
18015fi
18016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
18017$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
18018
18019
18020
18021
18022hard_links=nottested
18023if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
18024  # do not overwrite the value of need_locks provided by the user
18025  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
18026$as_echo_n "checking if we can lock with hard links... " >&6; }
18027  hard_links=yes
18028  $RM conftest*
18029  ln conftest.a conftest.b 2>/dev/null && hard_links=no
18030  touch conftest.a
18031  ln conftest.a conftest.b 2>&5 || hard_links=no
18032  ln conftest.a conftest.b 2>/dev/null && hard_links=no
18033  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
18034$as_echo "$hard_links" >&6; }
18035  if test no = "$hard_links"; then
18036    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
18037$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
18038    need_locks=warn
18039  fi
18040else
18041  need_locks=no
18042fi
18043
18044
18045
18046
18047
18048
18049  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18050$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18051
18052  runpath_var=
18053  allow_undefined_flag=
18054  always_export_symbols=no
18055  archive_cmds=
18056  archive_expsym_cmds=
18057  compiler_needs_object=no
18058  enable_shared_with_static_runtimes=no
18059  export_dynamic_flag_spec=
18060  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18061  hardcode_automatic=no
18062  hardcode_direct=no
18063  hardcode_direct_absolute=no
18064  hardcode_libdir_flag_spec=
18065  hardcode_libdir_separator=
18066  hardcode_minus_L=no
18067  hardcode_shlibpath_var=unsupported
18068  inherit_rpath=no
18069  link_all_deplibs=unknown
18070  module_cmds=
18071  module_expsym_cmds=
18072  old_archive_from_new_cmds=
18073  old_archive_from_expsyms_cmds=
18074  thread_safe_flag_spec=
18075  whole_archive_flag_spec=
18076  # include_expsyms should be a list of space-separated symbols to be *always*
18077  # included in the symbol list
18078  include_expsyms=
18079  # exclude_expsyms can be an extended regexp of symbols to exclude
18080  # it will be wrapped by ' (' and ')$', so one must not match beginning or
18081  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
18082  # as well as any symbol that contains 'd'.
18083  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
18084  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18085  # platforms (ab)use it in PIC code, but their linkers get confused if
18086  # the symbol is explicitly referenced.  Since portable code cannot
18087  # rely on this symbol name, it's probably fine to never include it in
18088  # preloaded symbol tables.
18089  # Exclude shared library initialization/finalization symbols.
18090  extract_expsyms_cmds=
18091
18092  case $host_os in
18093  cygwin* | mingw* | pw32* | cegcc*)
18094    # FIXME: the MSVC++ port hasn't been tested in a loooong time
18095    # When not using gcc, we currently assume that we are using
18096    # Microsoft Visual C++.
18097    if test yes != "$GCC"; then
18098      with_gnu_ld=no
18099    fi
18100    ;;
18101  interix*)
18102    # we just hope/assume this is gcc and not c89 (= MSVC++)
18103    with_gnu_ld=yes
18104    ;;
18105  openbsd* | bitrig*)
18106    with_gnu_ld=no
18107    ;;
18108  esac
18109
18110  ld_shlibs=yes
18111
18112  # On some targets, GNU ld is compatible enough with the native linker
18113  # that we're better off using the native interface for both.
18114  lt_use_gnu_ld_interface=no
18115  if test yes = "$with_gnu_ld"; then
18116    case $host_os in
18117      aix*)
18118	# The AIX port of GNU ld has always aspired to compatibility
18119	# with the native linker.  However, as the warning in the GNU ld
18120	# block says, versions before 2.19.5* couldn't really create working
18121	# shared libraries, regardless of the interface used.
18122	case `$LD -v 2>&1` in
18123	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
18124	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
18125	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
18126	  *)
18127	    lt_use_gnu_ld_interface=yes
18128	    ;;
18129	esac
18130	;;
18131      *)
18132	lt_use_gnu_ld_interface=yes
18133	;;
18134    esac
18135  fi
18136
18137  if test yes = "$lt_use_gnu_ld_interface"; then
18138    # If archive_cmds runs LD, not CC, wlarc should be empty
18139    wlarc='$wl'
18140
18141    # Set some defaults for GNU ld with shared library support. These
18142    # are reset later if shared libraries are not supported. Putting them
18143    # here allows them to be overridden if necessary.
18144    runpath_var=LD_RUN_PATH
18145    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
18146    export_dynamic_flag_spec='$wl--export-dynamic'
18147    # ancient GNU ld didn't support --whole-archive et. al.
18148    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
18149      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
18150    else
18151      whole_archive_flag_spec=
18152    fi
18153    supports_anon_versioning=no
18154    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
18155      *GNU\ gold*) supports_anon_versioning=yes ;;
18156      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18157      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18158      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18159      *\ 2.11.*) ;; # other 2.11 versions
18160      *) supports_anon_versioning=yes ;;
18161    esac
18162
18163    # See if GNU ld supports shared libraries.
18164    case $host_os in
18165    aix[3-9]*)
18166      # On AIX/PPC, the GNU linker is very broken
18167      if test ia64 != "$host_cpu"; then
18168	ld_shlibs=no
18169	cat <<_LT_EOF 1>&2
18170
18171*** Warning: the GNU linker, at least up to release 2.19, is reported
18172*** to be unable to reliably create shared libraries on AIX.
18173*** Therefore, libtool is disabling shared libraries support.  If you
18174*** really care for shared libraries, you may want to install binutils
18175*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
18176*** You will then need to restart the configuration process.
18177
18178_LT_EOF
18179      fi
18180      ;;
18181
18182    amigaos*)
18183      case $host_cpu in
18184      powerpc)
18185            # see comment about AmigaOS4 .so support
18186            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
18187            archive_expsym_cmds=''
18188        ;;
18189      m68k)
18190            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)'
18191            hardcode_libdir_flag_spec='-L$libdir'
18192            hardcode_minus_L=yes
18193        ;;
18194      esac
18195      ;;
18196
18197    beos*)
18198      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18199	allow_undefined_flag=unsupported
18200	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18201	# support --undefined.  This deserves some investigation.  FIXME
18202	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
18203      else
18204	ld_shlibs=no
18205      fi
18206      ;;
18207
18208    cygwin* | mingw* | pw32* | cegcc*)
18209      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
18210      # as there is no search path for DLLs.
18211      hardcode_libdir_flag_spec='-L$libdir'
18212      export_dynamic_flag_spec='$wl--export-all-symbols'
18213      allow_undefined_flag=unsupported
18214      always_export_symbols=no
18215      enable_shared_with_static_runtimes=yes
18216      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'
18217      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
18218
18219      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18220        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18221	# If the export-symbols file already is a .def file, use it as
18222	# is; otherwise, prepend EXPORTS...
18223	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
18224          cp $export_symbols $output_objdir/$soname.def;
18225        else
18226          echo EXPORTS > $output_objdir/$soname.def;
18227          cat $export_symbols >> $output_objdir/$soname.def;
18228        fi~
18229        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18230      else
18231	ld_shlibs=no
18232      fi
18233      ;;
18234
18235    haiku*)
18236      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
18237      link_all_deplibs=yes
18238      ;;
18239
18240    os2*)
18241      hardcode_libdir_flag_spec='-L$libdir'
18242      hardcode_minus_L=yes
18243      allow_undefined_flag=unsupported
18244      shrext_cmds=.dll
18245      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
18246	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
18247	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
18248	$ECHO EXPORTS >> $output_objdir/$libname.def~
18249	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
18250	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
18251	emximp -o $lib $output_objdir/$libname.def'
18252      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
18253	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
18254	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
18255	$ECHO EXPORTS >> $output_objdir/$libname.def~
18256	prefix_cmds="$SED"~
18257	if test EXPORTS = "`$SED 1q $export_symbols`"; then
18258	  prefix_cmds="$prefix_cmds -e 1d";
18259	fi~
18260	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
18261	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
18262	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
18263	emximp -o $lib $output_objdir/$libname.def'
18264      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
18265      enable_shared_with_static_runtimes=yes
18266      ;;
18267
18268    interix[3-9]*)
18269      hardcode_direct=no
18270      hardcode_shlibpath_var=no
18271      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
18272      export_dynamic_flag_spec='$wl-E'
18273      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18274      # Instead, shared libraries are loaded at an image base (0x10000000 by
18275      # default) and relocated if they conflict, which is a slow very memory
18276      # consuming and fragmenting process.  To avoid this, we pick a random,
18277      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18278      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18279      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
18280      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'
18281      ;;
18282
18283    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
18284      tmp_diet=no
18285      if test linux-dietlibc = "$host_os"; then
18286	case $cc_basename in
18287	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
18288	esac
18289      fi
18290      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
18291	 && test no = "$tmp_diet"
18292      then
18293	tmp_addflag=' $pic_flag'
18294	tmp_sharedflag='-shared'
18295	case $cc_basename,$host_cpu in
18296        pgcc*)				# Portland Group C compiler
18297	  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'
18298	  tmp_addflag=' $pic_flag'
18299	  ;;
18300	pgf77* | pgf90* | pgf95* | pgfortran*)
18301					# Portland Group f77 and f90 compilers
18302	  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'
18303	  tmp_addflag=' $pic_flag -Mnomain' ;;
18304	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
18305	  tmp_addflag=' -i_dynamic' ;;
18306	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
18307	  tmp_addflag=' -i_dynamic -nofor_main' ;;
18308	ifc* | ifort*)			# Intel Fortran compiler
18309	  tmp_addflag=' -nofor_main' ;;
18310	lf95*)				# Lahey Fortran 8.1
18311	  whole_archive_flag_spec=
18312	  tmp_sharedflag='--shared' ;;
18313        nagfor*)                        # NAGFOR 5.3
18314          tmp_sharedflag='-Wl,-shared' ;;
18315	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
18316	  tmp_sharedflag='-qmkshrobj'
18317	  tmp_addflag= ;;
18318	nvcc*)	# Cuda Compiler Driver 2.2
18319	  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'
18320	  compiler_needs_object=yes
18321	  ;;
18322	esac
18323	case `$CC -V 2>&1 | sed 5q` in
18324	*Sun\ C*)			# Sun C 5.9
18325	  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'
18326	  compiler_needs_object=yes
18327	  tmp_sharedflag='-G' ;;
18328	*Sun\ F*)			# Sun Fortran 8.3
18329	  tmp_sharedflag='-G' ;;
18330	esac
18331	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
18332
18333        if test yes = "$supports_anon_versioning"; then
18334          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
18335            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18336            echo "local: *; };" >> $output_objdir/$libname.ver~
18337            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
18338        fi
18339
18340	case $cc_basename in
18341	tcc*)
18342	  export_dynamic_flag_spec='-rdynamic'
18343	  ;;
18344	xlf* | bgf* | bgxlf* | mpixlf*)
18345	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
18346	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
18347	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
18348	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
18349	  if test yes = "$supports_anon_versioning"; then
18350	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
18351              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18352              echo "local: *; };" >> $output_objdir/$libname.ver~
18353              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
18354	  fi
18355	  ;;
18356	esac
18357      else
18358        ld_shlibs=no
18359      fi
18360      ;;
18361
18362    netbsd*)
18363      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18364	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18365	wlarc=
18366      else
18367	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
18368	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
18369      fi
18370      ;;
18371
18372    solaris*)
18373      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
18374	ld_shlibs=no
18375	cat <<_LT_EOF 1>&2
18376
18377*** Warning: The releases 2.8.* of the GNU linker cannot reliably
18378*** create shared libraries on Solaris systems.  Therefore, libtool
18379*** is disabling shared libraries support.  We urge you to upgrade GNU
18380*** binutils to release 2.9.1 or newer.  Another option is to modify
18381*** your PATH or compiler configuration so that the native linker is
18382*** used, and then restart.
18383
18384_LT_EOF
18385      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18386	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
18387	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
18388      else
18389	ld_shlibs=no
18390      fi
18391      ;;
18392
18393    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18394      case `$LD -v 2>&1` in
18395        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18396	ld_shlibs=no
18397	cat <<_LT_EOF 1>&2
18398
18399*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
18400*** reliably create shared libraries on SCO systems.  Therefore, libtool
18401*** is disabling shared libraries support.  We urge you to upgrade GNU
18402*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
18403*** your PATH or compiler configuration so that the native linker is
18404*** used, and then restart.
18405
18406_LT_EOF
18407	;;
18408	*)
18409	  # For security reasons, it is highly recommended that you always
18410	  # use absolute paths for naming shared libraries, and exclude the
18411	  # DT_RUNPATH tag from executables and libraries.  But doing so
18412	  # requires that you compile everything twice, which is a pain.
18413	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18414	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
18415	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
18416	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
18417	  else
18418	    ld_shlibs=no
18419	  fi
18420	;;
18421      esac
18422      ;;
18423
18424    sunos4*)
18425      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18426      wlarc=
18427      hardcode_direct=yes
18428      hardcode_shlibpath_var=no
18429      ;;
18430
18431    *)
18432      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18433	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
18434	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
18435      else
18436	ld_shlibs=no
18437      fi
18438      ;;
18439    esac
18440
18441    if test no = "$ld_shlibs"; then
18442      runpath_var=
18443      hardcode_libdir_flag_spec=
18444      export_dynamic_flag_spec=
18445      whole_archive_flag_spec=
18446    fi
18447  else
18448    # PORTME fill in a description of your system's linker (not GNU ld)
18449    case $host_os in
18450    aix3*)
18451      allow_undefined_flag=unsupported
18452      always_export_symbols=yes
18453      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'
18454      # Note: this linker hardcodes the directories in LIBPATH if there
18455      # are no directories specified by -L.
18456      hardcode_minus_L=yes
18457      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
18458	# Neither direct hardcoding nor static linking is supported with a
18459	# broken collect2.
18460	hardcode_direct=unsupported
18461      fi
18462      ;;
18463
18464    aix[4-9]*)
18465      if test ia64 = "$host_cpu"; then
18466	# On IA64, the linker does run time linking by default, so we don't
18467	# have to do anything special.
18468	aix_use_runtimelinking=no
18469	exp_sym_flag='-Bexport'
18470	no_entry_flag=
18471      else
18472	# If we're using GNU nm, then we don't want the "-C" option.
18473	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
18474	# Without the "-l" option, or with the "-B" option, AIX nm treats
18475	# weak defined symbols like other global defined symbols, whereas
18476	# GNU nm marks them as "W".
18477	# While the 'weak' keyword is ignored in the Export File, we need
18478	# it in the Import File for the 'aix-soname' feature, so we have
18479	# to replace the "-B" option with "-P" for AIX nm.
18480	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
18481	  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'
18482	else
18483	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
18484	fi
18485	aix_use_runtimelinking=no
18486
18487	# Test if we are trying to use run time linking or normal
18488	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
18489	# have runtime linking enabled, and use it for executables.
18490	# For shared libraries, we enable/disable runtime linking
18491	# depending on the kind of the shared library created -
18492	# when "with_aix_soname,aix_use_runtimelinking" is:
18493	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
18494	# "aix,yes"  lib.so          shared, rtl:yes, for executables
18495	#            lib.a           static archive
18496	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
18497	#            lib.a(lib.so.V) shared, rtl:no,  for executables
18498	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
18499	#            lib.a(lib.so.V) shared, rtl:no
18500	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
18501	#            lib.a           static archive
18502	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18503	  for ld_flag in $LDFLAGS; do
18504	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
18505	    aix_use_runtimelinking=yes
18506	    break
18507	  fi
18508	  done
18509	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
18510	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
18511	    # so we don't have lib.a shared libs to link our executables.
18512	    # We have to force runtime linking in this case.
18513	    aix_use_runtimelinking=yes
18514	    LDFLAGS="$LDFLAGS -Wl,-brtl"
18515	  fi
18516	  ;;
18517	esac
18518
18519	exp_sym_flag='-bexport'
18520	no_entry_flag='-bnoentry'
18521      fi
18522
18523      # When large executables or shared objects are built, AIX ld can
18524      # have problems creating the table of contents.  If linking a library
18525      # or program results in "error TOC overflow" add -mminimal-toc to
18526      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18527      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18528
18529      archive_cmds=''
18530      hardcode_direct=yes
18531      hardcode_direct_absolute=yes
18532      hardcode_libdir_separator=':'
18533      link_all_deplibs=yes
18534      file_list_spec='$wl-f,'
18535      case $with_aix_soname,$aix_use_runtimelinking in
18536      aix,*) ;; # traditional, no import file
18537      svr4,* | *,yes) # use import file
18538	# The Import File defines what to hardcode.
18539	hardcode_direct=no
18540	hardcode_direct_absolute=no
18541	;;
18542      esac
18543
18544      if test yes = "$GCC"; then
18545	case $host_os in aix4.[012]|aix4.[012].*)
18546	# We only want to do this on AIX 4.2 and lower, the check
18547	# below for broken collect2 doesn't work under 4.3+
18548	  collect2name=`$CC -print-prog-name=collect2`
18549	  if test -f "$collect2name" &&
18550	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18551	  then
18552	  # We have reworked collect2
18553	  :
18554	  else
18555	  # We have old collect2
18556	  hardcode_direct=unsupported
18557	  # It fails to find uninstalled libraries when the uninstalled
18558	  # path is not listed in the libpath.  Setting hardcode_minus_L
18559	  # to unsupported forces relinking
18560	  hardcode_minus_L=yes
18561	  hardcode_libdir_flag_spec='-L$libdir'
18562	  hardcode_libdir_separator=
18563	  fi
18564	  ;;
18565	esac
18566	shared_flag='-shared'
18567	if test yes = "$aix_use_runtimelinking"; then
18568	  shared_flag="$shared_flag "'$wl-G'
18569	fi
18570	# Need to ensure runtime linking is disabled for the traditional
18571	# shared library, or the linker may eventually find shared libraries
18572	# /with/ Import File - we do not want to mix them.
18573	shared_flag_aix='-shared'
18574	shared_flag_svr4='-shared $wl-G'
18575      else
18576	# not using gcc
18577	if test ia64 = "$host_cpu"; then
18578	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18579	# chokes on -Wl,-G. The following line is correct:
18580	  shared_flag='-G'
18581	else
18582	  if test yes = "$aix_use_runtimelinking"; then
18583	    shared_flag='$wl-G'
18584	  else
18585	    shared_flag='$wl-bM:SRE'
18586	  fi
18587	  shared_flag_aix='$wl-bM:SRE'
18588	  shared_flag_svr4='$wl-G'
18589	fi
18590      fi
18591
18592      export_dynamic_flag_spec='$wl-bexpall'
18593      # It seems that -bexpall does not export symbols beginning with
18594      # underscore (_), so it is better to generate a list of symbols to export.
18595      always_export_symbols=yes
18596      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
18597	# Warning - without using the other runtime loading flags (-brtl),
18598	# -berok will link without error, but may produce a broken library.
18599	allow_undefined_flag='-berok'
18600        # Determine the default libpath from the value encoded in an
18601        # empty executable.
18602        if test set = "${lt_cv_aix_libpath+set}"; then
18603  aix_libpath=$lt_cv_aix_libpath
18604else
18605  if ${lt_cv_aix_libpath_+:} false; then :
18606  $as_echo_n "(cached) " >&6
18607else
18608  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18609/* end confdefs.h.  */
18610
18611int
18612main ()
18613{
18614
18615  ;
18616  return 0;
18617}
18618_ACEOF
18619if ac_fn_c_try_link "$LINENO"; then :
18620
18621  lt_aix_libpath_sed='
18622      /Import File Strings/,/^$/ {
18623	  /^0/ {
18624	      s/^0  *\([^ ]*\) *$/\1/
18625	      p
18626	  }
18627      }'
18628  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18629  # Check for a 64-bit object if we didn't find anything.
18630  if test -z "$lt_cv_aix_libpath_"; then
18631    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18632  fi
18633fi
18634rm -f core conftest.err conftest.$ac_objext \
18635    conftest$ac_exeext conftest.$ac_ext
18636  if test -z "$lt_cv_aix_libpath_"; then
18637    lt_cv_aix_libpath_=/usr/lib:/lib
18638  fi
18639
18640fi
18641
18642  aix_libpath=$lt_cv_aix_libpath_
18643fi
18644
18645        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
18646        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
18647      else
18648	if test ia64 = "$host_cpu"; then
18649	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
18650	  allow_undefined_flag="-z nodefs"
18651	  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"
18652	else
18653	 # Determine the default libpath from the value encoded in an
18654	 # empty executable.
18655	 if test set = "${lt_cv_aix_libpath+set}"; then
18656  aix_libpath=$lt_cv_aix_libpath
18657else
18658  if ${lt_cv_aix_libpath_+:} false; then :
18659  $as_echo_n "(cached) " >&6
18660else
18661  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18662/* end confdefs.h.  */
18663
18664int
18665main ()
18666{
18667
18668  ;
18669  return 0;
18670}
18671_ACEOF
18672if ac_fn_c_try_link "$LINENO"; then :
18673
18674  lt_aix_libpath_sed='
18675      /Import File Strings/,/^$/ {
18676	  /^0/ {
18677	      s/^0  *\([^ ]*\) *$/\1/
18678	      p
18679	  }
18680      }'
18681  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18682  # Check for a 64-bit object if we didn't find anything.
18683  if test -z "$lt_cv_aix_libpath_"; then
18684    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18685  fi
18686fi
18687rm -f core conftest.err conftest.$ac_objext \
18688    conftest$ac_exeext conftest.$ac_ext
18689  if test -z "$lt_cv_aix_libpath_"; then
18690    lt_cv_aix_libpath_=/usr/lib:/lib
18691  fi
18692
18693fi
18694
18695  aix_libpath=$lt_cv_aix_libpath_
18696fi
18697
18698	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
18699	  # Warning - without using the other run time loading flags,
18700	  # -berok will link without error, but may produce a broken library.
18701	  no_undefined_flag=' $wl-bernotok'
18702	  allow_undefined_flag=' $wl-berok'
18703	  if test yes = "$with_gnu_ld"; then
18704	    # We only use this code for GNU lds that support --whole-archive.
18705	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
18706	  else
18707	    # Exported symbols can be pulled into shared objects from archives
18708	    whole_archive_flag_spec='$convenience'
18709	  fi
18710	  archive_cmds_need_lc=yes
18711	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
18712	  # -brtl affects multiple linker settings, -berok does not and is overridden later
18713	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
18714	  if test svr4 != "$with_aix_soname"; then
18715	    # This is similar to how AIX traditionally builds its shared libraries.
18716	    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'
18717	  fi
18718	  if test aix != "$with_aix_soname"; then
18719	    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'
18720	  else
18721	    # used by -dlpreopen to get the symbols
18722	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
18723	  fi
18724	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
18725	fi
18726      fi
18727      ;;
18728
18729    amigaos*)
18730      case $host_cpu in
18731      powerpc)
18732            # see comment about AmigaOS4 .so support
18733            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
18734            archive_expsym_cmds=''
18735        ;;
18736      m68k)
18737            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)'
18738            hardcode_libdir_flag_spec='-L$libdir'
18739            hardcode_minus_L=yes
18740        ;;
18741      esac
18742      ;;
18743
18744    bsdi[45]*)
18745      export_dynamic_flag_spec=-rdynamic
18746      ;;
18747
18748    cygwin* | mingw* | pw32* | cegcc*)
18749      # When not using gcc, we currently assume that we are using
18750      # Microsoft Visual C++.
18751      # hardcode_libdir_flag_spec is actually meaningless, as there is
18752      # no search path for DLLs.
18753      case $cc_basename in
18754      cl*)
18755	# Native MSVC
18756	hardcode_libdir_flag_spec=' '
18757	allow_undefined_flag=unsupported
18758	always_export_symbols=yes
18759	file_list_spec='@'
18760	# Tell ltmain to make .lib files, not .a files.
18761	libext=lib
18762	# Tell ltmain to make .dll files, not .so files.
18763	shrext_cmds=.dll
18764	# FIXME: Setting linknames here is a bad hack.
18765	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
18766	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
18767            cp "$export_symbols" "$output_objdir/$soname.def";
18768            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
18769          else
18770            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
18771          fi~
18772          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
18773          linknames='
18774	# The linker will not automatically build a static lib if we build a DLL.
18775	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
18776	enable_shared_with_static_runtimes=yes
18777	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
18778	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
18779	# Don't use ranlib
18780	old_postinstall_cmds='chmod 644 $oldlib'
18781	postlink_cmds='lt_outputfile="@OUTPUT@"~
18782          lt_tool_outputfile="@TOOL_OUTPUT@"~
18783          case $lt_outputfile in
18784            *.exe|*.EXE) ;;
18785            *)
18786              lt_outputfile=$lt_outputfile.exe
18787              lt_tool_outputfile=$lt_tool_outputfile.exe
18788              ;;
18789          esac~
18790          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
18791            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
18792            $RM "$lt_outputfile.manifest";
18793          fi'
18794	;;
18795      *)
18796	# Assume MSVC wrapper
18797	hardcode_libdir_flag_spec=' '
18798	allow_undefined_flag=unsupported
18799	# Tell ltmain to make .lib files, not .a files.
18800	libext=lib
18801	# Tell ltmain to make .dll files, not .so files.
18802	shrext_cmds=.dll
18803	# FIXME: Setting linknames here is a bad hack.
18804	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
18805	# The linker will automatically build a .lib file if we build a DLL.
18806	old_archive_from_new_cmds='true'
18807	# FIXME: Should let the user specify the lib program.
18808	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
18809	enable_shared_with_static_runtimes=yes
18810	;;
18811      esac
18812      ;;
18813
18814    darwin* | rhapsody*)
18815
18816
18817  archive_cmds_need_lc=no
18818  hardcode_direct=no
18819  hardcode_automatic=yes
18820  hardcode_shlibpath_var=unsupported
18821  if test yes = "$lt_cv_ld_force_load"; then
18822    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\"`'
18823
18824  else
18825    whole_archive_flag_spec=''
18826  fi
18827  link_all_deplibs=yes
18828  allow_undefined_flag=$_lt_dar_allow_undefined
18829  case $cc_basename in
18830     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
18831     *) _lt_dar_can_shared=$GCC ;;
18832  esac
18833  if test yes = "$_lt_dar_can_shared"; then
18834    output_verbose_link_cmd=func_echo_all
18835    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
18836    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
18837    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"
18838    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"
18839
18840  else
18841  ld_shlibs=no
18842  fi
18843
18844      ;;
18845
18846    dgux*)
18847      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18848      hardcode_libdir_flag_spec='-L$libdir'
18849      hardcode_shlibpath_var=no
18850      ;;
18851
18852    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18853    # support.  Future versions do this automatically, but an explicit c++rt0.o
18854    # does not break anything, and helps significantly (at the cost of a little
18855    # extra space).
18856    freebsd2.2*)
18857      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18858      hardcode_libdir_flag_spec='-R$libdir'
18859      hardcode_direct=yes
18860      hardcode_shlibpath_var=no
18861      ;;
18862
18863    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18864    freebsd2.*)
18865      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18866      hardcode_direct=yes
18867      hardcode_minus_L=yes
18868      hardcode_shlibpath_var=no
18869      ;;
18870
18871    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18872    freebsd* | dragonfly*)
18873      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18874      hardcode_libdir_flag_spec='-R$libdir'
18875      hardcode_direct=yes
18876      hardcode_shlibpath_var=no
18877      ;;
18878
18879    hpux9*)
18880      if test yes = "$GCC"; then
18881	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'
18882      else
18883	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'
18884      fi
18885      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
18886      hardcode_libdir_separator=:
18887      hardcode_direct=yes
18888
18889      # hardcode_minus_L: Not really in the search PATH,
18890      # but as the default location of the library.
18891      hardcode_minus_L=yes
18892      export_dynamic_flag_spec='$wl-E'
18893      ;;
18894
18895    hpux10*)
18896      if test yes,no = "$GCC,$with_gnu_ld"; then
18897	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18898      else
18899	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18900      fi
18901      if test no = "$with_gnu_ld"; then
18902	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
18903	hardcode_libdir_separator=:
18904	hardcode_direct=yes
18905	hardcode_direct_absolute=yes
18906	export_dynamic_flag_spec='$wl-E'
18907	# hardcode_minus_L: Not really in the search PATH,
18908	# but as the default location of the library.
18909	hardcode_minus_L=yes
18910      fi
18911      ;;
18912
18913    hpux11*)
18914      if test yes,no = "$GCC,$with_gnu_ld"; then
18915	case $host_cpu in
18916	hppa*64*)
18917	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
18918	  ;;
18919	ia64*)
18920	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18921	  ;;
18922	*)
18923	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18924	  ;;
18925	esac
18926      else
18927	case $host_cpu in
18928	hppa*64*)
18929	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
18930	  ;;
18931	ia64*)
18932	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18933	  ;;
18934	*)
18935
18936	  # Older versions of the 11.00 compiler do not understand -b yet
18937	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
18938	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
18939$as_echo_n "checking if $CC understands -b... " >&6; }
18940if ${lt_cv_prog_compiler__b+:} false; then :
18941  $as_echo_n "(cached) " >&6
18942else
18943  lt_cv_prog_compiler__b=no
18944   save_LDFLAGS=$LDFLAGS
18945   LDFLAGS="$LDFLAGS -b"
18946   echo "$lt_simple_link_test_code" > conftest.$ac_ext
18947   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18948     # The linker can only warn and ignore the option if not recognized
18949     # So say no if there are warnings
18950     if test -s conftest.err; then
18951       # Append any errors to the config.log.
18952       cat conftest.err 1>&5
18953       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
18954       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18955       if diff conftest.exp conftest.er2 >/dev/null; then
18956         lt_cv_prog_compiler__b=yes
18957       fi
18958     else
18959       lt_cv_prog_compiler__b=yes
18960     fi
18961   fi
18962   $RM -r conftest*
18963   LDFLAGS=$save_LDFLAGS
18964
18965fi
18966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
18967$as_echo "$lt_cv_prog_compiler__b" >&6; }
18968
18969if test yes = "$lt_cv_prog_compiler__b"; then
18970    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18971else
18972    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18973fi
18974
18975	  ;;
18976	esac
18977      fi
18978      if test no = "$with_gnu_ld"; then
18979	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
18980	hardcode_libdir_separator=:
18981
18982	case $host_cpu in
18983	hppa*64*|ia64*)
18984	  hardcode_direct=no
18985	  hardcode_shlibpath_var=no
18986	  ;;
18987	*)
18988	  hardcode_direct=yes
18989	  hardcode_direct_absolute=yes
18990	  export_dynamic_flag_spec='$wl-E'
18991
18992	  # hardcode_minus_L: Not really in the search PATH,
18993	  # but as the default location of the library.
18994	  hardcode_minus_L=yes
18995	  ;;
18996	esac
18997      fi
18998      ;;
18999
19000    irix5* | irix6* | nonstopux*)
19001      if test yes = "$GCC"; then
19002	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'
19003	# Try to use the -exported_symbol ld option, if it does not
19004	# work, assume that -exports_file does not work either and
19005	# implicitly export all symbols.
19006	# This should be the same for all languages, so no per-tag cache variable.
19007	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
19008$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
19009if ${lt_cv_irix_exported_symbol+:} false; then :
19010  $as_echo_n "(cached) " >&6
19011else
19012  save_LDFLAGS=$LDFLAGS
19013	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
19014	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19015/* end confdefs.h.  */
19016int foo (void) { return 0; }
19017_ACEOF
19018if ac_fn_c_try_link "$LINENO"; then :
19019  lt_cv_irix_exported_symbol=yes
19020else
19021  lt_cv_irix_exported_symbol=no
19022fi
19023rm -f core conftest.err conftest.$ac_objext \
19024    conftest$ac_exeext conftest.$ac_ext
19025           LDFLAGS=$save_LDFLAGS
19026fi
19027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
19028$as_echo "$lt_cv_irix_exported_symbol" >&6; }
19029	if test yes = "$lt_cv_irix_exported_symbol"; then
19030          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'
19031	fi
19032      else
19033	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'
19034	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'
19035      fi
19036      archive_cmds_need_lc='no'
19037      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
19038      hardcode_libdir_separator=:
19039      inherit_rpath=yes
19040      link_all_deplibs=yes
19041      ;;
19042
19043    linux*)
19044      case $cc_basename in
19045      tcc*)
19046	# Fabrice Bellard et al's Tiny C Compiler
19047	ld_shlibs=yes
19048	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19049	;;
19050      esac
19051      ;;
19052
19053    netbsd*)
19054      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19055	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
19056      else
19057	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
19058      fi
19059      hardcode_libdir_flag_spec='-R$libdir'
19060      hardcode_direct=yes
19061      hardcode_shlibpath_var=no
19062      ;;
19063
19064    newsos6)
19065      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19066      hardcode_direct=yes
19067      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
19068      hardcode_libdir_separator=:
19069      hardcode_shlibpath_var=no
19070      ;;
19071
19072    *nto* | *qnx*)
19073      ;;
19074
19075    openbsd* | bitrig*)
19076      if test -f /usr/libexec/ld.so; then
19077	hardcode_direct=yes
19078	hardcode_shlibpath_var=no
19079	hardcode_direct_absolute=yes
19080	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
19081	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19082	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
19083	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
19084	  export_dynamic_flag_spec='$wl-E'
19085	else
19086	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19087	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
19088	fi
19089      else
19090	ld_shlibs=no
19091      fi
19092      ;;
19093
19094    os2*)
19095      hardcode_libdir_flag_spec='-L$libdir'
19096      hardcode_minus_L=yes
19097      allow_undefined_flag=unsupported
19098      shrext_cmds=.dll
19099      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
19100	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
19101	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
19102	$ECHO EXPORTS >> $output_objdir/$libname.def~
19103	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
19104	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
19105	emximp -o $lib $output_objdir/$libname.def'
19106      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
19107	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
19108	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
19109	$ECHO EXPORTS >> $output_objdir/$libname.def~
19110	prefix_cmds="$SED"~
19111	if test EXPORTS = "`$SED 1q $export_symbols`"; then
19112	  prefix_cmds="$prefix_cmds -e 1d";
19113	fi~
19114	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
19115	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
19116	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
19117	emximp -o $lib $output_objdir/$libname.def'
19118      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
19119      enable_shared_with_static_runtimes=yes
19120      ;;
19121
19122    osf3*)
19123      if test yes = "$GCC"; then
19124	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
19125	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'
19126      else
19127	allow_undefined_flag=' -expect_unresolved \*'
19128	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'
19129      fi
19130      archive_cmds_need_lc='no'
19131      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
19132      hardcode_libdir_separator=:
19133      ;;
19134
19135    osf4* | osf5*)	# as osf3* with the addition of -msym flag
19136      if test yes = "$GCC"; then
19137	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
19138	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'
19139	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
19140      else
19141	allow_undefined_flag=' -expect_unresolved \*'
19142	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'
19143	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~
19144          $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'
19145
19146	# Both c and cxx compiler support -rpath directly
19147	hardcode_libdir_flag_spec='-rpath $libdir'
19148      fi
19149      archive_cmds_need_lc='no'
19150      hardcode_libdir_separator=:
19151      ;;
19152
19153    solaris*)
19154      no_undefined_flag=' -z defs'
19155      if test yes = "$GCC"; then
19156	wlarc='$wl'
19157	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
19158	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19159          $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'
19160      else
19161	case `$CC -V 2>&1` in
19162	*"Compilers 5.0"*)
19163	  wlarc=''
19164	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
19165	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19166            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
19167	  ;;
19168	*)
19169	  wlarc='$wl'
19170	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
19171	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19172            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
19173	  ;;
19174	esac
19175      fi
19176      hardcode_libdir_flag_spec='-R$libdir'
19177      hardcode_shlibpath_var=no
19178      case $host_os in
19179      solaris2.[0-5] | solaris2.[0-5].*) ;;
19180      *)
19181	# The compiler driver will combine and reorder linker options,
19182	# but understands '-z linker_flag'.  GCC discards it without '$wl',
19183	# but is careful enough not to reorder.
19184	# Supported since Solaris 2.6 (maybe 2.5.1?)
19185	if test yes = "$GCC"; then
19186	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
19187	else
19188	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
19189	fi
19190	;;
19191      esac
19192      link_all_deplibs=yes
19193      ;;
19194
19195    sunos4*)
19196      if test sequent = "$host_vendor"; then
19197	# Use $CC to link under sequent, because it throws in some extra .o
19198	# files that make .init and .fini sections work.
19199	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19200      else
19201	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19202      fi
19203      hardcode_libdir_flag_spec='-L$libdir'
19204      hardcode_direct=yes
19205      hardcode_minus_L=yes
19206      hardcode_shlibpath_var=no
19207      ;;
19208
19209    sysv4)
19210      case $host_vendor in
19211	sni)
19212	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19213	  hardcode_direct=yes # is this really true???
19214	;;
19215	siemens)
19216	  ## LD is ld it makes a PLAMLIB
19217	  ## CC just makes a GrossModule.
19218	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19219	  reload_cmds='$CC -r -o $output$reload_objs'
19220	  hardcode_direct=no
19221        ;;
19222	motorola)
19223	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19224	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
19225	;;
19226      esac
19227      runpath_var='LD_RUN_PATH'
19228      hardcode_shlibpath_var=no
19229      ;;
19230
19231    sysv4.3*)
19232      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19233      hardcode_shlibpath_var=no
19234      export_dynamic_flag_spec='-Bexport'
19235      ;;
19236
19237    sysv4*MP*)
19238      if test -d /usr/nec; then
19239	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19240	hardcode_shlibpath_var=no
19241	runpath_var=LD_RUN_PATH
19242	hardcode_runpath_var=yes
19243	ld_shlibs=yes
19244      fi
19245      ;;
19246
19247    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19248      no_undefined_flag='$wl-z,text'
19249      archive_cmds_need_lc=no
19250      hardcode_shlibpath_var=no
19251      runpath_var='LD_RUN_PATH'
19252
19253      if test yes = "$GCC"; then
19254	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19255	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19256      else
19257	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19258	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19259      fi
19260      ;;
19261
19262    sysv5* | sco3.2v5* | sco5v6*)
19263      # Note: We CANNOT use -z defs as we might desire, because we do not
19264      # link with -lc, and that would cause any symbols used from libc to
19265      # always be unresolved, which means just about no library would
19266      # ever link correctly.  If we're not using GNU ld we use -z text
19267      # though, which does catch some bad symbols but isn't as heavy-handed
19268      # as -z defs.
19269      no_undefined_flag='$wl-z,text'
19270      allow_undefined_flag='$wl-z,nodefs'
19271      archive_cmds_need_lc=no
19272      hardcode_shlibpath_var=no
19273      hardcode_libdir_flag_spec='$wl-R,$libdir'
19274      hardcode_libdir_separator=':'
19275      link_all_deplibs=yes
19276      export_dynamic_flag_spec='$wl-Bexport'
19277      runpath_var='LD_RUN_PATH'
19278
19279      if test yes = "$GCC"; then
19280	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19281	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19282      else
19283	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19284	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19285      fi
19286      ;;
19287
19288    uts4*)
19289      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19290      hardcode_libdir_flag_spec='-L$libdir'
19291      hardcode_shlibpath_var=no
19292      ;;
19293
19294    *)
19295      ld_shlibs=no
19296      ;;
19297    esac
19298
19299    if test sni = "$host_vendor"; then
19300      case $host in
19301      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19302	export_dynamic_flag_spec='$wl-Blargedynsym'
19303	;;
19304      esac
19305    fi
19306  fi
19307
19308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
19309$as_echo "$ld_shlibs" >&6; }
19310test no = "$ld_shlibs" && can_build_shared=no
19311
19312with_gnu_ld=$with_gnu_ld
19313
19314
19315
19316
19317
19318
19319
19320
19321
19322
19323
19324
19325
19326
19327
19328#
19329# Do we need to explicitly link libc?
19330#
19331case "x$archive_cmds_need_lc" in
19332x|xyes)
19333  # Assume -lc should be added
19334  archive_cmds_need_lc=yes
19335
19336  if test yes,yes = "$GCC,$enable_shared"; then
19337    case $archive_cmds in
19338    *'~'*)
19339      # FIXME: we may have to deal with multi-command sequences.
19340      ;;
19341    '$CC '*)
19342      # Test whether the compiler implicitly links with -lc since on some
19343      # systems, -lgcc has to come before -lc. If gcc already passes -lc
19344      # to ld, don't add -lc before -lgcc.
19345      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
19346$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
19347if ${lt_cv_archive_cmds_need_lc+:} false; then :
19348  $as_echo_n "(cached) " >&6
19349else
19350  $RM conftest*
19351	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19352
19353	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19354  (eval $ac_compile) 2>&5
19355  ac_status=$?
19356  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19357  test $ac_status = 0; } 2>conftest.err; then
19358	  soname=conftest
19359	  lib=conftest
19360	  libobjs=conftest.$ac_objext
19361	  deplibs=
19362	  wl=$lt_prog_compiler_wl
19363	  pic_flag=$lt_prog_compiler_pic
19364	  compiler_flags=-v
19365	  linker_flags=-v
19366	  verstring=
19367	  output_objdir=.
19368	  libname=conftest
19369	  lt_save_allow_undefined_flag=$allow_undefined_flag
19370	  allow_undefined_flag=
19371	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
19372  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
19373  ac_status=$?
19374  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19375  test $ac_status = 0; }
19376	  then
19377	    lt_cv_archive_cmds_need_lc=no
19378	  else
19379	    lt_cv_archive_cmds_need_lc=yes
19380	  fi
19381	  allow_undefined_flag=$lt_save_allow_undefined_flag
19382	else
19383	  cat conftest.err 1>&5
19384	fi
19385	$RM conftest*
19386
19387fi
19388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
19389$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
19390      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
19391      ;;
19392    esac
19393  fi
19394  ;;
19395esac
19396
19397
19398
19399
19400
19401
19402
19403
19404
19405
19406
19407
19408
19409
19410
19411
19412
19413
19414
19415
19416
19417
19418
19419
19420
19421
19422
19423
19424
19425
19426
19427
19428
19429
19430
19431
19432
19433
19434
19435
19436
19437
19438
19439
19440
19441
19442
19443
19444
19445
19446
19447
19448
19449
19450
19451
19452
19453
19454
19455
19456
19457
19458
19459
19460
19461
19462
19463
19464
19465
19466
19467
19468
19469
19470
19471
19472
19473
19474
19475
19476
19477
19478
19479
19480
19481
19482
19483
19484
19485
19486
19487
19488
19489
19490
19491
19492
19493
19494
19495
19496
19497
19498
19499
19500
19501
19502
19503
19504
19505
19506
19507
19508
19509
19510
19511
19512
19513
19514
19515
19516
19517
19518
19519
19520
19521
19522
19523
19524
19525
19526
19527
19528
19529
19530
19531
19532
19533
19534
19535
19536
19537
19538
19539
19540
19541
19542
19543
19544
19545
19546
19547
19548  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19549$as_echo_n "checking dynamic linker characteristics... " >&6; }
19550
19551if test yes = "$GCC"; then
19552  case $host_os in
19553    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
19554    *) lt_awk_arg='/^libraries:/' ;;
19555  esac
19556  case $host_os in
19557    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
19558    *) lt_sed_strip_eq='s|=/|/|g' ;;
19559  esac
19560  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
19561  case $lt_search_path_spec in
19562  *\;*)
19563    # if the path contains ";" then we assume it to be the separator
19564    # otherwise default to the standard path separator (i.e. ":") - it is
19565    # assumed that no part of a normal pathname contains ";" but that should
19566    # okay in the real world where ";" in dirpaths is itself problematic.
19567    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
19568    ;;
19569  *)
19570    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
19571    ;;
19572  esac
19573  # Ok, now we have the path, separated by spaces, we can step through it
19574  # and add multilib dir if necessary...
19575  lt_tmp_lt_search_path_spec=
19576  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
19577  # ...but if some path component already ends with the multilib dir we assume
19578  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
19579  case "$lt_multi_os_dir; $lt_search_path_spec " in
19580  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
19581    lt_multi_os_dir=
19582    ;;
19583  esac
19584  for lt_sys_path in $lt_search_path_spec; do
19585    if test -d "$lt_sys_path$lt_multi_os_dir"; then
19586      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
19587    elif test -n "$lt_multi_os_dir"; then
19588      test -d "$lt_sys_path" && \
19589	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
19590    fi
19591  done
19592  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
19593BEGIN {RS = " "; FS = "/|\n";} {
19594  lt_foo = "";
19595  lt_count = 0;
19596  for (lt_i = NF; lt_i > 0; lt_i--) {
19597    if ($lt_i != "" && $lt_i != ".") {
19598      if ($lt_i == "..") {
19599        lt_count++;
19600      } else {
19601        if (lt_count == 0) {
19602          lt_foo = "/" $lt_i lt_foo;
19603        } else {
19604          lt_count--;
19605        }
19606      }
19607    }
19608  }
19609  if (lt_foo != "") { lt_freq[lt_foo]++; }
19610  if (lt_freq[lt_foo] == 1) { print lt_foo; }
19611}'`
19612  # AWK program above erroneously prepends '/' to C:/dos/paths
19613  # for these hosts.
19614  case $host_os in
19615    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
19616      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
19617  esac
19618  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
19619else
19620  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19621fi
19622library_names_spec=
19623libname_spec='lib$name'
19624soname_spec=
19625shrext_cmds=.so
19626postinstall_cmds=
19627postuninstall_cmds=
19628finish_cmds=
19629finish_eval=
19630shlibpath_var=
19631shlibpath_overrides_runpath=unknown
19632version_type=none
19633dynamic_linker="$host_os ld.so"
19634sys_lib_dlsearch_path_spec="/lib /usr/lib"
19635need_lib_prefix=unknown
19636hardcode_into_libs=no
19637
19638# when you set need_version to no, make sure it does not cause -set_version
19639# flags to be left without arguments
19640need_version=unknown
19641
19642
19643
19644case $host_os in
19645aix3*)
19646  version_type=linux # correct to gnu/linux during the next big refactor
19647  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
19648  shlibpath_var=LIBPATH
19649
19650  # AIX 3 has no versioning support, so we append a major version to the name.
19651  soname_spec='$libname$release$shared_ext$major'
19652  ;;
19653
19654aix[4-9]*)
19655  version_type=linux # correct to gnu/linux during the next big refactor
19656  need_lib_prefix=no
19657  need_version=no
19658  hardcode_into_libs=yes
19659  if test ia64 = "$host_cpu"; then
19660    # AIX 5 supports IA64
19661    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
19662    shlibpath_var=LD_LIBRARY_PATH
19663  else
19664    # With GCC up to 2.95.x, collect2 would create an import file
19665    # for dependence libraries.  The import file would start with
19666    # the line '#! .'.  This would cause the generated library to
19667    # depend on '.', always an invalid library.  This was fixed in
19668    # development snapshots of GCC prior to 3.0.
19669    case $host_os in
19670      aix4 | aix4.[01] | aix4.[01].*)
19671      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19672	   echo ' yes '
19673	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
19674	:
19675      else
19676	can_build_shared=no
19677      fi
19678      ;;
19679    esac
19680    # Using Import Files as archive members, it is possible to support
19681    # filename-based versioning of shared library archives on AIX. While
19682    # this would work for both with and without runtime linking, it will
19683    # prevent static linking of such archives. So we do filename-based
19684    # shared library versioning with .so extension only, which is used
19685    # when both runtime linking and shared linking is enabled.
19686    # Unfortunately, runtime linking may impact performance, so we do
19687    # not want this to be the default eventually. Also, we use the
19688    # versioned .so libs for executables only if there is the -brtl
19689    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
19690    # To allow for filename-based versioning support, we need to create
19691    # libNAME.so.V as an archive file, containing:
19692    # *) an Import File, referring to the versioned filename of the
19693    #    archive as well as the shared archive member, telling the
19694    #    bitwidth (32 or 64) of that shared object, and providing the
19695    #    list of exported symbols of that shared object, eventually
19696    #    decorated with the 'weak' keyword
19697    # *) the shared object with the F_LOADONLY flag set, to really avoid
19698    #    it being seen by the linker.
19699    # At run time we better use the real file rather than another symlink,
19700    # but for link time we create the symlink libNAME.so -> libNAME.so.V
19701
19702    case $with_aix_soname,$aix_use_runtimelinking in
19703    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
19704    # soname into executable. Probably we can add versioning support to
19705    # collect2, so additional links can be useful in future.
19706    aix,yes) # traditional libtool
19707      dynamic_linker='AIX unversionable lib.so'
19708      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19709      # instead of lib<name>.a to let people know that these are not
19710      # typical AIX shared libraries.
19711      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19712      ;;
19713    aix,no) # traditional AIX only
19714      dynamic_linker='AIX lib.a(lib.so.V)'
19715      # We preserve .a as extension for shared libraries through AIX4.2
19716      # and later when we are not doing run time linking.
19717      library_names_spec='$libname$release.a $libname.a'
19718      soname_spec='$libname$release$shared_ext$major'
19719      ;;
19720    svr4,*) # full svr4 only
19721      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
19722      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
19723      # We do not specify a path in Import Files, so LIBPATH fires.
19724      shlibpath_overrides_runpath=yes
19725      ;;
19726    *,yes) # both, prefer svr4
19727      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
19728      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
19729      # unpreferred sharedlib libNAME.a needs extra handling
19730      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"'
19731      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"'
19732      # We do not specify a path in Import Files, so LIBPATH fires.
19733      shlibpath_overrides_runpath=yes
19734      ;;
19735    *,no) # both, prefer aix
19736      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
19737      library_names_spec='$libname$release.a $libname.a'
19738      soname_spec='$libname$release$shared_ext$major'
19739      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
19740      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)'
19741      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"'
19742      ;;
19743    esac
19744    shlibpath_var=LIBPATH
19745  fi
19746  ;;
19747
19748amigaos*)
19749  case $host_cpu in
19750  powerpc)
19751    # Since July 2007 AmigaOS4 officially supports .so libraries.
19752    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19753    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19754    ;;
19755  m68k)
19756    library_names_spec='$libname.ixlibrary $libname.a'
19757    # Create ${libname}_ixlibrary.a entries in /sys/libs.
19758    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'
19759    ;;
19760  esac
19761  ;;
19762
19763beos*)
19764  library_names_spec='$libname$shared_ext'
19765  dynamic_linker="$host_os ld.so"
19766  shlibpath_var=LIBRARY_PATH
19767  ;;
19768
19769bsdi[45]*)
19770  version_type=linux # correct to gnu/linux during the next big refactor
19771  need_version=no
19772  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19773  soname_spec='$libname$release$shared_ext$major'
19774  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19775  shlibpath_var=LD_LIBRARY_PATH
19776  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19777  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19778  # the default ld.so.conf also contains /usr/contrib/lib and
19779  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19780  # libtool to hard-code these into programs
19781  ;;
19782
19783cygwin* | mingw* | pw32* | cegcc*)
19784  version_type=windows
19785  shrext_cmds=.dll
19786  need_version=no
19787  need_lib_prefix=no
19788
19789  case $GCC,$cc_basename in
19790  yes,*)
19791    # gcc
19792    library_names_spec='$libname.dll.a'
19793    # DLL is installed to $(libdir)/../bin by postinstall_cmds
19794    postinstall_cmds='base_file=`basename \$file`~
19795      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
19796      dldir=$destdir/`dirname \$dlpath`~
19797      test -d \$dldir || mkdir -p \$dldir~
19798      $install_prog $dir/$dlname \$dldir/$dlname~
19799      chmod a+x \$dldir/$dlname~
19800      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19801        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19802      fi'
19803    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19804      dlpath=$dir/\$dldll~
19805       $RM \$dlpath'
19806    shlibpath_overrides_runpath=yes
19807
19808    case $host_os in
19809    cygwin*)
19810      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19811      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
19812
19813      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
19814      ;;
19815    mingw* | cegcc*)
19816      # MinGW DLLs use traditional 'lib' prefix
19817      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
19818      ;;
19819    pw32*)
19820      # pw32 DLLs use 'pw' prefix rather than 'lib'
19821      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
19822      ;;
19823    esac
19824    dynamic_linker='Win32 ld.exe'
19825    ;;
19826
19827  *,cl*)
19828    # Native MSVC
19829    libname_spec='$name'
19830    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
19831    library_names_spec='$libname.dll.lib'
19832
19833    case $build_os in
19834    mingw*)
19835      sys_lib_search_path_spec=
19836      lt_save_ifs=$IFS
19837      IFS=';'
19838      for lt_path in $LIB
19839      do
19840        IFS=$lt_save_ifs
19841        # Let DOS variable expansion print the short 8.3 style file name.
19842        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
19843        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
19844      done
19845      IFS=$lt_save_ifs
19846      # Convert to MSYS style.
19847      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
19848      ;;
19849    cygwin*)
19850      # Convert to unix form, then to dos form, then back to unix form
19851      # but this time dos style (no spaces!) so that the unix form looks
19852      # like /cygdrive/c/PROGRA~1:/cygdr...
19853      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
19854      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
19855      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19856      ;;
19857    *)
19858      sys_lib_search_path_spec=$LIB
19859      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
19860        # It is most probably a Windows format PATH.
19861        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19862      else
19863        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19864      fi
19865      # FIXME: find the short name or the path components, as spaces are
19866      # common. (e.g. "Program Files" -> "PROGRA~1")
19867      ;;
19868    esac
19869
19870    # DLL is installed to $(libdir)/../bin by postinstall_cmds
19871    postinstall_cmds='base_file=`basename \$file`~
19872      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
19873      dldir=$destdir/`dirname \$dlpath`~
19874      test -d \$dldir || mkdir -p \$dldir~
19875      $install_prog $dir/$dlname \$dldir/$dlname'
19876    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19877      dlpath=$dir/\$dldll~
19878       $RM \$dlpath'
19879    shlibpath_overrides_runpath=yes
19880    dynamic_linker='Win32 link.exe'
19881    ;;
19882
19883  *)
19884    # Assume MSVC wrapper
19885    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
19886    dynamic_linker='Win32 ld.exe'
19887    ;;
19888  esac
19889  # FIXME: first we should search . and the directory the executable is in
19890  shlibpath_var=PATH
19891  ;;
19892
19893darwin* | rhapsody*)
19894  dynamic_linker="$host_os dyld"
19895  version_type=darwin
19896  need_lib_prefix=no
19897  need_version=no
19898  library_names_spec='$libname$release$versuffix$shared_ext $libname$release$major$shared_ext $libname$shared_ext'
19899  soname_spec='$libname$release$major$shared_ext'
19900  shlibpath_overrides_runpath=yes
19901  shlibpath_var=DYLD_LIBRARY_PATH
19902  shrext_cmds='`test .$module = .yes && echo .bundle || echo .dylib`'
19903
19904  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
19905  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19906  ;;
19907
19908dgux*)
19909  version_type=linux # correct to gnu/linux during the next big refactor
19910  need_lib_prefix=no
19911  need_version=no
19912  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19913  soname_spec='$libname$release$shared_ext$major'
19914  shlibpath_var=LD_LIBRARY_PATH
19915  ;;
19916
19917freebsd* | dragonfly*)
19918  # DragonFly does not have aout.  When/if they implement a new
19919  # versioning mechanism, adjust this.
19920  if test -x /usr/bin/objformat; then
19921    objformat=`/usr/bin/objformat`
19922  else
19923    case $host_os in
19924    freebsd[23].*) objformat=aout ;;
19925    *) objformat=elf ;;
19926    esac
19927  fi
19928  # Handle Gentoo/FreeBSD as it was Linux
19929  case $host_vendor in
19930    gentoo)
19931      version_type=linux ;;
19932    *)
19933      version_type=freebsd-$objformat ;;
19934  esac
19935
19936  case $version_type in
19937    freebsd-elf*)
19938      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19939      soname_spec='$libname$release$shared_ext$major'
19940      need_version=no
19941      need_lib_prefix=no
19942      ;;
19943    freebsd-*)
19944      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
19945      need_version=yes
19946      ;;
19947    linux)
19948      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19949      soname_spec='${libname}${release}${shared_ext}$major'
19950      need_lib_prefix=no
19951      need_version=no
19952      ;;
19953  esac
19954  shlibpath_var=LD_LIBRARY_PATH
19955  case $host_os in
19956  freebsd2.*)
19957    shlibpath_overrides_runpath=yes
19958    ;;
19959  freebsd3.[01]* | freebsdelf3.[01]*)
19960    shlibpath_overrides_runpath=yes
19961    hardcode_into_libs=yes
19962    ;;
19963  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19964  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19965    shlibpath_overrides_runpath=no
19966    hardcode_into_libs=yes
19967    ;;
19968  *) # from 4.6 on, and DragonFly
19969    shlibpath_overrides_runpath=yes
19970    hardcode_into_libs=yes
19971    ;;
19972  esac
19973  ;;
19974
19975haiku*)
19976  version_type=linux # correct to gnu/linux during the next big refactor
19977  need_lib_prefix=no
19978  need_version=no
19979  dynamic_linker="$host_os runtime_loader"
19980  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19981  soname_spec='$libname$release$shared_ext$major'
19982  shlibpath_var=LIBRARY_PATH
19983  shlibpath_overrides_runpath=no
19984  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
19985  hardcode_into_libs=yes
19986  ;;
19987
19988hpux9* | hpux10* | hpux11*)
19989  # Give a soname corresponding to the major version so that dld.sl refuses to
19990  # link against other versions.
19991  version_type=sunos
19992  need_lib_prefix=no
19993  need_version=no
19994  case $host_cpu in
19995  ia64*)
19996    shrext_cmds='.so'
19997    hardcode_into_libs=yes
19998    dynamic_linker="$host_os dld.so"
19999    shlibpath_var=LD_LIBRARY_PATH
20000    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20001    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20002    soname_spec='$libname$release$shared_ext$major'
20003    if test 32 = "$HPUX_IA64_MODE"; then
20004      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20005      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
20006    else
20007      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20008      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
20009    fi
20010    ;;
20011  hppa*64*)
20012    shrext_cmds='.sl'
20013    hardcode_into_libs=yes
20014    dynamic_linker="$host_os dld.sl"
20015    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20016    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20017    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20018    soname_spec='$libname$release$shared_ext$major'
20019    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20020    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20021    ;;
20022  *)
20023    shrext_cmds='.sl'
20024    dynamic_linker="$host_os dld.sl"
20025    shlibpath_var=SHLIB_PATH
20026    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20027    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20028    soname_spec='$libname$release$shared_ext$major'
20029    ;;
20030  esac
20031  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20032  postinstall_cmds='chmod 555 $lib'
20033  # or fails outright, so override atomically:
20034  install_override_mode=555
20035  ;;
20036
20037interix[3-9]*)
20038  version_type=linux # correct to gnu/linux during the next big refactor
20039  need_lib_prefix=no
20040  need_version=no
20041  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20042  soname_spec='$libname$release$shared_ext$major'
20043  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20044  shlibpath_var=LD_LIBRARY_PATH
20045  shlibpath_overrides_runpath=no
20046  hardcode_into_libs=yes
20047  ;;
20048
20049irix5* | irix6* | nonstopux*)
20050  case $host_os in
20051    nonstopux*) version_type=nonstopux ;;
20052    *)
20053	if test yes = "$lt_cv_prog_gnu_ld"; then
20054		version_type=linux # correct to gnu/linux during the next big refactor
20055	else
20056		version_type=irix
20057	fi ;;
20058  esac
20059  need_lib_prefix=no
20060  need_version=no
20061  soname_spec='$libname$release$shared_ext$major'
20062  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
20063  case $host_os in
20064  irix5* | nonstopux*)
20065    libsuff= shlibsuff=
20066    ;;
20067  *)
20068    case $LD in # libtool.m4 will add one of these switches to LD
20069    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20070      libsuff= shlibsuff= libmagic=32-bit;;
20071    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20072      libsuff=32 shlibsuff=N32 libmagic=N32;;
20073    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20074      libsuff=64 shlibsuff=64 libmagic=64-bit;;
20075    *) libsuff= shlibsuff= libmagic=never-match;;
20076    esac
20077    ;;
20078  esac
20079  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20080  shlibpath_overrides_runpath=no
20081  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
20082  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
20083  hardcode_into_libs=yes
20084  ;;
20085
20086# No shared lib support for Linux oldld, aout, or coff.
20087linux*oldld* | linux*aout* | linux*coff*)
20088  dynamic_linker=no
20089  ;;
20090
20091linux*android*)
20092  version_type=none # Android doesn't support versioned libraries.
20093  need_lib_prefix=no
20094  need_version=no
20095  library_names_spec='$libname$release$shared_ext'
20096  soname_spec='$libname$release$shared_ext'
20097  finish_cmds=
20098  shlibpath_var=LD_LIBRARY_PATH
20099  shlibpath_overrides_runpath=yes
20100
20101  # This implies no fast_install, which is unacceptable.
20102  # Some rework will be needed to allow for fast_install
20103  # before this can be enabled.
20104  hardcode_into_libs=yes
20105
20106  dynamic_linker='Android linker'
20107  # Don't embed -rpath directories since the linker doesn't support them.
20108  hardcode_libdir_flag_spec='-L$libdir'
20109  ;;
20110
20111# This must be glibc/ELF.
20112linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
20113  version_type=linux # correct to gnu/linux during the next big refactor
20114  need_lib_prefix=no
20115  need_version=no
20116  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20117  soname_spec='$libname$release$shared_ext$major'
20118  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20119  shlibpath_var=LD_LIBRARY_PATH
20120  shlibpath_overrides_runpath=no
20121
20122  # Some binutils ld are patched to set DT_RUNPATH
20123  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
20124  $as_echo_n "(cached) " >&6
20125else
20126  lt_cv_shlibpath_overrides_runpath=no
20127    save_LDFLAGS=$LDFLAGS
20128    save_libdir=$libdir
20129    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
20130	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
20131    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20132/* end confdefs.h.  */
20133
20134int
20135main ()
20136{
20137
20138  ;
20139  return 0;
20140}
20141_ACEOF
20142if ac_fn_c_try_link "$LINENO"; then :
20143  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
20144  lt_cv_shlibpath_overrides_runpath=yes
20145fi
20146fi
20147rm -f core conftest.err conftest.$ac_objext \
20148    conftest$ac_exeext conftest.$ac_ext
20149    LDFLAGS=$save_LDFLAGS
20150    libdir=$save_libdir
20151
20152fi
20153
20154  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
20155
20156  # This implies no fast_install, which is unacceptable.
20157  # Some rework will be needed to allow for fast_install
20158  # before this can be enabled.
20159  hardcode_into_libs=yes
20160
20161  # Ideally, we could use ldconfig to report *all* directores which are
20162  # searched for libraries, however this is still not possible.  Aside from not
20163  # being certain /sbin/ldconfig is available, command
20164  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
20165  # even though it is searched at run-time.  Try to do the best guess by
20166  # appending ld.so.conf contents (and includes) to the search path.
20167  if test -f /etc/ld.so.conf; then
20168    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' ' '`
20169    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20170  fi
20171
20172  # We used to test for /lib/ld.so.1 and disable shared libraries on
20173  # powerpc, because MkLinux only supported shared libraries with the
20174  # GNU dynamic linker.  Since this was broken with cross compilers,
20175  # most powerpc-linux boxes support dynamic linking these days and
20176  # people can always --disable-shared, the test was removed, and we
20177  # assume the GNU/Linux dynamic linker is in use.
20178  dynamic_linker='GNU/Linux ld.so'
20179  ;;
20180
20181netbsd*)
20182  version_type=sunos
20183  need_lib_prefix=no
20184  need_version=no
20185  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20186    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
20187    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20188    dynamic_linker='NetBSD (a.out) ld.so'
20189  else
20190    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20191    soname_spec='$libname$release$shared_ext$major'
20192    dynamic_linker='NetBSD ld.elf_so'
20193  fi
20194  shlibpath_var=LD_LIBRARY_PATH
20195  shlibpath_overrides_runpath=yes
20196  hardcode_into_libs=yes
20197  ;;
20198
20199newsos6)
20200  version_type=linux # correct to gnu/linux during the next big refactor
20201  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20202  shlibpath_var=LD_LIBRARY_PATH
20203  shlibpath_overrides_runpath=yes
20204  ;;
20205
20206*nto* | *qnx*)
20207  version_type=qnx
20208  need_lib_prefix=no
20209  need_version=no
20210  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20211  soname_spec='$libname$release$shared_ext$major'
20212  shlibpath_var=LD_LIBRARY_PATH
20213  shlibpath_overrides_runpath=no
20214  hardcode_into_libs=yes
20215  dynamic_linker='ldqnx.so'
20216  ;;
20217
20218openbsd* | bitrig*)
20219  version_type=sunos
20220  sys_lib_dlsearch_path_spec=/usr/lib
20221  need_lib_prefix=no
20222  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
20223    need_version=no
20224  else
20225    need_version=yes
20226  fi
20227  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
20228  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20229  shlibpath_var=LD_LIBRARY_PATH
20230  shlibpath_overrides_runpath=yes
20231  ;;
20232
20233os2*)
20234  libname_spec='$name'
20235  version_type=windows
20236  shrext_cmds=.dll
20237  need_version=no
20238  need_lib_prefix=no
20239  # OS/2 can only load a DLL with a base name of 8 characters or less.
20240  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
20241    v=$($ECHO $release$versuffix | tr -d .-);
20242    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
20243    $ECHO $n$v`$shared_ext'
20244  library_names_spec='${libname}_dll.$libext'
20245  dynamic_linker='OS/2 ld.exe'
20246  shlibpath_var=BEGINLIBPATH
20247  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20248  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20249  postinstall_cmds='base_file=`basename \$file`~
20250    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
20251    dldir=$destdir/`dirname \$dlpath`~
20252    test -d \$dldir || mkdir -p \$dldir~
20253    $install_prog $dir/$dlname \$dldir/$dlname~
20254    chmod a+x \$dldir/$dlname~
20255    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20256      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20257    fi'
20258  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
20259    dlpath=$dir/\$dldll~
20260    $RM \$dlpath'
20261  ;;
20262
20263osf3* | osf4* | osf5*)
20264  version_type=osf
20265  need_lib_prefix=no
20266  need_version=no
20267  soname_spec='$libname$release$shared_ext$major'
20268  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20269  shlibpath_var=LD_LIBRARY_PATH
20270  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20271  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20272  ;;
20273
20274rdos*)
20275  dynamic_linker=no
20276  ;;
20277
20278solaris*)
20279  version_type=linux # correct to gnu/linux during the next big refactor
20280  need_lib_prefix=no
20281  need_version=no
20282  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20283  soname_spec='$libname$release$shared_ext$major'
20284  shlibpath_var=LD_LIBRARY_PATH
20285  shlibpath_overrides_runpath=yes
20286  hardcode_into_libs=yes
20287  # ldd complains unless libraries are executable
20288  postinstall_cmds='chmod +x $lib'
20289  ;;
20290
20291sunos4*)
20292  version_type=sunos
20293  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
20294  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20295  shlibpath_var=LD_LIBRARY_PATH
20296  shlibpath_overrides_runpath=yes
20297  if test yes = "$with_gnu_ld"; then
20298    need_lib_prefix=no
20299  fi
20300  need_version=yes
20301  ;;
20302
20303sysv4 | sysv4.3*)
20304  version_type=linux # correct to gnu/linux during the next big refactor
20305  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20306  soname_spec='$libname$release$shared_ext$major'
20307  shlibpath_var=LD_LIBRARY_PATH
20308  case $host_vendor in
20309    sni)
20310      shlibpath_overrides_runpath=no
20311      need_lib_prefix=no
20312      runpath_var=LD_RUN_PATH
20313      ;;
20314    siemens)
20315      need_lib_prefix=no
20316      ;;
20317    motorola)
20318      need_lib_prefix=no
20319      need_version=no
20320      shlibpath_overrides_runpath=no
20321      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20322      ;;
20323  esac
20324  ;;
20325
20326sysv4*MP*)
20327  if test -d /usr/nec; then
20328    version_type=linux # correct to gnu/linux during the next big refactor
20329    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
20330    soname_spec='$libname$shared_ext.$major'
20331    shlibpath_var=LD_LIBRARY_PATH
20332  fi
20333  ;;
20334
20335sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20336  version_type=sco
20337  need_lib_prefix=no
20338  need_version=no
20339  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
20340  soname_spec='$libname$release$shared_ext$major'
20341  shlibpath_var=LD_LIBRARY_PATH
20342  shlibpath_overrides_runpath=yes
20343  hardcode_into_libs=yes
20344  if test yes = "$with_gnu_ld"; then
20345    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20346  else
20347    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20348    case $host_os in
20349      sco3.2v5*)
20350        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20351	;;
20352    esac
20353  fi
20354  sys_lib_dlsearch_path_spec='/usr/lib'
20355  ;;
20356
20357tpf*)
20358  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
20359  version_type=linux # correct to gnu/linux during the next big refactor
20360  need_lib_prefix=no
20361  need_version=no
20362  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20363  shlibpath_var=LD_LIBRARY_PATH
20364  shlibpath_overrides_runpath=no
20365  hardcode_into_libs=yes
20366  ;;
20367
20368uts4*)
20369  version_type=linux # correct to gnu/linux during the next big refactor
20370  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20371  soname_spec='$libname$release$shared_ext$major'
20372  shlibpath_var=LD_LIBRARY_PATH
20373  ;;
20374
20375*)
20376  dynamic_linker=no
20377  ;;
20378esac
20379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20380$as_echo "$dynamic_linker" >&6; }
20381test no = "$dynamic_linker" && can_build_shared=no
20382
20383variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20384if test yes = "$GCC"; then
20385  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20386fi
20387
20388if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
20389  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
20390fi
20391
20392if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
20393  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
20394fi
20395
20396# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
20397configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
20398
20399# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
20400func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
20401
20402# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
20403configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
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
20490
20491
20492
20493
20494
20495
20496
20497
20498
20499
20500
20501  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20502$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20503hardcode_action=
20504if test -n "$hardcode_libdir_flag_spec" ||
20505   test -n "$runpath_var" ||
20506   test yes = "$hardcode_automatic"; then
20507
20508  # We can hardcode non-existent directories.
20509  if test no != "$hardcode_direct" &&
20510     # If the only mechanism to avoid hardcoding is shlibpath_var, we
20511     # have to relink, otherwise we might link with an installed library
20512     # when we should be linking with a yet-to-be-installed one
20513     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
20514     test no != "$hardcode_minus_L"; then
20515    # Linking always hardcodes the temporary library directory.
20516    hardcode_action=relink
20517  else
20518    # We can link without hardcoding, and we can hardcode nonexisting dirs.
20519    hardcode_action=immediate
20520  fi
20521else
20522  # We cannot hardcode anything, or else we can only hardcode existing
20523  # directories.
20524  hardcode_action=unsupported
20525fi
20526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
20527$as_echo "$hardcode_action" >&6; }
20528
20529if test relink = "$hardcode_action" ||
20530   test yes = "$inherit_rpath"; then
20531  # Fast installation is not supported
20532  enable_fast_install=no
20533elif test yes = "$shlibpath_overrides_runpath" ||
20534     test no = "$enable_shared"; then
20535  # Fast installation is not necessary
20536  enable_fast_install=needless
20537fi
20538
20539
20540
20541
20542
20543
20544  if test yes != "$enable_dlopen"; then
20545  enable_dlopen=unknown
20546  enable_dlopen_self=unknown
20547  enable_dlopen_self_static=unknown
20548else
20549  lt_cv_dlopen=no
20550  lt_cv_dlopen_libs=
20551
20552  case $host_os in
20553  beos*)
20554    lt_cv_dlopen=load_add_on
20555    lt_cv_dlopen_libs=
20556    lt_cv_dlopen_self=yes
20557    ;;
20558
20559  mingw* | pw32* | cegcc*)
20560    lt_cv_dlopen=LoadLibrary
20561    lt_cv_dlopen_libs=
20562    ;;
20563
20564  cygwin*)
20565    lt_cv_dlopen=dlopen
20566    lt_cv_dlopen_libs=
20567    ;;
20568
20569  darwin*)
20570    # if libdl is installed we need to link against it
20571    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
20572$as_echo_n "checking for dlopen in -ldl... " >&6; }
20573if ${ac_cv_lib_dl_dlopen+:} false; then :
20574  $as_echo_n "(cached) " >&6
20575else
20576  ac_check_lib_save_LIBS=$LIBS
20577LIBS="-ldl  $LIBS"
20578cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20579/* end confdefs.h.  */
20580
20581/* Override any GCC internal prototype to avoid an error.
20582   Use char because int might match the return type of a GCC
20583   builtin and then its argument prototype would still apply.  */
20584#ifdef __cplusplus
20585extern "C"
20586#endif
20587char dlopen ();
20588int
20589main ()
20590{
20591return dlopen ();
20592  ;
20593  return 0;
20594}
20595_ACEOF
20596if ac_fn_c_try_link "$LINENO"; then :
20597  ac_cv_lib_dl_dlopen=yes
20598else
20599  ac_cv_lib_dl_dlopen=no
20600fi
20601rm -f core conftest.err conftest.$ac_objext \
20602    conftest$ac_exeext conftest.$ac_ext
20603LIBS=$ac_check_lib_save_LIBS
20604fi
20605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
20606$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
20607if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
20608  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
20609else
20610
20611    lt_cv_dlopen=dyld
20612    lt_cv_dlopen_libs=
20613    lt_cv_dlopen_self=yes
20614
20615fi
20616
20617    ;;
20618
20619  tpf*)
20620    # Don't try to run any link tests for TPF.  We know it's impossible
20621    # because TPF is a cross-compiler, and we know how we open DSOs.
20622    lt_cv_dlopen=dlopen
20623    lt_cv_dlopen_libs=
20624    lt_cv_dlopen_self=no
20625    ;;
20626
20627  *)
20628    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
20629if test "x$ac_cv_func_shl_load" = xyes; then :
20630  lt_cv_dlopen=shl_load
20631else
20632  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
20633$as_echo_n "checking for shl_load in -ldld... " >&6; }
20634if ${ac_cv_lib_dld_shl_load+:} false; then :
20635  $as_echo_n "(cached) " >&6
20636else
20637  ac_check_lib_save_LIBS=$LIBS
20638LIBS="-ldld  $LIBS"
20639cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20640/* end confdefs.h.  */
20641
20642/* Override any GCC internal prototype to avoid an error.
20643   Use char because int might match the return type of a GCC
20644   builtin and then its argument prototype would still apply.  */
20645#ifdef __cplusplus
20646extern "C"
20647#endif
20648char shl_load ();
20649int
20650main ()
20651{
20652return shl_load ();
20653  ;
20654  return 0;
20655}
20656_ACEOF
20657if ac_fn_c_try_link "$LINENO"; then :
20658  ac_cv_lib_dld_shl_load=yes
20659else
20660  ac_cv_lib_dld_shl_load=no
20661fi
20662rm -f core conftest.err conftest.$ac_objext \
20663    conftest$ac_exeext conftest.$ac_ext
20664LIBS=$ac_check_lib_save_LIBS
20665fi
20666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
20667$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
20668if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
20669  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
20670else
20671  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
20672if test "x$ac_cv_func_dlopen" = xyes; then :
20673  lt_cv_dlopen=dlopen
20674else
20675  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
20676$as_echo_n "checking for dlopen in -ldl... " >&6; }
20677if ${ac_cv_lib_dl_dlopen+:} false; then :
20678  $as_echo_n "(cached) " >&6
20679else
20680  ac_check_lib_save_LIBS=$LIBS
20681LIBS="-ldl  $LIBS"
20682cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20683/* end confdefs.h.  */
20684
20685/* Override any GCC internal prototype to avoid an error.
20686   Use char because int might match the return type of a GCC
20687   builtin and then its argument prototype would still apply.  */
20688#ifdef __cplusplus
20689extern "C"
20690#endif
20691char dlopen ();
20692int
20693main ()
20694{
20695return dlopen ();
20696  ;
20697  return 0;
20698}
20699_ACEOF
20700if ac_fn_c_try_link "$LINENO"; then :
20701  ac_cv_lib_dl_dlopen=yes
20702else
20703  ac_cv_lib_dl_dlopen=no
20704fi
20705rm -f core conftest.err conftest.$ac_objext \
20706    conftest$ac_exeext conftest.$ac_ext
20707LIBS=$ac_check_lib_save_LIBS
20708fi
20709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
20710$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
20711if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
20712  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
20713else
20714  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
20715$as_echo_n "checking for dlopen in -lsvld... " >&6; }
20716if ${ac_cv_lib_svld_dlopen+:} false; then :
20717  $as_echo_n "(cached) " >&6
20718else
20719  ac_check_lib_save_LIBS=$LIBS
20720LIBS="-lsvld  $LIBS"
20721cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20722/* end confdefs.h.  */
20723
20724/* Override any GCC internal prototype to avoid an error.
20725   Use char because int might match the return type of a GCC
20726   builtin and then its argument prototype would still apply.  */
20727#ifdef __cplusplus
20728extern "C"
20729#endif
20730char dlopen ();
20731int
20732main ()
20733{
20734return dlopen ();
20735  ;
20736  return 0;
20737}
20738_ACEOF
20739if ac_fn_c_try_link "$LINENO"; then :
20740  ac_cv_lib_svld_dlopen=yes
20741else
20742  ac_cv_lib_svld_dlopen=no
20743fi
20744rm -f core conftest.err conftest.$ac_objext \
20745    conftest$ac_exeext conftest.$ac_ext
20746LIBS=$ac_check_lib_save_LIBS
20747fi
20748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
20749$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
20750if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
20751  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
20752else
20753  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
20754$as_echo_n "checking for dld_link in -ldld... " >&6; }
20755if ${ac_cv_lib_dld_dld_link+:} false; then :
20756  $as_echo_n "(cached) " >&6
20757else
20758  ac_check_lib_save_LIBS=$LIBS
20759LIBS="-ldld  $LIBS"
20760cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20761/* end confdefs.h.  */
20762
20763/* Override any GCC internal prototype to avoid an error.
20764   Use char because int might match the return type of a GCC
20765   builtin and then its argument prototype would still apply.  */
20766#ifdef __cplusplus
20767extern "C"
20768#endif
20769char dld_link ();
20770int
20771main ()
20772{
20773return dld_link ();
20774  ;
20775  return 0;
20776}
20777_ACEOF
20778if ac_fn_c_try_link "$LINENO"; then :
20779  ac_cv_lib_dld_dld_link=yes
20780else
20781  ac_cv_lib_dld_dld_link=no
20782fi
20783rm -f core conftest.err conftest.$ac_objext \
20784    conftest$ac_exeext conftest.$ac_ext
20785LIBS=$ac_check_lib_save_LIBS
20786fi
20787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
20788$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
20789if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
20790  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
20791fi
20792
20793
20794fi
20795
20796
20797fi
20798
20799
20800fi
20801
20802
20803fi
20804
20805
20806fi
20807
20808    ;;
20809  esac
20810
20811  if test no = "$lt_cv_dlopen"; then
20812    enable_dlopen=no
20813  else
20814    enable_dlopen=yes
20815  fi
20816
20817  case $lt_cv_dlopen in
20818  dlopen)
20819    save_CPPFLAGS=$CPPFLAGS
20820    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
20821
20822    save_LDFLAGS=$LDFLAGS
20823    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
20824
20825    save_LIBS=$LIBS
20826    LIBS="$lt_cv_dlopen_libs $LIBS"
20827
20828    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
20829$as_echo_n "checking whether a program can dlopen itself... " >&6; }
20830if ${lt_cv_dlopen_self+:} false; then :
20831  $as_echo_n "(cached) " >&6
20832else
20833  	  if test yes = "$cross_compiling"; then :
20834  lt_cv_dlopen_self=cross
20835else
20836  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20837  lt_status=$lt_dlunknown
20838  cat > conftest.$ac_ext <<_LT_EOF
20839#line $LINENO "configure"
20840#include "confdefs.h"
20841
20842#if HAVE_DLFCN_H
20843#include <dlfcn.h>
20844#endif
20845
20846#include <stdio.h>
20847
20848#ifdef RTLD_GLOBAL
20849#  define LT_DLGLOBAL		RTLD_GLOBAL
20850#else
20851#  ifdef DL_GLOBAL
20852#    define LT_DLGLOBAL		DL_GLOBAL
20853#  else
20854#    define LT_DLGLOBAL		0
20855#  endif
20856#endif
20857
20858/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20859   find out it does not work in some platform. */
20860#ifndef LT_DLLAZY_OR_NOW
20861#  ifdef RTLD_LAZY
20862#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
20863#  else
20864#    ifdef DL_LAZY
20865#      define LT_DLLAZY_OR_NOW		DL_LAZY
20866#    else
20867#      ifdef RTLD_NOW
20868#        define LT_DLLAZY_OR_NOW	RTLD_NOW
20869#      else
20870#        ifdef DL_NOW
20871#          define LT_DLLAZY_OR_NOW	DL_NOW
20872#        else
20873#          define LT_DLLAZY_OR_NOW	0
20874#        endif
20875#      endif
20876#    endif
20877#  endif
20878#endif
20879
20880/* When -fvisibility=hidden is used, assume the code has been annotated
20881   correspondingly for the symbols needed.  */
20882#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
20883int fnord () __attribute__((visibility("default")));
20884#endif
20885
20886int fnord () { return 42; }
20887int main ()
20888{
20889  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20890  int status = $lt_dlunknown;
20891
20892  if (self)
20893    {
20894      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
20895      else
20896        {
20897	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
20898          else puts (dlerror ());
20899	}
20900      /* dlclose (self); */
20901    }
20902  else
20903    puts (dlerror ());
20904
20905  return status;
20906}
20907_LT_EOF
20908  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
20909  (eval $ac_link) 2>&5
20910  ac_status=$?
20911  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20912  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
20913    (./conftest; exit; ) >&5 2>/dev/null
20914    lt_status=$?
20915    case x$lt_status in
20916      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
20917      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
20918      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
20919    esac
20920  else :
20921    # compilation failed
20922    lt_cv_dlopen_self=no
20923  fi
20924fi
20925rm -fr conftest*
20926
20927
20928fi
20929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
20930$as_echo "$lt_cv_dlopen_self" >&6; }
20931
20932    if test yes = "$lt_cv_dlopen_self"; then
20933      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
20934      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
20935$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
20936if ${lt_cv_dlopen_self_static+:} false; then :
20937  $as_echo_n "(cached) " >&6
20938else
20939  	  if test yes = "$cross_compiling"; then :
20940  lt_cv_dlopen_self_static=cross
20941else
20942  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20943  lt_status=$lt_dlunknown
20944  cat > conftest.$ac_ext <<_LT_EOF
20945#line $LINENO "configure"
20946#include "confdefs.h"
20947
20948#if HAVE_DLFCN_H
20949#include <dlfcn.h>
20950#endif
20951
20952#include <stdio.h>
20953
20954#ifdef RTLD_GLOBAL
20955#  define LT_DLGLOBAL		RTLD_GLOBAL
20956#else
20957#  ifdef DL_GLOBAL
20958#    define LT_DLGLOBAL		DL_GLOBAL
20959#  else
20960#    define LT_DLGLOBAL		0
20961#  endif
20962#endif
20963
20964/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20965   find out it does not work in some platform. */
20966#ifndef LT_DLLAZY_OR_NOW
20967#  ifdef RTLD_LAZY
20968#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
20969#  else
20970#    ifdef DL_LAZY
20971#      define LT_DLLAZY_OR_NOW		DL_LAZY
20972#    else
20973#      ifdef RTLD_NOW
20974#        define LT_DLLAZY_OR_NOW	RTLD_NOW
20975#      else
20976#        ifdef DL_NOW
20977#          define LT_DLLAZY_OR_NOW	DL_NOW
20978#        else
20979#          define LT_DLLAZY_OR_NOW	0
20980#        endif
20981#      endif
20982#    endif
20983#  endif
20984#endif
20985
20986/* When -fvisibility=hidden is used, assume the code has been annotated
20987   correspondingly for the symbols needed.  */
20988#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
20989int fnord () __attribute__((visibility("default")));
20990#endif
20991
20992int fnord () { return 42; }
20993int main ()
20994{
20995  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20996  int status = $lt_dlunknown;
20997
20998  if (self)
20999    {
21000      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
21001      else
21002        {
21003	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
21004          else puts (dlerror ());
21005	}
21006      /* dlclose (self); */
21007    }
21008  else
21009    puts (dlerror ());
21010
21011  return status;
21012}
21013_LT_EOF
21014  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
21015  (eval $ac_link) 2>&5
21016  ac_status=$?
21017  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21018  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
21019    (./conftest; exit; ) >&5 2>/dev/null
21020    lt_status=$?
21021    case x$lt_status in
21022      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
21023      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
21024      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
21025    esac
21026  else :
21027    # compilation failed
21028    lt_cv_dlopen_self_static=no
21029  fi
21030fi
21031rm -fr conftest*
21032
21033
21034fi
21035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
21036$as_echo "$lt_cv_dlopen_self_static" >&6; }
21037    fi
21038
21039    CPPFLAGS=$save_CPPFLAGS
21040    LDFLAGS=$save_LDFLAGS
21041    LIBS=$save_LIBS
21042    ;;
21043  esac
21044
21045  case $lt_cv_dlopen_self in
21046  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
21047  *) enable_dlopen_self=unknown ;;
21048  esac
21049
21050  case $lt_cv_dlopen_self_static in
21051  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
21052  *) enable_dlopen_self_static=unknown ;;
21053  esac
21054fi
21055
21056
21057
21058
21059
21060
21061
21062
21063
21064
21065
21066
21067
21068
21069
21070
21071
21072striplib=
21073old_striplib=
21074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
21075$as_echo_n "checking whether stripping libraries is possible... " >&6; }
21076if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
21077  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
21078  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
21079  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21080$as_echo "yes" >&6; }
21081else
21082# FIXME - insert some real tests, host_os isn't really good enough
21083  case $host_os in
21084  darwin*)
21085    if test -n "$STRIP"; then
21086      striplib="$STRIP -x"
21087      old_striplib="$STRIP -S"
21088      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21089$as_echo "yes" >&6; }
21090    else
21091      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21092$as_echo "no" >&6; }
21093    fi
21094    ;;
21095  *)
21096    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21097$as_echo "no" >&6; }
21098    ;;
21099  esac
21100fi
21101
21102
21103
21104
21105
21106
21107
21108
21109
21110
21111
21112
21113  # Report what library types will actually be built
21114  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
21115$as_echo_n "checking if libtool supports shared libraries... " >&6; }
21116  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
21117$as_echo "$can_build_shared" >&6; }
21118
21119  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
21120$as_echo_n "checking whether to build shared libraries... " >&6; }
21121  test no = "$can_build_shared" && enable_shared=no
21122
21123  # On AIX, shared libraries and static libraries use the same namespace, and
21124  # are all built from PIC.
21125  case $host_os in
21126  aix3*)
21127    test yes = "$enable_shared" && enable_static=no
21128    if test -n "$RANLIB"; then
21129      archive_cmds="$archive_cmds~\$RANLIB \$lib"
21130      postinstall_cmds='$RANLIB $lib'
21131    fi
21132    ;;
21133
21134  aix[4-9]*)
21135    if test ia64 != "$host_cpu"; then
21136      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
21137      yes,aix,yes) ;;			# shared object as lib.so file only
21138      yes,svr4,*) ;;			# shared object as lib.so archive member only
21139      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
21140      esac
21141    fi
21142    ;;
21143  esac
21144  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
21145$as_echo "$enable_shared" >&6; }
21146
21147  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
21148$as_echo_n "checking whether to build static libraries... " >&6; }
21149  # Make sure either enable_shared or enable_static is yes.
21150  test yes = "$enable_shared" || enable_static=yes
21151  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
21152$as_echo "$enable_static" >&6; }
21153
21154
21155
21156
21157fi
21158ac_ext=c
21159ac_cpp='$CPP $CPPFLAGS'
21160ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21161ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21162ac_compiler_gnu=$ac_cv_c_compiler_gnu
21163
21164CC=$lt_save_CC
21165
21166
21167
21168
21169
21170
21171
21172
21173
21174
21175
21176
21177
21178
21179
21180        ac_config_commands="$ac_config_commands libtool"
21181
21182
21183
21184
21185# Only expand once:
21186
21187
21188
21189
21190
21191
21192
21193
21194
21195if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
21196	if test -n "$ac_tool_prefix"; then
21197  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
21198set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
21199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21200$as_echo_n "checking for $ac_word... " >&6; }
21201if ${ac_cv_path_PKG_CONFIG+:} false; then :
21202  $as_echo_n "(cached) " >&6
21203else
21204  case $PKG_CONFIG in
21205  [\\/]* | ?:[\\/]*)
21206  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21207  ;;
21208  *)
21209  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21210for as_dir in $PATH
21211do
21212  IFS=$as_save_IFS
21213  test -z "$as_dir" && as_dir=.
21214    for ac_exec_ext in '' $ac_executable_extensions; do
21215  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21216    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21217    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21218    break 2
21219  fi
21220done
21221  done
21222IFS=$as_save_IFS
21223
21224  ;;
21225esac
21226fi
21227PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21228if test -n "$PKG_CONFIG"; then
21229  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
21230$as_echo "$PKG_CONFIG" >&6; }
21231else
21232  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21233$as_echo "no" >&6; }
21234fi
21235
21236
21237fi
21238if test -z "$ac_cv_path_PKG_CONFIG"; then
21239  ac_pt_PKG_CONFIG=$PKG_CONFIG
21240  # Extract the first word of "pkg-config", so it can be a program name with args.
21241set dummy pkg-config; ac_word=$2
21242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21243$as_echo_n "checking for $ac_word... " >&6; }
21244if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
21245  $as_echo_n "(cached) " >&6
21246else
21247  case $ac_pt_PKG_CONFIG in
21248  [\\/]* | ?:[\\/]*)
21249  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
21250  ;;
21251  *)
21252  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21253for as_dir in $PATH
21254do
21255  IFS=$as_save_IFS
21256  test -z "$as_dir" && as_dir=.
21257    for ac_exec_ext in '' $ac_executable_extensions; do
21258  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21259    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21260    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21261    break 2
21262  fi
21263done
21264  done
21265IFS=$as_save_IFS
21266
21267  ;;
21268esac
21269fi
21270ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
21271if test -n "$ac_pt_PKG_CONFIG"; then
21272  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
21273$as_echo "$ac_pt_PKG_CONFIG" >&6; }
21274else
21275  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21276$as_echo "no" >&6; }
21277fi
21278
21279  if test "x$ac_pt_PKG_CONFIG" = x; then
21280    PKG_CONFIG=""
21281  else
21282    case $cross_compiling:$ac_tool_warned in
21283yes:)
21284{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21285$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21286ac_tool_warned=yes ;;
21287esac
21288    PKG_CONFIG=$ac_pt_PKG_CONFIG
21289  fi
21290else
21291  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
21292fi
21293
21294fi
21295if test -n "$PKG_CONFIG"; then
21296	_pkg_min_version=0.9.0
21297	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
21298$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
21299	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
21300		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21301$as_echo "yes" >&6; }
21302	else
21303		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21304$as_echo "no" >&6; }
21305		PKG_CONFIG=""
21306	fi
21307fi
21308for ac_prog in flex lex
21309do
21310  # Extract the first word of "$ac_prog", so it can be a program name with args.
21311set dummy $ac_prog; ac_word=$2
21312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21313$as_echo_n "checking for $ac_word... " >&6; }
21314if ${ac_cv_prog_LEX+:} false; then :
21315  $as_echo_n "(cached) " >&6
21316else
21317  if test -n "$LEX"; then
21318  ac_cv_prog_LEX="$LEX" # Let the user override the test.
21319else
21320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21321for as_dir in $PATH
21322do
21323  IFS=$as_save_IFS
21324  test -z "$as_dir" && as_dir=.
21325    for ac_exec_ext in '' $ac_executable_extensions; do
21326  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21327    ac_cv_prog_LEX="$ac_prog"
21328    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21329    break 2
21330  fi
21331done
21332  done
21333IFS=$as_save_IFS
21334
21335fi
21336fi
21337LEX=$ac_cv_prog_LEX
21338if test -n "$LEX"; then
21339  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
21340$as_echo "$LEX" >&6; }
21341else
21342  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21343$as_echo "no" >&6; }
21344fi
21345
21346
21347  test -n "$LEX" && break
21348done
21349test -n "$LEX" || LEX=":"
21350
21351if test "x$LEX" != "x:"; then
21352  cat >conftest.l <<_ACEOF
21353%%
21354a { ECHO; }
21355b { REJECT; }
21356c { yymore (); }
21357d { yyless (1); }
21358e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument.  */
21359    yyless ((input () != 0)); }
21360f { unput (yytext[0]); }
21361. { BEGIN INITIAL; }
21362%%
21363#ifdef YYTEXT_POINTER
21364extern char *yytext;
21365#endif
21366int
21367main (void)
21368{
21369  return ! yylex () + ! yywrap ();
21370}
21371_ACEOF
21372{ { ac_try="$LEX conftest.l"
21373case "(($ac_try" in
21374  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21375  *) ac_try_echo=$ac_try;;
21376esac
21377eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
21378$as_echo "$ac_try_echo"; } >&5
21379  (eval "$LEX conftest.l") 2>&5
21380  ac_status=$?
21381  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21382  test $ac_status = 0; }
21383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
21384$as_echo_n "checking lex output file root... " >&6; }
21385if ${ac_cv_prog_lex_root+:} false; then :
21386  $as_echo_n "(cached) " >&6
21387else
21388
21389if test -f lex.yy.c; then
21390  ac_cv_prog_lex_root=lex.yy
21391elif test -f lexyy.c; then
21392  ac_cv_prog_lex_root=lexyy
21393else
21394  as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
21395fi
21396fi
21397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
21398$as_echo "$ac_cv_prog_lex_root" >&6; }
21399LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
21400
21401if test -z "${LEXLIB+set}"; then
21402  { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
21403$as_echo_n "checking lex library... " >&6; }
21404if ${ac_cv_lib_lex+:} false; then :
21405  $as_echo_n "(cached) " >&6
21406else
21407
21408    ac_save_LIBS=$LIBS
21409    ac_cv_lib_lex='none needed'
21410    for ac_lib in '' -lfl -ll; do
21411      LIBS="$ac_lib $ac_save_LIBS"
21412      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21413/* end confdefs.h.  */
21414`cat $LEX_OUTPUT_ROOT.c`
21415_ACEOF
21416if ac_fn_c_try_link "$LINENO"; then :
21417  ac_cv_lib_lex=$ac_lib
21418fi
21419rm -f core conftest.err conftest.$ac_objext \
21420    conftest$ac_exeext conftest.$ac_ext
21421      test "$ac_cv_lib_lex" != 'none needed' && break
21422    done
21423    LIBS=$ac_save_LIBS
21424
21425fi
21426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
21427$as_echo "$ac_cv_lib_lex" >&6; }
21428  test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
21429fi
21430
21431
21432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
21433$as_echo_n "checking whether yytext is a pointer... " >&6; }
21434if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
21435  $as_echo_n "(cached) " >&6
21436else
21437  # POSIX says lex can declare yytext either as a pointer or an array; the
21438# default is implementation-dependent.  Figure out which it is, since
21439# not all implementations provide the %pointer and %array declarations.
21440ac_cv_prog_lex_yytext_pointer=no
21441ac_save_LIBS=$LIBS
21442LIBS="$LEXLIB $ac_save_LIBS"
21443cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21444/* end confdefs.h.  */
21445
21446  #define YYTEXT_POINTER 1
21447`cat $LEX_OUTPUT_ROOT.c`
21448_ACEOF
21449if ac_fn_c_try_link "$LINENO"; then :
21450  ac_cv_prog_lex_yytext_pointer=yes
21451fi
21452rm -f core conftest.err conftest.$ac_objext \
21453    conftest$ac_exeext conftest.$ac_ext
21454LIBS=$ac_save_LIBS
21455
21456fi
21457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
21458$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
21459if test $ac_cv_prog_lex_yytext_pointer = yes; then
21460
21461$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
21462
21463fi
21464rm -f conftest.l $LEX_OUTPUT_ROOT.c
21465
21466fi
21467for ac_prog in 'bison -y' byacc
21468do
21469  # Extract the first word of "$ac_prog", so it can be a program name with args.
21470set dummy $ac_prog; ac_word=$2
21471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21472$as_echo_n "checking for $ac_word... " >&6; }
21473if ${ac_cv_prog_YACC+:} false; then :
21474  $as_echo_n "(cached) " >&6
21475else
21476  if test -n "$YACC"; then
21477  ac_cv_prog_YACC="$YACC" # Let the user override the test.
21478else
21479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21480for as_dir in $PATH
21481do
21482  IFS=$as_save_IFS
21483  test -z "$as_dir" && as_dir=.
21484    for ac_exec_ext in '' $ac_executable_extensions; do
21485  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21486    ac_cv_prog_YACC="$ac_prog"
21487    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21488    break 2
21489  fi
21490done
21491  done
21492IFS=$as_save_IFS
21493
21494fi
21495fi
21496YACC=$ac_cv_prog_YACC
21497if test -n "$YACC"; then
21498  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
21499$as_echo "$YACC" >&6; }
21500else
21501  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21502$as_echo "no" >&6; }
21503fi
21504
21505
21506  test -n "$YACC" && break
21507done
21508test -n "$YACC" || YACC="yacc"
21509
21510# Check whether --enable-largefile was given.
21511if test "${enable_largefile+set}" = set; then :
21512  enableval=$enable_largefile;
21513fi
21514
21515if test "$enable_largefile" != no; then
21516
21517  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
21518$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
21519if ${ac_cv_sys_largefile_CC+:} false; then :
21520  $as_echo_n "(cached) " >&6
21521else
21522  ac_cv_sys_largefile_CC=no
21523     if test "$GCC" != yes; then
21524       ac_save_CC=$CC
21525       while :; do
21526	 # IRIX 6.2 and later do not support large files by default,
21527	 # so use the C compiler's -n32 option if that helps.
21528	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21529/* end confdefs.h.  */
21530#include <sys/types.h>
21531 /* Check that off_t can represent 2**63 - 1 correctly.
21532    We can't simply define LARGE_OFF_T to be 9223372036854775807,
21533    since some C++ compilers masquerading as C compilers
21534    incorrectly reject 9223372036854775807.  */
21535#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
21536  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21537		       && LARGE_OFF_T % 2147483647 == 1)
21538		      ? 1 : -1];
21539int
21540main ()
21541{
21542
21543  ;
21544  return 0;
21545}
21546_ACEOF
21547	 if ac_fn_c_try_compile "$LINENO"; then :
21548  break
21549fi
21550rm -f core conftest.err conftest.$ac_objext
21551	 CC="$CC -n32"
21552	 if ac_fn_c_try_compile "$LINENO"; then :
21553  ac_cv_sys_largefile_CC=' -n32'; break
21554fi
21555rm -f core conftest.err conftest.$ac_objext
21556	 break
21557       done
21558       CC=$ac_save_CC
21559       rm -f conftest.$ac_ext
21560    fi
21561fi
21562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
21563$as_echo "$ac_cv_sys_largefile_CC" >&6; }
21564  if test "$ac_cv_sys_largefile_CC" != no; then
21565    CC=$CC$ac_cv_sys_largefile_CC
21566  fi
21567
21568  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
21569$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
21570if ${ac_cv_sys_file_offset_bits+:} false; then :
21571  $as_echo_n "(cached) " >&6
21572else
21573  while :; do
21574  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21575/* end confdefs.h.  */
21576#include <sys/types.h>
21577 /* Check that off_t can represent 2**63 - 1 correctly.
21578    We can't simply define LARGE_OFF_T to be 9223372036854775807,
21579    since some C++ compilers masquerading as C compilers
21580    incorrectly reject 9223372036854775807.  */
21581#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
21582  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21583		       && LARGE_OFF_T % 2147483647 == 1)
21584		      ? 1 : -1];
21585int
21586main ()
21587{
21588
21589  ;
21590  return 0;
21591}
21592_ACEOF
21593if ac_fn_c_try_compile "$LINENO"; then :
21594  ac_cv_sys_file_offset_bits=no; break
21595fi
21596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21597  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21598/* end confdefs.h.  */
21599#define _FILE_OFFSET_BITS 64
21600#include <sys/types.h>
21601 /* Check that off_t can represent 2**63 - 1 correctly.
21602    We can't simply define LARGE_OFF_T to be 9223372036854775807,
21603    since some C++ compilers masquerading as C compilers
21604    incorrectly reject 9223372036854775807.  */
21605#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
21606  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21607		       && LARGE_OFF_T % 2147483647 == 1)
21608		      ? 1 : -1];
21609int
21610main ()
21611{
21612
21613  ;
21614  return 0;
21615}
21616_ACEOF
21617if ac_fn_c_try_compile "$LINENO"; then :
21618  ac_cv_sys_file_offset_bits=64; break
21619fi
21620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21621  ac_cv_sys_file_offset_bits=unknown
21622  break
21623done
21624fi
21625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
21626$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
21627case $ac_cv_sys_file_offset_bits in #(
21628  no | unknown) ;;
21629  *)
21630cat >>confdefs.h <<_ACEOF
21631#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
21632_ACEOF
21633;;
21634esac
21635rm -rf conftest*
21636  if test $ac_cv_sys_file_offset_bits = unknown; then
21637    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
21638$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
21639if ${ac_cv_sys_large_files+:} false; then :
21640  $as_echo_n "(cached) " >&6
21641else
21642  while :; do
21643  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21644/* end confdefs.h.  */
21645#include <sys/types.h>
21646 /* Check that off_t can represent 2**63 - 1 correctly.
21647    We can't simply define LARGE_OFF_T to be 9223372036854775807,
21648    since some C++ compilers masquerading as C compilers
21649    incorrectly reject 9223372036854775807.  */
21650#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
21651  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21652		       && LARGE_OFF_T % 2147483647 == 1)
21653		      ? 1 : -1];
21654int
21655main ()
21656{
21657
21658  ;
21659  return 0;
21660}
21661_ACEOF
21662if ac_fn_c_try_compile "$LINENO"; then :
21663  ac_cv_sys_large_files=no; break
21664fi
21665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21666  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21667/* end confdefs.h.  */
21668#define _LARGE_FILES 1
21669#include <sys/types.h>
21670 /* Check that off_t can represent 2**63 - 1 correctly.
21671    We can't simply define LARGE_OFF_T to be 9223372036854775807,
21672    since some C++ compilers masquerading as C compilers
21673    incorrectly reject 9223372036854775807.  */
21674#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
21675  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21676		       && LARGE_OFF_T % 2147483647 == 1)
21677		      ? 1 : -1];
21678int
21679main ()
21680{
21681
21682  ;
21683  return 0;
21684}
21685_ACEOF
21686if ac_fn_c_try_compile "$LINENO"; then :
21687  ac_cv_sys_large_files=1; break
21688fi
21689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21690  ac_cv_sys_large_files=unknown
21691  break
21692done
21693fi
21694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
21695$as_echo "$ac_cv_sys_large_files" >&6; }
21696case $ac_cv_sys_large_files in #(
21697  no | unknown) ;;
21698  *)
21699cat >>confdefs.h <<_ACEOF
21700#define _LARGE_FILES $ac_cv_sys_large_files
21701_ACEOF
21702;;
21703esac
21704rm -rf conftest*
21705  fi
21706
21707
21708fi
21709
21710
21711
21712if test -n "$ac_tool_prefix"; then
21713  # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
21714set dummy ${ac_tool_prefix}cpp; ac_word=$2
21715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21716$as_echo_n "checking for $ac_word... " >&6; }
21717if ${ac_cv_path_RAWCPP+:} false; then :
21718  $as_echo_n "(cached) " >&6
21719else
21720  case $RAWCPP in
21721  [\\/]* | ?:[\\/]*)
21722  ac_cv_path_RAWCPP="$RAWCPP" # Let the user override the test with a path.
21723  ;;
21724  *)
21725  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21726as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib"
21727for as_dir in $as_dummy
21728do
21729  IFS=$as_save_IFS
21730  test -z "$as_dir" && as_dir=.
21731    for ac_exec_ext in '' $ac_executable_extensions; do
21732  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21733    ac_cv_path_RAWCPP="$as_dir/$ac_word$ac_exec_ext"
21734    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21735    break 2
21736  fi
21737done
21738  done
21739IFS=$as_save_IFS
21740
21741  ;;
21742esac
21743fi
21744RAWCPP=$ac_cv_path_RAWCPP
21745if test -n "$RAWCPP"; then
21746  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RAWCPP" >&5
21747$as_echo "$RAWCPP" >&6; }
21748else
21749  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21750$as_echo "no" >&6; }
21751fi
21752
21753
21754fi
21755if test -z "$ac_cv_path_RAWCPP"; then
21756  ac_pt_RAWCPP=$RAWCPP
21757  # Extract the first word of "cpp", so it can be a program name with args.
21758set dummy cpp; ac_word=$2
21759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21760$as_echo_n "checking for $ac_word... " >&6; }
21761if ${ac_cv_path_ac_pt_RAWCPP+:} false; then :
21762  $as_echo_n "(cached) " >&6
21763else
21764  case $ac_pt_RAWCPP in
21765  [\\/]* | ?:[\\/]*)
21766  ac_cv_path_ac_pt_RAWCPP="$ac_pt_RAWCPP" # Let the user override the test with a path.
21767  ;;
21768  *)
21769  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21770as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib"
21771for as_dir in $as_dummy
21772do
21773  IFS=$as_save_IFS
21774  test -z "$as_dir" && as_dir=.
21775    for ac_exec_ext in '' $ac_executable_extensions; do
21776  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21777    ac_cv_path_ac_pt_RAWCPP="$as_dir/$ac_word$ac_exec_ext"
21778    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21779    break 2
21780  fi
21781done
21782  done
21783IFS=$as_save_IFS
21784
21785  ;;
21786esac
21787fi
21788ac_pt_RAWCPP=$ac_cv_path_ac_pt_RAWCPP
21789if test -n "$ac_pt_RAWCPP"; then
21790  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_RAWCPP" >&5
21791$as_echo "$ac_pt_RAWCPP" >&6; }
21792else
21793  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21794$as_echo "no" >&6; }
21795fi
21796
21797  if test "x$ac_pt_RAWCPP" = x; then
21798    RAWCPP="${CPP}"
21799  else
21800    case $cross_compiling:$ac_tool_warned in
21801yes:)
21802{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21803$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21804ac_tool_warned=yes ;;
21805esac
21806    RAWCPP=$ac_pt_RAWCPP
21807  fi
21808else
21809  RAWCPP="$ac_cv_path_RAWCPP"
21810fi
21811
21812
21813# Check for flag to avoid builtin definitions - assumes unix is predefined,
21814# which is not the best choice for supporting other OS'es, but covers most
21815# of the ones we need for now.
21816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -undef" >&5
21817$as_echo_n "checking if $RAWCPP requires -undef... " >&6; }
21818cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21819/* end confdefs.h.  */
21820Does cpp redefine unix ?
21821_ACEOF
21822if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
21823	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21824$as_echo "no" >&6; }
21825else
21826	if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
21827		RAWCPPFLAGS=-undef
21828		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21829$as_echo "yes" >&6; }
21830	# under Cygwin unix is still defined even with -undef
21831	elif test `${RAWCPP} -undef -ansi < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
21832		RAWCPPFLAGS="-undef -ansi"
21833		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, with -ansi" >&5
21834$as_echo "yes, with -ansi" >&6; }
21835	else
21836		as_fn_error $? "${RAWCPP} defines unix with or without -undef.  I don't know what to do." "$LINENO" 5
21837	fi
21838fi
21839rm -f conftest.$ac_ext
21840
21841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -traditional" >&5
21842$as_echo_n "checking if $RAWCPP requires -traditional... " >&6; }
21843cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21844/* end confdefs.h.  */
21845Does cpp preserve   "whitespace"?
21846_ACEOF
21847if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve   \"'` -eq 1 ; then
21848	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21849$as_echo "no" >&6; }
21850else
21851	if true; then
21852		TRADITIONALCPPFLAGS="-traditional"
21853		RAWCPPFLAGS="${RAWCPPFLAGS} -traditional"
21854		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21855$as_echo "yes" >&6; }
21856	else
21857		as_fn_error $? "${RAWCPP} does not preserve whitespace with or without -traditional.  I don't know what to do." "$LINENO" 5
21858	fi
21859fi
21860rm -f conftest.$ac_ext
21861
21862
21863
21864
21865# Quoted so that make will expand $(CWARNFLAGS) in makefiles to allow
21866# easier overrides at build time.
21867XSERVER_CFLAGS='$(CWARNFLAGS)'
21868
21869if  test "x$GCC" = xyes ; then
21870    XSERVER_CFLAGS="$XSERVER_CFLAGS -fno-strict-aliasing"
21871fi
21872
21873
21874# Check whether --with-dtrace was given.
21875if test "${with_dtrace+set}" = set; then :
21876  withval=$with_dtrace; WDTRACE=$withval
21877else
21878  WDTRACE=auto
21879fi
21880
21881if test "x$WDTRACE" = "xyes" -o "x$WDTRACE" = "xauto" ; then
21882	# Extract the first word of "dtrace", so it can be a program name with args.
21883set dummy dtrace; ac_word=$2
21884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21885$as_echo_n "checking for $ac_word... " >&6; }
21886if ${ac_cv_path_DTRACE+:} false; then :
21887  $as_echo_n "(cached) " >&6
21888else
21889  case $DTRACE in
21890  [\\/]* | ?:[\\/]*)
21891  ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path.
21892  ;;
21893  *)
21894  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21895as_dummy="$PATH:/usr/sbin"
21896for as_dir in $as_dummy
21897do
21898  IFS=$as_save_IFS
21899  test -z "$as_dir" && as_dir=.
21900    for ac_exec_ext in '' $ac_executable_extensions; do
21901  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21902    ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext"
21903    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21904    break 2
21905  fi
21906done
21907  done
21908IFS=$as_save_IFS
21909
21910  test -z "$ac_cv_path_DTRACE" && ac_cv_path_DTRACE="not_found"
21911  ;;
21912esac
21913fi
21914DTRACE=$ac_cv_path_DTRACE
21915if test -n "$DTRACE"; then
21916  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
21917$as_echo "$DTRACE" >&6; }
21918else
21919  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21920$as_echo "no" >&6; }
21921fi
21922
21923
21924	if test "x$DTRACE" = "xnot_found" ; then
21925		if test "x$WDTRACE" = "xyes" ; then
21926			{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21927$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21928as_fn_error $? "dtrace requested but not found
21929See \`config.log' for more details" "$LINENO" 5; }
21930		fi
21931		WDTRACE="no"
21932	else
21933		ac_fn_c_check_header_mongrel "$LINENO" "sys/sdt.h" "ac_cv_header_sys_sdt_h" "$ac_includes_default"
21934if test "x$ac_cv_header_sys_sdt_h" = xyes; then :
21935  HAS_SDT_H="yes"
21936else
21937  HAS_SDT_H="no"
21938fi
21939
21940
21941		if test "x$WDTRACE" = "xauto" -a "x$HAS_SDT_H" = "xno" ; then
21942			WDTRACE="no"
21943		fi
21944	fi
21945fi
21946if test "x$WDTRACE" != "xno" ; then
21947
21948$as_echo "#define XSERVER_DTRACE 1" >>confdefs.h
21949
21950
21951# Solaris/OpenSolaris require dtrace -G to build dtrace probe information into
21952# object files, and require linking with those as relocatable objects, not .a
21953# archives. MacOS X handles all this in the normal compiler toolchain, and on
21954# some releases (like Tiger), will error out on dtrace -G.  For now, other
21955# platforms with Dtrace ports are assumed to support -G (the FreeBSD and Linux
21956# ports appear to, based on my web searches, but have not yet been tested).
21957	case $host_os in
21958		darwin*)	SPECIAL_DTRACE_OBJECTS=no ;;
21959		*)		SPECIAL_DTRACE_OBJECTS=yes ;;
21960	esac
21961fi
21962 if test "x$WDTRACE" != "xno"; then
21963  XSERVER_DTRACE_TRUE=
21964  XSERVER_DTRACE_FALSE='#'
21965else
21966  XSERVER_DTRACE_TRUE='#'
21967  XSERVER_DTRACE_FALSE=
21968fi
21969
21970 if test "x$SPECIAL_DTRACE_OBJECTS" = "xyes"; then
21971  SPECIAL_DTRACE_OBJECTS_TRUE=
21972  SPECIAL_DTRACE_OBJECTS_FALSE='#'
21973else
21974  SPECIAL_DTRACE_OBJECTS_TRUE='#'
21975  SPECIAL_DTRACE_OBJECTS_FALSE=
21976fi
21977
21978
21979ac_header_dirent=no
21980for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21981  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
21982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
21983$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
21984if eval \${$as_ac_Header+:} false; then :
21985  $as_echo_n "(cached) " >&6
21986else
21987  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21988/* end confdefs.h.  */
21989#include <sys/types.h>
21990#include <$ac_hdr>
21991
21992int
21993main ()
21994{
21995if ((DIR *) 0)
21996return 0;
21997  ;
21998  return 0;
21999}
22000_ACEOF
22001if ac_fn_c_try_compile "$LINENO"; then :
22002  eval "$as_ac_Header=yes"
22003else
22004  eval "$as_ac_Header=no"
22005fi
22006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22007fi
22008eval ac_res=\$$as_ac_Header
22009	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22010$as_echo "$ac_res" >&6; }
22011if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22012  cat >>confdefs.h <<_ACEOF
22013#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22014_ACEOF
22015
22016ac_header_dirent=$ac_hdr; break
22017fi
22018
22019done
22020# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22021if test $ac_header_dirent = dirent.h; then
22022  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
22023$as_echo_n "checking for library containing opendir... " >&6; }
22024if ${ac_cv_search_opendir+:} false; then :
22025  $as_echo_n "(cached) " >&6
22026else
22027  ac_func_search_save_LIBS=$LIBS
22028cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22029/* end confdefs.h.  */
22030
22031/* Override any GCC internal prototype to avoid an error.
22032   Use char because int might match the return type of a GCC
22033   builtin and then its argument prototype would still apply.  */
22034#ifdef __cplusplus
22035extern "C"
22036#endif
22037char opendir ();
22038int
22039main ()
22040{
22041return opendir ();
22042  ;
22043  return 0;
22044}
22045_ACEOF
22046for ac_lib in '' dir; do
22047  if test -z "$ac_lib"; then
22048    ac_res="none required"
22049  else
22050    ac_res=-l$ac_lib
22051    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22052  fi
22053  if ac_fn_c_try_link "$LINENO"; then :
22054  ac_cv_search_opendir=$ac_res
22055fi
22056rm -f core conftest.err conftest.$ac_objext \
22057    conftest$ac_exeext
22058  if ${ac_cv_search_opendir+:} false; then :
22059  break
22060fi
22061done
22062if ${ac_cv_search_opendir+:} false; then :
22063
22064else
22065  ac_cv_search_opendir=no
22066fi
22067rm conftest.$ac_ext
22068LIBS=$ac_func_search_save_LIBS
22069fi
22070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
22071$as_echo "$ac_cv_search_opendir" >&6; }
22072ac_res=$ac_cv_search_opendir
22073if test "$ac_res" != no; then :
22074  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22075
22076fi
22077
22078else
22079  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
22080$as_echo_n "checking for library containing opendir... " >&6; }
22081if ${ac_cv_search_opendir+:} false; then :
22082  $as_echo_n "(cached) " >&6
22083else
22084  ac_func_search_save_LIBS=$LIBS
22085cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22086/* end confdefs.h.  */
22087
22088/* Override any GCC internal prototype to avoid an error.
22089   Use char because int might match the return type of a GCC
22090   builtin and then its argument prototype would still apply.  */
22091#ifdef __cplusplus
22092extern "C"
22093#endif
22094char opendir ();
22095int
22096main ()
22097{
22098return opendir ();
22099  ;
22100  return 0;
22101}
22102_ACEOF
22103for ac_lib in '' x; do
22104  if test -z "$ac_lib"; then
22105    ac_res="none required"
22106  else
22107    ac_res=-l$ac_lib
22108    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22109  fi
22110  if ac_fn_c_try_link "$LINENO"; then :
22111  ac_cv_search_opendir=$ac_res
22112fi
22113rm -f core conftest.err conftest.$ac_objext \
22114    conftest$ac_exeext
22115  if ${ac_cv_search_opendir+:} false; then :
22116  break
22117fi
22118done
22119if ${ac_cv_search_opendir+:} false; then :
22120
22121else
22122  ac_cv_search_opendir=no
22123fi
22124rm conftest.$ac_ext
22125LIBS=$ac_func_search_save_LIBS
22126fi
22127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
22128$as_echo "$ac_cv_search_opendir" >&6; }
22129ac_res=$ac_cv_search_opendir
22130if test "$ac_res" != no; then :
22131  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22132
22133fi
22134
22135fi
22136
22137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
22138$as_echo_n "checking for ANSI C header files... " >&6; }
22139if ${ac_cv_header_stdc+:} false; then :
22140  $as_echo_n "(cached) " >&6
22141else
22142  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22143/* end confdefs.h.  */
22144#include <stdlib.h>
22145#include <stdarg.h>
22146#include <string.h>
22147#include <float.h>
22148
22149int
22150main ()
22151{
22152
22153  ;
22154  return 0;
22155}
22156_ACEOF
22157if ac_fn_c_try_compile "$LINENO"; then :
22158  ac_cv_header_stdc=yes
22159else
22160  ac_cv_header_stdc=no
22161fi
22162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22163
22164if test $ac_cv_header_stdc = yes; then
22165  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
22166  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22167/* end confdefs.h.  */
22168#include <string.h>
22169
22170_ACEOF
22171if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22172  $EGREP "memchr" >/dev/null 2>&1; then :
22173
22174else
22175  ac_cv_header_stdc=no
22176fi
22177rm -f conftest*
22178
22179fi
22180
22181if test $ac_cv_header_stdc = yes; then
22182  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
22183  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22184/* end confdefs.h.  */
22185#include <stdlib.h>
22186
22187_ACEOF
22188if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22189  $EGREP "free" >/dev/null 2>&1; then :
22190
22191else
22192  ac_cv_header_stdc=no
22193fi
22194rm -f conftest*
22195
22196fi
22197
22198if test $ac_cv_header_stdc = yes; then
22199  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
22200  if test "$cross_compiling" = yes; then :
22201  :
22202else
22203  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22204/* end confdefs.h.  */
22205#include <ctype.h>
22206#include <stdlib.h>
22207#if ((' ' & 0x0FF) == 0x020)
22208# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
22209# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
22210#else
22211# define ISLOWER(c) \
22212		   (('a' <= (c) && (c) <= 'i') \
22213		     || ('j' <= (c) && (c) <= 'r') \
22214		     || ('s' <= (c) && (c) <= 'z'))
22215# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
22216#endif
22217
22218#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
22219int
22220main ()
22221{
22222  int i;
22223  for (i = 0; i < 256; i++)
22224    if (XOR (islower (i), ISLOWER (i))
22225	|| toupper (i) != TOUPPER (i))
22226      return 2;
22227  return 0;
22228}
22229_ACEOF
22230if ac_fn_c_try_run "$LINENO"; then :
22231
22232else
22233  ac_cv_header_stdc=no
22234fi
22235rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22236  conftest.$ac_objext conftest.beam conftest.$ac_ext
22237fi
22238
22239fi
22240fi
22241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
22242$as_echo "$ac_cv_header_stdc" >&6; }
22243if test $ac_cv_header_stdc = yes; then
22244
22245$as_echo "#define STDC_HEADERS 1" >>confdefs.h
22246
22247fi
22248
22249for ac_header in fcntl.h stdlib.h string.h unistd.h dlfcn.h stropts.h \
22250 fnmatch.h sys/mkdev.h sys/sysmacros.h sys/utsname.h
22251do :
22252  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22253ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22254if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22255  cat >>confdefs.h <<_ACEOF
22256#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22257_ACEOF
22258
22259fi
22260
22261done
22262
22263
22264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
22265$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
22266if ${ac_cv_c_const+:} false; then :
22267  $as_echo_n "(cached) " >&6
22268else
22269  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22270/* end confdefs.h.  */
22271
22272int
22273main ()
22274{
22275
22276#ifndef __cplusplus
22277  /* Ultrix mips cc rejects this sort of thing.  */
22278  typedef int charset[2];
22279  const charset cs = { 0, 0 };
22280  /* SunOS 4.1.1 cc rejects this.  */
22281  char const *const *pcpcc;
22282  char **ppc;
22283  /* NEC SVR4.0.2 mips cc rejects this.  */
22284  struct point {int x, y;};
22285  static struct point const zero = {0,0};
22286  /* AIX XL C 1.02.0.0 rejects this.
22287     It does not let you subtract one const X* pointer from another in
22288     an arm of an if-expression whose if-part is not a constant
22289     expression */
22290  const char *g = "string";
22291  pcpcc = &g + (g ? g-g : 0);
22292  /* HPUX 7.0 cc rejects these. */
22293  ++pcpcc;
22294  ppc = (char**) pcpcc;
22295  pcpcc = (char const *const *) ppc;
22296  { /* SCO 3.2v4 cc rejects this sort of thing.  */
22297    char tx;
22298    char *t = &tx;
22299    char const *s = 0 ? (char *) 0 : (char const *) 0;
22300
22301    *t++ = 0;
22302    if (s) return 0;
22303  }
22304  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
22305    int x[] = {25, 17};
22306    const int *foo = &x[0];
22307    ++foo;
22308  }
22309  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22310    typedef const int *iptr;
22311    iptr p = 0;
22312    ++p;
22313  }
22314  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
22315       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22316    struct s { int j; const int *ap[3]; } bx;
22317    struct s *b = &bx; b->j = 5;
22318  }
22319  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22320    const int foo = 10;
22321    if (!foo) return 0;
22322  }
22323  return !cs[0] && !zero.x;
22324#endif
22325
22326  ;
22327  return 0;
22328}
22329_ACEOF
22330if ac_fn_c_try_compile "$LINENO"; then :
22331  ac_cv_c_const=yes
22332else
22333  ac_cv_c_const=no
22334fi
22335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22336fi
22337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
22338$as_echo "$ac_cv_c_const" >&6; }
22339if test $ac_cv_c_const = no; then
22340
22341$as_echo "#define const /**/" >>confdefs.h
22342
22343fi
22344
22345
22346  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeof syntax and keyword spelling" >&5
22347$as_echo_n "checking for typeof syntax and keyword spelling... " >&6; }
22348if ${ac_cv_c_typeof+:} false; then :
22349  $as_echo_n "(cached) " >&6
22350else
22351  ac_cv_c_typeof=no
22352     for ac_kw in typeof __typeof__ no; do
22353       test $ac_kw = no && break
22354       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22355/* end confdefs.h.  */
22356
22357int
22358main ()
22359{
22360
22361	   int value;
22362	   typedef struct {
22363		   char a [1
22364			   + ! (($ac_kw (value))
22365				(($ac_kw (value)) 0 < ($ac_kw (value)) -1
22366				 ? ($ac_kw (value)) - 1
22367				 : ~ (~ ($ac_kw (value)) 0
22368				      << sizeof ($ac_kw (value)))))]; }
22369	      ac__typeof_type_;
22370	   return
22371	     (! ((void) ((ac__typeof_type_ *) 0), 0));
22372
22373  ;
22374  return 0;
22375}
22376_ACEOF
22377if ac_fn_c_try_compile "$LINENO"; then :
22378  ac_cv_c_typeof=$ac_kw
22379fi
22380rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22381       test $ac_cv_c_typeof != no && break
22382     done
22383fi
22384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_typeof" >&5
22385$as_echo "$ac_cv_c_typeof" >&6; }
22386  if test $ac_cv_c_typeof != no; then
22387
22388$as_echo "#define HAVE_TYPEOF 1" >>confdefs.h
22389
22390    if test $ac_cv_c_typeof != typeof; then
22391
22392cat >>confdefs.h <<_ACEOF
22393#define typeof $ac_cv_c_typeof
22394_ACEOF
22395
22396    fi
22397  fi
22398
22399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
22400$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
22401if ${ac_cv_c_bigendian+:} false; then :
22402  $as_echo_n "(cached) " >&6
22403else
22404  ac_cv_c_bigendian=unknown
22405    # See if we're dealing with a universal compiler.
22406    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22407/* end confdefs.h.  */
22408#ifndef __APPLE_CC__
22409	       not a universal capable compiler
22410	     #endif
22411	     typedef int dummy;
22412
22413_ACEOF
22414if ac_fn_c_try_compile "$LINENO"; then :
22415
22416	# Check for potential -arch flags.  It is not universal unless
22417	# there are at least two -arch flags with different values.
22418	ac_arch=
22419	ac_prev=
22420	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
22421	 if test -n "$ac_prev"; then
22422	   case $ac_word in
22423	     i?86 | x86_64 | ppc | ppc64)
22424	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
22425		 ac_arch=$ac_word
22426	       else
22427		 ac_cv_c_bigendian=universal
22428		 break
22429	       fi
22430	       ;;
22431	   esac
22432	   ac_prev=
22433	 elif test "x$ac_word" = "x-arch"; then
22434	   ac_prev=arch
22435	 fi
22436       done
22437fi
22438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22439    if test $ac_cv_c_bigendian = unknown; then
22440      # See if sys/param.h defines the BYTE_ORDER macro.
22441      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22442/* end confdefs.h.  */
22443#include <sys/types.h>
22444	     #include <sys/param.h>
22445
22446int
22447main ()
22448{
22449#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22450		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22451		     && LITTLE_ENDIAN)
22452	      bogus endian macros
22453	     #endif
22454
22455  ;
22456  return 0;
22457}
22458_ACEOF
22459if ac_fn_c_try_compile "$LINENO"; then :
22460  # It does; now see whether it defined to BIG_ENDIAN or not.
22461	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22462/* end confdefs.h.  */
22463#include <sys/types.h>
22464		#include <sys/param.h>
22465
22466int
22467main ()
22468{
22469#if BYTE_ORDER != BIG_ENDIAN
22470		 not big endian
22471		#endif
22472
22473  ;
22474  return 0;
22475}
22476_ACEOF
22477if ac_fn_c_try_compile "$LINENO"; then :
22478  ac_cv_c_bigendian=yes
22479else
22480  ac_cv_c_bigendian=no
22481fi
22482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22483fi
22484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22485    fi
22486    if test $ac_cv_c_bigendian = unknown; then
22487      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
22488      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22489/* end confdefs.h.  */
22490#include <limits.h>
22491
22492int
22493main ()
22494{
22495#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
22496	      bogus endian macros
22497	     #endif
22498
22499  ;
22500  return 0;
22501}
22502_ACEOF
22503if ac_fn_c_try_compile "$LINENO"; then :
22504  # It does; now see whether it defined to _BIG_ENDIAN or not.
22505	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22506/* end confdefs.h.  */
22507#include <limits.h>
22508
22509int
22510main ()
22511{
22512#ifndef _BIG_ENDIAN
22513		 not big endian
22514		#endif
22515
22516  ;
22517  return 0;
22518}
22519_ACEOF
22520if ac_fn_c_try_compile "$LINENO"; then :
22521  ac_cv_c_bigendian=yes
22522else
22523  ac_cv_c_bigendian=no
22524fi
22525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22526fi
22527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22528    fi
22529    if test $ac_cv_c_bigendian = unknown; then
22530      # Compile a test program.
22531      if test "$cross_compiling" = yes; then :
22532  # Try to guess by grepping values from an object file.
22533	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22534/* end confdefs.h.  */
22535short int ascii_mm[] =
22536		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22537		short int ascii_ii[] =
22538		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22539		int use_ascii (int i) {
22540		  return ascii_mm[i] + ascii_ii[i];
22541		}
22542		short int ebcdic_ii[] =
22543		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22544		short int ebcdic_mm[] =
22545		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22546		int use_ebcdic (int i) {
22547		  return ebcdic_mm[i] + ebcdic_ii[i];
22548		}
22549		extern int foo;
22550
22551int
22552main ()
22553{
22554return use_ascii (foo) == use_ebcdic (foo);
22555  ;
22556  return 0;
22557}
22558_ACEOF
22559if ac_fn_c_try_compile "$LINENO"; then :
22560  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
22561	      ac_cv_c_bigendian=yes
22562	    fi
22563	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22564	      if test "$ac_cv_c_bigendian" = unknown; then
22565		ac_cv_c_bigendian=no
22566	      else
22567		# finding both strings is unlikely to happen, but who knows?
22568		ac_cv_c_bigendian=unknown
22569	      fi
22570	    fi
22571fi
22572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22573else
22574  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22575/* end confdefs.h.  */
22576$ac_includes_default
22577int
22578main ()
22579{
22580
22581	     /* Are we little or big endian?  From Harbison&Steele.  */
22582	     union
22583	     {
22584	       long int l;
22585	       char c[sizeof (long int)];
22586	     } u;
22587	     u.l = 1;
22588	     return u.c[sizeof (long int) - 1] == 1;
22589
22590  ;
22591  return 0;
22592}
22593_ACEOF
22594if ac_fn_c_try_run "$LINENO"; then :
22595  ac_cv_c_bigendian=no
22596else
22597  ac_cv_c_bigendian=yes
22598fi
22599rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22600  conftest.$ac_objext conftest.beam conftest.$ac_ext
22601fi
22602
22603    fi
22604fi
22605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
22606$as_echo "$ac_cv_c_bigendian" >&6; }
22607 case $ac_cv_c_bigendian in #(
22608   yes)
22609
22610$as_echo "#define X_BYTE_ORDER X_BIG_ENDIAN" >>confdefs.h
22611;; #(
22612   no)
22613
22614$as_echo "#define X_BYTE_ORDER X_LITTLE_ENDIAN" >>confdefs.h
22615 ;; #(
22616   universal)
22617
22618$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
22619
22620     ;; #(
22621   *)
22622     as_fn_error $? "unknown endianness
22623 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
22624 esac
22625
22626
22627# The cast to long int works around a bug in the HP C Compiler
22628# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22629# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22630# This bug is HP SR number 8606223364.
22631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
22632$as_echo_n "checking size of unsigned long... " >&6; }
22633if ${ac_cv_sizeof_unsigned_long+:} false; then :
22634  $as_echo_n "(cached) " >&6
22635else
22636  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long"        "$ac_includes_default"; then :
22637
22638else
22639  if test "$ac_cv_type_unsigned_long" = yes; then
22640     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22641$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22642as_fn_error 77 "cannot compute sizeof (unsigned long)
22643See \`config.log' for more details" "$LINENO" 5; }
22644   else
22645     ac_cv_sizeof_unsigned_long=0
22646   fi
22647fi
22648
22649fi
22650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
22651$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
22652
22653
22654
22655cat >>confdefs.h <<_ACEOF
22656#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
22657_ACEOF
22658
22659
22660if test "$ac_cv_sizeof_unsigned_long" = 8; then
22661
22662$as_echo "#define _XSERVER64 1" >>confdefs.h
22663
22664fi
22665
22666ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
22667if test "x$ac_cv_type_pid_t" = xyes; then :
22668
22669else
22670
22671cat >>confdefs.h <<_ACEOF
22672#define pid_t int
22673_ACEOF
22674
22675fi
22676
22677
22678ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
22679if test "x$ac_cv_func_dlopen" = xyes; then :
22680
22681else
22682  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
22683$as_echo_n "checking for dlopen in -ldl... " >&6; }
22684if ${ac_cv_lib_dl_dlopen+:} false; then :
22685  $as_echo_n "(cached) " >&6
22686else
22687  ac_check_lib_save_LIBS=$LIBS
22688LIBS="-ldl  $LIBS"
22689cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22690/* end confdefs.h.  */
22691
22692/* Override any GCC internal prototype to avoid an error.
22693   Use char because int might match the return type of a GCC
22694   builtin and then its argument prototype would still apply.  */
22695#ifdef __cplusplus
22696extern "C"
22697#endif
22698char dlopen ();
22699int
22700main ()
22701{
22702return dlopen ();
22703  ;
22704  return 0;
22705}
22706_ACEOF
22707if ac_fn_c_try_link "$LINENO"; then :
22708  ac_cv_lib_dl_dlopen=yes
22709else
22710  ac_cv_lib_dl_dlopen=no
22711fi
22712rm -f core conftest.err conftest.$ac_objext \
22713    conftest$ac_exeext conftest.$ac_ext
22714LIBS=$ac_check_lib_save_LIBS
22715fi
22716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
22717$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22718if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
22719  DLOPEN_LIBS="-ldl"
22720fi
22721
22722fi
22723
22724
22725
22726for ac_func in backtrace geteuid getuid issetugid getresuid \
22727	getdtablesize getifaddrs getpeereid getpeerucred getprogname getzoneid \
22728	mmap posix_fallocate seteuid shmctl64 strncasecmp vasprintf vsnprintf \
22729	walkcontext setitimer poll epoll_create1 mkostemp memfd_create isastream
22730do :
22731  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22732ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22733if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22734  cat >>confdefs.h <<_ACEOF
22735#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22736_ACEOF
22737
22738fi
22739done
22740
22741
22742ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray"
22743if test "x$ac_cv_func_reallocarray" = xyes; then :
22744  $as_echo "#define HAVE_REALLOCARRAY 1" >>confdefs.h
22745
22746else
22747  case " $LIBOBJS " in
22748  *" reallocarray.$ac_objext "* ) ;;
22749  *) LIBOBJS="$LIBOBJS reallocarray.$ac_objext"
22750 ;;
22751esac
22752
22753fi
22754
22755ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
22756if test "x$ac_cv_func_strcasecmp" = xyes; then :
22757  $as_echo "#define HAVE_STRCASECMP 1" >>confdefs.h
22758
22759else
22760  case " $LIBOBJS " in
22761  *" strcasecmp.$ac_objext "* ) ;;
22762  *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext"
22763 ;;
22764esac
22765
22766fi
22767
22768ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr"
22769if test "x$ac_cv_func_strcasestr" = xyes; then :
22770  $as_echo "#define HAVE_STRCASESTR 1" >>confdefs.h
22771
22772else
22773  case " $LIBOBJS " in
22774  *" strcasestr.$ac_objext "* ) ;;
22775  *) LIBOBJS="$LIBOBJS strcasestr.$ac_objext"
22776 ;;
22777esac
22778
22779fi
22780
22781ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
22782if test "x$ac_cv_func_strlcat" = xyes; then :
22783  $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
22784
22785else
22786  case " $LIBOBJS " in
22787  *" strlcat.$ac_objext "* ) ;;
22788  *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
22789 ;;
22790esac
22791
22792fi
22793
22794ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
22795if test "x$ac_cv_func_strlcpy" = xyes; then :
22796  $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
22797
22798else
22799  case " $LIBOBJS " in
22800  *" strlcpy.$ac_objext "* ) ;;
22801  *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
22802 ;;
22803esac
22804
22805fi
22806
22807ac_fn_c_check_func "$LINENO" "strndup" "ac_cv_func_strndup"
22808if test "x$ac_cv_func_strndup" = xyes; then :
22809  $as_echo "#define HAVE_STRNDUP 1" >>confdefs.h
22810
22811else
22812  case " $LIBOBJS " in
22813  *" strndup.$ac_objext "* ) ;;
22814  *) LIBOBJS="$LIBOBJS strndup.$ac_objext"
22815 ;;
22816esac
22817
22818fi
22819
22820ac_fn_c_check_func "$LINENO" "timingsafe_memcmp" "ac_cv_func_timingsafe_memcmp"
22821if test "x$ac_cv_func_timingsafe_memcmp" = xyes; then :
22822  $as_echo "#define HAVE_TIMINGSAFE_MEMCMP 1" >>confdefs.h
22823
22824else
22825  case " $LIBOBJS " in
22826  *" timingsafe_memcmp.$ac_objext "* ) ;;
22827  *) LIBOBJS="$LIBOBJS timingsafe_memcmp.$ac_objext"
22828 ;;
22829esac
22830
22831fi
22832
22833
22834 if test "x$ac_cv_func_poll" = "xyes"; then
22835  POLL_TRUE=
22836  POLL_FALSE='#'
22837else
22838  POLL_TRUE='#'
22839  POLL_FALSE=
22840fi
22841
22842
22843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for arc4random_buf in -lbsd" >&5
22844$as_echo_n "checking for arc4random_buf in -lbsd... " >&6; }
22845if ${ac_cv_lib_bsd_arc4random_buf+:} false; then :
22846  $as_echo_n "(cached) " >&6
22847else
22848  ac_check_lib_save_LIBS=$LIBS
22849LIBS="-lbsd  $LIBS"
22850cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22851/* end confdefs.h.  */
22852
22853/* Override any GCC internal prototype to avoid an error.
22854   Use char because int might match the return type of a GCC
22855   builtin and then its argument prototype would still apply.  */
22856#ifdef __cplusplus
22857extern "C"
22858#endif
22859char arc4random_buf ();
22860int
22861main ()
22862{
22863return arc4random_buf ();
22864  ;
22865  return 0;
22866}
22867_ACEOF
22868if ac_fn_c_try_link "$LINENO"; then :
22869  ac_cv_lib_bsd_arc4random_buf=yes
22870else
22871  ac_cv_lib_bsd_arc4random_buf=no
22872fi
22873rm -f core conftest.err conftest.$ac_objext \
22874    conftest$ac_exeext conftest.$ac_ext
22875LIBS=$ac_check_lib_save_LIBS
22876fi
22877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_arc4random_buf" >&5
22878$as_echo "$ac_cv_lib_bsd_arc4random_buf" >&6; }
22879if test "x$ac_cv_lib_bsd_arc4random_buf" = xyes; then :
22880  cat >>confdefs.h <<_ACEOF
22881#define HAVE_LIBBSD 1
22882_ACEOF
22883
22884  LIBS="-lbsd $LIBS"
22885
22886fi
22887
22888for ac_func in arc4random_buf
22889do :
22890  ac_fn_c_check_func "$LINENO" "arc4random_buf" "ac_cv_func_arc4random_buf"
22891if test "x$ac_cv_func_arc4random_buf" = xyes; then :
22892  cat >>confdefs.h <<_ACEOF
22893#define HAVE_ARC4RANDOM_BUF 1
22894_ACEOF
22895
22896fi
22897done
22898
22899
22900ac_fn_c_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
22901"
22902if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes; then :
22903  ac_have_decl=1
22904else
22905  ac_have_decl=0
22906fi
22907
22908cat >>confdefs.h <<_ACEOF
22909#define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl
22910_ACEOF
22911
22912
22913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SO_PEERCRED in sys/socket.h" >&5
22914$as_echo_n "checking for SO_PEERCRED in sys/socket.h... " >&6; }
22915if ${xorg_cv_sys_have_so_peercred+:} false; then :
22916  $as_echo_n "(cached) " >&6
22917else
22918  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22919/* end confdefs.h.  */
22920
22921#include <sys/types.h>
22922#include <sys/socket.h>
22923#ifdef SO_PEERCRED
22924yes_have_so_peercred
22925#endif
22926
22927_ACEOF
22928if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22929  $EGREP "yes_have_so_peercred" >/dev/null 2>&1; then :
22930  xorg_cv_sys_have_so_peercred=yes
22931else
22932  xorg_cv_sys_have_so_peercred=no
22933fi
22934rm -f conftest*
22935
22936fi
22937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_sys_have_so_peercred" >&5
22938$as_echo "$xorg_cv_sys_have_so_peercred" >&6; }
22939
22940if test "x$ac_cv_func_getpeereid" = xno && test "x$ac_cv_func_getpeerucred" = xno && test "x$xorg_cv_sys_have_so_peercred" = xno ; then
22941
22942$as_echo "#define NO_LOCAL_CLIENT_CRED 1" >>confdefs.h
22943
22944fi
22945
22946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
22947$as_echo_n "checking for sqrt in -lm... " >&6; }
22948if ${ac_cv_lib_m_sqrt+:} false; then :
22949  $as_echo_n "(cached) " >&6
22950else
22951  ac_check_lib_save_LIBS=$LIBS
22952LIBS="-lm  $LIBS"
22953cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22954/* end confdefs.h.  */
22955
22956/* Override any GCC internal prototype to avoid an error.
22957   Use char because int might match the return type of a GCC
22958   builtin and then its argument prototype would still apply.  */
22959#ifdef __cplusplus
22960extern "C"
22961#endif
22962char sqrt ();
22963int
22964main ()
22965{
22966return sqrt ();
22967  ;
22968  return 0;
22969}
22970_ACEOF
22971if ac_fn_c_try_link "$LINENO"; then :
22972  ac_cv_lib_m_sqrt=yes
22973else
22974  ac_cv_lib_m_sqrt=no
22975fi
22976rm -f core conftest.err conftest.$ac_objext \
22977    conftest$ac_exeext conftest.$ac_ext
22978LIBS=$ac_check_lib_save_LIBS
22979fi
22980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
22981$as_echo "$ac_cv_lib_m_sqrt" >&6; }
22982if test "x$ac_cv_lib_m_sqrt" = xyes; then :
22983  cat >>confdefs.h <<_ACEOF
22984#define HAVE_LIBM 1
22985_ACEOF
22986
22987  LIBS="-lm $LIBS"
22988
22989fi
22990
22991for ac_func in cbrt
22992do :
22993  ac_fn_c_check_func "$LINENO" "cbrt" "ac_cv_func_cbrt"
22994if test "x$ac_cv_func_cbrt" = xyes; then :
22995  cat >>confdefs.h <<_ACEOF
22996#define HAVE_CBRT 1
22997_ACEOF
22998
22999fi
23000done
23001
23002
23003for ac_header in linux/agpgart.h sys/agpio.h sys/agpgart.h
23004do :
23005  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23006ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23007if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23008  cat >>confdefs.h <<_ACEOF
23009#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23010_ACEOF
23011 AGP=yes
23012fi
23013
23014done
23015
23016 if test "x$AGP" = xyes; then
23017  AGP_TRUE=
23018  AGP_FALSE='#'
23019else
23020  AGP_TRUE='#'
23021  AGP_FALSE=
23022fi
23023
23024
23025for ac_header in linux/fb.h
23026do :
23027  ac_fn_c_check_header_mongrel "$LINENO" "linux/fb.h" "ac_cv_header_linux_fb_h" "$ac_includes_default"
23028if test "x$ac_cv_header_linux_fb_h" = xyes; then :
23029  cat >>confdefs.h <<_ACEOF
23030#define HAVE_LINUX_FB_H 1
23031_ACEOF
23032 FBDEV=yes
23033fi
23034
23035done
23036
23037 if test "x$FBDEV" = xyes; then
23038  FBDEVHW_TRUE=
23039  FBDEVHW_FALSE='#'
23040else
23041  FBDEVHW_TRUE='#'
23042  FBDEVHW_FALSE=
23043fi
23044
23045
23046for ac_header in sys/linker.h
23047do :
23048  ac_fn_c_check_header_compile "$LINENO" "sys/linker.h" "ac_cv_header_sys_linker_h" "#include <sys/param.h>
23049"
23050if test "x$ac_cv_header_sys_linker_h" = xyes; then :
23051  cat >>confdefs.h <<_ACEOF
23052#define HAVE_SYS_LINKER_H 1
23053_ACEOF
23054 ac_cv_sys_linker_h=yes
23055else
23056  ac_cv_sys_linker_h=no
23057fi
23058
23059done
23060
23061 if test "x$ac_cv_sys_linker_h" = xyes; then
23062  FREEBSD_KLDLOAD_TRUE=
23063  FREEBSD_KLDLOAD_FALSE='#'
23064else
23065  FREEBSD_KLDLOAD_TRUE='#'
23066  FREEBSD_KLDLOAD_FALSE=
23067fi
23068
23069
23070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSV IPC" >&5
23071$as_echo_n "checking for SYSV IPC... " >&6; }
23072if ${ac_cv_sysv_ipc+:} false; then :
23073  $as_echo_n "(cached) " >&6
23074else
23075  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23076/* end confdefs.h.  */
23077
23078#include <sys/types.h>
23079#include <sys/ipc.h>
23080#include <sys/shm.h>
23081#include <sys/stat.h>
23082
23083int
23084main ()
23085{
23086
23087{
23088    int id;
23089    id = shmget(IPC_PRIVATE, 512, S_IRUSR | S_IWUSR);
23090    if (id < 0) return -1;
23091    return shmctl(id, IPC_RMID, 0);
23092}
23093  ;
23094  return 0;
23095}
23096_ACEOF
23097if ac_fn_c_try_link "$LINENO"; then :
23098  ac_cv_sysv_ipc=yes
23099else
23100  ac_cv_sysv_ipc=no
23101fi
23102rm -f core conftest.err conftest.$ac_objext \
23103    conftest$ac_exeext conftest.$ac_ext
23104fi
23105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sysv_ipc" >&5
23106$as_echo "$ac_cv_sysv_ipc" >&6; }
23107if test "x$ac_cv_sysv_ipc" = xyes; then
23108
23109$as_echo "#define HAVE_SYSV_IPC 1" >>confdefs.h
23110
23111fi
23112
23113if test -c /dev/xf86 ; then
23114
23115$as_echo "#define HAS_APERTURE_DRV 1" >>confdefs.h
23116
23117fi
23118
23119ac_fn_c_check_header_mongrel "$LINENO" "machine/apmvar.h" "ac_cv_header_machine_apmvar_h" "$ac_includes_default"
23120if test "x$ac_cv_header_machine_apmvar_h" = xyes; then :
23121
23122	ac_fn_c_check_header_mongrel "$LINENO" "sys/event.h" "ac_cv_header_sys_event_h" "$ac_includes_default"
23123if test "x$ac_cv_header_sys_event_h" = xyes; then :
23124  ac_cv_BSD_KQUEUE_APM=yes
23125else
23126  ac_cv_BSD_APM=yes
23127fi
23128
23129
23130fi
23131
23132
23133
23134 if test "x$ac_cv_BSD_APM" = xyes; then
23135  BSD_APM_TRUE=
23136  BSD_APM_FALSE='#'
23137else
23138  BSD_APM_TRUE='#'
23139  BSD_APM_FALSE=
23140fi
23141
23142 if test "x$ac_cv_BSD_KQUEUE_APM" = xyes; then
23143  BSD_KQUEUE_APM_TRUE=
23144  BSD_KQUEUE_APM_FALSE='#'
23145else
23146  BSD_KQUEUE_APM_TRUE='#'
23147  BSD_KQUEUE_APM_FALSE=
23148fi
23149
23150
23151ac_fn_c_check_header_mongrel "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default"
23152if test "x$ac_cv_header_execinfo_h" = xyes; then :
23153
23154    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for backtrace in -lc" >&5
23155$as_echo_n "checking for backtrace in -lc... " >&6; }
23156if ${ac_cv_lib_c_backtrace+:} false; then :
23157  $as_echo_n "(cached) " >&6
23158else
23159  ac_check_lib_save_LIBS=$LIBS
23160LIBS="-lc  $LIBS"
23161cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23162/* end confdefs.h.  */
23163
23164/* Override any GCC internal prototype to avoid an error.
23165   Use char because int might match the return type of a GCC
23166   builtin and then its argument prototype would still apply.  */
23167#ifdef __cplusplus
23168extern "C"
23169#endif
23170char backtrace ();
23171int
23172main ()
23173{
23174return backtrace ();
23175  ;
23176  return 0;
23177}
23178_ACEOF
23179if ac_fn_c_try_link "$LINENO"; then :
23180  ac_cv_lib_c_backtrace=yes
23181else
23182  ac_cv_lib_c_backtrace=no
23183fi
23184rm -f core conftest.err conftest.$ac_objext \
23185    conftest$ac_exeext conftest.$ac_ext
23186LIBS=$ac_check_lib_save_LIBS
23187fi
23188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_backtrace" >&5
23189$as_echo "$ac_cv_lib_c_backtrace" >&6; }
23190if test "x$ac_cv_lib_c_backtrace" = xyes; then :
23191
23192
23193$as_echo "#define HAVE_BACKTRACE 1" >>confdefs.h
23194
23195
23196$as_echo "#define HAVE_EXECINFO_H 1" >>confdefs.h
23197
23198
23199fi
23200
23201
23202fi
23203
23204
23205
23206DEFAULT_INT10="x86emu"
23207
23208
23209case $host_cpu in
23210  alpha*)
23211	ALPHA_VIDEO=yes
23212	case $host_os in
23213	        *freebsd*)	SYS_LIBS=-lio ;;
23214		*netbsd*)
23215$as_echo "#define USE_ALPHA_PIO 1" >>confdefs.h
23216 ;;
23217	esac
23218	GLX_ARCH_DEFINES="-D__GLX_ALIGN64 -mieee"
23219	;;
23220  arm*|aarch64*)
23221	ARM_VIDEO=yes
23222	DEFAULT_INT10="stub"
23223	case $host_os in
23224		*freebsd*)	$as_echo "#define USE_DEV_IO 1" >>confdefs.h
23225 ;;
23226	esac
23227	;;
23228  i*86)
23229	I386_VIDEO=yes
23230	case $host_os in
23231		*freebsd*)	$as_echo "#define USE_DEV_IO 1" >>confdefs.h
23232 ;;
23233		*dragonfly*)	$as_echo "#define USE_DEV_IO 1" >>confdefs.h
23234 ;;
23235		*netbsd*)	$as_echo "#define USE_I386_IOPL 1" >>confdefs.h
23236
23237				SYS_LIBS=-li386
23238				;;
23239		*openbsd*)	$as_echo "#define USE_I386_IOPL 1" >>confdefs.h
23240
23241				SYS_LIBS=-li386
23242				;;
23243	esac
23244        ;;
23245  powerpc*)
23246	PPC_VIDEO=yes
23247	case $host_os in
23248		*freebsd*)	DEFAULT_INT10=stub ;;
23249	esac
23250	;;
23251  sparc*)
23252	SPARC64_VIDEO=yes
23253	BSD_ARCH_SOURCES="sparc64_video.c ioperm_noop.c"
23254	GLX_ARCH_DEFINES="-D__GLX_ALIGN64"
23255	;;
23256  x86_64*|amd64*)
23257	I386_VIDEO=yes
23258	case $host_os in
23259		*freebsd*)
23260$as_echo "#define USE_DEV_IO 1" >>confdefs.h
23261 ;;
23262		*dragonfly*)
23263$as_echo "#define USE_DEV_IO 1" >>confdefs.h
23264 ;;
23265		*netbsd*)
23266$as_echo "#define USE_I386_IOPL 1" >>confdefs.h
23267
23268				SYS_LIBS=-lx86_64
23269				;;
23270		*openbsd*)
23271$as_echo "#define USE_AMD64_IOPL 1" >>confdefs.h
23272
23273				SYS_LIBS=-lamd64
23274				;;
23275	esac
23276	GLX_ARCH_DEFINES="-D__GLX_ALIGN64"
23277	;;
23278  ia64*)
23279  	GLX_ARCH_DEFINES="-D__GLX_ALIGN64"
23280	;;
23281  s390*)
23282  	GLX_ARCH_DEFINES="-D__GLX_ALIGN64"
23283	;;
23284esac
23285
23286
23287 if test "x$ALPHA_VIDEO" = xyes; then
23288  ALPHA_VIDEO_TRUE=
23289  ALPHA_VIDEO_FALSE='#'
23290else
23291  ALPHA_VIDEO_TRUE='#'
23292  ALPHA_VIDEO_FALSE=
23293fi
23294
23295 if test "x$ARM_VIDEO" = xyes; then
23296  ARM_VIDEO_TRUE=
23297  ARM_VIDEO_FALSE='#'
23298else
23299  ARM_VIDEO_TRUE='#'
23300  ARM_VIDEO_FALSE=
23301fi
23302
23303 if test "x$I386_VIDEO" = xyes; then
23304  I386_VIDEO_TRUE=
23305  I386_VIDEO_FALSE='#'
23306else
23307  I386_VIDEO_TRUE='#'
23308  I386_VIDEO_FALSE=
23309fi
23310
23311 if test "x$PPC_VIDEO" = xyes; then
23312  PPC_VIDEO_TRUE=
23313  PPC_VIDEO_FALSE='#'
23314else
23315  PPC_VIDEO_TRUE='#'
23316  PPC_VIDEO_FALSE=
23317fi
23318
23319 if test "x$SPARC64_VIDEO" = xyes; then
23320  SPARC64_VIDEO_TRUE=
23321  SPARC64_VIDEO_FALSE='#'
23322else
23323  SPARC64_VIDEO_TRUE='#'
23324  SPARC64_VIDEO_FALSE=
23325fi
23326
23327
23328DRI=no
23329case $host_os in
23330  *freebsd* | *dragonfly*)
23331	case $host_os in
23332		kfreebsd*-gnu) ;;
23333		*)
23334$as_echo "#define CSRG_BASED 1" >>confdefs.h
23335 ;;
23336	esac
23337
23338$as_echo "#define PCCONS_SUPPORT 1" >>confdefs.h
23339
23340
23341$as_echo "#define PCVT_SUPPORT 1" >>confdefs.h
23342
23343
23344$as_echo "#define SYSCONS_SUPPORT 1" >>confdefs.h
23345
23346	DRI=yes
23347	;;
23348  *netbsd*)
23349
23350$as_echo "#define CSRG_BASED 1" >>confdefs.h
23351
23352
23353$as_echo "#define PCCONS_SUPPORT 1" >>confdefs.h
23354
23355
23356$as_echo "#define PCVT_SUPPORT 1" >>confdefs.h
23357
23358
23359$as_echo "#define WSCONS_SUPPORT 1" >>confdefs.h
23360
23361	DRI=yes
23362	;;
23363  *openbsd*)
23364
23365$as_echo "#define CSRG_BASED 1" >>confdefs.h
23366
23367
23368$as_echo "#define PCVT_SUPPORT 1" >>confdefs.h
23369
23370
23371$as_echo "#define WSCONS_SUPPORT 1" >>confdefs.h
23372
23373	;;
23374  *linux*)
23375	DRI=yes
23376	;;
23377  *solaris*)
23378	DRI=yes
23379	;;
23380  darwin*)
23381
23382$as_echo "#define CSRG_BASED 1" >>confdefs.h
23383
23384	;;
23385  cygwin*|mingw*)
23386	CFLAGS="$CFLAGS -DFD_SETSIZE=512"
23387	;;
23388esac
23389
23390PVMAJOR=`echo $PACKAGE_VERSION | cut -d . -f 1`
23391PVS=`echo $PACKAGE_VERSION | cut -d . -f 4 | cut -d - -f 1`
23392if test "x$PVS" = "x"; then
23393	PVS="0"
23394fi
23395
23396VENDOR_RELEASE="((($PVMAJOR) * 10000000) + (($PVM) * 100000) + (($PVP) * 1000) + $PVS)"
23397VENDOR_MAN_VERSION="Version ${PACKAGE_VERSION}"
23398
23399VENDOR_NAME="The X.Org Foundation"
23400VENDOR_NAME_SHORT="X.Org"
23401VENDOR_WEB="http://wiki.x.org"
23402
23403# Check whether --enable-werror was given.
23404if test "${enable_werror+set}" = set; then :
23405  enableval=$enable_werror; as_fn_error $? "--enable-werror has been replaced by --enable-strict-compilation" "$LINENO" 5
23406fi
23407
23408
23409# Check whether --enable-debug was given.
23410if test "${enable_debug+set}" = set; then :
23411  enableval=$enable_debug; DEBUGGING=$enableval
23412else
23413  DEBUGGING=no
23414fi
23415
23416
23417# Check whether --with-int10 was given.
23418if test "${with_int10+set}" = set; then :
23419  withval=$with_int10; INT10="$withval"
23420else
23421  INT10="$DEFAULT_INT10"
23422fi
23423
23424
23425# Check whether --with-vendor-name was given.
23426if test "${with_vendor_name+set}" = set; then :
23427  withval=$with_vendor_name;  VENDOR_NAME="$withval"
23428fi
23429
23430
23431# Check whether --with-vendor-name-short was given.
23432if test "${with_vendor_name_short+set}" = set; then :
23433  withval=$with_vendor_name_short;  VENDOR_NAME_SHORT="$withval"
23434fi
23435
23436
23437# Check whether --with-vendor-web was given.
23438if test "${with_vendor_web+set}" = set; then :
23439  withval=$with_vendor_web;  VENDOR_WEB="$withval"
23440fi
23441
23442
23443# Check whether --with-module-dir was given.
23444if test "${with_module_dir+set}" = set; then :
23445  withval=$with_module_dir;  moduledir="$withval"
23446else
23447   moduledir="${libdir}/xorg/modules"
23448fi
23449
23450
23451# Check whether --with-log-dir was given.
23452if test "${with_log_dir+set}" = set; then :
23453  withval=$with_log_dir;  logdir="$withval"
23454else
23455   logdir="$localstatedir/log"
23456fi
23457
23458
23459# Check whether --with-builder-addr was given.
23460if test "${with_builder_addr+set}" = set; then :
23461  withval=$with_builder_addr;  BUILDERADDR="$withval"
23462else
23463   BUILDERADDR="xorg@lists.freedesktop.org"
23464fi
23465
23466
23467# Check whether --with-os-name was given.
23468if test "${with_os_name+set}" = set; then :
23469  withval=$with_os_name;  OSNAME="$withval"
23470else
23471   OSNAME=`uname -srm`
23472fi
23473
23474
23475# Check whether --with-os-vendor was given.
23476if test "${with_os_vendor+set}" = set; then :
23477  withval=$with_os_vendor;  OSVENDOR="$withval"
23478else
23479   OSVENDOR=""
23480fi
23481
23482
23483# Check whether --with-builderstring was given.
23484if test "${with_builderstring+set}" = set; then :
23485  withval=$with_builderstring;  BUILDERSTRING="$withval"
23486
23487fi
23488
23489# Check whether --enable-listen-tcp was given.
23490if test "${enable_listen_tcp+set}" = set; then :
23491  enableval=$enable_listen_tcp; LISTEN_TCP=$enableval
23492else
23493  LISTEN_TCP=no
23494fi
23495
23496# Check whether --enable-listen-unix was given.
23497if test "${enable_listen_unix+set}" = set; then :
23498  enableval=$enable_listen_unix; LISTEN_UNIX=$enableval
23499else
23500  LISTEN_UNIX=yes
23501fi
23502
23503
23504# Check whether --enable-listen-local was given.
23505if test "${enable_listen_local+set}" = set; then :
23506  enableval=$enable_listen_local; LISTEN_LOCAL=$enableval
23507else
23508  LISTEN_LOCAL=yes
23509fi
23510
23511
23512case $host_os in
23513    linux*)
23514        FALLBACK_INPUT_DRIVER="libinput"
23515        ;;
23516    *)
23517        FALLBACK_INPUT_DRIVER=""
23518        ;;
23519esac
23520
23521# Check whether --with-fallback-input-driver was given.
23522if test "${with_fallback_input_driver+set}" = set; then :
23523  withval=$with_fallback_input_driver;  FALLBACK_INPUT_DRIVER=$withval
23524fi
23525
23526if test "x$FALLBACK_INPUT_DRIVER" = "xno"; then
23527    FALLBACK_INPUT_DRIVER=""
23528fi
23529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fallback input driver" >&5
23530$as_echo_n "checking for fallback input driver... " >&6; }
23531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $FALLBACK_INPUT_DRIVER" >&5
23532$as_echo "$FALLBACK_INPUT_DRIVER" >&6; }
23533
23534cat >>confdefs.h <<_ACEOF
23535#define FALLBACK_INPUT_DRIVER "$FALLBACK_INPUT_DRIVER"
23536_ACEOF
23537
23538
23539
23540
23541
23542	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for root directory for font files" >&5
23543$as_echo_n "checking for root directory for font files... " >&6; }
23544
23545# Check whether --with-fontrootdir was given.
23546if test "${with_fontrootdir+set}" = set; then :
23547  withval=$with_fontrootdir; FONTROOTDIR="$withval"
23548fi
23549
23550	# if --with-fontrootdir not specified...
23551	if test "x${FONTROOTDIR}" = "x"; then
23552		FONTROOTDIR=`$PKG_CONFIG --variable=fontrootdir fontutil`
23553	fi
23554	# ...and if pkg-config didn't find fontdir in fontutil.pc...
23555	if test "x${FONTROOTDIR}" = "x"; then
23556		FONTROOTDIR="${datadir}/fonts/X11"
23557	fi
23558
23559	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONTROOTDIR}" >&5
23560$as_echo "${FONTROOTDIR}" >&6; }
23561
23562
23563
23564
23565	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory for misc files" >&5
23566$as_echo_n "checking for directory for misc files... " >&6; }
23567
23568# Check whether --with-fontmiscdir was given.
23569if test "${with_fontmiscdir+set}" = set; then :
23570  withval=$with_fontmiscdir; FONTMISCDIR="${withval}"
23571else
23572  FONTMISCDIR='${FONTROOTDIR}/misc'
23573fi
23574
23575
23576	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONTMISCDIR}" >&5
23577$as_echo "${FONTMISCDIR}" >&6; }
23578
23579
23580
23581
23582	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory for OTF files" >&5
23583$as_echo_n "checking for directory for OTF files... " >&6; }
23584
23585# Check whether --with-fontotfdir was given.
23586if test "${with_fontotfdir+set}" = set; then :
23587  withval=$with_fontotfdir; FONTOTFDIR="${withval}"
23588else
23589  FONTOTFDIR='${FONTROOTDIR}/OTF'
23590fi
23591
23592
23593	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONTOTFDIR}" >&5
23594$as_echo "${FONTOTFDIR}" >&6; }
23595
23596
23597
23598
23599	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory for TTF files" >&5
23600$as_echo_n "checking for directory for TTF files... " >&6; }
23601
23602# Check whether --with-fontttfdir was given.
23603if test "${with_fontttfdir+set}" = set; then :
23604  withval=$with_fontttfdir; FONTTTFDIR="${withval}"
23605else
23606  FONTTTFDIR='${FONTROOTDIR}/TTF'
23607fi
23608
23609
23610	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONTTTFDIR}" >&5
23611$as_echo "${FONTTTFDIR}" >&6; }
23612
23613
23614
23615
23616	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory for Type1 files" >&5
23617$as_echo_n "checking for directory for Type1 files... " >&6; }
23618
23619# Check whether --with-fonttype1dir was given.
23620if test "${with_fonttype1dir+set}" = set; then :
23621  withval=$with_fonttype1dir; FONTTYPE1DIR="${withval}"
23622else
23623  FONTTYPE1DIR='${FONTROOTDIR}/Type1'
23624fi
23625
23626
23627	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONTTYPE1DIR}" >&5
23628$as_echo "${FONTTYPE1DIR}" >&6; }
23629
23630
23631
23632
23633	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory for 75dpi files" >&5
23634$as_echo_n "checking for directory for 75dpi files... " >&6; }
23635
23636# Check whether --with-font75dpidir was given.
23637if test "${with_font75dpidir+set}" = set; then :
23638  withval=$with_font75dpidir; FONT75DPIDIR="${withval}"
23639else
23640  FONT75DPIDIR='${FONTROOTDIR}/75dpi'
23641fi
23642
23643
23644	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONT75DPIDIR}" >&5
23645$as_echo "${FONT75DPIDIR}" >&6; }
23646
23647
23648
23649
23650	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory for 100dpi files" >&5
23651$as_echo_n "checking for directory for 100dpi files... " >&6; }
23652
23653# Check whether --with-font100dpidir was given.
23654if test "${with_font100dpidir+set}" = set; then :
23655  withval=$with_font100dpidir; FONT100DPIDIR="${withval}"
23656else
23657  FONT100DPIDIR='${FONTROOTDIR}/100dpi'
23658fi
23659
23660
23661	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONT100DPIDIR}" >&5
23662$as_echo "${FONT100DPIDIR}" >&6; }
23663
23664
23665DEFAULT_FONT_PATH="${FONTMISCDIR}/,${FONTTTFDIR}/,${FONTOTFDIR}/,${FONTTYPE1DIR}/,${FONT100DPIDIR}/,${FONT75DPIDIR}/"
23666case $host_os in
23667    darwin*) DEFAULT_FONT_PATH="${DEFAULT_FONT_PATH},/Library/Fonts,/System/Library/Fonts" ;;
23668esac
23669
23670
23671# Check whether --with-default-font-path was given.
23672if test "${with_default_font_path+set}" = set; then :
23673  withval=$with_default_font_path;  FONTPATH="$withval"
23674else
23675   FONTPATH="${DEFAULT_FONT_PATH}"
23676fi
23677
23678
23679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default font path" >&5
23680$as_echo_n "checking for default font path... " >&6; }
23681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTPATH" >&5
23682$as_echo "$FONTPATH" >&6; }
23683
23684
23685# Check whether --with-xkb-path was given.
23686if test "${with_xkb_path+set}" = set; then :
23687  withval=$with_xkb_path;  XKBPATH="$withval"
23688else
23689   XKBPATH="auto"
23690fi
23691
23692
23693# Check whether --with-xkb-output was given.
23694if test "${with_xkb_output+set}" = set; then :
23695  withval=$with_xkb_output;  XKBOUTPUT="$withval"
23696else
23697   XKBOUTPUT="compiled"
23698fi
23699
23700
23701# Check whether --with-default-xkb-rules was given.
23702if test "${with_default_xkb_rules+set}" = set; then :
23703  withval=$with_default_xkb_rules;  XKB_DFLT_RULES="$withval"
23704else
23705   XKB_DFLT_RULES=""
23706fi
23707
23708
23709# Check whether --with-default-xkb-model was given.
23710if test "${with_default_xkb_model+set}" = set; then :
23711  withval=$with_default_xkb_model;  XKB_DFLT_MODEL="$withval"
23712else
23713   XKB_DFLT_MODEL="pc105"
23714fi
23715
23716
23717# Check whether --with-default-xkb-layout was given.
23718if test "${with_default_xkb_layout+set}" = set; then :
23719  withval=$with_default_xkb_layout;  XKB_DFLT_LAYOUT="$withval"
23720else
23721   XKB_DFLT_LAYOUT="us"
23722fi
23723
23724
23725# Check whether --with-default-xkb-variant was given.
23726if test "${with_default_xkb_variant+set}" = set; then :
23727  withval=$with_default_xkb_variant;  XKB_DFLT_VARIANT="$withval"
23728else
23729   XKB_DFLT_VARIANT=""
23730fi
23731
23732
23733# Check whether --with-default-xkb-options was given.
23734if test "${with_default_xkb_options+set}" = set; then :
23735  withval=$with_default_xkb_options;  XKB_DFLT_OPTIONS="$withval"
23736else
23737   XKB_DFLT_OPTIONS=""
23738fi
23739
23740
23741# Check whether --with-serverconfig-path was given.
23742if test "${with_serverconfig_path+set}" = set; then :
23743  withval=$with_serverconfig_path;  SERVERCONFIG="$withval"
23744else
23745   SERVERCONFIG="${libdir}/xorg"
23746fi
23747
23748
23749# Check whether --with-apple-applications-dir was given.
23750if test "${with_apple_applications_dir+set}" = set; then :
23751  withval=$with_apple_applications_dir;  APPLE_APPLICATIONS_DIR="${withval}"
23752else
23753   APPLE_APPLICATIONS_DIR="/Applications/Utilities"
23754fi
23755
23756
23757
23758# Check whether --with-apple-application-name was given.
23759if test "${with_apple_application_name+set}" = set; then :
23760  withval=$with_apple_application_name;  APPLE_APPLICATION_NAME="${withval}"
23761else
23762   APPLE_APPLICATION_NAME="X11"
23763fi
23764
23765
23766
23767# Check whether --with-bundle-id-prefix was given.
23768if test "${with_bundle_id_prefix+set}" = set; then :
23769  withval=$with_bundle_id_prefix;  BUNDLE_ID_PREFIX="${withval}"
23770fi
23771
23772
23773
23774cat >>confdefs.h <<_ACEOF
23775#define BUNDLE_ID_PREFIX "$BUNDLE_ID_PREFIX"
23776_ACEOF
23777
23778
23779
23780# Check whether --with-bundle-version was given.
23781if test "${with_bundle_version+set}" = set; then :
23782  withval=$with_bundle_version;  BUNDLE_VERSION="${withval}"
23783else
23784   BUNDLE_VERSION="1.20.13"
23785fi
23786
23787
23788
23789# Check whether --with-bundle-version-string was given.
23790if test "${with_bundle_version_string+set}" = set; then :
23791  withval=$with_bundle_version_string;  BUNDLE_VERSION_STRING="${withval}"
23792else
23793   BUNDLE_VERSION_STRING="${PACKAGE_VERSION}"
23794fi
23795
23796
23797# Check whether --enable-sparkle was given.
23798if test "${enable_sparkle+set}" = set; then :
23799  enableval=$enable_sparkle;  XQUARTZ_SPARKLE="${enableval}"
23800else
23801   XQUARTZ_SPARKLE="no"
23802fi
23803
23804
23805
23806# Check whether --with-sparkle-feed-url was given.
23807if test "${with_sparkle_feed_url+set}" = set; then :
23808  withval=$with_sparkle_feed_url;  XQUARTZ_SPARKLE_FEED_URL="${withval}"
23809else
23810   XQUARTZ_SPARKLE_FEED_URL="https://www.xquartz.org/releases/sparkle/release.xml"
23811fi
23812
23813
23814# Check whether --enable-visibility was given.
23815if test "${enable_visibility+set}" = set; then :
23816  enableval=$enable_visibility; SYMBOL_VISIBILITY=$enableval
23817else
23818  SYMBOL_VISIBILITY=auto
23819fi
23820
23821
23822
23823# Check whether --with-khronos-spec-dir was given.
23824if test "${with_khronos_spec_dir+set}" = set; then :
23825  withval=$with_khronos_spec_dir; KHRONOS_SPEC_DIR="${withval}"
23826else
23827  KHRONOS_SPEC_DIR=auto
23828fi
23829
23830
23831# Check whether --enable-composite was given.
23832if test "${enable_composite+set}" = set; then :
23833  enableval=$enable_composite; COMPOSITE=$enableval
23834else
23835  COMPOSITE=yes
23836fi
23837
23838# Check whether --enable-mitshm was given.
23839if test "${enable_mitshm+set}" = set; then :
23840  enableval=$enable_mitshm; MITSHM=$enableval
23841else
23842  MITSHM=auto
23843fi
23844
23845# Check whether --enable-xres was given.
23846if test "${enable_xres+set}" = set; then :
23847  enableval=$enable_xres; RES=$enableval
23848else
23849  RES=yes
23850fi
23851
23852# Check whether --enable-record was given.
23853if test "${enable_record+set}" = set; then :
23854  enableval=$enable_record; RECORD=$enableval
23855else
23856  RECORD=yes
23857fi
23858
23859# Check whether --enable-xv was given.
23860if test "${enable_xv+set}" = set; then :
23861  enableval=$enable_xv; XV=$enableval
23862else
23863  XV=yes
23864fi
23865
23866# Check whether --enable-xvmc was given.
23867if test "${enable_xvmc+set}" = set; then :
23868  enableval=$enable_xvmc; XVMC=$enableval
23869else
23870  XVMC=yes
23871fi
23872
23873# Check whether --enable-dga was given.
23874if test "${enable_dga+set}" = set; then :
23875  enableval=$enable_dga; DGA=$enableval
23876else
23877  DGA=auto
23878fi
23879
23880# Check whether --enable-screensaver was given.
23881if test "${enable_screensaver+set}" = set; then :
23882  enableval=$enable_screensaver; SCREENSAVER=$enableval
23883else
23884  SCREENSAVER=yes
23885fi
23886
23887# Check whether --enable-xdmcp was given.
23888if test "${enable_xdmcp+set}" = set; then :
23889  enableval=$enable_xdmcp; XDMCP=$enableval
23890else
23891  XDMCP=auto
23892fi
23893
23894# Check whether --enable-xdm-auth-1 was given.
23895if test "${enable_xdm_auth_1+set}" = set; then :
23896  enableval=$enable_xdm_auth_1; XDMAUTH=$enableval
23897else
23898  XDMAUTH=auto
23899fi
23900
23901# Check whether --enable-glx was given.
23902if test "${enable_glx+set}" = set; then :
23903  enableval=$enable_glx; GLX=$enableval
23904else
23905  GLX=yes
23906fi
23907
23908# Check whether --enable-dri was given.
23909if test "${enable_dri+set}" = set; then :
23910  enableval=$enable_dri; DRI=$enableval
23911fi
23912
23913# Check whether --enable-dri2 was given.
23914if test "${enable_dri2+set}" = set; then :
23915  enableval=$enable_dri2; DRI2=$enableval
23916else
23917  DRI2=auto
23918fi
23919
23920# Check whether --enable-dri3 was given.
23921if test "${enable_dri3+set}" = set; then :
23922  enableval=$enable_dri3; DRI3=$enableval
23923else
23924  DRI3=auto
23925fi
23926
23927# Check whether --enable-present was given.
23928if test "${enable_present+set}" = set; then :
23929  enableval=$enable_present; PRESENT=$enableval
23930else
23931  PRESENT=yes
23932fi
23933
23934# Check whether --enable-xinerama was given.
23935if test "${enable_xinerama+set}" = set; then :
23936  enableval=$enable_xinerama; XINERAMA=$enableval
23937else
23938  XINERAMA=yes
23939fi
23940
23941# Check whether --enable-xf86vidmode was given.
23942if test "${enable_xf86vidmode+set}" = set; then :
23943  enableval=$enable_xf86vidmode; XF86VIDMODE=$enableval
23944else
23945  XF86VIDMODE=auto
23946fi
23947
23948# Check whether --enable-xace was given.
23949if test "${enable_xace+set}" = set; then :
23950  enableval=$enable_xace; XACE=$enableval
23951else
23952  XACE=yes
23953fi
23954
23955# Check whether --enable-xselinux was given.
23956if test "${enable_xselinux+set}" = set; then :
23957  enableval=$enable_xselinux; XSELINUX=$enableval
23958else
23959  XSELINUX=no
23960fi
23961
23962# Check whether --enable-xcsecurity was given.
23963if test "${enable_xcsecurity+set}" = set; then :
23964  enableval=$enable_xcsecurity; XCSECURITY=$enableval
23965else
23966  XCSECURITY=no
23967fi
23968
23969# Check whether --enable-dbe was given.
23970if test "${enable_dbe+set}" = set; then :
23971  enableval=$enable_dbe; DBE=$enableval
23972else
23973  DBE=yes
23974fi
23975
23976# Check whether --enable-xf86bigfont was given.
23977if test "${enable_xf86bigfont+set}" = set; then :
23978  enableval=$enable_xf86bigfont; XF86BIGFONT=$enableval
23979else
23980  XF86BIGFONT=no
23981fi
23982
23983# Check whether --enable-dpms was given.
23984if test "${enable_dpms+set}" = set; then :
23985  enableval=$enable_dpms; DPMSExtension=$enableval
23986else
23987  DPMSExtension=yes
23988fi
23989
23990# Check whether --enable-config-devd was given.
23991if test "${enable_config_devd+set}" = set; then :
23992  enableval=$enable_config_devd; CONFIG_DEVD=$enableval
23993else
23994  CONFIG_DEVD=auto
23995fi
23996
23997# Check whether --enable-config-udev was given.
23998if test "${enable_config_udev+set}" = set; then :
23999  enableval=$enable_config_udev; CONFIG_UDEV=$enableval
24000else
24001  CONFIG_UDEV=auto
24002fi
24003
24004# Check whether --enable-config-udev-kms was given.
24005if test "${enable_config_udev_kms+set}" = set; then :
24006  enableval=$enable_config_udev_kms; CONFIG_UDEV_KMS=$enableval
24007else
24008  CONFIG_UDEV_KMS=auto
24009fi
24010
24011# Check whether --enable-config-hal was given.
24012if test "${enable_config_hal+set}" = set; then :
24013  enableval=$enable_config_hal; CONFIG_HAL=$enableval
24014else
24015  CONFIG_HAL=auto
24016fi
24017
24018# Check whether --enable-config-wscons was given.
24019if test "${enable_config_wscons+set}" = set; then :
24020  enableval=$enable_config_wscons; CONFIG_WSCONS=$enableval
24021else
24022  CONFIG_WSCONS=auto
24023fi
24024
24025# Check whether --enable-xfree86-utils was given.
24026if test "${enable_xfree86_utils+set}" = set; then :
24027  enableval=$enable_xfree86_utils; XF86UTILS=$enableval
24028else
24029  XF86UTILS=yes
24030fi
24031
24032# Check whether --enable-vgahw was given.
24033if test "${enable_vgahw+set}" = set; then :
24034  enableval=$enable_vgahw; VGAHW=$enableval
24035else
24036  VGAHW=yes
24037fi
24038
24039# Check whether --enable-vbe was given.
24040if test "${enable_vbe+set}" = set; then :
24041  enableval=$enable_vbe; VBE=$enableval
24042else
24043  VBE=yes
24044fi
24045
24046# Check whether --enable-int10-module was given.
24047if test "${enable_int10_module+set}" = set; then :
24048  enableval=$enable_int10_module; INT10MODULE=$enableval
24049else
24050  INT10MODULE=yes
24051fi
24052
24053# Check whether --enable-windowswm was given.
24054if test "${enable_windowswm+set}" = set; then :
24055  enableval=$enable_windowswm; WINDOWSWM=$enableval
24056else
24057  WINDOWSWM=no
24058fi
24059
24060# Check whether --enable-windowsdri was given.
24061if test "${enable_windowsdri+set}" = set; then :
24062  enableval=$enable_windowsdri; WINDOWSDRI=$enableval
24063else
24064  WINDOWSDRI=auto
24065fi
24066
24067# Check whether --enable-libdrm was given.
24068if test "${enable_libdrm+set}" = set; then :
24069  enableval=$enable_libdrm; DRM=$enableval
24070else
24071  DRM=yes
24072fi
24073
24074# Check whether --enable-clientids was given.
24075if test "${enable_clientids+set}" = set; then :
24076  enableval=$enable_clientids; CLIENTIDS=$enableval
24077else
24078  CLIENTIDS=yes
24079fi
24080
24081# Check whether --enable-pciaccess was given.
24082if test "${enable_pciaccess+set}" = set; then :
24083  enableval=$enable_pciaccess; PCI=$enableval
24084else
24085  PCI=yes
24086fi
24087
24088# Check whether --enable-linux_acpi was given.
24089if test "${enable_linux_acpi+set}" = set; then :
24090  enableval=$enable_linux_acpi; enable_linux_acpi=$enableval
24091else
24092  enable_linux_acpi=yes
24093fi
24094
24095# Check whether --enable-linux_apm was given.
24096if test "${enable_linux_apm+set}" = set; then :
24097  enableval=$enable_linux_apm; enable_linux_apm=$enableval
24098else
24099  enable_linux_apm=yes
24100fi
24101
24102# Check whether --enable-systemd-logind was given.
24103if test "${enable_systemd_logind+set}" = set; then :
24104  enableval=$enable_systemd_logind; SYSTEMD_LOGIND=$enableval
24105else
24106  SYSTEMD_LOGIND=auto
24107fi
24108
24109# Check whether --enable-suid-wrapper was given.
24110if test "${enable_suid_wrapper+set}" = set; then :
24111  enableval=$enable_suid_wrapper; SUID_WRAPPER=$enableval
24112else
24113  SUID_WRAPPER=no
24114fi
24115
24116
24117# Check whether --enable-xorg was given.
24118if test "${enable_xorg+set}" = set; then :
24119  enableval=$enable_xorg; XORG=$enableval
24120else
24121  XORG=auto
24122fi
24123
24124# Check whether --enable-dmx was given.
24125if test "${enable_dmx+set}" = set; then :
24126  enableval=$enable_dmx; DMX=$enableval
24127else
24128  DMX=no
24129fi
24130
24131# Check whether --enable-xvfb was given.
24132if test "${enable_xvfb+set}" = set; then :
24133  enableval=$enable_xvfb; XVFB=$enableval
24134else
24135  XVFB=yes
24136fi
24137
24138# Check whether --enable-xnest was given.
24139if test "${enable_xnest+set}" = set; then :
24140  enableval=$enable_xnest; XNEST=$enableval
24141else
24142  XNEST=auto
24143fi
24144
24145# Check whether --enable-xquartz was given.
24146if test "${enable_xquartz+set}" = set; then :
24147  enableval=$enable_xquartz; XQUARTZ=$enableval
24148else
24149  XQUARTZ=auto
24150fi
24151
24152# Check whether --enable-xwayland was given.
24153if test "${enable_xwayland+set}" = set; then :
24154  enableval=$enable_xwayland; XWAYLAND=$enableval
24155else
24156  XWAYLAND=auto
24157fi
24158
24159# Check whether --enable-xwayland-eglstream was given.
24160if test "${enable_xwayland_eglstream+set}" = set; then :
24161  enableval=$enable_xwayland_eglstream; XWAYLAND_EGLSTREAM=$enableval
24162else
24163  XWAYLAND_EGLSTREAM=no
24164fi
24165
24166# Check whether --enable-standalone-xpbproxy was given.
24167if test "${enable_standalone_xpbproxy+set}" = set; then :
24168  enableval=$enable_standalone_xpbproxy; STANDALONE_XPBPROXY=$enableval
24169else
24170  STANDALONE_XPBPROXY=no
24171fi
24172
24173# Check whether --enable-xwin was given.
24174if test "${enable_xwin+set}" = set; then :
24175  enableval=$enable_xwin; XWIN=$enableval
24176else
24177  XWIN=auto
24178fi
24179
24180# Check whether --enable-glamor was given.
24181if test "${enable_glamor+set}" = set; then :
24182  enableval=$enable_glamor; GLAMOR=$enableval
24183else
24184  GLAMOR=auto
24185fi
24186
24187# Check whether --enable-kdrive was given.
24188if test "${enable_kdrive+set}" = set; then :
24189  enableval=$enable_kdrive; KDRIVE=$enableval
24190else
24191  KDRIVE=no
24192fi
24193
24194# Check whether --enable-xephyr was given.
24195if test "${enable_xephyr+set}" = set; then :
24196  enableval=$enable_xephyr; XEPHYR=$enableval
24197else
24198  XEPHYR=auto
24199fi
24200
24201# Check whether --enable-libunwind was given.
24202if test "${enable_libunwind+set}" = set; then :
24203  enableval=$enable_libunwind; LIBUNWIND="$enableval"
24204else
24205  LIBUNWIND="auto"
24206fi
24207
24208# Check whether --enable-xshmfence was given.
24209if test "${enable_xshmfence+set}" = set; then :
24210  enableval=$enable_xshmfence; XSHMFENCE="$enableval"
24211else
24212  XSHMFENCE="auto"
24213fi
24214
24215
24216
24217# Check whether --enable-install-setuid was given.
24218if test "${enable_install_setuid+set}" = set; then :
24219  enableval=$enable_install_setuid; SETUID=$enableval
24220else
24221  SETUID=auto
24222fi
24223
24224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if we can install the Xorg server as root" >&5
24225$as_echo_n "checking to see if we can install the Xorg server as root... " >&6; }
24226if test "x$SETUID" = "xauto" ; then
24227	case $host_os in
24228	    cygwin*)		SETUID="no"  ;;
24229	    mingw*)		SETUID="no"  ;;
24230	    darwin*)		SETUID="no"  ;;
24231	    *)
24232	   	case $host_cpu in
24233		    sparc)	SETUID="no"  ;;
24234		    *)		SETUID="yes" ;;
24235		esac
24236	esac
24237	if test "x$SETUID" = xyes; then
24238		touch testfile
24239		chown root testfile > /dev/null 2>&1 || SETUID="no"
24240		rm -f testfile
24241	fi
24242fi
24243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETUID" >&5
24244$as_echo "$SETUID" >&6; }
24245 if test "x$SETUID" = "xyes"; then
24246  INSTALL_SETUID_TRUE=
24247  INSTALL_SETUID_FALSE='#'
24248else
24249  INSTALL_SETUID_TRUE='#'
24250  INSTALL_SETUID_FALSE=
24251fi
24252
24253
24254
24255
24256# Transport selection macro from xtrans.m4
24257
24258
24259 case $host_os in
24260	mingw*)	unixdef="no"   ;;
24261	*)	unixdef="yes"  ;;
24262 esac
24263 # Check whether --enable-unix-transport was given.
24264if test "${enable_unix_transport+set}" = set; then :
24265  enableval=$enable_unix_transport; UNIXCONN=$enableval
24266else
24267  UNIXCONN=$unixdef
24268fi
24269
24270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5
24271$as_echo_n "checking if Xtrans should support UNIX socket connections... " >&6; }
24272 if test "$UNIXCONN" = "yes"; then
24273
24274$as_echo "#define UNIXCONN 1" >>confdefs.h
24275
24276 fi
24277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5
24278$as_echo "$UNIXCONN" >&6; }
24279 # Check whether --enable-tcp-transport was given.
24280if test "${enable_tcp_transport+set}" = set; then :
24281  enableval=$enable_tcp_transport; TCPCONN=$enableval
24282else
24283  TCPCONN=yes
24284fi
24285
24286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5
24287$as_echo_n "checking if Xtrans should support TCP socket connections... " >&6; }
24288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5
24289$as_echo "$TCPCONN" >&6; }
24290 if test "$TCPCONN" = "yes"; then
24291
24292$as_echo "#define TCPCONN 1" >>confdefs.h
24293
24294
24295 # SVR4 hides these in libraries other than libc
24296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
24297$as_echo_n "checking for library containing socket... " >&6; }
24298if ${ac_cv_search_socket+:} false; then :
24299  $as_echo_n "(cached) " >&6
24300else
24301  ac_func_search_save_LIBS=$LIBS
24302cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24303/* end confdefs.h.  */
24304
24305/* Override any GCC internal prototype to avoid an error.
24306   Use char because int might match the return type of a GCC
24307   builtin and then its argument prototype would still apply.  */
24308#ifdef __cplusplus
24309extern "C"
24310#endif
24311char socket ();
24312int
24313main ()
24314{
24315return socket ();
24316  ;
24317  return 0;
24318}
24319_ACEOF
24320for ac_lib in '' socket; do
24321  if test -z "$ac_lib"; then
24322    ac_res="none required"
24323  else
24324    ac_res=-l$ac_lib
24325    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
24326  fi
24327  if ac_fn_c_try_link "$LINENO"; then :
24328  ac_cv_search_socket=$ac_res
24329fi
24330rm -f core conftest.err conftest.$ac_objext \
24331    conftest$ac_exeext
24332  if ${ac_cv_search_socket+:} false; then :
24333  break
24334fi
24335done
24336if ${ac_cv_search_socket+:} false; then :
24337
24338else
24339  ac_cv_search_socket=no
24340fi
24341rm conftest.$ac_ext
24342LIBS=$ac_func_search_save_LIBS
24343fi
24344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
24345$as_echo "$ac_cv_search_socket" >&6; }
24346ac_res=$ac_cv_search_socket
24347if test "$ac_res" != no; then :
24348  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24349
24350fi
24351
24352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
24353$as_echo_n "checking for library containing gethostbyname... " >&6; }
24354if ${ac_cv_search_gethostbyname+:} false; then :
24355  $as_echo_n "(cached) " >&6
24356else
24357  ac_func_search_save_LIBS=$LIBS
24358cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24359/* end confdefs.h.  */
24360
24361/* Override any GCC internal prototype to avoid an error.
24362   Use char because int might match the return type of a GCC
24363   builtin and then its argument prototype would still apply.  */
24364#ifdef __cplusplus
24365extern "C"
24366#endif
24367char gethostbyname ();
24368int
24369main ()
24370{
24371return gethostbyname ();
24372  ;
24373  return 0;
24374}
24375_ACEOF
24376for ac_lib in '' nsl; do
24377  if test -z "$ac_lib"; then
24378    ac_res="none required"
24379  else
24380    ac_res=-l$ac_lib
24381    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
24382  fi
24383  if ac_fn_c_try_link "$LINENO"; then :
24384  ac_cv_search_gethostbyname=$ac_res
24385fi
24386rm -f core conftest.err conftest.$ac_objext \
24387    conftest$ac_exeext
24388  if ${ac_cv_search_gethostbyname+:} false; then :
24389  break
24390fi
24391done
24392if ${ac_cv_search_gethostbyname+:} false; then :
24393
24394else
24395  ac_cv_search_gethostbyname=no
24396fi
24397rm conftest.$ac_ext
24398LIBS=$ac_func_search_save_LIBS
24399fi
24400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
24401$as_echo "$ac_cv_search_gethostbyname" >&6; }
24402ac_res=$ac_cv_search_gethostbyname
24403if test "$ac_res" != no; then :
24404  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24405
24406fi
24407
24408 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then
24409   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5
24410$as_echo_n "checking for main in -lws2_32... " >&6; }
24411if ${ac_cv_lib_ws2_32_main+:} false; then :
24412  $as_echo_n "(cached) " >&6
24413else
24414  ac_check_lib_save_LIBS=$LIBS
24415LIBS="-lws2_32  $LIBS"
24416cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24417/* end confdefs.h.  */
24418
24419
24420int
24421main ()
24422{
24423return main ();
24424  ;
24425  return 0;
24426}
24427_ACEOF
24428if ac_fn_c_try_link "$LINENO"; then :
24429  ac_cv_lib_ws2_32_main=yes
24430else
24431  ac_cv_lib_ws2_32_main=no
24432fi
24433rm -f core conftest.err conftest.$ac_objext \
24434    conftest$ac_exeext conftest.$ac_ext
24435LIBS=$ac_check_lib_save_LIBS
24436fi
24437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5
24438$as_echo "$ac_cv_lib_ws2_32_main" >&6; }
24439if test "x$ac_cv_lib_ws2_32_main" = xyes; then :
24440  cat >>confdefs.h <<_ACEOF
24441#define HAVE_LIBWS2_32 1
24442_ACEOF
24443
24444  LIBS="-lws2_32 $LIBS"
24445
24446fi
24447
24448 fi
24449
24450 # Needs to come after above checks for libsocket & libnsl for SVR4 systems
24451 # Check whether --enable-ipv6 was given.
24452if test "${enable_ipv6+set}" = set; then :
24453  enableval=$enable_ipv6; IPV6CONN=$enableval
24454else
24455  ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
24456if test "x$ac_cv_func_getaddrinfo" = xyes; then :
24457  IPV6CONN=yes
24458else
24459  IPV6CONN=no
24460fi
24461
24462fi
24463
24464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5
24465$as_echo_n "checking if IPv6 support should be built... " >&6; }
24466 if test "$IPV6CONN" = "yes"; then
24467
24468$as_echo "#define IPv6 1" >>confdefs.h
24469
24470 fi
24471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5
24472$as_echo "$IPV6CONN" >&6; }
24473
24474 # 4.3BSD-Reno added a new member to struct sockaddr_in
24475 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "
24476#include <sys/types.h>
24477#include <sys/socket.h>
24478#include <netinet/in.h>
24479
24480"
24481if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
24482
24483$as_echo "#define BSD44SOCKETS 1" >>confdefs.h
24484
24485fi
24486
24487
24488 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc.
24489 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
24490$ac_includes_default
24491#include <sys/socket.h>
24492"
24493if test "x$ac_cv_type_socklen_t" = xyes; then :
24494
24495cat >>confdefs.h <<_ACEOF
24496#define HAVE_SOCKLEN_T 1
24497_ACEOF
24498
24499
24500fi
24501
24502
24503 # XPG4v2/UNIX95 added msg_control - check to see if we need to define
24504 # _XOPEN_SOURCE to get it (such as on Solaris)
24505 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
24506$ac_includes_default
24507#include <sys/socket.h>
24508
24509"
24510if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
24511
24512fi
24513
24514 # First try for Solaris in C99 compliant mode, which requires XPG6/UNIX03
24515 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
24516     unset ac_cv_member_struct_msghdr_msg_control
24517     { $as_echo "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=600" >&5
24518$as_echo "$as_me: trying again with _XOPEN_SOURCE=600" >&6;}
24519     ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
24520#define _XOPEN_SOURCE 600
24521$ac_includes_default
24522#include <sys/socket.h>
24523
24524"
24525if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
24526
24527$as_echo "#define _XOPEN_SOURCE 600" >>confdefs.h
24528
24529
24530fi
24531
24532 fi
24533 # If that didn't work, fall back to XPG5/UNIX98 with C89
24534 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
24535     unset ac_cv_member_struct_msghdr_msg_control
24536     { $as_echo "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=500" >&5
24537$as_echo "$as_me: trying again with _XOPEN_SOURCE=500" >&6;}
24538     ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
24539#define _XOPEN_SOURCE 500
24540$ac_includes_default
24541#include <sys/socket.h>
24542
24543"
24544if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
24545
24546$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
24547
24548
24549fi
24550
24551 fi
24552
24553
24554
24555 fi
24556 case $host_os in
24557	solaris*|sco*|sysv4*)	localdef="yes" ;;
24558	*)			localdef="no"  ;;
24559 esac
24560 # Check whether --enable-local-transport was given.
24561if test "${enable_local_transport+set}" = set; then :
24562  enableval=$enable_local_transport; LOCALCONN=$enableval
24563else
24564  LOCALCONN=$localdef
24565fi
24566
24567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5
24568$as_echo_n "checking if Xtrans should support os-specific local connections... " >&6; }
24569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5
24570$as_echo "$LOCALCONN" >&6; }
24571 if test "$LOCALCONN" = "yes"; then
24572
24573$as_echo "#define LOCALCONN 1" >>confdefs.h
24574
24575 fi
24576
24577 # Other functions Xtrans may need
24578 for ac_func in strcasecmp strlcpy
24579do :
24580  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24581ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24582if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24583  cat >>confdefs.h <<_ACEOF
24584#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24585_ACEOF
24586
24587fi
24588done
24589
24590
24591
24592
24593# Secure RPC detection macro from xtrans.m4
24594
24595 # Check whether --enable-secure-rpc was given.
24596if test "${enable_secure_rpc+set}" = set; then :
24597  enableval=$enable_secure_rpc; SECURE_RPC=$enableval
24598else
24599  SECURE_RPC="try"
24600fi
24601
24602
24603 if test "x$SECURE_RPC" = "xyes" -o "x$SECURE_RPC" = "xtry" ; then
24604	FOUND_SECURE_RPC="no"
24605	for ac_func in authdes_seccreate authdes_create
24606do :
24607  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24608ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24609if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24610  cat >>confdefs.h <<_ACEOF
24611#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24612_ACEOF
24613 FOUND_SECURE_RPC="yes"
24614fi
24615done
24616
24617	if test "x$FOUND_SECURE_RPC" = "xno" ; then
24618		if test "x$SECURE_RPC" = "xyes" ; then
24619	as_fn_error $? "Secure RPC requested, but required functions not found" "$LINENO" 5
24620		fi
24621		SECURE_RPC="no"
24622	else
24623				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getsecretkey" >&5
24624$as_echo_n "checking for library containing getsecretkey... " >&6; }
24625if ${ac_cv_search_getsecretkey+:} false; then :
24626  $as_echo_n "(cached) " >&6
24627else
24628  ac_func_search_save_LIBS=$LIBS
24629cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24630/* end confdefs.h.  */
24631
24632/* Override any GCC internal prototype to avoid an error.
24633   Use char because int might match the return type of a GCC
24634   builtin and then its argument prototype would still apply.  */
24635#ifdef __cplusplus
24636extern "C"
24637#endif
24638char getsecretkey ();
24639int
24640main ()
24641{
24642return getsecretkey ();
24643  ;
24644  return 0;
24645}
24646_ACEOF
24647for ac_lib in '' rpcsvc; do
24648  if test -z "$ac_lib"; then
24649    ac_res="none required"
24650  else
24651    ac_res=-l$ac_lib
24652    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
24653  fi
24654  if ac_fn_c_try_link "$LINENO"; then :
24655  ac_cv_search_getsecretkey=$ac_res
24656fi
24657rm -f core conftest.err conftest.$ac_objext \
24658    conftest$ac_exeext
24659  if ${ac_cv_search_getsecretkey+:} false; then :
24660  break
24661fi
24662done
24663if ${ac_cv_search_getsecretkey+:} false; then :
24664
24665else
24666  ac_cv_search_getsecretkey=no
24667fi
24668rm conftest.$ac_ext
24669LIBS=$ac_func_search_save_LIBS
24670fi
24671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getsecretkey" >&5
24672$as_echo "$ac_cv_search_getsecretkey" >&6; }
24673ac_res=$ac_cv_search_getsecretkey
24674if test "$ac_res" != no; then :
24675  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24676
24677fi
24678
24679		SECURE_RPC="yes"
24680	fi
24681 fi
24682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Secure RPC authentication (\"SUN-DES-1\") should be supported" >&5
24683$as_echo_n "checking if Secure RPC authentication (\"SUN-DES-1\") should be supported... " >&6; }
24684 if test "x$SECURE_RPC" = "xyes" ; then
24685
24686$as_echo "#define SECURE_RPC 1" >>confdefs.h
24687
24688 fi
24689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SECURE_RPC" >&5
24690$as_echo "$SECURE_RPC" >&6; }
24691
24692 if test "x$SECURE_RPC" = xyes; then
24693  SECURE_RPC_TRUE=
24694  SECURE_RPC_FALSE='#'
24695else
24696  SECURE_RPC_TRUE='#'
24697  SECURE_RPC_FALSE=
24698fi
24699
24700
24701 if test "x$INT10" = xvm86; then
24702  INT10_VM86_TRUE=
24703  INT10_VM86_FALSE='#'
24704else
24705  INT10_VM86_TRUE='#'
24706  INT10_VM86_FALSE=
24707fi
24708
24709 if test "x$INT10" = xx86emu; then
24710  INT10_X86EMU_TRUE=
24711  INT10_X86EMU_FALSE='#'
24712else
24713  INT10_X86EMU_TRUE='#'
24714  INT10_X86EMU_FALSE=
24715fi
24716
24717 if test "x$INT10" = xstub; then
24718  INT10_STUB_TRUE=
24719  INT10_STUB_FALSE='#'
24720else
24721  INT10_STUB_TRUE='#'
24722  INT10_STUB_FALSE=
24723fi
24724
24725
24726case $host_os in
24727	cygwin* | mingw*)
24728		CONFIG_HAL=no
24729		CONFIG_UDEV=no
24730		CONFIG_UDEV_KMS=no
24731		DGA=no
24732		DRM=no
24733		DRI2=no
24734		DRI3=no
24735		INT10MODULE=no
24736		PCI=no
24737		VGAHW=no
24738		VBE=no
24739		XF86UTILS=no
24740		XF86VIDMODE=no
24741		XSELINUX=no
24742		SYMBOL_VISIBILITY=no
24743		;;
24744	darwin*)
24745		PCI=no
24746		INT10MODULE=no
24747		VGAHW=no
24748		VBE=no
24749		DRM=no
24750		DRI2=no
24751		DRI3=no
24752
24753		if test x$XQUARTZ = xauto; then
24754			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Xquartz" >&5
24755$as_echo_n "checking whether to build Xquartz... " >&6; }
24756if ${xorg_cv_Carbon_framework+:} false; then :
24757  $as_echo_n "(cached) " >&6
24758else
24759
24760		 		save_LDFLAGS=$LDFLAGS
24761				LDFLAGS="$LDFLAGS -framework Carbon"
24762				cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24763/* end confdefs.h.  */
24764char FSFindFolder(); int main() { FSFindFolder(); return 0;}
24765_ACEOF
24766if ac_fn_c_try_link "$LINENO"; then :
24767  xorg_cv_Carbon_framework=yes
24768else
24769  xorg_cv_Carbon_framework=no
24770fi
24771rm -f core conftest.err conftest.$ac_objext \
24772    conftest$ac_exeext conftest.$ac_ext
24773			        LDFLAGS=$save_LDFLAGS
24774fi
24775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_Carbon_framework" >&5
24776$as_echo "$xorg_cv_Carbon_framework" >&6; }
24777
24778			if test "X$xorg_cv_Carbon_framework" = Xyes; then
24779				XQUARTZ=yes
24780			else
24781				XQUARTZ=no
24782			fi
24783		fi
24784
24785		if test "x$XQUARTZ" = xyes ; then
24786			XQUARTZ=yes
24787			XVFB=no
24788			XNEST=no
24789			XWAYLAND=no
24790
24791			COMPOSITE=no
24792			DGA=no
24793			DPMSExtension=no
24794			XF86VIDMODE=no
24795		fi
24796		;;
24797	gnu*)
24798		DRM=no
24799		DRI2=no
24800		DRI3=no
24801		;;
24802	*) XQUARTZ=no ;;
24803esac
24804
24805XEXT_INC='-I$(top_srcdir)/Xext'
24806XEXT_LIB='$(top_builddir)/Xext/libXext.la'
24807
24808VIDEOPROTO="videoproto"
24809COMPOSITEPROTO="compositeproto >= 0.4"
24810RECORDPROTO="recordproto >= 1.13.99.1"
24811SCRNSAVERPROTO="scrnsaverproto >= 1.1"
24812RESOURCEPROTO="resourceproto >= 1.2.0"
24813DRIPROTO="xf86driproto >= 2.1.0"
24814DRI2PROTO="dri2proto >= 2.8"
24815DRI3PROTO="dri3proto >= 1.2"
24816XINERAMAPROTO="xineramaproto"
24817BIGFONTPROTO="xf86bigfontproto >= 1.2.0"
24818DGAPROTO="xf86dgaproto >= 2.0.99.1"
24819GLPROTO="glproto >= 1.4.17"
24820DMXPROTO="dmxproto >= 2.2.99.1"
24821VIDMODEPROTO="xf86vidmodeproto >= 2.2.99.1"
24822WINDOWSWMPROTO="windowswmproto"
24823APPLEWMPROTO="applewmproto >= 1.4"
24824LIBXSHMFENCE="xshmfence >= 1.1"
24825
24826XPROTO="xproto >= 7.0.31"
24827RANDRPROTO="randrproto >= 1.6.0"
24828RENDERPROTO="renderproto >= 0.11"
24829XEXTPROTO="xextproto >= 7.2.99.901"
24830INPUTPROTO="inputproto >= 2.3"
24831KBPROTO="kbproto >= 1.0.3"
24832FONTSPROTO="fontsproto >= 2.1.3"
24833FIXESPROTO="fixesproto >= 5.0"
24834DAMAGEPROTO="damageproto >= 1.1"
24835XCMISCPROTO="xcmiscproto >= 1.2.0"
24836BIGREQSPROTO="bigreqsproto >= 1.1.0"
24837XTRANS="xtrans >= 1.3.5"
24838PRESENTPROTO="presentproto >= 1.1"
24839
24840LIBAPPLEWM="applewm >= 1.4"
24841LIBDMX="dmx >= 1.0.99.1"
24842LIBDRI="dri >= 7.8.0"
24843LIBDRM="libdrm >= 2.4.89"
24844LIBEGL="egl"
24845LIBGBM="gbm >= 10.2.0"
24846LIBGL="gl >= 1.2"
24847LIBXEXT="xext >= 1.0.99.4"
24848LIBXFONT="xfont2 >= 2.0.0"
24849LIBXI="xi >= 1.2.99.1"
24850LIBXTST="xtst >= 1.0.99.2"
24851LIBPCIACCESS="pciaccess >= 0.12.901"
24852LIBUDEV="libudev >= 143"
24853LIBSELINUX="libselinux >= 2.0.86"
24854LIBDBUS="dbus-1 >= 1.0"
24855LIBPIXMAN="pixman-1 >= 0.27.2"
24856
24857
24858pkg_failed=no
24859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PIXMAN" >&5
24860$as_echo_n "checking for PIXMAN... " >&6; }
24861
24862if test -n "$PIXMAN_CFLAGS"; then
24863    pkg_cv_PIXMAN_CFLAGS="$PIXMAN_CFLAGS"
24864 elif test -n "$PKG_CONFIG"; then
24865    if test -n "$PKG_CONFIG" && \
24866    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBPIXMAN\""; } >&5
24867  ($PKG_CONFIG --exists --print-errors "$LIBPIXMAN") 2>&5
24868  ac_status=$?
24869  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24870  test $ac_status = 0; }; then
24871  pkg_cv_PIXMAN_CFLAGS=`$PKG_CONFIG --cflags "$LIBPIXMAN" 2>/dev/null`
24872		      test "x$?" != "x0" && pkg_failed=yes
24873else
24874  pkg_failed=yes
24875fi
24876 else
24877    pkg_failed=untried
24878fi
24879if test -n "$PIXMAN_LIBS"; then
24880    pkg_cv_PIXMAN_LIBS="$PIXMAN_LIBS"
24881 elif test -n "$PKG_CONFIG"; then
24882    if test -n "$PKG_CONFIG" && \
24883    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBPIXMAN\""; } >&5
24884  ($PKG_CONFIG --exists --print-errors "$LIBPIXMAN") 2>&5
24885  ac_status=$?
24886  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24887  test $ac_status = 0; }; then
24888  pkg_cv_PIXMAN_LIBS=`$PKG_CONFIG --libs "$LIBPIXMAN" 2>/dev/null`
24889		      test "x$?" != "x0" && pkg_failed=yes
24890else
24891  pkg_failed=yes
24892fi
24893 else
24894    pkg_failed=untried
24895fi
24896
24897
24898
24899if test $pkg_failed = yes; then
24900   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24901$as_echo "no" >&6; }
24902
24903if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24904        _pkg_short_errors_supported=yes
24905else
24906        _pkg_short_errors_supported=no
24907fi
24908        if test $_pkg_short_errors_supported = yes; then
24909	        PIXMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBPIXMAN" 2>&1`
24910        else
24911	        PIXMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBPIXMAN" 2>&1`
24912        fi
24913	# Put the nasty error message in config.log where it belongs
24914	echo "$PIXMAN_PKG_ERRORS" >&5
24915
24916	as_fn_error $? "Package requirements ($LIBPIXMAN) were not met:
24917
24918$PIXMAN_PKG_ERRORS
24919
24920Consider adjusting the PKG_CONFIG_PATH environment variable if you
24921installed software in a non-standard prefix.
24922
24923Alternatively, you may set the environment variables PIXMAN_CFLAGS
24924and PIXMAN_LIBS to avoid the need to call pkg-config.
24925See the pkg-config man page for more details." "$LINENO" 5
24926elif test $pkg_failed = untried; then
24927     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24928$as_echo "no" >&6; }
24929	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24930$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24931as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
24932is in your PATH or set the PKG_CONFIG environment variable to the full
24933path to pkg-config.
24934
24935Alternatively, you may set the environment variables PIXMAN_CFLAGS
24936and PIXMAN_LIBS to avoid the need to call pkg-config.
24937See the pkg-config man page for more details.
24938
24939To get pkg-config, see <http://pkg-config.freedesktop.org/>.
24940See \`config.log' for more details" "$LINENO" 5; }
24941else
24942	PIXMAN_CFLAGS=$pkg_cv_PIXMAN_CFLAGS
24943	PIXMAN_LIBS=$pkg_cv_PIXMAN_LIBS
24944        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24945$as_echo "yes" >&6; }
24946
24947fi
24948REQUIRED_LIBS="$REQUIRED_LIBS $LIBPIXMAN $LIBXFONT xau"
24949
24950SDK_REQUIRED_MODULES="$XPROTO $RANDRPROTO $RENDERPROTO $XEXTPROTO $INPUTPROTO $KBPROTO $FONTSPROTO $LIBPIXMAN"
24951# Make SDK_REQUIRED_MODULES available for inclusion in xorg-server.pc
24952
24953
24954ac_fn_c_check_decl "$LINENO" "PTHREAD_MUTEX_RECURSIVE" "ac_cv_have_decl_PTHREAD_MUTEX_RECURSIVE" "#include <pthread.h>
24955"
24956if test "x$ac_cv_have_decl_PTHREAD_MUTEX_RECURSIVE" = xyes; then :
24957  HAVE_RECURSIVE_MUTEX=yes
24958else
24959  HAVE_RECURSIVE_MUTEX=no
24960fi
24961
24962
24963THREAD_DEFAULT=no
24964
24965if test "x$HAVE_RECURSIVE_MUTEX" = "xyes" ; then
24966	THREAD_DEFAULT=yes
24967fi
24968
24969# Check whether --enable-input-thread was given.
24970if test "${enable_input_thread+set}" = set; then :
24971  enableval=$enable_input_thread; INPUTTHREAD=$enableval
24972else
24973  INPUTTHREAD=$THREAD_DEFAULT
24974fi
24975
24976
24977if test "x$INPUTTHREAD" = "xyes" ; then
24978
24979
24980ac_ext=c
24981ac_cpp='$CPP $CPPFLAGS'
24982ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24983ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24984ac_compiler_gnu=$ac_cv_c_compiler_gnu
24985
24986ax_pthread_ok=no
24987
24988# We used to check for pthread.h first, but this fails if pthread.h
24989# requires special compiler flags (e.g. on True64 or Sequent).
24990# It gets checked for in the link test anyway.
24991
24992# First of all, check if the user has set any of the PTHREAD_LIBS,
24993# etcetera environment variables, and if threads linking works using
24994# them:
24995if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
24996        save_CFLAGS="$CFLAGS"
24997        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
24998        save_LIBS="$LIBS"
24999        LIBS="$PTHREAD_LIBS $LIBS"
25000        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
25001$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
25002        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25003/* end confdefs.h.  */
25004
25005/* Override any GCC internal prototype to avoid an error.
25006   Use char because int might match the return type of a GCC
25007   builtin and then its argument prototype would still apply.  */
25008#ifdef __cplusplus
25009extern "C"
25010#endif
25011char pthread_join ();
25012int
25013main ()
25014{
25015return pthread_join ();
25016  ;
25017  return 0;
25018}
25019_ACEOF
25020if ac_fn_c_try_link "$LINENO"; then :
25021  ax_pthread_ok=yes
25022fi
25023rm -f core conftest.err conftest.$ac_objext \
25024    conftest$ac_exeext conftest.$ac_ext
25025        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
25026$as_echo "$ax_pthread_ok" >&6; }
25027        if test x"$ax_pthread_ok" = xno; then
25028                PTHREAD_LIBS=""
25029                PTHREAD_CFLAGS=""
25030        fi
25031        LIBS="$save_LIBS"
25032        CFLAGS="$save_CFLAGS"
25033fi
25034
25035# We must check for the threads library under a number of different
25036# names; the ordering is very important because some systems
25037# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
25038# libraries is broken (non-POSIX).
25039
25040# Create a list of thread flags to try.  Items starting with a "-" are
25041# C compiler flags, and other items are library names, except for "none"
25042# which indicates that we try without any flags at all, and "pthread-config"
25043# which is a program returning the flags for the Pth emulation library.
25044
25045ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
25046
25047# The ordering *is* (sometimes) important.  Some notes on the
25048# individual items follow:
25049
25050# pthreads: AIX (must check this before -lpthread)
25051# none: in case threads are in libc; should be tried before -Kthread and
25052#       other compiler flags to prevent continual compiler warnings
25053# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
25054# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
25055# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
25056# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
25057# -pthreads: Solaris/gcc
25058# -mthreads: Mingw32/gcc, Lynx/gcc
25059# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
25060#      doesn't hurt to check since this sometimes defines pthreads too;
25061#      also defines -D_REENTRANT)
25062#      ... -mt is also the pthreads flag for HP/aCC
25063# pthread: Linux, etcetera
25064# --thread-safe: KAI C++
25065# pthread-config: use pthread-config program (for GNU Pth library)
25066
25067case ${host_os} in
25068        solaris*)
25069
25070        # On Solaris (at least, for some versions), libc contains stubbed
25071        # (non-functional) versions of the pthreads routines, so link-based
25072        # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
25073        # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
25074        # a function called by this macro, so we could check for that, but
25075        # who knows whether they'll stub that too in a future libc.)  So,
25076        # we'll just look for -pthreads and -lpthread first:
25077
25078        ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
25079        ;;
25080
25081        darwin*)
25082        ax_pthread_flags="-pthread $ax_pthread_flags"
25083        ;;
25084	netbsd*)
25085	# use libc stubs, don't link against libpthread, to allow
25086	# dynamic loading
25087	ax_pthread_flags=""
25088	;;
25089esac
25090
25091# Clang doesn't consider unrecognized options an error unless we specify
25092# -Werror. We throw in some extra Clang-specific options to ensure that
25093# this doesn't happen for GCC, which also accepts -Werror.
25094
25095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5
25096$as_echo_n "checking if compiler needs -Werror to reject unknown flags... " >&6; }
25097save_CFLAGS="$CFLAGS"
25098ax_pthread_extra_flags="-Werror"
25099CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument"
25100cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25101/* end confdefs.h.  */
25102int foo(void);
25103int
25104main ()
25105{
25106foo()
25107  ;
25108  return 0;
25109}
25110_ACEOF
25111if ac_fn_c_try_compile "$LINENO"; then :
25112  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25113$as_echo "yes" >&6; }
25114else
25115  ax_pthread_extra_flags=
25116                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25117$as_echo "no" >&6; }
25118fi
25119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25120CFLAGS="$save_CFLAGS"
25121
25122if test x"$ax_pthread_ok" = xno; then
25123for flag in $ax_pthread_flags; do
25124
25125        case $flag in
25126                none)
25127                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
25128$as_echo_n "checking whether pthreads work without any flags... " >&6; }
25129                ;;
25130
25131                -*)
25132                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
25133$as_echo_n "checking whether pthreads work with $flag... " >&6; }
25134                PTHREAD_CFLAGS="$flag"
25135                ;;
25136
25137                pthread-config)
25138                # Extract the first word of "pthread-config", so it can be a program name with args.
25139set dummy pthread-config; ac_word=$2
25140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25141$as_echo_n "checking for $ac_word... " >&6; }
25142if ${ac_cv_prog_ax_pthread_config+:} false; then :
25143  $as_echo_n "(cached) " >&6
25144else
25145  if test -n "$ax_pthread_config"; then
25146  ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
25147else
25148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25149for as_dir in $PATH
25150do
25151  IFS=$as_save_IFS
25152  test -z "$as_dir" && as_dir=.
25153    for ac_exec_ext in '' $ac_executable_extensions; do
25154  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25155    ac_cv_prog_ax_pthread_config="yes"
25156    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25157    break 2
25158  fi
25159done
25160  done
25161IFS=$as_save_IFS
25162
25163  test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
25164fi
25165fi
25166ax_pthread_config=$ac_cv_prog_ax_pthread_config
25167if test -n "$ax_pthread_config"; then
25168  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
25169$as_echo "$ax_pthread_config" >&6; }
25170else
25171  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25172$as_echo "no" >&6; }
25173fi
25174
25175
25176                if test x"$ax_pthread_config" = xno; then continue; fi
25177                PTHREAD_CFLAGS="`pthread-config --cflags`"
25178                PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
25179                ;;
25180
25181                *)
25182                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
25183$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
25184                PTHREAD_LIBS="-l$flag"
25185                ;;
25186        esac
25187
25188        save_LIBS="$LIBS"
25189        save_CFLAGS="$CFLAGS"
25190        LIBS="$PTHREAD_LIBS $LIBS"
25191        CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
25192
25193        # Check for various functions.  We must include pthread.h,
25194        # since some functions may be macros.  (On the Sequent, we
25195        # need a special flag -Kthread to make this header compile.)
25196        # We check for pthread_join because it is in -lpthread on IRIX
25197        # while pthread_create is in libc.  We check for pthread_attr_init
25198        # due to DEC craziness with -lpthreads.  We check for
25199        # pthread_cleanup_push because it is one of the few pthread
25200        # functions on Solaris that doesn't have a non-functional libc stub.
25201        # We try pthread_create on general principles.
25202        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25203/* end confdefs.h.  */
25204#include <pthread.h>
25205                        static void routine(void *a) { a = 0; }
25206                        static void *start_routine(void *a) { return a; }
25207int
25208main ()
25209{
25210pthread_t th; pthread_attr_t attr;
25211                        pthread_create(&th, 0, start_routine, 0);
25212                        pthread_join(th, 0);
25213                        pthread_attr_init(&attr);
25214                        pthread_cleanup_push(routine, 0);
25215                        pthread_cleanup_pop(0) /* ; */
25216  ;
25217  return 0;
25218}
25219_ACEOF
25220if ac_fn_c_try_link "$LINENO"; then :
25221  ax_pthread_ok=yes
25222fi
25223rm -f core conftest.err conftest.$ac_objext \
25224    conftest$ac_exeext conftest.$ac_ext
25225
25226        LIBS="$save_LIBS"
25227        CFLAGS="$save_CFLAGS"
25228
25229        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
25230$as_echo "$ax_pthread_ok" >&6; }
25231        if test "x$ax_pthread_ok" = xyes; then
25232                break;
25233        fi
25234
25235        PTHREAD_LIBS=""
25236        PTHREAD_CFLAGS=""
25237done
25238fi
25239
25240# Various other checks:
25241if test "x$ax_pthread_ok" = xyes; then
25242        save_LIBS="$LIBS"
25243        LIBS="$PTHREAD_LIBS $LIBS"
25244        save_CFLAGS="$CFLAGS"
25245        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
25246
25247        # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
25248        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
25249$as_echo_n "checking for joinable pthread attribute... " >&6; }
25250        attr_name=unknown
25251        for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
25252            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25253/* end confdefs.h.  */
25254#include <pthread.h>
25255int
25256main ()
25257{
25258int attr = $attr; return attr /* ; */
25259  ;
25260  return 0;
25261}
25262_ACEOF
25263if ac_fn_c_try_link "$LINENO"; then :
25264  attr_name=$attr; break
25265fi
25266rm -f core conftest.err conftest.$ac_objext \
25267    conftest$ac_exeext conftest.$ac_ext
25268        done
25269        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
25270$as_echo "$attr_name" >&6; }
25271        if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
25272
25273cat >>confdefs.h <<_ACEOF
25274#define PTHREAD_CREATE_JOINABLE $attr_name
25275_ACEOF
25276
25277        fi
25278
25279        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
25280$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
25281        flag=no
25282        case ${host_os} in
25283            aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
25284            osf* | hpux*) flag="-D_REENTRANT";;
25285            solaris*)
25286            if test "$GCC" = "yes"; then
25287                flag="-D_REENTRANT"
25288            else
25289                # TODO: What about Clang on Solaris?
25290                flag="-mt -D_REENTRANT"
25291            fi
25292            ;;
25293        esac
25294        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag" >&5
25295$as_echo "$flag" >&6; }
25296        if test "x$flag" != xno; then
25297            PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
25298        fi
25299
25300        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
25301$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
25302if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
25303  $as_echo_n "(cached) " >&6
25304else
25305
25306                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25307/* end confdefs.h.  */
25308#include <pthread.h>
25309int
25310main ()
25311{
25312int i = PTHREAD_PRIO_INHERIT;
25313  ;
25314  return 0;
25315}
25316_ACEOF
25317if ac_fn_c_try_link "$LINENO"; then :
25318  ax_cv_PTHREAD_PRIO_INHERIT=yes
25319else
25320  ax_cv_PTHREAD_PRIO_INHERIT=no
25321fi
25322rm -f core conftest.err conftest.$ac_objext \
25323    conftest$ac_exeext conftest.$ac_ext
25324
25325fi
25326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
25327$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
25328        if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
25329
25330$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
25331
25332fi
25333
25334        LIBS="$save_LIBS"
25335        CFLAGS="$save_CFLAGS"
25336
25337        # More AIX lossage: compile with *_r variant
25338        if test "x$GCC" != xyes; then
25339            case $host_os in
25340                aix*)
25341                case "x/$CC" in #(
25342  x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
25343    #handle absolute path differently from PATH based program lookup
25344                   case "x$CC" in #(
25345  x/*) :
25346    if as_fn_executable_p ${CC}_r; then :
25347  PTHREAD_CC="${CC}_r"
25348fi ;; #(
25349  *) :
25350    for ac_prog in ${CC}_r
25351do
25352  # Extract the first word of "$ac_prog", so it can be a program name with args.
25353set dummy $ac_prog; ac_word=$2
25354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25355$as_echo_n "checking for $ac_word... " >&6; }
25356if ${ac_cv_prog_PTHREAD_CC+:} false; then :
25357  $as_echo_n "(cached) " >&6
25358else
25359  if test -n "$PTHREAD_CC"; then
25360  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
25361else
25362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25363for as_dir in $PATH
25364do
25365  IFS=$as_save_IFS
25366  test -z "$as_dir" && as_dir=.
25367    for ac_exec_ext in '' $ac_executable_extensions; do
25368  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25369    ac_cv_prog_PTHREAD_CC="$ac_prog"
25370    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25371    break 2
25372  fi
25373done
25374  done
25375IFS=$as_save_IFS
25376
25377fi
25378fi
25379PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
25380if test -n "$PTHREAD_CC"; then
25381  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
25382$as_echo "$PTHREAD_CC" >&6; }
25383else
25384  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25385$as_echo "no" >&6; }
25386fi
25387
25388
25389  test -n "$PTHREAD_CC" && break
25390done
25391test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
25392 ;;
25393esac ;; #(
25394  *) :
25395     ;;
25396esac
25397                ;;
25398            esac
25399        fi
25400fi
25401
25402test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
25403
25404
25405
25406
25407
25408# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
25409if test x"$ax_pthread_ok" = xyes; then
25410
25411$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
25412
25413        :
25414else
25415        ax_pthread_ok=no
25416        as_fn_error $? "threaded input requested but no pthread support has been found" "$LINENO" 5
25417fi
25418ac_ext=c
25419ac_cpp='$CPP $CPPFLAGS'
25420ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25421ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25422ac_compiler_gnu=$ac_cv_c_compiler_gnu
25423
25424
25425    SYS_LIBS="$SYS_LIBS $PTHREAD_LIBS"
25426    CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
25427
25428$as_echo "#define INPUTTHREAD 1" >>confdefs.h
25429
25430
25431    save_LIBS="$LIBS"
25432    LIBS="$LIBS $SYS_LIBS"
25433        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np(const char*)" >&5
25434$as_echo_n "checking for pthread_setname_np(const char*)... " >&6; }
25435    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25436/* end confdefs.h.  */
25437#include <pthread.h>
25438int
25439main ()
25440{
25441pthread_setname_np("example")
25442  ;
25443  return 0;
25444}
25445_ACEOF
25446if ac_fn_c_try_link "$LINENO"; then :
25447  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25448$as_echo "yes" >&6; }
25449
25450$as_echo "#define HAVE_PTHREAD_SETNAME_NP_WITHOUT_TID 1" >>confdefs.h
25451
25452else
25453  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25454$as_echo "no" >&6; }
25455fi
25456rm -f core conftest.err conftest.$ac_objext \
25457    conftest$ac_exeext conftest.$ac_ext
25458        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np(pthread_t, const char*)" >&5
25459$as_echo_n "checking for pthread_setname_np(pthread_t, const char*)... " >&6; }
25460    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25461/* end confdefs.h.  */
25462#include <pthread.h>
25463int
25464main ()
25465{
25466pthread_setname_np(pthread_self(), "example")
25467  ;
25468  return 0;
25469}
25470_ACEOF
25471if ac_fn_c_try_link "$LINENO"; then :
25472  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25473$as_echo "yes" >&6; }
25474
25475$as_echo "#define HAVE_PTHREAD_SETNAME_NP_WITH_TID 1" >>confdefs.h
25476
25477else
25478  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25479$as_echo "no" >&6; }
25480fi
25481rm -f core conftest.err conftest.$ac_objext \
25482    conftest$ac_exeext conftest.$ac_ext
25483    LIBS="$save_LIBS"
25484fi
25485
25486REQUIRED_MODULES="$FIXESPROTO $DAMAGEPROTO $XCMISCPROTO $XTRANS $BIGREQSPROTO $SDK_REQUIRED_MODULES"
25487
25488LIBSYSTEMD="libsystemd >= 209"
25489
25490# Check whether --with-systemd-daemon was given.
25491if test "${with_systemd_daemon+set}" = set; then :
25492  withval=$with_systemd_daemon; WITH_SYSTEMD_DAEMON=$withval
25493else
25494  WITH_SYSTEMD_DAEMON=auto
25495fi
25496
25497if test "x$WITH_SYSTEMD_DAEMON" = "xyes" -o "x$WITH_SYSTEMD_DAEMON" = "xauto" ; then
25498
25499pkg_failed=no
25500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD_DAEMON" >&5
25501$as_echo_n "checking for SYSTEMD_DAEMON... " >&6; }
25502
25503if test -n "$SYSTEMD_DAEMON_CFLAGS"; then
25504    pkg_cv_SYSTEMD_DAEMON_CFLAGS="$SYSTEMD_DAEMON_CFLAGS"
25505 elif test -n "$PKG_CONFIG"; then
25506    if test -n "$PKG_CONFIG" && \
25507    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBSYSTEMD\""; } >&5
25508  ($PKG_CONFIG --exists --print-errors "$LIBSYSTEMD") 2>&5
25509  ac_status=$?
25510  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25511  test $ac_status = 0; }; then
25512  pkg_cv_SYSTEMD_DAEMON_CFLAGS=`$PKG_CONFIG --cflags "$LIBSYSTEMD" 2>/dev/null`
25513		      test "x$?" != "x0" && pkg_failed=yes
25514else
25515  pkg_failed=yes
25516fi
25517 else
25518    pkg_failed=untried
25519fi
25520if test -n "$SYSTEMD_DAEMON_LIBS"; then
25521    pkg_cv_SYSTEMD_DAEMON_LIBS="$SYSTEMD_DAEMON_LIBS"
25522 elif test -n "$PKG_CONFIG"; then
25523    if test -n "$PKG_CONFIG" && \
25524    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBSYSTEMD\""; } >&5
25525  ($PKG_CONFIG --exists --print-errors "$LIBSYSTEMD") 2>&5
25526  ac_status=$?
25527  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25528  test $ac_status = 0; }; then
25529  pkg_cv_SYSTEMD_DAEMON_LIBS=`$PKG_CONFIG --libs "$LIBSYSTEMD" 2>/dev/null`
25530		      test "x$?" != "x0" && pkg_failed=yes
25531else
25532  pkg_failed=yes
25533fi
25534 else
25535    pkg_failed=untried
25536fi
25537
25538
25539
25540if test $pkg_failed = yes; then
25541   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25542$as_echo "no" >&6; }
25543
25544if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25545        _pkg_short_errors_supported=yes
25546else
25547        _pkg_short_errors_supported=no
25548fi
25549        if test $_pkg_short_errors_supported = yes; then
25550	        SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBSYSTEMD" 2>&1`
25551        else
25552	        SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBSYSTEMD" 2>&1`
25553        fi
25554	# Put the nasty error message in config.log where it belongs
25555	echo "$SYSTEMD_DAEMON_PKG_ERRORS" >&5
25556
25557
25558pkg_failed=no
25559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD_DAEMON" >&5
25560$as_echo_n "checking for SYSTEMD_DAEMON... " >&6; }
25561
25562if test -n "$SYSTEMD_DAEMON_CFLAGS"; then
25563    pkg_cv_SYSTEMD_DAEMON_CFLAGS="$SYSTEMD_DAEMON_CFLAGS"
25564 elif test -n "$PKG_CONFIG"; then
25565    if test -n "$PKG_CONFIG" && \
25566    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
25567  ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
25568  ac_status=$?
25569  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25570  test $ac_status = 0; }; then
25571  pkg_cv_SYSTEMD_DAEMON_CFLAGS=`$PKG_CONFIG --cflags "libsystemd-daemon" 2>/dev/null`
25572		      test "x$?" != "x0" && pkg_failed=yes
25573else
25574  pkg_failed=yes
25575fi
25576 else
25577    pkg_failed=untried
25578fi
25579if test -n "$SYSTEMD_DAEMON_LIBS"; then
25580    pkg_cv_SYSTEMD_DAEMON_LIBS="$SYSTEMD_DAEMON_LIBS"
25581 elif test -n "$PKG_CONFIG"; then
25582    if test -n "$PKG_CONFIG" && \
25583    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
25584  ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
25585  ac_status=$?
25586  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25587  test $ac_status = 0; }; then
25588  pkg_cv_SYSTEMD_DAEMON_LIBS=`$PKG_CONFIG --libs "libsystemd-daemon" 2>/dev/null`
25589		      test "x$?" != "x0" && pkg_failed=yes
25590else
25591  pkg_failed=yes
25592fi
25593 else
25594    pkg_failed=untried
25595fi
25596
25597
25598
25599if test $pkg_failed = yes; then
25600   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25601$as_echo "no" >&6; }
25602
25603if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25604        _pkg_short_errors_supported=yes
25605else
25606        _pkg_short_errors_supported=no
25607fi
25608        if test $_pkg_short_errors_supported = yes; then
25609	        SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-daemon" 2>&1`
25610        else
25611	        SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-daemon" 2>&1`
25612        fi
25613	# Put the nasty error message in config.log where it belongs
25614	echo "$SYSTEMD_DAEMON_PKG_ERRORS" >&5
25615
25616	HAVE_SYSTEMD_DAEMON=no
25617elif test $pkg_failed = untried; then
25618     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25619$as_echo "no" >&6; }
25620	HAVE_SYSTEMD_DAEMON=no
25621else
25622	SYSTEMD_DAEMON_CFLAGS=$pkg_cv_SYSTEMD_DAEMON_CFLAGS
25623	SYSTEMD_DAEMON_LIBS=$pkg_cv_SYSTEMD_DAEMON_LIBS
25624        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25625$as_echo "yes" >&6; }
25626	HAVE_SYSTEMD_DAEMON=yes;
25627					      LIBSYSTEMD_DAEMON=libsystemd-daemon
25628fi
25629elif test $pkg_failed = untried; then
25630     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25631$as_echo "no" >&6; }
25632
25633pkg_failed=no
25634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD_DAEMON" >&5
25635$as_echo_n "checking for SYSTEMD_DAEMON... " >&6; }
25636
25637if test -n "$SYSTEMD_DAEMON_CFLAGS"; then
25638    pkg_cv_SYSTEMD_DAEMON_CFLAGS="$SYSTEMD_DAEMON_CFLAGS"
25639 elif test -n "$PKG_CONFIG"; then
25640    if test -n "$PKG_CONFIG" && \
25641    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
25642  ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
25643  ac_status=$?
25644  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25645  test $ac_status = 0; }; then
25646  pkg_cv_SYSTEMD_DAEMON_CFLAGS=`$PKG_CONFIG --cflags "libsystemd-daemon" 2>/dev/null`
25647		      test "x$?" != "x0" && pkg_failed=yes
25648else
25649  pkg_failed=yes
25650fi
25651 else
25652    pkg_failed=untried
25653fi
25654if test -n "$SYSTEMD_DAEMON_LIBS"; then
25655    pkg_cv_SYSTEMD_DAEMON_LIBS="$SYSTEMD_DAEMON_LIBS"
25656 elif test -n "$PKG_CONFIG"; then
25657    if test -n "$PKG_CONFIG" && \
25658    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
25659  ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
25660  ac_status=$?
25661  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25662  test $ac_status = 0; }; then
25663  pkg_cv_SYSTEMD_DAEMON_LIBS=`$PKG_CONFIG --libs "libsystemd-daemon" 2>/dev/null`
25664		      test "x$?" != "x0" && pkg_failed=yes
25665else
25666  pkg_failed=yes
25667fi
25668 else
25669    pkg_failed=untried
25670fi
25671
25672
25673
25674if test $pkg_failed = yes; then
25675   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25676$as_echo "no" >&6; }
25677
25678if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25679        _pkg_short_errors_supported=yes
25680else
25681        _pkg_short_errors_supported=no
25682fi
25683        if test $_pkg_short_errors_supported = yes; then
25684	        SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-daemon" 2>&1`
25685        else
25686	        SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-daemon" 2>&1`
25687        fi
25688	# Put the nasty error message in config.log where it belongs
25689	echo "$SYSTEMD_DAEMON_PKG_ERRORS" >&5
25690
25691	HAVE_SYSTEMD_DAEMON=no
25692elif test $pkg_failed = untried; then
25693     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25694$as_echo "no" >&6; }
25695	HAVE_SYSTEMD_DAEMON=no
25696else
25697	SYSTEMD_DAEMON_CFLAGS=$pkg_cv_SYSTEMD_DAEMON_CFLAGS
25698	SYSTEMD_DAEMON_LIBS=$pkg_cv_SYSTEMD_DAEMON_LIBS
25699        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25700$as_echo "yes" >&6; }
25701	HAVE_SYSTEMD_DAEMON=yes;
25702					      LIBSYSTEMD_DAEMON=libsystemd-daemon
25703fi
25704else
25705	SYSTEMD_DAEMON_CFLAGS=$pkg_cv_SYSTEMD_DAEMON_CFLAGS
25706	SYSTEMD_DAEMON_LIBS=$pkg_cv_SYSTEMD_DAEMON_LIBS
25707        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25708$as_echo "yes" >&6; }
25709	HAVE_SYSTEMD_DAEMON=yes;
25710			   LIBSYSTEMD_DAEMON="$LIBSYSTEMD"
25711fi
25712	if test "x$HAVE_SYSTEMD_DAEMON" = xyes; then
25713
25714$as_echo "#define HAVE_SYSTEMD_DAEMON 1" >>confdefs.h
25715
25716		REQUIRED_LIBS="$REQUIRED_LIBS $LIBSYSTEMD_DAEMON"
25717	elif test "x$WITH_SYSTEMD_DAEMON" = xyes; then
25718		as_fn_error $? "systemd support requested but no library has been found" "$LINENO" 5
25719	fi
25720fi
25721 if test "x$HAVE_SYSTEMD_DAEMON" = "xyes"; then
25722  HAVE_SYSTEMD_DAEMON_TRUE=
25723  HAVE_SYSTEMD_DAEMON_FALSE='#'
25724else
25725  HAVE_SYSTEMD_DAEMON_TRUE='#'
25726  HAVE_SYSTEMD_DAEMON_FALSE=
25727fi
25728
25729
25730if test "x$CONFIG_UDEV" = xyes && test "x$CONFIG_HAL" = xyes; then
25731	as_fn_error $? "Hotplugging through both libudev and hal not allowed" "$LINENO" 5
25732fi
25733
25734if test "x$CONFIG_DEVD" = xauto; then
25735	case $host_os in
25736		*freebsd*)
25737			CONFIG_DEVD=yes
25738			;;
25739		*)
25740			CONFIG_DEVD=no
25741			;;
25742	esac
25743fi
25744 if test "x$CONFIG_DEVD" = xyes; then
25745  CONFIG_DEVD_TRUE=
25746  CONFIG_DEVD_FALSE='#'
25747else
25748  CONFIG_DEVD_TRUE='#'
25749  CONFIG_DEVD_FALSE=
25750fi
25751
25752if test "x$CONFIG_DEVD" = xyes; then
25753
25754$as_echo "#define CONFIG_DEVD 1" >>confdefs.h
25755
25756fi
25757
25758if test "x$CONFIG_UDEV" != xno; then
25759
25760pkg_failed=no
25761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for UDEV" >&5
25762$as_echo_n "checking for UDEV... " >&6; }
25763
25764if test -n "$UDEV_CFLAGS"; then
25765    pkg_cv_UDEV_CFLAGS="$UDEV_CFLAGS"
25766 elif test -n "$PKG_CONFIG"; then
25767    if test -n "$PKG_CONFIG" && \
25768    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBUDEV\""; } >&5
25769  ($PKG_CONFIG --exists --print-errors "$LIBUDEV") 2>&5
25770  ac_status=$?
25771  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25772  test $ac_status = 0; }; then
25773  pkg_cv_UDEV_CFLAGS=`$PKG_CONFIG --cflags "$LIBUDEV" 2>/dev/null`
25774		      test "x$?" != "x0" && pkg_failed=yes
25775else
25776  pkg_failed=yes
25777fi
25778 else
25779    pkg_failed=untried
25780fi
25781if test -n "$UDEV_LIBS"; then
25782    pkg_cv_UDEV_LIBS="$UDEV_LIBS"
25783 elif test -n "$PKG_CONFIG"; then
25784    if test -n "$PKG_CONFIG" && \
25785    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBUDEV\""; } >&5
25786  ($PKG_CONFIG --exists --print-errors "$LIBUDEV") 2>&5
25787  ac_status=$?
25788  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25789  test $ac_status = 0; }; then
25790  pkg_cv_UDEV_LIBS=`$PKG_CONFIG --libs "$LIBUDEV" 2>/dev/null`
25791		      test "x$?" != "x0" && pkg_failed=yes
25792else
25793  pkg_failed=yes
25794fi
25795 else
25796    pkg_failed=untried
25797fi
25798
25799
25800
25801if test $pkg_failed = yes; then
25802   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25803$as_echo "no" >&6; }
25804
25805if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25806        _pkg_short_errors_supported=yes
25807else
25808        _pkg_short_errors_supported=no
25809fi
25810        if test $_pkg_short_errors_supported = yes; then
25811	        UDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBUDEV" 2>&1`
25812        else
25813	        UDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBUDEV" 2>&1`
25814        fi
25815	# Put the nasty error message in config.log where it belongs
25816	echo "$UDEV_PKG_ERRORS" >&5
25817
25818	HAVE_LIBUDEV=no
25819elif test $pkg_failed = untried; then
25820     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25821$as_echo "no" >&6; }
25822	HAVE_LIBUDEV=no
25823else
25824	UDEV_CFLAGS=$pkg_cv_UDEV_CFLAGS
25825	UDEV_LIBS=$pkg_cv_UDEV_LIBS
25826        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25827$as_echo "yes" >&6; }
25828	HAVE_LIBUDEV=yes
25829fi
25830	if test "x$CONFIG_UDEV" = xauto; then
25831		CONFIG_UDEV="$HAVE_LIBUDEV"
25832
25833$as_echo "#define HAVE_LIBUDEV 1" >>confdefs.h
25834
25835	fi
25836fi
25837 if test "x$CONFIG_UDEV" = xyes; then
25838  CONFIG_UDEV_TRUE=
25839  CONFIG_UDEV_FALSE='#'
25840else
25841  CONFIG_UDEV_TRUE='#'
25842  CONFIG_UDEV_FALSE=
25843fi
25844
25845if test "x$CONFIG_UDEV" = xyes; then
25846	CONFIG_HAL=no
25847	if test "x$CONFIG_UDEV_KMS" = xauto; then
25848		CONFIG_UDEV_KMS="$HAVE_LIBUDEV"
25849	fi
25850	if ! test "x$HAVE_LIBUDEV" = xyes; then
25851		as_fn_error $? "udev configuration API requested, but libudev is not installed" "$LINENO" 5
25852	fi
25853
25854$as_echo "#define CONFIG_UDEV 1" >>confdefs.h
25855
25856	if test "x$CONFIG_UDEV_KMS" = xyes; then
25857
25858$as_echo "#define CONFIG_UDEV_KMS 1" >>confdefs.h
25859
25860	fi
25861	SAVE_LIBS=$LIBS
25862	SAVE_CFLAGS=$CFLAGS
25863	CFLAGS="$CFLAGS $UDEV_CFLAGS"
25864	LIBS=$UDEV_LIBS
25865	for ac_func in udev_monitor_filter_add_match_tag
25866do :
25867  ac_fn_c_check_func "$LINENO" "udev_monitor_filter_add_match_tag" "ac_cv_func_udev_monitor_filter_add_match_tag"
25868if test "x$ac_cv_func_udev_monitor_filter_add_match_tag" = xyes; then :
25869  cat >>confdefs.h <<_ACEOF
25870#define HAVE_UDEV_MONITOR_FILTER_ADD_MATCH_TAG 1
25871_ACEOF
25872
25873fi
25874done
25875
25876	for ac_func in udev_enumerate_add_match_tag
25877do :
25878  ac_fn_c_check_func "$LINENO" "udev_enumerate_add_match_tag" "ac_cv_func_udev_enumerate_add_match_tag"
25879if test "x$ac_cv_func_udev_enumerate_add_match_tag" = xyes; then :
25880  cat >>confdefs.h <<_ACEOF
25881#define HAVE_UDEV_ENUMERATE_ADD_MATCH_TAG 1
25882_ACEOF
25883
25884fi
25885done
25886
25887	LIBS=$SAVE_LIBS
25888	CFLAGS=$SAVE_CFLAGS
25889fi
25890 if test "x$CONFIG_UDEV_KMS" = xyes; then
25891  CONFIG_UDEV_KMS_TRUE=
25892  CONFIG_UDEV_KMS_FALSE='#'
25893else
25894  CONFIG_UDEV_KMS_TRUE='#'
25895  CONFIG_UDEV_KMS_FALSE=
25896fi
25897
25898
25899
25900pkg_failed=no
25901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5
25902$as_echo_n "checking for DBUS... " >&6; }
25903
25904if test -n "$DBUS_CFLAGS"; then
25905    pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
25906 elif test -n "$PKG_CONFIG"; then
25907    if test -n "$PKG_CONFIG" && \
25908    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDBUS\""; } >&5
25909  ($PKG_CONFIG --exists --print-errors "$LIBDBUS") 2>&5
25910  ac_status=$?
25911  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25912  test $ac_status = 0; }; then
25913  pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "$LIBDBUS" 2>/dev/null`
25914		      test "x$?" != "x0" && pkg_failed=yes
25915else
25916  pkg_failed=yes
25917fi
25918 else
25919    pkg_failed=untried
25920fi
25921if test -n "$DBUS_LIBS"; then
25922    pkg_cv_DBUS_LIBS="$DBUS_LIBS"
25923 elif test -n "$PKG_CONFIG"; then
25924    if test -n "$PKG_CONFIG" && \
25925    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDBUS\""; } >&5
25926  ($PKG_CONFIG --exists --print-errors "$LIBDBUS") 2>&5
25927  ac_status=$?
25928  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25929  test $ac_status = 0; }; then
25930  pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "$LIBDBUS" 2>/dev/null`
25931		      test "x$?" != "x0" && pkg_failed=yes
25932else
25933  pkg_failed=yes
25934fi
25935 else
25936    pkg_failed=untried
25937fi
25938
25939
25940
25941if test $pkg_failed = yes; then
25942   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25943$as_echo "no" >&6; }
25944
25945if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25946        _pkg_short_errors_supported=yes
25947else
25948        _pkg_short_errors_supported=no
25949fi
25950        if test $_pkg_short_errors_supported = yes; then
25951	        DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBDBUS" 2>&1`
25952        else
25953	        DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBDBUS" 2>&1`
25954        fi
25955	# Put the nasty error message in config.log where it belongs
25956	echo "$DBUS_PKG_ERRORS" >&5
25957
25958	HAVE_DBUS=no
25959elif test $pkg_failed = untried; then
25960     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25961$as_echo "no" >&6; }
25962	HAVE_DBUS=no
25963else
25964	DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
25965	DBUS_LIBS=$pkg_cv_DBUS_LIBS
25966        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25967$as_echo "yes" >&6; }
25968	HAVE_DBUS=yes
25969fi
25970if test "x$HAVE_DBUS" = xyes; then
25971
25972$as_echo "#define HAVE_DBUS 1" >>confdefs.h
25973
25974fi
25975 if test "x$HAVE_DBUS" = xyes; then
25976  HAVE_DBUS_TRUE=
25977  HAVE_DBUS_FALSE='#'
25978else
25979  HAVE_DBUS_TRUE='#'
25980  HAVE_DBUS_FALSE=
25981fi
25982
25983
25984
25985pkg_failed=no
25986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for HAL" >&5
25987$as_echo_n "checking for HAL... " >&6; }
25988
25989if test -n "$HAL_CFLAGS"; then
25990    pkg_cv_HAL_CFLAGS="$HAL_CFLAGS"
25991 elif test -n "$PKG_CONFIG"; then
25992    if test -n "$PKG_CONFIG" && \
25993    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"hal\""; } >&5
25994  ($PKG_CONFIG --exists --print-errors "hal") 2>&5
25995  ac_status=$?
25996  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25997  test $ac_status = 0; }; then
25998  pkg_cv_HAL_CFLAGS=`$PKG_CONFIG --cflags "hal" 2>/dev/null`
25999		      test "x$?" != "x0" && pkg_failed=yes
26000else
26001  pkg_failed=yes
26002fi
26003 else
26004    pkg_failed=untried
26005fi
26006if test -n "$HAL_LIBS"; then
26007    pkg_cv_HAL_LIBS="$HAL_LIBS"
26008 elif test -n "$PKG_CONFIG"; then
26009    if test -n "$PKG_CONFIG" && \
26010    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"hal\""; } >&5
26011  ($PKG_CONFIG --exists --print-errors "hal") 2>&5
26012  ac_status=$?
26013  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26014  test $ac_status = 0; }; then
26015  pkg_cv_HAL_LIBS=`$PKG_CONFIG --libs "hal" 2>/dev/null`
26016		      test "x$?" != "x0" && pkg_failed=yes
26017else
26018  pkg_failed=yes
26019fi
26020 else
26021    pkg_failed=untried
26022fi
26023
26024
26025
26026if test $pkg_failed = yes; then
26027   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26028$as_echo "no" >&6; }
26029
26030if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26031        _pkg_short_errors_supported=yes
26032else
26033        _pkg_short_errors_supported=no
26034fi
26035        if test $_pkg_short_errors_supported = yes; then
26036	        HAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "hal" 2>&1`
26037        else
26038	        HAL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "hal" 2>&1`
26039        fi
26040	# Put the nasty error message in config.log where it belongs
26041	echo "$HAL_PKG_ERRORS" >&5
26042
26043	HAVE_HAL=no
26044elif test $pkg_failed = untried; then
26045     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26046$as_echo "no" >&6; }
26047	HAVE_HAL=no
26048else
26049	HAL_CFLAGS=$pkg_cv_HAL_CFLAGS
26050	HAL_LIBS=$pkg_cv_HAL_LIBS
26051        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26052$as_echo "yes" >&6; }
26053	HAVE_HAL=yes
26054fi
26055if test "x$CONFIG_HAL" = xauto; then
26056	CONFIG_HAL="$HAVE_HAL"
26057fi
26058if test "x$CONFIG_HAL" = xyes; then
26059	if ! test "x$HAVE_HAL" = xyes; then
26060		as_fn_error $? "HAL hotplug API requested, but HAL is not installed." "$LINENO" 5
26061	fi
26062
26063
26064$as_echo "#define CONFIG_HAL 1" >>confdefs.h
26065
26066	NEED_DBUS="yes"
26067fi
26068 if test "x$CONFIG_HAL" = xyes; then
26069  CONFIG_HAL_TRUE=
26070  CONFIG_HAL_FALSE='#'
26071else
26072  CONFIG_HAL_TRUE='#'
26073  CONFIG_HAL_FALSE=
26074fi
26075
26076
26077if test "x$SYSTEMD_LOGIND" = xauto; then
26078        if test "x$HAVE_DBUS" = xyes -a "x$CONFIG_UDEV" = xyes ; then
26079            case $host_os in
26080                *linux*)
26081                        SYSTEMD_LOGIND=yes
26082                        ;;
26083                *)
26084                        SYSTEMD_LOGIND=no
26085                        ;;
26086            esac
26087        else
26088                SYSTEMD_LOGIND=no
26089        fi
26090fi
26091if test "x$SYSTEMD_LOGIND" = xyes; then
26092        if ! test "x$HAVE_DBUS" = xyes; then
26093                as_fn_error $? "systemd-logind requested, but D-Bus is not installed." "$LINENO" 5
26094        fi
26095        if ! test "x$CONFIG_UDEV" = xyes ; then
26096                as_fn_error $? "systemd-logind is only supported in combination with udev configuration." "$LINENO" 5
26097        fi
26098
26099
26100$as_echo "#define SYSTEMD_LOGIND 1" >>confdefs.h
26101
26102        NEED_DBUS="yes"
26103fi
26104 if test "x$SYSTEMD_LOGIND" = xyes; then
26105  SYSTEMD_LOGIND_TRUE=
26106  SYSTEMD_LOGIND_FALSE='#'
26107else
26108  SYSTEMD_LOGIND_TRUE='#'
26109  SYSTEMD_LOGIND_FALSE=
26110fi
26111
26112
26113if test "x$SUID_WRAPPER" = xyes; then
26114
26115  prefix_NONE=
26116  exec_prefix_NONE=
26117  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
26118  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
26119  eval ac_define_dir="\"$libexecdir\""
26120  eval ac_define_dir="\"$ac_define_dir\""
26121  SUID_WRAPPER_DIR="$ac_define_dir"
26122
26123
26124cat >>confdefs.h <<_ACEOF
26125#define SUID_WRAPPER_DIR "$ac_define_dir"
26126_ACEOF
26127
26128  test "$prefix_NONE" && prefix=NONE
26129  test "$exec_prefix_NONE" && exec_prefix=NONE
26130
26131        SETUID="no"
26132fi
26133 if test "x$SUID_WRAPPER" = xyes; then
26134  SUID_WRAPPER_TRUE=
26135  SUID_WRAPPER_FALSE='#'
26136else
26137  SUID_WRAPPER_TRUE='#'
26138  SUID_WRAPPER_FALSE=
26139fi
26140
26141
26142if test "x$NEED_DBUS" = xyes; then
26143
26144$as_echo "#define NEED_DBUS 1" >>confdefs.h
26145
26146fi
26147 if test "x$NEED_DBUS" = xyes; then
26148  NEED_DBUS_TRUE=
26149  NEED_DBUS_FALSE='#'
26150else
26151  NEED_DBUS_TRUE='#'
26152  NEED_DBUS_FALSE=
26153fi
26154
26155
26156if test "x$CONFIG_WSCONS" = xauto; then
26157	case $host_os in
26158		*openbsd*)
26159			CONFIG_WSCONS=yes;
26160			;;
26161		*)
26162			CONFIG_WSCONS=no;
26163			;;
26164	esac
26165fi
26166 if test "x$CONFIG_WSCONS" = xyes; then
26167  CONFIG_WSCONS_TRUE=
26168  CONFIG_WSCONS_FALSE='#'
26169else
26170  CONFIG_WSCONS_TRUE='#'
26171  CONFIG_WSCONS_FALSE=
26172fi
26173
26174if test "x$CONFIG_WSCONS" = xyes; then
26175
26176$as_echo "#define CONFIG_WSCONS 1" >>confdefs.h
26177
26178fi
26179
26180
26181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc..." >&5
26182$as_echo_n "checking for glibc...... " >&6; }
26183cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26184/* end confdefs.h.  */
26185
26186#include <features.h>
26187#ifndef __GLIBC__
26188#error
26189#endif
26190
26191_ACEOF
26192if ac_fn_c_try_cpp "$LINENO"; then :
26193  glibc=yes
26194else
26195  glibc=no
26196fi
26197rm -f conftest.err conftest.i conftest.$ac_ext
26198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc" >&5
26199$as_echo "$glibc" >&6; }
26200
26201for ac_func in clock_gettime
26202do :
26203  ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
26204if test "x$ac_cv_func_clock_gettime" = xyes; then :
26205  cat >>confdefs.h <<_ACEOF
26206#define HAVE_CLOCK_GETTIME 1
26207_ACEOF
26208 have_clock_gettime=yes
26209else
26210  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
26211$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
26212if ${ac_cv_lib_rt_clock_gettime+:} false; then :
26213  $as_echo_n "(cached) " >&6
26214else
26215  ac_check_lib_save_LIBS=$LIBS
26216LIBS="-lrt  $LIBS"
26217cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26218/* end confdefs.h.  */
26219
26220/* Override any GCC internal prototype to avoid an error.
26221   Use char because int might match the return type of a GCC
26222   builtin and then its argument prototype would still apply.  */
26223#ifdef __cplusplus
26224extern "C"
26225#endif
26226char clock_gettime ();
26227int
26228main ()
26229{
26230return clock_gettime ();
26231  ;
26232  return 0;
26233}
26234_ACEOF
26235if ac_fn_c_try_link "$LINENO"; then :
26236  ac_cv_lib_rt_clock_gettime=yes
26237else
26238  ac_cv_lib_rt_clock_gettime=no
26239fi
26240rm -f core conftest.err conftest.$ac_objext \
26241    conftest$ac_exeext conftest.$ac_ext
26242LIBS=$ac_check_lib_save_LIBS
26243fi
26244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
26245$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
26246if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
26247  have_clock_gettime=-lrt
26248else
26249  have_clock_gettime=no
26250fi
26251
26252fi
26253done
26254
26255
26256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a useful monotonic clock ..." >&5
26257$as_echo_n "checking for a useful monotonic clock ...... " >&6; }
26258
26259if ! test "x$have_clock_gettime" = xno; then
26260    if ! test "x$have_clock_gettime" = xyes; then
26261        CLOCK_LIBS="$have_clock_gettime"
26262    else
26263        CLOCK_LIBS=""
26264    fi
26265
26266    LIBS_SAVE="$LIBS"
26267    LIBS="$CLOCK_LIBS"
26268    CPPFLAGS_SAVE="$CPPFLAGS"
26269
26270    if test x"$glibc" = xyes; then
26271        CPPFLAGS="$CPPFLAGS -D_POSIX_C_SOURCE=200112L"
26272    fi
26273
26274    if test "$cross_compiling" = yes; then :
26275  MONOTONIC_CLOCK="cross compiling"
26276else
26277  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26278/* end confdefs.h.  */
26279
26280#include <time.h>
26281
26282int main(int argc, char *argv[]) {
26283    struct timespec tp;
26284
26285    if (clock_gettime(CLOCK_MONOTONIC, &tp) == 0)
26286        return 0;
26287    else
26288        return 1;
26289}
26290
26291_ACEOF
26292if ac_fn_c_try_run "$LINENO"; then :
26293  MONOTONIC_CLOCK=yes
26294else
26295  MONOTONIC_CLOCK=no
26296fi
26297rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26298  conftest.$ac_objext conftest.beam conftest.$ac_ext
26299fi
26300
26301
26302    if test "$MONOTONIC_CLOCK" = "cross compiling"; then
26303        ac_fn_c_check_decl "$LINENO" "CLOCK_MONOTONIC" "ac_cv_have_decl_CLOCK_MONOTONIC" "#include <time.h>
26304"
26305if test "x$ac_cv_have_decl_CLOCK_MONOTONIC" = xyes; then :
26306  MONOTONIC_CLOCK="guessing yes"
26307else
26308  MONOTONIC_CLOCK=no
26309fi
26310
26311    fi
26312
26313    LIBS="$LIBS_SAVE"
26314    CPPFLAGS="$CPPFLAGS_SAVE"
26315else
26316    MONOTONIC_CLOCK=no
26317fi
26318
26319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MONOTONIC_CLOCK" >&5
26320$as_echo "$MONOTONIC_CLOCK" >&6; }
26321if test "$MONOTONIC_CLOCK" = "guessing yes"; then
26322	MONOTONIC_CLOCK=yes
26323fi
26324
26325if test "x$MONOTONIC_CLOCK" = xyes; then
26326
26327$as_echo "#define MONOTONIC_CLOCK 1" >>confdefs.h
26328
26329    LIBS="$LIBS $CLOCK_LIBS"
26330fi
26331
26332 if test "x$XV" = xyes; then
26333  XV_TRUE=
26334  XV_FALSE='#'
26335else
26336  XV_TRUE='#'
26337  XV_FALSE=
26338fi
26339
26340if test "x$XV" = xyes; then
26341
26342$as_echo "#define XV 1" >>confdefs.h
26343
26344
26345$as_echo "#define XvExtension 1" >>confdefs.h
26346
26347	REQUIRED_MODULES="$REQUIRED_MODULES $VIDEOPROTO"
26348	SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $VIDEOPROTO"
26349else
26350	XVMC=no
26351fi
26352
26353 if test "x$XVMC" = xyes; then
26354  XVMC_TRUE=
26355  XVMC_FALSE='#'
26356else
26357  XVMC_TRUE='#'
26358  XVMC_FALSE=
26359fi
26360
26361if test "x$XVMC" = xyes; then
26362
26363$as_echo "#define XvMCExtension 1" >>confdefs.h
26364
26365fi
26366
26367 if test "x$COMPOSITE" = xyes; then
26368  COMPOSITE_TRUE=
26369  COMPOSITE_FALSE='#'
26370else
26371  COMPOSITE_TRUE='#'
26372  COMPOSITE_FALSE=
26373fi
26374
26375if test "x$COMPOSITE" = xyes; then
26376
26377$as_echo "#define COMPOSITE 1" >>confdefs.h
26378
26379	REQUIRED_MODULES="$REQUIRED_MODULES $COMPOSITEPROTO"
26380	COMPOSITE_LIB='$(top_builddir)/composite/libcomposite.la'
26381	COMPOSITE_INC='-I$(top_srcdir)/composite'
26382fi
26383
26384if test "x$MITSHM" = xauto; then
26385	MITSHM="$ac_cv_sysv_ipc"
26386fi
26387 if test "x$MITSHM" = xyes; then
26388  MITSHM_TRUE=
26389  MITSHM_FALSE='#'
26390else
26391  MITSHM_TRUE='#'
26392  MITSHM_FALSE=
26393fi
26394
26395if test "x$MITSHM" = xyes; then
26396
26397$as_echo "#define MITSHM 1" >>confdefs.h
26398
26399
26400$as_echo "#define HAS_SHM 1" >>confdefs.h
26401
26402fi
26403
26404 if test "x$RECORD" = xyes; then
26405  RECORD_TRUE=
26406  RECORD_FALSE='#'
26407else
26408  RECORD_TRUE='#'
26409  RECORD_FALSE=
26410fi
26411
26412if test "x$RECORD" = xyes; then
26413
26414$as_echo "#define XRECORD 1" >>confdefs.h
26415
26416	REQUIRED_MODULES="$REQUIRED_MODULES $RECORDPROTO"
26417	RECORD_LIB='$(top_builddir)/record/librecord.la'
26418fi
26419
26420 if test "x$SCREENSAVER" = xyes; then
26421  SCREENSAVER_TRUE=
26422  SCREENSAVER_FALSE='#'
26423else
26424  SCREENSAVER_TRUE='#'
26425  SCREENSAVER_FALSE=
26426fi
26427
26428if test "x$SCREENSAVER" = xyes; then
26429
26430$as_echo "#define SCREENSAVER 1" >>confdefs.h
26431
26432	REQUIRED_MODULES="$REQUIRED_MODULES $SCRNSAVERPROTO"
26433	SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $SCRNSAVERPROTO"
26434fi
26435
26436HASHTABLE=no
26437 if test "x$RES" = xyes; then
26438  RES_TRUE=
26439  RES_FALSE='#'
26440else
26441  RES_TRUE='#'
26442  RES_FALSE=
26443fi
26444
26445if test "x$RES" = xyes; then
26446
26447$as_echo "#define RES 1" >>confdefs.h
26448
26449	HASHTABLE=yes
26450	REQUIRED_MODULES="$REQUIRED_MODULES $RESOURCEPROTO"
26451	SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $RESOURCEPROTO"
26452fi
26453
26454if test "x$LISTEN_TCP" = xyes; then
26455
26456$as_echo "#define LISTEN_TCP 1" >>confdefs.h
26457
26458fi
26459if test "x$LISTEN_UNIX" = xyes; then
26460
26461$as_echo "#define LISTEN_UNIX 1" >>confdefs.h
26462
26463fi
26464if test "x$LISTEN_LOCAL" = xyes; then
26465
26466$as_echo "#define LISTEN_LOCAL 1" >>confdefs.h
26467
26468fi
26469
26470# The XRes extension may support client ID tracking only if it has
26471# been specifically enabled. Client ID tracking is implicitly not
26472# supported if XRes extension is disabled.
26473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to track client ids" >&5
26474$as_echo_n "checking whether to track client ids... " >&6; }
26475if test "x$RES" = xyes && test "x$CLIENTIDS" = xyes; then
26476
26477$as_echo "#define CLIENTIDS 1" >>confdefs.h
26478
26479else
26480	CLIENTIDS=no
26481fi
26482if test "x$CLIENTIDS" = xyes; then
26483	case $host_os in
26484	openbsd*)
26485		SYS_LIBS="$SYS_LIBS -lkvm"
26486	;;
26487	esac
26488fi
26489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLIENTIDS" >&5
26490$as_echo "$CLIENTIDS" >&6; }
26491 if test "x$CLIENTIDS" = xyes; then
26492  CLIENTIDS_TRUE=
26493  CLIENTIDS_FALSE='#'
26494else
26495  CLIENTIDS_TRUE='#'
26496  CLIENTIDS_FALSE=
26497fi
26498
26499
26500 if test "x$DRI" = xyes; then
26501  DRI_TRUE=
26502  DRI_FALSE='#'
26503else
26504  DRI_TRUE='#'
26505  DRI_FALSE=
26506fi
26507
26508if test "x$DRI" = xyes; then
26509
26510$as_echo "#define XF86DRI 1" >>confdefs.h
26511
26512	REQUIRED_MODULES="$REQUIRED_MODULES $DRIPROTO $GLPROTO $LIBDRI"
26513	SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $DRIPROTO $GLPROTO $LIBDRI"
26514fi
26515
26516
26517pkg_failed=no
26518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRI2PROTO" >&5
26519$as_echo_n "checking for DRI2PROTO... " >&6; }
26520
26521if test -n "$DRI2PROTO_CFLAGS"; then
26522    pkg_cv_DRI2PROTO_CFLAGS="$DRI2PROTO_CFLAGS"
26523 elif test -n "$PKG_CONFIG"; then
26524    if test -n "$PKG_CONFIG" && \
26525    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DRI2PROTO\""; } >&5
26526  ($PKG_CONFIG --exists --print-errors "$DRI2PROTO") 2>&5
26527  ac_status=$?
26528  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26529  test $ac_status = 0; }; then
26530  pkg_cv_DRI2PROTO_CFLAGS=`$PKG_CONFIG --cflags "$DRI2PROTO" 2>/dev/null`
26531		      test "x$?" != "x0" && pkg_failed=yes
26532else
26533  pkg_failed=yes
26534fi
26535 else
26536    pkg_failed=untried
26537fi
26538if test -n "$DRI2PROTO_LIBS"; then
26539    pkg_cv_DRI2PROTO_LIBS="$DRI2PROTO_LIBS"
26540 elif test -n "$PKG_CONFIG"; then
26541    if test -n "$PKG_CONFIG" && \
26542    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DRI2PROTO\""; } >&5
26543  ($PKG_CONFIG --exists --print-errors "$DRI2PROTO") 2>&5
26544  ac_status=$?
26545  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26546  test $ac_status = 0; }; then
26547  pkg_cv_DRI2PROTO_LIBS=`$PKG_CONFIG --libs "$DRI2PROTO" 2>/dev/null`
26548		      test "x$?" != "x0" && pkg_failed=yes
26549else
26550  pkg_failed=yes
26551fi
26552 else
26553    pkg_failed=untried
26554fi
26555
26556
26557
26558if test $pkg_failed = yes; then
26559   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26560$as_echo "no" >&6; }
26561
26562if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26563        _pkg_short_errors_supported=yes
26564else
26565        _pkg_short_errors_supported=no
26566fi
26567        if test $_pkg_short_errors_supported = yes; then
26568	        DRI2PROTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$DRI2PROTO" 2>&1`
26569        else
26570	        DRI2PROTO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$DRI2PROTO" 2>&1`
26571        fi
26572	# Put the nasty error message in config.log where it belongs
26573	echo "$DRI2PROTO_PKG_ERRORS" >&5
26574
26575	HAVE_DRI2PROTO=no
26576elif test $pkg_failed = untried; then
26577     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26578$as_echo "no" >&6; }
26579	HAVE_DRI2PROTO=no
26580else
26581	DRI2PROTO_CFLAGS=$pkg_cv_DRI2PROTO_CFLAGS
26582	DRI2PROTO_LIBS=$pkg_cv_DRI2PROTO_LIBS
26583        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26584$as_echo "yes" >&6; }
26585	HAVE_DRI2PROTO=yes
26586fi
26587case "$DRI2,$HAVE_DRI2PROTO" in
26588	yes,no)
26589		as_fn_error $? "DRI2 requested, but dri2proto not found." "$LINENO" 5
26590		;;
26591	yes,yes | auto,yes)
26592
26593$as_echo "#define DRI2 1" >>confdefs.h
26594
26595		DRI2=yes
26596		LIBGL="gl >= 1.2"
26597		SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $DRI2PROTO"
26598		;;
26599esac
26600 if test "x$DRI2" = xyes; then
26601  DRI2_TRUE=
26602  DRI2_FALSE='#'
26603else
26604  DRI2_TRUE='#'
26605  DRI2_FALSE=
26606fi
26607
26608
26609# Check whether --enable-xtrans-send-fds was given.
26610if test "${enable_xtrans_send_fds+set}" = set; then :
26611  enableval=$enable_xtrans_send_fds; XTRANS_SEND_FDS=$enableval
26612else
26613  XTRANS_SEND_FDS=auto
26614fi
26615
26616
26617case "x$XTRANS_SEND_FDS" in
26618xauto)
26619	case "$host_os" in
26620	linux*|solaris*|freebsd*|dragonfly*|openbsd*)
26621		XTRANS_SEND_FDS=yes
26622		;;
26623	*)
26624		XTRANS_SEND_FDS=no
26625		;;
26626	esac
26627esac
26628
26629case "x$XTRANS_SEND_FDS" in
26630xyes)
26631
26632$as_echo "#define XTRANS_SEND_FDS 1" >>confdefs.h
26633
26634	;;
26635esac
26636
26637case "$DRI3,$XTRANS_SEND_FDS" in
26638	yes,yes | auto,yes)
26639		;;
26640	yes,no)
26641		as_fn_error $? "DRI3 requested, but xtrans fd passing support not found." "$LINENO" 5
26642		DRI3=no
26643		;;
26644	no,*)
26645		;;
26646	*)
26647		{ $as_echo "$as_me:${as_lineno-$LINENO}: DRI3 disabled because xtrans fd passing support not found." >&5
26648$as_echo "$as_me: DRI3 disabled because xtrans fd passing support not found." >&6;}
26649		DRI3=no
26650		;;
26651esac
26652
26653
26654pkg_failed=no
26655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRI3PROTO" >&5
26656$as_echo_n "checking for DRI3PROTO... " >&6; }
26657
26658if test -n "$DRI3PROTO_CFLAGS"; then
26659    pkg_cv_DRI3PROTO_CFLAGS="$DRI3PROTO_CFLAGS"
26660 elif test -n "$PKG_CONFIG"; then
26661    if test -n "$PKG_CONFIG" && \
26662    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DRI3PROTO\""; } >&5
26663  ($PKG_CONFIG --exists --print-errors "$DRI3PROTO") 2>&5
26664  ac_status=$?
26665  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26666  test $ac_status = 0; }; then
26667  pkg_cv_DRI3PROTO_CFLAGS=`$PKG_CONFIG --cflags "$DRI3PROTO" 2>/dev/null`
26668		      test "x$?" != "x0" && pkg_failed=yes
26669else
26670  pkg_failed=yes
26671fi
26672 else
26673    pkg_failed=untried
26674fi
26675if test -n "$DRI3PROTO_LIBS"; then
26676    pkg_cv_DRI3PROTO_LIBS="$DRI3PROTO_LIBS"
26677 elif test -n "$PKG_CONFIG"; then
26678    if test -n "$PKG_CONFIG" && \
26679    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DRI3PROTO\""; } >&5
26680  ($PKG_CONFIG --exists --print-errors "$DRI3PROTO") 2>&5
26681  ac_status=$?
26682  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26683  test $ac_status = 0; }; then
26684  pkg_cv_DRI3PROTO_LIBS=`$PKG_CONFIG --libs "$DRI3PROTO" 2>/dev/null`
26685		      test "x$?" != "x0" && pkg_failed=yes
26686else
26687  pkg_failed=yes
26688fi
26689 else
26690    pkg_failed=untried
26691fi
26692
26693
26694
26695if test $pkg_failed = yes; then
26696   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26697$as_echo "no" >&6; }
26698
26699if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26700        _pkg_short_errors_supported=yes
26701else
26702        _pkg_short_errors_supported=no
26703fi
26704        if test $_pkg_short_errors_supported = yes; then
26705	        DRI3PROTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$DRI3PROTO" 2>&1`
26706        else
26707	        DRI3PROTO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$DRI3PROTO" 2>&1`
26708        fi
26709	# Put the nasty error message in config.log where it belongs
26710	echo "$DRI3PROTO_PKG_ERRORS" >&5
26711
26712	HAVE_DRI3PROTO=no
26713elif test $pkg_failed = untried; then
26714     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26715$as_echo "no" >&6; }
26716	HAVE_DRI3PROTO=no
26717else
26718	DRI3PROTO_CFLAGS=$pkg_cv_DRI3PROTO_CFLAGS
26719	DRI3PROTO_LIBS=$pkg_cv_DRI3PROTO_LIBS
26720        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26721$as_echo "yes" >&6; }
26722	HAVE_DRI3PROTO=yes
26723fi
26724
26725case "$DRI3,$HAVE_DRI3PROTO" in
26726	yes,yes | auto,yes)
26727		REQUIRED_MODULES="$REQUIRED_MODULES dri3proto"
26728		;;
26729	yes,no)
26730		as_fn_error $? "DRI3 requested, but dri3proto not found." "$LINENO" 5
26731		DRI3=no
26732		;;
26733	no,*)
26734		;;
26735	*)
26736		{ $as_echo "$as_me:${as_lineno-$LINENO}: DRI3 disabled because dri3proto not found." >&5
26737$as_echo "$as_me: DRI3 disabled because dri3proto not found." >&6;}
26738		DRI3=no
26739		;;
26740esac
26741
26742for ac_func in sigaction
26743do :
26744  ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
26745if test "x$ac_cv_func_sigaction" = xyes; then :
26746  cat >>confdefs.h <<_ACEOF
26747#define HAVE_SIGACTION 1
26748_ACEOF
26749
26750fi
26751done
26752
26753
26754BUSFAULT=no
26755
26756case x"$ac_cv_func_sigaction" in
26757	xyes)
26758
26759$as_echo "#define HAVE_SIGACTION 1" >>confdefs.h
26760
26761		BUSFAULT=yes
26762		;;
26763esac
26764
26765case x"$BUSFAULT" in
26766	xyes)
26767
26768$as_echo "#define BUSFAULT 1" >>confdefs.h
26769
26770		;;
26771esac
26772
26773 if test x"$BUSFAULT" = xyes; then
26774  BUSFAULT_TRUE=
26775  BUSFAULT_FALSE='#'
26776else
26777  BUSFAULT_TRUE='#'
26778  BUSFAULT_FALSE=
26779fi
26780
26781
26782
26783
26784pkg_failed=no
26785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XSHMFENCE" >&5
26786$as_echo_n "checking for XSHMFENCE... " >&6; }
26787
26788if test -n "$XSHMFENCE_CFLAGS"; then
26789    pkg_cv_XSHMFENCE_CFLAGS="$XSHMFENCE_CFLAGS"
26790 elif test -n "$PKG_CONFIG"; then
26791    if test -n "$PKG_CONFIG" && \
26792    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXSHMFENCE\""; } >&5
26793  ($PKG_CONFIG --exists --print-errors "$LIBXSHMFENCE") 2>&5
26794  ac_status=$?
26795  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26796  test $ac_status = 0; }; then
26797  pkg_cv_XSHMFENCE_CFLAGS=`$PKG_CONFIG --cflags "$LIBXSHMFENCE" 2>/dev/null`
26798		      test "x$?" != "x0" && pkg_failed=yes
26799else
26800  pkg_failed=yes
26801fi
26802 else
26803    pkg_failed=untried
26804fi
26805if test -n "$XSHMFENCE_LIBS"; then
26806    pkg_cv_XSHMFENCE_LIBS="$XSHMFENCE_LIBS"
26807 elif test -n "$PKG_CONFIG"; then
26808    if test -n "$PKG_CONFIG" && \
26809    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXSHMFENCE\""; } >&5
26810  ($PKG_CONFIG --exists --print-errors "$LIBXSHMFENCE") 2>&5
26811  ac_status=$?
26812  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26813  test $ac_status = 0; }; then
26814  pkg_cv_XSHMFENCE_LIBS=`$PKG_CONFIG --libs "$LIBXSHMFENCE" 2>/dev/null`
26815		      test "x$?" != "x0" && pkg_failed=yes
26816else
26817  pkg_failed=yes
26818fi
26819 else
26820    pkg_failed=untried
26821fi
26822
26823
26824
26825if test $pkg_failed = yes; then
26826   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26827$as_echo "no" >&6; }
26828
26829if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26830        _pkg_short_errors_supported=yes
26831else
26832        _pkg_short_errors_supported=no
26833fi
26834        if test $_pkg_short_errors_supported = yes; then
26835	        XSHMFENCE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBXSHMFENCE" 2>&1`
26836        else
26837	        XSHMFENCE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBXSHMFENCE" 2>&1`
26838        fi
26839	# Put the nasty error message in config.log where it belongs
26840	echo "$XSHMFENCE_PKG_ERRORS" >&5
26841
26842	HAVE_XSHMFENCE=no
26843elif test $pkg_failed = untried; then
26844     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26845$as_echo "no" >&6; }
26846	HAVE_XSHMFENCE=no
26847else
26848	XSHMFENCE_CFLAGS=$pkg_cv_XSHMFENCE_CFLAGS
26849	XSHMFENCE_LIBS=$pkg_cv_XSHMFENCE_LIBS
26850        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26851$as_echo "yes" >&6; }
26852	HAVE_XSHMFENCE=yes
26853fi
26854if test "x$XSHMFENCE" = "xauto"; then
26855    XSHMFENCE="$HAVE_XSHMFENCE"
26856fi
26857
26858if test "x$XSHMFENCE" = "xyes"; then
26859    if test "x$HAVE_XSHMFENCE" != "xyes"; then
26860        as_fn_error $? "xshmfence requested but not installed." "$LINENO" 5
26861    fi
26862
26863$as_echo "#define HAVE_XSHMFENCE 1" >>confdefs.h
26864
26865    REQUIRED_LIBS="$REQUIRED_LIBS $LIBXSHMFENCE"
26866fi
26867
26868 if test "x$XSHMFENCE" = xyes; then
26869  XSHMFENCE_TRUE=
26870  XSHMFENCE_FALSE='#'
26871else
26872  XSHMFENCE_TRUE='#'
26873  XSHMFENCE_FALSE=
26874fi
26875
26876
26877case "$DRI3,$XSHMFENCE" in
26878	yes,yes | auto,yes)
26879		;;
26880	yes,no)
26881		as_fn_error $? "DRI3 requested, but xshmfence not found." "$LINENO" 5
26882		DRI3=no
26883		;;
26884	no,*)
26885		;;
26886	*)
26887		{ $as_echo "$as_me:${as_lineno-$LINENO}: DRI3 disabled because xshmfence not found." >&5
26888$as_echo "$as_me: DRI3 disabled because xshmfence not found." >&6;}
26889		DRI3=no
26890		;;
26891esac
26892
26893case x"$DRI3" in
26894	xyes|xauto)
26895		DRI3=yes
26896
26897$as_echo "#define DRI3 1" >>confdefs.h
26898
26899		DRI3_LIB='$(top_builddir)/dri3/libdri3.la'
26900		SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $DRI3PROTO"
26901		{ $as_echo "$as_me:${as_lineno-$LINENO}: DRI3 enabled" >&5
26902$as_echo "$as_me: DRI3 enabled" >&6;};
26903		;;
26904esac
26905
26906 if test "x$DRI3" = xyes; then
26907  DRI3_TRUE=
26908  DRI3_FALSE='#'
26909else
26910  DRI3_TRUE='#'
26911  DRI3_FALSE=
26912fi
26913
26914
26915if test "x$DRI" = xyes || test "x$DRI2" = xyes || test "x$DRI3" = xyes || test "x$CONFIG_UDEV_KMS" = xyes || test "x$XORG" = xyes; then
26916	if test "x$DRM" = xyes; then
26917
26918$as_echo "#define WITH_LIBDRM 1" >>confdefs.h
26919
26920
26921pkg_failed=no
26922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBDRM" >&5
26923$as_echo_n "checking for LIBDRM... " >&6; }
26924
26925if test -n "$LIBDRM_CFLAGS"; then
26926    pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS"
26927 elif test -n "$PKG_CONFIG"; then
26928    if test -n "$PKG_CONFIG" && \
26929    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDRM\""; } >&5
26930  ($PKG_CONFIG --exists --print-errors "$LIBDRM") 2>&5
26931  ac_status=$?
26932  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26933  test $ac_status = 0; }; then
26934  pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "$LIBDRM" 2>/dev/null`
26935		      test "x$?" != "x0" && pkg_failed=yes
26936else
26937  pkg_failed=yes
26938fi
26939 else
26940    pkg_failed=untried
26941fi
26942if test -n "$LIBDRM_LIBS"; then
26943    pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS"
26944 elif test -n "$PKG_CONFIG"; then
26945    if test -n "$PKG_CONFIG" && \
26946    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDRM\""; } >&5
26947  ($PKG_CONFIG --exists --print-errors "$LIBDRM") 2>&5
26948  ac_status=$?
26949  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26950  test $ac_status = 0; }; then
26951  pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "$LIBDRM" 2>/dev/null`
26952		      test "x$?" != "x0" && pkg_failed=yes
26953else
26954  pkg_failed=yes
26955fi
26956 else
26957    pkg_failed=untried
26958fi
26959
26960
26961
26962if test $pkg_failed = yes; then
26963   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26964$as_echo "no" >&6; }
26965
26966if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26967        _pkg_short_errors_supported=yes
26968else
26969        _pkg_short_errors_supported=no
26970fi
26971        if test $_pkg_short_errors_supported = yes; then
26972	        LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBDRM" 2>&1`
26973        else
26974	        LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBDRM" 2>&1`
26975        fi
26976	# Put the nasty error message in config.log where it belongs
26977	echo "$LIBDRM_PKG_ERRORS" >&5
26978
26979	as_fn_error $? "Package requirements ($LIBDRM) were not met:
26980
26981$LIBDRM_PKG_ERRORS
26982
26983Consider adjusting the PKG_CONFIG_PATH environment variable if you
26984installed software in a non-standard prefix.
26985
26986Alternatively, you may set the environment variables LIBDRM_CFLAGS
26987and LIBDRM_LIBS to avoid the need to call pkg-config.
26988See the pkg-config man page for more details." "$LINENO" 5
26989elif test $pkg_failed = untried; then
26990     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26991$as_echo "no" >&6; }
26992	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26993$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26994as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
26995is in your PATH or set the PKG_CONFIG environment variable to the full
26996path to pkg-config.
26997
26998Alternatively, you may set the environment variables LIBDRM_CFLAGS
26999and LIBDRM_LIBS to avoid the need to call pkg-config.
27000See the pkg-config man page for more details.
27001
27002To get pkg-config, see <http://pkg-config.freedesktop.org/>.
27003See \`config.log' for more details" "$LINENO" 5; }
27004else
27005	LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS
27006	LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS
27007        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27008$as_echo "yes" >&6; }
27009
27010fi
27011	fi
27012fi
27013
27014if test "x$GLX" = xyes; then
27015
27016pkg_failed=no
27017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XLIB" >&5
27018$as_echo_n "checking for XLIB... " >&6; }
27019
27020if test -n "$XLIB_CFLAGS"; then
27021    pkg_cv_XLIB_CFLAGS="$XLIB_CFLAGS"
27022 elif test -n "$PKG_CONFIG"; then
27023    if test -n "$PKG_CONFIG" && \
27024    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
27025  ($PKG_CONFIG --exists --print-errors "x11") 2>&5
27026  ac_status=$?
27027  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27028  test $ac_status = 0; }; then
27029  pkg_cv_XLIB_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
27030		      test "x$?" != "x0" && pkg_failed=yes
27031else
27032  pkg_failed=yes
27033fi
27034 else
27035    pkg_failed=untried
27036fi
27037if test -n "$XLIB_LIBS"; then
27038    pkg_cv_XLIB_LIBS="$XLIB_LIBS"
27039 elif test -n "$PKG_CONFIG"; then
27040    if test -n "$PKG_CONFIG" && \
27041    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
27042  ($PKG_CONFIG --exists --print-errors "x11") 2>&5
27043  ac_status=$?
27044  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27045  test $ac_status = 0; }; then
27046  pkg_cv_XLIB_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
27047		      test "x$?" != "x0" && pkg_failed=yes
27048else
27049  pkg_failed=yes
27050fi
27051 else
27052    pkg_failed=untried
27053fi
27054
27055
27056
27057if test $pkg_failed = yes; then
27058   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27059$as_echo "no" >&6; }
27060
27061if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27062        _pkg_short_errors_supported=yes
27063else
27064        _pkg_short_errors_supported=no
27065fi
27066        if test $_pkg_short_errors_supported = yes; then
27067	        XLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11" 2>&1`
27068        else
27069	        XLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11" 2>&1`
27070        fi
27071	# Put the nasty error message in config.log where it belongs
27072	echo "$XLIB_PKG_ERRORS" >&5
27073
27074	as_fn_error $? "Package requirements (x11) were not met:
27075
27076$XLIB_PKG_ERRORS
27077
27078Consider adjusting the PKG_CONFIG_PATH environment variable if you
27079installed software in a non-standard prefix.
27080
27081Alternatively, you may set the environment variables XLIB_CFLAGS
27082and XLIB_LIBS to avoid the need to call pkg-config.
27083See the pkg-config man page for more details." "$LINENO" 5
27084elif test $pkg_failed = untried; then
27085     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27086$as_echo "no" >&6; }
27087	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27088$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27089as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
27090is in your PATH or set the PKG_CONFIG environment variable to the full
27091path to pkg-config.
27092
27093Alternatively, you may set the environment variables XLIB_CFLAGS
27094and XLIB_LIBS to avoid the need to call pkg-config.
27095See the pkg-config man page for more details.
27096
27097To get pkg-config, see <http://pkg-config.freedesktop.org/>.
27098See \`config.log' for more details" "$LINENO" 5; }
27099else
27100	XLIB_CFLAGS=$pkg_cv_XLIB_CFLAGS
27101	XLIB_LIBS=$pkg_cv_XLIB_LIBS
27102        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27103$as_echo "yes" >&6; }
27104
27105fi
27106
27107pkg_failed=no
27108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GL" >&5
27109$as_echo_n "checking for GL... " >&6; }
27110
27111if test -n "$GL_CFLAGS"; then
27112    pkg_cv_GL_CFLAGS="$GL_CFLAGS"
27113 elif test -n "$PKG_CONFIG"; then
27114    if test -n "$PKG_CONFIG" && \
27115    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GLPROTO \$LIBGL\""; } >&5
27116  ($PKG_CONFIG --exists --print-errors "$GLPROTO $LIBGL") 2>&5
27117  ac_status=$?
27118  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27119  test $ac_status = 0; }; then
27120  pkg_cv_GL_CFLAGS=`$PKG_CONFIG --cflags "$GLPROTO $LIBGL" 2>/dev/null`
27121		      test "x$?" != "x0" && pkg_failed=yes
27122else
27123  pkg_failed=yes
27124fi
27125 else
27126    pkg_failed=untried
27127fi
27128if test -n "$GL_LIBS"; then
27129    pkg_cv_GL_LIBS="$GL_LIBS"
27130 elif test -n "$PKG_CONFIG"; then
27131    if test -n "$PKG_CONFIG" && \
27132    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GLPROTO \$LIBGL\""; } >&5
27133  ($PKG_CONFIG --exists --print-errors "$GLPROTO $LIBGL") 2>&5
27134  ac_status=$?
27135  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27136  test $ac_status = 0; }; then
27137  pkg_cv_GL_LIBS=`$PKG_CONFIG --libs "$GLPROTO $LIBGL" 2>/dev/null`
27138		      test "x$?" != "x0" && pkg_failed=yes
27139else
27140  pkg_failed=yes
27141fi
27142 else
27143    pkg_failed=untried
27144fi
27145
27146
27147
27148if test $pkg_failed = yes; then
27149   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27150$as_echo "no" >&6; }
27151
27152if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27153        _pkg_short_errors_supported=yes
27154else
27155        _pkg_short_errors_supported=no
27156fi
27157        if test $_pkg_short_errors_supported = yes; then
27158	        GL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$GLPROTO $LIBGL" 2>&1`
27159        else
27160	        GL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$GLPROTO $LIBGL" 2>&1`
27161        fi
27162	# Put the nasty error message in config.log where it belongs
27163	echo "$GL_PKG_ERRORS" >&5
27164
27165	as_fn_error $? "Package requirements ($GLPROTO $LIBGL) were not met:
27166
27167$GL_PKG_ERRORS
27168
27169Consider adjusting the PKG_CONFIG_PATH environment variable if you
27170installed software in a non-standard prefix.
27171
27172Alternatively, you may set the environment variables GL_CFLAGS
27173and GL_LIBS to avoid the need to call pkg-config.
27174See the pkg-config man page for more details." "$LINENO" 5
27175elif test $pkg_failed = untried; then
27176     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27177$as_echo "no" >&6; }
27178	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27179$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27180as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
27181is in your PATH or set the PKG_CONFIG environment variable to the full
27182path to pkg-config.
27183
27184Alternatively, you may set the environment variables GL_CFLAGS
27185and GL_LIBS to avoid the need to call pkg-config.
27186See the pkg-config man page for more details.
27187
27188To get pkg-config, see <http://pkg-config.freedesktop.org/>.
27189See \`config.log' for more details" "$LINENO" 5; }
27190else
27191	GL_CFLAGS=$pkg_cv_GL_CFLAGS
27192	GL_LIBS=$pkg_cv_GL_LIBS
27193        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27194$as_echo "yes" >&6; }
27195
27196fi
27197
27198
27199$as_echo "#define GLXEXT 1" >>confdefs.h
27200
27201	HASHTABLE=yes
27202	GLX_LIBS='$(top_builddir)/glx/libglx.la $(top_builddir)/glx/libglxvnd.la'
27203	GLX_SYS_LIBS="$GLX_SYS_LIBS $GL_LIBS"
27204else
27205        GLX=no
27206fi
27207 if test "x$GLX" = xyes; then
27208  GLX_TRUE=
27209  GLX_FALSE='#'
27210else
27211  GLX_TRUE='#'
27212  GLX_FALSE=
27213fi
27214
27215
27216 if test "x$HASHTABLE" = xyes; then
27217  HASHTABLE_TRUE=
27218  HASHTABLE_FALSE='#'
27219else
27220  HASHTABLE_TRUE='#'
27221  HASHTABLE_FALSE=
27222fi
27223
27224
27225
27226
27227
27228 if test "x$PRESENT" = xyes; then
27229  PRESENT_TRUE=
27230  PRESENT_FALSE='#'
27231else
27232  PRESENT_TRUE='#'
27233  PRESENT_FALSE=
27234fi
27235
27236if test "x$PRESENT" = xyes; then
27237
27238$as_echo "#define PRESENT 1" >>confdefs.h
27239
27240	REQUIRED_MODULES="$REQUIRED_MODULES $PRESENTPROTO"
27241	SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $PRESENTPROTO"
27242	PRESENT_INC='-I$(top_srcdir)/present'
27243	PRESENT_LIB='$(top_builddir)/present/libpresent.la'
27244fi
27245
27246 if test "x$XINERAMA" = xyes; then
27247  XINERAMA_TRUE=
27248  XINERAMA_FALSE='#'
27249else
27250  XINERAMA_TRUE='#'
27251  XINERAMA_FALSE=
27252fi
27253
27254if test "x$XINERAMA" = xyes; then
27255
27256$as_echo "#define XINERAMA 1" >>confdefs.h
27257
27258
27259$as_echo "#define PANORAMIX 1" >>confdefs.h
27260
27261	REQUIRED_MODULES="$REQUIRED_MODULES $XINERAMAPROTO"
27262	SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $XINERAMAPROTO"
27263fi
27264
27265 if test "x$XACE" = xyes; then
27266  XACE_TRUE=
27267  XACE_FALSE='#'
27268else
27269  XACE_TRUE='#'
27270  XACE_FALSE=
27271fi
27272
27273if test "x$XACE" = xyes; then
27274
27275$as_echo "#define XACE 1" >>confdefs.h
27276
27277fi
27278
27279 if test "x$XSELINUX" = xyes; then
27280  XSELINUX_TRUE=
27281  XSELINUX_FALSE='#'
27282else
27283  XSELINUX_TRUE='#'
27284  XSELINUX_FALSE=
27285fi
27286
27287if test "x$XSELINUX" = xyes; then
27288	if test "x$XACE" != xyes; then
27289		as_fn_error $? "cannot build SELinux extension without X-ACE" "$LINENO" 5
27290	fi
27291	for ac_header in libaudit.h
27292do :
27293  ac_fn_c_check_header_mongrel "$LINENO" "libaudit.h" "ac_cv_header_libaudit_h" "$ac_includes_default"
27294if test "x$ac_cv_header_libaudit_h" = xyes; then :
27295  cat >>confdefs.h <<_ACEOF
27296#define HAVE_LIBAUDIT_H 1
27297_ACEOF
27298
27299else
27300  as_fn_error $? "SELinux extension requires audit system headers" "$LINENO" 5
27301fi
27302
27303done
27304
27305	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for audit_open in -laudit" >&5
27306$as_echo_n "checking for audit_open in -laudit... " >&6; }
27307if ${ac_cv_lib_audit_audit_open+:} false; then :
27308  $as_echo_n "(cached) " >&6
27309else
27310  ac_check_lib_save_LIBS=$LIBS
27311LIBS="-laudit  $LIBS"
27312cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27313/* end confdefs.h.  */
27314
27315/* Override any GCC internal prototype to avoid an error.
27316   Use char because int might match the return type of a GCC
27317   builtin and then its argument prototype would still apply.  */
27318#ifdef __cplusplus
27319extern "C"
27320#endif
27321char audit_open ();
27322int
27323main ()
27324{
27325return audit_open ();
27326  ;
27327  return 0;
27328}
27329_ACEOF
27330if ac_fn_c_try_link "$LINENO"; then :
27331  ac_cv_lib_audit_audit_open=yes
27332else
27333  ac_cv_lib_audit_audit_open=no
27334fi
27335rm -f core conftest.err conftest.$ac_objext \
27336    conftest$ac_exeext conftest.$ac_ext
27337LIBS=$ac_check_lib_save_LIBS
27338fi
27339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audit_audit_open" >&5
27340$as_echo "$ac_cv_lib_audit_audit_open" >&6; }
27341if test "x$ac_cv_lib_audit_audit_open" = xyes; then :
27342  cat >>confdefs.h <<_ACEOF
27343#define HAVE_LIBAUDIT 1
27344_ACEOF
27345
27346  LIBS="-laudit $LIBS"
27347
27348else
27349  as_fn_error $? "SELinux extension requires audit system library" "$LINENO" 5
27350fi
27351
27352
27353pkg_failed=no
27354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SELINUX" >&5
27355$as_echo_n "checking for SELINUX... " >&6; }
27356
27357if test -n "$SELINUX_CFLAGS"; then
27358    pkg_cv_SELINUX_CFLAGS="$SELINUX_CFLAGS"
27359 elif test -n "$PKG_CONFIG"; then
27360    if test -n "$PKG_CONFIG" && \
27361    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBSELINUX\""; } >&5
27362  ($PKG_CONFIG --exists --print-errors "$LIBSELINUX") 2>&5
27363  ac_status=$?
27364  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27365  test $ac_status = 0; }; then
27366  pkg_cv_SELINUX_CFLAGS=`$PKG_CONFIG --cflags "$LIBSELINUX" 2>/dev/null`
27367		      test "x$?" != "x0" && pkg_failed=yes
27368else
27369  pkg_failed=yes
27370fi
27371 else
27372    pkg_failed=untried
27373fi
27374if test -n "$SELINUX_LIBS"; then
27375    pkg_cv_SELINUX_LIBS="$SELINUX_LIBS"
27376 elif test -n "$PKG_CONFIG"; then
27377    if test -n "$PKG_CONFIG" && \
27378    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBSELINUX\""; } >&5
27379  ($PKG_CONFIG --exists --print-errors "$LIBSELINUX") 2>&5
27380  ac_status=$?
27381  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27382  test $ac_status = 0; }; then
27383  pkg_cv_SELINUX_LIBS=`$PKG_CONFIG --libs "$LIBSELINUX" 2>/dev/null`
27384		      test "x$?" != "x0" && pkg_failed=yes
27385else
27386  pkg_failed=yes
27387fi
27388 else
27389    pkg_failed=untried
27390fi
27391
27392
27393
27394if test $pkg_failed = yes; then
27395   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27396$as_echo "no" >&6; }
27397
27398if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27399        _pkg_short_errors_supported=yes
27400else
27401        _pkg_short_errors_supported=no
27402fi
27403        if test $_pkg_short_errors_supported = yes; then
27404	        SELINUX_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBSELINUX" 2>&1`
27405        else
27406	        SELINUX_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBSELINUX" 2>&1`
27407        fi
27408	# Put the nasty error message in config.log where it belongs
27409	echo "$SELINUX_PKG_ERRORS" >&5
27410
27411	as_fn_error $? "Package requirements ($LIBSELINUX) were not met:
27412
27413$SELINUX_PKG_ERRORS
27414
27415Consider adjusting the PKG_CONFIG_PATH environment variable if you
27416installed software in a non-standard prefix.
27417
27418Alternatively, you may set the environment variables SELINUX_CFLAGS
27419and SELINUX_LIBS to avoid the need to call pkg-config.
27420See the pkg-config man page for more details." "$LINENO" 5
27421elif test $pkg_failed = untried; then
27422     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27423$as_echo "no" >&6; }
27424	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27425$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27426as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
27427is in your PATH or set the PKG_CONFIG environment variable to the full
27428path to pkg-config.
27429
27430Alternatively, you may set the environment variables SELINUX_CFLAGS
27431and SELINUX_LIBS to avoid the need to call pkg-config.
27432See the pkg-config man page for more details.
27433
27434To get pkg-config, see <http://pkg-config.freedesktop.org/>.
27435See \`config.log' for more details" "$LINENO" 5; }
27436else
27437	SELINUX_CFLAGS=$pkg_cv_SELINUX_CFLAGS
27438	SELINUX_LIBS=$pkg_cv_SELINUX_LIBS
27439        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27440$as_echo "yes" >&6; }
27441
27442fi
27443	SELINUX_LIBS="$SELINUX_LIBS -laudit"
27444
27445$as_echo "#define XSELINUX 1" >>confdefs.h
27446
27447fi
27448
27449 if test "x$XCSECURITY" = xyes; then
27450  XCSECURITY_TRUE=
27451  XCSECURITY_FALSE='#'
27452else
27453  XCSECURITY_TRUE='#'
27454  XCSECURITY_FALSE=
27455fi
27456
27457if test "x$XCSECURITY" = xyes; then
27458	if test "x$XACE" != xyes; then
27459		as_fn_error $? "cannot build Security extension without X-ACE" "$LINENO" 5
27460	fi
27461
27462$as_echo "#define XCSECURITY 1" >>confdefs.h
27463
27464fi
27465
27466 if test "x$DBE" = xyes; then
27467  DBE_TRUE=
27468  DBE_FALSE='#'
27469else
27470  DBE_TRUE='#'
27471  DBE_FALSE=
27472fi
27473
27474if test "x$DBE" = xyes; then
27475
27476$as_echo "#define DBE 1" >>confdefs.h
27477
27478	DBE_LIB='$(top_builddir)/dbe/libdbe.la'
27479	DBE_INC='-I$(top_srcdir)/dbe'
27480fi
27481
27482 if test "x$XF86BIGFONT" = xyes; then
27483  XF86BIGFONT_TRUE=
27484  XF86BIGFONT_FALSE='#'
27485else
27486  XF86BIGFONT_TRUE='#'
27487  XF86BIGFONT_FALSE=
27488fi
27489
27490if test "x$XF86BIGFONT" = xyes; then
27491
27492$as_echo "#define XF86BIGFONT 1" >>confdefs.h
27493
27494	REQUIRED_MODULES="$REQUIRED_MODULES $BIGFONTPROTO"
27495	SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $BIGFONTPROTO"
27496fi
27497
27498 if test "x$DPMSExtension" = xyes; then
27499  DPMSExtension_TRUE=
27500  DPMSExtension_FALSE='#'
27501else
27502  DPMSExtension_TRUE='#'
27503  DPMSExtension_FALSE=
27504fi
27505
27506if test "x$DPMSExtension" = xyes; then
27507
27508$as_echo "#define DPMSExtension 1" >>confdefs.h
27509
27510fi
27511
27512
27513$as_echo "#define RENDER 1" >>confdefs.h
27514
27515RENDER_LIB='$(top_builddir)/render/librender.la'
27516RENDER_INC='-I$(top_srcdir)/render'
27517
27518
27519$as_echo "#define RANDR 1" >>confdefs.h
27520
27521RANDR_LIB='$(top_builddir)/randr/librandr.la'
27522RANDR_INC='-I$(top_srcdir)/randr'
27523
27524
27525$as_echo "#define XFIXES 1" >>confdefs.h
27526
27527FIXES_LIB='$(top_builddir)/xfixes/libxfixes.la'
27528FIXES_INC='-I$(top_srcdir)/xfixes'
27529
27530
27531$as_echo "#define DAMAGE 1" >>confdefs.h
27532
27533DAMAGE_LIB='$(top_builddir)/damageext/libdamageext.la'
27534DAMAGE_INC='-I$(top_srcdir)/damageext'
27535MIEXT_DAMAGE_LIB='$(top_builddir)/miext/damage/libdamage.la'
27536MIEXT_DAMAGE_INC='-I$(top_srcdir)/miext/damage'
27537
27538# XINPUT extension is integral part of the server
27539
27540$as_echo "#define XINPUT 1" >>confdefs.h
27541
27542XI_LIB='$(top_builddir)/Xi/libXi.la'
27543XI_INC='-I$(top_srcdir)/Xi'
27544
27545 if test "x$XF86UTILS" = xyes; then
27546  XF86UTILS_TRUE=
27547  XF86UTILS_FALSE='#'
27548else
27549  XF86UTILS_TRUE='#'
27550  XF86UTILS_FALSE=
27551fi
27552
27553 if test "x$VGAHW" = xyes; then
27554  VGAHW_TRUE=
27555  VGAHW_FALSE='#'
27556else
27557  VGAHW_TRUE='#'
27558  VGAHW_FALSE=
27559fi
27560
27561 if test "x$VBE" = xyes; then
27562  VBE_TRUE=
27563  VBE_FALSE='#'
27564else
27565  VBE_TRUE='#'
27566  VBE_FALSE=
27567fi
27568
27569 if test "x$INT10MODULE" = xyes; then
27570  INT10MODULE_TRUE=
27571  INT10MODULE_FALSE='#'
27572else
27573  INT10MODULE_TRUE='#'
27574  INT10MODULE_FALSE=
27575fi
27576
27577
27578
27579$as_echo "#define SHAPE 1" >>confdefs.h
27580
27581
27582if test "x$XKBPATH" = "xauto"; then
27583    XKBPATH=$(pkg-config --variable datadir xkbcomp || echo ${datadir})/X11/xkb
27584fi
27585
27586
27587  prefix_NONE=
27588  exec_prefix_NONE=
27589  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
27590  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
27591  eval ac_define_dir="\"$XKBPATH\""
27592  eval ac_define_dir="\"$ac_define_dir\""
27593  XKB_BASE_DIRECTORY="$ac_define_dir"
27594
27595
27596cat >>confdefs.h <<_ACEOF
27597#define XKB_BASE_DIRECTORY "$ac_define_dir"
27598_ACEOF
27599
27600  test "$prefix_NONE" && prefix=NONE
27601  test "$exec_prefix_NONE" && exec_prefix=NONE
27602
27603
27604# Check whether --with-xkb-bin-directory was given.
27605if test "${with_xkb_bin_directory+set}" = set; then :
27606  withval=$with_xkb_bin_directory; XKB_BIN_DIRECTORY="$withval"
27607else
27608  XKB_BIN_DIRECTORY="auto"
27609fi
27610
27611
27612if test "x$XKB_BIN_DIRECTORY" = "xauto"; then
27613    XKB_BIN_DIRECTORY=$(pkg-config --variable bindir xkbcomp || echo ${bindir})
27614fi
27615
27616
27617  prefix_NONE=
27618  exec_prefix_NONE=
27619  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
27620  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
27621  eval ac_define_dir="\"$XKB_BIN_DIRECTORY\""
27622  eval ac_define_dir="\"$ac_define_dir\""
27623  XKB_BIN_DIRECTORY="$ac_define_dir"
27624
27625
27626cat >>confdefs.h <<_ACEOF
27627#define XKB_BIN_DIRECTORY "$ac_define_dir"
27628_ACEOF
27629
27630  test "$prefix_NONE" && prefix=NONE
27631  test "$exec_prefix_NONE" && exec_prefix=NONE
27632
27633
27634XKBOUTPUT_FIRSTCHAR=`echo $XKBOUTPUT | cut -b 1`
27635if [ x$XKBOUTPUT_FIRSTCHAR != x/ -a x$XKBOUTPUT_FIRSTCHAR != 'x$' ] ; then
27636   XKBOUTPUT="$XKB_BASE_DIRECTORY/$XKBOUTPUT"
27637fi
27638
27639
27640XKBOUTPUT=`echo $XKBOUTPUT/ | $SED 's|/*$|/|'`
27641XKB_COMPILED_DIR=`echo $XKBOUTPUT | $SED 's|/*$||'`
27642
27643  prefix_NONE=
27644  exec_prefix_NONE=
27645  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
27646  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
27647  eval ac_define_dir="\"$XKBOUTPUT\""
27648  eval ac_define_dir="\"$ac_define_dir\""
27649  XKM_OUTPUT_DIR="$ac_define_dir"
27650
27651
27652cat >>confdefs.h <<_ACEOF
27653#define XKM_OUTPUT_DIR "$ac_define_dir"
27654_ACEOF
27655
27656  test "$prefix_NONE" && prefix=NONE
27657  test "$exec_prefix_NONE" && exec_prefix=NONE
27658
27659
27660
27661if test "x$XKB_DFLT_RULES" = x; then
27662    case $host_os in
27663    linux*)
27664                XKB_DFLT_RULES="evdev"
27665        ;;
27666    *)
27667        XKB_DFLT_RULES="base"
27668        ;;
27669    esac
27670fi
27671
27672cat >>confdefs.h <<_ACEOF
27673#define XKB_DFLT_RULES "$XKB_DFLT_RULES"
27674_ACEOF
27675
27676
27677cat >>confdefs.h <<_ACEOF
27678#define XKB_DFLT_MODEL "$XKB_DFLT_MODEL"
27679_ACEOF
27680
27681
27682cat >>confdefs.h <<_ACEOF
27683#define XKB_DFLT_LAYOUT "$XKB_DFLT_LAYOUT"
27684_ACEOF
27685
27686
27687cat >>confdefs.h <<_ACEOF
27688#define XKB_DFLT_VARIANT "$XKB_DFLT_VARIANT"
27689_ACEOF
27690
27691
27692cat >>confdefs.h <<_ACEOF
27693#define XKB_DFLT_OPTIONS "$XKB_DFLT_OPTIONS"
27694_ACEOF
27695
27696
27697
27698
27699
27700
27701
27702XKB_LIB='$(top_builddir)/xkb/libxkb.la'
27703XKB_STUB_LIB='$(top_builddir)/xkb/libxkbstubs.la'
27704REQUIRED_MODULES="$REQUIRED_MODULES xkbfile"
27705
27706
27707pkg_failed=no
27708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDMCP" >&5
27709$as_echo_n "checking for XDMCP... " >&6; }
27710
27711if test -n "$XDMCP_CFLAGS"; then
27712    pkg_cv_XDMCP_CFLAGS="$XDMCP_CFLAGS"
27713 elif test -n "$PKG_CONFIG"; then
27714    if test -n "$PKG_CONFIG" && \
27715    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xdmcp\""; } >&5
27716  ($PKG_CONFIG --exists --print-errors "xdmcp") 2>&5
27717  ac_status=$?
27718  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27719  test $ac_status = 0; }; then
27720  pkg_cv_XDMCP_CFLAGS=`$PKG_CONFIG --cflags "xdmcp" 2>/dev/null`
27721		      test "x$?" != "x0" && pkg_failed=yes
27722else
27723  pkg_failed=yes
27724fi
27725 else
27726    pkg_failed=untried
27727fi
27728if test -n "$XDMCP_LIBS"; then
27729    pkg_cv_XDMCP_LIBS="$XDMCP_LIBS"
27730 elif test -n "$PKG_CONFIG"; then
27731    if test -n "$PKG_CONFIG" && \
27732    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xdmcp\""; } >&5
27733  ($PKG_CONFIG --exists --print-errors "xdmcp") 2>&5
27734  ac_status=$?
27735  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27736  test $ac_status = 0; }; then
27737  pkg_cv_XDMCP_LIBS=`$PKG_CONFIG --libs "xdmcp" 2>/dev/null`
27738		      test "x$?" != "x0" && pkg_failed=yes
27739else
27740  pkg_failed=yes
27741fi
27742 else
27743    pkg_failed=untried
27744fi
27745
27746
27747
27748if test $pkg_failed = yes; then
27749   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27750$as_echo "no" >&6; }
27751
27752if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27753        _pkg_short_errors_supported=yes
27754else
27755        _pkg_short_errors_supported=no
27756fi
27757        if test $_pkg_short_errors_supported = yes; then
27758	        XDMCP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xdmcp" 2>&1`
27759        else
27760	        XDMCP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xdmcp" 2>&1`
27761        fi
27762	# Put the nasty error message in config.log where it belongs
27763	echo "$XDMCP_PKG_ERRORS" >&5
27764
27765	have_libxdmcp="no"
27766elif test $pkg_failed = untried; then
27767     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27768$as_echo "no" >&6; }
27769	have_libxdmcp="no"
27770else
27771	XDMCP_CFLAGS=$pkg_cv_XDMCP_CFLAGS
27772	XDMCP_LIBS=$pkg_cv_XDMCP_LIBS
27773        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27774$as_echo "yes" >&6; }
27775	have_libxdmcp="yes"
27776fi
27777if test "x$XDMCP" = xauto; then
27778	if test "x$have_libxdmcp" = xyes; then
27779		XDMCP=yes
27780	else
27781		XDMCP=no
27782	fi
27783fi
27784if test "x$XDMAUTH" = xauto; then
27785	if test "x$have_libxdmcp" = xyes; then
27786		XDMAUTH=yes
27787	else
27788		XDMAUTH=no
27789	fi
27790fi
27791
27792 if test "x$XDMCP" = xyes; then
27793  XDMCP_TRUE=
27794  XDMCP_FALSE='#'
27795else
27796  XDMCP_TRUE='#'
27797  XDMCP_FALSE=
27798fi
27799
27800if test "x$XDMCP" = xyes; then
27801
27802$as_echo "#define XDMCP 1" >>confdefs.h
27803
27804	REQUIRED_LIBS="$REQUIRED_LIBS xdmcp"
27805	XDMCP_MODULES="xdmcp"
27806fi
27807
27808 if test "x$XDMAUTH" = xyes; then
27809  XDMAUTH_TRUE=
27810  XDMAUTH_FALSE='#'
27811else
27812  XDMAUTH_TRUE='#'
27813  XDMAUTH_FALSE=
27814fi
27815
27816if test "x$XDMAUTH" = xyes; then
27817
27818$as_echo "#define HASXDMAUTH 1" >>confdefs.h
27819
27820	if ! test "x$XDMCP" = xyes; then
27821		REQUIRED_LIBS="$REQUIRED_LIBS xdmcp"
27822		XDMCP_MODULES="xdmcp"
27823	fi
27824fi
27825
27826if test "x$XF86VIDMODE" = xauto; then
27827	if test -n "$PKG_CONFIG" && \
27828    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$VIDMODEPROTO\""; } >&5
27829  ($PKG_CONFIG --exists --print-errors "$VIDMODEPROTO") 2>&5
27830  ac_status=$?
27831  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27832  test $ac_status = 0; }; then
27833  XF86VIDMODE=yes
27834else
27835  XF86VIDMODE=no
27836fi
27837fi
27838if test "x$XF86VIDMODE" = xyes; then
27839
27840$as_echo "#define XF86VIDMODE 1" >>confdefs.h
27841
27842fi
27843 if test "x$XF86VIDMODE" = xyes; then
27844  XF86VIDMODE_TRUE=
27845  XF86VIDMODE_FALSE='#'
27846else
27847  XF86VIDMODE_TRUE='#'
27848  XF86VIDMODE_FALSE=
27849fi
27850
27851
27852
27853  prefix_NONE=
27854  exec_prefix_NONE=
27855  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
27856  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
27857  eval ac_define_dir="\"$FONTPATH\""
27858  eval ac_define_dir="\"$ac_define_dir\""
27859  COMPILEDDEFAULTFONTPATH="$ac_define_dir"
27860
27861
27862cat >>confdefs.h <<_ACEOF
27863#define COMPILEDDEFAULTFONTPATH "$ac_define_dir"
27864_ACEOF
27865
27866  test "$prefix_NONE" && prefix=NONE
27867  test "$exec_prefix_NONE" && exec_prefix=NONE
27868
27869
27870  prefix_NONE=
27871  exec_prefix_NONE=
27872  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
27873  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
27874  eval ac_define_dir="\"$SERVERCONFIG\""
27875  eval ac_define_dir="\"$ac_define_dir\""
27876  SERVER_MISC_CONFIG_PATH="$ac_define_dir"
27877
27878
27879cat >>confdefs.h <<_ACEOF
27880#define SERVER_MISC_CONFIG_PATH "$ac_define_dir"
27881_ACEOF
27882
27883  test "$prefix_NONE" && prefix=NONE
27884  test "$exec_prefix_NONE" && exec_prefix=NONE
27885
27886
27887  prefix_NONE=
27888  exec_prefix_NONE=
27889  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
27890  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
27891  eval ac_define_dir="\"$FONTROOTDIR\""
27892  eval ac_define_dir="\"$ac_define_dir\""
27893  BASE_FONT_PATH="$ac_define_dir"
27894
27895
27896cat >>confdefs.h <<_ACEOF
27897#define BASE_FONT_PATH "$ac_define_dir"
27898_ACEOF
27899
27900  test "$prefix_NONE" && prefix=NONE
27901  test "$exec_prefix_NONE" && exec_prefix=NONE
27902
27903dridriverdir=`$PKG_CONFIG --variable=dridriverdir dri`
27904
27905  prefix_NONE=
27906  exec_prefix_NONE=
27907  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
27908  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
27909  eval ac_define_dir="\"$dridriverdir\""
27910  eval ac_define_dir="\"$ac_define_dir\""
27911  DRI_DRIVER_PATH="$ac_define_dir"
27912
27913
27914cat >>confdefs.h <<_ACEOF
27915#define DRI_DRIVER_PATH "$ac_define_dir"
27916_ACEOF
27917
27918  test "$prefix_NONE" && prefix=NONE
27919  test "$exec_prefix_NONE" && exec_prefix=NONE
27920
27921
27922cat >>confdefs.h <<_ACEOF
27923#define XVENDORNAME "$VENDOR_NAME"
27924_ACEOF
27925
27926
27927cat >>confdefs.h <<_ACEOF
27928#define XVENDORNAMESHORT "$VENDOR_NAME_SHORT"
27929_ACEOF
27930
27931
27932cat >>confdefs.h <<_ACEOF
27933#define XORG_MAN_VERSION "$VENDOR_MAN_VERSION"
27934_ACEOF
27935
27936
27937cat >>confdefs.h <<_ACEOF
27938#define BUILDERADDR "$BUILDERADDR"
27939_ACEOF
27940
27941
27942if test -z "$OSNAME"; then
27943    OSNAME="UNKNOWN"
27944fi
27945
27946
27947cat >>confdefs.h <<_ACEOF
27948#define OSNAME "$OSNAME"
27949_ACEOF
27950
27951
27952cat >>confdefs.h <<_ACEOF
27953#define OSVENDOR "$OSVENDOR"
27954_ACEOF
27955
27956
27957cat >>confdefs.h <<_ACEOF
27958#define BUILDERSTRING "$BUILDERSTRING"
27959_ACEOF
27960
27961
27962
27963
27964cat >>confdefs.h <<_ACEOF
27965#define VENDOR_NAME "$VENDOR_NAME"
27966_ACEOF
27967
27968
27969cat >>confdefs.h <<_ACEOF
27970#define VENDOR_NAME_SHORT "$VENDOR_NAME_SHORT"
27971_ACEOF
27972
27973
27974cat >>confdefs.h <<_ACEOF
27975#define VENDOR_RELEASE $VENDOR_RELEASE
27976_ACEOF
27977
27978
27979cat >>confdefs.h <<_ACEOF
27980#define VENDOR_MAN_VERSION "$VENDOR_MAN_VERSION"
27981_ACEOF
27982
27983
27984if test "x$DEBUGGING" = xyes; then
27985
27986$as_echo "#define DEBUG 1" >>confdefs.h
27987
27988fi
27989 if test "x$DEBUGGING" = xyes; then
27990  DEBUG_TRUE=
27991  DEBUG_FALSE='#'
27992else
27993  DEBUG_TRUE='#'
27994  DEBUG_FALSE=
27995fi
27996
27997
27998
27999$as_echo "#define XTEST 1" >>confdefs.h
28000
28001
28002$as_echo "#define XSYNC 1" >>confdefs.h
28003
28004
28005$as_echo "#define XCMISC 1" >>confdefs.h
28006
28007
28008$as_echo "#define BIGREQS 1" >>confdefs.h
28009
28010
28011if test "x$SPECIAL_DTRACE_OBJECTS" = "xyes" ; then
28012  DIX_LIB='$(top_builddir)/dix/dix.O'
28013  OS_LIB='$(top_builddir)/os/os.O $(SHA1_LIBS) $(DLOPEN_LIBS) $(LIBUNWIND_LIBS)'
28014else
28015  DIX_LIB='$(top_builddir)/dix/libdix.la'
28016  OS_LIB='$(top_builddir)/os/libos.la'
28017fi
28018
28019
28020
28021MAIN_LIB='$(top_builddir)/dix/libmain.la'
28022
28023
28024MI_LIB='$(top_builddir)/mi/libmi.la'
28025MI_EXT_LIB='$(top_builddir)/mi/libmiext.la'
28026MI_INC='-I$(top_srcdir)/mi'
28027FB_LIB='$(top_builddir)/fb/libfb.la'
28028FB_INC='-I$(top_srcdir)/fb'
28029MIEXT_SHADOW_INC='-I$(top_srcdir)/miext/shadow'
28030MIEXT_SHADOW_LIB='$(top_builddir)/miext/shadow/libshadow.la'
28031MIEXT_SYNC_INC='-I$(top_srcdir)/miext/sync'
28032MIEXT_SYNC_LIB='$(top_builddir)/miext/sync/libsync.la'
28033CORE_INCS='-I$(top_srcdir)/include -I$(top_builddir)/include'
28034
28035# SHA1 hashing
28036
28037# Check whether --with-sha1 was given.
28038if test "${with_sha1+set}" = set; then :
28039  withval=$with_sha1;
28040fi
28041
28042ac_fn_c_check_func "$LINENO" "SHA1Init" "ac_cv_func_SHA1Init"
28043if test "x$ac_cv_func_SHA1Init" = xyes; then :
28044  HAVE_SHA1_IN_LIBC=yes
28045fi
28046
28047if test "x$with_sha1" = x && test "x$HAVE_SHA1_IN_LIBC" = xyes; then
28048	with_sha1=libc
28049fi
28050if test "x$with_sha1" = xlibc && test "x$HAVE_SHA1_IN_LIBC" != xyes; then
28051	as_fn_error $? "libc requested but not found" "$LINENO" 5
28052fi
28053if test "x$with_sha1" = xlibc; then
28054
28055$as_echo "#define HAVE_SHA1_IN_LIBC 1" >>confdefs.h
28056
28057	SHA1_LIBS=""
28058fi
28059ac_fn_c_check_func "$LINENO" "CC_SHA1_Init" "ac_cv_func_CC_SHA1_Init"
28060if test "x$ac_cv_func_CC_SHA1_Init" = xyes; then :
28061  HAVE_SHA1_IN_COMMONCRYPTO=yes
28062fi
28063
28064if test "x$with_sha1" = x && test "x$HAVE_SHA1_IN_COMMONCRYPTO" = xyes; then
28065	with_sha1=CommonCrypto
28066fi
28067if test "x$with_sha1" = xCommonCrypto && test "x$HAVE_SHA1_IN_COMMONCRYPTO" != xyes; then
28068	as_fn_error $? "CommonCrypto requested but not found" "$LINENO" 5
28069fi
28070if test "x$with_sha1" = xCommonCrypto; then
28071
28072$as_echo "#define HAVE_SHA1_IN_COMMONCRYPTO 1" >>confdefs.h
28073
28074	SHA1_LIBS=""
28075fi
28076ac_fn_c_check_header_compile "$LINENO" "wincrypt.h" "ac_cv_header_wincrypt_h" "#include <windows.h>
28077"
28078if test "x$ac_cv_header_wincrypt_h" = xyes; then :
28079  HAVE_SHA1_IN_CRYPTOAPI=yes
28080fi
28081
28082
28083if test "x$with_sha1" = x && test "x$HAVE_SHA1_IN_CRYPTOAPI" = xyes; then
28084	with_sha1=CryptoAPI
28085fi
28086if test "x$with_sha1" = xCryptoAPI && test "x$HAVE_SHA1_IN_CRYPTOAPI" != xyes; then
28087	as_fn_error $? "CryptoAPI requested but not found" "$LINENO" 5
28088fi
28089if test "x$with_sha1" = xCryptoAPI; then
28090
28091$as_echo "#define HAVE_SHA1_IN_CRYPTOAPI 1" >>confdefs.h
28092
28093	SHA1_LIBS=""
28094fi
28095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA1Init in -lmd" >&5
28096$as_echo_n "checking for SHA1Init in -lmd... " >&6; }
28097if ${ac_cv_lib_md_SHA1Init+:} false; then :
28098  $as_echo_n "(cached) " >&6
28099else
28100  ac_check_lib_save_LIBS=$LIBS
28101LIBS="-lmd  $LIBS"
28102cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28103/* end confdefs.h.  */
28104
28105/* Override any GCC internal prototype to avoid an error.
28106   Use char because int might match the return type of a GCC
28107   builtin and then its argument prototype would still apply.  */
28108#ifdef __cplusplus
28109extern "C"
28110#endif
28111char SHA1Init ();
28112int
28113main ()
28114{
28115return SHA1Init ();
28116  ;
28117  return 0;
28118}
28119_ACEOF
28120if ac_fn_c_try_link "$LINENO"; then :
28121  ac_cv_lib_md_SHA1Init=yes
28122else
28123  ac_cv_lib_md_SHA1Init=no
28124fi
28125rm -f core conftest.err conftest.$ac_objext \
28126    conftest$ac_exeext conftest.$ac_ext
28127LIBS=$ac_check_lib_save_LIBS
28128fi
28129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_md_SHA1Init" >&5
28130$as_echo "$ac_cv_lib_md_SHA1Init" >&6; }
28131if test "x$ac_cv_lib_md_SHA1Init" = xyes; then :
28132  HAVE_LIBMD=yes
28133fi
28134
28135if test "x$with_sha1" = x && test "x$HAVE_LIBMD" = xyes; then
28136	with_sha1=libmd
28137fi
28138if test "x$with_sha1" = xlibmd && test "x$HAVE_LIBMD" != xyes; then
28139	as_fn_error $? "libmd requested but not found" "$LINENO" 5
28140fi
28141if test "x$with_sha1" = xlibmd; then
28142
28143$as_echo "#define HAVE_SHA1_IN_LIBMD 1" >>confdefs.h
28144
28145	SHA1_LIBS=-lmd
28146fi
28147
28148pkg_failed=no
28149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBSHA1" >&5
28150$as_echo_n "checking for LIBSHA1... " >&6; }
28151
28152if test -n "$LIBSHA1_CFLAGS"; then
28153    pkg_cv_LIBSHA1_CFLAGS="$LIBSHA1_CFLAGS"
28154 elif test -n "$PKG_CONFIG"; then
28155    if test -n "$PKG_CONFIG" && \
28156    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsha1\""; } >&5
28157  ($PKG_CONFIG --exists --print-errors "libsha1") 2>&5
28158  ac_status=$?
28159  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28160  test $ac_status = 0; }; then
28161  pkg_cv_LIBSHA1_CFLAGS=`$PKG_CONFIG --cflags "libsha1" 2>/dev/null`
28162		      test "x$?" != "x0" && pkg_failed=yes
28163else
28164  pkg_failed=yes
28165fi
28166 else
28167    pkg_failed=untried
28168fi
28169if test -n "$LIBSHA1_LIBS"; then
28170    pkg_cv_LIBSHA1_LIBS="$LIBSHA1_LIBS"
28171 elif test -n "$PKG_CONFIG"; then
28172    if test -n "$PKG_CONFIG" && \
28173    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsha1\""; } >&5
28174  ($PKG_CONFIG --exists --print-errors "libsha1") 2>&5
28175  ac_status=$?
28176  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28177  test $ac_status = 0; }; then
28178  pkg_cv_LIBSHA1_LIBS=`$PKG_CONFIG --libs "libsha1" 2>/dev/null`
28179		      test "x$?" != "x0" && pkg_failed=yes
28180else
28181  pkg_failed=yes
28182fi
28183 else
28184    pkg_failed=untried
28185fi
28186
28187
28188
28189if test $pkg_failed = yes; then
28190   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28191$as_echo "no" >&6; }
28192
28193if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28194        _pkg_short_errors_supported=yes
28195else
28196        _pkg_short_errors_supported=no
28197fi
28198        if test $_pkg_short_errors_supported = yes; then
28199	        LIBSHA1_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsha1" 2>&1`
28200        else
28201	        LIBSHA1_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsha1" 2>&1`
28202        fi
28203	# Put the nasty error message in config.log where it belongs
28204	echo "$LIBSHA1_PKG_ERRORS" >&5
28205
28206	HAVE_LIBSHA1=no
28207elif test $pkg_failed = untried; then
28208     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28209$as_echo "no" >&6; }
28210	HAVE_LIBSHA1=no
28211else
28212	LIBSHA1_CFLAGS=$pkg_cv_LIBSHA1_CFLAGS
28213	LIBSHA1_LIBS=$pkg_cv_LIBSHA1_LIBS
28214        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28215$as_echo "yes" >&6; }
28216	HAVE_LIBSHA1=yes
28217fi
28218if test "x$with_sha1" = x && test "x$HAVE_LIBSHA1" = xyes; then
28219   with_sha1=libsha1
28220fi
28221if test "x$with_sha1" = xlibsha1 && test "x$HAVE_LIBSHA1" != xyes; then
28222	as_fn_error $? "libsha1 requested but not found" "$LINENO" 5
28223fi
28224if test "x$with_sha1" = xlibsha1; then
28225
28226$as_echo "#define HAVE_SHA1_IN_LIBSHA1 1" >>confdefs.h
28227
28228	SHA1_LIBS=-lsha1
28229fi
28230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nettle_sha1_init in -lnettle" >&5
28231$as_echo_n "checking for nettle_sha1_init in -lnettle... " >&6; }
28232if ${ac_cv_lib_nettle_nettle_sha1_init+:} false; then :
28233  $as_echo_n "(cached) " >&6
28234else
28235  ac_check_lib_save_LIBS=$LIBS
28236LIBS="-lnettle  $LIBS"
28237cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28238/* end confdefs.h.  */
28239
28240/* Override any GCC internal prototype to avoid an error.
28241   Use char because int might match the return type of a GCC
28242   builtin and then its argument prototype would still apply.  */
28243#ifdef __cplusplus
28244extern "C"
28245#endif
28246char nettle_sha1_init ();
28247int
28248main ()
28249{
28250return nettle_sha1_init ();
28251  ;
28252  return 0;
28253}
28254_ACEOF
28255if ac_fn_c_try_link "$LINENO"; then :
28256  ac_cv_lib_nettle_nettle_sha1_init=yes
28257else
28258  ac_cv_lib_nettle_nettle_sha1_init=no
28259fi
28260rm -f core conftest.err conftest.$ac_objext \
28261    conftest$ac_exeext conftest.$ac_ext
28262LIBS=$ac_check_lib_save_LIBS
28263fi
28264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nettle_nettle_sha1_init" >&5
28265$as_echo "$ac_cv_lib_nettle_nettle_sha1_init" >&6; }
28266if test "x$ac_cv_lib_nettle_nettle_sha1_init" = xyes; then :
28267  HAVE_LIBNETTLE=yes
28268fi
28269
28270if test "x$with_sha1" = x && test "x$HAVE_LIBNETTLE" = xyes; then
28271	with_sha1=libnettle
28272fi
28273if test "x$with_sha1" = xlibnettle && test "x$HAVE_LIBNETTLE" != xyes; then
28274	as_fn_error $? "libnettle requested but not found" "$LINENO" 5
28275fi
28276if test "x$with_sha1" = xlibnettle; then
28277
28278$as_echo "#define HAVE_SHA1_IN_LIBNETTLE 1" >>confdefs.h
28279
28280	SHA1_LIBS=-lnettle
28281fi
28282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_md_open in -lgcrypt" >&5
28283$as_echo_n "checking for gcry_md_open in -lgcrypt... " >&6; }
28284if ${ac_cv_lib_gcrypt_gcry_md_open+:} false; then :
28285  $as_echo_n "(cached) " >&6
28286else
28287  ac_check_lib_save_LIBS=$LIBS
28288LIBS="-lgcrypt  $LIBS"
28289cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28290/* end confdefs.h.  */
28291
28292/* Override any GCC internal prototype to avoid an error.
28293   Use char because int might match the return type of a GCC
28294   builtin and then its argument prototype would still apply.  */
28295#ifdef __cplusplus
28296extern "C"
28297#endif
28298char gcry_md_open ();
28299int
28300main ()
28301{
28302return gcry_md_open ();
28303  ;
28304  return 0;
28305}
28306_ACEOF
28307if ac_fn_c_try_link "$LINENO"; then :
28308  ac_cv_lib_gcrypt_gcry_md_open=yes
28309else
28310  ac_cv_lib_gcrypt_gcry_md_open=no
28311fi
28312rm -f core conftest.err conftest.$ac_objext \
28313    conftest$ac_exeext conftest.$ac_ext
28314LIBS=$ac_check_lib_save_LIBS
28315fi
28316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcrypt_gcry_md_open" >&5
28317$as_echo "$ac_cv_lib_gcrypt_gcry_md_open" >&6; }
28318if test "x$ac_cv_lib_gcrypt_gcry_md_open" = xyes; then :
28319  HAVE_LIBGCRYPT=yes
28320fi
28321
28322if test "x$with_sha1" = x && test "x$HAVE_LIBGCRYPT" = xyes; then
28323	with_sha1=libgcrypt
28324fi
28325if test "x$with_sha1" = xlibgcrypt && test "x$HAVE_LIBGCRYPT" != xyes; then
28326	as_fn_error $? "libgcrypt requested but not found" "$LINENO" 5
28327fi
28328if test "x$with_sha1" = xlibgcrypt; then
28329
28330$as_echo "#define HAVE_SHA1_IN_LIBGCRYPT 1" >>confdefs.h
28331
28332	SHA1_LIBS=-lgcrypt
28333fi
28334# We don't need all of the OpenSSL libraries, just libcrypto
28335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA1_Init in -lcrypto" >&5
28336$as_echo_n "checking for SHA1_Init in -lcrypto... " >&6; }
28337if ${ac_cv_lib_crypto_SHA1_Init+:} false; then :
28338  $as_echo_n "(cached) " >&6
28339else
28340  ac_check_lib_save_LIBS=$LIBS
28341LIBS="-lcrypto  $LIBS"
28342cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28343/* end confdefs.h.  */
28344
28345/* Override any GCC internal prototype to avoid an error.
28346   Use char because int might match the return type of a GCC
28347   builtin and then its argument prototype would still apply.  */
28348#ifdef __cplusplus
28349extern "C"
28350#endif
28351char SHA1_Init ();
28352int
28353main ()
28354{
28355return SHA1_Init ();
28356  ;
28357  return 0;
28358}
28359_ACEOF
28360if ac_fn_c_try_link "$LINENO"; then :
28361  ac_cv_lib_crypto_SHA1_Init=yes
28362else
28363  ac_cv_lib_crypto_SHA1_Init=no
28364fi
28365rm -f core conftest.err conftest.$ac_objext \
28366    conftest$ac_exeext conftest.$ac_ext
28367LIBS=$ac_check_lib_save_LIBS
28368fi
28369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_SHA1_Init" >&5
28370$as_echo "$ac_cv_lib_crypto_SHA1_Init" >&6; }
28371if test "x$ac_cv_lib_crypto_SHA1_Init" = xyes; then :
28372  HAVE_LIBCRYPTO=yes
28373fi
28374
28375
28376pkg_failed=no
28377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL" >&5
28378$as_echo_n "checking for OPENSSL... " >&6; }
28379
28380if test -n "$OPENSSL_CFLAGS"; then
28381    pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
28382 elif test -n "$PKG_CONFIG"; then
28383    if test -n "$PKG_CONFIG" && \
28384    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5
28385  ($PKG_CONFIG --exists --print-errors "openssl") 2>&5
28386  ac_status=$?
28387  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28388  test $ac_status = 0; }; then
28389  pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl" 2>/dev/null`
28390		      test "x$?" != "x0" && pkg_failed=yes
28391else
28392  pkg_failed=yes
28393fi
28394 else
28395    pkg_failed=untried
28396fi
28397if test -n "$OPENSSL_LIBS"; then
28398    pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
28399 elif test -n "$PKG_CONFIG"; then
28400    if test -n "$PKG_CONFIG" && \
28401    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5
28402  ($PKG_CONFIG --exists --print-errors "openssl") 2>&5
28403  ac_status=$?
28404  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28405  test $ac_status = 0; }; then
28406  pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl" 2>/dev/null`
28407		      test "x$?" != "x0" && pkg_failed=yes
28408else
28409  pkg_failed=yes
28410fi
28411 else
28412    pkg_failed=untried
28413fi
28414
28415
28416
28417if test $pkg_failed = yes; then
28418   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28419$as_echo "no" >&6; }
28420
28421if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28422        _pkg_short_errors_supported=yes
28423else
28424        _pkg_short_errors_supported=no
28425fi
28426        if test $_pkg_short_errors_supported = yes; then
28427	        OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl" 2>&1`
28428        else
28429	        OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl" 2>&1`
28430        fi
28431	# Put the nasty error message in config.log where it belongs
28432	echo "$OPENSSL_PKG_ERRORS" >&5
28433
28434	HAVE_OPENSSL_PKC=no
28435elif test $pkg_failed = untried; then
28436     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28437$as_echo "no" >&6; }
28438	HAVE_OPENSSL_PKC=no
28439else
28440	OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
28441	OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
28442        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28443$as_echo "yes" >&6; }
28444	HAVE_OPENSSL_PKC=yes
28445fi
28446if test "x$HAVE_LIBCRYPTO" = xyes || test "x$HAVE_OPENSSL_PKC" = xyes; then
28447	if test "x$with_sha1" = x; then
28448		with_sha1=libcrypto
28449	fi
28450else
28451	if test "x$with_sha1" = xlibcrypto; then
28452		as_fn_error $? "OpenSSL libcrypto requested but not found" "$LINENO" 5
28453	fi
28454fi
28455if test "x$with_sha1" = xlibcrypto; then
28456	if test "x$HAVE_LIBCRYPTO" = xyes; then
28457		SHA1_LIBS=-lcrypto
28458	else
28459		SHA1_LIBS="$OPENSSL_LIBS"
28460		SHA1_CFLAGS="$OPENSSL_CFLAGS"
28461	fi
28462fi
28463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA1 implementation" >&5
28464$as_echo_n "checking for SHA1 implementation... " >&6; }
28465if test "x$with_sha1" = x; then
28466	as_fn_error $? "No suitable SHA1 implementation found" "$LINENO" 5
28467fi
28468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sha1" >&5
28469$as_echo "$with_sha1" >&6; }
28470
28471
28472
28473
28474pkg_failed=no
28475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XSERVERCFLAGS" >&5
28476$as_echo_n "checking for XSERVERCFLAGS... " >&6; }
28477
28478if test -n "$XSERVERCFLAGS_CFLAGS"; then
28479    pkg_cv_XSERVERCFLAGS_CFLAGS="$XSERVERCFLAGS_CFLAGS"
28480 elif test -n "$PKG_CONFIG"; then
28481    if test -n "$PKG_CONFIG" && \
28482    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$REQUIRED_MODULES \$REQUIRED_LIBS\""; } >&5
28483  ($PKG_CONFIG --exists --print-errors "$REQUIRED_MODULES $REQUIRED_LIBS") 2>&5
28484  ac_status=$?
28485  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28486  test $ac_status = 0; }; then
28487  pkg_cv_XSERVERCFLAGS_CFLAGS=`$PKG_CONFIG --cflags "$REQUIRED_MODULES $REQUIRED_LIBS" 2>/dev/null`
28488		      test "x$?" != "x0" && pkg_failed=yes
28489else
28490  pkg_failed=yes
28491fi
28492 else
28493    pkg_failed=untried
28494fi
28495if test -n "$XSERVERCFLAGS_LIBS"; then
28496    pkg_cv_XSERVERCFLAGS_LIBS="$XSERVERCFLAGS_LIBS"
28497 elif test -n "$PKG_CONFIG"; then
28498    if test -n "$PKG_CONFIG" && \
28499    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$REQUIRED_MODULES \$REQUIRED_LIBS\""; } >&5
28500  ($PKG_CONFIG --exists --print-errors "$REQUIRED_MODULES $REQUIRED_LIBS") 2>&5
28501  ac_status=$?
28502  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28503  test $ac_status = 0; }; then
28504  pkg_cv_XSERVERCFLAGS_LIBS=`$PKG_CONFIG --libs "$REQUIRED_MODULES $REQUIRED_LIBS" 2>/dev/null`
28505		      test "x$?" != "x0" && pkg_failed=yes
28506else
28507  pkg_failed=yes
28508fi
28509 else
28510    pkg_failed=untried
28511fi
28512
28513
28514
28515if test $pkg_failed = yes; then
28516   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28517$as_echo "no" >&6; }
28518
28519if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28520        _pkg_short_errors_supported=yes
28521else
28522        _pkg_short_errors_supported=no
28523fi
28524        if test $_pkg_short_errors_supported = yes; then
28525	        XSERVERCFLAGS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$REQUIRED_MODULES $REQUIRED_LIBS" 2>&1`
28526        else
28527	        XSERVERCFLAGS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$REQUIRED_MODULES $REQUIRED_LIBS" 2>&1`
28528        fi
28529	# Put the nasty error message in config.log where it belongs
28530	echo "$XSERVERCFLAGS_PKG_ERRORS" >&5
28531
28532	as_fn_error $? "Package requirements ($REQUIRED_MODULES $REQUIRED_LIBS) were not met:
28533
28534$XSERVERCFLAGS_PKG_ERRORS
28535
28536Consider adjusting the PKG_CONFIG_PATH environment variable if you
28537installed software in a non-standard prefix.
28538
28539Alternatively, you may set the environment variables XSERVERCFLAGS_CFLAGS
28540and XSERVERCFLAGS_LIBS to avoid the need to call pkg-config.
28541See the pkg-config man page for more details." "$LINENO" 5
28542elif test $pkg_failed = untried; then
28543     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28544$as_echo "no" >&6; }
28545	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28546$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28547as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
28548is in your PATH or set the PKG_CONFIG environment variable to the full
28549path to pkg-config.
28550
28551Alternatively, you may set the environment variables XSERVERCFLAGS_CFLAGS
28552and XSERVERCFLAGS_LIBS to avoid the need to call pkg-config.
28553See the pkg-config man page for more details.
28554
28555To get pkg-config, see <http://pkg-config.freedesktop.org/>.
28556See \`config.log' for more details" "$LINENO" 5; }
28557else
28558	XSERVERCFLAGS_CFLAGS=$pkg_cv_XSERVERCFLAGS_CFLAGS
28559	XSERVERCFLAGS_LIBS=$pkg_cv_XSERVERCFLAGS_LIBS
28560        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28561$as_echo "yes" >&6; }
28562
28563fi
28564
28565pkg_failed=no
28566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XSERVERLIBS" >&5
28567$as_echo_n "checking for XSERVERLIBS... " >&6; }
28568
28569if test -n "$XSERVERLIBS_CFLAGS"; then
28570    pkg_cv_XSERVERLIBS_CFLAGS="$XSERVERLIBS_CFLAGS"
28571 elif test -n "$PKG_CONFIG"; then
28572    if test -n "$PKG_CONFIG" && \
28573    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$REQUIRED_LIBS\""; } >&5
28574  ($PKG_CONFIG --exists --print-errors "$REQUIRED_LIBS") 2>&5
28575  ac_status=$?
28576  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28577  test $ac_status = 0; }; then
28578  pkg_cv_XSERVERLIBS_CFLAGS=`$PKG_CONFIG --cflags "$REQUIRED_LIBS" 2>/dev/null`
28579		      test "x$?" != "x0" && pkg_failed=yes
28580else
28581  pkg_failed=yes
28582fi
28583 else
28584    pkg_failed=untried
28585fi
28586if test -n "$XSERVERLIBS_LIBS"; then
28587    pkg_cv_XSERVERLIBS_LIBS="$XSERVERLIBS_LIBS"
28588 elif test -n "$PKG_CONFIG"; then
28589    if test -n "$PKG_CONFIG" && \
28590    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$REQUIRED_LIBS\""; } >&5
28591  ($PKG_CONFIG --exists --print-errors "$REQUIRED_LIBS") 2>&5
28592  ac_status=$?
28593  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28594  test $ac_status = 0; }; then
28595  pkg_cv_XSERVERLIBS_LIBS=`$PKG_CONFIG --libs "$REQUIRED_LIBS" 2>/dev/null`
28596		      test "x$?" != "x0" && pkg_failed=yes
28597else
28598  pkg_failed=yes
28599fi
28600 else
28601    pkg_failed=untried
28602fi
28603
28604
28605
28606if test $pkg_failed = yes; then
28607   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28608$as_echo "no" >&6; }
28609
28610if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28611        _pkg_short_errors_supported=yes
28612else
28613        _pkg_short_errors_supported=no
28614fi
28615        if test $_pkg_short_errors_supported = yes; then
28616	        XSERVERLIBS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$REQUIRED_LIBS" 2>&1`
28617        else
28618	        XSERVERLIBS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$REQUIRED_LIBS" 2>&1`
28619        fi
28620	# Put the nasty error message in config.log where it belongs
28621	echo "$XSERVERLIBS_PKG_ERRORS" >&5
28622
28623	as_fn_error $? "Package requirements ($REQUIRED_LIBS) were not met:
28624
28625$XSERVERLIBS_PKG_ERRORS
28626
28627Consider adjusting the PKG_CONFIG_PATH environment variable if you
28628installed software in a non-standard prefix.
28629
28630Alternatively, you may set the environment variables XSERVERLIBS_CFLAGS
28631and XSERVERLIBS_LIBS to avoid the need to call pkg-config.
28632See the pkg-config man page for more details." "$LINENO" 5
28633elif test $pkg_failed = untried; then
28634     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28635$as_echo "no" >&6; }
28636	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28637$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28638as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
28639is in your PATH or set the PKG_CONFIG environment variable to the full
28640path to pkg-config.
28641
28642Alternatively, you may set the environment variables XSERVERLIBS_CFLAGS
28643and XSERVERLIBS_LIBS to avoid the need to call pkg-config.
28644See the pkg-config man page for more details.
28645
28646To get pkg-config, see <http://pkg-config.freedesktop.org/>.
28647See \`config.log' for more details" "$LINENO" 5; }
28648else
28649	XSERVERLIBS_CFLAGS=$pkg_cv_XSERVERLIBS_CFLAGS
28650	XSERVERLIBS_LIBS=$pkg_cv_XSERVERLIBS_LIBS
28651        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28652$as_echo "yes" >&6; }
28653
28654fi
28655
28656
28657pkg_failed=no
28658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBUNWIND" >&5
28659$as_echo_n "checking for LIBUNWIND... " >&6; }
28660
28661if test -n "$LIBUNWIND_CFLAGS"; then
28662    pkg_cv_LIBUNWIND_CFLAGS="$LIBUNWIND_CFLAGS"
28663 elif test -n "$PKG_CONFIG"; then
28664    if test -n "$PKG_CONFIG" && \
28665    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libunwind\""; } >&5
28666  ($PKG_CONFIG --exists --print-errors "libunwind") 2>&5
28667  ac_status=$?
28668  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28669  test $ac_status = 0; }; then
28670  pkg_cv_LIBUNWIND_CFLAGS=`$PKG_CONFIG --cflags "libunwind" 2>/dev/null`
28671		      test "x$?" != "x0" && pkg_failed=yes
28672else
28673  pkg_failed=yes
28674fi
28675 else
28676    pkg_failed=untried
28677fi
28678if test -n "$LIBUNWIND_LIBS"; then
28679    pkg_cv_LIBUNWIND_LIBS="$LIBUNWIND_LIBS"
28680 elif test -n "$PKG_CONFIG"; then
28681    if test -n "$PKG_CONFIG" && \
28682    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libunwind\""; } >&5
28683  ($PKG_CONFIG --exists --print-errors "libunwind") 2>&5
28684  ac_status=$?
28685  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28686  test $ac_status = 0; }; then
28687  pkg_cv_LIBUNWIND_LIBS=`$PKG_CONFIG --libs "libunwind" 2>/dev/null`
28688		      test "x$?" != "x0" && pkg_failed=yes
28689else
28690  pkg_failed=yes
28691fi
28692 else
28693    pkg_failed=untried
28694fi
28695
28696
28697
28698if test $pkg_failed = yes; then
28699   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28700$as_echo "no" >&6; }
28701
28702if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28703        _pkg_short_errors_supported=yes
28704else
28705        _pkg_short_errors_supported=no
28706fi
28707        if test $_pkg_short_errors_supported = yes; then
28708	        LIBUNWIND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libunwind" 2>&1`
28709        else
28710	        LIBUNWIND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libunwind" 2>&1`
28711        fi
28712	# Put the nasty error message in config.log where it belongs
28713	echo "$LIBUNWIND_PKG_ERRORS" >&5
28714
28715	HAVE_LIBUNWIND=no
28716elif test $pkg_failed = untried; then
28717     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28718$as_echo "no" >&6; }
28719	HAVE_LIBUNWIND=no
28720else
28721	LIBUNWIND_CFLAGS=$pkg_cv_LIBUNWIND_CFLAGS
28722	LIBUNWIND_LIBS=$pkg_cv_LIBUNWIND_LIBS
28723        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28724$as_echo "yes" >&6; }
28725	HAVE_LIBUNWIND=yes
28726fi
28727if test "x$LIBUNWIND" = "xauto"; then
28728    LIBUNWIND="$HAVE_LIBUNWIND"
28729fi
28730
28731if test "x$LIBUNWIND" = "xyes"; then
28732    if test "x$HAVE_LIBUNWIND" != "xyes"; then
28733        as_fn_error $? "libunwind requested but not installed." "$LINENO" 5
28734    fi
28735
28736$as_echo "#define HAVE_LIBUNWIND 1" >>confdefs.h
28737
28738fi
28739
28740 if test "x$LIBUNWIND" = xyes; then
28741  HAVE_LIBUNWIND_TRUE=
28742  HAVE_LIBUNWIND_FALSE='#'
28743else
28744  HAVE_LIBUNWIND_TRUE='#'
28745  HAVE_LIBUNWIND_FALSE=
28746fi
28747
28748
28749# Autotools has some unfortunate issues with library handling.  In order to
28750# get a server to rebuild when a dependency in the tree is changed, it must
28751# be listed in SERVERNAME_DEPENDENCIES.  However, no system libraries may be
28752# listed there, or some versions of autotools will break (especially if a -L
28753# is required to find the library).  So, we keep two sets of libraries
28754# detected: NAMESPACE_LIBS for in-tree libraries to be linked against, which
28755# will go into the _DEPENDENCIES and _LDADD of the server, and
28756# NAMESPACE_SYS_LIBS which will go into only the _LDADD.  The
28757# NAMESPACEMODULES_LIBS detected from pkgconfig should always go in
28758# NAMESPACE_SYS_LIBS.
28759#
28760# XSERVER_LIBS is the set of in-tree libraries which all servers require.
28761# XSERVER_SYS_LIBS is the set of out-of-tree libraries which all servers
28762# require.
28763#
28764XSERVER_CFLAGS="${XSERVER_CFLAGS} ${XSERVERCFLAGS_CFLAGS}"
28765XSERVER_LIBS="$DIX_LIB $MI_LIB $OS_LIB"
28766XSERVER_SYS_LIBS="${XSERVERLIBS_LIBS} ${SYS_LIBS} ${LIBS}"
28767
28768
28769
28770UTILS_SYS_LIBS="${SYS_LIBS}"
28771
28772
28773# The Xorg binary needs to export symbols so that they can be used from modules
28774# Some platforms require extra flags to do this.   libtool should set the
28775# necessary flags for each platform when -export-dynamic is passed to it.
28776LD_EXPORT_SYMBOLS_FLAG="-export-dynamic"
28777LD_NO_UNDEFINED_FLAG=
28778XORG_DRIVER_LIBS=
28779case "$host_os" in
28780    cygwin*)
28781	LD_EXPORT_SYMBOLS_FLAG="-Wl,--export-all,--out-implib,lib\$@.a"
28782	LD_NO_UNDEFINED_FLAG="-no-undefined -Wl,\$(top_builddir)/hw/xfree86/libXorg.exe.a"
28783	XORG_DRIVER_LIBS="-lXorg.exe -L\${moduledir} -lshadow -lfb -no-undefined"
28784	CYGWIN=yes
28785	;;
28786    solaris*)
28787	# We use AC_LINK_IFELSE to generate a temporary program conftest$EXEEXT
28788	# that we can link against for testing if the system linker is new
28789	# enough to support -z parent=<program> for verifying loadable modules
28790	# are only calling functions defined in either the loading program or
28791	# the libraries they're linked with.
28792	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28793/* end confdefs.h.  */
28794int main(int argc, char **argv) { return 0; }
28795_ACEOF
28796if ac_fn_c_try_link "$LINENO"; then :
28797  mv conftest$EXEEXT conftest.parent
28798	     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-z,parent=conftest.parent -G" >&5
28799$as_echo_n "checking whether the linker accepts -Wl,-z,parent=conftest.parent -G... " >&6; }
28800if ${xorg_cv_linker_flags__Wl__z_parent_conftest_parent__G+:} false; then :
28801  $as_echo_n "(cached) " >&6
28802else
28803
28804      ax_save_FLAGS=$LDFLAGS
28805      LDFLAGS="-Wl,-z,parent=conftest.parent -G"
28806      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28807/* end confdefs.h.  */
28808extern int main(int argc, char **argv);
28809			int call_main(void) { return main(0, (void *)0); }
28810_ACEOF
28811if ac_fn_c_try_link "$LINENO"; then :
28812  xorg_cv_linker_flags__Wl__z_parent_conftest_parent__G=yes
28813else
28814  xorg_cv_linker_flags__Wl__z_parent_conftest_parent__G=no
28815fi
28816rm -f core conftest.err conftest.$ac_objext \
28817    conftest$ac_exeext conftest.$ac_ext
28818      LDFLAGS=$ax_save_FLAGS
28819fi
28820
28821eval xorg_check_linker_flags=$xorg_cv_linker_flags__Wl__z_parent_conftest_parent__G
28822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_check_linker_flags" >&5
28823$as_echo "$xorg_check_linker_flags" >&6; }
28824if test "x$xorg_check_linker_flags" = xyes; then
28825	LD_NO_UNDEFINED_FLAG="-Wl,-z,defs -Wl,-z,parent=\$(top_builddir)/hw/xfree86/Xorg"
28826# Not set yet, since this gets exported in xorg-server.pc to all the drivers,
28827# and they're not all fixed to build correctly with it yet.
28828#		 XORG_DRIVER_LIBS="-Wl,-z,defs -Wl,-z,parent=${bindir}/Xorg"
28829
28830else
28831	:
28832fi
28833
28834	     rm -f conftest.parent
28835
28836fi
28837rm -f core conftest.err conftest.$ac_objext \
28838    conftest$ac_exeext conftest.$ac_ext
28839	;;
28840esac
28841
28842
28843
28844 if test x"$CYGWIN" = xyes; then
28845  CYGWIN_TRUE=
28846  CYGWIN_FALSE='#'
28847else
28848  CYGWIN_TRUE='#'
28849  CYGWIN_FALSE=
28850fi
28851
28852 if test x"$LD_NO_UNDEFINED_FLAG" != x; then
28853  NO_UNDEFINED_TRUE=
28854  NO_UNDEFINED_FALSE='#'
28855else
28856  NO_UNDEFINED_TRUE='#'
28857  NO_UNDEFINED_FALSE=
28858fi
28859
28860
28861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if SVR4 needs to be defined" >&5
28862$as_echo_n "checking if SVR4 needs to be defined... " >&6; }
28863cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28864/* end confdefs.h.  */
28865
28866#if defined(SVR4) || defined(__svr4__) || defined(__SVR4)
28867 I_AM_SVR4
28868#endif
28869
28870_ACEOF
28871if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28872  $EGREP "I_AM_SVR4" >/dev/null 2>&1; then :
28873
28874
28875$as_echo "#define SVR4 1" >>confdefs.h
28876
28877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28878$as_echo "yes" >&6; }
28879else
28880  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28881$as_echo "no" >&6; }
28882fi
28883rm -f conftest*
28884
28885
28886XSERVER_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"
28887
28888
28889
28890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Xvfb DDX" >&5
28891$as_echo_n "checking whether to build Xvfb DDX... " >&6; }
28892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XVFB" >&5
28893$as_echo "$XVFB" >&6; }
28894 if test "x$XVFB" = xyes; then
28895  XVFB_TRUE=
28896  XVFB_FALSE='#'
28897else
28898  XVFB_TRUE='#'
28899  XVFB_FALSE=
28900fi
28901
28902
28903if test "x$XVFB" = xyes; then
28904	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"
28905	XVFB_SYS_LIBS="$XVFBMODULES_LIBS $GLX_SYS_LIBS"
28906
28907
28908fi
28909
28910
28911
28912
28913pkg_failed=no
28914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XNESTMODULES" >&5
28915$as_echo_n "checking for XNESTMODULES... " >&6; }
28916
28917if test -n "$XNESTMODULES_CFLAGS"; then
28918    pkg_cv_XNESTMODULES_CFLAGS="$XNESTMODULES_CFLAGS"
28919 elif test -n "$PKG_CONFIG"; then
28920    if test -n "$PKG_CONFIG" && \
28921    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXEXT x11 xau \$XDMCP_MODULES\""; } >&5
28922  ($PKG_CONFIG --exists --print-errors "$LIBXEXT x11 xau $XDMCP_MODULES") 2>&5
28923  ac_status=$?
28924  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28925  test $ac_status = 0; }; then
28926  pkg_cv_XNESTMODULES_CFLAGS=`$PKG_CONFIG --cflags "$LIBXEXT x11 xau $XDMCP_MODULES" 2>/dev/null`
28927		      test "x$?" != "x0" && pkg_failed=yes
28928else
28929  pkg_failed=yes
28930fi
28931 else
28932    pkg_failed=untried
28933fi
28934if test -n "$XNESTMODULES_LIBS"; then
28935    pkg_cv_XNESTMODULES_LIBS="$XNESTMODULES_LIBS"
28936 elif test -n "$PKG_CONFIG"; then
28937    if test -n "$PKG_CONFIG" && \
28938    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXEXT x11 xau \$XDMCP_MODULES\""; } >&5
28939  ($PKG_CONFIG --exists --print-errors "$LIBXEXT x11 xau $XDMCP_MODULES") 2>&5
28940  ac_status=$?
28941  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28942  test $ac_status = 0; }; then
28943  pkg_cv_XNESTMODULES_LIBS=`$PKG_CONFIG --libs "$LIBXEXT x11 xau $XDMCP_MODULES" 2>/dev/null`
28944		      test "x$?" != "x0" && pkg_failed=yes
28945else
28946  pkg_failed=yes
28947fi
28948 else
28949    pkg_failed=untried
28950fi
28951
28952
28953
28954if test $pkg_failed = yes; then
28955   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28956$as_echo "no" >&6; }
28957
28958if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28959        _pkg_short_errors_supported=yes
28960else
28961        _pkg_short_errors_supported=no
28962fi
28963        if test $_pkg_short_errors_supported = yes; then
28964	        XNESTMODULES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBXEXT x11 xau $XDMCP_MODULES" 2>&1`
28965        else
28966	        XNESTMODULES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBXEXT x11 xau $XDMCP_MODULES" 2>&1`
28967        fi
28968	# Put the nasty error message in config.log where it belongs
28969	echo "$XNESTMODULES_PKG_ERRORS" >&5
28970
28971	have_xnest=no
28972elif test $pkg_failed = untried; then
28973     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28974$as_echo "no" >&6; }
28975	have_xnest=no
28976else
28977	XNESTMODULES_CFLAGS=$pkg_cv_XNESTMODULES_CFLAGS
28978	XNESTMODULES_LIBS=$pkg_cv_XNESTMODULES_LIBS
28979        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28980$as_echo "yes" >&6; }
28981	have_xnest=yes
28982fi
28983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Xnest DDX" >&5
28984$as_echo_n "checking whether to build Xnest DDX... " >&6; }
28985if test "x$XNEST" = xauto; then
28986	XNEST="$have_xnest"
28987fi
28988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XNEST" >&5
28989$as_echo "$XNEST" >&6; }
28990 if test "x$XNEST" = xyes; then
28991  XNEST_TRUE=
28992  XNEST_FALSE='#'
28993else
28994  XNEST_TRUE='#'
28995  XNEST_FALSE=
28996fi
28997
28998
28999if test "x$XNEST" = xyes; then
29000	if test "x$have_xnest" = xno; then
29001		as_fn_error $? "Xnest build explicitly requested, but required modules not found." "$LINENO" 5
29002	fi
29003	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"
29004	XNEST_SYS_LIBS="$XNESTMODULES_LIBS $GLX_SYS_LIBS"
29005
29006
29007fi
29008
29009
29010
29011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Xorg DDX" >&5
29012$as_echo_n "checking whether to build Xorg DDX... " >&6; }
29013if test "x$XORG" = xauto; then
29014	XORG="yes"
29015	case $host_os in
29016		cygwin*) XORG="no" ;;
29017		mingw*)  XORG="no" ;;
29018		darwin*) XORG="no" ;;
29019	esac
29020fi
29021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG" >&5
29022$as_echo "$XORG" >&6; }
29023
29024if test "x$XORG" = xyes; then
29025	XORG_DDXINCS='-I$(top_srcdir)/hw/xfree86 -I$(top_srcdir)/hw/xfree86/include -I$(top_srcdir)/hw/xfree86/common'
29026	XORG_OSINCS='-I$(top_srcdir)/hw/xfree86/os-support -I$(top_srcdir)/hw/xfree86/os-support/bus -I$(top_srcdir)/os'
29027	XORG_INCS="$XORG_DDXINCS $XORG_OSINCS"
29028	XORG_CFLAGS="$XORGSERVER_CFLAGS -DHAVE_XORG_CONFIG_H"
29029	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"
29030
29031			symbol_visibility=
29032	have_visibility=disabled
29033	if test x$SYMBOL_VISIBILITY != xno; then
29034	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for symbol visibility support" >&5
29035$as_echo_n "checking for symbol visibility support... " >&6; }
29036	    if test x$GCC = xyes; then
29037		VISIBILITY_CFLAGS="-fvisibility=hidden"
29038	    else
29039		if test x$SUNCC = xyes; then
29040		    VISIBILITY_CFLAGS="-xldscope=hidden"
29041		else
29042		    have_visibility=no
29043		fi
29044	    fi
29045	    if test x$have_visibility != xno; then
29046		save_CFLAGS="$CFLAGS"
29047		proto_inc=`$PKG_CONFIG --cflags xproto`
29048		CFLAGS="$CFLAGS $VISIBILITY_CFLAGS $proto_inc"
29049		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29050/* end confdefs.h.  */
29051
29052		    #include <X11/Xfuncproto.h>
29053		     extern _X_HIDDEN int hidden_int;
29054		     extern _X_EXPORT int public_int;
29055		     extern _X_HIDDEN int hidden_int_func(void);
29056		     extern _X_EXPORT int public_int_func(void);
29057int
29058main ()
29059{
29060
29061  ;
29062  return 0;
29063}
29064_ACEOF
29065if ac_fn_c_try_compile "$LINENO"; then :
29066  have_visibility=yes
29067else
29068  have_visibility=no
29069fi
29070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29071		CFLAGS=$save_CFLAGS
29072	    fi
29073	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_visibility" >&5
29074$as_echo "$have_visibility" >&6; }
29075	    if test x$have_visibility != xno; then
29076		symbol_visibility=$VISIBILITY_CFLAGS
29077		XORG_CFLAGS="$XORG_CFLAGS $VISIBILITY_CFLAGS"
29078		XSERVER_CFLAGS="$XSERVER_CFLAGS $VISIBILITY_CFLAGS"
29079	    fi
29080	fi
29081
29082
29083				xorg_bus_bsdpci=no
29084	xorg_bus_sparc=no
29085
29086	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Xorg PCI functions" >&5
29087$as_echo_n "checking whether to build Xorg PCI functions... " >&6; }
29088	if test "x$PCI" = xyes; then
29089
29090pkg_failed=no
29091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
29092$as_echo_n "checking for PCIACCESS... " >&6; }
29093
29094if test -n "$PCIACCESS_CFLAGS"; then
29095    pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
29096 elif test -n "$PKG_CONFIG"; then
29097    if test -n "$PKG_CONFIG" && \
29098    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBPCIACCESS\""; } >&5
29099  ($PKG_CONFIG --exists --print-errors "$LIBPCIACCESS") 2>&5
29100  ac_status=$?
29101  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29102  test $ac_status = 0; }; then
29103  pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "$LIBPCIACCESS" 2>/dev/null`
29104		      test "x$?" != "x0" && pkg_failed=yes
29105else
29106  pkg_failed=yes
29107fi
29108 else
29109    pkg_failed=untried
29110fi
29111if test -n "$PCIACCESS_LIBS"; then
29112    pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
29113 elif test -n "$PKG_CONFIG"; then
29114    if test -n "$PKG_CONFIG" && \
29115    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBPCIACCESS\""; } >&5
29116  ($PKG_CONFIG --exists --print-errors "$LIBPCIACCESS") 2>&5
29117  ac_status=$?
29118  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29119  test $ac_status = 0; }; then
29120  pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "$LIBPCIACCESS" 2>/dev/null`
29121		      test "x$?" != "x0" && pkg_failed=yes
29122else
29123  pkg_failed=yes
29124fi
29125 else
29126    pkg_failed=untried
29127fi
29128
29129
29130
29131if test $pkg_failed = yes; then
29132   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29133$as_echo "no" >&6; }
29134
29135if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29136        _pkg_short_errors_supported=yes
29137else
29138        _pkg_short_errors_supported=no
29139fi
29140        if test $_pkg_short_errors_supported = yes; then
29141	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBPCIACCESS" 2>&1`
29142        else
29143	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBPCIACCESS" 2>&1`
29144        fi
29145	# Put the nasty error message in config.log where it belongs
29146	echo "$PCIACCESS_PKG_ERRORS" >&5
29147
29148	as_fn_error $? "Package requirements ($LIBPCIACCESS) were not met:
29149
29150$PCIACCESS_PKG_ERRORS
29151
29152Consider adjusting the PKG_CONFIG_PATH environment variable if you
29153installed software in a non-standard prefix.
29154
29155Alternatively, you may set the environment variables PCIACCESS_CFLAGS
29156and PCIACCESS_LIBS to avoid the need to call pkg-config.
29157See the pkg-config man page for more details." "$LINENO" 5
29158elif test $pkg_failed = untried; then
29159     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29160$as_echo "no" >&6; }
29161	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
29162$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29163as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
29164is in your PATH or set the PKG_CONFIG environment variable to the full
29165path to pkg-config.
29166
29167Alternatively, you may set the environment variables PCIACCESS_CFLAGS
29168and PCIACCESS_LIBS to avoid the need to call pkg-config.
29169See the pkg-config man page for more details.
29170
29171To get pkg-config, see <http://pkg-config.freedesktop.org/>.
29172See \`config.log' for more details" "$LINENO" 5; }
29173else
29174	PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
29175	PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
29176        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29177$as_echo "yes" >&6; }
29178
29179fi
29180		SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $LIBPCIACCESS"
29181		XORG_SYS_LIBS="$XORG_SYS_LIBS $PCIACCESS_LIBS $LIBDRM_LIBS"
29182		XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS $LIBDRM_CFLAGS"
29183
29184
29185$as_echo "#define XSERVER_LIBPCIACCESS 1" >>confdefs.h
29186
29187
29188  prefix_NONE=
29189  exec_prefix_NONE=
29190  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
29191  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
29192  eval ac_define_dir="\"$PCI_TXT_IDS_DIR\""
29193  eval ac_define_dir="\"$ac_define_dir\""
29194  PCI_TXT_IDS_PATH="$ac_define_dir"
29195
29196
29197cat >>confdefs.h <<_ACEOF
29198#define PCI_TXT_IDS_PATH "$ac_define_dir"
29199_ACEOF
29200
29201  test "$prefix_NONE" && prefix=NONE
29202  test "$exec_prefix_NONE" && exec_prefix=NONE
29203
29204		case $host_os in
29205		  gnu* | freebsd* | kfreebsd*-gnu | netbsd* | openbsd* | solaris* | dragonfly*)
29206			xorg_bus_bsdpci="yes"
29207			;;
29208		esac
29209		case $host_cpu in
29210		  sparc*)
29211			xorg_bus_sparc="yes"
29212			;;
29213		esac
29214	else
29215		if test "x$CONFIG_UDEV_KMS" = xyes; then
29216			as_fn_error $? "Platform device enumeration requires libpciaccess" "$LINENO" 5
29217		fi
29218		if test "x$INT10MODULE" = xyes && test "x$INT10" != xstub; then
29219			as_fn_error $? "Cannot build int10 without libpciaccess" "$LINENO" 5
29220		fi
29221	fi
29222	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCI" >&5
29223$as_echo "$PCI" >&6; }
29224
29225	if test "x$CONFIG_UDEV_KMS" = xyes; then
29226
29227$as_echo "#define XSERVER_PLATFORM_BUS 1" >>confdefs.h
29228
29229	fi
29230	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSERVER_PLATFORM_BUS" >&5
29231$as_echo "$XSERVER_PLATFORM_BUS" >&6; }
29232
29233	case $host_os in
29234	  linux*)
29235		XORG_OS_SUBDIR="linux"
29236		linux_acpi="no"
29237		case $host_cpu in
29238		  i*86|amd64*|x86_64*|ia64*)
29239			linux_acpi=$enable_linux_acpi
29240			;;
29241		  *)
29242			;;
29243		esac
29244				for ac_header in linux/apm_bios.h
29245do :
29246  ac_fn_c_check_header_mongrel "$LINENO" "linux/apm_bios.h" "ac_cv_header_linux_apm_bios_h" "$ac_includes_default"
29247if test "x$ac_cv_header_linux_apm_bios_h" = xyes; then :
29248  cat >>confdefs.h <<_ACEOF
29249#define HAVE_LINUX_APM_BIOS_H 1
29250_ACEOF
29251 linux_apm=$enable_linux_apm
29252fi
29253
29254done
29255
29256		if test "x$linux_apm" = xyes -o "x$linux_acpi" = xyes; then
29257
29258$as_echo "#define XF86PM 1" >>confdefs.h
29259
29260		fi
29261		;;
29262	  freebsd* | kfreebsd*-gnu | dragonfly*)
29263		XORG_OS_SUBDIR="bsd"
29264		;;
29265	  netbsd*)
29266		XORG_OS_SUBDIR="bsd"
29267		;;
29268	  openbsd*)
29269		if test "x$ac_cv_BSD_APM" = xyes \
29270			-o "x$ac_cv_BSD_KQUEUE_APM" = xyes; then
29271			XORG_CFLAGS="$XORG_CFLAGS -DXF86PM"
29272		fi
29273		XORG_OS_SUBDIR="bsd"
29274		;;
29275	  solaris*)
29276		XORG_OS_SUBDIR="solaris"
29277		XORG_CFLAGS="$XORG_CFLAGS -DXF86PM"
29278		for ac_header in sys/kd.h
29279do :
29280  ac_fn_c_check_header_mongrel "$LINENO" "sys/kd.h" "ac_cv_header_sys_kd_h" "$ac_includes_default"
29281if test "x$ac_cv_header_sys_kd_h" = xyes; then :
29282  cat >>confdefs.h <<_ACEOF
29283#define HAVE_SYS_KD_H 1
29284_ACEOF
29285
29286fi
29287
29288done
29289
29290		for ac_header in sys/vt.h
29291do :
29292  ac_fn_c_check_header_mongrel "$LINENO" "sys/vt.h" "ac_cv_header_sys_vt_h" "$ac_includes_default"
29293if test "x$ac_cv_header_sys_vt_h" = xyes; then :
29294  cat >>confdefs.h <<_ACEOF
29295#define HAVE_SYS_VT_H 1
29296_ACEOF
29297 solaris_vt=yes
29298else
29299  solaris_vt=no
29300fi
29301
29302done
29303
29304		# Check for minimum supported release
29305		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Solaris version" >&5
29306$as_echo_n "checking Solaris version... " >&6; }
29307	        OS_MINOR=`echo ${host_os}|$SED -e 's/^.*solaris2\.//' -e s'/\..*$//'`
29308		if test "${OS_MINOR}" -ge 7 ; then
29309	        	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Solaris ${OS_MINOR}" >&5
29310$as_echo "Solaris ${OS_MINOR}" >&6; }
29311		else
29312			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Solaris \`echo ${host_os}|$SED -e 's/^.*solaris//\`" >&5
29313$as_echo "Solaris \`echo ${host_os}|$SED -e 's/^.*solaris//\`" >&6; }
29314		fi
29315		if test "${OS_MINOR}" -lt 8 ; then
29316			as_fn_error $? "This release no longer supports Solaris versions older than Solaris 8." "$LINENO" 5
29317		fi
29318		ac_fn_c_check_decl "$LINENO" "_LP64" "ac_cv_have_decl__LP64" "$ac_includes_default"
29319if test "x$ac_cv_have_decl__LP64" = xyes; then :
29320  SOLARIS_64="yes"
29321else
29322  SOLARIS_64="no"
29323fi
29324
29325
29326		case $host_cpu in
29327		  sparc*)
29328			SOLARIS_INOUT_ARCH="sparcv8plus"
29329			;;
29330		  i*86|x86_64*)
29331			if test x$SOLARIS_64 = xyes ; then
29332				SOLARIS_INOUT_ARCH="amd64"
29333			else
29334				SOLARIS_INOUT_ARCH="ia32"
29335			fi
29336			;;
29337		  *)
29338			as_fn_error $? "Unsupported Solaris platform. Only SPARC & x86 \
29339			are supported on Solaris in this release.   If you are \
29340			interested in porting Xorg to your platform, please email \
29341			xorg@lists.freedesktop.org." "$LINENO" 5 ;;
29342		esac
29343
29344		;;
29345	  gnu*)
29346		XORG_OS_SUBDIR="hurd"
29347		;;
29348	  cygwin*)
29349		XORG_OS_SUBDIR="stub"
29350		;;
29351	  *)
29352		XORG_OS_SUBDIR="stub"
29353		{ $as_echo "$as_me:${as_lineno-$LINENO}: Your OS is unknown. If you are interested in porting Xorg to your platform,
29354please email xorg@lists.freedesktop.org." >&5
29355$as_echo "$as_me: Your OS is unknown. If you are interested in porting Xorg to your platform,
29356please email xorg@lists.freedesktop.org." >&6;}
29357		;;
29358	esac
29359
29360	if test "x$DGA" = xauto; then
29361
29362pkg_failed=no
29363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DGA" >&5
29364$as_echo_n "checking for DGA... " >&6; }
29365
29366if test -n "$DGA_CFLAGS"; then
29367    pkg_cv_DGA_CFLAGS="$DGA_CFLAGS"
29368 elif test -n "$PKG_CONFIG"; then
29369    if test -n "$PKG_CONFIG" && \
29370    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DGAPROTO\""; } >&5
29371  ($PKG_CONFIG --exists --print-errors "$DGAPROTO") 2>&5
29372  ac_status=$?
29373  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29374  test $ac_status = 0; }; then
29375  pkg_cv_DGA_CFLAGS=`$PKG_CONFIG --cflags "$DGAPROTO" 2>/dev/null`
29376		      test "x$?" != "x0" && pkg_failed=yes
29377else
29378  pkg_failed=yes
29379fi
29380 else
29381    pkg_failed=untried
29382fi
29383if test -n "$DGA_LIBS"; then
29384    pkg_cv_DGA_LIBS="$DGA_LIBS"
29385 elif test -n "$PKG_CONFIG"; then
29386    if test -n "$PKG_CONFIG" && \
29387    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DGAPROTO\""; } >&5
29388  ($PKG_CONFIG --exists --print-errors "$DGAPROTO") 2>&5
29389  ac_status=$?
29390  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29391  test $ac_status = 0; }; then
29392  pkg_cv_DGA_LIBS=`$PKG_CONFIG --libs "$DGAPROTO" 2>/dev/null`
29393		      test "x$?" != "x0" && pkg_failed=yes
29394else
29395  pkg_failed=yes
29396fi
29397 else
29398    pkg_failed=untried
29399fi
29400
29401
29402
29403if test $pkg_failed = yes; then
29404   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29405$as_echo "no" >&6; }
29406
29407if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29408        _pkg_short_errors_supported=yes
29409else
29410        _pkg_short_errors_supported=no
29411fi
29412        if test $_pkg_short_errors_supported = yes; then
29413	        DGA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$DGAPROTO" 2>&1`
29414        else
29415	        DGA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$DGAPROTO" 2>&1`
29416        fi
29417	# Put the nasty error message in config.log where it belongs
29418	echo "$DGA_PKG_ERRORS" >&5
29419
29420	DGA=no
29421elif test $pkg_failed = untried; then
29422     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29423$as_echo "no" >&6; }
29424	DGA=no
29425else
29426	DGA_CFLAGS=$pkg_cv_DGA_CFLAGS
29427	DGA_LIBS=$pkg_cv_DGA_LIBS
29428        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29429$as_echo "yes" >&6; }
29430	DGA=yes
29431fi
29432	fi
29433	if test "x$DGA" = xyes; then
29434		XORG_MODULES="$XORG_MODULES $DGAPROTO"
29435
29436pkg_failed=no
29437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DGA" >&5
29438$as_echo_n "checking for DGA... " >&6; }
29439
29440if test -n "$DGA_CFLAGS"; then
29441    pkg_cv_DGA_CFLAGS="$DGA_CFLAGS"
29442 elif test -n "$PKG_CONFIG"; then
29443    if test -n "$PKG_CONFIG" && \
29444    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DGAPROTO\""; } >&5
29445  ($PKG_CONFIG --exists --print-errors "$DGAPROTO") 2>&5
29446  ac_status=$?
29447  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29448  test $ac_status = 0; }; then
29449  pkg_cv_DGA_CFLAGS=`$PKG_CONFIG --cflags "$DGAPROTO" 2>/dev/null`
29450		      test "x$?" != "x0" && pkg_failed=yes
29451else
29452  pkg_failed=yes
29453fi
29454 else
29455    pkg_failed=untried
29456fi
29457if test -n "$DGA_LIBS"; then
29458    pkg_cv_DGA_LIBS="$DGA_LIBS"
29459 elif test -n "$PKG_CONFIG"; then
29460    if test -n "$PKG_CONFIG" && \
29461    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DGAPROTO\""; } >&5
29462  ($PKG_CONFIG --exists --print-errors "$DGAPROTO") 2>&5
29463  ac_status=$?
29464  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29465  test $ac_status = 0; }; then
29466  pkg_cv_DGA_LIBS=`$PKG_CONFIG --libs "$DGAPROTO" 2>/dev/null`
29467		      test "x$?" != "x0" && pkg_failed=yes
29468else
29469  pkg_failed=yes
29470fi
29471 else
29472    pkg_failed=untried
29473fi
29474
29475
29476
29477if test $pkg_failed = yes; then
29478   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29479$as_echo "no" >&6; }
29480
29481if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29482        _pkg_short_errors_supported=yes
29483else
29484        _pkg_short_errors_supported=no
29485fi
29486        if test $_pkg_short_errors_supported = yes; then
29487	        DGA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$DGAPROTO" 2>&1`
29488        else
29489	        DGA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$DGAPROTO" 2>&1`
29490        fi
29491	# Put the nasty error message in config.log where it belongs
29492	echo "$DGA_PKG_ERRORS" >&5
29493
29494	as_fn_error $? "Package requirements ($DGAPROTO) were not met:
29495
29496$DGA_PKG_ERRORS
29497
29498Consider adjusting the PKG_CONFIG_PATH environment variable if you
29499installed software in a non-standard prefix.
29500
29501Alternatively, you may set the environment variables DGA_CFLAGS
29502and DGA_LIBS to avoid the need to call pkg-config.
29503See the pkg-config man page for more details." "$LINENO" 5
29504elif test $pkg_failed = untried; then
29505     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29506$as_echo "no" >&6; }
29507	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
29508$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29509as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
29510is in your PATH or set the PKG_CONFIG environment variable to the full
29511path to pkg-config.
29512
29513Alternatively, you may set the environment variables DGA_CFLAGS
29514and DGA_LIBS to avoid the need to call pkg-config.
29515See the pkg-config man page for more details.
29516
29517To get pkg-config, see <http://pkg-config.freedesktop.org/>.
29518See \`config.log' for more details" "$LINENO" 5; }
29519else
29520	DGA_CFLAGS=$pkg_cv_DGA_CFLAGS
29521	DGA_LIBS=$pkg_cv_DGA_LIBS
29522        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29523$as_echo "yes" >&6; }
29524
29525fi
29526
29527$as_echo "#define DGA 1" >>confdefs.h
29528
29529
29530$as_echo "#define XFreeXDGA 1" >>confdefs.h
29531
29532	fi
29533
29534	if test "x$XF86VIDMODE" = xyes; then
29535		XORG_MODULES="$XORG_MODULES $VIDMODEPROTO"
29536	fi
29537
29538	if test -n "$XORG_MODULES"; then
29539
29540pkg_failed=no
29541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG_MODULES" >&5
29542$as_echo_n "checking for XORG_MODULES... " >&6; }
29543
29544if test -n "$XORG_MODULES_CFLAGS"; then
29545    pkg_cv_XORG_MODULES_CFLAGS="$XORG_MODULES_CFLAGS"
29546 elif test -n "$PKG_CONFIG"; then
29547    if test -n "$PKG_CONFIG" && \
29548    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XORG_MODULES\""; } >&5
29549  ($PKG_CONFIG --exists --print-errors "$XORG_MODULES") 2>&5
29550  ac_status=$?
29551  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29552  test $ac_status = 0; }; then
29553  pkg_cv_XORG_MODULES_CFLAGS=`$PKG_CONFIG --cflags "$XORG_MODULES" 2>/dev/null`
29554		      test "x$?" != "x0" && pkg_failed=yes
29555else
29556  pkg_failed=yes
29557fi
29558 else
29559    pkg_failed=untried
29560fi
29561if test -n "$XORG_MODULES_LIBS"; then
29562    pkg_cv_XORG_MODULES_LIBS="$XORG_MODULES_LIBS"
29563 elif test -n "$PKG_CONFIG"; then
29564    if test -n "$PKG_CONFIG" && \
29565    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XORG_MODULES\""; } >&5
29566  ($PKG_CONFIG --exists --print-errors "$XORG_MODULES") 2>&5
29567  ac_status=$?
29568  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29569  test $ac_status = 0; }; then
29570  pkg_cv_XORG_MODULES_LIBS=`$PKG_CONFIG --libs "$XORG_MODULES" 2>/dev/null`
29571		      test "x$?" != "x0" && pkg_failed=yes
29572else
29573  pkg_failed=yes
29574fi
29575 else
29576    pkg_failed=untried
29577fi
29578
29579
29580
29581if test $pkg_failed = yes; then
29582   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29583$as_echo "no" >&6; }
29584
29585if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29586        _pkg_short_errors_supported=yes
29587else
29588        _pkg_short_errors_supported=no
29589fi
29590        if test $_pkg_short_errors_supported = yes; then
29591	        XORG_MODULES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$XORG_MODULES" 2>&1`
29592        else
29593	        XORG_MODULES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$XORG_MODULES" 2>&1`
29594        fi
29595	# Put the nasty error message in config.log where it belongs
29596	echo "$XORG_MODULES_PKG_ERRORS" >&5
29597
29598	as_fn_error $? "Package requirements ($XORG_MODULES) were not met:
29599
29600$XORG_MODULES_PKG_ERRORS
29601
29602Consider adjusting the PKG_CONFIG_PATH environment variable if you
29603installed software in a non-standard prefix.
29604
29605Alternatively, you may set the environment variables XORG_MODULES_CFLAGS
29606and XORG_MODULES_LIBS to avoid the need to call pkg-config.
29607See the pkg-config man page for more details." "$LINENO" 5
29608elif test $pkg_failed = untried; then
29609     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29610$as_echo "no" >&6; }
29611	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
29612$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29613as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
29614is in your PATH or set the PKG_CONFIG environment variable to the full
29615path to pkg-config.
29616
29617Alternatively, you may set the environment variables XORG_MODULES_CFLAGS
29618and XORG_MODULES_LIBS to avoid the need to call pkg-config.
29619See the pkg-config man page for more details.
29620
29621To get pkg-config, see <http://pkg-config.freedesktop.org/>.
29622See \`config.log' for more details" "$LINENO" 5; }
29623else
29624	XORG_MODULES_CFLAGS=$pkg_cv_XORG_MODULES_CFLAGS
29625	XORG_MODULES_LIBS=$pkg_cv_XORG_MODULES_LIBS
29626        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29627$as_echo "yes" >&6; }
29628
29629fi
29630	        XORG_CFLAGS="$XORG_CFLAGS $XORG_MODULES_CFLAGS"
29631	        XORG_SYS_LIBS="$XORG_SYS_LIBS $XORG_MODULES_LIBS"
29632	fi
29633
29634	if test "x$DRM" = xyes; then
29635		XORG_DRIVER_MODESETTING=yes
29636	fi
29637
29638
29639
29640
29641
29642
29643
29644		XF86CONFIGFILE="xorg.conf"
29645	XF86CONFIGDIR="xorg.conf.d"
29646
29647	CONFIGFILE="$sysconfdir/$XF86CONFIGFILE"
29648	LOGPREFIX="Xorg."
29649	XDG_DATA_HOME=".local/share"
29650	XDG_DATA_HOME_LOGDIR="xorg"
29651
29652$as_echo "#define XORG_SERVER 1" >>confdefs.h
29653
29654
29655$as_echo "#define XORGSERVER 1" >>confdefs.h
29656
29657
29658$as_echo "#define XFree86Server 1" >>confdefs.h
29659
29660
29661cat >>confdefs.h <<_ACEOF
29662#define XORG_VERSION_CURRENT $VENDOR_RELEASE
29663_ACEOF
29664
29665
29666$as_echo "#define NEED_XF86_TYPES 1" >>confdefs.h
29667
29668
29669$as_echo "#define NEED_XF86_PROTOTYPES 1" >>confdefs.h
29670
29671
29672$as_echo "#define __XSERVERNAME__ \"Xorg\"" >>confdefs.h
29673
29674
29675  prefix_NONE=
29676  exec_prefix_NONE=
29677  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
29678  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
29679  eval ac_define_dir="\"$XF86CONFIGFILE\""
29680  eval ac_define_dir="\"$ac_define_dir\""
29681  XCONFIGFILE="$ac_define_dir"
29682
29683
29684cat >>confdefs.h <<_ACEOF
29685#define XCONFIGFILE "$ac_define_dir"
29686_ACEOF
29687
29688  test "$prefix_NONE" && prefix=NONE
29689  test "$exec_prefix_NONE" && exec_prefix=NONE
29690
29691
29692  prefix_NONE=
29693  exec_prefix_NONE=
29694  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
29695  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
29696  eval ac_define_dir="\"$XF86CONFIGFILE\""
29697  eval ac_define_dir="\"$ac_define_dir\""
29698  XF86CONFIGFILE="$ac_define_dir"
29699
29700
29701cat >>confdefs.h <<_ACEOF
29702#define XF86CONFIGFILE "$ac_define_dir"
29703_ACEOF
29704
29705  test "$prefix_NONE" && prefix=NONE
29706  test "$exec_prefix_NONE" && exec_prefix=NONE
29707
29708
29709  prefix_NONE=
29710  exec_prefix_NONE=
29711  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
29712  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
29713  eval ac_define_dir="\"$XF86CONFIGDIR\""
29714  eval ac_define_dir="\"$ac_define_dir\""
29715  XCONFIGDIR="$ac_define_dir"
29716
29717
29718cat >>confdefs.h <<_ACEOF
29719#define XCONFIGDIR "$ac_define_dir"
29720_ACEOF
29721
29722  test "$prefix_NONE" && prefix=NONE
29723  test "$exec_prefix_NONE" && exec_prefix=NONE
29724
29725
29726  prefix_NONE=
29727  exec_prefix_NONE=
29728  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
29729  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
29730  eval ac_define_dir="\"$moduledir\""
29731  eval ac_define_dir="\"$ac_define_dir\""
29732  DEFAULT_MODULE_PATH="$ac_define_dir"
29733
29734
29735cat >>confdefs.h <<_ACEOF
29736#define DEFAULT_MODULE_PATH "$ac_define_dir"
29737_ACEOF
29738
29739  test "$prefix_NONE" && prefix=NONE
29740  test "$exec_prefix_NONE" && exec_prefix=NONE
29741
29742
29743  prefix_NONE=
29744  exec_prefix_NONE=
29745  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
29746  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
29747  eval ac_define_dir="\"$libdir\""
29748  eval ac_define_dir="\"$ac_define_dir\""
29749  DEFAULT_LIBRARY_PATH="$ac_define_dir"
29750
29751
29752cat >>confdefs.h <<_ACEOF
29753#define DEFAULT_LIBRARY_PATH "$ac_define_dir"
29754_ACEOF
29755
29756  test "$prefix_NONE" && prefix=NONE
29757  test "$exec_prefix_NONE" && exec_prefix=NONE
29758
29759
29760  prefix_NONE=
29761  exec_prefix_NONE=
29762  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
29763  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
29764  eval ac_define_dir="\"$logdir\""
29765  eval ac_define_dir="\"$ac_define_dir\""
29766  DEFAULT_LOGDIR="$ac_define_dir"
29767
29768
29769cat >>confdefs.h <<_ACEOF
29770#define DEFAULT_LOGDIR "$ac_define_dir"
29771_ACEOF
29772
29773  test "$prefix_NONE" && prefix=NONE
29774  test "$exec_prefix_NONE" && exec_prefix=NONE
29775
29776
29777  prefix_NONE=
29778  exec_prefix_NONE=
29779  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
29780  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
29781  eval ac_define_dir="\"$LOGPREFIX\""
29782  eval ac_define_dir="\"$ac_define_dir\""
29783  DEFAULT_LOGPREFIX="$ac_define_dir"
29784
29785
29786cat >>confdefs.h <<_ACEOF
29787#define DEFAULT_LOGPREFIX "$ac_define_dir"
29788_ACEOF
29789
29790  test "$prefix_NONE" && prefix=NONE
29791  test "$exec_prefix_NONE" && exec_prefix=NONE
29792
29793
29794  prefix_NONE=
29795  exec_prefix_NONE=
29796  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
29797  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
29798  eval ac_define_dir="\"$XDG_DATA_HOME\""
29799  eval ac_define_dir="\"$ac_define_dir\""
29800  DEFAULT_XDG_DATA_HOME="$ac_define_dir"
29801
29802
29803cat >>confdefs.h <<_ACEOF
29804#define DEFAULT_XDG_DATA_HOME "$ac_define_dir"
29805_ACEOF
29806
29807  test "$prefix_NONE" && prefix=NONE
29808  test "$exec_prefix_NONE" && exec_prefix=NONE
29809
29810
29811  prefix_NONE=
29812  exec_prefix_NONE=
29813  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
29814  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
29815  eval ac_define_dir="\"$XDG_DATA_HOME_LOGDIR\""
29816  eval ac_define_dir="\"$ac_define_dir\""
29817  DEFAULT_XDG_DATA_HOME_LOGDIR="$ac_define_dir"
29818
29819
29820cat >>confdefs.h <<_ACEOF
29821#define DEFAULT_XDG_DATA_HOME_LOGDIR "$ac_define_dir"
29822_ACEOF
29823
29824  test "$prefix_NONE" && prefix=NONE
29825  test "$exec_prefix_NONE" && exec_prefix=NONE
29826
29827
29828cat >>confdefs.h <<_ACEOF
29829#define __VENDORDWEBSUPPORT__ "$VENDOR_WEB"
29830_ACEOF
29831
29832	if test "x$VGAHW" = xyes; then
29833
29834$as_echo "#define WITH_VGAHW 1" >>confdefs.h
29835
29836	fi
29837
29838	driverdir="$moduledir/drivers"
29839
29840
29841	sdkdir="$includedir/xorg"
29842	extdir="$includedir/X11/extensions"
29843	sysconfigdir="$datadir/X11/$XF86CONFIGDIR"
29844
29845
29846
29847
29848
29849	# stuff the ABI versions into the pc file too
29850	extract_abi() {
29851	    grep ^.define.*${1}_VERSION ${srcdir}/hw/xfree86/common/xf86Module.h | tr '(),' '  .' | awk '{ print $4$5 }'
29852	}
29853	abi_ansic=`extract_abi ANSIC`
29854	abi_videodrv=`extract_abi VIDEODRV`
29855	abi_xinput=`extract_abi XINPUT`
29856	abi_extension=`extract_abi EXTENSION`
29857
29858
29859
29860
29861fi
29862 if test "x$XORG" = xyes; then
29863  XORG_TRUE=
29864  XORG_FALSE='#'
29865else
29866  XORG_TRUE='#'
29867  XORG_FALSE=
29868fi
29869
29870 if test "x$PCI" = xyes; then
29871  XORG_BUS_PCI_TRUE=
29872  XORG_BUS_PCI_FALSE='#'
29873else
29874  XORG_BUS_PCI_TRUE='#'
29875  XORG_BUS_PCI_FALSE=
29876fi
29877
29878 if test "x$xorg_bus_bsdpci" = xyes; then
29879  XORG_BUS_BSDPCI_TRUE=
29880  XORG_BUS_BSDPCI_FALSE='#'
29881else
29882  XORG_BUS_BSDPCI_TRUE='#'
29883  XORG_BUS_BSDPCI_FALSE=
29884fi
29885
29886 if test "x$xorg_bus_sparc" = xyes; then
29887  XORG_BUS_SPARC_TRUE=
29888  XORG_BUS_SPARC_FALSE='#'
29889else
29890  XORG_BUS_SPARC_TRUE='#'
29891  XORG_BUS_SPARC_FALSE=
29892fi
29893
29894 if test "x$linux_acpi" = xyes; then
29895  LNXACPI_TRUE=
29896  LNXACPI_FALSE='#'
29897else
29898  LNXACPI_TRUE='#'
29899  LNXACPI_FALSE=
29900fi
29901
29902 if test "x$linux_apm" = xyes; then
29903  LNXAPM_TRUE=
29904  LNXAPM_FALSE='#'
29905else
29906  LNXAPM_TRUE='#'
29907  LNXAPM_FALSE=
29908fi
29909
29910 if test "x$solaris_vt" = xyes; then
29911  SOLARIS_VT_TRUE=
29912  SOLARIS_VT_FALSE='#'
29913else
29914  SOLARIS_VT_TRUE='#'
29915  SOLARIS_VT_FALSE=
29916fi
29917
29918 if test "x$DGA" = xyes; then
29919  DGA_TRUE=
29920  DGA_FALSE='#'
29921else
29922  DGA_TRUE='#'
29923  DGA_FALSE=
29924fi
29925
29926 if test "x$CONFIG_UDEV_KMS" = xyes; then
29927  XORG_BUS_PLATFORM_TRUE=
29928  XORG_BUS_PLATFORM_FALSE='#'
29929else
29930  XORG_BUS_PLATFORM_TRUE='#'
29931  XORG_BUS_PLATFORM_FALSE=
29932fi
29933
29934 if test "x$XORG_DRIVER_MODESETTING" = xyes; then
29935  XORG_DRIVER_MODESETTING_TRUE=
29936  XORG_DRIVER_MODESETTING_FALSE='#'
29937else
29938  XORG_DRIVER_MODESETTING_TRUE='#'
29939  XORG_DRIVER_MODESETTING_FALSE=
29940fi
29941
29942
29943if test "x$GLAMOR" = xauto; then
29944	if echo "$XORG" "$XEPHYR" "$XWAYLAND" | grep -q yes ; then
29945		GLAMOR=yes
29946	fi
29947fi
29948
29949 if test "x$GLAMOR" = xyes; then
29950  GLAMOR_TRUE=
29951  GLAMOR_FALSE='#'
29952else
29953  GLAMOR_TRUE='#'
29954  GLAMOR_FALSE=
29955fi
29956
29957
29958if test "x$GLAMOR" = xyes; then
29959
29960$as_echo "#define GLAMOR 1" >>confdefs.h
29961
29962
29963pkg_failed=no
29964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLAMOR" >&5
29965$as_echo_n "checking for GLAMOR... " >&6; }
29966
29967if test -n "$GLAMOR_CFLAGS"; then
29968    pkg_cv_GLAMOR_CFLAGS="$GLAMOR_CFLAGS"
29969 elif test -n "$PKG_CONFIG"; then
29970    if test -n "$PKG_CONFIG" && \
29971    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"epoxy\""; } >&5
29972  ($PKG_CONFIG --exists --print-errors "epoxy") 2>&5
29973  ac_status=$?
29974  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29975  test $ac_status = 0; }; then
29976  pkg_cv_GLAMOR_CFLAGS=`$PKG_CONFIG --cflags "epoxy" 2>/dev/null`
29977		      test "x$?" != "x0" && pkg_failed=yes
29978else
29979  pkg_failed=yes
29980fi
29981 else
29982    pkg_failed=untried
29983fi
29984if test -n "$GLAMOR_LIBS"; then
29985    pkg_cv_GLAMOR_LIBS="$GLAMOR_LIBS"
29986 elif test -n "$PKG_CONFIG"; then
29987    if test -n "$PKG_CONFIG" && \
29988    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"epoxy\""; } >&5
29989  ($PKG_CONFIG --exists --print-errors "epoxy") 2>&5
29990  ac_status=$?
29991  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29992  test $ac_status = 0; }; then
29993  pkg_cv_GLAMOR_LIBS=`$PKG_CONFIG --libs "epoxy" 2>/dev/null`
29994		      test "x$?" != "x0" && pkg_failed=yes
29995else
29996  pkg_failed=yes
29997fi
29998 else
29999    pkg_failed=untried
30000fi
30001
30002
30003
30004if test $pkg_failed = yes; then
30005   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30006$as_echo "no" >&6; }
30007
30008if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30009        _pkg_short_errors_supported=yes
30010else
30011        _pkg_short_errors_supported=no
30012fi
30013        if test $_pkg_short_errors_supported = yes; then
30014	        GLAMOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "epoxy" 2>&1`
30015        else
30016	        GLAMOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "epoxy" 2>&1`
30017        fi
30018	# Put the nasty error message in config.log where it belongs
30019	echo "$GLAMOR_PKG_ERRORS" >&5
30020
30021	as_fn_error $? "Package requirements (epoxy) were not met:
30022
30023$GLAMOR_PKG_ERRORS
30024
30025Consider adjusting the PKG_CONFIG_PATH environment variable if you
30026installed software in a non-standard prefix.
30027
30028Alternatively, you may set the environment variables GLAMOR_CFLAGS
30029and GLAMOR_LIBS to avoid the need to call pkg-config.
30030See the pkg-config man page for more details." "$LINENO" 5
30031elif test $pkg_failed = untried; then
30032     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30033$as_echo "no" >&6; }
30034	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
30035$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30036as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
30037is in your PATH or set the PKG_CONFIG environment variable to the full
30038path to pkg-config.
30039
30040Alternatively, you may set the environment variables GLAMOR_CFLAGS
30041and GLAMOR_LIBS to avoid the need to call pkg-config.
30042See the pkg-config man page for more details.
30043
30044To get pkg-config, see <http://pkg-config.freedesktop.org/>.
30045See \`config.log' for more details" "$LINENO" 5; }
30046else
30047	GLAMOR_CFLAGS=$pkg_cv_GLAMOR_CFLAGS
30048	GLAMOR_LIBS=$pkg_cv_GLAMOR_LIBS
30049        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30050$as_echo "yes" >&6; }
30051
30052fi
30053
30054	if test -n "$PKG_CONFIG" && \
30055    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"epoxy >= 1.4.4\""; } >&5
30056  ($PKG_CONFIG --exists --print-errors "epoxy >= 1.4.4") 2>&5
30057  ac_status=$?
30058  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30059  test $ac_status = 0; }; then
30060
30061$as_echo "#define GLAMOR_HAS_EGL_QUERY_DMABUF 1" >>confdefs.h
30062
30063fi
30064
30065	if test -n "$PKG_CONFIG" && \
30066    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"epoxy >= 1.5.4\""; } >&5
30067  ($PKG_CONFIG --exists --print-errors "epoxy >= 1.5.4") 2>&5
30068  ac_status=$?
30069  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30070  test $ac_status = 0; }; then
30071
30072$as_echo "#define GLAMOR_HAS_EGL_QUERY_DRIVER 1" >>confdefs.h
30073
30074fi
30075
30076
30077pkg_failed=no
30078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GBM" >&5
30079$as_echo_n "checking for GBM... " >&6; }
30080
30081if test -n "$GBM_CFLAGS"; then
30082    pkg_cv_GBM_CFLAGS="$GBM_CFLAGS"
30083 elif test -n "$PKG_CONFIG"; then
30084    if test -n "$PKG_CONFIG" && \
30085    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"\$LIBGBM\"\""; } >&5
30086  ($PKG_CONFIG --exists --print-errors ""$LIBGBM"") 2>&5
30087  ac_status=$?
30088  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30089  test $ac_status = 0; }; then
30090  pkg_cv_GBM_CFLAGS=`$PKG_CONFIG --cflags ""$LIBGBM"" 2>/dev/null`
30091		      test "x$?" != "x0" && pkg_failed=yes
30092else
30093  pkg_failed=yes
30094fi
30095 else
30096    pkg_failed=untried
30097fi
30098if test -n "$GBM_LIBS"; then
30099    pkg_cv_GBM_LIBS="$GBM_LIBS"
30100 elif test -n "$PKG_CONFIG"; then
30101    if test -n "$PKG_CONFIG" && \
30102    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"\$LIBGBM\"\""; } >&5
30103  ($PKG_CONFIG --exists --print-errors ""$LIBGBM"") 2>&5
30104  ac_status=$?
30105  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30106  test $ac_status = 0; }; then
30107  pkg_cv_GBM_LIBS=`$PKG_CONFIG --libs ""$LIBGBM"" 2>/dev/null`
30108		      test "x$?" != "x0" && pkg_failed=yes
30109else
30110  pkg_failed=yes
30111fi
30112 else
30113    pkg_failed=untried
30114fi
30115
30116
30117
30118if test $pkg_failed = yes; then
30119   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30120$as_echo "no" >&6; }
30121
30122if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30123        _pkg_short_errors_supported=yes
30124else
30125        _pkg_short_errors_supported=no
30126fi
30127        if test $_pkg_short_errors_supported = yes; then
30128	        GBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs ""$LIBGBM"" 2>&1`
30129        else
30130	        GBM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs ""$LIBGBM"" 2>&1`
30131        fi
30132	# Put the nasty error message in config.log where it belongs
30133	echo "$GBM_PKG_ERRORS" >&5
30134
30135	GBM=no
30136elif test $pkg_failed = untried; then
30137     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30138$as_echo "no" >&6; }
30139	GBM=no
30140else
30141	GBM_CFLAGS=$pkg_cv_GBM_CFLAGS
30142	GBM_LIBS=$pkg_cv_GBM_LIBS
30143        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30144$as_echo "yes" >&6; }
30145	GBM=yes
30146fi
30147	if test "x$GBM" = xyes; then
30148
30149$as_echo "#define GLAMOR_HAS_GBM 1" >>confdefs.h
30150
30151		ac_fn_c_check_decl "$LINENO" "GBM_BO_USE_LINEAR" "ac_cv_have_decl_GBM_BO_USE_LINEAR" "#include <stdlib.h>
30152			 #include <gbm.h>
30153"
30154if test "x$ac_cv_have_decl_GBM_BO_USE_LINEAR" = xyes; then :
30155
30156$as_echo "#define GLAMOR_HAS_GBM_LINEAR 1" >>confdefs.h
30157
30158fi
30159
30160				if test -n "$PKG_CONFIG" && \
30161    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 17.1.0\""; } >&5
30162  ($PKG_CONFIG --exists --print-errors "gbm >= 17.1.0") 2>&5
30163  ac_status=$?
30164  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30165  test $ac_status = 0; }; then
30166
30167$as_echo "#define GBM_BO_WITH_MODIFIERS 1" >>confdefs.h
30168
30169fi
30170	else
30171		if test "x$XORG" = xyes; then
30172			as_fn_error $? "Glamor for Xorg requires $LIBGBM" "$LINENO" 5
30173		fi
30174	fi
30175fi
30176 if test "x$GBM" = xyes; then
30177  GLAMOR_EGL_TRUE=
30178  GLAMOR_EGL_FALSE='#'
30179else
30180  GLAMOR_EGL_TRUE='#'
30181  GLAMOR_EGL_FALSE=
30182fi
30183
30184
30185
30186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build XWin DDX" >&5
30187$as_echo_n "checking whether to build XWin DDX... " >&6; }
30188if test "x$XWIN" = xauto; then
30189	case $host_os in
30190		cygwin*) XWIN="yes" ;;
30191		mingw*) XWIN="yes" ;;
30192		*) XWIN="no" ;;
30193	esac
30194fi
30195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XWIN" >&5
30196$as_echo "$XWIN" >&6; }
30197
30198if test "x$XWIN" = xyes; then
30199
30200  prefix_NONE=
30201  exec_prefix_NONE=
30202  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
30203  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
30204  eval ac_define_dir="\"$logdir\""
30205  eval ac_define_dir="\"$ac_define_dir\""
30206  DEFAULT_LOGDIR="$ac_define_dir"
30207
30208
30209cat >>confdefs.h <<_ACEOF
30210#define DEFAULT_LOGDIR "$ac_define_dir"
30211_ACEOF
30212
30213  test "$prefix_NONE" && prefix=NONE
30214  test "$exec_prefix_NONE" && exec_prefix=NONE
30215
30216
30217cat >>confdefs.h <<_ACEOF
30218#define XORG_VERSION_CURRENT $VENDOR_RELEASE
30219_ACEOF
30220
30221
30222cat >>confdefs.h <<_ACEOF
30223#define __VENDORDWEBSUPPORT__ "$VENDOR_WEB"
30224_ACEOF
30225
30226	if test -n "$ac_tool_prefix"; then
30227  # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
30228set dummy ${ac_tool_prefix}windres; ac_word=$2
30229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30230$as_echo_n "checking for $ac_word... " >&6; }
30231if ${ac_cv_prog_WINDRES+:} false; then :
30232  $as_echo_n "(cached) " >&6
30233else
30234  if test -n "$WINDRES"; then
30235  ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
30236else
30237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30238for as_dir in $PATH
30239do
30240  IFS=$as_save_IFS
30241  test -z "$as_dir" && as_dir=.
30242    for ac_exec_ext in '' $ac_executable_extensions; do
30243  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30244    ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
30245    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30246    break 2
30247  fi
30248done
30249  done
30250IFS=$as_save_IFS
30251
30252fi
30253fi
30254WINDRES=$ac_cv_prog_WINDRES
30255if test -n "$WINDRES"; then
30256  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
30257$as_echo "$WINDRES" >&6; }
30258else
30259  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30260$as_echo "no" >&6; }
30261fi
30262
30263
30264fi
30265if test -z "$ac_cv_prog_WINDRES"; then
30266  ac_ct_WINDRES=$WINDRES
30267  # Extract the first word of "windres", so it can be a program name with args.
30268set dummy windres; ac_word=$2
30269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30270$as_echo_n "checking for $ac_word... " >&6; }
30271if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
30272  $as_echo_n "(cached) " >&6
30273else
30274  if test -n "$ac_ct_WINDRES"; then
30275  ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
30276else
30277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30278for as_dir in $PATH
30279do
30280  IFS=$as_save_IFS
30281  test -z "$as_dir" && as_dir=.
30282    for ac_exec_ext in '' $ac_executable_extensions; do
30283  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30284    ac_cv_prog_ac_ct_WINDRES="windres"
30285    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30286    break 2
30287  fi
30288done
30289  done
30290IFS=$as_save_IFS
30291
30292fi
30293fi
30294ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
30295if test -n "$ac_ct_WINDRES"; then
30296  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
30297$as_echo "$ac_ct_WINDRES" >&6; }
30298else
30299  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30300$as_echo "no" >&6; }
30301fi
30302
30303  if test "x$ac_ct_WINDRES" = x; then
30304    WINDRES=""
30305  else
30306    case $cross_compiling:$ac_tool_warned in
30307yes:)
30308{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
30309$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30310ac_tool_warned=yes ;;
30311esac
30312    WINDRES=$ac_ct_WINDRES
30313  fi
30314else
30315  WINDRES="$ac_cv_prog_WINDRES"
30316fi
30317
30318
30319
30320pkg_failed=no
30321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XWINMODULES" >&5
30322$as_echo_n "checking for XWINMODULES... " >&6; }
30323
30324if test -n "$XWINMODULES_CFLAGS"; then
30325    pkg_cv_XWINMODULES_CFLAGS="$XWINMODULES_CFLAGS"
30326 elif test -n "$PKG_CONFIG"; then
30327    if test -n "$PKG_CONFIG" && \
30328    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xdmcp xau xfixes x11-xcb xcb-aux xcb-image xcb-ewmh xcb-icccm\""; } >&5
30329  ($PKG_CONFIG --exists --print-errors "x11 xdmcp xau xfixes x11-xcb xcb-aux xcb-image xcb-ewmh xcb-icccm") 2>&5
30330  ac_status=$?
30331  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30332  test $ac_status = 0; }; then
30333  pkg_cv_XWINMODULES_CFLAGS=`$PKG_CONFIG --cflags "x11 xdmcp xau xfixes x11-xcb xcb-aux xcb-image xcb-ewmh xcb-icccm" 2>/dev/null`
30334		      test "x$?" != "x0" && pkg_failed=yes
30335else
30336  pkg_failed=yes
30337fi
30338 else
30339    pkg_failed=untried
30340fi
30341if test -n "$XWINMODULES_LIBS"; then
30342    pkg_cv_XWINMODULES_LIBS="$XWINMODULES_LIBS"
30343 elif test -n "$PKG_CONFIG"; then
30344    if test -n "$PKG_CONFIG" && \
30345    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xdmcp xau xfixes x11-xcb xcb-aux xcb-image xcb-ewmh xcb-icccm\""; } >&5
30346  ($PKG_CONFIG --exists --print-errors "x11 xdmcp xau xfixes x11-xcb xcb-aux xcb-image xcb-ewmh xcb-icccm") 2>&5
30347  ac_status=$?
30348  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30349  test $ac_status = 0; }; then
30350  pkg_cv_XWINMODULES_LIBS=`$PKG_CONFIG --libs "x11 xdmcp xau xfixes x11-xcb xcb-aux xcb-image xcb-ewmh xcb-icccm" 2>/dev/null`
30351		      test "x$?" != "x0" && pkg_failed=yes
30352else
30353  pkg_failed=yes
30354fi
30355 else
30356    pkg_failed=untried
30357fi
30358
30359
30360
30361if test $pkg_failed = yes; then
30362   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30363$as_echo "no" >&6; }
30364
30365if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30366        _pkg_short_errors_supported=yes
30367else
30368        _pkg_short_errors_supported=no
30369fi
30370        if test $_pkg_short_errors_supported = yes; then
30371	        XWINMODULES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xdmcp xau xfixes x11-xcb xcb-aux xcb-image xcb-ewmh xcb-icccm" 2>&1`
30372        else
30373	        XWINMODULES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xdmcp xau xfixes x11-xcb xcb-aux xcb-image xcb-ewmh xcb-icccm" 2>&1`
30374        fi
30375	# Put the nasty error message in config.log where it belongs
30376	echo "$XWINMODULES_PKG_ERRORS" >&5
30377
30378	as_fn_error $? "Package requirements (x11 xdmcp xau xfixes x11-xcb xcb-aux xcb-image xcb-ewmh xcb-icccm) were not met:
30379
30380$XWINMODULES_PKG_ERRORS
30381
30382Consider adjusting the PKG_CONFIG_PATH environment variable if you
30383installed software in a non-standard prefix.
30384
30385Alternatively, you may set the environment variables XWINMODULES_CFLAGS
30386and XWINMODULES_LIBS to avoid the need to call pkg-config.
30387See the pkg-config man page for more details." "$LINENO" 5
30388elif test $pkg_failed = untried; then
30389     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30390$as_echo "no" >&6; }
30391	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
30392$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30393as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
30394is in your PATH or set the PKG_CONFIG environment variable to the full
30395path to pkg-config.
30396
30397Alternatively, you may set the environment variables XWINMODULES_CFLAGS
30398and XWINMODULES_LIBS to avoid the need to call pkg-config.
30399See the pkg-config man page for more details.
30400
30401To get pkg-config, see <http://pkg-config.freedesktop.org/>.
30402See \`config.log' for more details" "$LINENO" 5; }
30403else
30404	XWINMODULES_CFLAGS=$pkg_cv_XWINMODULES_CFLAGS
30405	XWINMODULES_LIBS=$pkg_cv_XWINMODULES_LIBS
30406        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30407$as_echo "yes" >&6; }
30408
30409fi
30410
30411	if test "x$WINDOWSWM" = xauto; then
30412		if test -n "$PKG_CONFIG" && \
30413    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$WINDOWSWMPROTO\""; } >&5
30414  ($PKG_CONFIG --exists --print-errors "$WINDOWSWMPROTO") 2>&5
30415  ac_status=$?
30416  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30417  test $ac_status = 0; }; then
30418  WINDOWSWM=yes
30419else
30420  WINDOWSWM=no
30421fi
30422	fi
30423	if test "x$WINDOWSWM" = xyes ; then
30424
30425pkg_failed=no
30426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WINDOWSWM" >&5
30427$as_echo_n "checking for WINDOWSWM... " >&6; }
30428
30429if test -n "$WINDOWSWM_CFLAGS"; then
30430    pkg_cv_WINDOWSWM_CFLAGS="$WINDOWSWM_CFLAGS"
30431 elif test -n "$PKG_CONFIG"; then
30432    if test -n "$PKG_CONFIG" && \
30433    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$WINDOWSWMPROTO\""; } >&5
30434  ($PKG_CONFIG --exists --print-errors "$WINDOWSWMPROTO") 2>&5
30435  ac_status=$?
30436  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30437  test $ac_status = 0; }; then
30438  pkg_cv_WINDOWSWM_CFLAGS=`$PKG_CONFIG --cflags "$WINDOWSWMPROTO" 2>/dev/null`
30439		      test "x$?" != "x0" && pkg_failed=yes
30440else
30441  pkg_failed=yes
30442fi
30443 else
30444    pkg_failed=untried
30445fi
30446if test -n "$WINDOWSWM_LIBS"; then
30447    pkg_cv_WINDOWSWM_LIBS="$WINDOWSWM_LIBS"
30448 elif test -n "$PKG_CONFIG"; then
30449    if test -n "$PKG_CONFIG" && \
30450    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$WINDOWSWMPROTO\""; } >&5
30451  ($PKG_CONFIG --exists --print-errors "$WINDOWSWMPROTO") 2>&5
30452  ac_status=$?
30453  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30454  test $ac_status = 0; }; then
30455  pkg_cv_WINDOWSWM_LIBS=`$PKG_CONFIG --libs "$WINDOWSWMPROTO" 2>/dev/null`
30456		      test "x$?" != "x0" && pkg_failed=yes
30457else
30458  pkg_failed=yes
30459fi
30460 else
30461    pkg_failed=untried
30462fi
30463
30464
30465
30466if test $pkg_failed = yes; then
30467   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30468$as_echo "no" >&6; }
30469
30470if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30471        _pkg_short_errors_supported=yes
30472else
30473        _pkg_short_errors_supported=no
30474fi
30475        if test $_pkg_short_errors_supported = yes; then
30476	        WINDOWSWM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$WINDOWSWMPROTO" 2>&1`
30477        else
30478	        WINDOWSWM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$WINDOWSWMPROTO" 2>&1`
30479        fi
30480	# Put the nasty error message in config.log where it belongs
30481	echo "$WINDOWSWM_PKG_ERRORS" >&5
30482
30483	as_fn_error $? "Package requirements ($WINDOWSWMPROTO) were not met:
30484
30485$WINDOWSWM_PKG_ERRORS
30486
30487Consider adjusting the PKG_CONFIG_PATH environment variable if you
30488installed software in a non-standard prefix.
30489
30490Alternatively, you may set the environment variables WINDOWSWM_CFLAGS
30491and WINDOWSWM_LIBS to avoid the need to call pkg-config.
30492See the pkg-config man page for more details." "$LINENO" 5
30493elif test $pkg_failed = untried; then
30494     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30495$as_echo "no" >&6; }
30496	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
30497$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30498as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
30499is in your PATH or set the PKG_CONFIG environment variable to the full
30500path to pkg-config.
30501
30502Alternatively, you may set the environment variables WINDOWSWM_CFLAGS
30503and WINDOWSWM_LIBS to avoid the need to call pkg-config.
30504See the pkg-config man page for more details.
30505
30506To get pkg-config, see <http://pkg-config.freedesktop.org/>.
30507See \`config.log' for more details" "$LINENO" 5; }
30508else
30509	WINDOWSWM_CFLAGS=$pkg_cv_WINDOWSWM_CFLAGS
30510	WINDOWSWM_LIBS=$pkg_cv_WINDOWSWM_LIBS
30511        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30512$as_echo "yes" >&6; }
30513
30514fi
30515		XWINMODULES_CFLAGS="$XWINMODULES_CFLAGS $WINDOWSWM_CFLAGS"
30516
30517$as_echo "#define ROOTLESS 1" >>confdefs.h
30518
30519	fi
30520
30521	if test "x$WINDOWSDRI" = xauto; then
30522		if test -n "$PKG_CONFIG" && \
30523    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"windowsdriproto\""; } >&5
30524  ($PKG_CONFIG --exists --print-errors "windowsdriproto") 2>&5
30525  ac_status=$?
30526  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30527  test $ac_status = 0; }; then
30528  WINDOWSDRI=yes
30529else
30530  WINDOWSDRI=no
30531fi
30532	fi
30533	if test "x$WINDOWSDRI" = xyes ; then
30534
30535pkg_failed=no
30536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WINDOWSDRI" >&5
30537$as_echo_n "checking for WINDOWSDRI... " >&6; }
30538
30539if test -n "$WINDOWSDRI_CFLAGS"; then
30540    pkg_cv_WINDOWSDRI_CFLAGS="$WINDOWSDRI_CFLAGS"
30541 elif test -n "$PKG_CONFIG"; then
30542    if test -n "$PKG_CONFIG" && \
30543    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"windowsdriproto\""; } >&5
30544  ($PKG_CONFIG --exists --print-errors "windowsdriproto") 2>&5
30545  ac_status=$?
30546  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30547  test $ac_status = 0; }; then
30548  pkg_cv_WINDOWSDRI_CFLAGS=`$PKG_CONFIG --cflags "windowsdriproto" 2>/dev/null`
30549		      test "x$?" != "x0" && pkg_failed=yes
30550else
30551  pkg_failed=yes
30552fi
30553 else
30554    pkg_failed=untried
30555fi
30556if test -n "$WINDOWSDRI_LIBS"; then
30557    pkg_cv_WINDOWSDRI_LIBS="$WINDOWSDRI_LIBS"
30558 elif test -n "$PKG_CONFIG"; then
30559    if test -n "$PKG_CONFIG" && \
30560    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"windowsdriproto\""; } >&5
30561  ($PKG_CONFIG --exists --print-errors "windowsdriproto") 2>&5
30562  ac_status=$?
30563  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30564  test $ac_status = 0; }; then
30565  pkg_cv_WINDOWSDRI_LIBS=`$PKG_CONFIG --libs "windowsdriproto" 2>/dev/null`
30566		      test "x$?" != "x0" && pkg_failed=yes
30567else
30568  pkg_failed=yes
30569fi
30570 else
30571    pkg_failed=untried
30572fi
30573
30574
30575
30576if test $pkg_failed = yes; then
30577   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30578$as_echo "no" >&6; }
30579
30580if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30581        _pkg_short_errors_supported=yes
30582else
30583        _pkg_short_errors_supported=no
30584fi
30585        if test $_pkg_short_errors_supported = yes; then
30586	        WINDOWSDRI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "windowsdriproto" 2>&1`
30587        else
30588	        WINDOWSDRI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "windowsdriproto" 2>&1`
30589        fi
30590	# Put the nasty error message in config.log where it belongs
30591	echo "$WINDOWSDRI_PKG_ERRORS" >&5
30592
30593	as_fn_error $? "Package requirements (windowsdriproto) were not met:
30594
30595$WINDOWSDRI_PKG_ERRORS
30596
30597Consider adjusting the PKG_CONFIG_PATH environment variable if you
30598installed software in a non-standard prefix.
30599
30600Alternatively, you may set the environment variables WINDOWSDRI_CFLAGS
30601and WINDOWSDRI_LIBS to avoid the need to call pkg-config.
30602See the pkg-config man page for more details." "$LINENO" 5
30603elif test $pkg_failed = untried; then
30604     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30605$as_echo "no" >&6; }
30606	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
30607$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30608as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
30609is in your PATH or set the PKG_CONFIG environment variable to the full
30610path to pkg-config.
30611
30612Alternatively, you may set the environment variables WINDOWSDRI_CFLAGS
30613and WINDOWSDRI_LIBS to avoid the need to call pkg-config.
30614See the pkg-config man page for more details.
30615
30616To get pkg-config, see <http://pkg-config.freedesktop.org/>.
30617See \`config.log' for more details" "$LINENO" 5; }
30618else
30619	WINDOWSDRI_CFLAGS=$pkg_cv_WINDOWSDRI_CFLAGS
30620	WINDOWSDRI_LIBS=$pkg_cv_WINDOWSDRI_LIBS
30621        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30622$as_echo "yes" >&6; }
30623
30624fi
30625	fi
30626
30627	case $host_os in
30628		cygwin*)
30629			XWIN_SERVER_NAME=XWin
30630
30631$as_echo "#define HAS_DEVWINDOWS 1" >>confdefs.h
30632
30633			;;
30634		mingw*)
30635			XWIN_SERVER_NAME=Xming
30636
30637$as_echo "#define RELOCATE_PROJECTROOT 1" >>confdefs.h
30638
30639
30640$as_echo "#define HAS_WINSOCK 1" >>confdefs.h
30641
30642			XWIN_SYS_LIBS="-lpthread -lws2_32"
30643			;;
30644	esac
30645
30646	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"
30647	XWIN_SYS_LIBS="$XWIN_SYS_LIBS $XWINMODULES_LIBS"
30648
30649
30650
30651
30652	if test "x$DEBUGGING" = xyes; then
30653
30654$as_echo "#define CYGDEBUG 1" >>confdefs.h
30655
30656
30657$as_echo "#define CYGWINDOWING_DEBUG 1" >>confdefs.h
30658
30659
30660$as_echo "#define CYGMULTIWINDOW_DEBUG 1" >>confdefs.h
30661
30662	fi
30663
30664
30665$as_echo "#define DDXOSVERRORF 1" >>confdefs.h
30666
30667
30668$as_echo "#define DDXBEFORERESET 1" >>confdefs.h
30669
30670
30671	if test "x$XWIN" = xyes && test "x$GLX" = xyes ; then
30672           # Extract the first word of "python3", so it can be a program name with args.
30673set dummy python3; ac_word=$2
30674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30675$as_echo_n "checking for $ac_word... " >&6; }
30676if ${ac_cv_prog_PYTHON3+:} false; then :
30677  $as_echo_n "(cached) " >&6
30678else
30679  if test -n "$PYTHON3"; then
30680  ac_cv_prog_PYTHON3="$PYTHON3" # Let the user override the test.
30681else
30682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30683for as_dir in $PATH
30684do
30685  IFS=$as_save_IFS
30686  test -z "$as_dir" && as_dir=.
30687    for ac_exec_ext in '' $ac_executable_extensions; do
30688  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30689    ac_cv_prog_PYTHON3="python3"
30690    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30691    break 2
30692  fi
30693done
30694  done
30695IFS=$as_save_IFS
30696
30697fi
30698fi
30699PYTHON3=$ac_cv_prog_PYTHON3
30700if test -n "$PYTHON3"; then
30701  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON3" >&5
30702$as_echo "$PYTHON3" >&6; }
30703else
30704  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30705$as_echo "no" >&6; }
30706fi
30707
30708
30709           if test -z "$PYTHON3"; then
30710                as_fn_error $? "python3 not found" "$LINENO" 5
30711           fi
30712           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python module lxml" >&5
30713$as_echo_n "checking for python module lxml... " >&6; }
30714           $PYTHON3 -c "import lxml;"
30715           if test $? -ne 0 ; then
30716                as_fn_error $? "not found" "$LINENO" 5
30717           fi
30718           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30719$as_echo "yes" >&6; }
30720           if test "x$KHRONOS_SPEC_DIR" = "xauto" ; then
30721
30722pkg_failed=no
30723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for KHRONOS_OPENGL_REGISTRY" >&5
30724$as_echo_n "checking for KHRONOS_OPENGL_REGISTRY... " >&6; }
30725
30726if test -n "$KHRONOS_OPENGL_REGISTRY_CFLAGS"; then
30727    pkg_cv_KHRONOS_OPENGL_REGISTRY_CFLAGS="$KHRONOS_OPENGL_REGISTRY_CFLAGS"
30728 elif test -n "$PKG_CONFIG"; then
30729    if test -n "$PKG_CONFIG" && \
30730    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"khronos-opengl-registry\""; } >&5
30731  ($PKG_CONFIG --exists --print-errors "khronos-opengl-registry") 2>&5
30732  ac_status=$?
30733  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30734  test $ac_status = 0; }; then
30735  pkg_cv_KHRONOS_OPENGL_REGISTRY_CFLAGS=`$PKG_CONFIG --cflags "khronos-opengl-registry" 2>/dev/null`
30736		      test "x$?" != "x0" && pkg_failed=yes
30737else
30738  pkg_failed=yes
30739fi
30740 else
30741    pkg_failed=untried
30742fi
30743if test -n "$KHRONOS_OPENGL_REGISTRY_LIBS"; then
30744    pkg_cv_KHRONOS_OPENGL_REGISTRY_LIBS="$KHRONOS_OPENGL_REGISTRY_LIBS"
30745 elif test -n "$PKG_CONFIG"; then
30746    if test -n "$PKG_CONFIG" && \
30747    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"khronos-opengl-registry\""; } >&5
30748  ($PKG_CONFIG --exists --print-errors "khronos-opengl-registry") 2>&5
30749  ac_status=$?
30750  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30751  test $ac_status = 0; }; then
30752  pkg_cv_KHRONOS_OPENGL_REGISTRY_LIBS=`$PKG_CONFIG --libs "khronos-opengl-registry" 2>/dev/null`
30753		      test "x$?" != "x0" && pkg_failed=yes
30754else
30755  pkg_failed=yes
30756fi
30757 else
30758    pkg_failed=untried
30759fi
30760
30761
30762
30763if test $pkg_failed = yes; then
30764   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30765$as_echo "no" >&6; }
30766
30767if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30768        _pkg_short_errors_supported=yes
30769else
30770        _pkg_short_errors_supported=no
30771fi
30772        if test $_pkg_short_errors_supported = yes; then
30773	        KHRONOS_OPENGL_REGISTRY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "khronos-opengl-registry" 2>&1`
30774        else
30775	        KHRONOS_OPENGL_REGISTRY_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "khronos-opengl-registry" 2>&1`
30776        fi
30777	# Put the nasty error message in config.log where it belongs
30778	echo "$KHRONOS_OPENGL_REGISTRY_PKG_ERRORS" >&5
30779
30780	as_fn_error $? "Package requirements (khronos-opengl-registry) were not met:
30781
30782$KHRONOS_OPENGL_REGISTRY_PKG_ERRORS
30783
30784Consider adjusting the PKG_CONFIG_PATH environment variable if you
30785installed software in a non-standard prefix.
30786
30787Alternatively, you may set the environment variables KHRONOS_OPENGL_REGISTRY_CFLAGS
30788and KHRONOS_OPENGL_REGISTRY_LIBS to avoid the need to call pkg-config.
30789See the pkg-config man page for more details." "$LINENO" 5
30790elif test $pkg_failed = untried; then
30791     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30792$as_echo "no" >&6; }
30793	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
30794$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30795as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
30796is in your PATH or set the PKG_CONFIG environment variable to the full
30797path to pkg-config.
30798
30799Alternatively, you may set the environment variables KHRONOS_OPENGL_REGISTRY_CFLAGS
30800and KHRONOS_OPENGL_REGISTRY_LIBS to avoid the need to call pkg-config.
30801See the pkg-config man page for more details.
30802
30803To get pkg-config, see <http://pkg-config.freedesktop.org/>.
30804See \`config.log' for more details" "$LINENO" 5; }
30805else
30806	KHRONOS_OPENGL_REGISTRY_CFLAGS=$pkg_cv_KHRONOS_OPENGL_REGISTRY_CFLAGS
30807	KHRONOS_OPENGL_REGISTRY_LIBS=$pkg_cv_KHRONOS_OPENGL_REGISTRY_LIBS
30808        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30809$as_echo "yes" >&6; }
30810
30811fi
30812		KHRONOS_SPEC_DIR=`pkg-config khronos-opengl-registry --variable=specdir`
30813           fi
30814
30815	fi
30816
30817fi
30818 if test "x$XWIN" = xyes; then
30819  XWIN_TRUE=
30820  XWIN_FALSE='#'
30821else
30822  XWIN_TRUE='#'
30823  XWIN_FALSE=
30824fi
30825
30826 if test "x$XWIN" = xyes && test "x$WINDOWSWM" = xyes; then
30827  XWIN_MULTIWINDOWEXTWM_TRUE=
30828  XWIN_MULTIWINDOWEXTWM_FALSE='#'
30829else
30830  XWIN_MULTIWINDOWEXTWM_TRUE='#'
30831  XWIN_MULTIWINDOWEXTWM_FALSE=
30832fi
30833
30834 if test "x$XWIN" = xyes && test "x$GLX" = xyes; then
30835  XWIN_GLX_WINDOWS_TRUE=
30836  XWIN_GLX_WINDOWS_FALSE='#'
30837else
30838  XWIN_GLX_WINDOWS_TRUE='#'
30839  XWIN_GLX_WINDOWS_FALSE=
30840fi
30841
30842 if test "x$XWIN" = xyes && test "x$WINDOWSDRI" = xyes; then
30843  XWIN_WINDOWS_DRI_TRUE=
30844  XWIN_WINDOWS_DRI_FALSE='#'
30845else
30846  XWIN_WINDOWS_DRI_TRUE='#'
30847  XWIN_WINDOWS_DRI_FALSE=
30848fi
30849
30850
30851if test "x$XQUARTZ" = xyes; then
30852
30853$as_echo "#define XQUARTZ 1" >>confdefs.h
30854
30855
30856$as_echo "#define ROOTLESS 1" >>confdefs.h
30857
30858
30859	XQUARTZ_LIBS="$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"
30860
30861
30862	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for xp_init in -lXplugin" >&5
30863$as_echo_n "checking for xp_init in -lXplugin... " >&6; }
30864if ${ac_cv_lib_Xplugin_xp_init+:} false; then :
30865  $as_echo_n "(cached) " >&6
30866else
30867  ac_check_lib_save_LIBS=$LIBS
30868LIBS="-lXplugin  $LIBS"
30869cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30870/* end confdefs.h.  */
30871
30872/* Override any GCC internal prototype to avoid an error.
30873   Use char because int might match the return type of a GCC
30874   builtin and then its argument prototype would still apply.  */
30875#ifdef __cplusplus
30876extern "C"
30877#endif
30878char xp_init ();
30879int
30880main ()
30881{
30882return xp_init ();
30883  ;
30884  return 0;
30885}
30886_ACEOF
30887if ac_fn_c_try_link "$LINENO"; then :
30888  ac_cv_lib_Xplugin_xp_init=yes
30889else
30890  ac_cv_lib_Xplugin_xp_init=no
30891fi
30892rm -f core conftest.err conftest.$ac_objext \
30893    conftest$ac_exeext conftest.$ac_ext
30894LIBS=$ac_check_lib_save_LIBS
30895fi
30896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xplugin_xp_init" >&5
30897$as_echo "$ac_cv_lib_Xplugin_xp_init" >&6; }
30898if test "x$ac_cv_lib_Xplugin_xp_init" = xyes; then :
30899  :
30900fi
30901
30902
30903	CFLAGS="${CFLAGS} -DROOTLESS_WORKAROUND -DROOTLESS_SAFEALPHA -DNO_ALLOCA"
30904
30905
30906pkg_failed=no
30907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPBPROXY" >&5
30908$as_echo_n "checking for XPBPROXY... " >&6; }
30909
30910if test -n "$XPBPROXY_CFLAGS"; then
30911    pkg_cv_XPBPROXY_CFLAGS="$XPBPROXY_CFLAGS"
30912 elif test -n "$PKG_CONFIG"; then
30913    if test -n "$PKG_CONFIG" && \
30914    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$APPLEWMPROTO \$LIBAPPLEWM xfixes x11\""; } >&5
30915  ($PKG_CONFIG --exists --print-errors "$APPLEWMPROTO $LIBAPPLEWM xfixes x11") 2>&5
30916  ac_status=$?
30917  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30918  test $ac_status = 0; }; then
30919  pkg_cv_XPBPROXY_CFLAGS=`$PKG_CONFIG --cflags "$APPLEWMPROTO $LIBAPPLEWM xfixes x11" 2>/dev/null`
30920		      test "x$?" != "x0" && pkg_failed=yes
30921else
30922  pkg_failed=yes
30923fi
30924 else
30925    pkg_failed=untried
30926fi
30927if test -n "$XPBPROXY_LIBS"; then
30928    pkg_cv_XPBPROXY_LIBS="$XPBPROXY_LIBS"
30929 elif test -n "$PKG_CONFIG"; then
30930    if test -n "$PKG_CONFIG" && \
30931    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$APPLEWMPROTO \$LIBAPPLEWM xfixes x11\""; } >&5
30932  ($PKG_CONFIG --exists --print-errors "$APPLEWMPROTO $LIBAPPLEWM xfixes x11") 2>&5
30933  ac_status=$?
30934  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30935  test $ac_status = 0; }; then
30936  pkg_cv_XPBPROXY_LIBS=`$PKG_CONFIG --libs "$APPLEWMPROTO $LIBAPPLEWM xfixes x11" 2>/dev/null`
30937		      test "x$?" != "x0" && pkg_failed=yes
30938else
30939  pkg_failed=yes
30940fi
30941 else
30942    pkg_failed=untried
30943fi
30944
30945
30946
30947if test $pkg_failed = yes; then
30948   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30949$as_echo "no" >&6; }
30950
30951if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30952        _pkg_short_errors_supported=yes
30953else
30954        _pkg_short_errors_supported=no
30955fi
30956        if test $_pkg_short_errors_supported = yes; then
30957	        XPBPROXY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$APPLEWMPROTO $LIBAPPLEWM xfixes x11" 2>&1`
30958        else
30959	        XPBPROXY_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$APPLEWMPROTO $LIBAPPLEWM xfixes x11" 2>&1`
30960        fi
30961	# Put the nasty error message in config.log where it belongs
30962	echo "$XPBPROXY_PKG_ERRORS" >&5
30963
30964	as_fn_error $? "Package requirements ($APPLEWMPROTO $LIBAPPLEWM xfixes x11) were not met:
30965
30966$XPBPROXY_PKG_ERRORS
30967
30968Consider adjusting the PKG_CONFIG_PATH environment variable if you
30969installed software in a non-standard prefix.
30970
30971Alternatively, you may set the environment variables XPBPROXY_CFLAGS
30972and XPBPROXY_LIBS to avoid the need to call pkg-config.
30973See the pkg-config man page for more details." "$LINENO" 5
30974elif test $pkg_failed = untried; then
30975     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30976$as_echo "no" >&6; }
30977	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
30978$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30979as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
30980is in your PATH or set the PKG_CONFIG environment variable to the full
30981path to pkg-config.
30982
30983Alternatively, you may set the environment variables XPBPROXY_CFLAGS
30984and XPBPROXY_LIBS to avoid the need to call pkg-config.
30985See the pkg-config man page for more details.
30986
30987To get pkg-config, see <http://pkg-config.freedesktop.org/>.
30988See \`config.log' for more details" "$LINENO" 5; }
30989else
30990	XPBPROXY_CFLAGS=$pkg_cv_XPBPROXY_CFLAGS
30991	XPBPROXY_LIBS=$pkg_cv_XPBPROXY_LIBS
30992        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30993$as_echo "yes" >&6; }
30994
30995fi
30996
30997        if test "x$XQUARTZ_SPARKLE" = xyes ; then
30998
30999$as_echo "#define XQUARTZ_SPARKLE 1" >>confdefs.h
31000
31001        fi
31002
31003	if test "x$STANDALONE_XPBPROXY" = xyes ; then
31004
31005$as_echo "#define STANDALONE_XPBPROXY 1" >>confdefs.h
31006
31007	fi
31008fi
31009
31010 if test "x$XQUARTZ" = xyes -o "x$XWIN" = xyes ; then
31011  PSEUDORAMIX_TRUE=
31012  PSEUDORAMIX_FALSE='#'
31013else
31014  PSEUDORAMIX_TRUE='#'
31015  PSEUDORAMIX_FALSE=
31016fi
31017
31018
31019# Support for objc in autotools is minimal and not documented.
31020OBJC='$(CC)'
31021OBJCLD='$(CCLD)'
31022OBJCLINK='$(LINK)'
31023OBJCFLAGS='$(CFLAGS)'
31024
31025
31026
31027
31028# internal, undocumented automake func follows :(
31029
31030depcc="$OBJC" am_compiler_list='gcc3 gcc'
31031
31032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
31033$as_echo_n "checking dependency style of $depcc... " >&6; }
31034if ${am_cv_OBJC_dependencies_compiler_type+:} false; then :
31035  $as_echo_n "(cached) " >&6
31036else
31037  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
31038  # We make a subdir and do the tests there.  Otherwise we can end up
31039  # making bogus files that we don't know about and never remove.  For
31040  # instance it was reported that on HP-UX the gcc test will end up
31041  # making a dummy file named 'D' -- because '-MD' means "put the output
31042  # in D".
31043  rm -rf conftest.dir
31044  mkdir conftest.dir
31045  # Copy depcomp to subdir because otherwise we won't find it if we're
31046  # using a relative directory.
31047  cp "$am_depcomp" conftest.dir
31048  cd conftest.dir
31049  # We will build objects and dependencies in a subdirectory because
31050  # it helps to detect inapplicable dependency modes.  For instance
31051  # both Tru64's cc and ICC support -MD to output dependencies as a
31052  # side effect of compilation, but ICC will put the dependencies in
31053  # the current directory while Tru64 will put them in the object
31054  # directory.
31055  mkdir sub
31056
31057  am_cv_OBJC_dependencies_compiler_type=none
31058  if test "$am_compiler_list" = ""; then
31059     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
31060  fi
31061  am__universal=false
31062
31063
31064  for depmode in $am_compiler_list; do
31065    # Setup a source with many dependencies, because some compilers
31066    # like to wrap large dependency lists on column 80 (with \), and
31067    # we should not choose a depcomp mode which is confused by this.
31068    #
31069    # We need to recreate these files for each test, as the compiler may
31070    # overwrite some of them when testing with obscure command lines.
31071    # This happens at least with the AIX C compiler.
31072    : > sub/conftest.c
31073    for i in 1 2 3 4 5 6; do
31074      echo '#include "conftst'$i'.h"' >> sub/conftest.c
31075      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
31076      # Solaris 10 /bin/sh.
31077      echo '/* dummy */' > sub/conftst$i.h
31078    done
31079    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
31080
31081    # We check with '-c' and '-o' for the sake of the "dashmstdout"
31082    # mode.  It turns out that the SunPro C++ compiler does not properly
31083    # handle '-M -o', and we need to detect this.  Also, some Intel
31084    # versions had trouble with output in subdirs.
31085    am__obj=sub/conftest.${OBJEXT-o}
31086    am__minus_obj="-o $am__obj"
31087    case $depmode in
31088    gcc)
31089      # This depmode causes a compiler race in universal mode.
31090      test "$am__universal" = false || continue
31091      ;;
31092    nosideeffect)
31093      # After this tag, mechanisms are not by side-effect, so they'll
31094      # only be used when explicitly requested.
31095      if test "x$enable_dependency_tracking" = xyes; then
31096	continue
31097      else
31098	break
31099      fi
31100      ;;
31101    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
31102      # This compiler won't grok '-c -o', but also, the minuso test has
31103      # not run yet.  These depmodes are late enough in the game, and
31104      # so weak that their functioning should not be impacted.
31105      am__obj=conftest.${OBJEXT-o}
31106      am__minus_obj=
31107      ;;
31108    none) break ;;
31109    esac
31110    if depmode=$depmode \
31111       source=sub/conftest.c object=$am__obj \
31112       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
31113       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
31114         >/dev/null 2>conftest.err &&
31115       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
31116       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
31117       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
31118       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
31119      # icc doesn't choke on unknown options, it will just issue warnings
31120      # or remarks (even with -Werror).  So we grep stderr for any message
31121      # that says an option was ignored or not supported.
31122      # When given -MP, icc 7.0 and 7.1 complain thusly:
31123      #   icc: Command line warning: ignoring option '-M'; no argument required
31124      # The diagnosis changed in icc 8.0:
31125      #   icc: Command line remark: option '-MP' not supported
31126      if (grep 'ignoring option' conftest.err ||
31127          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
31128        am_cv_OBJC_dependencies_compiler_type=$depmode
31129        break
31130      fi
31131    fi
31132  done
31133
31134  cd ..
31135  rm -rf conftest.dir
31136else
31137  am_cv_OBJC_dependencies_compiler_type=none
31138fi
31139
31140fi
31141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_OBJC_dependencies_compiler_type" >&5
31142$as_echo "$am_cv_OBJC_dependencies_compiler_type" >&6; }
31143OBJCDEPMODE=depmode=$am_cv_OBJC_dependencies_compiler_type
31144
31145 if
31146  test "x$enable_dependency_tracking" != xno \
31147  && test "$am_cv_OBJC_dependencies_compiler_type" = gcc3; then
31148  am__fastdepOBJC_TRUE=
31149  am__fastdepOBJC_FALSE='#'
31150else
31151  am__fastdepOBJC_TRUE='#'
31152  am__fastdepOBJC_FALSE=
31153fi
31154
31155
31156 if test "x$XQUARTZ" = xyes; then
31157  XQUARTZ_TRUE=
31158  XQUARTZ_FALSE='#'
31159else
31160  XQUARTZ_TRUE='#'
31161  XQUARTZ_FALSE=
31162fi
31163
31164 if test "x$XQUARTZ_SPARKLE" != "xno"; then
31165  XQUARTZ_SPARKLE_TRUE=
31166  XQUARTZ_SPARKLE_FALSE='#'
31167else
31168  XQUARTZ_SPARKLE_TRUE='#'
31169  XQUARTZ_SPARKLE_FALSE=
31170fi
31171
31172 if test "x$STANDALONE_XPBPROXY" = xyes; then
31173  STANDALONE_XPBPROXY_TRUE=
31174  STANDALONE_XPBPROXY_FALSE='#'
31175else
31176  STANDALONE_XPBPROXY_TRUE='#'
31177  STANDALONE_XPBPROXY_FALSE=
31178fi
31179
31180
31181
31182pkg_failed=no
31183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DMXMODULES" >&5
31184$as_echo_n "checking for DMXMODULES... " >&6; }
31185
31186if test -n "$DMXMODULES_CFLAGS"; then
31187    pkg_cv_DMXMODULES_CFLAGS="$DMXMODULES_CFLAGS"
31188 elif test -n "$PKG_CONFIG"; then
31189    if test -n "$PKG_CONFIG" && \
31190    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xmuu \$LIBXEXT x11 >= 1.6 xrender xfixes \$LIBXI \$DMXPROTO xau \$XDMCP_MODULES\""; } >&5
31191  ($PKG_CONFIG --exists --print-errors "xmuu $LIBXEXT x11 >= 1.6 xrender xfixes $LIBXI $DMXPROTO xau $XDMCP_MODULES") 2>&5
31192  ac_status=$?
31193  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31194  test $ac_status = 0; }; then
31195  pkg_cv_DMXMODULES_CFLAGS=`$PKG_CONFIG --cflags "xmuu $LIBXEXT x11 >= 1.6 xrender xfixes $LIBXI $DMXPROTO xau $XDMCP_MODULES" 2>/dev/null`
31196		      test "x$?" != "x0" && pkg_failed=yes
31197else
31198  pkg_failed=yes
31199fi
31200 else
31201    pkg_failed=untried
31202fi
31203if test -n "$DMXMODULES_LIBS"; then
31204    pkg_cv_DMXMODULES_LIBS="$DMXMODULES_LIBS"
31205 elif test -n "$PKG_CONFIG"; then
31206    if test -n "$PKG_CONFIG" && \
31207    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xmuu \$LIBXEXT x11 >= 1.6 xrender xfixes \$LIBXI \$DMXPROTO xau \$XDMCP_MODULES\""; } >&5
31208  ($PKG_CONFIG --exists --print-errors "xmuu $LIBXEXT x11 >= 1.6 xrender xfixes $LIBXI $DMXPROTO xau $XDMCP_MODULES") 2>&5
31209  ac_status=$?
31210  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31211  test $ac_status = 0; }; then
31212  pkg_cv_DMXMODULES_LIBS=`$PKG_CONFIG --libs "xmuu $LIBXEXT x11 >= 1.6 xrender xfixes $LIBXI $DMXPROTO xau $XDMCP_MODULES" 2>/dev/null`
31213		      test "x$?" != "x0" && pkg_failed=yes
31214else
31215  pkg_failed=yes
31216fi
31217 else
31218    pkg_failed=untried
31219fi
31220
31221
31222
31223if test $pkg_failed = yes; then
31224   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31225$as_echo "no" >&6; }
31226
31227if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31228        _pkg_short_errors_supported=yes
31229else
31230        _pkg_short_errors_supported=no
31231fi
31232        if test $_pkg_short_errors_supported = yes; then
31233	        DMXMODULES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xmuu $LIBXEXT x11 >= 1.6 xrender xfixes $LIBXI $DMXPROTO xau $XDMCP_MODULES" 2>&1`
31234        else
31235	        DMXMODULES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xmuu $LIBXEXT x11 >= 1.6 xrender xfixes $LIBXI $DMXPROTO xau $XDMCP_MODULES" 2>&1`
31236        fi
31237	# Put the nasty error message in config.log where it belongs
31238	echo "$DMXMODULES_PKG_ERRORS" >&5
31239
31240	have_dmx=no
31241elif test $pkg_failed = untried; then
31242     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31243$as_echo "no" >&6; }
31244	have_dmx=no
31245else
31246	DMXMODULES_CFLAGS=$pkg_cv_DMXMODULES_CFLAGS
31247	DMXMODULES_LIBS=$pkg_cv_DMXMODULES_LIBS
31248        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31249$as_echo "yes" >&6; }
31250
31251pkg_failed=no
31252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDMXCONFIG_DEP" >&5
31253$as_echo_n "checking for XDMXCONFIG_DEP... " >&6; }
31254
31255if test -n "$XDMXCONFIG_DEP_CFLAGS"; then
31256    pkg_cv_XDMXCONFIG_DEP_CFLAGS="$XDMXCONFIG_DEP_CFLAGS"
31257 elif test -n "$PKG_CONFIG"; then
31258    if test -n "$PKG_CONFIG" && \
31259    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt xpm x11\""; } >&5
31260  ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt xpm x11") 2>&5
31261  ac_status=$?
31262  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31263  test $ac_status = 0; }; then
31264  pkg_cv_XDMXCONFIG_DEP_CFLAGS=`$PKG_CONFIG --cflags "xaw7 xmu xt xpm x11" 2>/dev/null`
31265		      test "x$?" != "x0" && pkg_failed=yes
31266else
31267  pkg_failed=yes
31268fi
31269 else
31270    pkg_failed=untried
31271fi
31272if test -n "$XDMXCONFIG_DEP_LIBS"; then
31273    pkg_cv_XDMXCONFIG_DEP_LIBS="$XDMXCONFIG_DEP_LIBS"
31274 elif test -n "$PKG_CONFIG"; then
31275    if test -n "$PKG_CONFIG" && \
31276    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt xpm x11\""; } >&5
31277  ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt xpm x11") 2>&5
31278  ac_status=$?
31279  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31280  test $ac_status = 0; }; then
31281  pkg_cv_XDMXCONFIG_DEP_LIBS=`$PKG_CONFIG --libs "xaw7 xmu xt xpm x11" 2>/dev/null`
31282		      test "x$?" != "x0" && pkg_failed=yes
31283else
31284  pkg_failed=yes
31285fi
31286 else
31287    pkg_failed=untried
31288fi
31289
31290
31291
31292if test $pkg_failed = yes; then
31293   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31294$as_echo "no" >&6; }
31295
31296if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31297        _pkg_short_errors_supported=yes
31298else
31299        _pkg_short_errors_supported=no
31300fi
31301        if test $_pkg_short_errors_supported = yes; then
31302	        XDMXCONFIG_DEP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xaw7 xmu xt xpm x11" 2>&1`
31303        else
31304	        XDMXCONFIG_DEP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xaw7 xmu xt xpm x11" 2>&1`
31305        fi
31306	# Put the nasty error message in config.log where it belongs
31307	echo "$XDMXCONFIG_DEP_PKG_ERRORS" >&5
31308
31309	have_dmx=no
31310elif test $pkg_failed = untried; then
31311     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31312$as_echo "no" >&6; }
31313	have_dmx=no
31314else
31315	XDMXCONFIG_DEP_CFLAGS=$pkg_cv_XDMXCONFIG_DEP_CFLAGS
31316	XDMXCONFIG_DEP_LIBS=$pkg_cv_XDMXCONFIG_DEP_LIBS
31317        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31318$as_echo "yes" >&6; }
31319	have_dmx=yes
31320fi
31321fi
31322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Xdmx DDX" >&5
31323$as_echo_n "checking whether to build Xdmx DDX... " >&6; }
31324if test "x$DMX" = xauto; then
31325	DMX="$have_dmx"
31326	case $host_os in
31327		cygwin*) DMX="no" ;;
31328		mingw*)  DMX="no" ;;
31329		darwin*) DMX="no" ;;
31330	esac
31331fi
31332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DMX" >&5
31333$as_echo "$DMX" >&6; }
31334 if test "x$DMX" = xyes; then
31335  DMX_TRUE=
31336  DMX_FALSE='#'
31337else
31338  DMX_TRUE='#'
31339  DMX_FALSE=
31340fi
31341
31342
31343if test "x$DMX" = xyes; then
31344	if test "x$have_dmx" = xno; then
31345		as_fn_error $? "Xdmx build explicitly requested, but required
31346		              modules not found." "$LINENO" 5
31347	fi
31348	DMX_INCLUDES="$XEXT_INC $RENDER_INC $RECORD_INC"
31349	XDMX_CFLAGS="$DMXMODULES_CFLAGS"
31350	XDMX_LIBS="$FB_LIB $MI_LIB $XEXT_LIB $RENDER_LIB $RECORD_LIB $XI_LIB $XKB_LIB $XKB_STUB_LIB $DRI3_LIB $PRESENT_LIB $MIEXT_SYNC_LIB $MIEXT_SHADOW_LIB $MIEXT_DAMAGE_LIB $COMPOSITE_LIB $DAMAGE_LIB $MAIN_LIB $DIX_LIB $RANDR_LIB $RENDER_LIB $CONFIG_LIB $OS_LIB $FIXES_LIB"
31351	XDMX_SYS_LIBS="$DMXMODULES_LIBS"
31352
31353
31354
31355
31356	ac_fn_c_check_header_mongrel "$LINENO" "linux/input.h" "ac_cv_header_linux_input_h" "$ac_includes_default"
31357if test "x$ac_cv_header_linux_input_h" = xyes; then :
31358  DMX_BUILD_USB="yes"
31359else
31360  DMX_BUILD_USB="no"
31361fi
31362
31363
31364
31365
31366
31367pkg_failed=no
31368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DMXEXAMPLES_DEP" >&5
31369$as_echo_n "checking for DMXEXAMPLES_DEP... " >&6; }
31370
31371if test -n "$DMXEXAMPLES_DEP_CFLAGS"; then
31372    pkg_cv_DMXEXAMPLES_DEP_CFLAGS="$DMXEXAMPLES_DEP_CFLAGS"
31373 elif test -n "$PKG_CONFIG"; then
31374    if test -n "$PKG_CONFIG" && \
31375    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDMX \$LIBXEXT x11\""; } >&5
31376  ($PKG_CONFIG --exists --print-errors "$LIBDMX $LIBXEXT x11") 2>&5
31377  ac_status=$?
31378  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31379  test $ac_status = 0; }; then
31380  pkg_cv_DMXEXAMPLES_DEP_CFLAGS=`$PKG_CONFIG --cflags "$LIBDMX $LIBXEXT x11" 2>/dev/null`
31381		      test "x$?" != "x0" && pkg_failed=yes
31382else
31383  pkg_failed=yes
31384fi
31385 else
31386    pkg_failed=untried
31387fi
31388if test -n "$DMXEXAMPLES_DEP_LIBS"; then
31389    pkg_cv_DMXEXAMPLES_DEP_LIBS="$DMXEXAMPLES_DEP_LIBS"
31390 elif test -n "$PKG_CONFIG"; then
31391    if test -n "$PKG_CONFIG" && \
31392    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDMX \$LIBXEXT x11\""; } >&5
31393  ($PKG_CONFIG --exists --print-errors "$LIBDMX $LIBXEXT x11") 2>&5
31394  ac_status=$?
31395  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31396  test $ac_status = 0; }; then
31397  pkg_cv_DMXEXAMPLES_DEP_LIBS=`$PKG_CONFIG --libs "$LIBDMX $LIBXEXT x11" 2>/dev/null`
31398		      test "x$?" != "x0" && pkg_failed=yes
31399else
31400  pkg_failed=yes
31401fi
31402 else
31403    pkg_failed=untried
31404fi
31405
31406
31407
31408if test $pkg_failed = yes; then
31409   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31410$as_echo "no" >&6; }
31411
31412if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31413        _pkg_short_errors_supported=yes
31414else
31415        _pkg_short_errors_supported=no
31416fi
31417        if test $_pkg_short_errors_supported = yes; then
31418	        DMXEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBDMX $LIBXEXT x11" 2>&1`
31419        else
31420	        DMXEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBDMX $LIBXEXT x11" 2>&1`
31421        fi
31422	# Put the nasty error message in config.log where it belongs
31423	echo "$DMXEXAMPLES_DEP_PKG_ERRORS" >&5
31424
31425	as_fn_error $? "Package requirements ($LIBDMX $LIBXEXT x11) were not met:
31426
31427$DMXEXAMPLES_DEP_PKG_ERRORS
31428
31429Consider adjusting the PKG_CONFIG_PATH environment variable if you
31430installed software in a non-standard prefix.
31431
31432Alternatively, you may set the environment variables DMXEXAMPLES_DEP_CFLAGS
31433and DMXEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
31434See the pkg-config man page for more details." "$LINENO" 5
31435elif test $pkg_failed = untried; then
31436     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31437$as_echo "no" >&6; }
31438	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
31439$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31440as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
31441is in your PATH or set the PKG_CONFIG environment variable to the full
31442path to pkg-config.
31443
31444Alternatively, you may set the environment variables DMXEXAMPLES_DEP_CFLAGS
31445and DMXEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
31446See the pkg-config man page for more details.
31447
31448To get pkg-config, see <http://pkg-config.freedesktop.org/>.
31449See \`config.log' for more details" "$LINENO" 5; }
31450else
31451	DMXEXAMPLES_DEP_CFLAGS=$pkg_cv_DMXEXAMPLES_DEP_CFLAGS
31452	DMXEXAMPLES_DEP_LIBS=$pkg_cv_DMXEXAMPLES_DEP_LIBS
31453        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31454$as_echo "yes" >&6; }
31455
31456fi
31457
31458
31459pkg_failed=no
31460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DMXXMUEXAMPLES_DEP" >&5
31461$as_echo_n "checking for DMXXMUEXAMPLES_DEP... " >&6; }
31462
31463if test -n "$DMXXMUEXAMPLES_DEP_CFLAGS"; then
31464    pkg_cv_DMXXMUEXAMPLES_DEP_CFLAGS="$DMXXMUEXAMPLES_DEP_CFLAGS"
31465 elif test -n "$PKG_CONFIG"; then
31466    if test -n "$PKG_CONFIG" && \
31467    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDMX xmu \$LIBXEXT x11\""; } >&5
31468  ($PKG_CONFIG --exists --print-errors "$LIBDMX xmu $LIBXEXT x11") 2>&5
31469  ac_status=$?
31470  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31471  test $ac_status = 0; }; then
31472  pkg_cv_DMXXMUEXAMPLES_DEP_CFLAGS=`$PKG_CONFIG --cflags "$LIBDMX xmu $LIBXEXT x11" 2>/dev/null`
31473		      test "x$?" != "x0" && pkg_failed=yes
31474else
31475  pkg_failed=yes
31476fi
31477 else
31478    pkg_failed=untried
31479fi
31480if test -n "$DMXXMUEXAMPLES_DEP_LIBS"; then
31481    pkg_cv_DMXXMUEXAMPLES_DEP_LIBS="$DMXXMUEXAMPLES_DEP_LIBS"
31482 elif test -n "$PKG_CONFIG"; then
31483    if test -n "$PKG_CONFIG" && \
31484    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDMX xmu \$LIBXEXT x11\""; } >&5
31485  ($PKG_CONFIG --exists --print-errors "$LIBDMX xmu $LIBXEXT x11") 2>&5
31486  ac_status=$?
31487  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31488  test $ac_status = 0; }; then
31489  pkg_cv_DMXXMUEXAMPLES_DEP_LIBS=`$PKG_CONFIG --libs "$LIBDMX xmu $LIBXEXT x11" 2>/dev/null`
31490		      test "x$?" != "x0" && pkg_failed=yes
31491else
31492  pkg_failed=yes
31493fi
31494 else
31495    pkg_failed=untried
31496fi
31497
31498
31499
31500if test $pkg_failed = yes; then
31501   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31502$as_echo "no" >&6; }
31503
31504if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31505        _pkg_short_errors_supported=yes
31506else
31507        _pkg_short_errors_supported=no
31508fi
31509        if test $_pkg_short_errors_supported = yes; then
31510	        DMXXMUEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBDMX xmu $LIBXEXT x11" 2>&1`
31511        else
31512	        DMXXMUEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBDMX xmu $LIBXEXT x11" 2>&1`
31513        fi
31514	# Put the nasty error message in config.log where it belongs
31515	echo "$DMXXMUEXAMPLES_DEP_PKG_ERRORS" >&5
31516
31517	as_fn_error $? "Package requirements ($LIBDMX xmu $LIBXEXT x11) were not met:
31518
31519$DMXXMUEXAMPLES_DEP_PKG_ERRORS
31520
31521Consider adjusting the PKG_CONFIG_PATH environment variable if you
31522installed software in a non-standard prefix.
31523
31524Alternatively, you may set the environment variables DMXXMUEXAMPLES_DEP_CFLAGS
31525and DMXXMUEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
31526See the pkg-config man page for more details." "$LINENO" 5
31527elif test $pkg_failed = untried; then
31528     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31529$as_echo "no" >&6; }
31530	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
31531$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31532as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
31533is in your PATH or set the PKG_CONFIG environment variable to the full
31534path to pkg-config.
31535
31536Alternatively, you may set the environment variables DMXXMUEXAMPLES_DEP_CFLAGS
31537and DMXXMUEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
31538See the pkg-config man page for more details.
31539
31540To get pkg-config, see <http://pkg-config.freedesktop.org/>.
31541See \`config.log' for more details" "$LINENO" 5; }
31542else
31543	DMXXMUEXAMPLES_DEP_CFLAGS=$pkg_cv_DMXXMUEXAMPLES_DEP_CFLAGS
31544	DMXXMUEXAMPLES_DEP_LIBS=$pkg_cv_DMXXMUEXAMPLES_DEP_LIBS
31545        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31546$as_echo "yes" >&6; }
31547
31548fi
31549
31550
31551pkg_failed=no
31552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DMXXIEXAMPLES_DEP" >&5
31553$as_echo_n "checking for DMXXIEXAMPLES_DEP... " >&6; }
31554
31555if test -n "$DMXXIEXAMPLES_DEP_CFLAGS"; then
31556    pkg_cv_DMXXIEXAMPLES_DEP_CFLAGS="$DMXXIEXAMPLES_DEP_CFLAGS"
31557 elif test -n "$PKG_CONFIG"; then
31558    if test -n "$PKG_CONFIG" && \
31559    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDMX \$LIBXI \$LIBXEXT x11\""; } >&5
31560  ($PKG_CONFIG --exists --print-errors "$LIBDMX $LIBXI $LIBXEXT x11") 2>&5
31561  ac_status=$?
31562  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31563  test $ac_status = 0; }; then
31564  pkg_cv_DMXXIEXAMPLES_DEP_CFLAGS=`$PKG_CONFIG --cflags "$LIBDMX $LIBXI $LIBXEXT x11" 2>/dev/null`
31565		      test "x$?" != "x0" && pkg_failed=yes
31566else
31567  pkg_failed=yes
31568fi
31569 else
31570    pkg_failed=untried
31571fi
31572if test -n "$DMXXIEXAMPLES_DEP_LIBS"; then
31573    pkg_cv_DMXXIEXAMPLES_DEP_LIBS="$DMXXIEXAMPLES_DEP_LIBS"
31574 elif test -n "$PKG_CONFIG"; then
31575    if test -n "$PKG_CONFIG" && \
31576    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDMX \$LIBXI \$LIBXEXT x11\""; } >&5
31577  ($PKG_CONFIG --exists --print-errors "$LIBDMX $LIBXI $LIBXEXT x11") 2>&5
31578  ac_status=$?
31579  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31580  test $ac_status = 0; }; then
31581  pkg_cv_DMXXIEXAMPLES_DEP_LIBS=`$PKG_CONFIG --libs "$LIBDMX $LIBXI $LIBXEXT x11" 2>/dev/null`
31582		      test "x$?" != "x0" && pkg_failed=yes
31583else
31584  pkg_failed=yes
31585fi
31586 else
31587    pkg_failed=untried
31588fi
31589
31590
31591
31592if test $pkg_failed = yes; then
31593   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31594$as_echo "no" >&6; }
31595
31596if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31597        _pkg_short_errors_supported=yes
31598else
31599        _pkg_short_errors_supported=no
31600fi
31601        if test $_pkg_short_errors_supported = yes; then
31602	        DMXXIEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBDMX $LIBXI $LIBXEXT x11" 2>&1`
31603        else
31604	        DMXXIEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBDMX $LIBXI $LIBXEXT x11" 2>&1`
31605        fi
31606	# Put the nasty error message in config.log where it belongs
31607	echo "$DMXXIEXAMPLES_DEP_PKG_ERRORS" >&5
31608
31609	as_fn_error $? "Package requirements ($LIBDMX $LIBXI $LIBXEXT x11) were not met:
31610
31611$DMXXIEXAMPLES_DEP_PKG_ERRORS
31612
31613Consider adjusting the PKG_CONFIG_PATH environment variable if you
31614installed software in a non-standard prefix.
31615
31616Alternatively, you may set the environment variables DMXXIEXAMPLES_DEP_CFLAGS
31617and DMXXIEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
31618See the pkg-config man page for more details." "$LINENO" 5
31619elif test $pkg_failed = untried; then
31620     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31621$as_echo "no" >&6; }
31622	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
31623$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31624as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
31625is in your PATH or set the PKG_CONFIG environment variable to the full
31626path to pkg-config.
31627
31628Alternatively, you may set the environment variables DMXXIEXAMPLES_DEP_CFLAGS
31629and DMXXIEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
31630See the pkg-config man page for more details.
31631
31632To get pkg-config, see <http://pkg-config.freedesktop.org/>.
31633See \`config.log' for more details" "$LINENO" 5; }
31634else
31635	DMXXIEXAMPLES_DEP_CFLAGS=$pkg_cv_DMXXIEXAMPLES_DEP_CFLAGS
31636	DMXXIEXAMPLES_DEP_LIBS=$pkg_cv_DMXXIEXAMPLES_DEP_LIBS
31637        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31638$as_echo "yes" >&6; }
31639
31640fi
31641
31642
31643pkg_failed=no
31644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XTSTEXAMPLES_DEP" >&5
31645$as_echo_n "checking for XTSTEXAMPLES_DEP... " >&6; }
31646
31647if test -n "$XTSTEXAMPLES_DEP_CFLAGS"; then
31648    pkg_cv_XTSTEXAMPLES_DEP_CFLAGS="$XTSTEXAMPLES_DEP_CFLAGS"
31649 elif test -n "$PKG_CONFIG"; then
31650    if test -n "$PKG_CONFIG" && \
31651    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXTST \$LIBXEXT x11\""; } >&5
31652  ($PKG_CONFIG --exists --print-errors "$LIBXTST $LIBXEXT x11") 2>&5
31653  ac_status=$?
31654  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31655  test $ac_status = 0; }; then
31656  pkg_cv_XTSTEXAMPLES_DEP_CFLAGS=`$PKG_CONFIG --cflags "$LIBXTST $LIBXEXT x11" 2>/dev/null`
31657		      test "x$?" != "x0" && pkg_failed=yes
31658else
31659  pkg_failed=yes
31660fi
31661 else
31662    pkg_failed=untried
31663fi
31664if test -n "$XTSTEXAMPLES_DEP_LIBS"; then
31665    pkg_cv_XTSTEXAMPLES_DEP_LIBS="$XTSTEXAMPLES_DEP_LIBS"
31666 elif test -n "$PKG_CONFIG"; then
31667    if test -n "$PKG_CONFIG" && \
31668    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXTST \$LIBXEXT x11\""; } >&5
31669  ($PKG_CONFIG --exists --print-errors "$LIBXTST $LIBXEXT x11") 2>&5
31670  ac_status=$?
31671  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31672  test $ac_status = 0; }; then
31673  pkg_cv_XTSTEXAMPLES_DEP_LIBS=`$PKG_CONFIG --libs "$LIBXTST $LIBXEXT x11" 2>/dev/null`
31674		      test "x$?" != "x0" && pkg_failed=yes
31675else
31676  pkg_failed=yes
31677fi
31678 else
31679    pkg_failed=untried
31680fi
31681
31682
31683
31684if test $pkg_failed = yes; then
31685   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31686$as_echo "no" >&6; }
31687
31688if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31689        _pkg_short_errors_supported=yes
31690else
31691        _pkg_short_errors_supported=no
31692fi
31693        if test $_pkg_short_errors_supported = yes; then
31694	        XTSTEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBXTST $LIBXEXT x11" 2>&1`
31695        else
31696	        XTSTEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBXTST $LIBXEXT x11" 2>&1`
31697        fi
31698	# Put the nasty error message in config.log where it belongs
31699	echo "$XTSTEXAMPLES_DEP_PKG_ERRORS" >&5
31700
31701	as_fn_error $? "Package requirements ($LIBXTST $LIBXEXT x11) were not met:
31702
31703$XTSTEXAMPLES_DEP_PKG_ERRORS
31704
31705Consider adjusting the PKG_CONFIG_PATH environment variable if you
31706installed software in a non-standard prefix.
31707
31708Alternatively, you may set the environment variables XTSTEXAMPLES_DEP_CFLAGS
31709and XTSTEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
31710See the pkg-config man page for more details." "$LINENO" 5
31711elif test $pkg_failed = untried; then
31712     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31713$as_echo "no" >&6; }
31714	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
31715$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31716as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
31717is in your PATH or set the PKG_CONFIG environment variable to the full
31718path to pkg-config.
31719
31720Alternatively, you may set the environment variables XTSTEXAMPLES_DEP_CFLAGS
31721and XTSTEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
31722See the pkg-config man page for more details.
31723
31724To get pkg-config, see <http://pkg-config.freedesktop.org/>.
31725See \`config.log' for more details" "$LINENO" 5; }
31726else
31727	XTSTEXAMPLES_DEP_CFLAGS=$pkg_cv_XTSTEXAMPLES_DEP_CFLAGS
31728	XTSTEXAMPLES_DEP_LIBS=$pkg_cv_XTSTEXAMPLES_DEP_LIBS
31729        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31730$as_echo "yes" >&6; }
31731
31732fi
31733
31734
31735pkg_failed=no
31736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRESEXAMPLES_DEP" >&5
31737$as_echo_n "checking for XRESEXAMPLES_DEP... " >&6; }
31738
31739if test -n "$XRESEXAMPLES_DEP_CFLAGS"; then
31740    pkg_cv_XRESEXAMPLES_DEP_CFLAGS="$XRESEXAMPLES_DEP_CFLAGS"
31741 elif test -n "$PKG_CONFIG"; then
31742    if test -n "$PKG_CONFIG" && \
31743    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xres \$LIBXEXT x11\""; } >&5
31744  ($PKG_CONFIG --exists --print-errors "xres $LIBXEXT x11") 2>&5
31745  ac_status=$?
31746  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31747  test $ac_status = 0; }; then
31748  pkg_cv_XRESEXAMPLES_DEP_CFLAGS=`$PKG_CONFIG --cflags "xres $LIBXEXT x11" 2>/dev/null`
31749		      test "x$?" != "x0" && pkg_failed=yes
31750else
31751  pkg_failed=yes
31752fi
31753 else
31754    pkg_failed=untried
31755fi
31756if test -n "$XRESEXAMPLES_DEP_LIBS"; then
31757    pkg_cv_XRESEXAMPLES_DEP_LIBS="$XRESEXAMPLES_DEP_LIBS"
31758 elif test -n "$PKG_CONFIG"; then
31759    if test -n "$PKG_CONFIG" && \
31760    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xres \$LIBXEXT x11\""; } >&5
31761  ($PKG_CONFIG --exists --print-errors "xres $LIBXEXT x11") 2>&5
31762  ac_status=$?
31763  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31764  test $ac_status = 0; }; then
31765  pkg_cv_XRESEXAMPLES_DEP_LIBS=`$PKG_CONFIG --libs "xres $LIBXEXT x11" 2>/dev/null`
31766		      test "x$?" != "x0" && pkg_failed=yes
31767else
31768  pkg_failed=yes
31769fi
31770 else
31771    pkg_failed=untried
31772fi
31773
31774
31775
31776if test $pkg_failed = yes; then
31777   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31778$as_echo "no" >&6; }
31779
31780if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31781        _pkg_short_errors_supported=yes
31782else
31783        _pkg_short_errors_supported=no
31784fi
31785        if test $_pkg_short_errors_supported = yes; then
31786	        XRESEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xres $LIBXEXT x11" 2>&1`
31787        else
31788	        XRESEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xres $LIBXEXT x11" 2>&1`
31789        fi
31790	# Put the nasty error message in config.log where it belongs
31791	echo "$XRESEXAMPLES_DEP_PKG_ERRORS" >&5
31792
31793	as_fn_error $? "Package requirements (xres $LIBXEXT x11) were not met:
31794
31795$XRESEXAMPLES_DEP_PKG_ERRORS
31796
31797Consider adjusting the PKG_CONFIG_PATH environment variable if you
31798installed software in a non-standard prefix.
31799
31800Alternatively, you may set the environment variables XRESEXAMPLES_DEP_CFLAGS
31801and XRESEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
31802See the pkg-config man page for more details." "$LINENO" 5
31803elif test $pkg_failed = untried; then
31804     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31805$as_echo "no" >&6; }
31806	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
31807$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31808as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
31809is in your PATH or set the PKG_CONFIG environment variable to the full
31810path to pkg-config.
31811
31812Alternatively, you may set the environment variables XRESEXAMPLES_DEP_CFLAGS
31813and XRESEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
31814See the pkg-config man page for more details.
31815
31816To get pkg-config, see <http://pkg-config.freedesktop.org/>.
31817See \`config.log' for more details" "$LINENO" 5; }
31818else
31819	XRESEXAMPLES_DEP_CFLAGS=$pkg_cv_XRESEXAMPLES_DEP_CFLAGS
31820	XRESEXAMPLES_DEP_LIBS=$pkg_cv_XRESEXAMPLES_DEP_LIBS
31821        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31822$as_echo "yes" >&6; }
31823
31824fi
31825
31826
31827pkg_failed=no
31828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11EXAMPLES_DEP" >&5
31829$as_echo_n "checking for X11EXAMPLES_DEP... " >&6; }
31830
31831if test -n "$X11EXAMPLES_DEP_CFLAGS"; then
31832    pkg_cv_X11EXAMPLES_DEP_CFLAGS="$X11EXAMPLES_DEP_CFLAGS"
31833 elif test -n "$PKG_CONFIG"; then
31834    if test -n "$PKG_CONFIG" && \
31835    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXEXT x11\""; } >&5
31836  ($PKG_CONFIG --exists --print-errors "$LIBXEXT x11") 2>&5
31837  ac_status=$?
31838  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31839  test $ac_status = 0; }; then
31840  pkg_cv_X11EXAMPLES_DEP_CFLAGS=`$PKG_CONFIG --cflags "$LIBXEXT x11" 2>/dev/null`
31841		      test "x$?" != "x0" && pkg_failed=yes
31842else
31843  pkg_failed=yes
31844fi
31845 else
31846    pkg_failed=untried
31847fi
31848if test -n "$X11EXAMPLES_DEP_LIBS"; then
31849    pkg_cv_X11EXAMPLES_DEP_LIBS="$X11EXAMPLES_DEP_LIBS"
31850 elif test -n "$PKG_CONFIG"; then
31851    if test -n "$PKG_CONFIG" && \
31852    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXEXT x11\""; } >&5
31853  ($PKG_CONFIG --exists --print-errors "$LIBXEXT x11") 2>&5
31854  ac_status=$?
31855  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31856  test $ac_status = 0; }; then
31857  pkg_cv_X11EXAMPLES_DEP_LIBS=`$PKG_CONFIG --libs "$LIBXEXT x11" 2>/dev/null`
31858		      test "x$?" != "x0" && pkg_failed=yes
31859else
31860  pkg_failed=yes
31861fi
31862 else
31863    pkg_failed=untried
31864fi
31865
31866
31867
31868if test $pkg_failed = yes; then
31869   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31870$as_echo "no" >&6; }
31871
31872if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31873        _pkg_short_errors_supported=yes
31874else
31875        _pkg_short_errors_supported=no
31876fi
31877        if test $_pkg_short_errors_supported = yes; then
31878	        X11EXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBXEXT x11" 2>&1`
31879        else
31880	        X11EXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBXEXT x11" 2>&1`
31881        fi
31882	# Put the nasty error message in config.log where it belongs
31883	echo "$X11EXAMPLES_DEP_PKG_ERRORS" >&5
31884
31885	as_fn_error $? "Package requirements ($LIBXEXT x11) were not met:
31886
31887$X11EXAMPLES_DEP_PKG_ERRORS
31888
31889Consider adjusting the PKG_CONFIG_PATH environment variable if you
31890installed software in a non-standard prefix.
31891
31892Alternatively, you may set the environment variables X11EXAMPLES_DEP_CFLAGS
31893and X11EXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
31894See the pkg-config man page for more details." "$LINENO" 5
31895elif test $pkg_failed = untried; then
31896     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31897$as_echo "no" >&6; }
31898	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
31899$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31900as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
31901is in your PATH or set the PKG_CONFIG environment variable to the full
31902path to pkg-config.
31903
31904Alternatively, you may set the environment variables X11EXAMPLES_DEP_CFLAGS
31905and X11EXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
31906See the pkg-config man page for more details.
31907
31908To get pkg-config, see <http://pkg-config.freedesktop.org/>.
31909See \`config.log' for more details" "$LINENO" 5; }
31910else
31911	X11EXAMPLES_DEP_CFLAGS=$pkg_cv_X11EXAMPLES_DEP_CFLAGS
31912	X11EXAMPLES_DEP_LIBS=$pkg_cv_X11EXAMPLES_DEP_LIBS
31913        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31914$as_echo "yes" >&6; }
31915
31916fi
31917
31918
31919fi
31920 if test "x$DMX_BUILD_USB" = xyes; then
31921  DMX_BUILD_USB_TRUE=
31922  DMX_BUILD_USB_FALSE='#'
31923else
31924  DMX_BUILD_USB_TRUE='#'
31925  DMX_BUILD_USB_FALSE=
31926fi
31927
31928
31929
31930XEPHYR_LIBS=
31931XEPHYR_INCS=
31932
31933 if test x$KDRIVE = xyes; then
31934  KDRIVE_TRUE=
31935  KDRIVE_FALSE='#'
31936else
31937  KDRIVE_TRUE='#'
31938  KDRIVE_FALSE=
31939fi
31940
31941
31942if test "$KDRIVE" = yes; then
31943    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"
31944    if test "x$XV" = xyes; then
31945        XEPHYR_REQUIRED_LIBS="$XEPHYR_REQUIRED_LIBS xcb-xv"
31946    fi
31947    if test "x$DRI" = xyes && test "x$GLX" = xyes; then
31948        XEPHYR_REQUIRED_LIBS="$XEPHYR_REQUIRED_LIBS $LIBDRM xcb-glx xcb-xf86dri > 1.6"
31949    fi
31950    if test "x$GLAMOR" = xyes; then
31951        XEPHYR_REQUIRED_LIBS="$XEPHYR_REQUIRED_LIBS x11-xcb"
31952    fi
31953
31954    if test "x$XEPHYR" = xauto; then
31955
31956pkg_failed=no
31957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEPHYR" >&5
31958$as_echo_n "checking for XEPHYR... " >&6; }
31959
31960if test -n "$XEPHYR_CFLAGS"; then
31961    pkg_cv_XEPHYR_CFLAGS="$XEPHYR_CFLAGS"
31962 elif test -n "$PKG_CONFIG"; then
31963    if test -n "$PKG_CONFIG" && \
31964    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XEPHYR_REQUIRED_LIBS\""; } >&5
31965  ($PKG_CONFIG --exists --print-errors "$XEPHYR_REQUIRED_LIBS") 2>&5
31966  ac_status=$?
31967  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31968  test $ac_status = 0; }; then
31969  pkg_cv_XEPHYR_CFLAGS=`$PKG_CONFIG --cflags "$XEPHYR_REQUIRED_LIBS" 2>/dev/null`
31970		      test "x$?" != "x0" && pkg_failed=yes
31971else
31972  pkg_failed=yes
31973fi
31974 else
31975    pkg_failed=untried
31976fi
31977if test -n "$XEPHYR_LIBS"; then
31978    pkg_cv_XEPHYR_LIBS="$XEPHYR_LIBS"
31979 elif test -n "$PKG_CONFIG"; then
31980    if test -n "$PKG_CONFIG" && \
31981    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XEPHYR_REQUIRED_LIBS\""; } >&5
31982  ($PKG_CONFIG --exists --print-errors "$XEPHYR_REQUIRED_LIBS") 2>&5
31983  ac_status=$?
31984  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31985  test $ac_status = 0; }; then
31986  pkg_cv_XEPHYR_LIBS=`$PKG_CONFIG --libs "$XEPHYR_REQUIRED_LIBS" 2>/dev/null`
31987		      test "x$?" != "x0" && pkg_failed=yes
31988else
31989  pkg_failed=yes
31990fi
31991 else
31992    pkg_failed=untried
31993fi
31994
31995
31996
31997if test $pkg_failed = yes; then
31998   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31999$as_echo "no" >&6; }
32000
32001if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32002        _pkg_short_errors_supported=yes
32003else
32004        _pkg_short_errors_supported=no
32005fi
32006        if test $_pkg_short_errors_supported = yes; then
32007	        XEPHYR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$XEPHYR_REQUIRED_LIBS" 2>&1`
32008        else
32009	        XEPHYR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$XEPHYR_REQUIRED_LIBS" 2>&1`
32010        fi
32011	# Put the nasty error message in config.log where it belongs
32012	echo "$XEPHYR_PKG_ERRORS" >&5
32013
32014	XEPHYR="no"
32015elif test $pkg_failed = untried; then
32016     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32017$as_echo "no" >&6; }
32018	XEPHYR="no"
32019else
32020	XEPHYR_CFLAGS=$pkg_cv_XEPHYR_CFLAGS
32021	XEPHYR_LIBS=$pkg_cv_XEPHYR_LIBS
32022        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32023$as_echo "yes" >&6; }
32024	XEPHYR="yes"
32025fi
32026    elif test "x$XEPHYR" = xyes ; then
32027
32028pkg_failed=no
32029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEPHYR" >&5
32030$as_echo_n "checking for XEPHYR... " >&6; }
32031
32032if test -n "$XEPHYR_CFLAGS"; then
32033    pkg_cv_XEPHYR_CFLAGS="$XEPHYR_CFLAGS"
32034 elif test -n "$PKG_CONFIG"; then
32035    if test -n "$PKG_CONFIG" && \
32036    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XEPHYR_REQUIRED_LIBS\""; } >&5
32037  ($PKG_CONFIG --exists --print-errors "$XEPHYR_REQUIRED_LIBS") 2>&5
32038  ac_status=$?
32039  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32040  test $ac_status = 0; }; then
32041  pkg_cv_XEPHYR_CFLAGS=`$PKG_CONFIG --cflags "$XEPHYR_REQUIRED_LIBS" 2>/dev/null`
32042		      test "x$?" != "x0" && pkg_failed=yes
32043else
32044  pkg_failed=yes
32045fi
32046 else
32047    pkg_failed=untried
32048fi
32049if test -n "$XEPHYR_LIBS"; then
32050    pkg_cv_XEPHYR_LIBS="$XEPHYR_LIBS"
32051 elif test -n "$PKG_CONFIG"; then
32052    if test -n "$PKG_CONFIG" && \
32053    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XEPHYR_REQUIRED_LIBS\""; } >&5
32054  ($PKG_CONFIG --exists --print-errors "$XEPHYR_REQUIRED_LIBS") 2>&5
32055  ac_status=$?
32056  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32057  test $ac_status = 0; }; then
32058  pkg_cv_XEPHYR_LIBS=`$PKG_CONFIG --libs "$XEPHYR_REQUIRED_LIBS" 2>/dev/null`
32059		      test "x$?" != "x0" && pkg_failed=yes
32060else
32061  pkg_failed=yes
32062fi
32063 else
32064    pkg_failed=untried
32065fi
32066
32067
32068
32069if test $pkg_failed = yes; then
32070   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32071$as_echo "no" >&6; }
32072
32073if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32074        _pkg_short_errors_supported=yes
32075else
32076        _pkg_short_errors_supported=no
32077fi
32078        if test $_pkg_short_errors_supported = yes; then
32079	        XEPHYR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$XEPHYR_REQUIRED_LIBS" 2>&1`
32080        else
32081	        XEPHYR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$XEPHYR_REQUIRED_LIBS" 2>&1`
32082        fi
32083	# Put the nasty error message in config.log where it belongs
32084	echo "$XEPHYR_PKG_ERRORS" >&5
32085
32086	as_fn_error $? "Package requirements ($XEPHYR_REQUIRED_LIBS) were not met:
32087
32088$XEPHYR_PKG_ERRORS
32089
32090Consider adjusting the PKG_CONFIG_PATH environment variable if you
32091installed software in a non-standard prefix.
32092
32093Alternatively, you may set the environment variables XEPHYR_CFLAGS
32094and XEPHYR_LIBS to avoid the need to call pkg-config.
32095See the pkg-config man page for more details." "$LINENO" 5
32096elif test $pkg_failed = untried; then
32097     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32098$as_echo "no" >&6; }
32099	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32100$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32101as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
32102is in your PATH or set the PKG_CONFIG environment variable to the full
32103path to pkg-config.
32104
32105Alternatively, you may set the environment variables XEPHYR_CFLAGS
32106and XEPHYR_LIBS to avoid the need to call pkg-config.
32107See the pkg-config man page for more details.
32108
32109To get pkg-config, see <http://pkg-config.freedesktop.org/>.
32110See \`config.log' for more details" "$LINENO" 5; }
32111else
32112	XEPHYR_CFLAGS=$pkg_cv_XEPHYR_CFLAGS
32113	XEPHYR_LIBS=$pkg_cv_XEPHYR_LIBS
32114        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32115$as_echo "yes" >&6; }
32116
32117fi
32118    fi
32119
32120    # Xephyr needs nanosleep() which is in librt on Solaris
32121    ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
32122if test "x$ac_cv_func_nanosleep" = xyes; then :
32123
32124else
32125  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
32126$as_echo_n "checking for nanosleep in -lrt... " >&6; }
32127if ${ac_cv_lib_rt_nanosleep+:} false; then :
32128  $as_echo_n "(cached) " >&6
32129else
32130  ac_check_lib_save_LIBS=$LIBS
32131LIBS="-lrt  $LIBS"
32132cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32133/* end confdefs.h.  */
32134
32135/* Override any GCC internal prototype to avoid an error.
32136   Use char because int might match the return type of a GCC
32137   builtin and then its argument prototype would still apply.  */
32138#ifdef __cplusplus
32139extern "C"
32140#endif
32141char nanosleep ();
32142int
32143main ()
32144{
32145return nanosleep ();
32146  ;
32147  return 0;
32148}
32149_ACEOF
32150if ac_fn_c_try_link "$LINENO"; then :
32151  ac_cv_lib_rt_nanosleep=yes
32152else
32153  ac_cv_lib_rt_nanosleep=no
32154fi
32155rm -f core conftest.err conftest.$ac_objext \
32156    conftest$ac_exeext conftest.$ac_ext
32157LIBS=$ac_check_lib_save_LIBS
32158fi
32159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
32160$as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
32161if test "x$ac_cv_lib_rt_nanosleep" = xyes; then :
32162  XEPHYR_LIBS="$XEPHYR_LIBS -lrt"
32163fi
32164
32165fi
32166
32167
32168    # damage shadow extension glx (NOTYET) fb mi
32169    KDRIVE_INC='-I$(top_srcdir)/hw/kdrive/src'
32170    KDRIVE_PURE_INCS="$KDRIVE_INC $MIEXT_SYNC_INC $MIEXT_DAMAGE_INC $MIEXT_SHADOW_INC $XEXT_INC $FB_INC $MI_INC"
32171    KDRIVE_OS_INC='-I$(top_srcdir)/hw/kdrive/linux'
32172    KDRIVE_INCS="$KDRIVE_PURE_INCS $KDRIVE_OS_INC"
32173
32174    KDRIVE_CFLAGS="$XSERVER_CFLAGS"
32175
32176    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"
32177    KDRIVE_LIB='$(top_builddir)/hw/kdrive/src/libkdrive.la'
32178    KDRIVE_MAIN_LIB="$MAIN_LIB"
32179    KDRIVE_LOCAL_LIBS="$DIX_LIB $KDRIVE_LIB"
32180    KDRIVE_LOCAL_LIBS="$KDRIVE_LOCAL_LIBS $FB_LIB $MI_LIB $KDRIVE_PURE_LIBS"
32181    KDRIVE_LOCAL_LIBS="$KDRIVE_LOCAL_LIBS $KDRIVE_OS_LIB"
32182    KDRIVE_LIBS="$KDRIVE_LOCAL_LIBS $XSERVER_SYS_LIBS $GLX_SYS_LIBS $DLOPEN_LIBS"
32183
32184
32185
32186fi
32187
32188
32189
32190
32191
32192
32193
32194 if test "x$KDRIVE" = xyes && test "x$XEPHYR" = xyes; then
32195  XEPHYR_TRUE=
32196  XEPHYR_FALSE='#'
32197else
32198  XEPHYR_TRUE='#'
32199  XEPHYR_FALSE=
32200fi
32201
32202
32203
32204XWAYLANDMODULES="wayland-client >= 1.3.0 wayland-protocols >= 1.10 $LIBDRM epoxy"
32205if test "x$XF86VIDMODE" = xyes; then
32206	XWAYLANDMODULES="$XWAYLANDMODULES $VIDMODEPROTO"
32207fi
32208
32209pkg_failed=no
32210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XWAYLANDMODULES" >&5
32211$as_echo_n "checking for XWAYLANDMODULES... " >&6; }
32212
32213if test -n "$XWAYLANDMODULES_CFLAGS"; then
32214    pkg_cv_XWAYLANDMODULES_CFLAGS="$XWAYLANDMODULES_CFLAGS"
32215 elif test -n "$PKG_CONFIG"; then
32216    if test -n "$PKG_CONFIG" && \
32217    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XWAYLANDMODULES\""; } >&5
32218  ($PKG_CONFIG --exists --print-errors "$XWAYLANDMODULES") 2>&5
32219  ac_status=$?
32220  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32221  test $ac_status = 0; }; then
32222  pkg_cv_XWAYLANDMODULES_CFLAGS=`$PKG_CONFIG --cflags "$XWAYLANDMODULES" 2>/dev/null`
32223		      test "x$?" != "x0" && pkg_failed=yes
32224else
32225  pkg_failed=yes
32226fi
32227 else
32228    pkg_failed=untried
32229fi
32230if test -n "$XWAYLANDMODULES_LIBS"; then
32231    pkg_cv_XWAYLANDMODULES_LIBS="$XWAYLANDMODULES_LIBS"
32232 elif test -n "$PKG_CONFIG"; then
32233    if test -n "$PKG_CONFIG" && \
32234    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XWAYLANDMODULES\""; } >&5
32235  ($PKG_CONFIG --exists --print-errors "$XWAYLANDMODULES") 2>&5
32236  ac_status=$?
32237  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32238  test $ac_status = 0; }; then
32239  pkg_cv_XWAYLANDMODULES_LIBS=`$PKG_CONFIG --libs "$XWAYLANDMODULES" 2>/dev/null`
32240		      test "x$?" != "x0" && pkg_failed=yes
32241else
32242  pkg_failed=yes
32243fi
32244 else
32245    pkg_failed=untried
32246fi
32247
32248
32249
32250if test $pkg_failed = yes; then
32251   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32252$as_echo "no" >&6; }
32253
32254if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32255        _pkg_short_errors_supported=yes
32256else
32257        _pkg_short_errors_supported=no
32258fi
32259        if test $_pkg_short_errors_supported = yes; then
32260	        XWAYLANDMODULES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$XWAYLANDMODULES" 2>&1`
32261        else
32262	        XWAYLANDMODULES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$XWAYLANDMODULES" 2>&1`
32263        fi
32264	# Put the nasty error message in config.log where it belongs
32265	echo "$XWAYLANDMODULES_PKG_ERRORS" >&5
32266
32267	have_xwayland=no
32268elif test $pkg_failed = untried; then
32269     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32270$as_echo "no" >&6; }
32271	have_xwayland=no
32272else
32273	XWAYLANDMODULES_CFLAGS=$pkg_cv_XWAYLANDMODULES_CFLAGS
32274	XWAYLANDMODULES_LIBS=$pkg_cv_XWAYLANDMODULES_LIBS
32275        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32276$as_echo "yes" >&6; }
32277	have_xwayland=yes
32278fi
32279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Xwayland DDX" >&5
32280$as_echo_n "checking whether to build Xwayland DDX... " >&6; }
32281if test "x$XWAYLAND" = xauto; then
32282   XWAYLAND="$have_xwayland"
32283fi
32284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XWAYLAND" >&5
32285$as_echo "$XWAYLAND" >&6; }
32286 if test "x$XWAYLAND" = xyes; then
32287  XWAYLAND_TRUE=
32288  XWAYLAND_FALSE='#'
32289else
32290  XWAYLAND_TRUE='#'
32291  XWAYLAND_FALSE=
32292fi
32293
32294
32295if test "x$XWAYLAND" = xyes; then
32296	if test "x$have_xwayland" = xno; then
32297		as_fn_error $? "Xwayland build explicitly requested, but required modules not found." "$LINENO" 5
32298	fi
32299
32300	if test "x$GLAMOR" = xyes && test "x$GBM" = xyes; then
32301
32302$as_echo "#define XWL_HAS_GLAMOR 1" >>confdefs.h
32303
32304	fi
32305
32306
32307pkg_failed=no
32308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WAYLAND_EGLSTREAM" >&5
32309$as_echo_n "checking for WAYLAND_EGLSTREAM... " >&6; }
32310
32311if test -n "$WAYLAND_EGLSTREAM_CFLAGS"; then
32312    pkg_cv_WAYLAND_EGLSTREAM_CFLAGS="$WAYLAND_EGLSTREAM_CFLAGS"
32313 elif test -n "$PKG_CONFIG"; then
32314    if test -n "$PKG_CONFIG" && \
32315    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"wayland-eglstream-protocols >= 1.0.2\""; } >&5
32316  ($PKG_CONFIG --exists --print-errors "wayland-eglstream-protocols >= 1.0.2") 2>&5
32317  ac_status=$?
32318  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32319  test $ac_status = 0; }; then
32320  pkg_cv_WAYLAND_EGLSTREAM_CFLAGS=`$PKG_CONFIG --cflags "wayland-eglstream-protocols >= 1.0.2" 2>/dev/null`
32321		      test "x$?" != "x0" && pkg_failed=yes
32322else
32323  pkg_failed=yes
32324fi
32325 else
32326    pkg_failed=untried
32327fi
32328if test -n "$WAYLAND_EGLSTREAM_LIBS"; then
32329    pkg_cv_WAYLAND_EGLSTREAM_LIBS="$WAYLAND_EGLSTREAM_LIBS"
32330 elif test -n "$PKG_CONFIG"; then
32331    if test -n "$PKG_CONFIG" && \
32332    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"wayland-eglstream-protocols >= 1.0.2\""; } >&5
32333  ($PKG_CONFIG --exists --print-errors "wayland-eglstream-protocols >= 1.0.2") 2>&5
32334  ac_status=$?
32335  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32336  test $ac_status = 0; }; then
32337  pkg_cv_WAYLAND_EGLSTREAM_LIBS=`$PKG_CONFIG --libs "wayland-eglstream-protocols >= 1.0.2" 2>/dev/null`
32338		      test "x$?" != "x0" && pkg_failed=yes
32339else
32340  pkg_failed=yes
32341fi
32342 else
32343    pkg_failed=untried
32344fi
32345
32346
32347
32348if test $pkg_failed = yes; then
32349   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32350$as_echo "no" >&6; }
32351
32352if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32353        _pkg_short_errors_supported=yes
32354else
32355        _pkg_short_errors_supported=no
32356fi
32357        if test $_pkg_short_errors_supported = yes; then
32358	        WAYLAND_EGLSTREAM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "wayland-eglstream-protocols >= 1.0.2" 2>&1`
32359        else
32360	        WAYLAND_EGLSTREAM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "wayland-eglstream-protocols >= 1.0.2" 2>&1`
32361        fi
32362	# Put the nasty error message in config.log where it belongs
32363	echo "$WAYLAND_EGLSTREAM_PKG_ERRORS" >&5
32364
32365	have_wl_eglstream=no
32366elif test $pkg_failed = untried; then
32367     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32368$as_echo "no" >&6; }
32369	have_wl_eglstream=no
32370else
32371	WAYLAND_EGLSTREAM_CFLAGS=$pkg_cv_WAYLAND_EGLSTREAM_CFLAGS
32372	WAYLAND_EGLSTREAM_LIBS=$pkg_cv_WAYLAND_EGLSTREAM_LIBS
32373        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32374$as_echo "yes" >&6; }
32375	have_wl_eglstream=yes
32376fi
32377
32378	if test "x$XWAYLAND_EGLSTREAM" = xauto; then
32379		if test "x$have_wl_eglstream" = xyes && test "x$GLAMOR" = xyes; then
32380			XWAYLAND_EGLSTREAM=yes
32381		fi
32382	fi
32383
32384	if test "x$XWAYLAND_EGLSTREAM" = xyes; then
32385		if test "x$GLAMOR" != xyes; then
32386			as_fn_error $? "Xwayland eglstream support explicitly requested, but required modules not found." "$LINENO" 5
32387		fi
32388
32389		if test "x$have_wl_eglstream" = xno; then
32390			as_fn_error $? "Xwayland eglstream support requires wayland-eglstream-protocols >= 1.0.2" "$LINENO" 5
32391		fi
32392
32393		WAYLAND_EGLSTREAM_DATADIR=`$PKG_CONFIG --variable=pkgdatadir wayland-eglstream-protocols`
32394
32395
32396$as_echo "#define XWL_HAS_EGLSTREAM 1" >>confdefs.h
32397
32398	fi
32399
32400	XWAYLAND_LIBS="$FB_LIB $FIXES_LIB $MI_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 $MAIN_LIB $DIX_LIB $OS_LIB"
32401	XWAYLAND_SYS_LIBS="$XWAYLANDMODULES_LIBS $GLX_SYS_LIBS"
32402
32403
32404
32405	if test "x$MONOTONIC_CLOCK" != xyes; then
32406		as_fn_error $? "Xwayland requires CLOCK_MONOTONIC support." "$LINENO" 5
32407	fi
32408
32409	# Extract the first word of "wayland-scanner", so it can be a program name with args.
32410set dummy wayland-scanner; ac_word=$2
32411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32412$as_echo_n "checking for $ac_word... " >&6; }
32413if ${ac_cv_path_WAYLAND_SCANNER+:} false; then :
32414  $as_echo_n "(cached) " >&6
32415else
32416  case $WAYLAND_SCANNER in
32417  [\\/]* | ?:[\\/]*)
32418  ac_cv_path_WAYLAND_SCANNER="$WAYLAND_SCANNER" # Let the user override the test with a path.
32419  ;;
32420  *)
32421  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32422for as_dir in $PATH
32423do
32424  IFS=$as_save_IFS
32425  test -z "$as_dir" && as_dir=.
32426    for ac_exec_ext in '' $ac_executable_extensions; do
32427  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32428    ac_cv_path_WAYLAND_SCANNER="$as_dir/$ac_word$ac_exec_ext"
32429    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32430    break 2
32431  fi
32432done
32433  done
32434IFS=$as_save_IFS
32435
32436  ;;
32437esac
32438fi
32439WAYLAND_SCANNER=$ac_cv_path_WAYLAND_SCANNER
32440if test -n "$WAYLAND_SCANNER"; then
32441  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WAYLAND_SCANNER" >&5
32442$as_echo "$WAYLAND_SCANNER" >&6; }
32443else
32444  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32445$as_echo "no" >&6; }
32446fi
32447
32448
32449	if test "x$WAYLAND_SCANNER" = x; then
32450
32451pkg_failed=no
32452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WAYLAND_SCANNER" >&5
32453$as_echo_n "checking for WAYLAND_SCANNER... " >&6; }
32454
32455if test -n "$WAYLAND_SCANNER_CFLAGS"; then
32456    pkg_cv_WAYLAND_SCANNER_CFLAGS="$WAYLAND_SCANNER_CFLAGS"
32457 elif test -n "$PKG_CONFIG"; then
32458    if test -n "$PKG_CONFIG" && \
32459    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"wayland-scanner\""; } >&5
32460  ($PKG_CONFIG --exists --print-errors "wayland-scanner") 2>&5
32461  ac_status=$?
32462  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32463  test $ac_status = 0; }; then
32464  pkg_cv_WAYLAND_SCANNER_CFLAGS=`$PKG_CONFIG --cflags "wayland-scanner" 2>/dev/null`
32465		      test "x$?" != "x0" && pkg_failed=yes
32466else
32467  pkg_failed=yes
32468fi
32469 else
32470    pkg_failed=untried
32471fi
32472if test -n "$WAYLAND_SCANNER_LIBS"; then
32473    pkg_cv_WAYLAND_SCANNER_LIBS="$WAYLAND_SCANNER_LIBS"
32474 elif test -n "$PKG_CONFIG"; then
32475    if test -n "$PKG_CONFIG" && \
32476    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"wayland-scanner\""; } >&5
32477  ($PKG_CONFIG --exists --print-errors "wayland-scanner") 2>&5
32478  ac_status=$?
32479  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32480  test $ac_status = 0; }; then
32481  pkg_cv_WAYLAND_SCANNER_LIBS=`$PKG_CONFIG --libs "wayland-scanner" 2>/dev/null`
32482		      test "x$?" != "x0" && pkg_failed=yes
32483else
32484  pkg_failed=yes
32485fi
32486 else
32487    pkg_failed=untried
32488fi
32489
32490
32491
32492if test $pkg_failed = yes; then
32493   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32494$as_echo "no" >&6; }
32495
32496if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32497        _pkg_short_errors_supported=yes
32498else
32499        _pkg_short_errors_supported=no
32500fi
32501        if test $_pkg_short_errors_supported = yes; then
32502	        WAYLAND_SCANNER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "wayland-scanner" 2>&1`
32503        else
32504	        WAYLAND_SCANNER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "wayland-scanner" 2>&1`
32505        fi
32506	# Put the nasty error message in config.log where it belongs
32507	echo "$WAYLAND_SCANNER_PKG_ERRORS" >&5
32508
32509	as_fn_error $? "Package requirements (wayland-scanner) were not met:
32510
32511$WAYLAND_SCANNER_PKG_ERRORS
32512
32513Consider adjusting the PKG_CONFIG_PATH environment variable if you
32514installed software in a non-standard prefix.
32515
32516Alternatively, you may set the environment variables WAYLAND_SCANNER_CFLAGS
32517and WAYLAND_SCANNER_LIBS to avoid the need to call pkg-config.
32518See the pkg-config man page for more details." "$LINENO" 5
32519elif test $pkg_failed = untried; then
32520     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32521$as_echo "no" >&6; }
32522	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32523$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32524as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
32525is in your PATH or set the PKG_CONFIG environment variable to the full
32526path to pkg-config.
32527
32528Alternatively, you may set the environment variables WAYLAND_SCANNER_CFLAGS
32529and WAYLAND_SCANNER_LIBS to avoid the need to call pkg-config.
32530See the pkg-config man page for more details.
32531
32532To get pkg-config, see <http://pkg-config.freedesktop.org/>.
32533See \`config.log' for more details" "$LINENO" 5; }
32534else
32535	WAYLAND_SCANNER_CFLAGS=$pkg_cv_WAYLAND_SCANNER_CFLAGS
32536	WAYLAND_SCANNER_LIBS=$pkg_cv_WAYLAND_SCANNER_LIBS
32537        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32538$as_echo "yes" >&6; }
32539
32540fi
32541		WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
32542
32543	fi
32544
32545
32546pkg_failed=no
32547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WAYLAND_SCANNER" >&5
32548$as_echo_n "checking for WAYLAND_SCANNER... " >&6; }
32549
32550if test -n "$WAYLAND_SCANNER_CFLAGS"; then
32551    pkg_cv_WAYLAND_SCANNER_CFLAGS="$WAYLAND_SCANNER_CFLAGS"
32552 elif test -n "$PKG_CONFIG"; then
32553    if test -n "$PKG_CONFIG" && \
32554    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"wayland-scanner >= 1.14.91\""; } >&5
32555  ($PKG_CONFIG --exists --print-errors "wayland-scanner >= 1.14.91") 2>&5
32556  ac_status=$?
32557  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32558  test $ac_status = 0; }; then
32559  pkg_cv_WAYLAND_SCANNER_CFLAGS=`$PKG_CONFIG --cflags "wayland-scanner >= 1.14.91" 2>/dev/null`
32560		      test "x$?" != "x0" && pkg_failed=yes
32561else
32562  pkg_failed=yes
32563fi
32564 else
32565    pkg_failed=untried
32566fi
32567if test -n "$WAYLAND_SCANNER_LIBS"; then
32568    pkg_cv_WAYLAND_SCANNER_LIBS="$WAYLAND_SCANNER_LIBS"
32569 elif test -n "$PKG_CONFIG"; then
32570    if test -n "$PKG_CONFIG" && \
32571    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"wayland-scanner >= 1.14.91\""; } >&5
32572  ($PKG_CONFIG --exists --print-errors "wayland-scanner >= 1.14.91") 2>&5
32573  ac_status=$?
32574  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32575  test $ac_status = 0; }; then
32576  pkg_cv_WAYLAND_SCANNER_LIBS=`$PKG_CONFIG --libs "wayland-scanner >= 1.14.91" 2>/dev/null`
32577		      test "x$?" != "x0" && pkg_failed=yes
32578else
32579  pkg_failed=yes
32580fi
32581 else
32582    pkg_failed=untried
32583fi
32584
32585
32586
32587if test $pkg_failed = yes; then
32588   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32589$as_echo "no" >&6; }
32590
32591if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32592        _pkg_short_errors_supported=yes
32593else
32594        _pkg_short_errors_supported=no
32595fi
32596        if test $_pkg_short_errors_supported = yes; then
32597	        WAYLAND_SCANNER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "wayland-scanner >= 1.14.91" 2>&1`
32598        else
32599	        WAYLAND_SCANNER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "wayland-scanner >= 1.14.91" 2>&1`
32600        fi
32601	# Put the nasty error message in config.log where it belongs
32602	echo "$WAYLAND_SCANNER_PKG_ERRORS" >&5
32603
32604	SCANNER_ARG='code'
32605
32606elif test $pkg_failed = untried; then
32607     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32608$as_echo "no" >&6; }
32609	SCANNER_ARG='code'
32610
32611else
32612	WAYLAND_SCANNER_CFLAGS=$pkg_cv_WAYLAND_SCANNER_CFLAGS
32613	WAYLAND_SCANNER_LIBS=$pkg_cv_WAYLAND_SCANNER_LIBS
32614        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32615$as_echo "yes" >&6; }
32616	SCANNER_ARG='private-code'
32617
32618fi
32619
32620	WAYLAND_PROTOCOLS_DATADIR=`$PKG_CONFIG --variable=pkgdatadir wayland-protocols`
32621
32622fi
32623 if test "x$XWAYLAND_EGLSTREAM" = "xyes"; then
32624  XWAYLAND_EGLSTREAM_TRUE=
32625  XWAYLAND_EGLSTREAM_FALSE='#'
32626else
32627  XWAYLAND_EGLSTREAM_TRUE='#'
32628  XWAYLAND_EGLSTREAM_FALSE=
32629fi
32630
32631
32632
32633
32634cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32635/* end confdefs.h.  */
32636
32637#include <features.h>
32638#ifndef __GLIBC__
32639#error not glibc
32640#endif
32641
32642int
32643main ()
32644{
32645
32646  ;
32647  return 0;
32648}
32649_ACEOF
32650if ac_fn_c_try_compile "$LINENO"; then :
32651
32652$as_echo "#define _GNU_SOURCE 1" >>confdefs.h
32653
32654fi
32655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32656
32657
32658  prefix_NONE=
32659  exec_prefix_NONE=
32660  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
32661  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
32662  eval ac_define_dir="\"$prefix\""
32663  eval ac_define_dir="\"$ac_define_dir\""
32664  PROJECTROOT="$ac_define_dir"
32665
32666
32667cat >>confdefs.h <<_ACEOF
32668#define PROJECTROOT "$ac_define_dir"
32669_ACEOF
32670
32671  test "$prefix_NONE" && prefix=NONE
32672  test "$exec_prefix_NONE" && exec_prefix=NONE
32673
32674
32675  prefix_NONE=
32676  exec_prefix_NONE=
32677  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
32678  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
32679  eval ac_define_dir="\"$sysconfdir\""
32680  eval ac_define_dir="\"$ac_define_dir\""
32681  SYSCONFDIR="$ac_define_dir"
32682
32683
32684cat >>confdefs.h <<_ACEOF
32685#define SYSCONFDIR "$ac_define_dir"
32686_ACEOF
32687
32688  test "$prefix_NONE" && prefix=NONE
32689  test "$exec_prefix_NONE" && exec_prefix=NONE
32690
32691
32692
32693DATE_FMT="%Y%m%d"
32694TIME_FMT="1%H%M%S"
32695BUILD_DATE="`date "+$DATE_FMT"`"
32696BUILD_TIME="`date "+$TIME_FMT"`"
32697if test "x$SOURCE_DATE_EPOCH" != "x"; then
32698	BUILD_DATE="`date -u -d "@$SOURCE_DATE_EPOCH" "+$DATE_FMT" 2>/dev/null || date -u -r "$SOURCE_DATE_EPOCH" "+$DATE_FMT" 2>/dev/null || date -u "+$DATE_FMT"`"
32699	BUILD_TIME="`date -u -d "@$SOURCE_DATE_EPOCH" "+$TIME_FMT" 2>/dev/null || date -u -r "$SOURCE_DATE_EPOCH" "+$TIME_FMT" 2>/dev/null || date -u "+$TIME_FMT"`"
32700fi
32701
32702
32703
32704DIX_CFLAGS="-DHAVE_DIX_CONFIG_H $XSERVER_CFLAGS"
32705
32706
32707
32708
32709
32710
32711
32712ac_config_commands="$ac_config_commands sdksyms"
32713
32714
32715if test "x$CONFIG_HAL" = xno && test "x$CONFIG_UDEV" = xno && test "x$CONFIG_DEVD" = xno; then
32716    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
32717             *****************************************************
32718             Neither HAL, devd, nor udev backend will be enabled.
32719             Input device hotplugging will not be available!
32720             *****************************************************" >&5
32721$as_echo "$as_me: WARNING:
32722             *****************************************************
32723             Neither HAL, devd, nor udev backend will be enabled.
32724             Input device hotplugging will not be available!
32725             *****************************************************" >&2;}
32726fi
32727
32728ac_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/common/xf86Build.h 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/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/vbe/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/cvt/Makefile hw/xfree86/utils/gtf/Makefile hw/dmx/config/Makefile hw/dmx/config/man/Makefile hw/dmx/doc/Makefile hw/dmx/doxygen/doxygen.conf hw/dmx/doxygen/Makefile hw/dmx/examples/Makefile hw/dmx/input/Makefile hw/dmx/glxProxy/Makefile hw/dmx/Makefile hw/dmx/man/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 hw/xwayland/Makefile test/Makefile xserver.ent xorg-server.pc"
32729
32730cat >confcache <<\_ACEOF
32731# This file is a shell script that caches the results of configure
32732# tests run on this system so they can be shared between configure
32733# scripts and configure runs, see configure's option --config-cache.
32734# It is not useful on other systems.  If it contains results you don't
32735# want to keep, you may remove or edit it.
32736#
32737# config.status only pays attention to the cache file if you give it
32738# the --recheck option to rerun configure.
32739#
32740# `ac_cv_env_foo' variables (set or unset) will be overridden when
32741# loading this file, other *unset* `ac_cv_foo' will be assigned the
32742# following values.
32743
32744_ACEOF
32745
32746# The following way of writing the cache mishandles newlines in values,
32747# but we know of no workaround that is simple, portable, and efficient.
32748# So, we kill variables containing newlines.
32749# Ultrix sh set writes to stderr and can't be redirected directly,
32750# and sets the high bit in the cache file unless we assign to the vars.
32751(
32752  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32753    eval ac_val=\$$ac_var
32754    case $ac_val in #(
32755    *${as_nl}*)
32756      case $ac_var in #(
32757      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
32758$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
32759      esac
32760      case $ac_var in #(
32761      _ | IFS | as_nl) ;; #(
32762      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
32763      *) { eval $ac_var=; unset $ac_var;} ;;
32764      esac ;;
32765    esac
32766  done
32767
32768  (set) 2>&1 |
32769    case $as_nl`(ac_space=' '; set) 2>&1` in #(
32770    *${as_nl}ac_space=\ *)
32771      # `set' does not quote correctly, so add quotes: double-quote
32772      # substitution turns \\\\ into \\, and sed turns \\ into \.
32773      sed -n \
32774	"s/'/'\\\\''/g;
32775	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32776      ;; #(
32777    *)
32778      # `set' quotes correctly as required by POSIX, so do not add quotes.
32779      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32780      ;;
32781    esac |
32782    sort
32783) |
32784  sed '
32785     /^ac_cv_env_/b end
32786     t clear
32787     :clear
32788     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32789     t end
32790     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32791     :end' >>confcache
32792if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
32793  if test -w "$cache_file"; then
32794    if test "x$cache_file" != "x/dev/null"; then
32795      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
32796$as_echo "$as_me: updating cache $cache_file" >&6;}
32797      if test ! -f "$cache_file" || test -h "$cache_file"; then
32798	cat confcache >"$cache_file"
32799      else
32800        case $cache_file in #(
32801        */* | ?:*)
32802	  mv -f confcache "$cache_file"$$ &&
32803	  mv -f "$cache_file"$$ "$cache_file" ;; #(
32804        *)
32805	  mv -f confcache "$cache_file" ;;
32806	esac
32807      fi
32808    fi
32809  else
32810    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
32811$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
32812  fi
32813fi
32814rm -f confcache
32815
32816test "x$prefix" = xNONE && prefix=$ac_default_prefix
32817# Let make expand exec_prefix.
32818test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32819
32820DEFS=-DHAVE_CONFIG_H
32821
32822ac_libobjs=
32823ac_ltlibobjs=
32824U=
32825for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
32826  # 1. Remove the extension, and $U if already installed.
32827  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
32828  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
32829  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
32830  #    will be set to the directory where LIBOBJS objects are built.
32831  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32832  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
32833done
32834LIBOBJS=$ac_libobjs
32835
32836LTLIBOBJS=$ac_ltlibobjs
32837
32838
32839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
32840$as_echo_n "checking that generated files are newer than configure... " >&6; }
32841   if test -n "$am_sleep_pid"; then
32842     # Hide warnings about reused PIDs.
32843     wait $am_sleep_pid 2>/dev/null
32844   fi
32845   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
32846$as_echo "done" >&6; }
32847 if test -n "$EXEEXT"; then
32848  am__EXEEXT_TRUE=
32849  am__EXEEXT_FALSE='#'
32850else
32851  am__EXEEXT_TRUE='#'
32852  am__EXEEXT_FALSE=
32853fi
32854
32855if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
32856  as_fn_error $? "conditional \"AMDEP\" was never defined.
32857Usually this means the macro was only invoked conditionally." "$LINENO" 5
32858fi
32859if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
32860  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
32861Usually this means the macro was only invoked conditionally." "$LINENO" 5
32862fi
32863if test -z "${HAVE_DOT_TRUE}" && test -z "${HAVE_DOT_FALSE}"; then
32864  as_fn_error $? "conditional \"HAVE_DOT\" was never defined.
32865Usually this means the macro was only invoked conditionally." "$LINENO" 5
32866fi
32867if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then
32868  as_fn_error $? "conditional \"HAVE_DOXYGEN\" was never defined.
32869Usually this means the macro was only invoked conditionally." "$LINENO" 5
32870fi
32871if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then
32872  as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined.
32873Usually this means the macro was only invoked conditionally." "$LINENO" 5
32874fi
32875if test -z "${ENABLE_DOCS_TRUE}" && test -z "${ENABLE_DOCS_FALSE}"; then
32876  as_fn_error $? "conditional \"ENABLE_DOCS\" was never defined.
32877Usually this means the macro was only invoked conditionally." "$LINENO" 5
32878fi
32879if test -z "${ENABLE_DEVEL_DOCS_TRUE}" && test -z "${ENABLE_DEVEL_DOCS_FALSE}"; then
32880  as_fn_error $? "conditional \"ENABLE_DEVEL_DOCS\" was never defined.
32881Usually this means the macro was only invoked conditionally." "$LINENO" 5
32882fi
32883if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then
32884  as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined.
32885Usually this means the macro was only invoked conditionally." "$LINENO" 5
32886fi
32887if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
32888  as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined.
32889Usually this means the macro was only invoked conditionally." "$LINENO" 5
32890fi
32891if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then
32892  as_fn_error $? "conditional \"HAVE_FOP\" was never defined.
32893Usually this means the macro was only invoked conditionally." "$LINENO" 5
32894fi
32895if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then
32896  as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined.
32897Usually this means the macro was only invoked conditionally." "$LINENO" 5
32898fi
32899if test -z "${ENABLE_UNIT_TESTS_TRUE}" && test -z "${ENABLE_UNIT_TESTS_FALSE}"; then
32900  as_fn_error $? "conditional \"ENABLE_UNIT_TESTS\" was never defined.
32901Usually this means the macro was only invoked conditionally." "$LINENO" 5
32902fi
32903if test -z "${HAVE_LD_WRAP_TRUE}" && test -z "${HAVE_LD_WRAP_FALSE}"; then
32904  as_fn_error $? "conditional \"HAVE_LD_WRAP\" was never defined.
32905Usually this means the macro was only invoked conditionally." "$LINENO" 5
32906fi
32907if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
32908  as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
32909Usually this means the macro was only invoked conditionally." "$LINENO" 5
32910fi
32911if test -z "${XSERVER_DTRACE_TRUE}" && test -z "${XSERVER_DTRACE_FALSE}"; then
32912  as_fn_error $? "conditional \"XSERVER_DTRACE\" was never defined.
32913Usually this means the macro was only invoked conditionally." "$LINENO" 5
32914fi
32915if test -z "${SPECIAL_DTRACE_OBJECTS_TRUE}" && test -z "${SPECIAL_DTRACE_OBJECTS_FALSE}"; then
32916  as_fn_error $? "conditional \"SPECIAL_DTRACE_OBJECTS\" was never defined.
32917Usually this means the macro was only invoked conditionally." "$LINENO" 5
32918fi
32919
32920if test -z "${POLL_TRUE}" && test -z "${POLL_FALSE}"; then
32921  as_fn_error $? "conditional \"POLL\" was never defined.
32922Usually this means the macro was only invoked conditionally." "$LINENO" 5
32923fi
32924if test -z "${AGP_TRUE}" && test -z "${AGP_FALSE}"; then
32925  as_fn_error $? "conditional \"AGP\" was never defined.
32926Usually this means the macro was only invoked conditionally." "$LINENO" 5
32927fi
32928if test -z "${FBDEVHW_TRUE}" && test -z "${FBDEVHW_FALSE}"; then
32929  as_fn_error $? "conditional \"FBDEVHW\" was never defined.
32930Usually this means the macro was only invoked conditionally." "$LINENO" 5
32931fi
32932if test -z "${FREEBSD_KLDLOAD_TRUE}" && test -z "${FREEBSD_KLDLOAD_FALSE}"; then
32933  as_fn_error $? "conditional \"FREEBSD_KLDLOAD\" was never defined.
32934Usually this means the macro was only invoked conditionally." "$LINENO" 5
32935fi
32936if test -z "${BSD_APM_TRUE}" && test -z "${BSD_APM_FALSE}"; then
32937  as_fn_error $? "conditional \"BSD_APM\" was never defined.
32938Usually this means the macro was only invoked conditionally." "$LINENO" 5
32939fi
32940if test -z "${BSD_KQUEUE_APM_TRUE}" && test -z "${BSD_KQUEUE_APM_FALSE}"; then
32941  as_fn_error $? "conditional \"BSD_KQUEUE_APM\" was never defined.
32942Usually this means the macro was only invoked conditionally." "$LINENO" 5
32943fi
32944if test -z "${ALPHA_VIDEO_TRUE}" && test -z "${ALPHA_VIDEO_FALSE}"; then
32945  as_fn_error $? "conditional \"ALPHA_VIDEO\" was never defined.
32946Usually this means the macro was only invoked conditionally." "$LINENO" 5
32947fi
32948if test -z "${ARM_VIDEO_TRUE}" && test -z "${ARM_VIDEO_FALSE}"; then
32949  as_fn_error $? "conditional \"ARM_VIDEO\" was never defined.
32950Usually this means the macro was only invoked conditionally." "$LINENO" 5
32951fi
32952if test -z "${I386_VIDEO_TRUE}" && test -z "${I386_VIDEO_FALSE}"; then
32953  as_fn_error $? "conditional \"I386_VIDEO\" was never defined.
32954Usually this means the macro was only invoked conditionally." "$LINENO" 5
32955fi
32956if test -z "${PPC_VIDEO_TRUE}" && test -z "${PPC_VIDEO_FALSE}"; then
32957  as_fn_error $? "conditional \"PPC_VIDEO\" was never defined.
32958Usually this means the macro was only invoked conditionally." "$LINENO" 5
32959fi
32960if test -z "${SPARC64_VIDEO_TRUE}" && test -z "${SPARC64_VIDEO_FALSE}"; then
32961  as_fn_error $? "conditional \"SPARC64_VIDEO\" was never defined.
32962Usually this means the macro was only invoked conditionally." "$LINENO" 5
32963fi
32964if test -z "${INSTALL_SETUID_TRUE}" && test -z "${INSTALL_SETUID_FALSE}"; then
32965  as_fn_error $? "conditional \"INSTALL_SETUID\" was never defined.
32966Usually this means the macro was only invoked conditionally." "$LINENO" 5
32967fi
32968if test -z "${SECURE_RPC_TRUE}" && test -z "${SECURE_RPC_FALSE}"; then
32969  as_fn_error $? "conditional \"SECURE_RPC\" was never defined.
32970Usually this means the macro was only invoked conditionally." "$LINENO" 5
32971fi
32972if test -z "${INT10_VM86_TRUE}" && test -z "${INT10_VM86_FALSE}"; then
32973  as_fn_error $? "conditional \"INT10_VM86\" was never defined.
32974Usually this means the macro was only invoked conditionally." "$LINENO" 5
32975fi
32976if test -z "${INT10_X86EMU_TRUE}" && test -z "${INT10_X86EMU_FALSE}"; then
32977  as_fn_error $? "conditional \"INT10_X86EMU\" was never defined.
32978Usually this means the macro was only invoked conditionally." "$LINENO" 5
32979fi
32980if test -z "${INT10_STUB_TRUE}" && test -z "${INT10_STUB_FALSE}"; then
32981  as_fn_error $? "conditional \"INT10_STUB\" was never defined.
32982Usually this means the macro was only invoked conditionally." "$LINENO" 5
32983fi
32984if test -z "${HAVE_SYSTEMD_DAEMON_TRUE}" && test -z "${HAVE_SYSTEMD_DAEMON_FALSE}"; then
32985  as_fn_error $? "conditional \"HAVE_SYSTEMD_DAEMON\" was never defined.
32986Usually this means the macro was only invoked conditionally." "$LINENO" 5
32987fi
32988if test -z "${CONFIG_DEVD_TRUE}" && test -z "${CONFIG_DEVD_FALSE}"; then
32989  as_fn_error $? "conditional \"CONFIG_DEVD\" was never defined.
32990Usually this means the macro was only invoked conditionally." "$LINENO" 5
32991fi
32992if test -z "${CONFIG_UDEV_TRUE}" && test -z "${CONFIG_UDEV_FALSE}"; then
32993  as_fn_error $? "conditional \"CONFIG_UDEV\" was never defined.
32994Usually this means the macro was only invoked conditionally." "$LINENO" 5
32995fi
32996if test -z "${CONFIG_UDEV_KMS_TRUE}" && test -z "${CONFIG_UDEV_KMS_FALSE}"; then
32997  as_fn_error $? "conditional \"CONFIG_UDEV_KMS\" was never defined.
32998Usually this means the macro was only invoked conditionally." "$LINENO" 5
32999fi
33000if test -z "${HAVE_DBUS_TRUE}" && test -z "${HAVE_DBUS_FALSE}"; then
33001  as_fn_error $? "conditional \"HAVE_DBUS\" was never defined.
33002Usually this means the macro was only invoked conditionally." "$LINENO" 5
33003fi
33004if test -z "${CONFIG_HAL_TRUE}" && test -z "${CONFIG_HAL_FALSE}"; then
33005  as_fn_error $? "conditional \"CONFIG_HAL\" was never defined.
33006Usually this means the macro was only invoked conditionally." "$LINENO" 5
33007fi
33008if test -z "${SYSTEMD_LOGIND_TRUE}" && test -z "${SYSTEMD_LOGIND_FALSE}"; then
33009  as_fn_error $? "conditional \"SYSTEMD_LOGIND\" was never defined.
33010Usually this means the macro was only invoked conditionally." "$LINENO" 5
33011fi
33012if test -z "${SUID_WRAPPER_TRUE}" && test -z "${SUID_WRAPPER_FALSE}"; then
33013  as_fn_error $? "conditional \"SUID_WRAPPER\" was never defined.
33014Usually this means the macro was only invoked conditionally." "$LINENO" 5
33015fi
33016if test -z "${NEED_DBUS_TRUE}" && test -z "${NEED_DBUS_FALSE}"; then
33017  as_fn_error $? "conditional \"NEED_DBUS\" was never defined.
33018Usually this means the macro was only invoked conditionally." "$LINENO" 5
33019fi
33020if test -z "${CONFIG_WSCONS_TRUE}" && test -z "${CONFIG_WSCONS_FALSE}"; then
33021  as_fn_error $? "conditional \"CONFIG_WSCONS\" was never defined.
33022Usually this means the macro was only invoked conditionally." "$LINENO" 5
33023fi
33024if test -z "${XV_TRUE}" && test -z "${XV_FALSE}"; then
33025  as_fn_error $? "conditional \"XV\" was never defined.
33026Usually this means the macro was only invoked conditionally." "$LINENO" 5
33027fi
33028if test -z "${XVMC_TRUE}" && test -z "${XVMC_FALSE}"; then
33029  as_fn_error $? "conditional \"XVMC\" was never defined.
33030Usually this means the macro was only invoked conditionally." "$LINENO" 5
33031fi
33032if test -z "${COMPOSITE_TRUE}" && test -z "${COMPOSITE_FALSE}"; then
33033  as_fn_error $? "conditional \"COMPOSITE\" was never defined.
33034Usually this means the macro was only invoked conditionally." "$LINENO" 5
33035fi
33036if test -z "${MITSHM_TRUE}" && test -z "${MITSHM_FALSE}"; then
33037  as_fn_error $? "conditional \"MITSHM\" was never defined.
33038Usually this means the macro was only invoked conditionally." "$LINENO" 5
33039fi
33040if test -z "${RECORD_TRUE}" && test -z "${RECORD_FALSE}"; then
33041  as_fn_error $? "conditional \"RECORD\" was never defined.
33042Usually this means the macro was only invoked conditionally." "$LINENO" 5
33043fi
33044if test -z "${SCREENSAVER_TRUE}" && test -z "${SCREENSAVER_FALSE}"; then
33045  as_fn_error $? "conditional \"SCREENSAVER\" was never defined.
33046Usually this means the macro was only invoked conditionally." "$LINENO" 5
33047fi
33048if test -z "${RES_TRUE}" && test -z "${RES_FALSE}"; then
33049  as_fn_error $? "conditional \"RES\" was never defined.
33050Usually this means the macro was only invoked conditionally." "$LINENO" 5
33051fi
33052if test -z "${CLIENTIDS_TRUE}" && test -z "${CLIENTIDS_FALSE}"; then
33053  as_fn_error $? "conditional \"CLIENTIDS\" was never defined.
33054Usually this means the macro was only invoked conditionally." "$LINENO" 5
33055fi
33056if test -z "${DRI_TRUE}" && test -z "${DRI_FALSE}"; then
33057  as_fn_error $? "conditional \"DRI\" was never defined.
33058Usually this means the macro was only invoked conditionally." "$LINENO" 5
33059fi
33060if test -z "${DRI2_TRUE}" && test -z "${DRI2_FALSE}"; then
33061  as_fn_error $? "conditional \"DRI2\" was never defined.
33062Usually this means the macro was only invoked conditionally." "$LINENO" 5
33063fi
33064if test -z "${BUSFAULT_TRUE}" && test -z "${BUSFAULT_FALSE}"; then
33065  as_fn_error $? "conditional \"BUSFAULT\" was never defined.
33066Usually this means the macro was only invoked conditionally." "$LINENO" 5
33067fi
33068if test -z "${XSHMFENCE_TRUE}" && test -z "${XSHMFENCE_FALSE}"; then
33069  as_fn_error $? "conditional \"XSHMFENCE\" was never defined.
33070Usually this means the macro was only invoked conditionally." "$LINENO" 5
33071fi
33072if test -z "${DRI3_TRUE}" && test -z "${DRI3_FALSE}"; then
33073  as_fn_error $? "conditional \"DRI3\" was never defined.
33074Usually this means the macro was only invoked conditionally." "$LINENO" 5
33075fi
33076if test -z "${GLX_TRUE}" && test -z "${GLX_FALSE}"; then
33077  as_fn_error $? "conditional \"GLX\" was never defined.
33078Usually this means the macro was only invoked conditionally." "$LINENO" 5
33079fi
33080if test -z "${HASHTABLE_TRUE}" && test -z "${HASHTABLE_FALSE}"; then
33081  as_fn_error $? "conditional \"HASHTABLE\" was never defined.
33082Usually this means the macro was only invoked conditionally." "$LINENO" 5
33083fi
33084if test -z "${PRESENT_TRUE}" && test -z "${PRESENT_FALSE}"; then
33085  as_fn_error $? "conditional \"PRESENT\" was never defined.
33086Usually this means the macro was only invoked conditionally." "$LINENO" 5
33087fi
33088if test -z "${XINERAMA_TRUE}" && test -z "${XINERAMA_FALSE}"; then
33089  as_fn_error $? "conditional \"XINERAMA\" was never defined.
33090Usually this means the macro was only invoked conditionally." "$LINENO" 5
33091fi
33092if test -z "${XACE_TRUE}" && test -z "${XACE_FALSE}"; then
33093  as_fn_error $? "conditional \"XACE\" was never defined.
33094Usually this means the macro was only invoked conditionally." "$LINENO" 5
33095fi
33096if test -z "${XSELINUX_TRUE}" && test -z "${XSELINUX_FALSE}"; then
33097  as_fn_error $? "conditional \"XSELINUX\" was never defined.
33098Usually this means the macro was only invoked conditionally." "$LINENO" 5
33099fi
33100if test -z "${XCSECURITY_TRUE}" && test -z "${XCSECURITY_FALSE}"; then
33101  as_fn_error $? "conditional \"XCSECURITY\" was never defined.
33102Usually this means the macro was only invoked conditionally." "$LINENO" 5
33103fi
33104if test -z "${DBE_TRUE}" && test -z "${DBE_FALSE}"; then
33105  as_fn_error $? "conditional \"DBE\" was never defined.
33106Usually this means the macro was only invoked conditionally." "$LINENO" 5
33107fi
33108if test -z "${XF86BIGFONT_TRUE}" && test -z "${XF86BIGFONT_FALSE}"; then
33109  as_fn_error $? "conditional \"XF86BIGFONT\" was never defined.
33110Usually this means the macro was only invoked conditionally." "$LINENO" 5
33111fi
33112if test -z "${DPMSExtension_TRUE}" && test -z "${DPMSExtension_FALSE}"; then
33113  as_fn_error $? "conditional \"DPMSExtension\" was never defined.
33114Usually this means the macro was only invoked conditionally." "$LINENO" 5
33115fi
33116if test -z "${XF86UTILS_TRUE}" && test -z "${XF86UTILS_FALSE}"; then
33117  as_fn_error $? "conditional \"XF86UTILS\" was never defined.
33118Usually this means the macro was only invoked conditionally." "$LINENO" 5
33119fi
33120if test -z "${VGAHW_TRUE}" && test -z "${VGAHW_FALSE}"; then
33121  as_fn_error $? "conditional \"VGAHW\" was never defined.
33122Usually this means the macro was only invoked conditionally." "$LINENO" 5
33123fi
33124if test -z "${VBE_TRUE}" && test -z "${VBE_FALSE}"; then
33125  as_fn_error $? "conditional \"VBE\" was never defined.
33126Usually this means the macro was only invoked conditionally." "$LINENO" 5
33127fi
33128if test -z "${INT10MODULE_TRUE}" && test -z "${INT10MODULE_FALSE}"; then
33129  as_fn_error $? "conditional \"INT10MODULE\" was never defined.
33130Usually this means the macro was only invoked conditionally." "$LINENO" 5
33131fi
33132if test -z "${XDMCP_TRUE}" && test -z "${XDMCP_FALSE}"; then
33133  as_fn_error $? "conditional \"XDMCP\" was never defined.
33134Usually this means the macro was only invoked conditionally." "$LINENO" 5
33135fi
33136if test -z "${XDMAUTH_TRUE}" && test -z "${XDMAUTH_FALSE}"; then
33137  as_fn_error $? "conditional \"XDMAUTH\" was never defined.
33138Usually this means the macro was only invoked conditionally." "$LINENO" 5
33139fi
33140if test -z "${XF86VIDMODE_TRUE}" && test -z "${XF86VIDMODE_FALSE}"; then
33141  as_fn_error $? "conditional \"XF86VIDMODE\" was never defined.
33142Usually this means the macro was only invoked conditionally." "$LINENO" 5
33143fi
33144if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then
33145  as_fn_error $? "conditional \"DEBUG\" was never defined.
33146Usually this means the macro was only invoked conditionally." "$LINENO" 5
33147fi
33148if test -z "${HAVE_LIBUNWIND_TRUE}" && test -z "${HAVE_LIBUNWIND_FALSE}"; then
33149  as_fn_error $? "conditional \"HAVE_LIBUNWIND\" was never defined.
33150Usually this means the macro was only invoked conditionally." "$LINENO" 5
33151fi
33152if test -z "${CYGWIN_TRUE}" && test -z "${CYGWIN_FALSE}"; then
33153  as_fn_error $? "conditional \"CYGWIN\" was never defined.
33154Usually this means the macro was only invoked conditionally." "$LINENO" 5
33155fi
33156if test -z "${NO_UNDEFINED_TRUE}" && test -z "${NO_UNDEFINED_FALSE}"; then
33157  as_fn_error $? "conditional \"NO_UNDEFINED\" was never defined.
33158Usually this means the macro was only invoked conditionally." "$LINENO" 5
33159fi
33160if test -z "${XVFB_TRUE}" && test -z "${XVFB_FALSE}"; then
33161  as_fn_error $? "conditional \"XVFB\" was never defined.
33162Usually this means the macro was only invoked conditionally." "$LINENO" 5
33163fi
33164if test -z "${XNEST_TRUE}" && test -z "${XNEST_FALSE}"; then
33165  as_fn_error $? "conditional \"XNEST\" was never defined.
33166Usually this means the macro was only invoked conditionally." "$LINENO" 5
33167fi
33168if test -z "${XORG_TRUE}" && test -z "${XORG_FALSE}"; then
33169  as_fn_error $? "conditional \"XORG\" was never defined.
33170Usually this means the macro was only invoked conditionally." "$LINENO" 5
33171fi
33172if test -z "${XORG_BUS_PCI_TRUE}" && test -z "${XORG_BUS_PCI_FALSE}"; then
33173  as_fn_error $? "conditional \"XORG_BUS_PCI\" was never defined.
33174Usually this means the macro was only invoked conditionally." "$LINENO" 5
33175fi
33176if test -z "${XORG_BUS_BSDPCI_TRUE}" && test -z "${XORG_BUS_BSDPCI_FALSE}"; then
33177  as_fn_error $? "conditional \"XORG_BUS_BSDPCI\" was never defined.
33178Usually this means the macro was only invoked conditionally." "$LINENO" 5
33179fi
33180if test -z "${XORG_BUS_SPARC_TRUE}" && test -z "${XORG_BUS_SPARC_FALSE}"; then
33181  as_fn_error $? "conditional \"XORG_BUS_SPARC\" was never defined.
33182Usually this means the macro was only invoked conditionally." "$LINENO" 5
33183fi
33184if test -z "${LNXACPI_TRUE}" && test -z "${LNXACPI_FALSE}"; then
33185  as_fn_error $? "conditional \"LNXACPI\" was never defined.
33186Usually this means the macro was only invoked conditionally." "$LINENO" 5
33187fi
33188if test -z "${LNXAPM_TRUE}" && test -z "${LNXAPM_FALSE}"; then
33189  as_fn_error $? "conditional \"LNXAPM\" was never defined.
33190Usually this means the macro was only invoked conditionally." "$LINENO" 5
33191fi
33192if test -z "${SOLARIS_VT_TRUE}" && test -z "${SOLARIS_VT_FALSE}"; then
33193  as_fn_error $? "conditional \"SOLARIS_VT\" was never defined.
33194Usually this means the macro was only invoked conditionally." "$LINENO" 5
33195fi
33196if test -z "${DGA_TRUE}" && test -z "${DGA_FALSE}"; then
33197  as_fn_error $? "conditional \"DGA\" was never defined.
33198Usually this means the macro was only invoked conditionally." "$LINENO" 5
33199fi
33200if test -z "${XORG_BUS_PLATFORM_TRUE}" && test -z "${XORG_BUS_PLATFORM_FALSE}"; then
33201  as_fn_error $? "conditional \"XORG_BUS_PLATFORM\" was never defined.
33202Usually this means the macro was only invoked conditionally." "$LINENO" 5
33203fi
33204if test -z "${XORG_DRIVER_MODESETTING_TRUE}" && test -z "${XORG_DRIVER_MODESETTING_FALSE}"; then
33205  as_fn_error $? "conditional \"XORG_DRIVER_MODESETTING\" was never defined.
33206Usually this means the macro was only invoked conditionally." "$LINENO" 5
33207fi
33208if test -z "${GLAMOR_TRUE}" && test -z "${GLAMOR_FALSE}"; then
33209  as_fn_error $? "conditional \"GLAMOR\" was never defined.
33210Usually this means the macro was only invoked conditionally." "$LINENO" 5
33211fi
33212if test -z "${GLAMOR_EGL_TRUE}" && test -z "${GLAMOR_EGL_FALSE}"; then
33213  as_fn_error $? "conditional \"GLAMOR_EGL\" was never defined.
33214Usually this means the macro was only invoked conditionally." "$LINENO" 5
33215fi
33216if test -z "${XWIN_TRUE}" && test -z "${XWIN_FALSE}"; then
33217  as_fn_error $? "conditional \"XWIN\" was never defined.
33218Usually this means the macro was only invoked conditionally." "$LINENO" 5
33219fi
33220if test -z "${XWIN_MULTIWINDOWEXTWM_TRUE}" && test -z "${XWIN_MULTIWINDOWEXTWM_FALSE}"; then
33221  as_fn_error $? "conditional \"XWIN_MULTIWINDOWEXTWM\" was never defined.
33222Usually this means the macro was only invoked conditionally." "$LINENO" 5
33223fi
33224if test -z "${XWIN_GLX_WINDOWS_TRUE}" && test -z "${XWIN_GLX_WINDOWS_FALSE}"; then
33225  as_fn_error $? "conditional \"XWIN_GLX_WINDOWS\" was never defined.
33226Usually this means the macro was only invoked conditionally." "$LINENO" 5
33227fi
33228if test -z "${XWIN_WINDOWS_DRI_TRUE}" && test -z "${XWIN_WINDOWS_DRI_FALSE}"; then
33229  as_fn_error $? "conditional \"XWIN_WINDOWS_DRI\" was never defined.
33230Usually this means the macro was only invoked conditionally." "$LINENO" 5
33231fi
33232if test -z "${PSEUDORAMIX_TRUE}" && test -z "${PSEUDORAMIX_FALSE}"; then
33233  as_fn_error $? "conditional \"PSEUDORAMIX\" was never defined.
33234Usually this means the macro was only invoked conditionally." "$LINENO" 5
33235fi
33236if test -z "${am__fastdepOBJC_TRUE}" && test -z "${am__fastdepOBJC_FALSE}"; then
33237  as_fn_error $? "conditional \"am__fastdepOBJC\" was never defined.
33238Usually this means the macro was only invoked conditionally." "$LINENO" 5
33239fi
33240if test -z "${XQUARTZ_TRUE}" && test -z "${XQUARTZ_FALSE}"; then
33241  as_fn_error $? "conditional \"XQUARTZ\" was never defined.
33242Usually this means the macro was only invoked conditionally." "$LINENO" 5
33243fi
33244if test -z "${XQUARTZ_SPARKLE_TRUE}" && test -z "${XQUARTZ_SPARKLE_FALSE}"; then
33245  as_fn_error $? "conditional \"XQUARTZ_SPARKLE\" was never defined.
33246Usually this means the macro was only invoked conditionally." "$LINENO" 5
33247fi
33248if test -z "${STANDALONE_XPBPROXY_TRUE}" && test -z "${STANDALONE_XPBPROXY_FALSE}"; then
33249  as_fn_error $? "conditional \"STANDALONE_XPBPROXY\" was never defined.
33250Usually this means the macro was only invoked conditionally." "$LINENO" 5
33251fi
33252if test -z "${DMX_TRUE}" && test -z "${DMX_FALSE}"; then
33253  as_fn_error $? "conditional \"DMX\" was never defined.
33254Usually this means the macro was only invoked conditionally." "$LINENO" 5
33255fi
33256if test -z "${DMX_BUILD_USB_TRUE}" && test -z "${DMX_BUILD_USB_FALSE}"; then
33257  as_fn_error $? "conditional \"DMX_BUILD_USB\" was never defined.
33258Usually this means the macro was only invoked conditionally." "$LINENO" 5
33259fi
33260if test -z "${KDRIVE_TRUE}" && test -z "${KDRIVE_FALSE}"; then
33261  as_fn_error $? "conditional \"KDRIVE\" was never defined.
33262Usually this means the macro was only invoked conditionally." "$LINENO" 5
33263fi
33264if test -z "${XEPHYR_TRUE}" && test -z "${XEPHYR_FALSE}"; then
33265  as_fn_error $? "conditional \"XEPHYR\" was never defined.
33266Usually this means the macro was only invoked conditionally." "$LINENO" 5
33267fi
33268if test -z "${XWAYLAND_TRUE}" && test -z "${XWAYLAND_FALSE}"; then
33269  as_fn_error $? "conditional \"XWAYLAND\" was never defined.
33270Usually this means the macro was only invoked conditionally." "$LINENO" 5
33271fi
33272if test -z "${XWAYLAND_EGLSTREAM_TRUE}" && test -z "${XWAYLAND_EGLSTREAM_FALSE}"; then
33273  as_fn_error $? "conditional \"XWAYLAND_EGLSTREAM\" was never defined.
33274Usually this means the macro was only invoked conditionally." "$LINENO" 5
33275fi
33276
33277: "${CONFIG_STATUS=./config.status}"
33278ac_write_fail=0
33279ac_clean_files_save=$ac_clean_files
33280ac_clean_files="$ac_clean_files $CONFIG_STATUS"
33281{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
33282$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
33283as_write_fail=0
33284cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
33285#! $SHELL
33286# Generated by $as_me.
33287# Run this file to recreate the current configuration.
33288# Compiler output produced by configure, useful for debugging
33289# configure, is in config.log if it exists.
33290
33291debug=false
33292ac_cs_recheck=false
33293ac_cs_silent=false
33294
33295SHELL=\${CONFIG_SHELL-$SHELL}
33296export SHELL
33297_ASEOF
33298cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
33299## -------------------- ##
33300## M4sh Initialization. ##
33301## -------------------- ##
33302
33303# Be more Bourne compatible
33304DUALCASE=1; export DUALCASE # for MKS sh
33305if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
33306  emulate sh
33307  NULLCMD=:
33308  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
33309  # is contrary to our usage.  Disable this feature.
33310  alias -g '${1+"$@"}'='"$@"'
33311  setopt NO_GLOB_SUBST
33312else
33313  case `(set -o) 2>/dev/null` in #(
33314  *posix*) :
33315    set -o posix ;; #(
33316  *) :
33317     ;;
33318esac
33319fi
33320
33321
33322as_nl='
33323'
33324export as_nl
33325# Printing a long string crashes Solaris 7 /usr/bin/printf.
33326as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
33327as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
33328as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
33329# Prefer a ksh shell builtin over an external printf program on Solaris,
33330# but without wasting forks for bash or zsh.
33331if test -z "$BASH_VERSION$ZSH_VERSION" \
33332    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
33333  as_echo='print -r --'
33334  as_echo_n='print -rn --'
33335elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
33336  as_echo='printf %s\n'
33337  as_echo_n='printf %s'
33338else
33339  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
33340    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
33341    as_echo_n='/usr/ucb/echo -n'
33342  else
33343    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
33344    as_echo_n_body='eval
33345      arg=$1;
33346      case $arg in #(
33347      *"$as_nl"*)
33348	expr "X$arg" : "X\\(.*\\)$as_nl";
33349	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
33350      esac;
33351      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
33352    '
33353    export as_echo_n_body
33354    as_echo_n='sh -c $as_echo_n_body as_echo'
33355  fi
33356  export as_echo_body
33357  as_echo='sh -c $as_echo_body as_echo'
33358fi
33359
33360# The user is always right.
33361if test "${PATH_SEPARATOR+set}" != set; then
33362  PATH_SEPARATOR=:
33363  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
33364    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
33365      PATH_SEPARATOR=';'
33366  }
33367fi
33368
33369
33370# IFS
33371# We need space, tab and new line, in precisely that order.  Quoting is
33372# there to prevent editors from complaining about space-tab.
33373# (If _AS_PATH_WALK were called with IFS unset, it would disable word
33374# splitting by setting IFS to empty value.)
33375IFS=" ""	$as_nl"
33376
33377# Find who we are.  Look in the path if we contain no directory separator.
33378as_myself=
33379case $0 in #((
33380  *[\\/]* ) as_myself=$0 ;;
33381  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33382for as_dir in $PATH
33383do
33384  IFS=$as_save_IFS
33385  test -z "$as_dir" && as_dir=.
33386    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33387  done
33388IFS=$as_save_IFS
33389
33390     ;;
33391esac
33392# We did not find ourselves, most probably we were run as `sh COMMAND'
33393# in which case we are not to be found in the path.
33394if test "x$as_myself" = x; then
33395  as_myself=$0
33396fi
33397if test ! -f "$as_myself"; then
33398  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
33399  exit 1
33400fi
33401
33402# Unset variables that we do not need and which cause bugs (e.g. in
33403# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
33404# suppresses any "Segmentation fault" message there.  '((' could
33405# trigger a bug in pdksh 5.2.14.
33406for as_var in BASH_ENV ENV MAIL MAILPATH
33407do eval test x\${$as_var+set} = xset \
33408  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
33409done
33410PS1='$ '
33411PS2='> '
33412PS4='+ '
33413
33414# NLS nuisances.
33415LC_ALL=C
33416export LC_ALL
33417LANGUAGE=C
33418export LANGUAGE
33419
33420# CDPATH.
33421(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
33422
33423
33424# as_fn_error STATUS ERROR [LINENO LOG_FD]
33425# ----------------------------------------
33426# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
33427# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
33428# script with STATUS, using 1 if that was 0.
33429as_fn_error ()
33430{
33431  as_status=$1; test $as_status -eq 0 && as_status=1
33432  if test "$4"; then
33433    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
33434    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
33435  fi
33436  $as_echo "$as_me: error: $2" >&2
33437  as_fn_exit $as_status
33438} # as_fn_error
33439
33440
33441# as_fn_set_status STATUS
33442# -----------------------
33443# Set $? to STATUS, without forking.
33444as_fn_set_status ()
33445{
33446  return $1
33447} # as_fn_set_status
33448
33449# as_fn_exit STATUS
33450# -----------------
33451# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
33452as_fn_exit ()
33453{
33454  set +e
33455  as_fn_set_status $1
33456  exit $1
33457} # as_fn_exit
33458
33459# as_fn_unset VAR
33460# ---------------
33461# Portably unset VAR.
33462as_fn_unset ()
33463{
33464  { eval $1=; unset $1;}
33465}
33466as_unset=as_fn_unset
33467# as_fn_append VAR VALUE
33468# ----------------------
33469# Append the text in VALUE to the end of the definition contained in VAR. Take
33470# advantage of any shell optimizations that allow amortized linear growth over
33471# repeated appends, instead of the typical quadratic growth present in naive
33472# implementations.
33473if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
33474  eval 'as_fn_append ()
33475  {
33476    eval $1+=\$2
33477  }'
33478else
33479  as_fn_append ()
33480  {
33481    eval $1=\$$1\$2
33482  }
33483fi # as_fn_append
33484
33485# as_fn_arith ARG...
33486# ------------------
33487# Perform arithmetic evaluation on the ARGs, and store the result in the
33488# global $as_val. Take advantage of shells that can avoid forks. The arguments
33489# must be portable across $(()) and expr.
33490if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
33491  eval 'as_fn_arith ()
33492  {
33493    as_val=$(( $* ))
33494  }'
33495else
33496  as_fn_arith ()
33497  {
33498    as_val=`expr "$@" || test $? -eq 1`
33499  }
33500fi # as_fn_arith
33501
33502
33503if expr a : '\(a\)' >/dev/null 2>&1 &&
33504   test "X`expr 00001 : '.*\(...\)'`" = X001; then
33505  as_expr=expr
33506else
33507  as_expr=false
33508fi
33509
33510if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33511  as_basename=basename
33512else
33513  as_basename=false
33514fi
33515
33516if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
33517  as_dirname=dirname
33518else
33519  as_dirname=false
33520fi
33521
33522as_me=`$as_basename -- "$0" ||
33523$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33524	 X"$0" : 'X\(//\)$' \| \
33525	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33526$as_echo X/"$0" |
33527    sed '/^.*\/\([^/][^/]*\)\/*$/{
33528	    s//\1/
33529	    q
33530	  }
33531	  /^X\/\(\/\/\)$/{
33532	    s//\1/
33533	    q
33534	  }
33535	  /^X\/\(\/\).*/{
33536	    s//\1/
33537	    q
33538	  }
33539	  s/.*/./; q'`
33540
33541# Avoid depending upon Character Ranges.
33542as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33543as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33544as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33545as_cr_digits='0123456789'
33546as_cr_alnum=$as_cr_Letters$as_cr_digits
33547
33548ECHO_C= ECHO_N= ECHO_T=
33549case `echo -n x` in #(((((
33550-n*)
33551  case `echo 'xy\c'` in
33552  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
33553  xy)  ECHO_C='\c';;
33554  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
33555       ECHO_T='	';;
33556  esac;;
33557*)
33558  ECHO_N='-n';;
33559esac
33560
33561rm -f conf$$ conf$$.exe conf$$.file
33562if test -d conf$$.dir; then
33563  rm -f conf$$.dir/conf$$.file
33564else
33565  rm -f conf$$.dir
33566  mkdir conf$$.dir 2>/dev/null
33567fi
33568if (echo >conf$$.file) 2>/dev/null; then
33569  if ln -s conf$$.file conf$$ 2>/dev/null; then
33570    as_ln_s='ln -s'
33571    # ... but there are two gotchas:
33572    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33573    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33574    # In both cases, we have to default to `cp -pR'.
33575    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
33576      as_ln_s='cp -pR'
33577  elif ln conf$$.file conf$$ 2>/dev/null; then
33578    as_ln_s=ln
33579  else
33580    as_ln_s='cp -pR'
33581  fi
33582else
33583  as_ln_s='cp -pR'
33584fi
33585rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
33586rmdir conf$$.dir 2>/dev/null
33587
33588
33589# as_fn_mkdir_p
33590# -------------
33591# Create "$as_dir" as a directory, including parents if necessary.
33592as_fn_mkdir_p ()
33593{
33594
33595  case $as_dir in #(
33596  -*) as_dir=./$as_dir;;
33597  esac
33598  test -d "$as_dir" || eval $as_mkdir_p || {
33599    as_dirs=
33600    while :; do
33601      case $as_dir in #(
33602      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
33603      *) as_qdir=$as_dir;;
33604      esac
33605      as_dirs="'$as_qdir' $as_dirs"
33606      as_dir=`$as_dirname -- "$as_dir" ||
33607$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33608	 X"$as_dir" : 'X\(//\)[^/]' \| \
33609	 X"$as_dir" : 'X\(//\)$' \| \
33610	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33611$as_echo X"$as_dir" |
33612    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33613	    s//\1/
33614	    q
33615	  }
33616	  /^X\(\/\/\)[^/].*/{
33617	    s//\1/
33618	    q
33619	  }
33620	  /^X\(\/\/\)$/{
33621	    s//\1/
33622	    q
33623	  }
33624	  /^X\(\/\).*/{
33625	    s//\1/
33626	    q
33627	  }
33628	  s/.*/./; q'`
33629      test -d "$as_dir" && break
33630    done
33631    test -z "$as_dirs" || eval "mkdir $as_dirs"
33632  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
33633
33634
33635} # as_fn_mkdir_p
33636if mkdir -p . 2>/dev/null; then
33637  as_mkdir_p='mkdir -p "$as_dir"'
33638else
33639  test -d ./-p && rmdir ./-p
33640  as_mkdir_p=false
33641fi
33642
33643
33644# as_fn_executable_p FILE
33645# -----------------------
33646# Test if FILE is an executable regular file.
33647as_fn_executable_p ()
33648{
33649  test -f "$1" && test -x "$1"
33650} # as_fn_executable_p
33651as_test_x='test -x'
33652as_executable_p=as_fn_executable_p
33653
33654# Sed expression to map a string onto a valid CPP name.
33655as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33656
33657# Sed expression to map a string onto a valid variable name.
33658as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33659
33660
33661exec 6>&1
33662## ----------------------------------- ##
33663## Main body of $CONFIG_STATUS script. ##
33664## ----------------------------------- ##
33665_ASEOF
33666test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
33667
33668cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33669# Save the log message, to keep $0 and so on meaningful, and to
33670# report actual input values of CONFIG_FILES etc. instead of their
33671# values after options handling.
33672ac_log="
33673This file was extended by xorg-server $as_me 1.20.13, which was
33674generated by GNU Autoconf 2.69.  Invocation command line was
33675
33676  CONFIG_FILES    = $CONFIG_FILES
33677  CONFIG_HEADERS  = $CONFIG_HEADERS
33678  CONFIG_LINKS    = $CONFIG_LINKS
33679  CONFIG_COMMANDS = $CONFIG_COMMANDS
33680  $ $0 $@
33681
33682on `(hostname || uname -n) 2>/dev/null | sed 1q`
33683"
33684
33685_ACEOF
33686
33687case $ac_config_files in *"
33688"*) set x $ac_config_files; shift; ac_config_files=$*;;
33689esac
33690
33691case $ac_config_headers in *"
33692"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
33693esac
33694
33695
33696cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33697# Files that config.status was made for.
33698config_files="$ac_config_files"
33699config_headers="$ac_config_headers"
33700config_commands="$ac_config_commands"
33701
33702_ACEOF
33703
33704cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33705ac_cs_usage="\
33706\`$as_me' instantiates files and other configuration actions
33707from templates according to the current configuration.  Unless the files
33708and actions are specified as TAGs, all are instantiated by default.
33709
33710Usage: $0 [OPTION]... [TAG]...
33711
33712  -h, --help       print this help, then exit
33713  -V, --version    print version number and configuration settings, then exit
33714      --config     print configuration, then exit
33715  -q, --quiet, --silent
33716                   do not print progress messages
33717  -d, --debug      don't remove temporary files
33718      --recheck    update $as_me by reconfiguring in the same conditions
33719      --file=FILE[:TEMPLATE]
33720                   instantiate the configuration file FILE
33721      --header=FILE[:TEMPLATE]
33722                   instantiate the configuration header FILE
33723
33724Configuration files:
33725$config_files
33726
33727Configuration headers:
33728$config_headers
33729
33730Configuration commands:
33731$config_commands
33732
33733Report bugs to <https://gitlab.freedesktop.org/xorg/xserver/issues>."
33734
33735_ACEOF
33736cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33737ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
33738ac_cs_version="\\
33739xorg-server config.status 1.20.13
33740configured by $0, generated by GNU Autoconf 2.69,
33741  with options \\"\$ac_cs_config\\"
33742
33743Copyright (C) 2012 Free Software Foundation, Inc.
33744This config.status script is free software; the Free Software Foundation
33745gives unlimited permission to copy, distribute and modify it."
33746
33747ac_pwd='$ac_pwd'
33748srcdir='$srcdir'
33749INSTALL='$INSTALL'
33750MKDIR_P='$MKDIR_P'
33751AWK='$AWK'
33752test -n "\$AWK" || AWK=awk
33753_ACEOF
33754
33755cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33756# The default lists apply if the user does not specify any file.
33757ac_need_defaults=:
33758while test $# != 0
33759do
33760  case $1 in
33761  --*=?*)
33762    ac_option=`expr "X$1" : 'X\([^=]*\)='`
33763    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
33764    ac_shift=:
33765    ;;
33766  --*=)
33767    ac_option=`expr "X$1" : 'X\([^=]*\)='`
33768    ac_optarg=
33769    ac_shift=:
33770    ;;
33771  *)
33772    ac_option=$1
33773    ac_optarg=$2
33774    ac_shift=shift
33775    ;;
33776  esac
33777
33778  case $ac_option in
33779  # Handling of the options.
33780  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33781    ac_cs_recheck=: ;;
33782  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
33783    $as_echo "$ac_cs_version"; exit ;;
33784  --config | --confi | --conf | --con | --co | --c )
33785    $as_echo "$ac_cs_config"; exit ;;
33786  --debug | --debu | --deb | --de | --d | -d )
33787    debug=: ;;
33788  --file | --fil | --fi | --f )
33789    $ac_shift
33790    case $ac_optarg in
33791    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33792    '') as_fn_error $? "missing file argument" ;;
33793    esac
33794    as_fn_append CONFIG_FILES " '$ac_optarg'"
33795    ac_need_defaults=false;;
33796  --header | --heade | --head | --hea )
33797    $ac_shift
33798    case $ac_optarg in
33799    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33800    esac
33801    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
33802    ac_need_defaults=false;;
33803  --he | --h)
33804    # Conflict between --help and --header
33805    as_fn_error $? "ambiguous option: \`$1'
33806Try \`$0 --help' for more information.";;
33807  --help | --hel | -h )
33808    $as_echo "$ac_cs_usage"; exit ;;
33809  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33810  | -silent | --silent | --silen | --sile | --sil | --si | --s)
33811    ac_cs_silent=: ;;
33812
33813  # This is an error.
33814  -*) as_fn_error $? "unrecognized option: \`$1'
33815Try \`$0 --help' for more information." ;;
33816
33817  *) as_fn_append ac_config_targets " $1"
33818     ac_need_defaults=false ;;
33819
33820  esac
33821  shift
33822done
33823
33824ac_configure_extra_args=
33825
33826if $ac_cs_silent; then
33827  exec 6>/dev/null
33828  ac_configure_extra_args="$ac_configure_extra_args --silent"
33829fi
33830
33831_ACEOF
33832cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33833if \$ac_cs_recheck; then
33834  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33835  shift
33836  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
33837  CONFIG_SHELL='$SHELL'
33838  export CONFIG_SHELL
33839  exec "\$@"
33840fi
33841
33842_ACEOF
33843cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33844exec 5>>config.log
33845{
33846  echo
33847  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33848## Running $as_me. ##
33849_ASBOX
33850  $as_echo "$ac_log"
33851} >&5
33852
33853_ACEOF
33854cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33855#
33856# INIT-COMMANDS
33857#
33858AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
33859
33860
33861# The HP-UX ksh and POSIX shell print the target directory to stdout
33862# if CDPATH is set.
33863(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
33864
33865sed_quote_subst='$sed_quote_subst'
33866double_quote_subst='$double_quote_subst'
33867delay_variable_subst='$delay_variable_subst'
33868macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
33869macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
33870enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
33871AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
33872DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
33873OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
33874enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
33875pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
33876enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
33877shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
33878SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
33879ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
33880PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
33881host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
33882host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
33883host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
33884build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
33885build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
33886build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
33887SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
33888Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
33889GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
33890EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
33891FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
33892LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
33893NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
33894LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
33895max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
33896ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
33897exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
33898lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
33899lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
33900lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
33901lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
33902lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
33903reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
33904reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
33905deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
33906file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
33907file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
33908want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
33909sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
33910AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
33911AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
33912archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
33913STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
33914RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
33915old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
33916old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
33917old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
33918lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
33919CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
33920CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
33921compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
33922GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
33923lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
33924lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
33925lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
33926lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
33927lt_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"`'
33928lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
33929nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
33930lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
33931lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
33932objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
33933MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
33934lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
33935lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
33936lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
33937lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
33938lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
33939need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
33940MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
33941DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
33942NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
33943LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
33944OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
33945OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
33946libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
33947shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
33948extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
33949archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
33950enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
33951export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
33952whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
33953compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
33954old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
33955old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
33956archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
33957archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
33958module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
33959module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
33960with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
33961allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
33962no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
33963hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
33964hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
33965hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
33966hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
33967hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
33968hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
33969hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
33970inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
33971link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
33972always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
33973export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
33974exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
33975include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
33976prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
33977postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
33978file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
33979variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
33980need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
33981need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
33982version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
33983runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
33984shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
33985shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
33986libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
33987library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
33988soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
33989install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
33990postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
33991postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
33992finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
33993finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
33994hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
33995sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
33996configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
33997configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
33998hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
33999enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
34000enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
34001enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
34002old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
34003striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
34004
34005LTCC='$LTCC'
34006LTCFLAGS='$LTCFLAGS'
34007compiler='$compiler_DEFAULT'
34008
34009# A function that is used when there is no print builtin or printf.
34010func_fallback_echo ()
34011{
34012  eval 'cat <<_LTECHO_EOF
34013\$1
34014_LTECHO_EOF'
34015}
34016
34017# Quote evaled strings.
34018for var in AS \
34019DLLTOOL \
34020OBJDUMP \
34021SHELL \
34022ECHO \
34023PATH_SEPARATOR \
34024SED \
34025GREP \
34026EGREP \
34027FGREP \
34028LD \
34029NM \
34030LN_S \
34031lt_SP2NL \
34032lt_NL2SP \
34033reload_flag \
34034deplibs_check_method \
34035file_magic_cmd \
34036file_magic_glob \
34037want_nocaseglob \
34038sharedlib_from_linklib_cmd \
34039AR \
34040AR_FLAGS \
34041archiver_list_spec \
34042STRIP \
34043RANLIB \
34044CC \
34045CFLAGS \
34046compiler \
34047lt_cv_sys_global_symbol_pipe \
34048lt_cv_sys_global_symbol_to_cdecl \
34049lt_cv_sys_global_symbol_to_import \
34050lt_cv_sys_global_symbol_to_c_name_address \
34051lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
34052lt_cv_nm_interface \
34053nm_file_list_spec \
34054lt_cv_truncate_bin \
34055lt_prog_compiler_no_builtin_flag \
34056lt_prog_compiler_pic \
34057lt_prog_compiler_wl \
34058lt_prog_compiler_static \
34059lt_cv_prog_compiler_c_o \
34060need_locks \
34061MANIFEST_TOOL \
34062DSYMUTIL \
34063NMEDIT \
34064LIPO \
34065OTOOL \
34066OTOOL64 \
34067shrext_cmds \
34068export_dynamic_flag_spec \
34069whole_archive_flag_spec \
34070compiler_needs_object \
34071with_gnu_ld \
34072allow_undefined_flag \
34073no_undefined_flag \
34074hardcode_libdir_flag_spec \
34075hardcode_libdir_separator \
34076exclude_expsyms \
34077include_expsyms \
34078file_list_spec \
34079variables_saved_for_relink \
34080libname_spec \
34081library_names_spec \
34082soname_spec \
34083install_override_mode \
34084finish_eval \
34085old_striplib \
34086striplib; do
34087    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
34088    *[\\\\\\\`\\"\\\$]*)
34089      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
34090      ;;
34091    *)
34092      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
34093      ;;
34094    esac
34095done
34096
34097# Double-quote double-evaled strings.
34098for var in reload_cmds \
34099old_postinstall_cmds \
34100old_postuninstall_cmds \
34101old_archive_cmds \
34102extract_expsyms_cmds \
34103old_archive_from_new_cmds \
34104old_archive_from_expsyms_cmds \
34105archive_cmds \
34106archive_expsym_cmds \
34107module_cmds \
34108module_expsym_cmds \
34109export_symbols_cmds \
34110prelink_cmds \
34111postlink_cmds \
34112postinstall_cmds \
34113postuninstall_cmds \
34114finish_cmds \
34115sys_lib_search_path_spec \
34116configure_time_dlsearch_path \
34117configure_time_lt_sys_library_path; do
34118    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
34119    *[\\\\\\\`\\"\\\$]*)
34120      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
34121      ;;
34122    *)
34123      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
34124      ;;
34125    esac
34126done
34127
34128ac_aux_dir='$ac_aux_dir'
34129
34130# See if we are running on zsh, and set the options that allow our
34131# commands through without removal of \ escapes INIT.
34132if test -n "\${ZSH_VERSION+set}"; then
34133   setopt NO_GLOB_SUBST
34134fi
34135
34136
34137    PACKAGE='$PACKAGE'
34138    VERSION='$VERSION'
34139    RM='$RM'
34140    ofile='$ofile'
34141
34142
34143
34144
34145_ACEOF
34146
34147cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34148
34149# Handling of arguments.
34150for ac_config_target in $ac_config_targets
34151do
34152  case $ac_config_target in
34153    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
34154    "include/do-not-use-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/do-not-use-config.h" ;;
34155    "include/xorg-server.h") CONFIG_HEADERS="$CONFIG_HEADERS include/xorg-server.h" ;;
34156    "include/dix-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/dix-config.h" ;;
34157    "include/xorg-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/xorg-config.h" ;;
34158    "include/xkb-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/xkb-config.h" ;;
34159    "include/xwin-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/xwin-config.h" ;;
34160    "include/xwayland-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/xwayland-config.h" ;;
34161    "include/version-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/version-config.h" ;;
34162    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
34163    "sdksyms") CONFIG_COMMANDS="$CONFIG_COMMANDS sdksyms" ;;
34164    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
34165    "glx/Makefile") CONFIG_FILES="$CONFIG_FILES glx/Makefile" ;;
34166    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
34167    "composite/Makefile") CONFIG_FILES="$CONFIG_FILES composite/Makefile" ;;
34168    "damageext/Makefile") CONFIG_FILES="$CONFIG_FILES damageext/Makefile" ;;
34169    "dbe/Makefile") CONFIG_FILES="$CONFIG_FILES dbe/Makefile" ;;
34170    "dix/Makefile") CONFIG_FILES="$CONFIG_FILES dix/Makefile" ;;
34171    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
34172    "doc/dtrace/Makefile") CONFIG_FILES="$CONFIG_FILES doc/dtrace/Makefile" ;;
34173    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
34174    "fb/Makefile") CONFIG_FILES="$CONFIG_FILES fb/Makefile" ;;
34175    "glamor/Makefile") CONFIG_FILES="$CONFIG_FILES glamor/Makefile" ;;
34176    "record/Makefile") CONFIG_FILES="$CONFIG_FILES record/Makefile" ;;
34177    "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
34178    "mi/Makefile") CONFIG_FILES="$CONFIG_FILES mi/Makefile" ;;
34179    "miext/Makefile") CONFIG_FILES="$CONFIG_FILES miext/Makefile" ;;
34180    "miext/sync/Makefile") CONFIG_FILES="$CONFIG_FILES miext/sync/Makefile" ;;
34181    "miext/damage/Makefile") CONFIG_FILES="$CONFIG_FILES miext/damage/Makefile" ;;
34182    "miext/shadow/Makefile") CONFIG_FILES="$CONFIG_FILES miext/shadow/Makefile" ;;
34183    "miext/rootless/Makefile") CONFIG_FILES="$CONFIG_FILES miext/rootless/Makefile" ;;
34184    "os/Makefile") CONFIG_FILES="$CONFIG_FILES os/Makefile" ;;
34185    "pseudoramiX/Makefile") CONFIG_FILES="$CONFIG_FILES pseudoramiX/Makefile" ;;
34186    "randr/Makefile") CONFIG_FILES="$CONFIG_FILES randr/Makefile" ;;
34187    "render/Makefile") CONFIG_FILES="$CONFIG_FILES render/Makefile" ;;
34188    "xkb/Makefile") CONFIG_FILES="$CONFIG_FILES xkb/Makefile" ;;
34189    "Xext/Makefile") CONFIG_FILES="$CONFIG_FILES Xext/Makefile" ;;
34190    "Xi/Makefile") CONFIG_FILES="$CONFIG_FILES Xi/Makefile" ;;
34191    "xfixes/Makefile") CONFIG_FILES="$CONFIG_FILES xfixes/Makefile" ;;
34192    "exa/Makefile") CONFIG_FILES="$CONFIG_FILES exa/Makefile" ;;
34193    "dri3/Makefile") CONFIG_FILES="$CONFIG_FILES dri3/Makefile" ;;
34194    "present/Makefile") CONFIG_FILES="$CONFIG_FILES present/Makefile" ;;
34195    "hw/Makefile") CONFIG_FILES="$CONFIG_FILES hw/Makefile" ;;
34196    "hw/xfree86/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/Makefile" ;;
34197    "hw/xfree86/Xorg.sh") CONFIG_FILES="$CONFIG_FILES hw/xfree86/Xorg.sh" ;;
34198    "hw/xfree86/common/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/common/Makefile" ;;
34199    "hw/xfree86/common/xf86Build.h") CONFIG_FILES="$CONFIG_FILES hw/xfree86/common/xf86Build.h" ;;
34200    "hw/xfree86/ddc/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/ddc/Makefile" ;;
34201    "hw/xfree86/dixmods/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/dixmods/Makefile" ;;
34202    "hw/xfree86/doc/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/doc/Makefile" ;;
34203    "hw/xfree86/dri/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/dri/Makefile" ;;
34204    "hw/xfree86/dri2/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/dri2/Makefile" ;;
34205    "hw/xfree86/dri2/pci_ids/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/dri2/pci_ids/Makefile" ;;
34206    "hw/xfree86/drivers/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/drivers/Makefile" ;;
34207    "hw/xfree86/drivers/modesetting/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/drivers/modesetting/Makefile" ;;
34208    "hw/xfree86/exa/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/exa/Makefile" ;;
34209    "hw/xfree86/exa/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/exa/man/Makefile" ;;
34210    "hw/xfree86/fbdevhw/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/fbdevhw/Makefile" ;;
34211    "hw/xfree86/fbdevhw/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/fbdevhw/man/Makefile" ;;
34212    "hw/xfree86/glamor_egl/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/glamor_egl/Makefile" ;;
34213    "hw/xfree86/i2c/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/i2c/Makefile" ;;
34214    "hw/xfree86/int10/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/int10/Makefile" ;;
34215    "hw/xfree86/loader/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/loader/Makefile" ;;
34216    "hw/xfree86/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/man/Makefile" ;;
34217    "hw/xfree86/modes/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/modes/Makefile" ;;
34218    "hw/xfree86/os-support/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/Makefile" ;;
34219    "hw/xfree86/os-support/bsd/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/bsd/Makefile" ;;
34220    "hw/xfree86/os-support/bus/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/bus/Makefile" ;;
34221    "hw/xfree86/os-support/hurd/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/hurd/Makefile" ;;
34222    "hw/xfree86/os-support/misc/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/misc/Makefile" ;;
34223    "hw/xfree86/os-support/linux/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/linux/Makefile" ;;
34224    "hw/xfree86/os-support/solaris/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/solaris/Makefile" ;;
34225    "hw/xfree86/os-support/stub/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/stub/Makefile" ;;
34226    "hw/xfree86/parser/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/parser/Makefile" ;;
34227    "hw/xfree86/ramdac/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/ramdac/Makefile" ;;
34228    "hw/xfree86/shadowfb/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/shadowfb/Makefile" ;;
34229    "hw/xfree86/vbe/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/vbe/Makefile" ;;
34230    "hw/xfree86/vgahw/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/vgahw/Makefile" ;;
34231    "hw/xfree86/x86emu/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/x86emu/Makefile" ;;
34232    "hw/xfree86/xkb/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/xkb/Makefile" ;;
34233    "hw/xfree86/utils/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/utils/Makefile" ;;
34234    "hw/xfree86/utils/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/utils/man/Makefile" ;;
34235    "hw/xfree86/utils/cvt/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/utils/cvt/Makefile" ;;
34236    "hw/xfree86/utils/gtf/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/utils/gtf/Makefile" ;;
34237    "hw/dmx/config/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/config/Makefile" ;;
34238    "hw/dmx/config/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/config/man/Makefile" ;;
34239    "hw/dmx/doc/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/doc/Makefile" ;;
34240    "hw/dmx/doxygen/doxygen.conf") CONFIG_FILES="$CONFIG_FILES hw/dmx/doxygen/doxygen.conf" ;;
34241    "hw/dmx/doxygen/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/doxygen/Makefile" ;;
34242    "hw/dmx/examples/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/examples/Makefile" ;;
34243    "hw/dmx/input/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/input/Makefile" ;;
34244    "hw/dmx/glxProxy/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/glxProxy/Makefile" ;;
34245    "hw/dmx/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/Makefile" ;;
34246    "hw/dmx/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/man/Makefile" ;;
34247    "hw/vfb/Makefile") CONFIG_FILES="$CONFIG_FILES hw/vfb/Makefile" ;;
34248    "hw/vfb/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/vfb/man/Makefile" ;;
34249    "hw/xnest/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xnest/Makefile" ;;
34250    "hw/xnest/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xnest/man/Makefile" ;;
34251    "hw/xwin/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xwin/Makefile" ;;
34252    "hw/xwin/dri/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xwin/dri/Makefile" ;;
34253    "hw/xwin/glx/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xwin/glx/Makefile" ;;
34254    "hw/xwin/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xwin/man/Makefile" ;;
34255    "hw/xwin/winclipboard/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xwin/winclipboard/Makefile" ;;
34256    "hw/xquartz/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/Makefile" ;;
34257    "hw/xquartz/GL/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/GL/Makefile" ;;
34258    "hw/xquartz/bundle/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/bundle/Makefile" ;;
34259    "hw/xquartz/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/man/Makefile" ;;
34260    "hw/xquartz/mach-startup/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/mach-startup/Makefile" ;;
34261    "hw/xquartz/pbproxy/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/pbproxy/Makefile" ;;
34262    "hw/xquartz/xpr/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/xpr/Makefile" ;;
34263    "hw/kdrive/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/Makefile" ;;
34264    "hw/kdrive/ephyr/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/ephyr/Makefile" ;;
34265    "hw/kdrive/ephyr/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/ephyr/man/Makefile" ;;
34266    "hw/kdrive/src/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/src/Makefile" ;;
34267    "hw/xwayland/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xwayland/Makefile" ;;
34268    "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
34269    "xserver.ent") CONFIG_FILES="$CONFIG_FILES xserver.ent" ;;
34270    "xorg-server.pc") CONFIG_FILES="$CONFIG_FILES xorg-server.pc" ;;
34271
34272  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
34273  esac
34274done
34275
34276
34277# If the user did not use the arguments to specify the items to instantiate,
34278# then the envvar interface is used.  Set only those that are not.
34279# We use the long form for the default assignment because of an extremely
34280# bizarre bug on SunOS 4.1.3.
34281if $ac_need_defaults; then
34282  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34283  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34284  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34285fi
34286
34287# Have a temporary directory for convenience.  Make it in the build tree
34288# simply because there is no reason against having it here, and in addition,
34289# creating and moving files from /tmp can sometimes cause problems.
34290# Hook for its removal unless debugging.
34291# Note that there is a small window in which the directory will not be cleaned:
34292# after its creation but before its name has been assigned to `$tmp'.
34293$debug ||
34294{
34295  tmp= ac_tmp=
34296  trap 'exit_status=$?
34297  : "${ac_tmp:=$tmp}"
34298  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
34299' 0
34300  trap 'as_fn_exit 1' 1 2 13 15
34301}
34302# Create a (secure) tmp directory for tmp files.
34303
34304{
34305  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34306  test -d "$tmp"
34307}  ||
34308{
34309  tmp=./conf$$-$RANDOM
34310  (umask 077 && mkdir "$tmp")
34311} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
34312ac_tmp=$tmp
34313
34314# Set up the scripts for CONFIG_FILES section.
34315# No need to generate them if there are no CONFIG_FILES.
34316# This happens for instance with `./config.status config.h'.
34317if test -n "$CONFIG_FILES"; then
34318
34319
34320ac_cr=`echo X | tr X '\015'`
34321# On cygwin, bash can eat \r inside `` if the user requested igncr.
34322# But we know of no other shell where ac_cr would be empty at this
34323# point, so we can use a bashism as a fallback.
34324if test "x$ac_cr" = x; then
34325  eval ac_cr=\$\'\\r\'
34326fi
34327ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
34328if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
34329  ac_cs_awk_cr='\\r'
34330else
34331  ac_cs_awk_cr=$ac_cr
34332fi
34333
34334echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
34335_ACEOF
34336
34337
34338{
34339  echo "cat >conf$$subs.awk <<_ACEOF" &&
34340  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
34341  echo "_ACEOF"
34342} >conf$$subs.sh ||
34343  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
34344ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
34345ac_delim='%!_!# '
34346for ac_last_try in false false false false false :; do
34347  . ./conf$$subs.sh ||
34348    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
34349
34350  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
34351  if test $ac_delim_n = $ac_delim_num; then
34352    break
34353  elif $ac_last_try; then
34354    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
34355  else
34356    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34357  fi
34358done
34359rm -f conf$$subs.sh
34360
34361cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34362cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
34363_ACEOF
34364sed -n '
34365h
34366s/^/S["/; s/!.*/"]=/
34367p
34368g
34369s/^[^!]*!//
34370:repl
34371t repl
34372s/'"$ac_delim"'$//
34373t delim
34374:nl
34375h
34376s/\(.\{148\}\)..*/\1/
34377t more1
34378s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
34379p
34380n
34381b repl
34382:more1
34383s/["\\]/\\&/g; s/^/"/; s/$/"\\/
34384p
34385g
34386s/.\{148\}//
34387t nl
34388:delim
34389h
34390s/\(.\{148\}\)..*/\1/
34391t more2
34392s/["\\]/\\&/g; s/^/"/; s/$/"/
34393p
34394b
34395:more2
34396s/["\\]/\\&/g; s/^/"/; s/$/"\\/
34397p
34398g
34399s/.\{148\}//
34400t delim
34401' <conf$$subs.awk | sed '
34402/^[^""]/{
34403  N
34404  s/\n//
34405}
34406' >>$CONFIG_STATUS || ac_write_fail=1
34407rm -f conf$$subs.awk
34408cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34409_ACAWK
34410cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
34411  for (key in S) S_is_set[key] = 1
34412  FS = ""
34413
34414}
34415{
34416  line = $ 0
34417  nfields = split(line, field, "@")
34418  substed = 0
34419  len = length(field[1])
34420  for (i = 2; i < nfields; i++) {
34421    key = field[i]
34422    keylen = length(key)
34423    if (S_is_set[key]) {
34424      value = S[key]
34425      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
34426      len += length(value) + length(field[++i])
34427      substed = 1
34428    } else
34429      len += 1 + keylen
34430  }
34431
34432  print line
34433}
34434
34435_ACAWK
34436_ACEOF
34437cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34438if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
34439  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
34440else
34441  cat
34442fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
34443  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
34444_ACEOF
34445
34446# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
34447# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
34448# trailing colons and then remove the whole line if VPATH becomes empty
34449# (actually we leave an empty line to preserve line numbers).
34450if test "x$srcdir" = x.; then
34451  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
34452h
34453s///
34454s/^/:/
34455s/[	 ]*$/:/
34456s/:\$(srcdir):/:/g
34457s/:\${srcdir}:/:/g
34458s/:@srcdir@:/:/g
34459s/^:*//
34460s/:*$//
34461x
34462s/\(=[	 ]*\).*/\1/
34463G
34464s/\n//
34465s/^[^=]*=[	 ]*$//
34466}'
34467fi
34468
34469cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34470fi # test -n "$CONFIG_FILES"
34471
34472# Set up the scripts for CONFIG_HEADERS section.
34473# No need to generate them if there are no CONFIG_HEADERS.
34474# This happens for instance with `./config.status Makefile'.
34475if test -n "$CONFIG_HEADERS"; then
34476cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
34477BEGIN {
34478_ACEOF
34479
34480# Transform confdefs.h into an awk script `defines.awk', embedded as
34481# here-document in config.status, that substitutes the proper values into
34482# config.h.in to produce config.h.
34483
34484# Create a delimiter string that does not exist in confdefs.h, to ease
34485# handling of long lines.
34486ac_delim='%!_!# '
34487for ac_last_try in false false :; do
34488  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
34489  if test -z "$ac_tt"; then
34490    break
34491  elif $ac_last_try; then
34492    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
34493  else
34494    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34495  fi
34496done
34497
34498# For the awk script, D is an array of macro values keyed by name,
34499# likewise P contains macro parameters if any.  Preserve backslash
34500# newline sequences.
34501
34502ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
34503sed -n '
34504s/.\{148\}/&'"$ac_delim"'/g
34505t rset
34506:rset
34507s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
34508t def
34509d
34510:def
34511s/\\$//
34512t bsnl
34513s/["\\]/\\&/g
34514s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
34515D["\1"]=" \3"/p
34516s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
34517d
34518:bsnl
34519s/["\\]/\\&/g
34520s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
34521D["\1"]=" \3\\\\\\n"\\/p
34522t cont
34523s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
34524t cont
34525d
34526:cont
34527n
34528s/.\{148\}/&'"$ac_delim"'/g
34529t clear
34530:clear
34531s/\\$//
34532t bsnlc
34533s/["\\]/\\&/g; s/^/"/; s/$/"/p
34534d
34535:bsnlc
34536s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
34537b cont
34538' <confdefs.h | sed '
34539s/'"$ac_delim"'/"\\\
34540"/g' >>$CONFIG_STATUS || ac_write_fail=1
34541
34542cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34543  for (key in D) D_is_set[key] = 1
34544  FS = ""
34545}
34546/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
34547  line = \$ 0
34548  split(line, arg, " ")
34549  if (arg[1] == "#") {
34550    defundef = arg[2]
34551    mac1 = arg[3]
34552  } else {
34553    defundef = substr(arg[1], 2)
34554    mac1 = arg[2]
34555  }
34556  split(mac1, mac2, "(") #)
34557  macro = mac2[1]
34558  prefix = substr(line, 1, index(line, defundef) - 1)
34559  if (D_is_set[macro]) {
34560    # Preserve the white space surrounding the "#".
34561    print prefix "define", macro P[macro] D[macro]
34562    next
34563  } else {
34564    # Replace #undef with comments.  This is necessary, for example,
34565    # in the case of _POSIX_SOURCE, which is predefined and required
34566    # on some systems where configure will not decide to define it.
34567    if (defundef == "undef") {
34568      print "/*", prefix defundef, macro, "*/"
34569      next
34570    }
34571  }
34572}
34573{ print }
34574_ACAWK
34575_ACEOF
34576cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34577  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
34578fi # test -n "$CONFIG_HEADERS"
34579
34580
34581eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
34582shift
34583for ac_tag
34584do
34585  case $ac_tag in
34586  :[FHLC]) ac_mode=$ac_tag; continue;;
34587  esac
34588  case $ac_mode$ac_tag in
34589  :[FHL]*:*);;
34590  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
34591  :[FH]-) ac_tag=-:-;;
34592  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34593  esac
34594  ac_save_IFS=$IFS
34595  IFS=:
34596  set x $ac_tag
34597  IFS=$ac_save_IFS
34598  shift
34599  ac_file=$1
34600  shift
34601
34602  case $ac_mode in
34603  :L) ac_source=$1;;
34604  :[FH])
34605    ac_file_inputs=
34606    for ac_f
34607    do
34608      case $ac_f in
34609      -) ac_f="$ac_tmp/stdin";;
34610      *) # Look for the file first in the build tree, then in the source tree
34611	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
34612	 # because $ac_f cannot contain `:'.
34613	 test -f "$ac_f" ||
34614	   case $ac_f in
34615	   [\\/$]*) false;;
34616	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34617	   esac ||
34618	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
34619      esac
34620      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
34621      as_fn_append ac_file_inputs " '$ac_f'"
34622    done
34623
34624    # Let's still pretend it is `configure' which instantiates (i.e., don't
34625    # use $as_me), people would be surprised to read:
34626    #    /* config.h.  Generated by config.status.  */
34627    configure_input='Generated from '`
34628	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
34629	`' by configure.'
34630    if test x"$ac_file" != x-; then
34631      configure_input="$ac_file.  $configure_input"
34632      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
34633$as_echo "$as_me: creating $ac_file" >&6;}
34634    fi
34635    # Neutralize special characters interpreted by sed in replacement strings.
34636    case $configure_input in #(
34637    *\&* | *\|* | *\\* )
34638       ac_sed_conf_input=`$as_echo "$configure_input" |
34639       sed 's/[\\\\&|]/\\\\&/g'`;; #(
34640    *) ac_sed_conf_input=$configure_input;;
34641    esac
34642
34643    case $ac_tag in
34644    *:-:* | *:-) cat >"$ac_tmp/stdin" \
34645      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
34646    esac
34647    ;;
34648  esac
34649
34650  ac_dir=`$as_dirname -- "$ac_file" ||
34651$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34652	 X"$ac_file" : 'X\(//\)[^/]' \| \
34653	 X"$ac_file" : 'X\(//\)$' \| \
34654	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
34655$as_echo X"$ac_file" |
34656    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34657	    s//\1/
34658	    q
34659	  }
34660	  /^X\(\/\/\)[^/].*/{
34661	    s//\1/
34662	    q
34663	  }
34664	  /^X\(\/\/\)$/{
34665	    s//\1/
34666	    q
34667	  }
34668	  /^X\(\/\).*/{
34669	    s//\1/
34670	    q
34671	  }
34672	  s/.*/./; q'`
34673  as_dir="$ac_dir"; as_fn_mkdir_p
34674  ac_builddir=.
34675
34676case "$ac_dir" in
34677.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34678*)
34679  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
34680  # A ".." for each directory in $ac_dir_suffix.
34681  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
34682  case $ac_top_builddir_sub in
34683  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34684  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34685  esac ;;
34686esac
34687ac_abs_top_builddir=$ac_pwd
34688ac_abs_builddir=$ac_pwd$ac_dir_suffix
34689# for backward compatibility:
34690ac_top_builddir=$ac_top_build_prefix
34691
34692case $srcdir in
34693  .)  # We are building in place.
34694    ac_srcdir=.
34695    ac_top_srcdir=$ac_top_builddir_sub
34696    ac_abs_top_srcdir=$ac_pwd ;;
34697  [\\/]* | ?:[\\/]* )  # Absolute name.
34698    ac_srcdir=$srcdir$ac_dir_suffix;
34699    ac_top_srcdir=$srcdir
34700    ac_abs_top_srcdir=$srcdir ;;
34701  *) # Relative name.
34702    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34703    ac_top_srcdir=$ac_top_build_prefix$srcdir
34704    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
34705esac
34706ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
34707
34708
34709  case $ac_mode in
34710  :F)
34711  #
34712  # CONFIG_FILE
34713  #
34714
34715  case $INSTALL in
34716  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
34717  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
34718  esac
34719  ac_MKDIR_P=$MKDIR_P
34720  case $MKDIR_P in
34721  [\\/$]* | ?:[\\/]* ) ;;
34722  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
34723  esac
34724_ACEOF
34725
34726cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34727# If the template does not know about datarootdir, expand it.
34728# FIXME: This hack should be removed a few years after 2.60.
34729ac_datarootdir_hack=; ac_datarootdir_seen=
34730ac_sed_dataroot='
34731/datarootdir/ {
34732  p
34733  q
34734}
34735/@datadir@/p
34736/@docdir@/p
34737/@infodir@/p
34738/@localedir@/p
34739/@mandir@/p'
34740case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
34741*datarootdir*) ac_datarootdir_seen=yes;;
34742*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
34743  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
34744$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
34745_ACEOF
34746cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34747  ac_datarootdir_hack='
34748  s&@datadir@&$datadir&g
34749  s&@docdir@&$docdir&g
34750  s&@infodir@&$infodir&g
34751  s&@localedir@&$localedir&g
34752  s&@mandir@&$mandir&g
34753  s&\\\${datarootdir}&$datarootdir&g' ;;
34754esac
34755_ACEOF
34756
34757# Neutralize VPATH when `$srcdir' = `.'.
34758# Shell code in configure.ac might set extrasub.
34759# FIXME: do we really want to maintain this feature?
34760cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34761ac_sed_extra="$ac_vpsub
34762$extrasub
34763_ACEOF
34764cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34765:t
34766/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34767s|@configure_input@|$ac_sed_conf_input|;t t
34768s&@top_builddir@&$ac_top_builddir_sub&;t t
34769s&@top_build_prefix@&$ac_top_build_prefix&;t t
34770s&@srcdir@&$ac_srcdir&;t t
34771s&@abs_srcdir@&$ac_abs_srcdir&;t t
34772s&@top_srcdir@&$ac_top_srcdir&;t t
34773s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
34774s&@builddir@&$ac_builddir&;t t
34775s&@abs_builddir@&$ac_abs_builddir&;t t
34776s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
34777s&@INSTALL@&$ac_INSTALL&;t t
34778s&@MKDIR_P@&$ac_MKDIR_P&;t t
34779$ac_datarootdir_hack
34780"
34781eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
34782  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34783
34784test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34785  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
34786  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
34787      "$ac_tmp/out"`; test -z "$ac_out"; } &&
34788  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34789which seems to be undefined.  Please make sure it is defined" >&5
34790$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34791which seems to be undefined.  Please make sure it is defined" >&2;}
34792
34793  rm -f "$ac_tmp/stdin"
34794  case $ac_file in
34795  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
34796  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
34797  esac \
34798  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34799 ;;
34800  :H)
34801  #
34802  # CONFIG_HEADER
34803  #
34804  if test x"$ac_file" != x-; then
34805    {
34806      $as_echo "/* $configure_input  */" \
34807      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
34808    } >"$ac_tmp/config.h" \
34809      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34810    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
34811      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
34812$as_echo "$as_me: $ac_file is unchanged" >&6;}
34813    else
34814      rm -f "$ac_file"
34815      mv "$ac_tmp/config.h" "$ac_file" \
34816	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
34817    fi
34818  else
34819    $as_echo "/* $configure_input  */" \
34820      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
34821      || as_fn_error $? "could not create -" "$LINENO" 5
34822  fi
34823# Compute "$ac_file"'s index in $config_headers.
34824_am_arg="$ac_file"
34825_am_stamp_count=1
34826for _am_header in $config_headers :; do
34827  case $_am_header in
34828    $_am_arg | $_am_arg:* )
34829      break ;;
34830    * )
34831      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
34832  esac
34833done
34834echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
34835$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34836	 X"$_am_arg" : 'X\(//\)[^/]' \| \
34837	 X"$_am_arg" : 'X\(//\)$' \| \
34838	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
34839$as_echo X"$_am_arg" |
34840    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34841	    s//\1/
34842	    q
34843	  }
34844	  /^X\(\/\/\)[^/].*/{
34845	    s//\1/
34846	    q
34847	  }
34848	  /^X\(\/\/\)$/{
34849	    s//\1/
34850	    q
34851	  }
34852	  /^X\(\/\).*/{
34853	    s//\1/
34854	    q
34855	  }
34856	  s/.*/./; q'`/stamp-h$_am_stamp_count
34857 ;;
34858
34859  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
34860$as_echo "$as_me: executing $ac_file commands" >&6;}
34861 ;;
34862  esac
34863
34864
34865  case $ac_file$ac_mode in
34866    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
34867  # Older Autoconf quotes --file arguments for eval, but not when files
34868  # are listed without --file.  Let's play safe and only enable the eval
34869  # if we detect the quoting.
34870  # TODO: see whether this extra hack can be removed once we start
34871  # requiring Autoconf 2.70 or later.
34872  case $CONFIG_FILES in #(
34873  *\'*) :
34874    eval set x "$CONFIG_FILES" ;; #(
34875  *) :
34876    set x $CONFIG_FILES ;; #(
34877  *) :
34878     ;;
34879esac
34880  shift
34881  # Used to flag and report bootstrapping failures.
34882  am_rc=0
34883  for am_mf
34884  do
34885    # Strip MF so we end up with the name of the file.
34886    am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
34887    # Check whether this is an Automake generated Makefile which includes
34888    # dependency-tracking related rules and includes.
34889    # Grep'ing the whole file directly is not great: AIX grep has a line
34890    # limit of 2048, but all sed's we know have understand at least 4000.
34891    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
34892      || continue
34893    am_dirpart=`$as_dirname -- "$am_mf" ||
34894$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34895	 X"$am_mf" : 'X\(//\)[^/]' \| \
34896	 X"$am_mf" : 'X\(//\)$' \| \
34897	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
34898$as_echo X"$am_mf" |
34899    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34900	    s//\1/
34901	    q
34902	  }
34903	  /^X\(\/\/\)[^/].*/{
34904	    s//\1/
34905	    q
34906	  }
34907	  /^X\(\/\/\)$/{
34908	    s//\1/
34909	    q
34910	  }
34911	  /^X\(\/\).*/{
34912	    s//\1/
34913	    q
34914	  }
34915	  s/.*/./; q'`
34916    am_filepart=`$as_basename -- "$am_mf" ||
34917$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
34918	 X"$am_mf" : 'X\(//\)$' \| \
34919	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
34920$as_echo X/"$am_mf" |
34921    sed '/^.*\/\([^/][^/]*\)\/*$/{
34922	    s//\1/
34923	    q
34924	  }
34925	  /^X\/\(\/\/\)$/{
34926	    s//\1/
34927	    q
34928	  }
34929	  /^X\/\(\/\).*/{
34930	    s//\1/
34931	    q
34932	  }
34933	  s/.*/./; q'`
34934    { echo "$as_me:$LINENO: cd "$am_dirpart" \
34935      && sed -e '/# am--include-marker/d' "$am_filepart" \
34936        | $MAKE -f - am--depfiles" >&5
34937   (cd "$am_dirpart" \
34938      && sed -e '/# am--include-marker/d' "$am_filepart" \
34939        | $MAKE -f - am--depfiles) >&5 2>&5
34940   ac_status=$?
34941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34942   (exit $ac_status); } || am_rc=$?
34943  done
34944  if test $am_rc -ne 0; then
34945    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34946$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34947as_fn_error $? "Something went wrong bootstrapping makefile fragments
34948    for automatic dependency tracking.  If GNU make was not used, consider
34949    re-running the configure script with MAKE=\"gmake\" (or whatever is
34950    necessary).  You can also try re-running configure with the
34951    '--disable-dependency-tracking' option to at least be able to build
34952    the package (albeit without support for automatic dependency tracking).
34953See \`config.log' for more details" "$LINENO" 5; }
34954  fi
34955  { am_dirpart=; unset am_dirpart;}
34956  { am_filepart=; unset am_filepart;}
34957  { am_mf=; unset am_mf;}
34958  { am_rc=; unset am_rc;}
34959  rm -f conftest-deps.mk
34960}
34961 ;;
34962    "libtool":C)
34963
34964    # See if we are running on zsh, and set the options that allow our
34965    # commands through without removal of \ escapes.
34966    if test -n "${ZSH_VERSION+set}"; then
34967      setopt NO_GLOB_SUBST
34968    fi
34969
34970    cfgfile=${ofile}T
34971    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
34972    $RM "$cfgfile"
34973
34974    cat <<_LT_EOF >> "$cfgfile"
34975#! $SHELL
34976# Generated automatically by $as_me ($PACKAGE) $VERSION
34977# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
34978# NOTE: Changes made to this file will be lost: look at ltmain.sh.
34979
34980# Provide generalized library-building support services.
34981# Written by Gordon Matzigkeit, 1996
34982
34983# Copyright (C) 2014 Free Software Foundation, Inc.
34984# This is free software; see the source for copying conditions.  There is NO
34985# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
34986
34987# GNU Libtool is free software; you can redistribute it and/or modify
34988# it under the terms of the GNU General Public License as published by
34989# the Free Software Foundation; either version 2 of of the License, or
34990# (at your option) any later version.
34991#
34992# As a special exception to the GNU General Public License, if you
34993# distribute this file as part of a program or library that is built
34994# using GNU Libtool, you may include this file under the  same
34995# distribution terms that you use for the rest of that program.
34996#
34997# GNU Libtool is distributed in the hope that it will be useful, but
34998# WITHOUT ANY WARRANTY; without even the implied warranty of
34999# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
35000# GNU General Public License for more details.
35001#
35002# You should have received a copy of the GNU General Public License
35003# along with this program.  If not, see <http://www.gnu.org/licenses/>.
35004
35005
35006# The names of the tagged configurations supported by this script.
35007available_tags=''
35008
35009# Configured defaults for sys_lib_dlsearch_path munging.
35010: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
35011
35012# ### BEGIN LIBTOOL CONFIG
35013
35014# Which release of libtool.m4 was used?
35015macro_version=$macro_version
35016macro_revision=$macro_revision
35017
35018# Whether or not to build static libraries.
35019build_old_libs=$enable_static
35020
35021# Assembler program.
35022AS=$lt_AS
35023
35024# DLL creation program.
35025DLLTOOL=$lt_DLLTOOL
35026
35027# Object dumper program.
35028OBJDUMP=$lt_OBJDUMP
35029
35030# Whether or not to build shared libraries.
35031build_libtool_libs=$enable_shared
35032
35033# What type of objects to build.
35034pic_mode=$pic_mode
35035
35036# Whether or not to optimize for fast installation.
35037fast_install=$enable_fast_install
35038
35039# Shared archive member basename,for filename based shared library versioning on AIX.
35040shared_archive_member_spec=$shared_archive_member_spec
35041
35042# Shell to use when invoking shell scripts.
35043SHELL=$lt_SHELL
35044
35045# An echo program that protects backslashes.
35046ECHO=$lt_ECHO
35047
35048# The PATH separator for the build system.
35049PATH_SEPARATOR=$lt_PATH_SEPARATOR
35050
35051# The host system.
35052host_alias=$host_alias
35053host=$host
35054host_os=$host_os
35055
35056# The build system.
35057build_alias=$build_alias
35058build=$build
35059build_os=$build_os
35060
35061# A sed program that does not truncate output.
35062SED=$lt_SED
35063
35064# Sed that helps us avoid accidentally triggering echo(1) options like -n.
35065Xsed="\$SED -e 1s/^X//"
35066
35067# A grep program that handles long lines.
35068GREP=$lt_GREP
35069
35070# An ERE matcher.
35071EGREP=$lt_EGREP
35072
35073# A literal string matcher.
35074FGREP=$lt_FGREP
35075
35076# A BSD- or MS-compatible name lister.
35077NM=$lt_NM
35078
35079# Whether we need soft or hard links.
35080LN_S=$lt_LN_S
35081
35082# What is the maximum length of a command?
35083max_cmd_len=$max_cmd_len
35084
35085# Object file suffix (normally "o").
35086objext=$ac_objext
35087
35088# Executable file suffix (normally "").
35089exeext=$exeext
35090
35091# whether the shell understands "unset".
35092lt_unset=$lt_unset
35093
35094# turn spaces into newlines.
35095SP2NL=$lt_lt_SP2NL
35096
35097# turn newlines into spaces.
35098NL2SP=$lt_lt_NL2SP
35099
35100# convert \$build file names to \$host format.
35101to_host_file_cmd=$lt_cv_to_host_file_cmd
35102
35103# convert \$build files to toolchain format.
35104to_tool_file_cmd=$lt_cv_to_tool_file_cmd
35105
35106# Method to check whether dependent libraries are shared objects.
35107deplibs_check_method=$lt_deplibs_check_method
35108
35109# Command to use when deplibs_check_method = "file_magic".
35110file_magic_cmd=$lt_file_magic_cmd
35111
35112# How to find potential files when deplibs_check_method = "file_magic".
35113file_magic_glob=$lt_file_magic_glob
35114
35115# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
35116want_nocaseglob=$lt_want_nocaseglob
35117
35118# Command to associate shared and link libraries.
35119sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
35120
35121# The archiver.
35122AR=$lt_AR
35123
35124# Flags to create an archive.
35125AR_FLAGS=$lt_AR_FLAGS
35126
35127# How to feed a file listing to the archiver.
35128archiver_list_spec=$lt_archiver_list_spec
35129
35130# A symbol stripping program.
35131STRIP=$lt_STRIP
35132
35133# Commands used to install an old-style archive.
35134RANLIB=$lt_RANLIB
35135old_postinstall_cmds=$lt_old_postinstall_cmds
35136old_postuninstall_cmds=$lt_old_postuninstall_cmds
35137
35138# Whether to use a lock for old archive extraction.
35139lock_old_archive_extraction=$lock_old_archive_extraction
35140
35141# A C compiler.
35142LTCC=$lt_CC
35143
35144# LTCC compiler flags.
35145LTCFLAGS=$lt_CFLAGS
35146
35147# Take the output of nm and produce a listing of raw symbols and C names.
35148global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
35149
35150# Transform the output of nm in a proper C declaration.
35151global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
35152
35153# Transform the output of nm into a list of symbols to manually relocate.
35154global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
35155
35156# Transform the output of nm in a C name address pair.
35157global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
35158
35159# Transform the output of nm in a C name address pair when lib prefix is needed.
35160global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
35161
35162# The name lister interface.
35163nm_interface=$lt_lt_cv_nm_interface
35164
35165# Specify filename containing input files for \$NM.
35166nm_file_list_spec=$lt_nm_file_list_spec
35167
35168# The root where to search for dependent libraries,and where our libraries should be installed.
35169lt_sysroot=$lt_sysroot
35170
35171# Command to truncate a binary pipe.
35172lt_truncate_bin=$lt_lt_cv_truncate_bin
35173
35174# The name of the directory that contains temporary libtool files.
35175objdir=$objdir
35176
35177# Used to examine libraries when file_magic_cmd begins with "file".
35178MAGIC_CMD=$MAGIC_CMD
35179
35180# Must we lock files when doing compilation?
35181need_locks=$lt_need_locks
35182
35183# Manifest tool.
35184MANIFEST_TOOL=$lt_MANIFEST_TOOL
35185
35186# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
35187DSYMUTIL=$lt_DSYMUTIL
35188
35189# Tool to change global to local symbols on Mac OS X.
35190NMEDIT=$lt_NMEDIT
35191
35192# Tool to manipulate fat objects and archives on Mac OS X.
35193LIPO=$lt_LIPO
35194
35195# ldd/readelf like tool for Mach-O binaries on Mac OS X.
35196OTOOL=$lt_OTOOL
35197
35198# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
35199OTOOL64=$lt_OTOOL64
35200
35201# Old archive suffix (normally "a").
35202libext=$libext
35203
35204# Shared library suffix (normally ".so").
35205shrext_cmds=$lt_shrext_cmds
35206
35207# The commands to extract the exported symbol list from a shared archive.
35208extract_expsyms_cmds=$lt_extract_expsyms_cmds
35209
35210# Variables whose values should be saved in libtool wrapper scripts and
35211# restored at link time.
35212variables_saved_for_relink=$lt_variables_saved_for_relink
35213
35214# Do we need the "lib" prefix for modules?
35215need_lib_prefix=$need_lib_prefix
35216
35217# Do we need a version for libraries?
35218need_version=$need_version
35219
35220# Library versioning type.
35221version_type=$version_type
35222
35223# Shared library runtime path variable.
35224runpath_var=$runpath_var
35225
35226# Shared library path variable.
35227shlibpath_var=$shlibpath_var
35228
35229# Is shlibpath searched before the hard-coded library search path?
35230shlibpath_overrides_runpath=$shlibpath_overrides_runpath
35231
35232# Format of library name prefix.
35233libname_spec=$lt_libname_spec
35234
35235# List of archive names.  First name is the real one, the rest are links.
35236# The last name is the one that the linker finds with -lNAME
35237library_names_spec=$lt_library_names_spec
35238
35239# The coded name of the library, if different from the real name.
35240soname_spec=$lt_soname_spec
35241
35242# Permission mode override for installation of shared libraries.
35243install_override_mode=$lt_install_override_mode
35244
35245# Command to use after installation of a shared archive.
35246postinstall_cmds=$lt_postinstall_cmds
35247
35248# Command to use after uninstallation of a shared archive.
35249postuninstall_cmds=$lt_postuninstall_cmds
35250
35251# Commands used to finish a libtool library installation in a directory.
35252finish_cmds=$lt_finish_cmds
35253
35254# As "finish_cmds", except a single script fragment to be evaled but
35255# not shown.
35256finish_eval=$lt_finish_eval
35257
35258# Whether we should hardcode library paths into libraries.
35259hardcode_into_libs=$hardcode_into_libs
35260
35261# Compile-time system search path for libraries.
35262sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
35263
35264# Detected run-time system search path for libraries.
35265sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
35266
35267# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
35268configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
35269
35270# Whether dlopen is supported.
35271dlopen_support=$enable_dlopen
35272
35273# Whether dlopen of programs is supported.
35274dlopen_self=$enable_dlopen_self
35275
35276# Whether dlopen of statically linked programs is supported.
35277dlopen_self_static=$enable_dlopen_self_static
35278
35279# Commands to strip libraries.
35280old_striplib=$lt_old_striplib
35281striplib=$lt_striplib
35282
35283
35284# The linker used to build libraries.
35285LD=$lt_LD
35286
35287# How to create reloadable object files.
35288reload_flag=$lt_reload_flag
35289reload_cmds=$lt_reload_cmds
35290
35291# Commands used to build an old-style archive.
35292old_archive_cmds=$lt_old_archive_cmds
35293
35294# A language specific compiler.
35295CC=$lt_compiler
35296
35297# Is the compiler the GNU compiler?
35298with_gcc=$GCC
35299
35300# Compiler flag to turn off builtin functions.
35301no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
35302
35303# Additional compiler flags for building library objects.
35304pic_flag=$lt_lt_prog_compiler_pic
35305
35306# How to pass a linker flag through the compiler.
35307wl=$lt_lt_prog_compiler_wl
35308
35309# Compiler flag to prevent dynamic linking.
35310link_static_flag=$lt_lt_prog_compiler_static
35311
35312# Does compiler simultaneously support -c and -o options?
35313compiler_c_o=$lt_lt_cv_prog_compiler_c_o
35314
35315# Whether or not to add -lc for building shared libraries.
35316build_libtool_need_lc=$archive_cmds_need_lc
35317
35318# Whether or not to disallow shared libs when runtime libs are static.
35319allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
35320
35321# Compiler flag to allow reflexive dlopens.
35322export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
35323
35324# Compiler flag to generate shared objects directly from archives.
35325whole_archive_flag_spec=$lt_whole_archive_flag_spec
35326
35327# Whether the compiler copes with passing no objects directly.
35328compiler_needs_object=$lt_compiler_needs_object
35329
35330# Create an old-style archive from a shared archive.
35331old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
35332
35333# Create a temporary old-style archive to link instead of a shared archive.
35334old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
35335
35336# Commands used to build a shared archive.
35337archive_cmds=$lt_archive_cmds
35338archive_expsym_cmds=$lt_archive_expsym_cmds
35339
35340# Commands used to build a loadable module if different from building
35341# a shared archive.
35342module_cmds=$lt_module_cmds
35343module_expsym_cmds=$lt_module_expsym_cmds
35344
35345# Whether we are building with GNU ld or not.
35346with_gnu_ld=$lt_with_gnu_ld
35347
35348# Flag that allows shared libraries with undefined symbols to be built.
35349allow_undefined_flag=$lt_allow_undefined_flag
35350
35351# Flag that enforces no undefined symbols.
35352no_undefined_flag=$lt_no_undefined_flag
35353
35354# Flag to hardcode \$libdir into a binary during linking.
35355# This must work even if \$libdir does not exist
35356hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
35357
35358# Whether we need a single "-rpath" flag with a separated argument.
35359hardcode_libdir_separator=$lt_hardcode_libdir_separator
35360
35361# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
35362# DIR into the resulting binary.
35363hardcode_direct=$hardcode_direct
35364
35365# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
35366# DIR into the resulting binary and the resulting library dependency is
35367# "absolute",i.e impossible to change by setting \$shlibpath_var if the
35368# library is relocated.
35369hardcode_direct_absolute=$hardcode_direct_absolute
35370
35371# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
35372# into the resulting binary.
35373hardcode_minus_L=$hardcode_minus_L
35374
35375# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
35376# into the resulting binary.
35377hardcode_shlibpath_var=$hardcode_shlibpath_var
35378
35379# Set to "yes" if building a shared library automatically hardcodes DIR
35380# into the library and all subsequent libraries and executables linked
35381# against it.
35382hardcode_automatic=$hardcode_automatic
35383
35384# Set to yes if linker adds runtime paths of dependent libraries
35385# to runtime path list.
35386inherit_rpath=$inherit_rpath
35387
35388# Whether libtool must link a program against all its dependency libraries.
35389link_all_deplibs=$link_all_deplibs
35390
35391# Set to "yes" if exported symbols are required.
35392always_export_symbols=$always_export_symbols
35393
35394# The commands to list exported symbols.
35395export_symbols_cmds=$lt_export_symbols_cmds
35396
35397# Symbols that should not be listed in the preloaded symbols.
35398exclude_expsyms=$lt_exclude_expsyms
35399
35400# Symbols that must always be exported.
35401include_expsyms=$lt_include_expsyms
35402
35403# Commands necessary for linking programs (against libraries) with templates.
35404prelink_cmds=$lt_prelink_cmds
35405
35406# Commands necessary for finishing linking programs.
35407postlink_cmds=$lt_postlink_cmds
35408
35409# Specify filename containing input files.
35410file_list_spec=$lt_file_list_spec
35411
35412# How to hardcode a shared library path into an executable.
35413hardcode_action=$hardcode_action
35414
35415# ### END LIBTOOL CONFIG
35416
35417_LT_EOF
35418
35419    cat <<'_LT_EOF' >> "$cfgfile"
35420
35421# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
35422
35423# func_munge_path_list VARIABLE PATH
35424# -----------------------------------
35425# VARIABLE is name of variable containing _space_ separated list of
35426# directories to be munged by the contents of PATH, which is string
35427# having a format:
35428# "DIR[:DIR]:"
35429#       string "DIR[ DIR]" will be prepended to VARIABLE
35430# ":DIR[:DIR]"
35431#       string "DIR[ DIR]" will be appended to VARIABLE
35432# "DIRP[:DIRP]::[DIRA:]DIRA"
35433#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
35434#       "DIRA[ DIRA]" will be appended to VARIABLE
35435# "DIR[:DIR]"
35436#       VARIABLE will be replaced by "DIR[ DIR]"
35437func_munge_path_list ()
35438{
35439    case x$2 in
35440    x)
35441        ;;
35442    *:)
35443        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
35444        ;;
35445    x:*)
35446        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
35447        ;;
35448    *::*)
35449        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
35450        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
35451        ;;
35452    *)
35453        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
35454        ;;
35455    esac
35456}
35457
35458
35459# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
35460func_cc_basename ()
35461{
35462    for cc_temp in $*""; do
35463      case $cc_temp in
35464        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
35465        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
35466        \-*) ;;
35467        *) break;;
35468      esac
35469    done
35470    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
35471}
35472
35473
35474# ### END FUNCTIONS SHARED WITH CONFIGURE
35475
35476_LT_EOF
35477
35478  case $host_os in
35479  aix3*)
35480    cat <<\_LT_EOF >> "$cfgfile"
35481# AIX sometimes has problems with the GCC collect2 program.  For some
35482# reason, if we set the COLLECT_NAMES environment variable, the problems
35483# vanish in a puff of smoke.
35484if test set != "${COLLECT_NAMES+set}"; then
35485  COLLECT_NAMES=
35486  export COLLECT_NAMES
35487fi
35488_LT_EOF
35489    ;;
35490  esac
35491
35492
35493ltmain=$ac_aux_dir/ltmain.sh
35494
35495
35496  # We use sed instead of cat because bash on DJGPP gets confused if
35497  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
35498  # text mode, it properly converts lines to CR/LF.  This bash problem
35499  # is reportedly fixed, but why not run on old versions too?
35500  sed '$q' "$ltmain" >> "$cfgfile" \
35501     || (rm -f "$cfgfile"; exit 1)
35502
35503   mv -f "$cfgfile" "$ofile" ||
35504    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
35505  chmod +x "$ofile"
35506
35507 ;;
35508    "sdksyms":C) touch hw/xfree86/sdksyms.dep ;;
35509
35510  esac
35511done # for ac_tag
35512
35513
35514as_fn_exit 0
35515_ACEOF
35516ac_clean_files=$ac_clean_files_save
35517
35518test $ac_write_fail = 0 ||
35519  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
35520
35521
35522# configure is writing to config.log, and then calls config.status.
35523# config.status does its own redirection, appending to config.log.
35524# Unfortunately, on DOS this fails, as config.log is still kept open
35525# by configure, so config.status won't be able to write to it; its
35526# output is simply discarded.  So we exec the FD to /dev/null,
35527# effectively closing config.log, so it can be properly (re)opened and
35528# appended to by config.status.  When coming back to configure, we
35529# need to make the FD available again.
35530if test "$no_create" != yes; then
35531  ac_cs_success=:
35532  ac_config_status_args=
35533  test "$silent" = yes &&
35534    ac_config_status_args="$ac_config_status_args --quiet"
35535  exec 5>/dev/null
35536  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35537  exec 5>>config.log
35538  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35539  # would make configure fail if this is the last instruction.
35540  $ac_cs_success || as_fn_exit 1
35541fi
35542if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
35543  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
35544$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
35545fi
35546
35547